]> granicus.if.org Git - postgresql/blob - configure
Changes for MinGW/WIN32:
[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 # We already have this in Makefile.win32, but configure needs it too
2374 if test "$PORTNAME" = "win32"
2375 then
2376         CPPFLAGS="$CPPFLAGS -Isrc/include/port/win32"
2377 fi
2378
2379 # Check if the compiler still works with the template settings
2380 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2381 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2382
2383 cat >conftest.$ac_ext <<_ACEOF
2384 #line $LINENO "configure"
2385 #include "confdefs.h"
2386
2387 #ifdef F77_DUMMY_MAIN
2388 #  ifdef __cplusplus
2389      extern "C"
2390 #  endif
2391    int F77_DUMMY_MAIN() { return 1; }
2392 #endif
2393 int
2394 main ()
2395 {
2396 return 0;
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext conftest$ac_exeext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2403   (eval $ac_link) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -s conftest$ac_exeext'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   echo "$as_me:$LINENO: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2420    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2421 echo "$as_me: error: cannot proceed" >&2;}
2422    { (exit 1); exit 1; }; }
2423 fi
2424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2425
2426 # Defend against gcc -ffastmath
2427 if test "$GCC" = yes; then
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line $LINENO "configure"
2430 #include "confdefs.h"
2431
2432 #ifdef F77_DUMMY_MAIN
2433 #  ifdef __cplusplus
2434      extern "C"
2435 #  endif
2436    int F77_DUMMY_MAIN() { return 1; }
2437 #endif
2438 int
2439 main ()
2440 {
2441 #ifdef __FAST_MATH__
2442 choke me
2443 #endif
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -s conftest.$ac_objext'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   :
2461 else
2462   echo "$as_me: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2465 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2466    { (exit 1); exit 1; }; }
2467 fi
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2469 fi
2470
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2477 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2478 # On Suns, sometimes $CPP names a directory.
2479 if test -n "$CPP" && test -d "$CPP"; then
2480   CPP=
2481 fi
2482 if test -z "$CPP"; then
2483   if test "${ac_cv_prog_CPP+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486       # Double quotes because CPP needs to be expanded
2487     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2488     do
2489       ac_preproc_ok=false
2490 for ac_c_preproc_warn_flag in '' yes
2491 do
2492   # Use a header file that comes with gcc, so configuring glibc
2493   # with a fresh cross-compiler works.
2494   # On the NeXT, cc -E runs the code through the compiler's parser,
2495   # not just through cpp. "Syntax error" is here to catch this case.
2496   cat >conftest.$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2499 #include <assert.h>
2500                      Syntax error
2501 _ACEOF
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2504   ac_status=$?
2505   egrep -v '^ *\+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } >/dev/null; then
2510   if test -s conftest.err; then
2511     ac_cpp_err=$ac_c_preproc_warn_flag
2512   else
2513     ac_cpp_err=
2514   fi
2515 else
2516   ac_cpp_err=yes
2517 fi
2518 if test -z "$ac_cpp_err"; then
2519   :
2520 else
2521   echo "$as_me: failed program was:" >&5
2522   cat conftest.$ac_ext >&5
2523   # Broken: fails on valid input.
2524 continue
2525 fi
2526 rm -f conftest.err conftest.$ac_ext
2527
2528   # OK, works on sane cases.  Now check whether non-existent headers
2529   # can be detected and how.
2530   cat >conftest.$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2533 #include <ac_nonexistent.h>
2534 _ACEOF
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2537   ac_status=$?
2538   egrep -v '^ *\+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } >/dev/null; then
2543   if test -s conftest.err; then
2544     ac_cpp_err=$ac_c_preproc_warn_flag
2545   else
2546     ac_cpp_err=
2547   fi
2548 else
2549   ac_cpp_err=yes
2550 fi
2551 if test -z "$ac_cpp_err"; then
2552   # Broken: success on invalid input.
2553 continue
2554 else
2555   echo "$as_me: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   # Passes both tests.
2558 ac_preproc_ok=:
2559 break
2560 fi
2561 rm -f conftest.err conftest.$ac_ext
2562
2563 done
2564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565 rm -f conftest.err conftest.$ac_ext
2566 if $ac_preproc_ok; then
2567   break
2568 fi
2569
2570     done
2571     ac_cv_prog_CPP=$CPP
2572
2573 fi
2574   CPP=$ac_cv_prog_CPP
2575 else
2576   ac_cv_prog_CPP=$CPP
2577 fi
2578 echo "$as_me:$LINENO: result: $CPP" >&5
2579 echo "${ECHO_T}$CPP" >&6
2580 ac_preproc_ok=false
2581 for ac_c_preproc_warn_flag in '' yes
2582 do
2583   # Use a header file that comes with gcc, so configuring glibc
2584   # with a fresh cross-compiler works.
2585   # On the NeXT, cc -E runs the code through the compiler's parser,
2586   # not just through cpp. "Syntax error" is here to catch this case.
2587   cat >conftest.$ac_ext <<_ACEOF
2588 #line $LINENO "configure"
2589 #include "confdefs.h"
2590 #include <assert.h>
2591                      Syntax error
2592 _ACEOF
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595   ac_status=$?
2596   egrep -v '^ *\+' conftest.er1 >conftest.err
2597   rm -f conftest.er1
2598   cat conftest.err >&5
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } >/dev/null; then
2601   if test -s conftest.err; then
2602     ac_cpp_err=$ac_c_preproc_warn_flag
2603   else
2604     ac_cpp_err=
2605   fi
2606 else
2607   ac_cpp_err=yes
2608 fi
2609 if test -z "$ac_cpp_err"; then
2610   :
2611 else
2612   echo "$as_me: failed program was:" >&5
2613   cat conftest.$ac_ext >&5
2614   # Broken: fails on valid input.
2615 continue
2616 fi
2617 rm -f conftest.err conftest.$ac_ext
2618
2619   # OK, works on sane cases.  Now check whether non-existent headers
2620   # can be detected and how.
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 #include "confdefs.h"
2624 #include <ac_nonexistent.h>
2625 _ACEOF
2626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2628   ac_status=$?
2629   egrep -v '^ *\+' conftest.er1 >conftest.err
2630   rm -f conftest.er1
2631   cat conftest.err >&5
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } >/dev/null; then
2634   if test -s conftest.err; then
2635     ac_cpp_err=$ac_c_preproc_warn_flag
2636   else
2637     ac_cpp_err=
2638   fi
2639 else
2640   ac_cpp_err=yes
2641 fi
2642 if test -z "$ac_cpp_err"; then
2643   # Broken: success on invalid input.
2644 continue
2645 else
2646   echo "$as_me: failed program was:" >&5
2647   cat conftest.$ac_ext >&5
2648   # Passes both tests.
2649 ac_preproc_ok=:
2650 break
2651 fi
2652 rm -f conftest.err conftest.$ac_ext
2653
2654 done
2655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2656 rm -f conftest.err conftest.$ac_ext
2657 if $ac_preproc_ok; then
2658   :
2659 else
2660   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2661 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2664
2665 ac_ext=c
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672
2673 # Create compiler version string
2674 if test x"$GCC" = x"yes" ; then
2675   cc_string="GCC `${CC} --version | sed q`"
2676 else
2677   cc_string=$CC
2678 fi
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2682 _ACEOF
2683
2684
2685
2686 #
2687 # Automatic dependency tracking
2688 #
2689
2690
2691 # Check whether --enable-depend or --disable-depend was given.
2692 if test "${enable_depend+set}" = set; then
2693   enableval="$enable_depend"
2694
2695   case $enableval in
2696     yes)
2697       autodepend=yes
2698       ;;
2699     no)
2700       :
2701       ;;
2702     *)
2703       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2704 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2705    { (exit 1); exit 1; }; }
2706       ;;
2707   esac
2708
2709 else
2710   enable_depend=no
2711
2712 fi;
2713
2714
2715
2716
2717 #
2718 # Enable assert checks
2719 #
2720
2721
2722 # Check whether --enable-cassert or --disable-cassert was given.
2723 if test "${enable_cassert+set}" = set; then
2724   enableval="$enable_cassert"
2725
2726   case $enableval in
2727     yes)
2728
2729 cat >>confdefs.h <<\_ACEOF
2730 #define USE_ASSERT_CHECKING 1
2731 _ACEOF
2732
2733       ;;
2734     no)
2735       :
2736       ;;
2737     *)
2738       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2739 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2740    { (exit 1); exit 1; }; }
2741       ;;
2742   esac
2743
2744 else
2745   enable_cassert=no
2746
2747 fi;
2748
2749
2750
2751 #
2752 # Include directories
2753 #
2754 ac_save_IFS=$IFS
2755 IFS="${IFS}:"
2756 # SRCH_INC comes from the template file
2757 for dir in $with_includes $SRCH_INC; do
2758   if test -d "$dir"; then
2759     INCLUDES="$INCLUDES -I$dir"
2760   else
2761     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2762 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2763   fi
2764 done
2765 IFS=$ac_save_IFS
2766
2767
2768
2769 #
2770 # Library directories
2771 #
2772 ac_save_IFS=$IFS
2773 IFS="${IFS}:"
2774 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2775 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2776   if test -d "$dir"; then
2777     LIBDIRS="$LIBDIRS -L$dir"
2778   else
2779     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2780 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2781   fi
2782 done
2783 IFS=$ac_save_IFS
2784
2785 #
2786 # Enable thread-safe client libraries
2787 #
2788 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2789 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2790
2791
2792 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2793 if test "${enable_thread_safety+set}" = set; then
2794   enableval="$enable_thread_safety"
2795
2796   case $enableval in
2797     yes)
2798
2799 cat >>confdefs.h <<\_ACEOF
2800 #define USE_THREADS 1
2801 _ACEOF
2802
2803       ;;
2804     no)
2805       :
2806       ;;
2807     *)
2808       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2809 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2810    { (exit 1); exit 1; }; }
2811       ;;
2812   esac
2813
2814 else
2815   enable_thread_safety=no
2816
2817 fi;
2818
2819 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2820 echo "${ECHO_T}$enable_thread_safety" >&6
2821
2822
2823 #
2824 # Tcl/Tk
2825 #
2826 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2827 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2828
2829
2830
2831 # Check whether --with-tcl or --without-tcl was given.
2832 if test "${with_tcl+set}" = set; then
2833   withval="$with_tcl"
2834
2835   case $withval in
2836     yes)
2837       :
2838       ;;
2839     no)
2840       :
2841       ;;
2842     *)
2843       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2844 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2845    { (exit 1); exit 1; }; }
2846       ;;
2847   esac
2848
2849 else
2850   with_tcl=no
2851
2852 fi;
2853
2854 echo "$as_me:$LINENO: result: $with_tcl" >&5
2855 echo "${ECHO_T}$with_tcl" >&6
2856
2857
2858 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2859 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2860 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2861 if test "$with_tcl" = yes; then
2862
2863
2864
2865 # Check whether --with-tk or --without-tk was given.
2866 if test "${with_tk+set}" = set; then
2867   withval="$with_tk"
2868
2869   case $withval in
2870     yes)
2871       :
2872       ;;
2873     no)
2874       :
2875       ;;
2876     *)
2877       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2878 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2879    { (exit 1); exit 1; }; }
2880       ;;
2881   esac
2882
2883 else
2884   with_tk=yes
2885
2886 fi;
2887
2888 else
2889   with_tk=no
2890 fi
2891 echo "$as_me:$LINENO: result: $with_tk" >&5
2892 echo "${ECHO_T}$with_tk" >&6
2893
2894
2895
2896 # We see if the path to the Tcl/Tk configuration scripts is specified.
2897 # This will override the use of tclsh to find the paths to search.
2898
2899
2900
2901
2902 # Check whether --with-tclconfig or --without-tclconfig was given.
2903 if test "${with_tclconfig+set}" = set; then
2904   withval="$with_tclconfig"
2905
2906   case $withval in
2907     yes)
2908       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2909 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2910    { (exit 1); exit 1; }; }
2911       ;;
2912     no)
2913       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2914 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2915    { (exit 1); exit 1; }; }
2916       ;;
2917     *)
2918
2919       ;;
2920   esac
2921
2922 fi;
2923
2924
2925 # We see if the path to the Tk configuration scripts is specified.
2926 # This will override the use of tclsh to find the paths to search.
2927
2928
2929
2930
2931 # Check whether --with-tkconfig or --without-tkconfig was given.
2932 if test "${with_tkconfig+set}" = set; then
2933   withval="$with_tkconfig"
2934
2935   case $withval in
2936     yes)
2937       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2938 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2939    { (exit 1); exit 1; }; }
2940       ;;
2941     no)
2942       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2943 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2944    { (exit 1); exit 1; }; }
2945       ;;
2946     *)
2947
2948       ;;
2949   esac
2950
2951 fi;
2952
2953
2954 #
2955 # Optionally build Perl modules (PL/Perl)
2956 #
2957 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2958 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2959
2960
2961
2962 # Check whether --with-perl or --without-perl was given.
2963 if test "${with_perl+set}" = set; then
2964   withval="$with_perl"
2965
2966   case $withval in
2967     yes)
2968       :
2969       ;;
2970     no)
2971       :
2972       ;;
2973     *)
2974       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2975 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2976    { (exit 1); exit 1; }; }
2977       ;;
2978   esac
2979
2980 else
2981   with_perl=no
2982
2983 fi;
2984
2985 echo "$as_me:$LINENO: result: $with_perl" >&5
2986 echo "${ECHO_T}$with_perl" >&6
2987
2988
2989 #
2990 # Optionally build Python modules (PL/Python)
2991 #
2992 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2993 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2994
2995
2996
2997 # Check whether --with-python or --without-python was given.
2998 if test "${with_python+set}" = set; then
2999   withval="$with_python"
3000
3001   case $withval in
3002     yes)
3003       :
3004       ;;
3005     no)
3006       :
3007       ;;
3008     *)
3009       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3010 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3011    { (exit 1); exit 1; }; }
3012       ;;
3013   esac
3014
3015 else
3016   with_python=no
3017
3018 fi;
3019
3020 echo "$as_me:$LINENO: result: $with_python" >&5
3021 echo "${ECHO_T}$with_python" >&6
3022
3023
3024 #
3025 # Optionally build the Java/JDBC tools
3026 #
3027 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3028 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3029
3030
3031
3032 # Check whether --with-java or --without-java was given.
3033 if test "${with_java+set}" = set; then
3034   withval="$with_java"
3035
3036   case $withval in
3037     yes)
3038       echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6
3040
3041   for ac_prog in jakarta-ant ant ant.sh ant.bat
3042 do
3043   # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_path_ANT+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   case $ANT in
3051   [\\/]* | ?:[\\/]*)
3052   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3053   ;;
3054   *)
3055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060   for ac_exec_ext in '' $ac_executable_extensions; do
3061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067 done
3068
3069   ;;
3070 esac
3071 fi
3072 ANT=$ac_cv_path_ANT
3073
3074 if test -n "$ANT"; then
3075   echo "$as_me:$LINENO: result: $ANT" >&5
3076 echo "${ECHO_T}$ANT" >&6
3077 else
3078   echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3080 fi
3081
3082   test -n "$ANT" && break
3083 done
3084
3085
3086   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3087 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3088 if test "${pgac_cv_prog_ant_works+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091
3092     cat > conftest.java << EOF
3093 public class conftest {
3094     int testmethod(int a, int b) {
3095         return a + b;
3096     }
3097 }
3098 EOF
3099
3100     cat > conftest.xml << EOF
3101 <project name="conftest" default="conftest">
3102  <target name="conftest">
3103   <javac srcdir="." includes="conftest.java">
3104   </javac>
3105  </target>
3106 </project>
3107 EOF
3108
3109     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3110     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3111   (eval $pgac_cmd) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }
3115     pgac_save_status=$?
3116     if test $? = 0 && test -f ./conftest.class ; then
3117       pgac_cv_prog_ant_works=yes
3118     else
3119       echo "configure: failed java program was:" >&5
3120       cat conftest.java >&5
3121       echo "configure: failed build file was:" >&5
3122       cat conftest.xml >&5
3123       pgac_cv_prog_ant_works=no
3124     fi
3125
3126     rm -f conftest* core core.* *.core
3127
3128 fi
3129 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3130 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3131
3132   if test "$pgac_cv_prog_ant_works" != yes; then
3133     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3134 echo "$as_me: error: ant does not work" >&2;}
3135    { (exit 1); exit 1; }; }
3136   fi
3137
3138
3139 if test -z "$ANT"; then
3140   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3141 If you have Ant already installed, see config.log for details on the failure." >&5
3142 echo "$as_me: error: Ant is required to build Java components
3143 If you have Ant already installed, see config.log for details on the failure." >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3147   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3148 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3149    { (exit 1); exit 1; }; }
3150 fi
3151       ;;
3152     no)
3153       echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3155       ;;
3156     *)
3157       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3158 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3159    { (exit 1); exit 1; }; }
3160       ;;
3161   esac
3162
3163 else
3164   with_java=no
3165 echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 fi;
3168
3169
3170
3171
3172 #
3173 # Kerberos 4
3174 #
3175 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3176 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3177
3178
3179
3180 # Check whether --with-krb4 or --without-krb4 was given.
3181 if test "${with_krb4+set}" = set; then
3182   withval="$with_krb4"
3183
3184   case $withval in
3185     yes)
3186       krb4_prefix=/usr/athena
3187       ;;
3188     no)
3189       :
3190       ;;
3191     *)
3192       with_krb4=yes
3193 krb4_prefix=$withval
3194       ;;
3195   esac
3196
3197 else
3198   with_krb4=no
3199 fi;
3200
3201
3202 if test "$with_krb4" = yes; then
3203
3204   echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206
3207 cat >>confdefs.h <<\_ACEOF
3208 #define KRB4 1
3209 _ACEOF
3210
3211
3212   if test -d "$krb4_prefix/include"; then
3213     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3214   fi
3215   if test -d "$krb4_prefix/lib"; then
3216     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3217   fi
3218
3219   krb_srvtab="/etc/srvtab"
3220
3221 else
3222   echo "$as_me:$LINENO: result: no" >&5
3223 echo "${ECHO_T}no" >&6
3224 fi
3225
3226
3227
3228
3229
3230 #
3231 # Kerberos 5
3232 #
3233 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3234 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3235
3236
3237
3238 # Check whether --with-krb5 or --without-krb5 was given.
3239 if test "${with_krb5+set}" = set; then
3240   withval="$with_krb5"
3241
3242   case $withval in
3243     yes)
3244       krb5_prefix=/usr/athena
3245       ;;
3246     no)
3247       :
3248       ;;
3249     *)
3250       with_krb5=yes
3251 krb5_prefix=$withval
3252       ;;
3253   esac
3254
3255 else
3256   with_krb5=no
3257 fi;
3258
3259
3260 if test "$with_krb5" = yes; then
3261
3262   echo "$as_me:$LINENO: result: yes" >&5
3263 echo "${ECHO_T}yes" >&6
3264
3265 cat >>confdefs.h <<\_ACEOF
3266 #define KRB5 1
3267 _ACEOF
3268
3269
3270   if test -d "$krb5_prefix/include"; then
3271     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3272   fi
3273   if test -d "$krb5_prefix/lib"; then
3274     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3275   fi
3276
3277   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3278
3279 else
3280   echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284
3285
3286
3287
3288 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3289 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3290   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3291 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3292    { (exit 1); exit 1; }; }
3293 fi
3294
3295
3296
3297
3298 #
3299 # Kerberos configuration parameters
3300 #
3301
3302
3303
3304 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3305 if test "${with_krb_srvnam+set}" = set; then
3306   withval="$with_krb_srvnam"
3307
3308   case $withval in
3309     yes)
3310       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3311 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3312    { (exit 1); exit 1; }; }
3313       ;;
3314     no)
3315       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3316 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3317    { (exit 1); exit 1; }; }
3318       ;;
3319     *)
3320
3321       ;;
3322   esac
3323
3324 else
3325   with_krb_srvnam="postgres"
3326 fi;
3327
3328
3329 cat >>confdefs.h <<_ACEOF
3330 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3331 _ACEOF
3332
3333
3334
3335 #
3336 # PAM
3337 #
3338 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3339 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3340
3341
3342
3343 # Check whether --with-pam or --without-pam was given.
3344 if test "${with_pam+set}" = set; then
3345   withval="$with_pam"
3346
3347   case $withval in
3348     yes)
3349
3350 cat >>confdefs.h <<\_ACEOF
3351 #define USE_PAM 1
3352 _ACEOF
3353
3354       ;;
3355     no)
3356       :
3357       ;;
3358     *)
3359       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3360 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3361    { (exit 1); exit 1; }; }
3362       ;;
3363   esac
3364
3365 else
3366   with_pam=no
3367
3368 fi;
3369
3370 echo "$as_me:$LINENO: result: $with_pam" >&5
3371 echo "${ECHO_T}$with_pam" >&6
3372
3373
3374
3375 #
3376 # Rendezvous
3377 #
3378 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3379 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3380
3381
3382
3383 # Check whether --with-rendezvous or --without-rendezvous was given.
3384 if test "${with_rendezvous+set}" = set; then
3385   withval="$with_rendezvous"
3386
3387   case $withval in
3388     yes)
3389
3390 cat >>confdefs.h <<\_ACEOF
3391 #define USE_RENDEZVOUS 1
3392 _ACEOF
3393
3394       ;;
3395     no)
3396       :
3397       ;;
3398     *)
3399       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3400 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3401    { (exit 1); exit 1; }; }
3402       ;;
3403   esac
3404
3405 else
3406   with_rendezvous=no
3407
3408 fi;
3409
3410 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3411 echo "${ECHO_T}$with_rendezvous" >&6
3412
3413
3414
3415 #
3416 # OpenSSL
3417 #
3418
3419
3420
3421 # Check whether --with-openssl or --without-openssl was given.
3422 if test "${with_openssl+set}" = set; then
3423   withval="$with_openssl"
3424
3425   case $withval in
3426     yes)
3427       openssl_prefix=/usr/local/ssl
3428       ;;
3429     no)
3430       :
3431       ;;
3432     *)
3433       with_openssl=yes
3434 openssl_prefix=$withval
3435       ;;
3436   esac
3437
3438 else
3439   with_openssl=no
3440 fi;
3441
3442
3443 if test "$with_openssl" = yes; then
3444
3445   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3446 echo "${ECHO_T}building with OpenSSL support" >&6
3447
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_SSL 1
3450 _ACEOF
3451
3452
3453   if test -d "${openssl_prefix}/include" ; then
3454     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3455   fi
3456   if test -d "${openssl_prefix}/lib" ; then
3457     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3458   fi
3459
3460 fi
3461
3462
3463
3464
3465
3466 #
3467 # Readline
3468 #
3469
3470
3471
3472 # Check whether --with-readline or --without-readline was given.
3473 if test "${with_readline+set}" = set; then
3474   withval="$with_readline"
3475
3476   case $withval in
3477     yes)
3478       :
3479       ;;
3480     no)
3481       :
3482       ;;
3483     *)
3484       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3485 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3486    { (exit 1); exit 1; }; }
3487       ;;
3488   esac
3489
3490 else
3491   with_readline=yes
3492
3493 fi;
3494
3495
3496 #
3497 # Zlib
3498 #
3499
3500
3501
3502 # Check whether --with-zlib or --without-zlib was given.
3503 if test "${with_zlib+set}" = set; then
3504   withval="$with_zlib"
3505
3506   case $withval in
3507     yes)
3508       :
3509       ;;
3510     no)
3511       :
3512       ;;
3513     *)
3514       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3515 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3516    { (exit 1); exit 1; }; }
3517       ;;
3518   esac
3519
3520 else
3521   with_zlib=yes
3522
3523 fi;
3524
3525
3526
3527 #
3528 # Elf
3529 #
3530
3531 # Assume system is ELF if it predefines __ELF__ as 1,
3532 # otherwise believe host_os based default.
3533 case $host_os in
3534     freebsd1*|freebsd2*) elf=no;;
3535     freebsd3*|freebsd4*) elf=yes;;
3536 esac
3537
3538
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3542 #if __ELF__
3543   yes
3544 #endif
3545
3546 _ACEOF
3547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3548   egrep "yes" >/dev/null 2>&1; then
3549   ELF_SYS=true
3550 else
3551   if test "X$elf" = "Xyes" ; then
3552   ELF_SYS=true
3553 else
3554   ELF_SYS=
3555 fi
3556 fi
3557 rm -f conftest*
3558
3559
3560
3561 #
3562 # Assignments
3563 #
3564
3565 CPPFLAGS="$CPPFLAGS $INCLUDES"
3566 LDFLAGS="$LDFLAGS $LIBDIRS"
3567
3568 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3569 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3570 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3571 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3572
3573
3574 for ac_prog in gawk mawk nawk awk
3575 do
3576   # Extract the first word of "$ac_prog", so it can be a program name with args.
3577 set dummy $ac_prog; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_AWK+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$AWK"; then
3584   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_AWK="$ac_prog"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600 fi
3601 fi
3602 AWK=$ac_cv_prog_AWK
3603 if test -n "$AWK"; then
3604   echo "$as_me:$LINENO: result: $AWK" >&5
3605 echo "${ECHO_T}$AWK" >&6
3606 else
3607   echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 fi
3610
3611   test -n "$AWK" && break
3612 done
3613
3614 echo "$as_me:$LINENO: checking for flex" >&5
3615 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3616 if test "${pgac_cv_path_flex+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   # Let the user override the test
3620 if test -n "$FLEX"; then
3621   pgac_cv_path_flex=$FLEX
3622 else
3623   pgac_save_IFS=$IFS
3624   IFS=:
3625   for pgac_dir in $PATH; do
3626     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3627       pgac_dir=`pwd`
3628     fi
3629     for pgac_prog in flex lex; do
3630       pgac_candidate="$pgac_dir/$pgac_prog"
3631       if test -f "$pgac_candidate" \
3632         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3633       then
3634         echo '%%'  > conftest.l
3635         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3636           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3637             pgac_broken_flex=$pgac_candidate
3638             continue
3639           fi
3640
3641           pgac_cv_path_flex=$pgac_candidate
3642           break 2
3643         fi
3644       fi
3645     done
3646   done
3647   IFS=$pgac_save_IFS
3648   rm -f conftest.l
3649   : ${pgac_cv_path_flex=no}
3650 fi
3651
3652 fi
3653 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3654 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3655 if test x"$pgac_cv_path_flex" = x"no"; then
3656   if test -n "$pgac_broken_flex"; then
3657     { echo "$as_me:$LINENO: WARNING:
3658 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3659 *** should get version 2.5.4 or later." >&5
3660 echo "$as_me: WARNING:
3661 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3662 *** should get version 2.5.4 or later." >&2;}
3663   fi
3664
3665   { echo "$as_me:$LINENO: 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.)" >&5
3671 echo "$as_me: WARNING:
3672 *** Without Flex you will not be able to build PostgreSQL from CVS or
3673 *** change any of the scanner definition files.  You can obtain Flex from
3674 *** a GNU mirror site.  (If you are using the official distribution of
3675 *** PostgreSQL then you do not need to worry about this because the Flex
3676 *** output is pre-generated.)" >&2;}
3677 fi
3678
3679 if test x"$pgac_cv_path_flex" = x"no"; then
3680   FLEX=
3681 else
3682   FLEX=$pgac_cv_path_flex
3683 fi
3684
3685
3686
3687
3688 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3690 LN_S=$as_ln_s
3691 if test "$LN_S" = "ln -s"; then
3692   echo "$as_me:$LINENO: result: yes" >&5
3693 echo "${ECHO_T}yes" >&6
3694 else
3695   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3696 echo "${ECHO_T}no, using $LN_S" >&6
3697 fi
3698
3699
3700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3701 if test "${with_gnu_ld+set}" = set; then
3702   withval="$with_gnu_ld"
3703   test "$withval" = no || with_gnu_ld=yes
3704 else
3705   with_gnu_ld=no
3706 fi;
3707 ac_prog=ld
3708 if test "$GCC" = yes; then
3709   # Check if gcc -print-prog-name=ld gives a path.
3710   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3711 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3712   case $host in
3713   *-*-mingw*)
3714     # gcc leaves a trailing carriage return which upsets mingw
3715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3716   *)
3717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3718   esac
3719   case "$ac_prog" in
3720     # Accept absolute paths.
3721     [\\/]* | [A-Za-z]:[\\/]*)
3722       re_direlt='/[^/][^/]*/\.\./'
3723       # Canonicalize the path of ld
3724       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3725       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3726         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3727       done
3728       test -z "$LD" && LD="$ac_prog"
3729       ;;
3730   "")
3731     # If it fails, then pretend we aren't using GCC.
3732     ac_prog=ld
3733     ;;
3734   *)
3735     # If it is relative, then search for the first ld in PATH.
3736     with_gnu_ld=unknown
3737     ;;
3738   esac
3739 elif test "$with_gnu_ld" = yes; then
3740   echo "$as_me:$LINENO: checking for GNU ld" >&5
3741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3742 else
3743   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3745 fi
3746 if test "${ac_cv_path_LD+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if test -z "$LD"; then
3750   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3751   for ac_dir in $PATH; do
3752     test -z "$ac_dir" && ac_dir=.
3753     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3754       ac_cv_path_LD="$ac_dir/$ac_prog"
3755       # Check to see if the program is GNU ld.  I'd rather use --version,
3756       # but apparently some GNU ld's only accept -v.
3757       # Break only if it was the GNU/non-GNU ld that we prefer.
3758       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3759         test "$with_gnu_ld" != no && break
3760       else
3761         test "$with_gnu_ld" != yes && break
3762       fi
3763     fi
3764   done
3765   IFS="$ac_save_ifs"
3766 else
3767   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3768 fi
3769 fi
3770
3771 LD="$ac_cv_path_LD"
3772 if test -n "$LD"; then
3773   echo "$as_me:$LINENO: result: $LD" >&5
3774 echo "${ECHO_T}$LD" >&6
3775 else
3776   echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778 fi
3779 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3780 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3781    { (exit 1); exit 1; }; }
3782 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3783 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3784 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3788 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3789   ac_cv_prog_gnu_ld=yes
3790 else
3791   ac_cv_prog_gnu_ld=no
3792 fi
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3795 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3796 with_gnu_ld=$ac_cv_prog_gnu_ld
3797
3798
3799
3800
3801 case $host_os in sysv5*)
3802   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3803 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3804 if test "${pgac_cv_prog_ld_R+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807
3808     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3809     cat >conftest.$ac_ext <<_ACEOF
3810 #line $LINENO "configure"
3811 #include "confdefs.h"
3812
3813 #ifdef F77_DUMMY_MAIN
3814 #  ifdef __cplusplus
3815      extern "C"
3816 #  endif
3817    int F77_DUMMY_MAIN() { return 1; }
3818 #endif
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.$ac_objext conftest$ac_exeext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829   (eval $ac_link) 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); } &&
3833          { ac_try='test -s conftest$ac_exeext'
3834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835   (eval $ac_try) 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); }; }; then
3839   pgac_cv_prog_ld_R=yes
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 pgac_cv_prog_ld_R=no
3844 fi
3845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3846     LDFLAGS=$pgac_save_LDFLAGS
3847
3848 fi
3849 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3850 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3851   ld_R_works=$pgac_cv_prog_ld_R
3852
3853 esac
3854 if test -n "$ac_tool_prefix"; then
3855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3857 echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859 if test "${ac_cv_prog_RANLIB+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   if test -n "$RANLIB"; then
3863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870   for ac_exec_ext in '' $ac_executable_extensions; do
3871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877 done
3878
3879 fi
3880 fi
3881 RANLIB=$ac_cv_prog_RANLIB
3882 if test -n "$RANLIB"; then
3883   echo "$as_me:$LINENO: result: $RANLIB" >&5
3884 echo "${ECHO_T}$RANLIB" >&6
3885 else
3886   echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888 fi
3889
3890 fi
3891 if test -z "$ac_cv_prog_RANLIB"; then
3892   ac_ct_RANLIB=$RANLIB
3893   # Extract the first word of "ranlib", so it can be a program name with args.
3894 set dummy ranlib; ac_word=$2
3895 echo "$as_me:$LINENO: checking for $ac_word" >&5
3896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   if test -n "$ac_ct_RANLIB"; then
3901   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_exec_ext in '' $ac_executable_extensions; do
3909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910     ac_cv_prog_ac_ct_RANLIB="ranlib"
3911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912     break 2
3913   fi
3914 done
3915 done
3916
3917   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3918 fi
3919 fi
3920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3921 if test -n "$ac_ct_RANLIB"; then
3922   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3923 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929   RANLIB=$ac_ct_RANLIB
3930 else
3931   RANLIB="$ac_cv_prog_RANLIB"
3932 fi
3933
3934 for ac_prog in lorder
3935 do
3936   # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_LORDER+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   if test -n "$LORDER"; then
3944   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951   for ac_exec_ext in '' $ac_executable_extensions; do
3952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_LORDER="$ac_prog"
3954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958 done
3959
3960 fi
3961 fi
3962 LORDER=$ac_cv_prog_LORDER
3963 if test -n "$LORDER"; then
3964   echo "$as_me:$LINENO: result: $LORDER" >&5
3965 echo "${ECHO_T}$LORDER" >&6
3966 else
3967   echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969 fi
3970
3971   test -n "$LORDER" && break
3972 done
3973
3974 # Extract the first word of "tar", so it can be a program name with args.
3975 set dummy tar; ac_word=$2
3976 echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_path_TAR+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   case $TAR in
3982   [\\/]* | ?:[\\/]*)
3983   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3984   ;;
3985   *)
3986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998 done
3999
4000   ;;
4001 esac
4002 fi
4003 TAR=$ac_cv_path_TAR
4004
4005 if test -n "$TAR"; then
4006   echo "$as_me:$LINENO: result: $TAR" >&5
4007 echo "${ECHO_T}$TAR" >&6
4008 else
4009   echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4011 fi
4012
4013
4014   if test -n "$ac_tool_prefix"; then
4015   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4016 set dummy ${ac_tool_prefix}strip; ac_word=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_prog_STRIP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   if test -n "$STRIP"; then
4023   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030   for ac_exec_ext in '' $ac_executable_extensions; do
4031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037 done
4038
4039 fi
4040 fi
4041 STRIP=$ac_cv_prog_STRIP
4042 if test -n "$STRIP"; then
4043   echo "$as_me:$LINENO: result: $STRIP" >&5
4044 echo "${ECHO_T}$STRIP" >&6
4045 else
4046   echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048 fi
4049
4050 fi
4051 if test -z "$ac_cv_prog_STRIP"; then
4052   ac_ct_STRIP=$STRIP
4053   # Extract the first word of "strip", so it can be a program name with args.
4054 set dummy strip; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if test -n "$ac_ct_STRIP"; then
4061   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068   for ac_exec_ext in '' $ac_executable_extensions; do
4069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070     ac_cv_prog_ac_ct_STRIP="strip"
4071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075 done
4076
4077   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4078 fi
4079 fi
4080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4081 if test -n "$ac_ct_STRIP"; then
4082   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4083 echo "${ECHO_T}$ac_ct_STRIP" >&6
4084 else
4085   echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087 fi
4088
4089   STRIP=$ac_ct_STRIP
4090 else
4091   STRIP="$ac_cv_prog_STRIP"
4092 fi
4093
4094
4095   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4096 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4097   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4098     STRIP_STATIC_LIB="$STRIP -x"
4099     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4100     echo "$as_me:$LINENO: result: yes" >&5
4101 echo "${ECHO_T}yes" >&6
4102   else
4103     STRIP_STATIC_LIB=:
4104     STRIP_SHARED_LIB=:
4105     echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107   fi
4108
4109
4110
4111
4112 for ac_prog in 'bison -y'
4113 do
4114   # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_YACC+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test -n "$YACC"; then
4122   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129   for ac_exec_ext in '' $ac_executable_extensions; do
4130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131     ac_cv_prog_YACC="$ac_prog"
4132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136 done
4137
4138 fi
4139 fi
4140 YACC=$ac_cv_prog_YACC
4141 if test -n "$YACC"; then
4142   echo "$as_me:$LINENO: result: $YACC" >&5
4143 echo "${ECHO_T}$YACC" >&6
4144 else
4145   echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149   test -n "$YACC" && break
4150 done
4151
4152
4153 if test "$YACC"; then
4154   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4155     { echo "$as_me:$LINENO: WARNING:
4156 *** The installed version of Bison is too old.  PostgreSQL needs
4157 *** Bison version 1.875 or later." >&5
4158 echo "$as_me: WARNING:
4159 *** The installed version of Bison is too old.  PostgreSQL needs
4160 *** Bison version 1.875 or later." >&2;}
4161   fi
4162 fi
4163
4164 if test -z "$YACC"; then
4165   { echo "$as_me:$LINENO: WARNING:
4166 *** Without Bison you will not be able to build PostgreSQL from CVS or
4167 *** change any of the parser definition files.  You can obtain Bison from
4168 *** a GNU mirror site.  (If you are using the official distribution of
4169 *** PostgreSQL then you do not need to worry about this because the Bison
4170 *** output is pre-generated.)  To use a different yacc program (possible,
4171 *** but not recommended), set the environment variable YACC before running
4172 *** 'configure'." >&5
4173 echo "$as_me: WARNING:
4174 *** Without Bison you will not be able to build PostgreSQL from CVS or
4175 *** change any of the parser definition files.  You can obtain Bison from
4176 *** a GNU mirror site.  (If you are using the official distribution of
4177 *** PostgreSQL then you do not need to worry about this because the Bison
4178 *** output is pre-generated.)  To use a different yacc program (possible,
4179 *** but not recommended), set the environment variable YACC before running
4180 *** 'configure'." >&2;}
4181 fi
4182
4183
4184 # Extract the first word of "perl", so it can be a program name with args.
4185 set dummy perl; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_PERL+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   case $PERL in
4192   [\\/]* | ?:[\\/]*)
4193   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4194   ;;
4195   *)
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210   ;;
4211 esac
4212 fi
4213 PERL=$ac_cv_path_PERL
4214
4215 if test -n "$PERL"; then
4216   echo "$as_me:$LINENO: result: $PERL" >&5
4217 echo "${ECHO_T}$PERL" >&6
4218 else
4219   echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4221 fi
4222
4223 if test "$with_perl" = yes; then
4224
4225 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4226 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4227 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4228 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4229 echo "${ECHO_T}$perl_archlibexp" >&6
4230 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4231 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4232 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4233 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4234 echo "${ECHO_T}$perl_privlibexp" >&6
4235 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4236 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4237 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4238 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4239 echo "${ECHO_T}$perl_useshrplib" >&6
4240
4241 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4242 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4243 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4244 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4245 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4246 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4247 echo "${ECHO_T}$perl_embed_ldflags" >&6
4248 fi
4249
4250 if test "$with_python" = yes; then
4251   # Extract the first word of "python", so it can be a program name with args.
4252 set dummy python; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_path_PYTHON+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   case $PYTHON in
4259   [\\/]* | ?:[\\/]*)
4260   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4261   ;;
4262   *)
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   for ac_exec_ext in '' $ac_executable_extensions; do
4269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272     break 2
4273   fi
4274 done
4275 done
4276
4277   ;;
4278 esac
4279 fi
4280 PYTHON=$ac_cv_path_PYTHON
4281
4282 if test -n "$PYTHON"; then
4283   echo "$as_me:$LINENO: result: $PYTHON" >&5
4284 echo "${ECHO_T}$PYTHON" >&6
4285 else
4286   echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288 fi
4289
4290 if test x"$PYTHON" = x""; then
4291   { { echo "$as_me:$LINENO: error: Python not found" >&5
4292 echo "$as_me: error: Python not found" >&2;}
4293    { (exit 1); exit 1; }; }
4294 fi
4295
4296
4297 echo "$as_me:$LINENO: checking Python installation directories" >&5
4298 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4299 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4300 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4301 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4302 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4303 python_includespec="-I${python_prefix}/include/python${python_version}"
4304 if test "$python_prefix" != "$python_execprefix"; then
4305   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4306 fi
4307
4308 # This should be enough of a message.
4309 if test "$python_prefix" != "$python_execprefix"; then
4310   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4311 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4312 else
4313   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4314 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4315 fi
4316
4317
4318 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4319 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4320
4321 if test ! -f "$python_configdir/Makefile"; then
4322   echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4325 echo "$as_me: error: Python Makefile not found" >&2;}
4326    { (exit 1); exit 1; }; }
4327 fi
4328
4329 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4330 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4331 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4332 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4333 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4334
4335 pgac_tab="      " # tab character
4336 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"`
4337
4338 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4339 echo "${ECHO_T}${python_libspec}" >&6
4340
4341
4342 fi
4343
4344
4345 ##
4346 ## Libraries
4347 ##
4348
4349 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4350 then
4351
4352 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4353 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4354 if test "${ac_cv_lib_bsd_main+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   ac_check_lib_save_LIBS=$LIBS
4358 LIBS="-lbsd  $LIBS"
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4362
4363
4364 #ifdef F77_DUMMY_MAIN
4365 #  ifdef __cplusplus
4366      extern "C"
4367 #  endif
4368    int F77_DUMMY_MAIN() { return 1; }
4369 #endif
4370 int
4371 main ()
4372 {
4373 main ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -s conftest$ac_exeext'
4385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386   (eval $ac_try) 2>&5
4387   ac_status=$?
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); }; }; then
4390   ac_cv_lib_bsd_main=yes
4391 else
4392   echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ac_cv_lib_bsd_main=no
4395 fi
4396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4398 fi
4399 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4400 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4401 if test $ac_cv_lib_bsd_main = yes; then
4402   cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBBSD 1
4404 _ACEOF
4405
4406   LIBS="-lbsd $LIBS"
4407
4408 fi
4409
4410 fi
4411
4412 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4413 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4414 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   ac_check_lib_save_LIBS=$LIBS
4418 LIBS="-lutil  $LIBS"
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4422
4423 /* Override any gcc2 internal prototype to avoid an error.  */
4424 #ifdef __cplusplus
4425 extern "C"
4426 #endif
4427 /* We use char because int might match the return type of a gcc2
4428    builtin and then its argument prototype would still apply.  */
4429 char setproctitle ();
4430 #ifdef F77_DUMMY_MAIN
4431 #  ifdef __cplusplus
4432      extern "C"
4433 #  endif
4434    int F77_DUMMY_MAIN() { return 1; }
4435 #endif
4436 int
4437 main ()
4438 {
4439 setproctitle ();
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446   (eval $ac_link) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -s conftest$ac_exeext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   ac_cv_lib_util_setproctitle=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 ac_cv_lib_util_setproctitle=no
4461 fi
4462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4463 LIBS=$ac_check_lib_save_LIBS
4464 fi
4465 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4466 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4467 if test $ac_cv_lib_util_setproctitle = yes; then
4468   cat >>confdefs.h <<_ACEOF
4469 #define HAVE_LIBUTIL 1
4470 _ACEOF
4471
4472   LIBS="-lutil $LIBS"
4473
4474 fi
4475
4476
4477 echo "$as_me:$LINENO: checking for main in -lm" >&5
4478 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4479 if test "${ac_cv_lib_m_main+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   ac_check_lib_save_LIBS=$LIBS
4483 LIBS="-lm  $LIBS"
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4486 #include "confdefs.h"
4487
4488
4489 #ifdef F77_DUMMY_MAIN
4490 #  ifdef __cplusplus
4491      extern "C"
4492 #  endif
4493    int F77_DUMMY_MAIN() { return 1; }
4494 #endif
4495 int
4496 main ()
4497 {
4498 main ();
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505   (eval $ac_link) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); } &&
4509          { ac_try='test -s conftest$ac_exeext'
4510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511   (eval $ac_try) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }; }; then
4515   ac_cv_lib_m_main=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 ac_cv_lib_m_main=no
4520 fi
4521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4523 fi
4524 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4525 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4526 if test $ac_cv_lib_m_main = yes; then
4527   cat >>confdefs.h <<_ACEOF
4528 #define HAVE_LIBM 1
4529 _ACEOF
4530
4531   LIBS="-lm $LIBS"
4532
4533 fi
4534
4535
4536 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4537 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4538 if test "${ac_cv_lib_dl_main+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   ac_check_lib_save_LIBS=$LIBS
4542 LIBS="-ldl  $LIBS"
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line $LINENO "configure"
4545 #include "confdefs.h"
4546
4547
4548 #ifdef F77_DUMMY_MAIN
4549 #  ifdef __cplusplus
4550      extern "C"
4551 #  endif
4552    int F77_DUMMY_MAIN() { return 1; }
4553 #endif
4554 int
4555 main ()
4556 {
4557 main ();
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564   (eval $ac_link) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -s conftest$ac_exeext'
4569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570   (eval $ac_try) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   ac_cv_lib_dl_main=yes
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 ac_cv_lib_dl_main=no
4579 fi
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4582 fi
4583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4584 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4585 if test $ac_cv_lib_dl_main = yes; then
4586   cat >>confdefs.h <<_ACEOF
4587 #define HAVE_LIBDL 1
4588 _ACEOF
4589
4590   LIBS="-ldl $LIBS"
4591
4592 fi
4593
4594
4595 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4596 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4597 if test "${ac_cv_lib_nsl_main+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   ac_check_lib_save_LIBS=$LIBS
4601 LIBS="-lnsl  $LIBS"
4602 cat >conftest.$ac_ext <<_ACEOF
4603 #line $LINENO "configure"
4604 #include "confdefs.h"
4605
4606
4607 #ifdef F77_DUMMY_MAIN
4608 #  ifdef __cplusplus
4609      extern "C"
4610 #  endif
4611    int F77_DUMMY_MAIN() { return 1; }
4612 #endif
4613 int
4614 main ()
4615 {
4616 main ();
4617   ;
4618   return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623   (eval $ac_link) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } &&
4627          { ac_try='test -s conftest$ac_exeext'
4628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629   (eval $ac_try) 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }; }; then
4633   ac_cv_lib_nsl_main=yes
4634 else
4635   echo "$as_me: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 ac_cv_lib_nsl_main=no
4638 fi
4639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4640 LIBS=$ac_check_lib_save_LIBS
4641 fi
4642 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4643 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4644 if test $ac_cv_lib_nsl_main = yes; then
4645   cat >>confdefs.h <<_ACEOF
4646 #define HAVE_LIBNSL 1
4647 _ACEOF
4648
4649   LIBS="-lnsl $LIBS"
4650
4651 fi
4652
4653
4654 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4655 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4656 if test "${ac_cv_lib_socket_main+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   ac_check_lib_save_LIBS=$LIBS
4660 LIBS="-lsocket  $LIBS"
4661 cat >conftest.$ac_ext <<_ACEOF
4662 #line $LINENO "configure"
4663 #include "confdefs.h"
4664
4665
4666 #ifdef F77_DUMMY_MAIN
4667 #  ifdef __cplusplus
4668      extern "C"
4669 #  endif
4670    int F77_DUMMY_MAIN() { return 1; }
4671 #endif
4672 int
4673 main ()
4674 {
4675 main ();
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682   (eval $ac_link) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -s conftest$ac_exeext'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   ac_cv_lib_socket_main=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ac_cv_lib_socket_main=no
4697 fi
4698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4699 LIBS=$ac_check_lib_save_LIBS
4700 fi
4701 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4702 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4703 if test $ac_cv_lib_socket_main = yes; then
4704   cat >>confdefs.h <<_ACEOF
4705 #define HAVE_LIBSOCKET 1
4706 _ACEOF
4707
4708   LIBS="-lsocket $LIBS"
4709
4710 fi
4711
4712
4713 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4714 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4715 if test "${ac_cv_lib_ipc_main+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   ac_check_lib_save_LIBS=$LIBS
4719 LIBS="-lipc  $LIBS"
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line $LINENO "configure"
4722 #include "confdefs.h"
4723
4724
4725 #ifdef F77_DUMMY_MAIN
4726 #  ifdef __cplusplus
4727      extern "C"
4728 #  endif
4729    int F77_DUMMY_MAIN() { return 1; }
4730 #endif
4731 int
4732 main ()
4733 {
4734 main ();
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext conftest$ac_exeext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741   (eval $ac_link) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } &&
4745          { ac_try='test -s conftest$ac_exeext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_cv_lib_ipc_main=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 ac_cv_lib_ipc_main=no
4756 fi
4757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4758 LIBS=$ac_check_lib_save_LIBS
4759 fi
4760 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4761 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4762 if test $ac_cv_lib_ipc_main = yes; then
4763   cat >>confdefs.h <<_ACEOF
4764 #define HAVE_LIBIPC 1
4765 _ACEOF
4766
4767   LIBS="-lipc $LIBS"
4768
4769 fi
4770
4771
4772 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4773 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4774 if test "${ac_cv_lib_IPC_main+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   ac_check_lib_save_LIBS=$LIBS
4778 LIBS="-lIPC  $LIBS"
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line $LINENO "configure"
4781 #include "confdefs.h"
4782
4783
4784 #ifdef F77_DUMMY_MAIN
4785 #  ifdef __cplusplus
4786      extern "C"
4787 #  endif
4788    int F77_DUMMY_MAIN() { return 1; }
4789 #endif
4790 int
4791 main ()
4792 {
4793 main ();
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4800   (eval $ac_link) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -s conftest$ac_exeext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_cv_lib_IPC_main=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 ac_cv_lib_IPC_main=no
4815 fi
4816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4820 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4821 if test $ac_cv_lib_IPC_main = yes; then
4822   cat >>confdefs.h <<_ACEOF
4823 #define HAVE_LIBIPC 1
4824 _ACEOF
4825
4826   LIBS="-lIPC $LIBS"
4827
4828 fi
4829
4830
4831 echo "$as_me:$LINENO: checking for main in -llc" >&5
4832 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4833 if test "${ac_cv_lib_lc_main+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   ac_check_lib_save_LIBS=$LIBS
4837 LIBS="-llc  $LIBS"
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841
4842
4843 #ifdef F77_DUMMY_MAIN
4844 #  ifdef __cplusplus
4845      extern "C"
4846 #  endif
4847    int F77_DUMMY_MAIN() { return 1; }
4848 #endif
4849 int
4850 main ()
4851 {
4852 main ();
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext conftest$ac_exeext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859   (eval $ac_link) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); } &&
4863          { ac_try='test -s conftest$ac_exeext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_cv_lib_lc_main=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 ac_cv_lib_lc_main=no
4874 fi
4875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4876 LIBS=$ac_check_lib_save_LIBS
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4879 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4880 if test $ac_cv_lib_lc_main = yes; then
4881   cat >>confdefs.h <<_ACEOF
4882 #define HAVE_LIBLC 1
4883 _ACEOF
4884
4885   LIBS="-llc $LIBS"
4886
4887 fi
4888
4889
4890 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4891 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4892 if test "${ac_cv_lib_dld_main+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   ac_check_lib_save_LIBS=$LIBS
4896 LIBS="-ldld  $LIBS"
4897 cat >conftest.$ac_ext <<_ACEOF
4898 #line $LINENO "configure"
4899 #include "confdefs.h"
4900
4901
4902 #ifdef F77_DUMMY_MAIN
4903 #  ifdef __cplusplus
4904      extern "C"
4905 #  endif
4906    int F77_DUMMY_MAIN() { return 1; }
4907 #endif
4908 int
4909 main ()
4910 {
4911 main ();
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4918   (eval $ac_link) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -s conftest$ac_exeext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_cv_lib_dld_main=yes
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4932 ac_cv_lib_dld_main=no
4933 fi
4934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4935 LIBS=$ac_check_lib_save_LIBS
4936 fi
4937 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4938 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4939 if test $ac_cv_lib_dld_main = yes; then
4940   cat >>confdefs.h <<_ACEOF
4941 #define HAVE_LIBDLD 1
4942 _ACEOF
4943
4944   LIBS="-ldld $LIBS"
4945
4946 fi
4947
4948
4949 echo "$as_me:$LINENO: checking for main in -lld" >&5
4950 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4951 if test "${ac_cv_lib_ld_main+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   ac_check_lib_save_LIBS=$LIBS
4955 LIBS="-lld  $LIBS"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 #include "confdefs.h"
4959
4960
4961 #ifdef F77_DUMMY_MAIN
4962 #  ifdef __cplusplus
4963      extern "C"
4964 #  endif
4965    int F77_DUMMY_MAIN() { return 1; }
4966 #endif
4967 int
4968 main ()
4969 {
4970 main ();
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext conftest$ac_exeext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4977   (eval $ac_link) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } &&
4981          { ac_try='test -s conftest$ac_exeext'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   ac_cv_lib_ld_main=yes
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 ac_cv_lib_ld_main=no
4992 fi
4993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4994 LIBS=$ac_check_lib_save_LIBS
4995 fi
4996 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4997 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4998 if test $ac_cv_lib_ld_main = yes; then
4999   cat >>confdefs.h <<_ACEOF
5000 #define HAVE_LIBLD 1
5001 _ACEOF
5002
5003   LIBS="-lld $LIBS"
5004
5005 fi
5006
5007
5008 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5009 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5010 if test "${ac_cv_lib_compat_main+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   ac_check_lib_save_LIBS=$LIBS
5014 LIBS="-lcompat  $LIBS"
5015 cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 #include "confdefs.h"
5018
5019
5020 #ifdef F77_DUMMY_MAIN
5021 #  ifdef __cplusplus
5022      extern "C"
5023 #  endif
5024    int F77_DUMMY_MAIN() { return 1; }
5025 #endif
5026 int
5027 main ()
5028 {
5029 main ();
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036   (eval $ac_link) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -s conftest$ac_exeext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_lib_compat_main=yes
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5050 ac_cv_lib_compat_main=no
5051 fi
5052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5053 LIBS=$ac_check_lib_save_LIBS
5054 fi
5055 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5056 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5057 if test $ac_cv_lib_compat_main = yes; then
5058   cat >>confdefs.h <<_ACEOF
5059 #define HAVE_LIBCOMPAT 1
5060 _ACEOF
5061
5062   LIBS="-lcompat $LIBS"
5063
5064 fi
5065
5066
5067 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5068 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5069 if test "${ac_cv_lib_BSD_main+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   ac_check_lib_save_LIBS=$LIBS
5073 LIBS="-lBSD  $LIBS"
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077
5078
5079 #ifdef F77_DUMMY_MAIN
5080 #  ifdef __cplusplus
5081      extern "C"
5082 #  endif
5083    int F77_DUMMY_MAIN() { return 1; }
5084 #endif
5085 int
5086 main ()
5087 {
5088 main ();
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095   (eval $ac_link) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -s conftest$ac_exeext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_cv_lib_BSD_main=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5109 ac_cv_lib_BSD_main=no
5110 fi
5111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5113 fi
5114 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5115 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5116 if test $ac_cv_lib_BSD_main = yes; then
5117   cat >>confdefs.h <<_ACEOF
5118 #define HAVE_LIBBSD 1
5119 _ACEOF
5120
5121   LIBS="-lBSD $LIBS"
5122
5123 fi
5124
5125
5126 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5127 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5128 if test "${ac_cv_lib_gen_main+set}" = set; then
5129   echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131   ac_check_lib_save_LIBS=$LIBS
5132 LIBS="-lgen  $LIBS"
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5135 #include "confdefs.h"
5136
5137
5138 #ifdef F77_DUMMY_MAIN
5139 #  ifdef __cplusplus
5140      extern "C"
5141 #  endif
5142    int F77_DUMMY_MAIN() { return 1; }
5143 #endif
5144 int
5145 main ()
5146 {
5147 main ();
5148   ;
5149   return 0;
5150 }
5151 _ACEOF
5152 rm -f conftest.$ac_objext conftest$ac_exeext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154   (eval $ac_link) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } &&
5158          { ac_try='test -s conftest$ac_exeext'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; }; then
5164   ac_cv_lib_gen_main=yes
5165 else
5166   echo "$as_me: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 ac_cv_lib_gen_main=no
5169 fi
5170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5172 fi
5173 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5174 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5175 if test $ac_cv_lib_gen_main = yes; then
5176   cat >>confdefs.h <<_ACEOF
5177 #define HAVE_LIBGEN 1
5178 _ACEOF
5179
5180   LIBS="-lgen $LIBS"
5181
5182 fi
5183
5184
5185 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5186 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5187 if test "${ac_cv_lib_PW_main+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-lPW  $LIBS"
5192 cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 #include "confdefs.h"
5195
5196
5197 #ifdef F77_DUMMY_MAIN
5198 #  ifdef __cplusplus
5199      extern "C"
5200 #  endif
5201    int F77_DUMMY_MAIN() { return 1; }
5202 #endif
5203 int
5204 main ()
5205 {
5206 main ();
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213   (eval $ac_link) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); } &&
5217          { ac_try='test -s conftest$ac_exeext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   ac_cv_lib_PW_main=yes
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5227 ac_cv_lib_PW_main=no
5228 fi
5229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5230 LIBS=$ac_check_lib_save_LIBS
5231 fi
5232 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5233 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5234 if test $ac_cv_lib_PW_main = yes; then
5235   cat >>confdefs.h <<_ACEOF
5236 #define HAVE_LIBPW 1
5237 _ACEOF
5238
5239   LIBS="-lPW $LIBS"
5240
5241 fi
5242
5243
5244 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5245 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5246 if test "${ac_cv_lib_resolv_main+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lresolv  $LIBS"
5251 cat >conftest.$ac_ext <<_ACEOF
5252 #line $LINENO "configure"
5253 #include "confdefs.h"
5254
5255
5256 #ifdef F77_DUMMY_MAIN
5257 #  ifdef __cplusplus
5258      extern "C"
5259 #  endif
5260    int F77_DUMMY_MAIN() { return 1; }
5261 #endif
5262 int
5263 main ()
5264 {
5265 main ();
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272   (eval $ac_link) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -s conftest$ac_exeext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_cv_lib_resolv_main=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 ac_cv_lib_resolv_main=no
5287 fi
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5292 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5293 if test $ac_cv_lib_resolv_main = yes; then
5294   cat >>confdefs.h <<_ACEOF
5295 #define HAVE_LIBRESOLV 1
5296 _ACEOF
5297
5298   LIBS="-lresolv $LIBS"
5299
5300 fi
5301
5302 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5303 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5304 if test "${ac_cv_search_getopt_long+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   ac_func_search_save_LIBS=$LIBS
5308 ac_cv_search_getopt_long=no
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line $LINENO "configure"
5311 #include "confdefs.h"
5312
5313 /* Override any gcc2 internal prototype to avoid an error.  */
5314 #ifdef __cplusplus
5315 extern "C"
5316 #endif
5317 /* We use char because int might match the return type of a gcc2
5318    builtin and then its argument prototype would still apply.  */
5319 char getopt_long ();
5320 #ifdef F77_DUMMY_MAIN
5321 #  ifdef __cplusplus
5322      extern "C"
5323 #  endif
5324    int F77_DUMMY_MAIN() { return 1; }
5325 #endif
5326 int
5327 main ()
5328 {
5329 getopt_long ();
5330   ;
5331   return 0;
5332 }
5333 _ACEOF
5334 rm -f conftest.$ac_objext conftest$ac_exeext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336   (eval $ac_link) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -s conftest$ac_exeext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_cv_search_getopt_long="none required"
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 fi
5351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5352 if test "$ac_cv_search_getopt_long" = no; then
5353   for ac_lib in getopt gnugetopt; do
5354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5355     cat >conftest.$ac_ext <<_ACEOF
5356 #line $LINENO "configure"
5357 #include "confdefs.h"
5358
5359 /* Override any gcc2 internal prototype to avoid an error.  */
5360 #ifdef __cplusplus
5361 extern "C"
5362 #endif
5363 /* We use char because int might match the return type of a gcc2
5364    builtin and then its argument prototype would still apply.  */
5365 char getopt_long ();
5366 #ifdef F77_DUMMY_MAIN
5367 #  ifdef __cplusplus
5368      extern "C"
5369 #  endif
5370    int F77_DUMMY_MAIN() { return 1; }
5371 #endif
5372 int
5373 main ()
5374 {
5375 getopt_long ();
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5382   (eval $ac_link) 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } &&
5386          { ac_try='test -s conftest$ac_exeext'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; }; then
5392   ac_cv_search_getopt_long="-l$ac_lib"
5393 break
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 fi
5398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5399   done
5400 fi
5401 LIBS=$ac_func_search_save_LIBS
5402 fi
5403 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5404 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5405 if test "$ac_cv_search_getopt_long" != no; then
5406   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5407
5408 fi
5409
5410 # QNX:
5411
5412 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5413 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5414 if test "${ac_cv_lib_unix_main+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   ac_check_lib_save_LIBS=$LIBS
5418 LIBS="-lunix  $LIBS"
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5421 #include "confdefs.h"
5422
5423
5424 #ifdef F77_DUMMY_MAIN
5425 #  ifdef __cplusplus
5426      extern "C"
5427 #  endif
5428    int F77_DUMMY_MAIN() { return 1; }
5429 #endif
5430 int
5431 main ()
5432 {
5433 main ();
5434   ;
5435   return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5440   (eval $ac_link) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -s conftest$ac_exeext'
5445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446   (eval $ac_try) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); }; }; then
5450   ac_cv_lib_unix_main=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 ac_cv_lib_unix_main=no
5455 fi
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_check_lib_save_LIBS
5458 fi
5459 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5460 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5461 if test $ac_cv_lib_unix_main = yes; then
5462   cat >>confdefs.h <<_ACEOF
5463 #define HAVE_LIBUNIX 1
5464 _ACEOF
5465
5466   LIBS="-lunix $LIBS"
5467
5468 fi
5469
5470 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5471 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5472 if test "${ac_cv_search_crypt+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   ac_func_search_save_LIBS=$LIBS
5476 ac_cv_search_crypt=no
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 #include "confdefs.h"
5480
5481 /* Override any gcc2 internal prototype to avoid an error.  */
5482 #ifdef __cplusplus
5483 extern "C"
5484 #endif
5485 /* We use char because int might match the return type of a gcc2
5486    builtin and then its argument prototype would still apply.  */
5487 char crypt ();
5488 #ifdef F77_DUMMY_MAIN
5489 #  ifdef __cplusplus
5490      extern "C"
5491 #  endif
5492    int F77_DUMMY_MAIN() { return 1; }
5493 #endif
5494 int
5495 main ()
5496 {
5497 crypt ();
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504   (eval $ac_link) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } &&
5508          { ac_try='test -s conftest$ac_exeext'
5509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510   (eval $ac_try) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }; }; then
5514   ac_cv_search_crypt="none required"
5515 else
5516   echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5518 fi
5519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520 if test "$ac_cv_search_crypt" = no; then
5521   for ac_lib in crypt; do
5522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5523     cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 #include "confdefs.h"
5526
5527 /* Override any gcc2 internal prototype to avoid an error.  */
5528 #ifdef __cplusplus
5529 extern "C"
5530 #endif
5531 /* We use char because int might match the return type of a gcc2
5532    builtin and then its argument prototype would still apply.  */
5533 char crypt ();
5534 #ifdef F77_DUMMY_MAIN
5535 #  ifdef __cplusplus
5536      extern "C"
5537 #  endif
5538    int F77_DUMMY_MAIN() { return 1; }
5539 #endif
5540 int
5541 main ()
5542 {
5543 crypt ();
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550   (eval $ac_link) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } &&
5554          { ac_try='test -s conftest$ac_exeext'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   ac_cv_search_crypt="-l$ac_lib"
5561 break
5562 else
5563   echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 fi
5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5567   done
5568 fi
5569 LIBS=$ac_func_search_save_LIBS
5570 fi
5571 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5572 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5573 if test "$ac_cv_search_crypt" != no; then
5574   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5575
5576 fi
5577
5578 # BeOS:
5579 if test "$PORTNAME" = "beos"
5580 then
5581
5582 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5583 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5584 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lbind  $LIBS"
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5592
5593 /* Override any gcc2 internal prototype to avoid an error.  */
5594 #ifdef __cplusplus
5595 extern "C"
5596 #endif
5597 /* We use char because int might match the return type of a gcc2
5598    builtin and then its argument prototype would still apply.  */
5599 char __inet_ntoa ();
5600 #ifdef F77_DUMMY_MAIN
5601 #  ifdef __cplusplus
5602      extern "C"
5603 #  endif
5604    int F77_DUMMY_MAIN() { return 1; }
5605 #endif
5606 int
5607 main ()
5608 {
5609 __inet_ntoa ();
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext conftest$ac_exeext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5616   (eval $ac_link) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -s conftest$ac_exeext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   ac_cv_lib_bind___inet_ntoa=yes
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 ac_cv_lib_bind___inet_ntoa=no
5631 fi
5632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5633 LIBS=$ac_check_lib_save_LIBS
5634 fi
5635 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5636 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5637 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5638   cat >>confdefs.h <<_ACEOF
5639 #define HAVE_LIBBIND 1
5640 _ACEOF
5641
5642   LIBS="-lbind $LIBS"
5643
5644 fi
5645
5646 fi
5647 # Solaris:
5648 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5649 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5650 if test "${ac_cv_search_fdatasync+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   ac_func_search_save_LIBS=$LIBS
5654 ac_cv_search_fdatasync=no
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5657 #include "confdefs.h"
5658
5659 /* Override any gcc2 internal prototype to avoid an error.  */
5660 #ifdef __cplusplus
5661 extern "C"
5662 #endif
5663 /* We use char because int might match the return type of a gcc2
5664    builtin and then its argument prototype would still apply.  */
5665 char fdatasync ();
5666 #ifdef F77_DUMMY_MAIN
5667 #  ifdef __cplusplus
5668      extern "C"
5669 #  endif
5670    int F77_DUMMY_MAIN() { return 1; }
5671 #endif
5672 int
5673 main ()
5674 {
5675 fdatasync ();
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682   (eval $ac_link) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest$ac_exeext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_cv_search_fdatasync="none required"
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 fi
5697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5698 if test "$ac_cv_search_fdatasync" = no; then
5699   for ac_lib in rt posix4; do
5700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5701     cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5704
5705 /* Override any gcc2 internal prototype to avoid an error.  */
5706 #ifdef __cplusplus
5707 extern "C"
5708 #endif
5709 /* We use char because int might match the return type of a gcc2
5710    builtin and then its argument prototype would still apply.  */
5711 char fdatasync ();
5712 #ifdef F77_DUMMY_MAIN
5713 #  ifdef __cplusplus
5714      extern "C"
5715 #  endif
5716    int F77_DUMMY_MAIN() { return 1; }
5717 #endif
5718 int
5719 main ()
5720 {
5721 fdatasync ();
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728   (eval $ac_link) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -s conftest$ac_exeext'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738   ac_cv_search_fdatasync="-l$ac_lib"
5739 break
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5743 fi
5744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5745   done
5746 fi
5747 LIBS=$ac_func_search_save_LIBS
5748 fi
5749 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5750 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5751 if test "$ac_cv_search_fdatasync" != no; then
5752   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5753
5754 fi
5755
5756 # Cygwin:
5757
5758 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5759 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5760 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   ac_check_lib_save_LIBS=$LIBS
5764 LIBS="-lcygipc  $LIBS"
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 #include "confdefs.h"
5768
5769 /* Override any gcc2 internal prototype to avoid an error.  */
5770 #ifdef __cplusplus
5771 extern "C"
5772 #endif
5773 /* We use char because int might match the return type of a gcc2
5774    builtin and then its argument prototype would still apply.  */
5775 char shmget ();
5776 #ifdef F77_DUMMY_MAIN
5777 #  ifdef __cplusplus
5778      extern "C"
5779 #  endif
5780    int F77_DUMMY_MAIN() { return 1; }
5781 #endif
5782 int
5783 main ()
5784 {
5785 shmget ();
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792   (eval $ac_link) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); } &&
5796          { ac_try='test -s conftest$ac_exeext'
5797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798   (eval $ac_try) 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; }; then
5802   ac_cv_lib_cygipc_shmget=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 ac_cv_lib_cygipc_shmget=no
5807 fi
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_check_lib_save_LIBS
5810 fi
5811 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5812 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5813 if test $ac_cv_lib_cygipc_shmget = yes; then
5814   cat >>confdefs.h <<_ACEOF
5815 #define HAVE_LIBCYGIPC 1
5816 _ACEOF
5817
5818   LIBS="-lcygipc $LIBS"
5819
5820 fi
5821
5822 # WIN32:
5823 if test "$PORTNAME" = "win32"
5824 then
5825
5826 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5827 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5828 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-lwsock32  $LIBS"
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 #include "confdefs.h"
5836
5837
5838 #ifdef F77_DUMMY_MAIN
5839 #  ifdef __cplusplus
5840      extern "C"
5841 #  endif
5842    int F77_DUMMY_MAIN() { return 1; }
5843 #endif
5844 int
5845 main ()
5846 {
5847 main ();
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854   (eval $ac_link) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -s conftest$ac_exeext'
5859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860   (eval $ac_try) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; }; then
5864   ac_cv_lib_wsock32_main=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_lib_wsock32_main=no
5869 fi
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 LIBS=$ac_check_lib_save_LIBS
5872 fi
5873 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5874 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5875 if test $ac_cv_lib_wsock32_main = yes; then
5876   cat >>confdefs.h <<_ACEOF
5877 #define HAVE_LIBWSOCK32 1
5878 _ACEOF
5879
5880   LIBS="-lwsock32 $LIBS"
5881
5882 fi
5883
5884 fi
5885
5886 if test "$with_readline" = yes; then
5887
5888 echo "$as_me:$LINENO: checking for readline" >&5
5889 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5890
5891 if test "${pgac_cv_check_readline+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   pgac_cv_check_readline=no
5895 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5896   for pgac_rllib in -lreadline -ledit ; do
5897     pgac_save_LIBS=$LIBS
5898     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5899     cat >conftest.$ac_ext <<_ACEOF
5900 #line $LINENO "configure"
5901 #include "confdefs.h"
5902
5903 /* Override any gcc2 internal prototype to avoid an error.  */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 /* We use char because int might match the return type of a gcc2
5908    builtin and then its argument prototype would still apply.  */
5909 char readline ();
5910 #ifdef F77_DUMMY_MAIN
5911 #  ifdef __cplusplus
5912      extern "C"
5913 #  endif
5914    int F77_DUMMY_MAIN() { return 1; }
5915 #endif
5916 int
5917 main ()
5918 {
5919 readline ();
5920   ;
5921   return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926   (eval $ac_link) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -s conftest$ac_exeext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936
5937       # NetBSD and OpenBSD have a broken linker that does not
5938       # recognize dependent libraries
5939       case $host_os in netbsd* | openbsd* )
5940         case $pgac_lib in
5941           *curses*) ;;
5942           *) pgac_lib=" -lcurses" ;;
5943         esac
5944       esac
5945
5946       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5947       break 2
5948
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 fi
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954     LIBS=$pgac_save_LIBS
5955   done
5956 done
5957 LIBS=$pgac_save_LIBS
5958
5959 fi
5960
5961 if test "$pgac_cv_check_readline" != no ; then
5962
5963 cat >>confdefs.h <<\_ACEOF
5964 #define HAVE_LIBREADLINE 1
5965 _ACEOF
5966
5967   LIBS="$pgac_cv_check_readline $LIBS"
5968   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5969 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5970 else
5971   echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5973 fi
5974   if test x"$pgac_cv_check_readline" = x"no"; then
5975     { { echo "$as_me:$LINENO: error: readline library not found
5976 If you have readline already installed, see config.log for details on the
5977 failure.  It is possible the compiler isn't looking in the proper directory.
5978 Use --without-readline to disable readline support." >&5
5979 echo "$as_me: error: readline library not found
5980 If you have readline already installed, see config.log for details on the
5981 failure.  It is possible the compiler isn't looking in the proper directory.
5982 Use --without-readline to disable readline support." >&2;}
5983    { (exit 1); exit 1; }; }
5984   fi
5985 fi
5986
5987 if test "$with_zlib" = yes; then
5988
5989 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5990 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5991 if test "${ac_cv_lib_z_inflate+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   ac_check_lib_save_LIBS=$LIBS
5995 LIBS="-lz  $LIBS"
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
5999
6000 /* Override any gcc2 internal prototype to avoid an error.  */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 /* We use char because int might match the return type of a gcc2
6005    builtin and then its argument prototype would still apply.  */
6006 char inflate ();
6007 #ifdef F77_DUMMY_MAIN
6008 #  ifdef __cplusplus
6009      extern "C"
6010 #  endif
6011    int F77_DUMMY_MAIN() { return 1; }
6012 #endif
6013 int
6014 main ()
6015 {
6016 inflate ();
6017   ;
6018   return 0;
6019 }
6020 _ACEOF
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023   (eval $ac_link) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); } &&
6027          { ac_try='test -s conftest$ac_exeext'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; }; then
6033   ac_cv_lib_z_inflate=yes
6034 else
6035   echo "$as_me: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6037 ac_cv_lib_z_inflate=no
6038 fi
6039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6040 LIBS=$ac_check_lib_save_LIBS
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6043 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6044 if test $ac_cv_lib_z_inflate = yes; then
6045   cat >>confdefs.h <<_ACEOF
6046 #define HAVE_LIBZ 1
6047 _ACEOF
6048
6049   LIBS="-lz $LIBS"
6050
6051 else
6052   { { echo "$as_me:$LINENO: error: zlib library not found
6053 If you have zlib already installed, see config.log for details on the
6054 failure.  It is possible the compiler isn't looking in the proper directory.
6055 Use --without-zlib to disable zlib support." >&5
6056 echo "$as_me: error: zlib library not found
6057 If you have zlib already installed, see config.log for details on the
6058 failure.  It is possible the compiler isn't looking in the proper directory.
6059 Use --without-zlib to disable zlib support." >&2;}
6060    { (exit 1); exit 1; }; }
6061 fi
6062
6063 fi
6064
6065 if test "$with_krb4" = yes ; then
6066
6067 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6068 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6069 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   ac_check_lib_save_LIBS=$LIBS
6073 LIBS="-ldes  $LIBS"
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line $LINENO "configure"
6076 #include "confdefs.h"
6077
6078 /* Override any gcc2 internal prototype to avoid an error.  */
6079 #ifdef __cplusplus
6080 extern "C"
6081 #endif
6082 /* We use char because int might match the return type of a gcc2
6083    builtin and then its argument prototype would still apply.  */
6084 char des_encrypt ();
6085 #ifdef F77_DUMMY_MAIN
6086 #  ifdef __cplusplus
6087      extern "C"
6088 #  endif
6089    int F77_DUMMY_MAIN() { return 1; }
6090 #endif
6091 int
6092 main ()
6093 {
6094 des_encrypt ();
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext conftest$ac_exeext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101   (eval $ac_link) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -s conftest$ac_exeext'
6106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107   (eval $ac_try) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; }; then
6111   ac_cv_lib_des_des_encrypt=yes
6112 else
6113   echo "$as_me: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 ac_cv_lib_des_des_encrypt=no
6116 fi
6117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6118 LIBS=$ac_check_lib_save_LIBS
6119 fi
6120 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6121 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6122 if test $ac_cv_lib_des_des_encrypt = yes; then
6123   cat >>confdefs.h <<_ACEOF
6124 #define HAVE_LIBDES 1
6125 _ACEOF
6126
6127   LIBS="-ldes $LIBS"
6128
6129 else
6130   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6131 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6132    { (exit 1); exit 1; }; }
6133 fi
6134
6135
6136 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6137 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6138 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   ac_check_lib_save_LIBS=$LIBS
6142 LIBS="-lkrb  $LIBS"
6143 cat >conftest.$ac_ext <<_ACEOF
6144 #line $LINENO "configure"
6145 #include "confdefs.h"
6146
6147 /* Override any gcc2 internal prototype to avoid an error.  */
6148 #ifdef __cplusplus
6149 extern "C"
6150 #endif
6151 /* We use char because int might match the return type of a gcc2
6152    builtin and then its argument prototype would still apply.  */
6153 char krb_sendauth ();
6154 #ifdef F77_DUMMY_MAIN
6155 #  ifdef __cplusplus
6156      extern "C"
6157 #  endif
6158    int F77_DUMMY_MAIN() { return 1; }
6159 #endif
6160 int
6161 main ()
6162 {
6163 krb_sendauth ();
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170   (eval $ac_link) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -s conftest$ac_exeext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   ac_cv_lib_krb_krb_sendauth=yes
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 ac_cv_lib_krb_krb_sendauth=no
6185 fi
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6188 fi
6189 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6190 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6191 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6192   cat >>confdefs.h <<_ACEOF
6193 #define HAVE_LIBKRB 1
6194 _ACEOF
6195
6196   LIBS="-lkrb $LIBS"
6197
6198 else
6199   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6200 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6201    { (exit 1); exit 1; }; }
6202 fi
6203
6204
6205 for ac_func in gethostname
6206 do
6207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208 echo "$as_me:$LINENO: checking for $ac_func" >&5
6209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_var+set}\" = set"; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 #line $LINENO "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217     which can conflict with char $ac_func (); below.  */
6218 #include <assert.h>
6219 /* Override any gcc2 internal prototype to avoid an error.  */
6220 #ifdef __cplusplus
6221 extern "C"
6222 #endif
6223 /* We use char because int might match the return type of a gcc2
6224    builtin and then its argument prototype would still apply.  */
6225 char $ac_func ();
6226 char (*f) ();
6227
6228 #ifdef F77_DUMMY_MAIN
6229 #  ifdef __cplusplus
6230      extern "C"
6231 #  endif
6232    int F77_DUMMY_MAIN() { return 1; }
6233 #endif
6234 int
6235 main ()
6236 {
6237 /* The GNU C library defines this for functions which it implements
6238     to always fail with ENOSYS.  Some functions are actually named
6239     something starting with __ and the normal name is an alias.  */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 choke me
6242 #else
6243 f = $ac_func;
6244 #endif
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252   (eval $ac_link) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } &&
6256          { ac_try='test -s conftest$ac_exeext'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; }; then
6262   eval "$as_ac_var=yes"
6263 else
6264   echo "$as_me: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6266 eval "$as_ac_var=no"
6267 fi
6268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6269 fi
6270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6272 if test `eval echo '${'$as_ac_var'}'` = yes; then
6273   cat >>confdefs.h <<_ACEOF
6274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6275 _ACEOF
6276
6277 else
6278   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6279 fi
6280 done
6281
6282
6283 fi
6284
6285 if test "$with_krb5" = yes ; then
6286   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6287 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6288 if test "${ac_cv_search_com_err+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   ac_func_search_save_LIBS=$LIBS
6292 ac_cv_search_com_err=no
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line $LINENO "configure"
6295 #include "confdefs.h"
6296
6297 /* Override any gcc2 internal prototype to avoid an error.  */
6298 #ifdef __cplusplus
6299 extern "C"
6300 #endif
6301 /* We use char because int might match the return type of a gcc2
6302    builtin and then its argument prototype would still apply.  */
6303 char com_err ();
6304 #ifdef F77_DUMMY_MAIN
6305 #  ifdef __cplusplus
6306      extern "C"
6307 #  endif
6308    int F77_DUMMY_MAIN() { return 1; }
6309 #endif
6310 int
6311 main ()
6312 {
6313 com_err ();
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320   (eval $ac_link) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest$ac_exeext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_cv_search_com_err="none required"
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6334 fi
6335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6336 if test "$ac_cv_search_com_err" = no; then
6337   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6339     cat >conftest.$ac_ext <<_ACEOF
6340 #line $LINENO "configure"
6341 #include "confdefs.h"
6342
6343 /* Override any gcc2 internal prototype to avoid an error.  */
6344 #ifdef __cplusplus
6345 extern "C"
6346 #endif
6347 /* We use char because int might match the return type of a gcc2
6348    builtin and then its argument prototype would still apply.  */
6349 char com_err ();
6350 #ifdef F77_DUMMY_MAIN
6351 #  ifdef __cplusplus
6352      extern "C"
6353 #  endif
6354    int F77_DUMMY_MAIN() { return 1; }
6355 #endif
6356 int
6357 main ()
6358 {
6359 com_err ();
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext conftest$ac_exeext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366   (eval $ac_link) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); } &&
6370          { ac_try='test -s conftest$ac_exeext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   ac_cv_search_com_err="-l$ac_lib"
6377 break
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 fi
6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6383   done
6384 fi
6385 LIBS=$ac_func_search_save_LIBS
6386 fi
6387 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6388 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6389 if test "$ac_cv_search_com_err" != no; then
6390   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6391
6392 else
6393   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6394 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6395    { (exit 1); exit 1; }; }
6396 fi
6397
6398   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6399 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6400 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403   ac_func_search_save_LIBS=$LIBS
6404 ac_cv_search_krb5_encrypt=no
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6408
6409 /* Override any gcc2 internal prototype to avoid an error.  */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414    builtin and then its argument prototype would still apply.  */
6415 char krb5_encrypt ();
6416 #ifdef F77_DUMMY_MAIN
6417 #  ifdef __cplusplus
6418      extern "C"
6419 #  endif
6420    int F77_DUMMY_MAIN() { return 1; }
6421 #endif
6422 int
6423 main ()
6424 {
6425 krb5_encrypt ();
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 rm -f conftest.$ac_objext conftest$ac_exeext
6431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6432   (eval $ac_link) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -s conftest$ac_exeext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_cv_search_krb5_encrypt="none required"
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6446 fi
6447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 if test "$ac_cv_search_krb5_encrypt" = no; then
6449   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6450     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6451     cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6454
6455 /* Override any gcc2 internal prototype to avoid an error.  */
6456 #ifdef __cplusplus
6457 extern "C"
6458 #endif
6459 /* We use char because int might match the return type of a gcc2
6460    builtin and then its argument prototype would still apply.  */
6461 char krb5_encrypt ();
6462 #ifdef F77_DUMMY_MAIN
6463 #  ifdef __cplusplus
6464      extern "C"
6465 #  endif
6466    int F77_DUMMY_MAIN() { return 1; }
6467 #endif
6468 int
6469 main ()
6470 {
6471 krb5_encrypt ();
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478   (eval $ac_link) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } &&
6482          { ac_try='test -s conftest$ac_exeext'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; }; then
6488   ac_cv_search_krb5_encrypt="-l$ac_lib"
6489 break
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 fi
6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6495   done
6496 fi
6497 LIBS=$ac_func_search_save_LIBS
6498 fi
6499 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6500 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6501 if test "$ac_cv_search_krb5_encrypt" != no; then
6502   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6503
6504 else
6505   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6506 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6507    { (exit 1); exit 1; }; }
6508 fi
6509
6510   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6511 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6512 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_func_search_save_LIBS=$LIBS
6516 ac_cv_search_krb5_sendauth=no
6517 cat >conftest.$ac_ext <<_ACEOF
6518 #line $LINENO "configure"
6519 #include "confdefs.h"
6520
6521 /* Override any gcc2 internal prototype to avoid an error.  */
6522 #ifdef __cplusplus
6523 extern "C"
6524 #endif
6525 /* We use char because int might match the return type of a gcc2
6526    builtin and then its argument prototype would still apply.  */
6527 char krb5_sendauth ();
6528 #ifdef F77_DUMMY_MAIN
6529 #  ifdef __cplusplus
6530      extern "C"
6531 #  endif
6532    int F77_DUMMY_MAIN() { return 1; }
6533 #endif
6534 int
6535 main ()
6536 {
6537 krb5_sendauth ();
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544   (eval $ac_link) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -s conftest$ac_exeext'
6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550   (eval $ac_try) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }; }; then
6554   ac_cv_search_krb5_sendauth="none required"
6555 else
6556   echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 fi
6559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6560 if test "$ac_cv_search_krb5_sendauth" = no; then
6561   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6563     cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 #include "confdefs.h"
6566
6567 /* Override any gcc2 internal prototype to avoid an error.  */
6568 #ifdef __cplusplus
6569 extern "C"
6570 #endif
6571 /* We use char because int might match the return type of a gcc2
6572    builtin and then its argument prototype would still apply.  */
6573 char krb5_sendauth ();
6574 #ifdef F77_DUMMY_MAIN
6575 #  ifdef __cplusplus
6576      extern "C"
6577 #  endif
6578    int F77_DUMMY_MAIN() { return 1; }
6579 #endif
6580 int
6581 main ()
6582 {
6583 krb5_sendauth ();
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6590   (eval $ac_link) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); } &&
6594          { ac_try='test -s conftest$ac_exeext'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; }; then
6600   ac_cv_search_krb5_sendauth="-l$ac_lib"
6601 break
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 fi
6606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6607   done
6608 fi
6609 LIBS=$ac_func_search_save_LIBS
6610 fi
6611 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6612 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6613 if test "$ac_cv_search_krb5_sendauth" != no; then
6614   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6615
6616 else
6617   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6618 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6619    { (exit 1); exit 1; }; }
6620 fi
6621
6622 fi
6623
6624 if test "$with_openssl" = yes ; then
6625
6626 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6627 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6628 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   ac_check_lib_save_LIBS=$LIBS
6632 LIBS="-lcrypto  $LIBS"
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6636
6637 /* Override any gcc2 internal prototype to avoid an error.  */
6638 #ifdef __cplusplus
6639 extern "C"
6640 #endif
6641 /* We use char because int might match the return type of a gcc2
6642    builtin and then its argument prototype would still apply.  */
6643 char CRYPTO_new_ex_data ();
6644 #ifdef F77_DUMMY_MAIN
6645 #  ifdef __cplusplus
6646      extern "C"
6647 #  endif
6648    int F77_DUMMY_MAIN() { return 1; }
6649 #endif
6650 int
6651 main ()
6652 {
6653 CRYPTO_new_ex_data ();
6654   ;
6655   return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext conftest$ac_exeext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6660   (eval $ac_link) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); } &&
6664          { ac_try='test -s conftest$ac_exeext'
6665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666   (eval $ac_try) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); }; }; then
6670   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6671 else
6672   echo "$as_me: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677 LIBS=$ac_check_lib_save_LIBS
6678 fi
6679 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6680 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6681 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6682   cat >>confdefs.h <<_ACEOF
6683 #define HAVE_LIBCRYPTO 1
6684 _ACEOF
6685
6686   LIBS="-lcrypto $LIBS"
6687
6688 else
6689   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6690 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6691    { (exit 1); exit 1; }; }
6692 fi
6693
6694
6695 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6696 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6697 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   ac_check_lib_save_LIBS=$LIBS
6701 LIBS="-lssl  $LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6705
6706 /* Override any gcc2 internal prototype to avoid an error.  */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 /* We use char because int might match the return type of a gcc2
6711    builtin and then its argument prototype would still apply.  */
6712 char SSL_library_init ();
6713 #ifdef F77_DUMMY_MAIN
6714 #  ifdef __cplusplus
6715      extern "C"
6716 #  endif
6717    int F77_DUMMY_MAIN() { return 1; }
6718 #endif
6719 int
6720 main ()
6721 {
6722 SSL_library_init ();
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729   (eval $ac_link) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -s conftest$ac_exeext'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; }; then
6739   ac_cv_lib_ssl_SSL_library_init=yes
6740 else
6741   echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_lib_ssl_SSL_library_init=no
6744 fi
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6747 fi
6748 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6749 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6750 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6751   cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBSSL 1
6753 _ACEOF
6754
6755   LIBS="-lssl $LIBS"
6756
6757 else
6758   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6759 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6760    { (exit 1); exit 1; }; }
6761 fi
6762
6763 fi
6764
6765 if test "$with_pam" = yes ; then
6766
6767 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6768 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6769 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   ac_check_lib_save_LIBS=$LIBS
6773 LIBS="-lpam  $LIBS"
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 #include "confdefs.h"
6777
6778 /* Override any gcc2 internal prototype to avoid an error.  */
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783    builtin and then its argument prototype would still apply.  */
6784 char pam_start ();
6785 #ifdef F77_DUMMY_MAIN
6786 #  ifdef __cplusplus
6787      extern "C"
6788 #  endif
6789    int F77_DUMMY_MAIN() { return 1; }
6790 #endif
6791 int
6792 main ()
6793 {
6794 pam_start ();
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801   (eval $ac_link) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); } &&
6805          { ac_try='test -s conftest$ac_exeext'
6806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; }; then
6811   ac_cv_lib_pam_pam_start=yes
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 ac_cv_lib_pam_pam_start=no
6816 fi
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818 LIBS=$ac_check_lib_save_LIBS
6819 fi
6820 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6821 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6822 if test $ac_cv_lib_pam_pam_start = yes; then
6823   cat >>confdefs.h <<_ACEOF
6824 #define HAVE_LIBPAM 1
6825 _ACEOF
6826
6827   LIBS="-lpam $LIBS"
6828
6829 else
6830   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6831 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6832    { (exit 1); exit 1; }; }
6833 fi
6834
6835 fi
6836
6837
6838 ##
6839 ## Header files
6840 ##
6841
6842 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6844 if test "${ac_cv_header_stdc+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6849 #include "confdefs.h"
6850 #include <stdlib.h>
6851 #include <stdarg.h>
6852 #include <string.h>
6853 #include <float.h>
6854
6855 _ACEOF
6856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6858   ac_status=$?
6859   egrep -v '^ *\+' conftest.er1 >conftest.err
6860   rm -f conftest.er1
6861   cat conftest.err >&5
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); } >/dev/null; then
6864   if test -s conftest.err; then
6865     ac_cpp_err=$ac_c_preproc_warn_flag
6866   else
6867     ac_cpp_err=
6868   fi
6869 else
6870   ac_cpp_err=yes
6871 fi
6872 if test -z "$ac_cpp_err"; then
6873   ac_cv_header_stdc=yes
6874 else
6875   echo "$as_me: failed program was:" >&5
6876   cat conftest.$ac_ext >&5
6877   ac_cv_header_stdc=no
6878 fi
6879 rm -f conftest.err conftest.$ac_ext
6880
6881 if test $ac_cv_header_stdc = yes; then
6882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6883   cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6886 #include <string.h>
6887
6888 _ACEOF
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890   egrep "memchr" >/dev/null 2>&1; then
6891   :
6892 else
6893   ac_cv_header_stdc=no
6894 fi
6895 rm -f conftest*
6896
6897 fi
6898
6899 if test $ac_cv_header_stdc = yes; then
6900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6901   cat >conftest.$ac_ext <<_ACEOF
6902 #line $LINENO "configure"
6903 #include "confdefs.h"
6904 #include <stdlib.h>
6905
6906 _ACEOF
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908   egrep "free" >/dev/null 2>&1; then
6909   :
6910 else
6911   ac_cv_header_stdc=no
6912 fi
6913 rm -f conftest*
6914
6915 fi
6916
6917 if test $ac_cv_header_stdc = yes; then
6918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6919   if test "$cross_compiling" = yes; then
6920   :
6921 else
6922   cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6925 #include <ctype.h>
6926 #if ((' ' & 0x0FF) == 0x020)
6927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6929 #else
6930 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6931                      || ('j' <= (c) && (c) <= 'r') \
6932                      || ('s' <= (c) && (c) <= 'z'))
6933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6934 #endif
6935
6936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6937 int
6938 main ()
6939 {
6940   int i;
6941   for (i = 0; i < 256; i++)
6942     if (XOR (islower (i), ISLOWER (i))
6943         || toupper (i) != TOUPPER (i))
6944       exit(2);
6945   exit (0);
6946 }
6947 _ACEOF
6948 rm -f conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950   (eval $ac_link) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; }; then
6959   :
6960 else
6961   echo "$as_me: program exited with status $ac_status" >&5
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 ( exit $ac_status )
6965 ac_cv_header_stdc=no
6966 fi
6967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 fi
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6973 if test $ac_cv_header_stdc = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define STDC_HEADERS 1
6977 _ACEOF
6978
6979 fi
6980
6981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6992                   inttypes.h stdint.h unistd.h
6993 do
6994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 $ac_includes_default
7004
7005 #include <$ac_header>
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009   (eval $ac_compile) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest.$ac_objext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   eval "$as_ac_Header=yes"
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 eval "$as_ac_Header=no"
7024 fi
7025 rm -f conftest.$ac_objext conftest.$ac_ext
7026 fi
7027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7030   cat >>confdefs.h <<_ACEOF
7031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7032 _ACEOF
7033
7034 fi
7035
7036 done
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 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
7061 do
7062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7064   echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 fi
7069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7071 else
7072   # Is the header compilable?
7073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7075 cat >conftest.$ac_ext <<_ACEOF
7076 #line $LINENO "configure"
7077 #include "confdefs.h"
7078 $ac_includes_default
7079 #include <$ac_header>
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083   (eval $ac_compile) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); } &&
7087          { ac_try='test -s conftest.$ac_objext'
7088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089   (eval $ac_try) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); }; }; then
7093   ac_header_compiler=yes
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 ac_header_compiler=no
7098 fi
7099 rm -f conftest.$ac_objext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7101 echo "${ECHO_T}$ac_header_compiler" >&6
7102
7103 # Is the header present?
7104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7107 #line $LINENO "configure"
7108 #include "confdefs.h"
7109 #include <$ac_header>
7110 _ACEOF
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113   ac_status=$?
7114   egrep -v '^ *\+' conftest.er1 >conftest.err
7115   rm -f conftest.er1
7116   cat conftest.err >&5
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } >/dev/null; then
7119   if test -s conftest.err; then
7120     ac_cpp_err=$ac_c_preproc_warn_flag
7121   else
7122     ac_cpp_err=
7123   fi
7124 else
7125   ac_cpp_err=yes
7126 fi
7127 if test -z "$ac_cpp_err"; then
7128   ac_header_preproc=yes
7129 else
7130   echo "$as_me: failed program was:" >&5
7131   cat conftest.$ac_ext >&5
7132   ac_header_preproc=no
7133 fi
7134 rm -f conftest.err conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136 echo "${ECHO_T}$ac_header_preproc" >&6
7137
7138 # So?  What about this header?
7139 case $ac_header_compiler:$ac_header_preproc in
7140   yes:no )
7141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7145   no:yes )
7146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7148     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7152 esac
7153 echo "$as_me:$LINENO: checking for $ac_header" >&5
7154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   eval "$as_ac_Header=$ac_header_preproc"
7159 fi
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162
7163 fi
7164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7165   cat >>confdefs.h <<_ACEOF
7166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7167 _ACEOF
7168
7169 fi
7170
7171 done
7172
7173
7174 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7175 # netinet/in.h is included first.
7176
7177 for ac_header in netinet/in.h
7178 do
7179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181   echo "$as_me:$LINENO: checking for $ac_header" >&5
7182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 fi
7186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7188 else
7189   # Is the header compilable?
7190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7195 $ac_includes_default
7196 #include <$ac_header>
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7200   (eval $ac_compile) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } &&
7204          { ac_try='test -s conftest.$ac_objext'
7205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206   (eval $ac_try) 2>&5
7207   ac_status=$?
7208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209   (exit $ac_status); }; }; then
7210   ac_header_compiler=yes
7211 else
7212   echo "$as_me: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7214 ac_header_compiler=no
7215 fi
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7218 echo "${ECHO_T}$ac_header_compiler" >&6
7219
7220 # Is the header present?
7221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7224 #line $LINENO "configure"
7225 #include "confdefs.h"
7226 #include <$ac_header>
7227 _ACEOF
7228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7230   ac_status=$?
7231   egrep -v '^ *\+' conftest.er1 >conftest.err
7232   rm -f conftest.er1
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } >/dev/null; then
7236   if test -s conftest.err; then
7237     ac_cpp_err=$ac_c_preproc_warn_flag
7238   else
7239     ac_cpp_err=
7240   fi
7241 else
7242   ac_cpp_err=yes
7243 fi
7244 if test -z "$ac_cpp_err"; then
7245   ac_header_preproc=yes
7246 else
7247   echo "$as_me: failed program was:" >&5
7248   cat conftest.$ac_ext >&5
7249   ac_header_preproc=no
7250 fi
7251 rm -f conftest.err conftest.$ac_ext
7252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7253 echo "${ECHO_T}$ac_header_preproc" >&6
7254
7255 # So?  What about this header?
7256 case $ac_header_compiler:$ac_header_preproc in
7257   yes:no )
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7262   no:yes )
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7269 esac
7270 echo "$as_me:$LINENO: checking for $ac_header" >&5
7271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   eval "$as_ac_Header=$ac_header_preproc"
7276 fi
7277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279
7280 fi
7281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7282   cat >>confdefs.h <<_ACEOF
7283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 _ACEOF
7285
7286 fi
7287
7288 done
7289
7290
7291 for ac_header in netinet/tcp.h
7292 do
7293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_header" >&5
7295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7301 #include "confdefs.h"
7302 $ac_includes_default
7303 #ifdef HAVE_NETINET_IN_H
7304 #include <netinet/in.h>
7305 #endif
7306
7307
7308 #include <$ac_header>
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312   (eval $ac_compile) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } &&
7316          { ac_try='test -s conftest.$ac_objext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   eval "$as_ac_Header=yes"
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 eval "$as_ac_Header=no"
7327 fi
7328 rm -f conftest.$ac_objext conftest.$ac_ext
7329 fi
7330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7333   cat >>confdefs.h <<_ACEOF
7334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7335 _ACEOF
7336
7337 fi
7338
7339 done
7340
7341
7342 if test "$with_readline" = yes; then
7343
7344 for ac_header in readline/readline.h
7345 do
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348   echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 fi
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355 else
7356   # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7362 $ac_includes_default
7363 #include <$ac_header>
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367   (eval $ac_compile) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } &&
7371          { ac_try='test -s conftest.$ac_objext'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; }; then
7377   ac_header_compiler=yes
7378 else
7379   echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 ac_header_compiler=no
7382 fi
7383 rm -f conftest.$ac_objext conftest.$ac_ext
7384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7385 echo "${ECHO_T}$ac_header_compiler" >&6
7386
7387 # Is the header present?
7388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7393 #include <$ac_header>
7394 _ACEOF
7395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7397   ac_status=$?
7398   egrep -v '^ *\+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } >/dev/null; then
7403   if test -s conftest.err; then
7404     ac_cpp_err=$ac_c_preproc_warn_flag
7405   else
7406     ac_cpp_err=
7407   fi
7408 else
7409   ac_cpp_err=yes
7410 fi
7411 if test -z "$ac_cpp_err"; then
7412   ac_header_preproc=yes
7413 else
7414   echo "$as_me: failed program was:" >&5
7415   cat conftest.$ac_ext >&5
7416   ac_header_preproc=no
7417 fi
7418 rm -f conftest.err conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420 echo "${ECHO_T}$ac_header_preproc" >&6
7421
7422 # So?  What about this header?
7423 case $ac_header_compiler:$ac_header_preproc in
7424   yes:no )
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7429   no:yes )
7430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7436 esac
7437 echo "$as_me:$LINENO: checking for $ac_header" >&5
7438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   eval "$as_ac_Header=$ac_header_preproc"
7443 fi
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446
7447 fi
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449   cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451 _ACEOF
7452
7453 else
7454
7455 for ac_header in editline/readline.h
7456 do
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7459   echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 fi
7464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7466 else
7467   # Is the header compilable?
7468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473 $ac_includes_default
7474 #include <$ac_header>
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478   (eval $ac_compile) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } &&
7482          { ac_try='test -s conftest.$ac_objext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   ac_header_compiler=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ac_header_compiler=no
7493 fi
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7497
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7505 _ACEOF
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7508   ac_status=$?
7509   egrep -v '^ *\+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } >/dev/null; then
7514   if test -s conftest.err; then
7515     ac_cpp_err=$ac_c_preproc_warn_flag
7516   else
7517     ac_cpp_err=
7518   fi
7519 else
7520   ac_cpp_err=yes
7521 fi
7522 if test -z "$ac_cpp_err"; then
7523   ac_header_preproc=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526   cat conftest.$ac_ext >&5
7527   ac_header_preproc=no
7528 fi
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7532
7533 # So?  What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7535   yes:no )
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7540   no:yes )
7541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 esac
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   eval "$as_ac_Header=$ac_header_preproc"
7554 fi
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557
7558 fi
7559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7560   cat >>confdefs.h <<_ACEOF
7561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 _ACEOF
7563
7564 else
7565
7566 for ac_header in readline.h
7567 do
7568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570   echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 fi
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7577 else
7578   # Is the header compilable?
7579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7582 #line $LINENO "configure"
7583 #include "confdefs.h"
7584 $ac_includes_default
7585 #include <$ac_header>
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589   (eval $ac_compile) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -s conftest.$ac_objext'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; }; then
7599   ac_header_compiler=yes
7600 else
7601   echo "$as_me: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 ac_header_compiler=no
7604 fi
7605 rm -f conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7607 echo "${ECHO_T}$ac_header_compiler" >&6
7608
7609 # Is the header present?
7610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line $LINENO "configure"
7614 #include "confdefs.h"
7615 #include <$ac_header>
7616 _ACEOF
7617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7619   ac_status=$?
7620   egrep -v '^ *\+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } >/dev/null; then
7625   if test -s conftest.err; then
7626     ac_cpp_err=$ac_c_preproc_warn_flag
7627   else
7628     ac_cpp_err=
7629   fi
7630 else
7631   ac_cpp_err=yes
7632 fi
7633 if test -z "$ac_cpp_err"; then
7634   ac_header_preproc=yes
7635 else
7636   echo "$as_me: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   ac_header_preproc=no
7639 fi
7640 rm -f conftest.err conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7642 echo "${ECHO_T}$ac_header_preproc" >&6
7643
7644 # So?  What about this header?
7645 case $ac_header_compiler:$ac_header_preproc in
7646   yes:no )
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7651   no:yes )
7652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7658 esac
7659 echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   eval "$as_ac_Header=$ac_header_preproc"
7665 fi
7666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7668
7669 fi
7670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7671   cat >>confdefs.h <<_ACEOF
7672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7673 _ACEOF
7674
7675 else
7676   { { echo "$as_me:$LINENO: error: readline header not found
7677 If you have readline already installed, see config.log for details on the
7678 failure.  It is possible the compiler isn't looking in the proper directory.
7679 Use --without-readline to disable readline support." >&5
7680 echo "$as_me: error: readline header not found
7681 If you have readline already installed, see config.log for details on the
7682 failure.  It is possible the compiler isn't looking in the proper directory.
7683 Use --without-readline to disable readline support." >&2;}
7684    { (exit 1); exit 1; }; }
7685 fi
7686
7687 done
7688
7689 fi
7690
7691 done
7692
7693 fi
7694
7695 done
7696
7697
7698 for ac_header in readline/history.h
7699 do
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7702   echo "$as_me:$LINENO: checking for $ac_header" >&5
7703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 fi
7707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7709 else
7710   # Is the header compilable?
7711 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7716 $ac_includes_default
7717 #include <$ac_header>
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721   (eval $ac_compile) 2>&5
7722   ac_status=$?
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -s conftest.$ac_objext'
7726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   ac_header_compiler=yes
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 ac_header_compiler=no
7736 fi
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7739 echo "${ECHO_T}$ac_header_compiler" >&6
7740
7741 # Is the header present?
7742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7744 cat >conftest.$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7746 #include "confdefs.h"
7747 #include <$ac_header>
7748 _ACEOF
7749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7751   ac_status=$?
7752   egrep -v '^ *\+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } >/dev/null; then
7757   if test -s conftest.err; then
7758     ac_cpp_err=$ac_c_preproc_warn_flag
7759   else
7760     ac_cpp_err=
7761   fi
7762 else
7763   ac_cpp_err=yes
7764 fi
7765 if test -z "$ac_cpp_err"; then
7766   ac_header_preproc=yes
7767 else
7768   echo "$as_me: failed program was:" >&5
7769   cat conftest.$ac_ext >&5
7770   ac_header_preproc=no
7771 fi
7772 rm -f conftest.err conftest.$ac_ext
7773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 echo "${ECHO_T}$ac_header_preproc" >&6
7775
7776 # So?  What about this header?
7777 case $ac_header_compiler:$ac_header_preproc in
7778   yes:no )
7779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7783   no:yes )
7784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7786     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7790 esac
7791 echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   eval "$as_ac_Header=$ac_header_preproc"
7797 fi
7798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7800
7801 fi
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803   cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 _ACEOF
7806
7807 else
7808
7809 for ac_header in editline/history.h
7810 do
7811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813   echo "$as_me:$LINENO: checking for $ac_header" >&5
7814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 fi
7818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7820 else
7821   # Is the header compilable?
7822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #include <$ac_header>
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832   (eval $ac_compile) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -s conftest.$ac_objext'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; }; then
7842   ac_header_compiler=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7846 ac_header_compiler=no
7847 fi
7848 rm -f conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6
7851
7852 # Is the header present?
7853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <$ac_header>
7859 _ACEOF
7860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7862   ac_status=$?
7863   egrep -v '^ *\+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } >/dev/null; then
7868   if test -s conftest.err; then
7869     ac_cpp_err=$ac_c_preproc_warn_flag
7870   else
7871     ac_cpp_err=
7872   fi
7873 else
7874   ac_cpp_err=yes
7875 fi
7876 if test -z "$ac_cpp_err"; then
7877   ac_header_preproc=yes
7878 else
7879   echo "$as_me: failed program was:" >&5
7880   cat conftest.$ac_ext >&5
7881   ac_header_preproc=no
7882 fi
7883 rm -f conftest.err conftest.$ac_ext
7884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7885 echo "${ECHO_T}$ac_header_preproc" >&6
7886
7887 # So?  What about this header?
7888 case $ac_header_compiler:$ac_header_preproc in
7889   yes:no )
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7894   no:yes )
7895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7901 esac
7902 echo "$as_me:$LINENO: checking for $ac_header" >&5
7903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   eval "$as_ac_Header=$ac_header_preproc"
7908 fi
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911
7912 fi
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914   cat >>confdefs.h <<_ACEOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7916 _ACEOF
7917
7918 else
7919
7920 for ac_header in history.h
7921 do
7922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7924   echo "$as_me:$LINENO: checking for $ac_header" >&5
7925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 fi
7929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7931 else
7932   # Is the header compilable?
7933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 #include "confdefs.h"
7938 $ac_includes_default
7939 #include <$ac_header>
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943   (eval $ac_compile) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -s conftest.$ac_objext'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; }; then
7953   ac_header_compiler=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_header_compiler=no
7958 fi
7959 rm -f conftest.$ac_objext conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7961 echo "${ECHO_T}$ac_header_compiler" >&6
7962
7963 # Is the header present?
7964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7966 cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 #include "confdefs.h"
7969 #include <$ac_header>
7970 _ACEOF
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973   ac_status=$?
7974   egrep -v '^ *\+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } >/dev/null; then
7979   if test -s conftest.err; then
7980     ac_cpp_err=$ac_c_preproc_warn_flag
7981   else
7982     ac_cpp_err=
7983   fi
7984 else
7985   ac_cpp_err=yes
7986 fi
7987 if test -z "$ac_cpp_err"; then
7988   ac_header_preproc=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991   cat conftest.$ac_ext >&5
7992   ac_header_preproc=no
7993 fi
7994 rm -f conftest.err conftest.$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996 echo "${ECHO_T}$ac_header_preproc" >&6
7997
7998 # So?  What about this header?
7999 case $ac_header_compiler:$ac_header_preproc in
8000   yes:no )
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8005   no:yes )
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8012 esac
8013 echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   eval "$as_ac_Header=$ac_header_preproc"
8019 fi
8020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8022
8023 fi
8024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8025   cat >>confdefs.h <<_ACEOF
8026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 _ACEOF
8028
8029 else
8030   { { echo "$as_me:$LINENO: error: history header not found
8031 If you have readline already installed, see config.log for details on the
8032 failure.  It is possible the compiler isn't looking in the proper directory.
8033 Use --without-readline to disable readline support." >&5
8034 echo "$as_me: error: history header not found
8035 If you have readline already installed, see config.log for details on the
8036 failure.  It is possible the compiler isn't looking in the proper directory.
8037 Use --without-readline to disable readline support." >&2;}
8038    { (exit 1); exit 1; }; }
8039 fi
8040
8041 done
8042
8043 fi
8044
8045 done
8046
8047 fi
8048
8049 done
8050
8051 fi
8052
8053 if test "$with_zlib" = yes; then
8054   if test "${ac_cv_header_zlib_h+set}" = set; then
8055   echo "$as_me:$LINENO: checking for zlib.h" >&5
8056 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_zlib_h+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 fi
8060 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8061 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8062 else
8063   # Is the header compilable?
8064 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8065 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 #include "confdefs.h"
8069 $ac_includes_default
8070 #include <zlib.h>
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8074   (eval $ac_compile) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } &&
8078          { ac_try='test -s conftest.$ac_objext'
8079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080   (eval $ac_try) 2>&5
8081   ac_status=$?
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); }; }; then
8084   ac_header_compiler=yes
8085 else
8086   echo "$as_me: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 ac_header_compiler=no
8089 fi
8090 rm -f conftest.$ac_objext conftest.$ac_ext
8091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092 echo "${ECHO_T}$ac_header_compiler" >&6
8093
8094 # Is the header present?
8095 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8096 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line $LINENO "configure"
8099 #include "confdefs.h"
8100 #include <zlib.h>
8101 _ACEOF
8102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8104   ac_status=$?
8105   egrep -v '^ *\+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } >/dev/null; then
8110   if test -s conftest.err; then
8111     ac_cpp_err=$ac_c_preproc_warn_flag
8112   else
8113     ac_cpp_err=
8114   fi
8115 else
8116   ac_cpp_err=yes
8117 fi
8118 if test -z "$ac_cpp_err"; then
8119   ac_header_preproc=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122   cat conftest.$ac_ext >&5
8123   ac_header_preproc=no
8124 fi
8125 rm -f conftest.err conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127 echo "${ECHO_T}$ac_header_preproc" >&6
8128
8129 # So?  What about this header?
8130 case $ac_header_compiler:$ac_header_preproc in
8131   yes:no )
8132     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8133 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8135 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8136   no:yes )
8137     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8138 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8139     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8140 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8141     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8142 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8143 esac
8144 echo "$as_me:$LINENO: checking for zlib.h" >&5
8145 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8146 if test "${ac_cv_header_zlib_h+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   ac_cv_header_zlib_h=$ac_header_preproc
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8152 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8153
8154 fi
8155 if test $ac_cv_header_zlib_h = yes; then
8156   :
8157 else
8158   { { echo "$as_me:$LINENO: error: zlib header not found
8159 If you have zlib already installed, see config.log for details on the
8160 failure.  It is possible the compiler isn't looking in the proper directory.
8161 Use --without-zlib to disable zlib support." >&5
8162 echo "$as_me: error: zlib header not found
8163 If you have zlib already installed, see config.log for details on the
8164 failure.  It is possible the compiler isn't looking in the proper directory.
8165 Use --without-zlib to disable zlib support." >&2;}
8166    { (exit 1); exit 1; }; }
8167 fi
8168
8169
8170 fi
8171
8172 if test "$with_krb4" = yes ; then
8173   if test "${ac_cv_header_krb_h+set}" = set; then
8174   echo "$as_me:$LINENO: checking for krb.h" >&5
8175 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8176 if test "${ac_cv_header_krb_h+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 fi
8179 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8180 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8181 else
8182   # Is the header compilable?
8183 echo "$as_me:$LINENO: checking krb.h usability" >&5
8184 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 $ac_includes_default
8189 #include <krb.h>
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193   (eval $ac_compile) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -s conftest.$ac_objext'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   ac_header_compiler=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 ac_header_compiler=no
8208 fi
8209 rm -f conftest.$ac_objext conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8211 echo "${ECHO_T}$ac_header_compiler" >&6
8212
8213 # Is the header present?
8214 echo "$as_me:$LINENO: checking krb.h presence" >&5
8215 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8216 cat >conftest.$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 #include "confdefs.h"
8219 #include <krb.h>
8220 _ACEOF
8221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8223   ac_status=$?
8224   egrep -v '^ *\+' conftest.er1 >conftest.err
8225   rm -f conftest.er1
8226   cat conftest.err >&5
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); } >/dev/null; then
8229   if test -s conftest.err; then
8230     ac_cpp_err=$ac_c_preproc_warn_flag
8231   else
8232     ac_cpp_err=
8233   fi
8234 else
8235   ac_cpp_err=yes
8236 fi
8237 if test -z "$ac_cpp_err"; then
8238   ac_header_preproc=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241   cat conftest.$ac_ext >&5
8242   ac_header_preproc=no
8243 fi
8244 rm -f conftest.err conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246 echo "${ECHO_T}$ac_header_preproc" >&6
8247
8248 # So?  What about this header?
8249 case $ac_header_compiler:$ac_header_preproc in
8250   yes:no )
8251     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8252 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8254 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8255   no:yes )
8256     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8257 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8258     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8259 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8260     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8261 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8262 esac
8263 echo "$as_me:$LINENO: checking for krb.h" >&5
8264 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8265 if test "${ac_cv_header_krb_h+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   ac_cv_header_krb_h=$ac_header_preproc
8269 fi
8270 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8271 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8272
8273 fi
8274 if test $ac_cv_header_krb_h = yes; then
8275   :
8276 else
8277   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8278 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8279    { (exit 1); exit 1; }; }
8280 fi
8281
8282
8283 fi
8284
8285 if test "$with_krb5" = yes ; then
8286   if test "${ac_cv_header_krb5_h+set}" = set; then
8287   echo "$as_me:$LINENO: checking for krb5.h" >&5
8288 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8289 if test "${ac_cv_header_krb5_h+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 fi
8292 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8293 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8294 else
8295   # Is the header compilable?
8296 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8297 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 $ac_includes_default
8302 #include <krb5.h>
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306   (eval $ac_compile) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -s conftest.$ac_objext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_header_compiler=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 ac_header_compiler=no
8321 fi
8322 rm -f conftest.$ac_objext conftest.$ac_ext
8323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8324 echo "${ECHO_T}$ac_header_compiler" >&6
8325
8326 # Is the header present?
8327 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8328 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 #include "confdefs.h"
8332 #include <krb5.h>
8333 _ACEOF
8334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8336   ac_status=$?
8337   egrep -v '^ *\+' conftest.er1 >conftest.err
8338   rm -f conftest.er1
8339   cat conftest.err >&5
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } >/dev/null; then
8342   if test -s conftest.err; then
8343     ac_cpp_err=$ac_c_preproc_warn_flag
8344   else
8345     ac_cpp_err=
8346   fi
8347 else
8348   ac_cpp_err=yes
8349 fi
8350 if test -z "$ac_cpp_err"; then
8351   ac_header_preproc=yes
8352 else
8353   echo "$as_me: failed program was:" >&5
8354   cat conftest.$ac_ext >&5
8355   ac_header_preproc=no
8356 fi
8357 rm -f conftest.err conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8359 echo "${ECHO_T}$ac_header_preproc" >&6
8360
8361 # So?  What about this header?
8362 case $ac_header_compiler:$ac_header_preproc in
8363   yes:no )
8364     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8365 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8366     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8368   no:yes )
8369     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8370 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8371     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8372 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8373     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8374 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8375 esac
8376 echo "$as_me:$LINENO: checking for krb5.h" >&5
8377 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8378 if test "${ac_cv_header_krb5_h+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   ac_cv_header_krb5_h=$ac_header_preproc
8382 fi
8383 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8384 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8385
8386 fi
8387 if test $ac_cv_header_krb5_h = yes; then
8388   :
8389 else
8390   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8391 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8392    { (exit 1); exit 1; }; }
8393 fi
8394
8395
8396   if test "${ac_cv_header_com_err_h+set}" = set; then
8397   echo "$as_me:$LINENO: checking for com_err.h" >&5
8398 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8399 if test "${ac_cv_header_com_err_h+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 fi
8402 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8403 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8404 else
8405   # Is the header compilable?
8406 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8407 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line $LINENO "configure"
8410 #include "confdefs.h"
8411 $ac_includes_default
8412 #include <com_err.h>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -s conftest.$ac_objext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_header_compiler=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8430 ac_header_compiler=no
8431 fi
8432 rm -f conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8434 echo "${ECHO_T}$ac_header_compiler" >&6
8435
8436 # Is the header present?
8437 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8438 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 #include "confdefs.h"
8442 #include <com_err.h>
8443 _ACEOF
8444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8446   ac_status=$?
8447   egrep -v '^ *\+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } >/dev/null; then
8452   if test -s conftest.err; then
8453     ac_cpp_err=$ac_c_preproc_warn_flag
8454   else
8455     ac_cpp_err=
8456   fi
8457 else
8458   ac_cpp_err=yes
8459 fi
8460 if test -z "$ac_cpp_err"; then
8461   ac_header_preproc=yes
8462 else
8463   echo "$as_me: failed program was:" >&5
8464   cat conftest.$ac_ext >&5
8465   ac_header_preproc=no
8466 fi
8467 rm -f conftest.err conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8469 echo "${ECHO_T}$ac_header_preproc" >&6
8470
8471 # So?  What about this header?
8472 case $ac_header_compiler:$ac_header_preproc in
8473   yes:no )
8474     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8475 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8476     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8478   no:yes )
8479     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8485 esac
8486 echo "$as_me:$LINENO: checking for com_err.h" >&5
8487 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8488 if test "${ac_cv_header_com_err_h+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   ac_cv_header_com_err_h=$ac_header_preproc
8492 fi
8493 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8494 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8495
8496 fi
8497 if test $ac_cv_header_com_err_h = yes; then
8498   :
8499 else
8500   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8501 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8502    { (exit 1); exit 1; }; }
8503 fi
8504
8505
8506 fi
8507
8508 if test "$with_openssl" = yes ; then
8509   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8510   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8511 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8512 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 fi
8515 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8516 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8517 else
8518   # Is the header compilable?
8519 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8520 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 #include "confdefs.h"
8524 $ac_includes_default
8525 #include <openssl/ssl.h>
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529   (eval $ac_compile) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -s conftest.$ac_objext'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; }; then
8539   ac_header_compiler=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 ac_header_compiler=no
8544 fi
8545 rm -f conftest.$ac_objext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8547 echo "${ECHO_T}$ac_header_compiler" >&6
8548
8549 # Is the header present?
8550 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8551 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8554 #include "confdefs.h"
8555 #include <openssl/ssl.h>
8556 _ACEOF
8557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8559   ac_status=$?
8560   egrep -v '^ *\+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } >/dev/null; then
8565   if test -s conftest.err; then
8566     ac_cpp_err=$ac_c_preproc_warn_flag
8567   else
8568     ac_cpp_err=
8569   fi
8570 else
8571   ac_cpp_err=yes
8572 fi
8573 if test -z "$ac_cpp_err"; then
8574   ac_header_preproc=yes
8575 else
8576   echo "$as_me: failed program was:" >&5
8577   cat conftest.$ac_ext >&5
8578   ac_header_preproc=no
8579 fi
8580 rm -f conftest.err conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8582 echo "${ECHO_T}$ac_header_preproc" >&6
8583
8584 # So?  What about this header?
8585 case $ac_header_compiler:$ac_header_preproc in
8586   yes:no )
8587     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8590 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8591   no:yes )
8592     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8597 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8598 esac
8599 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8600 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8601 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8605 fi
8606 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8607 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8608
8609 fi
8610 if test $ac_cv_header_openssl_ssl_h = yes; then
8611   :
8612 else
8613   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8614 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8615    { (exit 1); exit 1; }; }
8616 fi
8617
8618
8619   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8620   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8621 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8622 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8626 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8627 else
8628   # Is the header compilable?
8629 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8630 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8632 #line $LINENO "configure"
8633 #include "confdefs.h"
8634 $ac_includes_default
8635 #include <openssl/err.h>
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639   (eval $ac_compile) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -s conftest.$ac_objext'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; }; then
8649   ac_header_compiler=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 ac_header_compiler=no
8654 fi
8655 rm -f conftest.$ac_objext conftest.$ac_ext
8656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8657 echo "${ECHO_T}$ac_header_compiler" >&6
8658
8659 # Is the header present?
8660 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8661 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8662 cat >conftest.$ac_ext <<_ACEOF
8663 #line $LINENO "configure"
8664 #include "confdefs.h"
8665 #include <openssl/err.h>
8666 _ACEOF
8667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8669   ac_status=$?
8670   egrep -v '^ *\+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } >/dev/null; then
8675   if test -s conftest.err; then
8676     ac_cpp_err=$ac_c_preproc_warn_flag
8677   else
8678     ac_cpp_err=
8679   fi
8680 else
8681   ac_cpp_err=yes
8682 fi
8683 if test -z "$ac_cpp_err"; then
8684   ac_header_preproc=yes
8685 else
8686   echo "$as_me: failed program was:" >&5
8687   cat conftest.$ac_ext >&5
8688   ac_header_preproc=no
8689 fi
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8693
8694 # So?  What about this header?
8695 case $ac_header_compiler:$ac_header_preproc in
8696   yes:no )
8697     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8701   no:yes )
8702     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8703 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8704     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8705 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8706     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8707 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8708 esac
8709 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8710 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8711 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   ac_cv_header_openssl_err_h=$ac_header_preproc
8715 fi
8716 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8717 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8718
8719 fi
8720 if test $ac_cv_header_openssl_err_h = yes; then
8721   :
8722 else
8723   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8724 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8725    { (exit 1); exit 1; }; }
8726 fi
8727
8728
8729 fi
8730
8731 if test "$with_pam" = yes ; then
8732
8733 for ac_header in security/pam_appl.h
8734 do
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737   echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 else
8745   # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 #include "confdefs.h"
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -s conftest.$ac_objext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_header_compiler=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_header_compiler=no
8771 fi
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774 echo "${ECHO_T}$ac_header_compiler" >&6
8775
8776 # Is the header present?
8777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 #include <$ac_header>
8783 _ACEOF
8784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8786   ac_status=$?
8787   egrep -v '^ *\+' conftest.er1 >conftest.err
8788   rm -f conftest.er1
8789   cat conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } >/dev/null; then
8792   if test -s conftest.err; then
8793     ac_cpp_err=$ac_c_preproc_warn_flag
8794   else
8795     ac_cpp_err=
8796   fi
8797 else
8798   ac_cpp_err=yes
8799 fi
8800 if test -z "$ac_cpp_err"; then
8801   ac_header_preproc=yes
8802 else
8803   echo "$as_me: failed program was:" >&5
8804   cat conftest.$ac_ext >&5
8805   ac_header_preproc=no
8806 fi
8807 rm -f conftest.err conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 echo "${ECHO_T}$ac_header_preproc" >&6
8810
8811 # So?  What about this header?
8812 case $ac_header_compiler:$ac_header_preproc in
8813   yes:no )
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8818   no:yes )
8819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8825 esac
8826 echo "$as_me:$LINENO: checking for $ac_header" >&5
8827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   eval "$as_ac_Header=$ac_header_preproc"
8832 fi
8833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8835
8836 fi
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838   cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 else
8843
8844 for ac_header in pam/pam_appl.h
8845 do
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848   echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855 else
8856   # Is the header compilable?
8857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line $LINENO "configure"
8861 #include "confdefs.h"
8862 $ac_includes_default
8863 #include <$ac_header>
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867   (eval $ac_compile) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -s conftest.$ac_objext'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; }; then
8877   ac_header_compiler=yes
8878 else
8879   echo "$as_me: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 ac_header_compiler=no
8882 fi
8883 rm -f conftest.$ac_objext conftest.$ac_ext
8884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885 echo "${ECHO_T}$ac_header_compiler" >&6
8886
8887 # Is the header present?
8888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8891 #line $LINENO "configure"
8892 #include "confdefs.h"
8893 #include <$ac_header>
8894 _ACEOF
8895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8897   ac_status=$?
8898   egrep -v '^ *\+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } >/dev/null; then
8903   if test -s conftest.err; then
8904     ac_cpp_err=$ac_c_preproc_warn_flag
8905   else
8906     ac_cpp_err=
8907   fi
8908 else
8909   ac_cpp_err=yes
8910 fi
8911 if test -z "$ac_cpp_err"; then
8912   ac_header_preproc=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915   cat conftest.$ac_ext >&5
8916   ac_header_preproc=no
8917 fi
8918 rm -f conftest.err conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8920 echo "${ECHO_T}$ac_header_preproc" >&6
8921
8922 # So?  What about this header?
8923 case $ac_header_compiler:$ac_header_preproc in
8924   yes:no )
8925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8929   no:yes )
8930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8932     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8936 esac
8937 echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   eval "$as_ac_Header=$ac_header_preproc"
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946
8947 fi
8948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949   cat >>confdefs.h <<_ACEOF
8950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951 _ACEOF
8952
8953 else
8954   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8955 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8956    { (exit 1); exit 1; }; }
8957 fi
8958
8959 done
8960
8961 fi
8962
8963 done
8964
8965 fi
8966
8967 if test "$with_rendezvous" = yes ; then
8968   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8969   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8970 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8971 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 fi
8974 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8975 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8976 else
8977   # Is the header compilable?
8978 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8979 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8981 #line $LINENO "configure"
8982 #include "confdefs.h"
8983 $ac_includes_default
8984 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988   (eval $ac_compile) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -s conftest.$ac_objext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_header_compiler=yes
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9002 ac_header_compiler=no
9003 fi
9004 rm -f conftest.$ac_objext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9006 echo "${ECHO_T}$ac_header_compiler" >&6
9007
9008 # Is the header present?
9009 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9010 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9013 #include "confdefs.h"
9014 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9015 _ACEOF
9016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9018   ac_status=$?
9019   egrep -v '^ *\+' conftest.er1 >conftest.err
9020   rm -f conftest.er1
9021   cat conftest.err >&5
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } >/dev/null; then
9024   if test -s conftest.err; then
9025     ac_cpp_err=$ac_c_preproc_warn_flag
9026   else
9027     ac_cpp_err=
9028   fi
9029 else
9030   ac_cpp_err=yes
9031 fi
9032 if test -z "$ac_cpp_err"; then
9033   ac_header_preproc=yes
9034 else
9035   echo "$as_me: failed program was:" >&5
9036   cat conftest.$ac_ext >&5
9037   ac_header_preproc=no
9038 fi
9039 rm -f conftest.err conftest.$ac_ext
9040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6
9042
9043 # So?  What about this header?
9044 case $ac_header_compiler:$ac_header_preproc in
9045   yes:no )
9046     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9050   no:yes )
9051     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9052 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9053     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9054 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9055     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9056 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9057 esac
9058 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9059 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9060 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9061   echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9067
9068 fi
9069 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9070   :
9071 else
9072   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9073 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9074    { (exit 1); exit 1; }; }
9075 fi
9076
9077
9078 fi
9079
9080
9081 ##
9082 ## Types, structures, compiler characteristics
9083 ##
9084
9085
9086 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9088 if test "${ac_cv_c_const+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   cat >conftest.$ac_ext <<_ACEOF
9092 #line $LINENO "configure"
9093 #include "confdefs.h"
9094
9095 #ifdef F77_DUMMY_MAIN
9096 #  ifdef __cplusplus
9097      extern "C"
9098 #  endif
9099    int F77_DUMMY_MAIN() { return 1; }
9100 #endif
9101 int
9102 main ()
9103 {
9104 /* FIXME: Include the comments suggested by Paul. */
9105 #ifndef __cplusplus
9106   /* Ultrix mips cc rejects this.  */
9107   typedef int charset[2];
9108   const charset x;
9109   /* SunOS 4.1.1 cc rejects this.  */
9110   char const *const *ccp;
9111   char **p;
9112   /* NEC SVR4.0.2 mips cc rejects this.  */
9113   struct point {int x, y;};
9114   static struct point const zero = {0,0};
9115   /* AIX XL C 1.02.0.0 rejects this.
9116      It does not let you subtract one const X* pointer from another in
9117      an arm of an if-expression whose if-part is not a constant
9118      expression */
9119   const char *g = "string";
9120   ccp = &g + (g ? g-g : 0);
9121   /* HPUX 7.0 cc rejects these. */
9122   ++ccp;
9123   p = (char**) ccp;
9124   ccp = (char const *const *) p;
9125   { /* SCO 3.2v4 cc rejects this.  */
9126     char *t;
9127     char const *s = 0 ? (char *) 0 : (char const *) 0;
9128
9129     *t++ = 0;
9130   }
9131   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9132     int x[] = {25, 17};
9133     const int *foo = &x[0];
9134     ++foo;
9135   }
9136   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9137     typedef const int *iptr;
9138     iptr p = 0;
9139     ++p;
9140   }
9141   { /* AIX XL C 1.02.0.0 rejects this saying
9142        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9143     struct s { int j; const int *ap[3]; };
9144     struct s *b; b->j = 5;
9145   }
9146   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9147     const int foo = 10;
9148   }
9149 #endif
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157   (eval $ac_compile) 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -s conftest.$ac_objext'
9162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163   (eval $ac_try) 2>&5
9164   ac_status=$?
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); }; }; then
9167   ac_cv_c_const=yes
9168 else
9169   echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_cv_c_const=no
9172 fi
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9174 fi
9175 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9176 echo "${ECHO_T}$ac_cv_c_const" >&6
9177 if test $ac_cv_c_const = no; then
9178
9179 cat >>confdefs.h <<\_ACEOF
9180 #define const
9181 _ACEOF
9182
9183 fi
9184
9185 echo "$as_me:$LINENO: checking for inline" >&5
9186 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9187 if test "${ac_cv_c_inline+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190   ac_cv_c_inline=no
9191 for ac_kw in inline __inline__ __inline; do
9192   cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 #include "confdefs.h"
9195 #ifndef __cplusplus
9196 static $ac_kw int static_foo () {return 0; }
9197 $ac_kw int foo () {return 0; }
9198 #endif
9199
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203   (eval $ac_compile) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } &&
9207          { ac_try='test -s conftest.$ac_objext'
9208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209   (eval $ac_try) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; }; then
9213   ac_cv_c_inline=$ac_kw; break
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 fi
9218 rm -f conftest.$ac_objext conftest.$ac_ext
9219 done
9220
9221 fi
9222 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9223 echo "${ECHO_T}$ac_cv_c_inline" >&6
9224 case $ac_cv_c_inline in
9225   inline | yes) ;;
9226   no)
9227 cat >>confdefs.h <<\_ACEOF
9228 #define inline
9229 _ACEOF
9230  ;;
9231   *)  cat >>confdefs.h <<_ACEOF
9232 #define inline $ac_cv_c_inline
9233 _ACEOF
9234  ;;
9235 esac
9236
9237 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9238 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9239 if test "${ac_cv_c_stringize+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 #include "confdefs.h"
9245 #define x(y) #y
9246
9247 char *s = x(teststring);
9248 _ACEOF
9249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9250   egrep "#teststring" >/dev/null 2>&1; then
9251   ac_cv_c_stringize=no
9252 else
9253   ac_cv_c_stringize=yes
9254 fi
9255 rm -f conftest*
9256
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9259 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9260 if test $ac_cv_c_stringize = yes; then
9261
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_STRINGIZE 1
9264 _ACEOF
9265
9266 fi
9267
9268 echo "$as_me:$LINENO: checking for signed types" >&5
9269 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9270 if test "${pgac_cv_c_signed+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   cat >conftest.$ac_ext <<_ACEOF
9274 #line $LINENO "configure"
9275 #include "confdefs.h"
9276
9277 #ifdef F77_DUMMY_MAIN
9278 #  ifdef __cplusplus
9279      extern "C"
9280 #  endif
9281    int F77_DUMMY_MAIN() { return 1; }
9282 #endif
9283 int
9284 main ()
9285 {
9286 signed char c; signed short s; signed int i;
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293   (eval $ac_compile) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } &&
9297          { ac_try='test -s conftest.$ac_objext'
9298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299   (eval $ac_try) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); }; }; then
9303   pgac_cv_c_signed=yes
9304 else
9305   echo "$as_me: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 pgac_cv_c_signed=no
9308 fi
9309 rm -f conftest.$ac_objext conftest.$ac_ext
9310 fi
9311 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9312 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9313 if test x"$pgac_cv_c_signed" = xno ; then
9314
9315 cat >>confdefs.h <<\_ACEOF
9316 #define signed
9317 _ACEOF
9318
9319 fi
9320 echo "$as_me:$LINENO: checking for working volatile" >&5
9321 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9322 if test "${ac_cv_c_volatile+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9328
9329 #ifdef F77_DUMMY_MAIN
9330 #  ifdef __cplusplus
9331      extern "C"
9332 #  endif
9333    int F77_DUMMY_MAIN() { return 1; }
9334 #endif
9335 int
9336 main ()
9337 {
9338
9339 volatile int x;
9340 int * volatile y;
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347   (eval $ac_compile) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -s conftest.$ac_objext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_cv_c_volatile=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 ac_cv_c_volatile=no
9362 fi
9363 rm -f conftest.$ac_objext conftest.$ac_ext
9364 fi
9365 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9366 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9367 if test $ac_cv_c_volatile = no; then
9368
9369 cat >>confdefs.h <<\_ACEOF
9370 #define volatile
9371 _ACEOF
9372
9373 fi
9374
9375 echo "$as_me:$LINENO: checking for __func__" >&5
9376 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9377 if test "${pgac_cv_funcname_func_support+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383 #include <stdio.h>
9384 #ifdef F77_DUMMY_MAIN
9385 #  ifdef __cplusplus
9386      extern "C"
9387 #  endif
9388    int F77_DUMMY_MAIN() { return 1; }
9389 #endif
9390 int
9391 main ()
9392 {
9393 printf("%s\n", __func__);
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400   (eval $ac_compile) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } &&
9404          { ac_try='test -s conftest.$ac_objext'
9405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406   (eval $ac_try) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; }; then
9410   pgac_cv_funcname_func_support=yes
9411 else
9412   echo "$as_me: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 pgac_cv_funcname_func_support=no
9415 fi
9416 rm -f conftest.$ac_objext conftest.$ac_ext
9417 fi
9418 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9419 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9420 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9421
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_FUNCNAME__FUNC 1
9424 _ACEOF
9425
9426 else
9427 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9428 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9429 if test "${pgac_cv_funcname_function_support+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9434 #include "confdefs.h"
9435 #include <stdio.h>
9436 #ifdef F77_DUMMY_MAIN
9437 #  ifdef __cplusplus
9438      extern "C"
9439 #  endif
9440    int F77_DUMMY_MAIN() { return 1; }
9441 #endif
9442 int
9443 main ()
9444 {
9445 printf("%s\n", __FUNCTION__);
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -s conftest.$ac_objext'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; }; then
9462   pgac_cv_funcname_function_support=yes
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 pgac_cv_funcname_function_support=no
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469 fi
9470 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9471 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9472 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9473
9474 cat >>confdefs.h <<\_ACEOF
9475 #define HAVE_FUNCNAME__FUNCTION 1
9476 _ACEOF
9477
9478 fi
9479 fi
9480 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9482 if test "${ac_cv_struct_tm+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <time.h>
9490
9491 #ifdef F77_DUMMY_MAIN
9492 #  ifdef __cplusplus
9493      extern "C"
9494 #  endif
9495    int F77_DUMMY_MAIN() { return 1; }
9496 #endif
9497 int
9498 main ()
9499 {
9500 struct tm *tp; tp->tm_sec;
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507   (eval $ac_compile) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -s conftest.$ac_objext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_cv_struct_tm=time.h
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 ac_cv_struct_tm=sys/time.h
9522 fi
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9526 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9527 if test $ac_cv_struct_tm = sys/time.h; then
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define TM_IN_SYS_TIME 1
9531 _ACEOF
9532
9533 fi
9534
9535 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9536 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9537 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   cat >conftest.$ac_ext <<_ACEOF
9541 #line $LINENO "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9544 #include <$ac_cv_struct_tm>
9545
9546
9547 #ifdef F77_DUMMY_MAIN
9548 #  ifdef __cplusplus
9549      extern "C"
9550 #  endif
9551    int F77_DUMMY_MAIN() { return 1; }
9552 #endif
9553 int
9554 main ()
9555 {
9556 static struct tm ac_aggr;
9557 if (ac_aggr.tm_zone)
9558 return 0;
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565   (eval $ac_compile) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } &&
9569          { ac_try='test -s conftest.$ac_objext'
9570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571   (eval $ac_try) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; }; then
9575   ac_cv_member_struct_tm_tm_zone=yes
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_member_struct_tm_tm_zone=no
9580 fi
9581 rm -f conftest.$ac_objext conftest.$ac_ext
9582 fi
9583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9584 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9585 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9586
9587 cat >>confdefs.h <<_ACEOF
9588 #define HAVE_STRUCT_TM_TM_ZONE 1
9589 _ACEOF
9590
9591
9592 fi
9593
9594 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_TM_ZONE 1
9598 _ACEOF
9599
9600 fi
9601 echo "$as_me:$LINENO: checking for tzname" >&5
9602 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9603 if test "${ac_cv_var_tzname+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9609 #include <time.h>
9610 #ifndef tzname /* For SGI.  */
9611 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9612 #endif
9613
9614 #ifdef F77_DUMMY_MAIN
9615 #  ifdef __cplusplus
9616      extern "C"
9617 #  endif
9618    int F77_DUMMY_MAIN() { return 1; }
9619 #endif
9620 int
9621 main ()
9622 {
9623 atoi(*tzname);
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630   (eval $ac_link) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } &&
9634          { ac_try='test -s conftest$ac_exeext'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_cv_var_tzname=yes
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9644 ac_cv_var_tzname=no
9645 fi
9646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9647 fi
9648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9650 if test $ac_cv_var_tzname = yes; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_TZNAME 1
9654 _ACEOF
9655
9656 fi
9657
9658 echo "$as_me:$LINENO: checking for union semun" >&5
9659 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9660 if test "${ac_cv_type_union_semun+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9667 #include <sys/ipc.h>
9668 #include <sys/sem.h>
9669
9670 #ifdef F77_DUMMY_MAIN
9671 #  ifdef __cplusplus
9672      extern "C"
9673 #  endif
9674    int F77_DUMMY_MAIN() { return 1; }
9675 #endif
9676 int
9677 main ()
9678 {
9679 if ((union semun *) 0)
9680   return 0;
9681 if (sizeof (union semun))
9682   return 0;
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9689   (eval $ac_compile) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -s conftest.$ac_objext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_type_union_semun=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 ac_cv_type_union_semun=no
9704 fi
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9708 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9709 if test $ac_cv_type_union_semun = yes; then
9710
9711 cat >>confdefs.h <<_ACEOF
9712 #define HAVE_UNION_SEMUN 1
9713 _ACEOF
9714
9715
9716 fi
9717
9718 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9719 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9720 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 #include "confdefs.h"
9726 #include <sys/types.h>
9727 #ifdef HAVE_SYS_UN_H
9728 #include <sys/un.h>
9729 #endif
9730
9731
9732 #ifdef F77_DUMMY_MAIN
9733 #  ifdef __cplusplus
9734      extern "C"
9735 #  endif
9736    int F77_DUMMY_MAIN() { return 1; }
9737 #endif
9738 int
9739 main ()
9740 {
9741 if ((struct sockaddr_un *) 0)
9742   return 0;
9743 if (sizeof (struct sockaddr_un))
9744   return 0;
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9751   (eval $ac_compile) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -s conftest.$ac_objext'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; }; then
9761   ac_cv_type_struct_sockaddr_un=yes
9762 else
9763   echo "$as_me: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 ac_cv_type_struct_sockaddr_un=no
9766 fi
9767 rm -f conftest.$ac_objext conftest.$ac_ext
9768 fi
9769 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9770 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9771 if test $ac_cv_type_struct_sockaddr_un = yes; then
9772
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_STRUCT_SOCKADDR_UN 1
9775 _ACEOF
9776
9777
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_UNIX_SOCKETS 1
9780 _ACEOF
9781
9782 fi
9783
9784 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9785 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9786 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 #include "confdefs.h"
9792 #include <sys/types.h>
9793 #ifdef HAVE_SYS_SOCKET_H
9794 #include <sys/socket.h>
9795 #endif
9796
9797
9798 #ifdef F77_DUMMY_MAIN
9799 #  ifdef __cplusplus
9800      extern "C"
9801 #  endif
9802    int F77_DUMMY_MAIN() { return 1; }
9803 #endif
9804 int
9805 main ()
9806 {
9807 if ((struct sockaddr_storage *) 0)
9808   return 0;
9809 if (sizeof (struct sockaddr_storage))
9810   return 0;
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9817   (eval $ac_compile) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -s conftest.$ac_objext'
9822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823   (eval $ac_try) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827   ac_cv_type_struct_sockaddr_storage=yes
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
9831 ac_cv_type_struct_sockaddr_storage=no
9832 fi
9833 rm -f conftest.$ac_objext conftest.$ac_ext
9834 fi
9835 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9836 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9837 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9838
9839 cat >>confdefs.h <<_ACEOF
9840 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9841 _ACEOF
9842
9843
9844 fi
9845
9846 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9847 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9848 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9853 #include "confdefs.h"
9854 #include <sys/types.h>
9855 #ifdef HAVE_SYS_SOCKET_H
9856 #include <sys/socket.h>
9857 #endif
9858
9859
9860 #ifdef F77_DUMMY_MAIN
9861 #  ifdef __cplusplus
9862      extern "C"
9863 #  endif
9864    int F77_DUMMY_MAIN() { return 1; }
9865 #endif
9866 int
9867 main ()
9868 {
9869 static struct sockaddr_storage ac_aggr;
9870 if (ac_aggr.ss_family)
9871 return 0;
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878   (eval $ac_compile) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest.$ac_objext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 ac_cv_member_struct_sockaddr_storage_ss_family=no
9893 fi
9894 rm -f conftest.$ac_objext conftest.$ac_ext
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9897 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9898 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9899
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9902 _ACEOF
9903
9904
9905 fi
9906 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9907 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9908 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 #include "confdefs.h"
9914 #include <sys/types.h>
9915 #ifdef HAVE_SYS_SOCKET_H
9916 #include <sys/socket.h>
9917 #endif
9918
9919
9920 #ifdef F77_DUMMY_MAIN
9921 #  ifdef __cplusplus
9922      extern "C"
9923 #  endif
9924    int F77_DUMMY_MAIN() { return 1; }
9925 #endif
9926 int
9927 main ()
9928 {
9929 static struct sockaddr_storage ac_aggr;
9930 if (ac_aggr.__ss_family)
9931 return 0;
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938   (eval $ac_compile) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } &&
9942          { ac_try='test -s conftest.$ac_objext'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; }; then
9948   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 ac_cv_member_struct_sockaddr_storage___ss_family=no
9953 fi
9954 rm -f conftest.$ac_objext conftest.$ac_ext
9955 fi
9956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9957 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9958 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9959
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9962 _ACEOF
9963
9964
9965 fi
9966 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9967 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9968 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9969   echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971   cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 #include "confdefs.h"
9974 #include <sys/types.h>
9975 #ifdef HAVE_SYS_SOCKET_H
9976 #include <sys/socket.h>
9977 #endif
9978
9979
9980 #ifdef F77_DUMMY_MAIN
9981 #  ifdef __cplusplus
9982      extern "C"
9983 #  endif
9984    int F77_DUMMY_MAIN() { return 1; }
9985 #endif
9986 int
9987 main ()
9988 {
9989 static struct sockaddr_storage ac_aggr;
9990 if (ac_aggr.ss_len)
9991 return 0;
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998   (eval $ac_compile) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } &&
10002          { ac_try='test -s conftest.$ac_objext'
10003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004   (eval $ac_try) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 ac_cv_member_struct_sockaddr_storage_ss_len=no
10013 fi
10014 rm -f conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10017 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10018 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10019
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10022 _ACEOF
10023
10024
10025 fi
10026 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10027 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10028 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 #include "confdefs.h"
10034 #include <sys/types.h>
10035 #ifdef HAVE_SYS_SOCKET_H
10036 #include <sys/socket.h>
10037 #endif
10038
10039
10040 #ifdef F77_DUMMY_MAIN
10041 #  ifdef __cplusplus
10042      extern "C"
10043 #  endif
10044    int F77_DUMMY_MAIN() { return 1; }
10045 #endif
10046 int
10047 main ()
10048 {
10049 static struct sockaddr_storage ac_aggr;
10050 if (ac_aggr.__ss_len)
10051 return 0;
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058   (eval $ac_compile) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -s conftest.$ac_objext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 ac_cv_member_struct_sockaddr_storage___ss_len=no
10073 fi
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10077 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10078 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10082 _ACEOF
10083
10084
10085 fi
10086 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10087 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10088 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10094 #include <sys/types.h>
10095 #ifdef HAVE_SYS_SOCKET_H
10096 #include <sys/socket.h>
10097 #endif
10098
10099
10100 #ifdef F77_DUMMY_MAIN
10101 #  ifdef __cplusplus
10102      extern "C"
10103 #  endif
10104    int F77_DUMMY_MAIN() { return 1; }
10105 #endif
10106 int
10107 main ()
10108 {
10109 static struct sockaddr ac_aggr;
10110 if (ac_aggr.sa_len)
10111 return 0;
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118   (eval $ac_compile) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); } &&
10122          { ac_try='test -s conftest.$ac_objext'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; }; then
10128   ac_cv_member_struct_sockaddr_sa_len=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 ac_cv_member_struct_sockaddr_sa_len=no
10133 fi
10134 rm -f conftest.$ac_objext conftest.$ac_ext
10135 fi
10136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10137 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10138 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10139
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10142 _ACEOF
10143
10144
10145 fi
10146
10147 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10148 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10149 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10156 #include <sys/socket.h>
10157 #include <netdb.h>
10158
10159
10160 #ifdef F77_DUMMY_MAIN
10161 #  ifdef __cplusplus
10162      extern "C"
10163 #  endif
10164    int F77_DUMMY_MAIN() { return 1; }
10165 #endif
10166 int
10167 main ()
10168 {
10169 if ((struct addrinfo *) 0)
10170   return 0;
10171 if (sizeof (struct addrinfo))
10172   return 0;
10173   ;
10174   return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179   (eval $ac_compile) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -s conftest.$ac_objext'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_type_struct_addrinfo=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 ac_cv_type_struct_addrinfo=no
10194 fi
10195 rm -f conftest.$ac_objext conftest.$ac_ext
10196 fi
10197 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10198 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10199 if test $ac_cv_type_struct_addrinfo = yes; then
10200
10201 cat >>confdefs.h <<_ACEOF
10202 #define HAVE_STRUCT_ADDRINFO 1
10203 _ACEOF
10204
10205
10206 fi
10207
10208
10209 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10210 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10211 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10217 #include <sys/param.h>
10218 #include <sys/types.h>
10219 #include <sys/socket.h>
10220 #include <sys/ucred.h>
10221
10222 #ifdef F77_DUMMY_MAIN
10223 #  ifdef __cplusplus
10224      extern "C"
10225 #  endif
10226    int F77_DUMMY_MAIN() { return 1; }
10227 #endif
10228 int
10229 main ()
10230 {
10231 if ((struct cmsgcred *) 0)
10232   return 0;
10233 if (sizeof (struct cmsgcred))
10234   return 0;
10235   ;
10236   return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241   (eval $ac_compile) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } &&
10245          { ac_try='test -s conftest.$ac_objext'
10246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247   (eval $ac_try) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; }; then
10251   ac_cv_type_struct_cmsgcred=yes
10252 else
10253   echo "$as_me: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 ac_cv_type_struct_cmsgcred=no
10256 fi
10257 rm -f conftest.$ac_objext conftest.$ac_ext
10258 fi
10259 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10260 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10261 if test $ac_cv_type_struct_cmsgcred = yes; then
10262
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_STRUCT_CMSGCRED 1
10265 _ACEOF
10266
10267
10268 fi
10269 echo "$as_me:$LINENO: checking for struct fcred" >&5
10270 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10271 if test "${ac_cv_type_struct_fcred+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   cat >conftest.$ac_ext <<_ACEOF
10275 #line $LINENO "configure"
10276 #include "confdefs.h"
10277 #include <sys/param.h>
10278 #include <sys/types.h>
10279 #include <sys/socket.h>
10280 #include <sys/ucred.h>
10281
10282 #ifdef F77_DUMMY_MAIN
10283 #  ifdef __cplusplus
10284      extern "C"
10285 #  endif
10286    int F77_DUMMY_MAIN() { return 1; }
10287 #endif
10288 int
10289 main ()
10290 {
10291 if ((struct fcred *) 0)
10292   return 0;
10293 if (sizeof (struct fcred))
10294   return 0;
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301   (eval $ac_compile) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } &&
10305          { ac_try='test -s conftest.$ac_objext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_type_struct_fcred=yes
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 ac_cv_type_struct_fcred=no
10316 fi
10317 rm -f conftest.$ac_objext conftest.$ac_ext
10318 fi
10319 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10320 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10321 if test $ac_cv_type_struct_fcred = yes; then
10322
10323 cat >>confdefs.h <<_ACEOF
10324 #define HAVE_STRUCT_FCRED 1
10325 _ACEOF
10326
10327
10328 fi
10329 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10330 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10331 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 #include "confdefs.h"
10337 #include <sys/param.h>
10338 #include <sys/types.h>
10339 #include <sys/socket.h>
10340 #include <sys/ucred.h>
10341
10342 #ifdef F77_DUMMY_MAIN
10343 #  ifdef __cplusplus
10344      extern "C"
10345 #  endif
10346    int F77_DUMMY_MAIN() { return 1; }
10347 #endif
10348 int
10349 main ()
10350 {
10351 if ((struct sockcred *) 0)
10352   return 0;
10353 if (sizeof (struct sockcred))
10354   return 0;
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 rm -f conftest.$ac_objext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361   (eval $ac_compile) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -s conftest.$ac_objext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   ac_cv_type_struct_sockcred=yes
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 ac_cv_type_struct_sockcred=no
10376 fi
10377 rm -f conftest.$ac_objext conftest.$ac_ext
10378 fi
10379 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10380 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10381 if test $ac_cv_type_struct_sockcred = yes; then
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_STRUCT_SOCKCRED 1
10385 _ACEOF
10386
10387
10388 fi
10389
10390
10391 echo "$as_me:$LINENO: checking for struct option" >&5
10392 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10393 if test "${ac_cv_type_struct_option+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   cat >conftest.$ac_ext <<_ACEOF
10397 #line $LINENO "configure"
10398 #include "confdefs.h"
10399 #ifdef HAVE_GETOPT_H
10400 #include <getopt.h>
10401 #endif
10402
10403 #ifdef F77_DUMMY_MAIN
10404 #  ifdef __cplusplus
10405      extern "C"
10406 #  endif
10407    int F77_DUMMY_MAIN() { return 1; }
10408 #endif
10409 int
10410 main ()
10411 {
10412 if ((struct option *) 0)
10413   return 0;
10414 if (sizeof (struct option))
10415   return 0;
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422   (eval $ac_compile) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } &&
10426          { ac_try='test -s conftest.$ac_objext'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_cv_type_struct_option=yes
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 ac_cv_type_struct_option=no
10437 fi
10438 rm -f conftest.$ac_objext conftest.$ac_ext
10439 fi
10440 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10441 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10442 if test $ac_cv_type_struct_option = yes; then
10443
10444 cat >>confdefs.h <<_ACEOF
10445 #define HAVE_STRUCT_OPTION 1
10446 _ACEOF
10447
10448
10449 fi
10450
10451
10452 if test "$with_zlib" = yes; then
10453   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10454   # did not).  While we could work around the lack of z_streamp, it
10455   # seems unwise to encourage people to use such old zlib versions...
10456   echo "$as_me:$LINENO: checking for z_streamp" >&5
10457 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10458 if test "${ac_cv_type_z_streamp+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   cat >conftest.$ac_ext <<_ACEOF
10462 #line $LINENO "configure"
10463 #include "confdefs.h"
10464 #include <zlib.h>
10465
10466 #ifdef F77_DUMMY_MAIN
10467 #  ifdef __cplusplus
10468      extern "C"
10469 #  endif
10470    int F77_DUMMY_MAIN() { return 1; }
10471 #endif
10472 int
10473 main ()
10474 {
10475 if ((z_streamp *) 0)
10476   return 0;
10477 if (sizeof (z_streamp))
10478   return 0;
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 rm -f conftest.$ac_objext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10485   (eval $ac_compile) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } &&
10489          { ac_try='test -s conftest.$ac_objext'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; }; then
10495   ac_cv_type_z_streamp=yes
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 ac_cv_type_z_streamp=no
10500 fi
10501 rm -f conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10504 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10505 if test $ac_cv_type_z_streamp = yes; then
10506   :
10507 else
10508   { { echo "$as_me:$LINENO: error: zlib version is too old
10509 Use --without-zlib to disable zlib support." >&5
10510 echo "$as_me: error: zlib version is too old
10511 Use --without-zlib to disable zlib support." >&2;}
10512    { (exit 1); exit 1; }; }
10513 fi
10514
10515 fi
10516
10517 if test "$with_krb5" = yes; then
10518 # Check for differences between MIT and Heimdal (KTH) releases
10519   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10520 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10521 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10522   echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524   cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10526 #include "confdefs.h"
10527 #include <krb5.h>
10528
10529 #ifdef F77_DUMMY_MAIN
10530 #  ifdef __cplusplus
10531      extern "C"
10532 #  endif
10533    int F77_DUMMY_MAIN() { return 1; }
10534 #endif
10535 int
10536 main ()
10537 {
10538 static krb5_ticket ac_aggr;
10539 if (ac_aggr.enc_part2)
10540 return 0;
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547   (eval $ac_compile) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } &&
10551          { ac_try='test -s conftest.$ac_objext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   ac_cv_member_krb5_ticket_enc_part2=yes
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 ac_cv_member_krb5_ticket_enc_part2=no
10562 fi
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10564 fi
10565 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10566 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10567 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10568
10569 cat >>confdefs.h <<_ACEOF
10570 #define HAVE_KRB5_TICKET_ENC_PART2 1
10571 _ACEOF
10572
10573
10574 else
10575   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10576 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10577 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10583 #include <krb5.h>
10584
10585 #ifdef F77_DUMMY_MAIN
10586 #  ifdef __cplusplus
10587      extern "C"
10588 #  endif
10589    int F77_DUMMY_MAIN() { return 1; }
10590 #endif
10591 int
10592 main ()
10593 {
10594 static krb5_ticket ac_aggr;
10595 if (ac_aggr.client)
10596 return 0;
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603   (eval $ac_compile) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } &&
10607          { ac_try='test -s conftest.$ac_objext'
10608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609   (eval $ac_try) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); }; }; then
10613   ac_cv_member_krb5_ticket_client=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 ac_cv_member_krb5_ticket_client=no
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10622 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10623 if test $ac_cv_member_krb5_ticket_client = yes; then
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_KRB5_TICKET_CLIENT 1
10627 _ACEOF
10628
10629
10630 else
10631   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10632 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10633    { (exit 1); exit 1; }; }
10634 fi
10635
10636 fi
10637
10638   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10639 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10640 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 #include "confdefs.h"
10646 #include <krb5.h>
10647
10648 #ifdef F77_DUMMY_MAIN
10649 #  ifdef __cplusplus
10650      extern "C"
10651 #  endif
10652    int F77_DUMMY_MAIN() { return 1; }
10653 #endif
10654 int
10655 main ()
10656 {
10657 static krb5_error ac_aggr;
10658 if (ac_aggr.text.data)
10659 return 0;
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666   (eval $ac_compile) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } &&
10670          { ac_try='test -s conftest.$ac_objext'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   ac_cv_member_krb5_error_text_data=yes
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 ac_cv_member_krb5_error_text_data=no
10681 fi
10682 rm -f conftest.$ac_objext conftest.$ac_ext
10683 fi
10684 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10685 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10686 if test $ac_cv_member_krb5_error_text_data = yes; then
10687
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10690 _ACEOF
10691
10692
10693 else
10694   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10695 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10696 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10702 #include <krb5.h>
10703
10704 #ifdef F77_DUMMY_MAIN
10705 #  ifdef __cplusplus
10706      extern "C"
10707 #  endif
10708    int F77_DUMMY_MAIN() { return 1; }
10709 #endif
10710 int
10711 main ()
10712 {
10713 static krb5_error ac_aggr;
10714 if (ac_aggr.e_data)
10715 return 0;
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722   (eval $ac_compile) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest.$ac_objext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   ac_cv_member_krb5_error_e_data=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 ac_cv_member_krb5_error_e_data=no
10737 fi
10738 rm -f conftest.$ac_objext conftest.$ac_ext
10739 fi
10740 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10741 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10742 if test $ac_cv_member_krb5_error_e_data = yes; then
10743
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_KRB5_ERROR_E_DATA 1
10746 _ACEOF
10747
10748
10749 else
10750   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10751 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10752    { (exit 1); exit 1; }; }
10753 fi
10754
10755 fi
10756
10757 fi
10758
10759
10760 ##
10761 ## Functions, global variables
10762 ##
10763
10764 echo "$as_me:$LINENO: checking for int timezone" >&5
10765 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10766 if test "${pgac_cv_var_int_timezone+set}" = set; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   cat >conftest.$ac_ext <<_ACEOF
10770 #line $LINENO "configure"
10771 #include "confdefs.h"
10772 #include <time.h>
10773 int res;
10774 #ifdef F77_DUMMY_MAIN
10775 #  ifdef __cplusplus
10776      extern "C"
10777 #  endif
10778    int F77_DUMMY_MAIN() { return 1; }
10779 #endif
10780 int
10781 main ()
10782 {
10783 res = timezone / 60;
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } &&
10794          { ac_try='test -s conftest$ac_exeext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   pgac_cv_var_int_timezone=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 pgac_cv_var_int_timezone=no
10805 fi
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807 fi
10808 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10809 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10810 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10811
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_INT_TIMEZONE
10814 _ACEOF
10815
10816 fi
10817 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10818 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10819  if test "${ac_cv_func_accept_return+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822    if test "${ac_cv_func_accept_arg1+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825     if test "${ac_cv_func_accept_arg2+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828      if test "${ac_cv_func_accept_arg3+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10832       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10833        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10834         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10835          cat >conftest.$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10838 #ifdef HAVE_SYS_TYPES_H
10839 #include <sys/types.h>
10840 #endif
10841 #ifdef HAVE_SYS_SOCKET_H
10842 #include <sys/socket.h>
10843 #endif
10844 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10845 #ifdef F77_DUMMY_MAIN
10846 #  ifdef __cplusplus
10847      extern "C"
10848 #  endif
10849    int F77_DUMMY_MAIN() { return 1; }
10850 #endif
10851 int
10852 main ()
10853 {
10854
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861   (eval $ac_compile) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); } &&
10865          { ac_try='test -s conftest.$ac_objext'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_not_found=no; break 4
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 ac_not_found=yes
10876 fi
10877 rm -f conftest.$ac_objext conftest.$ac_ext
10878        done
10879       done
10880      done
10881     done
10882     if test "$ac_not_found" = yes; then
10883       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10884 echo "$as_me: error: could not determine argument types" >&2;}
10885    { (exit 1); exit 1; }; }
10886     fi
10887     if test "$ac_cv_func_accept_arg3" = "void"; then
10888       ac_cv_func_accept_arg3=int
10889     fi
10890
10891 fi
10892
10893 fi
10894
10895 fi
10896
10897 fi
10898  echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10899 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10900
10901 cat >>confdefs.h <<_ACEOF
10902 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10903 _ACEOF
10904
10905
10906 cat >>confdefs.h <<_ACEOF
10907 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10908 _ACEOF
10909
10910
10911 cat >>confdefs.h <<_ACEOF
10912 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10913 _ACEOF
10914
10915
10916 cat >>confdefs.h <<_ACEOF
10917 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10918 _ACEOF
10919
10920
10921 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10922 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10923 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 #line $LINENO "configure"
10928 #include "confdefs.h"
10929 #include <sys/time.h>
10930 #ifdef F77_DUMMY_MAIN
10931 #  ifdef __cplusplus
10932      extern "C"
10933 #  endif
10934    int F77_DUMMY_MAIN() { return 1; }
10935 #endif
10936 int
10937 main ()
10938 {
10939 struct timeval *tp;
10940 struct timezone *tzp;
10941 gettimeofday(tp,tzp);
10942   ;
10943   return 0;
10944 }
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948   (eval $ac_compile) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } &&
10952          { ac_try='test -s conftest.$ac_objext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   pgac_cv_func_gettimeofday_1arg=no
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10962 pgac_cv_func_gettimeofday_1arg=yes
10963 fi
10964 rm -f conftest.$ac_objext conftest.$ac_ext
10965 fi
10966 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10967 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10968 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10969
10970 cat >>confdefs.h <<\_ACEOF
10971 #define GETTIMEOFDAY_1ARG
10972 _ACEOF
10973
10974 fi
10975
10976
10977
10978 # SunOS doesn't handle negative byte comparisons properly with +/- return
10979 echo "$as_me:$LINENO: checking for working memcmp" >&5
10980 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10981 if test "${ac_cv_func_memcmp_working+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   if test "$cross_compiling" = yes; then
10985   ac_cv_func_memcmp_working=no
10986 else
10987   cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990
10991 #ifdef F77_DUMMY_MAIN
10992 #  ifdef __cplusplus
10993      extern "C"
10994 #  endif
10995    int F77_DUMMY_MAIN() { return 1; }
10996 #endif
10997 int
10998 main ()
10999 {
11000
11001   /* Some versions of memcmp are not 8-bit clean.  */
11002   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11003   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11004     exit (1);
11005
11006   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11007      or more and with at least one buffer not starting on a 4-byte boundary.
11008      William Lewis provided this test program.   */
11009   {
11010     char foo[21];
11011     char bar[21];
11012     int i;
11013     for (i = 0; i < 4; i++)
11014       {
11015         char *a = foo + i;
11016         char *b = bar + i;
11017         strcpy (a, "--------01111111");
11018         strcpy (b, "--------10000000");
11019         if (memcmp (a, b, 16) >= 0)
11020           exit (1);
11021       }
11022     exit (0);
11023   }
11024
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031   (eval $ac_link) 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036   (eval $ac_try) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; }; then
11040   ac_cv_func_memcmp_working=yes
11041 else
11042   echo "$as_me: program exited with status $ac_status" >&5
11043 echo "$as_me: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11045 ( exit $ac_status )
11046 ac_cv_func_memcmp_working=no
11047 fi
11048 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11049 fi
11050 fi
11051 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11052 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11053 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11073 do
11074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11075 echo "$as_me:$LINENO: checking for $ac_func" >&5
11076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11077 if eval "test \"\${$as_ac_var+set}\" = set"; then
11078   echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080   cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084     which can conflict with char $ac_func (); below.  */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error.  */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 /* We use char because int might match the return type of a gcc2
11091    builtin and then its argument prototype would still apply.  */
11092 char $ac_func ();
11093 char (*f) ();
11094
11095 #ifdef F77_DUMMY_MAIN
11096 #  ifdef __cplusplus
11097      extern "C"
11098 #  endif
11099    int F77_DUMMY_MAIN() { return 1; }
11100 #endif
11101 int
11102 main ()
11103 {
11104 /* The GNU C library defines this for functions which it implements
11105     to always fail with ENOSYS.  Some functions are actually named
11106     something starting with __ and the normal name is an alias.  */
11107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11108 choke me
11109 #else
11110 f = $ac_func;
11111 #endif
11112
11113   ;
11114   return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119   (eval $ac_link) 2>&5
11120   ac_status=$?
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -s conftest$ac_exeext'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; }; then
11129   eval "$as_ac_var=yes"
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 eval "$as_ac_var=no"
11134 fi
11135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11136 fi
11137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11139 if test `eval echo '${'$as_ac_var'}'` = yes; then
11140   cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11142 _ACEOF
11143
11144 fi
11145 done
11146
11147
11148 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11149 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11150 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153   cat >conftest.$ac_ext <<_ACEOF
11154 #line $LINENO "configure"
11155 #include "confdefs.h"
11156 #include <unistd.h>
11157
11158 #ifdef F77_DUMMY_MAIN
11159 #  ifdef __cplusplus
11160      extern "C"
11161 #  endif
11162    int F77_DUMMY_MAIN() { return 1; }
11163 #endif
11164 int
11165 main ()
11166 {
11167 #ifndef fdatasync
11168   char *p = (char *) fdatasync;
11169 #endif
11170
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177   (eval $ac_compile) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_cv_have_decl_fdatasync=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 ac_cv_have_decl_fdatasync=no
11192 fi
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11194 fi
11195 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11196 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11197 if test $ac_cv_have_decl_fdatasync = yes; then
11198
11199 cat >>confdefs.h <<_ACEOF
11200 #define HAVE_DECL_FDATASYNC 1
11201 _ACEOF
11202
11203
11204 else
11205   cat >>confdefs.h <<_ACEOF
11206 #define HAVE_DECL_FDATASYNC 0
11207 _ACEOF
11208
11209
11210 fi
11211
11212
11213
11214 HAVE_IPV6=no
11215 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11216 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11217 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 #include "confdefs.h"
11223 $ac_includes_default
11224 #include <netinet/in.h>
11225
11226 #ifdef F77_DUMMY_MAIN
11227 #  ifdef __cplusplus
11228      extern "C"
11229 #  endif
11230    int F77_DUMMY_MAIN() { return 1; }
11231 #endif
11232 int
11233 main ()
11234 {
11235 if ((struct sockaddr_in6 *) 0)
11236   return 0;
11237 if (sizeof (struct sockaddr_in6))
11238   return 0;
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245   (eval $ac_compile) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); } &&
11249          { ac_try='test -s conftest.$ac_objext'
11250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251   (eval $ac_try) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; }; then
11255   ac_cv_type_struct_sockaddr_in6=yes
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11259 ac_cv_type_struct_sockaddr_in6=no
11260 fi
11261 rm -f conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11264 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11265 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11266   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11267 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11268 if test "${ac_cv_func_inet_ntop+set}" = set; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 #include "confdefs.h"
11274 /* System header to define __stub macros and hopefully few prototypes,
11275     which can conflict with char inet_ntop (); below.  */
11276 #include <assert.h>
11277 /* Override any gcc2 internal prototype to avoid an error.  */
11278 #ifdef __cplusplus
11279 extern "C"
11280 #endif
11281 /* We use char because int might match the return type of a gcc2
11282    builtin and then its argument prototype would still apply.  */
11283 char inet_ntop ();
11284 char (*f) ();
11285
11286 #ifdef F77_DUMMY_MAIN
11287 #  ifdef __cplusplus
11288      extern "C"
11289 #  endif
11290    int F77_DUMMY_MAIN() { return 1; }
11291 #endif
11292 int
11293 main ()
11294 {
11295 /* The GNU C library defines this for functions which it implements
11296     to always fail with ENOSYS.  Some functions are actually named
11297     something starting with __ and the normal name is an alias.  */
11298 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11299 choke me
11300 #else
11301 f = inet_ntop;
11302 #endif
11303
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310   (eval $ac_link) 2>&5
11311   ac_status=$?
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -s conftest$ac_exeext'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; }; then
11320   ac_cv_func_inet_ntop=yes
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 ac_cv_func_inet_ntop=no
11325 fi
11326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11327 fi
11328 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11329 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11330 if test $ac_cv_func_inet_ntop = yes; then
11331
11332 cat >>confdefs.h <<\_ACEOF
11333 #define HAVE_IPV6 1
11334 _ACEOF
11335
11336                                                           HAVE_IPV6=yes
11337 fi
11338
11339 fi
11340
11341
11342
11343 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11344 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11345 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 #include "confdefs.h"
11351 #include <machine/vmparam.h>
11352 #include <sys/exec.h>
11353
11354 #ifdef F77_DUMMY_MAIN
11355 #  ifdef __cplusplus
11356      extern "C"
11357 #  endif
11358    int F77_DUMMY_MAIN() { return 1; }
11359 #endif
11360 int
11361 main ()
11362 {
11363 PS_STRINGS->ps_nargvstr = 1;
11364 PS_STRINGS->ps_argvstr = "foo";
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371   (eval $ac_link) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); } &&
11375          { ac_try='test -s conftest$ac_exeext'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   pgac_cv_var_PS_STRINGS=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 pgac_cv_var_PS_STRINGS=no
11386 fi
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11388 fi
11389 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11390 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11391 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11392
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_PS_STRINGS
11395 _ACEOF
11396
11397 fi
11398
11399
11400 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11401 # is missing.  Yes, there are machines that have only one.  We may
11402 # also decide to use snprintf.c if snprintf() is present but does not
11403 # have working "long long int" support -- see below.
11404
11405 pgac_need_repl_snprintf=no
11406
11407 for ac_func in snprintf
11408 do
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11412 if eval "test \"\${$as_ac_var+set}\" = set"; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11417 #include "confdefs.h"
11418 /* System header to define __stub macros and hopefully few prototypes,
11419     which can conflict with char $ac_func (); below.  */
11420 #include <assert.h>
11421 /* Override any gcc2 internal prototype to avoid an error.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 /* We use char because int might match the return type of a gcc2
11426    builtin and then its argument prototype would still apply.  */
11427 char $ac_func ();
11428 char (*f) ();
11429
11430 #ifdef F77_DUMMY_MAIN
11431 #  ifdef __cplusplus
11432      extern "C"
11433 #  endif
11434    int F77_DUMMY_MAIN() { return 1; }
11435 #endif
11436 int
11437 main ()
11438 {
11439 /* The GNU C library defines this for functions which it implements
11440     to always fail with ENOSYS.  Some functions are actually named
11441     something starting with __ and the normal name is an alias.  */
11442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11443 choke me
11444 #else
11445 f = $ac_func;
11446 #endif
11447
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454   (eval $ac_link) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -s conftest$ac_exeext'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; }; then
11464   eval "$as_ac_var=yes"
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 eval "$as_ac_var=no"
11469 fi
11470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11471 fi
11472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11474 if test `eval echo '${'$as_ac_var'}'` = yes; then
11475   cat >>confdefs.h <<_ACEOF
11476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11477 _ACEOF
11478
11479 else
11480   pgac_need_repl_snprintf=yes
11481 fi
11482 done
11483
11484
11485 for ac_func in vsnprintf
11486 do
11487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11488 echo "$as_me:$LINENO: checking for $ac_func" >&5
11489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_var+set}\" = set"; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   cat >conftest.$ac_ext <<_ACEOF
11494 #line $LINENO "configure"
11495 #include "confdefs.h"
11496 /* System header to define __stub macros and hopefully few prototypes,
11497     which can conflict with char $ac_func (); below.  */
11498 #include <assert.h>
11499 /* Override any gcc2 internal prototype to avoid an error.  */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 /* We use char because int might match the return type of a gcc2
11504    builtin and then its argument prototype would still apply.  */
11505 char $ac_func ();
11506 char (*f) ();
11507
11508 #ifdef F77_DUMMY_MAIN
11509 #  ifdef __cplusplus
11510      extern "C"
11511 #  endif
11512    int F77_DUMMY_MAIN() { return 1; }
11513 #endif
11514 int
11515 main ()
11516 {
11517 /* The GNU C library defines this for functions which it implements
11518     to always fail with ENOSYS.  Some functions are actually named
11519     something starting with __ and the normal name is an alias.  */
11520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11521 choke me
11522 #else
11523 f = $ac_func;
11524 #endif
11525
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532   (eval $ac_link) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } &&
11536          { ac_try='test -s conftest$ac_exeext'
11537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538   (eval $ac_try) 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; }; then
11542   eval "$as_ac_var=yes"
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 eval "$as_ac_var=no"
11547 fi
11548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11549 fi
11550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11552 if test `eval echo '${'$as_ac_var'}'` = yes; then
11553   cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555 _ACEOF
11556
11557 else
11558   pgac_need_repl_snprintf=yes
11559 fi
11560 done
11561
11562
11563
11564 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11565 # include/c.h will provide declarations.  Note this is a separate test
11566 # from whether the functions exist in the C library --- there are
11567 # systems that have the functions but don't bother to declare them :-(
11568
11569 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11570 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11571 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   cat >conftest.$ac_ext <<_ACEOF
11575 #line $LINENO "configure"
11576 #include "confdefs.h"
11577 $ac_includes_default
11578 #ifdef F77_DUMMY_MAIN
11579 #  ifdef __cplusplus
11580      extern "C"
11581 #  endif
11582    int F77_DUMMY_MAIN() { return 1; }
11583 #endif
11584 int
11585 main ()
11586 {
11587 #ifndef snprintf
11588   char *p = (char *) snprintf;
11589 #endif
11590
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597   (eval $ac_compile) 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -s conftest.$ac_objext'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }; then
11607   ac_cv_have_decl_snprintf=yes
11608 else
11609   echo "$as_me: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 ac_cv_have_decl_snprintf=no
11612 fi
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11614 fi
11615 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11616 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11617 if test $ac_cv_have_decl_snprintf = yes; then
11618
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_DECL_SNPRINTF 1
11621 _ACEOF
11622
11623
11624 else
11625   cat >>confdefs.h <<_ACEOF
11626 #define HAVE_DECL_SNPRINTF 0
11627 _ACEOF
11628
11629
11630 fi
11631 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11632 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11633 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639 $ac_includes_default
11640 #ifdef F77_DUMMY_MAIN
11641 #  ifdef __cplusplus
11642      extern "C"
11643 #  endif
11644    int F77_DUMMY_MAIN() { return 1; }
11645 #endif
11646 int
11647 main ()
11648 {
11649 #ifndef vsnprintf
11650   char *p = (char *) vsnprintf;
11651 #endif
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659   (eval $ac_compile) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -s conftest.$ac_objext'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }; then
11669   ac_cv_have_decl_vsnprintf=yes
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11673 ac_cv_have_decl_vsnprintf=no
11674 fi
11675 rm -f conftest.$ac_objext conftest.$ac_ext
11676 fi
11677 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11678 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11679 if test $ac_cv_have_decl_vsnprintf = yes; then
11680
11681 cat >>confdefs.h <<_ACEOF
11682 #define HAVE_DECL_VSNPRINTF 1
11683 _ACEOF
11684
11685
11686 else
11687   cat >>confdefs.h <<_ACEOF
11688 #define HAVE_DECL_VSNPRINTF 0
11689 _ACEOF
11690
11691
11692 fi
11693
11694
11695
11696
11697 # do this one the hard way in case isinf() is a macro
11698 echo "$as_me:$LINENO: checking for isinf" >&5
11699 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11700 if test "${ac_cv_func_isinf+set}" = set; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 #include "confdefs.h"
11706 #include <math.h>
11707
11708 #ifdef F77_DUMMY_MAIN
11709 #  ifdef __cplusplus
11710      extern "C"
11711 #  endif
11712    int F77_DUMMY_MAIN() { return 1; }
11713 #endif
11714 int
11715 main ()
11716 {
11717 double x = 0.0; int res = isinf(x);
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } &&
11728          { ac_try='test -s conftest$ac_exeext'
11729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730   (eval $ac_try) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; }; then
11734   ac_cv_func_isinf=yes
11735 else
11736   echo "$as_me: failed program was:" >&5
11737 cat conftest.$ac_ext >&5
11738 ac_cv_func_isinf=no
11739 fi
11740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11741 fi
11742 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11743 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11744
11745 if test $ac_cv_func_isinf = yes ; then
11746
11747 cat >>confdefs.h <<\_ACEOF
11748 #define HAVE_ISINF 1
11749 _ACEOF
11750
11751 else
11752   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11753   # Look for a way to implement a substitute for isinf()
11754
11755
11756
11757
11758 for ac_func in fpclass fp_class fp_class_d class
11759 do
11760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11761 echo "$as_me:$LINENO: checking for $ac_func" >&5
11762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11763 if eval "test \"\${$as_ac_var+set}\" = set"; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 #include "confdefs.h"
11769 /* System header to define __stub macros and hopefully few prototypes,
11770     which can conflict with char $ac_func (); below.  */
11771 #include <assert.h>
11772 /* Override any gcc2 internal prototype to avoid an error.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777    builtin and then its argument prototype would still apply.  */
11778 char $ac_func ();
11779 char (*f) ();
11780
11781 #ifdef F77_DUMMY_MAIN
11782 #  ifdef __cplusplus
11783      extern "C"
11784 #  endif
11785    int F77_DUMMY_MAIN() { return 1; }
11786 #endif
11787 int
11788 main ()
11789 {
11790 /* The GNU C library defines this for functions which it implements
11791     to always fail with ENOSYS.  Some functions are actually named
11792     something starting with __ and the normal name is an alias.  */
11793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11794 choke me
11795 #else
11796 f = $ac_func;
11797 #endif
11798
11799   ;
11800   return 0;
11801 }
11802 _ACEOF
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11805   (eval $ac_link) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } &&
11809          { ac_try='test -s conftest$ac_exeext'
11810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811   (eval $ac_try) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; }; then
11815   eval "$as_ac_var=yes"
11816 else
11817   echo "$as_me: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 eval "$as_ac_var=no"
11820 fi
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11822 fi
11823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11826   cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11828 _ACEOF
11829  break
11830 fi
11831 done
11832
11833 fi
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11849 do
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11853 if eval "test \"\${$as_ac_var+set}\" = set"; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   cat >conftest.$ac_ext <<_ACEOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11859 /* System header to define __stub macros and hopefully few prototypes,
11860     which can conflict with char $ac_func (); below.  */
11861 #include <assert.h>
11862 /* Override any gcc2 internal prototype to avoid an error.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 /* We use char because int might match the return type of a gcc2
11867    builtin and then its argument prototype would still apply.  */
11868 char $ac_func ();
11869 char (*f) ();
11870
11871 #ifdef F77_DUMMY_MAIN
11872 #  ifdef __cplusplus
11873      extern "C"
11874 #  endif
11875    int F77_DUMMY_MAIN() { return 1; }
11876 #endif
11877 int
11878 main ()
11879 {
11880 /* The GNU C library defines this for functions which it implements
11881     to always fail with ENOSYS.  Some functions are actually named
11882     something starting with __ and the normal name is an alias.  */
11883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 choke me
11885 #else
11886 f = $ac_func;
11887 #endif
11888
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895   (eval $ac_link) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; }; then
11905   eval "$as_ac_var=yes"
11906 else
11907   echo "$as_me: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11909 eval "$as_ac_var=no"
11910 fi
11911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11912 fi
11913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919
11920 else
11921   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11922 fi
11923 done
11924
11925
11926
11927 # system's version of getaddrinfo(), if any, may be used only if we found
11928 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11929 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11930
11931 for ac_func in getaddrinfo
11932 do
11933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934 echo "$as_me:$LINENO: checking for $ac_func" >&5
11935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11936 if eval "test \"\${$as_ac_var+set}\" = set"; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   cat >conftest.$ac_ext <<_ACEOF
11940 #line $LINENO "configure"
11941 #include "confdefs.h"
11942 /* System header to define __stub macros and hopefully few prototypes,
11943     which can conflict with char $ac_func (); below.  */
11944 #include <assert.h>
11945 /* Override any gcc2 internal prototype to avoid an error.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char $ac_func ();
11952 char (*f) ();
11953
11954 #ifdef F77_DUMMY_MAIN
11955 #  ifdef __cplusplus
11956      extern "C"
11957 #  endif
11958    int F77_DUMMY_MAIN() { return 1; }
11959 #endif
11960 int
11961 main ()
11962 {
11963 /* The GNU C library defines this for functions which it implements
11964     to always fail with ENOSYS.  Some functions are actually named
11965     something starting with __ and the normal name is an alias.  */
11966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11967 choke me
11968 #else
11969 f = $ac_func;
11970 #endif
11971
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978   (eval $ac_link) 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } &&
11982          { ac_try='test -s conftest$ac_exeext'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; }; then
11988   eval "$as_ac_var=yes"
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11992 eval "$as_ac_var=no"
11993 fi
11994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11995 fi
11996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11998 if test `eval echo '${'$as_ac_var'}'` = yes; then
11999   cat >>confdefs.h <<_ACEOF
12000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 _ACEOF
12002
12003 else
12004   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12005 fi
12006 done
12007
12008
12009 else
12010   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12011 fi
12012
12013 # similarly, use system's getopt_long() only if system provides struct option.
12014 if test x"$ac_cv_type_struct_option" = xyes ; then
12015
12016 for ac_func in getopt_long
12017 do
12018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 echo "$as_me:$LINENO: checking for $ac_func" >&5
12020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12021 if eval "test \"\${$as_ac_var+set}\" = set"; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   cat >conftest.$ac_ext <<_ACEOF
12025 #line $LINENO "configure"
12026 #include "confdefs.h"
12027 /* System header to define __stub macros and hopefully few prototypes,
12028     which can conflict with char $ac_func (); below.  */
12029 #include <assert.h>
12030 /* Override any gcc2 internal prototype to avoid an error.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 /* We use char because int might match the return type of a gcc2
12035    builtin and then its argument prototype would still apply.  */
12036 char $ac_func ();
12037 char (*f) ();
12038
12039 #ifdef F77_DUMMY_MAIN
12040 #  ifdef __cplusplus
12041      extern "C"
12042 #  endif
12043    int F77_DUMMY_MAIN() { return 1; }
12044 #endif
12045 int
12046 main ()
12047 {
12048 /* The GNU C library defines this for functions which it implements
12049     to always fail with ENOSYS.  Some functions are actually named
12050     something starting with __ and the normal name is an alias.  */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12052 choke me
12053 #else
12054 f = $ac_func;
12055 #endif
12056
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -s conftest$ac_exeext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   eval "$as_ac_var=yes"
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 cat conftest.$ac_ext >&5
12077 eval "$as_ac_var=no"
12078 fi
12079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12080 fi
12081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12083 if test `eval echo '${'$as_ac_var'}'` = yes; then
12084   cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12086 _ACEOF
12087
12088 else
12089   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12090 fi
12091 done
12092
12093
12094 else
12095   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12096 fi
12097
12098 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12099 # We override the previous test that said fseeko/ftello didn't exist
12100 # OS tests are also done in include/c.h and port/fseeko.c
12101 case $host_os in bsdi*|netbsd*)
12102 ac_cv_func_fseeko=yes
12103 esac
12104
12105 # Solaris has a very slow qsort in certain cases, so we replace it.
12106 case $host_os in solaris*)
12107 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12108 esac
12109
12110 # Win32 can't to rename or unlink on an open file
12111 case $host_os in mingw*)
12112 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12113 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12114 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12115 esac
12116
12117 if test "$with_readline" = yes; then
12118   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12119 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12121 #line $LINENO "configure"
12122 #include "confdefs.h"
12123 #include <stdio.h>
12124 #ifdef HAVE_READLINE_READLINE_H
12125 # include <readline/readline.h>
12126 #elif defined(HAVE_READLINE_H)
12127 # include <readline.h>
12128 #endif
12129
12130 #ifdef F77_DUMMY_MAIN
12131 #  ifdef __cplusplus
12132      extern "C"
12133 #  endif
12134    int F77_DUMMY_MAIN() { return 1; }
12135 #endif
12136 int
12137 main ()
12138 {
12139 rl_completion_append_character = 'x';
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146   (eval $ac_link) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } &&
12150          { ac_try='test -s conftest$ac_exeext'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   echo "$as_me:$LINENO: result: yes" >&5
12157 echo "${ECHO_T}yes" >&6
12158
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12161 _ACEOF
12162
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 echo "$as_me:$LINENO: result: no" >&5
12167 echo "${ECHO_T}no" >&6
12168 fi
12169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12170
12171
12172 for ac_func in rl_completion_matches rl_filename_completion_function
12173 do
12174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12175 echo "$as_me:$LINENO: checking for $ac_func" >&5
12176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12177 if eval "test \"\${$as_ac_var+set}\" = set"; then
12178   echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180   cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 #include "confdefs.h"
12183 /* System header to define __stub macros and hopefully few prototypes,
12184     which can conflict with char $ac_func (); below.  */
12185 #include <assert.h>
12186 /* Override any gcc2 internal prototype to avoid an error.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 /* We use char because int might match the return type of a gcc2
12191    builtin and then its argument prototype would still apply.  */
12192 char $ac_func ();
12193 char (*f) ();
12194
12195 #ifdef F77_DUMMY_MAIN
12196 #  ifdef __cplusplus
12197      extern "C"
12198 #  endif
12199    int F77_DUMMY_MAIN() { return 1; }
12200 #endif
12201 int
12202 main ()
12203 {
12204 /* The GNU C library defines this for functions which it implements
12205     to always fail with ENOSYS.  Some functions are actually named
12206     something starting with __ and the normal name is an alias.  */
12207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208 choke me
12209 #else
12210 f = $ac_func;
12211 #endif
12212
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   eval "$as_ac_var=yes"
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12233 eval "$as_ac_var=no"
12234 fi
12235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 fi
12245 done
12246
12247
12248 for ac_func in replace_history_entry
12249 do
12250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12251 echo "$as_me:$LINENO: checking for $ac_func" >&5
12252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12253 if eval "test \"\${$as_ac_var+set}\" = set"; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 /* System header to define __stub macros and hopefully few prototypes,
12260     which can conflict with char $ac_func (); below.  */
12261 #include <assert.h>
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267    builtin and then its argument prototype would still apply.  */
12268 char $ac_func ();
12269 char (*f) ();
12270
12271 #ifdef F77_DUMMY_MAIN
12272 #  ifdef __cplusplus
12273      extern "C"
12274 #  endif
12275    int F77_DUMMY_MAIN() { return 1; }
12276 #endif
12277 int
12278 main ()
12279 {
12280 /* The GNU C library defines this for functions which it implements
12281     to always fail with ENOSYS.  Some functions are actually named
12282     something starting with __ and the normal name is an alias.  */
12283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12284 choke me
12285 #else
12286 f = $ac_func;
12287 #endif
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295   (eval $ac_link) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   eval "$as_ac_var=yes"
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 eval "$as_ac_var=no"
12310 fi
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12312 fi
12313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12315 if test `eval echo '${'$as_ac_var'}'` = yes; then
12316   cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12318 _ACEOF
12319
12320 fi
12321 done
12322
12323 fi
12324
12325
12326 echo "$as_me:$LINENO: checking for finite" >&5
12327 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12331 #include <math.h>
12332 #ifdef F77_DUMMY_MAIN
12333 #  ifdef __cplusplus
12334      extern "C"
12335 #  endif
12336    int F77_DUMMY_MAIN() { return 1; }
12337 #endif
12338 int
12339 main ()
12340 {
12341 int dummy=finite(1.0);
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348   (eval $ac_link) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -s conftest$ac_exeext'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358
12359 cat >>confdefs.h <<\_ACEOF
12360 #define HAVE_FINITE 1
12361 _ACEOF
12362
12363 echo "$as_me:$LINENO: result: yes" >&5
12364 echo "${ECHO_T}yes" >&6
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 echo "$as_me:$LINENO: result: no" >&5
12369 echo "${ECHO_T}no" >&6
12370 fi
12371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12372
12373 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12374 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line $LINENO "configure"
12377 #include "confdefs.h"
12378 #include <setjmp.h>
12379 #ifdef F77_DUMMY_MAIN
12380 #  ifdef __cplusplus
12381      extern "C"
12382 #  endif
12383    int F77_DUMMY_MAIN() { return 1; }
12384 #endif
12385 int
12386 main ()
12387 {
12388 sigjmp_buf x; sigsetjmp(x, 1);
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12395   (eval $ac_link) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } &&
12399          { ac_try='test -s conftest$ac_exeext'
12400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401   (eval $ac_try) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; }; then
12405
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_SIGSETJMP 1
12408 _ACEOF
12409
12410 echo "$as_me:$LINENO: result: yes" >&5
12411 echo "${ECHO_T}yes" >&6
12412 else
12413   echo "$as_me: failed program was:" >&5
12414 cat conftest.$ac_ext >&5
12415 echo "$as_me:$LINENO: result: no" >&5
12416 echo "${ECHO_T}no" >&6
12417 fi
12418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12419
12420 echo "$as_me:$LINENO: checking for syslog" >&5
12421 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12422 if test "${ac_cv_func_syslog+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   cat >conftest.$ac_ext <<_ACEOF
12426 #line $LINENO "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429     which can conflict with char syslog (); below.  */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error.  */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436    builtin and then its argument prototype would still apply.  */
12437 char syslog ();
12438 char (*f) ();
12439
12440 #ifdef F77_DUMMY_MAIN
12441 #  ifdef __cplusplus
12442      extern "C"
12443 #  endif
12444    int F77_DUMMY_MAIN() { return 1; }
12445 #endif
12446 int
12447 main ()
12448 {
12449 /* The GNU C library defines this for functions which it implements
12450     to always fail with ENOSYS.  Some functions are actually named
12451     something starting with __ and the normal name is an alias.  */
12452 #if defined (__stub_syslog) || defined (__stub___syslog)
12453 choke me
12454 #else
12455 f = syslog;
12456 #endif
12457
12458   ;
12459   return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464   (eval $ac_link) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -s conftest$ac_exeext'
12469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470   (eval $ac_try) 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474   ac_cv_func_syslog=yes
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12478 ac_cv_func_syslog=no
12479 fi
12480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12481 fi
12482 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12483 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12484 if test $ac_cv_func_syslog = yes; then
12485   if test "${ac_cv_header_syslog_h+set}" = set; then
12486   echo "$as_me:$LINENO: checking for syslog.h" >&5
12487 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12488 if test "${ac_cv_header_syslog_h+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 fi
12491 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12492 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12493 else
12494   # Is the header compilable?
12495 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12496 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12499 #include "confdefs.h"
12500 $ac_includes_default
12501 #include <syslog.h>
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -s conftest.$ac_objext'
12510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511   (eval $ac_try) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; }; then
12515   ac_header_compiler=yes
12516 else
12517   echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ac_header_compiler=no
12520 fi
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12524
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12527 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 #include "confdefs.h"
12531 #include <syslog.h>
12532 _ACEOF
12533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12535   ac_status=$?
12536   egrep -v '^ *\+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } >/dev/null; then
12541   if test -s conftest.err; then
12542     ac_cpp_err=$ac_c_preproc_warn_flag
12543   else
12544     ac_cpp_err=
12545   fi
12546 else
12547   ac_cpp_err=yes
12548 fi
12549 if test -z "$ac_cpp_err"; then
12550   ac_header_preproc=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553   cat conftest.$ac_ext >&5
12554   ac_header_preproc=no
12555 fi
12556 rm -f conftest.err conftest.$ac_ext
12557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12558 echo "${ECHO_T}$ac_header_preproc" >&6
12559
12560 # So?  What about this header?
12561 case $ac_header_compiler:$ac_header_preproc in
12562   yes:no )
12563     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12564 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12565     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12566 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12567   no:yes )
12568     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12569 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12570     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12571 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12572     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12573 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12574 esac
12575 echo "$as_me:$LINENO: checking for syslog.h" >&5
12576 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12577 if test "${ac_cv_header_syslog_h+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_cv_header_syslog_h=$ac_header_preproc
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12583 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12584
12585 fi
12586 if test $ac_cv_header_syslog_h = yes; then
12587
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_SYSLOG 1
12590 _ACEOF
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 echo "$as_me:$LINENO: checking for optreset" >&5
12599 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12600 if test "${pgac_cv_var_int_optreset+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 #include <unistd.h>
12607 #ifdef F77_DUMMY_MAIN
12608 #  ifdef __cplusplus
12609      extern "C"
12610 #  endif
12611    int F77_DUMMY_MAIN() { return 1; }
12612 #endif
12613 int
12614 main ()
12615 {
12616 extern int optreset; optreset = 1;
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623   (eval $ac_link) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } &&
12627          { ac_try='test -s conftest$ac_exeext'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   pgac_cv_var_int_optreset=yes
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 pgac_cv_var_int_optreset=no
12638 fi
12639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12640 fi
12641 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12642 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12643 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_INT_OPTRESET 1
12647 _ACEOF
12648
12649 fi
12650
12651
12652
12653 for ac_func in strtoll strtoq
12654 do
12655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12656 echo "$as_me:$LINENO: checking for $ac_func" >&5
12657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12658 if eval "test \"\${$as_ac_var+set}\" = set"; then
12659   echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661   cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665     which can conflict with char $ac_func (); below.  */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error.  */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 /* We use char because int might match the return type of a gcc2
12672    builtin and then its argument prototype would still apply.  */
12673 char $ac_func ();
12674 char (*f) ();
12675
12676 #ifdef F77_DUMMY_MAIN
12677 #  ifdef __cplusplus
12678      extern "C"
12679 #  endif
12680    int F77_DUMMY_MAIN() { return 1; }
12681 #endif
12682 int
12683 main ()
12684 {
12685 /* The GNU C library defines this for functions which it implements
12686     to always fail with ENOSYS.  Some functions are actually named
12687     something starting with __ and the normal name is an alias.  */
12688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12689 choke me
12690 #else
12691 f = $ac_func;
12692 #endif
12693
12694   ;
12695   return 0;
12696 }
12697 _ACEOF
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700   (eval $ac_link) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); } &&
12704          { ac_try='test -s conftest$ac_exeext'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   eval "$as_ac_var=yes"
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12714 eval "$as_ac_var=no"
12715 fi
12716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12717 fi
12718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12720 if test `eval echo '${'$as_ac_var'}'` = yes; then
12721   cat >>confdefs.h <<_ACEOF
12722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 _ACEOF
12724  break
12725 fi
12726 done
12727
12728
12729
12730 for ac_func in strtoull strtouq
12731 do
12732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733 echo "$as_me:$LINENO: checking for $ac_func" >&5
12734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12735 if eval "test \"\${$as_ac_var+set}\" = set"; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 /* System header to define __stub macros and hopefully few prototypes,
12742     which can conflict with char $ac_func (); below.  */
12743 #include <assert.h>
12744 /* Override any gcc2 internal prototype to avoid an error.  */
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 /* We use char because int might match the return type of a gcc2
12749    builtin and then its argument prototype would still apply.  */
12750 char $ac_func ();
12751 char (*f) ();
12752
12753 #ifdef F77_DUMMY_MAIN
12754 #  ifdef __cplusplus
12755      extern "C"
12756 #  endif
12757    int F77_DUMMY_MAIN() { return 1; }
12758 #endif
12759 int
12760 main ()
12761 {
12762 /* The GNU C library defines this for functions which it implements
12763     to always fail with ENOSYS.  Some functions are actually named
12764     something starting with __ and the normal name is an alias.  */
12765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12766 choke me
12767 #else
12768 f = $ac_func;
12769 #endif
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777   (eval $ac_link) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } &&
12781          { ac_try='test -s conftest$ac_exeext'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; }; then
12787   eval "$as_ac_var=yes"
12788 else
12789   echo "$as_me: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 eval "$as_ac_var=no"
12792 fi
12793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12794 fi
12795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12797 if test `eval echo '${'$as_ac_var'}'` = yes; then
12798   cat >>confdefs.h <<_ACEOF
12799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12800 _ACEOF
12801  break
12802 fi
12803 done
12804
12805
12806 # Check for one of atexit() or on_exit()
12807
12808 for ac_func in atexit
12809 do
12810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12811 echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12813 if eval "test \"\${$as_ac_var+set}\" = set"; then
12814   echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816   cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 #include "confdefs.h"
12819 /* System header to define __stub macros and hopefully few prototypes,
12820     which can conflict with char $ac_func (); below.  */
12821 #include <assert.h>
12822 /* Override any gcc2 internal prototype to avoid an error.  */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 /* We use char because int might match the return type of a gcc2
12827    builtin and then its argument prototype would still apply.  */
12828 char $ac_func ();
12829 char (*f) ();
12830
12831 #ifdef F77_DUMMY_MAIN
12832 #  ifdef __cplusplus
12833      extern "C"
12834 #  endif
12835    int F77_DUMMY_MAIN() { return 1; }
12836 #endif
12837 int
12838 main ()
12839 {
12840 /* The GNU C library defines this for functions which it implements
12841     to always fail with ENOSYS.  Some functions are actually named
12842     something starting with __ and the normal name is an alias.  */
12843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12844 choke me
12845 #else
12846 f = $ac_func;
12847 #endif
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855   (eval $ac_link) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } &&
12859          { ac_try='test -s conftest$ac_exeext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   eval "$as_ac_var=yes"
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 cat conftest.$ac_ext >&5
12869 eval "$as_ac_var=no"
12870 fi
12871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12872 fi
12873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12875 if test `eval echo '${'$as_ac_var'}'` = yes; then
12876   cat >>confdefs.h <<_ACEOF
12877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12878 _ACEOF
12879
12880 else
12881
12882 for ac_func in on_exit
12883 do
12884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12885 echo "$as_me:$LINENO: checking for $ac_func" >&5
12886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12887 if eval "test \"\${$as_ac_var+set}\" = set"; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   cat >conftest.$ac_ext <<_ACEOF
12891 #line $LINENO "configure"
12892 #include "confdefs.h"
12893 /* System header to define __stub macros and hopefully few prototypes,
12894     which can conflict with char $ac_func (); below.  */
12895 #include <assert.h>
12896 /* Override any gcc2 internal prototype to avoid an error.  */
12897 #ifdef __cplusplus
12898 extern "C"
12899 #endif
12900 /* We use char because int might match the return type of a gcc2
12901    builtin and then its argument prototype would still apply.  */
12902 char $ac_func ();
12903 char (*f) ();
12904
12905 #ifdef F77_DUMMY_MAIN
12906 #  ifdef __cplusplus
12907      extern "C"
12908 #  endif
12909    int F77_DUMMY_MAIN() { return 1; }
12910 #endif
12911 int
12912 main ()
12913 {
12914 /* The GNU C library defines this for functions which it implements
12915     to always fail with ENOSYS.  Some functions are actually named
12916     something starting with __ and the normal name is an alias.  */
12917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12918 choke me
12919 #else
12920 f = $ac_func;
12921 #endif
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12929   (eval $ac_link) 2>&5
12930   ac_status=$?
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -s conftest$ac_exeext'
12934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935   (eval $ac_try) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; }; then
12939   eval "$as_ac_var=yes"
12940 else
12941   echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12943 eval "$as_ac_var=no"
12944 fi
12945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12946 fi
12947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12949 if test `eval echo '${'$as_ac_var'}'` = yes; then
12950   cat >>confdefs.h <<_ACEOF
12951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12952 _ACEOF
12953
12954 else
12955   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12956 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12957    { (exit 1); exit 1; }; }
12958 fi
12959 done
12960
12961 fi
12962 done
12963
12964
12965 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12966 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12967 if test "${ac_cv_sys_largefile_source+set}" = set; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   while :; do
12971   ac_cv_sys_largefile_source=no
12972   cat >conftest.$ac_ext <<_ACEOF
12973 #line $LINENO "configure"
12974 #include "confdefs.h"
12975 #include <stdio.h>
12976 #ifdef F77_DUMMY_MAIN
12977 #  ifdef __cplusplus
12978      extern "C"
12979 #  endif
12980    int F77_DUMMY_MAIN() { return 1; }
12981 #endif
12982 int
12983 main ()
12984 {
12985 return !fseeko;
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992   (eval $ac_compile) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -s conftest.$ac_objext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   break
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 fi
13007 rm -f conftest.$ac_objext conftest.$ac_ext
13008   cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13010 #include "confdefs.h"
13011 #define _LARGEFILE_SOURCE 1
13012 #include <stdio.h>
13013 #ifdef F77_DUMMY_MAIN
13014 #  ifdef __cplusplus
13015      extern "C"
13016 #  endif
13017    int F77_DUMMY_MAIN() { return 1; }
13018 #endif
13019 int
13020 main ()
13021 {
13022 return !fseeko;
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029   (eval $ac_compile) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -s conftest.$ac_objext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_cv_sys_largefile_source=1; break
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13043 fi
13044 rm -f conftest.$ac_objext conftest.$ac_ext
13045   break
13046 done
13047 fi
13048 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13049 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13050 if test "$ac_cv_sys_largefile_source" != no; then
13051
13052 cat >>confdefs.h <<_ACEOF
13053 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13054 _ACEOF
13055
13056 fi
13057 rm -f conftest*
13058
13059 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13060 # in glibc 2.1.3, but that breaks too many other things.
13061 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13062 echo "$as_me:$LINENO: checking for fseeko" >&5
13063 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13064 if test "${ac_cv_func_fseeko+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   cat >conftest.$ac_ext <<_ACEOF
13068 #line $LINENO "configure"
13069 #include "confdefs.h"
13070 #include <stdio.h>
13071 #ifdef F77_DUMMY_MAIN
13072 #  ifdef __cplusplus
13073      extern "C"
13074 #  endif
13075    int F77_DUMMY_MAIN() { return 1; }
13076 #endif
13077 int
13078 main ()
13079 {
13080 return fseeko && fseeko (stdin, 0, 0);
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13087   (eval $ac_link) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } &&
13091          { ac_try='test -s conftest$ac_exeext'
13092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093   (eval $ac_try) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   ac_cv_func_fseeko=yes
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13101 ac_cv_func_fseeko=no
13102 fi
13103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13106 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13107 if test $ac_cv_func_fseeko = yes; then
13108
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_FSEEKO 1
13111 _ACEOF
13112
13113 fi
13114
13115
13116 #
13117 # Pthreads
13118 #
13119 # For each platform, we need to know about any special compile and link
13120 # libraries, and whether the normal C function names are thread-safe.
13121 # See the comment at the top of src/port/thread.c for more information.
13122 #
13123 if test "$enable_thread_safety" = yes; then
13124 if test "${ac_cv_header_pthread_h+set}" = set; then
13125   echo "$as_me:$LINENO: checking for pthread.h" >&5
13126 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13127 if test "${ac_cv_header_pthread_h+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 fi
13130 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13131 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13132 else
13133   # Is the header compilable?
13134 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13135 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13137 #line $LINENO "configure"
13138 #include "confdefs.h"
13139 $ac_includes_default
13140 #include <pthread.h>
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144   (eval $ac_compile) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); } &&
13148          { ac_try='test -s conftest.$ac_objext'
13149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150   (eval $ac_try) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; }; then
13154   ac_header_compiler=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 ac_header_compiler=no
13159 fi
13160 rm -f conftest.$ac_objext conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162 echo "${ECHO_T}$ac_header_compiler" >&6
13163
13164 # Is the header present?
13165 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13166 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13168 #line $LINENO "configure"
13169 #include "confdefs.h"
13170 #include <pthread.h>
13171 _ACEOF
13172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13174   ac_status=$?
13175   egrep -v '^ *\+' conftest.er1 >conftest.err
13176   rm -f conftest.er1
13177   cat conftest.err >&5
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } >/dev/null; then
13180   if test -s conftest.err; then
13181     ac_cpp_err=$ac_c_preproc_warn_flag
13182   else
13183     ac_cpp_err=
13184   fi
13185 else
13186   ac_cpp_err=yes
13187 fi
13188 if test -z "$ac_cpp_err"; then
13189   ac_header_preproc=yes
13190 else
13191   echo "$as_me: failed program was:" >&5
13192   cat conftest.$ac_ext >&5
13193   ac_header_preproc=no
13194 fi
13195 rm -f conftest.err conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6
13198
13199 # So?  What about this header?
13200 case $ac_header_compiler:$ac_header_preproc in
13201   yes:no )
13202     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13205 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13206   no:yes )
13207     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13208 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13209     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13210 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13211     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13213 esac
13214 echo "$as_me:$LINENO: checking for pthread.h" >&5
13215 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13216 if test "${ac_cv_header_pthread_h+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   ac_cv_header_pthread_h=$ac_header_preproc
13220 fi
13221 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13222 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13223
13224 fi
13225 if test $ac_cv_header_pthread_h = yes; then
13226   :
13227 else
13228   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13229 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13230    { (exit 1); exit 1; }; }
13231 fi
13232
13233
13234
13235 if test "$SUPPORTS_THREADS" != yes; then
13236 { { echo "$as_me:$LINENO: error:
13237 Cannot enable threads on your platform.
13238 Please report your platform threading info to the PostgreSQL mailing lists
13239 so it can be added to the next release.  Report all compile flags, link flags,
13240 functions, or libraries required for threading support.
13241 See the comment at the top of src/port/thread.c for more information.
13242 " >&5
13243 echo "$as_me: error:
13244 Cannot enable threads on your platform.
13245 Please report your platform threading info to the PostgreSQL mailing lists
13246 so it can be added to the next release.  Report all compile flags, link flags,
13247 functions, or libraries required for threading support.
13248 See the comment at the top of src/port/thread.c for more information.
13249 " >&2;}
13250    { (exit 1); exit 1; }; }
13251 fi
13252 else
13253 # do not use values from template file
13254 THREAD_CFLAGS=
13255 THREAD_LIBS=
13256 fi
13257
13258
13259
13260
13261 #
13262 # Check for re-entrant versions of certain functions
13263 #
13264 # Include special flags if threads are enabled _and_ if required for
13265 # threading on this platform.  Some platforms have *_r functions but
13266 # their natively named funcs are threadsafe, and should be used instead.
13267 #
13268 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13269 # functions are marked "not found", which is perfect.
13270 #
13271 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13272 _CFLAGS="$CFLAGS"
13273 _LIBS="$LIBS"
13274 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13275 LIBS="$LIBS $THREAD_LIBS"
13276 echo "$as_me:$LINENO: checking for strerror_r" >&5
13277 echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6
13278 if test "${ac_cv_func_strerror_r+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 #include "confdefs.h"
13284 /* System header to define __stub macros and hopefully few prototypes,
13285     which can conflict with char strerror_r (); below.  */
13286 #include <assert.h>
13287 /* Override any gcc2 internal prototype to avoid an error.  */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 /* We use char because int might match the return type of a gcc2
13292    builtin and then its argument prototype would still apply.  */
13293 char strerror_r ();
13294 char (*f) ();
13295
13296 #ifdef F77_DUMMY_MAIN
13297 #  ifdef __cplusplus
13298      extern "C"
13299 #  endif
13300    int F77_DUMMY_MAIN() { return 1; }
13301 #endif
13302 int
13303 main ()
13304 {
13305 /* The GNU C library defines this for functions which it implements
13306     to always fail with ENOSYS.  Some functions are actually named
13307     something starting with __ and the normal name is an alias.  */
13308 #if defined (__stub_strerror_r) || defined (__stub___strerror_r)
13309 choke me
13310 #else
13311 f = strerror_r;
13312 #endif
13313
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320   (eval $ac_link) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -s conftest$ac_exeext'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_cv_func_strerror_r=yes
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_cv_func_strerror_r=no
13335 fi
13336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13337 fi
13338 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r" >&5
13339 echo "${ECHO_T}$ac_cv_func_strerror_r" >&6
13340 if test $ac_cv_func_strerror_r = yes; then
13341   :
13342 else
13343   { { echo "$as_me:$LINENO: error: strerror_r not found, required on this platform for --enable-thread-safety" >&5
13344 echo "$as_me: error: strerror_r not found, required on this platform for --enable-thread-safety" >&2;}
13345    { (exit 1); exit 1; }; }
13346 fi
13347
13348 echo "$as_me:$LINENO: checking for getpwuid_r" >&5
13349 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6
13350 if test "${ac_cv_func_getpwuid_r+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 #include "confdefs.h"
13356 /* System header to define __stub macros and hopefully few prototypes,
13357     which can conflict with char getpwuid_r (); below.  */
13358 #include <assert.h>
13359 /* Override any gcc2 internal prototype to avoid an error.  */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 /* We use char because int might match the return type of a gcc2
13364    builtin and then its argument prototype would still apply.  */
13365 char getpwuid_r ();
13366 char (*f) ();
13367
13368 #ifdef F77_DUMMY_MAIN
13369 #  ifdef __cplusplus
13370      extern "C"
13371 #  endif
13372    int F77_DUMMY_MAIN() { return 1; }
13373 #endif
13374 int
13375 main ()
13376 {
13377 /* The GNU C library defines this for functions which it implements
13378     to always fail with ENOSYS.  Some functions are actually named
13379     something starting with __ and the normal name is an alias.  */
13380 #if defined (__stub_getpwuid_r) || defined (__stub___getpwuid_r)
13381 choke me
13382 #else
13383 f = getpwuid_r;
13384 #endif
13385
13386   ;
13387   return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392   (eval $ac_link) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } &&
13396          { ac_try='test -s conftest$ac_exeext'
13397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398   (eval $ac_try) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; }; then
13402   ac_cv_func_getpwuid_r=yes
13403 else
13404   echo "$as_me: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 ac_cv_func_getpwuid_r=no
13407 fi
13408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13409 fi
13410 echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5
13411 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6
13412 if test $ac_cv_func_getpwuid_r = yes; then
13413   :
13414 else
13415   { { echo "$as_me:$LINENO: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&5
13416 echo "$as_me: error: getpwuid_r not found, required on this platform for --enable-thread-safety" >&2;}
13417    { (exit 1); exit 1; }; }
13418 fi
13419
13420 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
13421 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
13422 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
13423   echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425   cat >conftest.$ac_ext <<_ACEOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13428 /* System header to define __stub macros and hopefully few prototypes,
13429     which can conflict with char gethostbyname_r (); below.  */
13430 #include <assert.h>
13431 /* Override any gcc2 internal prototype to avoid an error.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 /* We use char because int might match the return type of a gcc2
13436    builtin and then its argument prototype would still apply.  */
13437 char gethostbyname_r ();
13438 char (*f) ();
13439
13440 #ifdef F77_DUMMY_MAIN
13441 #  ifdef __cplusplus
13442      extern "C"
13443 #  endif
13444    int F77_DUMMY_MAIN() { return 1; }
13445 #endif
13446 int
13447 main ()
13448 {
13449 /* The GNU C library defines this for functions which it implements
13450     to always fail with ENOSYS.  Some functions are actually named
13451     something starting with __ and the normal name is an alias.  */
13452 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
13453 choke me
13454 #else
13455 f = gethostbyname_r;
13456 #endif
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464   (eval $ac_link) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -s conftest$ac_exeext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474   ac_cv_func_gethostbyname_r=yes
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 ac_cv_func_gethostbyname_r=no
13479 fi
13480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13481 fi
13482 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
13483 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
13484 if test $ac_cv_func_gethostbyname_r = yes; then
13485   :
13486 else
13487   { { echo "$as_me:$LINENO: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&5
13488 echo "$as_me: error: gethostbyname_r not found, required on this platform for --enable-thread-safety" >&2;}
13489    { (exit 1); exit 1; }; }
13490 fi
13491
13492 CFLAGS="$_CFLAGS"
13493 LIBS="$_LIBS"
13494 fi
13495
13496
13497 # This test makes sure that run tests work at all.  Sometimes a shared
13498 # library is found by the linker, but the runtime linker can't find it.
13499 # This check should come after all modifications of compiler or linker
13500 # variables, and before any other run tests.
13501 echo "$as_me:$LINENO: checking test program" >&5
13502 echo $ECHO_N "checking test program... $ECHO_C" >&6
13503 if test "$cross_compiling" = yes; then
13504   echo "$as_me:$LINENO: result: cross-compiling" >&5
13505 echo "${ECHO_T}cross-compiling" >&6
13506 else
13507   cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13509 #include "confdefs.h"
13510 int main() { return 0; }
13511 _ACEOF
13512 rm -f conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514   (eval $ac_link) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   echo "$as_me:$LINENO: result: ok" >&5
13524 echo "${ECHO_T}ok" >&6
13525 else
13526   echo "$as_me: program exited with status $ac_status" >&5
13527 echo "$as_me: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13529 ( exit $ac_status )
13530 echo "$as_me:$LINENO: result: failed" >&5
13531 echo "${ECHO_T}failed" >&6
13532 { { echo "$as_me:$LINENO: error:
13533 *** Could not execute a simple test program.  This may be a problem
13534 *** related to locating shared libraries.  Check the file 'config.log'
13535 *** for the exact reason." >&5
13536 echo "$as_me: error:
13537 *** Could not execute a simple test program.  This may be a problem
13538 *** related to locating shared libraries.  Check the file 'config.log'
13539 *** for the exact reason." >&2;}
13540    { (exit 1); exit 1; }; }
13541 fi
13542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13543 fi
13544
13545
13546
13547 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13548 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13549 if test "${pgac_cv_type_long_int_64+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   if test "$cross_compiling" = yes; then
13553   # If cross-compiling, check the size reported by the compiler and
13554 # trust that the arithmetic works.
13555 cat >conftest.$ac_ext <<_ACEOF
13556 #line $LINENO "configure"
13557 #include "confdefs.h"
13558
13559 #ifdef F77_DUMMY_MAIN
13560 #  ifdef __cplusplus
13561      extern "C"
13562 #  endif
13563    int F77_DUMMY_MAIN() { return 1; }
13564 #endif
13565 int
13566 main ()
13567 {
13568 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13569 test_array [0] = 0
13570
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577   (eval $ac_compile) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -s conftest.$ac_objext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   pgac_cv_type_long_int_64=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 pgac_cv_type_long_int_64=no
13592 fi
13593 rm -f conftest.$ac_objext conftest.$ac_ext
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13597 #include "confdefs.h"
13598 typedef long int int64;
13599
13600 /*
13601  * These are globals to discourage the compiler from folding all the
13602  * arithmetic tests down to compile-time constants.
13603  */
13604 int64 a = 20000001;
13605 int64 b = 40000005;
13606
13607 int does_int64_work()
13608 {
13609   int64 c,d;
13610
13611   if (sizeof(int64) != 8)
13612     return 0;                   /* definitely not the right size */
13613
13614   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13615   c = a * b;
13616   d = (c + b) / b;
13617   if (d != a+1)
13618     return 0;
13619   return 1;
13620 }
13621 main() {
13622   exit(! does_int64_work());
13623 }
13624 _ACEOF
13625 rm -f conftest$ac_exeext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627   (eval $ac_link) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   pgac_cv_type_long_int_64=yes
13637 else
13638   echo "$as_me: program exited with status $ac_status" >&5
13639 echo "$as_me: failed program was:" >&5
13640 cat conftest.$ac_ext >&5
13641 ( exit $ac_status )
13642 pgac_cv_type_long_int_64=no
13643 fi
13644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13645 fi
13646 fi
13647 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13648 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13649
13650 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13651 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13652
13653 cat >>confdefs.h <<\_ACEOF
13654 #define HAVE_LONG_INT_64
13655 _ACEOF
13656
13657 fi
13658
13659
13660 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13661   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13662 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13663 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666   if test "$cross_compiling" = yes; then
13667   # If cross-compiling, check the size reported by the compiler and
13668 # trust that the arithmetic works.
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13672
13673 #ifdef F77_DUMMY_MAIN
13674 #  ifdef __cplusplus
13675      extern "C"
13676 #  endif
13677    int F77_DUMMY_MAIN() { return 1; }
13678 #endif
13679 int
13680 main ()
13681 {
13682 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13683 test_array [0] = 0
13684
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13691   (eval $ac_compile) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } &&
13695          { ac_try='test -s conftest.$ac_objext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   pgac_cv_type_long_long_int_64=yes
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 pgac_cv_type_long_long_int_64=no
13706 fi
13707 rm -f conftest.$ac_objext conftest.$ac_ext
13708 else
13709   cat >conftest.$ac_ext <<_ACEOF
13710 #line $LINENO "configure"
13711 #include "confdefs.h"
13712 typedef long long int int64;
13713
13714 /*
13715  * These are globals to discourage the compiler from folding all the
13716  * arithmetic tests down to compile-time constants.
13717  */
13718 int64 a = 20000001;
13719 int64 b = 40000005;
13720
13721 int does_int64_work()
13722 {
13723   int64 c,d;
13724
13725   if (sizeof(int64) != 8)
13726     return 0;                   /* definitely not the right size */
13727
13728   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13729   c = a * b;
13730   d = (c + b) / b;
13731   if (d != a+1)
13732     return 0;
13733   return 1;
13734 }
13735 main() {
13736   exit(! does_int64_work());
13737 }
13738 _ACEOF
13739 rm -f conftest$ac_exeext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13741   (eval $ac_link) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746   (eval $ac_try) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; }; then
13750   pgac_cv_type_long_long_int_64=yes
13751 else
13752   echo "$as_me: program exited with status $ac_status" >&5
13753 echo "$as_me: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 ( exit $ac_status )
13756 pgac_cv_type_long_long_int_64=no
13757 fi
13758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13759 fi
13760 fi
13761 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13762 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13763
13764 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13765 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13766
13767 cat >>confdefs.h <<\_ACEOF
13768 #define HAVE_LONG_LONG_INT_64
13769 _ACEOF
13770
13771 fi
13772
13773 fi
13774
13775
13776
13777 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13778   cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 #include "confdefs.h"
13781
13782 #define INT64CONST(x)  x##LL
13783 long long int foo = INT64CONST(0x1234567890123456);
13784
13785 #ifdef F77_DUMMY_MAIN
13786 #  ifdef __cplusplus
13787      extern "C"
13788 #  endif
13789    int F77_DUMMY_MAIN() { return 1; }
13790 #endif
13791 int
13792 main ()
13793 {
13794
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801   (eval $ac_compile) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } &&
13805          { ac_try='test -s conftest.$ac_objext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811
13812 cat >>confdefs.h <<\_ACEOF
13813 #define HAVE_LL_CONSTANTS 1
13814 _ACEOF
13815
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 cat conftest.$ac_ext >&5
13819 fi
13820 rm -f conftest.$ac_objext conftest.$ac_ext
13821 fi
13822
13823
13824 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13825 # we found we need to use "long long int", better check.  We cope with
13826 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13827 # neither works, fall back to our own snprintf emulation (which we
13828 # know uses %lld).
13829
13830 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13831   if test $pgac_need_repl_snprintf = no; then
13832     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13833 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13834 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837   for pgac_format in '%lld' '%qd' '%I64d'; do
13838 if test "$cross_compiling" = yes; then
13839   pgac_cv_snprintf_long_long_int_format=cross; break
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13843 #include "confdefs.h"
13844 #include <stdio.h>
13845 typedef long long int int64;
13846 #define INT64_FORMAT "$pgac_format"
13847
13848 int64 a = 20000001;
13849 int64 b = 40000005;
13850
13851 int does_int64_snprintf_work()
13852 {
13853   int64 c;
13854   char buf[100];
13855
13856   if (sizeof(int64) != 8)
13857     return 0;                   /* doesn't look like the right size */
13858
13859   c = a * b;
13860   snprintf(buf, 100, INT64_FORMAT, c);
13861   if (strcmp(buf, "800000140000005") != 0)
13862     return 0;                   /* either multiply or snprintf is busted */
13863   return 1;
13864 }
13865 main() {
13866   exit(! does_int64_snprintf_work());
13867 }
13868 _ACEOF
13869 rm -f conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871   (eval $ac_link) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13881 else
13882   echo "$as_me: program exited with status $ac_status" >&5
13883 echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13885 fi
13886 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13887 fi
13888 done
13889 fi
13890
13891 LONG_LONG_INT_FORMAT=''
13892
13893 case $pgac_cv_snprintf_long_long_int_format in
13894   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13895 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13896   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13897 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13898          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13899   *)     echo "$as_me:$LINENO: result: none" >&5
13900 echo "${ECHO_T}none" >&6;;
13901 esac
13902     if test "$LONG_LONG_INT_FORMAT" = ""; then
13903       # Force usage of our own snprintf, since system snprintf is broken
13904       pgac_need_repl_snprintf=yes
13905       LONG_LONG_INT_FORMAT='%lld'
13906     fi
13907   else
13908     # Here if we previously decided we needed to use our own snprintf
13909     LONG_LONG_INT_FORMAT='%lld'
13910   fi
13911   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13912 else
13913   # Here if we are not using 'long long int' at all
13914   INT64_FORMAT='"%ld"'
13915 fi
13916
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define INT64_FORMAT $INT64_FORMAT
13920 _ACEOF
13921
13922
13923 if test $pgac_need_repl_snprintf = yes; then
13924   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13925 fi
13926
13927 # Need a #define for the size of Datum (unsigned long)
13928 echo "$as_me:$LINENO: checking for unsigned long" >&5
13929 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13930 if test "${ac_cv_type_unsigned_long+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   cat >conftest.$ac_ext <<_ACEOF
13934 #line $LINENO "configure"
13935 #include "confdefs.h"
13936 $ac_includes_default
13937 #ifdef F77_DUMMY_MAIN
13938 #  ifdef __cplusplus
13939      extern "C"
13940 #  endif
13941    int F77_DUMMY_MAIN() { return 1; }
13942 #endif
13943 int
13944 main ()
13945 {
13946 if ((unsigned long *) 0)
13947   return 0;
13948 if (sizeof (unsigned long))
13949   return 0;
13950   ;
13951   return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956   (eval $ac_compile) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } &&
13960          { ac_try='test -s conftest.$ac_objext'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }; then
13966   ac_cv_type_unsigned_long=yes
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 cat conftest.$ac_ext >&5
13970 ac_cv_type_unsigned_long=no
13971 fi
13972 rm -f conftest.$ac_objext conftest.$ac_ext
13973 fi
13974 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13975 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13976
13977 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13978 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13979 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   if test "$ac_cv_type_unsigned_long" = yes; then
13983   # The cast to unsigned long works around a bug in the HP C Compiler
13984   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13985   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13986   # This bug is HP SR number 8606223364.
13987   if test "$cross_compiling" = yes; then
13988   # Depending upon the size, compute the lo and hi bounds.
13989 cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13991 #include "confdefs.h"
13992 $ac_includes_default
13993 #ifdef F77_DUMMY_MAIN
13994 #  ifdef __cplusplus
13995      extern "C"
13996 #  endif
13997    int F77_DUMMY_MAIN() { return 1; }
13998 #endif
13999 int
14000 main ()
14001 {
14002 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14003 test_array [0] = 0
14004
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } &&
14015          { ac_try='test -s conftest.$ac_objext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   ac_lo=0 ac_mid=0
14022   while :; do
14023     cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 $ac_includes_default
14027 #ifdef F77_DUMMY_MAIN
14028 #  ifdef __cplusplus
14029      extern "C"
14030 #  endif
14031    int F77_DUMMY_MAIN() { return 1; }
14032 #endif
14033 int
14034 main ()
14035 {
14036 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14037 test_array [0] = 0
14038
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045   (eval $ac_compile) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } &&
14049          { ac_try='test -s conftest.$ac_objext'
14050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051   (eval $ac_try) 2>&5
14052   ac_status=$?
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); }; }; then
14055   ac_hi=$ac_mid; break
14056 else
14057   echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_lo=`expr $ac_mid + 1`
14060                     if test $ac_lo -le $ac_mid; then
14061                       ac_lo= ac_hi=
14062                       break
14063                     fi
14064                     ac_mid=`expr 2 '*' $ac_mid + 1`
14065 fi
14066 rm -f conftest.$ac_objext conftest.$ac_ext
14067   done
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 cat >conftest.$ac_ext <<_ACEOF
14072 #line $LINENO "configure"
14073 #include "confdefs.h"
14074 $ac_includes_default
14075 #ifdef F77_DUMMY_MAIN
14076 #  ifdef __cplusplus
14077      extern "C"
14078 #  endif
14079    int F77_DUMMY_MAIN() { return 1; }
14080 #endif
14081 int
14082 main ()
14083 {
14084 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14085 test_array [0] = 0
14086
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093   (eval $ac_compile) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -s conftest.$ac_objext'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   ac_hi=-1 ac_mid=-1
14104   while :; do
14105     cat >conftest.$ac_ext <<_ACEOF
14106 #line $LINENO "configure"
14107 #include "confdefs.h"
14108 $ac_includes_default
14109 #ifdef F77_DUMMY_MAIN
14110 #  ifdef __cplusplus
14111      extern "C"
14112 #  endif
14113    int F77_DUMMY_MAIN() { return 1; }
14114 #endif
14115 int
14116 main ()
14117 {
14118 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14119 test_array [0] = 0
14120
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127   (eval $ac_compile) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_lo=$ac_mid; break
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 ac_hi=`expr '(' $ac_mid ')' - 1`
14142                        if test $ac_mid -le $ac_hi; then
14143                          ac_lo= ac_hi=
14144                          break
14145                        fi
14146                        ac_mid=`expr 2 '*' $ac_mid`
14147 fi
14148 rm -f conftest.$ac_objext conftest.$ac_ext
14149   done
14150 else
14151   echo "$as_me: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14153 ac_lo= ac_hi=
14154 fi
14155 rm -f conftest.$ac_objext conftest.$ac_ext
14156 fi
14157 rm -f conftest.$ac_objext conftest.$ac_ext
14158 # Binary search between lo and hi bounds.
14159 while test "x$ac_lo" != "x$ac_hi"; do
14160   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14161   cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14163 #include "confdefs.h"
14164 $ac_includes_default
14165 #ifdef F77_DUMMY_MAIN
14166 #  ifdef __cplusplus
14167      extern "C"
14168 #  endif
14169    int F77_DUMMY_MAIN() { return 1; }
14170 #endif
14171 int
14172 main ()
14173 {
14174 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14175 test_array [0] = 0
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14183   (eval $ac_compile) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -s conftest.$ac_objext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   ac_hi=$ac_mid
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14197 ac_lo=`expr '(' $ac_mid ')' + 1`
14198 fi
14199 rm -f conftest.$ac_objext conftest.$ac_ext
14200 done
14201 case $ac_lo in
14202 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14203 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14204 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14205    { (exit 1); exit 1; }; } ;;
14206 esac
14207 else
14208   if test "$cross_compiling" = yes; then
14209   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14210 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14211    { (exit 1); exit 1; }; }
14212 else
14213   cat >conftest.$ac_ext <<_ACEOF
14214 #line $LINENO "configure"
14215 #include "confdefs.h"
14216 $ac_includes_default
14217 long longval () { return (long) (sizeof (unsigned long)); }
14218 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14219 #include <stdio.h>
14220 #include <stdlib.h>
14221 #ifdef F77_DUMMY_MAIN
14222 #  ifdef __cplusplus
14223      extern "C"
14224 #  endif
14225    int F77_DUMMY_MAIN() { return 1; }
14226 #endif
14227 int
14228 main ()
14229 {
14230
14231   FILE *f = fopen ("conftest.val", "w");
14232   if (! f)
14233     exit (1);
14234   if (((long) (sizeof (unsigned long))) < 0)
14235     {
14236       long i = longval ();
14237       if (i != ((long) (sizeof (unsigned long))))
14238         exit (1);
14239       fprintf (f, "%ld\n", i);
14240     }
14241   else
14242     {
14243       unsigned long i = ulongval ();
14244       if (i != ((long) (sizeof (unsigned long))))
14245         exit (1);
14246       fprintf (f, "%lu\n", i);
14247     }
14248   exit (ferror (f) || fclose (f) != 0);
14249
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 rm -f conftest$ac_exeext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14256   (eval $ac_link) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14266 else
14267   echo "$as_me: program exited with status $ac_status" >&5
14268 echo "$as_me: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14270 ( exit $ac_status )
14271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14272 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14273    { (exit 1); exit 1; }; }
14274 fi
14275 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14276 fi
14277 fi
14278 rm -f conftest.val
14279 else
14280   ac_cv_sizeof_unsigned_long=0
14281 fi
14282 fi
14283 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14284 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14285 cat >>confdefs.h <<_ACEOF
14286 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14287 _ACEOF
14288
14289
14290
14291 # Determine memory alignment requirements for the basic C data types.
14292
14293 echo "$as_me:$LINENO: checking for short" >&5
14294 echo $ECHO_N "checking for short... $ECHO_C" >&6
14295 if test "${ac_cv_type_short+set}" = set; then
14296   echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298   cat >conftest.$ac_ext <<_ACEOF
14299 #line $LINENO "configure"
14300 #include "confdefs.h"
14301 $ac_includes_default
14302 #ifdef F77_DUMMY_MAIN
14303 #  ifdef __cplusplus
14304      extern "C"
14305 #  endif
14306    int F77_DUMMY_MAIN() { return 1; }
14307 #endif
14308 int
14309 main ()
14310 {
14311 if ((short *) 0)
14312   return 0;
14313 if (sizeof (short))
14314   return 0;
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321   (eval $ac_compile) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_cv_type_short=yes
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 ac_cv_type_short=no
14336 fi
14337 rm -f conftest.$ac_objext conftest.$ac_ext
14338 fi
14339 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14340 echo "${ECHO_T}$ac_cv_type_short" >&6
14341
14342 echo "$as_me:$LINENO: checking alignment of short" >&5
14343 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14344 if test "${pgac_cv_alignof_short+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   if test "$ac_cv_type_short" = yes; then
14348   if test "$cross_compiling" = yes; then
14349   # Depending upon the size, compute the lo and hi bounds.
14350 cat >conftest.$ac_ext <<_ACEOF
14351 #line $LINENO "configure"
14352 #include "confdefs.h"
14353 $ac_includes_default
14354 struct { char filler; short field; } pgac_struct;
14355 #ifdef F77_DUMMY_MAIN
14356 #  ifdef __cplusplus
14357      extern "C"
14358 #  endif
14359    int F77_DUMMY_MAIN() { return 1; }
14360 #endif
14361 int
14362 main ()
14363 {
14364 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14365 test_array [0] = 0
14366
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373   (eval $ac_compile) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_lo=0 ac_mid=0
14384   while :; do
14385     cat >conftest.$ac_ext <<_ACEOF
14386 #line $LINENO "configure"
14387 #include "confdefs.h"
14388 $ac_includes_default
14389 struct { char filler; short field; } pgac_struct;
14390 #ifdef F77_DUMMY_MAIN
14391 #  ifdef __cplusplus
14392      extern "C"
14393 #  endif
14394    int F77_DUMMY_MAIN() { return 1; }
14395 #endif
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_hi=$ac_mid; break
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14422 ac_lo=`expr $ac_mid + 1`
14423                     if test $ac_lo -le $ac_mid; then
14424                       ac_lo= ac_hi=
14425                       break
14426                     fi
14427                     ac_mid=`expr 2 '*' $ac_mid + 1`
14428 fi
14429 rm -f conftest.$ac_objext conftest.$ac_ext
14430   done
14431 else
14432   echo "$as_me: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14434 cat >conftest.$ac_ext <<_ACEOF
14435 #line $LINENO "configure"
14436 #include "confdefs.h"
14437 $ac_includes_default
14438 struct { char filler; short field; } pgac_struct;
14439 #ifdef F77_DUMMY_MAIN
14440 #  ifdef __cplusplus
14441      extern "C"
14442 #  endif
14443    int F77_DUMMY_MAIN() { return 1; }
14444 #endif
14445 int
14446 main ()
14447 {
14448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14449 test_array [0] = 0
14450
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14457   (eval $ac_compile) 2>&5
14458   ac_status=$?
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -s conftest.$ac_objext'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   ac_hi=-1 ac_mid=-1
14468   while :; do
14469     cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 $ac_includes_default
14473 struct { char filler; short field; } pgac_struct;
14474 #ifdef F77_DUMMY_MAIN
14475 #  ifdef __cplusplus
14476      extern "C"
14477 #  endif
14478    int F77_DUMMY_MAIN() { return 1; }
14479 #endif
14480 int
14481 main ()
14482 {
14483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14484 test_array [0] = 0
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492   (eval $ac_compile) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -s conftest.$ac_objext'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; }; then
14502   ac_lo=$ac_mid; break
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 ac_hi=`expr '(' $ac_mid ')' - 1`
14507                        if test $ac_mid -le $ac_hi; then
14508                          ac_lo= ac_hi=
14509                          break
14510                        fi
14511                        ac_mid=`expr 2 '*' $ac_mid`
14512 fi
14513 rm -f conftest.$ac_objext conftest.$ac_ext
14514   done
14515 else
14516   echo "$as_me: failed program was:" >&5
14517 cat conftest.$ac_ext >&5
14518 ac_lo= ac_hi=
14519 fi
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 rm -f conftest.$ac_objext conftest.$ac_ext
14523 # Binary search between lo and hi bounds.
14524 while test "x$ac_lo" != "x$ac_hi"; do
14525   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14526   cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 #include "confdefs.h"
14529 $ac_includes_default
14530 struct { char filler; short field; } pgac_struct;
14531 #ifdef F77_DUMMY_MAIN
14532 #  ifdef __cplusplus
14533      extern "C"
14534 #  endif
14535    int F77_DUMMY_MAIN() { return 1; }
14536 #endif
14537 int
14538 main ()
14539 {
14540 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14541 test_array [0] = 0
14542
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549   (eval $ac_compile) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -s conftest.$ac_objext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_hi=$ac_mid
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14563 ac_lo=`expr '(' $ac_mid ')' + 1`
14564 fi
14565 rm -f conftest.$ac_objext conftest.$ac_ext
14566 done
14567 case $ac_lo in
14568 ?*) pgac_cv_alignof_short=$ac_lo;;
14569 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14570 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14571    { (exit 1); exit 1; }; } ;;
14572 esac
14573 else
14574   if test "$cross_compiling" = yes; then
14575   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14577    { (exit 1); exit 1; }; }
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 #include "confdefs.h"
14582 $ac_includes_default
14583 struct { char filler; short field; } pgac_struct;
14584 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14585 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14586 #include <stdio.h>
14587 #include <stdlib.h>
14588 #ifdef F77_DUMMY_MAIN
14589 #  ifdef __cplusplus
14590      extern "C"
14591 #  endif
14592    int F77_DUMMY_MAIN() { return 1; }
14593 #endif
14594 int
14595 main ()
14596 {
14597
14598   FILE *f = fopen ("conftest.val", "w");
14599   if (! f)
14600     exit (1);
14601   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14602     {
14603       long i = longval ();
14604       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14605         exit (1);
14606       fprintf (f, "%ld\n", i);
14607     }
14608   else
14609     {
14610       unsigned long i = ulongval ();
14611       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14612         exit (1);
14613       fprintf (f, "%lu\n", i);
14614     }
14615   exit (ferror (f) || fclose (f) != 0);
14616
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623   (eval $ac_link) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; }; then
14632   pgac_cv_alignof_short=`cat conftest.val`
14633 else
14634   echo "$as_me: program exited with status $ac_status" >&5
14635 echo "$as_me: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 ( exit $ac_status )
14638 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14639 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14640    { (exit 1); exit 1; }; }
14641 fi
14642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 fi
14645 rm -f conftest.val
14646 else
14647   pgac_cv_alignof_short=0
14648 fi
14649 fi
14650 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14651 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14652 cat >>confdefs.h <<_ACEOF
14653 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14654 _ACEOF
14655
14656
14657 echo "$as_me:$LINENO: checking for int" >&5
14658 echo $ECHO_N "checking for int... $ECHO_C" >&6
14659 if test "${ac_cv_type_int+set}" = set; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   cat >conftest.$ac_ext <<_ACEOF
14663 #line $LINENO "configure"
14664 #include "confdefs.h"
14665 $ac_includes_default
14666 #ifdef F77_DUMMY_MAIN
14667 #  ifdef __cplusplus
14668      extern "C"
14669 #  endif
14670    int F77_DUMMY_MAIN() { return 1; }
14671 #endif
14672 int
14673 main ()
14674 {
14675 if ((int *) 0)
14676   return 0;
14677 if (sizeof (int))
14678   return 0;
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685   (eval $ac_compile) 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } &&
14689          { ac_try='test -s conftest.$ac_objext'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; }; then
14695   ac_cv_type_int=yes
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 ac_cv_type_int=no
14700 fi
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702 fi
14703 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14704 echo "${ECHO_T}$ac_cv_type_int" >&6
14705
14706 echo "$as_me:$LINENO: checking alignment of int" >&5
14707 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14708 if test "${pgac_cv_alignof_int+set}" = set; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711   if test "$ac_cv_type_int" = yes; then
14712   if test "$cross_compiling" = yes; then
14713   # Depending upon the size, compute the lo and hi bounds.
14714 cat >conftest.$ac_ext <<_ACEOF
14715 #line $LINENO "configure"
14716 #include "confdefs.h"
14717 $ac_includes_default
14718 struct { char filler; int field; } pgac_struct;
14719 #ifdef F77_DUMMY_MAIN
14720 #  ifdef __cplusplus
14721      extern "C"
14722 #  endif
14723    int F77_DUMMY_MAIN() { return 1; }
14724 #endif
14725 int
14726 main ()
14727 {
14728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14729 test_array [0] = 0
14730
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737   (eval $ac_compile) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -s conftest.$ac_objext'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; }; then
14747   ac_lo=0 ac_mid=0
14748   while :; do
14749     cat >conftest.$ac_ext <<_ACEOF
14750 #line $LINENO "configure"
14751 #include "confdefs.h"
14752 $ac_includes_default
14753 struct { char filler; int field; } pgac_struct;
14754 #ifdef F77_DUMMY_MAIN
14755 #  ifdef __cplusplus
14756      extern "C"
14757 #  endif
14758    int F77_DUMMY_MAIN() { return 1; }
14759 #endif
14760 int
14761 main ()
14762 {
14763 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14764 test_array [0] = 0
14765
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772   (eval $ac_compile) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } &&
14776          { ac_try='test -s conftest.$ac_objext'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; }; then
14782   ac_hi=$ac_mid; break
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 cat conftest.$ac_ext >&5
14786 ac_lo=`expr $ac_mid + 1`
14787                     if test $ac_lo -le $ac_mid; then
14788                       ac_lo= ac_hi=
14789                       break
14790                     fi
14791                     ac_mid=`expr 2 '*' $ac_mid + 1`
14792 fi
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14794   done
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 cat conftest.$ac_ext >&5
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line $LINENO "configure"
14800 #include "confdefs.h"
14801 $ac_includes_default
14802 struct { char filler; int field; } pgac_struct;
14803 #ifdef F77_DUMMY_MAIN
14804 #  ifdef __cplusplus
14805      extern "C"
14806 #  endif
14807    int F77_DUMMY_MAIN() { return 1; }
14808 #endif
14809 int
14810 main ()
14811 {
14812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14813 test_array [0] = 0
14814
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821   (eval $ac_compile) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); } &&
14825          { ac_try='test -s conftest.$ac_objext'
14826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   ac_hi=-1 ac_mid=-1
14832   while :; do
14833     cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14836 $ac_includes_default
14837 struct { char filler; int field; } pgac_struct;
14838 #ifdef F77_DUMMY_MAIN
14839 #  ifdef __cplusplus
14840      extern "C"
14841 #  endif
14842    int F77_DUMMY_MAIN() { return 1; }
14843 #endif
14844 int
14845 main ()
14846 {
14847 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14848 test_array [0] = 0
14849
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856   (eval $ac_compile) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); } &&
14860          { ac_try='test -s conftest.$ac_objext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866   ac_lo=$ac_mid; break
14867 else
14868   echo "$as_me: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 ac_hi=`expr '(' $ac_mid ')' - 1`
14871                        if test $ac_mid -le $ac_hi; then
14872                          ac_lo= ac_hi=
14873                          break
14874                        fi
14875                        ac_mid=`expr 2 '*' $ac_mid`
14876 fi
14877 rm -f conftest.$ac_objext conftest.$ac_ext
14878   done
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14882 ac_lo= ac_hi=
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 rm -f conftest.$ac_objext conftest.$ac_ext
14887 # Binary search between lo and hi bounds.
14888 while test "x$ac_lo" != "x$ac_hi"; do
14889   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14890   cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14893 $ac_includes_default
14894 struct { char filler; int field; } pgac_struct;
14895 #ifdef F77_DUMMY_MAIN
14896 #  ifdef __cplusplus
14897      extern "C"
14898 #  endif
14899    int F77_DUMMY_MAIN() { return 1; }
14900 #endif
14901 int
14902 main ()
14903 {
14904 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14905 test_array [0] = 0
14906
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913   (eval $ac_compile) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_hi=$ac_mid
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14927 ac_lo=`expr '(' $ac_mid ')' + 1`
14928 fi
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14930 done
14931 case $ac_lo in
14932 ?*) pgac_cv_alignof_int=$ac_lo;;
14933 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14934 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14935    { (exit 1); exit 1; }; } ;;
14936 esac
14937 else
14938   if test "$cross_compiling" = yes; then
14939   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14940 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14941    { (exit 1); exit 1; }; }
14942 else
14943   cat >conftest.$ac_ext <<_ACEOF
14944 #line $LINENO "configure"
14945 #include "confdefs.h"
14946 $ac_includes_default
14947 struct { char filler; int field; } pgac_struct;
14948 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14949 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14950 #include <stdio.h>
14951 #include <stdlib.h>
14952 #ifdef F77_DUMMY_MAIN
14953 #  ifdef __cplusplus
14954      extern "C"
14955 #  endif
14956    int F77_DUMMY_MAIN() { return 1; }
14957 #endif
14958 int
14959 main ()
14960 {
14961
14962   FILE *f = fopen ("conftest.val", "w");
14963   if (! f)
14964     exit (1);
14965   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14966     {
14967       long i = longval ();
14968       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14969         exit (1);
14970       fprintf (f, "%ld\n", i);
14971     }
14972   else
14973     {
14974       unsigned long i = ulongval ();
14975       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14976         exit (1);
14977       fprintf (f, "%lu\n", i);
14978     }
14979   exit (ferror (f) || fclose (f) != 0);
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987   (eval $ac_link) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   pgac_cv_alignof_int=`cat conftest.val`
14997 else
14998   echo "$as_me: program exited with status $ac_status" >&5
14999 echo "$as_me: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15001 ( exit $ac_status )
15002 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15003 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15004    { (exit 1); exit 1; }; }
15005 fi
15006 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15007 fi
15008 fi
15009 rm -f conftest.val
15010 else
15011   pgac_cv_alignof_int=0
15012 fi
15013 fi
15014 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15015 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15016 cat >>confdefs.h <<_ACEOF
15017 #define ALIGNOF_INT $pgac_cv_alignof_int
15018 _ACEOF
15019
15020
15021 echo "$as_me:$LINENO: checking for long" >&5
15022 echo $ECHO_N "checking for long... $ECHO_C" >&6
15023 if test "${ac_cv_type_long+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 $ac_includes_default
15030 #ifdef F77_DUMMY_MAIN
15031 #  ifdef __cplusplus
15032      extern "C"
15033 #  endif
15034    int F77_DUMMY_MAIN() { return 1; }
15035 #endif
15036 int
15037 main ()
15038 {
15039 if ((long *) 0)
15040   return 0;
15041 if (sizeof (long))
15042   return 0;
15043   ;
15044   return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049   (eval $ac_compile) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } &&
15053          { ac_try='test -s conftest.$ac_objext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_type_long=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 cat conftest.$ac_ext >&5
15063 ac_cv_type_long=no
15064 fi
15065 rm -f conftest.$ac_objext conftest.$ac_ext
15066 fi
15067 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15068 echo "${ECHO_T}$ac_cv_type_long" >&6
15069
15070 echo "$as_me:$LINENO: checking alignment of long" >&5
15071 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15072 if test "${pgac_cv_alignof_long+set}" = set; then
15073   echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075   if test "$ac_cv_type_long" = yes; then
15076   if test "$cross_compiling" = yes; then
15077   # Depending upon the size, compute the lo and hi bounds.
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15080 #include "confdefs.h"
15081 $ac_includes_default
15082 struct { char filler; long field; } pgac_struct;
15083 #ifdef F77_DUMMY_MAIN
15084 #  ifdef __cplusplus
15085      extern "C"
15086 #  endif
15087    int F77_DUMMY_MAIN() { return 1; }
15088 #endif
15089 int
15090 main ()
15091 {
15092 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15093 test_array [0] = 0
15094
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101   (eval $ac_compile) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -s conftest.$ac_objext'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111   ac_lo=0 ac_mid=0
15112   while :; do
15113     cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 #include "confdefs.h"
15116 $ac_includes_default
15117 struct { char filler; long field; } pgac_struct;
15118 #ifdef F77_DUMMY_MAIN
15119 #  ifdef __cplusplus
15120      extern "C"
15121 #  endif
15122    int F77_DUMMY_MAIN() { return 1; }
15123 #endif
15124 int
15125 main ()
15126 {
15127 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15128 test_array [0] = 0
15129
15130   ;
15131   return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136   (eval $ac_compile) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } &&
15140          { ac_try='test -s conftest.$ac_objext'
15141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142   (eval $ac_try) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; }; then
15146   ac_hi=$ac_mid; break
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 ac_lo=`expr $ac_mid + 1`
15151                     if test $ac_lo -le $ac_mid; then
15152                       ac_lo= ac_hi=
15153                       break
15154                     fi
15155                     ac_mid=`expr 2 '*' $ac_mid + 1`
15156 fi
15157 rm -f conftest.$ac_objext conftest.$ac_ext
15158   done
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 #include "confdefs.h"
15165 $ac_includes_default
15166 struct { char filler; long field; } pgac_struct;
15167 #ifdef F77_DUMMY_MAIN
15168 #  ifdef __cplusplus
15169      extern "C"
15170 #  endif
15171    int F77_DUMMY_MAIN() { return 1; }
15172 #endif
15173 int
15174 main ()
15175 {
15176 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15177 test_array [0] = 0
15178
15179   ;
15180   return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185   (eval $ac_compile) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); } &&
15189          { ac_try='test -s conftest.$ac_objext'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_hi=-1 ac_mid=-1
15196   while :; do
15197     cat >conftest.$ac_ext <<_ACEOF
15198 #line $LINENO "configure"
15199 #include "confdefs.h"
15200 $ac_includes_default
15201 struct { char filler; long field; } pgac_struct;
15202 #ifdef F77_DUMMY_MAIN
15203 #  ifdef __cplusplus
15204      extern "C"
15205 #  endif
15206    int F77_DUMMY_MAIN() { return 1; }
15207 #endif
15208 int
15209 main ()
15210 {
15211 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15212 test_array [0] = 0
15213
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220   (eval $ac_compile) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -s conftest.$ac_objext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_lo=$ac_mid; break
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 ac_hi=`expr '(' $ac_mid ')' - 1`
15235                        if test $ac_mid -le $ac_hi; then
15236                          ac_lo= ac_hi=
15237                          break
15238                        fi
15239                        ac_mid=`expr 2 '*' $ac_mid`
15240 fi
15241 rm -f conftest.$ac_objext conftest.$ac_ext
15242   done
15243 else
15244   echo "$as_me: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15246 ac_lo= ac_hi=
15247 fi
15248 rm -f conftest.$ac_objext conftest.$ac_ext
15249 fi
15250 rm -f conftest.$ac_objext conftest.$ac_ext
15251 # Binary search between lo and hi bounds.
15252 while test "x$ac_lo" != "x$ac_hi"; do
15253   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15254   cat >conftest.$ac_ext <<_ACEOF
15255 #line $LINENO "configure"
15256 #include "confdefs.h"
15257 $ac_includes_default
15258 struct { char filler; long field; } pgac_struct;
15259 #ifdef F77_DUMMY_MAIN
15260 #  ifdef __cplusplus
15261      extern "C"
15262 #  endif
15263    int F77_DUMMY_MAIN() { return 1; }
15264 #endif
15265 int
15266 main ()
15267 {
15268 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15269 test_array [0] = 0
15270
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277   (eval $ac_compile) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } &&
15281          { ac_try='test -s conftest.$ac_objext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   ac_hi=$ac_mid
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 ac_lo=`expr '(' $ac_mid ')' + 1`
15292 fi
15293 rm -f conftest.$ac_objext conftest.$ac_ext
15294 done
15295 case $ac_lo in
15296 ?*) pgac_cv_alignof_long=$ac_lo;;
15297 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15298 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15299    { (exit 1); exit 1; }; } ;;
15300 esac
15301 else
15302   if test "$cross_compiling" = yes; then
15303   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15304 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15305    { (exit 1); exit 1; }; }
15306 else
15307   cat >conftest.$ac_ext <<_ACEOF
15308 #line $LINENO "configure"
15309 #include "confdefs.h"
15310 $ac_includes_default
15311 struct { char filler; long field; } pgac_struct;
15312 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15313 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15314 #include <stdio.h>
15315 #include <stdlib.h>
15316 #ifdef F77_DUMMY_MAIN
15317 #  ifdef __cplusplus
15318      extern "C"
15319 #  endif
15320    int F77_DUMMY_MAIN() { return 1; }
15321 #endif
15322 int
15323 main ()
15324 {
15325
15326   FILE *f = fopen ("conftest.val", "w");
15327   if (! f)
15328     exit (1);
15329   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15330     {
15331       long i = longval ();
15332       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15333         exit (1);
15334       fprintf (f, "%ld\n", i);
15335     }
15336   else
15337     {
15338       unsigned long i = ulongval ();
15339       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15340         exit (1);
15341       fprintf (f, "%lu\n", i);
15342     }
15343   exit (ferror (f) || fclose (f) != 0);
15344
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest$ac_exeext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15351   (eval $ac_link) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356   (eval $ac_try) 2>&5
15357   ac_status=$?
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); }; }; then
15360   pgac_cv_alignof_long=`cat conftest.val`
15361 else
15362   echo "$as_me: program exited with status $ac_status" >&5
15363 echo "$as_me: failed program was:" >&5
15364 cat conftest.$ac_ext >&5
15365 ( exit $ac_status )
15366 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15367 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15368    { (exit 1); exit 1; }; }
15369 fi
15370 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371 fi
15372 fi
15373 rm -f conftest.val
15374 else
15375   pgac_cv_alignof_long=0
15376 fi
15377 fi
15378 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15379 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15380 cat >>confdefs.h <<_ACEOF
15381 #define ALIGNOF_LONG $pgac_cv_alignof_long
15382 _ACEOF
15383
15384
15385 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15386   echo "$as_me:$LINENO: checking for long long int" >&5
15387 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15388 if test "${ac_cv_type_long_long_int+set}" = set; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   cat >conftest.$ac_ext <<_ACEOF
15392 #line $LINENO "configure"
15393 #include "confdefs.h"
15394 $ac_includes_default
15395 #ifdef F77_DUMMY_MAIN
15396 #  ifdef __cplusplus
15397      extern "C"
15398 #  endif
15399    int F77_DUMMY_MAIN() { return 1; }
15400 #endif
15401 int
15402 main ()
15403 {
15404 if ((long long int *) 0)
15405   return 0;
15406 if (sizeof (long long int))
15407   return 0;
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414   (eval $ac_compile) 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -s conftest.$ac_objext'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   ac_cv_type_long_long_int=yes
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15428 ac_cv_type_long_long_int=no
15429 fi
15430 rm -f conftest.$ac_objext conftest.$ac_ext
15431 fi
15432 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15433 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15434
15435 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15436 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15437 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   if test "$ac_cv_type_long_long_int" = yes; then
15441   if test "$cross_compiling" = yes; then
15442   # Depending upon the size, compute the lo and hi bounds.
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #line $LINENO "configure"
15445 #include "confdefs.h"
15446 $ac_includes_default
15447 struct { char filler; long long int field; } pgac_struct;
15448 #ifdef F77_DUMMY_MAIN
15449 #  ifdef __cplusplus
15450      extern "C"
15451 #  endif
15452    int F77_DUMMY_MAIN() { return 1; }
15453 #endif
15454 int
15455 main ()
15456 {
15457 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15458 test_array [0] = 0
15459
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466   (eval $ac_compile) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } &&
15470          { ac_try='test -s conftest.$ac_objext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476   ac_lo=0 ac_mid=0
15477   while :; do
15478     cat >conftest.$ac_ext <<_ACEOF
15479 #line $LINENO "configure"
15480 #include "confdefs.h"
15481 $ac_includes_default
15482 struct { char filler; long long int field; } pgac_struct;
15483 #ifdef F77_DUMMY_MAIN
15484 #  ifdef __cplusplus
15485      extern "C"
15486 #  endif
15487    int F77_DUMMY_MAIN() { return 1; }
15488 #endif
15489 int
15490 main ()
15491 {
15492 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15493 test_array [0] = 0
15494
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501   (eval $ac_compile) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } &&
15505          { ac_try='test -s conftest.$ac_objext'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; }; then
15511   ac_hi=$ac_mid; break
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15515 ac_lo=`expr $ac_mid + 1`
15516                     if test $ac_lo -le $ac_mid; then
15517                       ac_lo= ac_hi=
15518                       break
15519                     fi
15520                     ac_mid=`expr 2 '*' $ac_mid + 1`
15521 fi
15522 rm -f conftest.$ac_objext conftest.$ac_ext
15523   done
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 cat >conftest.$ac_ext <<_ACEOF
15528 #line $LINENO "configure"
15529 #include "confdefs.h"
15530 $ac_includes_default
15531 struct { char filler; long long int field; } pgac_struct;
15532 #ifdef F77_DUMMY_MAIN
15533 #  ifdef __cplusplus
15534      extern "C"
15535 #  endif
15536    int F77_DUMMY_MAIN() { return 1; }
15537 #endif
15538 int
15539 main ()
15540 {
15541 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15542 test_array [0] = 0
15543
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550   (eval $ac_compile) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -s conftest.$ac_objext'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   ac_hi=-1 ac_mid=-1
15561   while :; do
15562     cat >conftest.$ac_ext <<_ACEOF
15563 #line $LINENO "configure"
15564 #include "confdefs.h"
15565 $ac_includes_default
15566 struct { char filler; long long int field; } pgac_struct;
15567 #ifdef F77_DUMMY_MAIN
15568 #  ifdef __cplusplus
15569      extern "C"
15570 #  endif
15571    int F77_DUMMY_MAIN() { return 1; }
15572 #endif
15573 int
15574 main ()
15575 {
15576 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15577 test_array [0] = 0
15578
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585   (eval $ac_compile) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -s conftest.$ac_objext'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; }; then
15595   ac_lo=$ac_mid; break
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 ac_hi=`expr '(' $ac_mid ')' - 1`
15600                        if test $ac_mid -le $ac_hi; then
15601                          ac_lo= ac_hi=
15602                          break
15603                        fi
15604                        ac_mid=`expr 2 '*' $ac_mid`
15605 fi
15606 rm -f conftest.$ac_objext conftest.$ac_ext
15607   done
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 ac_lo= ac_hi=
15612 fi
15613 rm -f conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 rm -f conftest.$ac_objext conftest.$ac_ext
15616 # Binary search between lo and hi bounds.
15617 while test "x$ac_lo" != "x$ac_hi"; do
15618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619   cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15621 #include "confdefs.h"
15622 $ac_includes_default
15623 struct { char filler; long long int field; } pgac_struct;
15624 #ifdef F77_DUMMY_MAIN
15625 #  ifdef __cplusplus
15626      extern "C"
15627 #  endif
15628    int F77_DUMMY_MAIN() { return 1; }
15629 #endif
15630 int
15631 main ()
15632 {
15633 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15634 test_array [0] = 0
15635
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642   (eval $ac_compile) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } &&
15646          { ac_try='test -s conftest.$ac_objext'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   ac_hi=$ac_mid
15653 else
15654   echo "$as_me: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15656 ac_lo=`expr '(' $ac_mid ')' + 1`
15657 fi
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15659 done
15660 case $ac_lo in
15661 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15662 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15663 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15664    { (exit 1); exit 1; }; } ;;
15665 esac
15666 else
15667   if test "$cross_compiling" = yes; then
15668   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15669 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15670    { (exit 1); exit 1; }; }
15671 else
15672   cat >conftest.$ac_ext <<_ACEOF
15673 #line $LINENO "configure"
15674 #include "confdefs.h"
15675 $ac_includes_default
15676 struct { char filler; long long int field; } pgac_struct;
15677 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15678 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15679 #include <stdio.h>
15680 #include <stdlib.h>
15681 #ifdef F77_DUMMY_MAIN
15682 #  ifdef __cplusplus
15683      extern "C"
15684 #  endif
15685    int F77_DUMMY_MAIN() { return 1; }
15686 #endif
15687 int
15688 main ()
15689 {
15690
15691   FILE *f = fopen ("conftest.val", "w");
15692   if (! f)
15693     exit (1);
15694   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15695     {
15696       long i = longval ();
15697       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15698         exit (1);
15699       fprintf (f, "%ld\n", i);
15700     }
15701   else
15702     {
15703       unsigned long i = ulongval ();
15704       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15705         exit (1);
15706       fprintf (f, "%lu\n", i);
15707     }
15708   exit (ferror (f) || fclose (f) != 0);
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716   (eval $ac_link) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   pgac_cv_alignof_long_long_int=`cat conftest.val`
15726 else
15727   echo "$as_me: program exited with status $ac_status" >&5
15728 echo "$as_me: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 ( exit $ac_status )
15731 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15732 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15733    { (exit 1); exit 1; }; }
15734 fi
15735 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15736 fi
15737 fi
15738 rm -f conftest.val
15739 else
15740   pgac_cv_alignof_long_long_int=0
15741 fi
15742 fi
15743 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15744 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15745 cat >>confdefs.h <<_ACEOF
15746 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15747 _ACEOF
15748
15749
15750 fi
15751 echo "$as_me:$LINENO: checking for double" >&5
15752 echo $ECHO_N "checking for double... $ECHO_C" >&6
15753 if test "${ac_cv_type_double+set}" = set; then
15754   echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756   cat >conftest.$ac_ext <<_ACEOF
15757 #line $LINENO "configure"
15758 #include "confdefs.h"
15759 $ac_includes_default
15760 #ifdef F77_DUMMY_MAIN
15761 #  ifdef __cplusplus
15762      extern "C"
15763 #  endif
15764    int F77_DUMMY_MAIN() { return 1; }
15765 #endif
15766 int
15767 main ()
15768 {
15769 if ((double *) 0)
15770   return 0;
15771 if (sizeof (double))
15772   return 0;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15779   (eval $ac_compile) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -s conftest.$ac_objext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789   ac_cv_type_double=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15793 ac_cv_type_double=no
15794 fi
15795 rm -f conftest.$ac_objext conftest.$ac_ext
15796 fi
15797 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15798 echo "${ECHO_T}$ac_cv_type_double" >&6
15799
15800 echo "$as_me:$LINENO: checking alignment of double" >&5
15801 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15802 if test "${pgac_cv_alignof_double+set}" = set; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805   if test "$ac_cv_type_double" = yes; then
15806   if test "$cross_compiling" = yes; then
15807   # Depending upon the size, compute the lo and hi bounds.
15808 cat >conftest.$ac_ext <<_ACEOF
15809 #line $LINENO "configure"
15810 #include "confdefs.h"
15811 $ac_includes_default
15812 struct { char filler; double field; } pgac_struct;
15813 #ifdef F77_DUMMY_MAIN
15814 #  ifdef __cplusplus
15815      extern "C"
15816 #  endif
15817    int F77_DUMMY_MAIN() { return 1; }
15818 #endif
15819 int
15820 main ()
15821 {
15822 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15823 test_array [0] = 0
15824
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831   (eval $ac_compile) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -s conftest.$ac_objext'
15836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837   (eval $ac_try) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; }; then
15841   ac_lo=0 ac_mid=0
15842   while :; do
15843     cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15845 #include "confdefs.h"
15846 $ac_includes_default
15847 struct { char filler; double field; } pgac_struct;
15848 #ifdef F77_DUMMY_MAIN
15849 #  ifdef __cplusplus
15850      extern "C"
15851 #  endif
15852    int F77_DUMMY_MAIN() { return 1; }
15853 #endif
15854 int
15855 main ()
15856 {
15857 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15858 test_array [0] = 0
15859
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15866   (eval $ac_compile) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -s conftest.$ac_objext'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   ac_hi=$ac_mid; break
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 cat conftest.$ac_ext >&5
15880 ac_lo=`expr $ac_mid + 1`
15881                     if test $ac_lo -le $ac_mid; then
15882                       ac_lo= ac_hi=
15883                       break
15884                     fi
15885                     ac_mid=`expr 2 '*' $ac_mid + 1`
15886 fi
15887 rm -f conftest.$ac_objext conftest.$ac_ext
15888   done
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15892 cat >conftest.$ac_ext <<_ACEOF
15893 #line $LINENO "configure"
15894 #include "confdefs.h"
15895 $ac_includes_default
15896 struct { char filler; double field; } pgac_struct;
15897 #ifdef F77_DUMMY_MAIN
15898 #  ifdef __cplusplus
15899      extern "C"
15900 #  endif
15901    int F77_DUMMY_MAIN() { return 1; }
15902 #endif
15903 int
15904 main ()
15905 {
15906 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15907 test_array [0] = 0
15908
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15915   (eval $ac_compile) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } &&
15919          { ac_try='test -s conftest.$ac_objext'
15920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921   (eval $ac_try) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   ac_hi=-1 ac_mid=-1
15926   while :; do
15927     cat >conftest.$ac_ext <<_ACEOF
15928 #line $LINENO "configure"
15929 #include "confdefs.h"
15930 $ac_includes_default
15931 struct { char filler; double field; } pgac_struct;
15932 #ifdef F77_DUMMY_MAIN
15933 #  ifdef __cplusplus
15934      extern "C"
15935 #  endif
15936    int F77_DUMMY_MAIN() { return 1; }
15937 #endif
15938 int
15939 main ()
15940 {
15941 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15942 test_array [0] = 0
15943
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15950   (eval $ac_compile) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); } &&
15954          { ac_try='test -s conftest.$ac_objext'
15955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956   (eval $ac_try) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }; then
15960   ac_lo=$ac_mid; break
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15964 ac_hi=`expr '(' $ac_mid ')' - 1`
15965                        if test $ac_mid -le $ac_hi; then
15966                          ac_lo= ac_hi=
15967                          break
15968                        fi
15969                        ac_mid=`expr 2 '*' $ac_mid`
15970 fi
15971 rm -f conftest.$ac_objext conftest.$ac_ext
15972   done
15973 else
15974   echo "$as_me: failed program was:" >&5
15975 cat conftest.$ac_ext >&5
15976 ac_lo= ac_hi=
15977 fi
15978 rm -f conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 rm -f conftest.$ac_objext conftest.$ac_ext
15981 # Binary search between lo and hi bounds.
15982 while test "x$ac_lo" != "x$ac_hi"; do
15983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15984   cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 #include "confdefs.h"
15987 $ac_includes_default
15988 struct { char filler; double field; } pgac_struct;
15989 #ifdef F77_DUMMY_MAIN
15990 #  ifdef __cplusplus
15991      extern "C"
15992 #  endif
15993    int F77_DUMMY_MAIN() { return 1; }
15994 #endif
15995 int
15996 main ()
15997 {
15998 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15999 test_array [0] = 0
16000
16001   ;
16002   return 0;
16003 }
16004 _ACEOF
16005 rm -f conftest.$ac_objext
16006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16007   (eval $ac_compile) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); } &&
16011          { ac_try='test -s conftest.$ac_objext'
16012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013   (eval $ac_try) 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017   ac_hi=$ac_mid
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 cat conftest.$ac_ext >&5
16021 ac_lo=`expr '(' $ac_mid ')' + 1`
16022 fi
16023 rm -f conftest.$ac_objext conftest.$ac_ext
16024 done
16025 case $ac_lo in
16026 ?*) pgac_cv_alignof_double=$ac_lo;;
16027 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16028 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16029    { (exit 1); exit 1; }; } ;;
16030 esac
16031 else
16032   if test "$cross_compiling" = yes; then
16033   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16034 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16035    { (exit 1); exit 1; }; }
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 #include "confdefs.h"
16040 $ac_includes_default
16041 struct { char filler; double field; } pgac_struct;
16042 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16043 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16044 #include <stdio.h>
16045 #include <stdlib.h>
16046 #ifdef F77_DUMMY_MAIN
16047 #  ifdef __cplusplus
16048      extern "C"
16049 #  endif
16050    int F77_DUMMY_MAIN() { return 1; }
16051 #endif
16052 int
16053 main ()
16054 {
16055
16056   FILE *f = fopen ("conftest.val", "w");
16057   if (! f)
16058     exit (1);
16059   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16060     {
16061       long i = longval ();
16062       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16063         exit (1);
16064       fprintf (f, "%ld\n", i);
16065     }
16066   else
16067     {
16068       unsigned long i = ulongval ();
16069       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16070         exit (1);
16071       fprintf (f, "%lu\n", i);
16072     }
16073   exit (ferror (f) || fclose (f) != 0);
16074
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 rm -f conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081   (eval $ac_link) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086   (eval $ac_try) 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; }; then
16090   pgac_cv_alignof_double=`cat conftest.val`
16091 else
16092   echo "$as_me: program exited with status $ac_status" >&5
16093 echo "$as_me: failed program was:" >&5
16094 cat conftest.$ac_ext >&5
16095 ( exit $ac_status )
16096 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16097 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16098    { (exit 1); exit 1; }; }
16099 fi
16100 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16101 fi
16102 fi
16103 rm -f conftest.val
16104 else
16105   pgac_cv_alignof_double=0
16106 fi
16107 fi
16108 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16109 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16110 cat >>confdefs.h <<_ACEOF
16111 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16112 _ACEOF
16113
16114
16115
16116 # Compute maximum alignment of any basic type.
16117 # We assume long's alignment is at least as strong as char, short, or int;
16118 # but we must check long long (if it exists) and double.
16119
16120 MAX_ALIGNOF=$pgac_cv_alignof_long
16121 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16122   MAX_ALIGNOF=$pgac_cv_alignof_double
16123 fi
16124 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16125   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16126 fi
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16130 _ACEOF
16131
16132
16133
16134 # Some platforms predefine the types int8, int16, etc.  Only check
16135 # a (hopefully) representative subset.
16136 echo "$as_me:$LINENO: checking for int8" >&5
16137 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16138 if test "${ac_cv_type_int8+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141   cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 #include "confdefs.h"
16144 #include <stdio.h>
16145 #ifdef HAVE_SUPPORTDEFS_H
16146 #include <SupportDefs.h>
16147 #endif
16148
16149 #ifdef F77_DUMMY_MAIN
16150 #  ifdef __cplusplus
16151      extern "C"
16152 #  endif
16153    int F77_DUMMY_MAIN() { return 1; }
16154 #endif
16155 int
16156 main ()
16157 {
16158 if ((int8 *) 0)
16159   return 0;
16160 if (sizeof (int8))
16161   return 0;
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168   (eval $ac_compile) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } &&
16172          { ac_try='test -s conftest.$ac_objext'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }; then
16178   ac_cv_type_int8=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16182 ac_cv_type_int8=no
16183 fi
16184 rm -f conftest.$ac_objext conftest.$ac_ext
16185 fi
16186 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16187 echo "${ECHO_T}$ac_cv_type_int8" >&6
16188 if test $ac_cv_type_int8 = yes; then
16189
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_INT8 1
16192 _ACEOF
16193
16194
16195 fi
16196 echo "$as_me:$LINENO: checking for uint8" >&5
16197 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16198 if test "${ac_cv_type_uint8+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201   cat >conftest.$ac_ext <<_ACEOF
16202 #line $LINENO "configure"
16203 #include "confdefs.h"
16204 #include <stdio.h>
16205 #ifdef HAVE_SUPPORTDEFS_H
16206 #include <SupportDefs.h>
16207 #endif
16208
16209 #ifdef F77_DUMMY_MAIN
16210 #  ifdef __cplusplus
16211      extern "C"
16212 #  endif
16213    int F77_DUMMY_MAIN() { return 1; }
16214 #endif
16215 int
16216 main ()
16217 {
16218 if ((uint8 *) 0)
16219   return 0;
16220 if (sizeof (uint8))
16221   return 0;
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16228   (eval $ac_compile) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -s conftest.$ac_objext'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238   ac_cv_type_uint8=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16242 ac_cv_type_uint8=no
16243 fi
16244 rm -f conftest.$ac_objext conftest.$ac_ext
16245 fi
16246 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16247 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16248 if test $ac_cv_type_uint8 = yes; then
16249
16250 cat >>confdefs.h <<_ACEOF
16251 #define HAVE_UINT8 1
16252 _ACEOF
16253
16254
16255 fi
16256 echo "$as_me:$LINENO: checking for int64" >&5
16257 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16258 if test "${ac_cv_type_int64+set}" = set; then
16259   echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261   cat >conftest.$ac_ext <<_ACEOF
16262 #line $LINENO "configure"
16263 #include "confdefs.h"
16264 #include <stdio.h>
16265 #ifdef HAVE_SUPPORTDEFS_H
16266 #include <SupportDefs.h>
16267 #endif
16268
16269 #ifdef F77_DUMMY_MAIN
16270 #  ifdef __cplusplus
16271      extern "C"
16272 #  endif
16273    int F77_DUMMY_MAIN() { return 1; }
16274 #endif
16275 int
16276 main ()
16277 {
16278 if ((int64 *) 0)
16279   return 0;
16280 if (sizeof (int64))
16281   return 0;
16282   ;
16283   return 0;
16284 }
16285 _ACEOF
16286 rm -f conftest.$ac_objext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16288   (eval $ac_compile) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -s conftest.$ac_objext'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   ac_cv_type_int64=yes
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16302 ac_cv_type_int64=no
16303 fi
16304 rm -f conftest.$ac_objext conftest.$ac_ext
16305 fi
16306 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16307 echo "${ECHO_T}$ac_cv_type_int64" >&6
16308 if test $ac_cv_type_int64 = yes; then
16309
16310 cat >>confdefs.h <<_ACEOF
16311 #define HAVE_INT64 1
16312 _ACEOF
16313
16314
16315 fi
16316 echo "$as_me:$LINENO: checking for uint64" >&5
16317 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16318 if test "${ac_cv_type_uint64+set}" = set; then
16319   echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321   cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16323 #include "confdefs.h"
16324 #include <stdio.h>
16325 #ifdef HAVE_SUPPORTDEFS_H
16326 #include <SupportDefs.h>
16327 #endif
16328
16329 #ifdef F77_DUMMY_MAIN
16330 #  ifdef __cplusplus
16331      extern "C"
16332 #  endif
16333    int F77_DUMMY_MAIN() { return 1; }
16334 #endif
16335 int
16336 main ()
16337 {
16338 if ((uint64 *) 0)
16339   return 0;
16340 if (sizeof (uint64))
16341   return 0;
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16348   (eval $ac_compile) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -s conftest.$ac_objext'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ac_cv_type_uint64=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16362 ac_cv_type_uint64=no
16363 fi
16364 rm -f conftest.$ac_objext conftest.$ac_ext
16365 fi
16366 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16367 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16368 if test $ac_cv_type_uint64 = yes; then
16369
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_UINT64 1
16372 _ACEOF
16373
16374
16375 fi
16376
16377
16378 # We also check for sig_atomic_t, which *should* be defined per ANSI
16379 # C, but is missing on some old platforms.
16380 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16381 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16382 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   cat >conftest.$ac_ext <<_ACEOF
16386 #line $LINENO "configure"
16387 #include "confdefs.h"
16388 #include <signal.h>
16389
16390 #ifdef F77_DUMMY_MAIN
16391 #  ifdef __cplusplus
16392      extern "C"
16393 #  endif
16394    int F77_DUMMY_MAIN() { return 1; }
16395 #endif
16396 int
16397 main ()
16398 {
16399 if ((sig_atomic_t *) 0)
16400   return 0;
16401 if (sizeof (sig_atomic_t))
16402   return 0;
16403   ;
16404   return 0;
16405 }
16406 _ACEOF
16407 rm -f conftest.$ac_objext
16408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16409   (eval $ac_compile) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } &&
16413          { ac_try='test -s conftest.$ac_objext'
16414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415   (eval $ac_try) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; }; then
16419   ac_cv_type_sig_atomic_t=yes
16420 else
16421   echo "$as_me: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 ac_cv_type_sig_atomic_t=no
16424 fi
16425 rm -f conftest.$ac_objext conftest.$ac_ext
16426 fi
16427 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16428 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16429 if test $ac_cv_type_sig_atomic_t = yes; then
16430
16431 cat >>confdefs.h <<_ACEOF
16432 #define HAVE_SIG_ATOMIC_T 1
16433 _ACEOF
16434
16435
16436 fi
16437
16438
16439
16440 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16441 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16442 if test "${pgac_cv_func_posix_signals+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 #include "confdefs.h"
16448 #include <signal.h>
16449
16450 #ifdef F77_DUMMY_MAIN
16451 #  ifdef __cplusplus
16452      extern "C"
16453 #  endif
16454    int F77_DUMMY_MAIN() { return 1; }
16455 #endif
16456 int
16457 main ()
16458 {
16459 struct sigaction act, oact;
16460 sigemptyset(&act.sa_mask);
16461 act.sa_flags = SA_RESTART;
16462 sigaction(0, &act, &oact);
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext conftest$ac_exeext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16469   (eval $ac_link) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } &&
16473          { ac_try='test -s conftest$ac_exeext'
16474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475   (eval $ac_try) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; }; then
16479   pgac_cv_func_posix_signals=yes
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 pgac_cv_func_posix_signals=no
16484 fi
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486 fi
16487 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16488 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16489 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16490
16491 cat >>confdefs.h <<\_ACEOF
16492 #define HAVE_POSIX_SIGNALS
16493 _ACEOF
16494
16495 fi
16496 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16497
16498 if test $ac_cv_func_fseeko = yes; then
16499 # Check whether --enable-largefile or --disable-largefile was given.
16500 if test "${enable_largefile+set}" = set; then
16501   enableval="$enable_largefile"
16502
16503 fi;
16504 if test "$enable_largefile" != no; then
16505
16506   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16507 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16508 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   ac_cv_sys_largefile_CC=no
16512      if test "$GCC" != yes; then
16513        ac_save_CC=$CC
16514        while :; do
16515          # IRIX 6.2 and later do not support large files by default,
16516          # so use the C compiler's -n32 option if that helps.
16517          cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16519 #include "confdefs.h"
16520 #include <sys/types.h>
16521  /* Check that off_t can represent 2**63 - 1 correctly.
16522     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16523     since some C++ compilers masquerading as C compilers
16524     incorrectly reject 9223372036854775807.  */
16525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16526   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16527                        && LARGE_OFF_T % 2147483647 == 1)
16528                       ? 1 : -1];
16529 #ifdef F77_DUMMY_MAIN
16530 #  ifdef __cplusplus
16531      extern "C"
16532 #  endif
16533    int F77_DUMMY_MAIN() { return 1; }
16534 #endif
16535 int
16536 main ()
16537 {
16538
16539   ;
16540   return 0;
16541 }
16542 _ACEOF
16543          rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545   (eval $ac_compile) 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); } &&
16549          { ac_try='test -s conftest.$ac_objext'
16550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551   (eval $ac_try) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   break
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 fi
16560 rm -f conftest.$ac_objext
16561          CC="$CC -n32"
16562          rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564   (eval $ac_compile) 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } &&
16568          { ac_try='test -s conftest.$ac_objext'
16569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570   (eval $ac_try) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574   ac_cv_sys_largefile_CC=' -n32'; break
16575 else
16576   echo "$as_me: failed program was:" >&5
16577 cat conftest.$ac_ext >&5
16578 fi
16579 rm -f conftest.$ac_objext
16580          break
16581        done
16582        CC=$ac_save_CC
16583        rm -f conftest.$ac_ext
16584     fi
16585 fi
16586 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16587 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16588   if test "$ac_cv_sys_largefile_CC" != no; then
16589     CC=$CC$ac_cv_sys_largefile_CC
16590   fi
16591
16592   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16593 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16594 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597   while :; do
16598   ac_cv_sys_file_offset_bits=no
16599   cat >conftest.$ac_ext <<_ACEOF
16600 #line $LINENO "configure"
16601 #include "confdefs.h"
16602 #include <sys/types.h>
16603  /* Check that off_t can represent 2**63 - 1 correctly.
16604     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16605     since some C++ compilers masquerading as C compilers
16606     incorrectly reject 9223372036854775807.  */
16607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16608   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16609                        && LARGE_OFF_T % 2147483647 == 1)
16610                       ? 1 : -1];
16611 #ifdef F77_DUMMY_MAIN
16612 #  ifdef __cplusplus
16613      extern "C"
16614 #  endif
16615    int F77_DUMMY_MAIN() { return 1; }
16616 #endif
16617 int
16618 main ()
16619 {
16620
16621   ;
16622   return 0;
16623 }
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627   (eval $ac_compile) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } &&
16631          { ac_try='test -s conftest.$ac_objext'
16632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633   (eval $ac_try) 2>&5
16634   ac_status=$?
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); }; }; then
16637   break
16638 else
16639   echo "$as_me: failed program was:" >&5
16640 cat conftest.$ac_ext >&5
16641 fi
16642 rm -f conftest.$ac_objext conftest.$ac_ext
16643   cat >conftest.$ac_ext <<_ACEOF
16644 #line $LINENO "configure"
16645 #include "confdefs.h"
16646 #define _FILE_OFFSET_BITS 64
16647 #include <sys/types.h>
16648  /* Check that off_t can represent 2**63 - 1 correctly.
16649     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16650     since some C++ compilers masquerading as C compilers
16651     incorrectly reject 9223372036854775807.  */
16652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16653   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16654                        && LARGE_OFF_T % 2147483647 == 1)
16655                       ? 1 : -1];
16656 #ifdef F77_DUMMY_MAIN
16657 #  ifdef __cplusplus
16658      extern "C"
16659 #  endif
16660    int F77_DUMMY_MAIN() { return 1; }
16661 #endif
16662 int
16663 main ()
16664 {
16665
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -s conftest.$ac_objext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_cv_sys_file_offset_bits=64; break
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 fi
16687 rm -f conftest.$ac_objext conftest.$ac_ext
16688   break
16689 done
16690 fi
16691 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16692 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16693 if test "$ac_cv_sys_file_offset_bits" != no; then
16694
16695 cat >>confdefs.h <<_ACEOF
16696 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16697 _ACEOF
16698
16699 fi
16700 rm -f conftest*
16701   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16702 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16703 if test "${ac_cv_sys_large_files+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   while :; do
16707   ac_cv_sys_large_files=no
16708   cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 #include "confdefs.h"
16711 #include <sys/types.h>
16712  /* Check that off_t can represent 2**63 - 1 correctly.
16713     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16714     since some C++ compilers masquerading as C compilers
16715     incorrectly reject 9223372036854775807.  */
16716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16717   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16718                        && LARGE_OFF_T % 2147483647 == 1)
16719                       ? 1 : -1];
16720 #ifdef F77_DUMMY_MAIN
16721 #  ifdef __cplusplus
16722      extern "C"
16723 #  endif
16724    int F77_DUMMY_MAIN() { return 1; }
16725 #endif
16726 int
16727 main ()
16728 {
16729
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736   (eval $ac_compile) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   break
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 fi
16751 rm -f conftest.$ac_objext conftest.$ac_ext
16752   cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 #include "confdefs.h"
16755 #define _LARGE_FILES 1
16756 #include <sys/types.h>
16757  /* Check that off_t can represent 2**63 - 1 correctly.
16758     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16759     since some C++ compilers masquerading as C compilers
16760     incorrectly reject 9223372036854775807.  */
16761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16762   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16763                        && LARGE_OFF_T % 2147483647 == 1)
16764                       ? 1 : -1];
16765 #ifdef F77_DUMMY_MAIN
16766 #  ifdef __cplusplus
16767      extern "C"
16768 #  endif
16769    int F77_DUMMY_MAIN() { return 1; }
16770 #endif
16771 int
16772 main ()
16773 {
16774
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781   (eval $ac_compile) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -s conftest.$ac_objext'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; }; then
16791   ac_cv_sys_large_files=1; break
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16795 fi
16796 rm -f conftest.$ac_objext conftest.$ac_ext
16797   break
16798 done
16799 fi
16800 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16801 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16802 if test "$ac_cv_sys_large_files" != no; then
16803
16804 cat >>confdefs.h <<_ACEOF
16805 #define _LARGE_FILES $ac_cv_sys_large_files
16806 _ACEOF
16807
16808 fi
16809 rm -f conftest*
16810 fi
16811
16812 fi
16813
16814
16815 # Select semaphore implementation type.
16816 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define USE_NAMED_POSIX_SEMAPHORES 1
16820 _ACEOF
16821
16822   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16823 else
16824   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16825
16826 cat >>confdefs.h <<\_ACEOF
16827 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16828 _ACEOF
16829
16830     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16831   else
16832
16833 cat >>confdefs.h <<\_ACEOF
16834 #define USE_SYSV_SEMAPHORES 1
16835 _ACEOF
16836
16837     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16838   fi
16839 fi
16840
16841
16842 # Select shared-memory implementation type.
16843
16844 cat >>confdefs.h <<\_ACEOF
16845 #define USE_SYSV_SHARED_MEMORY 1
16846 _ACEOF
16847
16848 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16849
16850
16851 if test "$enable_nls" = yes ; then
16852
16853   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16854 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16855 if test "${ac_cv_search_gettext+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   ac_func_search_save_LIBS=$LIBS
16859 ac_cv_search_gettext=no
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 #include "confdefs.h"
16863
16864 /* Override any gcc2 internal prototype to avoid an error.  */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 /* We use char because int might match the return type of a gcc2
16869    builtin and then its argument prototype would still apply.  */
16870 char gettext ();
16871 #ifdef F77_DUMMY_MAIN
16872 #  ifdef __cplusplus
16873      extern "C"
16874 #  endif
16875    int F77_DUMMY_MAIN() { return 1; }
16876 #endif
16877 int
16878 main ()
16879 {
16880 gettext ();
16881   ;
16882   return 0;
16883 }
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16887   (eval $ac_link) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); } &&
16891          { ac_try='test -s conftest$ac_exeext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   ac_cv_search_gettext="none required"
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 fi
16902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16903 if test "$ac_cv_search_gettext" = no; then
16904   for ac_lib in intl; do
16905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16906     cat >conftest.$ac_ext <<_ACEOF
16907 #line $LINENO "configure"
16908 #include "confdefs.h"
16909
16910 /* Override any gcc2 internal prototype to avoid an error.  */
16911 #ifdef __cplusplus
16912 extern "C"
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915    builtin and then its argument prototype would still apply.  */
16916 char gettext ();
16917 #ifdef F77_DUMMY_MAIN
16918 #  ifdef __cplusplus
16919      extern "C"
16920 #  endif
16921    int F77_DUMMY_MAIN() { return 1; }
16922 #endif
16923 int
16924 main ()
16925 {
16926 gettext ();
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933   (eval $ac_link) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_cv_search_gettext="-l$ac_lib"
16944 break
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 fi
16949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16950   done
16951 fi
16952 LIBS=$ac_func_search_save_LIBS
16953 fi
16954 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16955 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16956 if test "$ac_cv_search_gettext" != no; then
16957   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16958
16959 else
16960   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16961 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16962    { (exit 1); exit 1; }; }
16963 fi
16964
16965   if test "${ac_cv_header_libintl_h+set}" = set; then
16966   echo "$as_me:$LINENO: checking for libintl.h" >&5
16967 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16968 if test "${ac_cv_header_libintl_h+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 fi
16971 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16972 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16973 else
16974   # Is the header compilable?
16975 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16976 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16977 cat >conftest.$ac_ext <<_ACEOF
16978 #line $LINENO "configure"
16979 #include "confdefs.h"
16980 $ac_includes_default
16981 #include <libintl.h>
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985   (eval $ac_compile) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); } &&
16989          { ac_try='test -s conftest.$ac_objext'
16990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991   (eval $ac_try) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); }; }; then
16995   ac_header_compiler=yes
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 ac_header_compiler=no
17000 fi
17001 rm -f conftest.$ac_objext conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17003 echo "${ECHO_T}$ac_header_compiler" >&6
17004
17005 # Is the header present?
17006 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17007 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17009 #line $LINENO "configure"
17010 #include "confdefs.h"
17011 #include <libintl.h>
17012 _ACEOF
17013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17015   ac_status=$?
17016   egrep -v '^ *\+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } >/dev/null; then
17021   if test -s conftest.err; then
17022     ac_cpp_err=$ac_c_preproc_warn_flag
17023   else
17024     ac_cpp_err=
17025   fi
17026 else
17027   ac_cpp_err=yes
17028 fi
17029 if test -z "$ac_cpp_err"; then
17030   ac_header_preproc=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033   cat conftest.$ac_ext >&5
17034   ac_header_preproc=no
17035 fi
17036 rm -f conftest.err conftest.$ac_ext
17037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038 echo "${ECHO_T}$ac_header_preproc" >&6
17039
17040 # So?  What about this header?
17041 case $ac_header_compiler:$ac_header_preproc in
17042   yes:no )
17043     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17044 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17046 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17047   no:yes )
17048     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17049 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17050     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17051 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17052     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17053 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17054 esac
17055 echo "$as_me:$LINENO: checking for libintl.h" >&5
17056 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17057 if test "${ac_cv_header_libintl_h+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   ac_cv_header_libintl_h=$ac_header_preproc
17061 fi
17062 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17063 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17064
17065 fi
17066 if test $ac_cv_header_libintl_h = yes; then
17067   :
17068 else
17069   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17070 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17071    { (exit 1); exit 1; }; }
17072 fi
17073
17074
17075   for ac_prog in msgfmt
17076 do
17077   # Extract the first word of "$ac_prog", so it can be a program name with args.
17078 set dummy $ac_prog; ac_word=$2
17079 echo "$as_me:$LINENO: checking for $ac_word" >&5
17080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17081 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   if test -n "$MSGFMT"; then
17085   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17086 else
17087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17088 for as_dir in $PATH
17089 do
17090   IFS=$as_save_IFS
17091   test -z "$as_dir" && as_dir=.
17092   for ac_exec_ext in '' $ac_executable_extensions; do
17093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17094     ac_cv_prog_MSGFMT="$ac_prog"
17095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17096     break 2
17097   fi
17098 done
17099 done
17100
17101 fi
17102 fi
17103 MSGFMT=$ac_cv_prog_MSGFMT
17104 if test -n "$MSGFMT"; then
17105   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17106 echo "${ECHO_T}$MSGFMT" >&6
17107 else
17108   echo "$as_me:$LINENO: result: no" >&5
17109 echo "${ECHO_T}no" >&6
17110 fi
17111
17112   test -n "$MSGFMT" && break
17113 done
17114
17115   if test -z "$MSGFMT"; then
17116     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17117 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17118    { (exit 1); exit 1; }; }
17119   fi
17120   for ac_prog in msgmerge
17121 do
17122   # Extract the first word of "$ac_prog", so it can be a program name with args.
17123 set dummy $ac_prog; ac_word=$2
17124 echo "$as_me:$LINENO: checking for $ac_word" >&5
17125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17126 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17127   echo $ECHO_N "(cached) $ECHO_C" >&6
17128 else
17129   if test -n "$MSGMERGE"; then
17130   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17131 else
17132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17133 for as_dir in $PATH
17134 do
17135   IFS=$as_save_IFS
17136   test -z "$as_dir" && as_dir=.
17137   for ac_exec_ext in '' $ac_executable_extensions; do
17138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17139     ac_cv_prog_MSGMERGE="$ac_prog"
17140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17141     break 2
17142   fi
17143 done
17144 done
17145
17146 fi
17147 fi
17148 MSGMERGE=$ac_cv_prog_MSGMERGE
17149 if test -n "$MSGMERGE"; then
17150   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17151 echo "${ECHO_T}$MSGMERGE" >&6
17152 else
17153   echo "$as_me:$LINENO: result: no" >&5
17154 echo "${ECHO_T}no" >&6
17155 fi
17156
17157   test -n "$MSGMERGE" && break
17158 done
17159
17160   for ac_prog in xgettext
17161 do
17162   # Extract the first word of "$ac_prog", so it can be a program name with args.
17163 set dummy $ac_prog; ac_word=$2
17164 echo "$as_me:$LINENO: checking for $ac_word" >&5
17165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17166 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17167   echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169   if test -n "$XGETTEXT"; then
17170   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17171 else
17172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17174 do
17175   IFS=$as_save_IFS
17176   test -z "$as_dir" && as_dir=.
17177   for ac_exec_ext in '' $ac_executable_extensions; do
17178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17179     ac_cv_prog_XGETTEXT="$ac_prog"
17180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17181     break 2
17182   fi
17183 done
17184 done
17185
17186 fi
17187 fi
17188 XGETTEXT=$ac_cv_prog_XGETTEXT
17189 if test -n "$XGETTEXT"; then
17190   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17191 echo "${ECHO_T}$XGETTEXT" >&6
17192 else
17193   echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6
17195 fi
17196
17197   test -n "$XGETTEXT" && break
17198 done
17199
17200
17201   # Note: share/locale is always the default, independent of $datadir
17202   localedir='${prefix}/share/locale'
17203   if test x"$prefix" = x"NONE"; then
17204     exp_localedir="$ac_default_prefix/share/locale"
17205   else
17206     exp_localedir="$prefix/share/locale"
17207   fi
17208
17209
17210
17211 cat >>confdefs.h <<_ACEOF
17212 #define LOCALEDIR "$exp_localedir"
17213 _ACEOF
17214
17215
17216 fi
17217
17218 # Check for Tcl configuration script tclConfig.sh
17219 if test "$with_tcl" = yes; then
17220     for ac_prog in tclsh tcl
17221 do
17222   # Extract the first word of "$ac_prog", so it can be a program name with args.
17223 set dummy $ac_prog; ac_word=$2
17224 echo "$as_me:$LINENO: checking for $ac_word" >&5
17225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17226 if test "${ac_cv_path_TCLSH+set}" = set; then
17227   echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229   case $TCLSH in
17230   [\\/]* | ?:[\\/]*)
17231   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17232   ;;
17233   *)
17234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17235 for as_dir in $PATH
17236 do
17237   IFS=$as_save_IFS
17238   test -z "$as_dir" && as_dir=.
17239   for ac_exec_ext in '' $ac_executable_extensions; do
17240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17241     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17243     break 2
17244   fi
17245 done
17246 done
17247
17248   ;;
17249 esac
17250 fi
17251 TCLSH=$ac_cv_path_TCLSH
17252
17253 if test -n "$TCLSH"; then
17254   echo "$as_me:$LINENO: result: $TCLSH" >&5
17255 echo "${ECHO_T}$TCLSH" >&6
17256 else
17257   echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6
17259 fi
17260
17261   test -n "$TCLSH" && break
17262 done
17263
17264 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17265 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17266 # Let user override test
17267 if test -z "$TCL_CONFIG_SH"; then
17268     pgac_test_dirs="$with_tclconfig"
17269
17270     set X $pgac_test_dirs; shift
17271     if test $# -eq 0; then
17272         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17273 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17274    { (exit 1); exit 1; }; }
17275         set X `echo 'puts $auto_path' | $TCLSH`; shift
17276     fi
17277
17278     for pgac_dir do
17279         if test -r "$pgac_dir/tclConfig.sh"; then
17280             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17281             break
17282         fi
17283     done
17284 fi
17285
17286 if test -z "$TCL_CONFIG_SH"; then
17287     echo "$as_me:$LINENO: result: no" >&5
17288 echo "${ECHO_T}no" >&6
17289     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17290 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17291    { (exit 1); exit 1; }; }
17292 else
17293     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17294 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17295 fi
17296
17297
17298
17299     . "$TCL_CONFIG_SH"
17300 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17301 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17302 eval TCL_LIBS=\"$TCL_LIBS\"
17303 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17304 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17305
17306     fi
17307
17308 # Check for Tk configuration script tkConfig.sh
17309 if test "$with_tk" = yes; then
17310     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17311 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17312 # Let user override test
17313 if test -z "$TK_CONFIG_SH"; then
17314     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17315
17316     set X $pgac_test_dirs; shift
17317     if test $# -eq 0; then
17318         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17319 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17320    { (exit 1); exit 1; }; }
17321         set X `echo 'puts $auto_path' | $TCLSH`; shift
17322     fi
17323
17324     for pgac_dir do
17325         if test -r "$pgac_dir/tkConfig.sh"; then
17326             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17327             break
17328         fi
17329     done
17330 fi
17331
17332 if test -z "$TK_CONFIG_SH"; then
17333     echo "$as_me:$LINENO: result: no" >&5
17334 echo "${ECHO_T}no" >&6
17335     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17336 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17337    { (exit 1); exit 1; }; }
17338 else
17339     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17340 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17341 fi
17342
17343
17344
17345     . "$TK_CONFIG_SH"
17346 eval TK_LIBS=\"$TK_LIBS\"
17347 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17348 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17349
17350 fi
17351
17352
17353 #
17354 # Check for DocBook and tools
17355 #
17356 for ac_prog in onsgmls nsgmls
17357 do
17358   # Extract the first word of "$ac_prog", so it can be a program name with args.
17359 set dummy $ac_prog; ac_word=$2
17360 echo "$as_me:$LINENO: checking for $ac_word" >&5
17361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17362 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17363   echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365   if test -n "$NSGMLS"; then
17366   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17367 else
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17370 do
17371   IFS=$as_save_IFS
17372   test -z "$as_dir" && as_dir=.
17373   for ac_exec_ext in '' $ac_executable_extensions; do
17374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375     ac_cv_prog_NSGMLS="$ac_prog"
17376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17377     break 2
17378   fi
17379 done
17380 done
17381
17382 fi
17383 fi
17384 NSGMLS=$ac_cv_prog_NSGMLS
17385 if test -n "$NSGMLS"; then
17386   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17387 echo "${ECHO_T}$NSGMLS" >&6
17388 else
17389   echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6
17391 fi
17392
17393   test -n "$NSGMLS" && break
17394 done
17395
17396 for ac_prog in openjade jade
17397 do
17398   # Extract the first word of "$ac_prog", so it can be a program name with args.
17399 set dummy $ac_prog; ac_word=$2
17400 echo "$as_me:$LINENO: checking for $ac_word" >&5
17401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17402 if test "${ac_cv_prog_JADE+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   if test -n "$JADE"; then
17406   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17407 else
17408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17409 for as_dir in $PATH
17410 do
17411   IFS=$as_save_IFS
17412   test -z "$as_dir" && as_dir=.
17413   for ac_exec_ext in '' $ac_executable_extensions; do
17414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17415     ac_cv_prog_JADE="$ac_prog"
17416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17417     break 2
17418   fi
17419 done
17420 done
17421
17422 fi
17423 fi
17424 JADE=$ac_cv_prog_JADE
17425 if test -n "$JADE"; then
17426   echo "$as_me:$LINENO: result: $JADE" >&5
17427 echo "${ECHO_T}$JADE" >&6
17428 else
17429   echo "$as_me:$LINENO: result: no" >&5
17430 echo "${ECHO_T}no" >&6
17431 fi
17432
17433   test -n "$JADE" && break
17434 done
17435
17436
17437 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17438 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17439 if test "${pgac_cv_check_docbook+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   cat >conftest.sgml <<EOF
17443 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17444 <book>
17445  <title>test</title>
17446  <chapter>
17447   <title>random</title>
17448    <sect1>
17449     <title>testsect</title>
17450     <para>text</para>
17451   </sect1>
17452  </chapter>
17453 </book>
17454 EOF
17455
17456 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17457 if test $? -eq 0; then
17458   pgac_cv_check_docbook=yes
17459 else
17460   pgac_cv_check_docbook=no
17461 fi
17462 rm -f conftest.sgml
17463 fi
17464 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17465 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17466
17467 have_docbook=$pgac_cv_check_docbook
17468
17469
17470 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17471 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17472 if test "${pgac_cv_path_stylesheets+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   if test -n "$DOCBOOKSTYLE"; then
17476   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17477 else
17478   for pgac_prefix in /usr /usr/local /opt; do
17479     for pgac_infix in share lib; do
17480       for pgac_postfix in \
17481         sgml/stylesheets/nwalsh-modular \
17482         sgml/stylesheets/docbook \
17483         sgml/docbook/dsssl/modular \
17484         sgml/docbook/stylesheet/dsssl/modular \
17485         sgml/docbook/dsssl-stylesheets
17486       do
17487         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17488         if test -r "$pgac_candidate/html/docbook.dsl" \
17489            && test -r "$pgac_candidate/print/docbook.dsl"
17490         then
17491           pgac_cv_path_stylesheets=$pgac_candidate
17492           break 3
17493         fi
17494       done
17495     done
17496   done
17497 fi
17498 fi
17499
17500 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17501
17502 if test -n "$DOCBOOKSTYLE"; then
17503   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17504 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17505 else
17506   echo "$as_me:$LINENO: result: no" >&5
17507 echo "${ECHO_T}no" >&6
17508 fi
17509 if test -n "$DOCBOOKSTYLE"; then
17510   for ac_prog in collateindex.pl
17511 do
17512   # Extract the first word of "$ac_prog", so it can be a program name with args.
17513 set dummy $ac_prog; ac_word=$2
17514 echo "$as_me:$LINENO: checking for $ac_word" >&5
17515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17516 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519   case $COLLATEINDEX in
17520   [\\/]* | ?:[\\/]*)
17521   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17522   ;;
17523   *)
17524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17525 for as_dir in $DOCBOOKSTYLE/bin $PATH
17526 do
17527   IFS=$as_save_IFS
17528   test -z "$as_dir" && as_dir=.
17529   for ac_exec_ext in '' $ac_executable_extensions; do
17530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17531     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17533     break 2
17534   fi
17535 done
17536 done
17537
17538   ;;
17539 esac
17540 fi
17541 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17542
17543 if test -n "$COLLATEINDEX"; then
17544   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17545 echo "${ECHO_T}$COLLATEINDEX" >&6
17546 else
17547   echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6
17549 fi
17550
17551   test -n "$COLLATEINDEX" && break
17552 done
17553
17554 else
17555   for ac_prog in collateindex.pl
17556 do
17557   # Extract the first word of "$ac_prog", so it can be a program name with args.
17558 set dummy $ac_prog; ac_word=$2
17559 echo "$as_me:$LINENO: checking for $ac_word" >&5
17560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17561 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17562   echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17564   case $COLLATEINDEX in
17565   [\\/]* | ?:[\\/]*)
17566   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17567   ;;
17568   *)
17569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17570 for as_dir in $PATH
17571 do
17572   IFS=$as_save_IFS
17573   test -z "$as_dir" && as_dir=.
17574   for ac_exec_ext in '' $ac_executable_extensions; do
17575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17576     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17578     break 2
17579   fi
17580 done
17581 done
17582
17583   ;;
17584 esac
17585 fi
17586 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17587
17588 if test -n "$COLLATEINDEX"; then
17589   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17590 echo "${ECHO_T}$COLLATEINDEX" >&6
17591 else
17592   echo "$as_me:$LINENO: result: no" >&5
17593 echo "${ECHO_T}no" >&6
17594 fi
17595
17596   test -n "$COLLATEINDEX" && break
17597 done
17598
17599 fi
17600 for ac_prog in sgmlspl
17601 do
17602   # Extract the first word of "$ac_prog", so it can be a program name with args.
17603 set dummy $ac_prog; ac_word=$2
17604 echo "$as_me:$LINENO: checking for $ac_word" >&5
17605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17606 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17607   echo $ECHO_N "(cached) $ECHO_C" >&6
17608 else
17609   if test -n "$SGMLSPL"; then
17610   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17611 else
17612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17613 for as_dir in $PATH
17614 do
17615   IFS=$as_save_IFS
17616   test -z "$as_dir" && as_dir=.
17617   for ac_exec_ext in '' $ac_executable_extensions; do
17618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17619     ac_cv_prog_SGMLSPL="$ac_prog"
17620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17621     break 2
17622   fi
17623 done
17624 done
17625
17626 fi
17627 fi
17628 SGMLSPL=$ac_cv_prog_SGMLSPL
17629 if test -n "$SGMLSPL"; then
17630   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17631 echo "${ECHO_T}$SGMLSPL" >&6
17632 else
17633   echo "$as_me:$LINENO: result: no" >&5
17634 echo "${ECHO_T}no" >&6
17635 fi
17636
17637   test -n "$SGMLSPL" && break
17638 done
17639
17640
17641
17642 # prepare build tree if outside source tree
17643 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17644 # Note 2: /bin/pwd might be better than shell's built-in at getting
17645 #         a symlink-free name.
17646 if test "$no_create" != yes; then
17647   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17648     :
17649   else
17650     vpath_build=yes
17651
17652     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17653     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17654     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17655       || { { echo "$as_me:$LINENO: error: failed" >&5
17656 echo "$as_me: error: failed" >&2;}
17657    { (exit 1); exit 1; }; }
17658     echo "$as_me:$LINENO: result: done" >&5
17659 echo "${ECHO_T}done" >&6
17660   fi
17661 fi
17662
17663
17664 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17665
17666
17667 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}"
17668
17669
17670 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17671
17672
17673 cat >confcache <<\_ACEOF
17674 # This file is a shell script that caches the results of configure
17675 # tests run on this system so they can be shared between configure
17676 # scripts and configure runs, see configure's option --config-cache.
17677 # It is not useful on other systems.  If it contains results you don't
17678 # want to keep, you may remove or edit it.
17679 #
17680 # config.status only pays attention to the cache file if you give it
17681 # the --recheck option to rerun configure.
17682 #
17683 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17685 # following values.
17686
17687 _ACEOF
17688
17689 # The following way of writing the cache mishandles newlines in values,
17690 # but we know of no workaround that is simple, portable, and efficient.
17691 # So, don't put newlines in cache variables' values.
17692 # Ultrix sh set writes to stderr and can't be redirected directly,
17693 # and sets the high bit in the cache file unless we assign to the vars.
17694 {
17695   (set) 2>&1 |
17696     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17697     *ac_space=\ *)
17698       # `set' does not quote correctly, so add quotes (double-quote
17699       # substitution turns \\\\ into \\, and sed turns \\ into \).
17700       sed -n \
17701         "s/'/'\\\\''/g;
17702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17703       ;;
17704     *)
17705       # `set' quotes correctly as required by POSIX, so do not add quotes.
17706       sed -n \
17707         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17708       ;;
17709     esac;
17710 } |
17711   sed '
17712      t clear
17713      : clear
17714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17715      t end
17716      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17717      : end' >>confcache
17718 if cmp -s $cache_file confcache; then :; else
17719   if test -w $cache_file; then
17720     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17721     cat confcache >$cache_file
17722   else
17723     echo "not updating unwritable cache $cache_file"
17724   fi
17725 fi
17726 rm -f confcache
17727
17728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17729 # Let make expand exec_prefix.
17730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17731
17732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17734 # trailing colons and then remove the whole line if VPATH becomes empty
17735 # (actually we leave an empty line to preserve line numbers).
17736 if test "x$srcdir" = x.; then
17737   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17738 s/:*\$(srcdir):*/:/;
17739 s/:*\${srcdir}:*/:/;
17740 s/:*@srcdir@:*/:/;
17741 s/^\([^=]*=[    ]*\):*/\1/;
17742 s/:*$//;
17743 s/^[^=]*=[      ]*$//;
17744 }'
17745 fi
17746
17747 DEFS=-DHAVE_CONFIG_H
17748
17749
17750 : ${CONFIG_STATUS=./config.status}
17751 ac_clean_files_save=$ac_clean_files
17752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17755 cat >$CONFIG_STATUS <<_ACEOF
17756 #! $SHELL
17757 # Generated by $as_me.
17758 # Run this file to recreate the current configuration.
17759 # Compiler output produced by configure, useful for debugging
17760 # configure, is in config.log if it exists.
17761
17762 debug=false
17763 SHELL=\${CONFIG_SHELL-$SHELL}
17764 _ACEOF
17765
17766 cat >>$CONFIG_STATUS <<\_ACEOF
17767
17768 ## --------------------- ##
17769 ## M4sh Initialization.  ##
17770 ## --------------------- ##
17771
17772 # Be Bourne compatible
17773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17774   emulate sh
17775   NULLCMD=:
17776 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17777   set -o posix
17778 fi
17779
17780 # NLS nuisances.
17781 # Support unset when possible.
17782 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17783   as_unset=unset
17784 else
17785   as_unset=false
17786 fi
17787
17788 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17789     { $as_unset LANG || test "${LANG+set}" != set; } ||
17790       { LANG=C; export LANG; }
17791 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17792     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17793       { LC_ALL=C; export LC_ALL; }
17794 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17795     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17796       { LC_TIME=C; export LC_TIME; }
17797 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17798     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17799       { LC_CTYPE=C; export LC_CTYPE; }
17800 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17801     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17802       { LANGUAGE=C; export LANGUAGE; }
17803 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17804     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17805       { LC_COLLATE=C; export LC_COLLATE; }
17806 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17807     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17808       { LC_NUMERIC=C; export LC_NUMERIC; }
17809 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17810     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17811       { LC_MESSAGES=C; export LC_MESSAGES; }
17812
17813
17814 # Name of the executable.
17815 as_me=`(basename "$0") 2>/dev/null ||
17816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17817          X"$0" : 'X\(//\)$' \| \
17818          X"$0" : 'X\(/\)$' \| \
17819          .     : '\(.\)' 2>/dev/null ||
17820 echo X/"$0" |
17821     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17822           /^X\/\(\/\/\)$/{ s//\1/; q; }
17823           /^X\/\(\/\).*/{ s//\1/; q; }
17824           s/.*/./; q'`
17825
17826 # PATH needs CR, and LINENO needs CR and PATH.
17827 # Avoid depending upon Character Ranges.
17828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17831 as_cr_digits='0123456789'
17832 as_cr_alnum=$as_cr_Letters$as_cr_digits
17833
17834 # The user is always right.
17835 if test "${PATH_SEPARATOR+set}" != set; then
17836   echo "#! /bin/sh" >conftest.sh
17837   echo  "exit 0"   >>conftest.sh
17838   chmod +x conftest.sh
17839   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17840     PATH_SEPARATOR=';'
17841   else
17842     PATH_SEPARATOR=:
17843   fi
17844   rm -f conftest.sh
17845 fi
17846
17847
17848   as_lineno_1=$LINENO
17849   as_lineno_2=$LINENO
17850   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17851   test "x$as_lineno_1" != "x$as_lineno_2" &&
17852   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17853   # Find who we are.  Look in the path if we contain no path at all
17854   # relative or not.
17855   case $0 in
17856     *[\\/]* ) as_myself=$0 ;;
17857     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17858 for as_dir in $PATH
17859 do
17860   IFS=$as_save_IFS
17861   test -z "$as_dir" && as_dir=.
17862   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17863 done
17864
17865        ;;
17866   esac
17867   # We did not find ourselves, most probably we were run as `sh COMMAND'
17868   # in which case we are not to be found in the path.
17869   if test "x$as_myself" = x; then
17870     as_myself=$0
17871   fi
17872   if test ! -f "$as_myself"; then
17873     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17874 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17875    { (exit 1); exit 1; }; }
17876   fi
17877   case $CONFIG_SHELL in
17878   '')
17879     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17881 do
17882   IFS=$as_save_IFS
17883   test -z "$as_dir" && as_dir=.
17884   for as_base in sh bash ksh sh5; do
17885          case $as_dir in
17886          /*)
17887            if ("$as_dir/$as_base" -c '
17888   as_lineno_1=$LINENO
17889   as_lineno_2=$LINENO
17890   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17891   test "x$as_lineno_1" != "x$as_lineno_2" &&
17892   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17893              CONFIG_SHELL=$as_dir/$as_base
17894              export CONFIG_SHELL
17895              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17896            fi;;
17897          esac
17898        done
17899 done
17900 ;;
17901   esac
17902
17903   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17904   # uniformly replaced by the line number.  The first 'sed' inserts a
17905   # line-number line before each line; the second 'sed' does the real
17906   # work.  The second script uses 'N' to pair each line-number line
17907   # with the numbered line, and appends trailing '-' during
17908   # substitution so that $LINENO is not a special case at line end.
17909   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17910   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17911   sed '=' <$as_myself |
17912     sed '
17913       N
17914       s,$,-,
17915       : loop
17916       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17917       t loop
17918       s,-$,,
17919       s,^['$as_cr_digits']*\n,,
17920     ' >$as_me.lineno &&
17921   chmod +x $as_me.lineno ||
17922     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17923 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17924    { (exit 1); exit 1; }; }
17925
17926   # Don't try to exec as it changes $[0], causing all sort of problems
17927   # (the dirname of $[0] is not the place where we might find the
17928   # original and so on.  Autoconf is especially sensible to this).
17929   . ./$as_me.lineno
17930   # Exit status is that of the last command.
17931   exit
17932 }
17933
17934
17935 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17936   *c*,-n*) ECHO_N= ECHO_C='
17937 ' ECHO_T='      ' ;;
17938   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17939   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17940 esac
17941
17942 if expr a : '\(a\)' >/dev/null 2>&1; then
17943   as_expr=expr
17944 else
17945   as_expr=false
17946 fi
17947
17948 rm -f conf$$ conf$$.exe conf$$.file
17949 echo >conf$$.file
17950 if ln -s conf$$.file conf$$ 2>/dev/null; then
17951   # We could just check for DJGPP; but this test a) works b) is more generic
17952   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17953   if test -f conf$$.exe; then
17954     # Don't use ln at all; we don't have any links
17955     as_ln_s='cp -p'
17956   else
17957     as_ln_s='ln -s'
17958   fi
17959 elif ln conf$$.file conf$$ 2>/dev/null; then
17960   as_ln_s=ln
17961 else
17962   as_ln_s='cp -p'
17963 fi
17964 rm -f conf$$ conf$$.exe conf$$.file
17965
17966 as_executable_p="test -f"
17967
17968 # Sed expression to map a string onto a valid CPP name.
17969 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17970
17971 # Sed expression to map a string onto a valid variable name.
17972 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17973
17974
17975 # IFS
17976 # We need space, tab and new line, in precisely that order.
17977 as_nl='
17978 '
17979 IFS="   $as_nl"
17980
17981 # CDPATH.
17982 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17983
17984 exec 6>&1
17985
17986 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17987 # report actual input values of CONFIG_FILES etc. instead of their
17988 # values after options handling.  Logging --version etc. is OK.
17989 exec 5>>config.log
17990 {
17991   echo
17992   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17993 ## Running $as_me. ##
17994 _ASBOX
17995 } >&5
17996 cat >&5 <<_CSEOF
17997
17998 This file was extended by PostgreSQL $as_me 7.4beta2, which was
17999 generated by GNU Autoconf 2.53.  Invocation command line was
18000
18001   CONFIG_FILES    = $CONFIG_FILES
18002   CONFIG_HEADERS  = $CONFIG_HEADERS
18003   CONFIG_LINKS    = $CONFIG_LINKS
18004   CONFIG_COMMANDS = $CONFIG_COMMANDS
18005   $ $0 $@
18006
18007 _CSEOF
18008 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18009 echo >&5
18010 _ACEOF
18011
18012 # Files that config.status was made for.
18013 if test -n "$ac_config_files"; then
18014   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18015 fi
18016
18017 if test -n "$ac_config_headers"; then
18018   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18019 fi
18020
18021 if test -n "$ac_config_links"; then
18022   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18023 fi
18024
18025 if test -n "$ac_config_commands"; then
18026   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18027 fi
18028
18029 cat >>$CONFIG_STATUS <<\_ACEOF
18030
18031 ac_cs_usage="\
18032 \`$as_me' instantiates files from templates according to the
18033 current configuration.
18034
18035 Usage: $0 [OPTIONS] [FILE]...
18036
18037   -h, --help       print this help, then exit
18038   -V, --version    print version number, then exit
18039   -d, --debug      don't remove temporary files
18040       --recheck    update $as_me by reconfiguring in the same conditions
18041   --file=FILE[:TEMPLATE]
18042                    instantiate the configuration file FILE
18043   --header=FILE[:TEMPLATE]
18044                    instantiate the configuration header FILE
18045
18046 Configuration files:
18047 $config_files
18048
18049 Configuration headers:
18050 $config_headers
18051
18052 Configuration links:
18053 $config_links
18054
18055 Report bugs to <bug-autoconf@gnu.org>."
18056 _ACEOF
18057
18058 cat >>$CONFIG_STATUS <<_ACEOF
18059 ac_cs_version="\\
18060 PostgreSQL config.status 7.4beta2
18061 configured by $0, generated by GNU Autoconf 2.53,
18062   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18063
18064 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18065 Free Software Foundation, Inc.
18066 This config.status script is free software; the Free Software Foundation
18067 gives unlimited permission to copy, distribute and modify it."
18068 srcdir=$srcdir
18069 _ACEOF
18070
18071 cat >>$CONFIG_STATUS <<\_ACEOF
18072 # If no file are specified by the user, then we need to provide default
18073 # value.  By we need to know if files were specified by the user.
18074 ac_need_defaults=:
18075 while test $# != 0
18076 do
18077   case $1 in
18078   --*=*)
18079     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18080     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18081     shift
18082     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18083     shift
18084     ;;
18085   -*);;
18086   *) # This is not an option, so the user has probably given explicit
18087      # arguments.
18088      ac_need_defaults=false;;
18089   esac
18090
18091   case $1 in
18092   # Handling of the options.
18093 _ACEOF
18094 cat >>$CONFIG_STATUS <<_ACEOF
18095   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18096     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18097     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18098 _ACEOF
18099 cat >>$CONFIG_STATUS <<\_ACEOF
18100   --version | --vers* | -V )
18101     echo "$ac_cs_version"; exit 0 ;;
18102   --he | --h)
18103     # Conflict between --help and --header
18104     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18105 Try \`$0 --help' for more information." >&5
18106 echo "$as_me: error: ambiguous option: $1
18107 Try \`$0 --help' for more information." >&2;}
18108    { (exit 1); exit 1; }; };;
18109   --help | --hel | -h )
18110     echo "$ac_cs_usage"; exit 0 ;;
18111   --debug | --d* | -d )
18112     debug=: ;;
18113   --file | --fil | --fi | --f )
18114     shift
18115     CONFIG_FILES="$CONFIG_FILES $1"
18116     ac_need_defaults=false;;
18117   --header | --heade | --head | --hea )
18118     shift
18119     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18120     ac_need_defaults=false;;
18121
18122   # This is an error.
18123   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18124 Try \`$0 --help' for more information." >&5
18125 echo "$as_me: error: unrecognized option: $1
18126 Try \`$0 --help' for more information." >&2;}
18127    { (exit 1); exit 1; }; } ;;
18128
18129   *) ac_config_targets="$ac_config_targets $1" ;;
18130
18131   esac
18132   shift
18133 done
18134
18135 _ACEOF
18136
18137
18138
18139
18140
18141 cat >>$CONFIG_STATUS <<\_ACEOF
18142 for ac_config_target in $ac_config_targets
18143 do
18144   case "$ac_config_target" in
18145   # Handling of arguments.
18146   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18147   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18148   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18149   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18150   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18151   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18152   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18153   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18154   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18155   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18156   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18157 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18158    { (exit 1); exit 1; }; };;
18159   esac
18160 done
18161
18162 # If the user did not use the arguments to specify the items to instantiate,
18163 # then the envvar interface is used.  Set only those that are not.
18164 # We use the long form for the default assignment because of an extremely
18165 # bizarre bug on SunOS 4.1.3.
18166 if $ac_need_defaults; then
18167   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18168   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18169   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18170 fi
18171
18172 # Create a temporary directory, and hook for its removal unless debugging.
18173 $debug ||
18174 {
18175   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18176   trap '{ (exit 1); exit 1; }' 1 2 13 15
18177 }
18178
18179 # Create a (secure) tmp directory for tmp files.
18180 : ${TMPDIR=/tmp}
18181 {
18182   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18183   test -n "$tmp" && test -d "$tmp"
18184 }  ||
18185 {
18186   tmp=$TMPDIR/cs$$-$RANDOM
18187   (umask 077 && mkdir $tmp)
18188 } ||
18189 {
18190    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18191    { (exit 1); exit 1; }
18192 }
18193
18194 _ACEOF
18195
18196 cat >>$CONFIG_STATUS <<_ACEOF
18197
18198 #
18199 # CONFIG_FILES section.
18200 #
18201
18202 # No need to generate the scripts if there are no CONFIG_FILES.
18203 # This happens for instance when ./config.status config.h
18204 if test -n "\$CONFIG_FILES"; then
18205   # Protect against being on the right side of a sed subst in config.status.
18206   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18207    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18208 s,@SHELL@,$SHELL,;t t
18209 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18210 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18211 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18212 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18213 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18214 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18215 s,@exec_prefix@,$exec_prefix,;t t
18216 s,@prefix@,$prefix,;t t
18217 s,@program_transform_name@,$program_transform_name,;t t
18218 s,@bindir@,$bindir,;t t
18219 s,@sbindir@,$sbindir,;t t
18220 s,@libexecdir@,$libexecdir,;t t
18221 s,@datadir@,$datadir,;t t
18222 s,@sysconfdir@,$sysconfdir,;t t
18223 s,@sharedstatedir@,$sharedstatedir,;t t
18224 s,@localstatedir@,$localstatedir,;t t
18225 s,@libdir@,$libdir,;t t
18226 s,@includedir@,$includedir,;t t
18227 s,@oldincludedir@,$oldincludedir,;t t
18228 s,@infodir@,$infodir,;t t
18229 s,@mandir@,$mandir,;t t
18230 s,@build_alias@,$build_alias,;t t
18231 s,@host_alias@,$host_alias,;t t
18232 s,@target_alias@,$target_alias,;t t
18233 s,@DEFS@,$DEFS,;t t
18234 s,@ECHO_C@,$ECHO_C,;t t
18235 s,@ECHO_N@,$ECHO_N,;t t
18236 s,@ECHO_T@,$ECHO_T,;t t
18237 s,@LIBS@,$LIBS,;t t
18238 s,@docdir@,$docdir,;t t
18239 s,@configure_args@,$configure_args,;t t
18240 s,@build@,$build,;t t
18241 s,@build_cpu@,$build_cpu,;t t
18242 s,@build_vendor@,$build_vendor,;t t
18243 s,@build_os@,$build_os,;t t
18244 s,@host@,$host,;t t
18245 s,@host_cpu@,$host_cpu,;t t
18246 s,@host_vendor@,$host_vendor,;t t
18247 s,@host_os@,$host_os,;t t
18248 s,@PORTNAME@,$PORTNAME,;t t
18249 s,@TAS@,$TAS,;t t
18250 s,@enable_nls@,$enable_nls,;t t
18251 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18252 s,@default_port@,$default_port,;t t
18253 s,@enable_shared@,$enable_shared,;t t
18254 s,@enable_rpath@,$enable_rpath,;t t
18255 s,@enable_debug@,$enable_debug,;t t
18256 s,@CC@,$CC,;t t
18257 s,@CFLAGS@,$CFLAGS,;t t
18258 s,@LDFLAGS@,$LDFLAGS,;t t
18259 s,@CPPFLAGS@,$CPPFLAGS,;t t
18260 s,@ac_ct_CC@,$ac_ct_CC,;t t
18261 s,@EXEEXT@,$EXEEXT,;t t
18262 s,@OBJEXT@,$OBJEXT,;t t
18263 s,@CPP@,$CPP,;t t
18264 s,@GCC@,$GCC,;t t
18265 s,@autodepend@,$autodepend,;t t
18266 s,@INCLUDES@,$INCLUDES,;t t
18267 s,@enable_thread_safety@,$enable_thread_safety,;t t
18268 s,@with_tcl@,$with_tcl,;t t
18269 s,@with_tk@,$with_tk,;t t
18270 s,@with_perl@,$with_perl,;t t
18271 s,@with_python@,$with_python,;t t
18272 s,@ANT@,$ANT,;t t
18273 s,@with_java@,$with_java,;t t
18274 s,@with_krb4@,$with_krb4,;t t
18275 s,@with_krb5@,$with_krb5,;t t
18276 s,@krb_srvtab@,$krb_srvtab,;t t
18277 s,@with_pam@,$with_pam,;t t
18278 s,@with_rendezvous@,$with_rendezvous,;t t
18279 s,@with_openssl@,$with_openssl,;t t
18280 s,@ELF_SYS@,$ELF_SYS,;t t
18281 s,@AWK@,$AWK,;t t
18282 s,@FLEX@,$FLEX,;t t
18283 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18284 s,@LN_S@,$LN_S,;t t
18285 s,@LD@,$LD,;t t
18286 s,@with_gnu_ld@,$with_gnu_ld,;t t
18287 s,@ld_R_works@,$ld_R_works,;t t
18288 s,@RANLIB@,$RANLIB,;t t
18289 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18290 s,@LORDER@,$LORDER,;t t
18291 s,@TAR@,$TAR,;t t
18292 s,@STRIP@,$STRIP,;t t
18293 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18294 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18295 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18296 s,@YACC@,$YACC,;t t
18297 s,@YFLAGS@,$YFLAGS,;t t
18298 s,@PERL@,$PERL,;t t
18299 s,@perl_archlibexp@,$perl_archlibexp,;t t
18300 s,@perl_privlibexp@,$perl_privlibexp,;t t
18301 s,@perl_useshrplib@,$perl_useshrplib,;t t
18302 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18303 s,@PYTHON@,$PYTHON,;t t
18304 s,@python_prefix@,$python_prefix,;t t
18305 s,@python_execprefix@,$python_execprefix,;t t
18306 s,@python_configdir@,$python_configdir,;t t
18307 s,@python_includespec@,$python_includespec,;t t
18308 s,@python_libspec@,$python_libspec,;t t
18309 s,@LIBOBJS@,$LIBOBJS,;t t
18310 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18311 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18312 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18313 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18314 s,@MSGFMT@,$MSGFMT,;t t
18315 s,@MSGMERGE@,$MSGMERGE,;t t
18316 s,@XGETTEXT@,$XGETTEXT,;t t
18317 s,@localedir@,$localedir,;t t
18318 s,@TCLSH@,$TCLSH,;t t
18319 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18320 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18321 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18322 s,@TCL_LIBS@,$TCL_LIBS,;t t
18323 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18324 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18325 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18326 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18327 s,@TK_LIBS@,$TK_LIBS,;t t
18328 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18329 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18330 s,@NSGMLS@,$NSGMLS,;t t
18331 s,@JADE@,$JADE,;t t
18332 s,@have_docbook@,$have_docbook,;t t
18333 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18334 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18335 s,@SGMLSPL@,$SGMLSPL,;t t
18336 s,@vpath_build@,$vpath_build,;t t
18337 CEOF
18338
18339 _ACEOF
18340
18341   cat >>$CONFIG_STATUS <<\_ACEOF
18342   # Split the substitutions into bite-sized pieces for seds with
18343   # small command number limits, like on Digital OSF/1 and HP-UX.
18344   ac_max_sed_lines=48
18345   ac_sed_frag=1 # Number of current file.
18346   ac_beg=1 # First line for current file.
18347   ac_end=$ac_max_sed_lines # Line after last line for current file.
18348   ac_more_lines=:
18349   ac_sed_cmds=
18350   while $ac_more_lines; do
18351     if test $ac_beg -gt 1; then
18352       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18353     else
18354       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18355     fi
18356     if test ! -s $tmp/subs.frag; then
18357       ac_more_lines=false
18358     else
18359       # The purpose of the label and of the branching condition is to
18360       # speed up the sed processing (if there are no `@' at all, there
18361       # is no need to browse any of the substitutions).
18362       # These are the two extra sed commands mentioned above.
18363       (echo ':t
18364   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18365       if test -z "$ac_sed_cmds"; then
18366         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18367       else
18368         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18369       fi
18370       ac_sed_frag=`expr $ac_sed_frag + 1`
18371       ac_beg=$ac_end
18372       ac_end=`expr $ac_end + $ac_max_sed_lines`
18373     fi
18374   done
18375   if test -z "$ac_sed_cmds"; then
18376     ac_sed_cmds=cat
18377   fi
18378 fi # test -n "$CONFIG_FILES"
18379
18380 _ACEOF
18381 cat >>$CONFIG_STATUS <<\_ACEOF
18382 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18383   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18384   case $ac_file in
18385   - | *:- | *:-:* ) # input from stdin
18386         cat >$tmp/stdin
18387         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18388         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18389   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18390         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18391   * )   ac_file_in=$ac_file.in ;;
18392   esac
18393
18394   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18395   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397          X"$ac_file" : 'X\(//\)[^/]' \| \
18398          X"$ac_file" : 'X\(//\)$' \| \
18399          X"$ac_file" : 'X\(/\)' \| \
18400          .     : '\(.\)' 2>/dev/null ||
18401 echo X"$ac_file" |
18402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18404           /^X\(\/\/\)$/{ s//\1/; q; }
18405           /^X\(\/\).*/{ s//\1/; q; }
18406           s/.*/./; q'`
18407   { case "$ac_dir" in
18408   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18409   *)                      as_incr_dir=.;;
18410 esac
18411 as_dummy="$ac_dir"
18412 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18413   case $as_mkdir_dir in
18414     # Skip DOS drivespec
18415     ?:) as_incr_dir=$as_mkdir_dir ;;
18416     *)
18417       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18418       test -d "$as_incr_dir" ||
18419         mkdir "$as_incr_dir" ||
18420         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18421 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18422    { (exit 1); exit 1; }; }
18423     ;;
18424   esac
18425 done; }
18426
18427   ac_builddir=.
18428
18429 if test "$ac_dir" != .; then
18430   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18431   # A "../" for each directory in $ac_dir_suffix.
18432   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18433 else
18434   ac_dir_suffix= ac_top_builddir=
18435 fi
18436
18437 case $srcdir in
18438   .)  # No --srcdir option.  We are building in place.
18439     ac_srcdir=.
18440     if test -z "$ac_top_builddir"; then
18441        ac_top_srcdir=.
18442     else
18443        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18444     fi ;;
18445   [\\/]* | ?:[\\/]* )  # Absolute path.
18446     ac_srcdir=$srcdir$ac_dir_suffix;
18447     ac_top_srcdir=$srcdir ;;
18448   *) # Relative path.
18449     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18450     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18451 esac
18452 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18453 # absolute.
18454 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18455 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18456 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18457 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18458
18459
18460
18461   if test x"$ac_file" != x-; then
18462     { echo "$as_me:$LINENO: creating $ac_file" >&5
18463 echo "$as_me: creating $ac_file" >&6;}
18464     rm -f "$ac_file"
18465   fi
18466   # Let's still pretend it is `configure' which instantiates (i.e., don't
18467   # use $as_me), people would be surprised to read:
18468   #    /* config.h.  Generated by config.status.  */
18469   if test x"$ac_file" = x-; then
18470     configure_input=
18471   else
18472     configure_input="$ac_file.  "
18473   fi
18474   configure_input=$configure_input"Generated from `echo $ac_file_in |
18475                                      sed 's,.*/,,'` by configure."
18476
18477   # First look for the input files in the build tree, otherwise in the
18478   # src tree.
18479   ac_file_inputs=`IFS=:
18480     for f in $ac_file_in; do
18481       case $f in
18482       -) echo $tmp/stdin ;;
18483       [\\/$]*)
18484          # Absolute (can't be DOS-style, as IFS=:)
18485          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18486 echo "$as_me: error: cannot find input file: $f" >&2;}
18487    { (exit 1); exit 1; }; }
18488          echo $f;;
18489       *) # Relative
18490          if test -f "$f"; then
18491            # Build tree
18492            echo $f
18493          elif test -f "$srcdir/$f"; then
18494            # Source tree
18495            echo $srcdir/$f
18496          else
18497            # /dev/null tree
18498            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18499 echo "$as_me: error: cannot find input file: $f" >&2;}
18500    { (exit 1); exit 1; }; }
18501          fi;;
18502       esac
18503     done` || { (exit 1); exit 1; }
18504 _ACEOF
18505 cat >>$CONFIG_STATUS <<_ACEOF
18506   sed "$ac_vpsub
18507 $extrasub
18508 _ACEOF
18509 cat >>$CONFIG_STATUS <<\_ACEOF
18510 :t
18511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18512 s,@configure_input@,$configure_input,;t t
18513 s,@srcdir@,$ac_srcdir,;t t
18514 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18515 s,@top_srcdir@,$ac_top_srcdir,;t t
18516 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18517 s,@builddir@,$ac_builddir,;t t
18518 s,@abs_builddir@,$ac_abs_builddir,;t t
18519 s,@top_builddir@,$ac_top_builddir,;t t
18520 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18521 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18522   rm -f $tmp/stdin
18523   if test x"$ac_file" != x-; then
18524     mv $tmp/out $ac_file
18525   else
18526     cat $tmp/out
18527     rm -f $tmp/out
18528   fi
18529
18530 done
18531 _ACEOF
18532 cat >>$CONFIG_STATUS <<\_ACEOF
18533
18534 #
18535 # CONFIG_HEADER section.
18536 #
18537
18538 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18539 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18540 #
18541 # ac_d sets the value in "#define NAME VALUE" lines.
18542 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18543 ac_dB='[        ].*$,\1#\2'
18544 ac_dC=' '
18545 ac_dD=',;t'
18546 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18547 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18548 ac_uB='$,\1#\2define\3'
18549 ac_uC=' '
18550 ac_uD=',;t'
18551
18552 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18553   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18554   case $ac_file in
18555   - | *:- | *:-:* ) # input from stdin
18556         cat >$tmp/stdin
18557         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18558         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18559   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18561   * )   ac_file_in=$ac_file.in ;;
18562   esac
18563
18564   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18565 echo "$as_me: creating $ac_file" >&6;}
18566
18567   # First look for the input files in the build tree, otherwise in the
18568   # src tree.
18569   ac_file_inputs=`IFS=:
18570     for f in $ac_file_in; do
18571       case $f in
18572       -) echo $tmp/stdin ;;
18573       [\\/$]*)
18574          # Absolute (can't be DOS-style, as IFS=:)
18575          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18576 echo "$as_me: error: cannot find input file: $f" >&2;}
18577    { (exit 1); exit 1; }; }
18578          echo $f;;
18579       *) # Relative
18580          if test -f "$f"; then
18581            # Build tree
18582            echo $f
18583          elif test -f "$srcdir/$f"; then
18584            # Source tree
18585            echo $srcdir/$f
18586          else
18587            # /dev/null tree
18588            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18589 echo "$as_me: error: cannot find input file: $f" >&2;}
18590    { (exit 1); exit 1; }; }
18591          fi;;
18592       esac
18593     done` || { (exit 1); exit 1; }
18594   # Remove the trailing spaces.
18595   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18596
18597 _ACEOF
18598
18599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18600 # `conftest.undefs', that substitutes the proper values into
18601 # config.h.in to produce config.h.  The first handles `#define'
18602 # templates, and the second `#undef' templates.
18603 # And first: Protect against being on the right side of a sed subst in
18604 # config.status.  Protect against being in an unquoted here document
18605 # in config.status.
18606 rm -f conftest.defines conftest.undefs
18607 # Using a here document instead of a string reduces the quoting nightmare.
18608 # Putting comments in sed scripts is not portable.
18609 #
18610 # `end' is used to avoid that the second main sed command (meant for
18611 # 0-ary CPP macros) applies to n-ary macro definitions.
18612 # See the Autoconf documentation for `clear'.
18613 cat >confdef2sed.sed <<\_ACEOF
18614 s/[\\&,]/\\&/g
18615 s,[\\$`],\\&,g
18616 t clear
18617 : clear
18618 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18619 t end
18620 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18621 : end
18622 _ACEOF
18623 # If some macros were called several times there might be several times
18624 # the same #defines, which is useless.  Nevertheless, we may not want to
18625 # sort them, since we want the *last* AC-DEFINE to be honored.
18626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18628 rm -f confdef2sed.sed
18629
18630 # This sed command replaces #undef with comments.  This is necessary, for
18631 # example, in the case of _POSIX_SOURCE, which is predefined and required
18632 # on some systems where configure will not decide to define it.
18633 cat >>conftest.undefs <<\_ACEOF
18634 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18635 _ACEOF
18636
18637 # Break up conftest.defines because some shells have a limit on the size
18638 # of here documents, and old seds have small limits too (100 cmds).
18639 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18640 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18641 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18642 echo '  :' >>$CONFIG_STATUS
18643 rm -f conftest.tail
18644 while grep . conftest.defines >/dev/null
18645 do
18646   # Write a limited-size here document to $tmp/defines.sed.
18647   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18648   # Speed up: don't consider the non `#define' lines.
18649   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18650   # Work around the forget-to-reset-the-flag bug.
18651   echo 't clr' >>$CONFIG_STATUS
18652   echo ': clr' >>$CONFIG_STATUS
18653   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18654   echo 'CEOF
18655   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18656   rm -f $tmp/in
18657   mv $tmp/out $tmp/in
18658 ' >>$CONFIG_STATUS
18659   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18660   rm -f conftest.defines
18661   mv conftest.tail conftest.defines
18662 done
18663 rm -f conftest.defines
18664 echo '  fi # egrep' >>$CONFIG_STATUS
18665 echo >>$CONFIG_STATUS
18666
18667 # Break up conftest.undefs because some shells have a limit on the size
18668 # of here documents, and old seds have small limits too (100 cmds).
18669 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18670 rm -f conftest.tail
18671 while grep . conftest.undefs >/dev/null
18672 do
18673   # Write a limited-size here document to $tmp/undefs.sed.
18674   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18675   # Speed up: don't consider the non `#undef'
18676   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18677   # Work around the forget-to-reset-the-flag bug.
18678   echo 't clr' >>$CONFIG_STATUS
18679   echo ': clr' >>$CONFIG_STATUS
18680   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18681   echo 'CEOF
18682   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18683   rm -f $tmp/in
18684   mv $tmp/out $tmp/in
18685 ' >>$CONFIG_STATUS
18686   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18687   rm -f conftest.undefs
18688   mv conftest.tail conftest.undefs
18689 done
18690 rm -f conftest.undefs
18691
18692 cat >>$CONFIG_STATUS <<\_ACEOF
18693   # Let's still pretend it is `configure' which instantiates (i.e., don't
18694   # use $as_me), people would be surprised to read:
18695   #    /* config.h.  Generated by config.status.  */
18696   if test x"$ac_file" = x-; then
18697     echo "/* Generated by configure.  */" >$tmp/config.h
18698   else
18699     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18700   fi
18701   cat $tmp/in >>$tmp/config.h
18702   rm -f $tmp/in
18703   if test x"$ac_file" != x-; then
18704     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18705       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18706 echo "$as_me: $ac_file is unchanged" >&6;}
18707     else
18708       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18710          X"$ac_file" : 'X\(//\)[^/]' \| \
18711          X"$ac_file" : 'X\(//\)$' \| \
18712          X"$ac_file" : 'X\(/\)' \| \
18713          .     : '\(.\)' 2>/dev/null ||
18714 echo X"$ac_file" |
18715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18717           /^X\(\/\/\)$/{ s//\1/; q; }
18718           /^X\(\/\).*/{ s//\1/; q; }
18719           s/.*/./; q'`
18720       { case "$ac_dir" in
18721   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18722   *)                      as_incr_dir=.;;
18723 esac
18724 as_dummy="$ac_dir"
18725 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18726   case $as_mkdir_dir in
18727     # Skip DOS drivespec
18728     ?:) as_incr_dir=$as_mkdir_dir ;;
18729     *)
18730       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18731       test -d "$as_incr_dir" ||
18732         mkdir "$as_incr_dir" ||
18733         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18734 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18735    { (exit 1); exit 1; }; }
18736     ;;
18737   esac
18738 done; }
18739
18740       rm -f $ac_file
18741       mv $tmp/config.h $ac_file
18742     fi
18743   else
18744     cat $tmp/config.h
18745     rm -f $tmp/config.h
18746   fi
18747   # Run the commands associated with the file.
18748   case $ac_file in
18749     src/include/pg_config.h )
18750 # Update timestamp for pg_config.h (see Makefile.global)
18751 echo >src/include/stamp-h
18752  ;;
18753   esac
18754 done
18755 _ACEOF
18756 cat >>$CONFIG_STATUS <<\_ACEOF
18757
18758 #
18759 # CONFIG_LINKS section.
18760 #
18761
18762 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18763   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18764   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18765
18766   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18767 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18768
18769   if test ! -r $srcdir/$ac_source; then
18770     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18771 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18772    { (exit 1); exit 1; }; }
18773   fi
18774   rm -f $ac_dest
18775
18776   # Make relative symlinks.
18777   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18778 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18779          X"$ac_dest" : 'X\(//\)[^/]' \| \
18780          X"$ac_dest" : 'X\(//\)$' \| \
18781          X"$ac_dest" : 'X\(/\)' \| \
18782          .     : '\(.\)' 2>/dev/null ||
18783 echo X"$ac_dest" |
18784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18786           /^X\(\/\/\)$/{ s//\1/; q; }
18787           /^X\(\/\).*/{ s//\1/; q; }
18788           s/.*/./; q'`
18789   { case "$ac_dest_dir" in
18790   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18791   *)                      as_incr_dir=.;;
18792 esac
18793 as_dummy="$ac_dest_dir"
18794 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18795   case $as_mkdir_dir in
18796     # Skip DOS drivespec
18797     ?:) as_incr_dir=$as_mkdir_dir ;;
18798     *)
18799       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18800       test -d "$as_incr_dir" ||
18801         mkdir "$as_incr_dir" ||
18802         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18803 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18804    { (exit 1); exit 1; }; }
18805     ;;
18806   esac
18807 done; }
18808
18809   ac_builddir=.
18810
18811 if test "$ac_dest_dir" != .; then
18812   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18813   # A "../" for each directory in $ac_dir_suffix.
18814   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18815 else
18816   ac_dir_suffix= ac_top_builddir=
18817 fi
18818
18819 case $srcdir in
18820   .)  # No --srcdir option.  We are building in place.
18821     ac_srcdir=.
18822     if test -z "$ac_top_builddir"; then
18823        ac_top_srcdir=.
18824     else
18825        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18826     fi ;;
18827   [\\/]* | ?:[\\/]* )  # Absolute path.
18828     ac_srcdir=$srcdir$ac_dir_suffix;
18829     ac_top_srcdir=$srcdir ;;
18830   *) # Relative path.
18831     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18832     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18833 esac
18834 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18835 # absolute.
18836 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18837 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18838 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18839 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18840
18841
18842   case $srcdir in
18843   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18844       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18845   esac
18846
18847   # Make a symlink if possible; otherwise try a hard link.
18848   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18849     ln $srcdir/$ac_source $ac_dest ||
18850     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18851 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18852    { (exit 1); exit 1; }; }
18853 done
18854 _ACEOF
18855
18856 cat >>$CONFIG_STATUS <<\_ACEOF
18857
18858 { (exit 0); exit 0; }
18859 _ACEOF
18860 chmod +x $CONFIG_STATUS
18861 ac_clean_files=$ac_clean_files_save
18862
18863
18864 # configure is writing to config.log, and then calls config.status.
18865 # config.status does its own redirection, appending to config.log.
18866 # Unfortunately, on DOS this fails, as config.log is still kept open
18867 # by configure, so config.status won't be able to write to it; its
18868 # output is simply discarded.  So we exec the FD to /dev/null,
18869 # effectively closing config.log, so it can be properly (re)opened and
18870 # appended to by config.status.  When coming back to configure, we
18871 # need to make the FD available again.
18872 if test "$no_create" != yes; then
18873   ac_cs_success=:
18874   exec 5>/dev/null
18875   $SHELL $CONFIG_STATUS || ac_cs_success=false
18876   exec 5>>config.log
18877   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18878   # would make configure fail if this is the last instruction.
18879   $ac_cs_success || { (exit 1); exit 1; }
18880 fi
18881