]> granicus.if.org Git - postgresql/blob - configure
Remove support for Kerberos V4. It seems no one is using this, it has
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.1devel.
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 (c) 1996-2005, 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='8.1devel'
262 PACKAGE_STRING='PostgreSQL 8.1devel'
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_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
768
769 #
770 # Report the --help message.
771 #
772 if test "$ac_init_help" = "long"; then
773   # Omit some internal or obsolete options to make the list less imposing.
774   # This message is too long to be a string in the A/UX 3.1 sh.
775   cat <<_ACEOF
776 \`configure' configures PostgreSQL 8.1devel to adapt to many kinds of systems.
777
778 Usage: $0 [OPTION]... [VAR=VALUE]...
779
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE.  See below for descriptions of some of the useful variables.
782
783 Defaults for the options are specified in brackets.
784
785 Configuration:
786   -h, --help              display this help and exit
787       --help=short        display options specific to this package
788       --help=recursive    display the short help of all the included packages
789   -V, --version           display version information and exit
790   -q, --quiet, --silent   do not print \`checking...' messages
791       --cache-file=FILE   cache test results in FILE [disabled]
792   -C, --config-cache      alias for \`--cache-file=config.cache'
793   -n, --no-create         do not create output files
794       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
795
796 _ACEOF
797
798   cat <<_ACEOF
799 Installation directories:
800   --prefix=PREFIX         install architecture-independent files in PREFIX
801                           [$ac_default_prefix]
802   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
803                           [PREFIX]
804
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
809
810 For better control, use the options below.
811
812 Fine tuning of the installation directories:
813   --bindir=DIR           user executables [EPREFIX/bin]
814   --sbindir=DIR          system admin executables [EPREFIX/sbin]
815   --libexecdir=DIR       program executables [EPREFIX/libexec]
816   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
817   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
818   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
819   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
820   --libdir=DIR           object code libraries [EPREFIX/lib]
821   --includedir=DIR       C header files [PREFIX/include]
822   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
823   --infodir=DIR          info documentation [PREFIX/info]
824   --mandir=DIR           man documentation [PREFIX/man]
825 _ACEOF
826
827   cat <<\_ACEOF
828
829 System types:
830   --build=BUILD     configure for building on BUILD [guessed]
831   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836   case $ac_init_help in
837      short | recursive ) echo "Configuration of PostgreSQL 8.1devel:";;
838    esac
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-integer-datetimes  enable 64-bit integer date/time support
845   --enable-nls[=LANGUAGES]  enable Native Language Support
846   --disable-shared        do not build shared libraries
847   --disable-rpath         do not embed shared library search path in executables
848   --disable-spinlocks     do not use spinlocks
849   --enable-debug          build with debugging symbols (-g)
850   --enable-depend         turn on automatic dependency tracking
851   --enable-cassert        enable assertion checks (for debugging)
852   --enable-thread-safety  make client libraries thread-safe
853   --enable-thread-safety-force  force thread-safety in spite of thread test failure
854   --disable-largefile     omit support for large files
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859
860   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
861   --without-docdir        do not install the documentation
862   --with-includes=DIRS    look for additional header files in DIRS
863   --with-libraries=DIRS   look for additional libraries in DIRS
864   --with-libs=DIRS        alternative spelling of --with-libraries
865   --with-pgport=PORTNUM   change default port number 5432
866   --with-tcl              build Tcl modules (PL/Tcl)
867   --with-tclconfig=DIR    tclConfig.sh is in DIR
868   --with-perl             build Perl modules (PL/Perl)
869   --with-python           build Python modules (PL/Python)
870   --with-krb5             build with Kerberos 5 support
871   --with-krb-srvnam=NAME  name of the default service principal in Kerberos [postgres]
872   --with-pam              build with PAM support
873   --with-bonjour          build with Bonjour support
874   --with-openssl          build with OpenSSL support
875   --without-readline      do not use Readline
876   --without-zlib          do not use Zlib
877   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
878
879 Some influential environment variables:
880   CC          C compiler command
881   CFLAGS      C compiler flags
882   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883               nonstandard directory <lib dir>
884   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885               headers in a nonstandard directory <include dir>
886   CPP         C preprocessor
887   LDFLAGS_SL
888   DOCBOOKSTYLE
889               location of DocBook stylesheets
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 Report bugs to <pgsql-bugs@postgresql.org>.
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899   # If there are subdirs, report their specific --help.
900   ac_popdir=`pwd`
901   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902     test -d $ac_dir || continue
903     ac_builddir=.
904
905 if test "$ac_dir" != .; then
906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907   # A "../" for each directory in $ac_dir_suffix.
908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910   ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914   .)  # No --srcdir option.  We are building in place.
915     ac_srcdir=.
916     if test -z "$ac_top_builddir"; then
917        ac_top_srcdir=.
918     else
919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920     fi ;;
921   [\\/]* | ?:[\\/]* )  # Absolute path.
922     ac_srcdir=$srcdir$ac_dir_suffix;
923     ac_top_srcdir=$srcdir ;;
924   *) # Relative path.
925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 # absolute.
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934
935     cd $ac_dir
936     # Check for guested configure; otherwise get Cygnus style configure.
937     if test -f $ac_srcdir/configure.gnu; then
938       echo
939       $SHELL $ac_srcdir/configure.gnu  --help=recursive
940     elif test -f $ac_srcdir/configure; then
941       echo
942       $SHELL $ac_srcdir/configure  --help=recursive
943     elif test -f $ac_srcdir/configure.ac ||
944            test -f $ac_srcdir/configure.in; then
945       echo
946       $ac_configure --help
947     else
948       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949     fi
950     cd $ac_popdir
951   done
952 fi
953
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956   cat <<\_ACEOF
957 PostgreSQL configure 8.1devel
958 generated by GNU Autoconf 2.53
959
960 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
961 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964
965 Copyright (c) 1996-2005, PostgreSQL Global Development Group
966 _ACEOF
967   exit 0
968 fi
969 exec 5>config.log
970 cat >&5 <<_ACEOF
971 This file contains any messages produced by compilers while
972 running configure, to aid debugging if configure makes a mistake.
973
974 It was created by PostgreSQL $as_me 8.1devel, which was
975 generated by GNU Autoconf 2.53.  Invocation command line was
976
977   $ $0 $@
978
979 _ACEOF
980 {
981 cat <<_ASUNAME
982 ## --------- ##
983 ## Platform. ##
984 ## --------- ##
985
986 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987 uname -m = `(uname -m) 2>/dev/null || echo unknown`
988 uname -r = `(uname -r) 2>/dev/null || echo unknown`
989 uname -s = `(uname -s) 2>/dev/null || echo unknown`
990 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
994
995 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
996 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
997 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
999 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1000 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1001 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1002
1003 _ASUNAME
1004
1005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006 for as_dir in $PATH
1007 do
1008   IFS=$as_save_IFS
1009   test -z "$as_dir" && as_dir=.
1010   echo "PATH: $as_dir"
1011 done
1012
1013 } >&5
1014
1015 cat >&5 <<_ACEOF
1016
1017
1018 ## ----------- ##
1019 ## Core tests. ##
1020 ## ----------- ##
1021
1022 _ACEOF
1023
1024
1025 # Keep a trace of the command line.
1026 # Strip out --no-create and --no-recursion so they do not pile up.
1027 # Also quote any args containing shell meta-characters.
1028 ac_configure_args=
1029 ac_sep=
1030 for ac_arg
1031 do
1032   case $ac_arg in
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n ) continue ;;
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     continue ;;
1038   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040   esac
1041   case " $ac_configure_args " in
1042     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1043     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044        ac_sep=" " ;;
1045   esac
1046   # Get rid of the leading space.
1047 done
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log.  We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055   # Save into config.log some information that might help in debugging.
1056   {
1057     echo
1058     cat <<\_ASBOX
1059 ## ---------------- ##
1060 ## Cache variables. ##
1061 ## ---------------- ##
1062 _ASBOX
1063     echo
1064     # The following way of writing the cache mishandles newlines in values,
1065 {
1066   (set) 2>&1 |
1067     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068     *ac_space=\ *)
1069       sed -n \
1070         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072       ;;
1073     *)
1074       sed -n \
1075         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076       ;;
1077     esac;
1078 }
1079     echo
1080     if test -s confdefs.h; then
1081       cat <<\_ASBOX
1082 ## ----------- ##
1083 ## confdefs.h. ##
1084 ## ----------- ##
1085 _ASBOX
1086       echo
1087       sed "/^$/d" confdefs.h
1088       echo
1089     fi
1090     test "$ac_signal" != 0 &&
1091       echo "$as_me: caught signal $ac_signal"
1092     echo "$as_me: exit $exit_status"
1093   } >&5
1094   rm -f core core.* *.core &&
1095   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096     exit $exit_status
1097      ' 0
1098 for ac_signal in 1 2 13 15; do
1099   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100 done
1101 ac_signal=0
1102
1103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1104 rm -rf conftest* confdefs.h
1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106 echo >confdefs.h
1107
1108 # Predefined preprocessor variables.
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_NAME "$PACKAGE_NAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_STRING "$PACKAGE_STRING"
1127 _ACEOF
1128
1129
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132 _ACEOF
1133
1134
1135 # Let the site file select an alternate cache file if it wants to.
1136 # Prefer explicitly selected file to automatically selected ones.
1137 if test -z "$CONFIG_SITE"; then
1138   if test "x$prefix" != xNONE; then
1139     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1140   else
1141     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142   fi
1143 fi
1144 for ac_site_file in $CONFIG_SITE; do
1145   if test -r "$ac_site_file"; then
1146     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147 echo "$as_me: loading site script $ac_site_file" >&6;}
1148     sed 's/^/| /' "$ac_site_file" >&5
1149     . "$ac_site_file"
1150   fi
1151 done
1152
1153 if test -r "$cache_file"; then
1154   # Some versions of bash will fail to source /dev/null (special
1155   # files actually), so we avoid doing that.
1156   if test -f "$cache_file"; then
1157     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158 echo "$as_me: loading cache $cache_file" >&6;}
1159     case $cache_file in
1160       [\\/]* | ?:[\\/]* ) . $cache_file;;
1161       *)                      . ./$cache_file;;
1162     esac
1163   fi
1164 else
1165   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166 echo "$as_me: creating cache $cache_file" >&6;}
1167   >$cache_file
1168 fi
1169
1170 # Check that the precious variables saved in the cache have kept the same
1171 # value.
1172 ac_cache_corrupted=false
1173 for ac_var in `(set) 2>&1 |
1174                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176   eval ac_new_set=\$ac_env_${ac_var}_set
1177   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178   eval ac_new_val="\$ac_env_${ac_var}_value"
1179   case $ac_old_set,$ac_new_set in
1180     set,)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,set)
1185       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187       ac_cache_corrupted=: ;;
1188     ,);;
1189     *)
1190       if test "x$ac_old_val" != "x$ac_new_val"; then
1191         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1194 echo "$as_me:   former value:  $ac_old_val" >&2;}
1195         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1196 echo "$as_me:   current value: $ac_new_val" >&2;}
1197         ac_cache_corrupted=:
1198       fi;;
1199   esac
1200   # Pass precious variables to config.status.
1201   if test "$ac_new_set" = set; then
1202     case $ac_new_val in
1203     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205     *) ac_arg=$ac_var=$ac_new_val ;;
1206     esac
1207     case " $ac_configure_args " in
1208       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1209       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1210     esac
1211   fi
1212 done
1213 if $ac_cache_corrupted; then
1214   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218    { (exit 1); exit 1; }; }
1219 fi
1220
1221 ac_ext=c
1222 ac_cpp='$CPP $CPPFLAGS'
1223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256 ac_aux_dir=
1257 for ac_dir in config $srcdir/config; do
1258   if test -f $ac_dir/install-sh; then
1259     ac_aux_dir=$ac_dir
1260     ac_install_sh="$ac_aux_dir/install-sh -c"
1261     break
1262   elif test -f $ac_dir/install.sh; then
1263     ac_aux_dir=$ac_dir
1264     ac_install_sh="$ac_aux_dir/install.sh -c"
1265     break
1266   elif test -f $ac_dir/shtool; then
1267     ac_aux_dir=$ac_dir
1268     ac_install_sh="$ac_aux_dir/shtool install -c"
1269     break
1270   fi
1271 done
1272 if test -z "$ac_aux_dir"; then
1273   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1274 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1275    { (exit 1); exit 1; }; }
1276 fi
1277 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1278 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1279 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280
1281
1282 configure_args=$ac_configure_args
1283
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PG_VERSION "$PACKAGE_VERSION"
1288 _ACEOF
1289
1290
1291 # Make sure we can run config.sub.
1292 $ac_config_sub sun4 >/dev/null 2>&1 ||
1293   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1294 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1295    { (exit 1); exit 1; }; }
1296
1297 echo "$as_me:$LINENO: checking build system type" >&5
1298 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1299 if test "${ac_cv_build+set}" = set; then
1300   echo $ECHO_N "(cached) $ECHO_C" >&6
1301 else
1302   ac_cv_build_alias=$build_alias
1303 test -z "$ac_cv_build_alias" &&
1304   ac_cv_build_alias=`$ac_config_guess`
1305 test -z "$ac_cv_build_alias" &&
1306   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1307 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1308    { (exit 1); exit 1; }; }
1309 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1310   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1311 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1312    { (exit 1); exit 1; }; }
1313
1314 fi
1315 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1316 echo "${ECHO_T}$ac_cv_build" >&6
1317 build=$ac_cv_build
1318 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1319 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1320 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321
1322
1323 echo "$as_me:$LINENO: checking host system type" >&5
1324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1325 if test "${ac_cv_host+set}" = set; then
1326   echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328   ac_cv_host_alias=$host_alias
1329 test -z "$ac_cv_host_alias" &&
1330   ac_cv_host_alias=$ac_cv_build_alias
1331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1332   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1334    { (exit 1); exit 1; }; }
1335
1336 fi
1337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1338 echo "${ECHO_T}$ac_cv_host" >&6
1339 host=$ac_cv_host
1340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1343
1344
1345
1346 template=
1347 echo "$as_me:$LINENO: checking which template to use" >&5
1348 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1349
1350
1351
1352
1353 # Check whether --with-template or --without-template was given.
1354 if test "${with_template+set}" = set; then
1355   withval="$with_template"
1356
1357   case $withval in
1358     yes)
1359       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1360 echo "$as_me: error: argument required for --with-template option" >&2;}
1361    { (exit 1); exit 1; }; }
1362       ;;
1363     no)
1364       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1365 echo "$as_me: error: argument required for --with-template option" >&2;}
1366    { (exit 1); exit 1; }; }
1367       ;;
1368     *)
1369
1370   case $withval in
1371     list)   echo; ls "$srcdir/src/template"; exit;;
1372     *)      if test -f "$srcdir/src/template/$with_template" ; then
1373               template=$withval
1374             else
1375               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1376 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1377    { (exit 1); exit 1; }; }
1378             fi;;
1379   esac
1380
1381       ;;
1382   esac
1383
1384 else
1385
1386 # --with-template not given
1387
1388 case $host_os in
1389      aix*) template=aix ;;
1390     beos*) template=beos ;;
1391     bsdi*) template=bsdi ;;
1392   cygwin*) template=cygwin ;;
1393   darwin*) template=darwin ;;
1394     dgux*) template=dgux ;;
1395  freebsd*) template=freebsd ;;
1396     hpux*) template=hpux ;;
1397     irix*) template=irix ;;
1398  linux*|gnu*|k*bsd*-gnu)
1399            template=linux ;;
1400    mingw*) template=win32 ;;
1401   netbsd*) template=netbsd ;;
1402 nextstep*) template=nextstep ;;
1403  openbsd*) template=openbsd ;;
1404      osf*) template=osf ;;
1405      qnx*) template=qnx4 ;;
1406      sco*) template=sco ;;
1407  solaris*) template=solaris ;;
1408    sunos*) template=sunos4 ;;
1409  sysv4.2*)
1410         case $host_vendor in
1411           univel) template=univel ;;
1412         esac ;;
1413    sysv4*) template=svr4 ;;
1414    sysv5*) template=unixware ;;
1415   ultrix*) template=ultrix4 ;;
1416 esac
1417
1418   if test x"$template" = x"" ; then
1419     { { echo "$as_me:$LINENO: error:
1420 *******************************************************************
1421 PostgreSQL has apparently not been ported to your platform yet.
1422 To try a manual configuration, look into the src/template directory
1423 for a similar platform and use the '--with-template=' option.
1424
1425 Please also contact <pgsql-ports@postgresql.org> to see about
1426 rectifying this.  Include the above 'checking host system type...'
1427 line.
1428 *******************************************************************
1429 " >&5
1430 echo "$as_me: error:
1431 *******************************************************************
1432 PostgreSQL has apparently not been ported to your platform yet.
1433 To try a manual configuration, look into the src/template directory
1434 for a similar platform and use the '--with-template=' option.
1435
1436 Please also contact <pgsql-ports@postgresql.org> to see about
1437 rectifying this.  Include the above 'checking host system type...'
1438 line.
1439 *******************************************************************
1440 " >&2;}
1441    { (exit 1); exit 1; }; }
1442   fi
1443
1444
1445 fi;
1446
1447
1448 echo "$as_me:$LINENO: result: $template" >&5
1449 echo "${ECHO_T}$template" >&6
1450
1451 PORTNAME=$template
1452
1453
1454 # Initialize default assumption that we do not need separate assembly code
1455 # for TAS (test-and-set).  This can be overridden by the template file
1456 # when it's executed.
1457 need_tas=no
1458 tas_file=dummy.s
1459
1460
1461
1462 ##
1463 ## Command line options
1464 ##
1465
1466 #
1467 # Installation directory for documentation
1468 #
1469
1470
1471
1472 # Check whether --with-docdir or --without-docdir was given.
1473 if test "${with_docdir+set}" = set; then
1474   withval="$with_docdir"
1475
1476   case $withval in
1477     yes)
1478       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1479 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1480    { (exit 1); exit 1; }; }
1481       ;;
1482     no)
1483       docdir=
1484       ;;
1485     *)
1486       docdir=$withval
1487       ;;
1488   esac
1489
1490 else
1491   docdir='${prefix}/doc'
1492 fi;
1493
1494
1495
1496
1497 #
1498 # Add non-standard directories to the include path
1499 #
1500
1501
1502
1503 # Check whether --with-includes or --without-includes was given.
1504 if test "${with_includes+set}" = set; then
1505   withval="$with_includes"
1506
1507   case $withval in
1508     yes)
1509       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511    { (exit 1); exit 1; }; }
1512       ;;
1513     no)
1514       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1515 echo "$as_me: error: argument required for --with-includes option" >&2;}
1516    { (exit 1); exit 1; }; }
1517       ;;
1518     *)
1519
1520       ;;
1521   esac
1522
1523 fi;
1524
1525
1526
1527 #
1528 # Add non-standard directories to the library search path
1529 #
1530
1531
1532
1533 # Check whether --with-libraries or --without-libraries was given.
1534 if test "${with_libraries+set}" = set; then
1535   withval="$with_libraries"
1536
1537   case $withval in
1538     yes)
1539       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541    { (exit 1); exit 1; }; }
1542       ;;
1543     no)
1544       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1545 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1546    { (exit 1); exit 1; }; }
1547       ;;
1548     *)
1549       LIBRARY_DIRS=$withval
1550       ;;
1551   esac
1552
1553 fi;
1554
1555
1556
1557
1558
1559 # Check whether --with-libs or --without-libs was given.
1560 if test "${with_libs+set}" = set; then
1561   withval="$with_libs"
1562
1563   case $withval in
1564     yes)
1565       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567    { (exit 1); exit 1; }; }
1568       ;;
1569     no)
1570       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1571 echo "$as_me: error: argument required for --with-libs option" >&2;}
1572    { (exit 1); exit 1; }; }
1573       ;;
1574     *)
1575       LIBRARY_DIRS=$withval
1576       ;;
1577   esac
1578
1579 fi;
1580
1581
1582
1583 #
1584 # 64-bit integer date/time storage (--enable-integer-datetimes)
1585 #
1586 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1587 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1588
1589
1590 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1591 if test "${enable_integer_datetimes+set}" = set; then
1592   enableval="$enable_integer_datetimes"
1593
1594   case $enableval in
1595     yes)
1596
1597 cat >>confdefs.h <<\_ACEOF
1598 #define USE_INTEGER_DATETIMES 1
1599 _ACEOF
1600
1601       ;;
1602     no)
1603       :
1604       ;;
1605     *)
1606       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1607 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1608    { (exit 1); exit 1; }; }
1609       ;;
1610   esac
1611
1612 else
1613   enable_integer_datetimes=no
1614
1615 fi;
1616
1617 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1618 echo "${ECHO_T}$enable_integer_datetimes" >&6
1619
1620
1621 #
1622 # NLS
1623 #
1624 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1625 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1626
1627
1628 # Check whether --enable-nls or --disable-nls was given.
1629 if test "${enable_nls+set}" = set; then
1630   enableval="$enable_nls"
1631
1632   case $enableval in
1633     yes)
1634       :
1635       ;;
1636     no)
1637       :
1638       ;;
1639     *)
1640       enable_nls=yes
1641 WANTED_LANGUAGES=$enableval
1642       ;;
1643   esac
1644
1645 else
1646   enable_nls=no
1647 fi;
1648
1649
1650 if test "$enable_nls" = yes; then
1651
1652 cat >>confdefs.h <<\_ACEOF
1653 #define ENABLE_NLS 1
1654 _ACEOF
1655
1656 fi
1657
1658 echo "$as_me:$LINENO: result: $enable_nls" >&5
1659 echo "${ECHO_T}$enable_nls" >&6
1660
1661
1662
1663 #
1664 # Default port number (--with-pgport), default 5432
1665 #
1666 echo "$as_me:$LINENO: checking for default port number" >&5
1667 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1668
1669
1670
1671 # Check whether --with-pgport or --without-pgport was given.
1672 if test "${with_pgport+set}" = set; then
1673   withval="$with_pgport"
1674
1675   case $withval in
1676     yes)
1677       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679    { (exit 1); exit 1; }; }
1680       ;;
1681     no)
1682       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1683 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1684    { (exit 1); exit 1; }; }
1685       ;;
1686     *)
1687       default_port=$withval
1688       ;;
1689   esac
1690
1691 else
1692   default_port=5432
1693 fi;
1694
1695 echo "$as_me:$LINENO: result: $default_port" >&5
1696 echo "${ECHO_T}$default_port" >&6
1697 # Need both of these because some places want an integer and some a string
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT ${default_port}
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define DEF_PGPORT_STR "${default_port}"
1706 _ACEOF
1707
1708
1709
1710 #
1711 # Option to disable shared libraries
1712 #
1713
1714
1715 # Check whether --enable-shared or --disable-shared was given.
1716 if test "${enable_shared+set}" = set; then
1717   enableval="$enable_shared"
1718
1719   case $enableval in
1720     yes)
1721       :
1722       ;;
1723     no)
1724       :
1725       ;;
1726     *)
1727       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1728 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1729    { (exit 1); exit 1; }; }
1730       ;;
1731   esac
1732
1733 else
1734   enable_shared=yes
1735
1736 fi;
1737
1738
1739
1740 #
1741 # '-rpath'-like feature can be disabled
1742 #
1743
1744
1745 # Check whether --enable-rpath or --disable-rpath was given.
1746 if test "${enable_rpath+set}" = set; then
1747   enableval="$enable_rpath"
1748
1749   case $enableval in
1750     yes)
1751       :
1752       ;;
1753     no)
1754       :
1755       ;;
1756     *)
1757       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1758 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1759    { (exit 1); exit 1; }; }
1760       ;;
1761   esac
1762
1763 else
1764   enable_rpath=yes
1765
1766 fi;
1767
1768
1769
1770 #
1771 # Spinlocks
1772 #
1773
1774
1775 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1776 if test "${enable_spinlocks+set}" = set; then
1777   enableval="$enable_spinlocks"
1778
1779   case $enableval in
1780     yes)
1781       :
1782       ;;
1783     no)
1784       :
1785       ;;
1786     *)
1787       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1788 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1789    { (exit 1); exit 1; }; }
1790       ;;
1791   esac
1792
1793 else
1794   enable_spinlocks=yes
1795
1796 fi;
1797
1798
1799 #
1800 # --enable-debug adds -g to compiler flags
1801 #
1802
1803
1804 # Check whether --enable-debug or --disable-debug was given.
1805 if test "${enable_debug+set}" = set; then
1806   enableval="$enable_debug"
1807
1808   case $enableval in
1809     yes)
1810       :
1811       ;;
1812     no)
1813       :
1814       ;;
1815     *)
1816       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1817 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1818    { (exit 1); exit 1; }; }
1819       ;;
1820   esac
1821
1822 else
1823   enable_debug=no
1824
1825 fi;
1826
1827
1828
1829 #
1830 # C compiler
1831 #
1832
1833 # For historical reasons you can also use --with-CC to specify the C compiler
1834 # to use, although the standard way to do this is to set the CC environment
1835 # variable.
1836
1837
1838
1839 # Check whether --with-CC or --without-CC was given.
1840 if test "${with_CC+set}" = set; then
1841   withval="$with_CC"
1842
1843   case $withval in
1844     yes)
1845       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847    { (exit 1); exit 1; }; }
1848       ;;
1849     no)
1850       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1851 echo "$as_me: error: argument required for --with-CC option" >&2;}
1852    { (exit 1); exit 1; }; }
1853       ;;
1854     *)
1855       CC=$with_CC
1856       ;;
1857   esac
1858
1859 fi;
1860
1861
1862 case $template in
1863   aix) pgac_cc_list="gcc xlc";;
1864  irix) pgac_cc_list="cc";; # no gcc
1865     *) pgac_cc_list="gcc cc";;
1866 esac
1867
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874   for ac_prog in $pgac_cc_list
1875   do
1876     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881   echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883   if test -n "$CC"; then
1884   ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889   IFS=$as_save_IFS
1890   test -z "$as_dir" && as_dir=.
1891   for ac_exec_ext in '' $ac_executable_extensions; do
1892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895     break 2
1896   fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 CC=$ac_cv_prog_CC
1903 if test -n "$CC"; then
1904   echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1906 else
1907   echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911     test -n "$CC" && break
1912   done
1913 fi
1914 if test -z "$CC"; then
1915   ac_ct_CC=$CC
1916   for ac_prog in $pgac_cc_list
1917 do
1918   # Extract the first word of "$ac_prog", so it can be a program name with args.
1919 set dummy $ac_prog; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   if test -n "$ac_ct_CC"; then
1926   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927 else
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933   for ac_exec_ext in '' $ac_executable_extensions; do
1934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935     ac_cv_prog_ac_ct_CC="$ac_prog"
1936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937     break 2
1938   fi
1939 done
1940 done
1941
1942 fi
1943 fi
1944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1945 if test -n "$ac_ct_CC"; then
1946   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1947 echo "${ECHO_T}$ac_ct_CC" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953   test -n "$ac_ct_CC" && break
1954 done
1955
1956   CC=$ac_ct_CC
1957 fi
1958
1959
1960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1961 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1962    { (exit 1); exit 1; }; }
1963
1964 # Provide some information about the compiler.
1965 echo "$as_me:$LINENO:" \
1966      "checking for C compiler version" >&5
1967 ac_compiler=`set X $ac_compile; echo $2`
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1969   (eval $ac_compiler --version </dev/null >&5) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1974   (eval $ac_compiler -v </dev/null >&5) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }
1978 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1979   (eval $ac_compiler -V </dev/null >&5) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }
1983
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line $LINENO "configure"
1986 #include "confdefs.h"
1987
1988 #ifdef F77_DUMMY_MAIN
1989 #  ifdef __cplusplus
1990      extern "C"
1991 #  endif
1992    int F77_DUMMY_MAIN() { return 1; }
1993 #endif
1994 int
1995 main ()
1996 {
1997
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 ac_clean_files_save=$ac_clean_files
2003 ac_clean_files="$ac_clean_files a.out a.exe"
2004 # Try to create an executable without -o first, disregard a.out.
2005 # It will help us diagnose broken compilers, and finding out an intuition
2006 # of exeext.
2007 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2008 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2009 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2010 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2011   (eval $ac_link_default) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; then
2015   # Find the output, starting from the most likely.  This scheme is
2016 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2017 # resort.
2018
2019 # Be careful to initialize this variable, since it used to be cached.
2020 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2021 ac_cv_exeext=
2022 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2023                 ls a.out conftest 2>/dev/null;
2024                 ls a.* conftest.* 2>/dev/null`; do
2025   case $ac_file in
2026     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2027     a.out ) # We found the default executable, but exeext='' is most
2028             # certainly right.
2029             break;;
2030     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2031           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2032           export ac_cv_exeext
2033           break;;
2034     * ) break;;
2035   esac
2036 done
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2041 echo "$as_me: error: C compiler cannot create executables" >&2;}
2042    { (exit 77); exit 77; }; }
2043 fi
2044
2045 ac_exeext=$ac_cv_exeext
2046 echo "$as_me:$LINENO: result: $ac_file" >&5
2047 echo "${ECHO_T}$ac_file" >&6
2048
2049 # Check the compiler produces executables we can run.  If not, either
2050 # the compiler is broken, or we cross compile.
2051 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054 # If not cross compiling, check that we can run a simple program.
2055 if test "$cross_compiling" != yes; then
2056   if { ac_try='./$ac_file'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; }; then
2062     cross_compiling=no
2063   else
2064     if test "$cross_compiling" = maybe; then
2065         cross_compiling=yes
2066     else
2067         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'." >&2;}
2071    { (exit 1); exit 1; }; }
2072     fi
2073   fi
2074 fi
2075 echo "$as_me:$LINENO: result: yes" >&5
2076 echo "${ECHO_T}yes" >&6
2077
2078 rm -f a.out a.exe conftest$ac_cv_exeext
2079 ac_clean_files=$ac_clean_files_save
2080 # Check the compiler produces executables we can run.  If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2083 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2084 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2085 echo "${ECHO_T}$cross_compiling" >&6
2086
2087 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2088 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2090   (eval $ac_link) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; then
2094   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2095 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2096 # work properly (i.e., refer to `conftest.exe'), while it won't with
2097 # `rm'.
2098 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2099   case $ac_file in
2100     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2101     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102           export ac_cv_exeext
2103           break;;
2104     * ) break;;
2105   esac
2106 done
2107 else
2108   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2109 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 rm -f conftest$ac_cv_exeext
2114 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2115 echo "${ECHO_T}$ac_cv_exeext" >&6
2116
2117 rm -f conftest.$ac_ext
2118 EXEEXT=$ac_cv_exeext
2119 ac_exeext=$EXEEXT
2120 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2121 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2122 if test "${ac_cv_objext+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2150   case $ac_file in
2151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2152     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2153        break;;
2154   esac
2155 done
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2160 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2167 echo "${ECHO_T}$ac_cv_objext" >&6
2168 OBJEXT=$ac_cv_objext
2169 ac_objext=$OBJEXT
2170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2177 #include "confdefs.h"
2178
2179 #ifdef F77_DUMMY_MAIN
2180 #  ifdef __cplusplus
2181      extern "C"
2182 #  endif
2183    int F77_DUMMY_MAIN() { return 1; }
2184 #endif
2185 int
2186 main ()
2187 {
2188 #ifndef __GNUC__
2189        choke me
2190 #endif
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198   (eval $ac_compile) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -s conftest.$ac_objext'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208   ac_compiler_gnu=yes
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 ac_compiler_gnu=no
2213 fi
2214 rm -f conftest.$ac_objext conftest.$ac_ext
2215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2216
2217 fi
2218 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2220 GCC=`test $ac_compiler_gnu = yes && echo yes`
2221 ac_test_CFLAGS=${CFLAGS+set}
2222 ac_save_CFLAGS=$CFLAGS
2223 CFLAGS="-g"
2224 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2226 if test "${ac_cv_prog_cc_g+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   cat >conftest.$ac_ext <<_ACEOF
2230 #line $LINENO "configure"
2231 #include "confdefs.h"
2232
2233 #ifdef F77_DUMMY_MAIN
2234 #  ifdef __cplusplus
2235      extern "C"
2236 #  endif
2237    int F77_DUMMY_MAIN() { return 1; }
2238 #endif
2239 int
2240 main ()
2241 {
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   ac_cv_prog_cc_g=yes
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 ac_cv_prog_cc_g=no
2264 fi
2265 rm -f conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269 if test "$ac_test_CFLAGS" = set; then
2270   CFLAGS=$ac_save_CFLAGS
2271 elif test $ac_cv_prog_cc_g = yes; then
2272   if test "$GCC" = yes; then
2273     CFLAGS="-g -O2"
2274   else
2275     CFLAGS="-g"
2276   fi
2277 else
2278   if test "$GCC" = yes; then
2279     CFLAGS="-O2"
2280   else
2281     CFLAGS=
2282   fi
2283 fi
2284 # Some people use a C++ compiler to compile C.  Since we use `exit',
2285 # in C++ we need to declare it.  In case someone uses the same compiler
2286 # for both compiling C and C++ we need to have the C++ compiler decide
2287 # the declaration of exit, since it's the most demanding environment.
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #ifndef __cplusplus
2290   choke me
2291 #endif
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   for ac_declaration in \
2306    ''\
2307    '#include <stdlib.h>' \
2308    'extern "C" void std::exit (int) throw (); using std::exit;' \
2309    'extern "C" void std::exit (int); using std::exit;' \
2310    'extern "C" void exit (int) throw ();' \
2311    'extern "C" void exit (int);' \
2312    'void exit (int);'
2313 do
2314   cat >conftest.$ac_ext <<_ACEOF
2315 #line $LINENO "configure"
2316 #include "confdefs.h"
2317 #include <stdlib.h>
2318 $ac_declaration
2319 #ifdef F77_DUMMY_MAIN
2320 #  ifdef __cplusplus
2321      extern "C"
2322 #  endif
2323    int F77_DUMMY_MAIN() { return 1; }
2324 #endif
2325 int
2326 main ()
2327 {
2328 exit (42);
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335   (eval $ac_compile) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   :
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 continue
2350 fi
2351 rm -f conftest.$ac_objext conftest.$ac_ext
2352   cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2355 $ac_declaration
2356 #ifdef F77_DUMMY_MAIN
2357 #  ifdef __cplusplus
2358      extern "C"
2359 #  endif
2360    int F77_DUMMY_MAIN() { return 1; }
2361 #endif
2362 int
2363 main ()
2364 {
2365 exit (42);
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -s conftest.$ac_objext'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382   break
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 fi
2387 rm -f conftest.$ac_objext conftest.$ac_ext
2388 done
2389 rm -f conftest*
2390 if test -n "$ac_declaration"; then
2391   echo '#ifdef __cplusplus' >>confdefs.h
2392   echo $ac_declaration      >>confdefs.h
2393   echo '#endif'             >>confdefs.h
2394 fi
2395
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2399 fi
2400 rm -f conftest.$ac_objext conftest.$ac_ext
2401 ac_ext=c
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406
2407
2408 unset CFLAGS
2409
2410 #
2411 # Read the template
2412 #
2413 . "$srcdir/src/template/$template" || exit
2414
2415 # CFLAGS are selected so:
2416 # If the user specifies something in the environment, that is used.
2417 # else:  If the template file set something, that is used.
2418 # else:  If the compiler is GCC, then we use -O2.
2419 # else:  If the compiler is something else, then we use -0.
2420
2421 if test "$ac_env_CFLAGS_set" = set; then
2422   CFLAGS=$ac_env_CFLAGS_value
2423 elif test "${CFLAGS+set}" = set; then
2424   : # (keep what template set)
2425 elif test "$GCC" = yes; then
2426   CFLAGS="-O2"
2427 else
2428   # if the user selected debug mode, don't use -O
2429   if test "$enable_debug" != yes; then
2430     CFLAGS="-O"
2431   fi
2432 fi
2433
2434 if test "$GCC" = yes; then
2435   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2436
2437   # Some versions of GCC support some additional useful warning flags.
2438   # Check whether they are supported, and add them to CFLAGS if so.
2439   echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2440 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2441 pgac_save_CFLAGS=$CFLAGS
2442 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2446
2447 #ifdef F77_DUMMY_MAIN
2448 #  ifdef __cplusplus
2449      extern "C"
2450 #  endif
2451    int F77_DUMMY_MAIN() { return 1; }
2452 #endif
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463   (eval $ac_compile) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -s conftest.$ac_objext'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; }; then
2473   echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2475 else
2476   echo "$as_me: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 CFLAGS="$pgac_save_CFLAGS"
2479                     echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2481 fi
2482 rm -f conftest.$ac_objext conftest.$ac_ext
2483
2484   echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2485 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2486 pgac_save_CFLAGS=$CFLAGS
2487 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2491
2492 #ifdef F77_DUMMY_MAIN
2493 #  ifdef __cplusplus
2494      extern "C"
2495 #  endif
2496    int F77_DUMMY_MAIN() { return 1; }
2497 #endif
2498 int
2499 main ()
2500 {
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508   (eval $ac_compile) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -s conftest.$ac_objext'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 CFLAGS="$pgac_save_CFLAGS"
2524                     echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6
2526 fi
2527 rm -f conftest.$ac_objext conftest.$ac_ext
2528
2529   echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2530 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2531 pgac_save_CFLAGS=$CFLAGS
2532 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2535 #include "confdefs.h"
2536
2537 #ifdef F77_DUMMY_MAIN
2538 #  ifdef __cplusplus
2539      extern "C"
2540 #  endif
2541    int F77_DUMMY_MAIN() { return 1; }
2542 #endif
2543 int
2544 main ()
2545 {
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553   (eval $ac_compile) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); } &&
2557          { ac_try='test -s conftest.$ac_objext'
2558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559   (eval $ac_try) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; }; then
2563   echo "$as_me:$LINENO: result: yes" >&5
2564 echo "${ECHO_T}yes" >&6
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 CFLAGS="$pgac_save_CFLAGS"
2569                     echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2571 fi
2572 rm -f conftest.$ac_objext conftest.$ac_ext
2573
2574
2575   # Disable strict-aliasing rules; needed for gcc 3.3+
2576   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2577 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2578 pgac_save_CFLAGS=$CFLAGS
2579 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2583
2584 #ifdef F77_DUMMY_MAIN
2585 #  ifdef __cplusplus
2586      extern "C"
2587 #  endif
2588    int F77_DUMMY_MAIN() { return 1; }
2589 #endif
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } &&
2604          { ac_try='test -s conftest.$ac_objext'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; }; then
2610   echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 CFLAGS="$pgac_save_CFLAGS"
2616                     echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619 rm -f conftest.$ac_objext conftest.$ac_ext
2620
2621 fi
2622
2623 # supply -g if --enable-debug
2624 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2625   CFLAGS="$CFLAGS -g"
2626 fi
2627
2628 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2629 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2630
2631 # We already have this in Makefile.win32, but configure needs it too
2632 if test "$PORTNAME" = "win32"; then
2633   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2634 fi
2635
2636 # Check if the compiler still works with the template settings
2637 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2638 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2639
2640 cat >conftest.$ac_ext <<_ACEOF
2641 #line $LINENO "configure"
2642 #include "confdefs.h"
2643
2644 #ifdef F77_DUMMY_MAIN
2645 #  ifdef __cplusplus
2646      extern "C"
2647 #  endif
2648    int F77_DUMMY_MAIN() { return 1; }
2649 #endif
2650 int
2651 main ()
2652 {
2653 return 0;
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext conftest$ac_exeext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660   (eval $ac_link) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -s conftest$ac_exeext'
2665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666   (eval $ac_try) 2>&5
2667   ac_status=$?
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); }; }; then
2670   echo "$as_me:$LINENO: result: yes" >&5
2671 echo "${ECHO_T}yes" >&6
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2678 echo "$as_me: error: cannot proceed" >&2;}
2679    { (exit 1); exit 1; }; }
2680 fi
2681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2682
2683 # Defend against gcc -ffast-math
2684 if test "$GCC" = yes; then
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #line $LINENO "configure"
2687 #include "confdefs.h"
2688
2689 #ifdef F77_DUMMY_MAIN
2690 #  ifdef __cplusplus
2691      extern "C"
2692 #  endif
2693    int F77_DUMMY_MAIN() { return 1; }
2694 #endif
2695 int
2696 main ()
2697 {
2698 #ifdef __FAST_MATH__
2699 choke me
2700 #endif
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -s conftest.$ac_objext'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; }; then
2717   :
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2722 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2723    { (exit 1); exit 1; }; }
2724 fi
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 fi
2727
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2735 # On Suns, sometimes $CPP names a directory.
2736 if test -n "$CPP" && test -d "$CPP"; then
2737   CPP=
2738 fi
2739 if test -z "$CPP"; then
2740   if test "${ac_cv_prog_CPP+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743       # Double quotes because CPP needs to be expanded
2744     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2745     do
2746       ac_preproc_ok=false
2747 for ac_c_preproc_warn_flag in '' yes
2748 do
2749   # Use a header file that comes with gcc, so configuring glibc
2750   # with a fresh cross-compiler works.
2751   # On the NeXT, cc -E runs the code through the compiler's parser,
2752   # not just through cpp. "Syntax error" is here to catch this case.
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2756 #include <assert.h>
2757                      Syntax error
2758 _ACEOF
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761   ac_status=$?
2762   egrep -v '^ *\+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } >/dev/null; then
2767   if test -s conftest.err; then
2768     ac_cpp_err=$ac_c_preproc_warn_flag
2769   else
2770     ac_cpp_err=
2771   fi
2772 else
2773   ac_cpp_err=yes
2774 fi
2775 if test -z "$ac_cpp_err"; then
2776   :
2777 else
2778   echo "$as_me: failed program was:" >&5
2779   cat conftest.$ac_ext >&5
2780   # Broken: fails on valid input.
2781 continue
2782 fi
2783 rm -f conftest.err conftest.$ac_ext
2784
2785   # OK, works on sane cases.  Now check whether non-existent headers
2786   # can be detected and how.
2787   cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790 #include <ac_nonexistent.h>
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   egrep -v '^ *\+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   # Broken: success on invalid input.
2810 continue
2811 else
2812   echo "$as_me: failed program was:" >&5
2813   cat conftest.$ac_ext >&5
2814   # Passes both tests.
2815 ac_preproc_ok=:
2816 break
2817 fi
2818 rm -f conftest.err conftest.$ac_ext
2819
2820 done
2821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2822 rm -f conftest.err conftest.$ac_ext
2823 if $ac_preproc_ok; then
2824   break
2825 fi
2826
2827     done
2828     ac_cv_prog_CPP=$CPP
2829
2830 fi
2831   CPP=$ac_cv_prog_CPP
2832 else
2833   ac_cv_prog_CPP=$CPP
2834 fi
2835 echo "$as_me:$LINENO: result: $CPP" >&5
2836 echo "${ECHO_T}$CPP" >&6
2837 ac_preproc_ok=false
2838 for ac_c_preproc_warn_flag in '' yes
2839 do
2840   # Use a header file that comes with gcc, so configuring glibc
2841   # with a fresh cross-compiler works.
2842   # On the NeXT, cc -E runs the code through the compiler's parser,
2843   # not just through cpp. "Syntax error" is here to catch this case.
2844   cat >conftest.$ac_ext <<_ACEOF
2845 #line $LINENO "configure"
2846 #include "confdefs.h"
2847 #include <assert.h>
2848                      Syntax error
2849 _ACEOF
2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2852   ac_status=$?
2853   egrep -v '^ *\+' conftest.er1 >conftest.err
2854   rm -f conftest.er1
2855   cat conftest.err >&5
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } >/dev/null; then
2858   if test -s conftest.err; then
2859     ac_cpp_err=$ac_c_preproc_warn_flag
2860   else
2861     ac_cpp_err=
2862   fi
2863 else
2864   ac_cpp_err=yes
2865 fi
2866 if test -z "$ac_cpp_err"; then
2867   :
2868 else
2869   echo "$as_me: failed program was:" >&5
2870   cat conftest.$ac_ext >&5
2871   # Broken: fails on valid input.
2872 continue
2873 fi
2874 rm -f conftest.err conftest.$ac_ext
2875
2876   # OK, works on sane cases.  Now check whether non-existent headers
2877   # can be detected and how.
2878   cat >conftest.$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 #include "confdefs.h"
2881 #include <ac_nonexistent.h>
2882 _ACEOF
2883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885   ac_status=$?
2886   egrep -v '^ *\+' conftest.er1 >conftest.err
2887   rm -f conftest.er1
2888   cat conftest.err >&5
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); } >/dev/null; then
2891   if test -s conftest.err; then
2892     ac_cpp_err=$ac_c_preproc_warn_flag
2893   else
2894     ac_cpp_err=
2895   fi
2896 else
2897   ac_cpp_err=yes
2898 fi
2899 if test -z "$ac_cpp_err"; then
2900   # Broken: success on invalid input.
2901 continue
2902 else
2903   echo "$as_me: failed program was:" >&5
2904   cat conftest.$ac_ext >&5
2905   # Passes both tests.
2906 ac_preproc_ok=:
2907 break
2908 fi
2909 rm -f conftest.err conftest.$ac_ext
2910
2911 done
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.$ac_ext
2914 if $ac_preproc_ok; then
2915   :
2916 else
2917   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2919    { (exit 1); exit 1; }; }
2920 fi
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927
2928
2929
2930 # Create compiler version string
2931 if test x"$GCC" = x"yes" ; then
2932   cc_string="GCC `${CC} --version | sed q`"
2933 else
2934   cc_string=$CC
2935 fi
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2939 _ACEOF
2940
2941
2942
2943 #
2944 # Set up TAS assembly code if needed; the template file has now had its
2945 # chance to request this.
2946 #
2947 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2948
2949
2950 if test "$need_tas" = yes ; then
2951   TAS=tas.o
2952 else
2953   TAS=""
2954 fi
2955
2956
2957
2958 #
2959 # Automatic dependency tracking
2960 #
2961
2962
2963 # Check whether --enable-depend or --disable-depend was given.
2964 if test "${enable_depend+set}" = set; then
2965   enableval="$enable_depend"
2966
2967   case $enableval in
2968     yes)
2969       autodepend=yes
2970       ;;
2971     no)
2972       :
2973       ;;
2974     *)
2975       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2976 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2977    { (exit 1); exit 1; }; }
2978       ;;
2979   esac
2980
2981 else
2982   enable_depend=no
2983
2984 fi;
2985
2986
2987
2988
2989 #
2990 # Enable assert checks
2991 #
2992
2993
2994 # Check whether --enable-cassert or --disable-cassert was given.
2995 if test "${enable_cassert+set}" = set; then
2996   enableval="$enable_cassert"
2997
2998   case $enableval in
2999     yes)
3000
3001 cat >>confdefs.h <<\_ACEOF
3002 #define USE_ASSERT_CHECKING 1
3003 _ACEOF
3004
3005       ;;
3006     no)
3007       :
3008       ;;
3009     *)
3010       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3011 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3012    { (exit 1); exit 1; }; }
3013       ;;
3014   esac
3015
3016 else
3017   enable_cassert=no
3018
3019 fi;
3020
3021
3022
3023 #
3024 # Include directories
3025 #
3026 ac_save_IFS=$IFS
3027 IFS="${IFS}${PATH_SEPARATOR}"
3028 # SRCH_INC comes from the template file
3029 for dir in $with_includes $SRCH_INC; do
3030   if test -d "$dir"; then
3031     INCLUDES="$INCLUDES -I$dir"
3032   else
3033     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3034 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3035   fi
3036 done
3037 IFS=$ac_save_IFS
3038
3039
3040
3041 #
3042 # Library directories
3043 #
3044 ac_save_IFS=$IFS
3045 IFS="${IFS}${PATH_SEPARATOR}"
3046 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3047 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3048   if test -d "$dir"; then
3049     LIBDIRS="$LIBDIRS -L$dir"
3050   else
3051     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3052 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3053   fi
3054 done
3055 IFS=$ac_save_IFS
3056
3057 #
3058 # Enable thread-safe client libraries
3059 #
3060 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3061 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3062
3063
3064 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3065 if test "${enable_thread_safety+set}" = set; then
3066   enableval="$enable_thread_safety"
3067
3068   case $enableval in
3069     yes)
3070       :
3071       ;;
3072     no)
3073       :
3074       ;;
3075     *)
3076       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3077 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3078    { (exit 1); exit 1; }; }
3079       ;;
3080   esac
3081
3082 else
3083   enable_thread_safety=no
3084
3085 fi;
3086
3087
3088
3089 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3090 if test "${enable_thread_safety_force+set}" = set; then
3091   enableval="$enable_thread_safety_force"
3092
3093   case $enableval in
3094     yes)
3095       :
3096       ;;
3097     no)
3098       :
3099       ;;
3100     *)
3101       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3102 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3103    { (exit 1); exit 1; }; }
3104       ;;
3105   esac
3106
3107 else
3108   enable_thread_safety_force=no
3109
3110 fi;
3111
3112 if test "$enable_thread_safety" = yes -o \
3113         "$enable_thread_safety_force" = yes; then
3114   enable_thread_safety="yes"    # for 'force'
3115
3116 cat >>confdefs.h <<\_ACEOF
3117 #define ENABLE_THREAD_SAFETY 1
3118 _ACEOF
3119
3120 fi
3121 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3122 echo "${ECHO_T}$enable_thread_safety" >&6
3123
3124
3125 #
3126 # Optionally build Tcl modules (PL/Tcl)
3127 #
3128 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3129 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3130
3131
3132
3133 # Check whether --with-tcl or --without-tcl was given.
3134 if test "${with_tcl+set}" = set; then
3135   withval="$with_tcl"
3136
3137   case $withval in
3138     yes)
3139       :
3140       ;;
3141     no)
3142       :
3143       ;;
3144     *)
3145       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3146 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3147    { (exit 1); exit 1; }; }
3148       ;;
3149   esac
3150
3151 else
3152   with_tcl=no
3153
3154 fi;
3155
3156 echo "$as_me:$LINENO: result: $with_tcl" >&5
3157 echo "${ECHO_T}$with_tcl" >&6
3158
3159
3160 # We see if the path to the Tcl/Tk configuration scripts is specified.
3161 # This will override the use of tclsh to find the paths to search.
3162
3163
3164
3165
3166 # Check whether --with-tclconfig or --without-tclconfig was given.
3167 if test "${with_tclconfig+set}" = set; then
3168   withval="$with_tclconfig"
3169
3170   case $withval in
3171     yes)
3172       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3173 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3174    { (exit 1); exit 1; }; }
3175       ;;
3176     no)
3177       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3178 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3179    { (exit 1); exit 1; }; }
3180       ;;
3181     *)
3182
3183       ;;
3184   esac
3185
3186 fi;
3187
3188
3189 #
3190 # Optionally build Perl modules (PL/Perl)
3191 #
3192 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3193 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3194
3195
3196
3197 # Check whether --with-perl or --without-perl was given.
3198 if test "${with_perl+set}" = set; then
3199   withval="$with_perl"
3200
3201   case $withval in
3202     yes)
3203       :
3204       ;;
3205     no)
3206       :
3207       ;;
3208     *)
3209       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3210 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3211    { (exit 1); exit 1; }; }
3212       ;;
3213   esac
3214
3215 else
3216   with_perl=no
3217
3218 fi;
3219
3220 echo "$as_me:$LINENO: result: $with_perl" >&5
3221 echo "${ECHO_T}$with_perl" >&6
3222
3223
3224 #
3225 # Optionally build Python modules (PL/Python)
3226 #
3227 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3228 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3229
3230
3231
3232 # Check whether --with-python or --without-python was given.
3233 if test "${with_python+set}" = set; then
3234   withval="$with_python"
3235
3236   case $withval in
3237     yes)
3238       :
3239       ;;
3240     no)
3241       :
3242       ;;
3243     *)
3244       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3245 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3246    { (exit 1); exit 1; }; }
3247       ;;
3248   esac
3249
3250 else
3251   with_python=no
3252
3253 fi;
3254
3255 echo "$as_me:$LINENO: result: $with_python" >&5
3256 echo "${ECHO_T}$with_python" >&6
3257
3258
3259 #
3260 # Kerberos 5
3261 #
3262 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3263 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3264
3265
3266
3267 # Check whether --with-krb5 or --without-krb5 was given.
3268 if test "${with_krb5+set}" = set; then
3269   withval="$with_krb5"
3270
3271   case $withval in
3272     yes)
3273
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define KRB5 1
3277 _ACEOF
3278
3279   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3280
3281       ;;
3282     no)
3283       :
3284       ;;
3285     *)
3286       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3287 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3288    { (exit 1); exit 1; }; }
3289       ;;
3290   esac
3291
3292 else
3293   with_krb5=no
3294
3295 fi;
3296
3297 echo "$as_me:$LINENO: result: $with_krb5" >&5
3298 echo "${ECHO_T}$with_krb5" >&6
3299
3300
3301
3302
3303
3304
3305 #
3306 # Kerberos configuration parameters
3307 #
3308
3309
3310
3311 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3312 if test "${with_krb_srvnam+set}" = set; then
3313   withval="$with_krb_srvnam"
3314
3315   case $withval in
3316     yes)
3317       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3318 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3319    { (exit 1); exit 1; }; }
3320       ;;
3321     no)
3322       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3323 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3324    { (exit 1); exit 1; }; }
3325       ;;
3326     *)
3327
3328       ;;
3329   esac
3330
3331 else
3332   with_krb_srvnam="postgres"
3333 fi;
3334
3335
3336 cat >>confdefs.h <<_ACEOF
3337 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3338 _ACEOF
3339
3340
3341
3342 #
3343 # PAM
3344 #
3345 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3346 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3347
3348
3349
3350 # Check whether --with-pam or --without-pam was given.
3351 if test "${with_pam+set}" = set; then
3352   withval="$with_pam"
3353
3354   case $withval in
3355     yes)
3356
3357 cat >>confdefs.h <<\_ACEOF
3358 #define USE_PAM 1
3359 _ACEOF
3360
3361       ;;
3362     no)
3363       :
3364       ;;
3365     *)
3366       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3367 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3368    { (exit 1); exit 1; }; }
3369       ;;
3370   esac
3371
3372 else
3373   with_pam=no
3374
3375 fi;
3376
3377 echo "$as_me:$LINENO: result: $with_pam" >&5
3378 echo "${ECHO_T}$with_pam" >&6
3379
3380
3381
3382 #
3383 # Bonjour
3384 #
3385 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3386 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3387
3388
3389
3390 # Check whether --with-bonjour or --without-bonjour was given.
3391 if test "${with_bonjour+set}" = set; then
3392   withval="$with_bonjour"
3393
3394   case $withval in
3395     yes)
3396
3397 cat >>confdefs.h <<\_ACEOF
3398 #define USE_BONJOUR 1
3399 _ACEOF
3400
3401       ;;
3402     no)
3403       :
3404       ;;
3405     *)
3406       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3407 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3408    { (exit 1); exit 1; }; }
3409       ;;
3410   esac
3411
3412 else
3413   with_bonjour=no
3414
3415 fi;
3416
3417 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3418 echo "${ECHO_T}$with_bonjour" >&6
3419
3420
3421
3422 #
3423 # OpenSSL
3424 #
3425 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3426 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3427
3428
3429
3430 # Check whether --with-openssl or --without-openssl was given.
3431 if test "${with_openssl+set}" = set; then
3432   withval="$with_openssl"
3433
3434   case $withval in
3435     yes)
3436
3437 cat >>confdefs.h <<\_ACEOF
3438 #define USE_SSL 1
3439 _ACEOF
3440
3441       ;;
3442     no)
3443       :
3444       ;;
3445     *)
3446       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3447 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3448    { (exit 1); exit 1; }; }
3449       ;;
3450   esac
3451
3452 else
3453   with_openssl=no
3454
3455 fi;
3456
3457 echo "$as_me:$LINENO: result: $with_openssl" >&5
3458 echo "${ECHO_T}$with_openssl" >&6
3459
3460
3461
3462 #
3463 # Readline
3464 #
3465
3466
3467
3468 # Check whether --with-readline or --without-readline was given.
3469 if test "${with_readline+set}" = set; then
3470   withval="$with_readline"
3471
3472   case $withval in
3473     yes)
3474       :
3475       ;;
3476     no)
3477       :
3478       ;;
3479     *)
3480       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3481 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3482    { (exit 1); exit 1; }; }
3483       ;;
3484   esac
3485
3486 else
3487   with_readline=yes
3488
3489 fi;
3490
3491 # readline on MinGW has problems with backslashes in psql and other bugs.
3492 # This is particularly a problem with non-US code pages.
3493 # Therefore disable its use until we understand the cause. 2004-07-20
3494 if test "$PORTNAME" = "win32"; then
3495   if test "$with_readline" = yes; then
3496     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3497 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3498     with_readline=no
3499   fi
3500 fi
3501
3502
3503 #
3504 # Zlib
3505 #
3506
3507
3508
3509 # Check whether --with-zlib or --without-zlib was given.
3510 if test "${with_zlib+set}" = set; then
3511   withval="$with_zlib"
3512
3513   case $withval in
3514     yes)
3515       :
3516       ;;
3517     no)
3518       :
3519       ;;
3520     *)
3521       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3522 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3523    { (exit 1); exit 1; }; }
3524       ;;
3525   esac
3526
3527 else
3528   with_zlib=yes
3529
3530 fi;
3531
3532
3533 #
3534 # Elf
3535 #
3536
3537 # Assume system is ELF if it predefines __ELF__ as 1,
3538 # otherwise believe host_os based default.
3539 case $host_os in
3540     freebsd1*|freebsd2*) elf=no;;
3541     freebsd3*|freebsd4*) elf=yes;;
3542 esac
3543
3544
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line $LINENO "configure"
3547 #include "confdefs.h"
3548 #if __ELF__
3549   yes
3550 #endif
3551
3552 _ACEOF
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554   egrep "yes" >/dev/null 2>&1; then
3555   ELF_SYS=true
3556 else
3557   if test "X$elf" = "Xyes" ; then
3558   ELF_SYS=true
3559 else
3560   ELF_SYS=
3561 fi
3562 fi
3563 rm -f conftest*
3564
3565
3566
3567 #
3568 # Assignments
3569 #
3570
3571 CPPFLAGS="$CPPFLAGS $INCLUDES"
3572 LDFLAGS="$LDFLAGS $LIBDIRS"
3573
3574 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3575 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3576 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3577 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3578
3579
3580
3581 for ac_prog in gawk mawk nawk awk
3582 do
3583   # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_AWK+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$AWK"; then
3591   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_AWK="$ac_prog"
3601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606
3607 fi
3608 fi
3609 AWK=$ac_cv_prog_AWK
3610 if test -n "$AWK"; then
3611   echo "$as_me:$LINENO: result: $AWK" >&5
3612 echo "${ECHO_T}$AWK" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618   test -n "$AWK" && break
3619 done
3620
3621 echo "$as_me:$LINENO: checking for flex" >&5
3622 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3623 if test "${pgac_cv_path_flex+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   # Let the user override the test
3627 if test -n "$FLEX"; then
3628   pgac_cv_path_flex=$FLEX
3629 else
3630   pgac_save_IFS=$IFS
3631   IFS=$PATH_SEPARATOR
3632   for pgac_dir in $PATH; do
3633     IFS=$pgac_save_IFS
3634     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3635       pgac_dir=`pwd`
3636     fi
3637     for pgac_prog in flex lex; do
3638       pgac_candidate="$pgac_dir/$pgac_prog"
3639       if test -f "$pgac_candidate" \
3640         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3641       then
3642         echo '%%'  > conftest.l
3643         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3644           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3645             pgac_broken_flex=$pgac_candidate
3646             continue
3647           fi
3648
3649           pgac_cv_path_flex=$pgac_candidate
3650           break 2
3651         fi
3652       fi
3653     done
3654   done
3655   rm -f conftest.l lex.yy.c
3656   : ${pgac_cv_path_flex=no}
3657 fi
3658
3659 fi
3660 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3661 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3662 if test x"$pgac_cv_path_flex" = x"no"; then
3663   if test -n "$pgac_broken_flex"; then
3664     { echo "$as_me:$LINENO: WARNING:
3665 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3666 *** should get version 2.5.4 or later." >&5
3667 echo "$as_me: WARNING:
3668 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3669 *** should get version 2.5.4 or later." >&2;}
3670   fi
3671
3672   { echo "$as_me:$LINENO: WARNING:
3673 *** Without Flex you will not be able to build PostgreSQL from CVS or
3674 *** change any of the scanner definition files.  You can obtain Flex from
3675 *** a GNU mirror site.  (If you are using the official distribution of
3676 *** PostgreSQL then you do not need to worry about this because the Flex
3677 *** output is pre-generated.)" >&5
3678 echo "$as_me: WARNING:
3679 *** Without Flex you will not be able to build PostgreSQL from CVS or
3680 *** change any of the scanner definition files.  You can obtain Flex from
3681 *** a GNU mirror site.  (If you are using the official distribution of
3682 *** PostgreSQL then you do not need to worry about this because the Flex
3683 *** output is pre-generated.)" >&2;}
3684 fi
3685
3686 if test x"$pgac_cv_path_flex" = x"no"; then
3687   FLEX=
3688 else
3689   FLEX=$pgac_cv_path_flex
3690 fi
3691
3692
3693
3694
3695 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3696 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3697 LN_S=$as_ln_s
3698 if test "$LN_S" = "ln -s"; then
3699   echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3703 echo "${ECHO_T}no, using $LN_S" >&6
3704 fi
3705
3706
3707 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3708 if test "${with_gnu_ld+set}" = set; then
3709   withval="$with_gnu_ld"
3710   test "$withval" = no || with_gnu_ld=yes
3711 else
3712   with_gnu_ld=no
3713 fi;
3714 ac_prog=ld
3715 if test "$GCC" = yes; then
3716   # Check if gcc -print-prog-name=ld gives a path.
3717   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3718 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3719   case $host in
3720   *-*-mingw*)
3721     # gcc leaves a trailing carriage return which upsets mingw
3722     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3723   *)
3724     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3725   esac
3726   case "$ac_prog" in
3727     # Accept absolute paths.
3728     [\\/]* | [A-Za-z]:[\\/]*)
3729       re_direlt='/[^/][^/]*/\.\./'
3730       # Canonicalize the path of ld
3731       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3732       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3733         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3734       done
3735       test -z "$LD" && LD="$ac_prog"
3736       ;;
3737   "")
3738     # If it fails, then pretend we aren't using GCC.
3739     ac_prog=ld
3740     ;;
3741   *)
3742     # If it is relative, then search for the first ld in PATH.
3743     with_gnu_ld=unknown
3744     ;;
3745   esac
3746 elif test "$with_gnu_ld" = yes; then
3747   echo "$as_me:$LINENO: checking for GNU ld" >&5
3748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3749 else
3750   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3752 fi
3753 if test "${ac_cv_path_LD+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   if test -z "$LD"; then
3757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3758   for ac_dir in $PATH; do
3759     test -z "$ac_dir" && ac_dir=.
3760     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3761       ac_cv_path_LD="$ac_dir/$ac_prog"
3762       # Check to see if the program is GNU ld.  I'd rather use --version,
3763       # but apparently some GNU ld's only accept -v.
3764       # Break only if it was the GNU/non-GNU ld that we prefer.
3765       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3766         test "$with_gnu_ld" != no && break
3767       else
3768         test "$with_gnu_ld" != yes && break
3769       fi
3770     fi
3771   done
3772   IFS="$ac_save_ifs"
3773 else
3774   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3775 fi
3776 fi
3777
3778 LD="$ac_cv_path_LD"
3779 if test -n "$LD"; then
3780   echo "$as_me:$LINENO: result: $LD" >&5
3781 echo "${ECHO_T}$LD" >&6
3782 else
3783   echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3788    { (exit 1); exit 1; }; }
3789 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3791 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3795 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3796   ac_cv_prog_gnu_ld=yes
3797 else
3798   ac_cv_prog_gnu_ld=no
3799 fi
3800 fi
3801 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3802 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3803 with_gnu_ld=$ac_cv_prog_gnu_ld
3804
3805
3806
3807
3808 case $host_os in sysv5*)
3809   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3810 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3811 if test "${pgac_cv_prog_ld_R+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814
3815     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3816     cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 #include "confdefs.h"
3819
3820 #ifdef F77_DUMMY_MAIN
3821 #  ifdef __cplusplus
3822      extern "C"
3823 #  endif
3824    int F77_DUMMY_MAIN() { return 1; }
3825 #endif
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836   (eval $ac_link) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -s conftest$ac_exeext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   pgac_cv_prog_ld_R=yes
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 pgac_cv_prog_ld_R=no
3851 fi
3852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3853     LDFLAGS=$pgac_save_LDFLAGS
3854
3855 fi
3856 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3857 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3858   ld_R_works=$pgac_cv_prog_ld_R
3859
3860 esac
3861 if test -n "$ac_tool_prefix"; then
3862   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_RANLIB+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test -n "$RANLIB"; then
3870   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884 done
3885
3886 fi
3887 fi
3888 RANLIB=$ac_cv_prog_RANLIB
3889 if test -n "$RANLIB"; then
3890   echo "$as_me:$LINENO: result: $RANLIB" >&5
3891 echo "${ECHO_T}$RANLIB" >&6
3892 else
3893   echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 fi
3896
3897 fi
3898 if test -z "$ac_cv_prog_RANLIB"; then
3899   ac_ct_RANLIB=$RANLIB
3900   # Extract the first word of "ranlib", so it can be a program name with args.
3901 set dummy ranlib; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$ac_ct_RANLIB"; then
3908   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_prog_ac_ct_RANLIB="ranlib"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3925 fi
3926 fi
3927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3928 if test -n "$ac_ct_RANLIB"; then
3929   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3930 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936   RANLIB=$ac_ct_RANLIB
3937 else
3938   RANLIB="$ac_cv_prog_RANLIB"
3939 fi
3940
3941 for ac_prog in lorder
3942 do
3943   # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_prog_LORDER+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   if test -n "$LORDER"; then
3951   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958   for ac_exec_ext in '' $ac_executable_extensions; do
3959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     ac_cv_prog_LORDER="$ac_prog"
3961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965 done
3966
3967 fi
3968 fi
3969 LORDER=$ac_cv_prog_LORDER
3970 if test -n "$LORDER"; then
3971   echo "$as_me:$LINENO: result: $LORDER" >&5
3972 echo "${ECHO_T}$LORDER" >&6
3973 else
3974   echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976 fi
3977
3978   test -n "$LORDER" && break
3979 done
3980
3981 # Extract the first word of "tar", so it can be a program name with args.
3982 set dummy tar; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_path_TAR+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   case $TAR in
3989   [\\/]* | ?:[\\/]*)
3990   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3991   ;;
3992   *)
3993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002     break 2
4003   fi
4004 done
4005 done
4006
4007   ;;
4008 esac
4009 fi
4010 TAR=$ac_cv_path_TAR
4011
4012 if test -n "$TAR"; then
4013   echo "$as_me:$LINENO: result: $TAR" >&5
4014 echo "${ECHO_T}$TAR" >&6
4015 else
4016   echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020
4021   if test -n "$ac_tool_prefix"; then
4022   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}strip; ac_word=$2
4024 echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4026 if test "${ac_cv_prog_STRIP+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   if test -n "$STRIP"; then
4030   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045
4046 fi
4047 fi
4048 STRIP=$ac_cv_prog_STRIP
4049 if test -n "$STRIP"; then
4050   echo "$as_me:$LINENO: result: $STRIP" >&5
4051 echo "${ECHO_T}$STRIP" >&6
4052 else
4053   echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4055 fi
4056
4057 fi
4058 if test -z "$ac_cv_prog_STRIP"; then
4059   ac_ct_STRIP=$STRIP
4060   # Extract the first word of "strip", so it can be a program name with args.
4061 set dummy strip; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -n "$ac_ct_STRIP"; then
4068   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075   for ac_exec_ext in '' $ac_executable_extensions; do
4076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077     ac_cv_prog_ac_ct_STRIP="strip"
4078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079     break 2
4080   fi
4081 done
4082 done
4083
4084   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4085 fi
4086 fi
4087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4088 if test -n "$ac_ct_STRIP"; then
4089   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4090 echo "${ECHO_T}$ac_ct_STRIP" >&6
4091 else
4092   echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6
4094 fi
4095
4096   STRIP=$ac_ct_STRIP
4097 else
4098   STRIP="$ac_cv_prog_STRIP"
4099 fi
4100
4101
4102   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4103 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4104   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4105     STRIP_STATIC_LIB="$STRIP -x"
4106     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4107     echo "$as_me:$LINENO: result: yes" >&5
4108 echo "${ECHO_T}yes" >&6
4109   else
4110     STRIP_STATIC_LIB=:
4111     STRIP_SHARED_LIB=:
4112     echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114   fi
4115
4116
4117
4118
4119 for ac_prog in 'bison -y'
4120 do
4121   # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy $ac_prog; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_prog_YACC+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   if test -n "$YACC"; then
4129   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_exec_ext in '' $ac_executable_extensions; do
4137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_YACC="$ac_prog"
4139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143 done
4144
4145 fi
4146 fi
4147 YACC=$ac_cv_prog_YACC
4148 if test -n "$YACC"; then
4149   echo "$as_me:$LINENO: result: $YACC" >&5
4150 echo "${ECHO_T}$YACC" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155
4156   test -n "$YACC" && break
4157 done
4158
4159
4160 if test "$YACC"; then
4161   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4162     { echo "$as_me:$LINENO: WARNING:
4163 *** If you are going to modify the grammar files or build from CVS, the installed
4164 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4165 echo "$as_me: WARNING:
4166 *** If you are going to modify the grammar files or build from CVS, the installed
4167 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4168   fi
4169 fi
4170
4171 if test -z "$YACC"; then
4172   { echo "$as_me:$LINENO: WARNING:
4173 *** Without Bison you will not be able to build PostgreSQL from CVS or
4174 *** change any of the parser definition files.  You can obtain Bison from
4175 *** a GNU mirror site.  (If you are using the official distribution of
4176 *** PostgreSQL then you do not need to worry about this because the Bison
4177 *** output is pre-generated.)  To use a different yacc program (possible,
4178 *** but not recommended), set the environment variable YACC before running
4179 *** 'configure'." >&5
4180 echo "$as_me: WARNING:
4181 *** Without Bison you will not be able to build PostgreSQL from CVS or
4182 *** change any of the parser definition files.  You can obtain Bison from
4183 *** a GNU mirror site.  (If you are using the official distribution of
4184 *** PostgreSQL then you do not need to worry about this because the Bison
4185 *** output is pre-generated.)  To use a different yacc program (possible,
4186 *** but not recommended), set the environment variable YACC before running
4187 *** 'configure'." >&2;}
4188 fi
4189
4190
4191 # Extract the first word of "perl", so it can be a program name with args.
4192 set dummy perl; ac_word=$2
4193 echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195 if test "${ac_cv_path_PERL+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   case $PERL in
4199   [\\/]* | ?:[\\/]*)
4200   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4201   ;;
4202   *)
4203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208   for ac_exec_ext in '' $ac_executable_extensions; do
4209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215 done
4216
4217   ;;
4218 esac
4219 fi
4220 PERL=$ac_cv_path_PERL
4221
4222 if test -n "$PERL"; then
4223   echo "$as_me:$LINENO: result: $PERL" >&5
4224 echo "${ECHO_T}$PERL" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230 if test "$with_perl" = yes; then
4231
4232 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4233 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4234 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4235 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4236 echo "${ECHO_T}$perl_archlibexp" >&6
4237 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4238 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4239 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4240 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4241 echo "${ECHO_T}$perl_privlibexp" >&6
4242 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4243 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4244 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4245 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4246 echo "${ECHO_T}$perl_useshrplib" >&6
4247
4248 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4249 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4250 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4251 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4252 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4253 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4254 echo "${ECHO_T}$perl_embed_ldflags" >&6
4255 fi
4256
4257 if test "$with_python" = yes; then
4258   # Extract the first word of "python", so it can be a program name with args.
4259 set dummy python; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_PYTHON+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $PYTHON in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284   ;;
4285 esac
4286 fi
4287 PYTHON=$ac_cv_path_PYTHON
4288
4289 if test -n "$PYTHON"; then
4290   echo "$as_me:$LINENO: result: $PYTHON" >&5
4291 echo "${ECHO_T}$PYTHON" >&6
4292 else
4293   echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297 if test x"$PYTHON" = x""; then
4298   { { echo "$as_me:$LINENO: error: Python not found" >&5
4299 echo "$as_me: error: Python not found" >&2;}
4300    { (exit 1); exit 1; }; }
4301 fi
4302
4303
4304 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4305 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4306 if "${PYTHON}" 2>&- -c 'import distutils'
4307 then
4308     echo "$as_me:$LINENO: result: yes" >&5
4309 echo "${ECHO_T}yes" >&6
4310 else
4311     echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4314 echo "$as_me: error: distutils module not found" >&2;}
4315    { (exit 1); exit 1; }; }
4316 fi
4317 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4318 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4319 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4320 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4321 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4322
4323 # This should be enough of a message.
4324 echo "$as_me:$LINENO: result: $python_configdir" >&5
4325 echo "${ECHO_T}$python_configdir" >&6
4326
4327
4328 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4329 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4330
4331 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4332 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4333 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4334 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4335
4336 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4337 then
4338         # New way: use the official shared library
4339         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4340         python_libspec="-L${python_libdir} -l${ldlibrary}"
4341 else
4342         # Old way: use libpython from python_configdir
4343         python_libdir="${python_configdir}"
4344         python_libspec="-L${python_libdir} -lpython${python_version}"
4345 fi
4346
4347 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4348
4349 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4350 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4351
4352
4353 fi
4354
4355
4356 ##
4357 ## Libraries
4358 ##
4359
4360 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4361 then
4362
4363 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4364 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4365 if test "${ac_cv_lib_bsd_main+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   ac_check_lib_save_LIBS=$LIBS
4369 LIBS="-lbsd  $LIBS"
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 #include "confdefs.h"
4373
4374
4375 #ifdef F77_DUMMY_MAIN
4376 #  ifdef __cplusplus
4377      extern "C"
4378 #  endif
4379    int F77_DUMMY_MAIN() { return 1; }
4380 #endif
4381 int
4382 main ()
4383 {
4384 main ();
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext conftest$ac_exeext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4391   (eval $ac_link) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } &&
4395          { ac_try='test -s conftest$ac_exeext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   ac_cv_lib_bsd_main=yes
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 ac_cv_lib_bsd_main=no
4406 fi
4407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4409 fi
4410 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4411 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4412 if test $ac_cv_lib_bsd_main = yes; then
4413   cat >>confdefs.h <<_ACEOF
4414 #define HAVE_LIBBSD 1
4415 _ACEOF
4416
4417   LIBS="-lbsd $LIBS"
4418
4419 fi
4420
4421 fi
4422
4423 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4424 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4425 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   ac_check_lib_save_LIBS=$LIBS
4429 LIBS="-lutil  $LIBS"
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4433
4434 /* Override any gcc2 internal prototype to avoid an error.  */
4435 #ifdef __cplusplus
4436 extern "C"
4437 #endif
4438 /* We use char because int might match the return type of a gcc2
4439    builtin and then its argument prototype would still apply.  */
4440 char setproctitle ();
4441 #ifdef F77_DUMMY_MAIN
4442 #  ifdef __cplusplus
4443      extern "C"
4444 #  endif
4445    int F77_DUMMY_MAIN() { return 1; }
4446 #endif
4447 int
4448 main ()
4449 {
4450 setproctitle ();
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext conftest$ac_exeext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4457   (eval $ac_link) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } &&
4461          { ac_try='test -s conftest$ac_exeext'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; }; then
4467   ac_cv_lib_util_setproctitle=yes
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 ac_cv_lib_util_setproctitle=no
4472 fi
4473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4474 LIBS=$ac_check_lib_save_LIBS
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4477 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4478 if test $ac_cv_lib_util_setproctitle = yes; then
4479   cat >>confdefs.h <<_ACEOF
4480 #define HAVE_LIBUTIL 1
4481 _ACEOF
4482
4483   LIBS="-lutil $LIBS"
4484
4485 fi
4486
4487
4488 echo "$as_me:$LINENO: checking for main in -lm" >&5
4489 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4490 if test "${ac_cv_lib_m_main+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   ac_check_lib_save_LIBS=$LIBS
4494 LIBS="-lm  $LIBS"
4495 cat >conftest.$ac_ext <<_ACEOF
4496 #line $LINENO "configure"
4497 #include "confdefs.h"
4498
4499
4500 #ifdef F77_DUMMY_MAIN
4501 #  ifdef __cplusplus
4502      extern "C"
4503 #  endif
4504    int F77_DUMMY_MAIN() { return 1; }
4505 #endif
4506 int
4507 main ()
4508 {
4509 main ();
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516   (eval $ac_link) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -s conftest$ac_exeext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   ac_cv_lib_m_main=yes
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4530 ac_cv_lib_m_main=no
4531 fi
4532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533 LIBS=$ac_check_lib_save_LIBS
4534 fi
4535 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4536 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4537 if test $ac_cv_lib_m_main = yes; then
4538   cat >>confdefs.h <<_ACEOF
4539 #define HAVE_LIBM 1
4540 _ACEOF
4541
4542   LIBS="-lm $LIBS"
4543
4544 fi
4545
4546
4547 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4548 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4549 if test "${ac_cv_lib_dl_main+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   ac_check_lib_save_LIBS=$LIBS
4553 LIBS="-ldl  $LIBS"
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557
4558
4559 #ifdef F77_DUMMY_MAIN
4560 #  ifdef __cplusplus
4561      extern "C"
4562 #  endif
4563    int F77_DUMMY_MAIN() { return 1; }
4564 #endif
4565 int
4566 main ()
4567 {
4568 main ();
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575   (eval $ac_link) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); } &&
4579          { ac_try='test -s conftest$ac_exeext'
4580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581   (eval $ac_try) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   ac_cv_lib_dl_main=yes
4586 else
4587   echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 ac_cv_lib_dl_main=no
4590 fi
4591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4592 LIBS=$ac_check_lib_save_LIBS
4593 fi
4594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4595 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4596 if test $ac_cv_lib_dl_main = yes; then
4597   cat >>confdefs.h <<_ACEOF
4598 #define HAVE_LIBDL 1
4599 _ACEOF
4600
4601   LIBS="-ldl $LIBS"
4602
4603 fi
4604
4605
4606 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4607 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4608 if test "${ac_cv_lib_nsl_main+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-lnsl  $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 #include "confdefs.h"
4616
4617
4618 #ifdef F77_DUMMY_MAIN
4619 #  ifdef __cplusplus
4620      extern "C"
4621 #  endif
4622    int F77_DUMMY_MAIN() { return 1; }
4623 #endif
4624 int
4625 main ()
4626 {
4627 main ();
4628   ;
4629   return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext conftest$ac_exeext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4634   (eval $ac_link) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } &&
4638          { ac_try='test -s conftest$ac_exeext'
4639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640   (eval $ac_try) 2>&5
4641   ac_status=$?
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); }; }; then
4644   ac_cv_lib_nsl_main=yes
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 ac_cv_lib_nsl_main=no
4649 fi
4650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4652 fi
4653 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4654 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4655 if test $ac_cv_lib_nsl_main = yes; then
4656   cat >>confdefs.h <<_ACEOF
4657 #define HAVE_LIBNSL 1
4658 _ACEOF
4659
4660   LIBS="-lnsl $LIBS"
4661
4662 fi
4663
4664
4665 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4666 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4667 if test "${ac_cv_lib_socket_main+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   ac_check_lib_save_LIBS=$LIBS
4671 LIBS="-lsocket  $LIBS"
4672 cat >conftest.$ac_ext <<_ACEOF
4673 #line $LINENO "configure"
4674 #include "confdefs.h"
4675
4676
4677 #ifdef F77_DUMMY_MAIN
4678 #  ifdef __cplusplus
4679      extern "C"
4680 #  endif
4681    int F77_DUMMY_MAIN() { return 1; }
4682 #endif
4683 int
4684 main ()
4685 {
4686 main ();
4687   ;
4688   return 0;
4689 }
4690 _ACEOF
4691 rm -f conftest.$ac_objext conftest$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693   (eval $ac_link) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } &&
4697          { ac_try='test -s conftest$ac_exeext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   ac_cv_lib_socket_main=yes
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4707 ac_cv_lib_socket_main=no
4708 fi
4709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4710 LIBS=$ac_check_lib_save_LIBS
4711 fi
4712 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4713 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4714 if test $ac_cv_lib_socket_main = yes; then
4715   cat >>confdefs.h <<_ACEOF
4716 #define HAVE_LIBSOCKET 1
4717 _ACEOF
4718
4719   LIBS="-lsocket $LIBS"
4720
4721 fi
4722
4723
4724 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4725 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4726 if test "${ac_cv_lib_ipc_main+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lipc  $LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 #include "confdefs.h"
4734
4735
4736 #ifdef F77_DUMMY_MAIN
4737 #  ifdef __cplusplus
4738      extern "C"
4739 #  endif
4740    int F77_DUMMY_MAIN() { return 1; }
4741 #endif
4742 int
4743 main ()
4744 {
4745 main ();
4746   ;
4747   return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext conftest$ac_exeext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752   (eval $ac_link) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); } &&
4756          { ac_try='test -s conftest$ac_exeext'
4757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758   (eval $ac_try) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; }; then
4762   ac_cv_lib_ipc_main=yes
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4766 ac_cv_lib_ipc_main=no
4767 fi
4768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4769 LIBS=$ac_check_lib_save_LIBS
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4772 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4773 if test $ac_cv_lib_ipc_main = yes; then
4774   cat >>confdefs.h <<_ACEOF
4775 #define HAVE_LIBIPC 1
4776 _ACEOF
4777
4778   LIBS="-lipc $LIBS"
4779
4780 fi
4781
4782
4783 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4784 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4785 if test "${ac_cv_lib_IPC_main+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   ac_check_lib_save_LIBS=$LIBS
4789 LIBS="-lIPC  $LIBS"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4792 #include "confdefs.h"
4793
4794
4795 #ifdef F77_DUMMY_MAIN
4796 #  ifdef __cplusplus
4797      extern "C"
4798 #  endif
4799    int F77_DUMMY_MAIN() { return 1; }
4800 #endif
4801 int
4802 main ()
4803 {
4804 main ();
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811   (eval $ac_link) 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } &&
4815          { ac_try='test -s conftest$ac_exeext'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; }; then
4821   ac_cv_lib_IPC_main=yes
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 ac_cv_lib_IPC_main=no
4826 fi
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4829 fi
4830 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4831 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4832 if test $ac_cv_lib_IPC_main = yes; then
4833   cat >>confdefs.h <<_ACEOF
4834 #define HAVE_LIBIPC 1
4835 _ACEOF
4836
4837   LIBS="-lIPC $LIBS"
4838
4839 fi
4840
4841
4842 echo "$as_me:$LINENO: checking for main in -llc" >&5
4843 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4844 if test "${ac_cv_lib_lc_main+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   ac_check_lib_save_LIBS=$LIBS
4848 LIBS="-llc  $LIBS"
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line $LINENO "configure"
4851 #include "confdefs.h"
4852
4853
4854 #ifdef F77_DUMMY_MAIN
4855 #  ifdef __cplusplus
4856      extern "C"
4857 #  endif
4858    int F77_DUMMY_MAIN() { return 1; }
4859 #endif
4860 int
4861 main ()
4862 {
4863 main ();
4864   ;
4865   return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext conftest$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870   (eval $ac_link) 2>&5
4871   ac_status=$?
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -s conftest$ac_exeext'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; }; then
4880   ac_cv_lib_lc_main=yes
4881 else
4882   echo "$as_me: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 ac_cv_lib_lc_main=no
4885 fi
4886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_check_lib_save_LIBS
4888 fi
4889 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4890 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4891 if test $ac_cv_lib_lc_main = yes; then
4892   cat >>confdefs.h <<_ACEOF
4893 #define HAVE_LIBLC 1
4894 _ACEOF
4895
4896   LIBS="-llc $LIBS"
4897
4898 fi
4899
4900
4901 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4902 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4903 if test "${ac_cv_lib_dld_main+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   ac_check_lib_save_LIBS=$LIBS
4907 LIBS="-ldld  $LIBS"
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line $LINENO "configure"
4910 #include "confdefs.h"
4911
4912
4913 #ifdef F77_DUMMY_MAIN
4914 #  ifdef __cplusplus
4915      extern "C"
4916 #  endif
4917    int F77_DUMMY_MAIN() { return 1; }
4918 #endif
4919 int
4920 main ()
4921 {
4922 main ();
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext conftest$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929   (eval $ac_link) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } &&
4933          { ac_try='test -s conftest$ac_exeext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_cv_lib_dld_main=yes
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 ac_cv_lib_dld_main=no
4944 fi
4945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4946 LIBS=$ac_check_lib_save_LIBS
4947 fi
4948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4949 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4950 if test $ac_cv_lib_dld_main = yes; then
4951   cat >>confdefs.h <<_ACEOF
4952 #define HAVE_LIBDLD 1
4953 _ACEOF
4954
4955   LIBS="-ldld $LIBS"
4956
4957 fi
4958
4959
4960 echo "$as_me:$LINENO: checking for main in -lld" >&5
4961 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4962 if test "${ac_cv_lib_ld_main+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   ac_check_lib_save_LIBS=$LIBS
4966 LIBS="-lld  $LIBS"
4967 cat >conftest.$ac_ext <<_ACEOF
4968 #line $LINENO "configure"
4969 #include "confdefs.h"
4970
4971
4972 #ifdef F77_DUMMY_MAIN
4973 #  ifdef __cplusplus
4974      extern "C"
4975 #  endif
4976    int F77_DUMMY_MAIN() { return 1; }
4977 #endif
4978 int
4979 main ()
4980 {
4981 main ();
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext conftest$ac_exeext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4988   (eval $ac_link) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } &&
4992          { ac_try='test -s conftest$ac_exeext'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_lib_ld_main=yes
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 ac_cv_lib_ld_main=no
5003 fi
5004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5005 LIBS=$ac_check_lib_save_LIBS
5006 fi
5007 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5008 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5009 if test $ac_cv_lib_ld_main = yes; then
5010   cat >>confdefs.h <<_ACEOF
5011 #define HAVE_LIBLD 1
5012 _ACEOF
5013
5014   LIBS="-lld $LIBS"
5015
5016 fi
5017
5018
5019 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5020 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5021 if test "${ac_cv_lib_compat_main+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   ac_check_lib_save_LIBS=$LIBS
5025 LIBS="-lcompat  $LIBS"
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 #include "confdefs.h"
5029
5030
5031 #ifdef F77_DUMMY_MAIN
5032 #  ifdef __cplusplus
5033      extern "C"
5034 #  endif
5035    int F77_DUMMY_MAIN() { return 1; }
5036 #endif
5037 int
5038 main ()
5039 {
5040 main ();
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 rm -f conftest.$ac_objext conftest$ac_exeext
5046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5047   (eval $ac_link) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } &&
5051          { ac_try='test -s conftest$ac_exeext'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; }; then
5057   ac_cv_lib_compat_main=yes
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 ac_cv_lib_compat_main=no
5062 fi
5063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5064 LIBS=$ac_check_lib_save_LIBS
5065 fi
5066 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5067 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5068 if test $ac_cv_lib_compat_main = yes; then
5069   cat >>confdefs.h <<_ACEOF
5070 #define HAVE_LIBCOMPAT 1
5071 _ACEOF
5072
5073   LIBS="-lcompat $LIBS"
5074
5075 fi
5076
5077
5078 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5079 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5080 if test "${ac_cv_lib_BSD_main+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   ac_check_lib_save_LIBS=$LIBS
5084 LIBS="-lBSD  $LIBS"
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 #include "confdefs.h"
5088
5089
5090 #ifdef F77_DUMMY_MAIN
5091 #  ifdef __cplusplus
5092      extern "C"
5093 #  endif
5094    int F77_DUMMY_MAIN() { return 1; }
5095 #endif
5096 int
5097 main ()
5098 {
5099 main ();
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106   (eval $ac_link) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -s conftest$ac_exeext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   ac_cv_lib_BSD_main=yes
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 ac_cv_lib_BSD_main=no
5121 fi
5122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5123 LIBS=$ac_check_lib_save_LIBS
5124 fi
5125 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5126 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5127 if test $ac_cv_lib_BSD_main = yes; then
5128   cat >>confdefs.h <<_ACEOF
5129 #define HAVE_LIBBSD 1
5130 _ACEOF
5131
5132   LIBS="-lBSD $LIBS"
5133
5134 fi
5135
5136
5137 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5138 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5139 if test "${ac_cv_lib_gen_main+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   ac_check_lib_save_LIBS=$LIBS
5143 LIBS="-lgen  $LIBS"
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 #include "confdefs.h"
5147
5148
5149 #ifdef F77_DUMMY_MAIN
5150 #  ifdef __cplusplus
5151      extern "C"
5152 #  endif
5153    int F77_DUMMY_MAIN() { return 1; }
5154 #endif
5155 int
5156 main ()
5157 {
5158 main ();
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165   (eval $ac_link) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } &&
5169          { ac_try='test -s conftest$ac_exeext'
5170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171   (eval $ac_try) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }; }; then
5175   ac_cv_lib_gen_main=yes
5176 else
5177   echo "$as_me: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 ac_cv_lib_gen_main=no
5180 fi
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5183 fi
5184 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5185 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5186 if test $ac_cv_lib_gen_main = yes; then
5187   cat >>confdefs.h <<_ACEOF
5188 #define HAVE_LIBGEN 1
5189 _ACEOF
5190
5191   LIBS="-lgen $LIBS"
5192
5193 fi
5194
5195
5196 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5197 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5198 if test "${ac_cv_lib_PW_main+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-lPW  $LIBS"
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line $LINENO "configure"
5205 #include "confdefs.h"
5206
5207
5208 #ifdef F77_DUMMY_MAIN
5209 #  ifdef __cplusplus
5210      extern "C"
5211 #  endif
5212    int F77_DUMMY_MAIN() { return 1; }
5213 #endif
5214 int
5215 main ()
5216 {
5217 main ();
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } &&
5228          { ac_try='test -s conftest$ac_exeext'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; }; then
5234   ac_cv_lib_PW_main=yes
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 ac_cv_lib_PW_main=no
5239 fi
5240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5241 LIBS=$ac_check_lib_save_LIBS
5242 fi
5243 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5244 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5245 if test $ac_cv_lib_PW_main = yes; then
5246   cat >>confdefs.h <<_ACEOF
5247 #define HAVE_LIBPW 1
5248 _ACEOF
5249
5250   LIBS="-lPW $LIBS"
5251
5252 fi
5253
5254
5255 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5256 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5257 if test "${ac_cv_lib_resolv_main+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   ac_check_lib_save_LIBS=$LIBS
5261 LIBS="-lresolv  $LIBS"
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5265
5266
5267 #ifdef F77_DUMMY_MAIN
5268 #  ifdef __cplusplus
5269      extern "C"
5270 #  endif
5271    int F77_DUMMY_MAIN() { return 1; }
5272 #endif
5273 int
5274 main ()
5275 {
5276 main ();
5277   ;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest.$ac_objext conftest$ac_exeext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5283   (eval $ac_link) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } &&
5287          { ac_try='test -s conftest$ac_exeext'
5288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289   (eval $ac_try) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }; }; then
5293   ac_cv_lib_resolv_main=yes
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5297 ac_cv_lib_resolv_main=no
5298 fi
5299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5301 fi
5302 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5303 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5304 if test $ac_cv_lib_resolv_main = yes; then
5305   cat >>confdefs.h <<_ACEOF
5306 #define HAVE_LIBRESOLV 1
5307 _ACEOF
5308
5309   LIBS="-lresolv $LIBS"
5310
5311 fi
5312
5313 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5314 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5315 if test "${ac_cv_search_getopt_long+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   ac_func_search_save_LIBS=$LIBS
5319 ac_cv_search_getopt_long=no
5320 cat >conftest.$ac_ext <<_ACEOF
5321 #line $LINENO "configure"
5322 #include "confdefs.h"
5323
5324 /* Override any gcc2 internal prototype to avoid an error.  */
5325 #ifdef __cplusplus
5326 extern "C"
5327 #endif
5328 /* We use char because int might match the return type of a gcc2
5329    builtin and then its argument prototype would still apply.  */
5330 char getopt_long ();
5331 #ifdef F77_DUMMY_MAIN
5332 #  ifdef __cplusplus
5333      extern "C"
5334 #  endif
5335    int F77_DUMMY_MAIN() { return 1; }
5336 #endif
5337 int
5338 main ()
5339 {
5340 getopt_long ();
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347   (eval $ac_link) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -s conftest$ac_exeext'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; }; then
5357   ac_cv_search_getopt_long="none required"
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 fi
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 if test "$ac_cv_search_getopt_long" = no; then
5364   for ac_lib in getopt gnugetopt; do
5365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5366     cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 #include "confdefs.h"
5369
5370 /* Override any gcc2 internal prototype to avoid an error.  */
5371 #ifdef __cplusplus
5372 extern "C"
5373 #endif
5374 /* We use char because int might match the return type of a gcc2
5375    builtin and then its argument prototype would still apply.  */
5376 char getopt_long ();
5377 #ifdef F77_DUMMY_MAIN
5378 #  ifdef __cplusplus
5379      extern "C"
5380 #  endif
5381    int F77_DUMMY_MAIN() { return 1; }
5382 #endif
5383 int
5384 main ()
5385 {
5386 getopt_long ();
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext conftest$ac_exeext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5393   (eval $ac_link) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -s conftest$ac_exeext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_cv_search_getopt_long="-l$ac_lib"
5404 break
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 fi
5409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5410   done
5411 fi
5412 LIBS=$ac_func_search_save_LIBS
5413 fi
5414 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5415 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5416 if test "$ac_cv_search_getopt_long" != no; then
5417   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5418
5419 fi
5420
5421 # QNX:
5422
5423 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5424 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5425 if test "${ac_cv_lib_unix_main+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   ac_check_lib_save_LIBS=$LIBS
5429 LIBS="-lunix  $LIBS"
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 #include "confdefs.h"
5433
5434
5435 #ifdef F77_DUMMY_MAIN
5436 #  ifdef __cplusplus
5437      extern "C"
5438 #  endif
5439    int F77_DUMMY_MAIN() { return 1; }
5440 #endif
5441 int
5442 main ()
5443 {
5444 main ();
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451   (eval $ac_link) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } &&
5455          { ac_try='test -s conftest$ac_exeext'
5456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457   (eval $ac_try) 2>&5
5458   ac_status=$?
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); }; }; then
5461   ac_cv_lib_unix_main=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5465 ac_cv_lib_unix_main=no
5466 fi
5467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5471 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5472 if test $ac_cv_lib_unix_main = yes; then
5473   cat >>confdefs.h <<_ACEOF
5474 #define HAVE_LIBUNIX 1
5475 _ACEOF
5476
5477   LIBS="-lunix $LIBS"
5478
5479 fi
5480
5481 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5482 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5483 if test "${ac_cv_search_crypt+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   ac_func_search_save_LIBS=$LIBS
5487 ac_cv_search_crypt=no
5488 cat >conftest.$ac_ext <<_ACEOF
5489 #line $LINENO "configure"
5490 #include "confdefs.h"
5491
5492 /* Override any gcc2 internal prototype to avoid an error.  */
5493 #ifdef __cplusplus
5494 extern "C"
5495 #endif
5496 /* We use char because int might match the return type of a gcc2
5497    builtin and then its argument prototype would still apply.  */
5498 char crypt ();
5499 #ifdef F77_DUMMY_MAIN
5500 #  ifdef __cplusplus
5501      extern "C"
5502 #  endif
5503    int F77_DUMMY_MAIN() { return 1; }
5504 #endif
5505 int
5506 main ()
5507 {
5508 crypt ();
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515   (eval $ac_link) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } &&
5519          { ac_try='test -s conftest$ac_exeext'
5520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521   (eval $ac_try) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; }; then
5525   ac_cv_search_crypt="none required"
5526 else
5527   echo "$as_me: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 fi
5530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5531 if test "$ac_cv_search_crypt" = no; then
5532   for ac_lib in crypt; do
5533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5534     cat >conftest.$ac_ext <<_ACEOF
5535 #line $LINENO "configure"
5536 #include "confdefs.h"
5537
5538 /* Override any gcc2 internal prototype to avoid an error.  */
5539 #ifdef __cplusplus
5540 extern "C"
5541 #endif
5542 /* We use char because int might match the return type of a gcc2
5543    builtin and then its argument prototype would still apply.  */
5544 char crypt ();
5545 #ifdef F77_DUMMY_MAIN
5546 #  ifdef __cplusplus
5547      extern "C"
5548 #  endif
5549    int F77_DUMMY_MAIN() { return 1; }
5550 #endif
5551 int
5552 main ()
5553 {
5554 crypt ();
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561   (eval $ac_link) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } &&
5565          { ac_try='test -s conftest$ac_exeext'
5566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567   (eval $ac_try) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; }; then
5571   ac_cv_search_crypt="-l$ac_lib"
5572 break
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5576 fi
5577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5578   done
5579 fi
5580 LIBS=$ac_func_search_save_LIBS
5581 fi
5582 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5583 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5584 if test "$ac_cv_search_crypt" != no; then
5585   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5586
5587 fi
5588
5589 # BeOS:
5590 if test "$PORTNAME" = "beos"
5591 then
5592
5593 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5594 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5595 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5596   echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598   ac_check_lib_save_LIBS=$LIBS
5599 LIBS="-lbind  $LIBS"
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line $LINENO "configure"
5602 #include "confdefs.h"
5603
5604 /* Override any gcc2 internal prototype to avoid an error.  */
5605 #ifdef __cplusplus
5606 extern "C"
5607 #endif
5608 /* We use char because int might match the return type of a gcc2
5609    builtin and then its argument prototype would still apply.  */
5610 char __inet_ntoa ();
5611 #ifdef F77_DUMMY_MAIN
5612 #  ifdef __cplusplus
5613      extern "C"
5614 #  endif
5615    int F77_DUMMY_MAIN() { return 1; }
5616 #endif
5617 int
5618 main ()
5619 {
5620 __inet_ntoa ();
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627   (eval $ac_link) 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } &&
5631          { ac_try='test -s conftest$ac_exeext'
5632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633   (eval $ac_try) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); }; }; then
5637   ac_cv_lib_bind___inet_ntoa=yes
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5641 ac_cv_lib_bind___inet_ntoa=no
5642 fi
5643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5645 fi
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5647 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5648 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5649   cat >>confdefs.h <<_ACEOF
5650 #define HAVE_LIBBIND 1
5651 _ACEOF
5652
5653   LIBS="-lbind $LIBS"
5654
5655 fi
5656
5657 fi
5658 # Solaris:
5659 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5660 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5661 if test "${ac_cv_search_fdatasync+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   ac_func_search_save_LIBS=$LIBS
5665 ac_cv_search_fdatasync=no
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 #include "confdefs.h"
5669
5670 /* Override any gcc2 internal prototype to avoid an error.  */
5671 #ifdef __cplusplus
5672 extern "C"
5673 #endif
5674 /* We use char because int might match the return type of a gcc2
5675    builtin and then its argument prototype would still apply.  */
5676 char fdatasync ();
5677 #ifdef F77_DUMMY_MAIN
5678 #  ifdef __cplusplus
5679      extern "C"
5680 #  endif
5681    int F77_DUMMY_MAIN() { return 1; }
5682 #endif
5683 int
5684 main ()
5685 {
5686 fdatasync ();
5687   ;
5688   return 0;
5689 }
5690 _ACEOF
5691 rm -f conftest.$ac_objext conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693   (eval $ac_link) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } &&
5697          { ac_try='test -s conftest$ac_exeext'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; }; then
5703   ac_cv_search_fdatasync="none required"
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5707 fi
5708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5709 if test "$ac_cv_search_fdatasync" = no; then
5710   for ac_lib in rt posix4; do
5711     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5712     cat >conftest.$ac_ext <<_ACEOF
5713 #line $LINENO "configure"
5714 #include "confdefs.h"
5715
5716 /* Override any gcc2 internal prototype to avoid an error.  */
5717 #ifdef __cplusplus
5718 extern "C"
5719 #endif
5720 /* We use char because int might match the return type of a gcc2
5721    builtin and then its argument prototype would still apply.  */
5722 char fdatasync ();
5723 #ifdef F77_DUMMY_MAIN
5724 #  ifdef __cplusplus
5725      extern "C"
5726 #  endif
5727    int F77_DUMMY_MAIN() { return 1; }
5728 #endif
5729 int
5730 main ()
5731 {
5732 fdatasync ();
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_cv_search_fdatasync="-l$ac_lib"
5750 break
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 fi
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756   done
5757 fi
5758 LIBS=$ac_func_search_save_LIBS
5759 fi
5760 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5761 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5762 if test "$ac_cv_search_fdatasync" != no; then
5763   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5764
5765 fi
5766
5767 # Cygwin:
5768
5769 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5770 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5771 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   ac_check_lib_save_LIBS=$LIBS
5775 LIBS="-lcygipc  $LIBS"
5776 cat >conftest.$ac_ext <<_ACEOF
5777 #line $LINENO "configure"
5778 #include "confdefs.h"
5779
5780 /* Override any gcc2 internal prototype to avoid an error.  */
5781 #ifdef __cplusplus
5782 extern "C"
5783 #endif
5784 /* We use char because int might match the return type of a gcc2
5785    builtin and then its argument prototype would still apply.  */
5786 char shmget ();
5787 #ifdef F77_DUMMY_MAIN
5788 #  ifdef __cplusplus
5789      extern "C"
5790 #  endif
5791    int F77_DUMMY_MAIN() { return 1; }
5792 #endif
5793 int
5794 main ()
5795 {
5796 shmget ();
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803   (eval $ac_link) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } &&
5807          { ac_try='test -s conftest$ac_exeext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_cv_lib_cygipc_shmget=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5817 ac_cv_lib_cygipc_shmget=no
5818 fi
5819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5823 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5824 if test $ac_cv_lib_cygipc_shmget = yes; then
5825   cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LIBCYGIPC 1
5827 _ACEOF
5828
5829   LIBS="-lcygipc $LIBS"
5830
5831 fi
5832
5833 # WIN32:
5834 if test "$PORTNAME" = "win32"
5835 then
5836
5837 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5838 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5839 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842   ac_check_lib_save_LIBS=$LIBS
5843 LIBS="-lwsock32  $LIBS"
5844 cat >conftest.$ac_ext <<_ACEOF
5845 #line $LINENO "configure"
5846 #include "confdefs.h"
5847
5848
5849 #ifdef F77_DUMMY_MAIN
5850 #  ifdef __cplusplus
5851      extern "C"
5852 #  endif
5853    int F77_DUMMY_MAIN() { return 1; }
5854 #endif
5855 int
5856 main ()
5857 {
5858 main ();
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865   (eval $ac_link) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   ac_cv_lib_wsock32_main=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 ac_cv_lib_wsock32_main=no
5880 fi
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5883 fi
5884 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5885 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5886 if test $ac_cv_lib_wsock32_main = yes; then
5887   cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBWSOCK32 1
5889 _ACEOF
5890
5891   LIBS="-lwsock32 $LIBS"
5892
5893 fi
5894
5895 fi
5896
5897 if test "$with_readline" = yes; then
5898
5899 echo "$as_me:$LINENO: checking for readline" >&5
5900 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5901
5902 if test "${pgac_cv_check_readline+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   pgac_cv_check_readline=no
5906 pgac_save_LIBS=$LIBS
5907 for pgac_rllib in -lreadline -ledit ; do
5908   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5909     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
5910     cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 #include "confdefs.h"
5913
5914 /* Override any gcc2 internal prototype to avoid an error.  */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 /* We use char because int might match the return type of a gcc2
5919    builtin and then its argument prototype would still apply.  */
5920 char readline ();
5921 #ifdef F77_DUMMY_MAIN
5922 #  ifdef __cplusplus
5923      extern "C"
5924 #  endif
5925    int F77_DUMMY_MAIN() { return 1; }
5926 #endif
5927 int
5928 main ()
5929 {
5930 readline ();
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937   (eval $ac_link) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); } &&
5941          { ac_try='test -s conftest$ac_exeext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947
5948       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
5949       # recognize dependent libraries; assume curses is needed if we didn't
5950       # find any dependency.
5951       case $host_os in
5952         netbsd* | openbsd* | irix*)
5953           if test x"$pgac_lib" = x"" ; then
5954             pgac_lib=" -lcurses"
5955           fi ;;
5956       esac
5957
5958       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5959       break 2
5960
5961 else
5962   echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 fi
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966   done
5967 done
5968 LIBS=$pgac_save_LIBS
5969
5970 fi
5971
5972 if test "$pgac_cv_check_readline" != no ; then
5973
5974 cat >>confdefs.h <<\_ACEOF
5975 #define HAVE_LIBREADLINE 1
5976 _ACEOF
5977
5978   LIBS="$pgac_cv_check_readline $LIBS"
5979   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5980 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5981 else
5982   echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984 fi
5985   if test x"$pgac_cv_check_readline" = x"no"; then
5986     { { echo "$as_me:$LINENO: error: readline library not found
5987 If you have readline already installed, see config.log for details on the
5988 failure.  It is possible the compiler isn't looking in the proper directory.
5989 Use --without-readline to disable readline support." >&5
5990 echo "$as_me: error: readline library not found
5991 If you have readline already installed, see config.log for details on the
5992 failure.  It is possible the compiler isn't looking in the proper directory.
5993 Use --without-readline to disable readline support." >&2;}
5994    { (exit 1); exit 1; }; }
5995   fi
5996 fi
5997
5998 if test "$with_zlib" = yes; then
5999
6000 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6001 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6002 if test "${ac_cv_lib_z_inflate+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   ac_check_lib_save_LIBS=$LIBS
6006 LIBS="-lz  $LIBS"
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 #include "confdefs.h"
6010
6011 /* Override any gcc2 internal prototype to avoid an error.  */
6012 #ifdef __cplusplus
6013 extern "C"
6014 #endif
6015 /* We use char because int might match the return type of a gcc2
6016    builtin and then its argument prototype would still apply.  */
6017 char inflate ();
6018 #ifdef F77_DUMMY_MAIN
6019 #  ifdef __cplusplus
6020      extern "C"
6021 #  endif
6022    int F77_DUMMY_MAIN() { return 1; }
6023 #endif
6024 int
6025 main ()
6026 {
6027 inflate ();
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034   (eval $ac_link) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } &&
6038          { ac_try='test -s conftest$ac_exeext'
6039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040   (eval $ac_try) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   ac_cv_lib_z_inflate=yes
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_lib_z_inflate=no
6049 fi
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 LIBS=$ac_check_lib_save_LIBS
6052 fi
6053 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6054 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6055 if test $ac_cv_lib_z_inflate = yes; then
6056   cat >>confdefs.h <<_ACEOF
6057 #define HAVE_LIBZ 1
6058 _ACEOF
6059
6060   LIBS="-lz $LIBS"
6061
6062 else
6063   { { echo "$as_me:$LINENO: error: zlib library not found
6064 If you have zlib already installed, see config.log for details on the
6065 failure.  It is possible the compiler isn't looking in the proper directory.
6066 Use --without-zlib to disable zlib support." >&5
6067 echo "$as_me: error: zlib library not found
6068 If you have zlib already installed, see config.log for details on the
6069 failure.  It is possible the compiler isn't looking in the proper directory.
6070 Use --without-zlib to disable zlib support." >&2;}
6071    { (exit 1); exit 1; }; }
6072 fi
6073
6074 fi
6075
6076 if test "$enable_spinlocks" = yes; then
6077
6078 cat >>confdefs.h <<\_ACEOF
6079 #define HAVE_SPINLOCKS 1
6080 _ACEOF
6081
6082 else
6083   { echo "$as_me:$LINENO: WARNING:
6084 *** Not using spinlocks will cause poor performance." >&5
6085 echo "$as_me: WARNING:
6086 *** Not using spinlocks will cause poor performance." >&2;}
6087 fi
6088
6089 if test "$with_krb5" = yes ; then
6090   if test "$PORTNAME" != "win32"; then
6091      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6092 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6093 if test "${ac_cv_search_com_err+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   ac_func_search_save_LIBS=$LIBS
6097 ac_cv_search_com_err=no
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6101
6102 /* Override any gcc2 internal prototype to avoid an error.  */
6103 #ifdef __cplusplus
6104 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107    builtin and then its argument prototype would still apply.  */
6108 char com_err ();
6109 #ifdef F77_DUMMY_MAIN
6110 #  ifdef __cplusplus
6111      extern "C"
6112 #  endif
6113    int F77_DUMMY_MAIN() { return 1; }
6114 #endif
6115 int
6116 main ()
6117 {
6118 com_err ();
6119   ;
6120   return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125   (eval $ac_link) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -s conftest$ac_exeext'
6130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131   (eval $ac_try) 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }; }; then
6135   ac_cv_search_com_err="none required"
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 fi
6140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6141 if test "$ac_cv_search_com_err" = no; then
6142   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6144     cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 #include "confdefs.h"
6147
6148 /* Override any gcc2 internal prototype to avoid an error.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 /* We use char because int might match the return type of a gcc2
6153    builtin and then its argument prototype would still apply.  */
6154 char com_err ();
6155 #ifdef F77_DUMMY_MAIN
6156 #  ifdef __cplusplus
6157      extern "C"
6158 #  endif
6159    int F77_DUMMY_MAIN() { return 1; }
6160 #endif
6161 int
6162 main ()
6163 {
6164 com_err ();
6165   ;
6166   return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } &&
6175          { ac_try='test -s conftest$ac_exeext'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; }; then
6181   ac_cv_search_com_err="-l$ac_lib"
6182 break
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6186 fi
6187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6188   done
6189 fi
6190 LIBS=$ac_func_search_save_LIBS
6191 fi
6192 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6193 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6194 if test "$ac_cv_search_com_err" != no; then
6195   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6196
6197 else
6198   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6199 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6200    { (exit 1); exit 1; }; }
6201 fi
6202
6203      echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6204 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6205 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   ac_func_search_save_LIBS=$LIBS
6209 ac_cv_search_krb5_encrypt=no
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line $LINENO "configure"
6212 #include "confdefs.h"
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219    builtin and then its argument prototype would still apply.  */
6220 char krb5_encrypt ();
6221 #ifdef F77_DUMMY_MAIN
6222 #  ifdef __cplusplus
6223      extern "C"
6224 #  endif
6225    int F77_DUMMY_MAIN() { return 1; }
6226 #endif
6227 int
6228 main ()
6229 {
6230 krb5_encrypt ();
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237   (eval $ac_link) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); } &&
6241          { ac_try='test -s conftest$ac_exeext'
6242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243   (eval $ac_try) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); }; }; then
6247   ac_cv_search_krb5_encrypt="none required"
6248 else
6249   echo "$as_me: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 fi
6252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6253 if test "$ac_cv_search_krb5_encrypt" = no; then
6254   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6256     cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 #include "confdefs.h"
6259
6260 /* Override any gcc2 internal prototype to avoid an error.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 /* We use char because int might match the return type of a gcc2
6265    builtin and then its argument prototype would still apply.  */
6266 char krb5_encrypt ();
6267 #ifdef F77_DUMMY_MAIN
6268 #  ifdef __cplusplus
6269      extern "C"
6270 #  endif
6271    int F77_DUMMY_MAIN() { return 1; }
6272 #endif
6273 int
6274 main ()
6275 {
6276 krb5_encrypt ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283   (eval $ac_link) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -s conftest$ac_exeext'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   ac_cv_search_krb5_encrypt="-l$ac_lib"
6294 break
6295 else
6296   echo "$as_me: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 fi
6299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300   done
6301 fi
6302 LIBS=$ac_func_search_save_LIBS
6303 fi
6304 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6305 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6306 if test "$ac_cv_search_krb5_encrypt" != no; then
6307   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6308
6309 else
6310   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6311 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6312    { (exit 1); exit 1; }; }
6313 fi
6314
6315      echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6316 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6317 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   ac_func_search_save_LIBS=$LIBS
6321 ac_cv_search_krb5_sendauth=no
6322 cat >conftest.$ac_ext <<_ACEOF
6323 #line $LINENO "configure"
6324 #include "confdefs.h"
6325
6326 /* Override any gcc2 internal prototype to avoid an error.  */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 /* We use char because int might match the return type of a gcc2
6331    builtin and then its argument prototype would still apply.  */
6332 char krb5_sendauth ();
6333 #ifdef F77_DUMMY_MAIN
6334 #  ifdef __cplusplus
6335      extern "C"
6336 #  endif
6337    int F77_DUMMY_MAIN() { return 1; }
6338 #endif
6339 int
6340 main ()
6341 {
6342 krb5_sendauth ();
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349   (eval $ac_link) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -s conftest$ac_exeext'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; }; then
6359   ac_cv_search_krb5_sendauth="none required"
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 fi
6364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6365 if test "$ac_cv_search_krb5_sendauth" = no; then
6366   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6367     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6368     cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6371
6372 /* Override any gcc2 internal prototype to avoid an error.  */
6373 #ifdef __cplusplus
6374 extern "C"
6375 #endif
6376 /* We use char because int might match the return type of a gcc2
6377    builtin and then its argument prototype would still apply.  */
6378 char krb5_sendauth ();
6379 #ifdef F77_DUMMY_MAIN
6380 #  ifdef __cplusplus
6381      extern "C"
6382 #  endif
6383    int F77_DUMMY_MAIN() { return 1; }
6384 #endif
6385 int
6386 main ()
6387 {
6388 krb5_sendauth ();
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395   (eval $ac_link) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -s conftest$ac_exeext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   ac_cv_search_krb5_sendauth="-l$ac_lib"
6406 break
6407 else
6408   echo "$as_me: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6410 fi
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412   done
6413 fi
6414 LIBS=$ac_func_search_save_LIBS
6415 fi
6416 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6417 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6418 if test "$ac_cv_search_krb5_sendauth" != no; then
6419   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6420
6421 else
6422   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6423 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6424    { (exit 1); exit 1; }; }
6425 fi
6426
6427   else
6428      echo "$as_me:$LINENO: checking for library containing com_err" >&5
6429 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6430 if test "${ac_cv_search_com_err+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   ac_func_search_save_LIBS=$LIBS
6434 ac_cv_search_com_err=no
6435 cat >conftest.$ac_ext <<_ACEOF
6436 #line $LINENO "configure"
6437 #include "confdefs.h"
6438
6439 /* Override any gcc2 internal prototype to avoid an error.  */
6440 #ifdef __cplusplus
6441 extern "C"
6442 #endif
6443 /* We use char because int might match the return type of a gcc2
6444    builtin and then its argument prototype would still apply.  */
6445 char com_err ();
6446 #ifdef F77_DUMMY_MAIN
6447 #  ifdef __cplusplus
6448      extern "C"
6449 #  endif
6450    int F77_DUMMY_MAIN() { return 1; }
6451 #endif
6452 int
6453 main ()
6454 {
6455 com_err ();
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -s conftest$ac_exeext'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   ac_cv_search_com_err="none required"
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6476 fi
6477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478 if test "$ac_cv_search_com_err" = no; then
6479   for ac_lib in 'comerr32 -lkrb5_32'; do
6480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6481     cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6484
6485 /* Override any gcc2 internal prototype to avoid an error.  */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 /* We use char because int might match the return type of a gcc2
6490    builtin and then its argument prototype would still apply.  */
6491 char com_err ();
6492 #ifdef F77_DUMMY_MAIN
6493 #  ifdef __cplusplus
6494      extern "C"
6495 #  endif
6496    int F77_DUMMY_MAIN() { return 1; }
6497 #endif
6498 int
6499 main ()
6500 {
6501 com_err ();
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508   (eval $ac_link) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } &&
6512          { ac_try='test -s conftest$ac_exeext'
6513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514   (eval $ac_try) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); }; }; then
6518   ac_cv_search_com_err="-l$ac_lib"
6519 break
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 fi
6524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6525   done
6526 fi
6527 LIBS=$ac_func_search_save_LIBS
6528 fi
6529 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6530 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6531 if test "$ac_cv_search_com_err" != no; then
6532   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6533
6534 else
6535   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6536 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6537    { (exit 1); exit 1; }; }
6538 fi
6539
6540   fi
6541 fi
6542
6543 if test "$with_openssl" = yes ; then
6544     if test "$PORTNAME" != "win32"; then
6545
6546 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6547 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6548 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   ac_check_lib_save_LIBS=$LIBS
6552 LIBS="-lcrypto  $LIBS"
6553 cat >conftest.$ac_ext <<_ACEOF
6554 #line $LINENO "configure"
6555 #include "confdefs.h"
6556
6557 /* Override any gcc2 internal prototype to avoid an error.  */
6558 #ifdef __cplusplus
6559 extern "C"
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562    builtin and then its argument prototype would still apply.  */
6563 char CRYPTO_new_ex_data ();
6564 #ifdef F77_DUMMY_MAIN
6565 #  ifdef __cplusplus
6566      extern "C"
6567 #  endif
6568    int F77_DUMMY_MAIN() { return 1; }
6569 #endif
6570 int
6571 main ()
6572 {
6573 CRYPTO_new_ex_data ();
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580   (eval $ac_link) 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); } &&
6584          { ac_try='test -s conftest$ac_exeext'
6585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586   (eval $ac_try) 2>&5
6587   ac_status=$?
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); }; }; then
6590   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6591 else
6592   echo "$as_me: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6595 fi
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_check_lib_save_LIBS
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6600 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6601 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6602   cat >>confdefs.h <<_ACEOF
6603 #define HAVE_LIBCRYPTO 1
6604 _ACEOF
6605
6606   LIBS="-lcrypto $LIBS"
6607
6608 else
6609   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6610 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6611    { (exit 1); exit 1; }; }
6612 fi
6613
6614
6615 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6616 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6617 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   ac_check_lib_save_LIBS=$LIBS
6621 LIBS="-lssl  $LIBS"
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 #include "confdefs.h"
6625
6626 /* Override any gcc2 internal prototype to avoid an error.  */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 /* We use char because int might match the return type of a gcc2
6631    builtin and then its argument prototype would still apply.  */
6632 char SSL_library_init ();
6633 #ifdef F77_DUMMY_MAIN
6634 #  ifdef __cplusplus
6635      extern "C"
6636 #  endif
6637    int F77_DUMMY_MAIN() { return 1; }
6638 #endif
6639 int
6640 main ()
6641 {
6642 SSL_library_init ();
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649   (eval $ac_link) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } &&
6653          { ac_try='test -s conftest$ac_exeext'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659   ac_cv_lib_ssl_SSL_library_init=yes
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_cv_lib_ssl_SSL_library_init=no
6664 fi
6665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6666 LIBS=$ac_check_lib_save_LIBS
6667 fi
6668 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6669 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6670 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6671   cat >>confdefs.h <<_ACEOF
6672 #define HAVE_LIBSSL 1
6673 _ACEOF
6674
6675   LIBS="-lssl $LIBS"
6676
6677 else
6678   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6679 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6680    { (exit 1); exit 1; }; }
6681 fi
6682
6683   else
6684
6685 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6686 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6687 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   ac_check_lib_save_LIBS=$LIBS
6691 LIBS="-leay32  $LIBS"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695
6696 /* Override any gcc2 internal prototype to avoid an error.  */
6697 #ifdef __cplusplus
6698 extern "C"
6699 #endif
6700 /* We use char because int might match the return type of a gcc2
6701    builtin and then its argument prototype would still apply.  */
6702 char CRYPTO_new_ex_data ();
6703 #ifdef F77_DUMMY_MAIN
6704 #  ifdef __cplusplus
6705      extern "C"
6706 #  endif
6707    int F77_DUMMY_MAIN() { return 1; }
6708 #endif
6709 int
6710 main ()
6711 {
6712 CRYPTO_new_ex_data ();
6713   ;
6714   return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719   (eval $ac_link) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); } &&
6723          { ac_try='test -s conftest$ac_exeext'
6724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725   (eval $ac_try) 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }; }; then
6729   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6734 fi
6735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6736 LIBS=$ac_check_lib_save_LIBS
6737 fi
6738 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6739 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6740 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6741   cat >>confdefs.h <<_ACEOF
6742 #define HAVE_LIBEAY32 1
6743 _ACEOF
6744
6745   LIBS="-leay32 $LIBS"
6746
6747 else
6748   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6749 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6750    { (exit 1); exit 1; }; }
6751 fi
6752
6753
6754 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
6755 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
6756 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   ac_check_lib_save_LIBS=$LIBS
6760 LIBS="-lssleay32  $LIBS"
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 #include "confdefs.h"
6764
6765 /* Override any gcc2 internal prototype to avoid an error.  */
6766 #ifdef __cplusplus
6767 extern "C"
6768 #endif
6769 /* We use char because int might match the return type of a gcc2
6770    builtin and then its argument prototype would still apply.  */
6771 char SSL_library_init ();
6772 #ifdef F77_DUMMY_MAIN
6773 #  ifdef __cplusplus
6774      extern "C"
6775 #  endif
6776    int F77_DUMMY_MAIN() { return 1; }
6777 #endif
6778 int
6779 main ()
6780 {
6781 SSL_library_init ();
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788   (eval $ac_link) 2>&5
6789   ac_status=$?
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); } &&
6792          { ac_try='test -s conftest$ac_exeext'
6793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794   (eval $ac_try) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); }; }; then
6798   ac_cv_lib_ssleay32_SSL_library_init=yes
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6802 ac_cv_lib_ssleay32_SSL_library_init=no
6803 fi
6804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6805 LIBS=$ac_check_lib_save_LIBS
6806 fi
6807 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
6808 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
6809 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
6810   cat >>confdefs.h <<_ACEOF
6811 #define HAVE_LIBSSLEAY32 1
6812 _ACEOF
6813
6814   LIBS="-lssleay32 $LIBS"
6815
6816 else
6817   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
6818 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
6819    { (exit 1); exit 1; }; }
6820 fi
6821
6822   fi
6823 fi
6824
6825 if test "$with_pam" = yes ; then
6826
6827 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6828 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6829 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   ac_check_lib_save_LIBS=$LIBS
6833 LIBS="-lpam  $LIBS"
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 #ifdef __cplusplus
6840 extern "C"
6841 #endif
6842 /* We use char because int might match the return type of a gcc2
6843    builtin and then its argument prototype would still apply.  */
6844 char pam_start ();
6845 #ifdef F77_DUMMY_MAIN
6846 #  ifdef __cplusplus
6847      extern "C"
6848 #  endif
6849    int F77_DUMMY_MAIN() { return 1; }
6850 #endif
6851 int
6852 main ()
6853 {
6854 pam_start ();
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861   (eval $ac_link) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -s conftest$ac_exeext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   ac_cv_lib_pam_pam_start=yes
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_cv_lib_pam_pam_start=no
6876 fi
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 LIBS=$ac_check_lib_save_LIBS
6879 fi
6880 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6881 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6882 if test $ac_cv_lib_pam_pam_start = yes; then
6883   cat >>confdefs.h <<_ACEOF
6884 #define HAVE_LIBPAM 1
6885 _ACEOF
6886
6887   LIBS="-lpam $LIBS"
6888
6889 else
6890   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6891 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6892    { (exit 1); exit 1; }; }
6893 fi
6894
6895 fi
6896
6897
6898 ##
6899 ## Header files
6900 ##
6901
6902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6904 if test "${ac_cv_header_stdc+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 #include "confdefs.h"
6910 #include <stdlib.h>
6911 #include <stdarg.h>
6912 #include <string.h>
6913 #include <float.h>
6914
6915 _ACEOF
6916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6918   ac_status=$?
6919   egrep -v '^ *\+' conftest.er1 >conftest.err
6920   rm -f conftest.er1
6921   cat conftest.err >&5
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); } >/dev/null; then
6924   if test -s conftest.err; then
6925     ac_cpp_err=$ac_c_preproc_warn_flag
6926   else
6927     ac_cpp_err=
6928   fi
6929 else
6930   ac_cpp_err=yes
6931 fi
6932 if test -z "$ac_cpp_err"; then
6933   ac_cv_header_stdc=yes
6934 else
6935   echo "$as_me: failed program was:" >&5
6936   cat conftest.$ac_ext >&5
6937   ac_cv_header_stdc=no
6938 fi
6939 rm -f conftest.err conftest.$ac_ext
6940
6941 if test $ac_cv_header_stdc = yes; then
6942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943   cat >conftest.$ac_ext <<_ACEOF
6944 #line $LINENO "configure"
6945 #include "confdefs.h"
6946 #include <string.h>
6947
6948 _ACEOF
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950   egrep "memchr" >/dev/null 2>&1; then
6951   :
6952 else
6953   ac_cv_header_stdc=no
6954 fi
6955 rm -f conftest*
6956
6957 fi
6958
6959 if test $ac_cv_header_stdc = yes; then
6960   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6961   cat >conftest.$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6964 #include <stdlib.h>
6965
6966 _ACEOF
6967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6968   egrep "free" >/dev/null 2>&1; then
6969   :
6970 else
6971   ac_cv_header_stdc=no
6972 fi
6973 rm -f conftest*
6974
6975 fi
6976
6977 if test $ac_cv_header_stdc = yes; then
6978   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6979   if test "$cross_compiling" = yes; then
6980   :
6981 else
6982   cat >conftest.$ac_ext <<_ACEOF
6983 #line $LINENO "configure"
6984 #include "confdefs.h"
6985 #include <ctype.h>
6986 #if ((' ' & 0x0FF) == 0x020)
6987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6989 #else
6990 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6991                      || ('j' <= (c) && (c) <= 'r') \
6992                      || ('s' <= (c) && (c) <= 'z'))
6993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6994 #endif
6995
6996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6997 int
6998 main ()
6999 {
7000   int i;
7001   for (i = 0; i < 256; i++)
7002     if (XOR (islower (i), ISLOWER (i))
7003         || toupper (i) != TOUPPER (i))
7004       exit(2);
7005   exit (0);
7006 }
7007 _ACEOF
7008 rm -f conftest$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010   (eval $ac_link) 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   :
7020 else
7021   echo "$as_me: program exited with status $ac_status" >&5
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 ( exit $ac_status )
7025 ac_cv_header_stdc=no
7026 fi
7027 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 fi
7030 fi
7031 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7032 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7033 if test $ac_cv_header_stdc = yes; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define STDC_HEADERS 1
7037 _ACEOF
7038
7039 fi
7040
7041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7052                   inttypes.h stdint.h unistd.h
7053 do
7054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7055 echo "$as_me:$LINENO: checking for $ac_header" >&5
7056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   cat >conftest.$ac_ext <<_ACEOF
7061 #line $LINENO "configure"
7062 #include "confdefs.h"
7063 $ac_includes_default
7064
7065 #include <$ac_header>
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   eval "$as_ac_Header=yes"
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 eval "$as_ac_Header=no"
7084 fi
7085 rm -f conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090   cat >>confdefs.h <<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7092 _ACEOF
7093
7094 fi
7095
7096 done
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.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/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7125 do
7126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128   echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 fi
7133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7135 else
7136   # Is the header compilable?
7137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7142 $ac_includes_default
7143 #include <$ac_header>
7144 _ACEOF
7145 rm -f conftest.$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147   (eval $ac_compile) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -s conftest.$ac_objext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   ac_header_compiler=yes
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 ac_header_compiler=no
7162 fi
7163 rm -f conftest.$ac_objext conftest.$ac_ext
7164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7165 echo "${ECHO_T}$ac_header_compiler" >&6
7166
7167 # Is the header present?
7168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7172 #include "confdefs.h"
7173 #include <$ac_header>
7174 _ACEOF
7175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7177   ac_status=$?
7178   egrep -v '^ *\+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } >/dev/null; then
7183   if test -s conftest.err; then
7184     ac_cpp_err=$ac_c_preproc_warn_flag
7185   else
7186     ac_cpp_err=
7187   fi
7188 else
7189   ac_cpp_err=yes
7190 fi
7191 if test -z "$ac_cpp_err"; then
7192   ac_header_preproc=yes
7193 else
7194   echo "$as_me: failed program was:" >&5
7195   cat conftest.$ac_ext >&5
7196   ac_header_preproc=no
7197 fi
7198 rm -f conftest.err conftest.$ac_ext
7199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7200 echo "${ECHO_T}$ac_header_preproc" >&6
7201
7202 # So?  What about this header?
7203 case $ac_header_compiler:$ac_header_preproc in
7204   yes:no )
7205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7209   no:yes )
7210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7212     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7216 esac
7217 echo "$as_me:$LINENO: checking for $ac_header" >&5
7218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   eval "$as_ac_Header=$ac_header_preproc"
7223 fi
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226
7227 fi
7228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7229   cat >>confdefs.h <<_ACEOF
7230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 _ACEOF
7232
7233 fi
7234
7235 done
7236
7237
7238 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7239 # netinet/in.h is included first.
7240
7241 for ac_header in netinet/in.h
7242 do
7243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245   echo "$as_me:$LINENO: checking for $ac_header" >&5
7246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 fi
7250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7252 else
7253   # Is the header compilable?
7254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7257 #line $LINENO "configure"
7258 #include "confdefs.h"
7259 $ac_includes_default
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264   (eval $ac_compile) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } &&
7268          { ac_try='test -s conftest.$ac_objext'
7269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270   (eval $ac_try) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); }; }; then
7274   ac_header_compiler=yes
7275 else
7276   echo "$as_me: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 ac_header_compiler=no
7279 fi
7280 rm -f conftest.$ac_objext conftest.$ac_ext
7281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7282 echo "${ECHO_T}$ac_header_compiler" >&6
7283
7284 # Is the header present?
7285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 #include "confdefs.h"
7290 #include <$ac_header>
7291 _ACEOF
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7294   ac_status=$?
7295   egrep -v '^ *\+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } >/dev/null; then
7300   if test -s conftest.err; then
7301     ac_cpp_err=$ac_c_preproc_warn_flag
7302   else
7303     ac_cpp_err=
7304   fi
7305 else
7306   ac_cpp_err=yes
7307 fi
7308 if test -z "$ac_cpp_err"; then
7309   ac_header_preproc=yes
7310 else
7311   echo "$as_me: failed program was:" >&5
7312   cat conftest.$ac_ext >&5
7313   ac_header_preproc=no
7314 fi
7315 rm -f conftest.err conftest.$ac_ext
7316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7317 echo "${ECHO_T}$ac_header_preproc" >&6
7318
7319 # So?  What about this header?
7320 case $ac_header_compiler:$ac_header_preproc in
7321   yes:no )
7322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7326   no:yes )
7327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7329     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7333 esac
7334 echo "$as_me:$LINENO: checking for $ac_header" >&5
7335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   eval "$as_ac_Header=$ac_header_preproc"
7340 fi
7341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7343
7344 fi
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346   cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 _ACEOF
7349
7350 fi
7351
7352 done
7353
7354
7355 for ac_header in netinet/tcp.h
7356 do
7357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7358 echo "$as_me:$LINENO: checking for $ac_header" >&5
7359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7366 $ac_includes_default
7367 #ifdef HAVE_NETINET_IN_H
7368 #include <netinet/in.h>
7369 #endif
7370
7371
7372 #include <$ac_header>
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376   (eval $ac_compile) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } &&
7380          { ac_try='test -s conftest.$ac_objext'
7381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382   (eval $ac_try) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; }; then
7386   eval "$as_ac_Header=yes"
7387 else
7388   echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 eval "$as_ac_Header=no"
7391 fi
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397   cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399 _ACEOF
7400
7401 fi
7402
7403 done
7404
7405
7406 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7407
7408 for ac_header in readline/readline.h
7409 do
7410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 fi
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7419 else
7420   # Is the header compilable?
7421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line $LINENO "configure"
7425 #include "confdefs.h"
7426 $ac_includes_default
7427 #include <$ac_header>
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431   (eval $ac_compile) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   ac_header_compiler=yes
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 ac_header_compiler=no
7446 fi
7447 rm -f conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7450
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 #line $LINENO "configure"
7456 #include "confdefs.h"
7457 #include <$ac_header>
7458 _ACEOF
7459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7461   ac_status=$?
7462   egrep -v '^ *\+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null; then
7467   if test -s conftest.err; then
7468     ac_cpp_err=$ac_c_preproc_warn_flag
7469   else
7470     ac_cpp_err=
7471   fi
7472 else
7473   ac_cpp_err=yes
7474 fi
7475 if test -z "$ac_cpp_err"; then
7476   ac_header_preproc=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479   cat conftest.$ac_ext >&5
7480   ac_header_preproc=no
7481 fi
7482 rm -f conftest.err conftest.$ac_ext
7483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6
7485
7486 # So?  What about this header?
7487 case $ac_header_compiler:$ac_header_preproc in
7488   yes:no )
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7493   no:yes )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7500 esac
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   eval "$as_ac_Header=$ac_header_preproc"
7507 fi
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7510
7511 fi
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513   cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7516
7517 else
7518
7519 for ac_header in readline.h
7520 do
7521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7523   echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 fi
7528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7530 else
7531   # Is the header compilable?
7532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7534 cat >conftest.$ac_ext <<_ACEOF
7535 #line $LINENO "configure"
7536 #include "confdefs.h"
7537 $ac_includes_default
7538 #include <$ac_header>
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); } &&
7546          { ac_try='test -s conftest.$ac_objext'
7547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548   (eval $ac_try) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }; }; then
7552   ac_header_compiler=yes
7553 else
7554   echo "$as_me: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7556 ac_header_compiler=no
7557 fi
7558 rm -f conftest.$ac_objext conftest.$ac_ext
7559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7560 echo "${ECHO_T}$ac_header_compiler" >&6
7561
7562 # Is the header present?
7563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7565 cat >conftest.$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7567 #include "confdefs.h"
7568 #include <$ac_header>
7569 _ACEOF
7570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7572   ac_status=$?
7573   egrep -v '^ *\+' conftest.er1 >conftest.err
7574   rm -f conftest.er1
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } >/dev/null; then
7578   if test -s conftest.err; then
7579     ac_cpp_err=$ac_c_preproc_warn_flag
7580   else
7581     ac_cpp_err=
7582   fi
7583 else
7584   ac_cpp_err=yes
7585 fi
7586 if test -z "$ac_cpp_err"; then
7587   ac_header_preproc=yes
7588 else
7589   echo "$as_me: failed program was:" >&5
7590   cat conftest.$ac_ext >&5
7591   ac_header_preproc=no
7592 fi
7593 rm -f conftest.err conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7595 echo "${ECHO_T}$ac_header_preproc" >&6
7596
7597 # So?  What about this header?
7598 case $ac_header_compiler:$ac_header_preproc in
7599   yes:no )
7600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7604   no:yes )
7605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7607     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7611 esac
7612 echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   eval "$as_ac_Header=$ac_header_preproc"
7618 fi
7619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7621
7622 fi
7623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7624   cat >>confdefs.h <<_ACEOF
7625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 _ACEOF
7627
7628 else
7629   { { echo "$as_me:$LINENO: error: readline header not found
7630 If you have readline already installed, see config.log for details on the
7631 failure.  It is possible the compiler isn't looking in the proper directory.
7632 Use --without-readline to disable readline support." >&5
7633 echo "$as_me: error: readline header not found
7634 If you have readline already installed, see config.log for details on the
7635 failure.  It is possible the compiler isn't looking in the proper directory.
7636 Use --without-readline to disable readline support." >&2;}
7637    { (exit 1); exit 1; }; }
7638 fi
7639
7640 done
7641
7642 fi
7643
7644 done
7645
7646
7647 for ac_header in readline/history.h
7648 do
7649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7651   echo "$as_me:$LINENO: checking for $ac_header" >&5
7652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 fi
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 else
7659   # Is the header compilable?
7660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7664 #include "confdefs.h"
7665 $ac_includes_default
7666 #include <$ac_header>
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670   (eval $ac_compile) 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } &&
7674          { ac_try='test -s conftest.$ac_objext'
7675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676   (eval $ac_try) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); }; }; then
7680   ac_header_compiler=yes
7681 else
7682   echo "$as_me: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7684 ac_header_compiler=no
7685 fi
7686 rm -f conftest.$ac_objext conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7688 echo "${ECHO_T}$ac_header_compiler" >&6
7689
7690 # Is the header present?
7691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7694 #line $LINENO "configure"
7695 #include "confdefs.h"
7696 #include <$ac_header>
7697 _ACEOF
7698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7700   ac_status=$?
7701   egrep -v '^ *\+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } >/dev/null; then
7706   if test -s conftest.err; then
7707     ac_cpp_err=$ac_c_preproc_warn_flag
7708   else
7709     ac_cpp_err=
7710   fi
7711 else
7712   ac_cpp_err=yes
7713 fi
7714 if test -z "$ac_cpp_err"; then
7715   ac_header_preproc=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718   cat conftest.$ac_ext >&5
7719   ac_header_preproc=no
7720 fi
7721 rm -f conftest.err conftest.$ac_ext
7722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 echo "${ECHO_T}$ac_header_preproc" >&6
7724
7725 # So?  What about this header?
7726 case $ac_header_compiler:$ac_header_preproc in
7727   yes:no )
7728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7732   no:yes )
7733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7735     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7739 esac
7740 echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   eval "$as_ac_Header=$ac_header_preproc"
7746 fi
7747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7749
7750 fi
7751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7752   cat >>confdefs.h <<_ACEOF
7753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754 _ACEOF
7755
7756 else
7757
7758 for ac_header in history.h
7759 do
7760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762   echo "$as_me:$LINENO: checking for $ac_header" >&5
7763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 fi
7767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769 else
7770   # Is the header compilable?
7771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #include <$ac_header>
7778 _ACEOF
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781   (eval $ac_compile) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -s conftest.$ac_objext'
7786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787   (eval $ac_try) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; }; then
7791   ac_header_compiler=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_header_compiler=no
7796 fi
7797 rm -f conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 #include "confdefs.h"
7807 #include <$ac_header>
7808 _ACEOF
7809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7811   ac_status=$?
7812   egrep -v '^ *\+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } >/dev/null; then
7817   if test -s conftest.err; then
7818     ac_cpp_err=$ac_c_preproc_warn_flag
7819   else
7820     ac_cpp_err=
7821   fi
7822 else
7823   ac_cpp_err=yes
7824 fi
7825 if test -z "$ac_cpp_err"; then
7826   ac_header_preproc=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829   cat conftest.$ac_ext >&5
7830   ac_header_preproc=no
7831 fi
7832 rm -f conftest.err conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7834 echo "${ECHO_T}$ac_header_preproc" >&6
7835
7836 # So?  What about this header?
7837 case $ac_header_compiler:$ac_header_preproc in
7838   yes:no )
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7843   no:yes )
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7850 esac
7851 echo "$as_me:$LINENO: checking for $ac_header" >&5
7852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   eval "$as_ac_Header=$ac_header_preproc"
7857 fi
7858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7860
7861 fi
7862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7863   cat >>confdefs.h <<_ACEOF
7864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7865 _ACEOF
7866
7867 else
7868   { { echo "$as_me:$LINENO: error: history header not found
7869 If you have readline already installed, see config.log for details on the
7870 failure.  It is possible the compiler isn't looking in the proper directory.
7871 Use --without-readline to disable readline support." >&5
7872 echo "$as_me: error: history header not found
7873 If you have readline already installed, see config.log for details on the
7874 failure.  It is possible the compiler isn't looking in the proper directory.
7875 Use --without-readline to disable readline support." >&2;}
7876    { (exit 1); exit 1; }; }
7877 fi
7878
7879 done
7880
7881 fi
7882
7883 done
7884
7885 fi
7886
7887 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
7888 # Some installations of libedit usurp /usr/include/readline/, which seems
7889 # bad practice, since in combined installations readline will have its headers
7890 # there.  We might have to resort to AC_EGREP checks to make sure we found
7891 # the proper header...
7892
7893 for ac_header in editline/readline.h
7894 do
7895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7897   echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 fi
7902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904 else
7905   # Is the header compilable?
7906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line $LINENO "configure"
7910 #include "confdefs.h"
7911 $ac_includes_default
7912 #include <$ac_header>
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916   (eval $ac_compile) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } &&
7920          { ac_try='test -s conftest.$ac_objext'
7921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922   (eval $ac_try) 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); }; }; then
7926   ac_header_compiler=yes
7927 else
7928   echo "$as_me: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7930 ac_header_compiler=no
7931 fi
7932 rm -f conftest.$ac_objext conftest.$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7934 echo "${ECHO_T}$ac_header_compiler" >&6
7935
7936 # Is the header present?
7937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 #include <$ac_header>
7943 _ACEOF
7944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7946   ac_status=$?
7947   egrep -v '^ *\+' conftest.er1 >conftest.err
7948   rm -f conftest.er1
7949   cat conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } >/dev/null; then
7952   if test -s conftest.err; then
7953     ac_cpp_err=$ac_c_preproc_warn_flag
7954   else
7955     ac_cpp_err=
7956   fi
7957 else
7958   ac_cpp_err=yes
7959 fi
7960 if test -z "$ac_cpp_err"; then
7961   ac_header_preproc=yes
7962 else
7963   echo "$as_me: failed program was:" >&5
7964   cat conftest.$ac_ext >&5
7965   ac_header_preproc=no
7966 fi
7967 rm -f conftest.err conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7969 echo "${ECHO_T}$ac_header_preproc" >&6
7970
7971 # So?  What about this header?
7972 case $ac_header_compiler:$ac_header_preproc in
7973   yes:no )
7974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7978   no:yes )
7979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7981     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7985 esac
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991   eval "$as_ac_Header=$ac_header_preproc"
7992 fi
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995
7996 fi
7997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998   cat >>confdefs.h <<_ACEOF
7999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 else
8003
8004 for ac_header in readline.h
8005 do
8006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8008   echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 fi
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015 else
8016   # Is the header compilable?
8017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 #include "confdefs.h"
8022 $ac_includes_default
8023 #include <$ac_header>
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027   (eval $ac_compile) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest.$ac_objext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_header_compiler=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_header_compiler=no
8042 fi
8043 rm -f conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045 echo "${ECHO_T}$ac_header_compiler" >&6
8046
8047 # Is the header present?
8048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 #include <$ac_header>
8054 _ACEOF
8055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8057   ac_status=$?
8058   egrep -v '^ *\+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } >/dev/null; then
8063   if test -s conftest.err; then
8064     ac_cpp_err=$ac_c_preproc_warn_flag
8065   else
8066     ac_cpp_err=
8067   fi
8068 else
8069   ac_cpp_err=yes
8070 fi
8071 if test -z "$ac_cpp_err"; then
8072   ac_header_preproc=yes
8073 else
8074   echo "$as_me: failed program was:" >&5
8075   cat conftest.$ac_ext >&5
8076   ac_header_preproc=no
8077 fi
8078 rm -f conftest.err conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8080 echo "${ECHO_T}$ac_header_preproc" >&6
8081
8082 # So?  What about this header?
8083 case $ac_header_compiler:$ac_header_preproc in
8084   yes:no )
8085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8089   no:yes )
8090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8092     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8096 esac
8097 echo "$as_me:$LINENO: checking for $ac_header" >&5
8098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   eval "$as_ac_Header=$ac_header_preproc"
8103 fi
8104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106
8107 fi
8108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8109   cat >>confdefs.h <<_ACEOF
8110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111 _ACEOF
8112
8113 else
8114
8115 for ac_header in readline/readline.h
8116 do
8117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8119   echo "$as_me:$LINENO: checking for $ac_header" >&5
8120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 fi
8124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8126 else
8127   # Is the header compilable?
8128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 #include "confdefs.h"
8133 $ac_includes_default
8134 #include <$ac_header>
8135 _ACEOF
8136 rm -f conftest.$ac_objext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138   (eval $ac_compile) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -s conftest.$ac_objext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   ac_header_compiler=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8152 ac_header_compiler=no
8153 fi
8154 rm -f conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 echo "${ECHO_T}$ac_header_compiler" >&6
8157
8158 # Is the header present?
8159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 #include "confdefs.h"
8164 #include <$ac_header>
8165 _ACEOF
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168   ac_status=$?
8169   egrep -v '^ *\+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } >/dev/null; then
8174   if test -s conftest.err; then
8175     ac_cpp_err=$ac_c_preproc_warn_flag
8176   else
8177     ac_cpp_err=
8178   fi
8179 else
8180   ac_cpp_err=yes
8181 fi
8182 if test -z "$ac_cpp_err"; then
8183   ac_header_preproc=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186   cat conftest.$ac_ext >&5
8187   ac_header_preproc=no
8188 fi
8189 rm -f conftest.err conftest.$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8191 echo "${ECHO_T}$ac_header_preproc" >&6
8192
8193 # So?  What about this header?
8194 case $ac_header_compiler:$ac_header_preproc in
8195   yes:no )
8196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8200   no:yes )
8201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8203     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8207 esac
8208 echo "$as_me:$LINENO: checking for $ac_header" >&5
8209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   eval "$as_ac_Header=$ac_header_preproc"
8214 fi
8215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8217
8218 fi
8219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8220   cat >>confdefs.h <<_ACEOF
8221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8222 _ACEOF
8223
8224 else
8225   { { echo "$as_me:$LINENO: error: readline header not found
8226 If you have libedit already installed, see config.log for details on the
8227 failure.  It is possible the compiler isn't looking in the proper directory.
8228 Use --without-readline to disable libedit support." >&5
8229 echo "$as_me: error: readline header not found
8230 If you have libedit already installed, see config.log for details on the
8231 failure.  It is possible the compiler isn't looking in the proper directory.
8232 Use --without-readline to disable libedit support." >&2;}
8233    { (exit 1); exit 1; }; }
8234 fi
8235
8236 done
8237
8238 fi
8239
8240 done
8241
8242 fi
8243
8244 done
8245
8246
8247 for ac_header in editline/history.h
8248 do
8249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8251   echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 fi
8256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8258 else
8259   # Is the header compilable?
8260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8265 $ac_includes_default
8266 #include <$ac_header>
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270   (eval $ac_compile) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } &&
8274          { ac_try='test -s conftest.$ac_objext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   ac_header_compiler=yes
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 ac_header_compiler=no
8285 fi
8286 rm -f conftest.$ac_objext conftest.$ac_ext
8287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288 echo "${ECHO_T}$ac_header_compiler" >&6
8289
8290 # Is the header present?
8291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8294 #line $LINENO "configure"
8295 #include "confdefs.h"
8296 #include <$ac_header>
8297 _ACEOF
8298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8300   ac_status=$?
8301   egrep -v '^ *\+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } >/dev/null; then
8306   if test -s conftest.err; then
8307     ac_cpp_err=$ac_c_preproc_warn_flag
8308   else
8309     ac_cpp_err=
8310   fi
8311 else
8312   ac_cpp_err=yes
8313 fi
8314 if test -z "$ac_cpp_err"; then
8315   ac_header_preproc=yes
8316 else
8317   echo "$as_me: failed program was:" >&5
8318   cat conftest.$ac_ext >&5
8319   ac_header_preproc=no
8320 fi
8321 rm -f conftest.err conftest.$ac_ext
8322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8323 echo "${ECHO_T}$ac_header_preproc" >&6
8324
8325 # So?  What about this header?
8326 case $ac_header_compiler:$ac_header_preproc in
8327   yes:no )
8328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8332   no:yes )
8333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8339 esac
8340 echo "$as_me:$LINENO: checking for $ac_header" >&5
8341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345   eval "$as_ac_Header=$ac_header_preproc"
8346 fi
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8349
8350 fi
8351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8352   cat >>confdefs.h <<_ACEOF
8353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8354 _ACEOF
8355
8356 else
8357
8358 for ac_header in history.h
8359 do
8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8362   echo "$as_me:$LINENO: checking for $ac_header" >&5
8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 fi
8367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8369 else
8370   # Is the header compilable?
8371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8373 cat >conftest.$ac_ext <<_ACEOF
8374 #line $LINENO "configure"
8375 #include "confdefs.h"
8376 $ac_includes_default
8377 #include <$ac_header>
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381   (eval $ac_compile) 2>&5
8382   ac_status=$?
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } &&
8385          { ac_try='test -s conftest.$ac_objext'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; }; then
8391   ac_header_compiler=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 ac_header_compiler=no
8396 fi
8397 rm -f conftest.$ac_objext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399 echo "${ECHO_T}$ac_header_compiler" >&6
8400
8401 # Is the header present?
8402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line $LINENO "configure"
8406 #include "confdefs.h"
8407 #include <$ac_header>
8408 _ACEOF
8409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8411   ac_status=$?
8412   egrep -v '^ *\+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } >/dev/null; then
8417   if test -s conftest.err; then
8418     ac_cpp_err=$ac_c_preproc_warn_flag
8419   else
8420     ac_cpp_err=
8421   fi
8422 else
8423   ac_cpp_err=yes
8424 fi
8425 if test -z "$ac_cpp_err"; then
8426   ac_header_preproc=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429   cat conftest.$ac_ext >&5
8430   ac_header_preproc=no
8431 fi
8432 rm -f conftest.err conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6
8435
8436 # So?  What about this header?
8437 case $ac_header_compiler:$ac_header_preproc in
8438   yes:no )
8439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8443   no:yes )
8444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8446     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8450 esac
8451 echo "$as_me:$LINENO: checking for $ac_header" >&5
8452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   eval "$as_ac_Header=$ac_header_preproc"
8457 fi
8458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460
8461 fi
8462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8463   cat >>confdefs.h <<_ACEOF
8464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 _ACEOF
8466
8467 else
8468
8469 for ac_header in readline/history.h
8470 do
8471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8473   echo "$as_me:$LINENO: checking for $ac_header" >&5
8474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 fi
8478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480 else
8481   # Is the header compilable?
8482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8486 #include "confdefs.h"
8487 $ac_includes_default
8488 #include <$ac_header>
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492   (eval $ac_compile) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -s conftest.$ac_objext'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_header_compiler=yes
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 ac_header_compiler=no
8507 fi
8508 rm -f conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8510 echo "${ECHO_T}$ac_header_compiler" >&6
8511
8512 # Is the header present?
8513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line $LINENO "configure"
8517 #include "confdefs.h"
8518 #include <$ac_header>
8519 _ACEOF
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8522   ac_status=$?
8523   egrep -v '^ *\+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } >/dev/null; then
8528   if test -s conftest.err; then
8529     ac_cpp_err=$ac_c_preproc_warn_flag
8530   else
8531     ac_cpp_err=
8532   fi
8533 else
8534   ac_cpp_err=yes
8535 fi
8536 if test -z "$ac_cpp_err"; then
8537   ac_header_preproc=yes
8538 else
8539   echo "$as_me: failed program was:" >&5
8540   cat conftest.$ac_ext >&5
8541   ac_header_preproc=no
8542 fi
8543 rm -f conftest.err conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8545 echo "${ECHO_T}$ac_header_preproc" >&6
8546
8547 # So?  What about this header?
8548 case $ac_header_compiler:$ac_header_preproc in
8549   yes:no )
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8554   no:yes )
8555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8557     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8561 esac
8562 echo "$as_me:$LINENO: checking for $ac_header" >&5
8563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   eval "$as_ac_Header=$ac_header_preproc"
8568 fi
8569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8571
8572 fi
8573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8574   cat >>confdefs.h <<_ACEOF
8575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576 _ACEOF
8577
8578 else
8579   { { echo "$as_me:$LINENO: error: history header not found
8580 If you have libedit already installed, see config.log for details on the
8581 failure.  It is possible the compiler isn't looking in the proper directory.
8582 Use --without-readline to disable libedit support." >&5
8583 echo "$as_me: error: history header not found
8584 If you have libedit already installed, see config.log for details on the
8585 failure.  It is possible the compiler isn't looking in the proper directory.
8586 Use --without-readline to disable libedit support." >&2;}
8587    { (exit 1); exit 1; }; }
8588 fi
8589
8590 done
8591
8592 fi
8593
8594 done
8595
8596 fi
8597
8598 done
8599
8600 fi
8601
8602 if test "$with_zlib" = yes; then
8603   if test "${ac_cv_header_zlib_h+set}" = set; then
8604   echo "$as_me:$LINENO: checking for zlib.h" >&5
8605 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8606 if test "${ac_cv_header_zlib_h+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 fi
8609 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8610 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8611 else
8612   # Is the header compilable?
8613 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8614 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line $LINENO "configure"
8617 #include "confdefs.h"
8618 $ac_includes_default
8619 #include <zlib.h>
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623   (eval $ac_compile) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -s conftest.$ac_objext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_header_compiler=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 cat conftest.$ac_ext >&5
8637 ac_header_compiler=no
8638 fi
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8642
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8645 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 #include <zlib.h>
8650 _ACEOF
8651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653   ac_status=$?
8654   egrep -v '^ *\+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } >/dev/null; then
8659   if test -s conftest.err; then
8660     ac_cpp_err=$ac_c_preproc_warn_flag
8661   else
8662     ac_cpp_err=
8663   fi
8664 else
8665   ac_cpp_err=yes
8666 fi
8667 if test -z "$ac_cpp_err"; then
8668   ac_header_preproc=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671   cat conftest.$ac_ext >&5
8672   ac_header_preproc=no
8673 fi
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8677
8678 # So?  What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8680   yes:no )
8681     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8685   no:yes )
8686     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8687 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8688     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8690     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8692 esac
8693 echo "$as_me:$LINENO: checking for zlib.h" >&5
8694 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8695 if test "${ac_cv_header_zlib_h+set}" = set; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   ac_cv_header_zlib_h=$ac_header_preproc
8699 fi
8700 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8701 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8702
8703 fi
8704 if test $ac_cv_header_zlib_h = yes; then
8705   :
8706 else
8707   { { echo "$as_me:$LINENO: error: zlib header not found
8708 If you have zlib already installed, see config.log for details on the
8709 failure.  It is possible the compiler isn't looking in the proper directory.
8710 Use --without-zlib to disable zlib support." >&5
8711 echo "$as_me: error: zlib header not found
8712 If you have zlib already installed, see config.log for details on the
8713 failure.  It is possible the compiler isn't looking in the proper directory.
8714 Use --without-zlib to disable zlib support." >&2;}
8715    { (exit 1); exit 1; }; }
8716 fi
8717
8718
8719 fi
8720
8721 if test "$with_krb5" = yes ; then
8722   if test "${ac_cv_header_krb5_h+set}" = set; then
8723   echo "$as_me:$LINENO: checking for krb5.h" >&5
8724 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8725 if test "${ac_cv_header_krb5_h+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 fi
8728 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8729 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8730 else
8731   # Is the header compilable?
8732 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8733 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 #include "confdefs.h"
8737 $ac_includes_default
8738 #include <krb5.h>
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742   (eval $ac_compile) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } &&
8746          { ac_try='test -s conftest.$ac_objext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_header_compiler=yes
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 ac_header_compiler=no
8757 fi
8758 rm -f conftest.$ac_objext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760 echo "${ECHO_T}$ac_header_compiler" >&6
8761
8762 # Is the header present?
8763 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8764 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line $LINENO "configure"
8767 #include "confdefs.h"
8768 #include <krb5.h>
8769 _ACEOF
8770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8772   ac_status=$?
8773   egrep -v '^ *\+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } >/dev/null; then
8778   if test -s conftest.err; then
8779     ac_cpp_err=$ac_c_preproc_warn_flag
8780   else
8781     ac_cpp_err=
8782   fi
8783 else
8784   ac_cpp_err=yes
8785 fi
8786 if test -z "$ac_cpp_err"; then
8787   ac_header_preproc=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790   cat conftest.$ac_ext >&5
8791   ac_header_preproc=no
8792 fi
8793 rm -f conftest.err conftest.$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6
8796
8797 # So?  What about this header?
8798 case $ac_header_compiler:$ac_header_preproc in
8799   yes:no )
8800     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8803 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8804   no:yes )
8805     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8806 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8808 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8811 esac
8812 echo "$as_me:$LINENO: checking for krb5.h" >&5
8813 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8814 if test "${ac_cv_header_krb5_h+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   ac_cv_header_krb5_h=$ac_header_preproc
8818 fi
8819 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8820 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8821
8822 fi
8823 if test $ac_cv_header_krb5_h = yes; then
8824   :
8825 else
8826   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8827 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8828    { (exit 1); exit 1; }; }
8829 fi
8830
8831
8832 fi
8833
8834 if test "$with_openssl" = yes ; then
8835   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8836   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8837 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8838 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8842 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8843 else
8844   # Is the header compilable?
8845 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8846 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8849 #include "confdefs.h"
8850 $ac_includes_default
8851 #include <openssl/ssl.h>
8852 _ACEOF
8853 rm -f conftest.$ac_objext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855   (eval $ac_compile) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -s conftest.$ac_objext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   ac_header_compiler=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8869 ac_header_compiler=no
8870 fi
8871 rm -f conftest.$ac_objext conftest.$ac_ext
8872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8873 echo "${ECHO_T}$ac_header_compiler" >&6
8874
8875 # Is the header present?
8876 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8877 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 #include <openssl/ssl.h>
8882 _ACEOF
8883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8885   ac_status=$?
8886   egrep -v '^ *\+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } >/dev/null; then
8891   if test -s conftest.err; then
8892     ac_cpp_err=$ac_c_preproc_warn_flag
8893   else
8894     ac_cpp_err=
8895   fi
8896 else
8897   ac_cpp_err=yes
8898 fi
8899 if test -z "$ac_cpp_err"; then
8900   ac_header_preproc=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903   cat conftest.$ac_ext >&5
8904   ac_header_preproc=no
8905 fi
8906 rm -f conftest.err conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8908 echo "${ECHO_T}$ac_header_preproc" >&6
8909
8910 # So?  What about this header?
8911 case $ac_header_compiler:$ac_header_preproc in
8912   yes:no )
8913     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8914 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8915     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8916 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8917   no:yes )
8918     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8919 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8920     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8921 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8922     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8923 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8924 esac
8925 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8926 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8927 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8931 fi
8932 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8933 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8934
8935 fi
8936 if test $ac_cv_header_openssl_ssl_h = yes; then
8937   :
8938 else
8939   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8940 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8941    { (exit 1); exit 1; }; }
8942 fi
8943
8944
8945   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8946   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8947 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8948 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 fi
8951 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8952 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8953 else
8954   # Is the header compilable?
8955 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8956 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8959 #include "confdefs.h"
8960 $ac_includes_default
8961 #include <openssl/err.h>
8962 _ACEOF
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965   (eval $ac_compile) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -s conftest.$ac_objext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   ac_header_compiler=yes
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8979 ac_header_compiler=no
8980 fi
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983 echo "${ECHO_T}$ac_header_compiler" >&6
8984
8985 # Is the header present?
8986 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8987 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8990 #include "confdefs.h"
8991 #include <openssl/err.h>
8992 _ACEOF
8993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8995   ac_status=$?
8996   egrep -v '^ *\+' conftest.er1 >conftest.err
8997   rm -f conftest.er1
8998   cat conftest.err >&5
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } >/dev/null; then
9001   if test -s conftest.err; then
9002     ac_cpp_err=$ac_c_preproc_warn_flag
9003   else
9004     ac_cpp_err=
9005   fi
9006 else
9007   ac_cpp_err=yes
9008 fi
9009 if test -z "$ac_cpp_err"; then
9010   ac_header_preproc=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013   cat conftest.$ac_ext >&5
9014   ac_header_preproc=no
9015 fi
9016 rm -f conftest.err conftest.$ac_ext
9017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018 echo "${ECHO_T}$ac_header_preproc" >&6
9019
9020 # So?  What about this header?
9021 case $ac_header_compiler:$ac_header_preproc in
9022   yes:no )
9023     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9024 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9026 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9027   no:yes )
9028     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9029 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9030     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9031 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9032     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9033 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9034 esac
9035 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9036 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9037 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   ac_cv_header_openssl_err_h=$ac_header_preproc
9041 fi
9042 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9043 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9044
9045 fi
9046 if test $ac_cv_header_openssl_err_h = yes; then
9047   :
9048 else
9049   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9050 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9051    { (exit 1); exit 1; }; }
9052 fi
9053
9054
9055 fi
9056
9057 if test "$with_pam" = yes ; then
9058
9059 for ac_header in security/pam_appl.h
9060 do
9061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9063   echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 fi
9068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9070 else
9071   # Is the header compilable?
9072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 #include "confdefs.h"
9077 $ac_includes_default
9078 #include <$ac_header>
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082   (eval $ac_compile) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -s conftest.$ac_objext'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; }; then
9092   ac_header_compiler=yes
9093 else
9094   echo "$as_me: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 ac_header_compiler=no
9097 fi
9098 rm -f conftest.$ac_objext conftest.$ac_ext
9099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100 echo "${ECHO_T}$ac_header_compiler" >&6
9101
9102 # Is the header present?
9103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9108 #include <$ac_header>
9109 _ACEOF
9110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9112   ac_status=$?
9113   egrep -v '^ *\+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } >/dev/null; then
9118   if test -s conftest.err; then
9119     ac_cpp_err=$ac_c_preproc_warn_flag
9120   else
9121     ac_cpp_err=
9122   fi
9123 else
9124   ac_cpp_err=yes
9125 fi
9126 if test -z "$ac_cpp_err"; then
9127   ac_header_preproc=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130   cat conftest.$ac_ext >&5
9131   ac_header_preproc=no
9132 fi
9133 rm -f conftest.err conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135 echo "${ECHO_T}$ac_header_preproc" >&6
9136
9137 # So?  What about this header?
9138 case $ac_header_compiler:$ac_header_preproc in
9139   yes:no )
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9144   no:yes )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9151 esac
9152 echo "$as_me:$LINENO: checking for $ac_header" >&5
9153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157   eval "$as_ac_Header=$ac_header_preproc"
9158 fi
9159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9161
9162 fi
9163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9164   cat >>confdefs.h <<_ACEOF
9165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 _ACEOF
9167
9168 else
9169
9170 for ac_header in pam/pam_appl.h
9171 do
9172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174   echo "$as_me:$LINENO: checking for $ac_header" >&5
9175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 fi
9179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9181 else
9182   # Is the header compilable?
9183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9188 $ac_includes_default
9189 #include <$ac_header>
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9193   (eval $ac_compile) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); } &&
9197          { ac_try='test -s conftest.$ac_objext'
9198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199   (eval $ac_try) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); }; }; then
9203   ac_header_compiler=yes
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9207 ac_header_compiler=no
9208 fi
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9212
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 #include "confdefs.h"
9219 #include <$ac_header>
9220 _ACEOF
9221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9223   ac_status=$?
9224   egrep -v '^ *\+' conftest.er1 >conftest.err
9225   rm -f conftest.er1
9226   cat conftest.err >&5
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); } >/dev/null; then
9229   if test -s conftest.err; then
9230     ac_cpp_err=$ac_c_preproc_warn_flag
9231   else
9232     ac_cpp_err=
9233   fi
9234 else
9235   ac_cpp_err=yes
9236 fi
9237 if test -z "$ac_cpp_err"; then
9238   ac_header_preproc=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241   cat conftest.$ac_ext >&5
9242   ac_header_preproc=no
9243 fi
9244 rm -f conftest.err conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9246 echo "${ECHO_T}$ac_header_preproc" >&6
9247
9248 # So?  What about this header?
9249 case $ac_header_compiler:$ac_header_preproc in
9250   yes:no )
9251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9255   no:yes )
9256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9258     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9262 esac
9263 echo "$as_me:$LINENO: checking for $ac_header" >&5
9264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   eval "$as_ac_Header=$ac_header_preproc"
9269 fi
9270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9272
9273 fi
9274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9275   cat >>confdefs.h <<_ACEOF
9276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 _ACEOF
9278
9279 else
9280   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9281 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9282    { (exit 1); exit 1; }; }
9283 fi
9284
9285 done
9286
9287 fi
9288
9289 done
9290
9291 fi
9292
9293 if test "$with_bonjour" = yes ; then
9294   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9295   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9296 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9297 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9301 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9302 else
9303   # Is the header compilable?
9304 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9305 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line $LINENO "configure"
9308 #include "confdefs.h"
9309 $ac_includes_default
9310 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314   (eval $ac_compile) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -s conftest.$ac_objext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_header_compiler=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9328 ac_header_compiler=no
9329 fi
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6
9333
9334 # Is the header present?
9335 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9336 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9338 #line $LINENO "configure"
9339 #include "confdefs.h"
9340 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9341 _ACEOF
9342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9344   ac_status=$?
9345   egrep -v '^ *\+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } >/dev/null; then
9350   if test -s conftest.err; then
9351     ac_cpp_err=$ac_c_preproc_warn_flag
9352   else
9353     ac_cpp_err=
9354   fi
9355 else
9356   ac_cpp_err=yes
9357 fi
9358 if test -z "$ac_cpp_err"; then
9359   ac_header_preproc=yes
9360 else
9361   echo "$as_me: failed program was:" >&5
9362   cat conftest.$ac_ext >&5
9363   ac_header_preproc=no
9364 fi
9365 rm -f conftest.err conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9367 echo "${ECHO_T}$ac_header_preproc" >&6
9368
9369 # So?  What about this header?
9370 case $ac_header_compiler:$ac_header_preproc in
9371   yes:no )
9372     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9373 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9374     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9375 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9376   no:yes )
9377     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9378 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9380 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9381     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9382 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9383 esac
9384 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9385 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9386 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9390 fi
9391 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9393
9394 fi
9395 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9396   :
9397 else
9398   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
9399 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
9400    { (exit 1); exit 1; }; }
9401 fi
9402
9403
9404 fi
9405
9406
9407 ##
9408 ## Types, structures, compiler characteristics
9409 ##
9410
9411
9412 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9413 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9414 if test "${ac_cv_c_const+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9419 #include "confdefs.h"
9420
9421 #ifdef F77_DUMMY_MAIN
9422 #  ifdef __cplusplus
9423      extern "C"
9424 #  endif
9425    int F77_DUMMY_MAIN() { return 1; }
9426 #endif
9427 int
9428 main ()
9429 {
9430 /* FIXME: Include the comments suggested by Paul. */
9431 #ifndef __cplusplus
9432   /* Ultrix mips cc rejects this.  */
9433   typedef int charset[2];
9434   const charset x;
9435   /* SunOS 4.1.1 cc rejects this.  */
9436   char const *const *ccp;
9437   char **p;
9438   /* NEC SVR4.0.2 mips cc rejects this.  */
9439   struct point {int x, y;};
9440   static struct point const zero = {0,0};
9441   /* AIX XL C 1.02.0.0 rejects this.
9442      It does not let you subtract one const X* pointer from another in
9443      an arm of an if-expression whose if-part is not a constant
9444      expression */
9445   const char *g = "string";
9446   ccp = &g + (g ? g-g : 0);
9447   /* HPUX 7.0 cc rejects these. */
9448   ++ccp;
9449   p = (char**) ccp;
9450   ccp = (char const *const *) p;
9451   { /* SCO 3.2v4 cc rejects this.  */
9452     char *t;
9453     char const *s = 0 ? (char *) 0 : (char const *) 0;
9454
9455     *t++ = 0;
9456   }
9457   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9458     int x[] = {25, 17};
9459     const int *foo = &x[0];
9460     ++foo;
9461   }
9462   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9463     typedef const int *iptr;
9464     iptr p = 0;
9465     ++p;
9466   }
9467   { /* AIX XL C 1.02.0.0 rejects this saying
9468        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9469     struct s { int j; const int *ap[3]; };
9470     struct s *b; b->j = 5;
9471   }
9472   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9473     const int foo = 10;
9474   }
9475 #endif
9476
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 rm -f conftest.$ac_objext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9483   (eval $ac_compile) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -s conftest.$ac_objext'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; }; then
9493   ac_cv_c_const=yes
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 ac_cv_c_const=no
9498 fi
9499 rm -f conftest.$ac_objext conftest.$ac_ext
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9502 echo "${ECHO_T}$ac_cv_c_const" >&6
9503 if test $ac_cv_c_const = no; then
9504
9505 cat >>confdefs.h <<\_ACEOF
9506 #define const
9507 _ACEOF
9508
9509 fi
9510
9511 echo "$as_me:$LINENO: checking for inline" >&5
9512 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9513 if test "${ac_cv_c_inline+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   ac_cv_c_inline=no
9517 for ac_kw in inline __inline__ __inline; do
9518   cat >conftest.$ac_ext <<_ACEOF
9519 #line $LINENO "configure"
9520 #include "confdefs.h"
9521 #ifndef __cplusplus
9522 typedef int foo_t;
9523 static $ac_kw foo_t static_foo () {return 0; }
9524 $ac_kw int foo () {return 0; }
9525 #endif
9526
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530   (eval $ac_compile) 2>&5
9531   ac_status=$?
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } &&
9534          { ac_try='test -s conftest.$ac_objext'
9535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536   (eval $ac_try) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; }; then
9540   ac_cv_c_inline=$ac_kw; break
9541 else
9542   echo "$as_me: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9544 fi
9545 rm -f conftest.$ac_objext conftest.$ac_ext
9546 done
9547
9548 fi
9549 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9550 echo "${ECHO_T}$ac_cv_c_inline" >&6
9551 case $ac_cv_c_inline in
9552   inline | yes) ;;
9553   no)
9554 cat >>confdefs.h <<\_ACEOF
9555 #define inline
9556 _ACEOF
9557  ;;
9558   *)  cat >>confdefs.h <<_ACEOF
9559 #define inline $ac_cv_c_inline
9560 _ACEOF
9561  ;;
9562 esac
9563
9564 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9565 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9566 if test "${ac_cv_c_stringize+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9572 #define x(y) #y
9573
9574 char *s = x(teststring);
9575 _ACEOF
9576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9577   egrep "#teststring" >/dev/null 2>&1; then
9578   ac_cv_c_stringize=no
9579 else
9580   ac_cv_c_stringize=yes
9581 fi
9582 rm -f conftest*
9583
9584 fi
9585 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9586 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9587 if test $ac_cv_c_stringize = yes; then
9588
9589 cat >>confdefs.h <<\_ACEOF
9590 #define HAVE_STRINGIZE 1
9591 _ACEOF
9592
9593 fi
9594
9595 echo "$as_me:$LINENO: checking for signed types" >&5
9596 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9597 if test "${pgac_cv_c_signed+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603
9604 #ifdef F77_DUMMY_MAIN
9605 #  ifdef __cplusplus
9606      extern "C"
9607 #  endif
9608    int F77_DUMMY_MAIN() { return 1; }
9609 #endif
9610 int
9611 main ()
9612 {
9613 signed char c; signed short s; signed int i;
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620   (eval $ac_compile) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } &&
9624          { ac_try='test -s conftest.$ac_objext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   pgac_cv_c_signed=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 pgac_cv_c_signed=no
9635 fi
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9639 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9640 if test x"$pgac_cv_c_signed" = xno ; then
9641
9642 cat >>confdefs.h <<\_ACEOF
9643 #define signed
9644 _ACEOF
9645
9646 fi
9647 echo "$as_me:$LINENO: checking for working volatile" >&5
9648 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9649 if test "${ac_cv_c_volatile+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   cat >conftest.$ac_ext <<_ACEOF
9653 #line $LINENO "configure"
9654 #include "confdefs.h"
9655
9656 #ifdef F77_DUMMY_MAIN
9657 #  ifdef __cplusplus
9658      extern "C"
9659 #  endif
9660    int F77_DUMMY_MAIN() { return 1; }
9661 #endif
9662 int
9663 main ()
9664 {
9665
9666 volatile int x;
9667 int * volatile y;
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674   (eval $ac_compile) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -s conftest.$ac_objext'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   ac_cv_c_volatile=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 ac_cv_c_volatile=no
9689 fi
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9691 fi
9692 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9693 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9694 if test $ac_cv_c_volatile = no; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define volatile
9698 _ACEOF
9699
9700 fi
9701
9702 echo "$as_me:$LINENO: checking for __func__" >&5
9703 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9704 if test "${pgac_cv_funcname_func_support+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   cat >conftest.$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9709 #include "confdefs.h"
9710 #include <stdio.h>
9711 #ifdef F77_DUMMY_MAIN
9712 #  ifdef __cplusplus
9713      extern "C"
9714 #  endif
9715    int F77_DUMMY_MAIN() { return 1; }
9716 #endif
9717 int
9718 main ()
9719 {
9720 printf("%s\n", __func__);
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727   (eval $ac_compile) 2>&5
9728   ac_status=$?
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } &&
9731          { ac_try='test -s conftest.$ac_objext'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; }; then
9737   pgac_cv_funcname_func_support=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 cat conftest.$ac_ext >&5
9741 pgac_cv_funcname_func_support=no
9742 fi
9743 rm -f conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9746 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9747 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9748
9749 cat >>confdefs.h <<\_ACEOF
9750 #define HAVE_FUNCNAME__FUNC 1
9751 _ACEOF
9752
9753 else
9754 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9755 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9756 if test "${pgac_cv_funcname_function_support+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 #line $LINENO "configure"
9761 #include "confdefs.h"
9762 #include <stdio.h>
9763 #ifdef F77_DUMMY_MAIN
9764 #  ifdef __cplusplus
9765      extern "C"
9766 #  endif
9767    int F77_DUMMY_MAIN() { return 1; }
9768 #endif
9769 int
9770 main ()
9771 {
9772 printf("%s\n", __FUNCTION__);
9773   ;
9774   return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779   (eval $ac_compile) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -s conftest.$ac_objext'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789   pgac_cv_funcname_function_support=yes
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 pgac_cv_funcname_function_support=no
9794 fi
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9798 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9799 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_FUNCNAME__FUNCTION 1
9803 _ACEOF
9804
9805 fi
9806 fi
9807 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9809 if test "${ac_cv_struct_tm+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   cat >conftest.$ac_ext <<_ACEOF
9813 #line $LINENO "configure"
9814 #include "confdefs.h"
9815 #include <sys/types.h>
9816 #include <time.h>
9817
9818 #ifdef F77_DUMMY_MAIN
9819 #  ifdef __cplusplus
9820      extern "C"
9821 #  endif
9822    int F77_DUMMY_MAIN() { return 1; }
9823 #endif
9824 int
9825 main ()
9826 {
9827 struct tm *tp; tp->tm_sec;
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -s conftest.$ac_objext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ac_cv_struct_tm=time.h
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9848 ac_cv_struct_tm=sys/time.h
9849 fi
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9853 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9854 if test $ac_cv_struct_tm = sys/time.h; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define TM_IN_SYS_TIME 1
9858 _ACEOF
9859
9860 fi
9861
9862 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9863 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9864 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870 #include <sys/types.h>
9871 #include <$ac_cv_struct_tm>
9872
9873
9874 #ifdef F77_DUMMY_MAIN
9875 #  ifdef __cplusplus
9876      extern "C"
9877 #  endif
9878    int F77_DUMMY_MAIN() { return 1; }
9879 #endif
9880 int
9881 main ()
9882 {
9883 static struct tm ac_aggr;
9884 if (ac_aggr.tm_zone)
9885 return 0;
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892   (eval $ac_compile) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -s conftest.$ac_objext'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_member_struct_tm_tm_zone=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 ac_cv_member_struct_tm_tm_zone=no
9907 fi
9908 rm -f conftest.$ac_objext conftest.$ac_ext
9909 fi
9910 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9911 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9912 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define HAVE_STRUCT_TM_TM_ZONE 1
9916 _ACEOF
9917
9918
9919 fi
9920
9921 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9922
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_TM_ZONE 1
9925 _ACEOF
9926
9927 fi
9928 echo "$as_me:$LINENO: checking for tzname" >&5
9929 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9930 if test "${ac_cv_var_tzname+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   cat >conftest.$ac_ext <<_ACEOF
9934 #line $LINENO "configure"
9935 #include "confdefs.h"
9936 #include <time.h>
9937 #ifndef tzname /* For SGI.  */
9938 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9939 #endif
9940
9941 #ifdef F77_DUMMY_MAIN
9942 #  ifdef __cplusplus
9943      extern "C"
9944 #  endif
9945    int F77_DUMMY_MAIN() { return 1; }
9946 #endif
9947 int
9948 main ()
9949 {
9950 atoi(*tzname);
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957   (eval $ac_link) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -s conftest$ac_exeext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_cv_var_tzname=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 ac_cv_var_tzname=no
9972 fi
9973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9974 fi
9975 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9976 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9977 if test $ac_cv_var_tzname = yes; then
9978
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_TZNAME 1
9981 _ACEOF
9982
9983 fi
9984
9985 echo "$as_me:$LINENO: checking for union semun" >&5
9986 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9987 if test "${ac_cv_type_union_semun+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9994 #include <sys/ipc.h>
9995 #include <sys/sem.h>
9996
9997 #ifdef F77_DUMMY_MAIN
9998 #  ifdef __cplusplus
9999      extern "C"
10000 #  endif
10001    int F77_DUMMY_MAIN() { return 1; }
10002 #endif
10003 int
10004 main ()
10005 {
10006 if ((union semun *) 0)
10007   return 0;
10008 if (sizeof (union semun))
10009   return 0;
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016   (eval $ac_compile) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -s conftest.$ac_objext'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; }; then
10026   ac_cv_type_union_semun=yes
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10030 ac_cv_type_union_semun=no
10031 fi
10032 rm -f conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
10035 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
10036 if test $ac_cv_type_union_semun = yes; then
10037
10038 cat >>confdefs.h <<_ACEOF
10039 #define HAVE_UNION_SEMUN 1
10040 _ACEOF
10041
10042
10043 fi
10044
10045 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
10046 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
10047 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
10048   echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050   cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10052 #include "confdefs.h"
10053 #include <sys/types.h>
10054 #ifdef HAVE_SYS_UN_H
10055 #include <sys/un.h>
10056 #endif
10057
10058
10059 #ifdef F77_DUMMY_MAIN
10060 #  ifdef __cplusplus
10061      extern "C"
10062 #  endif
10063    int F77_DUMMY_MAIN() { return 1; }
10064 #endif
10065 int
10066 main ()
10067 {
10068 if ((struct sockaddr_un *) 0)
10069   return 0;
10070 if (sizeof (struct sockaddr_un))
10071   return 0;
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078   (eval $ac_compile) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -s conftest.$ac_objext'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; }; then
10088   ac_cv_type_struct_sockaddr_un=yes
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ac_cv_type_struct_sockaddr_un=no
10093 fi
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
10097 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
10098 if test $ac_cv_type_struct_sockaddr_un = yes; then
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_STRUCT_SOCKADDR_UN 1
10102 _ACEOF
10103
10104
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_UNIX_SOCKETS 1
10107 _ACEOF
10108
10109 fi
10110
10111 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10112 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10113 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116   cat >conftest.$ac_ext <<_ACEOF
10117 #line $LINENO "configure"
10118 #include "confdefs.h"
10119 #include <sys/types.h>
10120 #ifdef HAVE_SYS_SOCKET_H
10121 #include <sys/socket.h>
10122 #endif
10123
10124
10125 #ifdef F77_DUMMY_MAIN
10126 #  ifdef __cplusplus
10127      extern "C"
10128 #  endif
10129    int F77_DUMMY_MAIN() { return 1; }
10130 #endif
10131 int
10132 main ()
10133 {
10134 if ((struct sockaddr_storage *) 0)
10135   return 0;
10136 if (sizeof (struct sockaddr_storage))
10137   return 0;
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } &&
10148          { ac_try='test -s conftest.$ac_objext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_type_struct_sockaddr_storage=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10158 ac_cv_type_struct_sockaddr_storage=no
10159 fi
10160 rm -f conftest.$ac_objext conftest.$ac_ext
10161 fi
10162 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10163 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10164 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10165
10166 cat >>confdefs.h <<_ACEOF
10167 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10168 _ACEOF
10169
10170
10171 fi
10172
10173 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10174 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10175 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   cat >conftest.$ac_ext <<_ACEOF
10179 #line $LINENO "configure"
10180 #include "confdefs.h"
10181 #include <sys/types.h>
10182 #ifdef HAVE_SYS_SOCKET_H
10183 #include <sys/socket.h>
10184 #endif
10185
10186
10187 #ifdef F77_DUMMY_MAIN
10188 #  ifdef __cplusplus
10189      extern "C"
10190 #  endif
10191    int F77_DUMMY_MAIN() { return 1; }
10192 #endif
10193 int
10194 main ()
10195 {
10196 static struct sockaddr_storage ac_aggr;
10197 if (ac_aggr.ss_family)
10198 return 0;
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205   (eval $ac_compile) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } &&
10209          { ac_try='test -s conftest.$ac_objext'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; }; then
10215   ac_cv_member_struct_sockaddr_storage_ss_family=yes
10216 else
10217   echo "$as_me: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10219 ac_cv_member_struct_sockaddr_storage_ss_family=no
10220 fi
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10224 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10225 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10229 _ACEOF
10230
10231
10232 fi
10233 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10234 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   cat >conftest.$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10242 #ifdef HAVE_SYS_SOCKET_H
10243 #include <sys/socket.h>
10244 #endif
10245
10246
10247 #ifdef F77_DUMMY_MAIN
10248 #  ifdef __cplusplus
10249      extern "C"
10250 #  endif
10251    int F77_DUMMY_MAIN() { return 1; }
10252 #endif
10253 int
10254 main ()
10255 {
10256 static struct sockaddr_storage ac_aggr;
10257 if (ac_aggr.__ss_family)
10258 return 0;
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265   (eval $ac_compile) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } &&
10269          { ac_try='test -s conftest.$ac_objext'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_cv_member_struct_sockaddr_storage___ss_family=yes
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 ac_cv_member_struct_sockaddr_storage___ss_family=no
10280 fi
10281 rm -f conftest.$ac_objext conftest.$ac_ext
10282 fi
10283 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10284 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10285 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10286
10287 cat >>confdefs.h <<_ACEOF
10288 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10289 _ACEOF
10290
10291
10292 fi
10293 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10294 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10295 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 #include "confdefs.h"
10301 #include <sys/types.h>
10302 #ifdef HAVE_SYS_SOCKET_H
10303 #include <sys/socket.h>
10304 #endif
10305
10306
10307 #ifdef F77_DUMMY_MAIN
10308 #  ifdef __cplusplus
10309      extern "C"
10310 #  endif
10311    int F77_DUMMY_MAIN() { return 1; }
10312 #endif
10313 int
10314 main ()
10315 {
10316 static struct sockaddr_storage ac_aggr;
10317 if (ac_aggr.ss_len)
10318 return 0;
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325   (eval $ac_compile) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -s conftest.$ac_objext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 ac_cv_member_struct_sockaddr_storage_ss_len=no
10340 fi
10341 rm -f conftest.$ac_objext conftest.$ac_ext
10342 fi
10343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10344 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10345 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10346
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10349 _ACEOF
10350
10351
10352 fi
10353 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10354 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10355 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   cat >conftest.$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10360 #include "confdefs.h"
10361 #include <sys/types.h>
10362 #ifdef HAVE_SYS_SOCKET_H
10363 #include <sys/socket.h>
10364 #endif
10365
10366
10367 #ifdef F77_DUMMY_MAIN
10368 #  ifdef __cplusplus
10369      extern "C"
10370 #  endif
10371    int F77_DUMMY_MAIN() { return 1; }
10372 #endif
10373 int
10374 main ()
10375 {
10376 static struct sockaddr_storage ac_aggr;
10377 if (ac_aggr.__ss_len)
10378 return 0;
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385   (eval $ac_compile) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -s conftest.$ac_objext'
10390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391   (eval $ac_try) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; }; then
10395   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 ac_cv_member_struct_sockaddr_storage___ss_len=no
10400 fi
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10402 fi
10403 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10404 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10405 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10406
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10409 _ACEOF
10410
10411
10412 fi
10413 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10414 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10415 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10416   echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418   cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10421 #include <sys/types.h>
10422 #ifdef HAVE_SYS_SOCKET_H
10423 #include <sys/socket.h>
10424 #endif
10425
10426
10427 #ifdef F77_DUMMY_MAIN
10428 #  ifdef __cplusplus
10429      extern "C"
10430 #  endif
10431    int F77_DUMMY_MAIN() { return 1; }
10432 #endif
10433 int
10434 main ()
10435 {
10436 static struct sockaddr ac_aggr;
10437 if (ac_aggr.sa_len)
10438 return 0;
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445   (eval $ac_compile) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -s conftest.$ac_objext'
10450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451   (eval $ac_try) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; }; then
10455   ac_cv_member_struct_sockaddr_sa_len=yes
10456 else
10457   echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_member_struct_sockaddr_sa_len=no
10460 fi
10461 rm -f conftest.$ac_objext conftest.$ac_ext
10462 fi
10463 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10464 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10465 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10466
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10469 _ACEOF
10470
10471
10472 fi
10473
10474 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10475 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10476 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10482 #include <sys/types.h>
10483 #include <sys/socket.h>
10484 #include <netdb.h>
10485
10486
10487 #ifdef F77_DUMMY_MAIN
10488 #  ifdef __cplusplus
10489      extern "C"
10490 #  endif
10491    int F77_DUMMY_MAIN() { return 1; }
10492 #endif
10493 int
10494 main ()
10495 {
10496 if ((struct addrinfo *) 0)
10497   return 0;
10498 if (sizeof (struct addrinfo))
10499   return 0;
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506   (eval $ac_compile) 2>&5
10507   ac_status=$?
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); } &&
10510          { ac_try='test -s conftest.$ac_objext'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; }; then
10516   ac_cv_type_struct_addrinfo=yes
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10520 ac_cv_type_struct_addrinfo=no
10521 fi
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10525 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10526 if test $ac_cv_type_struct_addrinfo = yes; then
10527
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_STRUCT_ADDRINFO 1
10530 _ACEOF
10531
10532
10533 fi
10534
10535
10536 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10537 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10538 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541   cat >conftest.$ac_ext <<_ACEOF
10542 #line $LINENO "configure"
10543 #include "confdefs.h"
10544 #include <sys/param.h>
10545 #include <sys/types.h>
10546 #include <sys/socket.h>
10547 #include <sys/ucred.h>
10548
10549 #ifdef F77_DUMMY_MAIN
10550 #  ifdef __cplusplus
10551      extern "C"
10552 #  endif
10553    int F77_DUMMY_MAIN() { return 1; }
10554 #endif
10555 int
10556 main ()
10557 {
10558 if ((struct cmsgcred *) 0)
10559   return 0;
10560 if (sizeof (struct cmsgcred))
10561   return 0;
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568   (eval $ac_compile) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } &&
10572          { ac_try='test -s conftest.$ac_objext'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; }; then
10578   ac_cv_type_struct_cmsgcred=yes
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 ac_cv_type_struct_cmsgcred=no
10583 fi
10584 rm -f conftest.$ac_objext conftest.$ac_ext
10585 fi
10586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10587 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10588 if test $ac_cv_type_struct_cmsgcred = yes; then
10589
10590 cat >>confdefs.h <<_ACEOF
10591 #define HAVE_STRUCT_CMSGCRED 1
10592 _ACEOF
10593
10594
10595 fi
10596 echo "$as_me:$LINENO: checking for struct fcred" >&5
10597 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10598 if test "${ac_cv_type_struct_fcred+set}" = set; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 #include "confdefs.h"
10604 #include <sys/param.h>
10605 #include <sys/types.h>
10606 #include <sys/socket.h>
10607 #include <sys/ucred.h>
10608
10609 #ifdef F77_DUMMY_MAIN
10610 #  ifdef __cplusplus
10611      extern "C"
10612 #  endif
10613    int F77_DUMMY_MAIN() { return 1; }
10614 #endif
10615 int
10616 main ()
10617 {
10618 if ((struct fcred *) 0)
10619   return 0;
10620 if (sizeof (struct fcred))
10621   return 0;
10622   ;
10623   return 0;
10624 }
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628   (eval $ac_compile) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } &&
10632          { ac_try='test -s conftest.$ac_objext'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638   ac_cv_type_struct_fcred=yes
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10642 ac_cv_type_struct_fcred=no
10643 fi
10644 rm -f conftest.$ac_objext conftest.$ac_ext
10645 fi
10646 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10647 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10648 if test $ac_cv_type_struct_fcred = yes; then
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define HAVE_STRUCT_FCRED 1
10652 _ACEOF
10653
10654
10655 fi
10656 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10657 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10658 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10663 #include "confdefs.h"
10664 #include <sys/param.h>
10665 #include <sys/types.h>
10666 #include <sys/socket.h>
10667 #include <sys/ucred.h>
10668
10669 #ifdef F77_DUMMY_MAIN
10670 #  ifdef __cplusplus
10671      extern "C"
10672 #  endif
10673    int F77_DUMMY_MAIN() { return 1; }
10674 #endif
10675 int
10676 main ()
10677 {
10678 if ((struct sockcred *) 0)
10679   return 0;
10680 if (sizeof (struct sockcred))
10681   return 0;
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688   (eval $ac_compile) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -s conftest.$ac_objext'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; }; then
10698   ac_cv_type_struct_sockcred=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 ac_cv_type_struct_sockcred=no
10703 fi
10704 rm -f conftest.$ac_objext conftest.$ac_ext
10705 fi
10706 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10707 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10708 if test $ac_cv_type_struct_sockcred = yes; then
10709
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_STRUCT_SOCKCRED 1
10712 _ACEOF
10713
10714
10715 fi
10716
10717
10718 echo "$as_me:$LINENO: checking for struct option" >&5
10719 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10720 if test "${ac_cv_type_struct_option+set}" = set; then
10721   echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723   cat >conftest.$ac_ext <<_ACEOF
10724 #line $LINENO "configure"
10725 #include "confdefs.h"
10726 #ifdef HAVE_GETOPT_H
10727 #include <getopt.h>
10728 #endif
10729
10730 #ifdef F77_DUMMY_MAIN
10731 #  ifdef __cplusplus
10732      extern "C"
10733 #  endif
10734    int F77_DUMMY_MAIN() { return 1; }
10735 #endif
10736 int
10737 main ()
10738 {
10739 if ((struct option *) 0)
10740   return 0;
10741 if (sizeof (struct option))
10742   return 0;
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749   (eval $ac_compile) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } &&
10753          { ac_try='test -s conftest.$ac_objext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   ac_cv_type_struct_option=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 ac_cv_type_struct_option=no
10764 fi
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10768 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10769 if test $ac_cv_type_struct_option = yes; then
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_STRUCT_OPTION 1
10773 _ACEOF
10774
10775
10776 fi
10777
10778
10779 if test "$with_zlib" = yes; then
10780   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10781   # did not).  While we could work around the lack of z_streamp, it
10782   # seems unwise to encourage people to use such old zlib versions...
10783   echo "$as_me:$LINENO: checking for z_streamp" >&5
10784 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10785 if test "${ac_cv_type_z_streamp+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 #include "confdefs.h"
10791 #include <zlib.h>
10792
10793 #ifdef F77_DUMMY_MAIN
10794 #  ifdef __cplusplus
10795      extern "C"
10796 #  endif
10797    int F77_DUMMY_MAIN() { return 1; }
10798 #endif
10799 int
10800 main ()
10801 {
10802 if ((z_streamp *) 0)
10803   return 0;
10804 if (sizeof (z_streamp))
10805   return 0;
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } &&
10816          { ac_try='test -s conftest.$ac_objext'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   ac_cv_type_z_streamp=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 ac_cv_type_z_streamp=no
10827 fi
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10829 fi
10830 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10831 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10832 if test $ac_cv_type_z_streamp = yes; then
10833   :
10834 else
10835   { { echo "$as_me:$LINENO: error: zlib version is too old
10836 Use --without-zlib to disable zlib support." >&5
10837 echo "$as_me: error: zlib version is too old
10838 Use --without-zlib to disable zlib support." >&2;}
10839    { (exit 1); exit 1; }; }
10840 fi
10841
10842 fi
10843
10844 if test "$with_krb5" = yes; then
10845 # Check for differences between MIT and Heimdal (KTH) releases
10846   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10847 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10848 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   cat >conftest.$ac_ext <<_ACEOF
10852 #line $LINENO "configure"
10853 #include "confdefs.h"
10854 #include <krb5.h>
10855
10856 #ifdef F77_DUMMY_MAIN
10857 #  ifdef __cplusplus
10858      extern "C"
10859 #  endif
10860    int F77_DUMMY_MAIN() { return 1; }
10861 #endif
10862 int
10863 main ()
10864 {
10865 static krb5_ticket ac_aggr;
10866 if (ac_aggr.enc_part2)
10867 return 0;
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874   (eval $ac_compile) 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } &&
10878          { ac_try='test -s conftest.$ac_objext'
10879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880   (eval $ac_try) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   ac_cv_member_krb5_ticket_enc_part2=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 cat conftest.$ac_ext >&5
10888 ac_cv_member_krb5_ticket_enc_part2=no
10889 fi
10890 rm -f conftest.$ac_objext conftest.$ac_ext
10891 fi
10892 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10893 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10894 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10895
10896 cat >>confdefs.h <<_ACEOF
10897 #define HAVE_KRB5_TICKET_ENC_PART2 1
10898 _ACEOF
10899
10900
10901 else
10902   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10903 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10904 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 #line $LINENO "configure"
10909 #include "confdefs.h"
10910 #include <krb5.h>
10911
10912 #ifdef F77_DUMMY_MAIN
10913 #  ifdef __cplusplus
10914      extern "C"
10915 #  endif
10916    int F77_DUMMY_MAIN() { return 1; }
10917 #endif
10918 int
10919 main ()
10920 {
10921 static krb5_ticket ac_aggr;
10922 if (ac_aggr.client)
10923 return 0;
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930   (eval $ac_compile) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); } &&
10934          { ac_try='test -s conftest.$ac_objext'
10935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936   (eval $ac_try) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; }; then
10940   ac_cv_member_krb5_ticket_client=yes
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ac_cv_member_krb5_ticket_client=no
10945 fi
10946 rm -f conftest.$ac_objext conftest.$ac_ext
10947 fi
10948 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10949 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10950 if test $ac_cv_member_krb5_ticket_client = yes; then
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define HAVE_KRB5_TICKET_CLIENT 1
10954 _ACEOF
10955
10956
10957 else
10958   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10959 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10960    { (exit 1); exit 1; }; }
10961 fi
10962
10963 fi
10964
10965   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10966 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10967 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10968   echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970   cat >conftest.$ac_ext <<_ACEOF
10971 #line $LINENO "configure"
10972 #include "confdefs.h"
10973 #include <krb5.h>
10974
10975 #ifdef F77_DUMMY_MAIN
10976 #  ifdef __cplusplus
10977      extern "C"
10978 #  endif
10979    int F77_DUMMY_MAIN() { return 1; }
10980 #endif
10981 int
10982 main ()
10983 {
10984 static krb5_error ac_aggr;
10985 if (ac_aggr.text.data)
10986 return 0;
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993   (eval $ac_compile) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -s conftest.$ac_objext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_cv_member_krb5_error_text_data=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 ac_cv_member_krb5_error_text_data=no
11008 fi
11009 rm -f conftest.$ac_objext conftest.$ac_ext
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
11012 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
11013 if test $ac_cv_member_krb5_error_text_data = yes; then
11014
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_KRB5_ERROR_TEXT_DATA 1
11017 _ACEOF
11018
11019
11020 else
11021   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
11022 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
11023 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11028 #include "confdefs.h"
11029 #include <krb5.h>
11030
11031 #ifdef F77_DUMMY_MAIN
11032 #  ifdef __cplusplus
11033      extern "C"
11034 #  endif
11035    int F77_DUMMY_MAIN() { return 1; }
11036 #endif
11037 int
11038 main ()
11039 {
11040 static krb5_error ac_aggr;
11041 if (ac_aggr.e_data)
11042 return 0;
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11049   (eval $ac_compile) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } &&
11053          { ac_try='test -s conftest.$ac_objext'
11054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055   (eval $ac_try) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; }; then
11059   ac_cv_member_krb5_error_e_data=yes
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 ac_cv_member_krb5_error_e_data=no
11064 fi
11065 rm -f conftest.$ac_objext conftest.$ac_ext
11066 fi
11067 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
11068 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
11069 if test $ac_cv_member_krb5_error_e_data = yes; then
11070
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_KRB5_ERROR_E_DATA 1
11073 _ACEOF
11074
11075
11076 else
11077   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
11078 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
11079    { (exit 1); exit 1; }; }
11080 fi
11081
11082 fi
11083
11084 fi
11085
11086 ##
11087 ## Functions, global variables
11088 ##
11089
11090 echo "$as_me:$LINENO: checking for int timezone" >&5
11091 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
11092 if test "${pgac_cv_var_int_timezone+set}" = set; then
11093   echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095   cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11097 #include "confdefs.h"
11098 #include <time.h>
11099 int res;
11100 #ifdef F77_DUMMY_MAIN
11101 #  ifdef __cplusplus
11102      extern "C"
11103 #  endif
11104    int F77_DUMMY_MAIN() { return 1; }
11105 #endif
11106 int
11107 main ()
11108 {
11109 #ifndef __CYGWIN__
11110 res = timezone / 60;
11111 #else
11112 res = _timezone / 60;
11113 #endif
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11120   (eval $ac_link) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -s conftest$ac_exeext'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; }; then
11130   pgac_cv_var_int_timezone=yes
11131 else
11132   echo "$as_me: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 pgac_cv_var_int_timezone=no
11135 fi
11136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11139 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11140 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11141
11142 cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_INT_TIMEZONE
11144 _ACEOF
11145
11146 fi
11147 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11148 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11149  if test "${ac_cv_func_accept_return+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152    if test "${ac_cv_func_accept_arg1+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155     if test "${ac_cv_func_accept_arg2+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158      if test "${ac_cv_func_accept_arg3+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11162       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11163        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11164         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11165          cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 #include "confdefs.h"
11168 #ifdef HAVE_SYS_TYPES_H
11169 #include <sys/types.h>
11170 #endif
11171 #ifdef HAVE_SYS_SOCKET_H
11172 #include <sys/socket.h>
11173 #endif
11174 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11175 #ifdef F77_DUMMY_MAIN
11176 #  ifdef __cplusplus
11177      extern "C"
11178 #  endif
11179    int F77_DUMMY_MAIN() { return 1; }
11180 #endif
11181 int
11182 main ()
11183 {
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191   (eval $ac_compile) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -s conftest.$ac_objext'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   ac_not_found=no; break 4
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 ac_not_found=yes
11206 fi
11207 rm -f conftest.$ac_objext conftest.$ac_ext
11208        done
11209       done
11210      done
11211     done
11212     if test "$ac_not_found" = yes; then
11213       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11214 echo "$as_me: error: could not determine argument types" >&2;}
11215    { (exit 1); exit 1; }; }
11216     fi
11217     if test "$ac_cv_func_accept_arg3" = "void"; then
11218       ac_cv_func_accept_arg3=int
11219     fi
11220
11221 fi
11222
11223 fi
11224
11225 fi
11226
11227 fi
11228  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
11229 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11230
11231 cat >>confdefs.h <<_ACEOF
11232 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11233 _ACEOF
11234
11235
11236 cat >>confdefs.h <<_ACEOF
11237 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11238 _ACEOF
11239
11240
11241 cat >>confdefs.h <<_ACEOF
11242 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11243 _ACEOF
11244
11245
11246 cat >>confdefs.h <<_ACEOF
11247 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11248 _ACEOF
11249
11250
11251 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11252 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11253 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 #include "confdefs.h"
11259 #include <sys/time.h>
11260 #ifdef F77_DUMMY_MAIN
11261 #  ifdef __cplusplus
11262      extern "C"
11263 #  endif
11264    int F77_DUMMY_MAIN() { return 1; }
11265 #endif
11266 int
11267 main ()
11268 {
11269 struct timeval *tp;
11270 struct timezone *tzp;
11271 gettimeofday(tp,tzp);
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278   (eval $ac_compile) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -s conftest.$ac_objext'
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   pgac_cv_func_gettimeofday_1arg=no
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 pgac_cv_func_gettimeofday_1arg=yes
11293 fi
11294 rm -f conftest.$ac_objext conftest.$ac_ext
11295 fi
11296 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11297 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11298 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define GETTIMEOFDAY_1ARG
11302 _ACEOF
11303
11304 fi
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11328 do
11329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11330 echo "$as_me:$LINENO: checking for $ac_func" >&5
11331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11332 if eval "test \"\${$as_ac_var+set}\" = set"; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335   cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 #include "confdefs.h"
11338 /* System header to define __stub macros and hopefully few prototypes,
11339     which can conflict with char $ac_func (); below.  */
11340 #include <assert.h>
11341 /* Override any gcc2 internal prototype to avoid an error.  */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 /* We use char because int might match the return type of a gcc2
11346    builtin and then its argument prototype would still apply.  */
11347 char $ac_func ();
11348 char (*f) ();
11349
11350 #ifdef F77_DUMMY_MAIN
11351 #  ifdef __cplusplus
11352      extern "C"
11353 #  endif
11354    int F77_DUMMY_MAIN() { return 1; }
11355 #endif
11356 int
11357 main ()
11358 {
11359 /* The GNU C library defines this for functions which it implements
11360     to always fail with ENOSYS.  Some functions are actually named
11361     something starting with __ and the normal name is an alias.  */
11362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11363 choke me
11364 #else
11365 f = $ac_func;
11366 #endif
11367
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374   (eval $ac_link) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } &&
11378          { ac_try='test -s conftest$ac_exeext'
11379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380   (eval $ac_try) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; }; then
11384   eval "$as_ac_var=yes"
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 cat conftest.$ac_ext >&5
11388 eval "$as_ac_var=no"
11389 fi
11390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11391 fi
11392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11398
11399 fi
11400 done
11401
11402
11403 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11404 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11405 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 #include <unistd.h>
11412
11413 #ifdef F77_DUMMY_MAIN
11414 #  ifdef __cplusplus
11415      extern "C"
11416 #  endif
11417    int F77_DUMMY_MAIN() { return 1; }
11418 #endif
11419 int
11420 main ()
11421 {
11422 #ifndef fdatasync
11423   char *p = (char *) fdatasync;
11424 #endif
11425
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432   (eval $ac_compile) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } &&
11436          { ac_try='test -s conftest.$ac_objext'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; }; then
11442   ac_cv_have_decl_fdatasync=yes
11443 else
11444   echo "$as_me: failed program was:" >&5
11445 cat conftest.$ac_ext >&5
11446 ac_cv_have_decl_fdatasync=no
11447 fi
11448 rm -f conftest.$ac_objext conftest.$ac_ext
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11451 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11452 if test $ac_cv_have_decl_fdatasync = yes; then
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_DECL_FDATASYNC 1
11456 _ACEOF
11457
11458
11459 else
11460   cat >>confdefs.h <<_ACEOF
11461 #define HAVE_DECL_FDATASYNC 0
11462 _ACEOF
11463
11464
11465 fi
11466
11467
11468
11469 HAVE_IPV6=no
11470 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11471 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11472 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478 $ac_includes_default
11479 #include <netinet/in.h>
11480
11481 #ifdef F77_DUMMY_MAIN
11482 #  ifdef __cplusplus
11483      extern "C"
11484 #  endif
11485    int F77_DUMMY_MAIN() { return 1; }
11486 #endif
11487 int
11488 main ()
11489 {
11490 if ((struct sockaddr_in6 *) 0)
11491   return 0;
11492 if (sizeof (struct sockaddr_in6))
11493   return 0;
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500   (eval $ac_compile) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } &&
11504          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_type_struct_sockaddr_in6=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 ac_cv_type_struct_sockaddr_in6=no
11515 fi
11516 rm -f conftest.$ac_objext conftest.$ac_ext
11517 fi
11518 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11519 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11520 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11521   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11522 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11523 if test "${ac_cv_func_inet_ntop+set}" = set; then
11524   echo $ECHO_N "(cached) $ECHO_C" >&6
11525 else
11526   cat >conftest.$ac_ext <<_ACEOF
11527 #line $LINENO "configure"
11528 #include "confdefs.h"
11529 /* System header to define __stub macros and hopefully few prototypes,
11530     which can conflict with char inet_ntop (); below.  */
11531 #include <assert.h>
11532 /* Override any gcc2 internal prototype to avoid an error.  */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 /* We use char because int might match the return type of a gcc2
11537    builtin and then its argument prototype would still apply.  */
11538 char inet_ntop ();
11539 char (*f) ();
11540
11541 #ifdef F77_DUMMY_MAIN
11542 #  ifdef __cplusplus
11543      extern "C"
11544 #  endif
11545    int F77_DUMMY_MAIN() { return 1; }
11546 #endif
11547 int
11548 main ()
11549 {
11550 /* The GNU C library defines this for functions which it implements
11551     to always fail with ENOSYS.  Some functions are actually named
11552     something starting with __ and the normal name is an alias.  */
11553 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11554 choke me
11555 #else
11556 f = inet_ntop;
11557 #endif
11558
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565   (eval $ac_link) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } &&
11569          { ac_try='test -s conftest$ac_exeext'
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_func_inet_ntop=yes
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 ac_cv_func_inet_ntop=no
11580 fi
11581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582 fi
11583 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11584 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11585 if test $ac_cv_func_inet_ntop = yes; then
11586
11587 cat >>confdefs.h <<\_ACEOF
11588 #define HAVE_IPV6 1
11589 _ACEOF
11590
11591                                                           HAVE_IPV6=yes
11592 fi
11593
11594 fi
11595
11596
11597
11598 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11599 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11600 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 #include <machine/vmparam.h>
11607 #include <sys/exec.h>
11608
11609 #ifdef F77_DUMMY_MAIN
11610 #  ifdef __cplusplus
11611      extern "C"
11612 #  endif
11613    int F77_DUMMY_MAIN() { return 1; }
11614 #endif
11615 int
11616 main ()
11617 {
11618 PS_STRINGS->ps_nargvstr = 1;
11619 PS_STRINGS->ps_argvstr = "foo";
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626   (eval $ac_link) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -s conftest$ac_exeext'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }; then
11636   pgac_cv_var_PS_STRINGS=yes
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 pgac_cv_var_PS_STRINGS=no
11641 fi
11642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11643 fi
11644 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11645 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11646 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11647
11648 cat >>confdefs.h <<\_ACEOF
11649 #define HAVE_PS_STRINGS
11650 _ACEOF
11651
11652 fi
11653
11654
11655 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11656 # is missing.  Yes, there are machines that have only one.  We may
11657 # also decide to use snprintf.c if snprintf() is present but does not
11658 # have all the features we need --- see below.
11659
11660 pgac_need_repl_snprintf=no
11661
11662 for ac_func in snprintf
11663 do
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670   cat >conftest.$ac_ext <<_ACEOF
11671 #line $LINENO "configure"
11672 #include "confdefs.h"
11673 /* System header to define __stub macros and hopefully few prototypes,
11674     which can conflict with char $ac_func (); below.  */
11675 #include <assert.h>
11676 /* Override any gcc2 internal prototype to avoid an error.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 /* We use char because int might match the return type of a gcc2
11681    builtin and then its argument prototype would still apply.  */
11682 char $ac_func ();
11683 char (*f) ();
11684
11685 #ifdef F77_DUMMY_MAIN
11686 #  ifdef __cplusplus
11687      extern "C"
11688 #  endif
11689    int F77_DUMMY_MAIN() { return 1; }
11690 #endif
11691 int
11692 main ()
11693 {
11694 /* The GNU C library defines this for functions which it implements
11695     to always fail with ENOSYS.  Some functions are actually named
11696     something starting with __ and the normal name is an alias.  */
11697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11698 choke me
11699 #else
11700 f = $ac_func;
11701 #endif
11702
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709   (eval $ac_link) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } &&
11713          { ac_try='test -s conftest$ac_exeext'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; }; then
11719   eval "$as_ac_var=yes"
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 eval "$as_ac_var=no"
11724 fi
11725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11726 fi
11727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730   cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732 _ACEOF
11733
11734 else
11735   pgac_need_repl_snprintf=yes
11736 fi
11737 done
11738
11739
11740 for ac_func in vsnprintf
11741 do
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11745 if eval "test \"\${$as_ac_var+set}\" = set"; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 /* System header to define __stub macros and hopefully few prototypes,
11752     which can conflict with char $ac_func (); below.  */
11753 #include <assert.h>
11754 /* Override any gcc2 internal prototype to avoid an error.  */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759    builtin and then its argument prototype would still apply.  */
11760 char $ac_func ();
11761 char (*f) ();
11762
11763 #ifdef F77_DUMMY_MAIN
11764 #  ifdef __cplusplus
11765      extern "C"
11766 #  endif
11767    int F77_DUMMY_MAIN() { return 1; }
11768 #endif
11769 int
11770 main ()
11771 {
11772 /* The GNU C library defines this for functions which it implements
11773     to always fail with ENOSYS.  Some functions are actually named
11774     something starting with __ and the normal name is an alias.  */
11775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11776 choke me
11777 #else
11778 f = $ac_func;
11779 #endif
11780
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787   (eval $ac_link) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -s conftest$ac_exeext'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   eval "$as_ac_var=yes"
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11802 fi
11803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804 fi
11805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11807 if test `eval echo '${'$as_ac_var'}'` = yes; then
11808   cat >>confdefs.h <<_ACEOF
11809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11810 _ACEOF
11811
11812 else
11813   pgac_need_repl_snprintf=yes
11814 fi
11815 done
11816
11817
11818
11819 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11820 # include/c.h will provide declarations.  Note this is a separate test
11821 # from whether the functions exist in the C library --- there are
11822 # systems that have the functions but don't bother to declare them :-(
11823
11824 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11825 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11826 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832 $ac_includes_default
11833 #ifdef F77_DUMMY_MAIN
11834 #  ifdef __cplusplus
11835      extern "C"
11836 #  endif
11837    int F77_DUMMY_MAIN() { return 1; }
11838 #endif
11839 int
11840 main ()
11841 {
11842 #ifndef snprintf
11843   char *p = (char *) snprintf;
11844 #endif
11845
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11852   (eval $ac_compile) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -s conftest.$ac_objext'
11857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858   (eval $ac_try) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   ac_cv_have_decl_snprintf=yes
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11866 ac_cv_have_decl_snprintf=no
11867 fi
11868 rm -f conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11871 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11872 if test $ac_cv_have_decl_snprintf = yes; then
11873
11874 cat >>confdefs.h <<_ACEOF
11875 #define HAVE_DECL_SNPRINTF 1
11876 _ACEOF
11877
11878
11879 else
11880   cat >>confdefs.h <<_ACEOF
11881 #define HAVE_DECL_SNPRINTF 0
11882 _ACEOF
11883
11884
11885 fi
11886 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11887 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11888 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 #include "confdefs.h"
11894 $ac_includes_default
11895 #ifdef F77_DUMMY_MAIN
11896 #  ifdef __cplusplus
11897      extern "C"
11898 #  endif
11899    int F77_DUMMY_MAIN() { return 1; }
11900 #endif
11901 int
11902 main ()
11903 {
11904 #ifndef vsnprintf
11905   char *p = (char *) vsnprintf;
11906 #endif
11907
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914   (eval $ac_compile) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -s conftest.$ac_objext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_have_decl_vsnprintf=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11928 ac_cv_have_decl_vsnprintf=no
11929 fi
11930 rm -f conftest.$ac_objext conftest.$ac_ext
11931 fi
11932 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11933 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11934 if test $ac_cv_have_decl_vsnprintf = yes; then
11935
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_DECL_VSNPRINTF 1
11938 _ACEOF
11939
11940
11941 else
11942   cat >>confdefs.h <<_ACEOF
11943 #define HAVE_DECL_VSNPRINTF 0
11944 _ACEOF
11945
11946
11947 fi
11948
11949
11950
11951
11952 # do this one the hard way in case isinf() is a macro
11953 echo "$as_me:$LINENO: checking for isinf" >&5
11954 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11955 if test "${ac_cv_func_isinf+set}" = set; then
11956   echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958   cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11960 #include "confdefs.h"
11961 #include <math.h>
11962
11963 #ifdef F77_DUMMY_MAIN
11964 #  ifdef __cplusplus
11965      extern "C"
11966 #  endif
11967    int F77_DUMMY_MAIN() { return 1; }
11968 #endif
11969 int
11970 main ()
11971 {
11972 double x = 0.0; int res = isinf(x);
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979   (eval $ac_link) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_cv_func_isinf=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 ac_cv_func_isinf=no
11994 fi
11995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11998 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11999
12000 if test $ac_cv_func_isinf = yes ; then
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_ISINF 1
12004 _ACEOF
12005
12006 else
12007   LIBOBJS="$LIBOBJS isinf.$ac_objext"
12008   # Look for a way to implement a substitute for isinf()
12009
12010
12011
12012
12013 for ac_func in fpclass fp_class fp_class_d class
12014 do
12015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 echo "$as_me:$LINENO: checking for $ac_func" >&5
12017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_var+set}\" = set"; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   cat >conftest.$ac_ext <<_ACEOF
12022 #line $LINENO "configure"
12023 #include "confdefs.h"
12024 /* System header to define __stub macros and hopefully few prototypes,
12025     which can conflict with char $ac_func (); below.  */
12026 #include <assert.h>
12027 /* Override any gcc2 internal prototype to avoid an error.  */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char $ac_func ();
12034 char (*f) ();
12035
12036 #ifdef F77_DUMMY_MAIN
12037 #  ifdef __cplusplus
12038      extern "C"
12039 #  endif
12040    int F77_DUMMY_MAIN() { return 1; }
12041 #endif
12042 int
12043 main ()
12044 {
12045 /* The GNU C library defines this for functions which it implements
12046     to always fail with ENOSYS.  Some functions are actually named
12047     something starting with __ and the normal name is an alias.  */
12048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12049 choke me
12050 #else
12051 f = $ac_func;
12052 #endif
12053
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060   (eval $ac_link) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } &&
12064          { ac_try='test -s conftest$ac_exeext'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; }; then
12070   eval "$as_ac_var=yes"
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 eval "$as_ac_var=no"
12075 fi
12076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12077 fi
12078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12080 if test `eval echo '${'$as_ac_var'}'` = yes; then
12081   cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12083 _ACEOF
12084  break
12085 fi
12086 done
12087
12088 fi
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12104 do
12105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106 echo "$as_me:$LINENO: checking for $ac_func" >&5
12107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12108 if eval "test \"\${$as_ac_var+set}\" = set"; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   cat >conftest.$ac_ext <<_ACEOF
12112 #line $LINENO "configure"
12113 #include "confdefs.h"
12114 /* System header to define __stub macros and hopefully few prototypes,
12115     which can conflict with char $ac_func (); below.  */
12116 #include <assert.h>
12117 /* Override any gcc2 internal prototype to avoid an error.  */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122    builtin and then its argument prototype would still apply.  */
12123 char $ac_func ();
12124 char (*f) ();
12125
12126 #ifdef F77_DUMMY_MAIN
12127 #  ifdef __cplusplus
12128      extern "C"
12129 #  endif
12130    int F77_DUMMY_MAIN() { return 1; }
12131 #endif
12132 int
12133 main ()
12134 {
12135 /* The GNU C library defines this for functions which it implements
12136     to always fail with ENOSYS.  Some functions are actually named
12137     something starting with __ and the normal name is an alias.  */
12138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12139 choke me
12140 #else
12141 f = $ac_func;
12142 #endif
12143
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150   (eval $ac_link) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } &&
12154          { ac_try='test -s conftest$ac_exeext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   eval "$as_ac_var=yes"
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 cat conftest.$ac_ext >&5
12164 eval "$as_ac_var=no"
12165 fi
12166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12167 fi
12168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171   cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 _ACEOF
12174
12175 else
12176   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12177 fi
12178 done
12179
12180
12181
12182 # system's version of getaddrinfo(), if any, may be used only if we found
12183 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12184 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12185
12186 for ac_func in getaddrinfo
12187 do
12188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12189 echo "$as_me:$LINENO: checking for $ac_func" >&5
12190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12191 if eval "test \"\${$as_ac_var+set}\" = set"; then
12192   echo $ECHO_N "(cached) $ECHO_C" >&6
12193 else
12194   cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 /* System header to define __stub macros and hopefully few prototypes,
12198     which can conflict with char $ac_func (); below.  */
12199 #include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error.  */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 /* We use char because int might match the return type of a gcc2
12205    builtin and then its argument prototype would still apply.  */
12206 char $ac_func ();
12207 char (*f) ();
12208
12209 #ifdef F77_DUMMY_MAIN
12210 #  ifdef __cplusplus
12211      extern "C"
12212 #  endif
12213    int F77_DUMMY_MAIN() { return 1; }
12214 #endif
12215 int
12216 main ()
12217 {
12218 /* The GNU C library defines this for functions which it implements
12219     to always fail with ENOSYS.  Some functions are actually named
12220     something starting with __ and the normal name is an alias.  */
12221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12222 choke me
12223 #else
12224 f = $ac_func;
12225 #endif
12226
12227   ;
12228   return 0;
12229 }
12230 _ACEOF
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12233   (eval $ac_link) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); } &&
12237          { ac_try='test -s conftest$ac_exeext'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   eval "$as_ac_var=yes"
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 eval "$as_ac_var=no"
12248 fi
12249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12250 fi
12251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254   cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12256 _ACEOF
12257
12258 else
12259   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12260 fi
12261 done
12262
12263
12264 else
12265   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12266 fi
12267
12268 # similarly, use system's getopt_long() only if system provides struct option.
12269 if test x"$ac_cv_type_struct_option" = xyes ; then
12270
12271 for ac_func in getopt_long
12272 do
12273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12274 echo "$as_me:$LINENO: checking for $ac_func" >&5
12275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12276 if eval "test \"\${$as_ac_var+set}\" = set"; then
12277   echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279   cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 #include "confdefs.h"
12282 /* System header to define __stub macros and hopefully few prototypes,
12283     which can conflict with char $ac_func (); below.  */
12284 #include <assert.h>
12285 /* Override any gcc2 internal prototype to avoid an error.  */
12286 #ifdef __cplusplus
12287 extern "C"
12288 #endif
12289 /* We use char because int might match the return type of a gcc2
12290    builtin and then its argument prototype would still apply.  */
12291 char $ac_func ();
12292 char (*f) ();
12293
12294 #ifdef F77_DUMMY_MAIN
12295 #  ifdef __cplusplus
12296      extern "C"
12297 #  endif
12298    int F77_DUMMY_MAIN() { return 1; }
12299 #endif
12300 int
12301 main ()
12302 {
12303 /* The GNU C library defines this for functions which it implements
12304     to always fail with ENOSYS.  Some functions are actually named
12305     something starting with __ and the normal name is an alias.  */
12306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12307 choke me
12308 #else
12309 f = $ac_func;
12310 #endif
12311
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318   (eval $ac_link) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -s conftest$ac_exeext'
12323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324   (eval $ac_try) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; }; then
12328   eval "$as_ac_var=yes"
12329 else
12330   echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 eval "$as_ac_var=no"
12333 fi
12334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12335 fi
12336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12338 if test `eval echo '${'$as_ac_var'}'` = yes; then
12339   cat >>confdefs.h <<_ACEOF
12340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12341 _ACEOF
12342
12343 else
12344   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12345 fi
12346 done
12347
12348
12349 else
12350   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12351 fi
12352
12353 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12354 # We override the previous test that said fseeko/ftello didn't exist
12355 # OS tests are also done in include/c.h and port/fseeko.c
12356 case $host_os in bsdi*|netbsd*)
12357 ac_cv_func_fseeko=yes
12358 esac
12359
12360 # Solaris has a very slow qsort in certain cases, so we replace it.
12361 if test "$PORTNAME" = "solaris"; then
12362 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12363 fi
12364
12365 # Win32 support
12366 if test "$PORTNAME" = "win32"; then
12367 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12368 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12369 LIBOBJS="$LIBOBJS kill.$ac_objext"
12370 LIBOBJS="$LIBOBJS open.$ac_objext"
12371 LIBOBJS="$LIBOBJS rand.$ac_objext"
12372
12373 cat >>confdefs.h <<\_ACEOF
12374 #define HAVE_SYMLINK 1
12375 _ACEOF
12376
12377 fi
12378
12379 if test "$with_readline" = yes; then
12380   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12381 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12385 #include <stdio.h>
12386 #ifdef HAVE_READLINE_READLINE_H
12387 # include <readline/readline.h>
12388 #elif defined(HAVE_READLINE_H)
12389 # include <readline.h>
12390 #endif
12391
12392 #ifdef F77_DUMMY_MAIN
12393 #  ifdef __cplusplus
12394      extern "C"
12395 #  endif
12396    int F77_DUMMY_MAIN() { return 1; }
12397 #endif
12398 int
12399 main ()
12400 {
12401 rl_completion_append_character = 'x';
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408   (eval $ac_link) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -s conftest$ac_exeext'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; }; then
12418   echo "$as_me:$LINENO: result: yes" >&5
12419 echo "${ECHO_T}yes" >&6
12420
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12423 _ACEOF
12424
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6
12430 fi
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12432
12433
12434 for ac_func in rl_completion_matches rl_filename_completion_function
12435 do
12436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_var+set}\" = set"; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442   cat >conftest.$ac_ext <<_ACEOF
12443 #line $LINENO "configure"
12444 #include "confdefs.h"
12445 /* System header to define __stub macros and hopefully few prototypes,
12446     which can conflict with char $ac_func (); below.  */
12447 #include <assert.h>
12448 /* Override any gcc2 internal prototype to avoid an error.  */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 /* We use char because int might match the return type of a gcc2
12453    builtin and then its argument prototype would still apply.  */
12454 char $ac_func ();
12455 char (*f) ();
12456
12457 #ifdef F77_DUMMY_MAIN
12458 #  ifdef __cplusplus
12459      extern "C"
12460 #  endif
12461    int F77_DUMMY_MAIN() { return 1; }
12462 #endif
12463 int
12464 main ()
12465 {
12466 /* The GNU C library defines this for functions which it implements
12467     to always fail with ENOSYS.  Some functions are actually named
12468     something starting with __ and the normal name is an alias.  */
12469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12470 choke me
12471 #else
12472 f = $ac_func;
12473 #endif
12474
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481   (eval $ac_link) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); } &&
12485          { ac_try='test -s conftest$ac_exeext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   eval "$as_ac_var=yes"
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 eval "$as_ac_var=no"
12496 fi
12497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12498 fi
12499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12501 if test `eval echo '${'$as_ac_var'}'` = yes; then
12502   cat >>confdefs.h <<_ACEOF
12503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12504 _ACEOF
12505
12506 fi
12507 done
12508
12509
12510 for ac_func in replace_history_entry
12511 do
12512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12513 echo "$as_me:$LINENO: checking for $ac_func" >&5
12514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12515 if eval "test \"\${$as_ac_var+set}\" = set"; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   cat >conftest.$ac_ext <<_ACEOF
12519 #line $LINENO "configure"
12520 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes,
12522     which can conflict with char $ac_func (); below.  */
12523 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error.  */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 /* We use char because int might match the return type of a gcc2
12529    builtin and then its argument prototype would still apply.  */
12530 char $ac_func ();
12531 char (*f) ();
12532
12533 #ifdef F77_DUMMY_MAIN
12534 #  ifdef __cplusplus
12535      extern "C"
12536 #  endif
12537    int F77_DUMMY_MAIN() { return 1; }
12538 #endif
12539 int
12540 main ()
12541 {
12542 /* The GNU C library defines this for functions which it implements
12543     to always fail with ENOSYS.  Some functions are actually named
12544     something starting with __ and the normal name is an alias.  */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 f = $ac_func;
12549 #endif
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557   (eval $ac_link) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -s conftest$ac_exeext'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; }; then
12567   eval "$as_ac_var=yes"
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 eval "$as_ac_var=no"
12572 fi
12573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12574 fi
12575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12577 if test `eval echo '${'$as_ac_var'}'` = yes; then
12578   cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12580 _ACEOF
12581
12582 fi
12583 done
12584
12585 fi
12586
12587
12588 echo "$as_me:$LINENO: checking for finite" >&5
12589 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 #include "confdefs.h"
12593 #include <math.h>
12594 #ifdef F77_DUMMY_MAIN
12595 #  ifdef __cplusplus
12596      extern "C"
12597 #  endif
12598    int F77_DUMMY_MAIN() { return 1; }
12599 #endif
12600 int
12601 main ()
12602 {
12603 int dummy=finite(1.0);
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12610   (eval $ac_link) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -s conftest$ac_exeext'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620
12621 cat >>confdefs.h <<\_ACEOF
12622 #define HAVE_FINITE 1
12623 _ACEOF
12624
12625 echo "$as_me:$LINENO: result: yes" >&5
12626 echo "${ECHO_T}yes" >&6
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12630 echo "$as_me:$LINENO: result: no" >&5
12631 echo "${ECHO_T}no" >&6
12632 fi
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12634
12635 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12636 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640 #include <setjmp.h>
12641 #ifdef F77_DUMMY_MAIN
12642 #  ifdef __cplusplus
12643      extern "C"
12644 #  endif
12645    int F77_DUMMY_MAIN() { return 1; }
12646 #endif
12647 int
12648 main ()
12649 {
12650 sigjmp_buf x; sigsetjmp(x, 1);
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 rm -f conftest.$ac_objext conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657   (eval $ac_link) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } &&
12661          { ac_try='test -s conftest$ac_exeext'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; }; then
12667
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_SIGSETJMP 1
12670 _ACEOF
12671
12672 echo "$as_me:$LINENO: result: yes" >&5
12673 echo "${ECHO_T}yes" >&6
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 echo "$as_me:$LINENO: result: no" >&5
12678 echo "${ECHO_T}no" >&6
12679 fi
12680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12681
12682 echo "$as_me:$LINENO: checking for syslog" >&5
12683 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12684 if test "${ac_cv_func_syslog+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 #line $LINENO "configure"
12689 #include "confdefs.h"
12690 /* System header to define __stub macros and hopefully few prototypes,
12691     which can conflict with char syslog (); below.  */
12692 #include <assert.h>
12693 /* Override any gcc2 internal prototype to avoid an error.  */
12694 #ifdef __cplusplus
12695 extern "C"
12696 #endif
12697 /* We use char because int might match the return type of a gcc2
12698    builtin and then its argument prototype would still apply.  */
12699 char syslog ();
12700 char (*f) ();
12701
12702 #ifdef F77_DUMMY_MAIN
12703 #  ifdef __cplusplus
12704      extern "C"
12705 #  endif
12706    int F77_DUMMY_MAIN() { return 1; }
12707 #endif
12708 int
12709 main ()
12710 {
12711 /* The GNU C library defines this for functions which it implements
12712     to always fail with ENOSYS.  Some functions are actually named
12713     something starting with __ and the normal name is an alias.  */
12714 #if defined (__stub_syslog) || defined (__stub___syslog)
12715 choke me
12716 #else
12717 f = syslog;
12718 #endif
12719
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726   (eval $ac_link) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); } &&
12730          { ac_try='test -s conftest$ac_exeext'
12731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732   (eval $ac_try) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   ac_cv_func_syslog=yes
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12740 ac_cv_func_syslog=no
12741 fi
12742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12743 fi
12744 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12745 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12746 if test $ac_cv_func_syslog = yes; then
12747   if test "${ac_cv_header_syslog_h+set}" = set; then
12748   echo "$as_me:$LINENO: checking for syslog.h" >&5
12749 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12750 if test "${ac_cv_header_syslog_h+set}" = set; then
12751   echo $ECHO_N "(cached) $ECHO_C" >&6
12752 fi
12753 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12754 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12755 else
12756   # Is the header compilable?
12757 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12758 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12759 cat >conftest.$ac_ext <<_ACEOF
12760 #line $LINENO "configure"
12761 #include "confdefs.h"
12762 $ac_includes_default
12763 #include <syslog.h>
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767   (eval $ac_compile) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -s conftest.$ac_objext'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   ac_header_compiler=yes
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12781 ac_header_compiler=no
12782 fi
12783 rm -f conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12785 echo "${ECHO_T}$ac_header_compiler" >&6
12786
12787 # Is the header present?
12788 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12789 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12793 #include <syslog.h>
12794 _ACEOF
12795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12797   ac_status=$?
12798   egrep -v '^ *\+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } >/dev/null; then
12803   if test -s conftest.err; then
12804     ac_cpp_err=$ac_c_preproc_warn_flag
12805   else
12806     ac_cpp_err=
12807   fi
12808 else
12809   ac_cpp_err=yes
12810 fi
12811 if test -z "$ac_cpp_err"; then
12812   ac_header_preproc=yes
12813 else
12814   echo "$as_me: failed program was:" >&5
12815   cat conftest.$ac_ext >&5
12816   ac_header_preproc=no
12817 fi
12818 rm -f conftest.err conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12820 echo "${ECHO_T}$ac_header_preproc" >&6
12821
12822 # So?  What about this header?
12823 case $ac_header_compiler:$ac_header_preproc in
12824   yes:no )
12825     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12826 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12827     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12829   no:yes )
12830     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12831 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12832     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12833 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12834     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12835 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12836 esac
12837 echo "$as_me:$LINENO: checking for syslog.h" >&5
12838 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_syslog_h+set}" = set; then
12840   echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842   ac_cv_header_syslog_h=$ac_header_preproc
12843 fi
12844 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12846
12847 fi
12848 if test $ac_cv_header_syslog_h = yes; then
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_SYSLOG 1
12852 _ACEOF
12853
12854 fi
12855
12856
12857 fi
12858
12859
12860 echo "$as_me:$LINENO: checking for optreset" >&5
12861 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12862 if test "${pgac_cv_var_int_optreset+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 #include <unistd.h>
12869 #ifdef F77_DUMMY_MAIN
12870 #  ifdef __cplusplus
12871      extern "C"
12872 #  endif
12873    int F77_DUMMY_MAIN() { return 1; }
12874 #endif
12875 int
12876 main ()
12877 {
12878 extern int optreset; optreset = 1;
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12885   (eval $ac_link) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -s conftest$ac_exeext'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   pgac_cv_var_int_optreset=yes
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12899 pgac_cv_var_int_optreset=no
12900 fi
12901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12902 fi
12903 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12904 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12905 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12906
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_INT_OPTRESET 1
12909 _ACEOF
12910
12911 fi
12912
12913
12914
12915 for ac_func in strtoll strtoq
12916 do
12917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12918 echo "$as_me:$LINENO: checking for $ac_func" >&5
12919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12920 if eval "test \"\${$as_ac_var+set}\" = set"; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 #include "confdefs.h"
12926 /* System header to define __stub macros and hopefully few prototypes,
12927     which can conflict with char $ac_func (); below.  */
12928 #include <assert.h>
12929 /* Override any gcc2 internal prototype to avoid an error.  */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 /* We use char because int might match the return type of a gcc2
12934    builtin and then its argument prototype would still apply.  */
12935 char $ac_func ();
12936 char (*f) ();
12937
12938 #ifdef F77_DUMMY_MAIN
12939 #  ifdef __cplusplus
12940      extern "C"
12941 #  endif
12942    int F77_DUMMY_MAIN() { return 1; }
12943 #endif
12944 int
12945 main ()
12946 {
12947 /* The GNU C library defines this for functions which it implements
12948     to always fail with ENOSYS.  Some functions are actually named
12949     something starting with __ and the normal name is an alias.  */
12950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12951 choke me
12952 #else
12953 f = $ac_func;
12954 #endif
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12962   (eval $ac_link) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } &&
12966          { ac_try='test -s conftest$ac_exeext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   eval "$as_ac_var=yes"
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 eval "$as_ac_var=no"
12977 fi
12978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12979 fi
12980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12982 if test `eval echo '${'$as_ac_var'}'` = yes; then
12983   cat >>confdefs.h <<_ACEOF
12984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12985 _ACEOF
12986  break
12987 fi
12988 done
12989
12990
12991
12992 for ac_func in strtoull strtouq
12993 do
12994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12995 echo "$as_me:$LINENO: checking for $ac_func" >&5
12996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12997 if eval "test \"\${$as_ac_var+set}\" = set"; then
12998   echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000   cat >conftest.$ac_ext <<_ACEOF
13001 #line $LINENO "configure"
13002 #include "confdefs.h"
13003 /* System header to define __stub macros and hopefully few prototypes,
13004     which can conflict with char $ac_func (); below.  */
13005 #include <assert.h>
13006 /* Override any gcc2 internal prototype to avoid an error.  */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 /* We use char because int might match the return type of a gcc2
13011    builtin and then its argument prototype would still apply.  */
13012 char $ac_func ();
13013 char (*f) ();
13014
13015 #ifdef F77_DUMMY_MAIN
13016 #  ifdef __cplusplus
13017      extern "C"
13018 #  endif
13019    int F77_DUMMY_MAIN() { return 1; }
13020 #endif
13021 int
13022 main ()
13023 {
13024 /* The GNU C library defines this for functions which it implements
13025     to always fail with ENOSYS.  Some functions are actually named
13026     something starting with __ and the normal name is an alias.  */
13027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13028 choke me
13029 #else
13030 f = $ac_func;
13031 #endif
13032
13033   ;
13034   return 0;
13035 }
13036 _ACEOF
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -s conftest$ac_exeext'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   eval "$as_ac_var=yes"
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 eval "$as_ac_var=no"
13054 fi
13055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13056 fi
13057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13059 if test `eval echo '${'$as_ac_var'}'` = yes; then
13060   cat >>confdefs.h <<_ACEOF
13061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13062 _ACEOF
13063  break
13064 fi
13065 done
13066
13067
13068 # Check for one of atexit() or on_exit()
13069
13070 for ac_func in atexit
13071 do
13072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 echo "$as_me:$LINENO: checking for $ac_func" >&5
13074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13075 if eval "test \"\${$as_ac_var+set}\" = set"; then
13076   echo $ECHO_N "(cached) $ECHO_C" >&6
13077 else
13078   cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13080 #include "confdefs.h"
13081 /* System header to define __stub macros and hopefully few prototypes,
13082     which can conflict with char $ac_func (); below.  */
13083 #include <assert.h>
13084 /* Override any gcc2 internal prototype to avoid an error.  */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 /* We use char because int might match the return type of a gcc2
13089    builtin and then its argument prototype would still apply.  */
13090 char $ac_func ();
13091 char (*f) ();
13092
13093 #ifdef F77_DUMMY_MAIN
13094 #  ifdef __cplusplus
13095      extern "C"
13096 #  endif
13097    int F77_DUMMY_MAIN() { return 1; }
13098 #endif
13099 int
13100 main ()
13101 {
13102 /* The GNU C library defines this for functions which it implements
13103     to always fail with ENOSYS.  Some functions are actually named
13104     something starting with __ and the normal name is an alias.  */
13105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13106 choke me
13107 #else
13108 f = $ac_func;
13109 #endif
13110
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 rm -f conftest.$ac_objext conftest$ac_exeext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117   (eval $ac_link) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } &&
13121          { ac_try='test -s conftest$ac_exeext'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; }; then
13127   eval "$as_ac_var=yes"
13128 else
13129   echo "$as_me: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 eval "$as_ac_var=no"
13132 fi
13133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13134 fi
13135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13137 if test `eval echo '${'$as_ac_var'}'` = yes; then
13138   cat >>confdefs.h <<_ACEOF
13139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13140 _ACEOF
13141
13142 else
13143
13144 for ac_func in on_exit
13145 do
13146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 echo "$as_me:$LINENO: checking for $ac_func" >&5
13148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_var+set}\" = set"; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156     which can conflict with char $ac_func (); below.  */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error.  */
13159 #ifdef __cplusplus
13160 extern "C"
13161 #endif
13162 /* We use char because int might match the return type of a gcc2
13163    builtin and then its argument prototype would still apply.  */
13164 char $ac_func ();
13165 char (*f) ();
13166
13167 #ifdef F77_DUMMY_MAIN
13168 #  ifdef __cplusplus
13169      extern "C"
13170 #  endif
13171    int F77_DUMMY_MAIN() { return 1; }
13172 #endif
13173 int
13174 main ()
13175 {
13176 /* The GNU C library defines this for functions which it implements
13177     to always fail with ENOSYS.  Some functions are actually named
13178     something starting with __ and the normal name is an alias.  */
13179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13180 choke me
13181 #else
13182 f = $ac_func;
13183 #endif
13184
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13191   (eval $ac_link) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } &&
13195          { ac_try='test -s conftest$ac_exeext'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   eval "$as_ac_var=yes"
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 eval "$as_ac_var=no"
13206 fi
13207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13208 fi
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13211 if test `eval echo '${'$as_ac_var'}'` = yes; then
13212   cat >>confdefs.h <<_ACEOF
13213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13214 _ACEOF
13215
13216 else
13217   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13218 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13219    { (exit 1); exit 1; }; }
13220 fi
13221 done
13222
13223 fi
13224 done
13225
13226
13227 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13228 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13229 if test "${ac_cv_sys_largefile_source+set}" = set; then
13230   echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13232   while :; do
13233   ac_cv_sys_largefile_source=no
13234   cat >conftest.$ac_ext <<_ACEOF
13235 #line $LINENO "configure"
13236 #include "confdefs.h"
13237 #include <stdio.h>
13238 #ifdef F77_DUMMY_MAIN
13239 #  ifdef __cplusplus
13240      extern "C"
13241 #  endif
13242    int F77_DUMMY_MAIN() { return 1; }
13243 #endif
13244 int
13245 main ()
13246 {
13247 return !fseeko;
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254   (eval $ac_compile) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } &&
13258          { ac_try='test -s conftest.$ac_objext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   break
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 fi
13269 rm -f conftest.$ac_objext conftest.$ac_ext
13270   cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13272 #include "confdefs.h"
13273 #define _LARGEFILE_SOURCE 1
13274 #include <stdio.h>
13275 #ifdef F77_DUMMY_MAIN
13276 #  ifdef __cplusplus
13277      extern "C"
13278 #  endif
13279    int F77_DUMMY_MAIN() { return 1; }
13280 #endif
13281 int
13282 main ()
13283 {
13284 return !fseeko;
13285   ;
13286   return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291   (eval $ac_compile) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); } &&
13295          { ac_try='test -s conftest.$ac_objext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_cv_sys_largefile_source=1; break
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 fi
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13307   break
13308 done
13309 fi
13310 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13312 if test "$ac_cv_sys_largefile_source" != no; then
13313
13314 cat >>confdefs.h <<_ACEOF
13315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13316 _ACEOF
13317
13318 fi
13319 rm -f conftest*
13320
13321 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13322 # in glibc 2.1.3, but that breaks too many other things.
13323 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13324 echo "$as_me:$LINENO: checking for fseeko" >&5
13325 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13326 if test "${ac_cv_func_fseeko+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329   cat >conftest.$ac_ext <<_ACEOF
13330 #line $LINENO "configure"
13331 #include "confdefs.h"
13332 #include <stdio.h>
13333 #ifdef F77_DUMMY_MAIN
13334 #  ifdef __cplusplus
13335      extern "C"
13336 #  endif
13337    int F77_DUMMY_MAIN() { return 1; }
13338 #endif
13339 int
13340 main ()
13341 {
13342 return fseeko && fseeko (stdin, 0, 0);
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13349   (eval $ac_link) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } &&
13353          { ac_try='test -s conftest$ac_exeext'
13354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355   (eval $ac_try) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; }; then
13359   ac_cv_func_fseeko=yes
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 cat conftest.$ac_ext >&5
13363 ac_cv_func_fseeko=no
13364 fi
13365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13366 fi
13367 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13368 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13369 if test $ac_cv_func_fseeko = yes; then
13370
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_FSEEKO 1
13373 _ACEOF
13374
13375 fi
13376
13377
13378 #
13379 # Pthreads
13380 #
13381 # For each platform, we need to know about any special compile and link
13382 # libraries, and whether the normal C function names are thread-safe.
13383 # See the comment at the top of src/port/thread.c for more information.
13384 #
13385 if test "$enable_thread_safety" = yes; then
13386
13387
13388
13389
13390 ac_ext=c
13391 ac_cpp='$CPP $CPPFLAGS'
13392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13395
13396 acx_pthread_ok=no
13397
13398 # We used to check for pthread.h first, but this fails if pthread.h
13399 # requires special compiler flags (e.g. on True64 or Sequent).
13400 # It gets checked for in the link test anyway.
13401
13402 # First of all, check if the user has set any of the PTHREAD_LIBS,
13403 # etcetera environment variables, and if threads linking works using
13404 # them:
13405 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13406         save_CFLAGS="$CFLAGS"
13407         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13408         save_LIBS="$LIBS"
13409         LIBS="$PTHREAD_LIBS $LIBS"
13410         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13411 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13412         cat >conftest.$ac_ext <<_ACEOF
13413 #line $LINENO "configure"
13414 #include "confdefs.h"
13415
13416 /* Override any gcc2 internal prototype to avoid an error.  */
13417 #ifdef __cplusplus
13418 extern "C"
13419 #endif
13420 /* We use char because int might match the return type of a gcc2
13421    builtin and then its argument prototype would still apply.  */
13422 char pthread_join ();
13423 #ifdef F77_DUMMY_MAIN
13424 #  ifdef __cplusplus
13425      extern "C"
13426 #  endif
13427    int F77_DUMMY_MAIN() { return 1; }
13428 #endif
13429 int
13430 main ()
13431 {
13432 pthread_join ();
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13439   (eval $ac_link) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -s conftest$ac_exeext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449   acx_pthread_ok=yes
13450 else
13451   echo "$as_me: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13453 fi
13454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13455         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13456 echo "${ECHO_T}$acx_pthread_ok" >&6
13457         if test x"$acx_pthread_ok" = xno; then
13458                 PTHREAD_LIBS=""
13459                 PTHREAD_CFLAGS=""
13460         fi
13461         LIBS="$save_LIBS"
13462         CFLAGS="$save_CFLAGS"
13463 fi
13464
13465 # We must check for the threads library under a number of different
13466 # names; the ordering is very important because some systems
13467 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13468 # libraries is broken (non-POSIX).
13469
13470 # Create a list of thread flags to try.  Items starting with a "-" are
13471 # C compiler flags, and other items are library names, except for "none"
13472 # which indicates that we try without any flags at all, and "pthread-config"
13473 # which is a program returning the flags for the Pth emulation library.
13474
13475 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13476
13477 # The ordering *is* (sometimes) important.  Some notes on the
13478 # individual items follow:
13479
13480 # pthreads: AIX (must check this before -lpthread)
13481 # none: in case threads are in libc; should be tried before -Kthread and
13482 #       other compiler flags to prevent continual compiler warnings
13483 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13484 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13485 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13486 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13487 # -pthreads: Solaris/gcc
13488 # -mthreads: Mingw32/gcc, Lynx/gcc
13489 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13490 #      doesn't hurt to check since this sometimes defines pthreads too;
13491 #      also defines -D_REENTRANT)
13492 # pthread: Linux, etcetera
13493 # --thread-safe: KAI C++
13494 # pthread-config: use pthread-config program (for GNU Pth library)
13495
13496 case "${host_cpu}-${host_os}" in
13497         *solaris*)
13498
13499         # On Solaris (at least, for some versions), libc contains stubbed
13500         # (non-functional) versions of the pthreads routines, so link-based
13501         # tests will erroneously succeed.  (We need to link with -pthread or
13502         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13503         # a function called by this macro, so we could check for that, but
13504         # who knows whether they'll stub that too in a future libc.)  So,
13505         # we'll just look for -pthreads and -lpthread first:
13506
13507         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13508         ;;
13509 esac
13510
13511 if test x"$acx_pthread_ok" = xno; then
13512 for flag in $acx_pthread_flags; do
13513
13514         tryPTHREAD_CFLAGS=""
13515         tryPTHREAD_LIBS=""
13516         case $flag in
13517                 none)
13518                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13519 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13520                 ;;
13521
13522                 -*)
13523                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13524 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13525                 tryPTHREAD_CFLAGS="$flag"
13526                 ;;
13527
13528                 pthread-config)
13529                 # skip this if we already have flags defined, for PostgreSQL
13530                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13531                 # Extract the first word of "pthread-config", so it can be a program name with args.
13532 set dummy pthread-config; ac_word=$2
13533 echo "$as_me:$LINENO: checking for $ac_word" >&5
13534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13535 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   if test -n "$acx_pthread_config"; then
13539   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13540 else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13543 do
13544   IFS=$as_save_IFS
13545   test -z "$as_dir" && as_dir=.
13546   for ac_exec_ext in '' $ac_executable_extensions; do
13547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13548     ac_cv_prog_acx_pthread_config="yes"
13549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13550     break 2
13551   fi
13552 done
13553 done
13554
13555   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13556 fi
13557 fi
13558 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13559 if test -n "$acx_pthread_config"; then
13560   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13561 echo "${ECHO_T}$acx_pthread_config" >&6
13562 else
13563   echo "$as_me:$LINENO: result: no" >&5
13564 echo "${ECHO_T}no" >&6
13565 fi
13566
13567                 if test x"$acx_pthread_config" = xno; then continue; fi
13568                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13569                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13570                 ;;
13571
13572                 *)
13573                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13574 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13575                 tryPTHREAD_LIBS="-l$flag"
13576                 ;;
13577         esac
13578
13579         save_LIBS="$LIBS"
13580         save_CFLAGS="$CFLAGS"
13581         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13582         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13583
13584         # Check for various functions.  We must include pthread.h,
13585         # since some functions may be macros.  (On the Sequent, we
13586         # need a special flag -Kthread to make this header compile.)
13587         # We check for pthread_join because it is in -lpthread on IRIX
13588         # while pthread_create is in libc.  We check for pthread_attr_init
13589         # due to DEC craziness with -lpthreads.  We check for
13590         # pthread_cleanup_push because it is one of the few pthread
13591         # functions on Solaris that doesn't have a non-functional libc stub.
13592         # We try pthread_create on general principles.
13593         cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 #include "confdefs.h"
13596 #include <pthread.h>
13597 #ifdef F77_DUMMY_MAIN
13598 #  ifdef __cplusplus
13599      extern "C"
13600 #  endif
13601    int F77_DUMMY_MAIN() { return 1; }
13602 #endif
13603 int
13604 main ()
13605 {
13606 pthread_t th; pthread_join(th, 0);
13607                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
13608                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615   (eval $ac_link) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -s conftest$ac_exeext'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   acx_pthread_ok=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13629 acx_pthread_ok=no
13630 fi
13631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13632
13633         if test "x$acx_pthread_ok" = xyes; then
13634             # Don't use options that are ignored by the compiler.
13635             # We find them by checking stderror.
13636             cat >conftest.$ac_ext <<_ACEOF
13637 int
13638 main (int argc, char **argv)
13639 {
13640   (void) argc;
13641   (void) argv;
13642   return 0;
13643 }
13644 _ACEOF
13645             rm -f conftest.$ac_objext conftest$ac_exeext
13646             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
13647                 # we continue with more flags because Linux needs -lpthread
13648                 # for libpq builds on PostgreSQL.  The test above only
13649                 # tests for building binaries, not shared libraries.
13650                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13651                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13652             else   acx_pthread_ok=no
13653             fi
13654         fi
13655
13656         LIBS="$save_LIBS"
13657         CFLAGS="$save_CFLAGS"
13658
13659         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13660 echo "${ECHO_T}$acx_pthread_ok" >&6
13661 done
13662 fi
13663
13664 # Various other checks:
13665 if test "x$acx_pthread_ok" = xyes; then
13666         save_LIBS="$LIBS"
13667         LIBS="$PTHREAD_LIBS $LIBS"
13668         save_CFLAGS="$CFLAGS"
13669         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13670
13671         # Detect AIX lossage: threads are created detached by default
13672         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13673         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13674 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13675         cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 #include <pthread.h>
13679 #ifdef F77_DUMMY_MAIN
13680 #  ifdef __cplusplus
13681      extern "C"
13682 #  endif
13683    int F77_DUMMY_MAIN() { return 1; }
13684 #endif
13685 int
13686 main ()
13687 {
13688 int attr=PTHREAD_CREATE_JOINABLE;
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695   (eval $ac_link) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -s conftest$ac_exeext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ok=PTHREAD_CREATE_JOINABLE
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 ok=unknown
13710 fi
13711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13712         if test x"$ok" = xunknown; then
13713                 cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 #include "confdefs.h"
13716 #include <pthread.h>
13717 #ifdef F77_DUMMY_MAIN
13718 #  ifdef __cplusplus
13719      extern "C"
13720 #  endif
13721    int F77_DUMMY_MAIN() { return 1; }
13722 #endif
13723 int
13724 main ()
13725 {
13726 int attr=PTHREAD_CREATE_UNDETACHED;
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733   (eval $ac_link) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest$ac_exeext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ok=PTHREAD_CREATE_UNDETACHED
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ok=unknown
13748 fi
13749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13750         fi
13751         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13752
13753 cat >>confdefs.h <<\_ACEOF
13754 #define PTHREAD_CREATE_JOINABLE $ok
13755 _ACEOF
13756
13757         fi
13758         echo "$as_me:$LINENO: result: ${ok}" >&5
13759 echo "${ECHO_T}${ok}" >&6
13760         if test x"$ok" = xunknown; then
13761                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13762 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13763         fi
13764
13765         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13766 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13767         flag=no
13768 # We always add these in PostgreSQL
13769 #       case "${host_cpu}-${host_os}" in
13770 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13771 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13772 #       esac
13773         echo "$as_me:$LINENO: result: ${flag}" >&5
13774 echo "${ECHO_T}${flag}" >&6
13775         if test "x$flag" != xno; then
13776                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13777         fi
13778
13779         LIBS="$save_LIBS"
13780         CFLAGS="$save_CFLAGS"
13781
13782 # Supporting cc_r would require a special CC in all places that
13783 # use libpq, and that is ugly, so we don't do it.  Users can still
13784 # define their compiler as cc_r to do thread builds of everything.
13785         # More AIX lossage: must compile with cc_r
13786         # Extract the first word of "cc_r", so it can be a program name with args.
13787 set dummy cc_r; ac_word=$2
13788 echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13790 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   if test -n "$PTHREAD_CC"; then
13794   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13795 else
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13798 do
13799   IFS=$as_save_IFS
13800   test -z "$as_dir" && as_dir=.
13801   for ac_exec_ext in '' $ac_executable_extensions; do
13802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803     ac_cv_prog_PTHREAD_CC="cc_r"
13804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13805     break 2
13806   fi
13807 done
13808 done
13809
13810   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13811 fi
13812 fi
13813 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13814 if test -n "$PTHREAD_CC"; then
13815   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13816 echo "${ECHO_T}$PTHREAD_CC" >&6
13817 else
13818   echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13820 fi
13821
13822 else
13823         PTHREAD_CC="$CC"
13824 fi
13825
13826
13827
13828
13829
13830 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13831 if test x"$acx_pthread_ok" = xyes; then
13832
13833 cat >>confdefs.h <<\_ACEOF
13834 #define HAVE_PTHREAD 1
13835 _ACEOF
13836
13837         :
13838 else
13839         acx_pthread_ok=no
13840
13841 fi
13842 ac_ext=c
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13847
13848         # set thread flags
13849
13850 # Some platforms use these, so just defineed them.  They can't hurt if they
13851 # are not supported.
13852 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13853
13854
13855 # At this point, we don't want to muck with the compiler name for threading.
13856 # Let's see who fails, perhaps AIX.  2004-04-23
13857 if test "$PTHREAD_CC" != "$CC"; then
13858 { { echo "$as_me:$LINENO: error:
13859 PostgreSQL does not support platforms that require a special
13860 compiler binary for thread-safety.
13861 " >&5
13862 echo "$as_me: error:
13863 PostgreSQL does not support platforms that require a special
13864 compiler binary for thread-safety.
13865 " >&2;}
13866    { (exit 1); exit 1; }; }
13867 fi
13868
13869 if test "$THREAD_SUPPORT" = no; then
13870 { { echo "$as_me:$LINENO: error:
13871 Cannot enable threads on your platform.
13872 Your platform is known to not support thread-safe programs.
13873 For details, compile and run src/bin/pg_thread_test.
13874 " >&5
13875 echo "$as_me: error:
13876 Cannot enable threads on your platform.
13877 Your platform is known to not support thread-safe programs.
13878 For details, compile and run src/bin/pg_thread_test.
13879 " >&2;}
13880    { (exit 1); exit 1; }; }
13881 fi
13882
13883 # Check for *_r functions
13884 _CFLAGS="$CFLAGS"
13885 _LIBS="$LIBS"
13886 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13887 LIBS="$LIBS $PTHREAD_LIBS"
13888
13889 if test "${ac_cv_header_pthread_h+set}" = set; then
13890   echo "$as_me:$LINENO: checking for pthread.h" >&5
13891 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13892 if test "${ac_cv_header_pthread_h+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 fi
13895 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13896 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13897 else
13898   # Is the header compilable?
13899 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13900 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13901 cat >conftest.$ac_ext <<_ACEOF
13902 #line $LINENO "configure"
13903 #include "confdefs.h"
13904 $ac_includes_default
13905 #include <pthread.h>
13906 _ACEOF
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909   (eval $ac_compile) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } &&
13913          { ac_try='test -s conftest.$ac_objext'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_header_compiler=yes
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 ac_header_compiler=no
13924 fi
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13927 echo "${ECHO_T}$ac_header_compiler" >&6
13928
13929 # Is the header present?
13930 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13931 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13934 #include "confdefs.h"
13935 #include <pthread.h>
13936 _ACEOF
13937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13939   ac_status=$?
13940   egrep -v '^ *\+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } >/dev/null; then
13945   if test -s conftest.err; then
13946     ac_cpp_err=$ac_c_preproc_warn_flag
13947   else
13948     ac_cpp_err=
13949   fi
13950 else
13951   ac_cpp_err=yes
13952 fi
13953 if test -z "$ac_cpp_err"; then
13954   ac_header_preproc=yes
13955 else
13956   echo "$as_me: failed program was:" >&5
13957   cat conftest.$ac_ext >&5
13958   ac_header_preproc=no
13959 fi
13960 rm -f conftest.err conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13962 echo "${ECHO_T}$ac_header_preproc" >&6
13963
13964 # So?  What about this header?
13965 case $ac_header_compiler:$ac_header_preproc in
13966   yes:no )
13967     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13968 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13969     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13971   no:yes )
13972     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13973 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13974     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13975 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13976     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13978 esac
13979 echo "$as_me:$LINENO: checking for pthread.h" >&5
13980 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13981 if test "${ac_cv_header_pthread_h+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   ac_cv_header_pthread_h=$ac_header_preproc
13985 fi
13986 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13987 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13988
13989 fi
13990 if test $ac_cv_header_pthread_h = yes; then
13991   :
13992 else
13993   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13994 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13995    { (exit 1); exit 1; }; }
13996 fi
13997
13998
13999
14000
14001
14002
14003 for ac_func in strerror_r getpwuid_r gethostbyname_r
14004 do
14005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14006 echo "$as_me:$LINENO: checking for $ac_func" >&5
14007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14008 if eval "test \"\${$as_ac_var+set}\" = set"; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011   cat >conftest.$ac_ext <<_ACEOF
14012 #line $LINENO "configure"
14013 #include "confdefs.h"
14014 /* System header to define __stub macros and hopefully few prototypes,
14015     which can conflict with char $ac_func (); below.  */
14016 #include <assert.h>
14017 /* Override any gcc2 internal prototype to avoid an error.  */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 /* We use char because int might match the return type of a gcc2
14022    builtin and then its argument prototype would still apply.  */
14023 char $ac_func ();
14024 char (*f) ();
14025
14026 #ifdef F77_DUMMY_MAIN
14027 #  ifdef __cplusplus
14028      extern "C"
14029 #  endif
14030    int F77_DUMMY_MAIN() { return 1; }
14031 #endif
14032 int
14033 main ()
14034 {
14035 /* The GNU C library defines this for functions which it implements
14036     to always fail with ENOSYS.  Some functions are actually named
14037     something starting with __ and the normal name is an alias.  */
14038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14039 choke me
14040 #else
14041 f = $ac_func;
14042 #endif
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050   (eval $ac_link) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); } &&
14054          { ac_try='test -s conftest$ac_exeext'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; }; then
14060   eval "$as_ac_var=yes"
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 eval "$as_ac_var=no"
14065 fi
14066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14067 fi
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14070 if test `eval echo '${'$as_ac_var'}'` = yes; then
14071   cat >>confdefs.h <<_ACEOF
14072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14073 _ACEOF
14074
14075 fi
14076 done
14077
14078
14079 # Do test here with the proper thread flags
14080 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14081 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14082 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085   cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 #include <sys/types.h>
14089 #include <pwd.h>
14090 #ifdef F77_DUMMY_MAIN
14091 #  ifdef __cplusplus
14092      extern "C"
14093 #  endif
14094    int F77_DUMMY_MAIN() { return 1; }
14095 #endif
14096 int
14097 main ()
14098 {
14099 uid_t uid;
14100 struct passwd *space;
14101 char *buf;
14102 size_t bufsize;
14103 struct passwd **result;
14104 getpwuid_r(uid, space, buf, bufsize, result);
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   pgac_func_getpwuid_r_5arg=yes
14122 else
14123   echo "$as_me: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 pgac_func_getpwuid_r_5arg=no
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128 fi
14129 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14130 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14131 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14132
14133 cat >>confdefs.h <<\_ACEOF
14134 #define GETPWUID_R_5ARG
14135 _ACEOF
14136
14137 fi
14138
14139 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14140 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14141 if test "${pgac_func_strerror_r_int+set}" = set; then
14142   echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144   cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 #include "confdefs.h"
14147 #include <string.h>
14148 #ifdef F77_DUMMY_MAIN
14149 #  ifdef __cplusplus
14150      extern "C"
14151 #  endif
14152    int F77_DUMMY_MAIN() { return 1; }
14153 #endif
14154 int
14155 main ()
14156 {
14157 #ifndef _AIX
14158 int strerror_r(int, char *, size_t);
14159 #else
14160 /* Older AIX has 'int' for the third argument so we don't test the args. */
14161 int strerror_r();
14162 #endif
14163   ;
14164   return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169   (eval $ac_compile) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } &&
14173          { ac_try='test -s conftest.$ac_objext'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   pgac_func_strerror_r_int=yes
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 pgac_func_strerror_r_int=no
14184 fi
14185 rm -f conftest.$ac_objext conftest.$ac_ext
14186 fi
14187 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14188 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14189 if test x"$pgac_func_strerror_r_int" = xyes ; then
14190
14191 cat >>confdefs.h <<\_ACEOF
14192 #define STRERROR_R_INT
14193 _ACEOF
14194
14195 fi
14196
14197
14198 CFLAGS="$_CFLAGS"
14199 LIBS="$_LIBS"
14200
14201 else
14202 # do not use values from template file
14203 PTHREAD_CFLAGS=
14204 PTHREAD_LIBS=
14205 fi
14206
14207
14208
14209
14210
14211 # This test makes sure that run tests work at all.  Sometimes a shared
14212 # library is found by the linker, but the runtime linker can't find it.
14213 # This check should come after all modifications of compiler or linker
14214 # variables, and before any other run tests.
14215 echo "$as_me:$LINENO: checking test program" >&5
14216 echo $ECHO_N "checking test program... $ECHO_C" >&6
14217 if test "$cross_compiling" = yes; then
14218   echo "$as_me:$LINENO: result: cross-compiling" >&5
14219 echo "${ECHO_T}cross-compiling" >&6
14220 else
14221   cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 #include "confdefs.h"
14224 int main() { return 0; }
14225 _ACEOF
14226 rm -f conftest$ac_exeext
14227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228   (eval $ac_link) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   echo "$as_me:$LINENO: result: ok" >&5
14238 echo "${ECHO_T}ok" >&6
14239 else
14240   echo "$as_me: program exited with status $ac_status" >&5
14241 echo "$as_me: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 ( exit $ac_status )
14244 echo "$as_me:$LINENO: result: failed" >&5
14245 echo "${ECHO_T}failed" >&6
14246 { { echo "$as_me:$LINENO: error:
14247 *** Could not execute a simple test program.  This may be a problem
14248 *** related to locating shared libraries.  Check the file 'config.log'
14249 *** for the exact reason." >&5
14250 echo "$as_me: error:
14251 *** Could not execute a simple test program.  This may be a problem
14252 *** related to locating shared libraries.  Check the file 'config.log'
14253 *** for the exact reason." >&2;}
14254    { (exit 1); exit 1; }; }
14255 fi
14256 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 fi
14258
14259
14260 # Force use of our snprintf if system's doesn't do arg control
14261 # This feature is used by NLS
14262 if test "$enable_nls" = yes &&
14263    test $pgac_need_repl_snprintf = no &&
14264 # On Win32, libintl replaces snprintf() with its own version that
14265 # understands arg control, so we don't need our own.  In fact, it
14266 # also uses macros that conflict with ours, so we _can't_ use
14267 # our own.
14268    test "$PORTNAME" != "win32"; then
14269   echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
14270 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
14271 if test "${pgac_cv_printf_arg_control+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   if test "$cross_compiling" = yes; then
14275   pgac_cv_printf_arg_control=cross
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 #include <stdio.h>
14281 #include <string.h>
14282
14283 int main()
14284 {
14285   char buf[100];
14286
14287   /* can it swap arguments? */
14288   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14289   if (strcmp(buf, "4 3") != 0)
14290     return 1;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296   (eval $ac_link) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; }; then
14305   pgac_cv_printf_arg_control=yes
14306 else
14307   echo "$as_me: program exited with status $ac_status" >&5
14308 echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ( exit $ac_status )
14311 pgac_cv_printf_arg_control=no
14312 fi
14313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14314 fi
14315
14316 fi
14317 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
14318 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
14319
14320   if test $pgac_cv_printf_arg_control != yes ; then
14321     pgac_need_repl_snprintf=yes
14322   fi
14323 fi
14324
14325
14326
14327 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14328 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14329 if test "${pgac_cv_type_long_int_64+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   if test "$cross_compiling" = yes; then
14333   # If cross-compiling, check the size reported by the compiler and
14334 # trust that the arithmetic works.
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14338
14339 #ifdef F77_DUMMY_MAIN
14340 #  ifdef __cplusplus
14341      extern "C"
14342 #  endif
14343    int F77_DUMMY_MAIN() { return 1; }
14344 #endif
14345 int
14346 main ()
14347 {
14348 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14349 test_array [0] = 0
14350
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357   (eval $ac_compile) 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } &&
14361          { ac_try='test -s conftest.$ac_objext'
14362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363   (eval $ac_try) 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; }; then
14367   pgac_cv_type_long_int_64=yes
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14371 pgac_cv_type_long_int_64=no
14372 fi
14373 rm -f conftest.$ac_objext conftest.$ac_ext
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 #include "confdefs.h"
14378 typedef long int ac_int64;
14379
14380 /*
14381  * These are globals to discourage the compiler from folding all the
14382  * arithmetic tests down to compile-time constants.
14383  */
14384 ac_int64 a = 20000001;
14385 ac_int64 b = 40000005;
14386
14387 int does_int64_work()
14388 {
14389   ac_int64 c,d;
14390
14391   if (sizeof(ac_int64) != 8)
14392     return 0;                   /* definitely not the right size */
14393
14394   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14395   c = a * b;
14396   d = (c + b) / b;
14397   if (d != a+1)
14398     return 0;
14399   return 1;
14400 }
14401 main() {
14402   exit(! does_int64_work());
14403 }
14404 _ACEOF
14405 rm -f conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407   (eval $ac_link) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   pgac_cv_type_long_int_64=yes
14417 else
14418   echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 ( exit $ac_status )
14422 pgac_cv_type_long_int_64=no
14423 fi
14424 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 fi
14427 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14428 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14429
14430 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14431 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14432
14433 cat >>confdefs.h <<\_ACEOF
14434 #define HAVE_LONG_INT_64
14435 _ACEOF
14436
14437 fi
14438
14439
14440 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14441   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14442 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14443 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   if test "$cross_compiling" = yes; then
14447   # If cross-compiling, check the size reported by the compiler and
14448 # trust that the arithmetic works.
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14452
14453 #ifdef F77_DUMMY_MAIN
14454 #  ifdef __cplusplus
14455      extern "C"
14456 #  endif
14457    int F77_DUMMY_MAIN() { return 1; }
14458 #endif
14459 int
14460 main ()
14461 {
14462 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14463 test_array [0] = 0
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   pgac_cv_type_long_long_int_64=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 pgac_cv_type_long_long_int_64=no
14486 fi
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14488 else
14489   cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 typedef long long int ac_int64;
14493
14494 /*
14495  * These are globals to discourage the compiler from folding all the
14496  * arithmetic tests down to compile-time constants.
14497  */
14498 ac_int64 a = 20000001;
14499 ac_int64 b = 40000005;
14500
14501 int does_int64_work()
14502 {
14503   ac_int64 c,d;
14504
14505   if (sizeof(ac_int64) != 8)
14506     return 0;                   /* definitely not the right size */
14507
14508   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14509   c = a * b;
14510   d = (c + b) / b;
14511   if (d != a+1)
14512     return 0;
14513   return 1;
14514 }
14515 main() {
14516   exit(! does_int64_work());
14517 }
14518 _ACEOF
14519 rm -f conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521   (eval $ac_link) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530   pgac_cv_type_long_long_int_64=yes
14531 else
14532   echo "$as_me: program exited with status $ac_status" >&5
14533 echo "$as_me: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 ( exit $ac_status )
14536 pgac_cv_type_long_long_int_64=no
14537 fi
14538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14539 fi
14540 fi
14541 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14542 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14543
14544 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14545 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14546
14547 cat >>confdefs.h <<\_ACEOF
14548 #define HAVE_LONG_LONG_INT_64
14549 _ACEOF
14550
14551 fi
14552
14553 fi
14554
14555
14556
14557 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14558   cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561
14562 #define INT64CONST(x)  x##LL
14563 long long int foo = INT64CONST(0x1234567890123456);
14564
14565 #ifdef F77_DUMMY_MAIN
14566 #  ifdef __cplusplus
14567      extern "C"
14568 #  endif
14569    int F77_DUMMY_MAIN() { return 1; }
14570 #endif
14571 int
14572 main ()
14573 {
14574
14575   ;
14576   return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581   (eval $ac_compile) 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -s conftest.$ac_objext'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; }; then
14591
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_LL_CONSTANTS 1
14594 _ACEOF
14595
14596 else
14597   echo "$as_me: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14599 fi
14600 rm -f conftest.$ac_objext conftest.$ac_ext
14601 fi
14602
14603
14604 # If we found "long int" is 64 bits, assume snprintf handles it.  If
14605 # we found we need to use "long long int", better check.  We cope with
14606 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14607 # work, fall back to our own snprintf emulation (which we know uses %lld).
14608
14609 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14610   if test $pgac_need_repl_snprintf = no; then
14611     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14612 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14613 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   for pgac_format in '%lld' '%qd' '%I64d'; do
14617 if test "$cross_compiling" = yes; then
14618   pgac_cv_snprintf_long_long_int_format=cross; break
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 #include "confdefs.h"
14623 #include <stdio.h>
14624 typedef long long int ac_int64;
14625 #define INT64_FORMAT "$pgac_format"
14626
14627 ac_int64 a = 20000001;
14628 ac_int64 b = 40000005;
14629
14630 int does_int64_snprintf_work()
14631 {
14632   ac_int64 c;
14633   char buf[100];
14634
14635   if (sizeof(ac_int64) != 8)
14636     return 0;                   /* doesn't look like the right size */
14637
14638   c = a * b;
14639   snprintf(buf, 100, INT64_FORMAT, c);
14640   if (strcmp(buf, "800000140000005") != 0)
14641     return 0;                   /* either multiply or snprintf is busted */
14642   return 1;
14643 }
14644 main() {
14645   exit(! does_int64_snprintf_work());
14646 }
14647 _ACEOF
14648 rm -f conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650   (eval $ac_link) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; }; then
14659   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14660 else
14661   echo "$as_me: program exited with status $ac_status" >&5
14662 echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 fi
14665 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 done
14668 fi
14669
14670 LONG_LONG_INT_FORMAT=''
14671
14672 case $pgac_cv_snprintf_long_long_int_format in
14673   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14674 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14675   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14676 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14677          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14678   *)     echo "$as_me:$LINENO: result: none" >&5
14679 echo "${ECHO_T}none" >&6;;
14680 esac
14681     if test "$LONG_LONG_INT_FORMAT" = ""; then
14682       # Force usage of our own snprintf, since system snprintf is broken
14683       pgac_need_repl_snprintf=yes
14684       LONG_LONG_INT_FORMAT='%lld'
14685     fi
14686   else
14687     # Here if we previously decided we needed to use our own snprintf
14688     LONG_LONG_INT_FORMAT='%lld'
14689   fi
14690   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14691   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14692   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14693 else
14694   # Here if we are not using 'long long int' at all
14695   INT64_FORMAT='"%ld"'
14696   UINT64_FORMAT='"%lu"'
14697 fi
14698
14699
14700 cat >>confdefs.h <<_ACEOF
14701 #define INT64_FORMAT $INT64_FORMAT
14702 _ACEOF
14703
14704
14705
14706 cat >>confdefs.h <<_ACEOF
14707 #define UINT64_FORMAT $UINT64_FORMAT
14708 _ACEOF
14709
14710
14711 # Now we have checked all the reasons to replace snprintf
14712 if test $pgac_need_repl_snprintf = yes; then
14713
14714 cat >>confdefs.h <<\_ACEOF
14715 #define USE_SNPRINTF 1
14716 _ACEOF
14717
14718   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14719 fi
14720
14721 # Need a #define for the size of Datum (unsigned long)
14722 echo "$as_me:$LINENO: checking for unsigned long" >&5
14723 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14724 if test "${ac_cv_type_unsigned_long+set}" = set; then
14725   echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727   cat >conftest.$ac_ext <<_ACEOF
14728 #line $LINENO "configure"
14729 #include "confdefs.h"
14730 $ac_includes_default
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 if ((unsigned long *) 0)
14741   return 0;
14742 if (sizeof (unsigned long))
14743   return 0;
14744   ;
14745   return 0;
14746 }
14747 _ACEOF
14748 rm -f conftest.$ac_objext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14750   (eval $ac_compile) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } &&
14754          { ac_try='test -s conftest.$ac_objext'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   ac_cv_type_unsigned_long=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 cat conftest.$ac_ext >&5
14764 ac_cv_type_unsigned_long=no
14765 fi
14766 rm -f conftest.$ac_objext conftest.$ac_ext
14767 fi
14768 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14769 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14770
14771 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14772 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14773 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14774   echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776   if test "$ac_cv_type_unsigned_long" = yes; then
14777   # The cast to unsigned long works around a bug in the HP C Compiler
14778   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780   # This bug is HP SR number 8606223364.
14781   if test "$cross_compiling" = yes; then
14782   # Depending upon the size, compute the lo and hi bounds.
14783 cat >conftest.$ac_ext <<_ACEOF
14784 #line $LINENO "configure"
14785 #include "confdefs.h"
14786 $ac_includes_default
14787 #ifdef F77_DUMMY_MAIN
14788 #  ifdef __cplusplus
14789      extern "C"
14790 #  endif
14791    int F77_DUMMY_MAIN() { return 1; }
14792 #endif
14793 int
14794 main ()
14795 {
14796 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14797 test_array [0] = 0
14798
14799   ;
14800   return 0;
14801 }
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805   (eval $ac_compile) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } &&
14809          { ac_try='test -s conftest.$ac_objext'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_lo=0 ac_mid=0
14816   while :; do
14817     cat >conftest.$ac_ext <<_ACEOF
14818 #line $LINENO "configure"
14819 #include "confdefs.h"
14820 $ac_includes_default
14821 #ifdef F77_DUMMY_MAIN
14822 #  ifdef __cplusplus
14823      extern "C"
14824 #  endif
14825    int F77_DUMMY_MAIN() { return 1; }
14826 #endif
14827 int
14828 main ()
14829 {
14830 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14831 test_array [0] = 0
14832
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839   (eval $ac_compile) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -s conftest.$ac_objext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   ac_hi=$ac_mid; break
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14853 ac_lo=`expr $ac_mid + 1`
14854                     if test $ac_lo -le $ac_mid; then
14855                       ac_lo= ac_hi=
14856                       break
14857                     fi
14858                     ac_mid=`expr 2 '*' $ac_mid + 1`
14859 fi
14860 rm -f conftest.$ac_objext conftest.$ac_ext
14861   done
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 $ac_includes_default
14869 #ifdef F77_DUMMY_MAIN
14870 #  ifdef __cplusplus
14871      extern "C"
14872 #  endif
14873    int F77_DUMMY_MAIN() { return 1; }
14874 #endif
14875 int
14876 main ()
14877 {
14878 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14879 test_array [0] = 0
14880
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887   (eval $ac_compile) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } &&
14891          { ac_try='test -s conftest.$ac_objext'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   ac_hi=-1 ac_mid=-1
14898   while :; do
14899     cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 #include "confdefs.h"
14902 $ac_includes_default
14903 #ifdef F77_DUMMY_MAIN
14904 #  ifdef __cplusplus
14905      extern "C"
14906 #  endif
14907    int F77_DUMMY_MAIN() { return 1; }
14908 #endif
14909 int
14910 main ()
14911 {
14912 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14913 test_array [0] = 0
14914
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921   (eval $ac_compile) 2>&5
14922   ac_status=$?
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -s conftest.$ac_objext'
14926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927   (eval $ac_try) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931   ac_lo=$ac_mid; break
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14935 ac_hi=`expr '(' $ac_mid ')' - 1`
14936                        if test $ac_mid -le $ac_hi; then
14937                          ac_lo= ac_hi=
14938                          break
14939                        fi
14940                        ac_mid=`expr 2 '*' $ac_mid`
14941 fi
14942 rm -f conftest.$ac_objext conftest.$ac_ext
14943   done
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_lo= ac_hi=
14948 fi
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14950 fi
14951 rm -f conftest.$ac_objext conftest.$ac_ext
14952 # Binary search between lo and hi bounds.
14953 while test "x$ac_lo" != "x$ac_hi"; do
14954   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14955   cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14957 #include "confdefs.h"
14958 $ac_includes_default
14959 #ifdef F77_DUMMY_MAIN
14960 #  ifdef __cplusplus
14961      extern "C"
14962 #  endif
14963    int F77_DUMMY_MAIN() { return 1; }
14964 #endif
14965 int
14966 main ()
14967 {
14968 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14969 test_array [0] = 0
14970
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_hi=$ac_mid
14988 else
14989   echo "$as_me: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14991 ac_lo=`expr '(' $ac_mid ')' + 1`
14992 fi
14993 rm -f conftest.$ac_objext conftest.$ac_ext
14994 done
14995 case $ac_lo in
14996 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14997 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14998 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14999    { (exit 1); exit 1; }; } ;;
15000 esac
15001 else
15002   if test "$cross_compiling" = yes; then
15003   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15004 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15005    { (exit 1); exit 1; }; }
15006 else
15007   cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 #include "confdefs.h"
15010 $ac_includes_default
15011 long longval () { return (long) (sizeof (unsigned long)); }
15012 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
15013 #include <stdio.h>
15014 #include <stdlib.h>
15015 #ifdef F77_DUMMY_MAIN
15016 #  ifdef __cplusplus
15017      extern "C"
15018 #  endif
15019    int F77_DUMMY_MAIN() { return 1; }
15020 #endif
15021 int
15022 main ()
15023 {
15024
15025   FILE *f = fopen ("conftest.val", "w");
15026   if (! f)
15027     exit (1);
15028   if (((long) (sizeof (unsigned long))) < 0)
15029     {
15030       long i = longval ();
15031       if (i != ((long) (sizeof (unsigned long))))
15032         exit (1);
15033       fprintf (f, "%ld\n", i);
15034     }
15035   else
15036     {
15037       unsigned long i = ulongval ();
15038       if (i != ((long) (sizeof (unsigned long))))
15039         exit (1);
15040       fprintf (f, "%lu\n", i);
15041     }
15042   exit (ferror (f) || fclose (f) != 0);
15043
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050   (eval $ac_link) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_sizeof_unsigned_long=`cat conftest.val`
15060 else
15061   echo "$as_me: program exited with status $ac_status" >&5
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.$ac_ext >&5
15064 ( exit $ac_status )
15065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15066 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15067    { (exit 1); exit 1; }; }
15068 fi
15069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15070 fi
15071 fi
15072 rm -f conftest.val
15073 else
15074   ac_cv_sizeof_unsigned_long=0
15075 fi
15076 fi
15077 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
15078 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
15079 cat >>confdefs.h <<_ACEOF
15080 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15081 _ACEOF
15082
15083
15084
15085 # Determine memory alignment requirements for the basic C data types.
15086
15087 echo "$as_me:$LINENO: checking for short" >&5
15088 echo $ECHO_N "checking for short... $ECHO_C" >&6
15089 if test "${ac_cv_type_short+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 #ifdef F77_DUMMY_MAIN
15097 #  ifdef __cplusplus
15098      extern "C"
15099 #  endif
15100    int F77_DUMMY_MAIN() { return 1; }
15101 #endif
15102 int
15103 main ()
15104 {
15105 if ((short *) 0)
15106   return 0;
15107 if (sizeof (short))
15108   return 0;
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115   (eval $ac_compile) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -s conftest.$ac_objext'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }; then
15125   ac_cv_type_short=yes
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_cv_type_short=no
15130 fi
15131 rm -f conftest.$ac_objext conftest.$ac_ext
15132 fi
15133 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15134 echo "${ECHO_T}$ac_cv_type_short" >&6
15135
15136 echo "$as_me:$LINENO: checking alignment of short" >&5
15137 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15138 if test "${pgac_cv_alignof_short+set}" = set; then
15139   echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141   if test "$ac_cv_type_short" = yes; then
15142   if test "$cross_compiling" = yes; then
15143   # Depending upon the size, compute the lo and hi bounds.
15144 cat >conftest.$ac_ext <<_ACEOF
15145 #line $LINENO "configure"
15146 #include "confdefs.h"
15147 $ac_includes_default
15148 struct { char filler; short field; } pgac_struct;
15149 #ifdef F77_DUMMY_MAIN
15150 #  ifdef __cplusplus
15151      extern "C"
15152 #  endif
15153    int F77_DUMMY_MAIN() { return 1; }
15154 #endif
15155 int
15156 main ()
15157 {
15158 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15159 test_array [0] = 0
15160
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167   (eval $ac_compile) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } &&
15171          { ac_try='test -s conftest.$ac_objext'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   ac_lo=0 ac_mid=0
15178   while :; do
15179     cat >conftest.$ac_ext <<_ACEOF
15180 #line $LINENO "configure"
15181 #include "confdefs.h"
15182 $ac_includes_default
15183 struct { char filler; short field; } pgac_struct;
15184 #ifdef F77_DUMMY_MAIN
15185 #  ifdef __cplusplus
15186      extern "C"
15187 #  endif
15188    int F77_DUMMY_MAIN() { return 1; }
15189 #endif
15190 int
15191 main ()
15192 {
15193 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15194 test_array [0] = 0
15195
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15202   (eval $ac_compile) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); } &&
15206          { ac_try='test -s conftest.$ac_objext'
15207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208   (eval $ac_try) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); }; }; then
15212   ac_hi=$ac_mid; break
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15216 ac_lo=`expr $ac_mid + 1`
15217                     if test $ac_lo -le $ac_mid; then
15218                       ac_lo= ac_hi=
15219                       break
15220                     fi
15221                     ac_mid=`expr 2 '*' $ac_mid + 1`
15222 fi
15223 rm -f conftest.$ac_objext conftest.$ac_ext
15224   done
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 cat conftest.$ac_ext >&5
15228 cat >conftest.$ac_ext <<_ACEOF
15229 #line $LINENO "configure"
15230 #include "confdefs.h"
15231 $ac_includes_default
15232 struct { char filler; short field; } pgac_struct;
15233 #ifdef F77_DUMMY_MAIN
15234 #  ifdef __cplusplus
15235      extern "C"
15236 #  endif
15237    int F77_DUMMY_MAIN() { return 1; }
15238 #endif
15239 int
15240 main ()
15241 {
15242 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15243 test_array [0] = 0
15244
15245   ;
15246   return 0;
15247 }
15248 _ACEOF
15249 rm -f conftest.$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251   (eval $ac_compile) 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); } &&
15255          { ac_try='test -s conftest.$ac_objext'
15256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257   (eval $ac_try) 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; }; then
15261   ac_hi=-1 ac_mid=-1
15262   while :; do
15263     cat >conftest.$ac_ext <<_ACEOF
15264 #line $LINENO "configure"
15265 #include "confdefs.h"
15266 $ac_includes_default
15267 struct { char filler; short field; } pgac_struct;
15268 #ifdef F77_DUMMY_MAIN
15269 #  ifdef __cplusplus
15270      extern "C"
15271 #  endif
15272    int F77_DUMMY_MAIN() { return 1; }
15273 #endif
15274 int
15275 main ()
15276 {
15277 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15278 test_array [0] = 0
15279
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286   (eval $ac_compile) 2>&5
15287   ac_status=$?
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); } &&
15290          { ac_try='test -s conftest.$ac_objext'
15291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; }; then
15296   ac_lo=$ac_mid; break
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15300 ac_hi=`expr '(' $ac_mid ')' - 1`
15301                        if test $ac_mid -le $ac_hi; then
15302                          ac_lo= ac_hi=
15303                          break
15304                        fi
15305                        ac_mid=`expr 2 '*' $ac_mid`
15306 fi
15307 rm -f conftest.$ac_objext conftest.$ac_ext
15308   done
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 cat conftest.$ac_ext >&5
15312 ac_lo= ac_hi=
15313 fi
15314 rm -f conftest.$ac_objext conftest.$ac_ext
15315 fi
15316 rm -f conftest.$ac_objext conftest.$ac_ext
15317 # Binary search between lo and hi bounds.
15318 while test "x$ac_lo" != "x$ac_hi"; do
15319   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15320   cat >conftest.$ac_ext <<_ACEOF
15321 #line $LINENO "configure"
15322 #include "confdefs.h"
15323 $ac_includes_default
15324 struct { char filler; short field; } pgac_struct;
15325 #ifdef F77_DUMMY_MAIN
15326 #  ifdef __cplusplus
15327      extern "C"
15328 #  endif
15329    int F77_DUMMY_MAIN() { return 1; }
15330 #endif
15331 int
15332 main ()
15333 {
15334 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15335 test_array [0] = 0
15336
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343   (eval $ac_compile) 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); } &&
15347          { ac_try='test -s conftest.$ac_objext'
15348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349   (eval $ac_try) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }; then
15353   ac_hi=$ac_mid
15354 else
15355   echo "$as_me: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 ac_lo=`expr '(' $ac_mid ')' + 1`
15358 fi
15359 rm -f conftest.$ac_objext conftest.$ac_ext
15360 done
15361 case $ac_lo in
15362 ?*) pgac_cv_alignof_short=$ac_lo;;
15363 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15364 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15365    { (exit 1); exit 1; }; } ;;
15366 esac
15367 else
15368   if test "$cross_compiling" = yes; then
15369   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15370 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15371    { (exit 1); exit 1; }; }
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 #line $LINENO "configure"
15375 #include "confdefs.h"
15376 $ac_includes_default
15377 struct { char filler; short field; } pgac_struct;
15378 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15379 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15380 #include <stdio.h>
15381 #include <stdlib.h>
15382 #ifdef F77_DUMMY_MAIN
15383 #  ifdef __cplusplus
15384      extern "C"
15385 #  endif
15386    int F77_DUMMY_MAIN() { return 1; }
15387 #endif
15388 int
15389 main ()
15390 {
15391
15392   FILE *f = fopen ("conftest.val", "w");
15393   if (! f)
15394     exit (1);
15395   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15396     {
15397       long i = longval ();
15398       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15399         exit (1);
15400       fprintf (f, "%ld\n", i);
15401     }
15402   else
15403     {
15404       unsigned long i = ulongval ();
15405       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15406         exit (1);
15407       fprintf (f, "%lu\n", i);
15408     }
15409   exit (ferror (f) || fclose (f) != 0);
15410
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest$ac_exeext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15417   (eval $ac_link) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422   (eval $ac_try) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; }; then
15426   pgac_cv_alignof_short=`cat conftest.val`
15427 else
15428   echo "$as_me: program exited with status $ac_status" >&5
15429 echo "$as_me: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 ( exit $ac_status )
15432 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15433 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15434    { (exit 1); exit 1; }; }
15435 fi
15436 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15437 fi
15438 fi
15439 rm -f conftest.val
15440 else
15441   pgac_cv_alignof_short=0
15442 fi
15443 fi
15444 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15445 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15446 cat >>confdefs.h <<_ACEOF
15447 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15448 _ACEOF
15449
15450
15451 echo "$as_me:$LINENO: checking for int" >&5
15452 echo $ECHO_N "checking for int... $ECHO_C" >&6
15453 if test "${ac_cv_type_int+set}" = set; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   cat >conftest.$ac_ext <<_ACEOF
15457 #line $LINENO "configure"
15458 #include "confdefs.h"
15459 $ac_includes_default
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 if ((int *) 0)
15470   return 0;
15471 if (sizeof (int))
15472   return 0;
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479   (eval $ac_compile) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } &&
15483          { ac_try='test -s conftest.$ac_objext'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; }; then
15489   ac_cv_type_int=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 ac_cv_type_int=no
15494 fi
15495 rm -f conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15498 echo "${ECHO_T}$ac_cv_type_int" >&6
15499
15500 echo "$as_me:$LINENO: checking alignment of int" >&5
15501 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15502 if test "${pgac_cv_alignof_int+set}" = set; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   if test "$ac_cv_type_int" = yes; then
15506   if test "$cross_compiling" = yes; then
15507   # Depending upon the size, compute the lo and hi bounds.
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line $LINENO "configure"
15510 #include "confdefs.h"
15511 $ac_includes_default
15512 struct { char filler; int field; } pgac_struct;
15513 #ifdef F77_DUMMY_MAIN
15514 #  ifdef __cplusplus
15515      extern "C"
15516 #  endif
15517    int F77_DUMMY_MAIN() { return 1; }
15518 #endif
15519 int
15520 main ()
15521 {
15522 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15523 test_array [0] = 0
15524
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531   (eval $ac_compile) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -s conftest.$ac_objext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   ac_lo=0 ac_mid=0
15542   while :; do
15543     cat >conftest.$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15545 #include "confdefs.h"
15546 $ac_includes_default
15547 struct { char filler; int field; } pgac_struct;
15548 #ifdef F77_DUMMY_MAIN
15549 #  ifdef __cplusplus
15550      extern "C"
15551 #  endif
15552    int F77_DUMMY_MAIN() { return 1; }
15553 #endif
15554 int
15555 main ()
15556 {
15557 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15558 test_array [0] = 0
15559
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566   (eval $ac_compile) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } &&
15570          { ac_try='test -s conftest.$ac_objext'
15571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572   (eval $ac_try) 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); }; }; then
15576   ac_hi=$ac_mid; break
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15580 ac_lo=`expr $ac_mid + 1`
15581                     if test $ac_lo -le $ac_mid; then
15582                       ac_lo= ac_hi=
15583                       break
15584                     fi
15585                     ac_mid=`expr 2 '*' $ac_mid + 1`
15586 fi
15587 rm -f conftest.$ac_objext conftest.$ac_ext
15588   done
15589 else
15590   echo "$as_me: failed program was:" >&5
15591 cat conftest.$ac_ext >&5
15592 cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15594 #include "confdefs.h"
15595 $ac_includes_default
15596 struct { char filler; int field; } pgac_struct;
15597 #ifdef F77_DUMMY_MAIN
15598 #  ifdef __cplusplus
15599      extern "C"
15600 #  endif
15601    int F77_DUMMY_MAIN() { return 1; }
15602 #endif
15603 int
15604 main ()
15605 {
15606 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15607 test_array [0] = 0
15608
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615   (eval $ac_compile) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } &&
15619          { ac_try='test -s conftest.$ac_objext'
15620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621   (eval $ac_try) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); }; }; then
15625   ac_hi=-1 ac_mid=-1
15626   while :; do
15627     cat >conftest.$ac_ext <<_ACEOF
15628 #line $LINENO "configure"
15629 #include "confdefs.h"
15630 $ac_includes_default
15631 struct { char filler; int field; } pgac_struct;
15632 #ifdef F77_DUMMY_MAIN
15633 #  ifdef __cplusplus
15634      extern "C"
15635 #  endif
15636    int F77_DUMMY_MAIN() { return 1; }
15637 #endif
15638 int
15639 main ()
15640 {
15641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15642 test_array [0] = 0
15643
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650   (eval $ac_compile) 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -s conftest.$ac_objext'
15655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656   (eval $ac_try) 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; }; then
15660   ac_lo=$ac_mid; break
15661 else
15662   echo "$as_me: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 ac_hi=`expr '(' $ac_mid ')' - 1`
15665                        if test $ac_mid -le $ac_hi; then
15666                          ac_lo= ac_hi=
15667                          break
15668                        fi
15669                        ac_mid=`expr 2 '*' $ac_mid`
15670 fi
15671 rm -f conftest.$ac_objext conftest.$ac_ext
15672   done
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 cat conftest.$ac_ext >&5
15676 ac_lo= ac_hi=
15677 fi
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15679 fi
15680 rm -f conftest.$ac_objext conftest.$ac_ext
15681 # Binary search between lo and hi bounds.
15682 while test "x$ac_lo" != "x$ac_hi"; do
15683   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15684   cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15687 $ac_includes_default
15688 struct { char filler; int field; } pgac_struct;
15689 #ifdef F77_DUMMY_MAIN
15690 #  ifdef __cplusplus
15691      extern "C"
15692 #  endif
15693    int F77_DUMMY_MAIN() { return 1; }
15694 #endif
15695 int
15696 main ()
15697 {
15698 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15699 test_array [0] = 0
15700
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_hi=$ac_mid
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15721 ac_lo=`expr '(' $ac_mid ')' + 1`
15722 fi
15723 rm -f conftest.$ac_objext conftest.$ac_ext
15724 done
15725 case $ac_lo in
15726 ?*) pgac_cv_alignof_int=$ac_lo;;
15727 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15728 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15729    { (exit 1); exit 1; }; } ;;
15730 esac
15731 else
15732   if test "$cross_compiling" = yes; then
15733   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15734 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15735    { (exit 1); exit 1; }; }
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 #include "confdefs.h"
15740 $ac_includes_default
15741 struct { char filler; int field; } pgac_struct;
15742 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15743 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15744 #include <stdio.h>
15745 #include <stdlib.h>
15746 #ifdef F77_DUMMY_MAIN
15747 #  ifdef __cplusplus
15748      extern "C"
15749 #  endif
15750    int F77_DUMMY_MAIN() { return 1; }
15751 #endif
15752 int
15753 main ()
15754 {
15755
15756   FILE *f = fopen ("conftest.val", "w");
15757   if (! f)
15758     exit (1);
15759   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15760     {
15761       long i = longval ();
15762       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15763         exit (1);
15764       fprintf (f, "%ld\n", i);
15765     }
15766   else
15767     {
15768       unsigned long i = ulongval ();
15769       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15770         exit (1);
15771       fprintf (f, "%lu\n", i);
15772     }
15773   exit (ferror (f) || fclose (f) != 0);
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781   (eval $ac_link) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   pgac_cv_alignof_int=`cat conftest.val`
15791 else
15792   echo "$as_me: program exited with status $ac_status" >&5
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 ( exit $ac_status )
15796 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15797 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15798    { (exit 1); exit 1; }; }
15799 fi
15800 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15801 fi
15802 fi
15803 rm -f conftest.val
15804 else
15805   pgac_cv_alignof_int=0
15806 fi
15807 fi
15808 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15809 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15810 cat >>confdefs.h <<_ACEOF
15811 #define ALIGNOF_INT $pgac_cv_alignof_int
15812 _ACEOF
15813
15814
15815 echo "$as_me:$LINENO: checking for long" >&5
15816 echo $ECHO_N "checking for long... $ECHO_C" >&6
15817 if test "${ac_cv_type_long+set}" = set; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   cat >conftest.$ac_ext <<_ACEOF
15821 #line $LINENO "configure"
15822 #include "confdefs.h"
15823 $ac_includes_default
15824 #ifdef F77_DUMMY_MAIN
15825 #  ifdef __cplusplus
15826      extern "C"
15827 #  endif
15828    int F77_DUMMY_MAIN() { return 1; }
15829 #endif
15830 int
15831 main ()
15832 {
15833 if ((long *) 0)
15834   return 0;
15835 if (sizeof (long))
15836   return 0;
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_cv_type_long=yes
15854 else
15855   echo "$as_me: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 ac_cv_type_long=no
15858 fi
15859 rm -f conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15862 echo "${ECHO_T}$ac_cv_type_long" >&6
15863
15864 echo "$as_me:$LINENO: checking alignment of long" >&5
15865 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15866 if test "${pgac_cv_alignof_long+set}" = set; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   if test "$ac_cv_type_long" = yes; then
15870   if test "$cross_compiling" = yes; then
15871   # Depending upon the size, compute the lo and hi bounds.
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line $LINENO "configure"
15874 #include "confdefs.h"
15875 $ac_includes_default
15876 struct { char filler; long field; } pgac_struct;
15877 #ifdef F77_DUMMY_MAIN
15878 #  ifdef __cplusplus
15879      extern "C"
15880 #  endif
15881    int F77_DUMMY_MAIN() { return 1; }
15882 #endif
15883 int
15884 main ()
15885 {
15886 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15887 test_array [0] = 0
15888
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895   (eval $ac_compile) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -s conftest.$ac_objext'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; }; then
15905   ac_lo=0 ac_mid=0
15906   while :; do
15907     cat >conftest.$ac_ext <<_ACEOF
15908 #line $LINENO "configure"
15909 #include "confdefs.h"
15910 $ac_includes_default
15911 struct { char filler; long field; } pgac_struct;
15912 #ifdef F77_DUMMY_MAIN
15913 #  ifdef __cplusplus
15914      extern "C"
15915 #  endif
15916    int F77_DUMMY_MAIN() { return 1; }
15917 #endif
15918 int
15919 main ()
15920 {
15921 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15922 test_array [0] = 0
15923
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930   (eval $ac_compile) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -s conftest.$ac_objext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_hi=$ac_mid; break
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15944 ac_lo=`expr $ac_mid + 1`
15945                     if test $ac_lo -le $ac_mid; then
15946                       ac_lo= ac_hi=
15947                       break
15948                     fi
15949                     ac_mid=`expr 2 '*' $ac_mid + 1`
15950 fi
15951 rm -f conftest.$ac_objext conftest.$ac_ext
15952   done
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 cat >conftest.$ac_ext <<_ACEOF
15957 #line $LINENO "configure"
15958 #include "confdefs.h"
15959 $ac_includes_default
15960 struct { char filler; long field; } pgac_struct;
15961 #ifdef F77_DUMMY_MAIN
15962 #  ifdef __cplusplus
15963      extern "C"
15964 #  endif
15965    int F77_DUMMY_MAIN() { return 1; }
15966 #endif
15967 int
15968 main ()
15969 {
15970 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15971 test_array [0] = 0
15972
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -s conftest.$ac_objext'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; }; then
15989   ac_hi=-1 ac_mid=-1
15990   while :; do
15991     cat >conftest.$ac_ext <<_ACEOF
15992 #line $LINENO "configure"
15993 #include "confdefs.h"
15994 $ac_includes_default
15995 struct { char filler; long field; } pgac_struct;
15996 #ifdef F77_DUMMY_MAIN
15997 #  ifdef __cplusplus
15998      extern "C"
15999 #  endif
16000    int F77_DUMMY_MAIN() { return 1; }
16001 #endif
16002 int
16003 main ()
16004 {
16005 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16006 test_array [0] = 0
16007
16008   ;
16009   return 0;
16010 }
16011 _ACEOF
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014   (eval $ac_compile) 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); } &&
16018          { ac_try='test -s conftest.$ac_objext'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024   ac_lo=$ac_mid; break
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 ac_hi=`expr '(' $ac_mid ')' - 1`
16029                        if test $ac_mid -le $ac_hi; then
16030                          ac_lo= ac_hi=
16031                          break
16032                        fi
16033                        ac_mid=`expr 2 '*' $ac_mid`
16034 fi
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16036   done
16037 else
16038   echo "$as_me: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16040 ac_lo= ac_hi=
16041 fi
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16043 fi
16044 rm -f conftest.$ac_objext conftest.$ac_ext
16045 # Binary search between lo and hi bounds.
16046 while test "x$ac_lo" != "x$ac_hi"; do
16047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16048   cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 #include "confdefs.h"
16051 $ac_includes_default
16052 struct { char filler; long field; } pgac_struct;
16053 #ifdef F77_DUMMY_MAIN
16054 #  ifdef __cplusplus
16055      extern "C"
16056 #  endif
16057    int F77_DUMMY_MAIN() { return 1; }
16058 #endif
16059 int
16060 main ()
16061 {
16062 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16063 test_array [0] = 0
16064
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071   (eval $ac_compile) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } &&
16075          { ac_try='test -s conftest.$ac_objext'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081   ac_hi=$ac_mid
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16085 ac_lo=`expr '(' $ac_mid ')' + 1`
16086 fi
16087 rm -f conftest.$ac_objext conftest.$ac_ext
16088 done
16089 case $ac_lo in
16090 ?*) pgac_cv_alignof_long=$ac_lo;;
16091 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16092 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16093    { (exit 1); exit 1; }; } ;;
16094 esac
16095 else
16096   if test "$cross_compiling" = yes; then
16097   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16098 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16099    { (exit 1); exit 1; }; }
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16103 #include "confdefs.h"
16104 $ac_includes_default
16105 struct { char filler; long field; } pgac_struct;
16106 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16107 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16108 #include <stdio.h>
16109 #include <stdlib.h>
16110 #ifdef F77_DUMMY_MAIN
16111 #  ifdef __cplusplus
16112      extern "C"
16113 #  endif
16114    int F77_DUMMY_MAIN() { return 1; }
16115 #endif
16116 int
16117 main ()
16118 {
16119
16120   FILE *f = fopen ("conftest.val", "w");
16121   if (! f)
16122     exit (1);
16123   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16124     {
16125       long i = longval ();
16126       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16127         exit (1);
16128       fprintf (f, "%ld\n", i);
16129     }
16130   else
16131     {
16132       unsigned long i = ulongval ();
16133       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16134         exit (1);
16135       fprintf (f, "%lu\n", i);
16136     }
16137   exit (ferror (f) || fclose (f) != 0);
16138
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 rm -f conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145   (eval $ac_link) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   pgac_cv_alignof_long=`cat conftest.val`
16155 else
16156   echo "$as_me: program exited with status $ac_status" >&5
16157 echo "$as_me: failed program was:" >&5
16158 cat conftest.$ac_ext >&5
16159 ( exit $ac_status )
16160 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16161 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16162    { (exit 1); exit 1; }; }
16163 fi
16164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16165 fi
16166 fi
16167 rm -f conftest.val
16168 else
16169   pgac_cv_alignof_long=0
16170 fi
16171 fi
16172 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16173 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16174 cat >>confdefs.h <<_ACEOF
16175 #define ALIGNOF_LONG $pgac_cv_alignof_long
16176 _ACEOF
16177
16178
16179 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16180   echo "$as_me:$LINENO: checking for long long int" >&5
16181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16182 if test "${ac_cv_type_long_long_int+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 $ac_includes_default
16189 #ifdef F77_DUMMY_MAIN
16190 #  ifdef __cplusplus
16191      extern "C"
16192 #  endif
16193    int F77_DUMMY_MAIN() { return 1; }
16194 #endif
16195 int
16196 main ()
16197 {
16198 if ((long long int *) 0)
16199   return 0;
16200 if (sizeof (long long int))
16201   return 0;
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208   (eval $ac_compile) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -s conftest.$ac_objext'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218   ac_cv_type_long_long_int=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 cat conftest.$ac_ext >&5
16222 ac_cv_type_long_long_int=no
16223 fi
16224 rm -f conftest.$ac_objext conftest.$ac_ext
16225 fi
16226 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16227 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16228
16229 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16230 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16231 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16232   echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234   if test "$ac_cv_type_long_long_int" = yes; then
16235   if test "$cross_compiling" = yes; then
16236   # Depending upon the size, compute the lo and hi bounds.
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 #include "confdefs.h"
16240 $ac_includes_default
16241 struct { char filler; long long int field; } pgac_struct;
16242 #ifdef F77_DUMMY_MAIN
16243 #  ifdef __cplusplus
16244      extern "C"
16245 #  endif
16246    int F77_DUMMY_MAIN() { return 1; }
16247 #endif
16248 int
16249 main ()
16250 {
16251 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16252 test_array [0] = 0
16253
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260   (eval $ac_compile) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } &&
16264          { ac_try='test -s conftest.$ac_objext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270   ac_lo=0 ac_mid=0
16271   while :; do
16272     cat >conftest.$ac_ext <<_ACEOF
16273 #line $LINENO "configure"
16274 #include "confdefs.h"
16275 $ac_includes_default
16276 struct { char filler; long long int field; } pgac_struct;
16277 #ifdef F77_DUMMY_MAIN
16278 #  ifdef __cplusplus
16279      extern "C"
16280 #  endif
16281    int F77_DUMMY_MAIN() { return 1; }
16282 #endif
16283 int
16284 main ()
16285 {
16286 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16287 test_array [0] = 0
16288
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295   (eval $ac_compile) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_hi=$ac_mid; break
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 ac_lo=`expr $ac_mid + 1`
16310                     if test $ac_lo -le $ac_mid; then
16311                       ac_lo= ac_hi=
16312                       break
16313                     fi
16314                     ac_mid=`expr 2 '*' $ac_mid + 1`
16315 fi
16316 rm -f conftest.$ac_objext conftest.$ac_ext
16317   done
16318 else
16319   echo "$as_me: failed program was:" >&5
16320 cat conftest.$ac_ext >&5
16321 cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16323 #include "confdefs.h"
16324 $ac_includes_default
16325 struct { char filler; long long int field; } pgac_struct;
16326 #ifdef F77_DUMMY_MAIN
16327 #  ifdef __cplusplus
16328      extern "C"
16329 #  endif
16330    int F77_DUMMY_MAIN() { return 1; }
16331 #endif
16332 int
16333 main ()
16334 {
16335 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16336 test_array [0] = 0
16337
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344   (eval $ac_compile) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -s conftest.$ac_objext'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354   ac_hi=-1 ac_mid=-1
16355   while :; do
16356     cat >conftest.$ac_ext <<_ACEOF
16357 #line $LINENO "configure"
16358 #include "confdefs.h"
16359 $ac_includes_default
16360 struct { char filler; long long int field; } pgac_struct;
16361 #ifdef F77_DUMMY_MAIN
16362 #  ifdef __cplusplus
16363      extern "C"
16364 #  endif
16365    int F77_DUMMY_MAIN() { return 1; }
16366 #endif
16367 int
16368 main ()
16369 {
16370 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16371 test_array [0] = 0
16372
16373   ;
16374   return 0;
16375 }
16376 _ACEOF
16377 rm -f conftest.$ac_objext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16379   (eval $ac_compile) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } &&
16383          { ac_try='test -s conftest.$ac_objext'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; }; then
16389   ac_lo=$ac_mid; break
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 ac_hi=`expr '(' $ac_mid ')' - 1`
16394                        if test $ac_mid -le $ac_hi; then
16395                          ac_lo= ac_hi=
16396                          break
16397                        fi
16398                        ac_mid=`expr 2 '*' $ac_mid`
16399 fi
16400 rm -f conftest.$ac_objext conftest.$ac_ext
16401   done
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 ac_lo= ac_hi=
16406 fi
16407 rm -f conftest.$ac_objext conftest.$ac_ext
16408 fi
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16410 # Binary search between lo and hi bounds.
16411 while test "x$ac_lo" != "x$ac_hi"; do
16412   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16413   cat >conftest.$ac_ext <<_ACEOF
16414 #line $LINENO "configure"
16415 #include "confdefs.h"
16416 $ac_includes_default
16417 struct { char filler; long long int field; } pgac_struct;
16418 #ifdef F77_DUMMY_MAIN
16419 #  ifdef __cplusplus
16420      extern "C"
16421 #  endif
16422    int F77_DUMMY_MAIN() { return 1; }
16423 #endif
16424 int
16425 main ()
16426 {
16427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16428 test_array [0] = 0
16429
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 rm -f conftest.$ac_objext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436   (eval $ac_compile) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -s conftest.$ac_objext'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   ac_hi=$ac_mid
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 cat conftest.$ac_ext >&5
16450 ac_lo=`expr '(' $ac_mid ')' + 1`
16451 fi
16452 rm -f conftest.$ac_objext conftest.$ac_ext
16453 done
16454 case $ac_lo in
16455 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16456 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16457 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16458    { (exit 1); exit 1; }; } ;;
16459 esac
16460 else
16461   if test "$cross_compiling" = yes; then
16462   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16463 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16464    { (exit 1); exit 1; }; }
16465 else
16466   cat >conftest.$ac_ext <<_ACEOF
16467 #line $LINENO "configure"
16468 #include "confdefs.h"
16469 $ac_includes_default
16470 struct { char filler; long long int field; } pgac_struct;
16471 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16472 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16473 #include <stdio.h>
16474 #include <stdlib.h>
16475 #ifdef F77_DUMMY_MAIN
16476 #  ifdef __cplusplus
16477      extern "C"
16478 #  endif
16479    int F77_DUMMY_MAIN() { return 1; }
16480 #endif
16481 int
16482 main ()
16483 {
16484
16485   FILE *f = fopen ("conftest.val", "w");
16486   if (! f)
16487     exit (1);
16488   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16489     {
16490       long i = longval ();
16491       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16492         exit (1);
16493       fprintf (f, "%ld\n", i);
16494     }
16495   else
16496     {
16497       unsigned long i = ulongval ();
16498       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16499         exit (1);
16500       fprintf (f, "%lu\n", i);
16501     }
16502   exit (ferror (f) || fclose (f) != 0);
16503
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510   (eval $ac_link) 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515   (eval $ac_try) 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; }; then
16519   pgac_cv_alignof_long_long_int=`cat conftest.val`
16520 else
16521   echo "$as_me: program exited with status $ac_status" >&5
16522 echo "$as_me: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 ( exit $ac_status )
16525 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16526 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16527    { (exit 1); exit 1; }; }
16528 fi
16529 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16530 fi
16531 fi
16532 rm -f conftest.val
16533 else
16534   pgac_cv_alignof_long_long_int=0
16535 fi
16536 fi
16537 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16538 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16539 cat >>confdefs.h <<_ACEOF
16540 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16541 _ACEOF
16542
16543
16544 fi
16545 echo "$as_me:$LINENO: checking for double" >&5
16546 echo $ECHO_N "checking for double... $ECHO_C" >&6
16547 if test "${ac_cv_type_double+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16553 $ac_includes_default
16554 #ifdef F77_DUMMY_MAIN
16555 #  ifdef __cplusplus
16556      extern "C"
16557 #  endif
16558    int F77_DUMMY_MAIN() { return 1; }
16559 #endif
16560 int
16561 main ()
16562 {
16563 if ((double *) 0)
16564   return 0;
16565 if (sizeof (double))
16566   return 0;
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573   (eval $ac_compile) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -s conftest.$ac_objext'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   ac_cv_type_double=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 ac_cv_type_double=no
16588 fi
16589 rm -f conftest.$ac_objext conftest.$ac_ext
16590 fi
16591 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16592 echo "${ECHO_T}$ac_cv_type_double" >&6
16593
16594 echo "$as_me:$LINENO: checking alignment of double" >&5
16595 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16596 if test "${pgac_cv_alignof_double+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   if test "$ac_cv_type_double" = yes; then
16600   if test "$cross_compiling" = yes; then
16601   # Depending upon the size, compute the lo and hi bounds.
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 #include "confdefs.h"
16605 $ac_includes_default
16606 struct { char filler; double field; } pgac_struct;
16607 #ifdef F77_DUMMY_MAIN
16608 #  ifdef __cplusplus
16609      extern "C"
16610 #  endif
16611    int F77_DUMMY_MAIN() { return 1; }
16612 #endif
16613 int
16614 main ()
16615 {
16616 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16617 test_array [0] = 0
16618
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16625   (eval $ac_compile) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } &&
16629          { ac_try='test -s conftest.$ac_objext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635   ac_lo=0 ac_mid=0
16636   while :; do
16637     cat >conftest.$ac_ext <<_ACEOF
16638 #line $LINENO "configure"
16639 #include "confdefs.h"
16640 $ac_includes_default
16641 struct { char filler; double field; } pgac_struct;
16642 #ifdef F77_DUMMY_MAIN
16643 #  ifdef __cplusplus
16644      extern "C"
16645 #  endif
16646    int F77_DUMMY_MAIN() { return 1; }
16647 #endif
16648 int
16649 main ()
16650 {
16651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16652 test_array [0] = 0
16653
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660   (eval $ac_compile) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -s conftest.$ac_objext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_hi=$ac_mid; break
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 cat conftest.$ac_ext >&5
16674 ac_lo=`expr $ac_mid + 1`
16675                     if test $ac_lo -le $ac_mid; then
16676                       ac_lo= ac_hi=
16677                       break
16678                     fi
16679                     ac_mid=`expr 2 '*' $ac_mid + 1`
16680 fi
16681 rm -f conftest.$ac_objext conftest.$ac_ext
16682   done
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 cat >conftest.$ac_ext <<_ACEOF
16687 #line $LINENO "configure"
16688 #include "confdefs.h"
16689 $ac_includes_default
16690 struct { char filler; double field; } pgac_struct;
16691 #ifdef F77_DUMMY_MAIN
16692 #  ifdef __cplusplus
16693      extern "C"
16694 #  endif
16695    int F77_DUMMY_MAIN() { return 1; }
16696 #endif
16697 int
16698 main ()
16699 {
16700 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16701 test_array [0] = 0
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_hi=-1 ac_mid=-1
16720   while :; do
16721     cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16723 #include "confdefs.h"
16724 $ac_includes_default
16725 struct { char filler; double field; } pgac_struct;
16726 #ifdef F77_DUMMY_MAIN
16727 #  ifdef __cplusplus
16728      extern "C"
16729 #  endif
16730    int F77_DUMMY_MAIN() { return 1; }
16731 #endif
16732 int
16733 main ()
16734 {
16735 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16736 test_array [0] = 0
16737
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744   (eval $ac_compile) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } &&
16748          { ac_try='test -s conftest.$ac_objext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   ac_lo=$ac_mid; break
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 cat conftest.$ac_ext >&5
16758 ac_hi=`expr '(' $ac_mid ')' - 1`
16759                        if test $ac_mid -le $ac_hi; then
16760                          ac_lo= ac_hi=
16761                          break
16762                        fi
16763                        ac_mid=`expr 2 '*' $ac_mid`
16764 fi
16765 rm -f conftest.$ac_objext conftest.$ac_ext
16766   done
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 ac_lo= ac_hi=
16771 fi
16772 rm -f conftest.$ac_objext conftest.$ac_ext
16773 fi
16774 rm -f conftest.$ac_objext conftest.$ac_ext
16775 # Binary search between lo and hi bounds.
16776 while test "x$ac_lo" != "x$ac_hi"; do
16777   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16778   cat >conftest.$ac_ext <<_ACEOF
16779 #line $LINENO "configure"
16780 #include "confdefs.h"
16781 $ac_includes_default
16782 struct { char filler; double field; } pgac_struct;
16783 #ifdef F77_DUMMY_MAIN
16784 #  ifdef __cplusplus
16785      extern "C"
16786 #  endif
16787    int F77_DUMMY_MAIN() { return 1; }
16788 #endif
16789 int
16790 main ()
16791 {
16792 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16793 test_array [0] = 0
16794
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16801   (eval $ac_compile) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -s conftest.$ac_objext'
16806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807   (eval $ac_try) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   ac_hi=$ac_mid
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 cat conftest.$ac_ext >&5
16815 ac_lo=`expr '(' $ac_mid ')' + 1`
16816 fi
16817 rm -f conftest.$ac_objext conftest.$ac_ext
16818 done
16819 case $ac_lo in
16820 ?*) pgac_cv_alignof_double=$ac_lo;;
16821 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16822 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16823    { (exit 1); exit 1; }; } ;;
16824 esac
16825 else
16826   if test "$cross_compiling" = yes; then
16827   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16828 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16829    { (exit 1); exit 1; }; }
16830 else
16831   cat >conftest.$ac_ext <<_ACEOF
16832 #line $LINENO "configure"
16833 #include "confdefs.h"
16834 $ac_includes_default
16835 struct { char filler; double field; } pgac_struct;
16836 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16837 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16838 #include <stdio.h>
16839 #include <stdlib.h>
16840 #ifdef F77_DUMMY_MAIN
16841 #  ifdef __cplusplus
16842      extern "C"
16843 #  endif
16844    int F77_DUMMY_MAIN() { return 1; }
16845 #endif
16846 int
16847 main ()
16848 {
16849
16850   FILE *f = fopen ("conftest.val", "w");
16851   if (! f)
16852     exit (1);
16853   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16854     {
16855       long i = longval ();
16856       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16857         exit (1);
16858       fprintf (f, "%ld\n", i);
16859     }
16860   else
16861     {
16862       unsigned long i = ulongval ();
16863       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16864         exit (1);
16865       fprintf (f, "%lu\n", i);
16866     }
16867   exit (ferror (f) || fclose (f) != 0);
16868
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest$ac_exeext
16874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16875   (eval $ac_link) 2>&5
16876   ac_status=$?
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880   (eval $ac_try) 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; }; then
16884   pgac_cv_alignof_double=`cat conftest.val`
16885 else
16886   echo "$as_me: program exited with status $ac_status" >&5
16887 echo "$as_me: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 ( exit $ac_status )
16890 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16891 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16892    { (exit 1); exit 1; }; }
16893 fi
16894 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16895 fi
16896 fi
16897 rm -f conftest.val
16898 else
16899   pgac_cv_alignof_double=0
16900 fi
16901 fi
16902 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16903 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16904 cat >>confdefs.h <<_ACEOF
16905 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16906 _ACEOF
16907
16908
16909
16910 # Compute maximum alignment of any basic type.
16911 # We assume long's alignment is at least as strong as char, short, or int;
16912 # but we must check long long (if it exists) and double.
16913
16914 MAX_ALIGNOF=$pgac_cv_alignof_long
16915 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16916   MAX_ALIGNOF=$pgac_cv_alignof_double
16917 fi
16918 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16919   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16920 fi
16921
16922 cat >>confdefs.h <<_ACEOF
16923 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16924 _ACEOF
16925
16926
16927
16928 # Some platforms predefine the types int8, int16, etc.  Only check
16929 # a (hopefully) representative subset.
16930 echo "$as_me:$LINENO: checking for int8" >&5
16931 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16932 if test "${ac_cv_type_int8+set}" = set; then
16933   echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935   cat >conftest.$ac_ext <<_ACEOF
16936 #line $LINENO "configure"
16937 #include "confdefs.h"
16938 #include <stdio.h>
16939 #ifdef HAVE_SUPPORTDEFS_H
16940 #include <SupportDefs.h>
16941 #endif
16942
16943 #ifdef F77_DUMMY_MAIN
16944 #  ifdef __cplusplus
16945      extern "C"
16946 #  endif
16947    int F77_DUMMY_MAIN() { return 1; }
16948 #endif
16949 int
16950 main ()
16951 {
16952 if ((int8 *) 0)
16953   return 0;
16954 if (sizeof (int8))
16955   return 0;
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962   (eval $ac_compile) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } &&
16966          { ac_try='test -s conftest.$ac_objext'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; }; then
16972   ac_cv_type_int8=yes
16973 else
16974   echo "$as_me: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16976 ac_cv_type_int8=no
16977 fi
16978 rm -f conftest.$ac_objext conftest.$ac_ext
16979 fi
16980 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16981 echo "${ECHO_T}$ac_cv_type_int8" >&6
16982 if test $ac_cv_type_int8 = yes; then
16983
16984 cat >>confdefs.h <<_ACEOF
16985 #define HAVE_INT8 1
16986 _ACEOF
16987
16988
16989 fi
16990 echo "$as_me:$LINENO: checking for uint8" >&5
16991 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16992 if test "${ac_cv_type_uint8+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   cat >conftest.$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16997 #include "confdefs.h"
16998 #include <stdio.h>
16999 #ifdef HAVE_SUPPORTDEFS_H
17000 #include <SupportDefs.h>
17001 #endif
17002
17003 #ifdef F77_DUMMY_MAIN
17004 #  ifdef __cplusplus
17005      extern "C"
17006 #  endif
17007    int F77_DUMMY_MAIN() { return 1; }
17008 #endif
17009 int
17010 main ()
17011 {
17012 if ((uint8 *) 0)
17013   return 0;
17014 if (sizeof (uint8))
17015   return 0;
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022   (eval $ac_compile) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -s conftest.$ac_objext'
17027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028   (eval $ac_try) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; }; then
17032   ac_cv_type_uint8=yes
17033 else
17034   echo "$as_me: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 ac_cv_type_uint8=no
17037 fi
17038 rm -f conftest.$ac_objext conftest.$ac_ext
17039 fi
17040 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
17041 echo "${ECHO_T}$ac_cv_type_uint8" >&6
17042 if test $ac_cv_type_uint8 = yes; then
17043
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_UINT8 1
17046 _ACEOF
17047
17048
17049 fi
17050 echo "$as_me:$LINENO: checking for int64" >&5
17051 echo $ECHO_N "checking for int64... $ECHO_C" >&6
17052 if test "${ac_cv_type_int64+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17057 #include "confdefs.h"
17058 #include <stdio.h>
17059 #ifdef HAVE_SUPPORTDEFS_H
17060 #include <SupportDefs.h>
17061 #endif
17062
17063 #ifdef F77_DUMMY_MAIN
17064 #  ifdef __cplusplus
17065      extern "C"
17066 #  endif
17067    int F77_DUMMY_MAIN() { return 1; }
17068 #endif
17069 int
17070 main ()
17071 {
17072 if ((int64 *) 0)
17073   return 0;
17074 if (sizeof (int64))
17075   return 0;
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082   (eval $ac_compile) 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } &&
17086          { ac_try='test -s conftest.$ac_objext'
17087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088   (eval $ac_try) 2>&5
17089   ac_status=$?
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); }; }; then
17092   ac_cv_type_int64=yes
17093 else
17094   echo "$as_me: failed program was:" >&5
17095 cat conftest.$ac_ext >&5
17096 ac_cv_type_int64=no
17097 fi
17098 rm -f conftest.$ac_objext conftest.$ac_ext
17099 fi
17100 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
17101 echo "${ECHO_T}$ac_cv_type_int64" >&6
17102 if test $ac_cv_type_int64 = yes; then
17103
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_INT64 1
17106 _ACEOF
17107
17108
17109 fi
17110 echo "$as_me:$LINENO: checking for uint64" >&5
17111 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17112 if test "${ac_cv_type_uint64+set}" = set; then
17113   echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115   cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 #include "confdefs.h"
17118 #include <stdio.h>
17119 #ifdef HAVE_SUPPORTDEFS_H
17120 #include <SupportDefs.h>
17121 #endif
17122
17123 #ifdef F77_DUMMY_MAIN
17124 #  ifdef __cplusplus
17125      extern "C"
17126 #  endif
17127    int F77_DUMMY_MAIN() { return 1; }
17128 #endif
17129 int
17130 main ()
17131 {
17132 if ((uint64 *) 0)
17133   return 0;
17134 if (sizeof (uint64))
17135   return 0;
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext
17141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17142   (eval $ac_compile) 2>&5
17143   ac_status=$?
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -s conftest.$ac_objext'
17147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148   (eval $ac_try) 2>&5
17149   ac_status=$?
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); }; }; then
17152   ac_cv_type_uint64=yes
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 ac_cv_type_uint64=no
17157 fi
17158 rm -f conftest.$ac_objext conftest.$ac_ext
17159 fi
17160 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17161 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17162 if test $ac_cv_type_uint64 = yes; then
17163
17164 cat >>confdefs.h <<_ACEOF
17165 #define HAVE_UINT64 1
17166 _ACEOF
17167
17168
17169 fi
17170
17171
17172 # We also check for sig_atomic_t, which *should* be defined per ANSI
17173 # C, but is missing on some old platforms.
17174 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17175 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17176 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179   cat >conftest.$ac_ext <<_ACEOF
17180 #line $LINENO "configure"
17181 #include "confdefs.h"
17182 #include <signal.h>
17183
17184 #ifdef F77_DUMMY_MAIN
17185 #  ifdef __cplusplus
17186      extern "C"
17187 #  endif
17188    int F77_DUMMY_MAIN() { return 1; }
17189 #endif
17190 int
17191 main ()
17192 {
17193 if ((sig_atomic_t *) 0)
17194   return 0;
17195 if (sizeof (sig_atomic_t))
17196   return 0;
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203   (eval $ac_compile) 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } &&
17207          { ac_try='test -s conftest.$ac_objext'
17208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209   (eval $ac_try) 2>&5
17210   ac_status=$?
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); }; }; then
17213   ac_cv_type_sig_atomic_t=yes
17214 else
17215   echo "$as_me: failed program was:" >&5
17216 cat conftest.$ac_ext >&5
17217 ac_cv_type_sig_atomic_t=no
17218 fi
17219 rm -f conftest.$ac_objext conftest.$ac_ext
17220 fi
17221 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17222 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17223 if test $ac_cv_type_sig_atomic_t = yes; then
17224
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_SIG_ATOMIC_T 1
17227 _ACEOF
17228
17229
17230 fi
17231
17232
17233
17234 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17235 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17236 if test "${pgac_cv_func_posix_signals+set}" = set; then
17237   echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239   cat >conftest.$ac_ext <<_ACEOF
17240 #line $LINENO "configure"
17241 #include "confdefs.h"
17242 #include <signal.h>
17243
17244 #ifdef F77_DUMMY_MAIN
17245 #  ifdef __cplusplus
17246      extern "C"
17247 #  endif
17248    int F77_DUMMY_MAIN() { return 1; }
17249 #endif
17250 int
17251 main ()
17252 {
17253 struct sigaction act, oact;
17254 sigemptyset(&act.sa_mask);
17255 act.sa_flags = SA_RESTART;
17256 sigaction(0, &act, &oact);
17257   ;
17258   return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263   (eval $ac_link) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } &&
17267          { ac_try='test -s conftest$ac_exeext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   pgac_cv_func_posix_signals=yes
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 cat conftest.$ac_ext >&5
17277 pgac_cv_func_posix_signals=no
17278 fi
17279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17280 fi
17281 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17282 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17283 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17284
17285 cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_POSIX_SIGNALS
17287 _ACEOF
17288
17289 fi
17290 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17291
17292 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
17293   { { echo "$as_me:$LINENO: error:
17294 *** Thread-safety requires POSIX signals, which are not supported by your
17295 *** operating system.
17296 " >&5
17297 echo "$as_me: error:
17298 *** Thread-safety requires POSIX signals, which are not supported by your
17299 *** operating system.
17300 " >&2;}
17301    { (exit 1); exit 1; }; }
17302 fi
17303
17304 if test $ac_cv_func_fseeko = yes; then
17305 # Check whether --enable-largefile or --disable-largefile was given.
17306 if test "${enable_largefile+set}" = set; then
17307   enableval="$enable_largefile"
17308
17309 fi;
17310 if test "$enable_largefile" != no; then
17311
17312   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17313 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17314 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317   ac_cv_sys_largefile_CC=no
17318      if test "$GCC" != yes; then
17319        ac_save_CC=$CC
17320        while :; do
17321          # IRIX 6.2 and later do not support large files by default,
17322          # so use the C compiler's -n32 option if that helps.
17323          cat >conftest.$ac_ext <<_ACEOF
17324 #line $LINENO "configure"
17325 #include "confdefs.h"
17326 #include <sys/types.h>
17327  /* Check that off_t can represent 2**63 - 1 correctly.
17328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17329     since some C++ compilers masquerading as C compilers
17330     incorrectly reject 9223372036854775807.  */
17331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17333                        && LARGE_OFF_T % 2147483647 == 1)
17334                       ? 1 : -1];
17335 #ifdef F77_DUMMY_MAIN
17336 #  ifdef __cplusplus
17337      extern "C"
17338 #  endif
17339    int F77_DUMMY_MAIN() { return 1; }
17340 #endif
17341 int
17342 main ()
17343 {
17344
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349          rm -f conftest.$ac_objext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17351   (eval $ac_compile) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -s conftest.$ac_objext'
17356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357   (eval $ac_try) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; }; then
17361   break
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17365 fi
17366 rm -f conftest.$ac_objext
17367          CC="$CC -n32"
17368          rm -f conftest.$ac_objext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17370   (eval $ac_compile) 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } &&
17374          { ac_try='test -s conftest.$ac_objext'
17375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376   (eval $ac_try) 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   ac_cv_sys_largefile_CC=' -n32'; break
17381 else
17382   echo "$as_me: failed program was:" >&5
17383 cat conftest.$ac_ext >&5
17384 fi
17385 rm -f conftest.$ac_objext
17386          break
17387        done
17388        CC=$ac_save_CC
17389        rm -f conftest.$ac_ext
17390     fi
17391 fi
17392 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17393 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17394   if test "$ac_cv_sys_largefile_CC" != no; then
17395     CC=$CC$ac_cv_sys_largefile_CC
17396   fi
17397
17398   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17399 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17400 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   while :; do
17404   ac_cv_sys_file_offset_bits=no
17405   cat >conftest.$ac_ext <<_ACEOF
17406 #line $LINENO "configure"
17407 #include "confdefs.h"
17408 #include <sys/types.h>
17409  /* Check that off_t can represent 2**63 - 1 correctly.
17410     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17411     since some C++ compilers masquerading as C compilers
17412     incorrectly reject 9223372036854775807.  */
17413 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17414   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17415                        && LARGE_OFF_T % 2147483647 == 1)
17416                       ? 1 : -1];
17417 #ifdef F77_DUMMY_MAIN
17418 #  ifdef __cplusplus
17419      extern "C"
17420 #  endif
17421    int F77_DUMMY_MAIN() { return 1; }
17422 #endif
17423 int
17424 main ()
17425 {
17426
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17433   (eval $ac_compile) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } &&
17437          { ac_try='test -s conftest.$ac_objext'
17438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439   (eval $ac_try) 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; }; then
17443   break
17444 else
17445   echo "$as_me: failed program was:" >&5
17446 cat conftest.$ac_ext >&5
17447 fi
17448 rm -f conftest.$ac_objext conftest.$ac_ext
17449   cat >conftest.$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17451 #include "confdefs.h"
17452 #define _FILE_OFFSET_BITS 64
17453 #include <sys/types.h>
17454  /* Check that off_t can represent 2**63 - 1 correctly.
17455     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17456     since some C++ compilers masquerading as C compilers
17457     incorrectly reject 9223372036854775807.  */
17458 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17459   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17460                        && LARGE_OFF_T % 2147483647 == 1)
17461                       ? 1 : -1];
17462 #ifdef F77_DUMMY_MAIN
17463 #  ifdef __cplusplus
17464      extern "C"
17465 #  endif
17466    int F77_DUMMY_MAIN() { return 1; }
17467 #endif
17468 int
17469 main ()
17470 {
17471
17472   ;
17473   return 0;
17474 }
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478   (eval $ac_compile) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } &&
17482          { ac_try='test -s conftest.$ac_objext'
17483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484   (eval $ac_try) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; }; then
17488   ac_cv_sys_file_offset_bits=64; break
17489 else
17490   echo "$as_me: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17492 fi
17493 rm -f conftest.$ac_objext conftest.$ac_ext
17494   break
17495 done
17496 fi
17497 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17498 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17499 if test "$ac_cv_sys_file_offset_bits" != no; then
17500
17501 cat >>confdefs.h <<_ACEOF
17502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17503 _ACEOF
17504
17505 fi
17506 rm -f conftest*
17507   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17508 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17509 if test "${ac_cv_sys_large_files+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   while :; do
17513   ac_cv_sys_large_files=no
17514   cat >conftest.$ac_ext <<_ACEOF
17515 #line $LINENO "configure"
17516 #include "confdefs.h"
17517 #include <sys/types.h>
17518  /* Check that off_t can represent 2**63 - 1 correctly.
17519     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17520     since some C++ compilers masquerading as C compilers
17521     incorrectly reject 9223372036854775807.  */
17522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17523   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17524                        && LARGE_OFF_T % 2147483647 == 1)
17525                       ? 1 : -1];
17526 #ifdef F77_DUMMY_MAIN
17527 #  ifdef __cplusplus
17528      extern "C"
17529 #  endif
17530    int F77_DUMMY_MAIN() { return 1; }
17531 #endif
17532 int
17533 main ()
17534 {
17535
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542   (eval $ac_compile) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -s conftest.$ac_objext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   break
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 cat conftest.$ac_ext >&5
17556 fi
17557 rm -f conftest.$ac_objext conftest.$ac_ext
17558   cat >conftest.$ac_ext <<_ACEOF
17559 #line $LINENO "configure"
17560 #include "confdefs.h"
17561 #define _LARGE_FILES 1
17562 #include <sys/types.h>
17563  /* Check that off_t can represent 2**63 - 1 correctly.
17564     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17565     since some C++ compilers masquerading as C compilers
17566     incorrectly reject 9223372036854775807.  */
17567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17568   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17569                        && LARGE_OFF_T % 2147483647 == 1)
17570                       ? 1 : -1];
17571 #ifdef F77_DUMMY_MAIN
17572 #  ifdef __cplusplus
17573      extern "C"
17574 #  endif
17575    int F77_DUMMY_MAIN() { return 1; }
17576 #endif
17577 int
17578 main ()
17579 {
17580
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17587   (eval $ac_compile) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -s conftest.$ac_objext'
17592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593   (eval $ac_try) 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597   ac_cv_sys_large_files=1; break
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 cat conftest.$ac_ext >&5
17601 fi
17602 rm -f conftest.$ac_objext conftest.$ac_ext
17603   break
17604 done
17605 fi
17606 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17607 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17608 if test "$ac_cv_sys_large_files" != no; then
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define _LARGE_FILES $ac_cv_sys_large_files
17612 _ACEOF
17613
17614 fi
17615 rm -f conftest*
17616 fi
17617
17618 fi
17619
17620 # SunOS doesn't handle negative byte comparisons properly with +/- return
17621 echo "$as_me:$LINENO: checking for working memcmp" >&5
17622 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
17623 if test "${ac_cv_func_memcmp_working+set}" = set; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   if test "$cross_compiling" = yes; then
17627   ac_cv_func_memcmp_working=no
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 #line $LINENO "configure"
17631 #include "confdefs.h"
17632
17633 #ifdef F77_DUMMY_MAIN
17634 #  ifdef __cplusplus
17635      extern "C"
17636 #  endif
17637    int F77_DUMMY_MAIN() { return 1; }
17638 #endif
17639 int
17640 main ()
17641 {
17642
17643   /* Some versions of memcmp are not 8-bit clean.  */
17644   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
17645   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17646     exit (1);
17647
17648   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17649      or more and with at least one buffer not starting on a 4-byte boundary.
17650      William Lewis provided this test program.   */
17651   {
17652     char foo[21];
17653     char bar[21];
17654     int i;
17655     for (i = 0; i < 4; i++)
17656       {
17657         char *a = foo + i;
17658         char *b = bar + i;
17659         strcpy (a, "--------01111111");
17660         strcpy (b, "--------10000000");
17661         if (memcmp (a, b, 16) >= 0)
17662           exit (1);
17663       }
17664     exit (0);
17665   }
17666
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest$ac_exeext
17672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17673   (eval $ac_link) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678   (eval $ac_try) 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_func_memcmp_working=yes
17683 else
17684   echo "$as_me: program exited with status $ac_status" >&5
17685 echo "$as_me: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17687 ( exit $ac_status )
17688 ac_cv_func_memcmp_working=no
17689 fi
17690 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 fi
17693 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17694 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
17695 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17696
17697
17698
17699 # Select semaphore implementation type.
17700 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17701
17702 cat >>confdefs.h <<\_ACEOF
17703 #define USE_NAMED_POSIX_SEMAPHORES 1
17704 _ACEOF
17705
17706   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17707 else
17708   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17709
17710 cat >>confdefs.h <<\_ACEOF
17711 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17712 _ACEOF
17713
17714     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17715   else
17716
17717 cat >>confdefs.h <<\_ACEOF
17718 #define USE_SYSV_SEMAPHORES 1
17719 _ACEOF
17720
17721     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17722   fi
17723 fi
17724
17725
17726 # Select shared-memory implementation type.
17727
17728 cat >>confdefs.h <<\_ACEOF
17729 #define USE_SYSV_SHARED_MEMORY 1
17730 _ACEOF
17731
17732 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17733
17734
17735 if test "$enable_nls" = yes ; then
17736
17737   echo "$as_me:$LINENO: checking for library containing gettext" >&5
17738 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17739 if test "${ac_cv_search_gettext+set}" = set; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742   ac_func_search_save_LIBS=$LIBS
17743 ac_cv_search_gettext=no
17744 cat >conftest.$ac_ext <<_ACEOF
17745 #line $LINENO "configure"
17746 #include "confdefs.h"
17747
17748 /* Override any gcc2 internal prototype to avoid an error.  */
17749 #ifdef __cplusplus
17750 extern "C"
17751 #endif
17752 /* We use char because int might match the return type of a gcc2
17753    builtin and then its argument prototype would still apply.  */
17754 char gettext ();
17755 #ifdef F77_DUMMY_MAIN
17756 #  ifdef __cplusplus
17757      extern "C"
17758 #  endif
17759    int F77_DUMMY_MAIN() { return 1; }
17760 #endif
17761 int
17762 main ()
17763 {
17764 gettext ();
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 rm -f conftest.$ac_objext conftest$ac_exeext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771   (eval $ac_link) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_search_gettext="none required"
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 cat conftest.$ac_ext >&5
17785 fi
17786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17787 if test "$ac_cv_search_gettext" = no; then
17788   for ac_lib in intl; do
17789     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17790     cat >conftest.$ac_ext <<_ACEOF
17791 #line $LINENO "configure"
17792 #include "confdefs.h"
17793
17794 /* Override any gcc2 internal prototype to avoid an error.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 /* We use char because int might match the return type of a gcc2
17799    builtin and then its argument prototype would still apply.  */
17800 char gettext ();
17801 #ifdef F77_DUMMY_MAIN
17802 #  ifdef __cplusplus
17803      extern "C"
17804 #  endif
17805    int F77_DUMMY_MAIN() { return 1; }
17806 #endif
17807 int
17808 main ()
17809 {
17810 gettext ();
17811   ;
17812   return 0;
17813 }
17814 _ACEOF
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817   (eval $ac_link) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); } &&
17821          { ac_try='test -s conftest$ac_exeext'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ac_cv_search_gettext="-l$ac_lib"
17828 break
17829 else
17830   echo "$as_me: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17832 fi
17833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17834   done
17835 fi
17836 LIBS=$ac_func_search_save_LIBS
17837 fi
17838 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17839 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17840 if test "$ac_cv_search_gettext" != no; then
17841   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17842
17843 else
17844   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17845 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17846    { (exit 1); exit 1; }; }
17847 fi
17848
17849   if test "${ac_cv_header_libintl_h+set}" = set; then
17850   echo "$as_me:$LINENO: checking for libintl.h" >&5
17851 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17852 if test "${ac_cv_header_libintl_h+set}" = set; then
17853   echo $ECHO_N "(cached) $ECHO_C" >&6
17854 fi
17855 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17856 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17857 else
17858   # Is the header compilable?
17859 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17860 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17863 #include "confdefs.h"
17864 $ac_includes_default
17865 #include <libintl.h>
17866 _ACEOF
17867 rm -f conftest.$ac_objext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17869   (eval $ac_compile) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); } &&
17873          { ac_try='test -s conftest.$ac_objext'
17874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875   (eval $ac_try) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }; }; then
17879   ac_header_compiler=yes
17880 else
17881   echo "$as_me: failed program was:" >&5
17882 cat conftest.$ac_ext >&5
17883 ac_header_compiler=no
17884 fi
17885 rm -f conftest.$ac_objext conftest.$ac_ext
17886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17887 echo "${ECHO_T}$ac_header_compiler" >&6
17888
17889 # Is the header present?
17890 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17891 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17892 cat >conftest.$ac_ext <<_ACEOF
17893 #line $LINENO "configure"
17894 #include "confdefs.h"
17895 #include <libintl.h>
17896 _ACEOF
17897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17899   ac_status=$?
17900   egrep -v '^ *\+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } >/dev/null; then
17905   if test -s conftest.err; then
17906     ac_cpp_err=$ac_c_preproc_warn_flag
17907   else
17908     ac_cpp_err=
17909   fi
17910 else
17911   ac_cpp_err=yes
17912 fi
17913 if test -z "$ac_cpp_err"; then
17914   ac_header_preproc=yes
17915 else
17916   echo "$as_me: failed program was:" >&5
17917   cat conftest.$ac_ext >&5
17918   ac_header_preproc=no
17919 fi
17920 rm -f conftest.err conftest.$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6
17923
17924 # So?  What about this header?
17925 case $ac_header_compiler:$ac_header_preproc in
17926   yes:no )
17927     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17928 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17931   no:yes )
17932     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17938 esac
17939 echo "$as_me:$LINENO: checking for libintl.h" >&5
17940 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17941 if test "${ac_cv_header_libintl_h+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   ac_cv_header_libintl_h=$ac_header_preproc
17945 fi
17946 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17947 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17948
17949 fi
17950 if test $ac_cv_header_libintl_h = yes; then
17951   :
17952 else
17953   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17954 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17955    { (exit 1); exit 1; }; }
17956 fi
17957
17958
17959   for ac_prog in msgfmt
17960 do
17961   # Extract the first word of "$ac_prog", so it can be a program name with args.
17962 set dummy $ac_prog; ac_word=$2
17963 echo "$as_me:$LINENO: checking for $ac_word" >&5
17964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17965 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17966   echo $ECHO_N "(cached) $ECHO_C" >&6
17967 else
17968   if test -n "$MSGFMT"; then
17969   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17970 else
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17973 do
17974   IFS=$as_save_IFS
17975   test -z "$as_dir" && as_dir=.
17976   for ac_exec_ext in '' $ac_executable_extensions; do
17977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978     ac_cv_prog_MSGFMT="$ac_prog"
17979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17980     break 2
17981   fi
17982 done
17983 done
17984
17985 fi
17986 fi
17987 MSGFMT=$ac_cv_prog_MSGFMT
17988 if test -n "$MSGFMT"; then
17989   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17990 echo "${ECHO_T}$MSGFMT" >&6
17991 else
17992   echo "$as_me:$LINENO: result: no" >&5
17993 echo "${ECHO_T}no" >&6
17994 fi
17995
17996   test -n "$MSGFMT" && break
17997 done
17998
17999   if test -z "$MSGFMT"; then
18000     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
18001 echo "$as_me: error: msgfmt is required for NLS" >&2;}
18002    { (exit 1); exit 1; }; }
18003   fi
18004   for ac_prog in msgmerge
18005 do
18006   # Extract the first word of "$ac_prog", so it can be a program name with args.
18007 set dummy $ac_prog; ac_word=$2
18008 echo "$as_me:$LINENO: checking for $ac_word" >&5
18009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18010 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
18011   echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013   if test -n "$MSGMERGE"; then
18014   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
18015 else
18016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017 for as_dir in $PATH
18018 do
18019   IFS=$as_save_IFS
18020   test -z "$as_dir" && as_dir=.
18021   for ac_exec_ext in '' $ac_executable_extensions; do
18022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18023     ac_cv_prog_MSGMERGE="$ac_prog"
18024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18025     break 2
18026   fi
18027 done
18028 done
18029
18030 fi
18031 fi
18032 MSGMERGE=$ac_cv_prog_MSGMERGE
18033 if test -n "$MSGMERGE"; then
18034   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
18035 echo "${ECHO_T}$MSGMERGE" >&6
18036 else
18037   echo "$as_me:$LINENO: result: no" >&5
18038 echo "${ECHO_T}no" >&6
18039 fi
18040
18041   test -n "$MSGMERGE" && break
18042 done
18043
18044   for ac_prog in xgettext
18045 do
18046   # Extract the first word of "$ac_prog", so it can be a program name with args.
18047 set dummy $ac_prog; ac_word=$2
18048 echo "$as_me:$LINENO: checking for $ac_word" >&5
18049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18050 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
18051   echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053   if test -n "$XGETTEXT"; then
18054   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
18055 else
18056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18057 for as_dir in $PATH
18058 do
18059   IFS=$as_save_IFS
18060   test -z "$as_dir" && as_dir=.
18061   for ac_exec_ext in '' $ac_executable_extensions; do
18062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18063     ac_cv_prog_XGETTEXT="$ac_prog"
18064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18065     break 2
18066   fi
18067 done
18068 done
18069
18070 fi
18071 fi
18072 XGETTEXT=$ac_cv_prog_XGETTEXT
18073 if test -n "$XGETTEXT"; then
18074   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18075 echo "${ECHO_T}$XGETTEXT" >&6
18076 else
18077   echo "$as_me:$LINENO: result: no" >&5
18078 echo "${ECHO_T}no" >&6
18079 fi
18080
18081   test -n "$XGETTEXT" && break
18082 done
18083
18084
18085   # Note: share/locale is always the default, independent of $datadir
18086   localedir='${prefix}/share/locale'
18087   if test x"$prefix" = x"NONE"; then
18088     exp_localedir="$ac_default_prefix/share/locale"
18089   else
18090     exp_localedir="$prefix/share/locale"
18091   fi
18092
18093
18094
18095 cat >>confdefs.h <<_ACEOF
18096 #define LOCALEDIR "$exp_localedir"
18097 _ACEOF
18098
18099
18100 fi
18101
18102 # Check for Tcl configuration script tclConfig.sh
18103 if test "$with_tcl" = yes; then
18104     for ac_prog in tclsh tcl
18105 do
18106   # Extract the first word of "$ac_prog", so it can be a program name with args.
18107 set dummy $ac_prog; ac_word=$2
18108 echo "$as_me:$LINENO: checking for $ac_word" >&5
18109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18110 if test "${ac_cv_path_TCLSH+set}" = set; then
18111   echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113   case $TCLSH in
18114   [\\/]* | ?:[\\/]*)
18115   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18116   ;;
18117   *)
18118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18120 do
18121   IFS=$as_save_IFS
18122   test -z "$as_dir" && as_dir=.
18123   for ac_exec_ext in '' $ac_executable_extensions; do
18124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18127     break 2
18128   fi
18129 done
18130 done
18131
18132   ;;
18133 esac
18134 fi
18135 TCLSH=$ac_cv_path_TCLSH
18136
18137 if test -n "$TCLSH"; then
18138   echo "$as_me:$LINENO: result: $TCLSH" >&5
18139 echo "${ECHO_T}$TCLSH" >&6
18140 else
18141   echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6
18143 fi
18144
18145   test -n "$TCLSH" && break
18146 done
18147
18148 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
18149 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
18150 # Let user override test
18151 if test -z "$TCL_CONFIG_SH"; then
18152     pgac_test_dirs="$with_tclconfig"
18153
18154     set X $pgac_test_dirs; shift
18155     if test $# -eq 0; then
18156         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
18157 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
18158    { (exit 1); exit 1; }; }
18159         set X `echo 'puts $auto_path' | $TCLSH`; shift
18160     fi
18161
18162     for pgac_dir do
18163         if test -r "$pgac_dir/tclConfig.sh"; then
18164             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18165             break
18166         fi
18167     done
18168 fi
18169
18170 if test -z "$TCL_CONFIG_SH"; then
18171     echo "$as_me:$LINENO: result: no" >&5
18172 echo "${ECHO_T}no" >&6
18173     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
18174 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
18175    { (exit 1); exit 1; }; }
18176 else
18177     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
18178 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
18179 fi
18180
18181
18182
18183     . "$TCL_CONFIG_SH"
18184 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18185 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
18186 eval TCL_LIBS=\"$TCL_LIBS\"
18187 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18188 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18189
18190         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18191     ac_save_CPPFLAGS=$CPPFLAGS
18192     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18193     if test "${ac_cv_header_tcl_h+set}" = set; then
18194   echo "$as_me:$LINENO: checking for tcl.h" >&5
18195 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18196 if test "${ac_cv_header_tcl_h+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 fi
18199 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18200 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18201 else
18202   # Is the header compilable?
18203 echo "$as_me:$LINENO: checking tcl.h usability" >&5
18204 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
18205 cat >conftest.$ac_ext <<_ACEOF
18206 #line $LINENO "configure"
18207 #include "confdefs.h"
18208 $ac_includes_default
18209 #include <tcl.h>
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213   (eval $ac_compile) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ac_header_compiler=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 cat conftest.$ac_ext >&5
18227 ac_header_compiler=no
18228 fi
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6
18232
18233 # Is the header present?
18234 echo "$as_me:$LINENO: checking tcl.h presence" >&5
18235 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18237 #line $LINENO "configure"
18238 #include "confdefs.h"
18239 #include <tcl.h>
18240 _ACEOF
18241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18243   ac_status=$?
18244   egrep -v '^ *\+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } >/dev/null; then
18249   if test -s conftest.err; then
18250     ac_cpp_err=$ac_c_preproc_warn_flag
18251   else
18252     ac_cpp_err=
18253   fi
18254 else
18255   ac_cpp_err=yes
18256 fi
18257 if test -z "$ac_cpp_err"; then
18258   ac_header_preproc=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261   cat conftest.$ac_ext >&5
18262   ac_header_preproc=no
18263 fi
18264 rm -f conftest.err conftest.$ac_ext
18265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18266 echo "${ECHO_T}$ac_header_preproc" >&6
18267
18268 # So?  What about this header?
18269 case $ac_header_compiler:$ac_header_preproc in
18270   yes:no )
18271     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18272 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18273     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18274 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18275   no:yes )
18276     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
18277 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
18278     { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
18279 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
18280     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18282 esac
18283 echo "$as_me:$LINENO: checking for tcl.h" >&5
18284 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18285 if test "${ac_cv_header_tcl_h+set}" = set; then
18286   echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288   ac_cv_header_tcl_h=$ac_header_preproc
18289 fi
18290 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18291 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18292
18293 fi
18294 if test $ac_cv_header_tcl_h = yes; then
18295   :
18296 else
18297   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
18298 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
18299    { (exit 1); exit 1; }; }
18300 fi
18301
18302
18303     CPPFLAGS=$ac_save_CPPFLAGS
18304 fi
18305
18306 #
18307 # Check for DocBook and tools
18308 #
18309 for ac_prog in onsgmls nsgmls
18310 do
18311   # Extract the first word of "$ac_prog", so it can be a program name with args.
18312 set dummy $ac_prog; ac_word=$2
18313 echo "$as_me:$LINENO: checking for $ac_word" >&5
18314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18315 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   if test -n "$NSGMLS"; then
18319   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18320 else
18321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18323 do
18324   IFS=$as_save_IFS
18325   test -z "$as_dir" && as_dir=.
18326   for ac_exec_ext in '' $ac_executable_extensions; do
18327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18328     ac_cv_prog_NSGMLS="$ac_prog"
18329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18330     break 2
18331   fi
18332 done
18333 done
18334
18335 fi
18336 fi
18337 NSGMLS=$ac_cv_prog_NSGMLS
18338 if test -n "$NSGMLS"; then
18339   echo "$as_me:$LINENO: result: $NSGMLS" >&5
18340 echo "${ECHO_T}$NSGMLS" >&6
18341 else
18342   echo "$as_me:$LINENO: result: no" >&5
18343 echo "${ECHO_T}no" >&6
18344 fi
18345
18346   test -n "$NSGMLS" && break
18347 done
18348
18349 for ac_prog in openjade jade
18350 do
18351   # Extract the first word of "$ac_prog", so it can be a program name with args.
18352 set dummy $ac_prog; ac_word=$2
18353 echo "$as_me:$LINENO: checking for $ac_word" >&5
18354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18355 if test "${ac_cv_prog_JADE+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   if test -n "$JADE"; then
18359   ac_cv_prog_JADE="$JADE" # Let the user override the test.
18360 else
18361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $PATH
18363 do
18364   IFS=$as_save_IFS
18365   test -z "$as_dir" && as_dir=.
18366   for ac_exec_ext in '' $ac_executable_extensions; do
18367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18368     ac_cv_prog_JADE="$ac_prog"
18369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18370     break 2
18371   fi
18372 done
18373 done
18374
18375 fi
18376 fi
18377 JADE=$ac_cv_prog_JADE
18378 if test -n "$JADE"; then
18379   echo "$as_me:$LINENO: result: $JADE" >&5
18380 echo "${ECHO_T}$JADE" >&6
18381 else
18382   echo "$as_me:$LINENO: result: no" >&5
18383 echo "${ECHO_T}no" >&6
18384 fi
18385
18386   test -n "$JADE" && break
18387 done
18388
18389
18390 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18391 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18392 if test "${pgac_cv_check_docbook+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   cat >conftest.sgml <<EOF
18396 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18397 <book>
18398  <title>test</title>
18399  <chapter>
18400   <title>random</title>
18401    <sect1>
18402     <title>testsect</title>
18403     <para>text</para>
18404   </sect1>
18405  </chapter>
18406 </book>
18407 EOF
18408
18409 pgac_cv_check_docbook=no
18410
18411 if test -n "$NSGMLS"; then
18412   $NSGMLS -s conftest.sgml 1>&5 2>&1
18413   if test $? -eq 0; then
18414     pgac_cv_check_docbook=yes
18415   fi
18416 fi
18417 rm -f conftest.sgml
18418 fi
18419 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18420 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18421
18422 have_docbook=$pgac_cv_check_docbook
18423
18424
18425 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18426 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18427 if test "${pgac_cv_path_stylesheets+set}" = set; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   if test -n "$DOCBOOKSTYLE"; then
18431   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18432 else
18433   for pgac_prefix in /usr /usr/local /opt; do
18434     for pgac_infix in share lib; do
18435       for pgac_postfix in \
18436         sgml/stylesheets/nwalsh-modular \
18437         sgml/stylesheets/docbook \
18438                 sgml/docbook-dsssl \
18439         sgml/docbook/dsssl/modular \
18440         sgml/docbook/stylesheet/dsssl/modular \
18441         sgml/docbook/dsssl-stylesheets
18442       do
18443         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18444         if test -r "$pgac_candidate/html/docbook.dsl" \
18445            && test -r "$pgac_candidate/print/docbook.dsl"
18446         then
18447           pgac_cv_path_stylesheets=$pgac_candidate
18448           break 3
18449         fi
18450       done
18451     done
18452   done
18453 fi
18454 fi
18455
18456 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18457
18458 if test -n "$DOCBOOKSTYLE"; then
18459   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18460 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18461 else
18462   echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18464 fi
18465 if test -n "$DOCBOOKSTYLE"; then
18466   for ac_prog in collateindex.pl
18467 do
18468   # Extract the first word of "$ac_prog", so it can be a program name with args.
18469 set dummy $ac_prog; ac_word=$2
18470 echo "$as_me:$LINENO: checking for $ac_word" >&5
18471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18472 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   case $COLLATEINDEX in
18476   [\\/]* | ?:[\\/]*)
18477   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18478   ;;
18479   *)
18480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $DOCBOOKSTYLE/bin $PATH
18482 do
18483   IFS=$as_save_IFS
18484   test -z "$as_dir" && as_dir=.
18485   for ac_exec_ext in '' $ac_executable_extensions; do
18486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18489     break 2
18490   fi
18491 done
18492 done
18493
18494   ;;
18495 esac
18496 fi
18497 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18498
18499 if test -n "$COLLATEINDEX"; then
18500   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18501 echo "${ECHO_T}$COLLATEINDEX" >&6
18502 else
18503   echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6
18505 fi
18506
18507   test -n "$COLLATEINDEX" && break
18508 done
18509
18510 else
18511   for ac_prog in collateindex.pl
18512 do
18513   # Extract the first word of "$ac_prog", so it can be a program name with args.
18514 set dummy $ac_prog; ac_word=$2
18515 echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   case $COLLATEINDEX in
18521   [\\/]* | ?:[\\/]*)
18522   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18523   ;;
18524   *)
18525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528   IFS=$as_save_IFS
18529   test -z "$as_dir" && as_dir=.
18530   for ac_exec_ext in '' $ac_executable_extensions; do
18531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534     break 2
18535   fi
18536 done
18537 done
18538
18539   ;;
18540 esac
18541 fi
18542 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18543
18544 if test -n "$COLLATEINDEX"; then
18545   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18546 echo "${ECHO_T}$COLLATEINDEX" >&6
18547 else
18548   echo "$as_me:$LINENO: result: no" >&5
18549 echo "${ECHO_T}no" >&6
18550 fi
18551
18552   test -n "$COLLATEINDEX" && break
18553 done
18554
18555 fi
18556 for ac_prog in sgmlspl
18557 do
18558   # Extract the first word of "$ac_prog", so it can be a program name with args.
18559 set dummy $ac_prog; ac_word=$2
18560 echo "$as_me:$LINENO: checking for $ac_word" >&5
18561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18562 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   if test -n "$SGMLSPL"; then
18566   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
18567 else
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18570 do
18571   IFS=$as_save_IFS
18572   test -z "$as_dir" && as_dir=.
18573   for ac_exec_ext in '' $ac_executable_extensions; do
18574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18575     ac_cv_prog_SGMLSPL="$ac_prog"
18576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18577     break 2
18578   fi
18579 done
18580 done
18581
18582 fi
18583 fi
18584 SGMLSPL=$ac_cv_prog_SGMLSPL
18585 if test -n "$SGMLSPL"; then
18586   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
18587 echo "${ECHO_T}$SGMLSPL" >&6
18588 else
18589   echo "$as_me:$LINENO: result: no" >&5
18590 echo "${ECHO_T}no" >&6
18591 fi
18592
18593   test -n "$SGMLSPL" && break
18594 done
18595
18596
18597 # Thread testing
18598
18599 # We have to run the thread test near the end so we have all our symbols
18600 # defined.  Cross compiling throws a warning.
18601 #
18602 if test "$enable_thread_safety_force" = yes; then
18603   { echo "$as_me:$LINENO: WARNING:
18604 *** Skipping thread test program.  --enable-thread-safety-force was used.
18605 *** Run the program in src/tools/thread on the your machine and add
18606 proper locking function calls to your applications to guarantee thread
18607 safety.
18608 " >&5
18609 echo "$as_me: WARNING:
18610 *** Skipping thread test program.  --enable-thread-safety-force was used.
18611 *** Run the program in src/tools/thread on the your machine and add
18612 proper locking function calls to your applications to guarantee thread
18613 safety.
18614 " >&2;}
18615 elif test "$enable_thread_safety" = yes; then
18616 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18617 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18618
18619 _CFLAGS="$CFLAGS"
18620 _LIBS="$LIBS"
18621 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18622 LIBS="$LIBS $PTHREAD_LIBS"
18623 if test "$cross_compiling" = yes; then
18624   echo "$as_me:$LINENO: result: maybe" >&5
18625 echo "${ECHO_T}maybe" >&6
18626   { echo "$as_me:$LINENO: WARNING:
18627 *** Skipping thread test program because of cross-compile build.
18628 *** Run the program in src/tools/thread on the target machine.
18629 " >&5
18630 echo "$as_me: WARNING:
18631 *** Skipping thread test program because of cross-compile build.
18632 *** Run the program in src/tools/thread on the target machine.
18633 " >&2;}
18634 else
18635   cat >conftest.$ac_ext <<_ACEOF
18636 #line $LINENO "configure"
18637 #include "confdefs.h"
18638 #include "$srcdir/src/tools/thread/thread_test.c"
18639 _ACEOF
18640 rm -f conftest$ac_exeext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18642   (eval $ac_link) 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647   (eval $ac_try) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); }; }; then
18651   echo "$as_me:$LINENO: result: yes" >&5
18652 echo "${ECHO_T}yes" >&6
18653 else
18654   echo "$as_me: program exited with status $ac_status" >&5
18655 echo "$as_me: failed program was:" >&5
18656 cat conftest.$ac_ext >&5
18657 ( exit $ac_status )
18658 echo "$as_me:$LINENO: result: no" >&5
18659 echo "${ECHO_T}no" >&6
18660   { { echo "$as_me:$LINENO: error:
18661 *** Thread test program failed.  Your platform is not thread-safe.
18662 *** Check the file 'config.log'for the exact reason.
18663 ***
18664 *** You can use the configure option --enable-thread-safety-force
18665 *** to force threads to be enabled.  However, you must then run
18666 *** the program in src/tools/thread and add locking function calls
18667 *** to your applications to guarantee thread safety.
18668 " >&5
18669 echo "$as_me: error:
18670 *** Thread test program failed.  Your platform is not thread-safe.
18671 *** Check the file 'config.log'for the exact reason.
18672 ***
18673 *** You can use the configure option --enable-thread-safety-force
18674 *** to force threads to be enabled.  However, you must then run
18675 *** the program in src/tools/thread and add locking function calls
18676 *** to your applications to guarantee thread safety.
18677 " >&2;}
18678    { (exit 1); exit 1; }; }
18679 fi
18680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18681 fi
18682 CFLAGS="$_CFLAGS"
18683 LIBS="$_LIBS"
18684 fi
18685
18686 # prepare build tree if outside source tree
18687 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18688 # Note 2: /bin/pwd might be better than shell's built-in at getting
18689 #         a symlink-free name.
18690 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18691   vpath_build=no
18692 else
18693   vpath_build=yes
18694   if test "$no_create" != yes; then
18695     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18696     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18697     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18698       || { { echo "$as_me:$LINENO: error: failed" >&5
18699 echo "$as_me: error: failed" >&2;}
18700    { (exit 1); exit 1; }; }
18701     echo "$as_me:$LINENO: result: done" >&5
18702 echo "${ECHO_T}done" >&6
18703   fi
18704 fi
18705
18706
18707
18708 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18709
18710
18711 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}"
18712
18713
18714 if test "$PORTNAME" = "win32"; then
18715 ac_config_commands="$ac_config_commands check_win32_symlinks"
18716
18717 fi
18718
18719 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18720
18721
18722 cat >confcache <<\_ACEOF
18723 # This file is a shell script that caches the results of configure
18724 # tests run on this system so they can be shared between configure
18725 # scripts and configure runs, see configure's option --config-cache.
18726 # It is not useful on other systems.  If it contains results you don't
18727 # want to keep, you may remove or edit it.
18728 #
18729 # config.status only pays attention to the cache file if you give it
18730 # the --recheck option to rerun configure.
18731 #
18732 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18734 # following values.
18735
18736 _ACEOF
18737
18738 # The following way of writing the cache mishandles newlines in values,
18739 # but we know of no workaround that is simple, portable, and efficient.
18740 # So, don't put newlines in cache variables' values.
18741 # Ultrix sh set writes to stderr and can't be redirected directly,
18742 # and sets the high bit in the cache file unless we assign to the vars.
18743 {
18744   (set) 2>&1 |
18745     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18746     *ac_space=\ *)
18747       # `set' does not quote correctly, so add quotes (double-quote
18748       # substitution turns \\\\ into \\, and sed turns \\ into \).
18749       sed -n \
18750         "s/'/'\\\\''/g;
18751           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18752       ;;
18753     *)
18754       # `set' quotes correctly as required by POSIX, so do not add quotes.
18755       sed -n \
18756         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18757       ;;
18758     esac;
18759 } |
18760   sed '
18761      t clear
18762      : clear
18763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18764      t end
18765      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18766      : end' >>confcache
18767 if cmp -s $cache_file confcache; then :; else
18768   if test -w $cache_file; then
18769     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18770     cat confcache >$cache_file
18771   else
18772     echo "not updating unwritable cache $cache_file"
18773   fi
18774 fi
18775 rm -f confcache
18776
18777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18778 # Let make expand exec_prefix.
18779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18780
18781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18783 # trailing colons and then remove the whole line if VPATH becomes empty
18784 # (actually we leave an empty line to preserve line numbers).
18785 if test "x$srcdir" = x.; then
18786   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18787 s/:*\$(srcdir):*/:/;
18788 s/:*\${srcdir}:*/:/;
18789 s/:*@srcdir@:*/:/;
18790 s/^\([^=]*=[    ]*\):*/\1/;
18791 s/:*$//;
18792 s/^[^=]*=[      ]*$//;
18793 }'
18794 fi
18795
18796 DEFS=-DHAVE_CONFIG_H
18797
18798
18799 : ${CONFIG_STATUS=./config.status}
18800 ac_clean_files_save=$ac_clean_files
18801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18804 cat >$CONFIG_STATUS <<_ACEOF
18805 #! $SHELL
18806 # Generated by $as_me.
18807 # Run this file to recreate the current configuration.
18808 # Compiler output produced by configure, useful for debugging
18809 # configure, is in config.log if it exists.
18810
18811 debug=false
18812 SHELL=\${CONFIG_SHELL-$SHELL}
18813 _ACEOF
18814
18815 cat >>$CONFIG_STATUS <<\_ACEOF
18816
18817 ## --------------------- ##
18818 ## M4sh Initialization.  ##
18819 ## --------------------- ##
18820
18821 # Be Bourne compatible
18822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18823   emulate sh
18824   NULLCMD=:
18825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18826   set -o posix
18827 fi
18828
18829 # NLS nuisances.
18830 # Support unset when possible.
18831 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18832   as_unset=unset
18833 else
18834   as_unset=false
18835 fi
18836
18837 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18838     { $as_unset LANG || test "${LANG+set}" != set; } ||
18839       { LANG=C; export LANG; }
18840 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18841     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18842       { LC_ALL=C; export LC_ALL; }
18843 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18844     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18845       { LC_TIME=C; export LC_TIME; }
18846 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18847     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18848       { LC_CTYPE=C; export LC_CTYPE; }
18849 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18850     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18851       { LANGUAGE=C; export LANGUAGE; }
18852 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18853     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18854       { LC_COLLATE=C; export LC_COLLATE; }
18855 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18856     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18857       { LC_NUMERIC=C; export LC_NUMERIC; }
18858 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18859     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18860       { LC_MESSAGES=C; export LC_MESSAGES; }
18861
18862
18863 # Name of the executable.
18864 as_me=`(basename "$0") 2>/dev/null ||
18865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18866          X"$0" : 'X\(//\)$' \| \
18867          X"$0" : 'X\(/\)$' \| \
18868          .     : '\(.\)' 2>/dev/null ||
18869 echo X/"$0" |
18870     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18871           /^X\/\(\/\/\)$/{ s//\1/; q; }
18872           /^X\/\(\/\).*/{ s//\1/; q; }
18873           s/.*/./; q'`
18874
18875 # PATH needs CR, and LINENO needs CR and PATH.
18876 # Avoid depending upon Character Ranges.
18877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18880 as_cr_digits='0123456789'
18881 as_cr_alnum=$as_cr_Letters$as_cr_digits
18882
18883 # The user is always right.
18884 if test "${PATH_SEPARATOR+set}" != set; then
18885   echo "#! /bin/sh" >conftest.sh
18886   echo  "exit 0"   >>conftest.sh
18887   chmod +x conftest.sh
18888   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18889     PATH_SEPARATOR=';'
18890   else
18891     PATH_SEPARATOR=:
18892   fi
18893   rm -f conftest.sh
18894 fi
18895
18896
18897   as_lineno_1=$LINENO
18898   as_lineno_2=$LINENO
18899   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18900   test "x$as_lineno_1" != "x$as_lineno_2" &&
18901   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18902   # Find who we are.  Look in the path if we contain no path at all
18903   # relative or not.
18904   case $0 in
18905     *[\\/]* ) as_myself=$0 ;;
18906     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907 for as_dir in $PATH
18908 do
18909   IFS=$as_save_IFS
18910   test -z "$as_dir" && as_dir=.
18911   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18912 done
18913
18914        ;;
18915   esac
18916   # We did not find ourselves, most probably we were run as `sh COMMAND'
18917   # in which case we are not to be found in the path.
18918   if test "x$as_myself" = x; then
18919     as_myself=$0
18920   fi
18921   if test ! -f "$as_myself"; then
18922     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18923 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18924    { (exit 1); exit 1; }; }
18925   fi
18926   case $CONFIG_SHELL in
18927   '')
18928     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18929 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18930 do
18931   IFS=$as_save_IFS
18932   test -z "$as_dir" && as_dir=.
18933   for as_base in sh bash ksh sh5; do
18934          case $as_dir in
18935          /*)
18936            if ("$as_dir/$as_base" -c '
18937   as_lineno_1=$LINENO
18938   as_lineno_2=$LINENO
18939   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18940   test "x$as_lineno_1" != "x$as_lineno_2" &&
18941   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18942              CONFIG_SHELL=$as_dir/$as_base
18943              export CONFIG_SHELL
18944              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18945            fi;;
18946          esac
18947        done
18948 done
18949 ;;
18950   esac
18951
18952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18953   # uniformly replaced by the line number.  The first 'sed' inserts a
18954   # line-number line before each line; the second 'sed' does the real
18955   # work.  The second script uses 'N' to pair each line-number line
18956   # with the numbered line, and appends trailing '-' during
18957   # substitution so that $LINENO is not a special case at line end.
18958   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18959   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18960   sed '=' <$as_myself |
18961     sed '
18962       N
18963       s,$,-,
18964       : loop
18965       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18966       t loop
18967       s,-$,,
18968       s,^['$as_cr_digits']*\n,,
18969     ' >$as_me.lineno &&
18970   chmod +x $as_me.lineno ||
18971     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18973    { (exit 1); exit 1; }; }
18974
18975   # Don't try to exec as it changes $[0], causing all sort of problems
18976   # (the dirname of $[0] is not the place where we might find the
18977   # original and so on.  Autoconf is especially sensible to this).
18978   . ./$as_me.lineno
18979   # Exit status is that of the last command.
18980   exit
18981 }
18982
18983
18984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18985   *c*,-n*) ECHO_N= ECHO_C='
18986 ' ECHO_T='      ' ;;
18987   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18988   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18989 esac
18990
18991 if expr a : '\(a\)' >/dev/null 2>&1; then
18992   as_expr=expr
18993 else
18994   as_expr=false
18995 fi
18996
18997 rm -f conf$$ conf$$.exe conf$$.file
18998 echo >conf$$.file
18999 if ln -s conf$$.file conf$$ 2>/dev/null; then
19000   # We could just check for DJGPP; but this test a) works b) is more generic
19001   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19002   if test -f conf$$.exe; then
19003     # Don't use ln at all; we don't have any links
19004     as_ln_s='cp -p'
19005   else
19006     as_ln_s='ln -s'
19007   fi
19008 elif ln conf$$.file conf$$ 2>/dev/null; then
19009   as_ln_s=ln
19010 else
19011   as_ln_s='cp -p'
19012 fi
19013 rm -f conf$$ conf$$.exe conf$$.file
19014
19015 as_executable_p="test -f"
19016
19017 # Sed expression to map a string onto a valid CPP name.
19018 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19019
19020 # Sed expression to map a string onto a valid variable name.
19021 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19022
19023
19024 # IFS
19025 # We need space, tab and new line, in precisely that order.
19026 as_nl='
19027 '
19028 IFS="   $as_nl"
19029
19030 # CDPATH.
19031 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
19032
19033 exec 6>&1
19034
19035 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19036 # report actual input values of CONFIG_FILES etc. instead of their
19037 # values after options handling.  Logging --version etc. is OK.
19038 exec 5>>config.log
19039 {
19040   echo
19041   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19042 ## Running $as_me. ##
19043 _ASBOX
19044 } >&5
19045 cat >&5 <<_CSEOF
19046
19047 This file was extended by PostgreSQL $as_me 8.1devel, which was
19048 generated by GNU Autoconf 2.53.  Invocation command line was
19049
19050   CONFIG_FILES    = $CONFIG_FILES
19051   CONFIG_HEADERS  = $CONFIG_HEADERS
19052   CONFIG_LINKS    = $CONFIG_LINKS
19053   CONFIG_COMMANDS = $CONFIG_COMMANDS
19054   $ $0 $@
19055
19056 _CSEOF
19057 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19058 echo >&5
19059 _ACEOF
19060
19061 # Files that config.status was made for.
19062 if test -n "$ac_config_files"; then
19063   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19064 fi
19065
19066 if test -n "$ac_config_headers"; then
19067   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19068 fi
19069
19070 if test -n "$ac_config_links"; then
19071   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19072 fi
19073
19074 if test -n "$ac_config_commands"; then
19075   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19076 fi
19077
19078 cat >>$CONFIG_STATUS <<\_ACEOF
19079
19080 ac_cs_usage="\
19081 \`$as_me' instantiates files from templates according to the
19082 current configuration.
19083
19084 Usage: $0 [OPTIONS] [FILE]...
19085
19086   -h, --help       print this help, then exit
19087   -V, --version    print version number, then exit
19088   -d, --debug      don't remove temporary files
19089       --recheck    update $as_me by reconfiguring in the same conditions
19090   --file=FILE[:TEMPLATE]
19091                    instantiate the configuration file FILE
19092   --header=FILE[:TEMPLATE]
19093                    instantiate the configuration header FILE
19094
19095 Configuration files:
19096 $config_files
19097
19098 Configuration headers:
19099 $config_headers
19100
19101 Configuration links:
19102 $config_links
19103
19104 Configuration commands:
19105 $config_commands
19106
19107 Report bugs to <bug-autoconf@gnu.org>."
19108 _ACEOF
19109
19110 cat >>$CONFIG_STATUS <<_ACEOF
19111 ac_cs_version="\\
19112 PostgreSQL config.status 8.1devel
19113 configured by $0, generated by GNU Autoconf 2.53,
19114   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19115
19116 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19117 Free Software Foundation, Inc.
19118 This config.status script is free software; the Free Software Foundation
19119 gives unlimited permission to copy, distribute and modify it."
19120 srcdir=$srcdir
19121 _ACEOF
19122
19123 cat >>$CONFIG_STATUS <<\_ACEOF
19124 # If no file are specified by the user, then we need to provide default
19125 # value.  By we need to know if files were specified by the user.
19126 ac_need_defaults=:
19127 while test $# != 0
19128 do
19129   case $1 in
19130   --*=*)
19131     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19132     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19133     shift
19134     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19135     shift
19136     ;;
19137   -*);;
19138   *) # This is not an option, so the user has probably given explicit
19139      # arguments.
19140      ac_need_defaults=false;;
19141   esac
19142
19143   case $1 in
19144   # Handling of the options.
19145 _ACEOF
19146 cat >>$CONFIG_STATUS <<_ACEOF
19147   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19148     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19149     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19150 _ACEOF
19151 cat >>$CONFIG_STATUS <<\_ACEOF
19152   --version | --vers* | -V )
19153     echo "$ac_cs_version"; exit 0 ;;
19154   --he | --h)
19155     # Conflict between --help and --header
19156     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19157 Try \`$0 --help' for more information." >&5
19158 echo "$as_me: error: ambiguous option: $1
19159 Try \`$0 --help' for more information." >&2;}
19160    { (exit 1); exit 1; }; };;
19161   --help | --hel | -h )
19162     echo "$ac_cs_usage"; exit 0 ;;
19163   --debug | --d* | -d )
19164     debug=: ;;
19165   --file | --fil | --fi | --f )
19166     shift
19167     CONFIG_FILES="$CONFIG_FILES $1"
19168     ac_need_defaults=false;;
19169   --header | --heade | --head | --hea )
19170     shift
19171     CONFIG_HEADERS="$CONFIG_HEADERS $1"
19172     ac_need_defaults=false;;
19173
19174   # This is an error.
19175   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19176 Try \`$0 --help' for more information." >&5
19177 echo "$as_me: error: unrecognized option: $1
19178 Try \`$0 --help' for more information." >&2;}
19179    { (exit 1); exit 1; }; } ;;
19180
19181   *) ac_config_targets="$ac_config_targets $1" ;;
19182
19183   esac
19184   shift
19185 done
19186
19187 _ACEOF
19188
19189
19190
19191
19192
19193 cat >>$CONFIG_STATUS <<\_ACEOF
19194 for ac_config_target in $ac_config_targets
19195 do
19196   case "$ac_config_target" in
19197   # Handling of arguments.
19198   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19199   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19200   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19201   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
19202   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19203   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19204   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
19205   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19206   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19207   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19208   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19209   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19210 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19211    { (exit 1); exit 1; }; };;
19212   esac
19213 done
19214
19215 # If the user did not use the arguments to specify the items to instantiate,
19216 # then the envvar interface is used.  Set only those that are not.
19217 # We use the long form for the default assignment because of an extremely
19218 # bizarre bug on SunOS 4.1.3.
19219 if $ac_need_defaults; then
19220   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19221   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19222   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19223   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19224 fi
19225
19226 # Create a temporary directory, and hook for its removal unless debugging.
19227 $debug ||
19228 {
19229   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19230   trap '{ (exit 1); exit 1; }' 1 2 13 15
19231 }
19232
19233 # Create a (secure) tmp directory for tmp files.
19234 : ${TMPDIR=/tmp}
19235 {
19236   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19237   test -n "$tmp" && test -d "$tmp"
19238 }  ||
19239 {
19240   tmp=$TMPDIR/cs$$-$RANDOM
19241   (umask 077 && mkdir $tmp)
19242 } ||
19243 {
19244    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19245    { (exit 1); exit 1; }
19246 }
19247
19248 _ACEOF
19249
19250 cat >>$CONFIG_STATUS <<_ACEOF
19251
19252 #
19253 # CONFIG_FILES section.
19254 #
19255
19256 # No need to generate the scripts if there are no CONFIG_FILES.
19257 # This happens for instance when ./config.status config.h
19258 if test -n "\$CONFIG_FILES"; then
19259   # Protect against being on the right side of a sed subst in config.status.
19260   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19261    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19262 s,@SHELL@,$SHELL,;t t
19263 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19264 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19265 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19266 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19267 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19268 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19269 s,@exec_prefix@,$exec_prefix,;t t
19270 s,@prefix@,$prefix,;t t
19271 s,@program_transform_name@,$program_transform_name,;t t
19272 s,@bindir@,$bindir,;t t
19273 s,@sbindir@,$sbindir,;t t
19274 s,@libexecdir@,$libexecdir,;t t
19275 s,@datadir@,$datadir,;t t
19276 s,@sysconfdir@,$sysconfdir,;t t
19277 s,@sharedstatedir@,$sharedstatedir,;t t
19278 s,@localstatedir@,$localstatedir,;t t
19279 s,@libdir@,$libdir,;t t
19280 s,@includedir@,$includedir,;t t
19281 s,@oldincludedir@,$oldincludedir,;t t
19282 s,@infodir@,$infodir,;t t
19283 s,@mandir@,$mandir,;t t
19284 s,@build_alias@,$build_alias,;t t
19285 s,@host_alias@,$host_alias,;t t
19286 s,@target_alias@,$target_alias,;t t
19287 s,@DEFS@,$DEFS,;t t
19288 s,@ECHO_C@,$ECHO_C,;t t
19289 s,@ECHO_N@,$ECHO_N,;t t
19290 s,@ECHO_T@,$ECHO_T,;t t
19291 s,@LIBS@,$LIBS,;t t
19292 s,@configure_args@,$configure_args,;t t
19293 s,@build@,$build,;t t
19294 s,@build_cpu@,$build_cpu,;t t
19295 s,@build_vendor@,$build_vendor,;t t
19296 s,@build_os@,$build_os,;t t
19297 s,@host@,$host,;t t
19298 s,@host_cpu@,$host_cpu,;t t
19299 s,@host_vendor@,$host_vendor,;t t
19300 s,@host_os@,$host_os,;t t
19301 s,@PORTNAME@,$PORTNAME,;t t
19302 s,@docdir@,$docdir,;t t
19303 s,@enable_nls@,$enable_nls,;t t
19304 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
19305 s,@default_port@,$default_port,;t t
19306 s,@enable_shared@,$enable_shared,;t t
19307 s,@enable_rpath@,$enable_rpath,;t t
19308 s,@enable_debug@,$enable_debug,;t t
19309 s,@CC@,$CC,;t t
19310 s,@CFLAGS@,$CFLAGS,;t t
19311 s,@LDFLAGS@,$LDFLAGS,;t t
19312 s,@CPPFLAGS@,$CPPFLAGS,;t t
19313 s,@ac_ct_CC@,$ac_ct_CC,;t t
19314 s,@EXEEXT@,$EXEEXT,;t t
19315 s,@OBJEXT@,$OBJEXT,;t t
19316 s,@CPP@,$CPP,;t t
19317 s,@GCC@,$GCC,;t t
19318 s,@TAS@,$TAS,;t t
19319 s,@autodepend@,$autodepend,;t t
19320 s,@INCLUDES@,$INCLUDES,;t t
19321 s,@enable_thread_safety@,$enable_thread_safety,;t t
19322 s,@with_tcl@,$with_tcl,;t t
19323 s,@with_perl@,$with_perl,;t t
19324 s,@with_python@,$with_python,;t t
19325 s,@with_krb5@,$with_krb5,;t t
19326 s,@krb_srvtab@,$krb_srvtab,;t t
19327 s,@with_pam@,$with_pam,;t t
19328 s,@with_bonjour@,$with_bonjour,;t t
19329 s,@with_openssl@,$with_openssl,;t t
19330 s,@ELF_SYS@,$ELF_SYS,;t t
19331 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19332 s,@AWK@,$AWK,;t t
19333 s,@FLEX@,$FLEX,;t t
19334 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19335 s,@LN_S@,$LN_S,;t t
19336 s,@LD@,$LD,;t t
19337 s,@with_gnu_ld@,$with_gnu_ld,;t t
19338 s,@ld_R_works@,$ld_R_works,;t t
19339 s,@RANLIB@,$RANLIB,;t t
19340 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19341 s,@LORDER@,$LORDER,;t t
19342 s,@TAR@,$TAR,;t t
19343 s,@STRIP@,$STRIP,;t t
19344 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19345 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19346 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19347 s,@YACC@,$YACC,;t t
19348 s,@YFLAGS@,$YFLAGS,;t t
19349 s,@PERL@,$PERL,;t t
19350 s,@perl_archlibexp@,$perl_archlibexp,;t t
19351 s,@perl_privlibexp@,$perl_privlibexp,;t t
19352 s,@perl_useshrplib@,$perl_useshrplib,;t t
19353 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19354 s,@PYTHON@,$PYTHON,;t t
19355 s,@python_version@,$python_version,;t t
19356 s,@python_configdir@,$python_configdir,;t t
19357 s,@python_includespec@,$python_includespec,;t t
19358 s,@python_libdir@,$python_libdir,;t t
19359 s,@python_libspec@,$python_libspec,;t t
19360 s,@python_additional_libs@,$python_additional_libs,;t t
19361 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19362 s,@LIBOBJS@,$LIBOBJS,;t t
19363 s,@acx_pthread_config@,$acx_pthread_config,;t t
19364 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19365 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19366 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19367 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19368 s,@MSGFMT@,$MSGFMT,;t t
19369 s,@MSGMERGE@,$MSGMERGE,;t t
19370 s,@XGETTEXT@,$XGETTEXT,;t t
19371 s,@localedir@,$localedir,;t t
19372 s,@TCLSH@,$TCLSH,;t t
19373 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19374 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19375 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19376 s,@TCL_LIBS@,$TCL_LIBS,;t t
19377 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19378 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19379 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19380 s,@NSGMLS@,$NSGMLS,;t t
19381 s,@JADE@,$JADE,;t t
19382 s,@have_docbook@,$have_docbook,;t t
19383 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19384 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19385 s,@SGMLSPL@,$SGMLSPL,;t t
19386 s,@vpath_build@,$vpath_build,;t t
19387 CEOF
19388
19389 _ACEOF
19390
19391   cat >>$CONFIG_STATUS <<\_ACEOF
19392   # Split the substitutions into bite-sized pieces for seds with
19393   # small command number limits, like on Digital OSF/1 and HP-UX.
19394   ac_max_sed_lines=48
19395   ac_sed_frag=1 # Number of current file.
19396   ac_beg=1 # First line for current file.
19397   ac_end=$ac_max_sed_lines # Line after last line for current file.
19398   ac_more_lines=:
19399   ac_sed_cmds=
19400   while $ac_more_lines; do
19401     if test $ac_beg -gt 1; then
19402       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19403     else
19404       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19405     fi
19406     if test ! -s $tmp/subs.frag; then
19407       ac_more_lines=false
19408     else
19409       # The purpose of the label and of the branching condition is to
19410       # speed up the sed processing (if there are no `@' at all, there
19411       # is no need to browse any of the substitutions).
19412       # These are the two extra sed commands mentioned above.
19413       (echo ':t
19414   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19415       if test -z "$ac_sed_cmds"; then
19416         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19417       else
19418         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19419       fi
19420       ac_sed_frag=`expr $ac_sed_frag + 1`
19421       ac_beg=$ac_end
19422       ac_end=`expr $ac_end + $ac_max_sed_lines`
19423     fi
19424   done
19425   if test -z "$ac_sed_cmds"; then
19426     ac_sed_cmds=cat
19427   fi
19428 fi # test -n "$CONFIG_FILES"
19429
19430 _ACEOF
19431 cat >>$CONFIG_STATUS <<\_ACEOF
19432 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19433   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19434   case $ac_file in
19435   - | *:- | *:-:* ) # input from stdin
19436         cat >$tmp/stdin
19437         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19438         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19439   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19440         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19441   * )   ac_file_in=$ac_file.in ;;
19442   esac
19443
19444   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19445   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19447          X"$ac_file" : 'X\(//\)[^/]' \| \
19448          X"$ac_file" : 'X\(//\)$' \| \
19449          X"$ac_file" : 'X\(/\)' \| \
19450          .     : '\(.\)' 2>/dev/null ||
19451 echo X"$ac_file" |
19452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19454           /^X\(\/\/\)$/{ s//\1/; q; }
19455           /^X\(\/\).*/{ s//\1/; q; }
19456           s/.*/./; q'`
19457   { case "$ac_dir" in
19458   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19459   *)                      as_incr_dir=.;;
19460 esac
19461 as_dummy="$ac_dir"
19462 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19463   case $as_mkdir_dir in
19464     # Skip DOS drivespec
19465     ?:) as_incr_dir=$as_mkdir_dir ;;
19466     *)
19467       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19468       test -d "$as_incr_dir" ||
19469         mkdir "$as_incr_dir" ||
19470         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19471 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19472    { (exit 1); exit 1; }; }
19473     ;;
19474   esac
19475 done; }
19476
19477   ac_builddir=.
19478
19479 if test "$ac_dir" != .; then
19480   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19481   # A "../" for each directory in $ac_dir_suffix.
19482   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19483 else
19484   ac_dir_suffix= ac_top_builddir=
19485 fi
19486
19487 case $srcdir in
19488   .)  # No --srcdir option.  We are building in place.
19489     ac_srcdir=.
19490     if test -z "$ac_top_builddir"; then
19491        ac_top_srcdir=.
19492     else
19493        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19494     fi ;;
19495   [\\/]* | ?:[\\/]* )  # Absolute path.
19496     ac_srcdir=$srcdir$ac_dir_suffix;
19497     ac_top_srcdir=$srcdir ;;
19498   *) # Relative path.
19499     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19500     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19501 esac
19502 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19503 # absolute.
19504 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19505 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19506 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19507 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19508
19509
19510
19511   if test x"$ac_file" != x-; then
19512     { echo "$as_me:$LINENO: creating $ac_file" >&5
19513 echo "$as_me: creating $ac_file" >&6;}
19514     rm -f "$ac_file"
19515   fi
19516   # Let's still pretend it is `configure' which instantiates (i.e., don't
19517   # use $as_me), people would be surprised to read:
19518   #    /* config.h.  Generated by config.status.  */
19519   if test x"$ac_file" = x-; then
19520     configure_input=
19521   else
19522     configure_input="$ac_file.  "
19523   fi
19524   configure_input=$configure_input"Generated from `echo $ac_file_in |
19525                                      sed 's,.*/,,'` by configure."
19526
19527   # First look for the input files in the build tree, otherwise in the
19528   # src tree.
19529   ac_file_inputs=`IFS=:
19530     for f in $ac_file_in; do
19531       case $f in
19532       -) echo $tmp/stdin ;;
19533       [\\/$]*)
19534          # Absolute (can't be DOS-style, as IFS=:)
19535          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19536 echo "$as_me: error: cannot find input file: $f" >&2;}
19537    { (exit 1); exit 1; }; }
19538          echo $f;;
19539       *) # Relative
19540          if test -f "$f"; then
19541            # Build tree
19542            echo $f
19543          elif test -f "$srcdir/$f"; then
19544            # Source tree
19545            echo $srcdir/$f
19546          else
19547            # /dev/null tree
19548            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19549 echo "$as_me: error: cannot find input file: $f" >&2;}
19550    { (exit 1); exit 1; }; }
19551          fi;;
19552       esac
19553     done` || { (exit 1); exit 1; }
19554 _ACEOF
19555 cat >>$CONFIG_STATUS <<_ACEOF
19556   sed "$ac_vpsub
19557 $extrasub
19558 _ACEOF
19559 cat >>$CONFIG_STATUS <<\_ACEOF
19560 :t
19561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19562 s,@configure_input@,$configure_input,;t t
19563 s,@srcdir@,$ac_srcdir,;t t
19564 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19565 s,@top_srcdir@,$ac_top_srcdir,;t t
19566 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19567 s,@builddir@,$ac_builddir,;t t
19568 s,@abs_builddir@,$ac_abs_builddir,;t t
19569 s,@top_builddir@,$ac_top_builddir,;t t
19570 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19572   rm -f $tmp/stdin
19573   if test x"$ac_file" != x-; then
19574     mv $tmp/out $ac_file
19575   else
19576     cat $tmp/out
19577     rm -f $tmp/out
19578   fi
19579
19580 done
19581 _ACEOF
19582 cat >>$CONFIG_STATUS <<\_ACEOF
19583
19584 #
19585 # CONFIG_HEADER section.
19586 #
19587
19588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19590 #
19591 # ac_d sets the value in "#define NAME VALUE" lines.
19592 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19593 ac_dB='[        ].*$,\1#\2'
19594 ac_dC=' '
19595 ac_dD=',;t'
19596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19597 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19598 ac_uB='$,\1#\2define\3'
19599 ac_uC=' '
19600 ac_uD=',;t'
19601
19602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19603   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19604   case $ac_file in
19605   - | *:- | *:-:* ) # input from stdin
19606         cat >$tmp/stdin
19607         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19608         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19609   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19611   * )   ac_file_in=$ac_file.in ;;
19612   esac
19613
19614   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19615 echo "$as_me: creating $ac_file" >&6;}
19616
19617   # First look for the input files in the build tree, otherwise in the
19618   # src tree.
19619   ac_file_inputs=`IFS=:
19620     for f in $ac_file_in; do
19621       case $f in
19622       -) echo $tmp/stdin ;;
19623       [\\/$]*)
19624          # Absolute (can't be DOS-style, as IFS=:)
19625          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19626 echo "$as_me: error: cannot find input file: $f" >&2;}
19627    { (exit 1); exit 1; }; }
19628          echo $f;;
19629       *) # Relative
19630          if test -f "$f"; then
19631            # Build tree
19632            echo $f
19633          elif test -f "$srcdir/$f"; then
19634            # Source tree
19635            echo $srcdir/$f
19636          else
19637            # /dev/null tree
19638            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19639 echo "$as_me: error: cannot find input file: $f" >&2;}
19640    { (exit 1); exit 1; }; }
19641          fi;;
19642       esac
19643     done` || { (exit 1); exit 1; }
19644   # Remove the trailing spaces.
19645   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19646
19647 _ACEOF
19648
19649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19650 # `conftest.undefs', that substitutes the proper values into
19651 # config.h.in to produce config.h.  The first handles `#define'
19652 # templates, and the second `#undef' templates.
19653 # And first: Protect against being on the right side of a sed subst in
19654 # config.status.  Protect against being in an unquoted here document
19655 # in config.status.
19656 rm -f conftest.defines conftest.undefs
19657 # Using a here document instead of a string reduces the quoting nightmare.
19658 # Putting comments in sed scripts is not portable.
19659 #
19660 # `end' is used to avoid that the second main sed command (meant for
19661 # 0-ary CPP macros) applies to n-ary macro definitions.
19662 # See the Autoconf documentation for `clear'.
19663 cat >confdef2sed.sed <<\_ACEOF
19664 s/[\\&,]/\\&/g
19665 s,[\\$`],\\&,g
19666 t clear
19667 : clear
19668 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19669 t end
19670 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19671 : end
19672 _ACEOF
19673 # If some macros were called several times there might be several times
19674 # the same #defines, which is useless.  Nevertheless, we may not want to
19675 # sort them, since we want the *last* AC-DEFINE to be honored.
19676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19678 rm -f confdef2sed.sed
19679
19680 # This sed command replaces #undef with comments.  This is necessary, for
19681 # example, in the case of _POSIX_SOURCE, which is predefined and required
19682 # on some systems where configure will not decide to define it.
19683 cat >>conftest.undefs <<\_ACEOF
19684 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19685 _ACEOF
19686
19687 # Break up conftest.defines because some shells have a limit on the size
19688 # of here documents, and old seds have small limits too (100 cmds).
19689 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19690 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19691 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19692 echo '  :' >>$CONFIG_STATUS
19693 rm -f conftest.tail
19694 while grep . conftest.defines >/dev/null
19695 do
19696   # Write a limited-size here document to $tmp/defines.sed.
19697   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19698   # Speed up: don't consider the non `#define' lines.
19699   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19700   # Work around the forget-to-reset-the-flag bug.
19701   echo 't clr' >>$CONFIG_STATUS
19702   echo ': clr' >>$CONFIG_STATUS
19703   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19704   echo 'CEOF
19705   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19706   rm -f $tmp/in
19707   mv $tmp/out $tmp/in
19708 ' >>$CONFIG_STATUS
19709   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19710   rm -f conftest.defines
19711   mv conftest.tail conftest.defines
19712 done
19713 rm -f conftest.defines
19714 echo '  fi # egrep' >>$CONFIG_STATUS
19715 echo >>$CONFIG_STATUS
19716
19717 # Break up conftest.undefs because some shells have a limit on the size
19718 # of here documents, and old seds have small limits too (100 cmds).
19719 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19720 rm -f conftest.tail
19721 while grep . conftest.undefs >/dev/null
19722 do
19723   # Write a limited-size here document to $tmp/undefs.sed.
19724   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19725   # Speed up: don't consider the non `#undef'
19726   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19727   # Work around the forget-to-reset-the-flag bug.
19728   echo 't clr' >>$CONFIG_STATUS
19729   echo ': clr' >>$CONFIG_STATUS
19730   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19731   echo 'CEOF
19732   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19733   rm -f $tmp/in
19734   mv $tmp/out $tmp/in
19735 ' >>$CONFIG_STATUS
19736   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19737   rm -f conftest.undefs
19738   mv conftest.tail conftest.undefs
19739 done
19740 rm -f conftest.undefs
19741
19742 cat >>$CONFIG_STATUS <<\_ACEOF
19743   # Let's still pretend it is `configure' which instantiates (i.e., don't
19744   # use $as_me), people would be surprised to read:
19745   #    /* config.h.  Generated by config.status.  */
19746   if test x"$ac_file" = x-; then
19747     echo "/* Generated by configure.  */" >$tmp/config.h
19748   else
19749     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19750   fi
19751   cat $tmp/in >>$tmp/config.h
19752   rm -f $tmp/in
19753   if test x"$ac_file" != x-; then
19754     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19755       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19756 echo "$as_me: $ac_file is unchanged" >&6;}
19757     else
19758       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19760          X"$ac_file" : 'X\(//\)[^/]' \| \
19761          X"$ac_file" : 'X\(//\)$' \| \
19762          X"$ac_file" : 'X\(/\)' \| \
19763          .     : '\(.\)' 2>/dev/null ||
19764 echo X"$ac_file" |
19765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19767           /^X\(\/\/\)$/{ s//\1/; q; }
19768           /^X\(\/\).*/{ s//\1/; q; }
19769           s/.*/./; q'`
19770       { case "$ac_dir" in
19771   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19772   *)                      as_incr_dir=.;;
19773 esac
19774 as_dummy="$ac_dir"
19775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19776   case $as_mkdir_dir in
19777     # Skip DOS drivespec
19778     ?:) as_incr_dir=$as_mkdir_dir ;;
19779     *)
19780       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19781       test -d "$as_incr_dir" ||
19782         mkdir "$as_incr_dir" ||
19783         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19784 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19785    { (exit 1); exit 1; }; }
19786     ;;
19787   esac
19788 done; }
19789
19790       rm -f $ac_file
19791       mv $tmp/config.h $ac_file
19792     fi
19793   else
19794     cat $tmp/config.h
19795     rm -f $tmp/config.h
19796   fi
19797   # Run the commands associated with the file.
19798   case $ac_file in
19799     src/include/pg_config.h )
19800 # Update timestamp for pg_config.h (see Makefile.global)
19801 echo >src/include/stamp-h
19802  ;;
19803   esac
19804 done
19805 _ACEOF
19806 cat >>$CONFIG_STATUS <<\_ACEOF
19807
19808 #
19809 # CONFIG_LINKS section.
19810 #
19811
19812 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19813   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19814   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19815
19816   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19817 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19818
19819   if test ! -r $srcdir/$ac_source; then
19820     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19821 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19822    { (exit 1); exit 1; }; }
19823   fi
19824   rm -f $ac_dest
19825
19826   # Make relative symlinks.
19827   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19828 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19829          X"$ac_dest" : 'X\(//\)[^/]' \| \
19830          X"$ac_dest" : 'X\(//\)$' \| \
19831          X"$ac_dest" : 'X\(/\)' \| \
19832          .     : '\(.\)' 2>/dev/null ||
19833 echo X"$ac_dest" |
19834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19836           /^X\(\/\/\)$/{ s//\1/; q; }
19837           /^X\(\/\).*/{ s//\1/; q; }
19838           s/.*/./; q'`
19839   { case "$ac_dest_dir" in
19840   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19841   *)                      as_incr_dir=.;;
19842 esac
19843 as_dummy="$ac_dest_dir"
19844 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19845   case $as_mkdir_dir in
19846     # Skip DOS drivespec
19847     ?:) as_incr_dir=$as_mkdir_dir ;;
19848     *)
19849       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19850       test -d "$as_incr_dir" ||
19851         mkdir "$as_incr_dir" ||
19852         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19853 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19854    { (exit 1); exit 1; }; }
19855     ;;
19856   esac
19857 done; }
19858
19859   ac_builddir=.
19860
19861 if test "$ac_dest_dir" != .; then
19862   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19863   # A "../" for each directory in $ac_dir_suffix.
19864   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19865 else
19866   ac_dir_suffix= ac_top_builddir=
19867 fi
19868
19869 case $srcdir in
19870   .)  # No --srcdir option.  We are building in place.
19871     ac_srcdir=.
19872     if test -z "$ac_top_builddir"; then
19873        ac_top_srcdir=.
19874     else
19875        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19876     fi ;;
19877   [\\/]* | ?:[\\/]* )  # Absolute path.
19878     ac_srcdir=$srcdir$ac_dir_suffix;
19879     ac_top_srcdir=$srcdir ;;
19880   *) # Relative path.
19881     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19882     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19883 esac
19884 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19885 # absolute.
19886 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19887 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19888 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19889 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19890
19891
19892   case $srcdir in
19893   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19894       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19895   esac
19896
19897   # Make a symlink if possible; otherwise try a hard link.
19898   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19899     ln $srcdir/$ac_source $ac_dest ||
19900     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19901 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19902    { (exit 1); exit 1; }; }
19903 done
19904 _ACEOF
19905 cat >>$CONFIG_STATUS <<\_ACEOF
19906
19907 #
19908 # CONFIG_COMMANDS section.
19909 #
19910 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19911   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19912   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19913   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19914 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19915          X"$ac_dest" : 'X\(//\)[^/]' \| \
19916          X"$ac_dest" : 'X\(//\)$' \| \
19917          X"$ac_dest" : 'X\(/\)' \| \
19918          .     : '\(.\)' 2>/dev/null ||
19919 echo X"$ac_dest" |
19920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19921           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19922           /^X\(\/\/\)$/{ s//\1/; q; }
19923           /^X\(\/\).*/{ s//\1/; q; }
19924           s/.*/./; q'`
19925   ac_builddir=.
19926
19927 if test "$ac_dir" != .; then
19928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19929   # A "../" for each directory in $ac_dir_suffix.
19930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19931 else
19932   ac_dir_suffix= ac_top_builddir=
19933 fi
19934
19935 case $srcdir in
19936   .)  # No --srcdir option.  We are building in place.
19937     ac_srcdir=.
19938     if test -z "$ac_top_builddir"; then
19939        ac_top_srcdir=.
19940     else
19941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19942     fi ;;
19943   [\\/]* | ?:[\\/]* )  # Absolute path.
19944     ac_srcdir=$srcdir$ac_dir_suffix;
19945     ac_top_srcdir=$srcdir ;;
19946   *) # Relative path.
19947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19949 esac
19950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19951 # absolute.
19952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19953 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19956
19957
19958   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19959 echo "$as_me: executing $ac_dest commands" >&6;}
19960   case $ac_dest in
19961     check_win32_symlinks )
19962 # Links sometimes fail undetected on Mingw -
19963 # so here we detect it and warn the user
19964 for FILE in $CONFIG_LINKS
19965  do
19966         # test -e works for symlinks in the MinGW console
19967         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19968 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19969  done
19970  ;;
19971   esac
19972 done
19973 _ACEOF
19974
19975 cat >>$CONFIG_STATUS <<\_ACEOF
19976
19977 { (exit 0); exit 0; }
19978 _ACEOF
19979 chmod +x $CONFIG_STATUS
19980 ac_clean_files=$ac_clean_files_save
19981
19982
19983 # configure is writing to config.log, and then calls config.status.
19984 # config.status does its own redirection, appending to config.log.
19985 # Unfortunately, on DOS this fails, as config.log is still kept open
19986 # by configure, so config.status won't be able to write to it; its
19987 # output is simply discarded.  So we exec the FD to /dev/null,
19988 # effectively closing config.log, so it can be properly (re)opened and
19989 # appended to by config.status.  When coming back to configure, we
19990 # need to make the FD available again.
19991 if test "$no_create" != yes; then
19992   ac_cs_success=:
19993   exec 5>/dev/null
19994   $SHELL $CONFIG_STATUS || ac_cs_success=false
19995   exec 5>>config.log
19996   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19997   # would make configure fail if this is the last instruction.
19998   $ac_cs_success || { (exit 1); exit 1; }
19999 fi
20000
20001