]> granicus.if.org Git - postgresql/blob - configure
Update thread test to only test for 'localhost' and local machine name.
[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.5devel.
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.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
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 infodir='${prefix}/info'
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   -infodir | --infodir | --infodi | --infod | --info | --inf)
440     ac_prev=infodir ;;
441   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442     infodir=$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 infodir 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.5devel 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.5devel:";;
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   --disable-spinlocks     do not use spinlocks
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --enable-thread-safety  make client libraries thread-safe
849   --disable-largefile     omit support for large files
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854
855   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
856   --without-docdir        do not install the documentation
857   --with-includes=DIRS    look for additional header files in DIRS
858   --with-libraries=DIRS   look for additional libraries in DIRS
859   --with-libs=DIRS        alternative spelling of --with-libraries
860   --with-pgport=PORTNUM   change default port number 5432
861   --with-tcl              build Tcl and Tk interfaces
862   --without-tk            do not build Tk interfaces if Tcl is enabled
863   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
864   --with-tkconfig=DIR     tkConfig.sh is in DIR
865   --with-perl             build Perl modules (PL/Perl)
866   --with-python           build Python modules (PL/Python)
867   --with-krb4             build with Kerberos 4 support
868   --with-krb5             build with Kerberos 5 support
869   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]
870   --with-pam              build with PAM support
871   --with-rendezvous       build with Rendezvous support
872   --with-openssl          build with OpenSSL support
873   --without-readline      do not use Readline
874   --without-zlib          do not use Zlib
875   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CPP         C preprocessor
885   DOCBOOKSTYLE
886               location of DocBook stylesheets
887
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
890
891 Report bugs to <pgsql-bugs@postgresql.org>.
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896   # If there are subdirs, report their specific --help.
897   ac_popdir=`pwd`
898   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899     test -d $ac_dir || continue
900     ac_builddir=.
901
902 if test "$ac_dir" != .; then
903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904   # A "../" for each directory in $ac_dir_suffix.
905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907   ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911   .)  # No --srcdir option.  We are building in place.
912     ac_srcdir=.
913     if test -z "$ac_top_builddir"; then
914        ac_top_srcdir=.
915     else
916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917     fi ;;
918   [\\/]* | ?:[\\/]* )  # Absolute path.
919     ac_srcdir=$srcdir$ac_dir_suffix;
920     ac_top_srcdir=$srcdir ;;
921   *) # Relative path.
922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 # absolute.
927 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
928 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
929 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
930 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931
932     cd $ac_dir
933     # Check for guested configure; otherwise get Cygnus style configure.
934     if test -f $ac_srcdir/configure.gnu; then
935       echo
936       $SHELL $ac_srcdir/configure.gnu  --help=recursive
937     elif test -f $ac_srcdir/configure; then
938       echo
939       $SHELL $ac_srcdir/configure  --help=recursive
940     elif test -f $ac_srcdir/configure.ac ||
941            test -f $ac_srcdir/configure.in; then
942       echo
943       $ac_configure --help
944     else
945       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
946     fi
947     cd $ac_popdir
948   done
949 fi
950
951 test -n "$ac_init_help" && exit 0
952 if $ac_init_version; then
953   cat <<\_ACEOF
954 PostgreSQL configure 7.5devel
955 generated by GNU Autoconf 2.53
956
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961
962 Copyright 2003 PostgreSQL Global Development Group
963 _ACEOF
964   exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by PostgreSQL $as_me 7.5devel, which was
972 generated by GNU Autoconf 2.53.  Invocation command line was
973
974   $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
991
992 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
993 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
996 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
997 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
998 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005   IFS=$as_save_IFS
1006   test -z "$as_dir" && as_dir=.
1007   echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1025 ac_configure_args=
1026 ac_sep=
1027 for ac_arg
1028 do
1029   case $ac_arg in
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n ) continue ;;
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     continue ;;
1035   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037   esac
1038   case " $ac_configure_args " in
1039     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1040     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041        ac_sep=" " ;;
1042   esac
1043   # Get rid of the leading space.
1044 done
1045
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log.  We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052   # Save into config.log some information that might help in debugging.
1053   {
1054     echo
1055     cat <<\_ASBOX
1056 ## ---------------- ##
1057 ## Cache variables. ##
1058 ## ---------------- ##
1059 _ASBOX
1060     echo
1061     # The following way of writing the cache mishandles newlines in values,
1062 {
1063   (set) 2>&1 |
1064     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065     *ac_space=\ *)
1066       sed -n \
1067         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069       ;;
1070     *)
1071       sed -n \
1072         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073       ;;
1074     esac;
1075 }
1076     echo
1077     if test -s confdefs.h; then
1078       cat <<\_ASBOX
1079 ## ----------- ##
1080 ## confdefs.h. ##
1081 ## ----------- ##
1082 _ASBOX
1083       echo
1084       sed "/^$/d" confdefs.h
1085       echo
1086     fi
1087     test "$ac_signal" != 0 &&
1088       echo "$as_me: caught signal $ac_signal"
1089     echo "$as_me: exit $exit_status"
1090   } >&5
1091   rm -f core core.* *.core &&
1092   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093     exit $exit_status
1094      ' 0
1095 for ac_signal in 1 2 13 15; do
1096   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1097 done
1098 ac_signal=0
1099
1100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1101 rm -rf conftest* confdefs.h
1102 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 echo >confdefs.h
1104
1105 # Predefined preprocessor variables.
1106
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_NAME "$PACKAGE_NAME"
1109 _ACEOF
1110
1111
1112 cat >>confdefs.h <<_ACEOF
1113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1114 _ACEOF
1115
1116
1117 cat >>confdefs.h <<_ACEOF
1118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1119 _ACEOF
1120
1121
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_STRING "$PACKAGE_STRING"
1124 _ACEOF
1125
1126
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1129 _ACEOF
1130
1131
1132 # Let the site file select an alternate cache file if it wants to.
1133 # Prefer explicitly selected file to automatically selected ones.
1134 if test -z "$CONFIG_SITE"; then
1135   if test "x$prefix" != xNONE; then
1136     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137   else
1138     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139   fi
1140 fi
1141 for ac_site_file in $CONFIG_SITE; do
1142   if test -r "$ac_site_file"; then
1143     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1144 echo "$as_me: loading site script $ac_site_file" >&6;}
1145     sed 's/^/| /' "$ac_site_file" >&5
1146     . "$ac_site_file"
1147   fi
1148 done
1149
1150 if test -r "$cache_file"; then
1151   # Some versions of bash will fail to source /dev/null (special
1152   # files actually), so we avoid doing that.
1153   if test -f "$cache_file"; then
1154     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1155 echo "$as_me: loading cache $cache_file" >&6;}
1156     case $cache_file in
1157       [\\/]* | ?:[\\/]* ) . $cache_file;;
1158       *)                      . ./$cache_file;;
1159     esac
1160   fi
1161 else
1162   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1163 echo "$as_me: creating cache $cache_file" >&6;}
1164   >$cache_file
1165 fi
1166
1167 # Check that the precious variables saved in the cache have kept the same
1168 # value.
1169 ac_cache_corrupted=false
1170 for ac_var in `(set) 2>&1 |
1171                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1172   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1173   eval ac_new_set=\$ac_env_${ac_var}_set
1174   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1175   eval ac_new_val="\$ac_env_${ac_var}_value"
1176   case $ac_old_set,$ac_new_set in
1177     set,)
1178       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1179 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1180       ac_cache_corrupted=: ;;
1181     ,set)
1182       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1184       ac_cache_corrupted=: ;;
1185     ,);;
1186     *)
1187       if test "x$ac_old_val" != "x$ac_new_val"; then
1188         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1189 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1190         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1191 echo "$as_me:   former value:  $ac_old_val" >&2;}
1192         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1193 echo "$as_me:   current value: $ac_new_val" >&2;}
1194         ac_cache_corrupted=:
1195       fi;;
1196   esac
1197   # Pass precious variables to config.status.
1198   if test "$ac_new_set" = set; then
1199     case $ac_new_val in
1200     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1201       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1202     *) ac_arg=$ac_var=$ac_new_val ;;
1203     esac
1204     case " $ac_configure_args " in
1205       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1206       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1207     esac
1208   fi
1209 done
1210 if $ac_cache_corrupted; then
1211   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1212 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1213   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1214 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1215    { (exit 1); exit 1; }; }
1216 fi
1217
1218 ac_ext=c
1219 ac_cpp='$CPP $CPPFLAGS'
1220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253 ac_aux_dir=
1254 for ac_dir in config $srcdir/config; do
1255   if test -f $ac_dir/install-sh; then
1256     ac_aux_dir=$ac_dir
1257     ac_install_sh="$ac_aux_dir/install-sh -c"
1258     break
1259   elif test -f $ac_dir/install.sh; then
1260     ac_aux_dir=$ac_dir
1261     ac_install_sh="$ac_aux_dir/install.sh -c"
1262     break
1263   elif test -f $ac_dir/shtool; then
1264     ac_aux_dir=$ac_dir
1265     ac_install_sh="$ac_aux_dir/shtool install -c"
1266     break
1267   fi
1268 done
1269 if test -z "$ac_aux_dir"; then
1270   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1271 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1275 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1276 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1277
1278
1279 configure_args=$ac_configure_args
1280
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PG_VERSION "$PACKAGE_VERSION"
1285 _ACEOF
1286
1287
1288 # Make sure we can run config.sub.
1289 $ac_config_sub sun4 >/dev/null 2>&1 ||
1290   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1291 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1292    { (exit 1); exit 1; }; }
1293
1294 echo "$as_me:$LINENO: checking build system type" >&5
1295 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1296 if test "${ac_cv_build+set}" = set; then
1297   echo $ECHO_N "(cached) $ECHO_C" >&6
1298 else
1299   ac_cv_build_alias=$build_alias
1300 test -z "$ac_cv_build_alias" &&
1301   ac_cv_build_alias=`$ac_config_guess`
1302 test -z "$ac_cv_build_alias" &&
1303   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1304 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1305    { (exit 1); exit 1; }; }
1306 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1307   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1309    { (exit 1); exit 1; }; }
1310
1311 fi
1312 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1313 echo "${ECHO_T}$ac_cv_build" >&6
1314 build=$ac_cv_build
1315 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1318
1319
1320 echo "$as_me:$LINENO: checking host system type" >&5
1321 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1322 if test "${ac_cv_host+set}" = set; then
1323   echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325   ac_cv_host_alias=$host_alias
1326 test -z "$ac_cv_host_alias" &&
1327   ac_cv_host_alias=$ac_cv_build_alias
1328 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1329   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1330 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1331    { (exit 1); exit 1; }; }
1332
1333 fi
1334 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1335 echo "${ECHO_T}$ac_cv_host" >&6
1336 host=$ac_cv_host
1337 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340
1341
1342
1343 template=
1344 echo "$as_me:$LINENO: checking which template to use" >&5
1345 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1346
1347
1348
1349
1350 # Check whether --with-template or --without-template was given.
1351 if test "${with_template+set}" = set; then
1352   withval="$with_template"
1353
1354   case $withval in
1355     yes)
1356       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1357 echo "$as_me: error: argument required for --with-template option" >&2;}
1358    { (exit 1); exit 1; }; }
1359       ;;
1360     no)
1361       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363    { (exit 1); exit 1; }; }
1364       ;;
1365     *)
1366
1367   case $withval in
1368     list)   echo; ls "$srcdir/src/template"; exit;;
1369     *)      if test -f "$srcdir/src/template/$with_template" ; then
1370               template=$withval
1371             else
1372               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1373 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1374    { (exit 1); exit 1; }; }
1375             fi;;
1376   esac
1377
1378       ;;
1379   esac
1380
1381 else
1382
1383 # --with-template not given
1384
1385 case $host_os in
1386      aix*) template=aix ;;
1387     beos*) template=beos ;;
1388     bsdi*) template=bsdi ;;
1389   cygwin*) template=cygwin ;;
1390   darwin*) template=darwin ;;
1391     dgux*) template=dgux ;;
1392  freebsd*) template=freebsd ;;
1393     hpux*) template=hpux ;;
1394     irix*) template=irix5 ;;
1395    linux*) template=linux ;;
1396    mingw*) template=win32 ;;
1397   netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399  openbsd*) template=openbsd ;;
1400      osf*) template=osf ;;
1401      qnx*) template=qnx4 ;;
1402      sco*) template=sco ;;
1403  solaris*) template=solaris ;;
1404    sunos*) template=sunos4 ;;
1405  sysv4.2*)
1406         case $host_vendor in
1407           univel) template=univel ;;
1408         esac ;;
1409    sysv4*) template=svr4 ;;
1410    sysv5*) template=unixware ;;
1411   ultrix*) template=ultrix4 ;;
1412 esac
1413
1414   if test x"$template" = x"" ; then
1415     { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1420
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this.  Include the above 'checking host system type...'
1423 line.
1424 *******************************************************************
1425 " >&5
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1431
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this.  Include the above 'checking host system type...'
1434 line.
1435 *******************************************************************
1436 " >&2;}
1437    { (exit 1); exit 1; }; }
1438   fi
1439
1440
1441 fi;
1442
1443
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1446
1447 PORTNAME=$template
1448
1449
1450 # Initialize default assumption that we do not need separate assembly code
1451 # for TAS (test-and-set).  This can be overridden by the template file
1452 # when it's executed.
1453 need_tas=no
1454 tas_file=dummy.s
1455
1456
1457
1458 ##
1459 ## Command line options
1460 ##
1461
1462 #
1463 # Installation directory for documentation
1464 #
1465
1466
1467
1468 # Check whether --with-docdir or --without-docdir was given.
1469 if test "${with_docdir+set}" = set; then
1470   withval="$with_docdir"
1471
1472   case $withval in
1473     yes)
1474       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1475 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1476    { (exit 1); exit 1; }; }
1477       ;;
1478     no)
1479       docdir=
1480       ;;
1481     *)
1482       docdir=$withval
1483       ;;
1484   esac
1485
1486 else
1487   docdir='${prefix}/doc'
1488 fi;
1489
1490
1491
1492
1493 #
1494 # Add non-standard directories to the include path
1495 #
1496
1497
1498
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501   withval="$with_includes"
1502
1503   case $withval in
1504     yes)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     no)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     *)
1515
1516       ;;
1517   esac
1518
1519 fi;
1520
1521
1522
1523 #
1524 # Add non-standard directories to the library search path
1525 #
1526
1527
1528
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531   withval="$with_libraries"
1532
1533   case $withval in
1534     yes)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     no)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     *)
1545       LIBRARY_DIRS=$withval
1546       ;;
1547   esac
1548
1549 fi;
1550
1551
1552
1553
1554
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557   withval="$with_libs"
1558
1559   case $withval in
1560     yes)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     no)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     *)
1571       LIBRARY_DIRS=$withval
1572       ;;
1573   esac
1574
1575 fi;
1576
1577
1578
1579 #
1580 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588   enableval="$enable_integer_datetimes"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_integer_datetimes=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1615
1616
1617 #
1618 # NLS
1619 #
1620 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1621 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1622
1623
1624 # Check whether --enable-nls or --disable-nls was given.
1625 if test "${enable_nls+set}" = set; then
1626   enableval="$enable_nls"
1627
1628   case $enableval in
1629     yes)
1630       :
1631       ;;
1632     no)
1633       :
1634       ;;
1635     *)
1636       enable_nls=yes
1637 WANTED_LANGUAGES=$enableval
1638       ;;
1639   esac
1640
1641 else
1642   enable_nls=no
1643 fi;
1644
1645
1646 if test "$enable_nls" = yes; then
1647
1648 cat >>confdefs.h <<\_ACEOF
1649 #define ENABLE_NLS 1
1650 _ACEOF
1651
1652 fi
1653
1654 echo "$as_me:$LINENO: result: $enable_nls" >&5
1655 echo "${ECHO_T}$enable_nls" >&6
1656
1657
1658
1659 #
1660 # Default port number (--with-pgport), default 5432
1661 #
1662 echo "$as_me:$LINENO: checking for default port number" >&5
1663 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1664
1665
1666
1667 # Check whether --with-pgport or --without-pgport was given.
1668 if test "${with_pgport+set}" = set; then
1669   withval="$with_pgport"
1670
1671   case $withval in
1672     yes)
1673       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1674 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1675    { (exit 1); exit 1; }; }
1676       ;;
1677     no)
1678       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680    { (exit 1); exit 1; }; }
1681       ;;
1682     *)
1683       default_port=$withval
1684       ;;
1685   esac
1686
1687 else
1688   default_port=5432
1689 fi;
1690
1691 echo "$as_me:$LINENO: result: $default_port" >&5
1692 echo "${ECHO_T}$default_port" >&6
1693 # Need both of these because some places want an integer and some a string
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define DEF_PGPORT ${default_port}
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT_STR "${default_port}"
1702 _ACEOF
1703
1704
1705
1706 #
1707 # Option to disable shared libraries
1708 #
1709
1710
1711 # Check whether --enable-shared or --disable-shared was given.
1712 if test "${enable_shared+set}" = set; then
1713   enableval="$enable_shared"
1714
1715   case $enableval in
1716     yes)
1717       :
1718       ;;
1719     no)
1720       :
1721       ;;
1722     *)
1723       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1724 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1725    { (exit 1); exit 1; }; }
1726       ;;
1727   esac
1728
1729 else
1730   enable_shared=yes
1731
1732 fi;
1733
1734
1735
1736 #
1737 # '-rpath'-like feature can be disabled
1738 #
1739
1740
1741 # Check whether --enable-rpath or --disable-rpath was given.
1742 if test "${enable_rpath+set}" = set; then
1743   enableval="$enable_rpath"
1744
1745   case $enableval in
1746     yes)
1747       :
1748       ;;
1749     no)
1750       :
1751       ;;
1752     *)
1753       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1754 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1755    { (exit 1); exit 1; }; }
1756       ;;
1757   esac
1758
1759 else
1760   enable_rpath=yes
1761
1762 fi;
1763
1764
1765
1766 #
1767 # Spinlocks
1768 #
1769
1770
1771 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1772 if test "${enable_spinlocks+set}" = set; then
1773   enableval="$enable_spinlocks"
1774
1775   case $enableval in
1776     yes)
1777       :
1778       ;;
1779     no)
1780       :
1781       ;;
1782     *)
1783       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1784 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1785    { (exit 1); exit 1; }; }
1786       ;;
1787   esac
1788
1789 else
1790   enable_spinlocks=yes
1791
1792 fi;
1793
1794
1795 #
1796 # --enable-debug adds -g to compiler flags
1797 #
1798
1799
1800 # Check whether --enable-debug or --disable-debug was given.
1801 if test "${enable_debug+set}" = set; then
1802   enableval="$enable_debug"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1813 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_debug=no
1820
1821 fi;
1822
1823
1824
1825 #
1826 # C compiler
1827 #
1828
1829 # For historical reasons you can also use --with-CC to specify the C compiler
1830 # to use, although the standard way to do this is to set the CC environment
1831 # variable.
1832
1833
1834
1835 # Check whether --with-CC or --without-CC was given.
1836 if test "${with_CC+set}" = set; then
1837   withval="$with_CC"
1838
1839   case $withval in
1840     yes)
1841       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1842 echo "$as_me: error: argument required for --with-CC option" >&2;}
1843    { (exit 1); exit 1; }; }
1844       ;;
1845     no)
1846       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848    { (exit 1); exit 1; }; }
1849       ;;
1850     *)
1851       CC=$with_CC
1852       ;;
1853   esac
1854
1855 fi;
1856
1857
1858 case $template in
1859   aix) pgac_cc_list="gcc xlc";;
1860  irix) pgac_cc_list="cc";; # no gcc
1861     *) pgac_cc_list="gcc cc";;
1862 esac
1863
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 if test -n "$ac_tool_prefix"; then
1870   for ac_prog in $pgac_cc_list
1871   do
1872     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$CC"; then
1880   ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907     test -n "$CC" && break
1908   done
1909 fi
1910 if test -z "$CC"; then
1911   ac_ct_CC=$CC
1912   for ac_prog in $pgac_cc_list
1913 do
1914   # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$ac_ct_CC"; then
1922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_ac_ct_CC="$ac_prog"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949   test -n "$ac_ct_CC" && break
1950 done
1951
1952   CC=$ac_ct_CC
1953 fi
1954
1955
1956 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1957 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1958    { (exit 1); exit 1; }; }
1959
1960 # Provide some information about the compiler.
1961 echo "$as_me:$LINENO:" \
1962      "checking for C compiler version" >&5
1963 ac_compiler=`set X $ac_compile; echo $2`
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1965   (eval $ac_compiler --version </dev/null >&5) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1970   (eval $ac_compiler -v </dev/null >&5) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1975   (eval $ac_compiler -V </dev/null >&5) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }
1979
1980 cat >conftest.$ac_ext <<_ACEOF
1981 #line $LINENO "configure"
1982 #include "confdefs.h"
1983
1984 #ifdef F77_DUMMY_MAIN
1985 #  ifdef __cplusplus
1986      extern "C"
1987 #  endif
1988    int F77_DUMMY_MAIN() { return 1; }
1989 #endif
1990 int
1991 main ()
1992 {
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 ac_clean_files_save=$ac_clean_files
1999 ac_clean_files="$ac_clean_files a.out a.exe"
2000 # Try to create an executable without -o first, disregard a.out.
2001 # It will help us diagnose broken compilers, and finding out an intuition
2002 # of exeext.
2003 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2004 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2005 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2006 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2007   (eval $ac_link_default) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }; then
2011   # Find the output, starting from the most likely.  This scheme is
2012 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2013 # resort.
2014
2015 # Be careful to initialize this variable, since it used to be cached.
2016 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2017 ac_cv_exeext=
2018 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2019                 ls a.out conftest 2>/dev/null;
2020                 ls a.* conftest.* 2>/dev/null`; do
2021   case $ac_file in
2022     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2023     a.out ) # We found the default executable, but exeext='' is most
2024             # certainly right.
2025             break;;
2026     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2028           export ac_cv_exeext
2029           break;;
2030     * ) break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2037 echo "$as_me: error: C compiler cannot create executables" >&2;}
2038    { (exit 77); exit 77; }; }
2039 fi
2040
2041 ac_exeext=$ac_cv_exeext
2042 echo "$as_me:$LINENO: result: $ac_file" >&5
2043 echo "${ECHO_T}$ac_file" >&6
2044
2045 # Check the compiler produces executables we can run.  If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2048 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2049 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2050 # If not cross compiling, check that we can run a simple program.
2051 if test "$cross_compiling" != yes; then
2052   if { ac_try='./$ac_file'
2053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054   (eval $ac_try) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; }; then
2058     cross_compiling=no
2059   else
2060     if test "$cross_compiling" = maybe; then
2061         cross_compiling=yes
2062     else
2063         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'." >&5
2065 echo "$as_me: error: cannot run C compiled programs.
2066 If you meant to cross compile, use \`--host'." >&2;}
2067    { (exit 1); exit 1; }; }
2068     fi
2069   fi
2070 fi
2071 echo "$as_me:$LINENO: result: yes" >&5
2072 echo "${ECHO_T}yes" >&6
2073
2074 rm -f a.out a.exe conftest$ac_cv_exeext
2075 ac_clean_files=$ac_clean_files_save
2076 # Check the compiler produces executables we can run.  If not, either
2077 # the compiler is broken, or we cross compile.
2078 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2079 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2080 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2081 echo "${ECHO_T}$cross_compiling" >&6
2082
2083 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2084 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2086   (eval $ac_link) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; then
2090   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2091 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2092 # work properly (i.e., refer to `conftest.exe'), while it won't with
2093 # `rm'.
2094 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2095   case $ac_file in
2096     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2097     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098           export ac_cv_exeext
2099           break;;
2100     * ) break;;
2101   esac
2102 done
2103 else
2104   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2106    { (exit 1); exit 1; }; }
2107 fi
2108
2109 rm -f conftest$ac_cv_exeext
2110 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2111 echo "${ECHO_T}$ac_cv_exeext" >&6
2112
2113 rm -f conftest.$ac_ext
2114 EXEEXT=$ac_cv_exeext
2115 ac_exeext=$EXEEXT
2116 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2118 if test "${ac_cv_objext+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 #include "confdefs.h"
2124
2125 #ifdef F77_DUMMY_MAIN
2126 #  ifdef __cplusplus
2127      extern "C"
2128 #  endif
2129    int F77_DUMMY_MAIN() { return 1; }
2130 #endif
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.o conftest.obj
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; then
2145   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2146   case $ac_file in
2147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2148     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2149        break;;
2150   esac
2151 done
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2155 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2156 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2157    { (exit 1); exit 1; }; }
2158 fi
2159
2160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 fi
2162 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2163 echo "${ECHO_T}$ac_cv_objext" >&6
2164 OBJEXT=$ac_cv_objext
2165 ac_objext=$OBJEXT
2166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   cat >conftest.$ac_ext <<_ACEOF
2172 #line $LINENO "configure"
2173 #include "confdefs.h"
2174
2175 #ifdef F77_DUMMY_MAIN
2176 #  ifdef __cplusplus
2177      extern "C"
2178 #  endif
2179    int F77_DUMMY_MAIN() { return 1; }
2180 #endif
2181 int
2182 main ()
2183 {
2184 #ifndef __GNUC__
2185        choke me
2186 #endif
2187
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   ac_compiler_gnu=yes
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 ac_compiler_gnu=no
2209 fi
2210 rm -f conftest.$ac_objext conftest.$ac_ext
2211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2212
2213 fi
2214 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2215 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2216 GCC=`test $ac_compiler_gnu = yes && echo yes`
2217 ac_test_CFLAGS=${CFLAGS+set}
2218 ac_save_CFLAGS=$CFLAGS
2219 CFLAGS="-g"
2220 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2221 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2222 if test "${ac_cv_prog_cc_g+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 #include "confdefs.h"
2228
2229 #ifdef F77_DUMMY_MAIN
2230 #  ifdef __cplusplus
2231      extern "C"
2232 #  endif
2233    int F77_DUMMY_MAIN() { return 1; }
2234 #endif
2235 int
2236 main ()
2237 {
2238
2239   ;
2240   return 0;
2241 }
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   ac_cv_prog_cc_g=yes
2256 else
2257   echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 ac_cv_prog_cc_g=no
2260 fi
2261 rm -f conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2265 if test "$ac_test_CFLAGS" = set; then
2266   CFLAGS=$ac_save_CFLAGS
2267 elif test $ac_cv_prog_cc_g = yes; then
2268   if test "$GCC" = yes; then
2269     CFLAGS="-g -O2"
2270   else
2271     CFLAGS="-g"
2272   fi
2273 else
2274   if test "$GCC" = yes; then
2275     CFLAGS="-O2"
2276   else
2277     CFLAGS=
2278   fi
2279 fi
2280 # Some people use a C++ compiler to compile C.  Since we use `exit',
2281 # in C++ we need to declare it.  In case someone uses the same compiler
2282 # for both compiling C and C++ we need to have the C++ compiler decide
2283 # the declaration of exit, since it's the most demanding environment.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #ifndef __cplusplus
2286   choke me
2287 #endif
2288 _ACEOF
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291   (eval $ac_compile) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -s conftest.$ac_objext'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301   for ac_declaration in \
2302    ''\
2303    '#include <stdlib.h>' \
2304    'extern "C" void std::exit (int) throw (); using std::exit;' \
2305    'extern "C" void std::exit (int); using std::exit;' \
2306    'extern "C" void exit (int) throw ();' \
2307    'extern "C" void exit (int);' \
2308    'void exit (int);'
2309 do
2310   cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2313 #include <stdlib.h>
2314 $ac_declaration
2315 #ifdef F77_DUMMY_MAIN
2316 #  ifdef __cplusplus
2317      extern "C"
2318 #  endif
2319    int F77_DUMMY_MAIN() { return 1; }
2320 #endif
2321 int
2322 main ()
2323 {
2324 exit (42);
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.$ac_objext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331   (eval $ac_compile) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); } &&
2335          { ac_try='test -s conftest.$ac_objext'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   :
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 continue
2346 fi
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351 $ac_declaration
2352 #ifdef F77_DUMMY_MAIN
2353 #  ifdef __cplusplus
2354      extern "C"
2355 #  endif
2356    int F77_DUMMY_MAIN() { return 1; }
2357 #endif
2358 int
2359 main ()
2360 {
2361 exit (42);
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); } &&
2372          { ac_try='test -s conftest.$ac_objext'
2373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374   (eval $ac_try) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; }; then
2378   break
2379 else
2380   echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 fi
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2384 done
2385 rm -f conftest*
2386 if test -n "$ac_declaration"; then
2387   echo '#ifdef __cplusplus' >>confdefs.h
2388   echo $ac_declaration      >>confdefs.h
2389   echo '#endif'             >>confdefs.h
2390 fi
2391
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2395 fi
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404 unset CFLAGS
2405
2406 #
2407 # Read the template
2408 #
2409 . "$srcdir/src/template/$template" || exit
2410
2411 # CFLAGS are selected so:
2412 # If the user specifies something in the environment, that is used.
2413 # else:  If the template file set something, that is used.
2414 # else:  If the compiler is GCC, then we use -O2.
2415 # else:  If the compiler is something else, then we use -0.
2416
2417 if test "$ac_env_CFLAGS_set" = set; then
2418   CFLAGS=$ac_env_CFLAGS_value
2419 elif test "${CFLAGS+set}" = set; then
2420   : # (keep what template set)
2421 elif test "$GCC" = yes; then
2422   CFLAGS="-O2"
2423 else
2424   # if the user selected debug mode, don't use -O
2425   if test "$enable_debug" != yes; then
2426     CFLAGS="-O"
2427   fi
2428 fi
2429
2430 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2431 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2432 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2433 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   pgac_save_CFLAGS=$CFLAGS
2437 if test "$GCC" = yes; then
2438   pgac_try="-fno-strict-aliasing"
2439 else
2440   # Maybe fill in later...
2441   pgac_try=
2442 fi
2443
2444 for pgac_flag in $pgac_try; do
2445   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2446   cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2449
2450 #ifdef F77_DUMMY_MAIN
2451 #  ifdef __cplusplus
2452      extern "C"
2453 #  endif
2454    int F77_DUMMY_MAIN() { return 1; }
2455 #endif
2456 int
2457 main ()
2458 {
2459
2460   ;
2461   return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466   (eval $ac_compile) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2477 break
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 fi
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2483 done
2484
2485 CFLAGS=$pgac_save_CFLAGS
2486
2487 fi
2488 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2489 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2490
2491 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2492   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2493 fi
2494
2495 # supply -g if --enable-debug
2496 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2497   CFLAGS="$CFLAGS -g"
2498 fi
2499
2500 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2501 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2502
2503 # We already have this in Makefile.win32, but configure needs it too
2504 if test "$PORTNAME" = "win32"; then
2505   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2506 fi
2507
2508 # Check if the compiler still works with the template settings
2509 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2510 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2511
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 #include "confdefs.h"
2515
2516 #ifdef F77_DUMMY_MAIN
2517 #  ifdef __cplusplus
2518      extern "C"
2519 #  endif
2520    int F77_DUMMY_MAIN() { return 1; }
2521 #endif
2522 int
2523 main ()
2524 {
2525 return 0;
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2532   (eval $ac_link) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } &&
2536          { ac_try='test -s conftest$ac_exeext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   echo "$as_me:$LINENO: result: yes" >&5
2543 echo "${ECHO_T}yes" >&6
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2550 echo "$as_me: error: cannot proceed" >&2;}
2551    { (exit 1); exit 1; }; }
2552 fi
2553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2554
2555 # Defend against gcc -ffast-math
2556 if test "$GCC" = yes; then
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 #include "confdefs.h"
2560
2561 #ifdef F77_DUMMY_MAIN
2562 #  ifdef __cplusplus
2563      extern "C"
2564 #  endif
2565    int F77_DUMMY_MAIN() { return 1; }
2566 #endif
2567 int
2568 main ()
2569 {
2570 #ifdef __FAST_MATH__
2571 choke me
2572 #endif
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   :
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2594 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2595    { (exit 1); exit 1; }; }
2596 fi
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598 fi
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2607 # On Suns, sometimes $CPP names a directory.
2608 if test -n "$CPP" && test -d "$CPP"; then
2609   CPP=
2610 fi
2611 if test -z "$CPP"; then
2612   if test "${ac_cv_prog_CPP+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615       # Double quotes because CPP needs to be expanded
2616     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2617     do
2618       ac_preproc_ok=false
2619 for ac_c_preproc_warn_flag in '' yes
2620 do
2621   # Use a header file that comes with gcc, so configuring glibc
2622   # with a fresh cross-compiler works.
2623   # On the NeXT, cc -E runs the code through the compiler's parser,
2624   # not just through cpp. "Syntax error" is here to catch this case.
2625   cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 #include "confdefs.h"
2628 #include <assert.h>
2629                      Syntax error
2630 _ACEOF
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633   ac_status=$?
2634   egrep -v '^ *\+' conftest.er1 >conftest.err
2635   rm -f conftest.er1
2636   cat conftest.err >&5
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); } >/dev/null; then
2639   if test -s conftest.err; then
2640     ac_cpp_err=$ac_c_preproc_warn_flag
2641   else
2642     ac_cpp_err=
2643   fi
2644 else
2645   ac_cpp_err=yes
2646 fi
2647 if test -z "$ac_cpp_err"; then
2648   :
2649 else
2650   echo "$as_me: failed program was:" >&5
2651   cat conftest.$ac_ext >&5
2652   # Broken: fails on valid input.
2653 continue
2654 fi
2655 rm -f conftest.err conftest.$ac_ext
2656
2657   # OK, works on sane cases.  Now check whether non-existent headers
2658   # can be detected and how.
2659   cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2661 #include "confdefs.h"
2662 #include <ac_nonexistent.h>
2663 _ACEOF
2664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2666   ac_status=$?
2667   egrep -v '^ *\+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } >/dev/null; then
2672   if test -s conftest.err; then
2673     ac_cpp_err=$ac_c_preproc_warn_flag
2674   else
2675     ac_cpp_err=
2676   fi
2677 else
2678   ac_cpp_err=yes
2679 fi
2680 if test -z "$ac_cpp_err"; then
2681   # Broken: success on invalid input.
2682 continue
2683 else
2684   echo "$as_me: failed program was:" >&5
2685   cat conftest.$ac_ext >&5
2686   # Passes both tests.
2687 ac_preproc_ok=:
2688 break
2689 fi
2690 rm -f conftest.err conftest.$ac_ext
2691
2692 done
2693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2694 rm -f conftest.err conftest.$ac_ext
2695 if $ac_preproc_ok; then
2696   break
2697 fi
2698
2699     done
2700     ac_cv_prog_CPP=$CPP
2701
2702 fi
2703   CPP=$ac_cv_prog_CPP
2704 else
2705   ac_cv_prog_CPP=$CPP
2706 fi
2707 echo "$as_me:$LINENO: result: $CPP" >&5
2708 echo "${ECHO_T}$CPP" >&6
2709 ac_preproc_ok=false
2710 for ac_c_preproc_warn_flag in '' yes
2711 do
2712   # Use a header file that comes with gcc, so configuring glibc
2713   # with a fresh cross-compiler works.
2714   # On the NeXT, cc -E runs the code through the compiler's parser,
2715   # not just through cpp. "Syntax error" is here to catch this case.
2716   cat >conftest.$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 #include "confdefs.h"
2719 #include <assert.h>
2720                      Syntax error
2721 _ACEOF
2722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724   ac_status=$?
2725   egrep -v '^ *\+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } >/dev/null; then
2730   if test -s conftest.err; then
2731     ac_cpp_err=$ac_c_preproc_warn_flag
2732   else
2733     ac_cpp_err=
2734   fi
2735 else
2736   ac_cpp_err=yes
2737 fi
2738 if test -z "$ac_cpp_err"; then
2739   :
2740 else
2741   echo "$as_me: failed program was:" >&5
2742   cat conftest.$ac_ext >&5
2743   # Broken: fails on valid input.
2744 continue
2745 fi
2746 rm -f conftest.err conftest.$ac_ext
2747
2748   # OK, works on sane cases.  Now check whether non-existent headers
2749   # can be detected and how.
2750   cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2752 #include "confdefs.h"
2753 #include <ac_nonexistent.h>
2754 _ACEOF
2755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757   ac_status=$?
2758   egrep -v '^ *\+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } >/dev/null; then
2763   if test -s conftest.err; then
2764     ac_cpp_err=$ac_c_preproc_warn_flag
2765   else
2766     ac_cpp_err=
2767   fi
2768 else
2769   ac_cpp_err=yes
2770 fi
2771 if test -z "$ac_cpp_err"; then
2772   # Broken: success on invalid input.
2773 continue
2774 else
2775   echo "$as_me: failed program was:" >&5
2776   cat conftest.$ac_ext >&5
2777   # Passes both tests.
2778 ac_preproc_ok=:
2779 break
2780 fi
2781 rm -f conftest.err conftest.$ac_ext
2782
2783 done
2784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2785 rm -f conftest.err conftest.$ac_ext
2786 if $ac_preproc_ok; then
2787   :
2788 else
2789   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2790 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2791    { (exit 1); exit 1; }; }
2792 fi
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800
2801
2802 # Create compiler version string
2803 if test x"$GCC" = x"yes" ; then
2804   cc_string="GCC `${CC} --version | sed q`"
2805 else
2806   cc_string=$CC
2807 fi
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2811 _ACEOF
2812
2813
2814
2815 #
2816 # Set up TAS assembly code if needed; the template file has now had its
2817 # chance to request this.
2818 #
2819 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2820
2821
2822 if test "$need_tas" = yes ; then
2823   TAS=tas.o
2824 else
2825   TAS=""
2826 fi
2827
2828
2829
2830 #
2831 # Automatic dependency tracking
2832 #
2833
2834
2835 # Check whether --enable-depend or --disable-depend was given.
2836 if test "${enable_depend+set}" = set; then
2837   enableval="$enable_depend"
2838
2839   case $enableval in
2840     yes)
2841       autodepend=yes
2842       ;;
2843     no)
2844       :
2845       ;;
2846     *)
2847       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2848 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2849    { (exit 1); exit 1; }; }
2850       ;;
2851   esac
2852
2853 else
2854   enable_depend=no
2855
2856 fi;
2857
2858
2859
2860
2861 #
2862 # Enable assert checks
2863 #
2864
2865
2866 # Check whether --enable-cassert or --disable-cassert was given.
2867 if test "${enable_cassert+set}" = set; then
2868   enableval="$enable_cassert"
2869
2870   case $enableval in
2871     yes)
2872
2873 cat >>confdefs.h <<\_ACEOF
2874 #define USE_ASSERT_CHECKING 1
2875 _ACEOF
2876
2877       ;;
2878     no)
2879       :
2880       ;;
2881     *)
2882       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2883 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2884    { (exit 1); exit 1; }; }
2885       ;;
2886   esac
2887
2888 else
2889   enable_cassert=no
2890
2891 fi;
2892
2893
2894
2895 #
2896 # Include directories
2897 #
2898 ac_save_IFS=$IFS
2899 IFS="${IFS}:"
2900 # SRCH_INC comes from the template file
2901 for dir in $with_includes $SRCH_INC; do
2902   if test -d "$dir"; then
2903     INCLUDES="$INCLUDES -I$dir"
2904   else
2905     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2906 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2907   fi
2908 done
2909 IFS=$ac_save_IFS
2910
2911
2912
2913 #
2914 # Library directories
2915 #
2916 ac_save_IFS=$IFS
2917 IFS="${IFS}:"
2918 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2919 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2920   if test -d "$dir"; then
2921     LIBDIRS="$LIBDIRS -L$dir"
2922   else
2923     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2924 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2925   fi
2926 done
2927 IFS=$ac_save_IFS
2928
2929 #
2930 # Enable thread-safe client libraries
2931 #
2932 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2933 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2934
2935
2936 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2937 if test "${enable_thread_safety+set}" = set; then
2938   enableval="$enable_thread_safety"
2939
2940   case $enableval in
2941     yes)
2942
2943 cat >>confdefs.h <<\_ACEOF
2944 #define ENABLE_THREAD_SAFETY 1
2945 _ACEOF
2946
2947       ;;
2948     no)
2949       :
2950       ;;
2951     *)
2952       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2953 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956   esac
2957
2958 else
2959   enable_thread_safety=no
2960
2961 fi;
2962
2963 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2964 echo "${ECHO_T}$enable_thread_safety" >&6
2965
2966
2967 #
2968 # Tcl/Tk
2969 #
2970 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2971 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2972
2973
2974
2975 # Check whether --with-tcl or --without-tcl was given.
2976 if test "${with_tcl+set}" = set; then
2977   withval="$with_tcl"
2978
2979   case $withval in
2980     yes)
2981       :
2982       ;;
2983     no)
2984       :
2985       ;;
2986     *)
2987       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2988 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2989    { (exit 1); exit 1; }; }
2990       ;;
2991   esac
2992
2993 else
2994   with_tcl=no
2995
2996 fi;
2997
2998 echo "$as_me:$LINENO: result: $with_tcl" >&5
2999 echo "${ECHO_T}$with_tcl" >&6
3000
3001
3002 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3003 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3004 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3005 if test "$with_tcl" = yes; then
3006
3007
3008
3009 # Check whether --with-tk or --without-tk was given.
3010 if test "${with_tk+set}" = set; then
3011   withval="$with_tk"
3012
3013   case $withval in
3014     yes)
3015       :
3016       ;;
3017     no)
3018       :
3019       ;;
3020     *)
3021       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3022 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3023    { (exit 1); exit 1; }; }
3024       ;;
3025   esac
3026
3027 else
3028   with_tk=yes
3029
3030 fi;
3031
3032 else
3033   with_tk=no
3034 fi
3035 echo "$as_me:$LINENO: result: $with_tk" >&5
3036 echo "${ECHO_T}$with_tk" >&6
3037
3038
3039
3040 # We see if the path to the Tcl/Tk configuration scripts is specified.
3041 # This will override the use of tclsh to find the paths to search.
3042
3043
3044
3045
3046 # Check whether --with-tclconfig or --without-tclconfig was given.
3047 if test "${with_tclconfig+set}" = set; then
3048   withval="$with_tclconfig"
3049
3050   case $withval in
3051     yes)
3052       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3053 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3054    { (exit 1); exit 1; }; }
3055       ;;
3056     no)
3057       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3058 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3059    { (exit 1); exit 1; }; }
3060       ;;
3061     *)
3062
3063       ;;
3064   esac
3065
3066 fi;
3067
3068
3069 # We see if the path to the Tk configuration scripts is specified.
3070 # This will override the use of tclsh to find the paths to search.
3071
3072
3073
3074
3075 # Check whether --with-tkconfig or --without-tkconfig was given.
3076 if test "${with_tkconfig+set}" = set; then
3077   withval="$with_tkconfig"
3078
3079   case $withval in
3080     yes)
3081       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3082 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3083    { (exit 1); exit 1; }; }
3084       ;;
3085     no)
3086       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3087 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3088    { (exit 1); exit 1; }; }
3089       ;;
3090     *)
3091
3092       ;;
3093   esac
3094
3095 fi;
3096
3097
3098 #
3099 # Optionally build Perl modules (PL/Perl)
3100 #
3101 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3102 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3103
3104
3105
3106 # Check whether --with-perl or --without-perl was given.
3107 if test "${with_perl+set}" = set; then
3108   withval="$with_perl"
3109
3110   case $withval in
3111     yes)
3112       :
3113       ;;
3114     no)
3115       :
3116       ;;
3117     *)
3118       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3119 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3120    { (exit 1); exit 1; }; }
3121       ;;
3122   esac
3123
3124 else
3125   with_perl=no
3126
3127 fi;
3128
3129 echo "$as_me:$LINENO: result: $with_perl" >&5
3130 echo "${ECHO_T}$with_perl" >&6
3131
3132
3133 #
3134 # Optionally build Python modules (PL/Python)
3135 #
3136 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3137 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3138
3139
3140
3141 # Check whether --with-python or --without-python was given.
3142 if test "${with_python+set}" = set; then
3143   withval="$with_python"
3144
3145   case $withval in
3146     yes)
3147       :
3148       ;;
3149     no)
3150       :
3151       ;;
3152     *)
3153       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3154 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3155    { (exit 1); exit 1; }; }
3156       ;;
3157   esac
3158
3159 else
3160   with_python=no
3161
3162 fi;
3163
3164 echo "$as_me:$LINENO: result: $with_python" >&5
3165 echo "${ECHO_T}$with_python" >&6
3166
3167
3168 #
3169 # Kerberos 4
3170 #
3171 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3172 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3173
3174
3175
3176 # Check whether --with-krb4 or --without-krb4 was given.
3177 if test "${with_krb4+set}" = set; then
3178   withval="$with_krb4"
3179
3180   case $withval in
3181     yes)
3182
3183
3184 cat >>confdefs.h <<\_ACEOF
3185 #define KRB4 1
3186 _ACEOF
3187
3188   krb_srvtab="/etc/srvtab"
3189
3190       ;;
3191     no)
3192       :
3193       ;;
3194     *)
3195       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3196 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3197    { (exit 1); exit 1; }; }
3198       ;;
3199   esac
3200
3201 else
3202   with_krb4=no
3203
3204 fi;
3205
3206 echo "$as_me:$LINENO: result: $with_krb4" >&5
3207 echo "${ECHO_T}$with_krb4" >&6
3208
3209
3210
3211 #
3212 # Kerberos 5
3213 #
3214 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3215 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3216
3217
3218
3219 # Check whether --with-krb5 or --without-krb5 was given.
3220 if test "${with_krb5+set}" = set; then
3221   withval="$with_krb5"
3222
3223   case $withval in
3224     yes)
3225
3226
3227 cat >>confdefs.h <<\_ACEOF
3228 #define KRB5 1
3229 _ACEOF
3230
3231   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3232
3233       ;;
3234     no)
3235       :
3236       ;;
3237     *)
3238       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3239 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3240    { (exit 1); exit 1; }; }
3241       ;;
3242   esac
3243
3244 else
3245   with_krb5=no
3246
3247 fi;
3248
3249 echo "$as_me:$LINENO: result: $with_krb5" >&5
3250 echo "${ECHO_T}$with_krb5" >&6
3251
3252
3253
3254 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3255 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3256   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3257 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260
3261
3262
3263
3264 #
3265 # Kerberos configuration parameters
3266 #
3267
3268
3269
3270 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3271 if test "${with_krb_srvnam+set}" = set; then
3272   withval="$with_krb_srvnam"
3273
3274   case $withval in
3275     yes)
3276       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3277 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3278    { (exit 1); exit 1; }; }
3279       ;;
3280     no)
3281       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3282 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3283    { (exit 1); exit 1; }; }
3284       ;;
3285     *)
3286
3287       ;;
3288   esac
3289
3290 else
3291   with_krb_srvnam="postgres"
3292 fi;
3293
3294
3295 cat >>confdefs.h <<_ACEOF
3296 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3297 _ACEOF
3298
3299
3300
3301 #
3302 # PAM
3303 #
3304 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3305 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3306
3307
3308
3309 # Check whether --with-pam or --without-pam was given.
3310 if test "${with_pam+set}" = set; then
3311   withval="$with_pam"
3312
3313   case $withval in
3314     yes)
3315
3316 cat >>confdefs.h <<\_ACEOF
3317 #define USE_PAM 1
3318 _ACEOF
3319
3320       ;;
3321     no)
3322       :
3323       ;;
3324     *)
3325       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3326 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3327    { (exit 1); exit 1; }; }
3328       ;;
3329   esac
3330
3331 else
3332   with_pam=no
3333
3334 fi;
3335
3336 echo "$as_me:$LINENO: result: $with_pam" >&5
3337 echo "${ECHO_T}$with_pam" >&6
3338
3339
3340
3341 #
3342 # Rendezvous
3343 #
3344 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3345 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3346
3347
3348
3349 # Check whether --with-rendezvous or --without-rendezvous was given.
3350 if test "${with_rendezvous+set}" = set; then
3351   withval="$with_rendezvous"
3352
3353   case $withval in
3354     yes)
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define USE_RENDEZVOUS 1
3358 _ACEOF
3359
3360       ;;
3361     no)
3362       :
3363       ;;
3364     *)
3365       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3366 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3367    { (exit 1); exit 1; }; }
3368       ;;
3369   esac
3370
3371 else
3372   with_rendezvous=no
3373
3374 fi;
3375
3376 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3377 echo "${ECHO_T}$with_rendezvous" >&6
3378
3379
3380
3381 #
3382 # OpenSSL
3383 #
3384 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3385 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3386
3387
3388
3389 # Check whether --with-openssl or --without-openssl was given.
3390 if test "${with_openssl+set}" = set; then
3391   withval="$with_openssl"
3392
3393   case $withval in
3394     yes)
3395
3396 cat >>confdefs.h <<\_ACEOF
3397 #define USE_SSL 1
3398 _ACEOF
3399
3400       ;;
3401     no)
3402       :
3403       ;;
3404     *)
3405       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3406 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3407    { (exit 1); exit 1; }; }
3408       ;;
3409   esac
3410
3411 else
3412   with_openssl=no
3413
3414 fi;
3415
3416 echo "$as_me:$LINENO: result: $with_openssl" >&5
3417 echo "${ECHO_T}$with_openssl" >&6
3418
3419
3420
3421 #
3422 # Readline
3423 #
3424
3425
3426
3427 # Check whether --with-readline or --without-readline was given.
3428 if test "${with_readline+set}" = set; then
3429   withval="$with_readline"
3430
3431   case $withval in
3432     yes)
3433       :
3434       ;;
3435     no)
3436       :
3437       ;;
3438     *)
3439       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3440 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3441    { (exit 1); exit 1; }; }
3442       ;;
3443   esac
3444
3445 else
3446   with_readline=yes
3447
3448 fi;
3449
3450
3451 #
3452 # Zlib
3453 #
3454
3455
3456
3457 # Check whether --with-zlib or --without-zlib was given.
3458 if test "${with_zlib+set}" = set; then
3459   withval="$with_zlib"
3460
3461   case $withval in
3462     yes)
3463       :
3464       ;;
3465     no)
3466       :
3467       ;;
3468     *)
3469       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3470 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3471    { (exit 1); exit 1; }; }
3472       ;;
3473   esac
3474
3475 else
3476   with_zlib=yes
3477
3478 fi;
3479
3480
3481 #
3482 # Elf
3483 #
3484
3485 # Assume system is ELF if it predefines __ELF__ as 1,
3486 # otherwise believe host_os based default.
3487 case $host_os in
3488     freebsd1*|freebsd2*) elf=no;;
3489     freebsd3*|freebsd4*) elf=yes;;
3490 esac
3491
3492
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3496 #if __ELF__
3497   yes
3498 #endif
3499
3500 _ACEOF
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502   egrep "yes" >/dev/null 2>&1; then
3503   ELF_SYS=true
3504 else
3505   if test "X$elf" = "Xyes" ; then
3506   ELF_SYS=true
3507 else
3508   ELF_SYS=
3509 fi
3510 fi
3511 rm -f conftest*
3512
3513
3514
3515 #
3516 # Assignments
3517 #
3518
3519 CPPFLAGS="$CPPFLAGS $INCLUDES"
3520 LDFLAGS="$LDFLAGS $LIBDIRS"
3521
3522 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3523 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3524 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3525 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3526
3527
3528 for ac_prog in gawk mawk nawk awk
3529 do
3530   # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3534 if test "${ac_cv_prog_AWK+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   if test -n "$AWK"; then
3538   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545   for ac_exec_ext in '' $ac_executable_extensions; do
3546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3547     ac_cv_prog_AWK="$ac_prog"
3548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552 done
3553
3554 fi
3555 fi
3556 AWK=$ac_cv_prog_AWK
3557 if test -n "$AWK"; then
3558   echo "$as_me:$LINENO: result: $AWK" >&5
3559 echo "${ECHO_T}$AWK" >&6
3560 else
3561   echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564
3565   test -n "$AWK" && break
3566 done
3567
3568 echo "$as_me:$LINENO: checking for flex" >&5
3569 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3570 if test "${pgac_cv_path_flex+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   # Let the user override the test
3574 if test -n "$FLEX"; then
3575   pgac_cv_path_flex=$FLEX
3576 else
3577   pgac_save_IFS=$IFS
3578   IFS=:
3579   for pgac_dir in $PATH; do
3580     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3581       pgac_dir=`pwd`
3582     fi
3583     for pgac_prog in flex lex; do
3584       pgac_candidate="$pgac_dir/$pgac_prog"
3585       if test -f "$pgac_candidate" \
3586         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3587       then
3588         echo '%%'  > conftest.l
3589         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3590           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3591             pgac_broken_flex=$pgac_candidate
3592             continue
3593           fi
3594
3595           pgac_cv_path_flex=$pgac_candidate
3596           break 2
3597         fi
3598       fi
3599     done
3600   done
3601   IFS=$pgac_save_IFS
3602   rm -f conftest.l
3603   : ${pgac_cv_path_flex=no}
3604 fi
3605
3606 fi
3607 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3608 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3609 if test x"$pgac_cv_path_flex" = x"no"; then
3610   if test -n "$pgac_broken_flex"; then
3611     { echo "$as_me:$LINENO: WARNING:
3612 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3613 *** should get version 2.5.4 or later." >&5
3614 echo "$as_me: WARNING:
3615 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3616 *** should get version 2.5.4 or later." >&2;}
3617   fi
3618
3619   { echo "$as_me:$LINENO: WARNING:
3620 *** Without Flex you will not be able to build PostgreSQL from CVS or
3621 *** change any of the scanner definition files.  You can obtain Flex from
3622 *** a GNU mirror site.  (If you are using the official distribution of
3623 *** PostgreSQL then you do not need to worry about this because the Flex
3624 *** output is pre-generated.)" >&5
3625 echo "$as_me: WARNING:
3626 *** Without Flex you will not be able to build PostgreSQL from CVS or
3627 *** change any of the scanner definition files.  You can obtain Flex from
3628 *** a GNU mirror site.  (If you are using the official distribution of
3629 *** PostgreSQL then you do not need to worry about this because the Flex
3630 *** output is pre-generated.)" >&2;}
3631 fi
3632
3633 if test x"$pgac_cv_path_flex" = x"no"; then
3634   FLEX=
3635 else
3636   FLEX=$pgac_cv_path_flex
3637 fi
3638
3639
3640
3641
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3644 LN_S=$as_ln_s
3645 if test "$LN_S" = "ln -s"; then
3646   echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3651 fi
3652
3653
3654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3655 if test "${with_gnu_ld+set}" = set; then
3656   withval="$with_gnu_ld"
3657   test "$withval" = no || with_gnu_ld=yes
3658 else
3659   with_gnu_ld=no
3660 fi;
3661 ac_prog=ld
3662 if test "$GCC" = yes; then
3663   # Check if gcc -print-prog-name=ld gives a path.
3664   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3665 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3666   case $host in
3667   *-*-mingw*)
3668     # gcc leaves a trailing carriage return which upsets mingw
3669     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3670   *)
3671     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3672   esac
3673   case "$ac_prog" in
3674     # Accept absolute paths.
3675     [\\/]* | [A-Za-z]:[\\/]*)
3676       re_direlt='/[^/][^/]*/\.\./'
3677       # Canonicalize the path of ld
3678       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3679       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3680         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3681       done
3682       test -z "$LD" && LD="$ac_prog"
3683       ;;
3684   "")
3685     # If it fails, then pretend we aren't using GCC.
3686     ac_prog=ld
3687     ;;
3688   *)
3689     # If it is relative, then search for the first ld in PATH.
3690     with_gnu_ld=unknown
3691     ;;
3692   esac
3693 elif test "$with_gnu_ld" = yes; then
3694   echo "$as_me:$LINENO: checking for GNU ld" >&5
3695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3696 else
3697   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3699 fi
3700 if test "${ac_cv_path_LD+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   if test -z "$LD"; then
3704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3705   for ac_dir in $PATH; do
3706     test -z "$ac_dir" && ac_dir=.
3707     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3708       ac_cv_path_LD="$ac_dir/$ac_prog"
3709       # Check to see if the program is GNU ld.  I'd rather use --version,
3710       # but apparently some GNU ld's only accept -v.
3711       # Break only if it was the GNU/non-GNU ld that we prefer.
3712       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3713         test "$with_gnu_ld" != no && break
3714       else
3715         test "$with_gnu_ld" != yes && break
3716       fi
3717     fi
3718   done
3719   IFS="$ac_save_ifs"
3720 else
3721   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3722 fi
3723 fi
3724
3725 LD="$ac_cv_path_LD"
3726 if test -n "$LD"; then
3727   echo "$as_me:$LINENO: result: $LD" >&5
3728 echo "${ECHO_T}$LD" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3734 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3735    { (exit 1); exit 1; }; }
3736 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3737 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3738 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3742 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3743   ac_cv_prog_gnu_ld=yes
3744 else
3745   ac_cv_prog_gnu_ld=no
3746 fi
3747 fi
3748 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3749 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3750 with_gnu_ld=$ac_cv_prog_gnu_ld
3751
3752
3753
3754
3755 case $host_os in sysv5*)
3756   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3757 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3758 if test "${pgac_cv_prog_ld_R+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761
3762     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3763     cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 #include "confdefs.h"
3766
3767 #ifdef F77_DUMMY_MAIN
3768 #  ifdef __cplusplus
3769      extern "C"
3770 #  endif
3771    int F77_DUMMY_MAIN() { return 1; }
3772 #endif
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783   (eval $ac_link) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   pgac_cv_prog_ld_R=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 pgac_cv_prog_ld_R=no
3798 fi
3799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3800     LDFLAGS=$pgac_save_LDFLAGS
3801
3802 fi
3803 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3804 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3805   ld_R_works=$pgac_cv_prog_ld_R
3806
3807 esac
3808 if test -n "$ac_tool_prefix"; then
3809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test -n "$RANLIB"; then
3817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_exec_ext in '' $ac_executable_extensions; do
3825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831 done
3832
3833 fi
3834 fi
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837   echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843
3844 fi
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846   ac_ct_RANLIB=$RANLIB
3847   # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$ac_ct_RANLIB"; then
3855   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_ac_ct_RANLIB="ranlib"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 fi
3873 fi
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3881 fi
3882
3883   RANLIB=$ac_ct_RANLIB
3884 else
3885   RANLIB="$ac_cv_prog_RANLIB"
3886 fi
3887
3888 for ac_prog in lorder
3889 do
3890   # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_LORDER+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   if test -n "$LORDER"; then
3898   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905   for ac_exec_ext in '' $ac_executable_extensions; do
3906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907     ac_cv_prog_LORDER="$ac_prog"
3908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909     break 2
3910   fi
3911 done
3912 done
3913
3914 fi
3915 fi
3916 LORDER=$ac_cv_prog_LORDER
3917 if test -n "$LORDER"; then
3918   echo "$as_me:$LINENO: result: $LORDER" >&5
3919 echo "${ECHO_T}$LORDER" >&6
3920 else
3921   echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923 fi
3924
3925   test -n "$LORDER" && break
3926 done
3927
3928 # Extract the first word of "tar", so it can be a program name with args.
3929 set dummy tar; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_path_TAR+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   case $TAR in
3936   [\\/]* | ?:[\\/]*)
3937   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3938   ;;
3939   *)
3940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3942 do
3943   IFS=$as_save_IFS
3944   test -z "$as_dir" && as_dir=.
3945   for ac_exec_ext in '' $ac_executable_extensions; do
3946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949     break 2
3950   fi
3951 done
3952 done
3953
3954   ;;
3955 esac
3956 fi
3957 TAR=$ac_cv_path_TAR
3958
3959 if test -n "$TAR"; then
3960   echo "$as_me:$LINENO: result: $TAR" >&5
3961 echo "${ECHO_T}$TAR" >&6
3962 else
3963   echo "$as_me:$LINENO: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3965 fi
3966
3967
3968   if test -n "$ac_tool_prefix"; then
3969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}strip; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_STRIP+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$STRIP"; then
3977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 STRIP=$ac_cv_prog_STRIP
3996 if test -n "$STRIP"; then
3997   echo "$as_me:$LINENO: result: $STRIP" >&5
3998 echo "${ECHO_T}$STRIP" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004 fi
4005 if test -z "$ac_cv_prog_STRIP"; then
4006   ac_ct_STRIP=$STRIP
4007   # Extract the first word of "strip", so it can be a program name with args.
4008 set dummy strip; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$ac_ct_STRIP"; then
4015   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_ac_ct_STRIP="strip"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4032 fi
4033 fi
4034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4035 if test -n "$ac_ct_STRIP"; then
4036   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4037 echo "${ECHO_T}$ac_ct_STRIP" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043   STRIP=$ac_ct_STRIP
4044 else
4045   STRIP="$ac_cv_prog_STRIP"
4046 fi
4047
4048
4049   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4050 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4051   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4052     STRIP_STATIC_LIB="$STRIP -x"
4053     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4054     echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4056   else
4057     STRIP_STATIC_LIB=:
4058     STRIP_SHARED_LIB=:
4059     echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061   fi
4062
4063
4064
4065
4066 for ac_prog in 'bison -y'
4067 do
4068   # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072 if test "${ac_cv_prog_YACC+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   if test -n "$YACC"; then
4076   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083   for ac_exec_ext in '' $ac_executable_extensions; do
4084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085     ac_cv_prog_YACC="$ac_prog"
4086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4087     break 2
4088   fi
4089 done
4090 done
4091
4092 fi
4093 fi
4094 YACC=$ac_cv_prog_YACC
4095 if test -n "$YACC"; then
4096   echo "$as_me:$LINENO: result: $YACC" >&5
4097 echo "${ECHO_T}$YACC" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103   test -n "$YACC" && break
4104 done
4105
4106
4107 if test "$YACC"; then
4108   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4109     { echo "$as_me:$LINENO: WARNING:
4110 *** If you are going to modify the grammar files or build from CVS, the installed
4111 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4112 echo "$as_me: WARNING:
4113 *** If you are going to modify the grammar files or build from CVS, the installed
4114 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4115   fi
4116 fi
4117
4118 if test -z "$YACC"; then
4119   { echo "$as_me:$LINENO: WARNING:
4120 *** Without Bison you will not be able to build PostgreSQL from CVS or
4121 *** change any of the parser definition files.  You can obtain Bison from
4122 *** a GNU mirror site.  (If you are using the official distribution of
4123 *** PostgreSQL then you do not need to worry about this because the Bison
4124 *** output is pre-generated.)  To use a different yacc program (possible,
4125 *** but not recommended), set the environment variable YACC before running
4126 *** 'configure'." >&5
4127 echo "$as_me: WARNING:
4128 *** Without Bison you will not be able to build PostgreSQL from CVS or
4129 *** change any of the parser definition files.  You can obtain Bison from
4130 *** a GNU mirror site.  (If you are using the official distribution of
4131 *** PostgreSQL then you do not need to worry about this because the Bison
4132 *** output is pre-generated.)  To use a different yacc program (possible,
4133 *** but not recommended), set the environment variable YACC before running
4134 *** 'configure'." >&2;}
4135 fi
4136
4137
4138 # Extract the first word of "perl", so it can be a program name with args.
4139 set dummy perl; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_PERL+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $PERL in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   ;;
4165 esac
4166 fi
4167 PERL=$ac_cv_path_PERL
4168
4169 if test -n "$PERL"; then
4170   echo "$as_me:$LINENO: result: $PERL" >&5
4171 echo "${ECHO_T}$PERL" >&6
4172 else
4173   echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177 if test "$with_perl" = yes; then
4178
4179 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4180 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4181 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4182 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4183 echo "${ECHO_T}$perl_archlibexp" >&6
4184 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4185 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4186 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4187 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4188 echo "${ECHO_T}$perl_privlibexp" >&6
4189 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4190 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4191 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4192 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4193 echo "${ECHO_T}$perl_useshrplib" >&6
4194
4195 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4196 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4197 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4198 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4199 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4200 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4201 echo "${ECHO_T}$perl_embed_ldflags" >&6
4202 fi
4203
4204 if test "$with_python" = yes; then
4205   # Extract the first word of "python", so it can be a program name with args.
4206 set dummy python; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_path_PYTHON+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   case $PYTHON in
4213   [\\/]* | ?:[\\/]*)
4214   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4215   ;;
4216   *)
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222   for ac_exec_ext in '' $ac_executable_extensions; do
4223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229 done
4230
4231   ;;
4232 esac
4233 fi
4234 PYTHON=$ac_cv_path_PYTHON
4235
4236 if test -n "$PYTHON"; then
4237   echo "$as_me:$LINENO: result: $PYTHON" >&5
4238 echo "${ECHO_T}$PYTHON" >&6
4239 else
4240   echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4242 fi
4243
4244 if test x"$PYTHON" = x""; then
4245   { { echo "$as_me:$LINENO: error: Python not found" >&5
4246 echo "$as_me: error: Python not found" >&2;}
4247    { (exit 1); exit 1; }; }
4248 fi
4249
4250
4251 echo "$as_me:$LINENO: checking Python installation directories" >&5
4252 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4253 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4254 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4255 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4256 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4257 python_includespec="-I${python_prefix}/include/python${python_version}"
4258 if test "$python_prefix" != "$python_execprefix"; then
4259   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4260 fi
4261
4262 # This should be enough of a message.
4263 if test "$python_prefix" != "$python_execprefix"; then
4264   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4265 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4266 else
4267   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4268 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4269 fi
4270
4271
4272 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4273 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4274
4275 if test ! -f "$python_configdir/Makefile"; then
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4279 echo "$as_me: error: Python Makefile not found" >&2;}
4280    { (exit 1); exit 1; }; }
4281 fi
4282
4283 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4284 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4285 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4286 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4287 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4288
4289 pgac_tab="      " # tab character
4290 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"`
4291
4292 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4293 echo "${ECHO_T}${python_libspec}" >&6
4294
4295
4296 fi
4297
4298
4299 ##
4300 ## Libraries
4301 ##
4302
4303 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4304 then
4305
4306 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4307 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4308 if test "${ac_cv_lib_bsd_main+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   ac_check_lib_save_LIBS=$LIBS
4312 LIBS="-lbsd  $LIBS"
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4315 #include "confdefs.h"
4316
4317
4318 #ifdef F77_DUMMY_MAIN
4319 #  ifdef __cplusplus
4320      extern "C"
4321 #  endif
4322    int F77_DUMMY_MAIN() { return 1; }
4323 #endif
4324 int
4325 main ()
4326 {
4327 main ();
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 rm -f conftest.$ac_objext conftest$ac_exeext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4334   (eval $ac_link) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } &&
4338          { ac_try='test -s conftest$ac_exeext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_cv_lib_bsd_main=yes
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 ac_cv_lib_bsd_main=no
4349 fi
4350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4351 LIBS=$ac_check_lib_save_LIBS
4352 fi
4353 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4354 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4355 if test $ac_cv_lib_bsd_main = yes; then
4356   cat >>confdefs.h <<_ACEOF
4357 #define HAVE_LIBBSD 1
4358 _ACEOF
4359
4360   LIBS="-lbsd $LIBS"
4361
4362 fi
4363
4364 fi
4365
4366 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4367 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4368 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lutil  $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4374 #line $LINENO "configure"
4375 #include "confdefs.h"
4376
4377 /* Override any gcc2 internal prototype to avoid an error.  */
4378 #ifdef __cplusplus
4379 extern "C"
4380 #endif
4381 /* We use char because int might match the return type of a gcc2
4382    builtin and then its argument prototype would still apply.  */
4383 char setproctitle ();
4384 #ifdef F77_DUMMY_MAIN
4385 #  ifdef __cplusplus
4386      extern "C"
4387 #  endif
4388    int F77_DUMMY_MAIN() { return 1; }
4389 #endif
4390 int
4391 main ()
4392 {
4393 setproctitle ();
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400   (eval $ac_link) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } &&
4404          { ac_try='test -s conftest$ac_exeext'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; }; then
4410   ac_cv_lib_util_setproctitle=yes
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4414 ac_cv_lib_util_setproctitle=no
4415 fi
4416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4417 LIBS=$ac_check_lib_save_LIBS
4418 fi
4419 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4420 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4421 if test $ac_cv_lib_util_setproctitle = yes; then
4422   cat >>confdefs.h <<_ACEOF
4423 #define HAVE_LIBUTIL 1
4424 _ACEOF
4425
4426   LIBS="-lutil $LIBS"
4427
4428 fi
4429
4430
4431 echo "$as_me:$LINENO: checking for main in -lm" >&5
4432 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4433 if test "${ac_cv_lib_m_main+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   ac_check_lib_save_LIBS=$LIBS
4437 LIBS="-lm  $LIBS"
4438 cat >conftest.$ac_ext <<_ACEOF
4439 #line $LINENO "configure"
4440 #include "confdefs.h"
4441
4442
4443 #ifdef F77_DUMMY_MAIN
4444 #  ifdef __cplusplus
4445      extern "C"
4446 #  endif
4447    int F77_DUMMY_MAIN() { return 1; }
4448 #endif
4449 int
4450 main ()
4451 {
4452 main ();
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459   (eval $ac_link) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -s conftest$ac_exeext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_cv_lib_m_main=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_cv_lib_m_main=no
4474 fi
4475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476 LIBS=$ac_check_lib_save_LIBS
4477 fi
4478 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4479 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4480 if test $ac_cv_lib_m_main = yes; then
4481   cat >>confdefs.h <<_ACEOF
4482 #define HAVE_LIBM 1
4483 _ACEOF
4484
4485   LIBS="-lm $LIBS"
4486
4487 fi
4488
4489
4490 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4491 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4492 if test "${ac_cv_lib_dl_main+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   ac_check_lib_save_LIBS=$LIBS
4496 LIBS="-ldl  $LIBS"
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4500
4501
4502 #ifdef F77_DUMMY_MAIN
4503 #  ifdef __cplusplus
4504      extern "C"
4505 #  endif
4506    int F77_DUMMY_MAIN() { return 1; }
4507 #endif
4508 int
4509 main ()
4510 {
4511 main ();
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext conftest$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518   (eval $ac_link) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -s conftest$ac_exeext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_lib_dl_main=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 ac_cv_lib_dl_main=no
4533 fi
4534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_check_lib_save_LIBS
4536 fi
4537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4538 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4539 if test $ac_cv_lib_dl_main = yes; then
4540   cat >>confdefs.h <<_ACEOF
4541 #define HAVE_LIBDL 1
4542 _ACEOF
4543
4544   LIBS="-ldl $LIBS"
4545
4546 fi
4547
4548
4549 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4550 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4551 if test "${ac_cv_lib_nsl_main+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   ac_check_lib_save_LIBS=$LIBS
4555 LIBS="-lnsl  $LIBS"
4556 cat >conftest.$ac_ext <<_ACEOF
4557 #line $LINENO "configure"
4558 #include "confdefs.h"
4559
4560
4561 #ifdef F77_DUMMY_MAIN
4562 #  ifdef __cplusplus
4563      extern "C"
4564 #  endif
4565    int F77_DUMMY_MAIN() { return 1; }
4566 #endif
4567 int
4568 main ()
4569 {
4570 main ();
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577   (eval $ac_link) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } &&
4581          { ac_try='test -s conftest$ac_exeext'
4582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583   (eval $ac_try) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; }; then
4587   ac_cv_lib_nsl_main=yes
4588 else
4589   echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 ac_cv_lib_nsl_main=no
4592 fi
4593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 LIBS=$ac_check_lib_save_LIBS
4595 fi
4596 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4597 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4598 if test $ac_cv_lib_nsl_main = yes; then
4599   cat >>confdefs.h <<_ACEOF
4600 #define HAVE_LIBNSL 1
4601 _ACEOF
4602
4603   LIBS="-lnsl $LIBS"
4604
4605 fi
4606
4607
4608 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4609 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4610 if test "${ac_cv_lib_socket_main+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-lsocket  $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4616 #line $LINENO "configure"
4617 #include "confdefs.h"
4618
4619
4620 #ifdef F77_DUMMY_MAIN
4621 #  ifdef __cplusplus
4622      extern "C"
4623 #  endif
4624    int F77_DUMMY_MAIN() { return 1; }
4625 #endif
4626 int
4627 main ()
4628 {
4629 main ();
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636   (eval $ac_link) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); } &&
4640          { ac_try='test -s conftest$ac_exeext'
4641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642   (eval $ac_try) 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   ac_cv_lib_socket_main=yes
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 ac_cv_lib_socket_main=no
4651 fi
4652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4653 LIBS=$ac_check_lib_save_LIBS
4654 fi
4655 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4656 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4657 if test $ac_cv_lib_socket_main = yes; then
4658   cat >>confdefs.h <<_ACEOF
4659 #define HAVE_LIBSOCKET 1
4660 _ACEOF
4661
4662   LIBS="-lsocket $LIBS"
4663
4664 fi
4665
4666
4667 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4668 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4669 if test "${ac_cv_lib_ipc_main+set}" = set; then
4670   echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672   ac_check_lib_save_LIBS=$LIBS
4673 LIBS="-lipc  $LIBS"
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line $LINENO "configure"
4676 #include "confdefs.h"
4677
4678
4679 #ifdef F77_DUMMY_MAIN
4680 #  ifdef __cplusplus
4681      extern "C"
4682 #  endif
4683    int F77_DUMMY_MAIN() { return 1; }
4684 #endif
4685 int
4686 main ()
4687 {
4688 main ();
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695   (eval $ac_link) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -s conftest$ac_exeext'
4700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701   (eval $ac_try) 2>&5
4702   ac_status=$?
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); }; }; then
4705   ac_cv_lib_ipc_main=yes
4706 else
4707   echo "$as_me: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4709 ac_cv_lib_ipc_main=no
4710 fi
4711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4712 LIBS=$ac_check_lib_save_LIBS
4713 fi
4714 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4715 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4716 if test $ac_cv_lib_ipc_main = yes; then
4717   cat >>confdefs.h <<_ACEOF
4718 #define HAVE_LIBIPC 1
4719 _ACEOF
4720
4721   LIBS="-lipc $LIBS"
4722
4723 fi
4724
4725
4726 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4727 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4728 if test "${ac_cv_lib_IPC_main+set}" = set; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   ac_check_lib_save_LIBS=$LIBS
4732 LIBS="-lIPC  $LIBS"
4733 cat >conftest.$ac_ext <<_ACEOF
4734 #line $LINENO "configure"
4735 #include "confdefs.h"
4736
4737
4738 #ifdef F77_DUMMY_MAIN
4739 #  ifdef __cplusplus
4740      extern "C"
4741 #  endif
4742    int F77_DUMMY_MAIN() { return 1; }
4743 #endif
4744 int
4745 main ()
4746 {
4747 main ();
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754   (eval $ac_link) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } &&
4758          { ac_try='test -s conftest$ac_exeext'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   ac_cv_lib_IPC_main=yes
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 ac_cv_lib_IPC_main=no
4769 fi
4770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4771 LIBS=$ac_check_lib_save_LIBS
4772 fi
4773 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4774 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4775 if test $ac_cv_lib_IPC_main = yes; then
4776   cat >>confdefs.h <<_ACEOF
4777 #define HAVE_LIBIPC 1
4778 _ACEOF
4779
4780   LIBS="-lIPC $LIBS"
4781
4782 fi
4783
4784
4785 echo "$as_me:$LINENO: checking for main in -llc" >&5
4786 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4787 if test "${ac_cv_lib_lc_main+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   ac_check_lib_save_LIBS=$LIBS
4791 LIBS="-llc  $LIBS"
4792 cat >conftest.$ac_ext <<_ACEOF
4793 #line $LINENO "configure"
4794 #include "confdefs.h"
4795
4796
4797 #ifdef F77_DUMMY_MAIN
4798 #  ifdef __cplusplus
4799      extern "C"
4800 #  endif
4801    int F77_DUMMY_MAIN() { return 1; }
4802 #endif
4803 int
4804 main ()
4805 {
4806 main ();
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813   (eval $ac_link) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } &&
4817          { ac_try='test -s conftest$ac_exeext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_cv_lib_lc_main=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 ac_cv_lib_lc_main=no
4828 fi
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 LIBS=$ac_check_lib_save_LIBS
4831 fi
4832 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4833 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4834 if test $ac_cv_lib_lc_main = yes; then
4835   cat >>confdefs.h <<_ACEOF
4836 #define HAVE_LIBLC 1
4837 _ACEOF
4838
4839   LIBS="-llc $LIBS"
4840
4841 fi
4842
4843
4844 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4845 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4846 if test "${ac_cv_lib_dld_main+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   ac_check_lib_save_LIBS=$LIBS
4850 LIBS="-ldld  $LIBS"
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 #include "confdefs.h"
4854
4855
4856 #ifdef F77_DUMMY_MAIN
4857 #  ifdef __cplusplus
4858      extern "C"
4859 #  endif
4860    int F77_DUMMY_MAIN() { return 1; }
4861 #endif
4862 int
4863 main ()
4864 {
4865 main ();
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872   (eval $ac_link) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } &&
4876          { ac_try='test -s conftest$ac_exeext'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; }; then
4882   ac_cv_lib_dld_main=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 ac_cv_lib_dld_main=no
4887 fi
4888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4889 LIBS=$ac_check_lib_save_LIBS
4890 fi
4891 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4892 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4893 if test $ac_cv_lib_dld_main = yes; then
4894   cat >>confdefs.h <<_ACEOF
4895 #define HAVE_LIBDLD 1
4896 _ACEOF
4897
4898   LIBS="-ldld $LIBS"
4899
4900 fi
4901
4902
4903 echo "$as_me:$LINENO: checking for main in -lld" >&5
4904 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4905 if test "${ac_cv_lib_ld_main+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   ac_check_lib_save_LIBS=$LIBS
4909 LIBS="-lld  $LIBS"
4910 cat >conftest.$ac_ext <<_ACEOF
4911 #line $LINENO "configure"
4912 #include "confdefs.h"
4913
4914
4915 #ifdef F77_DUMMY_MAIN
4916 #  ifdef __cplusplus
4917      extern "C"
4918 #  endif
4919    int F77_DUMMY_MAIN() { return 1; }
4920 #endif
4921 int
4922 main ()
4923 {
4924 main ();
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 rm -f conftest.$ac_objext conftest$ac_exeext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931   (eval $ac_link) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); } &&
4935          { ac_try='test -s conftest$ac_exeext'
4936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937   (eval $ac_try) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; }; then
4941   ac_cv_lib_ld_main=yes
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 ac_cv_lib_ld_main=no
4946 fi
4947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4948 LIBS=$ac_check_lib_save_LIBS
4949 fi
4950 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4951 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4952 if test $ac_cv_lib_ld_main = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define HAVE_LIBLD 1
4955 _ACEOF
4956
4957   LIBS="-lld $LIBS"
4958
4959 fi
4960
4961
4962 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4963 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4964 if test "${ac_cv_lib_compat_main+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   ac_check_lib_save_LIBS=$LIBS
4968 LIBS="-lcompat  $LIBS"
4969 cat >conftest.$ac_ext <<_ACEOF
4970 #line $LINENO "configure"
4971 #include "confdefs.h"
4972
4973
4974 #ifdef F77_DUMMY_MAIN
4975 #  ifdef __cplusplus
4976      extern "C"
4977 #  endif
4978    int F77_DUMMY_MAIN() { return 1; }
4979 #endif
4980 int
4981 main ()
4982 {
4983 main ();
4984   ;
4985   return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.$ac_objext conftest$ac_exeext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990   (eval $ac_link) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } &&
4994          { ac_try='test -s conftest$ac_exeext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   ac_cv_lib_compat_main=yes
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5004 ac_cv_lib_compat_main=no
5005 fi
5006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5007 LIBS=$ac_check_lib_save_LIBS
5008 fi
5009 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5010 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5011 if test $ac_cv_lib_compat_main = yes; then
5012   cat >>confdefs.h <<_ACEOF
5013 #define HAVE_LIBCOMPAT 1
5014 _ACEOF
5015
5016   LIBS="-lcompat $LIBS"
5017
5018 fi
5019
5020
5021 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5022 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5023 if test "${ac_cv_lib_BSD_main+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   ac_check_lib_save_LIBS=$LIBS
5027 LIBS="-lBSD  $LIBS"
5028 cat >conftest.$ac_ext <<_ACEOF
5029 #line $LINENO "configure"
5030 #include "confdefs.h"
5031
5032
5033 #ifdef F77_DUMMY_MAIN
5034 #  ifdef __cplusplus
5035      extern "C"
5036 #  endif
5037    int F77_DUMMY_MAIN() { return 1; }
5038 #endif
5039 int
5040 main ()
5041 {
5042 main ();
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5049   (eval $ac_link) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } &&
5053          { ac_try='test -s conftest$ac_exeext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   ac_cv_lib_BSD_main=yes
5060 else
5061   echo "$as_me: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 ac_cv_lib_BSD_main=no
5064 fi
5065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5066 LIBS=$ac_check_lib_save_LIBS
5067 fi
5068 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5069 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5070 if test $ac_cv_lib_BSD_main = yes; then
5071   cat >>confdefs.h <<_ACEOF
5072 #define HAVE_LIBBSD 1
5073 _ACEOF
5074
5075   LIBS="-lBSD $LIBS"
5076
5077 fi
5078
5079
5080 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5081 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5082 if test "${ac_cv_lib_gen_main+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   ac_check_lib_save_LIBS=$LIBS
5086 LIBS="-lgen  $LIBS"
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 #include "confdefs.h"
5090
5091
5092 #ifdef F77_DUMMY_MAIN
5093 #  ifdef __cplusplus
5094      extern "C"
5095 #  endif
5096    int F77_DUMMY_MAIN() { return 1; }
5097 #endif
5098 int
5099 main ()
5100 {
5101 main ();
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108   (eval $ac_link) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } &&
5112          { ac_try='test -s conftest$ac_exeext'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; }; then
5118   ac_cv_lib_gen_main=yes
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 ac_cv_lib_gen_main=no
5123 fi
5124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5125 LIBS=$ac_check_lib_save_LIBS
5126 fi
5127 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5128 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5129 if test $ac_cv_lib_gen_main = yes; then
5130   cat >>confdefs.h <<_ACEOF
5131 #define HAVE_LIBGEN 1
5132 _ACEOF
5133
5134   LIBS="-lgen $LIBS"
5135
5136 fi
5137
5138
5139 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5140 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5141 if test "${ac_cv_lib_PW_main+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   ac_check_lib_save_LIBS=$LIBS
5145 LIBS="-lPW  $LIBS"
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 #include "confdefs.h"
5149
5150
5151 #ifdef F77_DUMMY_MAIN
5152 #  ifdef __cplusplus
5153      extern "C"
5154 #  endif
5155    int F77_DUMMY_MAIN() { return 1; }
5156 #endif
5157 int
5158 main ()
5159 {
5160 main ();
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5167   (eval $ac_link) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -s conftest$ac_exeext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_lib_PW_main=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_cv_lib_PW_main=no
5182 fi
5183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_check_lib_save_LIBS
5185 fi
5186 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5187 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5188 if test $ac_cv_lib_PW_main = yes; then
5189   cat >>confdefs.h <<_ACEOF
5190 #define HAVE_LIBPW 1
5191 _ACEOF
5192
5193   LIBS="-lPW $LIBS"
5194
5195 fi
5196
5197
5198 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5199 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5200 if test "${ac_cv_lib_resolv_main+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lresolv  $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 #include "confdefs.h"
5208
5209
5210 #ifdef F77_DUMMY_MAIN
5211 #  ifdef __cplusplus
5212      extern "C"
5213 #  endif
5214    int F77_DUMMY_MAIN() { return 1; }
5215 #endif
5216 int
5217 main ()
5218 {
5219 main ();
5220   ;
5221   return 0;
5222 }
5223 _ACEOF
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226   (eval $ac_link) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } &&
5230          { ac_try='test -s conftest$ac_exeext'
5231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232   (eval $ac_try) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }; }; then
5236   ac_cv_lib_resolv_main=yes
5237 else
5238   echo "$as_me: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 ac_cv_lib_resolv_main=no
5241 fi
5242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5244 fi
5245 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5246 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5247 if test $ac_cv_lib_resolv_main = yes; then
5248   cat >>confdefs.h <<_ACEOF
5249 #define HAVE_LIBRESOLV 1
5250 _ACEOF
5251
5252   LIBS="-lresolv $LIBS"
5253
5254 fi
5255
5256 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5257 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5258 if test "${ac_cv_search_getopt_long+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   ac_func_search_save_LIBS=$LIBS
5262 ac_cv_search_getopt_long=no
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266
5267 /* Override any gcc2 internal prototype to avoid an error.  */
5268 #ifdef __cplusplus
5269 extern "C"
5270 #endif
5271 /* We use char because int might match the return type of a gcc2
5272    builtin and then its argument prototype would still apply.  */
5273 char getopt_long ();
5274 #ifdef F77_DUMMY_MAIN
5275 #  ifdef __cplusplus
5276      extern "C"
5277 #  endif
5278    int F77_DUMMY_MAIN() { return 1; }
5279 #endif
5280 int
5281 main ()
5282 {
5283 getopt_long ();
5284   ;
5285   return 0;
5286 }
5287 _ACEOF
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290   (eval $ac_link) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } &&
5294          { ac_try='test -s conftest$ac_exeext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   ac_cv_search_getopt_long="none required"
5301 else
5302   echo "$as_me: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5304 fi
5305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5306 if test "$ac_cv_search_getopt_long" = no; then
5307   for ac_lib in getopt gnugetopt; do
5308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
5347 break
5348 else
5349   echo "$as_me: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 fi
5352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5353   done
5354 fi
5355 LIBS=$ac_func_search_save_LIBS
5356 fi
5357 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5358 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5359 if test "$ac_cv_search_getopt_long" != no; then
5360   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5361
5362 fi
5363
5364 # QNX:
5365
5366 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5367 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5368 if test "${ac_cv_lib_unix_main+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-lunix  $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 #include "confdefs.h"
5376
5377
5378 #ifdef F77_DUMMY_MAIN
5379 #  ifdef __cplusplus
5380      extern "C"
5381 #  endif
5382    int F77_DUMMY_MAIN() { return 1; }
5383 #endif
5384 int
5385 main ()
5386 {
5387 main ();
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394   (eval $ac_link) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } &&
5398          { ac_try='test -s conftest$ac_exeext'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404   ac_cv_lib_unix_main=yes
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 ac_cv_lib_unix_main=no
5409 fi
5410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5414 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5415 if test $ac_cv_lib_unix_main = yes; then
5416   cat >>confdefs.h <<_ACEOF
5417 #define HAVE_LIBUNIX 1
5418 _ACEOF
5419
5420   LIBS="-lunix $LIBS"
5421
5422 fi
5423
5424 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5425 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5426 if test "${ac_cv_search_crypt+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_func_search_save_LIBS=$LIBS
5430 ac_cv_search_crypt=no
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 #include "confdefs.h"
5434
5435 /* Override any gcc2 internal prototype to avoid an error.  */
5436 #ifdef __cplusplus
5437 extern "C"
5438 #endif
5439 /* We use char because int might match the return type of a gcc2
5440    builtin and then its argument prototype would still apply.  */
5441 char crypt ();
5442 #ifdef F77_DUMMY_MAIN
5443 #  ifdef __cplusplus
5444      extern "C"
5445 #  endif
5446    int F77_DUMMY_MAIN() { return 1; }
5447 #endif
5448 int
5449 main ()
5450 {
5451 crypt ();
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -s conftest$ac_exeext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_cv_search_crypt="none required"
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 fi
5473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5474 if test "$ac_cv_search_crypt" = no; then
5475   for ac_lib in crypt; do
5476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
5515 break
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 fi
5520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5521   done
5522 fi
5523 LIBS=$ac_func_search_save_LIBS
5524 fi
5525 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5526 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5527 if test "$ac_cv_search_crypt" != no; then
5528   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5529
5530 fi
5531
5532 # BeOS:
5533 if test "$PORTNAME" = "beos"
5534 then
5535
5536 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5537 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5538 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   ac_check_lib_save_LIBS=$LIBS
5542 LIBS="-lbind  $LIBS"
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 #include "confdefs.h"
5546
5547 /* Override any gcc2 internal prototype to avoid an error.  */
5548 #ifdef __cplusplus
5549 extern "C"
5550 #endif
5551 /* We use char because int might match the return type of a gcc2
5552    builtin and then its argument prototype would still apply.  */
5553 char __inet_ntoa ();
5554 #ifdef F77_DUMMY_MAIN
5555 #  ifdef __cplusplus
5556      extern "C"
5557 #  endif
5558    int F77_DUMMY_MAIN() { return 1; }
5559 #endif
5560 int
5561 main ()
5562 {
5563 __inet_ntoa ();
5564   ;
5565   return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570   (eval $ac_link) 2>&5
5571   ac_status=$?
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } &&
5574          { ac_try='test -s conftest$ac_exeext'
5575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576   (eval $ac_try) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }; }; then
5580   ac_cv_lib_bind___inet_ntoa=yes
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 ac_cv_lib_bind___inet_ntoa=no
5585 fi
5586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5590 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5591 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5592   cat >>confdefs.h <<_ACEOF
5593 #define HAVE_LIBBIND 1
5594 _ACEOF
5595
5596   LIBS="-lbind $LIBS"
5597
5598 fi
5599
5600 fi
5601 # Solaris:
5602 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5603 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5604 if test "${ac_cv_search_fdatasync+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   ac_func_search_save_LIBS=$LIBS
5608 ac_cv_search_fdatasync=no
5609 cat >conftest.$ac_ext <<_ACEOF
5610 #line $LINENO "configure"
5611 #include "confdefs.h"
5612
5613 /* Override any gcc2 internal prototype to avoid an error.  */
5614 #ifdef __cplusplus
5615 extern "C"
5616 #endif
5617 /* We use char because int might match the return type of a gcc2
5618    builtin and then its argument prototype would still apply.  */
5619 char fdatasync ();
5620 #ifdef F77_DUMMY_MAIN
5621 #  ifdef __cplusplus
5622      extern "C"
5623 #  endif
5624    int F77_DUMMY_MAIN() { return 1; }
5625 #endif
5626 int
5627 main ()
5628 {
5629 fdatasync ();
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext conftest$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636   (eval $ac_link) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -s conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   ac_cv_search_fdatasync="none required"
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 fi
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652 if test "$ac_cv_search_fdatasync" = no; then
5653   for ac_lib in rt posix4; do
5654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
5693 break
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 cat conftest.$ac_ext >&5
5697 fi
5698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5699   done
5700 fi
5701 LIBS=$ac_func_search_save_LIBS
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5704 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5705 if test "$ac_cv_search_fdatasync" != no; then
5706   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5707
5708 fi
5709
5710 # Cygwin:
5711
5712 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5713 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5714 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lcygipc  $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5722
5723 /* Override any gcc2 internal prototype to avoid an error.  */
5724 #ifdef __cplusplus
5725 extern "C"
5726 #endif
5727 /* We use char because int might match the return type of a gcc2
5728    builtin and then its argument prototype would still apply.  */
5729 char shmget ();
5730 #ifdef F77_DUMMY_MAIN
5731 #  ifdef __cplusplus
5732      extern "C"
5733 #  endif
5734    int F77_DUMMY_MAIN() { return 1; }
5735 #endif
5736 int
5737 main ()
5738 {
5739 shmget ();
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746   (eval $ac_link) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } &&
5750          { ac_try='test -s conftest$ac_exeext'
5751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752   (eval $ac_try) 2>&5
5753   ac_status=$?
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); }; }; then
5756   ac_cv_lib_cygipc_shmget=yes
5757 else
5758   echo "$as_me: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 ac_cv_lib_cygipc_shmget=no
5761 fi
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5764 fi
5765 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5766 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5767 if test $ac_cv_lib_cygipc_shmget = yes; then
5768   cat >>confdefs.h <<_ACEOF
5769 #define HAVE_LIBCYGIPC 1
5770 _ACEOF
5771
5772   LIBS="-lcygipc $LIBS"
5773
5774 fi
5775
5776 # WIN32:
5777 if test "$PORTNAME" = "win32"
5778 then
5779
5780 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5781 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5782 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   ac_check_lib_save_LIBS=$LIBS
5786 LIBS="-lwsock32  $LIBS"
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5789 #include "confdefs.h"
5790
5791
5792 #ifdef F77_DUMMY_MAIN
5793 #  ifdef __cplusplus
5794      extern "C"
5795 #  endif
5796    int F77_DUMMY_MAIN() { return 1; }
5797 #endif
5798 int
5799 main ()
5800 {
5801 main ();
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808   (eval $ac_link) 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -s conftest$ac_exeext'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   ac_cv_lib_wsock32_main=yes
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5822 ac_cv_lib_wsock32_main=no
5823 fi
5824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825 LIBS=$ac_check_lib_save_LIBS
5826 fi
5827 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5828 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5829 if test $ac_cv_lib_wsock32_main = yes; then
5830   cat >>confdefs.h <<_ACEOF
5831 #define HAVE_LIBWSOCK32 1
5832 _ACEOF
5833
5834   LIBS="-lwsock32 $LIBS"
5835
5836 fi
5837
5838 fi
5839
5840 if test "$with_readline" = yes; then
5841
5842 echo "$as_me:$LINENO: checking for readline" >&5
5843 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5844
5845 if test "${pgac_cv_check_readline+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   pgac_cv_check_readline=no
5849 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5850   for pgac_rllib in -lreadline -ledit ; do
5851     pgac_save_LIBS=$LIBS
5852     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5853     cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 #include "confdefs.h"
5856
5857 /* Override any gcc2 internal prototype to avoid an error.  */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 /* We use char because int might match the return type of a gcc2
5862    builtin and then its argument prototype would still apply.  */
5863 char readline ();
5864 #ifdef F77_DUMMY_MAIN
5865 #  ifdef __cplusplus
5866      extern "C"
5867 #  endif
5868    int F77_DUMMY_MAIN() { return 1; }
5869 #endif
5870 int
5871 main ()
5872 {
5873 readline ();
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880   (eval $ac_link) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } &&
5884          { ac_try='test -s conftest$ac_exeext'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; }; then
5890
5891       # NetBSD and OpenBSD have a broken linker that does not
5892       # recognize dependent libraries
5893       case $host_os in netbsd* | openbsd* )
5894         case $pgac_lib in
5895           *curses*) ;;
5896           *) pgac_lib=" -lcurses" ;;
5897         esac
5898       esac
5899
5900       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5901       break 2
5902
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 fi
5907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5908     LIBS=$pgac_save_LIBS
5909   done
5910 done
5911 LIBS=$pgac_save_LIBS
5912
5913 fi
5914
5915 if test "$pgac_cv_check_readline" != no ; then
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_LIBREADLINE 1
5919 _ACEOF
5920
5921   LIBS="$pgac_cv_check_readline $LIBS"
5922   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5923 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5924 else
5925   echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5927 fi
5928   if test x"$pgac_cv_check_readline" = x"no"; then
5929     { { echo "$as_me:$LINENO: error: readline library not found
5930 If you have readline already installed, see config.log for details on the
5931 failure.  It is possible the compiler isn't looking in the proper directory.
5932 Use --without-readline to disable readline support." >&5
5933 echo "$as_me: error: readline library not found
5934 If you have readline already installed, see config.log for details on the
5935 failure.  It is possible the compiler isn't looking in the proper directory.
5936 Use --without-readline to disable readline support." >&2;}
5937    { (exit 1); exit 1; }; }
5938   fi
5939 fi
5940
5941 if test "$with_zlib" = yes; then
5942
5943 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5944 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5945 if test "${ac_cv_lib_z_inflate+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   ac_check_lib_save_LIBS=$LIBS
5949 LIBS="-lz  $LIBS"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 #include "confdefs.h"
5953
5954 /* Override any gcc2 internal prototype to avoid an error.  */
5955 #ifdef __cplusplus
5956 extern "C"
5957 #endif
5958 /* We use char because int might match the return type of a gcc2
5959    builtin and then its argument prototype would still apply.  */
5960 char inflate ();
5961 #ifdef F77_DUMMY_MAIN
5962 #  ifdef __cplusplus
5963      extern "C"
5964 #  endif
5965    int F77_DUMMY_MAIN() { return 1; }
5966 #endif
5967 int
5968 main ()
5969 {
5970 inflate ();
5971   ;
5972   return 0;
5973 }
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977   (eval $ac_link) 2>&5
5978   ac_status=$?
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } &&
5981          { ac_try='test -s conftest$ac_exeext'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   ac_cv_lib_z_inflate=yes
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 ac_cv_lib_z_inflate=no
5992 fi
5993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5995 fi
5996 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5997 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5998 if test $ac_cv_lib_z_inflate = yes; then
5999   cat >>confdefs.h <<_ACEOF
6000 #define HAVE_LIBZ 1
6001 _ACEOF
6002
6003   LIBS="-lz $LIBS"
6004
6005 else
6006   { { echo "$as_me:$LINENO: error: zlib library not found
6007 If you have zlib already installed, see config.log for details on the
6008 failure.  It is possible the compiler isn't looking in the proper directory.
6009 Use --without-zlib to disable zlib support." >&5
6010 echo "$as_me: error: zlib library not found
6011 If you have zlib already installed, see config.log for details on the
6012 failure.  It is possible the compiler isn't looking in the proper directory.
6013 Use --without-zlib to disable zlib support." >&2;}
6014    { (exit 1); exit 1; }; }
6015 fi
6016
6017 fi
6018
6019 if test "$enable_spinlocks" = yes; then
6020
6021 cat >>confdefs.h <<\_ACEOF
6022 #define HAVE_SPINLOCKS 1
6023 _ACEOF
6024
6025 else
6026   { echo "$as_me:$LINENO: WARNING:
6027 *** Not using spinlocks will cause poor performance." >&5
6028 echo "$as_me: WARNING:
6029 *** Not using spinlocks will cause poor performance." >&2;}
6030 fi
6031
6032 if test "$with_krb4" = yes ; then
6033
6034 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6035 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6036 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   ac_check_lib_save_LIBS=$LIBS
6040 LIBS="-ldes  $LIBS"
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6044
6045 /* Override any gcc2 internal prototype to avoid an error.  */
6046 #ifdef __cplusplus
6047 extern "C"
6048 #endif
6049 /* We use char because int might match the return type of a gcc2
6050    builtin and then its argument prototype would still apply.  */
6051 char des_encrypt ();
6052 #ifdef F77_DUMMY_MAIN
6053 #  ifdef __cplusplus
6054      extern "C"
6055 #  endif
6056    int F77_DUMMY_MAIN() { return 1; }
6057 #endif
6058 int
6059 main ()
6060 {
6061 des_encrypt ();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068   (eval $ac_link) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } &&
6072          { ac_try='test -s conftest$ac_exeext'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   ac_cv_lib_des_des_encrypt=yes
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 ac_cv_lib_des_des_encrypt=no
6083 fi
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6088 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6089 if test $ac_cv_lib_des_des_encrypt = yes; then
6090   cat >>confdefs.h <<_ACEOF
6091 #define HAVE_LIBDES 1
6092 _ACEOF
6093
6094   LIBS="-ldes $LIBS"
6095
6096 else
6097   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6098 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6099    { (exit 1); exit 1; }; }
6100 fi
6101
6102
6103 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6104 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6105 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lkrb  $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6112 #include "confdefs.h"
6113
6114 /* Override any gcc2 internal prototype to avoid an error.  */
6115 #ifdef __cplusplus
6116 extern "C"
6117 #endif
6118 /* We use char because int might match the return type of a gcc2
6119    builtin and then its argument prototype would still apply.  */
6120 char krb_sendauth ();
6121 #ifdef F77_DUMMY_MAIN
6122 #  ifdef __cplusplus
6123      extern "C"
6124 #  endif
6125    int F77_DUMMY_MAIN() { return 1; }
6126 #endif
6127 int
6128 main ()
6129 {
6130 krb_sendauth ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137   (eval $ac_link) 2>&5
6138   ac_status=$?
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -s conftest$ac_exeext'
6142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143   (eval $ac_try) 2>&5
6144   ac_status=$?
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); }; }; then
6147   ac_cv_lib_krb_krb_sendauth=yes
6148 else
6149   echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6151 ac_cv_lib_krb_krb_sendauth=no
6152 fi
6153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6154 LIBS=$ac_check_lib_save_LIBS
6155 fi
6156 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6157 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6158 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6159   cat >>confdefs.h <<_ACEOF
6160 #define HAVE_LIBKRB 1
6161 _ACEOF
6162
6163   LIBS="-lkrb $LIBS"
6164
6165 else
6166   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6167 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6168    { (exit 1); exit 1; }; }
6169 fi
6170
6171
6172 for ac_func in gethostname
6173 do
6174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6175 echo "$as_me:$LINENO: checking for $ac_func" >&5
6176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_var+set}\" = set"; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   cat >conftest.$ac_ext <<_ACEOF
6181 #line $LINENO "configure"
6182 #include "confdefs.h"
6183 /* System header to define __stub macros and hopefully few prototypes,
6184     which can conflict with char $ac_func (); below.  */
6185 #include <assert.h>
6186 /* Override any gcc2 internal prototype to avoid an error.  */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 /* We use char because int might match the return type of a gcc2
6191    builtin and then its argument prototype would still apply.  */
6192 char $ac_func ();
6193 char (*f) ();
6194
6195 #ifdef F77_DUMMY_MAIN
6196 #  ifdef __cplusplus
6197      extern "C"
6198 #  endif
6199    int F77_DUMMY_MAIN() { return 1; }
6200 #endif
6201 int
6202 main ()
6203 {
6204 /* The GNU C library defines this for functions which it implements
6205     to always fail with ENOSYS.  Some functions are actually named
6206     something starting with __ and the normal name is an alias.  */
6207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6208 choke me
6209 #else
6210 f = $ac_func;
6211 #endif
6212
6213   ;
6214   return 0;
6215 }
6216 _ACEOF
6217 rm -f conftest.$ac_objext conftest$ac_exeext
6218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219   (eval $ac_link) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } &&
6223          { ac_try='test -s conftest$ac_exeext'
6224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225   (eval $ac_try) 2>&5
6226   ac_status=$?
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; }; then
6229   eval "$as_ac_var=yes"
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6233 eval "$as_ac_var=no"
6234 fi
6235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6236 fi
6237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6239 if test `eval echo '${'$as_ac_var'}'` = yes; then
6240   cat >>confdefs.h <<_ACEOF
6241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6242 _ACEOF
6243
6244 else
6245   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6246 fi
6247 done
6248
6249
6250 fi
6251
6252 if test "$with_krb5" = yes ; then
6253   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6254 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6255 if test "${ac_cv_search_com_err+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   ac_func_search_save_LIBS=$LIBS
6259 ac_cv_search_com_err=no
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6262 #include "confdefs.h"
6263
6264 /* Override any gcc2 internal prototype to avoid an error.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 /* We use char because int might match the return type of a gcc2
6269    builtin and then its argument prototype would still apply.  */
6270 char com_err ();
6271 #ifdef F77_DUMMY_MAIN
6272 #  ifdef __cplusplus
6273      extern "C"
6274 #  endif
6275    int F77_DUMMY_MAIN() { return 1; }
6276 #endif
6277 int
6278 main ()
6279 {
6280 com_err ();
6281   ;
6282   return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287   (eval $ac_link) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } &&
6291          { ac_try='test -s conftest$ac_exeext'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; }; then
6297   ac_cv_search_com_err="none required"
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 fi
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 if test "$ac_cv_search_com_err" = no; then
6304   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6306     cat >conftest.$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6309
6310 /* Override any gcc2 internal prototype to avoid an error.  */
6311 #ifdef __cplusplus
6312 extern "C"
6313 #endif
6314 /* We use char because int might match the return type of a gcc2
6315    builtin and then its argument prototype would still apply.  */
6316 char com_err ();
6317 #ifdef F77_DUMMY_MAIN
6318 #  ifdef __cplusplus
6319      extern "C"
6320 #  endif
6321    int F77_DUMMY_MAIN() { return 1; }
6322 #endif
6323 int
6324 main ()
6325 {
6326 com_err ();
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333   (eval $ac_link) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -s conftest$ac_exeext'
6338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339   (eval $ac_try) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }; }; then
6343   ac_cv_search_com_err="-l$ac_lib"
6344 break
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 fi
6349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6350   done
6351 fi
6352 LIBS=$ac_func_search_save_LIBS
6353 fi
6354 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6355 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6356 if test "$ac_cv_search_com_err" != no; then
6357   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6358
6359 else
6360   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6361 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6362    { (exit 1); exit 1; }; }
6363 fi
6364
6365   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6366 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6367 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   ac_func_search_save_LIBS=$LIBS
6371 ac_cv_search_krb5_encrypt=no
6372 cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375
6376 /* Override any gcc2 internal prototype to avoid an error.  */
6377 #ifdef __cplusplus
6378 extern "C"
6379 #endif
6380 /* We use char because int might match the return type of a gcc2
6381    builtin and then its argument prototype would still apply.  */
6382 char krb5_encrypt ();
6383 #ifdef F77_DUMMY_MAIN
6384 #  ifdef __cplusplus
6385      extern "C"
6386 #  endif
6387    int F77_DUMMY_MAIN() { return 1; }
6388 #endif
6389 int
6390 main ()
6391 {
6392 krb5_encrypt ();
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399   (eval $ac_link) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -s conftest$ac_exeext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_cv_search_krb5_encrypt="none required"
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 fi
6414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6415 if test "$ac_cv_search_krb5_encrypt" = no; then
6416   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6418     cat >conftest.$ac_ext <<_ACEOF
6419 #line $LINENO "configure"
6420 #include "confdefs.h"
6421
6422 /* Override any gcc2 internal prototype to avoid an error.  */
6423 #ifdef __cplusplus
6424 extern "C"
6425 #endif
6426 /* We use char because int might match the return type of a gcc2
6427    builtin and then its argument prototype would still apply.  */
6428 char krb5_encrypt ();
6429 #ifdef F77_DUMMY_MAIN
6430 #  ifdef __cplusplus
6431      extern "C"
6432 #  endif
6433    int F77_DUMMY_MAIN() { return 1; }
6434 #endif
6435 int
6436 main ()
6437 {
6438 krb5_encrypt ();
6439   ;
6440   return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445   (eval $ac_link) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -s conftest$ac_exeext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   ac_cv_search_krb5_encrypt="-l$ac_lib"
6456 break
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6460 fi
6461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6462   done
6463 fi
6464 LIBS=$ac_func_search_save_LIBS
6465 fi
6466 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6467 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6468 if test "$ac_cv_search_krb5_encrypt" != no; then
6469   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6470
6471 else
6472   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6473 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6474    { (exit 1); exit 1; }; }
6475 fi
6476
6477   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6478 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6479 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   ac_func_search_save_LIBS=$LIBS
6483 ac_cv_search_krb5_sendauth=no
6484 cat >conftest.$ac_ext <<_ACEOF
6485 #line $LINENO "configure"
6486 #include "confdefs.h"
6487
6488 /* Override any gcc2 internal prototype to avoid an error.  */
6489 #ifdef __cplusplus
6490 extern "C"
6491 #endif
6492 /* We use char because int might match the return type of a gcc2
6493    builtin and then its argument prototype would still apply.  */
6494 char krb5_sendauth ();
6495 #ifdef F77_DUMMY_MAIN
6496 #  ifdef __cplusplus
6497      extern "C"
6498 #  endif
6499    int F77_DUMMY_MAIN() { return 1; }
6500 #endif
6501 int
6502 main ()
6503 {
6504 krb5_sendauth ();
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511   (eval $ac_link) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); } &&
6515          { ac_try='test -s conftest$ac_exeext'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; }; then
6521   ac_cv_search_krb5_sendauth="none required"
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 fi
6526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6527 if test "$ac_cv_search_krb5_sendauth" = no; then
6528   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6530     cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 #include "confdefs.h"
6533
6534 /* Override any gcc2 internal prototype to avoid an error.  */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 /* We use char because int might match the return type of a gcc2
6539    builtin and then its argument prototype would still apply.  */
6540 char krb5_sendauth ();
6541 #ifdef F77_DUMMY_MAIN
6542 #  ifdef __cplusplus
6543      extern "C"
6544 #  endif
6545    int F77_DUMMY_MAIN() { return 1; }
6546 #endif
6547 int
6548 main ()
6549 {
6550 krb5_sendauth ();
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557   (eval $ac_link) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } &&
6561          { ac_try='test -s conftest$ac_exeext'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   ac_cv_search_krb5_sendauth="-l$ac_lib"
6568 break
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 fi
6573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6574   done
6575 fi
6576 LIBS=$ac_func_search_save_LIBS
6577 fi
6578 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6579 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6580 if test "$ac_cv_search_krb5_sendauth" != no; then
6581   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6582
6583 else
6584   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6585 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6586    { (exit 1); exit 1; }; }
6587 fi
6588
6589 fi
6590
6591 if test "$with_openssl" = yes ; then
6592
6593 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6594 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6595 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   ac_check_lib_save_LIBS=$LIBS
6599 LIBS="-lcrypto  $LIBS"
6600 cat >conftest.$ac_ext <<_ACEOF
6601 #line $LINENO "configure"
6602 #include "confdefs.h"
6603
6604 /* Override any gcc2 internal prototype to avoid an error.  */
6605 #ifdef __cplusplus
6606 extern "C"
6607 #endif
6608 /* We use char because int might match the return type of a gcc2
6609    builtin and then its argument prototype would still apply.  */
6610 char CRYPTO_new_ex_data ();
6611 #ifdef F77_DUMMY_MAIN
6612 #  ifdef __cplusplus
6613      extern "C"
6614 #  endif
6615    int F77_DUMMY_MAIN() { return 1; }
6616 #endif
6617 int
6618 main ()
6619 {
6620 CRYPTO_new_ex_data ();
6621   ;
6622   return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627   (eval $ac_link) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -s conftest$ac_exeext'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; }; then
6637   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6638 else
6639   echo "$as_me: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6642 fi
6643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644 LIBS=$ac_check_lib_save_LIBS
6645 fi
6646 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6647 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6648 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6649   cat >>confdefs.h <<_ACEOF
6650 #define HAVE_LIBCRYPTO 1
6651 _ACEOF
6652
6653   LIBS="-lcrypto $LIBS"
6654
6655 else
6656   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6657 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6658    { (exit 1); exit 1; }; }
6659 fi
6660
6661
6662 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6663 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6664 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   ac_check_lib_save_LIBS=$LIBS
6668 LIBS="-lssl  $LIBS"
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6672
6673 /* Override any gcc2 internal prototype to avoid an error.  */
6674 #ifdef __cplusplus
6675 extern "C"
6676 #endif
6677 /* We use char because int might match the return type of a gcc2
6678    builtin and then its argument prototype would still apply.  */
6679 char SSL_library_init ();
6680 #ifdef F77_DUMMY_MAIN
6681 #  ifdef __cplusplus
6682      extern "C"
6683 #  endif
6684    int F77_DUMMY_MAIN() { return 1; }
6685 #endif
6686 int
6687 main ()
6688 {
6689 SSL_library_init ();
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696   (eval $ac_link) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); } &&
6700          { ac_try='test -s conftest$ac_exeext'
6701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702   (eval $ac_try) 2>&5
6703   ac_status=$?
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); }; }; then
6706   ac_cv_lib_ssl_SSL_library_init=yes
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6710 ac_cv_lib_ssl_SSL_library_init=no
6711 fi
6712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6713 LIBS=$ac_check_lib_save_LIBS
6714 fi
6715 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6716 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6717 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6718   cat >>confdefs.h <<_ACEOF
6719 #define HAVE_LIBSSL 1
6720 _ACEOF
6721
6722   LIBS="-lssl $LIBS"
6723
6724 else
6725   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6726 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6727    { (exit 1); exit 1; }; }
6728 fi
6729
6730 fi
6731
6732 if test "$with_pam" = yes ; then
6733
6734 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6735 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6736 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   ac_check_lib_save_LIBS=$LIBS
6740 LIBS="-lpam  $LIBS"
6741 cat >conftest.$ac_ext <<_ACEOF
6742 #line $LINENO "configure"
6743 #include "confdefs.h"
6744
6745 /* Override any gcc2 internal prototype to avoid an error.  */
6746 #ifdef __cplusplus
6747 extern "C"
6748 #endif
6749 /* We use char because int might match the return type of a gcc2
6750    builtin and then its argument prototype would still apply.  */
6751 char pam_start ();
6752 #ifdef F77_DUMMY_MAIN
6753 #  ifdef __cplusplus
6754      extern "C"
6755 #  endif
6756    int F77_DUMMY_MAIN() { return 1; }
6757 #endif
6758 int
6759 main ()
6760 {
6761 pam_start ();
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext conftest$ac_exeext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6768   (eval $ac_link) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } &&
6772          { ac_try='test -s conftest$ac_exeext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_cv_lib_pam_pam_start=yes
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 ac_cv_lib_pam_pam_start=no
6783 fi
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6788 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6789 if test $ac_cv_lib_pam_pam_start = yes; then
6790   cat >>confdefs.h <<_ACEOF
6791 #define HAVE_LIBPAM 1
6792 _ACEOF
6793
6794   LIBS="-lpam $LIBS"
6795
6796 else
6797   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6798 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6799    { (exit 1); exit 1; }; }
6800 fi
6801
6802 fi
6803
6804
6805 ##
6806 ## Header files
6807 ##
6808
6809 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6811 if test "${ac_cv_header_stdc+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6817 #include <stdlib.h>
6818 #include <stdarg.h>
6819 #include <string.h>
6820 #include <float.h>
6821
6822 _ACEOF
6823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6825   ac_status=$?
6826   egrep -v '^ *\+' conftest.er1 >conftest.err
6827   rm -f conftest.er1
6828   cat conftest.err >&5
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } >/dev/null; then
6831   if test -s conftest.err; then
6832     ac_cpp_err=$ac_c_preproc_warn_flag
6833   else
6834     ac_cpp_err=
6835   fi
6836 else
6837   ac_cpp_err=yes
6838 fi
6839 if test -z "$ac_cpp_err"; then
6840   ac_cv_header_stdc=yes
6841 else
6842   echo "$as_me: failed program was:" >&5
6843   cat conftest.$ac_ext >&5
6844   ac_cv_header_stdc=no
6845 fi
6846 rm -f conftest.err conftest.$ac_ext
6847
6848 if test $ac_cv_header_stdc = yes; then
6849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6850   cat >conftest.$ac_ext <<_ACEOF
6851 #line $LINENO "configure"
6852 #include "confdefs.h"
6853 #include <string.h>
6854
6855 _ACEOF
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857   egrep "memchr" >/dev/null 2>&1; then
6858   :
6859 else
6860   ac_cv_header_stdc=no
6861 fi
6862 rm -f conftest*
6863
6864 fi
6865
6866 if test $ac_cv_header_stdc = yes; then
6867   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6868   cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871 #include <stdlib.h>
6872
6873 _ACEOF
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875   egrep "free" >/dev/null 2>&1; then
6876   :
6877 else
6878   ac_cv_header_stdc=no
6879 fi
6880 rm -f conftest*
6881
6882 fi
6883
6884 if test $ac_cv_header_stdc = yes; then
6885   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6886   if test "$cross_compiling" = yes; then
6887   :
6888 else
6889   cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892 #include <ctype.h>
6893 #if ((' ' & 0x0FF) == 0x020)
6894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6896 #else
6897 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6898                      || ('j' <= (c) && (c) <= 'r') \
6899                      || ('s' <= (c) && (c) <= 'z'))
6900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6901 #endif
6902
6903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6904 int
6905 main ()
6906 {
6907   int i;
6908   for (i = 0; i < 256; i++)
6909     if (XOR (islower (i), ISLOWER (i))
6910         || toupper (i) != TOUPPER (i))
6911       exit(2);
6912   exit (0);
6913 }
6914 _ACEOF
6915 rm -f conftest$ac_exeext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6917   (eval $ac_link) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926   :
6927 else
6928   echo "$as_me: program exited with status $ac_status" >&5
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 ( exit $ac_status )
6932 ac_cv_header_stdc=no
6933 fi
6934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 fi
6936 fi
6937 fi
6938 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940 if test $ac_cv_header_stdc = yes; then
6941
6942 cat >>confdefs.h <<\_ACEOF
6943 #define STDC_HEADERS 1
6944 _ACEOF
6945
6946 fi
6947
6948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959                   inttypes.h stdint.h unistd.h
6960 do
6961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6969 #include "confdefs.h"
6970 $ac_includes_default
6971
6972 #include <$ac_header>
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976   (eval $ac_compile) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   eval "$as_ac_Header=yes"
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6990 eval "$as_ac_Header=no"
6991 fi
6992 rm -f conftest.$ac_objext conftest.$ac_ext
6993 fi
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6997   cat >>confdefs.h <<_ACEOF
6998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6999 _ACEOF
7000
7001 fi
7002
7003 done
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027 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
7028 do
7029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7031   echo "$as_me:$LINENO: checking for $ac_header" >&5
7032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 fi
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7038 else
7039   # Is the header compilable?
7040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7043 #line $LINENO "configure"
7044 #include "confdefs.h"
7045 $ac_includes_default
7046 #include <$ac_header>
7047 _ACEOF
7048 rm -f conftest.$ac_objext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7050   (eval $ac_compile) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); } &&
7054          { ac_try='test -s conftest.$ac_objext'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; }; then
7060   ac_header_compiler=yes
7061 else
7062   echo "$as_me: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7064 ac_header_compiler=no
7065 fi
7066 rm -f conftest.$ac_objext conftest.$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7068 echo "${ECHO_T}$ac_header_compiler" >&6
7069
7070 # Is the header present?
7071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 #include "confdefs.h"
7076 #include <$ac_header>
7077 _ACEOF
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080   ac_status=$?
7081   egrep -v '^ *\+' conftest.er1 >conftest.err
7082   rm -f conftest.er1
7083   cat conftest.err >&5
7084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085   (exit $ac_status); } >/dev/null; then
7086   if test -s conftest.err; then
7087     ac_cpp_err=$ac_c_preproc_warn_flag
7088   else
7089     ac_cpp_err=
7090   fi
7091 else
7092   ac_cpp_err=yes
7093 fi
7094 if test -z "$ac_cpp_err"; then
7095   ac_header_preproc=yes
7096 else
7097   echo "$as_me: failed program was:" >&5
7098   cat conftest.$ac_ext >&5
7099   ac_header_preproc=no
7100 fi
7101 rm -f conftest.err conftest.$ac_ext
7102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7103 echo "${ECHO_T}$ac_header_preproc" >&6
7104
7105 # So?  What about this header?
7106 case $ac_header_compiler:$ac_header_preproc in
7107   yes:no )
7108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7112   no:yes )
7113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7115     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7119 esac
7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   eval "$as_ac_Header=$ac_header_preproc"
7126 fi
7127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7129
7130 fi
7131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7132   cat >>confdefs.h <<_ACEOF
7133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7134 _ACEOF
7135
7136 fi
7137
7138 done
7139
7140
7141 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7142 # netinet/in.h is included first.
7143
7144 for ac_header in netinet/in.h
7145 do
7146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148   echo "$as_me:$LINENO: checking for $ac_header" >&5
7149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 fi
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7155 else
7156   # Is the header compilable?
7157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7161 #include "confdefs.h"
7162 $ac_includes_default
7163 #include <$ac_header>
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167   (eval $ac_compile) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); } &&
7171          { ac_try='test -s conftest.$ac_objext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   ac_header_compiler=yes
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 ac_header_compiler=no
7182 fi
7183 rm -f conftest.$ac_objext conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6
7186
7187 # Is the header present?
7188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 #include <$ac_header>
7194 _ACEOF
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197   ac_status=$?
7198   egrep -v '^ *\+' conftest.er1 >conftest.err
7199   rm -f conftest.er1
7200   cat conftest.err >&5
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } >/dev/null; then
7203   if test -s conftest.err; then
7204     ac_cpp_err=$ac_c_preproc_warn_flag
7205   else
7206     ac_cpp_err=
7207   fi
7208 else
7209   ac_cpp_err=yes
7210 fi
7211 if test -z "$ac_cpp_err"; then
7212   ac_header_preproc=yes
7213 else
7214   echo "$as_me: failed program was:" >&5
7215   cat conftest.$ac_ext >&5
7216   ac_header_preproc=no
7217 fi
7218 rm -f conftest.err conftest.$ac_ext
7219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220 echo "${ECHO_T}$ac_header_preproc" >&6
7221
7222 # So?  What about this header?
7223 case $ac_header_compiler:$ac_header_preproc in
7224   yes:no )
7225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7229   no:yes )
7230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7236 esac
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   eval "$as_ac_Header=$ac_header_preproc"
7243 fi
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246
7247 fi
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249   cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 _ACEOF
7252
7253 fi
7254
7255 done
7256
7257
7258 for ac_header in netinet/tcp.h
7259 do
7260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 $ac_includes_default
7270 #ifdef HAVE_NETINET_IN_H
7271 #include <netinet/in.h>
7272 #endif
7273
7274
7275 #include <$ac_header>
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279   (eval $ac_compile) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -s conftest.$ac_objext'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289   eval "$as_ac_Header=yes"
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 eval "$as_ac_Header=no"
7294 fi
7295 rm -f conftest.$ac_objext conftest.$ac_ext
7296 fi
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7300   cat >>confdefs.h <<_ACEOF
7301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309 if test "$with_readline" = yes; then
7310
7311 for ac_header in readline/readline.h
7312 do
7313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7315   echo "$as_me:$LINENO: checking for $ac_header" >&5
7316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 fi
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7322 else
7323   # Is the header compilable?
7324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7328 #include "confdefs.h"
7329 $ac_includes_default
7330 #include <$ac_header>
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334   (eval $ac_compile) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -s conftest.$ac_objext'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; }; then
7344   ac_header_compiler=yes
7345 else
7346   echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 ac_header_compiler=no
7349 fi
7350 rm -f conftest.$ac_objext conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7352 echo "${ECHO_T}$ac_header_compiler" >&6
7353
7354 # Is the header present?
7355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7358 #line $LINENO "configure"
7359 #include "confdefs.h"
7360 #include <$ac_header>
7361 _ACEOF
7362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364   ac_status=$?
7365   egrep -v '^ *\+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } >/dev/null; then
7370   if test -s conftest.err; then
7371     ac_cpp_err=$ac_c_preproc_warn_flag
7372   else
7373     ac_cpp_err=
7374   fi
7375 else
7376   ac_cpp_err=yes
7377 fi
7378 if test -z "$ac_cpp_err"; then
7379   ac_header_preproc=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382   cat conftest.$ac_ext >&5
7383   ac_header_preproc=no
7384 fi
7385 rm -f conftest.err conftest.$ac_ext
7386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7387 echo "${ECHO_T}$ac_header_preproc" >&6
7388
7389 # So?  What about this header?
7390 case $ac_header_compiler:$ac_header_preproc in
7391   yes:no )
7392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7396   no:yes )
7397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7399     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7403 esac
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   eval "$as_ac_Header=$ac_header_preproc"
7410 fi
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7413
7414 fi
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416   cat >>confdefs.h <<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 _ACEOF
7419
7420 else
7421
7422 for ac_header in editline/readline.h
7423 do
7424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426   echo "$as_me:$LINENO: checking for $ac_header" >&5
7427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 fi
7431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7433 else
7434   # Is the header compilable?
7435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line $LINENO "configure"
7439 #include "confdefs.h"
7440 $ac_includes_default
7441 #include <$ac_header>
7442 _ACEOF
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } &&
7449          { ac_try='test -s conftest.$ac_objext'
7450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451   (eval $ac_try) 2>&5
7452   ac_status=$?
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); }; }; then
7455   ac_header_compiler=yes
7456 else
7457   echo "$as_me: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 ac_header_compiler=no
7460 fi
7461 rm -f conftest.$ac_objext conftest.$ac_ext
7462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7463 echo "${ECHO_T}$ac_header_compiler" >&6
7464
7465 # Is the header present?
7466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7470 #include "confdefs.h"
7471 #include <$ac_header>
7472 _ACEOF
7473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7475   ac_status=$?
7476   egrep -v '^ *\+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } >/dev/null; then
7481   if test -s conftest.err; then
7482     ac_cpp_err=$ac_c_preproc_warn_flag
7483   else
7484     ac_cpp_err=
7485   fi
7486 else
7487   ac_cpp_err=yes
7488 fi
7489 if test -z "$ac_cpp_err"; then
7490   ac_header_preproc=yes
7491 else
7492   echo "$as_me: failed program was:" >&5
7493   cat conftest.$ac_ext >&5
7494   ac_header_preproc=no
7495 fi
7496 rm -f conftest.err conftest.$ac_ext
7497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7498 echo "${ECHO_T}$ac_header_preproc" >&6
7499
7500 # So?  What about this header?
7501 case $ac_header_compiler:$ac_header_preproc in
7502   yes:no )
7503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7507   no:yes )
7508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7514 esac
7515 echo "$as_me:$LINENO: checking for $ac_header" >&5
7516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   eval "$as_ac_Header=$ac_header_preproc"
7521 fi
7522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524
7525 fi
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527   cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 _ACEOF
7530
7531 else
7532
7533 for ac_header in readline.h
7534 do
7535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537   echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 fi
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7544 else
7545   # Is the header compilable?
7546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line $LINENO "configure"
7550 #include "confdefs.h"
7551 $ac_includes_default
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556   (eval $ac_compile) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -s conftest.$ac_objext'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; }; then
7566   ac_header_compiler=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 ac_header_compiler=no
7571 fi
7572 rm -f conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7574 echo "${ECHO_T}$ac_header_compiler" >&6
7575
7576 # Is the header present?
7577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 #include <$ac_header>
7583 _ACEOF
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586   ac_status=$?
7587   egrep -v '^ *\+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } >/dev/null; then
7592   if test -s conftest.err; then
7593     ac_cpp_err=$ac_c_preproc_warn_flag
7594   else
7595     ac_cpp_err=
7596   fi
7597 else
7598   ac_cpp_err=yes
7599 fi
7600 if test -z "$ac_cpp_err"; then
7601   ac_header_preproc=yes
7602 else
7603   echo "$as_me: failed program was:" >&5
7604   cat conftest.$ac_ext >&5
7605   ac_header_preproc=no
7606 fi
7607 rm -f conftest.err conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609 echo "${ECHO_T}$ac_header_preproc" >&6
7610
7611 # So?  What about this header?
7612 case $ac_header_compiler:$ac_header_preproc in
7613   yes:no )
7614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7618   no:yes )
7619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7621     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7625 esac
7626 echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   eval "$as_ac_Header=$ac_header_preproc"
7632 fi
7633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7635
7636 fi
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638   cat >>confdefs.h <<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7640 _ACEOF
7641
7642 else
7643   { { echo "$as_me:$LINENO: error: readline header not found
7644 If you have readline already installed, see config.log for details on the
7645 failure.  It is possible the compiler isn't looking in the proper directory.
7646 Use --without-readline to disable readline support." >&5
7647 echo "$as_me: error: readline header not found
7648 If you have readline already installed, see config.log for details on the
7649 failure.  It is possible the compiler isn't looking in the proper directory.
7650 Use --without-readline to disable readline support." >&2;}
7651    { (exit 1); exit 1; }; }
7652 fi
7653
7654 done
7655
7656 fi
7657
7658 done
7659
7660 fi
7661
7662 done
7663
7664
7665 for ac_header in readline/history.h
7666 do
7667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7669   echo "$as_me:$LINENO: checking for $ac_header" >&5
7670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 fi
7674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7676 else
7677   # Is the header compilable?
7678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line $LINENO "configure"
7682 #include "confdefs.h"
7683 $ac_includes_default
7684 #include <$ac_header>
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688   (eval $ac_compile) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -s conftest.$ac_objext'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; }; then
7698   ac_header_compiler=yes
7699 else
7700   echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 ac_header_compiler=no
7703 fi
7704 rm -f conftest.$ac_objext conftest.$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7706 echo "${ECHO_T}$ac_header_compiler" >&6
7707
7708 # Is the header present?
7709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7713 #include "confdefs.h"
7714 #include <$ac_header>
7715 _ACEOF
7716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7718   ac_status=$?
7719   egrep -v '^ *\+' conftest.er1 >conftest.err
7720   rm -f conftest.er1
7721   cat conftest.err >&5
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); } >/dev/null; then
7724   if test -s conftest.err; then
7725     ac_cpp_err=$ac_c_preproc_warn_flag
7726   else
7727     ac_cpp_err=
7728   fi
7729 else
7730   ac_cpp_err=yes
7731 fi
7732 if test -z "$ac_cpp_err"; then
7733   ac_header_preproc=yes
7734 else
7735   echo "$as_me: failed program was:" >&5
7736   cat conftest.$ac_ext >&5
7737   ac_header_preproc=no
7738 fi
7739 rm -f conftest.err conftest.$ac_ext
7740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7741 echo "${ECHO_T}$ac_header_preproc" >&6
7742
7743 # So?  What about this header?
7744 case $ac_header_compiler:$ac_header_preproc in
7745   yes:no )
7746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7750   no:yes )
7751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7753     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7757 esac
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   eval "$as_ac_Header=$ac_header_preproc"
7764 fi
7765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7767
7768 fi
7769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7770   cat >>confdefs.h <<_ACEOF
7771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 _ACEOF
7773
7774 else
7775
7776 for ac_header in editline/history.h
7777 do
7778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7780   echo "$as_me:$LINENO: checking for $ac_header" >&5
7781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 fi
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787 else
7788   # Is the header compilable?
7789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7793 #include "confdefs.h"
7794 $ac_includes_default
7795 #include <$ac_header>
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799   (eval $ac_compile) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } &&
7803          { ac_try='test -s conftest.$ac_objext'
7804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805   (eval $ac_try) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }; }; then
7809   ac_header_compiler=yes
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 ac_header_compiler=no
7814 fi
7815 rm -f conftest.$ac_objext conftest.$ac_ext
7816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7817 echo "${ECHO_T}$ac_header_compiler" >&6
7818
7819 # Is the header present?
7820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 #include "confdefs.h"
7825 #include <$ac_header>
7826 _ACEOF
7827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829   ac_status=$?
7830   egrep -v '^ *\+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } >/dev/null; then
7835   if test -s conftest.err; then
7836     ac_cpp_err=$ac_c_preproc_warn_flag
7837   else
7838     ac_cpp_err=
7839   fi
7840 else
7841   ac_cpp_err=yes
7842 fi
7843 if test -z "$ac_cpp_err"; then
7844   ac_header_preproc=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847   cat conftest.$ac_ext >&5
7848   ac_header_preproc=no
7849 fi
7850 rm -f conftest.err conftest.$ac_ext
7851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852 echo "${ECHO_T}$ac_header_preproc" >&6
7853
7854 # So?  What about this header?
7855 case $ac_header_compiler:$ac_header_preproc in
7856   yes:no )
7857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7861   no:yes )
7862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7864     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7868 esac
7869 echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   eval "$as_ac_Header=$ac_header_preproc"
7875 fi
7876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7878
7879 fi
7880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7881   cat >>confdefs.h <<_ACEOF
7882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7883 _ACEOF
7884
7885 else
7886
7887 for ac_header in history.h
7888 do
7889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891   echo "$as_me:$LINENO: checking for $ac_header" >&5
7892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 fi
7896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7898 else
7899   # Is the header compilable?
7900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7903 #line $LINENO "configure"
7904 #include "confdefs.h"
7905 $ac_includes_default
7906 #include <$ac_header>
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910   (eval $ac_compile) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -s conftest.$ac_objext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   ac_header_compiler=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 ac_header_compiler=no
7925 fi
7926 rm -f conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7928 echo "${ECHO_T}$ac_header_compiler" >&6
7929
7930 # Is the header present?
7931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 #include "confdefs.h"
7936 #include <$ac_header>
7937 _ACEOF
7938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7940   ac_status=$?
7941   egrep -v '^ *\+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } >/dev/null; then
7946   if test -s conftest.err; then
7947     ac_cpp_err=$ac_c_preproc_warn_flag
7948   else
7949     ac_cpp_err=
7950   fi
7951 else
7952   ac_cpp_err=yes
7953 fi
7954 if test -z "$ac_cpp_err"; then
7955   ac_header_preproc=yes
7956 else
7957   echo "$as_me: failed program was:" >&5
7958   cat conftest.$ac_ext >&5
7959   ac_header_preproc=no
7960 fi
7961 rm -f conftest.err conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7963 echo "${ECHO_T}$ac_header_preproc" >&6
7964
7965 # So?  What about this header?
7966 case $ac_header_compiler:$ac_header_preproc in
7967   yes:no )
7968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7972   no:yes )
7973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7975     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7979 esac
7980 echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983   echo $ECHO_N "(cached) $ECHO_C" >&6
7984 else
7985   eval "$as_ac_Header=$ac_header_preproc"
7986 fi
7987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7989
7990 fi
7991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7992   cat >>confdefs.h <<_ACEOF
7993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994 _ACEOF
7995
7996 else
7997   { { echo "$as_me:$LINENO: error: history header not found
7998 If you have readline already installed, see config.log for details on the
7999 failure.  It is possible the compiler isn't looking in the proper directory.
8000 Use --without-readline to disable readline support." >&5
8001 echo "$as_me: error: history header not found
8002 If you have readline already installed, see config.log for details on the
8003 failure.  It is possible the compiler isn't looking in the proper directory.
8004 Use --without-readline to disable readline support." >&2;}
8005    { (exit 1); exit 1; }; }
8006 fi
8007
8008 done
8009
8010 fi
8011
8012 done
8013
8014 fi
8015
8016 done
8017
8018 fi
8019
8020 if test "$with_zlib" = yes; then
8021   if test "${ac_cv_header_zlib_h+set}" = set; then
8022   echo "$as_me:$LINENO: checking for zlib.h" >&5
8023 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8024 if test "${ac_cv_header_zlib_h+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 fi
8027 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8028 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8029 else
8030   # Is the header compilable?
8031 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8032 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8037 #include <zlib.h>
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041   (eval $ac_compile) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -s conftest.$ac_objext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_header_compiler=yes
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 ac_header_compiler=no
8056 fi
8057 rm -f conftest.$ac_objext conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8059 echo "${ECHO_T}$ac_header_compiler" >&6
8060
8061 # Is the header present?
8062 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8063 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8064 cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 #include <zlib.h>
8068 _ACEOF
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8071   ac_status=$?
8072   egrep -v '^ *\+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } >/dev/null; then
8077   if test -s conftest.err; then
8078     ac_cpp_err=$ac_c_preproc_warn_flag
8079   else
8080     ac_cpp_err=
8081   fi
8082 else
8083   ac_cpp_err=yes
8084 fi
8085 if test -z "$ac_cpp_err"; then
8086   ac_header_preproc=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089   cat conftest.$ac_ext >&5
8090   ac_header_preproc=no
8091 fi
8092 rm -f conftest.err conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094 echo "${ECHO_T}$ac_header_preproc" >&6
8095
8096 # So?  What about this header?
8097 case $ac_header_compiler:$ac_header_preproc in
8098   yes:no )
8099     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8102 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8103   no:yes )
8104     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8106     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8108     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8109 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8110 esac
8111 echo "$as_me:$LINENO: checking for zlib.h" >&5
8112 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8113 if test "${ac_cv_header_zlib_h+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   ac_cv_header_zlib_h=$ac_header_preproc
8117 fi
8118 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8120
8121 fi
8122 if test $ac_cv_header_zlib_h = yes; then
8123   :
8124 else
8125   { { echo "$as_me:$LINENO: error: zlib header not found
8126 If you have zlib already installed, see config.log for details on the
8127 failure.  It is possible the compiler isn't looking in the proper directory.
8128 Use --without-zlib to disable zlib support." >&5
8129 echo "$as_me: error: zlib header not found
8130 If you have zlib already installed, see config.log for details on the
8131 failure.  It is possible the compiler isn't looking in the proper directory.
8132 Use --without-zlib to disable zlib support." >&2;}
8133    { (exit 1); exit 1; }; }
8134 fi
8135
8136
8137 fi
8138
8139 if test "$with_krb4" = yes ; then
8140   if test "${ac_cv_header_krb_h+set}" = set; then
8141   echo "$as_me:$LINENO: checking for krb.h" >&5
8142 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8143 if test "${ac_cv_header_krb_h+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 fi
8146 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8147 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8148 else
8149   # Is the header compilable?
8150 echo "$as_me:$LINENO: checking krb.h usability" >&5
8151 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8154 #include "confdefs.h"
8155 $ac_includes_default
8156 #include <krb.h>
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160   (eval $ac_compile) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } &&
8164          { ac_try='test -s conftest.$ac_objext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   ac_header_compiler=yes
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8174 ac_header_compiler=no
8175 fi
8176 rm -f conftest.$ac_objext conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8178 echo "${ECHO_T}$ac_header_compiler" >&6
8179
8180 # Is the header present?
8181 echo "$as_me:$LINENO: checking krb.h presence" >&5
8182 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8183 cat >conftest.$ac_ext <<_ACEOF
8184 #line $LINENO "configure"
8185 #include "confdefs.h"
8186 #include <krb.h>
8187 _ACEOF
8188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8190   ac_status=$?
8191   egrep -v '^ *\+' conftest.er1 >conftest.err
8192   rm -f conftest.er1
8193   cat conftest.err >&5
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); } >/dev/null; then
8196   if test -s conftest.err; then
8197     ac_cpp_err=$ac_c_preproc_warn_flag
8198   else
8199     ac_cpp_err=
8200   fi
8201 else
8202   ac_cpp_err=yes
8203 fi
8204 if test -z "$ac_cpp_err"; then
8205   ac_header_preproc=yes
8206 else
8207   echo "$as_me: failed program was:" >&5
8208   cat conftest.$ac_ext >&5
8209   ac_header_preproc=no
8210 fi
8211 rm -f conftest.err conftest.$ac_ext
8212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6
8214
8215 # So?  What about this header?
8216 case $ac_header_compiler:$ac_header_preproc in
8217   yes:no )
8218     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8221 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8222   no:yes )
8223     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8224 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8225     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8226 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8228 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8229 esac
8230 echo "$as_me:$LINENO: checking for krb.h" >&5
8231 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8232 if test "${ac_cv_header_krb_h+set}" = set; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   ac_cv_header_krb_h=$ac_header_preproc
8236 fi
8237 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8238 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8239
8240 fi
8241 if test $ac_cv_header_krb_h = yes; then
8242   :
8243 else
8244   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8245 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8246    { (exit 1); exit 1; }; }
8247 fi
8248
8249
8250 fi
8251
8252 if test "$with_krb5" = yes ; then
8253   if test "${ac_cv_header_krb5_h+set}" = set; then
8254   echo "$as_me:$LINENO: checking for krb5.h" >&5
8255 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8256 if test "${ac_cv_header_krb5_h+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8260 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8261 else
8262   # Is the header compilable?
8263 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8264 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 #include "confdefs.h"
8268 $ac_includes_default
8269 #include <krb5.h>
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273   (eval $ac_compile) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -s conftest.$ac_objext'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   ac_header_compiler=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8287 ac_header_compiler=no
8288 fi
8289 rm -f conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291 echo "${ECHO_T}$ac_header_compiler" >&6
8292
8293 # Is the header present?
8294 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8295 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 #include "confdefs.h"
8299 #include <krb5.h>
8300 _ACEOF
8301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8303   ac_status=$?
8304   egrep -v '^ *\+' conftest.er1 >conftest.err
8305   rm -f conftest.er1
8306   cat conftest.err >&5
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); } >/dev/null; then
8309   if test -s conftest.err; then
8310     ac_cpp_err=$ac_c_preproc_warn_flag
8311   else
8312     ac_cpp_err=
8313   fi
8314 else
8315   ac_cpp_err=yes
8316 fi
8317 if test -z "$ac_cpp_err"; then
8318   ac_header_preproc=yes
8319 else
8320   echo "$as_me: failed program was:" >&5
8321   cat conftest.$ac_ext >&5
8322   ac_header_preproc=no
8323 fi
8324 rm -f conftest.err conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8326 echo "${ECHO_T}$ac_header_preproc" >&6
8327
8328 # So?  What about this header?
8329 case $ac_header_compiler:$ac_header_preproc in
8330   yes:no )
8331     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8332 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8333     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8334 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8335   no:yes )
8336     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8337 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8338     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8339 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8340     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8341 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8342 esac
8343 echo "$as_me:$LINENO: checking for krb5.h" >&5
8344 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8345 if test "${ac_cv_header_krb5_h+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_cv_header_krb5_h=$ac_header_preproc
8349 fi
8350 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8351 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8352
8353 fi
8354 if test $ac_cv_header_krb5_h = yes; then
8355   :
8356 else
8357   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8358 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8359    { (exit 1); exit 1; }; }
8360 fi
8361
8362
8363   if test "${ac_cv_header_com_err_h+set}" = set; then
8364   echo "$as_me:$LINENO: checking for com_err.h" >&5
8365 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8366 if test "${ac_cv_header_com_err_h+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8370 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8371 else
8372   # Is the header compilable?
8373 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8374 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 #include "confdefs.h"
8378 $ac_includes_default
8379 #include <com_err.h>
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383   (eval $ac_compile) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } &&
8387          { ac_try='test -s conftest.$ac_objext'
8388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389   (eval $ac_try) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   ac_header_compiler=yes
8394 else
8395   echo "$as_me: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 ac_header_compiler=no
8398 fi
8399 rm -f conftest.$ac_objext conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8401 echo "${ECHO_T}$ac_header_compiler" >&6
8402
8403 # Is the header present?
8404 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8405 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8406 cat >conftest.$ac_ext <<_ACEOF
8407 #line $LINENO "configure"
8408 #include "confdefs.h"
8409 #include <com_err.h>
8410 _ACEOF
8411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8413   ac_status=$?
8414   egrep -v '^ *\+' conftest.er1 >conftest.err
8415   rm -f conftest.er1
8416   cat conftest.err >&5
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } >/dev/null; then
8419   if test -s conftest.err; then
8420     ac_cpp_err=$ac_c_preproc_warn_flag
8421   else
8422     ac_cpp_err=
8423   fi
8424 else
8425   ac_cpp_err=yes
8426 fi
8427 if test -z "$ac_cpp_err"; then
8428   ac_header_preproc=yes
8429 else
8430   echo "$as_me: failed program was:" >&5
8431   cat conftest.$ac_ext >&5
8432   ac_header_preproc=no
8433 fi
8434 rm -f conftest.err conftest.$ac_ext
8435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8436 echo "${ECHO_T}$ac_header_preproc" >&6
8437
8438 # So?  What about this header?
8439 case $ac_header_compiler:$ac_header_preproc in
8440   yes:no )
8441     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8442 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8443     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8444 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8445   no:yes )
8446     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8450     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8451 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8452 esac
8453 echo "$as_me:$LINENO: checking for com_err.h" >&5
8454 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_com_err_h+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   ac_cv_header_com_err_h=$ac_header_preproc
8459 fi
8460 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8461 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8462
8463 fi
8464 if test $ac_cv_header_com_err_h = yes; then
8465   :
8466 else
8467   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8468 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8469    { (exit 1); exit 1; }; }
8470 fi
8471
8472
8473 fi
8474
8475 if test "$with_openssl" = yes ; then
8476   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8477   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8478 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8479 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 fi
8482 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8483 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8484 else
8485   # Is the header compilable?
8486 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8487 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8489 #line $LINENO "configure"
8490 #include "confdefs.h"
8491 $ac_includes_default
8492 #include <openssl/ssl.h>
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496   (eval $ac_compile) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_header_compiler=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8510 ac_header_compiler=no
8511 fi
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6
8515
8516 # Is the header present?
8517 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8518 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 #include "confdefs.h"
8522 #include <openssl/ssl.h>
8523 _ACEOF
8524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8526   ac_status=$?
8527   egrep -v '^ *\+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } >/dev/null; then
8532   if test -s conftest.err; then
8533     ac_cpp_err=$ac_c_preproc_warn_flag
8534   else
8535     ac_cpp_err=
8536   fi
8537 else
8538   ac_cpp_err=yes
8539 fi
8540 if test -z "$ac_cpp_err"; then
8541   ac_header_preproc=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544   cat conftest.$ac_ext >&5
8545   ac_header_preproc=no
8546 fi
8547 rm -f conftest.err conftest.$ac_ext
8548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8549 echo "${ECHO_T}$ac_header_preproc" >&6
8550
8551 # So?  What about this header?
8552 case $ac_header_compiler:$ac_header_preproc in
8553   yes:no )
8554     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8555 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8557 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8558   no:yes )
8559     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8561     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8563     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8564 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8565 esac
8566 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8567 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8568 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8572 fi
8573 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8574 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8575
8576 fi
8577 if test $ac_cv_header_openssl_ssl_h = yes; then
8578   :
8579 else
8580   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8581 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8582    { (exit 1); exit 1; }; }
8583 fi
8584
8585
8586   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8587   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8588 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8589 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 fi
8592 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8593 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8594 else
8595   # Is the header compilable?
8596 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8597 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8600 #include "confdefs.h"
8601 $ac_includes_default
8602 #include <openssl/err.h>
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606   (eval $ac_compile) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -s conftest.$ac_objext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_header_compiler=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8620 ac_header_compiler=no
8621 fi
8622 rm -f conftest.$ac_objext conftest.$ac_ext
8623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6
8625
8626 # Is the header present?
8627 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8628 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 #include <openssl/err.h>
8633 _ACEOF
8634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8636   ac_status=$?
8637   egrep -v '^ *\+' conftest.er1 >conftest.err
8638   rm -f conftest.er1
8639   cat conftest.err >&5
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } >/dev/null; then
8642   if test -s conftest.err; then
8643     ac_cpp_err=$ac_c_preproc_warn_flag
8644   else
8645     ac_cpp_err=
8646   fi
8647 else
8648   ac_cpp_err=yes
8649 fi
8650 if test -z "$ac_cpp_err"; then
8651   ac_header_preproc=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654   cat conftest.$ac_ext >&5
8655   ac_header_preproc=no
8656 fi
8657 rm -f conftest.err conftest.$ac_ext
8658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8659 echo "${ECHO_T}$ac_header_preproc" >&6
8660
8661 # So?  What about this header?
8662 case $ac_header_compiler:$ac_header_preproc in
8663   yes:no )
8664     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8665 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8667 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8668   no:yes )
8669     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8670 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8671     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8672 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8673     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8674 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8675 esac
8676 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8677 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   ac_cv_header_openssl_err_h=$ac_header_preproc
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8684 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8685
8686 fi
8687 if test $ac_cv_header_openssl_err_h = yes; then
8688   :
8689 else
8690   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8691 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8692    { (exit 1); exit 1; }; }
8693 fi
8694
8695
8696 fi
8697
8698 if test "$with_pam" = yes ; then
8699
8700 for ac_header in security/pam_appl.h
8701 do
8702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8704   echo "$as_me:$LINENO: checking for $ac_header" >&5
8705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 fi
8709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8711 else
8712   # Is the header compilable?
8713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line $LINENO "configure"
8717 #include "confdefs.h"
8718 $ac_includes_default
8719 #include <$ac_header>
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723   (eval $ac_compile) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } &&
8727          { ac_try='test -s conftest.$ac_objext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_header_compiler=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 cat conftest.$ac_ext >&5
8737 ac_header_compiler=no
8738 fi
8739 rm -f conftest.$ac_objext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8741 echo "${ECHO_T}$ac_header_compiler" >&6
8742
8743 # Is the header present?
8744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 #include "confdefs.h"
8749 #include <$ac_header>
8750 _ACEOF
8751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8753   ac_status=$?
8754   egrep -v '^ *\+' conftest.er1 >conftest.err
8755   rm -f conftest.er1
8756   cat conftest.err >&5
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } >/dev/null; then
8759   if test -s conftest.err; then
8760     ac_cpp_err=$ac_c_preproc_warn_flag
8761   else
8762     ac_cpp_err=
8763   fi
8764 else
8765   ac_cpp_err=yes
8766 fi
8767 if test -z "$ac_cpp_err"; then
8768   ac_header_preproc=yes
8769 else
8770   echo "$as_me: failed program was:" >&5
8771   cat conftest.$ac_ext >&5
8772   ac_header_preproc=no
8773 fi
8774 rm -f conftest.err conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8776 echo "${ECHO_T}$ac_header_preproc" >&6
8777
8778 # So?  What about this header?
8779 case $ac_header_compiler:$ac_header_preproc in
8780   yes:no )
8781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8785   no:yes )
8786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8788     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8792 esac
8793 echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   eval "$as_ac_Header=$ac_header_preproc"
8799 fi
8800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8802
8803 fi
8804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8805   cat >>confdefs.h <<_ACEOF
8806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8807 _ACEOF
8808
8809 else
8810
8811 for ac_header in pam/pam_appl.h
8812 do
8813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815   echo "$as_me:$LINENO: checking for $ac_header" >&5
8816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8818   echo $ECHO_N "(cached) $ECHO_C" >&6
8819 fi
8820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8822 else
8823   # Is the header compilable?
8824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8827 #line $LINENO "configure"
8828 #include "confdefs.h"
8829 $ac_includes_default
8830 #include <$ac_header>
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834   (eval $ac_compile) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -s conftest.$ac_objext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_header_compiler=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 ac_header_compiler=no
8849 fi
8850 rm -f conftest.$ac_objext conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8852 echo "${ECHO_T}$ac_header_compiler" >&6
8853
8854 # Is the header present?
8855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 #include "confdefs.h"
8860 #include <$ac_header>
8861 _ACEOF
8862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8864   ac_status=$?
8865   egrep -v '^ *\+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } >/dev/null; then
8870   if test -s conftest.err; then
8871     ac_cpp_err=$ac_c_preproc_warn_flag
8872   else
8873     ac_cpp_err=
8874   fi
8875 else
8876   ac_cpp_err=yes
8877 fi
8878 if test -z "$ac_cpp_err"; then
8879   ac_header_preproc=yes
8880 else
8881   echo "$as_me: failed program was:" >&5
8882   cat conftest.$ac_ext >&5
8883   ac_header_preproc=no
8884 fi
8885 rm -f conftest.err conftest.$ac_ext
8886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8887 echo "${ECHO_T}$ac_header_preproc" >&6
8888
8889 # So?  What about this header?
8890 case $ac_header_compiler:$ac_header_preproc in
8891   yes:no )
8892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8896   no:yes )
8897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8899     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8903 esac
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   eval "$as_ac_Header=$ac_header_preproc"
8910 fi
8911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913
8914 fi
8915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8916   cat >>confdefs.h <<_ACEOF
8917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8918 _ACEOF
8919
8920 else
8921   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8922 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8923    { (exit 1); exit 1; }; }
8924 fi
8925
8926 done
8927
8928 fi
8929
8930 done
8931
8932 fi
8933
8934 if test "$with_rendezvous" = yes ; then
8935   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8936   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8937 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8938 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8942 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8943 else
8944   # Is the header compilable?
8945 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8946 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 #include "confdefs.h"
8950 $ac_includes_default
8951 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955   (eval $ac_compile) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } &&
8959          { ac_try='test -s conftest.$ac_objext'
8960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961   (eval $ac_try) 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); }; }; then
8965   ac_header_compiler=yes
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_header_compiler=no
8970 fi
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973 echo "${ECHO_T}$ac_header_compiler" >&6
8974
8975 # Is the header present?
8976 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8977 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8979 #line $LINENO "configure"
8980 #include "confdefs.h"
8981 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8982 _ACEOF
8983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8985   ac_status=$?
8986   egrep -v '^ *\+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } >/dev/null; then
8991   if test -s conftest.err; then
8992     ac_cpp_err=$ac_c_preproc_warn_flag
8993   else
8994     ac_cpp_err=
8995   fi
8996 else
8997   ac_cpp_err=yes
8998 fi
8999 if test -z "$ac_cpp_err"; then
9000   ac_header_preproc=yes
9001 else
9002   echo "$as_me: failed program was:" >&5
9003   cat conftest.$ac_ext >&5
9004   ac_header_preproc=no
9005 fi
9006 rm -f conftest.err conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008 echo "${ECHO_T}$ac_header_preproc" >&6
9009
9010 # So?  What about this header?
9011 case $ac_header_compiler:$ac_header_preproc in
9012   yes:no )
9013     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9014 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9016 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9017   no:yes )
9018     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9019 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9020     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9021 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9022     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9023 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9024 esac
9025 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9026 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9027 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9031 fi
9032 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9033 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9034
9035 fi
9036 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9037   :
9038 else
9039   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9040 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9041    { (exit 1); exit 1; }; }
9042 fi
9043
9044
9045 fi
9046
9047
9048 ##
9049 ## Types, structures, compiler characteristics
9050 ##
9051
9052
9053 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9054 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9055 if test "${ac_cv_c_const+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9061
9062 #ifdef F77_DUMMY_MAIN
9063 #  ifdef __cplusplus
9064      extern "C"
9065 #  endif
9066    int F77_DUMMY_MAIN() { return 1; }
9067 #endif
9068 int
9069 main ()
9070 {
9071 /* FIXME: Include the comments suggested by Paul. */
9072 #ifndef __cplusplus
9073   /* Ultrix mips cc rejects this.  */
9074   typedef int charset[2];
9075   const charset x;
9076   /* SunOS 4.1.1 cc rejects this.  */
9077   char const *const *ccp;
9078   char **p;
9079   /* NEC SVR4.0.2 mips cc rejects this.  */
9080   struct point {int x, y;};
9081   static struct point const zero = {0,0};
9082   /* AIX XL C 1.02.0.0 rejects this.
9083      It does not let you subtract one const X* pointer from another in
9084      an arm of an if-expression whose if-part is not a constant
9085      expression */
9086   const char *g = "string";
9087   ccp = &g + (g ? g-g : 0);
9088   /* HPUX 7.0 cc rejects these. */
9089   ++ccp;
9090   p = (char**) ccp;
9091   ccp = (char const *const *) p;
9092   { /* SCO 3.2v4 cc rejects this.  */
9093     char *t;
9094     char const *s = 0 ? (char *) 0 : (char const *) 0;
9095
9096     *t++ = 0;
9097   }
9098   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9099     int x[] = {25, 17};
9100     const int *foo = &x[0];
9101     ++foo;
9102   }
9103   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9104     typedef const int *iptr;
9105     iptr p = 0;
9106     ++p;
9107   }
9108   { /* AIX XL C 1.02.0.0 rejects this saying
9109        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9110     struct s { int j; const int *ap[3]; };
9111     struct s *b; b->j = 5;
9112   }
9113   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9114     const int foo = 10;
9115   }
9116 #endif
9117
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124   (eval $ac_compile) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -s conftest.$ac_objext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_c_const=yes
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 ac_cv_c_const=no
9139 fi
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9143 echo "${ECHO_T}$ac_cv_c_const" >&6
9144 if test $ac_cv_c_const = no; then
9145
9146 cat >>confdefs.h <<\_ACEOF
9147 #define const
9148 _ACEOF
9149
9150 fi
9151
9152 echo "$as_me:$LINENO: checking for inline" >&5
9153 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9154 if test "${ac_cv_c_inline+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   ac_cv_c_inline=no
9158 for ac_kw in inline __inline__ __inline; do
9159   cat >conftest.$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 #include "confdefs.h"
9162 #ifndef __cplusplus
9163 typedef int foo_t;
9164 static $ac_kw foo_t static_foo () {return 0; }
9165 $ac_kw int foo () {return 0; }
9166 #endif
9167
9168 _ACEOF
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171   (eval $ac_compile) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } &&
9175          { ac_try='test -s conftest.$ac_objext'
9176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177   (eval $ac_try) 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; }; then
9181   ac_cv_c_inline=$ac_kw; break
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 fi
9186 rm -f conftest.$ac_objext conftest.$ac_ext
9187 done
9188
9189 fi
9190 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9191 echo "${ECHO_T}$ac_cv_c_inline" >&6
9192 case $ac_cv_c_inline in
9193   inline | yes) ;;
9194   no)
9195 cat >>confdefs.h <<\_ACEOF
9196 #define inline
9197 _ACEOF
9198  ;;
9199   *)  cat >>confdefs.h <<_ACEOF
9200 #define inline $ac_cv_c_inline
9201 _ACEOF
9202  ;;
9203 esac
9204
9205 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9206 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9207 if test "${ac_cv_c_stringize+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210   cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 #include "confdefs.h"
9213 #define x(y) #y
9214
9215 char *s = x(teststring);
9216 _ACEOF
9217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9218   egrep "#teststring" >/dev/null 2>&1; then
9219   ac_cv_c_stringize=no
9220 else
9221   ac_cv_c_stringize=yes
9222 fi
9223 rm -f conftest*
9224
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9227 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9228 if test $ac_cv_c_stringize = yes; then
9229
9230 cat >>confdefs.h <<\_ACEOF
9231 #define HAVE_STRINGIZE 1
9232 _ACEOF
9233
9234 fi
9235
9236 echo "$as_me:$LINENO: checking for signed types" >&5
9237 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9238 if test "${pgac_cv_c_signed+set}" = set; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   cat >conftest.$ac_ext <<_ACEOF
9242 #line $LINENO "configure"
9243 #include "confdefs.h"
9244
9245 #ifdef F77_DUMMY_MAIN
9246 #  ifdef __cplusplus
9247      extern "C"
9248 #  endif
9249    int F77_DUMMY_MAIN() { return 1; }
9250 #endif
9251 int
9252 main ()
9253 {
9254 signed char c; signed short s; signed int i;
9255   ;
9256   return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261   (eval $ac_compile) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } &&
9265          { ac_try='test -s conftest.$ac_objext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   pgac_cv_c_signed=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9275 pgac_cv_c_signed=no
9276 fi
9277 rm -f conftest.$ac_objext conftest.$ac_ext
9278 fi
9279 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9280 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9281 if test x"$pgac_cv_c_signed" = xno ; then
9282
9283 cat >>confdefs.h <<\_ACEOF
9284 #define signed
9285 _ACEOF
9286
9287 fi
9288 echo "$as_me:$LINENO: checking for working volatile" >&5
9289 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9290 if test "${ac_cv_c_volatile+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   cat >conftest.$ac_ext <<_ACEOF
9294 #line $LINENO "configure"
9295 #include "confdefs.h"
9296
9297 #ifdef F77_DUMMY_MAIN
9298 #  ifdef __cplusplus
9299      extern "C"
9300 #  endif
9301    int F77_DUMMY_MAIN() { return 1; }
9302 #endif
9303 int
9304 main ()
9305 {
9306
9307 volatile int x;
9308 int * volatile y;
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315   (eval $ac_compile) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); } &&
9319          { ac_try='test -s conftest.$ac_objext'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   ac_cv_c_volatile=yes
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 ac_cv_c_volatile=no
9330 fi
9331 rm -f conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9334 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9335 if test $ac_cv_c_volatile = no; then
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define volatile
9339 _ACEOF
9340
9341 fi
9342
9343 echo "$as_me:$LINENO: checking for __func__" >&5
9344 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9345 if test "${pgac_cv_funcname_func_support+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9350 #include "confdefs.h"
9351 #include <stdio.h>
9352 #ifdef F77_DUMMY_MAIN
9353 #  ifdef __cplusplus
9354      extern "C"
9355 #  endif
9356    int F77_DUMMY_MAIN() { return 1; }
9357 #endif
9358 int
9359 main ()
9360 {
9361 printf("%s\n", __func__);
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368   (eval $ac_compile) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -s conftest.$ac_objext'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; }; then
9378   pgac_cv_funcname_func_support=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 pgac_cv_funcname_func_support=no
9383 fi
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9387 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9388 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_FUNCNAME__FUNC 1
9392 _ACEOF
9393
9394 else
9395 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9396 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9397 if test "${pgac_cv_funcname_function_support+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   cat >conftest.$ac_ext <<_ACEOF
9401 #line $LINENO "configure"
9402 #include "confdefs.h"
9403 #include <stdio.h>
9404 #ifdef F77_DUMMY_MAIN
9405 #  ifdef __cplusplus
9406      extern "C"
9407 #  endif
9408    int F77_DUMMY_MAIN() { return 1; }
9409 #endif
9410 int
9411 main ()
9412 {
9413 printf("%s\n", __FUNCTION__);
9414   ;
9415   return 0;
9416 }
9417 _ACEOF
9418 rm -f conftest.$ac_objext
9419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420   (eval $ac_compile) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } &&
9424          { ac_try='test -s conftest.$ac_objext'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; }; then
9430   pgac_cv_funcname_function_support=yes
9431 else
9432   echo "$as_me: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 pgac_cv_funcname_function_support=no
9435 fi
9436 rm -f conftest.$ac_objext conftest.$ac_ext
9437 fi
9438 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9439 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9440 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9441
9442 cat >>confdefs.h <<\_ACEOF
9443 #define HAVE_FUNCNAME__FUNCTION 1
9444 _ACEOF
9445
9446 fi
9447 fi
9448 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9449 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9450 if test "${ac_cv_struct_tm+set}" = set; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   cat >conftest.$ac_ext <<_ACEOF
9454 #line $LINENO "configure"
9455 #include "confdefs.h"
9456 #include <sys/types.h>
9457 #include <time.h>
9458
9459 #ifdef F77_DUMMY_MAIN
9460 #  ifdef __cplusplus
9461      extern "C"
9462 #  endif
9463    int F77_DUMMY_MAIN() { return 1; }
9464 #endif
9465 int
9466 main ()
9467 {
9468 struct tm *tp; tp->tm_sec;
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } &&
9479          { ac_try='test -s conftest.$ac_objext'
9480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481   (eval $ac_try) 2>&5
9482   ac_status=$?
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); }; }; then
9485   ac_cv_struct_tm=time.h
9486 else
9487   echo "$as_me: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9489 ac_cv_struct_tm=sys/time.h
9490 fi
9491 rm -f conftest.$ac_objext conftest.$ac_ext
9492 fi
9493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9495 if test $ac_cv_struct_tm = sys/time.h; then
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define TM_IN_SYS_TIME 1
9499 _ACEOF
9500
9501 fi
9502
9503 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9504 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9505 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511 #include <sys/types.h>
9512 #include <$ac_cv_struct_tm>
9513
9514
9515 #ifdef F77_DUMMY_MAIN
9516 #  ifdef __cplusplus
9517      extern "C"
9518 #  endif
9519    int F77_DUMMY_MAIN() { return 1; }
9520 #endif
9521 int
9522 main ()
9523 {
9524 static struct tm ac_aggr;
9525 if (ac_aggr.tm_zone)
9526 return 0;
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533   (eval $ac_compile) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } &&
9537          { ac_try='test -s conftest.$ac_objext'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   ac_cv_member_struct_tm_tm_zone=yes
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 ac_cv_member_struct_tm_tm_zone=no
9548 fi
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9552 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9553 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9554
9555 cat >>confdefs.h <<_ACEOF
9556 #define HAVE_STRUCT_TM_TM_ZONE 1
9557 _ACEOF
9558
9559
9560 fi
9561
9562 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9563
9564 cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_TM_ZONE 1
9566 _ACEOF
9567
9568 fi
9569 echo "$as_me:$LINENO: checking for tzname" >&5
9570 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9571 if test "${ac_cv_var_tzname+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 #include "confdefs.h"
9577 #include <time.h>
9578 #ifndef tzname /* For SGI.  */
9579 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9580 #endif
9581
9582 #ifdef F77_DUMMY_MAIN
9583 #  ifdef __cplusplus
9584      extern "C"
9585 #  endif
9586    int F77_DUMMY_MAIN() { return 1; }
9587 #endif
9588 int
9589 main ()
9590 {
9591 atoi(*tzname);
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598   (eval $ac_link) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); } &&
9602          { ac_try='test -s conftest$ac_exeext'
9603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604   (eval $ac_try) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; }; then
9608   ac_cv_var_tzname=yes
9609 else
9610   echo "$as_me: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9612 ac_cv_var_tzname=no
9613 fi
9614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9615 fi
9616 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9617 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9618 if test $ac_cv_var_tzname = yes; then
9619
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_TZNAME 1
9622 _ACEOF
9623
9624 fi
9625
9626 echo "$as_me:$LINENO: checking for union semun" >&5
9627 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9628 if test "${ac_cv_type_union_semun+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   cat >conftest.$ac_ext <<_ACEOF
9632 #line $LINENO "configure"
9633 #include "confdefs.h"
9634 #include <sys/types.h>
9635 #include <sys/ipc.h>
9636 #include <sys/sem.h>
9637
9638 #ifdef F77_DUMMY_MAIN
9639 #  ifdef __cplusplus
9640      extern "C"
9641 #  endif
9642    int F77_DUMMY_MAIN() { return 1; }
9643 #endif
9644 int
9645 main ()
9646 {
9647 if ((union semun *) 0)
9648   return 0;
9649 if (sizeof (union semun))
9650   return 0;
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657   (eval $ac_compile) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -s conftest.$ac_objext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_cv_type_union_semun=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 ac_cv_type_union_semun=no
9672 fi
9673 rm -f conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9676 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9677 if test $ac_cv_type_union_semun = yes; then
9678
9679 cat >>confdefs.h <<_ACEOF
9680 #define HAVE_UNION_SEMUN 1
9681 _ACEOF
9682
9683
9684 fi
9685
9686 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9687 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9688 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   cat >conftest.$ac_ext <<_ACEOF
9692 #line $LINENO "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9695 #ifdef HAVE_SYS_UN_H
9696 #include <sys/un.h>
9697 #endif
9698
9699
9700 #ifdef F77_DUMMY_MAIN
9701 #  ifdef __cplusplus
9702      extern "C"
9703 #  endif
9704    int F77_DUMMY_MAIN() { return 1; }
9705 #endif
9706 int
9707 main ()
9708 {
9709 if ((struct sockaddr_un *) 0)
9710   return 0;
9711 if (sizeof (struct sockaddr_un))
9712   return 0;
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719   (eval $ac_compile) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } &&
9723          { ac_try='test -s conftest.$ac_objext'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; }; then
9729   ac_cv_type_struct_sockaddr_un=yes
9730 else
9731   echo "$as_me: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 ac_cv_type_struct_sockaddr_un=no
9734 fi
9735 rm -f conftest.$ac_objext conftest.$ac_ext
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9738 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9739 if test $ac_cv_type_struct_sockaddr_un = yes; then
9740
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_STRUCT_SOCKADDR_UN 1
9743 _ACEOF
9744
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_UNIX_SOCKETS 1
9748 _ACEOF
9749
9750 fi
9751
9752 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9753 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9754 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   cat >conftest.$ac_ext <<_ACEOF
9758 #line $LINENO "configure"
9759 #include "confdefs.h"
9760 #include <sys/types.h>
9761 #ifdef HAVE_SYS_SOCKET_H
9762 #include <sys/socket.h>
9763 #endif
9764
9765
9766 #ifdef F77_DUMMY_MAIN
9767 #  ifdef __cplusplus
9768      extern "C"
9769 #  endif
9770    int F77_DUMMY_MAIN() { return 1; }
9771 #endif
9772 int
9773 main ()
9774 {
9775 if ((struct sockaddr_storage *) 0)
9776   return 0;
9777 if (sizeof (struct sockaddr_storage))
9778   return 0;
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9785   (eval $ac_compile) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); } &&
9789          { ac_try='test -s conftest.$ac_objext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_type_struct_sockaddr_storage=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9799 ac_cv_type_struct_sockaddr_storage=no
9800 fi
9801 rm -f conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9804 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9805 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9806
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9809 _ACEOF
9810
9811
9812 fi
9813
9814 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9815 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9816 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 #include <sys/types.h>
9823 #ifdef HAVE_SYS_SOCKET_H
9824 #include <sys/socket.h>
9825 #endif
9826
9827
9828 #ifdef F77_DUMMY_MAIN
9829 #  ifdef __cplusplus
9830      extern "C"
9831 #  endif
9832    int F77_DUMMY_MAIN() { return 1; }
9833 #endif
9834 int
9835 main ()
9836 {
9837 static struct sockaddr_storage ac_aggr;
9838 if (ac_aggr.ss_family)
9839 return 0;
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846   (eval $ac_compile) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -s conftest.$ac_objext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 ac_cv_member_struct_sockaddr_storage_ss_family=no
9861 fi
9862 rm -f conftest.$ac_objext conftest.$ac_ext
9863 fi
9864 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9865 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9866 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9867
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9870 _ACEOF
9871
9872
9873 fi
9874 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9875 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9876 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   cat >conftest.$ac_ext <<_ACEOF
9880 #line $LINENO "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #ifdef HAVE_SYS_SOCKET_H
9884 #include <sys/socket.h>
9885 #endif
9886
9887
9888 #ifdef F77_DUMMY_MAIN
9889 #  ifdef __cplusplus
9890      extern "C"
9891 #  endif
9892    int F77_DUMMY_MAIN() { return 1; }
9893 #endif
9894 int
9895 main ()
9896 {
9897 static struct sockaddr_storage ac_aggr;
9898 if (ac_aggr.__ss_family)
9899 return 0;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -s conftest.$ac_objext'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; }; then
9916   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_cv_member_struct_sockaddr_storage___ss_family=no
9921 fi
9922 rm -f conftest.$ac_objext conftest.$ac_ext
9923 fi
9924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9925 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9926 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9927
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9930 _ACEOF
9931
9932
9933 fi
9934 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9935 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9936 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #ifdef HAVE_SYS_SOCKET_H
9944 #include <sys/socket.h>
9945 #endif
9946
9947
9948 #ifdef F77_DUMMY_MAIN
9949 #  ifdef __cplusplus
9950      extern "C"
9951 #  endif
9952    int F77_DUMMY_MAIN() { return 1; }
9953 #endif
9954 int
9955 main ()
9956 {
9957 static struct sockaddr_storage ac_aggr;
9958 if (ac_aggr.ss_len)
9959 return 0;
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest.$ac_objext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_member_struct_sockaddr_storage_ss_len=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 ac_cv_member_struct_sockaddr_storage_ss_len=no
9981 fi
9982 rm -f conftest.$ac_objext conftest.$ac_ext
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9986 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9990 _ACEOF
9991
9992
9993 fi
9994 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9995 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9996 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   cat >conftest.$ac_ext <<_ACEOF
10000 #line $LINENO "configure"
10001 #include "confdefs.h"
10002 #include <sys/types.h>
10003 #ifdef HAVE_SYS_SOCKET_H
10004 #include <sys/socket.h>
10005 #endif
10006
10007
10008 #ifdef F77_DUMMY_MAIN
10009 #  ifdef __cplusplus
10010      extern "C"
10011 #  endif
10012    int F77_DUMMY_MAIN() { return 1; }
10013 #endif
10014 int
10015 main ()
10016 {
10017 static struct sockaddr_storage ac_aggr;
10018 if (ac_aggr.__ss_len)
10019 return 0;
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026   (eval $ac_compile) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -s conftest.$ac_objext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 ac_cv_member_struct_sockaddr_storage___ss_len=no
10041 fi
10042 rm -f conftest.$ac_objext conftest.$ac_ext
10043 fi
10044 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10045 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10046 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10047
10048 cat >>confdefs.h <<_ACEOF
10049 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10050 _ACEOF
10051
10052
10053 fi
10054 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10055 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10056 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   cat >conftest.$ac_ext <<_ACEOF
10060 #line $LINENO "configure"
10061 #include "confdefs.h"
10062 #include <sys/types.h>
10063 #ifdef HAVE_SYS_SOCKET_H
10064 #include <sys/socket.h>
10065 #endif
10066
10067
10068 #ifdef F77_DUMMY_MAIN
10069 #  ifdef __cplusplus
10070      extern "C"
10071 #  endif
10072    int F77_DUMMY_MAIN() { return 1; }
10073 #endif
10074 int
10075 main ()
10076 {
10077 static struct sockaddr ac_aggr;
10078 if (ac_aggr.sa_len)
10079 return 0;
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext
10085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10086   (eval $ac_compile) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -s conftest.$ac_objext'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; }; then
10096   ac_cv_member_struct_sockaddr_sa_len=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ac_cv_member_struct_sockaddr_sa_len=no
10101 fi
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10105 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10106 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10107
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10110 _ACEOF
10111
10112
10113 fi
10114
10115 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10116 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10117 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10122 #include "confdefs.h"
10123 #include <sys/types.h>
10124 #include <sys/socket.h>
10125 #include <netdb.h>
10126
10127
10128 #ifdef F77_DUMMY_MAIN
10129 #  ifdef __cplusplus
10130      extern "C"
10131 #  endif
10132    int F77_DUMMY_MAIN() { return 1; }
10133 #endif
10134 int
10135 main ()
10136 {
10137 if ((struct addrinfo *) 0)
10138   return 0;
10139 if (sizeof (struct addrinfo))
10140   return 0;
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147   (eval $ac_compile) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_type_struct_addrinfo=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 ac_cv_type_struct_addrinfo=no
10162 fi
10163 rm -f conftest.$ac_objext conftest.$ac_ext
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10166 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10167 if test $ac_cv_type_struct_addrinfo = yes; then
10168
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_STRUCT_ADDRINFO 1
10171 _ACEOF
10172
10173
10174 fi
10175
10176
10177 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10178 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10179 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 #line $LINENO "configure"
10184 #include "confdefs.h"
10185 #include <sys/param.h>
10186 #include <sys/types.h>
10187 #include <sys/socket.h>
10188 #include <sys/ucred.h>
10189
10190 #ifdef F77_DUMMY_MAIN
10191 #  ifdef __cplusplus
10192      extern "C"
10193 #  endif
10194    int F77_DUMMY_MAIN() { return 1; }
10195 #endif
10196 int
10197 main ()
10198 {
10199 if ((struct cmsgcred *) 0)
10200   return 0;
10201 if (sizeof (struct cmsgcred))
10202   return 0;
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209   (eval $ac_compile) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -s conftest.$ac_objext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_type_struct_cmsgcred=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 ac_cv_type_struct_cmsgcred=no
10224 fi
10225 rm -f conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10228 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10229 if test $ac_cv_type_struct_cmsgcred = yes; then
10230
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_STRUCT_CMSGCRED 1
10233 _ACEOF
10234
10235
10236 fi
10237 echo "$as_me:$LINENO: checking for struct fcred" >&5
10238 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10239 if test "${ac_cv_type_struct_fcred+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10245 #include <sys/param.h>
10246 #include <sys/types.h>
10247 #include <sys/socket.h>
10248 #include <sys/ucred.h>
10249
10250 #ifdef F77_DUMMY_MAIN
10251 #  ifdef __cplusplus
10252      extern "C"
10253 #  endif
10254    int F77_DUMMY_MAIN() { return 1; }
10255 #endif
10256 int
10257 main ()
10258 {
10259 if ((struct fcred *) 0)
10260   return 0;
10261 if (sizeof (struct fcred))
10262   return 0;
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269   (eval $ac_compile) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } &&
10273          { ac_try='test -s conftest.$ac_objext'
10274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275   (eval $ac_try) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; }; then
10279   ac_cv_type_struct_fcred=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 ac_cv_type_struct_fcred=no
10284 fi
10285 rm -f conftest.$ac_objext conftest.$ac_ext
10286 fi
10287 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10288 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10289 if test $ac_cv_type_struct_fcred = yes; then
10290
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_STRUCT_FCRED 1
10293 _ACEOF
10294
10295
10296 fi
10297 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10298 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10299 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 #include "confdefs.h"
10305 #include <sys/param.h>
10306 #include <sys/types.h>
10307 #include <sys/socket.h>
10308 #include <sys/ucred.h>
10309
10310 #ifdef F77_DUMMY_MAIN
10311 #  ifdef __cplusplus
10312      extern "C"
10313 #  endif
10314    int F77_DUMMY_MAIN() { return 1; }
10315 #endif
10316 int
10317 main ()
10318 {
10319 if ((struct sockcred *) 0)
10320   return 0;
10321 if (sizeof (struct sockcred))
10322   return 0;
10323   ;
10324   return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329   (eval $ac_compile) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } &&
10333          { ac_try='test -s conftest.$ac_objext'
10334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335   (eval $ac_try) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   ac_cv_type_struct_sockcred=yes
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 ac_cv_type_struct_sockcred=no
10344 fi
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 fi
10347 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10348 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10349 if test $ac_cv_type_struct_sockcred = yes; then
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define HAVE_STRUCT_SOCKCRED 1
10353 _ACEOF
10354
10355
10356 fi
10357
10358
10359 echo "$as_me:$LINENO: checking for struct option" >&5
10360 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10361 if test "${ac_cv_type_struct_option+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   cat >conftest.$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10366 #include "confdefs.h"
10367 #ifdef HAVE_GETOPT_H
10368 #include <getopt.h>
10369 #endif
10370
10371 #ifdef F77_DUMMY_MAIN
10372 #  ifdef __cplusplus
10373      extern "C"
10374 #  endif
10375    int F77_DUMMY_MAIN() { return 1; }
10376 #endif
10377 int
10378 main ()
10379 {
10380 if ((struct option *) 0)
10381   return 0;
10382 if (sizeof (struct option))
10383   return 0;
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390   (eval $ac_compile) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } &&
10394          { ac_try='test -s conftest.$ac_objext'
10395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396   (eval $ac_try) 2>&5
10397   ac_status=$?
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); }; }; then
10400   ac_cv_type_struct_option=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10404 ac_cv_type_struct_option=no
10405 fi
10406 rm -f conftest.$ac_objext conftest.$ac_ext
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10409 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10410 if test $ac_cv_type_struct_option = yes; then
10411
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_STRUCT_OPTION 1
10414 _ACEOF
10415
10416
10417 fi
10418
10419
10420 if test "$with_zlib" = yes; then
10421   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10422   # did not).  While we could work around the lack of z_streamp, it
10423   # seems unwise to encourage people to use such old zlib versions...
10424   echo "$as_me:$LINENO: checking for z_streamp" >&5
10425 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10426 if test "${ac_cv_type_z_streamp+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429   cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 #include "confdefs.h"
10432 #include <zlib.h>
10433
10434 #ifdef F77_DUMMY_MAIN
10435 #  ifdef __cplusplus
10436      extern "C"
10437 #  endif
10438    int F77_DUMMY_MAIN() { return 1; }
10439 #endif
10440 int
10441 main ()
10442 {
10443 if ((z_streamp *) 0)
10444   return 0;
10445 if (sizeof (z_streamp))
10446   return 0;
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -s conftest.$ac_objext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_type_z_streamp=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_cv_type_z_streamp=no
10468 fi
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 fi
10471 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10472 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10473 if test $ac_cv_type_z_streamp = yes; then
10474   :
10475 else
10476   { { echo "$as_me:$LINENO: error: zlib version is too old
10477 Use --without-zlib to disable zlib support." >&5
10478 echo "$as_me: error: zlib version is too old
10479 Use --without-zlib to disable zlib support." >&2;}
10480    { (exit 1); exit 1; }; }
10481 fi
10482
10483 fi
10484
10485 if test "$with_krb5" = yes; then
10486 # Check for differences between MIT and Heimdal (KTH) releases
10487   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10488 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10489 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 #include "confdefs.h"
10495 #include <krb5.h>
10496
10497 #ifdef F77_DUMMY_MAIN
10498 #  ifdef __cplusplus
10499      extern "C"
10500 #  endif
10501    int F77_DUMMY_MAIN() { return 1; }
10502 #endif
10503 int
10504 main ()
10505 {
10506 static krb5_ticket ac_aggr;
10507 if (ac_aggr.enc_part2)
10508 return 0;
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515   (eval $ac_compile) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } &&
10519          { ac_try='test -s conftest.$ac_objext'
10520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521   (eval $ac_try) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; }; then
10525   ac_cv_member_krb5_ticket_enc_part2=yes
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 ac_cv_member_krb5_ticket_enc_part2=no
10530 fi
10531 rm -f conftest.$ac_objext conftest.$ac_ext
10532 fi
10533 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10534 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10535 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10536
10537 cat >>confdefs.h <<_ACEOF
10538 #define HAVE_KRB5_TICKET_ENC_PART2 1
10539 _ACEOF
10540
10541
10542 else
10543   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10544 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10545 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10550 #include "confdefs.h"
10551 #include <krb5.h>
10552
10553 #ifdef F77_DUMMY_MAIN
10554 #  ifdef __cplusplus
10555      extern "C"
10556 #  endif
10557    int F77_DUMMY_MAIN() { return 1; }
10558 #endif
10559 int
10560 main ()
10561 {
10562 static krb5_ticket ac_aggr;
10563 if (ac_aggr.client)
10564 return 0;
10565   ;
10566   return 0;
10567 }
10568 _ACEOF
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571   (eval $ac_compile) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_cv_member_krb5_ticket_client=yes
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 ac_cv_member_krb5_ticket_client=no
10586 fi
10587 rm -f conftest.$ac_objext conftest.$ac_ext
10588 fi
10589 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10590 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10591 if test $ac_cv_member_krb5_ticket_client = yes; then
10592
10593 cat >>confdefs.h <<_ACEOF
10594 #define HAVE_KRB5_TICKET_CLIENT 1
10595 _ACEOF
10596
10597
10598 else
10599   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10600 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10601    { (exit 1); exit 1; }; }
10602 fi
10603
10604 fi
10605
10606   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10607 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10608 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 #include "confdefs.h"
10614 #include <krb5.h>
10615
10616 #ifdef F77_DUMMY_MAIN
10617 #  ifdef __cplusplus
10618      extern "C"
10619 #  endif
10620    int F77_DUMMY_MAIN() { return 1; }
10621 #endif
10622 int
10623 main ()
10624 {
10625 static krb5_error ac_aggr;
10626 if (ac_aggr.text.data)
10627 return 0;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 rm -f conftest.$ac_objext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634   (eval $ac_compile) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } &&
10638          { ac_try='test -s conftest.$ac_objext'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; }; then
10644   ac_cv_member_krb5_error_text_data=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 ac_cv_member_krb5_error_text_data=no
10649 fi
10650 rm -f conftest.$ac_objext conftest.$ac_ext
10651 fi
10652 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10653 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10654 if test $ac_cv_member_krb5_error_text_data = yes; then
10655
10656 cat >>confdefs.h <<_ACEOF
10657 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10658 _ACEOF
10659
10660
10661 else
10662   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10663 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10664 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   cat >conftest.$ac_ext <<_ACEOF
10668 #line $LINENO "configure"
10669 #include "confdefs.h"
10670 #include <krb5.h>
10671
10672 #ifdef F77_DUMMY_MAIN
10673 #  ifdef __cplusplus
10674      extern "C"
10675 #  endif
10676    int F77_DUMMY_MAIN() { return 1; }
10677 #endif
10678 int
10679 main ()
10680 {
10681 static krb5_error ac_aggr;
10682 if (ac_aggr.e_data)
10683 return 0;
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10690   (eval $ac_compile) 2>&5
10691   ac_status=$?
10692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); } &&
10694          { ac_try='test -s conftest.$ac_objext'
10695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696   (eval $ac_try) 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; }; then
10700   ac_cv_member_krb5_error_e_data=yes
10701 else
10702   echo "$as_me: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 ac_cv_member_krb5_error_e_data=no
10705 fi
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10709 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10710 if test $ac_cv_member_krb5_error_e_data = yes; then
10711
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_KRB5_ERROR_E_DATA 1
10714 _ACEOF
10715
10716
10717 else
10718   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10719 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10720    { (exit 1); exit 1; }; }
10721 fi
10722
10723 fi
10724
10725 fi
10726
10727
10728 ##
10729 ## Functions, global variables
10730 ##
10731
10732 echo "$as_me:$LINENO: checking for int timezone" >&5
10733 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10734 if test "${pgac_cv_var_int_timezone+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 #include "confdefs.h"
10740 #include <time.h>
10741 int res;
10742 #ifdef F77_DUMMY_MAIN
10743 #  ifdef __cplusplus
10744      extern "C"
10745 #  endif
10746    int F77_DUMMY_MAIN() { return 1; }
10747 #endif
10748 int
10749 main ()
10750 {
10751 res = timezone / 60;
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758   (eval $ac_link) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest$ac_exeext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   pgac_cv_var_int_timezone=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 pgac_cv_var_int_timezone=no
10773 fi
10774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10775 fi
10776 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10777 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10778 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_INT_TIMEZONE
10782 _ACEOF
10783
10784 fi
10785 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10786 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10787  if test "${ac_cv_func_accept_return+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790    if test "${ac_cv_func_accept_arg1+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793     if test "${ac_cv_func_accept_arg2+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796      if test "${ac_cv_func_accept_arg3+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10800       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10801        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10802         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10803          cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 #include "confdefs.h"
10806 #ifdef HAVE_SYS_TYPES_H
10807 #include <sys/types.h>
10808 #endif
10809 #ifdef HAVE_SYS_SOCKET_H
10810 #include <sys/socket.h>
10811 #endif
10812 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10813 #ifdef F77_DUMMY_MAIN
10814 #  ifdef __cplusplus
10815      extern "C"
10816 #  endif
10817    int F77_DUMMY_MAIN() { return 1; }
10818 #endif
10819 int
10820 main ()
10821 {
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829   (eval $ac_compile) 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -s conftest.$ac_objext'
10834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835   (eval $ac_try) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; }; then
10839   ac_not_found=no; break 4
10840 else
10841   echo "$as_me: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 ac_not_found=yes
10844 fi
10845 rm -f conftest.$ac_objext conftest.$ac_ext
10846        done
10847       done
10848      done
10849     done
10850     if test "$ac_not_found" = yes; then
10851       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10852 echo "$as_me: error: could not determine argument types" >&2;}
10853    { (exit 1); exit 1; }; }
10854     fi
10855     if test "$ac_cv_func_accept_arg3" = "void"; then
10856       ac_cv_func_accept_arg3=int
10857     fi
10858
10859 fi
10860
10861 fi
10862
10863 fi
10864
10865 fi
10866  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
10867 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10868
10869 cat >>confdefs.h <<_ACEOF
10870 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10871 _ACEOF
10872
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10876 _ACEOF
10877
10878
10879 cat >>confdefs.h <<_ACEOF
10880 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10881 _ACEOF
10882
10883
10884 cat >>confdefs.h <<_ACEOF
10885 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10886 _ACEOF
10887
10888
10889 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10890 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10891 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.$ac_ext <<_ACEOF
10895 #line $LINENO "configure"
10896 #include "confdefs.h"
10897 #include <sys/time.h>
10898 #ifdef F77_DUMMY_MAIN
10899 #  ifdef __cplusplus
10900      extern "C"
10901 #  endif
10902    int F77_DUMMY_MAIN() { return 1; }
10903 #endif
10904 int
10905 main ()
10906 {
10907 struct timeval *tp;
10908 struct timezone *tzp;
10909 gettimeofday(tp,tzp);
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916   (eval $ac_compile) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -s conftest.$ac_objext'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   pgac_cv_func_gettimeofday_1arg=no
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 pgac_cv_func_gettimeofday_1arg=yes
10931 fi
10932 rm -f conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10935 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10936 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define GETTIMEOFDAY_1ARG
10940 _ACEOF
10941
10942 fi
10943
10944
10945
10946 # SunOS doesn't handle negative byte comparisons properly with +/- return
10947 echo "$as_me:$LINENO: checking for working memcmp" >&5
10948 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10949 if test "${ac_cv_func_memcmp_working+set}" = set; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   if test "$cross_compiling" = yes; then
10953   ac_cv_func_memcmp_working=no
10954 else
10955   cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958
10959 #ifdef F77_DUMMY_MAIN
10960 #  ifdef __cplusplus
10961      extern "C"
10962 #  endif
10963    int F77_DUMMY_MAIN() { return 1; }
10964 #endif
10965 int
10966 main ()
10967 {
10968
10969   /* Some versions of memcmp are not 8-bit clean.  */
10970   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10971   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10972     exit (1);
10973
10974   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10975      or more and with at least one buffer not starting on a 4-byte boundary.
10976      William Lewis provided this test program.   */
10977   {
10978     char foo[21];
10979     char bar[21];
10980     int i;
10981     for (i = 0; i < 4; i++)
10982       {
10983         char *a = foo + i;
10984         char *b = bar + i;
10985         strcpy (a, "--------01111111");
10986         strcpy (b, "--------10000000");
10987         if (memcmp (a, b, 16) >= 0)
10988           exit (1);
10989       }
10990     exit (0);
10991   }
10992
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999   (eval $ac_link) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   ac_cv_func_memcmp_working=yes
11009 else
11010   echo "$as_me: program exited with status $ac_status" >&5
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 ( exit $ac_status )
11014 ac_cv_func_memcmp_working=no
11015 fi
11016 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 fi
11019 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11020 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11021 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11041 do
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_var+set}\" = set"; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11051 /* System header to define __stub macros and hopefully few prototypes,
11052     which can conflict with char $ac_func (); below.  */
11053 #include <assert.h>
11054 /* Override any gcc2 internal prototype to avoid an error.  */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 /* We use char because int might match the return type of a gcc2
11059    builtin and then its argument prototype would still apply.  */
11060 char $ac_func ();
11061 char (*f) ();
11062
11063 #ifdef F77_DUMMY_MAIN
11064 #  ifdef __cplusplus
11065      extern "C"
11066 #  endif
11067    int F77_DUMMY_MAIN() { return 1; }
11068 #endif
11069 int
11070 main ()
11071 {
11072 /* The GNU C library defines this for functions which it implements
11073     to always fail with ENOSYS.  Some functions are actually named
11074     something starting with __ and the normal name is an alias.  */
11075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11076 choke me
11077 #else
11078 f = $ac_func;
11079 #endif
11080
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087   (eval $ac_link) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   eval "$as_ac_var=yes"
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11101 eval "$as_ac_var=no"
11102 fi
11103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11104 fi
11105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108   cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111
11112 fi
11113 done
11114
11115
11116 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11117 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11118 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 #include "confdefs.h"
11124 #include <unistd.h>
11125
11126 #ifdef F77_DUMMY_MAIN
11127 #  ifdef __cplusplus
11128      extern "C"
11129 #  endif
11130    int F77_DUMMY_MAIN() { return 1; }
11131 #endif
11132 int
11133 main ()
11134 {
11135 #ifndef fdatasync
11136   char *p = (char *) fdatasync;
11137 #endif
11138
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145   (eval $ac_compile) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -s conftest.$ac_objext'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }; then
11155   ac_cv_have_decl_fdatasync=yes
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11159 ac_cv_have_decl_fdatasync=no
11160 fi
11161 rm -f conftest.$ac_objext conftest.$ac_ext
11162 fi
11163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11164 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11165 if test $ac_cv_have_decl_fdatasync = yes; then
11166
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_DECL_FDATASYNC 1
11169 _ACEOF
11170
11171
11172 else
11173   cat >>confdefs.h <<_ACEOF
11174 #define HAVE_DECL_FDATASYNC 0
11175 _ACEOF
11176
11177
11178 fi
11179
11180
11181
11182 HAVE_IPV6=no
11183 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11184 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11185 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   cat >conftest.$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11190 #include "confdefs.h"
11191 $ac_includes_default
11192 #include <netinet/in.h>
11193
11194 #ifdef F77_DUMMY_MAIN
11195 #  ifdef __cplusplus
11196      extern "C"
11197 #  endif
11198    int F77_DUMMY_MAIN() { return 1; }
11199 #endif
11200 int
11201 main ()
11202 {
11203 if ((struct sockaddr_in6 *) 0)
11204   return 0;
11205 if (sizeof (struct sockaddr_in6))
11206   return 0;
11207   ;
11208   return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213   (eval $ac_compile) 2>&5
11214   ac_status=$?
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } &&
11217          { ac_try='test -s conftest.$ac_objext'
11218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219   (eval $ac_try) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); }; }; then
11223   ac_cv_type_struct_sockaddr_in6=yes
11224 else
11225   echo "$as_me: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 ac_cv_type_struct_sockaddr_in6=no
11228 fi
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11230 fi
11231 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11232 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11233 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11234   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11235 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11236 if test "${ac_cv_func_inet_ntop+set}" = set; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243     which can conflict with char inet_ntop (); below.  */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error.  */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 /* We use char because int might match the return type of a gcc2
11250    builtin and then its argument prototype would still apply.  */
11251 char inet_ntop ();
11252 char (*f) ();
11253
11254 #ifdef F77_DUMMY_MAIN
11255 #  ifdef __cplusplus
11256      extern "C"
11257 #  endif
11258    int F77_DUMMY_MAIN() { return 1; }
11259 #endif
11260 int
11261 main ()
11262 {
11263 /* The GNU C library defines this for functions which it implements
11264     to always fail with ENOSYS.  Some functions are actually named
11265     something starting with __ and the normal name is an alias.  */
11266 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11267 choke me
11268 #else
11269 f = inet_ntop;
11270 #endif
11271
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278   (eval $ac_link) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -s conftest$ac_exeext'
11283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   ac_cv_func_inet_ntop=yes
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 ac_cv_func_inet_ntop=no
11293 fi
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295 fi
11296 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11297 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11298 if test $ac_cv_func_inet_ntop = yes; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_IPV6 1
11302 _ACEOF
11303
11304                                                           HAVE_IPV6=yes
11305 fi
11306
11307 fi
11308
11309
11310
11311 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11312 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11313 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 #include "confdefs.h"
11319 #include <machine/vmparam.h>
11320 #include <sys/exec.h>
11321
11322 #ifdef F77_DUMMY_MAIN
11323 #  ifdef __cplusplus
11324      extern "C"
11325 #  endif
11326    int F77_DUMMY_MAIN() { return 1; }
11327 #endif
11328 int
11329 main ()
11330 {
11331 PS_STRINGS->ps_nargvstr = 1;
11332 PS_STRINGS->ps_argvstr = "foo";
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339   (eval $ac_link) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -s conftest$ac_exeext'
11344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345   (eval $ac_try) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   pgac_cv_var_PS_STRINGS=yes
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 pgac_cv_var_PS_STRINGS=no
11354 fi
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 fi
11357 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11358 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11359 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11360
11361 cat >>confdefs.h <<\_ACEOF
11362 #define HAVE_PS_STRINGS
11363 _ACEOF
11364
11365 fi
11366
11367
11368 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11369 # is missing.  Yes, there are machines that have only one.  We may
11370 # also decide to use snprintf.c if snprintf() is present but does not
11371 # have working "long long int" support -- see below.
11372
11373 pgac_need_repl_snprintf=no
11374
11375 for ac_func in snprintf
11376 do
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387     which can conflict with char $ac_func (); below.  */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char $ac_func ();
11396 char (*f) ();
11397
11398 #ifdef F77_DUMMY_MAIN
11399 #  ifdef __cplusplus
11400      extern "C"
11401 #  endif
11402    int F77_DUMMY_MAIN() { return 1; }
11403 #endif
11404 int
11405 main ()
11406 {
11407 /* The GNU C library defines this for functions which it implements
11408     to always fail with ENOSYS.  Some functions are actually named
11409     something starting with __ and the normal name is an alias.  */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 choke me
11412 #else
11413 f = $ac_func;
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422   (eval $ac_link) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   eval "$as_ac_var=yes"
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11437 fi
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443   cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11446
11447 else
11448   pgac_need_repl_snprintf=yes
11449 fi
11450 done
11451
11452
11453 for ac_func in vsnprintf
11454 do
11455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456 echo "$as_me:$LINENO: checking for $ac_func" >&5
11457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11458 if eval "test \"\${$as_ac_var+set}\" = set"; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 #include "confdefs.h"
11464 /* System header to define __stub macros and hopefully few prototypes,
11465     which can conflict with char $ac_func (); below.  */
11466 #include <assert.h>
11467 /* Override any gcc2 internal prototype to avoid an error.  */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 /* We use char because int might match the return type of a gcc2
11472    builtin and then its argument prototype would still apply.  */
11473 char $ac_func ();
11474 char (*f) ();
11475
11476 #ifdef F77_DUMMY_MAIN
11477 #  ifdef __cplusplus
11478      extern "C"
11479 #  endif
11480    int F77_DUMMY_MAIN() { return 1; }
11481 #endif
11482 int
11483 main ()
11484 {
11485 /* The GNU C library defines this for functions which it implements
11486     to always fail with ENOSYS.  Some functions are actually named
11487     something starting with __ and the normal name is an alias.  */
11488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489 choke me
11490 #else
11491 f = $ac_func;
11492 #endif
11493
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500   (eval $ac_link) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   eval "$as_ac_var=yes"
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 eval "$as_ac_var=no"
11515 fi
11516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11520 if test `eval echo '${'$as_ac_var'}'` = yes; then
11521   cat >>confdefs.h <<_ACEOF
11522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11523 _ACEOF
11524
11525 else
11526   pgac_need_repl_snprintf=yes
11527 fi
11528 done
11529
11530
11531
11532 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11533 # include/c.h will provide declarations.  Note this is a separate test
11534 # from whether the functions exist in the C library --- there are
11535 # systems that have the functions but don't bother to declare them :-(
11536
11537 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11538 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11539 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   cat >conftest.$ac_ext <<_ACEOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545 $ac_includes_default
11546 #ifdef F77_DUMMY_MAIN
11547 #  ifdef __cplusplus
11548      extern "C"
11549 #  endif
11550    int F77_DUMMY_MAIN() { return 1; }
11551 #endif
11552 int
11553 main ()
11554 {
11555 #ifndef snprintf
11556   char *p = (char *) snprintf;
11557 #endif
11558
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565   (eval $ac_compile) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } &&
11569          { ac_try='test -s conftest.$ac_objext'
11570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571   (eval $ac_try) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575   ac_cv_have_decl_snprintf=yes
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 ac_cv_have_decl_snprintf=no
11580 fi
11581 rm -f conftest.$ac_objext conftest.$ac_ext
11582 fi
11583 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11584 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11585 if test $ac_cv_have_decl_snprintf = yes; then
11586
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE_DECL_SNPRINTF 1
11589 _ACEOF
11590
11591
11592 else
11593   cat >>confdefs.h <<_ACEOF
11594 #define HAVE_DECL_SNPRINTF 0
11595 _ACEOF
11596
11597
11598 fi
11599 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11600 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11601 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605 #line $LINENO "configure"
11606 #include "confdefs.h"
11607 $ac_includes_default
11608 #ifdef F77_DUMMY_MAIN
11609 #  ifdef __cplusplus
11610      extern "C"
11611 #  endif
11612    int F77_DUMMY_MAIN() { return 1; }
11613 #endif
11614 int
11615 main ()
11616 {
11617 #ifndef vsnprintf
11618   char *p = (char *) vsnprintf;
11619 #endif
11620
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627   (eval $ac_compile) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -s conftest.$ac_objext'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; }; then
11637   ac_cv_have_decl_vsnprintf=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11641 ac_cv_have_decl_vsnprintf=no
11642 fi
11643 rm -f conftest.$ac_objext conftest.$ac_ext
11644 fi
11645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11646 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11647 if test $ac_cv_have_decl_vsnprintf = yes; then
11648
11649 cat >>confdefs.h <<_ACEOF
11650 #define HAVE_DECL_VSNPRINTF 1
11651 _ACEOF
11652
11653
11654 else
11655   cat >>confdefs.h <<_ACEOF
11656 #define HAVE_DECL_VSNPRINTF 0
11657 _ACEOF
11658
11659
11660 fi
11661
11662
11663
11664
11665 # do this one the hard way in case isinf() is a macro
11666 echo "$as_me:$LINENO: checking for isinf" >&5
11667 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11668 if test "${ac_cv_func_isinf+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11674 #include <math.h>
11675
11676 #ifdef F77_DUMMY_MAIN
11677 #  ifdef __cplusplus
11678      extern "C"
11679 #  endif
11680    int F77_DUMMY_MAIN() { return 1; }
11681 #endif
11682 int
11683 main ()
11684 {
11685 double x = 0.0; int res = isinf(x);
11686   ;
11687   return 0;
11688 }
11689 _ACEOF
11690 rm -f conftest.$ac_objext conftest$ac_exeext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692   (eval $ac_link) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -s conftest$ac_exeext'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; }; then
11702   ac_cv_func_isinf=yes
11703 else
11704   echo "$as_me: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 ac_cv_func_isinf=no
11707 fi
11708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11709 fi
11710 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11711 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11712
11713 if test $ac_cv_func_isinf = yes ; then
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_ISINF 1
11717 _ACEOF
11718
11719 else
11720   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11721   # Look for a way to implement a substitute for isinf()
11722
11723
11724
11725
11726 for ac_func in fpclass fp_class fp_class_d class
11727 do
11728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11731 if eval "test \"\${$as_ac_var+set}\" = set"; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734   cat >conftest.$ac_ext <<_ACEOF
11735 #line $LINENO "configure"
11736 #include "confdefs.h"
11737 /* System header to define __stub macros and hopefully few prototypes,
11738     which can conflict with char $ac_func (); below.  */
11739 #include <assert.h>
11740 /* Override any gcc2 internal prototype to avoid an error.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 /* We use char because int might match the return type of a gcc2
11745    builtin and then its argument prototype would still apply.  */
11746 char $ac_func ();
11747 char (*f) ();
11748
11749 #ifdef F77_DUMMY_MAIN
11750 #  ifdef __cplusplus
11751      extern "C"
11752 #  endif
11753    int F77_DUMMY_MAIN() { return 1; }
11754 #endif
11755 int
11756 main ()
11757 {
11758 /* The GNU C library defines this for functions which it implements
11759     to always fail with ENOSYS.  Some functions are actually named
11760     something starting with __ and the normal name is an alias.  */
11761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11762 choke me
11763 #else
11764 f = $ac_func;
11765 #endif
11766
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773   (eval $ac_link) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -s conftest$ac_exeext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   eval "$as_ac_var=yes"
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 eval "$as_ac_var=no"
11788 fi
11789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11790 fi
11791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11793 if test `eval echo '${'$as_ac_var'}'` = yes; then
11794   cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796 _ACEOF
11797  break
11798 fi
11799 done
11800
11801 fi
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11817 do
11818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 echo "$as_me:$LINENO: checking for $ac_func" >&5
11820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11821 if eval "test \"\${$as_ac_var+set}\" = set"; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 #line $LINENO "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828     which can conflict with char $ac_func (); below.  */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error.  */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 /* We use char because int might match the return type of a gcc2
11835    builtin and then its argument prototype would still apply.  */
11836 char $ac_func ();
11837 char (*f) ();
11838
11839 #ifdef F77_DUMMY_MAIN
11840 #  ifdef __cplusplus
11841      extern "C"
11842 #  endif
11843    int F77_DUMMY_MAIN() { return 1; }
11844 #endif
11845 int
11846 main ()
11847 {
11848 /* The GNU C library defines this for functions which it implements
11849     to always fail with ENOSYS.  Some functions are actually named
11850     something starting with __ and the normal name is an alias.  */
11851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11852 choke me
11853 #else
11854 f = $ac_func;
11855 #endif
11856
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863   (eval $ac_link) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -s conftest$ac_exeext'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   eval "$as_ac_var=yes"
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11877 eval "$as_ac_var=no"
11878 fi
11879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11883 if test `eval echo '${'$as_ac_var'}'` = yes; then
11884   cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886 _ACEOF
11887
11888 else
11889   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11890 fi
11891 done
11892
11893
11894
11895 # system's version of getaddrinfo(), if any, may be used only if we found
11896 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11897 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11898
11899 for ac_func in getaddrinfo
11900 do
11901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11904 if eval "test \"\${$as_ac_var+set}\" = set"; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 #line $LINENO "configure"
11909 #include "confdefs.h"
11910 /* System header to define __stub macros and hopefully few prototypes,
11911     which can conflict with char $ac_func (); below.  */
11912 #include <assert.h>
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 #endif
11917 /* We use char because int might match the return type of a gcc2
11918    builtin and then its argument prototype would still apply.  */
11919 char $ac_func ();
11920 char (*f) ();
11921
11922 #ifdef F77_DUMMY_MAIN
11923 #  ifdef __cplusplus
11924      extern "C"
11925 #  endif
11926    int F77_DUMMY_MAIN() { return 1; }
11927 #endif
11928 int
11929 main ()
11930 {
11931 /* The GNU C library defines this for functions which it implements
11932     to always fail with ENOSYS.  Some functions are actually named
11933     something starting with __ and the normal name is an alias.  */
11934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11935 choke me
11936 #else
11937 f = $ac_func;
11938 #endif
11939
11940   ;
11941   return 0;
11942 }
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946   (eval $ac_link) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -s conftest$ac_exeext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   eval "$as_ac_var=yes"
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 eval "$as_ac_var=no"
11961 fi
11962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11963 fi
11964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967   cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970
11971 else
11972   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11973 fi
11974 done
11975
11976
11977 else
11978   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11979 fi
11980
11981 # similarly, use system's getopt_long() only if system provides struct option.
11982 if test x"$ac_cv_type_struct_option" = xyes ; then
11983
11984 for ac_func in getopt_long
11985 do
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_var+set}\" = set"; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 #include "confdefs.h"
11995 /* System header to define __stub macros and hopefully few prototypes,
11996     which can conflict with char $ac_func (); below.  */
11997 #include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error.  */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 /* We use char because int might match the return type of a gcc2
12003    builtin and then its argument prototype would still apply.  */
12004 char $ac_func ();
12005 char (*f) ();
12006
12007 #ifdef F77_DUMMY_MAIN
12008 #  ifdef __cplusplus
12009      extern "C"
12010 #  endif
12011    int F77_DUMMY_MAIN() { return 1; }
12012 #endif
12013 int
12014 main ()
12015 {
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 f = $ac_func;
12023 #endif
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   eval "$as_ac_var=yes"
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12045 eval "$as_ac_var=no"
12046 fi
12047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12048 fi
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12051 if test `eval echo '${'$as_ac_var'}'` = yes; then
12052   cat >>confdefs.h <<_ACEOF
12053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12054 _ACEOF
12055
12056 else
12057   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12058 fi
12059 done
12060
12061
12062 else
12063   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12064 fi
12065
12066 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12067 # We override the previous test that said fseeko/ftello didn't exist
12068 # OS tests are also done in include/c.h and port/fseeko.c
12069 case $host_os in bsdi*|netbsd*)
12070 ac_cv_func_fseeko=yes
12071 esac
12072
12073 # Solaris has a very slow qsort in certain cases, so we replace it.
12074 case $host_os in solaris*)
12075 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12076 esac
12077
12078 # Win32 support
12079 case $host_os in mingw*)
12080 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12081 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12082 LIBOBJS="$LIBOBJS open.$ac_objext"
12083 LIBOBJS="$LIBOBJS pipe.$ac_objext"
12084 LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
12085 esac
12086
12087 # Win32 can't to rename or unlink on an open file
12088 case $host_os in mingw*|cygwin*)
12089 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
12090 esac
12091
12092 if test "$with_readline" = yes; then
12093   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12094 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12095 cat >conftest.$ac_ext <<_ACEOF
12096 #line $LINENO "configure"
12097 #include "confdefs.h"
12098 #include <stdio.h>
12099 #ifdef HAVE_READLINE_READLINE_H
12100 # include <readline/readline.h>
12101 #elif defined(HAVE_READLINE_H)
12102 # include <readline.h>
12103 #endif
12104
12105 #ifdef F77_DUMMY_MAIN
12106 #  ifdef __cplusplus
12107      extern "C"
12108 #  endif
12109    int F77_DUMMY_MAIN() { return 1; }
12110 #endif
12111 int
12112 main ()
12113 {
12114 rl_completion_append_character = 'x';
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -s conftest$ac_exeext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6
12133
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12136 _ACEOF
12137
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 echo "$as_me:$LINENO: result: no" >&5
12142 echo "${ECHO_T}no" >&6
12143 fi
12144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12145
12146
12147 for ac_func in rl_completion_matches rl_filename_completion_function
12148 do
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12152 if eval "test \"\${$as_ac_var+set}\" = set"; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   cat >conftest.$ac_ext <<_ACEOF
12156 #line $LINENO "configure"
12157 #include "confdefs.h"
12158 /* System header to define __stub macros and hopefully few prototypes,
12159     which can conflict with char $ac_func (); below.  */
12160 #include <assert.h>
12161 /* Override any gcc2 internal prototype to avoid an error.  */
12162 #ifdef __cplusplus
12163 extern "C"
12164 #endif
12165 /* We use char because int might match the return type of a gcc2
12166    builtin and then its argument prototype would still apply.  */
12167 char $ac_func ();
12168 char (*f) ();
12169
12170 #ifdef F77_DUMMY_MAIN
12171 #  ifdef __cplusplus
12172      extern "C"
12173 #  endif
12174    int F77_DUMMY_MAIN() { return 1; }
12175 #endif
12176 int
12177 main ()
12178 {
12179 /* The GNU C library defines this for functions which it implements
12180     to always fail with ENOSYS.  Some functions are actually named
12181     something starting with __ and the normal name is an alias.  */
12182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12183 choke me
12184 #else
12185 f = $ac_func;
12186 #endif
12187
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext conftest$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194   (eval $ac_link) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -s conftest$ac_exeext'
12199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200   (eval $ac_try) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; }; then
12204   eval "$as_ac_var=yes"
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12208 eval "$as_ac_var=no"
12209 fi
12210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12211 fi
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12214 if test `eval echo '${'$as_ac_var'}'` = yes; then
12215   cat >>confdefs.h <<_ACEOF
12216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12217 _ACEOF
12218
12219 fi
12220 done
12221
12222
12223 for ac_func in replace_history_entry
12224 do
12225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12226 echo "$as_me:$LINENO: checking for $ac_func" >&5
12227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12228 if eval "test \"\${$as_ac_var+set}\" = set"; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   cat >conftest.$ac_ext <<_ACEOF
12232 #line $LINENO "configure"
12233 #include "confdefs.h"
12234 /* System header to define __stub macros and hopefully few prototypes,
12235     which can conflict with char $ac_func (); below.  */
12236 #include <assert.h>
12237 /* Override any gcc2 internal prototype to avoid an error.  */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 /* We use char because int might match the return type of a gcc2
12242    builtin and then its argument prototype would still apply.  */
12243 char $ac_func ();
12244 char (*f) ();
12245
12246 #ifdef F77_DUMMY_MAIN
12247 #  ifdef __cplusplus
12248      extern "C"
12249 #  endif
12250    int F77_DUMMY_MAIN() { return 1; }
12251 #endif
12252 int
12253 main ()
12254 {
12255 /* The GNU C library defines this for functions which it implements
12256     to always fail with ENOSYS.  Some functions are actually named
12257     something starting with __ and the normal name is an alias.  */
12258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12259 choke me
12260 #else
12261 f = $ac_func;
12262 #endif
12263
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270   (eval $ac_link) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -s conftest$ac_exeext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   eval "$as_ac_var=yes"
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 eval "$as_ac_var=no"
12285 fi
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12290 if test `eval echo '${'$as_ac_var'}'` = yes; then
12291   cat >>confdefs.h <<_ACEOF
12292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12293 _ACEOF
12294
12295 fi
12296 done
12297
12298 fi
12299
12300
12301 echo "$as_me:$LINENO: checking for finite" >&5
12302 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12304 #line $LINENO "configure"
12305 #include "confdefs.h"
12306 #include <math.h>
12307 #ifdef F77_DUMMY_MAIN
12308 #  ifdef __cplusplus
12309      extern "C"
12310 #  endif
12311    int F77_DUMMY_MAIN() { return 1; }
12312 #endif
12313 int
12314 main ()
12315 {
12316 int dummy=finite(1.0);
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323   (eval $ac_link) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -s conftest$ac_exeext'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; }; then
12333
12334 cat >>confdefs.h <<\_ACEOF
12335 #define HAVE_FINITE 1
12336 _ACEOF
12337
12338 echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6
12345 fi
12346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12347
12348 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12349 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 #include "confdefs.h"
12353 #include <setjmp.h>
12354 #ifdef F77_DUMMY_MAIN
12355 #  ifdef __cplusplus
12356      extern "C"
12357 #  endif
12358    int F77_DUMMY_MAIN() { return 1; }
12359 #endif
12360 int
12361 main ()
12362 {
12363 sigjmp_buf x; sigsetjmp(x, 1);
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370   (eval $ac_link) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -s conftest$ac_exeext'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; }; then
12380
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_SIGSETJMP 1
12383 _ACEOF
12384
12385 echo "$as_me:$LINENO: result: yes" >&5
12386 echo "${ECHO_T}yes" >&6
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12390 echo "$as_me:$LINENO: result: no" >&5
12391 echo "${ECHO_T}no" >&6
12392 fi
12393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12394
12395 echo "$as_me:$LINENO: checking for syslog" >&5
12396 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12397 if test "${ac_cv_func_syslog+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   cat >conftest.$ac_ext <<_ACEOF
12401 #line $LINENO "configure"
12402 #include "confdefs.h"
12403 /* System header to define __stub macros and hopefully few prototypes,
12404     which can conflict with char syslog (); below.  */
12405 #include <assert.h>
12406 /* Override any gcc2 internal prototype to avoid an error.  */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 /* We use char because int might match the return type of a gcc2
12411    builtin and then its argument prototype would still apply.  */
12412 char syslog ();
12413 char (*f) ();
12414
12415 #ifdef F77_DUMMY_MAIN
12416 #  ifdef __cplusplus
12417      extern "C"
12418 #  endif
12419    int F77_DUMMY_MAIN() { return 1; }
12420 #endif
12421 int
12422 main ()
12423 {
12424 /* The GNU C library defines this for functions which it implements
12425     to always fail with ENOSYS.  Some functions are actually named
12426     something starting with __ and the normal name is an alias.  */
12427 #if defined (__stub_syslog) || defined (__stub___syslog)
12428 choke me
12429 #else
12430 f = syslog;
12431 #endif
12432
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12439   (eval $ac_link) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); } &&
12443          { ac_try='test -s conftest$ac_exeext'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; }; then
12449   ac_cv_func_syslog=yes
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 ac_cv_func_syslog=no
12454 fi
12455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12456 fi
12457 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12458 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12459 if test $ac_cv_func_syslog = yes; then
12460   if test "${ac_cv_header_syslog_h+set}" = set; then
12461   echo "$as_me:$LINENO: checking for syslog.h" >&5
12462 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12463 if test "${ac_cv_header_syslog_h+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12467 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12468 else
12469   # Is the header compilable?
12470 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12471 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12472 cat >conftest.$ac_ext <<_ACEOF
12473 #line $LINENO "configure"
12474 #include "confdefs.h"
12475 $ac_includes_default
12476 #include <syslog.h>
12477 _ACEOF
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } &&
12484          { ac_try='test -s conftest.$ac_objext'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; }; then
12490   ac_header_compiler=yes
12491 else
12492   echo "$as_me: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12494 ac_header_compiler=no
12495 fi
12496 rm -f conftest.$ac_objext conftest.$ac_ext
12497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12498 echo "${ECHO_T}$ac_header_compiler" >&6
12499
12500 # Is the header present?
12501 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12502 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12504 #line $LINENO "configure"
12505 #include "confdefs.h"
12506 #include <syslog.h>
12507 _ACEOF
12508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12510   ac_status=$?
12511   egrep -v '^ *\+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } >/dev/null; then
12516   if test -s conftest.err; then
12517     ac_cpp_err=$ac_c_preproc_warn_flag
12518   else
12519     ac_cpp_err=
12520   fi
12521 else
12522   ac_cpp_err=yes
12523 fi
12524 if test -z "$ac_cpp_err"; then
12525   ac_header_preproc=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528   cat conftest.$ac_ext >&5
12529   ac_header_preproc=no
12530 fi
12531 rm -f conftest.err conftest.$ac_ext
12532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12533 echo "${ECHO_T}$ac_header_preproc" >&6
12534
12535 # So?  What about this header?
12536 case $ac_header_compiler:$ac_header_preproc in
12537   yes:no )
12538     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12539 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12540     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12541 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12542   no:yes )
12543     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12544 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12545     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12546 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12547     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12548 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12549 esac
12550 echo "$as_me:$LINENO: checking for syslog.h" >&5
12551 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12552 if test "${ac_cv_header_syslog_h+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_cv_header_syslog_h=$ac_header_preproc
12556 fi
12557 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12558 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12559
12560 fi
12561 if test $ac_cv_header_syslog_h = yes; then
12562
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_SYSLOG 1
12565 _ACEOF
12566
12567 fi
12568
12569
12570 fi
12571
12572
12573 echo "$as_me:$LINENO: checking for optreset" >&5
12574 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12575 if test "${pgac_cv_var_int_optreset+set}" = set; then
12576   echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12578   cat >conftest.$ac_ext <<_ACEOF
12579 #line $LINENO "configure"
12580 #include "confdefs.h"
12581 #include <unistd.h>
12582 #ifdef F77_DUMMY_MAIN
12583 #  ifdef __cplusplus
12584      extern "C"
12585 #  endif
12586    int F77_DUMMY_MAIN() { return 1; }
12587 #endif
12588 int
12589 main ()
12590 {
12591 extern int optreset; optreset = 1;
12592   ;
12593   return 0;
12594 }
12595 _ACEOF
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12598   (eval $ac_link) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -s conftest$ac_exeext'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   pgac_cv_var_int_optreset=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12612 pgac_cv_var_int_optreset=no
12613 fi
12614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12615 fi
12616 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12617 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12618 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12619
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_INT_OPTRESET 1
12622 _ACEOF
12623
12624 fi
12625
12626
12627
12628 for ac_func in strtoll strtoq
12629 do
12630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12631 echo "$as_me:$LINENO: checking for $ac_func" >&5
12632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_var+set}\" = set"; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   cat >conftest.$ac_ext <<_ACEOF
12637 #line $LINENO "configure"
12638 #include "confdefs.h"
12639 /* System header to define __stub macros and hopefully few prototypes,
12640     which can conflict with char $ac_func (); below.  */
12641 #include <assert.h>
12642 /* Override any gcc2 internal prototype to avoid an error.  */
12643 #ifdef __cplusplus
12644 extern "C"
12645 #endif
12646 /* We use char because int might match the return type of a gcc2
12647    builtin and then its argument prototype would still apply.  */
12648 char $ac_func ();
12649 char (*f) ();
12650
12651 #ifdef F77_DUMMY_MAIN
12652 #  ifdef __cplusplus
12653      extern "C"
12654 #  endif
12655    int F77_DUMMY_MAIN() { return 1; }
12656 #endif
12657 int
12658 main ()
12659 {
12660 /* The GNU C library defines this for functions which it implements
12661     to always fail with ENOSYS.  Some functions are actually named
12662     something starting with __ and the normal name is an alias.  */
12663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12664 choke me
12665 #else
12666 f = $ac_func;
12667 #endif
12668
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12675   (eval $ac_link) 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } &&
12679          { ac_try='test -s conftest$ac_exeext'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; }; then
12685   eval "$as_ac_var=yes"
12686 else
12687   echo "$as_me: failed program was:" >&5
12688 cat conftest.$ac_ext >&5
12689 eval "$as_ac_var=no"
12690 fi
12691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12692 fi
12693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12695 if test `eval echo '${'$as_ac_var'}'` = yes; then
12696   cat >>confdefs.h <<_ACEOF
12697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12698 _ACEOF
12699  break
12700 fi
12701 done
12702
12703
12704
12705 for ac_func in strtoull strtouq
12706 do
12707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708 echo "$as_me:$LINENO: checking for $ac_func" >&5
12709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12710 if eval "test \"\${$as_ac_var+set}\" = set"; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 /* System header to define __stub macros and hopefully few prototypes,
12717     which can conflict with char $ac_func (); below.  */
12718 #include <assert.h>
12719 /* Override any gcc2 internal prototype to avoid an error.  */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724    builtin and then its argument prototype would still apply.  */
12725 char $ac_func ();
12726 char (*f) ();
12727
12728 #ifdef F77_DUMMY_MAIN
12729 #  ifdef __cplusplus
12730      extern "C"
12731 #  endif
12732    int F77_DUMMY_MAIN() { return 1; }
12733 #endif
12734 int
12735 main ()
12736 {
12737 /* The GNU C library defines this for functions which it implements
12738     to always fail with ENOSYS.  Some functions are actually named
12739     something starting with __ and the normal name is an alias.  */
12740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12741 choke me
12742 #else
12743 f = $ac_func;
12744 #endif
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752   (eval $ac_link) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -s conftest$ac_exeext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   eval "$as_ac_var=yes"
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12766 eval "$as_ac_var=no"
12767 fi
12768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12769 fi
12770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12772 if test `eval echo '${'$as_ac_var'}'` = yes; then
12773   cat >>confdefs.h <<_ACEOF
12774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12775 _ACEOF
12776  break
12777 fi
12778 done
12779
12780
12781 # Check for one of atexit() or on_exit()
12782
12783 for ac_func in atexit
12784 do
12785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12786 echo "$as_me:$LINENO: checking for $ac_func" >&5
12787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12788 if eval "test \"\${$as_ac_var+set}\" = set"; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 #include "confdefs.h"
12794 /* System header to define __stub macros and hopefully few prototypes,
12795     which can conflict with char $ac_func (); below.  */
12796 #include <assert.h>
12797 /* Override any gcc2 internal prototype to avoid an error.  */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 /* We use char because int might match the return type of a gcc2
12802    builtin and then its argument prototype would still apply.  */
12803 char $ac_func ();
12804 char (*f) ();
12805
12806 #ifdef F77_DUMMY_MAIN
12807 #  ifdef __cplusplus
12808      extern "C"
12809 #  endif
12810    int F77_DUMMY_MAIN() { return 1; }
12811 #endif
12812 int
12813 main ()
12814 {
12815 /* The GNU C library defines this for functions which it implements
12816     to always fail with ENOSYS.  Some functions are actually named
12817     something starting with __ and the normal name is an alias.  */
12818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12819 choke me
12820 #else
12821 f = $ac_func;
12822 #endif
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830   (eval $ac_link) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } &&
12834          { ac_try='test -s conftest$ac_exeext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   eval "$as_ac_var=yes"
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 eval "$as_ac_var=no"
12845 fi
12846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12847 fi
12848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12850 if test `eval echo '${'$as_ac_var'}'` = yes; then
12851   cat >>confdefs.h <<_ACEOF
12852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12853 _ACEOF
12854
12855 else
12856
12857 for ac_func in on_exit
12858 do
12859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860 echo "$as_me:$LINENO: checking for $ac_func" >&5
12861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862 if eval "test \"\${$as_ac_var+set}\" = set"; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes,
12869     which can conflict with char $ac_func (); below.  */
12870 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error.  */
12872 #ifdef __cplusplus
12873 extern "C"
12874 #endif
12875 /* We use char because int might match the return type of a gcc2
12876    builtin and then its argument prototype would still apply.  */
12877 char $ac_func ();
12878 char (*f) ();
12879
12880 #ifdef F77_DUMMY_MAIN
12881 #  ifdef __cplusplus
12882      extern "C"
12883 #  endif
12884    int F77_DUMMY_MAIN() { return 1; }
12885 #endif
12886 int
12887 main ()
12888 {
12889 /* The GNU C library defines this for functions which it implements
12890     to always fail with ENOSYS.  Some functions are actually named
12891     something starting with __ and the normal name is an alias.  */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12893 choke me
12894 #else
12895 f = $ac_func;
12896 #endif
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904   (eval $ac_link) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   eval "$as_ac_var=yes"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 eval "$as_ac_var=no"
12919 fi
12920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12921 fi
12922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12924 if test `eval echo '${'$as_ac_var'}'` = yes; then
12925   cat >>confdefs.h <<_ACEOF
12926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12927 _ACEOF
12928
12929 else
12930   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12931 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12932    { (exit 1); exit 1; }; }
12933 fi
12934 done
12935
12936 fi
12937 done
12938
12939
12940 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12941 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12942 if test "${ac_cv_sys_largefile_source+set}" = set; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945   while :; do
12946   ac_cv_sys_largefile_source=no
12947   cat >conftest.$ac_ext <<_ACEOF
12948 #line $LINENO "configure"
12949 #include "confdefs.h"
12950 #include <stdio.h>
12951 #ifdef F77_DUMMY_MAIN
12952 #  ifdef __cplusplus
12953      extern "C"
12954 #  endif
12955    int F77_DUMMY_MAIN() { return 1; }
12956 #endif
12957 int
12958 main ()
12959 {
12960 return !fseeko;
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967   (eval $ac_compile) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -s conftest.$ac_objext'
12972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973   (eval $ac_try) 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; }; then
12977   break
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 fi
12982 rm -f conftest.$ac_objext conftest.$ac_ext
12983   cat >conftest.$ac_ext <<_ACEOF
12984 #line $LINENO "configure"
12985 #include "confdefs.h"
12986 #define _LARGEFILE_SOURCE 1
12987 #include <stdio.h>
12988 #ifdef F77_DUMMY_MAIN
12989 #  ifdef __cplusplus
12990      extern "C"
12991 #  endif
12992    int F77_DUMMY_MAIN() { return 1; }
12993 #endif
12994 int
12995 main ()
12996 {
12997 return !fseeko;
12998   ;
12999   return 0;
13000 }
13001 _ACEOF
13002 rm -f conftest.$ac_objext
13003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13004   (eval $ac_compile) 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } &&
13008          { ac_try='test -s conftest.$ac_objext'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   ac_cv_sys_largefile_source=1; break
13015 else
13016   echo "$as_me: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 fi
13019 rm -f conftest.$ac_objext conftest.$ac_ext
13020   break
13021 done
13022 fi
13023 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13024 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13025 if test "$ac_cv_sys_largefile_source" != no; then
13026
13027 cat >>confdefs.h <<_ACEOF
13028 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13029 _ACEOF
13030
13031 fi
13032 rm -f conftest*
13033
13034 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13035 # in glibc 2.1.3, but that breaks too many other things.
13036 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13037 echo "$as_me:$LINENO: checking for fseeko" >&5
13038 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13039 if test "${ac_cv_func_fseeko+set}" = set; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 else
13042   cat >conftest.$ac_ext <<_ACEOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13045 #include <stdio.h>
13046 #ifdef F77_DUMMY_MAIN
13047 #  ifdef __cplusplus
13048      extern "C"
13049 #  endif
13050    int F77_DUMMY_MAIN() { return 1; }
13051 #endif
13052 int
13053 main ()
13054 {
13055 return fseeko && fseeko (stdin, 0, 0);
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062   (eval $ac_link) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } &&
13066          { ac_try='test -s conftest$ac_exeext'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; }; then
13072   ac_cv_func_fseeko=yes
13073 else
13074   echo "$as_me: failed program was:" >&5
13075 cat conftest.$ac_ext >&5
13076 ac_cv_func_fseeko=no
13077 fi
13078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13081 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13082 if test $ac_cv_func_fseeko = yes; then
13083
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_FSEEKO 1
13086 _ACEOF
13087
13088 fi
13089
13090
13091 #
13092 # Pthreads
13093 #
13094 # For each platform, we need to know about any special compile and link
13095 # libraries, and whether the normal C function names are thread-safe.
13096 # See the comment at the top of src/port/thread.c for more information.
13097 #
13098 if test "$enable_thread_safety" = yes; then
13099 if test "${ac_cv_header_pthread_h+set}" = set; then
13100   echo "$as_me:$LINENO: checking for pthread.h" >&5
13101 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13102 if test "${ac_cv_header_pthread_h+set}" = set; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13106 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13107 else
13108   # Is the header compilable?
13109 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13110 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13113 #include "confdefs.h"
13114 $ac_includes_default
13115 #include <pthread.h>
13116 _ACEOF
13117 rm -f conftest.$ac_objext
13118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119   (eval $ac_compile) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -s conftest.$ac_objext'
13124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125   (eval $ac_try) 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   ac_header_compiler=yes
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 ac_header_compiler=no
13134 fi
13135 rm -f conftest.$ac_objext conftest.$ac_ext
13136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13137 echo "${ECHO_T}$ac_header_compiler" >&6
13138
13139 # Is the header present?
13140 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13141 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13142 cat >conftest.$ac_ext <<_ACEOF
13143 #line $LINENO "configure"
13144 #include "confdefs.h"
13145 #include <pthread.h>
13146 _ACEOF
13147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13149   ac_status=$?
13150   egrep -v '^ *\+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } >/dev/null; then
13155   if test -s conftest.err; then
13156     ac_cpp_err=$ac_c_preproc_warn_flag
13157   else
13158     ac_cpp_err=
13159   fi
13160 else
13161   ac_cpp_err=yes
13162 fi
13163 if test -z "$ac_cpp_err"; then
13164   ac_header_preproc=yes
13165 else
13166   echo "$as_me: failed program was:" >&5
13167   cat conftest.$ac_ext >&5
13168   ac_header_preproc=no
13169 fi
13170 rm -f conftest.err conftest.$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172 echo "${ECHO_T}$ac_header_preproc" >&6
13173
13174 # So?  What about this header?
13175 case $ac_header_compiler:$ac_header_preproc in
13176   yes:no )
13177     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13178 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13179     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13180 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13181   no:yes )
13182     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13183 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13184     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13185 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13186     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13188 esac
13189 echo "$as_me:$LINENO: checking for pthread.h" >&5
13190 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13191 if test "${ac_cv_header_pthread_h+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   ac_cv_header_pthread_h=$ac_header_preproc
13195 fi
13196 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13197 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13198
13199 fi
13200 if test $ac_cv_header_pthread_h = yes; then
13201   :
13202 else
13203   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13204 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13205    { (exit 1); exit 1; }; }
13206 fi
13207
13208
13209
13210 if test "$THREAD_SUPPORT" != yes; then
13211 { { echo "$as_me:$LINENO: error:
13212 Cannot enable threads on your platform.
13213 Please report your platform threading info to the PostgreSQL mailing lists
13214 so it can be added to the next release.  Report all compile flags, link flags,
13215 functions, or libraries required for threading support.
13216 See the comment at the top of src/port/thread.c for more information.
13217 " >&5
13218 echo "$as_me: error:
13219 Cannot enable threads on your platform.
13220 Please report your platform threading info to the PostgreSQL mailing lists
13221 so it can be added to the next release.  Report all compile flags, link flags,
13222 functions, or libraries required for threading support.
13223 See the comment at the top of src/port/thread.c for more information.
13224 " >&2;}
13225    { (exit 1); exit 1; }; }
13226 fi
13227
13228 #
13229 # Check for re-entrant versions of certain functions
13230 #
13231 # Include special flags if threads are enabled _and_ if required for
13232 # threading on this platform.  Some platforms have *_r functions but
13233 # their natively named funcs are thread-safe too.
13234 #
13235 # One trick here is that if we don't call AC_CHECK_FUNCS; the
13236 # functions are marked "not found", which is perfect.
13237 #
13238 if test "$enable_thread_safety" = yes -a "$STRERROR_THREADSAFE" = yes ; then
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define STRERROR_THREADSAFE 1
13242 _ACEOF
13243
13244 fi
13245 if test "$enable_thread_safety" = yes -a "$GETPWUID_THREADSAFE" = yes ; then
13246
13247 cat >>confdefs.h <<\_ACEOF
13248 #define GETPWUID_THREADSAFE 1
13249 _ACEOF
13250
13251 fi
13252 if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then
13253
13254 cat >>confdefs.h <<\_ACEOF
13255 #define GETHOSTBYNAME_THREADSAFE 1
13256 _ACEOF
13257
13258 fi
13259
13260 # Check for *_r functions
13261 _CFLAGS="$CFLAGS"
13262 _LIBS="$LIBS"
13263 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13264 LIBS="$LIBS $THREAD_LIBS"
13265
13266
13267
13268 for ac_func in strerror_r getpwuid_r gethostbyname_r
13269 do
13270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13271 echo "$as_me:$LINENO: checking for $ac_func" >&5
13272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13273 if eval "test \"\${$as_ac_var+set}\" = set"; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13278 #include "confdefs.h"
13279 /* System header to define __stub macros and hopefully few prototypes,
13280     which can conflict with char $ac_func (); below.  */
13281 #include <assert.h>
13282 /* Override any gcc2 internal prototype to avoid an error.  */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 /* We use char because int might match the return type of a gcc2
13287    builtin and then its argument prototype would still apply.  */
13288 char $ac_func ();
13289 char (*f) ();
13290
13291 #ifdef F77_DUMMY_MAIN
13292 #  ifdef __cplusplus
13293      extern "C"
13294 #  endif
13295    int F77_DUMMY_MAIN() { return 1; }
13296 #endif
13297 int
13298 main ()
13299 {
13300 /* The GNU C library defines this for functions which it implements
13301     to always fail with ENOSYS.  Some functions are actually named
13302     something starting with __ and the normal name is an alias.  */
13303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13304 choke me
13305 #else
13306 f = $ac_func;
13307 #endif
13308
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315   (eval $ac_link) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   eval "$as_ac_var=yes"
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13329 eval "$as_ac_var=no"
13330 fi
13331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13332 fi
13333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13335 if test `eval echo '${'$as_ac_var'}'` = yes; then
13336   cat >>confdefs.h <<_ACEOF
13337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13338 _ACEOF
13339
13340 fi
13341 done
13342
13343 CFLAGS="$_CFLAGS"
13344 LIBS="$_LIBS"
13345
13346 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13347 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13348 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 #line $LINENO "configure"
13353 #include "confdefs.h"
13354 #include <sys/types.h>
13355 #include <pwd.h>
13356 #ifdef F77_DUMMY_MAIN
13357 #  ifdef __cplusplus
13358      extern "C"
13359 #  endif
13360    int F77_DUMMY_MAIN() { return 1; }
13361 #endif
13362 int
13363 main ()
13364 {
13365 uid_t uid;
13366 struct passwd *space;
13367 char *buf;
13368 size_t bufsize;
13369 struct passwd **result;
13370 getpwuid_r(uid, space, buf, bufsize, result);
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377   (eval $ac_compile) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -s conftest.$ac_objext'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   pgac_func_getpwuid_r_5arg=yes
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 pgac_func_getpwuid_r_5arg=no
13392 fi
13393 rm -f conftest.$ac_objext conftest.$ac_ext
13394 fi
13395 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13396 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13397 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13398
13399 cat >>confdefs.h <<\_ACEOF
13400 #define GETPWUID_R_5ARG
13401 _ACEOF
13402
13403 fi
13404
13405
13406 else
13407 # do not use values from template file
13408 THREAD_CPPFLAGS=
13409 THREAD_LIBS=
13410 fi
13411
13412
13413
13414
13415
13416
13417 # This test makes sure that run tests work at all.  Sometimes a shared
13418 # library is found by the linker, but the runtime linker can't find it.
13419 # This check should come after all modifications of compiler or linker
13420 # variables, and before any other run tests.
13421 echo "$as_me:$LINENO: checking test program" >&5
13422 echo $ECHO_N "checking test program... $ECHO_C" >&6
13423 if test "$cross_compiling" = yes; then
13424   echo "$as_me:$LINENO: result: cross-compiling" >&5
13425 echo "${ECHO_T}cross-compiling" >&6
13426 else
13427   cat >conftest.$ac_ext <<_ACEOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13430 int main() { return 0; }
13431 _ACEOF
13432 rm -f conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434   (eval $ac_link) 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439   (eval $ac_try) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; }; then
13443   echo "$as_me:$LINENO: result: ok" >&5
13444 echo "${ECHO_T}ok" >&6
13445 else
13446   echo "$as_me: program exited with status $ac_status" >&5
13447 echo "$as_me: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13449 ( exit $ac_status )
13450 echo "$as_me:$LINENO: result: failed" >&5
13451 echo "${ECHO_T}failed" >&6
13452 { { echo "$as_me:$LINENO: error:
13453 *** Could not execute a simple test program.  This may be a problem
13454 *** related to locating shared libraries.  Check the file 'config.log'
13455 *** for the exact reason." >&5
13456 echo "$as_me: error:
13457 *** Could not execute a simple test program.  This may be a problem
13458 *** related to locating shared libraries.  Check the file 'config.log'
13459 *** for the exact reason." >&2;}
13460    { (exit 1); exit 1; }; }
13461 fi
13462 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13463 fi
13464
13465
13466
13467 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13468 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13469 if test "${pgac_cv_type_long_int_64+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   if test "$cross_compiling" = yes; then
13473   # If cross-compiling, check the size reported by the compiler and
13474 # trust that the arithmetic works.
13475 cat >conftest.$ac_ext <<_ACEOF
13476 #line $LINENO "configure"
13477 #include "confdefs.h"
13478
13479 #ifdef F77_DUMMY_MAIN
13480 #  ifdef __cplusplus
13481      extern "C"
13482 #  endif
13483    int F77_DUMMY_MAIN() { return 1; }
13484 #endif
13485 int
13486 main ()
13487 {
13488 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13489 test_array [0] = 0
13490
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497   (eval $ac_compile) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); } &&
13501          { ac_try='test -s conftest.$ac_objext'
13502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503   (eval $ac_try) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; }; then
13507   pgac_cv_type_long_int_64=yes
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 pgac_cv_type_long_int_64=no
13512 fi
13513 rm -f conftest.$ac_objext conftest.$ac_ext
13514 else
13515   cat >conftest.$ac_ext <<_ACEOF
13516 #line $LINENO "configure"
13517 #include "confdefs.h"
13518 typedef long int int64;
13519
13520 /*
13521  * These are globals to discourage the compiler from folding all the
13522  * arithmetic tests down to compile-time constants.
13523  */
13524 int64 a = 20000001;
13525 int64 b = 40000005;
13526
13527 int does_int64_work()
13528 {
13529   int64 c,d;
13530
13531   if (sizeof(int64) != 8)
13532     return 0;                   /* definitely not the right size */
13533
13534   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13535   c = a * b;
13536   d = (c + b) / b;
13537   if (d != a+1)
13538     return 0;
13539   return 1;
13540 }
13541 main() {
13542   exit(! does_int64_work());
13543 }
13544 _ACEOF
13545 rm -f conftest$ac_exeext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13547   (eval $ac_link) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552   (eval $ac_try) 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; }; then
13556   pgac_cv_type_long_int_64=yes
13557 else
13558   echo "$as_me: program exited with status $ac_status" >&5
13559 echo "$as_me: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 ( exit $ac_status )
13562 pgac_cv_type_long_int_64=no
13563 fi
13564 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13565 fi
13566 fi
13567 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13568 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13569
13570 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13571 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13572
13573 cat >>confdefs.h <<\_ACEOF
13574 #define HAVE_LONG_INT_64
13575 _ACEOF
13576
13577 fi
13578
13579
13580 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13581   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13582 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13583 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   if test "$cross_compiling" = yes; then
13587   # If cross-compiling, check the size reported by the compiler and
13588 # trust that the arithmetic works.
13589 cat >conftest.$ac_ext <<_ACEOF
13590 #line $LINENO "configure"
13591 #include "confdefs.h"
13592
13593 #ifdef F77_DUMMY_MAIN
13594 #  ifdef __cplusplus
13595      extern "C"
13596 #  endif
13597    int F77_DUMMY_MAIN() { return 1; }
13598 #endif
13599 int
13600 main ()
13601 {
13602 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13603 test_array [0] = 0
13604
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13611   (eval $ac_compile) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); } &&
13615          { ac_try='test -s conftest.$ac_objext'
13616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617   (eval $ac_try) 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; }; then
13621   pgac_cv_type_long_long_int_64=yes
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 cat conftest.$ac_ext >&5
13625 pgac_cv_type_long_long_int_64=no
13626 fi
13627 rm -f conftest.$ac_objext conftest.$ac_ext
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13631 #include "confdefs.h"
13632 typedef long long int int64;
13633
13634 /*
13635  * These are globals to discourage the compiler from folding all the
13636  * arithmetic tests down to compile-time constants.
13637  */
13638 int64 a = 20000001;
13639 int64 b = 40000005;
13640
13641 int does_int64_work()
13642 {
13643   int64 c,d;
13644
13645   if (sizeof(int64) != 8)
13646     return 0;                   /* definitely not the right size */
13647
13648   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13649   c = a * b;
13650   d = (c + b) / b;
13651   if (d != a+1)
13652     return 0;
13653   return 1;
13654 }
13655 main() {
13656   exit(! does_int64_work());
13657 }
13658 _ACEOF
13659 rm -f conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661   (eval $ac_link) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   pgac_cv_type_long_long_int_64=yes
13671 else
13672   echo "$as_me: program exited with status $ac_status" >&5
13673 echo "$as_me: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13675 ( exit $ac_status )
13676 pgac_cv_type_long_long_int_64=no
13677 fi
13678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13679 fi
13680 fi
13681 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13682 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13683
13684 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13685 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13686
13687 cat >>confdefs.h <<\_ACEOF
13688 #define HAVE_LONG_LONG_INT_64
13689 _ACEOF
13690
13691 fi
13692
13693 fi
13694
13695
13696
13697 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13698   cat >conftest.$ac_ext <<_ACEOF
13699 #line $LINENO "configure"
13700 #include "confdefs.h"
13701
13702 #define INT64CONST(x)  x##LL
13703 long long int foo = INT64CONST(0x1234567890123456);
13704
13705 #ifdef F77_DUMMY_MAIN
13706 #  ifdef __cplusplus
13707      extern "C"
13708 #  endif
13709    int F77_DUMMY_MAIN() { return 1; }
13710 #endif
13711 int
13712 main ()
13713 {
13714
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_LL_CONSTANTS 1
13734 _ACEOF
13735
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 fi
13740 rm -f conftest.$ac_objext conftest.$ac_ext
13741 fi
13742
13743
13744 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13745 # we found we need to use "long long int", better check.  We cope with
13746 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
13747 # work, fall back to our own snprintf emulation (which we know uses %lld).
13748
13749 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13750   if test $pgac_need_repl_snprintf = no; then
13751     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13752 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13753 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   for pgac_format in '%lld' '%qd' '%I64d'; do
13757 if test "$cross_compiling" = yes; then
13758   pgac_cv_snprintf_long_long_int_format=cross; break
13759 else
13760   cat >conftest.$ac_ext <<_ACEOF
13761 #line $LINENO "configure"
13762 #include "confdefs.h"
13763 #include <stdio.h>
13764 typedef long long int int64;
13765 #define INT64_FORMAT "$pgac_format"
13766
13767 int64 a = 20000001;
13768 int64 b = 40000005;
13769
13770 int does_int64_snprintf_work()
13771 {
13772   int64 c;
13773   char buf[100];
13774
13775   if (sizeof(int64) != 8)
13776     return 0;                   /* doesn't look like the right size */
13777
13778   c = a * b;
13779   snprintf(buf, 100, INT64_FORMAT, c);
13780   if (strcmp(buf, "800000140000005") != 0)
13781     return 0;                   /* either multiply or snprintf is busted */
13782   return 1;
13783 }
13784 main() {
13785   exit(! does_int64_snprintf_work());
13786 }
13787 _ACEOF
13788 rm -f conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790   (eval $ac_link) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795   (eval $ac_try) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13800 else
13801   echo "$as_me: program exited with status $ac_status" >&5
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 fi
13805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13806 fi
13807 done
13808 fi
13809
13810 LONG_LONG_INT_FORMAT=''
13811
13812 case $pgac_cv_snprintf_long_long_int_format in
13813   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13814 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13815   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13816 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13817          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13818   *)     echo "$as_me:$LINENO: result: none" >&5
13819 echo "${ECHO_T}none" >&6;;
13820 esac
13821     if test "$LONG_LONG_INT_FORMAT" = ""; then
13822       # Force usage of our own snprintf, since system snprintf is broken
13823       pgac_need_repl_snprintf=yes
13824       LONG_LONG_INT_FORMAT='%lld'
13825     fi
13826   else
13827     # Here if we previously decided we needed to use our own snprintf
13828     LONG_LONG_INT_FORMAT='%lld'
13829   fi
13830   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
13831   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13832   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
13833 else
13834   # Here if we are not using 'long long int' at all
13835   INT64_FORMAT='"%ld"'
13836   UINT64_FORMAT='"%lu"'
13837 fi
13838
13839
13840 cat >>confdefs.h <<_ACEOF
13841 #define INT64_FORMAT $INT64_FORMAT
13842 _ACEOF
13843
13844
13845
13846 cat >>confdefs.h <<_ACEOF
13847 #define UINT64_FORMAT $UINT64_FORMAT
13848 _ACEOF
13849
13850
13851 if test $pgac_need_repl_snprintf = yes; then
13852   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13853 fi
13854
13855 # Need a #define for the size of Datum (unsigned long)
13856 echo "$as_me:$LINENO: checking for unsigned long" >&5
13857 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13858 if test "${ac_cv_type_unsigned_long+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 #line $LINENO "configure"
13863 #include "confdefs.h"
13864 $ac_includes_default
13865 #ifdef F77_DUMMY_MAIN
13866 #  ifdef __cplusplus
13867      extern "C"
13868 #  endif
13869    int F77_DUMMY_MAIN() { return 1; }
13870 #endif
13871 int
13872 main ()
13873 {
13874 if ((unsigned long *) 0)
13875   return 0;
13876 if (sizeof (unsigned long))
13877   return 0;
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884   (eval $ac_compile) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -s conftest.$ac_objext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_cv_type_unsigned_long=yes
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 ac_cv_type_unsigned_long=no
13899 fi
13900 rm -f conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13903 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13904
13905 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13906 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13907 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   if test "$ac_cv_type_unsigned_long" = yes; then
13911   # The cast to unsigned long works around a bug in the HP C Compiler
13912   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13913   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13914   # This bug is HP SR number 8606223364.
13915   if test "$cross_compiling" = yes; then
13916   # Depending upon the size, compute the lo and hi bounds.
13917 cat >conftest.$ac_ext <<_ACEOF
13918 #line $LINENO "configure"
13919 #include "confdefs.h"
13920 $ac_includes_default
13921 #ifdef F77_DUMMY_MAIN
13922 #  ifdef __cplusplus
13923      extern "C"
13924 #  endif
13925    int F77_DUMMY_MAIN() { return 1; }
13926 #endif
13927 int
13928 main ()
13929 {
13930 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13931 test_array [0] = 0
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -s conftest.$ac_objext'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; }; then
13949   ac_lo=0 ac_mid=0
13950   while :; do
13951     cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 #ifdef F77_DUMMY_MAIN
13956 #  ifdef __cplusplus
13957      extern "C"
13958 #  endif
13959    int F77_DUMMY_MAIN() { return 1; }
13960 #endif
13961 int
13962 main ()
13963 {
13964 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13965 test_array [0] = 0
13966
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973   (eval $ac_compile) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } &&
13977          { ac_try='test -s conftest.$ac_objext'
13978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979   (eval $ac_try) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; }; then
13983   ac_hi=$ac_mid; break
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 ac_lo=`expr $ac_mid + 1`
13988                     if test $ac_lo -le $ac_mid; then
13989                       ac_lo= ac_hi=
13990                       break
13991                     fi
13992                     ac_mid=`expr 2 '*' $ac_mid + 1`
13993 fi
13994 rm -f conftest.$ac_objext conftest.$ac_ext
13995   done
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 cat >conftest.$ac_ext <<_ACEOF
14000 #line $LINENO "configure"
14001 #include "confdefs.h"
14002 $ac_includes_default
14003 #ifdef F77_DUMMY_MAIN
14004 #  ifdef __cplusplus
14005      extern "C"
14006 #  endif
14007    int F77_DUMMY_MAIN() { return 1; }
14008 #endif
14009 int
14010 main ()
14011 {
14012 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14013 test_array [0] = 0
14014
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021   (eval $ac_compile) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } &&
14025          { ac_try='test -s conftest.$ac_objext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_hi=-1 ac_mid=-1
14032   while :; do
14033     cat >conftest.$ac_ext <<_ACEOF
14034 #line $LINENO "configure"
14035 #include "confdefs.h"
14036 $ac_includes_default
14037 #ifdef F77_DUMMY_MAIN
14038 #  ifdef __cplusplus
14039      extern "C"
14040 #  endif
14041    int F77_DUMMY_MAIN() { return 1; }
14042 #endif
14043 int
14044 main ()
14045 {
14046 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14047 test_array [0] = 0
14048
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 rm -f conftest.$ac_objext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055   (eval $ac_compile) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -s conftest.$ac_objext'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   ac_lo=$ac_mid; break
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14069 ac_hi=`expr '(' $ac_mid ')' - 1`
14070                        if test $ac_mid -le $ac_hi; then
14071                          ac_lo= ac_hi=
14072                          break
14073                        fi
14074                        ac_mid=`expr 2 '*' $ac_mid`
14075 fi
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14077   done
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 ac_lo= ac_hi=
14082 fi
14083 rm -f conftest.$ac_objext conftest.$ac_ext
14084 fi
14085 rm -f conftest.$ac_objext conftest.$ac_ext
14086 # Binary search between lo and hi bounds.
14087 while test "x$ac_lo" != "x$ac_hi"; do
14088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14089   cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14092 $ac_includes_default
14093 #ifdef F77_DUMMY_MAIN
14094 #  ifdef __cplusplus
14095      extern "C"
14096 #  endif
14097    int F77_DUMMY_MAIN() { return 1; }
14098 #endif
14099 int
14100 main ()
14101 {
14102 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14103 test_array [0] = 0
14104
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111   (eval $ac_compile) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } &&
14115          { ac_try='test -s conftest.$ac_objext'
14116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117   (eval $ac_try) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121   ac_hi=$ac_mid
14122 else
14123   echo "$as_me: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 ac_lo=`expr '(' $ac_mid ')' + 1`
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128 done
14129 case $ac_lo in
14130 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14132 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14133    { (exit 1); exit 1; }; } ;;
14134 esac
14135 else
14136   if test "$cross_compiling" = yes; then
14137   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14138 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14139    { (exit 1); exit 1; }; }
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14143 #include "confdefs.h"
14144 $ac_includes_default
14145 long longval () { return (long) (sizeof (unsigned long)); }
14146 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14147 #include <stdio.h>
14148 #include <stdlib.h>
14149 #ifdef F77_DUMMY_MAIN
14150 #  ifdef __cplusplus
14151      extern "C"
14152 #  endif
14153    int F77_DUMMY_MAIN() { return 1; }
14154 #endif
14155 int
14156 main ()
14157 {
14158
14159   FILE *f = fopen ("conftest.val", "w");
14160   if (! f)
14161     exit (1);
14162   if (((long) (sizeof (unsigned long))) < 0)
14163     {
14164       long i = longval ();
14165       if (i != ((long) (sizeof (unsigned long))))
14166         exit (1);
14167       fprintf (f, "%ld\n", i);
14168     }
14169   else
14170     {
14171       unsigned long i = ulongval ();
14172       if (i != ((long) (sizeof (unsigned long))))
14173         exit (1);
14174       fprintf (f, "%lu\n", i);
14175     }
14176   exit (ferror (f) || fclose (f) != 0);
14177
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_unsigned_long=`cat conftest.val`
14194 else
14195   echo "$as_me: program exited with status $ac_status" >&5
14196 echo "$as_me: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14198 ( exit $ac_status )
14199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14200 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14201    { (exit 1); exit 1; }; }
14202 fi
14203 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 fi
14206 rm -f conftest.val
14207 else
14208   ac_cv_sizeof_unsigned_long=0
14209 fi
14210 fi
14211 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14212 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14213 cat >>confdefs.h <<_ACEOF
14214 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14215 _ACEOF
14216
14217
14218
14219 # Determine memory alignment requirements for the basic C data types.
14220
14221 echo "$as_me:$LINENO: checking for short" >&5
14222 echo $ECHO_N "checking for short... $ECHO_C" >&6
14223 if test "${ac_cv_type_short+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 #include "confdefs.h"
14229 $ac_includes_default
14230 #ifdef F77_DUMMY_MAIN
14231 #  ifdef __cplusplus
14232      extern "C"
14233 #  endif
14234    int F77_DUMMY_MAIN() { return 1; }
14235 #endif
14236 int
14237 main ()
14238 {
14239 if ((short *) 0)
14240   return 0;
14241 if (sizeof (short))
14242   return 0;
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249   (eval $ac_compile) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); } &&
14253          { ac_try='test -s conftest.$ac_objext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_cv_type_short=yes
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 ac_cv_type_short=no
14264 fi
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14266 fi
14267 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14268 echo "${ECHO_T}$ac_cv_type_short" >&6
14269
14270 echo "$as_me:$LINENO: checking alignment of short" >&5
14271 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14272 if test "${pgac_cv_alignof_short+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   if test "$ac_cv_type_short" = yes; then
14276   if test "$cross_compiling" = yes; then
14277   # Depending upon the size, compute the lo and hi bounds.
14278 cat >conftest.$ac_ext <<_ACEOF
14279 #line $LINENO "configure"
14280 #include "confdefs.h"
14281 $ac_includes_default
14282 struct { char filler; short field; } pgac_struct;
14283 #ifdef F77_DUMMY_MAIN
14284 #  ifdef __cplusplus
14285      extern "C"
14286 #  endif
14287    int F77_DUMMY_MAIN() { return 1; }
14288 #endif
14289 int
14290 main ()
14291 {
14292 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14293 test_array [0] = 0
14294
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301   (eval $ac_compile) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_lo=0 ac_mid=0
14312   while :; do
14313     cat >conftest.$ac_ext <<_ACEOF
14314 #line $LINENO "configure"
14315 #include "confdefs.h"
14316 $ac_includes_default
14317 struct { char filler; short field; } pgac_struct;
14318 #ifdef F77_DUMMY_MAIN
14319 #  ifdef __cplusplus
14320      extern "C"
14321 #  endif
14322    int F77_DUMMY_MAIN() { return 1; }
14323 #endif
14324 int
14325 main ()
14326 {
14327 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14328 test_array [0] = 0
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); } &&
14340          { ac_try='test -s conftest.$ac_objext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   ac_hi=$ac_mid; break
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 cat conftest.$ac_ext >&5
14350 ac_lo=`expr $ac_mid + 1`
14351                     if test $ac_lo -le $ac_mid; then
14352                       ac_lo= ac_hi=
14353                       break
14354                     fi
14355                     ac_mid=`expr 2 '*' $ac_mid + 1`
14356 fi
14357 rm -f conftest.$ac_objext conftest.$ac_ext
14358   done
14359 else
14360   echo "$as_me: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14364 #include "confdefs.h"
14365 $ac_includes_default
14366 struct { char filler; short field; } pgac_struct;
14367 #ifdef F77_DUMMY_MAIN
14368 #  ifdef __cplusplus
14369      extern "C"
14370 #  endif
14371    int F77_DUMMY_MAIN() { return 1; }
14372 #endif
14373 int
14374 main ()
14375 {
14376 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14377 test_array [0] = 0
14378
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385   (eval $ac_compile) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391   (eval $ac_try) 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; }; then
14395   ac_hi=-1 ac_mid=-1
14396   while :; do
14397     cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14399 #include "confdefs.h"
14400 $ac_includes_default
14401 struct { char filler; short field; } pgac_struct;
14402 #ifdef F77_DUMMY_MAIN
14403 #  ifdef __cplusplus
14404      extern "C"
14405 #  endif
14406    int F77_DUMMY_MAIN() { return 1; }
14407 #endif
14408 int
14409 main ()
14410 {
14411 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14412 test_array [0] = 0
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 rm -f conftest.$ac_objext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14420   (eval $ac_compile) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } &&
14424          { ac_try='test -s conftest.$ac_objext'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; }; then
14430   ac_lo=$ac_mid; break
14431 else
14432   echo "$as_me: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14434 ac_hi=`expr '(' $ac_mid ')' - 1`
14435                        if test $ac_mid -le $ac_hi; then
14436                          ac_lo= ac_hi=
14437                          break
14438                        fi
14439                        ac_mid=`expr 2 '*' $ac_mid`
14440 fi
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14442   done
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14446 ac_lo= ac_hi=
14447 fi
14448 rm -f conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 rm -f conftest.$ac_objext conftest.$ac_ext
14451 # Binary search between lo and hi bounds.
14452 while test "x$ac_lo" != "x$ac_hi"; do
14453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14454   cat >conftest.$ac_ext <<_ACEOF
14455 #line $LINENO "configure"
14456 #include "confdefs.h"
14457 $ac_includes_default
14458 struct { char filler; short field; } pgac_struct;
14459 #ifdef F77_DUMMY_MAIN
14460 #  ifdef __cplusplus
14461      extern "C"
14462 #  endif
14463    int F77_DUMMY_MAIN() { return 1; }
14464 #endif
14465 int
14466 main ()
14467 {
14468 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14469 test_array [0] = 0
14470
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477   (eval $ac_compile) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -s conftest.$ac_objext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   ac_hi=$ac_mid
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 cat conftest.$ac_ext >&5
14491 ac_lo=`expr '(' $ac_mid ')' + 1`
14492 fi
14493 rm -f conftest.$ac_objext conftest.$ac_ext
14494 done
14495 case $ac_lo in
14496 ?*) pgac_cv_alignof_short=$ac_lo;;
14497 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14498 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14499    { (exit 1); exit 1; }; } ;;
14500 esac
14501 else
14502   if test "$cross_compiling" = yes; then
14503   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14504 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14505    { (exit 1); exit 1; }; }
14506 else
14507   cat >conftest.$ac_ext <<_ACEOF
14508 #line $LINENO "configure"
14509 #include "confdefs.h"
14510 $ac_includes_default
14511 struct { char filler; short field; } pgac_struct;
14512 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14513 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14514 #include <stdio.h>
14515 #include <stdlib.h>
14516 #ifdef F77_DUMMY_MAIN
14517 #  ifdef __cplusplus
14518      extern "C"
14519 #  endif
14520    int F77_DUMMY_MAIN() { return 1; }
14521 #endif
14522 int
14523 main ()
14524 {
14525
14526   FILE *f = fopen ("conftest.val", "w");
14527   if (! f)
14528     exit (1);
14529   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14530     {
14531       long i = longval ();
14532       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14533         exit (1);
14534       fprintf (f, "%ld\n", i);
14535     }
14536   else
14537     {
14538       unsigned long i = ulongval ();
14539       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14540         exit (1);
14541       fprintf (f, "%lu\n", i);
14542     }
14543   exit (ferror (f) || fclose (f) != 0);
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551   (eval $ac_link) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; }; then
14560   pgac_cv_alignof_short=`cat conftest.val`
14561 else
14562   echo "$as_me: program exited with status $ac_status" >&5
14563 echo "$as_me: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14565 ( exit $ac_status )
14566 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14567 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14568    { (exit 1); exit 1; }; }
14569 fi
14570 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14571 fi
14572 fi
14573 rm -f conftest.val
14574 else
14575   pgac_cv_alignof_short=0
14576 fi
14577 fi
14578 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14579 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14580 cat >>confdefs.h <<_ACEOF
14581 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14582 _ACEOF
14583
14584
14585 echo "$as_me:$LINENO: checking for int" >&5
14586 echo $ECHO_N "checking for int... $ECHO_C" >&6
14587 if test "${ac_cv_type_int+set}" = set; then
14588   echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590   cat >conftest.$ac_ext <<_ACEOF
14591 #line $LINENO "configure"
14592 #include "confdefs.h"
14593 $ac_includes_default
14594 #ifdef F77_DUMMY_MAIN
14595 #  ifdef __cplusplus
14596      extern "C"
14597 #  endif
14598    int F77_DUMMY_MAIN() { return 1; }
14599 #endif
14600 int
14601 main ()
14602 {
14603 if ((int *) 0)
14604   return 0;
14605 if (sizeof (int))
14606   return 0;
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14613   (eval $ac_compile) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ac_cv_type_int=yes
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 ac_cv_type_int=no
14628 fi
14629 rm -f conftest.$ac_objext conftest.$ac_ext
14630 fi
14631 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14632 echo "${ECHO_T}$ac_cv_type_int" >&6
14633
14634 echo "$as_me:$LINENO: checking alignment of int" >&5
14635 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14636 if test "${pgac_cv_alignof_int+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639   if test "$ac_cv_type_int" = yes; then
14640   if test "$cross_compiling" = yes; then
14641   # Depending upon the size, compute the lo and hi bounds.
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14646 struct { char filler; int field; } pgac_struct;
14647 #ifdef F77_DUMMY_MAIN
14648 #  ifdef __cplusplus
14649      extern "C"
14650 #  endif
14651    int F77_DUMMY_MAIN() { return 1; }
14652 #endif
14653 int
14654 main ()
14655 {
14656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14657 test_array [0] = 0
14658
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665   (eval $ac_compile) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -s conftest.$ac_objext'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   ac_lo=0 ac_mid=0
14676   while :; do
14677     cat >conftest.$ac_ext <<_ACEOF
14678 #line $LINENO "configure"
14679 #include "confdefs.h"
14680 $ac_includes_default
14681 struct { char filler; int field; } pgac_struct;
14682 #ifdef F77_DUMMY_MAIN
14683 #  ifdef __cplusplus
14684      extern "C"
14685 #  endif
14686    int F77_DUMMY_MAIN() { return 1; }
14687 #endif
14688 int
14689 main ()
14690 {
14691 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14692 test_array [0] = 0
14693
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700   (eval $ac_compile) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -s conftest.$ac_objext'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }; then
14710   ac_hi=$ac_mid; break
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14714 ac_lo=`expr $ac_mid + 1`
14715                     if test $ac_lo -le $ac_mid; then
14716                       ac_lo= ac_hi=
14717                       break
14718                     fi
14719                     ac_mid=`expr 2 '*' $ac_mid + 1`
14720 fi
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722   done
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 cat >conftest.$ac_ext <<_ACEOF
14727 #line $LINENO "configure"
14728 #include "confdefs.h"
14729 $ac_includes_default
14730 struct { char filler; int field; } pgac_struct;
14731 #ifdef F77_DUMMY_MAIN
14732 #  ifdef __cplusplus
14733      extern "C"
14734 #  endif
14735    int F77_DUMMY_MAIN() { return 1; }
14736 #endif
14737 int
14738 main ()
14739 {
14740 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14741 test_array [0] = 0
14742
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749   (eval $ac_compile) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } &&
14753          { ac_try='test -s conftest.$ac_objext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759   ac_hi=-1 ac_mid=-1
14760   while :; do
14761     cat >conftest.$ac_ext <<_ACEOF
14762 #line $LINENO "configure"
14763 #include "confdefs.h"
14764 $ac_includes_default
14765 struct { char filler; int field; } pgac_struct;
14766 #ifdef F77_DUMMY_MAIN
14767 #  ifdef __cplusplus
14768      extern "C"
14769 #  endif
14770    int F77_DUMMY_MAIN() { return 1; }
14771 #endif
14772 int
14773 main ()
14774 {
14775 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14776 test_array [0] = 0
14777
14778   ;
14779   return 0;
14780 }
14781 _ACEOF
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784   (eval $ac_compile) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } &&
14788          { ac_try='test -s conftest.$ac_objext'
14789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790   (eval $ac_try) 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }; then
14794   ac_lo=$ac_mid; break
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 cat conftest.$ac_ext >&5
14798 ac_hi=`expr '(' $ac_mid ')' - 1`
14799                        if test $ac_mid -le $ac_hi; then
14800                          ac_lo= ac_hi=
14801                          break
14802                        fi
14803                        ac_mid=`expr 2 '*' $ac_mid`
14804 fi
14805 rm -f conftest.$ac_objext conftest.$ac_ext
14806   done
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14810 ac_lo= ac_hi=
14811 fi
14812 rm -f conftest.$ac_objext conftest.$ac_ext
14813 fi
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14815 # Binary search between lo and hi bounds.
14816 while test "x$ac_lo" != "x$ac_hi"; do
14817   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14818   cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 #include "confdefs.h"
14821 $ac_includes_default
14822 struct { char filler; int field; } pgac_struct;
14823 #ifdef F77_DUMMY_MAIN
14824 #  ifdef __cplusplus
14825      extern "C"
14826 #  endif
14827    int F77_DUMMY_MAIN() { return 1; }
14828 #endif
14829 int
14830 main ()
14831 {
14832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14833 test_array [0] = 0
14834
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841   (eval $ac_compile) 2>&5
14842   ac_status=$?
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } &&
14845          { ac_try='test -s conftest.$ac_objext'
14846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847   (eval $ac_try) 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_hi=$ac_mid
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 cat conftest.$ac_ext >&5
14855 ac_lo=`expr '(' $ac_mid ')' + 1`
14856 fi
14857 rm -f conftest.$ac_objext conftest.$ac_ext
14858 done
14859 case $ac_lo in
14860 ?*) pgac_cv_alignof_int=$ac_lo;;
14861 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14862 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14863    { (exit 1); exit 1; }; } ;;
14864 esac
14865 else
14866   if test "$cross_compiling" = yes; then
14867   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14868 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14869    { (exit 1); exit 1; }; }
14870 else
14871   cat >conftest.$ac_ext <<_ACEOF
14872 #line $LINENO "configure"
14873 #include "confdefs.h"
14874 $ac_includes_default
14875 struct { char filler; int field; } pgac_struct;
14876 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14877 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14878 #include <stdio.h>
14879 #include <stdlib.h>
14880 #ifdef F77_DUMMY_MAIN
14881 #  ifdef __cplusplus
14882      extern "C"
14883 #  endif
14884    int F77_DUMMY_MAIN() { return 1; }
14885 #endif
14886 int
14887 main ()
14888 {
14889
14890   FILE *f = fopen ("conftest.val", "w");
14891   if (! f)
14892     exit (1);
14893   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14894     {
14895       long i = longval ();
14896       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14897         exit (1);
14898       fprintf (f, "%ld\n", i);
14899     }
14900   else
14901     {
14902       unsigned long i = ulongval ();
14903       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14904         exit (1);
14905       fprintf (f, "%lu\n", i);
14906     }
14907   exit (ferror (f) || fclose (f) != 0);
14908
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915   (eval $ac_link) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; }; then
14924   pgac_cv_alignof_int=`cat conftest.val`
14925 else
14926   echo "$as_me: program exited with status $ac_status" >&5
14927 echo "$as_me: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14929 ( exit $ac_status )
14930 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14931 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14932    { (exit 1); exit 1; }; }
14933 fi
14934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14935 fi
14936 fi
14937 rm -f conftest.val
14938 else
14939   pgac_cv_alignof_int=0
14940 fi
14941 fi
14942 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14943 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14944 cat >>confdefs.h <<_ACEOF
14945 #define ALIGNOF_INT $pgac_cv_alignof_int
14946 _ACEOF
14947
14948
14949 echo "$as_me:$LINENO: checking for long" >&5
14950 echo $ECHO_N "checking for long... $ECHO_C" >&6
14951 if test "${ac_cv_type_long+set}" = set; then
14952   echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954   cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14956 #include "confdefs.h"
14957 $ac_includes_default
14958 #ifdef F77_DUMMY_MAIN
14959 #  ifdef __cplusplus
14960      extern "C"
14961 #  endif
14962    int F77_DUMMY_MAIN() { return 1; }
14963 #endif
14964 int
14965 main ()
14966 {
14967 if ((long *) 0)
14968   return 0;
14969 if (sizeof (long))
14970   return 0;
14971   ;
14972   return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977   (eval $ac_compile) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } &&
14981          { ac_try='test -s conftest.$ac_objext'
14982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983   (eval $ac_try) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; }; then
14987   ac_cv_type_long=yes
14988 else
14989   echo "$as_me: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14991 ac_cv_type_long=no
14992 fi
14993 rm -f conftest.$ac_objext conftest.$ac_ext
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14996 echo "${ECHO_T}$ac_cv_type_long" >&6
14997
14998 echo "$as_me:$LINENO: checking alignment of long" >&5
14999 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15000 if test "${pgac_cv_alignof_long+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   if test "$ac_cv_type_long" = yes; then
15004   if test "$cross_compiling" = yes; then
15005   # Depending upon the size, compute the lo and hi bounds.
15006 cat >conftest.$ac_ext <<_ACEOF
15007 #line $LINENO "configure"
15008 #include "confdefs.h"
15009 $ac_includes_default
15010 struct { char filler; long field; } pgac_struct;
15011 #ifdef F77_DUMMY_MAIN
15012 #  ifdef __cplusplus
15013      extern "C"
15014 #  endif
15015    int F77_DUMMY_MAIN() { return 1; }
15016 #endif
15017 int
15018 main ()
15019 {
15020 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15021 test_array [0] = 0
15022
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -s conftest.$ac_objext'
15034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035   (eval $ac_try) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); }; }; then
15039   ac_lo=0 ac_mid=0
15040   while :; do
15041     cat >conftest.$ac_ext <<_ACEOF
15042 #line $LINENO "configure"
15043 #include "confdefs.h"
15044 $ac_includes_default
15045 struct { char filler; long field; } pgac_struct;
15046 #ifdef F77_DUMMY_MAIN
15047 #  ifdef __cplusplus
15048      extern "C"
15049 #  endif
15050    int F77_DUMMY_MAIN() { return 1; }
15051 #endif
15052 int
15053 main ()
15054 {
15055 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15056 test_array [0] = 0
15057
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064   (eval $ac_compile) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } &&
15068          { ac_try='test -s conftest.$ac_objext'
15069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070   (eval $ac_try) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; }; then
15074   ac_hi=$ac_mid; break
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
15078 ac_lo=`expr $ac_mid + 1`
15079                     if test $ac_lo -le $ac_mid; then
15080                       ac_lo= ac_hi=
15081                       break
15082                     fi
15083                     ac_mid=`expr 2 '*' $ac_mid + 1`
15084 fi
15085 rm -f conftest.$ac_objext conftest.$ac_ext
15086   done
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15093 $ac_includes_default
15094 struct { char filler; long field; } pgac_struct;
15095 #ifdef F77_DUMMY_MAIN
15096 #  ifdef __cplusplus
15097      extern "C"
15098 #  endif
15099    int F77_DUMMY_MAIN() { return 1; }
15100 #endif
15101 int
15102 main ()
15103 {
15104 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15105 test_array [0] = 0
15106
15107   ;
15108   return 0;
15109 }
15110 _ACEOF
15111 rm -f conftest.$ac_objext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15113   (eval $ac_compile) 2>&5
15114   ac_status=$?
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } &&
15117          { ac_try='test -s conftest.$ac_objext'
15118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119   (eval $ac_try) 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); }; }; then
15123   ac_hi=-1 ac_mid=-1
15124   while :; do
15125     cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 #include "confdefs.h"
15128 $ac_includes_default
15129 struct { char filler; long field; } pgac_struct;
15130 #ifdef F77_DUMMY_MAIN
15131 #  ifdef __cplusplus
15132      extern "C"
15133 #  endif
15134    int F77_DUMMY_MAIN() { return 1; }
15135 #endif
15136 int
15137 main ()
15138 {
15139 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15140 test_array [0] = 0
15141
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148   (eval $ac_compile) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_lo=$ac_mid; break
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15162 ac_hi=`expr '(' $ac_mid ')' - 1`
15163                        if test $ac_mid -le $ac_hi; then
15164                          ac_lo= ac_hi=
15165                          break
15166                        fi
15167                        ac_mid=`expr 2 '*' $ac_mid`
15168 fi
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15170   done
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15174 ac_lo= ac_hi=
15175 fi
15176 rm -f conftest.$ac_objext conftest.$ac_ext
15177 fi
15178 rm -f conftest.$ac_objext conftest.$ac_ext
15179 # Binary search between lo and hi bounds.
15180 while test "x$ac_lo" != "x$ac_hi"; do
15181   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15182   cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15184 #include "confdefs.h"
15185 $ac_includes_default
15186 struct { char filler; long field; } pgac_struct;
15187 #ifdef F77_DUMMY_MAIN
15188 #  ifdef __cplusplus
15189      extern "C"
15190 #  endif
15191    int F77_DUMMY_MAIN() { return 1; }
15192 #endif
15193 int
15194 main ()
15195 {
15196 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15197 test_array [0] = 0
15198
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205   (eval $ac_compile) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } &&
15209          { ac_try='test -s conftest.$ac_objext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_hi=$ac_mid
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 ac_lo=`expr '(' $ac_mid ')' + 1`
15220 fi
15221 rm -f conftest.$ac_objext conftest.$ac_ext
15222 done
15223 case $ac_lo in
15224 ?*) pgac_cv_alignof_long=$ac_lo;;
15225 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15226 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15227    { (exit 1); exit 1; }; } ;;
15228 esac
15229 else
15230   if test "$cross_compiling" = yes; then
15231   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15232 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15233    { (exit 1); exit 1; }; }
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 #line $LINENO "configure"
15237 #include "confdefs.h"
15238 $ac_includes_default
15239 struct { char filler; long field; } pgac_struct;
15240 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15241 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15242 #include <stdio.h>
15243 #include <stdlib.h>
15244 #ifdef F77_DUMMY_MAIN
15245 #  ifdef __cplusplus
15246      extern "C"
15247 #  endif
15248    int F77_DUMMY_MAIN() { return 1; }
15249 #endif
15250 int
15251 main ()
15252 {
15253
15254   FILE *f = fopen ("conftest.val", "w");
15255   if (! f)
15256     exit (1);
15257   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15258     {
15259       long i = longval ();
15260       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15261         exit (1);
15262       fprintf (f, "%ld\n", i);
15263     }
15264   else
15265     {
15266       unsigned long i = ulongval ();
15267       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15268         exit (1);
15269       fprintf (f, "%lu\n", i);
15270     }
15271   exit (ferror (f) || fclose (f) != 0);
15272
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 rm -f conftest$ac_exeext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15279   (eval $ac_link) 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284   (eval $ac_try) 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   pgac_cv_alignof_long=`cat conftest.val`
15289 else
15290   echo "$as_me: program exited with status $ac_status" >&5
15291 echo "$as_me: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15293 ( exit $ac_status )
15294 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15295 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15296    { (exit 1); exit 1; }; }
15297 fi
15298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15299 fi
15300 fi
15301 rm -f conftest.val
15302 else
15303   pgac_cv_alignof_long=0
15304 fi
15305 fi
15306 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15307 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15308 cat >>confdefs.h <<_ACEOF
15309 #define ALIGNOF_LONG $pgac_cv_alignof_long
15310 _ACEOF
15311
15312
15313 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15314   echo "$as_me:$LINENO: checking for long long int" >&5
15315 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15316 if test "${ac_cv_type_long_long_int+set}" = set; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319   cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15321 #include "confdefs.h"
15322 $ac_includes_default
15323 #ifdef F77_DUMMY_MAIN
15324 #  ifdef __cplusplus
15325      extern "C"
15326 #  endif
15327    int F77_DUMMY_MAIN() { return 1; }
15328 #endif
15329 int
15330 main ()
15331 {
15332 if ((long long int *) 0)
15333   return 0;
15334 if (sizeof (long long int))
15335   return 0;
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342   (eval $ac_compile) 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } &&
15346          { ac_try='test -s conftest.$ac_objext'
15347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348   (eval $ac_try) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); }; }; then
15352   ac_cv_type_long_long_int=yes
15353 else
15354   echo "$as_me: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 ac_cv_type_long_long_int=no
15357 fi
15358 rm -f conftest.$ac_objext conftest.$ac_ext
15359 fi
15360 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15361 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15362
15363 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15364 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15365 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   if test "$ac_cv_type_long_long_int" = yes; then
15369   if test "$cross_compiling" = yes; then
15370   # Depending upon the size, compute the lo and hi bounds.
15371 cat >conftest.$ac_ext <<_ACEOF
15372 #line $LINENO "configure"
15373 #include "confdefs.h"
15374 $ac_includes_default
15375 struct { char filler; long long int field; } pgac_struct;
15376 #ifdef F77_DUMMY_MAIN
15377 #  ifdef __cplusplus
15378      extern "C"
15379 #  endif
15380    int F77_DUMMY_MAIN() { return 1; }
15381 #endif
15382 int
15383 main ()
15384 {
15385 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15386 test_array [0] = 0
15387
15388   ;
15389   return 0;
15390 }
15391 _ACEOF
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394   (eval $ac_compile) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400   (eval $ac_try) 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; }; then
15404   ac_lo=0 ac_mid=0
15405   while :; do
15406     cat >conftest.$ac_ext <<_ACEOF
15407 #line $LINENO "configure"
15408 #include "confdefs.h"
15409 $ac_includes_default
15410 struct { char filler; long long int field; } pgac_struct;
15411 #ifdef F77_DUMMY_MAIN
15412 #  ifdef __cplusplus
15413      extern "C"
15414 #  endif
15415    int F77_DUMMY_MAIN() { return 1; }
15416 #endif
15417 int
15418 main ()
15419 {
15420 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15421 test_array [0] = 0
15422
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15429   (eval $ac_compile) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_hi=$ac_mid; break
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 ac_lo=`expr $ac_mid + 1`
15444                     if test $ac_lo -le $ac_mid; then
15445                       ac_lo= ac_hi=
15446                       break
15447                     fi
15448                     ac_mid=`expr 2 '*' $ac_mid + 1`
15449 fi
15450 rm -f conftest.$ac_objext conftest.$ac_ext
15451   done
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 cat conftest.$ac_ext >&5
15455 cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15457 #include "confdefs.h"
15458 $ac_includes_default
15459 struct { char filler; long long int field; } pgac_struct;
15460 #ifdef F77_DUMMY_MAIN
15461 #  ifdef __cplusplus
15462      extern "C"
15463 #  endif
15464    int F77_DUMMY_MAIN() { return 1; }
15465 #endif
15466 int
15467 main ()
15468 {
15469 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15470 test_array [0] = 0
15471
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478   (eval $ac_compile) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); } &&
15482          { ac_try='test -s conftest.$ac_objext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_hi=-1 ac_mid=-1
15489   while :; do
15490     cat >conftest.$ac_ext <<_ACEOF
15491 #line $LINENO "configure"
15492 #include "confdefs.h"
15493 $ac_includes_default
15494 struct { char filler; long long int field; } pgac_struct;
15495 #ifdef F77_DUMMY_MAIN
15496 #  ifdef __cplusplus
15497      extern "C"
15498 #  endif
15499    int F77_DUMMY_MAIN() { return 1; }
15500 #endif
15501 int
15502 main ()
15503 {
15504 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15505 test_array [0] = 0
15506
15507   ;
15508   return 0;
15509 }
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513   (eval $ac_compile) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } &&
15517          { ac_try='test -s conftest.$ac_objext'
15518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519   (eval $ac_try) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); }; }; then
15523   ac_lo=$ac_mid; break
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 ac_hi=`expr '(' $ac_mid ')' - 1`
15528                        if test $ac_mid -le $ac_hi; then
15529                          ac_lo= ac_hi=
15530                          break
15531                        fi
15532                        ac_mid=`expr 2 '*' $ac_mid`
15533 fi
15534 rm -f conftest.$ac_objext conftest.$ac_ext
15535   done
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15539 ac_lo= ac_hi=
15540 fi
15541 rm -f conftest.$ac_objext conftest.$ac_ext
15542 fi
15543 rm -f conftest.$ac_objext conftest.$ac_ext
15544 # Binary search between lo and hi bounds.
15545 while test "x$ac_lo" != "x$ac_hi"; do
15546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15547   cat >conftest.$ac_ext <<_ACEOF
15548 #line $LINENO "configure"
15549 #include "confdefs.h"
15550 $ac_includes_default
15551 struct { char filler; long long int field; } pgac_struct;
15552 #ifdef F77_DUMMY_MAIN
15553 #  ifdef __cplusplus
15554      extern "C"
15555 #  endif
15556    int F77_DUMMY_MAIN() { return 1; }
15557 #endif
15558 int
15559 main ()
15560 {
15561 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15562 test_array [0] = 0
15563
15564   ;
15565   return 0;
15566 }
15567 _ACEOF
15568 rm -f conftest.$ac_objext
15569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570   (eval $ac_compile) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -s conftest.$ac_objext'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; }; then
15580   ac_hi=$ac_mid
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 cat conftest.$ac_ext >&5
15584 ac_lo=`expr '(' $ac_mid ')' + 1`
15585 fi
15586 rm -f conftest.$ac_objext conftest.$ac_ext
15587 done
15588 case $ac_lo in
15589 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15590 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15591 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15592    { (exit 1); exit 1; }; } ;;
15593 esac
15594 else
15595   if test "$cross_compiling" = yes; then
15596   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15597 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15598    { (exit 1); exit 1; }; }
15599 else
15600   cat >conftest.$ac_ext <<_ACEOF
15601 #line $LINENO "configure"
15602 #include "confdefs.h"
15603 $ac_includes_default
15604 struct { char filler; long long int field; } pgac_struct;
15605 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15606 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15607 #include <stdio.h>
15608 #include <stdlib.h>
15609 #ifdef F77_DUMMY_MAIN
15610 #  ifdef __cplusplus
15611      extern "C"
15612 #  endif
15613    int F77_DUMMY_MAIN() { return 1; }
15614 #endif
15615 int
15616 main ()
15617 {
15618
15619   FILE *f = fopen ("conftest.val", "w");
15620   if (! f)
15621     exit (1);
15622   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15623     {
15624       long i = longval ();
15625       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15626         exit (1);
15627       fprintf (f, "%ld\n", i);
15628     }
15629   else
15630     {
15631       unsigned long i = ulongval ();
15632       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15633         exit (1);
15634       fprintf (f, "%lu\n", i);
15635     }
15636   exit (ferror (f) || fclose (f) != 0);
15637
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644   (eval $ac_link) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649   (eval $ac_try) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); }; }; then
15653   pgac_cv_alignof_long_long_int=`cat conftest.val`
15654 else
15655   echo "$as_me: program exited with status $ac_status" >&5
15656 echo "$as_me: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 ( exit $ac_status )
15659 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15660 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15661    { (exit 1); exit 1; }; }
15662 fi
15663 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15664 fi
15665 fi
15666 rm -f conftest.val
15667 else
15668   pgac_cv_alignof_long_long_int=0
15669 fi
15670 fi
15671 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15672 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15673 cat >>confdefs.h <<_ACEOF
15674 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15675 _ACEOF
15676
15677
15678 fi
15679 echo "$as_me:$LINENO: checking for double" >&5
15680 echo $ECHO_N "checking for double... $ECHO_C" >&6
15681 if test "${ac_cv_type_double+set}" = set; then
15682   echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684   cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15687 $ac_includes_default
15688 #ifdef F77_DUMMY_MAIN
15689 #  ifdef __cplusplus
15690      extern "C"
15691 #  endif
15692    int F77_DUMMY_MAIN() { return 1; }
15693 #endif
15694 int
15695 main ()
15696 {
15697 if ((double *) 0)
15698   return 0;
15699 if (sizeof (double))
15700   return 0;
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15707   (eval $ac_compile) 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); } &&
15711          { ac_try='test -s conftest.$ac_objext'
15712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713   (eval $ac_try) 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); }; }; then
15717   ac_cv_type_double=yes
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15721 ac_cv_type_double=no
15722 fi
15723 rm -f conftest.$ac_objext conftest.$ac_ext
15724 fi
15725 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15726 echo "${ECHO_T}$ac_cv_type_double" >&6
15727
15728 echo "$as_me:$LINENO: checking alignment of double" >&5
15729 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15730 if test "${pgac_cv_alignof_double+set}" = set; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   if test "$ac_cv_type_double" = yes; then
15734   if test "$cross_compiling" = yes; then
15735   # Depending upon the size, compute the lo and hi bounds.
15736 cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15738 #include "confdefs.h"
15739 $ac_includes_default
15740 struct { char filler; double field; } pgac_struct;
15741 #ifdef F77_DUMMY_MAIN
15742 #  ifdef __cplusplus
15743      extern "C"
15744 #  endif
15745    int F77_DUMMY_MAIN() { return 1; }
15746 #endif
15747 int
15748 main ()
15749 {
15750 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15751 test_array [0] = 0
15752
15753   ;
15754   return 0;
15755 }
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -s conftest.$ac_objext'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_lo=0 ac_mid=0
15770   while :; do
15771     cat >conftest.$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15773 #include "confdefs.h"
15774 $ac_includes_default
15775 struct { char filler; double field; } pgac_struct;
15776 #ifdef F77_DUMMY_MAIN
15777 #  ifdef __cplusplus
15778      extern "C"
15779 #  endif
15780    int F77_DUMMY_MAIN() { return 1; }
15781 #endif
15782 int
15783 main ()
15784 {
15785 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15786 test_array [0] = 0
15787
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15794   (eval $ac_compile) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -s conftest.$ac_objext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   ac_hi=$ac_mid; break
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 cat conftest.$ac_ext >&5
15808 ac_lo=`expr $ac_mid + 1`
15809                     if test $ac_lo -le $ac_mid; then
15810                       ac_lo= ac_hi=
15811                       break
15812                     fi
15813                     ac_mid=`expr 2 '*' $ac_mid + 1`
15814 fi
15815 rm -f conftest.$ac_objext conftest.$ac_ext
15816   done
15817 else
15818   echo "$as_me: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 cat >conftest.$ac_ext <<_ACEOF
15821 #line $LINENO "configure"
15822 #include "confdefs.h"
15823 $ac_includes_default
15824 struct { char filler; double field; } pgac_struct;
15825 #ifdef F77_DUMMY_MAIN
15826 #  ifdef __cplusplus
15827      extern "C"
15828 #  endif
15829    int F77_DUMMY_MAIN() { return 1; }
15830 #endif
15831 int
15832 main ()
15833 {
15834 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15835 test_array [0] = 0
15836
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15843   (eval $ac_compile) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); } &&
15847          { ac_try='test -s conftest.$ac_objext'
15848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849   (eval $ac_try) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; }; then
15853   ac_hi=-1 ac_mid=-1
15854   while :; do
15855     cat >conftest.$ac_ext <<_ACEOF
15856 #line $LINENO "configure"
15857 #include "confdefs.h"
15858 $ac_includes_default
15859 struct { char filler; double field; } pgac_struct;
15860 #ifdef F77_DUMMY_MAIN
15861 #  ifdef __cplusplus
15862      extern "C"
15863 #  endif
15864    int F77_DUMMY_MAIN() { return 1; }
15865 #endif
15866 int
15867 main ()
15868 {
15869 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15870 test_array [0] = 0
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878   (eval $ac_compile) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -s conftest.$ac_objext'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; }; then
15888   ac_lo=$ac_mid; break
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 cat conftest.$ac_ext >&5
15892 ac_hi=`expr '(' $ac_mid ')' - 1`
15893                        if test $ac_mid -le $ac_hi; then
15894                          ac_lo= ac_hi=
15895                          break
15896                        fi
15897                        ac_mid=`expr 2 '*' $ac_mid`
15898 fi
15899 rm -f conftest.$ac_objext conftest.$ac_ext
15900   done
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15904 ac_lo= ac_hi=
15905 fi
15906 rm -f conftest.$ac_objext conftest.$ac_ext
15907 fi
15908 rm -f conftest.$ac_objext conftest.$ac_ext
15909 # Binary search between lo and hi bounds.
15910 while test "x$ac_lo" != "x$ac_hi"; do
15911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15912   cat >conftest.$ac_ext <<_ACEOF
15913 #line $LINENO "configure"
15914 #include "confdefs.h"
15915 $ac_includes_default
15916 struct { char filler; double field; } pgac_struct;
15917 #ifdef F77_DUMMY_MAIN
15918 #  ifdef __cplusplus
15919      extern "C"
15920 #  endif
15921    int F77_DUMMY_MAIN() { return 1; }
15922 #endif
15923 int
15924 main ()
15925 {
15926 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15927 test_array [0] = 0
15928
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935   (eval $ac_compile) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -s conftest.$ac_objext'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_hi=$ac_mid
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 cat conftest.$ac_ext >&5
15949 ac_lo=`expr '(' $ac_mid ')' + 1`
15950 fi
15951 rm -f conftest.$ac_objext conftest.$ac_ext
15952 done
15953 case $ac_lo in
15954 ?*) pgac_cv_alignof_double=$ac_lo;;
15955 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15956 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15957    { (exit 1); exit 1; }; } ;;
15958 esac
15959 else
15960   if test "$cross_compiling" = yes; then
15961   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15962 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15963    { (exit 1); exit 1; }; }
15964 else
15965   cat >conftest.$ac_ext <<_ACEOF
15966 #line $LINENO "configure"
15967 #include "confdefs.h"
15968 $ac_includes_default
15969 struct { char filler; double field; } pgac_struct;
15970 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15971 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15972 #include <stdio.h>
15973 #include <stdlib.h>
15974 #ifdef F77_DUMMY_MAIN
15975 #  ifdef __cplusplus
15976      extern "C"
15977 #  endif
15978    int F77_DUMMY_MAIN() { return 1; }
15979 #endif
15980 int
15981 main ()
15982 {
15983
15984   FILE *f = fopen ("conftest.val", "w");
15985   if (! f)
15986     exit (1);
15987   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15988     {
15989       long i = longval ();
15990       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15991         exit (1);
15992       fprintf (f, "%ld\n", i);
15993     }
15994   else
15995     {
15996       unsigned long i = ulongval ();
15997       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15998         exit (1);
15999       fprintf (f, "%lu\n", i);
16000     }
16001   exit (ferror (f) || fclose (f) != 0);
16002
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009   (eval $ac_link) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014   (eval $ac_try) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   pgac_cv_alignof_double=`cat conftest.val`
16019 else
16020   echo "$as_me: program exited with status $ac_status" >&5
16021 echo "$as_me: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16023 ( exit $ac_status )
16024 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16025 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16026    { (exit 1); exit 1; }; }
16027 fi
16028 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16029 fi
16030 fi
16031 rm -f conftest.val
16032 else
16033   pgac_cv_alignof_double=0
16034 fi
16035 fi
16036 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16037 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16038 cat >>confdefs.h <<_ACEOF
16039 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16040 _ACEOF
16041
16042
16043
16044 # Compute maximum alignment of any basic type.
16045 # We assume long's alignment is at least as strong as char, short, or int;
16046 # but we must check long long (if it exists) and double.
16047
16048 MAX_ALIGNOF=$pgac_cv_alignof_long
16049 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16050   MAX_ALIGNOF=$pgac_cv_alignof_double
16051 fi
16052 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16053   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16054 fi
16055
16056 cat >>confdefs.h <<_ACEOF
16057 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16058 _ACEOF
16059
16060
16061
16062 # Some platforms predefine the types int8, int16, etc.  Only check
16063 # a (hopefully) representative subset.
16064 echo "$as_me:$LINENO: checking for int8" >&5
16065 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16066 if test "${ac_cv_type_int8+set}" = set; then
16067   echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069   cat >conftest.$ac_ext <<_ACEOF
16070 #line $LINENO "configure"
16071 #include "confdefs.h"
16072 #include <stdio.h>
16073 #ifdef HAVE_SUPPORTDEFS_H
16074 #include <SupportDefs.h>
16075 #endif
16076
16077 #ifdef F77_DUMMY_MAIN
16078 #  ifdef __cplusplus
16079      extern "C"
16080 #  endif
16081    int F77_DUMMY_MAIN() { return 1; }
16082 #endif
16083 int
16084 main ()
16085 {
16086 if ((int8 *) 0)
16087   return 0;
16088 if (sizeof (int8))
16089   return 0;
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096   (eval $ac_compile) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -s conftest.$ac_objext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106   ac_cv_type_int8=yes
16107 else
16108   echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 ac_cv_type_int8=no
16111 fi
16112 rm -f conftest.$ac_objext conftest.$ac_ext
16113 fi
16114 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16115 echo "${ECHO_T}$ac_cv_type_int8" >&6
16116 if test $ac_cv_type_int8 = yes; then
16117
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_INT8 1
16120 _ACEOF
16121
16122
16123 fi
16124 echo "$as_me:$LINENO: checking for uint8" >&5
16125 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16126 if test "${ac_cv_type_uint8+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 #include "confdefs.h"
16132 #include <stdio.h>
16133 #ifdef HAVE_SUPPORTDEFS_H
16134 #include <SupportDefs.h>
16135 #endif
16136
16137 #ifdef F77_DUMMY_MAIN
16138 #  ifdef __cplusplus
16139      extern "C"
16140 #  endif
16141    int F77_DUMMY_MAIN() { return 1; }
16142 #endif
16143 int
16144 main ()
16145 {
16146 if ((uint8 *) 0)
16147   return 0;
16148 if (sizeof (uint8))
16149   return 0;
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16156   (eval $ac_compile) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -s conftest.$ac_objext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   ac_cv_type_uint8=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 ac_cv_type_uint8=no
16171 fi
16172 rm -f conftest.$ac_objext conftest.$ac_ext
16173 fi
16174 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16175 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16176 if test $ac_cv_type_uint8 = yes; then
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_UINT8 1
16180 _ACEOF
16181
16182
16183 fi
16184 echo "$as_me:$LINENO: checking for int64" >&5
16185 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16186 if test "${ac_cv_type_int64+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   cat >conftest.$ac_ext <<_ACEOF
16190 #line $LINENO "configure"
16191 #include "confdefs.h"
16192 #include <stdio.h>
16193 #ifdef HAVE_SUPPORTDEFS_H
16194 #include <SupportDefs.h>
16195 #endif
16196
16197 #ifdef F77_DUMMY_MAIN
16198 #  ifdef __cplusplus
16199      extern "C"
16200 #  endif
16201    int F77_DUMMY_MAIN() { return 1; }
16202 #endif
16203 int
16204 main ()
16205 {
16206 if ((int64 *) 0)
16207   return 0;
16208 if (sizeof (int64))
16209   return 0;
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216   (eval $ac_compile) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -s conftest.$ac_objext'
16221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222   (eval $ac_try) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   ac_cv_type_int64=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16230 ac_cv_type_int64=no
16231 fi
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16235 echo "${ECHO_T}$ac_cv_type_int64" >&6
16236 if test $ac_cv_type_int64 = yes; then
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_INT64 1
16240 _ACEOF
16241
16242
16243 fi
16244 echo "$as_me:$LINENO: checking for uint64" >&5
16245 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16246 if test "${ac_cv_type_uint64+set}" = set; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249   cat >conftest.$ac_ext <<_ACEOF
16250 #line $LINENO "configure"
16251 #include "confdefs.h"
16252 #include <stdio.h>
16253 #ifdef HAVE_SUPPORTDEFS_H
16254 #include <SupportDefs.h>
16255 #endif
16256
16257 #ifdef F77_DUMMY_MAIN
16258 #  ifdef __cplusplus
16259      extern "C"
16260 #  endif
16261    int F77_DUMMY_MAIN() { return 1; }
16262 #endif
16263 int
16264 main ()
16265 {
16266 if ((uint64 *) 0)
16267   return 0;
16268 if (sizeof (uint64))
16269   return 0;
16270   ;
16271   return 0;
16272 }
16273 _ACEOF
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276   (eval $ac_compile) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } &&
16280          { ac_try='test -s conftest.$ac_objext'
16281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282   (eval $ac_try) 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; }; then
16286   ac_cv_type_uint64=yes
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 cat conftest.$ac_ext >&5
16290 ac_cv_type_uint64=no
16291 fi
16292 rm -f conftest.$ac_objext conftest.$ac_ext
16293 fi
16294 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16295 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16296 if test $ac_cv_type_uint64 = yes; then
16297
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_UINT64 1
16300 _ACEOF
16301
16302
16303 fi
16304
16305
16306 # We also check for sig_atomic_t, which *should* be defined per ANSI
16307 # C, but is missing on some old platforms.
16308 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16309 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16310 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16315 #include "confdefs.h"
16316 #include <signal.h>
16317
16318 #ifdef F77_DUMMY_MAIN
16319 #  ifdef __cplusplus
16320      extern "C"
16321 #  endif
16322    int F77_DUMMY_MAIN() { return 1; }
16323 #endif
16324 int
16325 main ()
16326 {
16327 if ((sig_atomic_t *) 0)
16328   return 0;
16329 if (sizeof (sig_atomic_t))
16330   return 0;
16331   ;
16332   return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337   (eval $ac_compile) 2>&5
16338   ac_status=$?
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); } &&
16341          { ac_try='test -s conftest.$ac_objext'
16342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343   (eval $ac_try) 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; }; then
16347   ac_cv_type_sig_atomic_t=yes
16348 else
16349   echo "$as_me: failed program was:" >&5
16350 cat conftest.$ac_ext >&5
16351 ac_cv_type_sig_atomic_t=no
16352 fi
16353 rm -f conftest.$ac_objext conftest.$ac_ext
16354 fi
16355 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16356 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16357 if test $ac_cv_type_sig_atomic_t = yes; then
16358
16359 cat >>confdefs.h <<_ACEOF
16360 #define HAVE_SIG_ATOMIC_T 1
16361 _ACEOF
16362
16363
16364 fi
16365
16366
16367
16368 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16369 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16370 if test "${pgac_cv_func_posix_signals+set}" = set; then
16371   echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373   cat >conftest.$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16375 #include "confdefs.h"
16376 #include <signal.h>
16377
16378 #ifdef F77_DUMMY_MAIN
16379 #  ifdef __cplusplus
16380      extern "C"
16381 #  endif
16382    int F77_DUMMY_MAIN() { return 1; }
16383 #endif
16384 int
16385 main ()
16386 {
16387 struct sigaction act, oact;
16388 sigemptyset(&act.sa_mask);
16389 act.sa_flags = SA_RESTART;
16390 sigaction(0, &act, &oact);
16391   ;
16392   return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397   (eval $ac_link) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } &&
16401          { ac_try='test -s conftest$ac_exeext'
16402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403   (eval $ac_try) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407   pgac_cv_func_posix_signals=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 pgac_cv_func_posix_signals=no
16412 fi
16413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16414 fi
16415 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16416 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16417 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16418
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_POSIX_SIGNALS
16421 _ACEOF
16422
16423 fi
16424 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16425
16426 if test $ac_cv_func_fseeko = yes; then
16427 # Check whether --enable-largefile or --disable-largefile was given.
16428 if test "${enable_largefile+set}" = set; then
16429   enableval="$enable_largefile"
16430
16431 fi;
16432 if test "$enable_largefile" != no; then
16433
16434   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16435 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16436 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16437   echo $ECHO_N "(cached) $ECHO_C" >&6
16438 else
16439   ac_cv_sys_largefile_CC=no
16440      if test "$GCC" != yes; then
16441        ac_save_CC=$CC
16442        while :; do
16443          # IRIX 6.2 and later do not support large files by default,
16444          # so use the C compiler's -n32 option if that helps.
16445          cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 #include "confdefs.h"
16448 #include <sys/types.h>
16449  /* Check that off_t can represent 2**63 - 1 correctly.
16450     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16451     since some C++ compilers masquerading as C compilers
16452     incorrectly reject 9223372036854775807.  */
16453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16454   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16455                        && LARGE_OFF_T % 2147483647 == 1)
16456                       ? 1 : -1];
16457 #ifdef F77_DUMMY_MAIN
16458 #  ifdef __cplusplus
16459      extern "C"
16460 #  endif
16461    int F77_DUMMY_MAIN() { return 1; }
16462 #endif
16463 int
16464 main ()
16465 {
16466
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471          rm -f conftest.$ac_objext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473   (eval $ac_compile) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } &&
16477          { ac_try='test -s conftest.$ac_objext'
16478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479   (eval $ac_try) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); }; }; then
16483   break
16484 else
16485   echo "$as_me: failed program was:" >&5
16486 cat conftest.$ac_ext >&5
16487 fi
16488 rm -f conftest.$ac_objext
16489          CC="$CC -n32"
16490          rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492   (eval $ac_compile) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); } &&
16496          { ac_try='test -s conftest.$ac_objext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   ac_cv_sys_largefile_CC=' -n32'; break
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 fi
16507 rm -f conftest.$ac_objext
16508          break
16509        done
16510        CC=$ac_save_CC
16511        rm -f conftest.$ac_ext
16512     fi
16513 fi
16514 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16515 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16516   if test "$ac_cv_sys_largefile_CC" != no; then
16517     CC=$CC$ac_cv_sys_largefile_CC
16518   fi
16519
16520   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16521 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16522 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   while :; do
16526   ac_cv_sys_file_offset_bits=no
16527   cat >conftest.$ac_ext <<_ACEOF
16528 #line $LINENO "configure"
16529 #include "confdefs.h"
16530 #include <sys/types.h>
16531  /* Check that off_t can represent 2**63 - 1 correctly.
16532     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16533     since some C++ compilers masquerading as C compilers
16534     incorrectly reject 9223372036854775807.  */
16535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16536   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16537                        && LARGE_OFF_T % 2147483647 == 1)
16538                       ? 1 : -1];
16539 #ifdef F77_DUMMY_MAIN
16540 #  ifdef __cplusplus
16541      extern "C"
16542 #  endif
16543    int F77_DUMMY_MAIN() { return 1; }
16544 #endif
16545 int
16546 main ()
16547 {
16548
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16555   (eval $ac_compile) 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -s conftest.$ac_objext'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   break
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 cat conftest.$ac_ext >&5
16569 fi
16570 rm -f conftest.$ac_objext conftest.$ac_ext
16571   cat >conftest.$ac_ext <<_ACEOF
16572 #line $LINENO "configure"
16573 #include "confdefs.h"
16574 #define _FILE_OFFSET_BITS 64
16575 #include <sys/types.h>
16576  /* Check that off_t can represent 2**63 - 1 correctly.
16577     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16578     since some C++ compilers masquerading as C compilers
16579     incorrectly reject 9223372036854775807.  */
16580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16581   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16582                        && LARGE_OFF_T % 2147483647 == 1)
16583                       ? 1 : -1];
16584 #ifdef F77_DUMMY_MAIN
16585 #  ifdef __cplusplus
16586      extern "C"
16587 #  endif
16588    int F77_DUMMY_MAIN() { return 1; }
16589 #endif
16590 int
16591 main ()
16592 {
16593
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16600   (eval $ac_compile) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_cv_sys_file_offset_bits=64; break
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 cat conftest.$ac_ext >&5
16614 fi
16615 rm -f conftest.$ac_objext conftest.$ac_ext
16616   break
16617 done
16618 fi
16619 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16620 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16621 if test "$ac_cv_sys_file_offset_bits" != no; then
16622
16623 cat >>confdefs.h <<_ACEOF
16624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16625 _ACEOF
16626
16627 fi
16628 rm -f conftest*
16629   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16630 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16631 if test "${ac_cv_sys_large_files+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   while :; do
16635   ac_cv_sys_large_files=no
16636   cat >conftest.$ac_ext <<_ACEOF
16637 #line $LINENO "configure"
16638 #include "confdefs.h"
16639 #include <sys/types.h>
16640  /* Check that off_t can represent 2**63 - 1 correctly.
16641     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16642     since some C++ compilers masquerading as C compilers
16643     incorrectly reject 9223372036854775807.  */
16644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16645   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16646                        && LARGE_OFF_T % 2147483647 == 1)
16647                       ? 1 : -1];
16648 #ifdef F77_DUMMY_MAIN
16649 #  ifdef __cplusplus
16650      extern "C"
16651 #  endif
16652    int F77_DUMMY_MAIN() { return 1; }
16653 #endif
16654 int
16655 main ()
16656 {
16657
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16664   (eval $ac_compile) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } &&
16668          { ac_try='test -s conftest.$ac_objext'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   break
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 cat conftest.$ac_ext >&5
16678 fi
16679 rm -f conftest.$ac_objext conftest.$ac_ext
16680   cat >conftest.$ac_ext <<_ACEOF
16681 #line $LINENO "configure"
16682 #include "confdefs.h"
16683 #define _LARGE_FILES 1
16684 #include <sys/types.h>
16685  /* Check that off_t can represent 2**63 - 1 correctly.
16686     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16687     since some C++ compilers masquerading as C compilers
16688     incorrectly reject 9223372036854775807.  */
16689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16690   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16691                        && LARGE_OFF_T % 2147483647 == 1)
16692                       ? 1 : -1];
16693 #ifdef F77_DUMMY_MAIN
16694 #  ifdef __cplusplus
16695      extern "C"
16696 #  endif
16697    int F77_DUMMY_MAIN() { return 1; }
16698 #endif
16699 int
16700 main ()
16701 {
16702
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709   (eval $ac_compile) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   ac_cv_sys_large_files=1; break
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16723 fi
16724 rm -f conftest.$ac_objext conftest.$ac_ext
16725   break
16726 done
16727 fi
16728 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16729 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16730 if test "$ac_cv_sys_large_files" != no; then
16731
16732 cat >>confdefs.h <<_ACEOF
16733 #define _LARGE_FILES $ac_cv_sys_large_files
16734 _ACEOF
16735
16736 fi
16737 rm -f conftest*
16738 fi
16739
16740 fi
16741
16742
16743 # Select semaphore implementation type.
16744 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16745
16746 cat >>confdefs.h <<\_ACEOF
16747 #define USE_NAMED_POSIX_SEMAPHORES 1
16748 _ACEOF
16749
16750   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16751 else
16752   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16753
16754 cat >>confdefs.h <<\_ACEOF
16755 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16756 _ACEOF
16757
16758     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16759   else
16760
16761 cat >>confdefs.h <<\_ACEOF
16762 #define USE_SYSV_SEMAPHORES 1
16763 _ACEOF
16764
16765     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16766   fi
16767 fi
16768
16769
16770 # Select shared-memory implementation type.
16771
16772 cat >>confdefs.h <<\_ACEOF
16773 #define USE_SYSV_SHARED_MEMORY 1
16774 _ACEOF
16775
16776 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16777
16778
16779 if test "$enable_nls" = yes ; then
16780
16781   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16782 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16783 if test "${ac_cv_search_gettext+set}" = set; then
16784   echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786   ac_func_search_save_LIBS=$LIBS
16787 ac_cv_search_gettext=no
16788 cat >conftest.$ac_ext <<_ACEOF
16789 #line $LINENO "configure"
16790 #include "confdefs.h"
16791
16792 /* Override any gcc2 internal prototype to avoid an error.  */
16793 #ifdef __cplusplus
16794 extern "C"
16795 #endif
16796 /* We use char because int might match the return type of a gcc2
16797    builtin and then its argument prototype would still apply.  */
16798 char gettext ();
16799 #ifdef F77_DUMMY_MAIN
16800 #  ifdef __cplusplus
16801      extern "C"
16802 #  endif
16803    int F77_DUMMY_MAIN() { return 1; }
16804 #endif
16805 int
16806 main ()
16807 {
16808 gettext ();
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815   (eval $ac_link) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -s conftest$ac_exeext'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; }; then
16825   ac_cv_search_gettext="none required"
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 cat conftest.$ac_ext >&5
16829 fi
16830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16831 if test "$ac_cv_search_gettext" = no; then
16832   for ac_lib in intl; do
16833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16834     cat >conftest.$ac_ext <<_ACEOF
16835 #line $LINENO "configure"
16836 #include "confdefs.h"
16837
16838 /* Override any gcc2 internal prototype to avoid an error.  */
16839 #ifdef __cplusplus
16840 extern "C"
16841 #endif
16842 /* We use char because int might match the return type of a gcc2
16843    builtin and then its argument prototype would still apply.  */
16844 char gettext ();
16845 #ifdef F77_DUMMY_MAIN
16846 #  ifdef __cplusplus
16847      extern "C"
16848 #  endif
16849    int F77_DUMMY_MAIN() { return 1; }
16850 #endif
16851 int
16852 main ()
16853 {
16854 gettext ();
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861   (eval $ac_link) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -s conftest$ac_exeext'
16866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867   (eval $ac_try) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_search_gettext="-l$ac_lib"
16872 break
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 cat conftest.$ac_ext >&5
16876 fi
16877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16878   done
16879 fi
16880 LIBS=$ac_func_search_save_LIBS
16881 fi
16882 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16883 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16884 if test "$ac_cv_search_gettext" != no; then
16885   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16886
16887 else
16888   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16889 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16890    { (exit 1); exit 1; }; }
16891 fi
16892
16893   if test "${ac_cv_header_libintl_h+set}" = set; then
16894   echo "$as_me:$LINENO: checking for libintl.h" >&5
16895 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16896 if test "${ac_cv_header_libintl_h+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 fi
16899 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16900 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16901 else
16902   # Is the header compilable?
16903 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16904 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16906 #line $LINENO "configure"
16907 #include "confdefs.h"
16908 $ac_includes_default
16909 #include <libintl.h>
16910 _ACEOF
16911 rm -f conftest.$ac_objext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16913   (eval $ac_compile) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -s conftest.$ac_objext'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_header_compiler=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 ac_header_compiler=no
16928 fi
16929 rm -f conftest.$ac_objext conftest.$ac_ext
16930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16931 echo "${ECHO_T}$ac_header_compiler" >&6
16932
16933 # Is the header present?
16934 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16935 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16937 #line $LINENO "configure"
16938 #include "confdefs.h"
16939 #include <libintl.h>
16940 _ACEOF
16941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16943   ac_status=$?
16944   egrep -v '^ *\+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } >/dev/null; then
16949   if test -s conftest.err; then
16950     ac_cpp_err=$ac_c_preproc_warn_flag
16951   else
16952     ac_cpp_err=
16953   fi
16954 else
16955   ac_cpp_err=yes
16956 fi
16957 if test -z "$ac_cpp_err"; then
16958   ac_header_preproc=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961   cat conftest.$ac_ext >&5
16962   ac_header_preproc=no
16963 fi
16964 rm -f conftest.err conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16966 echo "${ECHO_T}$ac_header_preproc" >&6
16967
16968 # So?  What about this header?
16969 case $ac_header_compiler:$ac_header_preproc in
16970   yes:no )
16971     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16972 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16973     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16974 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16975   no:yes )
16976     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16977 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16978     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16979 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16980     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16981 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16982 esac
16983 echo "$as_me:$LINENO: checking for libintl.h" >&5
16984 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16985 if test "${ac_cv_header_libintl_h+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   ac_cv_header_libintl_h=$ac_header_preproc
16989 fi
16990 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16991 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16992
16993 fi
16994 if test $ac_cv_header_libintl_h = yes; then
16995   :
16996 else
16997   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16998 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16999    { (exit 1); exit 1; }; }
17000 fi
17001
17002
17003   for ac_prog in msgfmt
17004 do
17005   # Extract the first word of "$ac_prog", so it can be a program name with args.
17006 set dummy $ac_prog; ac_word=$2
17007 echo "$as_me:$LINENO: checking for $ac_word" >&5
17008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17009 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   if test -n "$MSGFMT"; then
17013   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17014 else
17015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17016 for as_dir in $PATH
17017 do
17018   IFS=$as_save_IFS
17019   test -z "$as_dir" && as_dir=.
17020   for ac_exec_ext in '' $ac_executable_extensions; do
17021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17022     ac_cv_prog_MSGFMT="$ac_prog"
17023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17024     break 2
17025   fi
17026 done
17027 done
17028
17029 fi
17030 fi
17031 MSGFMT=$ac_cv_prog_MSGFMT
17032 if test -n "$MSGFMT"; then
17033   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17034 echo "${ECHO_T}$MSGFMT" >&6
17035 else
17036   echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6
17038 fi
17039
17040   test -n "$MSGFMT" && break
17041 done
17042
17043   if test -z "$MSGFMT"; then
17044     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17045 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17046    { (exit 1); exit 1; }; }
17047   fi
17048   for ac_prog in msgmerge
17049 do
17050   # Extract the first word of "$ac_prog", so it can be a program name with args.
17051 set dummy $ac_prog; ac_word=$2
17052 echo "$as_me:$LINENO: checking for $ac_word" >&5
17053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17054 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   if test -n "$MSGMERGE"; then
17058   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17059 else
17060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17061 for as_dir in $PATH
17062 do
17063   IFS=$as_save_IFS
17064   test -z "$as_dir" && as_dir=.
17065   for ac_exec_ext in '' $ac_executable_extensions; do
17066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17067     ac_cv_prog_MSGMERGE="$ac_prog"
17068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17069     break 2
17070   fi
17071 done
17072 done
17073
17074 fi
17075 fi
17076 MSGMERGE=$ac_cv_prog_MSGMERGE
17077 if test -n "$MSGMERGE"; then
17078   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17079 echo "${ECHO_T}$MSGMERGE" >&6
17080 else
17081   echo "$as_me:$LINENO: result: no" >&5
17082 echo "${ECHO_T}no" >&6
17083 fi
17084
17085   test -n "$MSGMERGE" && break
17086 done
17087
17088   for ac_prog in xgettext
17089 do
17090   # Extract the first word of "$ac_prog", so it can be a program name with args.
17091 set dummy $ac_prog; ac_word=$2
17092 echo "$as_me:$LINENO: checking for $ac_word" >&5
17093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17094 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   if test -n "$XGETTEXT"; then
17098   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17099 else
17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17101 for as_dir in $PATH
17102 do
17103   IFS=$as_save_IFS
17104   test -z "$as_dir" && as_dir=.
17105   for ac_exec_ext in '' $ac_executable_extensions; do
17106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17107     ac_cv_prog_XGETTEXT="$ac_prog"
17108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17109     break 2
17110   fi
17111 done
17112 done
17113
17114 fi
17115 fi
17116 XGETTEXT=$ac_cv_prog_XGETTEXT
17117 if test -n "$XGETTEXT"; then
17118   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17119 echo "${ECHO_T}$XGETTEXT" >&6
17120 else
17121   echo "$as_me:$LINENO: result: no" >&5
17122 echo "${ECHO_T}no" >&6
17123 fi
17124
17125   test -n "$XGETTEXT" && break
17126 done
17127
17128
17129   # Note: share/locale is always the default, independent of $datadir
17130   localedir='${prefix}/share/locale'
17131   if test x"$prefix" = x"NONE"; then
17132     exp_localedir="$ac_default_prefix/share/locale"
17133   else
17134     exp_localedir="$prefix/share/locale"
17135   fi
17136
17137
17138
17139 cat >>confdefs.h <<_ACEOF
17140 #define LOCALEDIR "$exp_localedir"
17141 _ACEOF
17142
17143
17144 fi
17145
17146 # Check for Tcl configuration script tclConfig.sh
17147 if test "$with_tcl" = yes; then
17148     for ac_prog in tclsh tcl
17149 do
17150   # Extract the first word of "$ac_prog", so it can be a program name with args.
17151 set dummy $ac_prog; ac_word=$2
17152 echo "$as_me:$LINENO: checking for $ac_word" >&5
17153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17154 if test "${ac_cv_path_TCLSH+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157   case $TCLSH in
17158   [\\/]* | ?:[\\/]*)
17159   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17160   ;;
17161   *)
17162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17164 do
17165   IFS=$as_save_IFS
17166   test -z "$as_dir" && as_dir=.
17167   for ac_exec_ext in '' $ac_executable_extensions; do
17168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17171     break 2
17172   fi
17173 done
17174 done
17175
17176   ;;
17177 esac
17178 fi
17179 TCLSH=$ac_cv_path_TCLSH
17180
17181 if test -n "$TCLSH"; then
17182   echo "$as_me:$LINENO: result: $TCLSH" >&5
17183 echo "${ECHO_T}$TCLSH" >&6
17184 else
17185   echo "$as_me:$LINENO: result: no" >&5
17186 echo "${ECHO_T}no" >&6
17187 fi
17188
17189   test -n "$TCLSH" && break
17190 done
17191
17192 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17193 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17194 # Let user override test
17195 if test -z "$TCL_CONFIG_SH"; then
17196     pgac_test_dirs="$with_tclconfig"
17197
17198     set X $pgac_test_dirs; shift
17199     if test $# -eq 0; then
17200         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17201 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17202    { (exit 1); exit 1; }; }
17203         set X `echo 'puts $auto_path' | $TCLSH`; shift
17204     fi
17205
17206     for pgac_dir do
17207         if test -r "$pgac_dir/tclConfig.sh"; then
17208             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17209             break
17210         fi
17211     done
17212 fi
17213
17214 if test -z "$TCL_CONFIG_SH"; then
17215     echo "$as_me:$LINENO: result: no" >&5
17216 echo "${ECHO_T}no" >&6
17217     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17218 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17219    { (exit 1); exit 1; }; }
17220 else
17221     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17222 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17223 fi
17224
17225
17226
17227     . "$TCL_CONFIG_SH"
17228 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17229 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17230 eval TCL_LIBS=\"$TCL_LIBS\"
17231 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17232 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17233
17234     fi
17235
17236 # Check for Tk configuration script tkConfig.sh
17237 if test "$with_tk" = yes; then
17238     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17239 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17240 # Let user override test
17241 if test -z "$TK_CONFIG_SH"; then
17242     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17243
17244     set X $pgac_test_dirs; shift
17245     if test $# -eq 0; then
17246         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17247 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17248    { (exit 1); exit 1; }; }
17249         set X `echo 'puts $auto_path' | $TCLSH`; shift
17250     fi
17251
17252     for pgac_dir do
17253         if test -r "$pgac_dir/tkConfig.sh"; then
17254             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17255             break
17256         fi
17257     done
17258 fi
17259
17260 if test -z "$TK_CONFIG_SH"; then
17261     echo "$as_me:$LINENO: result: no" >&5
17262 echo "${ECHO_T}no" >&6
17263     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17264 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17265    { (exit 1); exit 1; }; }
17266 else
17267     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17268 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17269 fi
17270
17271
17272
17273     . "$TK_CONFIG_SH"
17274 eval TK_LIBS=\"$TK_LIBS\"
17275 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17276 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17277
17278 fi
17279
17280
17281 #
17282 # Check for DocBook and tools
17283 #
17284 for ac_prog in onsgmls nsgmls
17285 do
17286   # Extract the first word of "$ac_prog", so it can be a program name with args.
17287 set dummy $ac_prog; ac_word=$2
17288 echo "$as_me:$LINENO: checking for $ac_word" >&5
17289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17290 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17291   echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293   if test -n "$NSGMLS"; then
17294   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17295 else
17296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17297 for as_dir in $PATH
17298 do
17299   IFS=$as_save_IFS
17300   test -z "$as_dir" && as_dir=.
17301   for ac_exec_ext in '' $ac_executable_extensions; do
17302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17303     ac_cv_prog_NSGMLS="$ac_prog"
17304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17305     break 2
17306   fi
17307 done
17308 done
17309
17310 fi
17311 fi
17312 NSGMLS=$ac_cv_prog_NSGMLS
17313 if test -n "$NSGMLS"; then
17314   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17315 echo "${ECHO_T}$NSGMLS" >&6
17316 else
17317   echo "$as_me:$LINENO: result: no" >&5
17318 echo "${ECHO_T}no" >&6
17319 fi
17320
17321   test -n "$NSGMLS" && break
17322 done
17323
17324 for ac_prog in openjade jade
17325 do
17326   # Extract the first word of "$ac_prog", so it can be a program name with args.
17327 set dummy $ac_prog; ac_word=$2
17328 echo "$as_me:$LINENO: checking for $ac_word" >&5
17329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17330 if test "${ac_cv_prog_JADE+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   if test -n "$JADE"; then
17334   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17335 else
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337 for as_dir in $PATH
17338 do
17339   IFS=$as_save_IFS
17340   test -z "$as_dir" && as_dir=.
17341   for ac_exec_ext in '' $ac_executable_extensions; do
17342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17343     ac_cv_prog_JADE="$ac_prog"
17344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17345     break 2
17346   fi
17347 done
17348 done
17349
17350 fi
17351 fi
17352 JADE=$ac_cv_prog_JADE
17353 if test -n "$JADE"; then
17354   echo "$as_me:$LINENO: result: $JADE" >&5
17355 echo "${ECHO_T}$JADE" >&6
17356 else
17357   echo "$as_me:$LINENO: result: no" >&5
17358 echo "${ECHO_T}no" >&6
17359 fi
17360
17361   test -n "$JADE" && break
17362 done
17363
17364
17365 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17366 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17367 if test "${pgac_cv_check_docbook+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.sgml <<EOF
17371 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17372 <book>
17373  <title>test</title>
17374  <chapter>
17375   <title>random</title>
17376    <sect1>
17377     <title>testsect</title>
17378     <para>text</para>
17379   </sect1>
17380  </chapter>
17381 </book>
17382 EOF
17383
17384 pgac_cv_check_docbook=no
17385
17386 if test -n "$NSGMLS"; then
17387   $NSGMLS -s conftest.sgml 1>&5 2>&1
17388   if test $? -eq 0; then
17389     pgac_cv_check_docbook=yes
17390   fi
17391 fi
17392 rm -f conftest.sgml
17393 fi
17394 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17395 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17396
17397 have_docbook=$pgac_cv_check_docbook
17398
17399
17400 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17401 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17402 if test "${pgac_cv_path_stylesheets+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   if test -n "$DOCBOOKSTYLE"; then
17406   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17407 else
17408   for pgac_prefix in /usr /usr/local /opt; do
17409     for pgac_infix in share lib; do
17410       for pgac_postfix in \
17411         sgml/stylesheets/nwalsh-modular \
17412         sgml/stylesheets/docbook \
17413                 sgml/docbook-dsssl \
17414         sgml/docbook/dsssl/modular \
17415         sgml/docbook/stylesheet/dsssl/modular \
17416         sgml/docbook/dsssl-stylesheets
17417       do
17418         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17419         if test -r "$pgac_candidate/html/docbook.dsl" \
17420            && test -r "$pgac_candidate/print/docbook.dsl"
17421         then
17422           pgac_cv_path_stylesheets=$pgac_candidate
17423           break 3
17424         fi
17425       done
17426     done
17427   done
17428 fi
17429 fi
17430
17431 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17432
17433 if test -n "$DOCBOOKSTYLE"; then
17434   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17435 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17436 else
17437   echo "$as_me:$LINENO: result: no" >&5
17438 echo "${ECHO_T}no" >&6
17439 fi
17440 if test -n "$DOCBOOKSTYLE"; then
17441   for ac_prog in collateindex.pl
17442 do
17443   # Extract the first word of "$ac_prog", so it can be a program name with args.
17444 set dummy $ac_prog; ac_word=$2
17445 echo "$as_me:$LINENO: checking for $ac_word" >&5
17446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17447 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450   case $COLLATEINDEX in
17451   [\\/]* | ?:[\\/]*)
17452   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17453   ;;
17454   *)
17455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17456 for as_dir in $DOCBOOKSTYLE/bin $PATH
17457 do
17458   IFS=$as_save_IFS
17459   test -z "$as_dir" && as_dir=.
17460   for ac_exec_ext in '' $ac_executable_extensions; do
17461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17462     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17464     break 2
17465   fi
17466 done
17467 done
17468
17469   ;;
17470 esac
17471 fi
17472 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17473
17474 if test -n "$COLLATEINDEX"; then
17475   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17476 echo "${ECHO_T}$COLLATEINDEX" >&6
17477 else
17478   echo "$as_me:$LINENO: result: no" >&5
17479 echo "${ECHO_T}no" >&6
17480 fi
17481
17482   test -n "$COLLATEINDEX" && break
17483 done
17484
17485 else
17486   for ac_prog in collateindex.pl
17487 do
17488   # Extract the first word of "$ac_prog", so it can be a program name with args.
17489 set dummy $ac_prog; ac_word=$2
17490 echo "$as_me:$LINENO: checking for $ac_word" >&5
17491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17492 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   case $COLLATEINDEX in
17496   [\\/]* | ?:[\\/]*)
17497   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17498   ;;
17499   *)
17500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17501 for as_dir in $PATH
17502 do
17503   IFS=$as_save_IFS
17504   test -z "$as_dir" && as_dir=.
17505   for ac_exec_ext in '' $ac_executable_extensions; do
17506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17507     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17509     break 2
17510   fi
17511 done
17512 done
17513
17514   ;;
17515 esac
17516 fi
17517 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17518
17519 if test -n "$COLLATEINDEX"; then
17520   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17521 echo "${ECHO_T}$COLLATEINDEX" >&6
17522 else
17523   echo "$as_me:$LINENO: result: no" >&5
17524 echo "${ECHO_T}no" >&6
17525 fi
17526
17527   test -n "$COLLATEINDEX" && break
17528 done
17529
17530 fi
17531 for ac_prog in sgmlspl
17532 do
17533   # Extract the first word of "$ac_prog", so it can be a program name with args.
17534 set dummy $ac_prog; ac_word=$2
17535 echo "$as_me:$LINENO: checking for $ac_word" >&5
17536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17537 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   if test -n "$SGMLSPL"; then
17541   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17542 else
17543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544 for as_dir in $PATH
17545 do
17546   IFS=$as_save_IFS
17547   test -z "$as_dir" && as_dir=.
17548   for ac_exec_ext in '' $ac_executable_extensions; do
17549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17550     ac_cv_prog_SGMLSPL="$ac_prog"
17551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17552     break 2
17553   fi
17554 done
17555 done
17556
17557 fi
17558 fi
17559 SGMLSPL=$ac_cv_prog_SGMLSPL
17560 if test -n "$SGMLSPL"; then
17561   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17562 echo "${ECHO_T}$SGMLSPL" >&6
17563 else
17564   echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6
17566 fi
17567
17568   test -n "$SGMLSPL" && break
17569 done
17570
17571
17572
17573 # prepare build tree if outside source tree
17574 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17575 # Note 2: /bin/pwd might be better than shell's built-in at getting
17576 #         a symlink-free name.
17577 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17578   vpath_build=no
17579 else
17580   vpath_build=yes
17581   if test "$no_create" != yes; then
17582     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17583     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17584     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17585       || { { echo "$as_me:$LINENO: error: failed" >&5
17586 echo "$as_me: error: failed" >&2;}
17587    { (exit 1); exit 1; }; }
17588     echo "$as_me:$LINENO: result: done" >&5
17589 echo "${ECHO_T}done" >&6
17590   fi
17591 fi
17592
17593
17594
17595 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17596
17597
17598 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}"
17599
17600
17601 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17602
17603
17604 cat >confcache <<\_ACEOF
17605 # This file is a shell script that caches the results of configure
17606 # tests run on this system so they can be shared between configure
17607 # scripts and configure runs, see configure's option --config-cache.
17608 # It is not useful on other systems.  If it contains results you don't
17609 # want to keep, you may remove or edit it.
17610 #
17611 # config.status only pays attention to the cache file if you give it
17612 # the --recheck option to rerun configure.
17613 #
17614 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17616 # following values.
17617
17618 _ACEOF
17619
17620 # The following way of writing the cache mishandles newlines in values,
17621 # but we know of no workaround that is simple, portable, and efficient.
17622 # So, don't put newlines in cache variables' values.
17623 # Ultrix sh set writes to stderr and can't be redirected directly,
17624 # and sets the high bit in the cache file unless we assign to the vars.
17625 {
17626   (set) 2>&1 |
17627     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17628     *ac_space=\ *)
17629       # `set' does not quote correctly, so add quotes (double-quote
17630       # substitution turns \\\\ into \\, and sed turns \\ into \).
17631       sed -n \
17632         "s/'/'\\\\''/g;
17633           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17634       ;;
17635     *)
17636       # `set' quotes correctly as required by POSIX, so do not add quotes.
17637       sed -n \
17638         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17639       ;;
17640     esac;
17641 } |
17642   sed '
17643      t clear
17644      : clear
17645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17646      t end
17647      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17648      : end' >>confcache
17649 if cmp -s $cache_file confcache; then :; else
17650   if test -w $cache_file; then
17651     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17652     cat confcache >$cache_file
17653   else
17654     echo "not updating unwritable cache $cache_file"
17655   fi
17656 fi
17657 rm -f confcache
17658
17659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17660 # Let make expand exec_prefix.
17661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17662
17663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17665 # trailing colons and then remove the whole line if VPATH becomes empty
17666 # (actually we leave an empty line to preserve line numbers).
17667 if test "x$srcdir" = x.; then
17668   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17669 s/:*\$(srcdir):*/:/;
17670 s/:*\${srcdir}:*/:/;
17671 s/:*@srcdir@:*/:/;
17672 s/^\([^=]*=[    ]*\):*/\1/;
17673 s/:*$//;
17674 s/^[^=]*=[      ]*$//;
17675 }'
17676 fi
17677
17678 DEFS=-DHAVE_CONFIG_H
17679
17680
17681 : ${CONFIG_STATUS=./config.status}
17682 ac_clean_files_save=$ac_clean_files
17683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17684 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17686 cat >$CONFIG_STATUS <<_ACEOF
17687 #! $SHELL
17688 # Generated by $as_me.
17689 # Run this file to recreate the current configuration.
17690 # Compiler output produced by configure, useful for debugging
17691 # configure, is in config.log if it exists.
17692
17693 debug=false
17694 SHELL=\${CONFIG_SHELL-$SHELL}
17695 _ACEOF
17696
17697 cat >>$CONFIG_STATUS <<\_ACEOF
17698
17699 ## --------------------- ##
17700 ## M4sh Initialization.  ##
17701 ## --------------------- ##
17702
17703 # Be Bourne compatible
17704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17705   emulate sh
17706   NULLCMD=:
17707 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17708   set -o posix
17709 fi
17710
17711 # NLS nuisances.
17712 # Support unset when possible.
17713 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17714   as_unset=unset
17715 else
17716   as_unset=false
17717 fi
17718
17719 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17720     { $as_unset LANG || test "${LANG+set}" != set; } ||
17721       { LANG=C; export LANG; }
17722 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17723     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17724       { LC_ALL=C; export LC_ALL; }
17725 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17726     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17727       { LC_TIME=C; export LC_TIME; }
17728 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17729     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17730       { LC_CTYPE=C; export LC_CTYPE; }
17731 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17732     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17733       { LANGUAGE=C; export LANGUAGE; }
17734 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17735     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17736       { LC_COLLATE=C; export LC_COLLATE; }
17737 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17738     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17739       { LC_NUMERIC=C; export LC_NUMERIC; }
17740 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17741     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17742       { LC_MESSAGES=C; export LC_MESSAGES; }
17743
17744
17745 # Name of the executable.
17746 as_me=`(basename "$0") 2>/dev/null ||
17747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17748          X"$0" : 'X\(//\)$' \| \
17749          X"$0" : 'X\(/\)$' \| \
17750          .     : '\(.\)' 2>/dev/null ||
17751 echo X/"$0" |
17752     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17753           /^X\/\(\/\/\)$/{ s//\1/; q; }
17754           /^X\/\(\/\).*/{ s//\1/; q; }
17755           s/.*/./; q'`
17756
17757 # PATH needs CR, and LINENO needs CR and PATH.
17758 # Avoid depending upon Character Ranges.
17759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17762 as_cr_digits='0123456789'
17763 as_cr_alnum=$as_cr_Letters$as_cr_digits
17764
17765 # The user is always right.
17766 if test "${PATH_SEPARATOR+set}" != set; then
17767   echo "#! /bin/sh" >conftest.sh
17768   echo  "exit 0"   >>conftest.sh
17769   chmod +x conftest.sh
17770   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17771     PATH_SEPARATOR=';'
17772   else
17773     PATH_SEPARATOR=:
17774   fi
17775   rm -f conftest.sh
17776 fi
17777
17778
17779   as_lineno_1=$LINENO
17780   as_lineno_2=$LINENO
17781   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17782   test "x$as_lineno_1" != "x$as_lineno_2" &&
17783   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17784   # Find who we are.  Look in the path if we contain no path at all
17785   # relative or not.
17786   case $0 in
17787     *[\\/]* ) as_myself=$0 ;;
17788     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789 for as_dir in $PATH
17790 do
17791   IFS=$as_save_IFS
17792   test -z "$as_dir" && as_dir=.
17793   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17794 done
17795
17796        ;;
17797   esac
17798   # We did not find ourselves, most probably we were run as `sh COMMAND'
17799   # in which case we are not to be found in the path.
17800   if test "x$as_myself" = x; then
17801     as_myself=$0
17802   fi
17803   if test ! -f "$as_myself"; then
17804     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17805 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17806    { (exit 1); exit 1; }; }
17807   fi
17808   case $CONFIG_SHELL in
17809   '')
17810     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17811 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17812 do
17813   IFS=$as_save_IFS
17814   test -z "$as_dir" && as_dir=.
17815   for as_base in sh bash ksh sh5; do
17816          case $as_dir in
17817          /*)
17818            if ("$as_dir/$as_base" -c '
17819   as_lineno_1=$LINENO
17820   as_lineno_2=$LINENO
17821   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17822   test "x$as_lineno_1" != "x$as_lineno_2" &&
17823   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17824              CONFIG_SHELL=$as_dir/$as_base
17825              export CONFIG_SHELL
17826              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17827            fi;;
17828          esac
17829        done
17830 done
17831 ;;
17832   esac
17833
17834   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17835   # uniformly replaced by the line number.  The first 'sed' inserts a
17836   # line-number line before each line; the second 'sed' does the real
17837   # work.  The second script uses 'N' to pair each line-number line
17838   # with the numbered line, and appends trailing '-' during
17839   # substitution so that $LINENO is not a special case at line end.
17840   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17841   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17842   sed '=' <$as_myself |
17843     sed '
17844       N
17845       s,$,-,
17846       : loop
17847       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17848       t loop
17849       s,-$,,
17850       s,^['$as_cr_digits']*\n,,
17851     ' >$as_me.lineno &&
17852   chmod +x $as_me.lineno ||
17853     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17854 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17855    { (exit 1); exit 1; }; }
17856
17857   # Don't try to exec as it changes $[0], causing all sort of problems
17858   # (the dirname of $[0] is not the place where we might find the
17859   # original and so on.  Autoconf is especially sensible to this).
17860   . ./$as_me.lineno
17861   # Exit status is that of the last command.
17862   exit
17863 }
17864
17865
17866 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17867   *c*,-n*) ECHO_N= ECHO_C='
17868 ' ECHO_T='      ' ;;
17869   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17870   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17871 esac
17872
17873 if expr a : '\(a\)' >/dev/null 2>&1; then
17874   as_expr=expr
17875 else
17876   as_expr=false
17877 fi
17878
17879 rm -f conf$$ conf$$.exe conf$$.file
17880 echo >conf$$.file
17881 if ln -s conf$$.file conf$$ 2>/dev/null; then
17882   # We could just check for DJGPP; but this test a) works b) is more generic
17883   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17884   if test -f conf$$.exe; then
17885     # Don't use ln at all; we don't have any links
17886     as_ln_s='cp -p'
17887   else
17888     as_ln_s='ln -s'
17889   fi
17890 elif ln conf$$.file conf$$ 2>/dev/null; then
17891   as_ln_s=ln
17892 else
17893   as_ln_s='cp -p'
17894 fi
17895 rm -f conf$$ conf$$.exe conf$$.file
17896
17897 as_executable_p="test -f"
17898
17899 # Sed expression to map a string onto a valid CPP name.
17900 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17901
17902 # Sed expression to map a string onto a valid variable name.
17903 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17904
17905
17906 # IFS
17907 # We need space, tab and new line, in precisely that order.
17908 as_nl='
17909 '
17910 IFS="   $as_nl"
17911
17912 # CDPATH.
17913 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17914
17915 exec 6>&1
17916
17917 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17918 # report actual input values of CONFIG_FILES etc. instead of their
17919 # values after options handling.  Logging --version etc. is OK.
17920 exec 5>>config.log
17921 {
17922   echo
17923   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17924 ## Running $as_me. ##
17925 _ASBOX
17926 } >&5
17927 cat >&5 <<_CSEOF
17928
17929 This file was extended by PostgreSQL $as_me 7.5devel, which was
17930 generated by GNU Autoconf 2.53.  Invocation command line was
17931
17932   CONFIG_FILES    = $CONFIG_FILES
17933   CONFIG_HEADERS  = $CONFIG_HEADERS
17934   CONFIG_LINKS    = $CONFIG_LINKS
17935   CONFIG_COMMANDS = $CONFIG_COMMANDS
17936   $ $0 $@
17937
17938 _CSEOF
17939 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17940 echo >&5
17941 _ACEOF
17942
17943 # Files that config.status was made for.
17944 if test -n "$ac_config_files"; then
17945   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17946 fi
17947
17948 if test -n "$ac_config_headers"; then
17949   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17950 fi
17951
17952 if test -n "$ac_config_links"; then
17953   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17954 fi
17955
17956 if test -n "$ac_config_commands"; then
17957   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17958 fi
17959
17960 cat >>$CONFIG_STATUS <<\_ACEOF
17961
17962 ac_cs_usage="\
17963 \`$as_me' instantiates files from templates according to the
17964 current configuration.
17965
17966 Usage: $0 [OPTIONS] [FILE]...
17967
17968   -h, --help       print this help, then exit
17969   -V, --version    print version number, then exit
17970   -d, --debug      don't remove temporary files
17971       --recheck    update $as_me by reconfiguring in the same conditions
17972   --file=FILE[:TEMPLATE]
17973                    instantiate the configuration file FILE
17974   --header=FILE[:TEMPLATE]
17975                    instantiate the configuration header FILE
17976
17977 Configuration files:
17978 $config_files
17979
17980 Configuration headers:
17981 $config_headers
17982
17983 Configuration links:
17984 $config_links
17985
17986 Report bugs to <bug-autoconf@gnu.org>."
17987 _ACEOF
17988
17989 cat >>$CONFIG_STATUS <<_ACEOF
17990 ac_cs_version="\\
17991 PostgreSQL config.status 7.5devel
17992 configured by $0, generated by GNU Autoconf 2.53,
17993   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17994
17995 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17996 Free Software Foundation, Inc.
17997 This config.status script is free software; the Free Software Foundation
17998 gives unlimited permission to copy, distribute and modify it."
17999 srcdir=$srcdir
18000 _ACEOF
18001
18002 cat >>$CONFIG_STATUS <<\_ACEOF
18003 # If no file are specified by the user, then we need to provide default
18004 # value.  By we need to know if files were specified by the user.
18005 ac_need_defaults=:
18006 while test $# != 0
18007 do
18008   case $1 in
18009   --*=*)
18010     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18011     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18012     shift
18013     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18014     shift
18015     ;;
18016   -*);;
18017   *) # This is not an option, so the user has probably given explicit
18018      # arguments.
18019      ac_need_defaults=false;;
18020   esac
18021
18022   case $1 in
18023   # Handling of the options.
18024 _ACEOF
18025 cat >>$CONFIG_STATUS <<_ACEOF
18026   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18027     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18028     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18029 _ACEOF
18030 cat >>$CONFIG_STATUS <<\_ACEOF
18031   --version | --vers* | -V )
18032     echo "$ac_cs_version"; exit 0 ;;
18033   --he | --h)
18034     # Conflict between --help and --header
18035     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18036 Try \`$0 --help' for more information." >&5
18037 echo "$as_me: error: ambiguous option: $1
18038 Try \`$0 --help' for more information." >&2;}
18039    { (exit 1); exit 1; }; };;
18040   --help | --hel | -h )
18041     echo "$ac_cs_usage"; exit 0 ;;
18042   --debug | --d* | -d )
18043     debug=: ;;
18044   --file | --fil | --fi | --f )
18045     shift
18046     CONFIG_FILES="$CONFIG_FILES $1"
18047     ac_need_defaults=false;;
18048   --header | --heade | --head | --hea )
18049     shift
18050     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18051     ac_need_defaults=false;;
18052
18053   # This is an error.
18054   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18055 Try \`$0 --help' for more information." >&5
18056 echo "$as_me: error: unrecognized option: $1
18057 Try \`$0 --help' for more information." >&2;}
18058    { (exit 1); exit 1; }; } ;;
18059
18060   *) ac_config_targets="$ac_config_targets $1" ;;
18061
18062   esac
18063   shift
18064 done
18065
18066 _ACEOF
18067
18068
18069
18070
18071
18072 cat >>$CONFIG_STATUS <<\_ACEOF
18073 for ac_config_target in $ac_config_targets
18074 do
18075   case "$ac_config_target" in
18076   # Handling of arguments.
18077   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18078   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18079   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18080   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18081   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18082   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18083   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18084   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18085   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18086   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18087   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18089    { (exit 1); exit 1; }; };;
18090   esac
18091 done
18092
18093 # If the user did not use the arguments to specify the items to instantiate,
18094 # then the envvar interface is used.  Set only those that are not.
18095 # We use the long form for the default assignment because of an extremely
18096 # bizarre bug on SunOS 4.1.3.
18097 if $ac_need_defaults; then
18098   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18099   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18100   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18101 fi
18102
18103 # Create a temporary directory, and hook for its removal unless debugging.
18104 $debug ||
18105 {
18106   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18107   trap '{ (exit 1); exit 1; }' 1 2 13 15
18108 }
18109
18110 # Create a (secure) tmp directory for tmp files.
18111 : ${TMPDIR=/tmp}
18112 {
18113   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18114   test -n "$tmp" && test -d "$tmp"
18115 }  ||
18116 {
18117   tmp=$TMPDIR/cs$$-$RANDOM
18118   (umask 077 && mkdir $tmp)
18119 } ||
18120 {
18121    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18122    { (exit 1); exit 1; }
18123 }
18124
18125 _ACEOF
18126
18127 cat >>$CONFIG_STATUS <<_ACEOF
18128
18129 #
18130 # CONFIG_FILES section.
18131 #
18132
18133 # No need to generate the scripts if there are no CONFIG_FILES.
18134 # This happens for instance when ./config.status config.h
18135 if test -n "\$CONFIG_FILES"; then
18136   # Protect against being on the right side of a sed subst in config.status.
18137   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18138    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18139 s,@SHELL@,$SHELL,;t t
18140 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18141 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18142 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18143 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18144 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18145 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18146 s,@exec_prefix@,$exec_prefix,;t t
18147 s,@prefix@,$prefix,;t t
18148 s,@program_transform_name@,$program_transform_name,;t t
18149 s,@bindir@,$bindir,;t t
18150 s,@sbindir@,$sbindir,;t t
18151 s,@libexecdir@,$libexecdir,;t t
18152 s,@datadir@,$datadir,;t t
18153 s,@sysconfdir@,$sysconfdir,;t t
18154 s,@sharedstatedir@,$sharedstatedir,;t t
18155 s,@localstatedir@,$localstatedir,;t t
18156 s,@libdir@,$libdir,;t t
18157 s,@includedir@,$includedir,;t t
18158 s,@oldincludedir@,$oldincludedir,;t t
18159 s,@infodir@,$infodir,;t t
18160 s,@mandir@,$mandir,;t t
18161 s,@build_alias@,$build_alias,;t t
18162 s,@host_alias@,$host_alias,;t t
18163 s,@target_alias@,$target_alias,;t t
18164 s,@DEFS@,$DEFS,;t t
18165 s,@ECHO_C@,$ECHO_C,;t t
18166 s,@ECHO_N@,$ECHO_N,;t t
18167 s,@ECHO_T@,$ECHO_T,;t t
18168 s,@LIBS@,$LIBS,;t t
18169 s,@configure_args@,$configure_args,;t t
18170 s,@build@,$build,;t t
18171 s,@build_cpu@,$build_cpu,;t t
18172 s,@build_vendor@,$build_vendor,;t t
18173 s,@build_os@,$build_os,;t t
18174 s,@host@,$host,;t t
18175 s,@host_cpu@,$host_cpu,;t t
18176 s,@host_vendor@,$host_vendor,;t t
18177 s,@host_os@,$host_os,;t t
18178 s,@PORTNAME@,$PORTNAME,;t t
18179 s,@docdir@,$docdir,;t t
18180 s,@enable_nls@,$enable_nls,;t t
18181 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18182 s,@default_port@,$default_port,;t t
18183 s,@enable_shared@,$enable_shared,;t t
18184 s,@enable_rpath@,$enable_rpath,;t t
18185 s,@enable_debug@,$enable_debug,;t t
18186 s,@CC@,$CC,;t t
18187 s,@CFLAGS@,$CFLAGS,;t t
18188 s,@LDFLAGS@,$LDFLAGS,;t t
18189 s,@CPPFLAGS@,$CPPFLAGS,;t t
18190 s,@ac_ct_CC@,$ac_ct_CC,;t t
18191 s,@EXEEXT@,$EXEEXT,;t t
18192 s,@OBJEXT@,$OBJEXT,;t t
18193 s,@CPP@,$CPP,;t t
18194 s,@GCC@,$GCC,;t t
18195 s,@TAS@,$TAS,;t t
18196 s,@autodepend@,$autodepend,;t t
18197 s,@INCLUDES@,$INCLUDES,;t t
18198 s,@enable_thread_safety@,$enable_thread_safety,;t t
18199 s,@with_tcl@,$with_tcl,;t t
18200 s,@with_tk@,$with_tk,;t t
18201 s,@with_perl@,$with_perl,;t t
18202 s,@with_python@,$with_python,;t t
18203 s,@with_krb4@,$with_krb4,;t t
18204 s,@with_krb5@,$with_krb5,;t t
18205 s,@krb_srvtab@,$krb_srvtab,;t t
18206 s,@with_pam@,$with_pam,;t t
18207 s,@with_rendezvous@,$with_rendezvous,;t t
18208 s,@with_openssl@,$with_openssl,;t t
18209 s,@ELF_SYS@,$ELF_SYS,;t t
18210 s,@AWK@,$AWK,;t t
18211 s,@FLEX@,$FLEX,;t t
18212 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18213 s,@LN_S@,$LN_S,;t t
18214 s,@LD@,$LD,;t t
18215 s,@with_gnu_ld@,$with_gnu_ld,;t t
18216 s,@ld_R_works@,$ld_R_works,;t t
18217 s,@RANLIB@,$RANLIB,;t t
18218 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18219 s,@LORDER@,$LORDER,;t t
18220 s,@TAR@,$TAR,;t t
18221 s,@STRIP@,$STRIP,;t t
18222 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18223 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18224 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18225 s,@YACC@,$YACC,;t t
18226 s,@YFLAGS@,$YFLAGS,;t t
18227 s,@PERL@,$PERL,;t t
18228 s,@perl_archlibexp@,$perl_archlibexp,;t t
18229 s,@perl_privlibexp@,$perl_privlibexp,;t t
18230 s,@perl_useshrplib@,$perl_useshrplib,;t t
18231 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18232 s,@PYTHON@,$PYTHON,;t t
18233 s,@python_prefix@,$python_prefix,;t t
18234 s,@python_execprefix@,$python_execprefix,;t t
18235 s,@python_configdir@,$python_configdir,;t t
18236 s,@python_includespec@,$python_includespec,;t t
18237 s,@python_libspec@,$python_libspec,;t t
18238 s,@LIBOBJS@,$LIBOBJS,;t t
18239 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18240 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18241 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18242 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18243 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18244 s,@MSGFMT@,$MSGFMT,;t t
18245 s,@MSGMERGE@,$MSGMERGE,;t t
18246 s,@XGETTEXT@,$XGETTEXT,;t t
18247 s,@localedir@,$localedir,;t t
18248 s,@TCLSH@,$TCLSH,;t t
18249 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18250 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18251 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18252 s,@TCL_LIBS@,$TCL_LIBS,;t t
18253 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18254 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18255 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18256 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18257 s,@TK_LIBS@,$TK_LIBS,;t t
18258 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18259 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18260 s,@NSGMLS@,$NSGMLS,;t t
18261 s,@JADE@,$JADE,;t t
18262 s,@have_docbook@,$have_docbook,;t t
18263 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18264 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18265 s,@SGMLSPL@,$SGMLSPL,;t t
18266 s,@vpath_build@,$vpath_build,;t t
18267 CEOF
18268
18269 _ACEOF
18270
18271   cat >>$CONFIG_STATUS <<\_ACEOF
18272   # Split the substitutions into bite-sized pieces for seds with
18273   # small command number limits, like on Digital OSF/1 and HP-UX.
18274   ac_max_sed_lines=48
18275   ac_sed_frag=1 # Number of current file.
18276   ac_beg=1 # First line for current file.
18277   ac_end=$ac_max_sed_lines # Line after last line for current file.
18278   ac_more_lines=:
18279   ac_sed_cmds=
18280   while $ac_more_lines; do
18281     if test $ac_beg -gt 1; then
18282       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18283     else
18284       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18285     fi
18286     if test ! -s $tmp/subs.frag; then
18287       ac_more_lines=false
18288     else
18289       # The purpose of the label and of the branching condition is to
18290       # speed up the sed processing (if there are no `@' at all, there
18291       # is no need to browse any of the substitutions).
18292       # These are the two extra sed commands mentioned above.
18293       (echo ':t
18294   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18295       if test -z "$ac_sed_cmds"; then
18296         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18297       else
18298         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18299       fi
18300       ac_sed_frag=`expr $ac_sed_frag + 1`
18301       ac_beg=$ac_end
18302       ac_end=`expr $ac_end + $ac_max_sed_lines`
18303     fi
18304   done
18305   if test -z "$ac_sed_cmds"; then
18306     ac_sed_cmds=cat
18307   fi
18308 fi # test -n "$CONFIG_FILES"
18309
18310 _ACEOF
18311 cat >>$CONFIG_STATUS <<\_ACEOF
18312 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18313   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18314   case $ac_file in
18315   - | *:- | *:-:* ) # input from stdin
18316         cat >$tmp/stdin
18317         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18318         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18319   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18320         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18321   * )   ac_file_in=$ac_file.in ;;
18322   esac
18323
18324   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18325   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327          X"$ac_file" : 'X\(//\)[^/]' \| \
18328          X"$ac_file" : 'X\(//\)$' \| \
18329          X"$ac_file" : 'X\(/\)' \| \
18330          .     : '\(.\)' 2>/dev/null ||
18331 echo X"$ac_file" |
18332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18334           /^X\(\/\/\)$/{ s//\1/; q; }
18335           /^X\(\/\).*/{ s//\1/; q; }
18336           s/.*/./; q'`
18337   { case "$ac_dir" in
18338   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18339   *)                      as_incr_dir=.;;
18340 esac
18341 as_dummy="$ac_dir"
18342 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18343   case $as_mkdir_dir in
18344     # Skip DOS drivespec
18345     ?:) as_incr_dir=$as_mkdir_dir ;;
18346     *)
18347       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18348       test -d "$as_incr_dir" ||
18349         mkdir "$as_incr_dir" ||
18350         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18351 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18352    { (exit 1); exit 1; }; }
18353     ;;
18354   esac
18355 done; }
18356
18357   ac_builddir=.
18358
18359 if test "$ac_dir" != .; then
18360   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18361   # A "../" for each directory in $ac_dir_suffix.
18362   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18363 else
18364   ac_dir_suffix= ac_top_builddir=
18365 fi
18366
18367 case $srcdir in
18368   .)  # No --srcdir option.  We are building in place.
18369     ac_srcdir=.
18370     if test -z "$ac_top_builddir"; then
18371        ac_top_srcdir=.
18372     else
18373        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18374     fi ;;
18375   [\\/]* | ?:[\\/]* )  # Absolute path.
18376     ac_srcdir=$srcdir$ac_dir_suffix;
18377     ac_top_srcdir=$srcdir ;;
18378   *) # Relative path.
18379     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18380     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18381 esac
18382 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18383 # absolute.
18384 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18385 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18386 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18387 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18388
18389
18390
18391   if test x"$ac_file" != x-; then
18392     { echo "$as_me:$LINENO: creating $ac_file" >&5
18393 echo "$as_me: creating $ac_file" >&6;}
18394     rm -f "$ac_file"
18395   fi
18396   # Let's still pretend it is `configure' which instantiates (i.e., don't
18397   # use $as_me), people would be surprised to read:
18398   #    /* config.h.  Generated by config.status.  */
18399   if test x"$ac_file" = x-; then
18400     configure_input=
18401   else
18402     configure_input="$ac_file.  "
18403   fi
18404   configure_input=$configure_input"Generated from `echo $ac_file_in |
18405                                      sed 's,.*/,,'` by configure."
18406
18407   # First look for the input files in the build tree, otherwise in the
18408   # src tree.
18409   ac_file_inputs=`IFS=:
18410     for f in $ac_file_in; do
18411       case $f in
18412       -) echo $tmp/stdin ;;
18413       [\\/$]*)
18414          # Absolute (can't be DOS-style, as IFS=:)
18415          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18416 echo "$as_me: error: cannot find input file: $f" >&2;}
18417    { (exit 1); exit 1; }; }
18418          echo $f;;
18419       *) # Relative
18420          if test -f "$f"; then
18421            # Build tree
18422            echo $f
18423          elif test -f "$srcdir/$f"; then
18424            # Source tree
18425            echo $srcdir/$f
18426          else
18427            # /dev/null tree
18428            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18429 echo "$as_me: error: cannot find input file: $f" >&2;}
18430    { (exit 1); exit 1; }; }
18431          fi;;
18432       esac
18433     done` || { (exit 1); exit 1; }
18434 _ACEOF
18435 cat >>$CONFIG_STATUS <<_ACEOF
18436   sed "$ac_vpsub
18437 $extrasub
18438 _ACEOF
18439 cat >>$CONFIG_STATUS <<\_ACEOF
18440 :t
18441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18442 s,@configure_input@,$configure_input,;t t
18443 s,@srcdir@,$ac_srcdir,;t t
18444 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18445 s,@top_srcdir@,$ac_top_srcdir,;t t
18446 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18447 s,@builddir@,$ac_builddir,;t t
18448 s,@abs_builddir@,$ac_abs_builddir,;t t
18449 s,@top_builddir@,$ac_top_builddir,;t t
18450 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18451 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18452   rm -f $tmp/stdin
18453   if test x"$ac_file" != x-; then
18454     mv $tmp/out $ac_file
18455   else
18456     cat $tmp/out
18457     rm -f $tmp/out
18458   fi
18459
18460 done
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18463
18464 #
18465 # CONFIG_HEADER section.
18466 #
18467
18468 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18469 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18470 #
18471 # ac_d sets the value in "#define NAME VALUE" lines.
18472 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18473 ac_dB='[        ].*$,\1#\2'
18474 ac_dC=' '
18475 ac_dD=',;t'
18476 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18477 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18478 ac_uB='$,\1#\2define\3'
18479 ac_uC=' '
18480 ac_uD=',;t'
18481
18482 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18483   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18484   case $ac_file in
18485   - | *:- | *:-:* ) # input from stdin
18486         cat >$tmp/stdin
18487         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18488         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18489   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18490         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18491   * )   ac_file_in=$ac_file.in ;;
18492   esac
18493
18494   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18495 echo "$as_me: creating $ac_file" >&6;}
18496
18497   # First look for the input files in the build tree, otherwise in the
18498   # src tree.
18499   ac_file_inputs=`IFS=:
18500     for f in $ac_file_in; do
18501       case $f in
18502       -) echo $tmp/stdin ;;
18503       [\\/$]*)
18504          # Absolute (can't be DOS-style, as IFS=:)
18505          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18506 echo "$as_me: error: cannot find input file: $f" >&2;}
18507    { (exit 1); exit 1; }; }
18508          echo $f;;
18509       *) # Relative
18510          if test -f "$f"; then
18511            # Build tree
18512            echo $f
18513          elif test -f "$srcdir/$f"; then
18514            # Source tree
18515            echo $srcdir/$f
18516          else
18517            # /dev/null tree
18518            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18519 echo "$as_me: error: cannot find input file: $f" >&2;}
18520    { (exit 1); exit 1; }; }
18521          fi;;
18522       esac
18523     done` || { (exit 1); exit 1; }
18524   # Remove the trailing spaces.
18525   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18526
18527 _ACEOF
18528
18529 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18530 # `conftest.undefs', that substitutes the proper values into
18531 # config.h.in to produce config.h.  The first handles `#define'
18532 # templates, and the second `#undef' templates.
18533 # And first: Protect against being on the right side of a sed subst in
18534 # config.status.  Protect against being in an unquoted here document
18535 # in config.status.
18536 rm -f conftest.defines conftest.undefs
18537 # Using a here document instead of a string reduces the quoting nightmare.
18538 # Putting comments in sed scripts is not portable.
18539 #
18540 # `end' is used to avoid that the second main sed command (meant for
18541 # 0-ary CPP macros) applies to n-ary macro definitions.
18542 # See the Autoconf documentation for `clear'.
18543 cat >confdef2sed.sed <<\_ACEOF
18544 s/[\\&,]/\\&/g
18545 s,[\\$`],\\&,g
18546 t clear
18547 : clear
18548 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18549 t end
18550 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18551 : end
18552 _ACEOF
18553 # If some macros were called several times there might be several times
18554 # the same #defines, which is useless.  Nevertheless, we may not want to
18555 # sort them, since we want the *last* AC-DEFINE to be honored.
18556 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18557 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18558 rm -f confdef2sed.sed
18559
18560 # This sed command replaces #undef with comments.  This is necessary, for
18561 # example, in the case of _POSIX_SOURCE, which is predefined and required
18562 # on some systems where configure will not decide to define it.
18563 cat >>conftest.undefs <<\_ACEOF
18564 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18565 _ACEOF
18566
18567 # Break up conftest.defines because some shells have a limit on the size
18568 # of here documents, and old seds have small limits too (100 cmds).
18569 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18570 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18571 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18572 echo '  :' >>$CONFIG_STATUS
18573 rm -f conftest.tail
18574 while grep . conftest.defines >/dev/null
18575 do
18576   # Write a limited-size here document to $tmp/defines.sed.
18577   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18578   # Speed up: don't consider the non `#define' lines.
18579   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18580   # Work around the forget-to-reset-the-flag bug.
18581   echo 't clr' >>$CONFIG_STATUS
18582   echo ': clr' >>$CONFIG_STATUS
18583   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18584   echo 'CEOF
18585   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18586   rm -f $tmp/in
18587   mv $tmp/out $tmp/in
18588 ' >>$CONFIG_STATUS
18589   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18590   rm -f conftest.defines
18591   mv conftest.tail conftest.defines
18592 done
18593 rm -f conftest.defines
18594 echo '  fi # egrep' >>$CONFIG_STATUS
18595 echo >>$CONFIG_STATUS
18596
18597 # Break up conftest.undefs because some shells have a limit on the size
18598 # of here documents, and old seds have small limits too (100 cmds).
18599 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18600 rm -f conftest.tail
18601 while grep . conftest.undefs >/dev/null
18602 do
18603   # Write a limited-size here document to $tmp/undefs.sed.
18604   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18605   # Speed up: don't consider the non `#undef'
18606   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18607   # Work around the forget-to-reset-the-flag bug.
18608   echo 't clr' >>$CONFIG_STATUS
18609   echo ': clr' >>$CONFIG_STATUS
18610   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18611   echo 'CEOF
18612   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18613   rm -f $tmp/in
18614   mv $tmp/out $tmp/in
18615 ' >>$CONFIG_STATUS
18616   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18617   rm -f conftest.undefs
18618   mv conftest.tail conftest.undefs
18619 done
18620 rm -f conftest.undefs
18621
18622 cat >>$CONFIG_STATUS <<\_ACEOF
18623   # Let's still pretend it is `configure' which instantiates (i.e., don't
18624   # use $as_me), people would be surprised to read:
18625   #    /* config.h.  Generated by config.status.  */
18626   if test x"$ac_file" = x-; then
18627     echo "/* Generated by configure.  */" >$tmp/config.h
18628   else
18629     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18630   fi
18631   cat $tmp/in >>$tmp/config.h
18632   rm -f $tmp/in
18633   if test x"$ac_file" != x-; then
18634     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18635       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18636 echo "$as_me: $ac_file is unchanged" >&6;}
18637     else
18638       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640          X"$ac_file" : 'X\(//\)[^/]' \| \
18641          X"$ac_file" : 'X\(//\)$' \| \
18642          X"$ac_file" : 'X\(/\)' \| \
18643          .     : '\(.\)' 2>/dev/null ||
18644 echo X"$ac_file" |
18645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18647           /^X\(\/\/\)$/{ s//\1/; q; }
18648           /^X\(\/\).*/{ s//\1/; q; }
18649           s/.*/./; q'`
18650       { case "$ac_dir" in
18651   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18652   *)                      as_incr_dir=.;;
18653 esac
18654 as_dummy="$ac_dir"
18655 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18656   case $as_mkdir_dir in
18657     # Skip DOS drivespec
18658     ?:) as_incr_dir=$as_mkdir_dir ;;
18659     *)
18660       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18661       test -d "$as_incr_dir" ||
18662         mkdir "$as_incr_dir" ||
18663         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18664 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18665    { (exit 1); exit 1; }; }
18666     ;;
18667   esac
18668 done; }
18669
18670       rm -f $ac_file
18671       mv $tmp/config.h $ac_file
18672     fi
18673   else
18674     cat $tmp/config.h
18675     rm -f $tmp/config.h
18676   fi
18677   # Run the commands associated with the file.
18678   case $ac_file in
18679     src/include/pg_config.h )
18680 # Update timestamp for pg_config.h (see Makefile.global)
18681 echo >src/include/stamp-h
18682  ;;
18683   esac
18684 done
18685 _ACEOF
18686 cat >>$CONFIG_STATUS <<\_ACEOF
18687
18688 #
18689 # CONFIG_LINKS section.
18690 #
18691
18692 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18693   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18694   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18695
18696   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18697 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18698
18699   if test ! -r $srcdir/$ac_source; then
18700     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18701 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18702    { (exit 1); exit 1; }; }
18703   fi
18704   rm -f $ac_dest
18705
18706   # Make relative symlinks.
18707   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18708 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709          X"$ac_dest" : 'X\(//\)[^/]' \| \
18710          X"$ac_dest" : 'X\(//\)$' \| \
18711          X"$ac_dest" : 'X\(/\)' \| \
18712          .     : '\(.\)' 2>/dev/null ||
18713 echo X"$ac_dest" |
18714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18716           /^X\(\/\/\)$/{ s//\1/; q; }
18717           /^X\(\/\).*/{ s//\1/; q; }
18718           s/.*/./; q'`
18719   { case "$ac_dest_dir" in
18720   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18721   *)                      as_incr_dir=.;;
18722 esac
18723 as_dummy="$ac_dest_dir"
18724 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18725   case $as_mkdir_dir in
18726     # Skip DOS drivespec
18727     ?:) as_incr_dir=$as_mkdir_dir ;;
18728     *)
18729       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18730       test -d "$as_incr_dir" ||
18731         mkdir "$as_incr_dir" ||
18732         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18733 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18734    { (exit 1); exit 1; }; }
18735     ;;
18736   esac
18737 done; }
18738
18739   ac_builddir=.
18740
18741 if test "$ac_dest_dir" != .; then
18742   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18743   # A "../" for each directory in $ac_dir_suffix.
18744   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18745 else
18746   ac_dir_suffix= ac_top_builddir=
18747 fi
18748
18749 case $srcdir in
18750   .)  # No --srcdir option.  We are building in place.
18751     ac_srcdir=.
18752     if test -z "$ac_top_builddir"; then
18753        ac_top_srcdir=.
18754     else
18755        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18756     fi ;;
18757   [\\/]* | ?:[\\/]* )  # Absolute path.
18758     ac_srcdir=$srcdir$ac_dir_suffix;
18759     ac_top_srcdir=$srcdir ;;
18760   *) # Relative path.
18761     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18762     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18763 esac
18764 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18765 # absolute.
18766 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18767 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18768 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18769 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18770
18771
18772   case $srcdir in
18773   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18774       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18775   esac
18776
18777   # Make a symlink if possible; otherwise try a hard link.
18778   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18779     ln $srcdir/$ac_source $ac_dest ||
18780     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18781 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18782    { (exit 1); exit 1; }; }
18783 done
18784 _ACEOF
18785
18786 cat >>$CONFIG_STATUS <<\_ACEOF
18787
18788 { (exit 0); exit 0; }
18789 _ACEOF
18790 chmod +x $CONFIG_STATUS
18791 ac_clean_files=$ac_clean_files_save
18792
18793
18794 # configure is writing to config.log, and then calls config.status.
18795 # config.status does its own redirection, appending to config.log.
18796 # Unfortunately, on DOS this fails, as config.log is still kept open
18797 # by configure, so config.status won't be able to write to it; its
18798 # output is simply discarded.  So we exec the FD to /dev/null,
18799 # effectively closing config.log, so it can be properly (re)opened and
18800 # appended to by config.status.  When coming back to configure, we
18801 # need to make the FD available again.
18802 if test "$no_create" != yes; then
18803   ac_cs_success=:
18804   exec 5>/dev/null
18805   $SHELL $CONFIG_STATUS || ac_cs_success=false
18806   exec 5>>config.log
18807   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18808   # would make configure fail if this is the last instruction.
18809   $ac_cs_success || { (exit 1); exit 1; }
18810 fi
18811