]> granicus.if.org Git - postgresql/blob - configure
Add thread.c for libpq threading, and hook it into libpq/configure.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-recode         enable single-byte recode support
842   --enable-nls[=LANGUAGES]  enable Native Language Support
843   --disable-shared        do not build shared libraries
844   --disable-rpath         do not embed shared library search path in executables
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-threads          allow libpq to be thread-safe
859   --with-tcl              build Tcl and Tk interfaces
860   --without-tk            do not build Tk interfaces if Tcl is enabled
861   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
862   --with-tkconfig=DIR     tkConfig.sh is in DIR
863   --with-perl             build Perl modules (PL/Perl)
864   --with-python           build Python interface module
865   --with-java             build JDBC interface and Java tools
866   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
867   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
869   --with-pam              build with PAM support
870   --with-rendezvous       build with Rendezvous support
871   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-gnu-ld           assume the C compiler uses GNU ld default=no
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884   DOCBOOKSTYLE
885               location of DocBook stylesheets
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <pgsql-bugs@postgresql.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960
961 Copyright 2002 PostgreSQL Global Development Group
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255 ac_aux_dir=
1256 for ac_dir in config $srcdir/config; do
1257   if test -f $ac_dir/install-sh; then
1258     ac_aux_dir=$ac_dir
1259     ac_install_sh="$ac_aux_dir/install-sh -c"
1260     break
1261   elif test -f $ac_dir/install.sh; then
1262     ac_aux_dir=$ac_dir
1263     ac_install_sh="$ac_aux_dir/install.sh -c"
1264     break
1265   elif test -f $ac_dir/shtool; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/shtool install -c"
1268     break
1269   fi
1270 done
1271 if test -z "$ac_aux_dir"; then
1272   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1279
1280
1281 configure_args=$ac_configure_args
1282
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1287 _ACEOF
1288
1289
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294    { (exit 1); exit 1; }; }
1295
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299   echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301   ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303   ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307    { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311    { (exit 1); exit 1; }; }
1312
1313 fi
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1316 build=$ac_cv_build
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320
1321
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325   echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327   ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329   ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333    { (exit 1); exit 1; }; }
1334
1335 fi
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1338 host=$ac_cv_host
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342
1343
1344
1345 template=
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1348
1349
1350
1351
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354   withval="$with_template"
1355
1356   case $withval in
1357     yes)
1358       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360    { (exit 1); exit 1; }; }
1361       ;;
1362     no)
1363       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365    { (exit 1); exit 1; }; }
1366       ;;
1367     *)
1368
1369   case $withval in
1370     list)   echo; ls "$srcdir/src/template"; exit;;
1371     *)      if test -f "$srcdir/src/template/$with_template" ; then
1372               template=$withval
1373             else
1374               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376    { (exit 1); exit 1; }; }
1377             fi;;
1378   esac
1379
1380       ;;
1381   esac
1382
1383 else
1384
1385   # --with-template not given
1386
1387 case $host_os in
1388      aix*) template=aix ;;
1389     beos*) template=beos ;;
1390     bsdi*) template=bsdi ;;
1391   cygwin*) template=cygwin ;;
1392   darwin*) template=darwin ;;
1393     dgux*) template=dgux ;;
1394  freebsd*) template=freebsd ;;
1395     hpux*) template=hpux ;;
1396     irix*) template=irix5 ;;
1397    linux*) template=linux ;;
1398    mingw*) template=win32 ;;
1399   netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401  openbsd*) template=openbsd ;;
1402      osf*) template=osf ;;
1403      qnx*) template=qnx4 ;;
1404      sco*) template=sco ;;
1405  solaris*) template=solaris ;;
1406    sunos*) template=sunos4 ;;
1407  sysv4.2*)
1408         case $host_vendor in
1409           univel) template=univel ;;
1410         esac ;;
1411    sysv4*) template=svr4 ;;
1412    sysv5*) template=unixware ;;
1413   ultrix*) template=ultrix4 ;;
1414 esac
1415
1416   if test x"$template" = x"" ; then
1417     { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1422
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this.  Include the above 'checking host system type...'
1425 line.
1426 *******************************************************************
1427 " >&5
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1433
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this.  Include the above 'checking host system type...'
1436 line.
1437 *******************************************************************
1438 " >&2;}
1439    { (exit 1); exit 1; }; }
1440   fi
1441
1442
1443 fi;
1444
1445
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1448
1449 PORTNAME=$template
1450
1451
1452 # Pick right test-and-set (TAS) code.  Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1455 case $host in
1456   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1457   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1459   *)                need_tas=no;  tas_file=dummy.s ;;
1460 esac
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462
1463
1464 if test "$need_tas" = yes ; then
1465   TAS=tas.o
1466 fi
1467
1468
1469
1470
1471 ##
1472 ## Command line options
1473 ##
1474
1475
1476 #
1477 # Add non-standard directories to the include path
1478 #
1479
1480
1481
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484   withval="$with_includes"
1485
1486   case $withval in
1487     yes)
1488       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490    { (exit 1); exit 1; }; }
1491       ;;
1492     no)
1493       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495    { (exit 1); exit 1; }; }
1496       ;;
1497     *)
1498
1499       ;;
1500   esac
1501
1502 fi;
1503
1504
1505
1506 #
1507 # Add non-standard directories to the library search path
1508 #
1509
1510
1511
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514   withval="$with_libraries"
1515
1516   case $withval in
1517     yes)
1518       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520    { (exit 1); exit 1; }; }
1521       ;;
1522     no)
1523       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525    { (exit 1); exit 1; }; }
1526       ;;
1527     *)
1528       LIBRARY_DIRS=$withval
1529       ;;
1530   esac
1531
1532 fi;
1533
1534
1535
1536
1537
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540   withval="$with_libs"
1541
1542   case $withval in
1543     yes)
1544       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546    { (exit 1); exit 1; }; }
1547       ;;
1548     no)
1549       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551    { (exit 1); exit 1; }; }
1552       ;;
1553     *)
1554       LIBRARY_DIRS=$withval
1555       ;;
1556   esac
1557
1558 fi;
1559
1560
1561
1562 #
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 #
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567
1568
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571   enableval="$enable_integer_datetimes"
1572
1573   case $enableval in
1574     yes)
1575
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1578 _ACEOF
1579
1580       ;;
1581     no)
1582       :
1583       ;;
1584     *)
1585       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587    { (exit 1); exit 1; }; }
1588       ;;
1589   esac
1590
1591 else
1592   enable_integer_datetimes=no
1593
1594 fi;
1595
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598
1599
1600 # Character set recode (--enable-recode)
1601 #
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608   enableval="$enable_recode"
1609
1610   case $enableval in
1611     yes)
1612
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1615 _ACEOF
1616
1617       ;;
1618     no)
1619       :
1620       ;;
1621     *)
1622       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624    { (exit 1); exit 1; }; }
1625       ;;
1626   esac
1627
1628 else
1629   enable_recode=no
1630
1631 fi;
1632
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1635
1636
1637 #
1638 # NLS
1639 #
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1642
1643
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646   enableval="$enable_nls"
1647
1648   case $enableval in
1649     yes)
1650       :
1651       ;;
1652     no)
1653       :
1654       ;;
1655     *)
1656       enable_nls=yes
1657 WANTED_LANGUAGES=$enableval
1658       ;;
1659   esac
1660
1661 else
1662   enable_nls=no
1663 fi;
1664
1665
1666 if test "$enable_nls" = yes; then
1667
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1670 _ACEOF
1671
1672 fi
1673
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1676
1677
1678
1679 #
1680 # Default port number (--with-pgport), default 5432
1681 #
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1684
1685
1686
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689   withval="$with_pgport"
1690
1691   case $withval in
1692     yes)
1693       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695    { (exit 1); exit 1; }; }
1696       ;;
1697     no)
1698       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700    { (exit 1); exit 1; }; }
1701       ;;
1702     *)
1703       default_port=$withval
1704       ;;
1705   esac
1706
1707 else
1708   default_port=5432
1709 fi;
1710
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1722 _ACEOF
1723
1724
1725
1726 #
1727 # Option to disable shared libraries
1728 #
1729
1730
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733   enableval="$enable_shared"
1734
1735   case $enableval in
1736     yes)
1737       :
1738       ;;
1739     no)
1740       :
1741       ;;
1742     *)
1743       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745    { (exit 1); exit 1; }; }
1746       ;;
1747   esac
1748
1749 else
1750   enable_shared=yes
1751
1752 fi;
1753
1754
1755
1756 #
1757 # '-rpath'-like feature can be disabled
1758 #
1759
1760
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763   enableval="$enable_rpath"
1764
1765   case $enableval in
1766     yes)
1767       :
1768       ;;
1769     no)
1770       :
1771       ;;
1772     *)
1773       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777   esac
1778
1779 else
1780   enable_rpath=yes
1781
1782 fi;
1783
1784
1785
1786
1787 #
1788 # --enable-debug adds -g to compiler flags
1789 #
1790
1791
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794   enableval="$enable_debug"
1795
1796   case $enableval in
1797     yes)
1798       :
1799       ;;
1800     no)
1801       :
1802       ;;
1803     *)
1804       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806    { (exit 1); exit 1; }; }
1807       ;;
1808   esac
1809
1810 else
1811   enable_debug=no
1812
1813 fi;
1814
1815
1816
1817 #
1818 # C compiler
1819 #
1820
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1823 # variable.
1824
1825
1826
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1829   withval="$with_CC"
1830
1831   case $withval in
1832     yes)
1833       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835    { (exit 1); exit 1; }; }
1836       ;;
1837     no)
1838       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840    { (exit 1); exit 1; }; }
1841       ;;
1842     *)
1843       CC=$with_CC
1844       ;;
1845   esac
1846
1847 fi;
1848
1849
1850 case $template in
1851   aix) pgac_cc_list="gcc xlc";;
1852  irix) pgac_cc_list="cc";; # no gcc
1853     *) pgac_cc_list="gcc cc";;
1854 esac
1855
1856 ac_ext=c
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862   for ac_prog in $pgac_cc_list
1863   do
1864     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$CC"; then
1872   ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 CC=$ac_cv_prog_CC
1891 if test -n "$CC"; then
1892   echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899     test -n "$CC" && break
1900   done
1901 fi
1902 if test -z "$CC"; then
1903   ac_ct_CC=$CC
1904   for ac_prog in $pgac_cc_list
1905 do
1906   # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$ac_ct_CC"; then
1914   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_ac_ct_CC="$ac_prog"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941   test -n "$ac_ct_CC" && break
1942 done
1943
1944   CC=$ac_ct_CC
1945 fi
1946
1947
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950    { (exit 1); exit 1; }; }
1951
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954      "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957   (eval $ac_compiler --version </dev/null >&5) 2>&5
1958   ac_status=$?
1959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960   (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962   (eval $ac_compiler -v </dev/null >&5) 2>&5
1963   ac_status=$?
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967   (eval $ac_compiler -V </dev/null >&5) 2>&5
1968   ac_status=$?
1969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970   (exit $ac_status); }
1971
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1975
1976 #ifdef F77_DUMMY_MAIN
1977 #  ifdef __cplusplus
1978      extern "C"
1979 #  endif
1980    int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1994 # of exeext.
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999   (eval $ac_link_default) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; then
2003   # Find the output, starting from the most likely.  This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # resort.
2006
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009 ac_cv_exeext=
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011                 ls a.out conftest 2>/dev/null;
2012                 ls a.* conftest.* 2>/dev/null`; do
2013   case $ac_file in
2014     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015     a.out ) # We found the default executable, but exeext='' is most
2016             # certainly right.
2017             break;;
2018     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2020           export ac_cv_exeext
2021           break;;
2022     * ) break;;
2023   esac
2024 done
2025 else
2026   echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030    { (exit 77); exit 77; }; }
2031 fi
2032
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2036
2037 # Check the compiler produces executables we can run.  If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044   if { ac_try='./$ac_file'
2045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046   (eval $ac_try) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); }; }; then
2050     cross_compiling=no
2051   else
2052     if test "$cross_compiling" = maybe; then
2053         cross_compiling=yes
2054     else
2055         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059    { (exit 1); exit 1; }; }
2060     fi
2061   fi
2062 fi
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2065
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run.  If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2074
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078   (eval $ac_link) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; then
2082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2085 # `rm'.
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2087   case $ac_file in
2088     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090           export ac_cv_exeext
2091           break;;
2092     * ) break;;
2093   esac
2094 done
2095 else
2096   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098    { (exit 1); exit 1; }; }
2099 fi
2100
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2104
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2107 ac_exeext=$EXEEXT
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2116
2117 #ifdef F77_DUMMY_MAIN
2118 #  ifdef __cplusplus
2119      extern "C"
2120 #  endif
2121    int F77_DUMMY_MAIN() { return 1; }
2122 #endif
2123 int
2124 main ()
2125 {
2126
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133   (eval $ac_compile) 2>&5
2134   ac_status=$?
2135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136   (exit $ac_status); }; then
2137   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2138   case $ac_file in
2139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2141        break;;
2142   esac
2143 done
2144 else
2145   echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2153 fi
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$OBJEXT
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2166
2167 #ifdef F77_DUMMY_MAIN
2168 #  ifdef __cplusplus
2169      extern "C"
2170 #  endif
2171    int F77_DUMMY_MAIN() { return 1; }
2172 #endif
2173 int
2174 main ()
2175 {
2176 #ifndef __GNUC__
2177        choke me
2178 #endif
2179
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186   (eval $ac_compile) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); } &&
2190          { ac_try='test -s conftest.$ac_objext'
2191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192   (eval $ac_try) 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; }; then
2196   ac_compiler_gnu=yes
2197 else
2198   echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2201 fi
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2204
2205 fi
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2211 CFLAGS="-g"
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2220
2221 #ifdef F77_DUMMY_MAIN
2222 #  ifdef __cplusplus
2223      extern "C"
2224 #  endif
2225    int F77_DUMMY_MAIN() { return 1; }
2226 #endif
2227 int
2228 main ()
2229 {
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237   (eval $ac_compile) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); } &&
2241          { ac_try='test -s conftest.$ac_objext'
2242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243   (eval $ac_try) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; }; then
2247   ac_cv_prog_cc_g=yes
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 ac_cv_prog_cc_g=no
2252 fi
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258   CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260   if test "$GCC" = yes; then
2261     CFLAGS="-g -O2"
2262   else
2263     CFLAGS="-g"
2264   fi
2265 else
2266   if test "$GCC" = yes; then
2267     CFLAGS="-O2"
2268   else
2269     CFLAGS=
2270   fi
2271 fi
2272 # Some people use a C++ compiler to compile C.  Since we use `exit',
2273 # in C++ we need to declare it.  In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #ifndef __cplusplus
2278   choke me
2279 #endif
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); } &&
2287          { ac_try='test -s conftest.$ac_objext'
2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289   (eval $ac_try) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }; }; then
2293   for ac_declaration in \
2294    ''\
2295    '#include <stdlib.h>' \
2296    'extern "C" void std::exit (int) throw (); using std::exit;' \
2297    'extern "C" void std::exit (int); using std::exit;' \
2298    'extern "C" void exit (int) throw ();' \
2299    'extern "C" void exit (int);' \
2300    'void exit (int);'
2301 do
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 #include <stdlib.h>
2306 $ac_declaration
2307 #ifdef F77_DUMMY_MAIN
2308 #  ifdef __cplusplus
2309      extern "C"
2310 #  endif
2311    int F77_DUMMY_MAIN() { return 1; }
2312 #endif
2313 int
2314 main ()
2315 {
2316 exit (42);
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323   (eval $ac_compile) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); } &&
2327          { ac_try='test -s conftest.$ac_objext'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333   :
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 continue
2338 fi
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2343 $ac_declaration
2344 #ifdef F77_DUMMY_MAIN
2345 #  ifdef __cplusplus
2346      extern "C"
2347 #  endif
2348    int F77_DUMMY_MAIN() { return 1; }
2349 #endif
2350 int
2351 main ()
2352 {
2353 exit (42);
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -s conftest.$ac_objext'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; }; then
2370   break
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 fi
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2376 done
2377 rm -f conftest*
2378 if test -n "$ac_declaration"; then
2379   echo '#ifdef __cplusplus' >>confdefs.h
2380   echo $ac_declaration      >>confdefs.h
2381   echo '#endif'             >>confdefs.h
2382 fi
2383
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395 # Read the template
2396 . "$srcdir/src/template/$template" || exit
2397
2398 if test "$ac_env_CFLAGS_set" = set; then
2399   CFLAGS=$ac_env_CFLAGS_value
2400 fi
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2402   CFLAGS="$CFLAGS -g"
2403 fi
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2406
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2410
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2414
2415 #ifdef F77_DUMMY_MAIN
2416 #  ifdef __cplusplus
2417      extern "C"
2418 #  endif
2419    int F77_DUMMY_MAIN() { return 1; }
2420 #endif
2421 int
2422 main ()
2423 {
2424 return 0;
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431   (eval $ac_link) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); } &&
2435          { ac_try='test -s conftest$ac_exeext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450    { (exit 1); exit 1; }; }
2451 fi
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2453
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2459
2460 #ifdef F77_DUMMY_MAIN
2461 #  ifdef __cplusplus
2462      extern "C"
2463 #  endif
2464    int F77_DUMMY_MAIN() { return 1; }
2465 #endif
2466 int
2467 main ()
2468 {
2469 #ifdef __FAST_MATH__
2470 choke me
2471 #endif
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   :
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494    { (exit 1); exit 1; }; }
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 fi
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2508   CPP=
2509 fi
2510 if test -z "$CPP"; then
2511   if test "${ac_cv_prog_CPP+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514       # Double quotes because CPP needs to be expanded
2515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2516     do
2517       ac_preproc_ok=false
2518 for ac_c_preproc_warn_flag in '' yes
2519 do
2520   # Use a header file that comes with gcc, so configuring glibc
2521   # with a fresh cross-compiler works.
2522   # On the NeXT, cc -E runs the code through the compiler's parser,
2523   # not just through cpp. "Syntax error" is here to catch this case.
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2527 #include <assert.h>
2528                      Syntax error
2529 _ACEOF
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532   ac_status=$?
2533   egrep -v '^ *\+' conftest.er1 >conftest.err
2534   rm -f conftest.er1
2535   cat conftest.err >&5
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); } >/dev/null; then
2538   if test -s conftest.err; then
2539     ac_cpp_err=$ac_c_preproc_warn_flag
2540   else
2541     ac_cpp_err=
2542   fi
2543 else
2544   ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547   :
2548 else
2549   echo "$as_me: failed program was:" >&5
2550   cat conftest.$ac_ext >&5
2551   # Broken: fails on valid input.
2552 continue
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556   # OK, works on sane cases.  Now check whether non-existent headers
2557   # can be detected and how.
2558   cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2562 _ACEOF
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565   ac_status=$?
2566   egrep -v '^ *\+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } >/dev/null; then
2571   if test -s conftest.err; then
2572     ac_cpp_err=$ac_c_preproc_warn_flag
2573   else
2574     ac_cpp_err=
2575   fi
2576 else
2577   ac_cpp_err=yes
2578 fi
2579 if test -z "$ac_cpp_err"; then
2580   # Broken: success on invalid input.
2581 continue
2582 else
2583   echo "$as_me: failed program was:" >&5
2584   cat conftest.$ac_ext >&5
2585   # Passes both tests.
2586 ac_preproc_ok=:
2587 break
2588 fi
2589 rm -f conftest.err conftest.$ac_ext
2590
2591 done
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2595   break
2596 fi
2597
2598     done
2599     ac_cv_prog_CPP=$CPP
2600
2601 fi
2602   CPP=$ac_cv_prog_CPP
2603 else
2604   ac_cv_prog_CPP=$CPP
2605 fi
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2608 ac_preproc_ok=false
2609 for ac_c_preproc_warn_flag in '' yes
2610 do
2611   # Use a header file that comes with gcc, so configuring glibc
2612   # with a fresh cross-compiler works.
2613   # On the NeXT, cc -E runs the code through the compiler's parser,
2614   # not just through cpp. "Syntax error" is here to catch this case.
2615   cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2618 #include <assert.h>
2619                      Syntax error
2620 _ACEOF
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2623   ac_status=$?
2624   egrep -v '^ *\+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } >/dev/null; then
2629   if test -s conftest.err; then
2630     ac_cpp_err=$ac_c_preproc_warn_flag
2631   else
2632     ac_cpp_err=
2633   fi
2634 else
2635   ac_cpp_err=yes
2636 fi
2637 if test -z "$ac_cpp_err"; then
2638   :
2639 else
2640   echo "$as_me: failed program was:" >&5
2641   cat conftest.$ac_ext >&5
2642   # Broken: fails on valid input.
2643 continue
2644 fi
2645 rm -f conftest.err conftest.$ac_ext
2646
2647   # OK, works on sane cases.  Now check whether non-existent headers
2648   # can be detected and how.
2649   cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2653 _ACEOF
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656   ac_status=$?
2657   egrep -v '^ *\+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } >/dev/null; then
2662   if test -s conftest.err; then
2663     ac_cpp_err=$ac_c_preproc_warn_flag
2664   else
2665     ac_cpp_err=
2666   fi
2667 else
2668   ac_cpp_err=yes
2669 fi
2670 if test -z "$ac_cpp_err"; then
2671   # Broken: success on invalid input.
2672 continue
2673 else
2674   echo "$as_me: failed program was:" >&5
2675   cat conftest.$ac_ext >&5
2676   # Passes both tests.
2677 ac_preproc_ok=:
2678 break
2679 fi
2680 rm -f conftest.err conftest.$ac_ext
2681
2682 done
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2686   :
2687 else
2688   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698
2699
2700
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703   cc_string="GCC `${CC} --version | sed q`"
2704 else
2705   cc_string=$CC
2706 fi
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2710 _ACEOF
2711
2712
2713
2714 #
2715 # Automatic dependency tracking
2716 #
2717
2718
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721   enableval="$enable_depend"
2722
2723   case $enableval in
2724     yes)
2725       autodepend=yes
2726       ;;
2727     no)
2728       :
2729       ;;
2730     *)
2731       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733    { (exit 1); exit 1; }; }
2734       ;;
2735   esac
2736
2737 else
2738   enable_depend=no
2739
2740 fi;
2741
2742
2743
2744
2745 #
2746 # Enable assert checks
2747 #
2748
2749
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752   enableval="$enable_cassert"
2753
2754   case $enableval in
2755     yes)
2756
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2759 _ACEOF
2760
2761       ;;
2762     no)
2763       :
2764       ;;
2765     *)
2766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768    { (exit 1); exit 1; }; }
2769       ;;
2770   esac
2771
2772 else
2773   enable_cassert=no
2774
2775 fi;
2776
2777
2778
2779 #
2780 # Include directories
2781 #
2782 ac_save_IFS=$IFS
2783 IFS="${IFS}:"
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786   if test -d "$dir"; then
2787     INCLUDES="$INCLUDES -I$dir"
2788   else
2789     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2791   fi
2792 done
2793 IFS=$ac_save_IFS
2794
2795
2796
2797 #
2798 # Library directories
2799 #
2800 ac_save_IFS=$IFS
2801 IFS="${IFS}:"
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804   if test -d "$dir"; then
2805     LIBDIRS="$LIBDIRS -L$dir"
2806   else
2807     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2809   fi
2810 done
2811 IFS=$ac_save_IFS
2812
2813 #
2814 # Enable libpq to be thread-safe
2815 #
2816 echo "$as_me:$LINENO: checking allow threaded libpq" >&5
2817 echo $ECHO_N "checking allow threaded libpq... $ECHO_C" >&6
2818
2819
2820
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823   withval="$with_threads"
2824
2825   case $withval in
2826     yes)
2827
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2830 _ACEOF
2831
2832       ;;
2833     no)
2834       :
2835       ;;
2836     *)
2837       { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839    { (exit 1); exit 1; }; }
2840       ;;
2841   esac
2842
2843 else
2844   with_threads=no
2845
2846 fi;
2847
2848
2849 echo "$as_me:$LINENO: result: $with_threads" >&5
2850 echo "${ECHO_T}$with_threads" >&6
2851
2852
2853 #
2854 # Tcl/Tk
2855 #
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2858
2859
2860
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2863   withval="$with_tcl"
2864
2865   case $withval in
2866     yes)
2867       :
2868       ;;
2869     no)
2870       :
2871       ;;
2872     *)
2873       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875    { (exit 1); exit 1; }; }
2876       ;;
2877   esac
2878
2879 else
2880   with_tcl=no
2881
2882 fi;
2883
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2886
2887
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2892
2893
2894
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2897   withval="$with_tk"
2898
2899   case $withval in
2900     yes)
2901       :
2902       ;;
2903     no)
2904       :
2905       ;;
2906     *)
2907       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911   esac
2912
2913 else
2914   with_tk=yes
2915
2916 fi;
2917
2918 else
2919   with_tk=no
2920 fi
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2923
2924
2925
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2928
2929
2930
2931
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934   withval="$with_tclconfig"
2935
2936   case $withval in
2937     yes)
2938       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940    { (exit 1); exit 1; }; }
2941       ;;
2942     no)
2943       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945    { (exit 1); exit 1; }; }
2946       ;;
2947     *)
2948
2949       ;;
2950   esac
2951
2952 fi;
2953
2954
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2957
2958
2959
2960
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963   withval="$with_tkconfig"
2964
2965   case $withval in
2966     yes)
2967       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969    { (exit 1); exit 1; }; }
2970       ;;
2971     no)
2972       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976     *)
2977
2978       ;;
2979   esac
2980
2981 fi;
2982
2983
2984 #
2985 # Optionally build Perl modules (PL/Perl)
2986 #
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2989
2990
2991
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994   withval="$with_perl"
2995
2996   case $withval in
2997     yes)
2998       :
2999       ;;
3000     no)
3001       :
3002       ;;
3003     *)
3004       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008   esac
3009
3010 else
3011   with_perl=no
3012
3013 fi;
3014
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3017
3018
3019 #
3020 # Optionally build Python interface module
3021 #
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3024
3025
3026
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029   withval="$with_python"
3030
3031   case $withval in
3032     yes)
3033       :
3034       ;;
3035     no)
3036       :
3037       ;;
3038     *)
3039       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041    { (exit 1); exit 1; }; }
3042       ;;
3043   esac
3044
3045 else
3046   with_python=no
3047
3048 fi;
3049
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3052
3053
3054 #
3055 # Optionally build the Java/JDBC tools
3056 #
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3059
3060
3061
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064   withval="$with_java"
3065
3066   case $withval in
3067     yes)
3068       echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070
3071   for ac_prog in jakarta-ant ant ant.sh ant.bat
3072 do
3073   # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   case $ANT in
3081   [\\/]* | ?:[\\/]*)
3082   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3083   ;;
3084   *)
3085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   for ac_exec_ext in '' $ac_executable_extensions; do
3091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097 done
3098
3099   ;;
3100 esac
3101 fi
3102 ANT=$ac_cv_path_ANT
3103
3104 if test -n "$ANT"; then
3105   echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3107 else
3108   echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110 fi
3111
3112   test -n "$ANT" && break
3113 done
3114
3115
3116   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121
3122     cat > conftest.java << EOF
3123 public class conftest {
3124     int testmethod(int a, int b) {
3125         return a + b;
3126     }
3127 }
3128 EOF
3129
3130     cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132  <target name="conftest">
3133   <javac srcdir="." includes="conftest.java">
3134   </javac>
3135  </target>
3136 </project>
3137 EOF
3138
3139     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141   (eval $pgac_cmd) 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }
3145     pgac_save_status=$?
3146     if test $? = 0 && test -f ./conftest.class ; then
3147       pgac_cv_prog_ant_works=yes
3148     else
3149       echo "configure: failed java program was:" >&5
3150       cat conftest.java >&5
3151       echo "configure: failed build file was:" >&5
3152       cat conftest.xml >&5
3153       pgac_cv_prog_ant_works=no
3154     fi
3155
3156     rm -f conftest* core core.* *.core
3157
3158 fi
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3161
3162   if test "$pgac_cv_prog_ant_works" != yes; then
3163     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165    { (exit 1); exit 1; }; }
3166   fi
3167
3168
3169 if test -z "$ANT"; then
3170   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181       ;;
3182     no)
3183       echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185       ;;
3186     *)
3187       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189    { (exit 1); exit 1; }; }
3190       ;;
3191   esac
3192
3193 else
3194   with_java=no
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi;
3198
3199
3200
3201
3202 #
3203 # Kerberos 4
3204 #
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207
3208
3209
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212   withval="$with_krb4"
3213
3214   case $withval in
3215     yes)
3216       krb4_prefix=/usr/athena
3217       ;;
3218     no)
3219       :
3220       ;;
3221     *)
3222       with_krb4=yes
3223 krb4_prefix=$withval
3224       ;;
3225   esac
3226
3227 else
3228   with_krb4=no
3229 fi;
3230
3231
3232 if test "$with_krb4" = yes; then
3233
3234   echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define KRB4 1
3239 _ACEOF
3240
3241
3242   if test -d "$krb4_prefix/include"; then
3243     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244   fi
3245   if test -d "$krb4_prefix/lib"; then
3246     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3247   fi
3248
3249   krb_srvtab="/etc/srvtab"
3250
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257
3258
3259
3260 #
3261 # Kerberos 5
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270   withval="$with_krb5"
3271
3272   case $withval in
3273     yes)
3274       krb5_prefix=/usr/athena
3275       ;;
3276     no)
3277       :
3278       ;;
3279     *)
3280       with_krb5=yes
3281 krb5_prefix=$withval
3282       ;;
3283   esac
3284
3285 else
3286   with_krb5=no
3287 fi;
3288
3289
3290 if test "$with_krb5" = yes; then
3291
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define KRB5 1
3297 _ACEOF
3298
3299
3300   if test -d "$krb5_prefix/include"; then
3301     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302   fi
3303   if test -d "$krb5_prefix/lib"; then
3304     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3305   fi
3306
3307   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3308
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315
3316
3317
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326
3327
3328 #
3329 # Kerberos configuration parameters
3330 #
3331
3332
3333
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336   withval="$with_krb_srvnam"
3337
3338   case $withval in
3339     yes)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     no)
3345       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347    { (exit 1); exit 1; }; }
3348       ;;
3349     *)
3350
3351       ;;
3352   esac
3353
3354 else
3355   with_krb_srvnam="postgres"
3356 fi;
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3361 _ACEOF
3362
3363
3364
3365 #
3366 # PAM
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3375   withval="$with_pam"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_PAM 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_pam=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3402
3403
3404
3405 #
3406 # Rendezvous
3407 #
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3410
3411
3412
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415   withval="$with_rendezvous"
3416
3417   case $withval in
3418     yes)
3419
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3422 _ACEOF
3423
3424       ;;
3425     no)
3426       :
3427       ;;
3428     *)
3429       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431    { (exit 1); exit 1; }; }
3432       ;;
3433   esac
3434
3435 else
3436   with_rendezvous=no
3437
3438 fi;
3439
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3442
3443
3444
3445 #
3446 # OpenSSL
3447 #
3448
3449
3450
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453   withval="$with_openssl"
3454
3455   case $withval in
3456     yes)
3457       openssl_prefix=/usr/local/ssl
3458       ;;
3459     no)
3460       :
3461       ;;
3462     *)
3463       with_openssl=yes
3464 openssl_prefix=$withval
3465       ;;
3466   esac
3467
3468 else
3469   with_openssl=no
3470 fi;
3471
3472
3473 if test "$with_openssl" = yes; then
3474
3475   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3477
3478 cat >>confdefs.h <<\_ACEOF
3479 #define USE_SSL 1
3480 _ACEOF
3481
3482
3483   if test -d "${openssl_prefix}/include" ; then
3484     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3485   fi
3486   if test -d "${openssl_prefix}/lib" ; then
3487     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3488   fi
3489
3490 fi
3491
3492
3493
3494
3495
3496 #
3497 # Readline
3498 #
3499
3500
3501
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504   withval="$with_readline"
3505
3506   case $withval in
3507     yes)
3508       :
3509       ;;
3510     no)
3511       :
3512       ;;
3513     *)
3514       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516    { (exit 1); exit 1; }; }
3517       ;;
3518   esac
3519
3520 else
3521   with_readline=yes
3522
3523 fi;
3524
3525
3526 #
3527 # Zlib
3528 #
3529
3530
3531
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534   withval="$with_zlib"
3535
3536   case $withval in
3537     yes)
3538       :
3539       ;;
3540     no)
3541       :
3542       ;;
3543     *)
3544       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546    { (exit 1); exit 1; }; }
3547       ;;
3548   esac
3549
3550 else
3551   with_zlib=yes
3552
3553 fi;
3554
3555
3556
3557 #
3558 # Elf
3559 #
3560
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3563 case $host_os in
3564     freebsd1*|freebsd2*) elf=no;;
3565     freebsd3*|freebsd4*) elf=yes;;
3566 esac
3567
3568
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3572 #if __ELF__
3573   yes
3574 #endif
3575
3576 _ACEOF
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578   egrep "yes" >/dev/null 2>&1; then
3579   ELF_SYS=true
3580 else
3581   if test "X$elf" = "Xyes" ; then
3582   ELF_SYS=true
3583 else
3584   ELF_SYS=
3585 fi
3586 fi
3587 rm -f conftest*
3588
3589
3590
3591 #
3592 # Pthreads
3593 #
3594 if test "$with_threads" = yes; then
3595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <stdlib.h>
3604 #include <stdarg.h>
3605 #include <string.h>
3606 #include <float.h>
3607
3608 _ACEOF
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611   ac_status=$?
3612   egrep -v '^ *\+' conftest.er1 >conftest.err
3613   rm -f conftest.er1
3614   cat conftest.err >&5
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } >/dev/null; then
3617   if test -s conftest.err; then
3618     ac_cpp_err=$ac_c_preproc_warn_flag
3619   else
3620     ac_cpp_err=
3621   fi
3622 else
3623   ac_cpp_err=yes
3624 fi
3625 if test -z "$ac_cpp_err"; then
3626   ac_cv_header_stdc=yes
3627 else
3628   echo "$as_me: failed program was:" >&5
3629   cat conftest.$ac_ext >&5
3630   ac_cv_header_stdc=no
3631 fi
3632 rm -f conftest.err conftest.$ac_ext
3633
3634 if test $ac_cv_header_stdc = yes; then
3635   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3636   cat >conftest.$ac_ext <<_ACEOF
3637 #line $LINENO "configure"
3638 #include "confdefs.h"
3639 #include <string.h>
3640
3641 _ACEOF
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643   egrep "memchr" >/dev/null 2>&1; then
3644   :
3645 else
3646   ac_cv_header_stdc=no
3647 fi
3648 rm -f conftest*
3649
3650 fi
3651
3652 if test $ac_cv_header_stdc = yes; then
3653   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3654   cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3657 #include <stdlib.h>
3658
3659 _ACEOF
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661   egrep "free" >/dev/null 2>&1; then
3662   :
3663 else
3664   ac_cv_header_stdc=no
3665 fi
3666 rm -f conftest*
3667
3668 fi
3669
3670 if test $ac_cv_header_stdc = yes; then
3671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672   if test "$cross_compiling" = yes; then
3673   :
3674 else
3675   cat >conftest.$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3678 #include <ctype.h>
3679 #if ((' ' & 0x0FF) == 0x020)
3680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3682 #else
3683 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3684                      || ('j' <= (c) && (c) <= 'r') \
3685                      || ('s' <= (c) && (c) <= 'z'))
3686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3687 #endif
3688
3689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3690 int
3691 main ()
3692 {
3693   int i;
3694   for (i = 0; i < 256; i++)
3695     if (XOR (islower (i), ISLOWER (i))
3696         || toupper (i) != TOUPPER (i))
3697       exit(2);
3698   exit (0);
3699 }
3700 _ACEOF
3701 rm -f conftest$ac_exeext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3703   (eval $ac_link) 2>&5
3704   ac_status=$?
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708   (eval $ac_try) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); }; }; then
3712   :
3713 else
3714   echo "$as_me: program exited with status $ac_status" >&5
3715 echo "$as_me: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 ( exit $ac_status )
3718 ac_cv_header_stdc=no
3719 fi
3720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3721 fi
3722 fi
3723 fi
3724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3726 if test $ac_cv_header_stdc = yes; then
3727
3728 cat >>confdefs.h <<\_ACEOF
3729 #define STDC_HEADERS 1
3730 _ACEOF
3731
3732 fi
3733
3734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3745                   inttypes.h stdint.h unistd.h
3746 do
3747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   cat >conftest.$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 #include "confdefs.h"
3756 $ac_includes_default
3757
3758 #include <$ac_header>
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762   (eval $ac_compile) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); } &&
3766          { ac_try='test -s conftest.$ac_objext'
3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768   (eval $ac_try) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; }; then
3772   eval "$as_ac_Header=yes"
3773 else
3774   echo "$as_me: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 eval "$as_ac_Header=no"
3777 fi
3778 rm -f conftest.$ac_objext conftest.$ac_ext
3779 fi
3780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783   cat >>confdefs.h <<_ACEOF
3784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3785 _ACEOF
3786
3787 fi
3788
3789 done
3790
3791
3792 if test "${ac_cv_header_pthread_h+set}" = set; then
3793   echo "$as_me:$LINENO: checking for pthread.h" >&5
3794 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3795 if test "${ac_cv_header_pthread_h+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 fi
3798 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3799 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3800 else
3801   # Is the header compilable?
3802 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3803 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3804 cat >conftest.$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3806 #include "confdefs.h"
3807 $ac_includes_default
3808 #include <pthread.h>
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812   (eval $ac_compile) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   ac_header_compiler=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 ac_header_compiler=no
3827 fi
3828 rm -f conftest.$ac_objext conftest.$ac_ext
3829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3830 echo "${ECHO_T}$ac_header_compiler" >&6
3831
3832 # Is the header present?
3833 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3834 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3835 cat >conftest.$ac_ext <<_ACEOF
3836 #line $LINENO "configure"
3837 #include "confdefs.h"
3838 #include <pthread.h>
3839 _ACEOF
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3842   ac_status=$?
3843   egrep -v '^ *\+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } >/dev/null; then
3848   if test -s conftest.err; then
3849     ac_cpp_err=$ac_c_preproc_warn_flag
3850   else
3851     ac_cpp_err=
3852   fi
3853 else
3854   ac_cpp_err=yes
3855 fi
3856 if test -z "$ac_cpp_err"; then
3857   ac_header_preproc=yes
3858 else
3859   echo "$as_me: failed program was:" >&5
3860   cat conftest.$ac_ext >&5
3861   ac_header_preproc=no
3862 fi
3863 rm -f conftest.err conftest.$ac_ext
3864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3865 echo "${ECHO_T}$ac_header_preproc" >&6
3866
3867 # So?  What about this header?
3868 case $ac_header_compiler:$ac_header_preproc in
3869   yes:no )
3870     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3871 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3872     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3874   no:yes )
3875     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3876 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3877     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3878 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3879     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3880 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3881 esac
3882 echo "$as_me:$LINENO: checking for pthread.h" >&5
3883 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3884 if test "${ac_cv_header_pthread_h+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_cv_header_pthread_h=$ac_header_preproc
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3890 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3891
3892 fi
3893 if test $ac_cv_header_pthread_h = yes; then
3894   :
3895 else
3896   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3897 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3898    { (exit 1); exit 1; }; }
3899 fi
3900
3901
3902 case $host_os in
3903                 netbsd*|bsdi*)
3904                         # these require no special flags or libraries
3905                         ;;
3906                 freebsd2*|freebsd3*|freebsd4*) THREAD_CFLAGS="-pthread" ;;
3907                 freebsd*)
3908                         THREAD_LIBS="-lc_r"
3909                         ;;
3910                 linux*) THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3911                         THREAD_LIBS="-lpthread"
3912                         ;;
3913                 *)
3914                         # other operating systems might fail because they have pthread.h but need
3915                         # special libs we don't know about yet.
3916                         { { echo "$as_me:$LINENO: error:
3917 Cannot enable threads on your platform.
3918 Please report your platform threading info to the PostgreSQL mailing lists
3919 so it can be added to the next release.  Report any compile or link flags,
3920 or libraries required for threading support.
3921 " >&5
3922 echo "$as_me: error:
3923 Cannot enable threads on your platform.
3924 Please report your platform threading info to the PostgreSQL mailing lists
3925 so it can be added to the next release.  Report any compile or link flags,
3926 or libraries required for threading support.
3927 " >&2;}
3928    { (exit 1); exit 1; }; }
3929 esac
3930 fi
3931
3932
3933
3934 #
3935 # Assignments
3936 #
3937
3938 CPPFLAGS="$CPPFLAGS $INCLUDES"
3939 LDFLAGS="$LDFLAGS $LIBDIRS"
3940
3941 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3942 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3943 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3944 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3945
3946
3947 for ac_prog in gawk mawk nawk awk
3948 do
3949   # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy $ac_prog; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_AWK+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$AWK"; then
3957   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_AWK="$ac_prog"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972
3973 fi
3974 fi
3975 AWK=$ac_cv_prog_AWK
3976 if test -n "$AWK"; then
3977   echo "$as_me:$LINENO: result: $AWK" >&5
3978 echo "${ECHO_T}$AWK" >&6
3979 else
3980   echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984   test -n "$AWK" && break
3985 done
3986
3987 echo "$as_me:$LINENO: checking for flex" >&5
3988 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3989 if test "${pgac_cv_path_flex+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   # Let the user override the test
3993 if test -n "$FLEX"; then
3994   pgac_cv_path_flex=$FLEX
3995 else
3996   pgac_save_IFS=$IFS
3997   IFS=:
3998   for pgac_dir in $PATH; do
3999     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4000       pgac_dir=`pwd`
4001     fi
4002     for pgac_prog in flex lex; do
4003       pgac_candidate="$pgac_dir/$pgac_prog"
4004       if test -f "$pgac_candidate" \
4005         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4006       then
4007         echo '%%'  > conftest.l
4008         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4009           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4010             pgac_broken_flex=$pgac_candidate
4011             continue
4012           fi
4013
4014           pgac_cv_path_flex=$pgac_candidate
4015           break 2
4016         fi
4017       fi
4018     done
4019   done
4020   IFS=$pgac_save_IFS
4021   rm -f conftest.l
4022   : ${pgac_cv_path_flex=no}
4023 fi
4024
4025 fi
4026 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4027 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4028 if test x"$pgac_cv_path_flex" = x"no"; then
4029   if test -n "$pgac_broken_flex"; then
4030     { echo "$as_me:$LINENO: WARNING:
4031 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4032 *** should get version 2.5.4 or later." >&5
4033 echo "$as_me: WARNING:
4034 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4035 *** should get version 2.5.4 or later." >&2;}
4036   fi
4037
4038   { echo "$as_me:$LINENO: WARNING:
4039 *** Without Flex you will not be able to build PostgreSQL from CVS or
4040 *** change any of the scanner definition files.  You can obtain Flex from
4041 *** a GNU mirror site.  (If you are using the official distribution of
4042 *** PostgreSQL then you do not need to worry about this because the Flex
4043 *** output is pre-generated.)" >&5
4044 echo "$as_me: WARNING:
4045 *** Without Flex you will not be able to build PostgreSQL from CVS or
4046 *** change any of the scanner definition files.  You can obtain Flex from
4047 *** a GNU mirror site.  (If you are using the official distribution of
4048 *** PostgreSQL then you do not need to worry about this because the Flex
4049 *** output is pre-generated.)" >&2;}
4050 fi
4051
4052 if test x"$pgac_cv_path_flex" = x"no"; then
4053   FLEX=
4054 else
4055   FLEX=$pgac_cv_path_flex
4056 fi
4057
4058
4059
4060
4061 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4062 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4063 LN_S=$as_ln_s
4064 if test "$LN_S" = "ln -s"; then
4065   echo "$as_me:$LINENO: result: yes" >&5
4066 echo "${ECHO_T}yes" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4069 echo "${ECHO_T}no, using $LN_S" >&6
4070 fi
4071
4072
4073 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4074 if test "${with_gnu_ld+set}" = set; then
4075   withval="$with_gnu_ld"
4076   test "$withval" = no || with_gnu_ld=yes
4077 else
4078   with_gnu_ld=no
4079 fi;
4080 ac_prog=ld
4081 if test "$GCC" = yes; then
4082   # Check if gcc -print-prog-name=ld gives a path.
4083   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4084 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4085   case $host in
4086   *-*-mingw*)
4087     # gcc leaves a trailing carriage return which upsets mingw
4088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089   *)
4090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091   esac
4092   case "$ac_prog" in
4093     # Accept absolute paths.
4094     [\\/]* | [A-Za-z]:[\\/]*)
4095       re_direlt='/[^/][^/]*/\.\./'
4096       # Canonicalize the path of ld
4097       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4098       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4100       done
4101       test -z "$LD" && LD="$ac_prog"
4102       ;;
4103   "")
4104     # If it fails, then pretend we aren't using GCC.
4105     ac_prog=ld
4106     ;;
4107   *)
4108     # If it is relative, then search for the first ld in PATH.
4109     with_gnu_ld=unknown
4110     ;;
4111   esac
4112 elif test "$with_gnu_ld" = yes; then
4113   echo "$as_me:$LINENO: checking for GNU ld" >&5
4114 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4115 else
4116   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4118 fi
4119 if test "${ac_cv_path_LD+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -z "$LD"; then
4123   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4124   for ac_dir in $PATH; do
4125     test -z "$ac_dir" && ac_dir=.
4126     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4127       ac_cv_path_LD="$ac_dir/$ac_prog"
4128       # Check to see if the program is GNU ld.  I'd rather use --version,
4129       # but apparently some GNU ld's only accept -v.
4130       # Break only if it was the GNU/non-GNU ld that we prefer.
4131       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4132         test "$with_gnu_ld" != no && break
4133       else
4134         test "$with_gnu_ld" != yes && break
4135       fi
4136     fi
4137   done
4138   IFS="$ac_save_ifs"
4139 else
4140   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4141 fi
4142 fi
4143
4144 LD="$ac_cv_path_LD"
4145 if test -n "$LD"; then
4146   echo "$as_me:$LINENO: result: $LD" >&5
4147 echo "${ECHO_T}$LD" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4154    { (exit 1); exit 1; }; }
4155 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4157 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4158   echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4161 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4162   ac_cv_prog_gnu_ld=yes
4163 else
4164   ac_cv_prog_gnu_ld=no
4165 fi
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4168 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4169 with_gnu_ld=$ac_cv_prog_gnu_ld
4170
4171
4172
4173
4174 case $host_os in sysv5*)
4175   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4176 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4177 if test "${pgac_cv_prog_ld_R+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180
4181     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4182     cat >conftest.$ac_ext <<_ACEOF
4183 #line $LINENO "configure"
4184 #include "confdefs.h"
4185
4186 #ifdef F77_DUMMY_MAIN
4187 #  ifdef __cplusplus
4188      extern "C"
4189 #  endif
4190    int F77_DUMMY_MAIN() { return 1; }
4191 #endif
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202   (eval $ac_link) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } &&
4206          { ac_try='test -s conftest$ac_exeext'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   pgac_cv_prog_ld_R=yes
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4216 pgac_cv_prog_ld_R=no
4217 fi
4218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4219     LDFLAGS=$pgac_save_LDFLAGS
4220
4221 fi
4222 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4223 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4224   ld_R_works=$pgac_cv_prog_ld_R
4225
4226 esac
4227 if test -n "$ac_tool_prefix"; then
4228   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4230 echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232 if test "${ac_cv_prog_RANLIB+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   if test -n "$RANLIB"; then
4236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243   for ac_exec_ext in '' $ac_executable_extensions; do
4244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247     break 2
4248   fi
4249 done
4250 done
4251
4252 fi
4253 fi
4254 RANLIB=$ac_cv_prog_RANLIB
4255 if test -n "$RANLIB"; then
4256   echo "$as_me:$LINENO: result: $RANLIB" >&5
4257 echo "${ECHO_T}$RANLIB" >&6
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263 fi
4264 if test -z "$ac_cv_prog_RANLIB"; then
4265   ac_ct_RANLIB=$RANLIB
4266   # Extract the first word of "ranlib", so it can be a program name with args.
4267 set dummy ranlib; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   if test -n "$ac_ct_RANLIB"; then
4274   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_exec_ext in '' $ac_executable_extensions; do
4282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_prog_ac_ct_RANLIB="ranlib"
4284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288 done
4289
4290   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4291 fi
4292 fi
4293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4294 if test -n "$ac_ct_RANLIB"; then
4295   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4296 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4297 else
4298   echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6
4300 fi
4301
4302   RANLIB=$ac_ct_RANLIB
4303 else
4304   RANLIB="$ac_cv_prog_RANLIB"
4305 fi
4306
4307 for ac_prog in lorder
4308 do
4309   # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_LORDER+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$LORDER"; then
4317   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_LORDER="$ac_prog"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332
4333 fi
4334 fi
4335 LORDER=$ac_cv_prog_LORDER
4336 if test -n "$LORDER"; then
4337   echo "$as_me:$LINENO: result: $LORDER" >&5
4338 echo "${ECHO_T}$LORDER" >&6
4339 else
4340   echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4342 fi
4343
4344   test -n "$LORDER" && break
4345 done
4346
4347 # Extract the first word of "tar", so it can be a program name with args.
4348 set dummy tar; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_path_TAR+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   case $TAR in
4355   [\\/]* | ?:[\\/]*)
4356   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4357   ;;
4358   *)
4359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364   for ac_exec_ext in '' $ac_executable_extensions; do
4365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371 done
4372
4373   ;;
4374 esac
4375 fi
4376 TAR=$ac_cv_path_TAR
4377
4378 if test -n "$TAR"; then
4379   echo "$as_me:$LINENO: result: $TAR" >&5
4380 echo "${ECHO_T}$TAR" >&6
4381 else
4382   echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4384 fi
4385
4386
4387   if test -n "$ac_tool_prefix"; then
4388   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}strip; ac_word=$2
4390 echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4392 if test "${ac_cv_prog_STRIP+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   if test -n "$STRIP"; then
4396   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401   IFS=$as_save_IFS
4402   test -z "$as_dir" && as_dir=.
4403   for ac_exec_ext in '' $ac_executable_extensions; do
4404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407     break 2
4408   fi
4409 done
4410 done
4411
4412 fi
4413 fi
4414 STRIP=$ac_cv_prog_STRIP
4415 if test -n "$STRIP"; then
4416   echo "$as_me:$LINENO: result: $STRIP" >&5
4417 echo "${ECHO_T}$STRIP" >&6
4418 else
4419   echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421 fi
4422
4423 fi
4424 if test -z "$ac_cv_prog_STRIP"; then
4425   ac_ct_STRIP=$STRIP
4426   # Extract the first word of "strip", so it can be a program name with args.
4427 set dummy strip; ac_word=$2
4428 echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   if test -n "$ac_ct_STRIP"; then
4434   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for ac_exec_ext in '' $ac_executable_extensions; do
4442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443     ac_cv_prog_ac_ct_STRIP="strip"
4444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449
4450   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4451 fi
4452 fi
4453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4454 if test -n "$ac_ct_STRIP"; then
4455   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4456 echo "${ECHO_T}$ac_ct_STRIP" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461
4462   STRIP=$ac_ct_STRIP
4463 else
4464   STRIP="$ac_cv_prog_STRIP"
4465 fi
4466
4467
4468   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4469 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4470   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4471     STRIP_STATIC_LIB="$STRIP -x"
4472     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4473     echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6
4475   else
4476     STRIP_STATIC_LIB=:
4477     STRIP_SHARED_LIB=:
4478     echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480   fi
4481
4482
4483
4484
4485 for ac_prog in 'bison -y'
4486 do
4487   # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491 if test "${ac_cv_prog_YACC+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   if test -n "$YACC"; then
4495   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502   for ac_exec_ext in '' $ac_executable_extensions; do
4503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504     ac_cv_prog_YACC="$ac_prog"
4505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509 done
4510
4511 fi
4512 fi
4513 YACC=$ac_cv_prog_YACC
4514 if test -n "$YACC"; then
4515   echo "$as_me:$LINENO: result: $YACC" >&5
4516 echo "${ECHO_T}$YACC" >&6
4517 else
4518   echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4520 fi
4521
4522   test -n "$YACC" && break
4523 done
4524
4525
4526 if test "$YACC"; then
4527   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4528     { echo "$as_me:$LINENO: WARNING:
4529 *** The installed version of Bison is too old.  PostgreSQL needs
4530 *** Bison version 1.875 or later." >&5
4531 echo "$as_me: WARNING:
4532 *** The installed version of Bison is too old.  PostgreSQL needs
4533 *** Bison version 1.875 or later." >&2;}
4534   fi
4535 fi
4536
4537 if test -z "$YACC"; then
4538   { echo "$as_me:$LINENO: WARNING:
4539 *** Without Bison you will not be able to build PostgreSQL from CVS or
4540 *** change any of the parser definition files.  You can obtain Bison from
4541 *** a GNU mirror site.  (If you are using the official distribution of
4542 *** PostgreSQL then you do not need to worry about this because the Bison
4543 *** output is pre-generated.)  To use a different yacc program (possible,
4544 *** but not recommended), set the environment variable YACC before running
4545 *** 'configure'." >&5
4546 echo "$as_me: WARNING:
4547 *** Without Bison you will not be able to build PostgreSQL from CVS or
4548 *** change any of the parser definition files.  You can obtain Bison from
4549 *** a GNU mirror site.  (If you are using the official distribution of
4550 *** PostgreSQL then you do not need to worry about this because the Bison
4551 *** output is pre-generated.)  To use a different yacc program (possible,
4552 *** but not recommended), set the environment variable YACC before running
4553 *** 'configure'." >&2;}
4554 fi
4555
4556
4557 # Extract the first word of "perl", so it can be a program name with args.
4558 set dummy perl; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_PERL+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   case $PERL in
4565   [\\/]* | ?:[\\/]*)
4566   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4567   ;;
4568   *)
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574   for ac_exec_ext in '' $ac_executable_extensions; do
4575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581 done
4582
4583   ;;
4584 esac
4585 fi
4586 PERL=$ac_cv_path_PERL
4587
4588 if test -n "$PERL"; then
4589   echo "$as_me:$LINENO: result: $PERL" >&5
4590 echo "${ECHO_T}$PERL" >&6
4591 else
4592   echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596 if test "$with_perl" = yes; then
4597
4598 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4599 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4600 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4601 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4602 echo "${ECHO_T}$perl_archlibexp" >&6
4603 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4604 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4605 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4606 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4607 echo "${ECHO_T}$perl_privlibexp" >&6
4608 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4609 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4610 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4611 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4612 echo "${ECHO_T}$perl_useshrplib" >&6
4613
4614 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4615 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4616 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4617 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4618 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4619 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4620 echo "${ECHO_T}$perl_embed_ldflags" >&6
4621 fi
4622
4623 if test "$with_python" = yes; then
4624   # Extract the first word of "python", so it can be a program name with args.
4625 set dummy python; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_path_PYTHON+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   case $PYTHON in
4632   [\\/]* | ?:[\\/]*)
4633   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4634   ;;
4635   *)
4636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649
4650   ;;
4651 esac
4652 fi
4653 PYTHON=$ac_cv_path_PYTHON
4654
4655 if test -n "$PYTHON"; then
4656   echo "$as_me:$LINENO: result: $PYTHON" >&5
4657 echo "${ECHO_T}$PYTHON" >&6
4658 else
4659   echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662
4663 if test x"$PYTHON" = x""; then
4664   { { echo "$as_me:$LINENO: error: Python not found" >&5
4665 echo "$as_me: error: Python not found" >&2;}
4666    { (exit 1); exit 1; }; }
4667 fi
4668
4669
4670 echo "$as_me:$LINENO: checking Python installation directories" >&5
4671 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4672 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4673 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4674 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4675 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4676 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4677 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4678 python_includespec="-I${python_prefix}/include/python${python_version}"
4679 if test "$python_prefix" != "$python_execprefix"; then
4680   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4681 fi
4682
4683 # This should be enough of a message.
4684 if test "$python_prefix" != "$python_execprefix"; then
4685   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4686 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4687 else
4688   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4689 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4690 fi
4691
4692
4693
4694
4695
4696 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4697 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4698
4699 if test ! -f "$python_configdir/Makefile"; then
4700   echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6
4702   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4703 echo "$as_me: error: Python Makefile not found" >&2;}
4704    { (exit 1); exit 1; }; }
4705 fi
4706
4707 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4708 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4709 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4710 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4711 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4712
4713 pgac_tab="      " # tab character
4714 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4715
4716 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4717 echo "${ECHO_T}${python_libspec}" >&6
4718
4719
4720 fi
4721
4722
4723 ##
4724 ## Libraries
4725 ##
4726
4727 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4728 then
4729
4730 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4731 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4732 if test "${ac_cv_lib_bsd_main+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   ac_check_lib_save_LIBS=$LIBS
4736 LIBS="-lbsd  $LIBS"
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 #include "confdefs.h"
4740
4741
4742 #ifdef F77_DUMMY_MAIN
4743 #  ifdef __cplusplus
4744      extern "C"
4745 #  endif
4746    int F77_DUMMY_MAIN() { return 1; }
4747 #endif
4748 int
4749 main ()
4750 {
4751 main ();
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758   (eval $ac_link) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } &&
4762          { ac_try='test -s conftest$ac_exeext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_cv_lib_bsd_main=yes
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4772 ac_cv_lib_bsd_main=no
4773 fi
4774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775 LIBS=$ac_check_lib_save_LIBS
4776 fi
4777 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4778 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4779 if test $ac_cv_lib_bsd_main = yes; then
4780   cat >>confdefs.h <<_ACEOF
4781 #define HAVE_LIBBSD 1
4782 _ACEOF
4783
4784   LIBS="-lbsd $LIBS"
4785
4786 fi
4787
4788 fi
4789
4790 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4791 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4792 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   ac_check_lib_save_LIBS=$LIBS
4796 LIBS="-lutil  $LIBS"
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 #include "confdefs.h"
4800
4801 /* Override any gcc2 internal prototype to avoid an error.  */
4802 #ifdef __cplusplus
4803 extern "C"
4804 #endif
4805 /* We use char because int might match the return type of a gcc2
4806    builtin and then its argument prototype would still apply.  */
4807 char setproctitle ();
4808 #ifdef F77_DUMMY_MAIN
4809 #  ifdef __cplusplus
4810      extern "C"
4811 #  endif
4812    int F77_DUMMY_MAIN() { return 1; }
4813 #endif
4814 int
4815 main ()
4816 {
4817 setproctitle ();
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext conftest$ac_exeext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824   (eval $ac_link) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } &&
4828          { ac_try='test -s conftest$ac_exeext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   ac_cv_lib_util_setproctitle=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4838 ac_cv_lib_util_setproctitle=no
4839 fi
4840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4841 LIBS=$ac_check_lib_save_LIBS
4842 fi
4843 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4844 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4845 if test $ac_cv_lib_util_setproctitle = yes; then
4846   cat >>confdefs.h <<_ACEOF
4847 #define HAVE_LIBUTIL 1
4848 _ACEOF
4849
4850   LIBS="-lutil $LIBS"
4851
4852 fi
4853
4854
4855 echo "$as_me:$LINENO: checking for main in -lm" >&5
4856 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4857 if test "${ac_cv_lib_m_main+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   ac_check_lib_save_LIBS=$LIBS
4861 LIBS="-lm  $LIBS"
4862 cat >conftest.$ac_ext <<_ACEOF
4863 #line $LINENO "configure"
4864 #include "confdefs.h"
4865
4866
4867 #ifdef F77_DUMMY_MAIN
4868 #  ifdef __cplusplus
4869      extern "C"
4870 #  endif
4871    int F77_DUMMY_MAIN() { return 1; }
4872 #endif
4873 int
4874 main ()
4875 {
4876 main ();
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883   (eval $ac_link) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } &&
4887          { ac_try='test -s conftest$ac_exeext'
4888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889   (eval $ac_try) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }; }; then
4893   ac_cv_lib_m_main=yes
4894 else
4895   echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 ac_cv_lib_m_main=no
4898 fi
4899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 LIBS=$ac_check_lib_save_LIBS
4901 fi
4902 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4903 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4904 if test $ac_cv_lib_m_main = yes; then
4905   cat >>confdefs.h <<_ACEOF
4906 #define HAVE_LIBM 1
4907 _ACEOF
4908
4909   LIBS="-lm $LIBS"
4910
4911 fi
4912
4913
4914 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4915 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4916 if test "${ac_cv_lib_dl_main+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   ac_check_lib_save_LIBS=$LIBS
4920 LIBS="-ldl  $LIBS"
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line $LINENO "configure"
4923 #include "confdefs.h"
4924
4925
4926 #ifdef F77_DUMMY_MAIN
4927 #  ifdef __cplusplus
4928      extern "C"
4929 #  endif
4930    int F77_DUMMY_MAIN() { return 1; }
4931 #endif
4932 int
4933 main ()
4934 {
4935 main ();
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942   (eval $ac_link) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); } &&
4946          { ac_try='test -s conftest$ac_exeext'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; }; then
4952   ac_cv_lib_dl_main=yes
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4956 ac_cv_lib_dl_main=no
4957 fi
4958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4959 LIBS=$ac_check_lib_save_LIBS
4960 fi
4961 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4962 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4963 if test $ac_cv_lib_dl_main = yes; then
4964   cat >>confdefs.h <<_ACEOF
4965 #define HAVE_LIBDL 1
4966 _ACEOF
4967
4968   LIBS="-ldl $LIBS"
4969
4970 fi
4971
4972
4973 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4974 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4975 if test "${ac_cv_lib_nsl_main+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   ac_check_lib_save_LIBS=$LIBS
4979 LIBS="-lnsl  $LIBS"
4980 cat >conftest.$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4982 #include "confdefs.h"
4983
4984
4985 #ifdef F77_DUMMY_MAIN
4986 #  ifdef __cplusplus
4987      extern "C"
4988 #  endif
4989    int F77_DUMMY_MAIN() { return 1; }
4990 #endif
4991 int
4992 main ()
4993 {
4994 main ();
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest.$ac_objext conftest$ac_exeext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5001   (eval $ac_link) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } &&
5005          { ac_try='test -s conftest$ac_exeext'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; }; then
5011   ac_cv_lib_nsl_main=yes
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5015 ac_cv_lib_nsl_main=no
5016 fi
5017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5018 LIBS=$ac_check_lib_save_LIBS
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5021 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5022 if test $ac_cv_lib_nsl_main = yes; then
5023   cat >>confdefs.h <<_ACEOF
5024 #define HAVE_LIBNSL 1
5025 _ACEOF
5026
5027   LIBS="-lnsl $LIBS"
5028
5029 fi
5030
5031
5032 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5033 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5034 if test "${ac_cv_lib_socket_main+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   ac_check_lib_save_LIBS=$LIBS
5038 LIBS="-lsocket  $LIBS"
5039 cat >conftest.$ac_ext <<_ACEOF
5040 #line $LINENO "configure"
5041 #include "confdefs.h"
5042
5043
5044 #ifdef F77_DUMMY_MAIN
5045 #  ifdef __cplusplus
5046      extern "C"
5047 #  endif
5048    int F77_DUMMY_MAIN() { return 1; }
5049 #endif
5050 int
5051 main ()
5052 {
5053 main ();
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest.$ac_objext conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060   (eval $ac_link) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } &&
5064          { ac_try='test -s conftest$ac_exeext'
5065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066   (eval $ac_try) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; }; then
5070   ac_cv_lib_socket_main=yes
5071 else
5072   echo "$as_me: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5074 ac_cv_lib_socket_main=no
5075 fi
5076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5077 LIBS=$ac_check_lib_save_LIBS
5078 fi
5079 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5080 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5081 if test $ac_cv_lib_socket_main = yes; then
5082   cat >>confdefs.h <<_ACEOF
5083 #define HAVE_LIBSOCKET 1
5084 _ACEOF
5085
5086   LIBS="-lsocket $LIBS"
5087
5088 fi
5089
5090
5091 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5092 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5093 if test "${ac_cv_lib_ipc_main+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   ac_check_lib_save_LIBS=$LIBS
5097 LIBS="-lipc  $LIBS"
5098 cat >conftest.$ac_ext <<_ACEOF
5099 #line $LINENO "configure"
5100 #include "confdefs.h"
5101
5102
5103 #ifdef F77_DUMMY_MAIN
5104 #  ifdef __cplusplus
5105      extern "C"
5106 #  endif
5107    int F77_DUMMY_MAIN() { return 1; }
5108 #endif
5109 int
5110 main ()
5111 {
5112 main ();
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119   (eval $ac_link) 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } &&
5123          { ac_try='test -s conftest$ac_exeext'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   ac_cv_lib_ipc_main=yes
5130 else
5131   echo "$as_me: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5133 ac_cv_lib_ipc_main=no
5134 fi
5135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5136 LIBS=$ac_check_lib_save_LIBS
5137 fi
5138 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5139 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5140 if test $ac_cv_lib_ipc_main = yes; then
5141   cat >>confdefs.h <<_ACEOF
5142 #define HAVE_LIBIPC 1
5143 _ACEOF
5144
5145   LIBS="-lipc $LIBS"
5146
5147 fi
5148
5149
5150 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5151 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5152 if test "${ac_cv_lib_IPC_main+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   ac_check_lib_save_LIBS=$LIBS
5156 LIBS="-lIPC  $LIBS"
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 #include "confdefs.h"
5160
5161
5162 #ifdef F77_DUMMY_MAIN
5163 #  ifdef __cplusplus
5164      extern "C"
5165 #  endif
5166    int F77_DUMMY_MAIN() { return 1; }
5167 #endif
5168 int
5169 main ()
5170 {
5171 main ();
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext conftest$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178   (eval $ac_link) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -s conftest$ac_exeext'
5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184   (eval $ac_try) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }; }; then
5188   ac_cv_lib_IPC_main=yes
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 ac_cv_lib_IPC_main=no
5193 fi
5194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5195 LIBS=$ac_check_lib_save_LIBS
5196 fi
5197 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5198 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5199 if test $ac_cv_lib_IPC_main = yes; then
5200   cat >>confdefs.h <<_ACEOF
5201 #define HAVE_LIBIPC 1
5202 _ACEOF
5203
5204   LIBS="-lIPC $LIBS"
5205
5206 fi
5207
5208
5209 echo "$as_me:$LINENO: checking for main in -llc" >&5
5210 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5211 if test "${ac_cv_lib_lc_main+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   ac_check_lib_save_LIBS=$LIBS
5215 LIBS="-llc  $LIBS"
5216 cat >conftest.$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 #include "confdefs.h"
5219
5220
5221 #ifdef F77_DUMMY_MAIN
5222 #  ifdef __cplusplus
5223      extern "C"
5224 #  endif
5225    int F77_DUMMY_MAIN() { return 1; }
5226 #endif
5227 int
5228 main ()
5229 {
5230 main ();
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237   (eval $ac_link) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); } &&
5241          { ac_try='test -s conftest$ac_exeext'
5242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243   (eval $ac_try) 2>&5
5244   ac_status=$?
5245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246   (exit $ac_status); }; }; then
5247   ac_cv_lib_lc_main=yes
5248 else
5249   echo "$as_me: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 ac_cv_lib_lc_main=no
5252 fi
5253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5254 LIBS=$ac_check_lib_save_LIBS
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5257 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5258 if test $ac_cv_lib_lc_main = yes; then
5259   cat >>confdefs.h <<_ACEOF
5260 #define HAVE_LIBLC 1
5261 _ACEOF
5262
5263   LIBS="-llc $LIBS"
5264
5265 fi
5266
5267
5268 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5269 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5270 if test "${ac_cv_lib_dld_main+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   ac_check_lib_save_LIBS=$LIBS
5274 LIBS="-ldld  $LIBS"
5275 cat >conftest.$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 #include "confdefs.h"
5278
5279
5280 #ifdef F77_DUMMY_MAIN
5281 #  ifdef __cplusplus
5282      extern "C"
5283 #  endif
5284    int F77_DUMMY_MAIN() { return 1; }
5285 #endif
5286 int
5287 main ()
5288 {
5289 main ();
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296   (eval $ac_link) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -s conftest$ac_exeext'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_cv_lib_dld_main=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5310 ac_cv_lib_dld_main=no
5311 fi
5312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5313 LIBS=$ac_check_lib_save_LIBS
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5316 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5317 if test $ac_cv_lib_dld_main = yes; then
5318   cat >>confdefs.h <<_ACEOF
5319 #define HAVE_LIBDLD 1
5320 _ACEOF
5321
5322   LIBS="-ldld $LIBS"
5323
5324 fi
5325
5326
5327 echo "$as_me:$LINENO: checking for main in -lld" >&5
5328 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5329 if test "${ac_cv_lib_ld_main+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   ac_check_lib_save_LIBS=$LIBS
5333 LIBS="-lld  $LIBS"
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5337
5338
5339 #ifdef F77_DUMMY_MAIN
5340 #  ifdef __cplusplus
5341      extern "C"
5342 #  endif
5343    int F77_DUMMY_MAIN() { return 1; }
5344 #endif
5345 int
5346 main ()
5347 {
5348 main ();
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355   (eval $ac_link) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } &&
5359          { ac_try='test -s conftest$ac_exeext'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; }; then
5365   ac_cv_lib_ld_main=yes
5366 else
5367   echo "$as_me: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 ac_cv_lib_ld_main=no
5370 fi
5371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_check_lib_save_LIBS
5373 fi
5374 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5375 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5376 if test $ac_cv_lib_ld_main = yes; then
5377   cat >>confdefs.h <<_ACEOF
5378 #define HAVE_LIBLD 1
5379 _ACEOF
5380
5381   LIBS="-lld $LIBS"
5382
5383 fi
5384
5385
5386 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5387 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5388 if test "${ac_cv_lib_compat_main+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   ac_check_lib_save_LIBS=$LIBS
5392 LIBS="-lcompat  $LIBS"
5393 cat >conftest.$ac_ext <<_ACEOF
5394 #line $LINENO "configure"
5395 #include "confdefs.h"
5396
5397
5398 #ifdef F77_DUMMY_MAIN
5399 #  ifdef __cplusplus
5400      extern "C"
5401 #  endif
5402    int F77_DUMMY_MAIN() { return 1; }
5403 #endif
5404 int
5405 main ()
5406 {
5407 main ();
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414   (eval $ac_link) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); } &&
5418          { ac_try='test -s conftest$ac_exeext'
5419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420   (eval $ac_try) 2>&5
5421   ac_status=$?
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); }; }; then
5424   ac_cv_lib_compat_main=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 ac_cv_lib_compat_main=no
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5434 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5435 if test $ac_cv_lib_compat_main = yes; then
5436   cat >>confdefs.h <<_ACEOF
5437 #define HAVE_LIBCOMPAT 1
5438 _ACEOF
5439
5440   LIBS="-lcompat $LIBS"
5441
5442 fi
5443
5444
5445 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5446 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5447 if test "${ac_cv_lib_BSD_main+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   ac_check_lib_save_LIBS=$LIBS
5451 LIBS="-lBSD  $LIBS"
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line $LINENO "configure"
5454 #include "confdefs.h"
5455
5456
5457 #ifdef F77_DUMMY_MAIN
5458 #  ifdef __cplusplus
5459      extern "C"
5460 #  endif
5461    int F77_DUMMY_MAIN() { return 1; }
5462 #endif
5463 int
5464 main ()
5465 {
5466 main ();
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473   (eval $ac_link) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } &&
5477          { ac_try='test -s conftest$ac_exeext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_cv_lib_BSD_main=yes
5484 else
5485   echo "$as_me: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 ac_cv_lib_BSD_main=no
5488 fi
5489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5490 LIBS=$ac_check_lib_save_LIBS
5491 fi
5492 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5493 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5494 if test $ac_cv_lib_BSD_main = yes; then
5495   cat >>confdefs.h <<_ACEOF
5496 #define HAVE_LIBBSD 1
5497 _ACEOF
5498
5499   LIBS="-lBSD $LIBS"
5500
5501 fi
5502
5503
5504 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5505 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5506 if test "${ac_cv_lib_gen_main+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   ac_check_lib_save_LIBS=$LIBS
5510 LIBS="-lgen  $LIBS"
5511 cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 #include "confdefs.h"
5514
5515
5516 #ifdef F77_DUMMY_MAIN
5517 #  ifdef __cplusplus
5518      extern "C"
5519 #  endif
5520    int F77_DUMMY_MAIN() { return 1; }
5521 #endif
5522 int
5523 main ()
5524 {
5525 main ();
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext conftest$ac_exeext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5532   (eval $ac_link) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          { ac_try='test -s conftest$ac_exeext'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; }; then
5542   ac_cv_lib_gen_main=yes
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 ac_cv_lib_gen_main=no
5547 fi
5548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5549 LIBS=$ac_check_lib_save_LIBS
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5552 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5553 if test $ac_cv_lib_gen_main = yes; then
5554   cat >>confdefs.h <<_ACEOF
5555 #define HAVE_LIBGEN 1
5556 _ACEOF
5557
5558   LIBS="-lgen $LIBS"
5559
5560 fi
5561
5562
5563 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5564 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5565 if test "${ac_cv_lib_PW_main+set}" = set; then
5566   echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568   ac_check_lib_save_LIBS=$LIBS
5569 LIBS="-lPW  $LIBS"
5570 cat >conftest.$ac_ext <<_ACEOF
5571 #line $LINENO "configure"
5572 #include "confdefs.h"
5573
5574
5575 #ifdef F77_DUMMY_MAIN
5576 #  ifdef __cplusplus
5577      extern "C"
5578 #  endif
5579    int F77_DUMMY_MAIN() { return 1; }
5580 #endif
5581 int
5582 main ()
5583 {
5584 main ();
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591   (eval $ac_link) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -s conftest$ac_exeext'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; }; then
5601   ac_cv_lib_PW_main=yes
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 ac_cv_lib_PW_main=no
5606 fi
5607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5611 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5612 if test $ac_cv_lib_PW_main = yes; then
5613   cat >>confdefs.h <<_ACEOF
5614 #define HAVE_LIBPW 1
5615 _ACEOF
5616
5617   LIBS="-lPW $LIBS"
5618
5619 fi
5620
5621
5622 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5623 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5624 if test "${ac_cv_lib_resolv_main+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   ac_check_lib_save_LIBS=$LIBS
5628 LIBS="-lresolv  $LIBS"
5629 cat >conftest.$ac_ext <<_ACEOF
5630 #line $LINENO "configure"
5631 #include "confdefs.h"
5632
5633
5634 #ifdef F77_DUMMY_MAIN
5635 #  ifdef __cplusplus
5636      extern "C"
5637 #  endif
5638    int F77_DUMMY_MAIN() { return 1; }
5639 #endif
5640 int
5641 main ()
5642 {
5643 main ();
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 rm -f conftest.$ac_objext conftest$ac_exeext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650   (eval $ac_link) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -s conftest$ac_exeext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660   ac_cv_lib_resolv_main=yes
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 ac_cv_lib_resolv_main=no
5665 fi
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5670 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5671 if test $ac_cv_lib_resolv_main = yes; then
5672   cat >>confdefs.h <<_ACEOF
5673 #define HAVE_LIBRESOLV 1
5674 _ACEOF
5675
5676   LIBS="-lresolv $LIBS"
5677
5678 fi
5679
5680
5681 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5682 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5683 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   ac_check_lib_save_LIBS=$LIBS
5687 LIBS="-lwsock32  $LIBS"
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691
5692
5693 #ifdef F77_DUMMY_MAIN
5694 #  ifdef __cplusplus
5695      extern "C"
5696 #  endif
5697    int F77_DUMMY_MAIN() { return 1; }
5698 #endif
5699 int
5700 main ()
5701 {
5702 main ();
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709   (eval $ac_link) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -s conftest$ac_exeext'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; }; then
5719   ac_cv_lib_wsock32_main=yes
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5723 ac_cv_lib_wsock32_main=no
5724 fi
5725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5726 LIBS=$ac_check_lib_save_LIBS
5727 fi
5728 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5729 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5730 if test $ac_cv_lib_wsock32_main = yes; then
5731   cat >>confdefs.h <<_ACEOF
5732 #define HAVE_LIBWSOCK32 1
5733 _ACEOF
5734
5735   LIBS="-lwsock32 $LIBS"
5736
5737 fi
5738
5739 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5740 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5741 if test "${ac_cv_search_getopt_long+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   ac_func_search_save_LIBS=$LIBS
5745 ac_cv_search_getopt_long=no
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line $LINENO "configure"
5748 #include "confdefs.h"
5749
5750 /* Override any gcc2 internal prototype to avoid an error.  */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 /* We use char because int might match the return type of a gcc2
5755    builtin and then its argument prototype would still apply.  */
5756 char getopt_long ();
5757 #ifdef F77_DUMMY_MAIN
5758 #  ifdef __cplusplus
5759      extern "C"
5760 #  endif
5761    int F77_DUMMY_MAIN() { return 1; }
5762 #endif
5763 int
5764 main ()
5765 {
5766 getopt_long ();
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773   (eval $ac_link) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } &&
5777          { ac_try='test -s conftest$ac_exeext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_cv_search_getopt_long="none required"
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 fi
5788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 if test "$ac_cv_search_getopt_long" = no; then
5790   for ac_lib in getopt gnugetopt; do
5791     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5792     cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795
5796 /* Override any gcc2 internal prototype to avoid an error.  */
5797 #ifdef __cplusplus
5798 extern "C"
5799 #endif
5800 /* We use char because int might match the return type of a gcc2
5801    builtin and then its argument prototype would still apply.  */
5802 char getopt_long ();
5803 #ifdef F77_DUMMY_MAIN
5804 #  ifdef __cplusplus
5805      extern "C"
5806 #  endif
5807    int F77_DUMMY_MAIN() { return 1; }
5808 #endif
5809 int
5810 main ()
5811 {
5812 getopt_long ();
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819   (eval $ac_link) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } &&
5823          { ac_try='test -s conftest$ac_exeext'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; }; then
5829   ac_cv_search_getopt_long="-l$ac_lib"
5830 break
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 fi
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5836   done
5837 fi
5838 LIBS=$ac_func_search_save_LIBS
5839 fi
5840 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5841 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5842 if test "$ac_cv_search_getopt_long" != no; then
5843   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5844
5845 fi
5846
5847 # QNX:
5848
5849 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5850 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5851 if test "${ac_cv_lib_unix_main+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   ac_check_lib_save_LIBS=$LIBS
5855 LIBS="-lunix  $LIBS"
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 #include "confdefs.h"
5859
5860
5861 #ifdef F77_DUMMY_MAIN
5862 #  ifdef __cplusplus
5863      extern "C"
5864 #  endif
5865    int F77_DUMMY_MAIN() { return 1; }
5866 #endif
5867 int
5868 main ()
5869 {
5870 main ();
5871   ;
5872   return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877   (eval $ac_link) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } &&
5881          { ac_try='test -s conftest$ac_exeext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_cv_lib_unix_main=yes
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5891 ac_cv_lib_unix_main=no
5892 fi
5893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5895 fi
5896 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5897 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5898 if test $ac_cv_lib_unix_main = yes; then
5899   cat >>confdefs.h <<_ACEOF
5900 #define HAVE_LIBUNIX 1
5901 _ACEOF
5902
5903   LIBS="-lunix $LIBS"
5904
5905 fi
5906
5907 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5908 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5909 if test "${ac_cv_search_crypt+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   ac_func_search_save_LIBS=$LIBS
5913 ac_cv_search_crypt=no
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line $LINENO "configure"
5916 #include "confdefs.h"
5917
5918 /* Override any gcc2 internal prototype to avoid an error.  */
5919 #ifdef __cplusplus
5920 extern "C"
5921 #endif
5922 /* We use char because int might match the return type of a gcc2
5923    builtin and then its argument prototype would still apply.  */
5924 char crypt ();
5925 #ifdef F77_DUMMY_MAIN
5926 #  ifdef __cplusplus
5927      extern "C"
5928 #  endif
5929    int F77_DUMMY_MAIN() { return 1; }
5930 #endif
5931 int
5932 main ()
5933 {
5934 crypt ();
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941   (eval $ac_link) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -s conftest$ac_exeext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_cv_search_crypt="none required"
5952 else
5953   echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 fi
5956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5957 if test "$ac_cv_search_crypt" = no; then
5958   for ac_lib in crypt; do
5959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5960     cat >conftest.$ac_ext <<_ACEOF
5961 #line $LINENO "configure"
5962 #include "confdefs.h"
5963
5964 /* Override any gcc2 internal prototype to avoid an error.  */
5965 #ifdef __cplusplus
5966 extern "C"
5967 #endif
5968 /* We use char because int might match the return type of a gcc2
5969    builtin and then its argument prototype would still apply.  */
5970 char crypt ();
5971 #ifdef F77_DUMMY_MAIN
5972 #  ifdef __cplusplus
5973      extern "C"
5974 #  endif
5975    int F77_DUMMY_MAIN() { return 1; }
5976 #endif
5977 int
5978 main ()
5979 {
5980 crypt ();
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987   (eval $ac_link) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -s conftest$ac_exeext'
5992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993   (eval $ac_try) 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; }; then
5997   ac_cv_search_crypt="-l$ac_lib"
5998 break
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 fi
6003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6004   done
6005 fi
6006 LIBS=$ac_func_search_save_LIBS
6007 fi
6008 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6009 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6010 if test "$ac_cv_search_crypt" != no; then
6011   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6012
6013 fi
6014
6015 # BeOS:
6016
6017 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6018 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6019 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   ac_check_lib_save_LIBS=$LIBS
6023 LIBS="-lbind  $LIBS"
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char __inet_ntoa ();
6035 #ifdef F77_DUMMY_MAIN
6036 #  ifdef __cplusplus
6037      extern "C"
6038 #  endif
6039    int F77_DUMMY_MAIN() { return 1; }
6040 #endif
6041 int
6042 main ()
6043 {
6044 __inet_ntoa ();
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } &&
6055          { ac_try='test -s conftest$ac_exeext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_cv_lib_bind___inet_ntoa=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_bind___inet_ntoa=no
6066 fi
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6069 fi
6070 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6071 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6072 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6073   cat >>confdefs.h <<_ACEOF
6074 #define HAVE_LIBBIND 1
6075 _ACEOF
6076
6077   LIBS="-lbind $LIBS"
6078
6079 fi
6080
6081 # Solaris:
6082 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6083 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6084 if test "${ac_cv_search_fdatasync+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   ac_func_search_save_LIBS=$LIBS
6088 ac_cv_search_fdatasync=no
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 #include "confdefs.h"
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char fdatasync ();
6100 #ifdef F77_DUMMY_MAIN
6101 #  ifdef __cplusplus
6102      extern "C"
6103 #  endif
6104    int F77_DUMMY_MAIN() { return 1; }
6105 #endif
6106 int
6107 main ()
6108 {
6109 fdatasync ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116   (eval $ac_link) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -s conftest$ac_exeext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   ac_cv_search_fdatasync="none required"
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 cat conftest.$ac_ext >&5
6130 fi
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_fdatasync" = no; then
6133   for ac_lib in rt posix4; do
6134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6135     cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 #include "confdefs.h"
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 #endif
6143 /* We use char because int might match the return type of a gcc2
6144    builtin and then its argument prototype would still apply.  */
6145 char fdatasync ();
6146 #ifdef F77_DUMMY_MAIN
6147 #  ifdef __cplusplus
6148      extern "C"
6149 #  endif
6150    int F77_DUMMY_MAIN() { return 1; }
6151 #endif
6152 int
6153 main ()
6154 {
6155 fdatasync ();
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -s conftest$ac_exeext'
6167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168   (eval $ac_try) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; }; then
6172   ac_cv_search_fdatasync="-l$ac_lib"
6173 break
6174 else
6175   echo "$as_me: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6177 fi
6178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6179   done
6180 fi
6181 LIBS=$ac_func_search_save_LIBS
6182 fi
6183 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6184 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6185 if test "$ac_cv_search_fdatasync" != no; then
6186   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6187
6188 fi
6189
6190 # Cygwin:
6191
6192 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6193 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6194 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   ac_check_lib_save_LIBS=$LIBS
6198 LIBS="-lcygipc  $LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 #include "confdefs.h"
6202
6203 /* Override any gcc2 internal prototype to avoid an error.  */
6204 #ifdef __cplusplus
6205 extern "C"
6206 #endif
6207 /* We use char because int might match the return type of a gcc2
6208    builtin and then its argument prototype would still apply.  */
6209 char shmget ();
6210 #ifdef F77_DUMMY_MAIN
6211 #  ifdef __cplusplus
6212      extern "C"
6213 #  endif
6214    int F77_DUMMY_MAIN() { return 1; }
6215 #endif
6216 int
6217 main ()
6218 {
6219 shmget ();
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext conftest$ac_exeext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226   (eval $ac_link) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } &&
6230          { ac_try='test -s conftest$ac_exeext'
6231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232   (eval $ac_try) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; }; then
6236   ac_cv_lib_cygipc_shmget=yes
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6240 ac_cv_lib_cygipc_shmget=no
6241 fi
6242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6244 fi
6245 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6246 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6247 if test $ac_cv_lib_cygipc_shmget = yes; then
6248   cat >>confdefs.h <<_ACEOF
6249 #define HAVE_LIBCYGIPC 1
6250 _ACEOF
6251
6252   LIBS="-lcygipc $LIBS"
6253
6254 fi
6255
6256
6257 if test "$with_readline" = yes; then
6258
6259 echo "$as_me:$LINENO: checking for readline" >&5
6260 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6261
6262 if test "${pgac_cv_check_readline+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   pgac_cv_check_readline=no
6266 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6267   for pgac_rllib in -lreadline -ledit ; do
6268     pgac_save_LIBS=$LIBS
6269     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6270     cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 #include "confdefs.h"
6273
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279    builtin and then its argument prototype would still apply.  */
6280 char readline ();
6281 #ifdef F77_DUMMY_MAIN
6282 #  ifdef __cplusplus
6283      extern "C"
6284 #  endif
6285    int F77_DUMMY_MAIN() { return 1; }
6286 #endif
6287 int
6288 main ()
6289 {
6290 readline ();
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297   (eval $ac_link) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -s conftest$ac_exeext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307
6308       # NetBSD and OpenBSD have a broken linker that does not
6309       # recognize dependent libraries
6310       case $host_os in netbsd* | openbsd* )
6311         case $pgac_lib in
6312           *curses*) ;;
6313           *) pgac_lib=" -lcurses" ;;
6314         esac
6315       esac
6316
6317       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6318       break 2
6319
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6323 fi
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325     LIBS=$pgac_save_LIBS
6326   done
6327 done
6328 LIBS=$pgac_save_LIBS
6329
6330 fi
6331
6332 if test "$pgac_cv_check_readline" != no ; then
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_LIBREADLINE 1
6336 _ACEOF
6337
6338   LIBS="$pgac_cv_check_readline $LIBS"
6339   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6340 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6341 else
6342   echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6344 fi
6345   if test x"$pgac_cv_check_readline" = x"no"; then
6346     { { echo "$as_me:$LINENO: error: readline library not found
6347 If you have readline already installed, see config.log for details on the
6348 failure.  It is possible the compiler isn't looking in the proper directory.
6349 Use --without-readline to disable readline support." >&5
6350 echo "$as_me: error: readline library not found
6351 If you have readline already installed, see config.log for details on the
6352 failure.  It is possible the compiler isn't looking in the proper directory.
6353 Use --without-readline to disable readline support." >&2;}
6354    { (exit 1); exit 1; }; }
6355   fi
6356 fi
6357
6358 if test "$with_zlib" = yes; then
6359
6360 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6361 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6362 if test "${ac_cv_lib_z_inflate+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   ac_check_lib_save_LIBS=$LIBS
6366 LIBS="-lz  $LIBS"
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6369 #include "confdefs.h"
6370
6371 /* Override any gcc2 internal prototype to avoid an error.  */
6372 #ifdef __cplusplus
6373 extern "C"
6374 #endif
6375 /* We use char because int might match the return type of a gcc2
6376    builtin and then its argument prototype would still apply.  */
6377 char inflate ();
6378 #ifdef F77_DUMMY_MAIN
6379 #  ifdef __cplusplus
6380      extern "C"
6381 #  endif
6382    int F77_DUMMY_MAIN() { return 1; }
6383 #endif
6384 int
6385 main ()
6386 {
6387 inflate ();
6388   ;
6389   return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394   (eval $ac_link) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -s conftest$ac_exeext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_cv_lib_z_inflate=yes
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6408 ac_cv_lib_z_inflate=no
6409 fi
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 LIBS=$ac_check_lib_save_LIBS
6412 fi
6413 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6414 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6415 if test $ac_cv_lib_z_inflate = yes; then
6416   cat >>confdefs.h <<_ACEOF
6417 #define HAVE_LIBZ 1
6418 _ACEOF
6419
6420   LIBS="-lz $LIBS"
6421
6422 else
6423   { { echo "$as_me:$LINENO: error: zlib library not found
6424 If you have zlib already installed, see config.log for details on the
6425 failure.  It is possible the compiler isn't looking in the proper directory.
6426 Use --without-zlib to disable zlib support." >&5
6427 echo "$as_me: error: zlib library not found
6428 If you have zlib already installed, see config.log for details on the
6429 failure.  It is possible the compiler isn't looking in the proper directory.
6430 Use --without-zlib to disable zlib support." >&2;}
6431    { (exit 1); exit 1; }; }
6432 fi
6433
6434 fi
6435
6436 if test "$with_krb4" = yes ; then
6437
6438 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6439 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6440 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   ac_check_lib_save_LIBS=$LIBS
6444 LIBS="-ldes  $LIBS"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6448
6449 /* Override any gcc2 internal prototype to avoid an error.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 /* We use char because int might match the return type of a gcc2
6454    builtin and then its argument prototype would still apply.  */
6455 char des_encrypt ();
6456 #ifdef F77_DUMMY_MAIN
6457 #  ifdef __cplusplus
6458      extern "C"
6459 #  endif
6460    int F77_DUMMY_MAIN() { return 1; }
6461 #endif
6462 int
6463 main ()
6464 {
6465 des_encrypt ();
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472   (eval $ac_link) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -s conftest$ac_exeext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_cv_lib_des_des_encrypt=yes
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 ac_cv_lib_des_des_encrypt=no
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 LIBS=$ac_check_lib_save_LIBS
6490 fi
6491 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6492 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6493 if test $ac_cv_lib_des_des_encrypt = yes; then
6494   cat >>confdefs.h <<_ACEOF
6495 #define HAVE_LIBDES 1
6496 _ACEOF
6497
6498   LIBS="-ldes $LIBS"
6499
6500 else
6501   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6502 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6503    { (exit 1); exit 1; }; }
6504 fi
6505
6506
6507 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6508 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6509 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   ac_check_lib_save_LIBS=$LIBS
6513 LIBS="-lkrb  $LIBS"
6514 cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 #include "confdefs.h"
6517
6518 /* Override any gcc2 internal prototype to avoid an error.  */
6519 #ifdef __cplusplus
6520 extern "C"
6521 #endif
6522 /* We use char because int might match the return type of a gcc2
6523    builtin and then its argument prototype would still apply.  */
6524 char krb_sendauth ();
6525 #ifdef F77_DUMMY_MAIN
6526 #  ifdef __cplusplus
6527      extern "C"
6528 #  endif
6529    int F77_DUMMY_MAIN() { return 1; }
6530 #endif
6531 int
6532 main ()
6533 {
6534 krb_sendauth ();
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541   (eval $ac_link) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   ac_cv_lib_krb_krb_sendauth=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6555 ac_cv_lib_krb_krb_sendauth=no
6556 fi
6557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6558 LIBS=$ac_check_lib_save_LIBS
6559 fi
6560 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6561 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6562 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6563   cat >>confdefs.h <<_ACEOF
6564 #define HAVE_LIBKRB 1
6565 _ACEOF
6566
6567   LIBS="-lkrb $LIBS"
6568
6569 else
6570   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6571 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6572    { (exit 1); exit 1; }; }
6573 fi
6574
6575
6576 for ac_func in gethostname
6577 do
6578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6579 echo "$as_me:$LINENO: checking for $ac_func" >&5
6580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6581 if eval "test \"\${$as_ac_var+set}\" = set"; then
6582   echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584   cat >conftest.$ac_ext <<_ACEOF
6585 #line $LINENO "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588     which can conflict with char $ac_func (); below.  */
6589 #include <assert.h>
6590 /* Override any gcc2 internal prototype to avoid an error.  */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595    builtin and then its argument prototype would still apply.  */
6596 char $ac_func ();
6597 char (*f) ();
6598
6599 #ifdef F77_DUMMY_MAIN
6600 #  ifdef __cplusplus
6601      extern "C"
6602 #  endif
6603    int F77_DUMMY_MAIN() { return 1; }
6604 #endif
6605 int
6606 main ()
6607 {
6608 /* The GNU C library defines this for functions which it implements
6609     to always fail with ENOSYS.  Some functions are actually named
6610     something starting with __ and the normal name is an alias.  */
6611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6612 choke me
6613 #else
6614 f = $ac_func;
6615 #endif
6616
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623   (eval $ac_link) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } &&
6627          { ac_try='test -s conftest$ac_exeext'
6628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629   (eval $ac_try) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; }; then
6633   eval "$as_ac_var=yes"
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 eval "$as_ac_var=no"
6638 fi
6639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6640 fi
6641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6643 if test `eval echo '${'$as_ac_var'}'` = yes; then
6644   cat >>confdefs.h <<_ACEOF
6645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6646 _ACEOF
6647
6648 else
6649   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6650 fi
6651 done
6652
6653
6654 fi
6655
6656 if test "$with_krb5" = yes ; then
6657   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6658 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6659 if test "${ac_cv_search_com_err+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   ac_func_search_save_LIBS=$LIBS
6663 ac_cv_search_com_err=no
6664 cat >conftest.$ac_ext <<_ACEOF
6665 #line $LINENO "configure"
6666 #include "confdefs.h"
6667
6668 /* Override any gcc2 internal prototype to avoid an error.  */
6669 #ifdef __cplusplus
6670 extern "C"
6671 #endif
6672 /* We use char because int might match the return type of a gcc2
6673    builtin and then its argument prototype would still apply.  */
6674 char com_err ();
6675 #ifdef F77_DUMMY_MAIN
6676 #  ifdef __cplusplus
6677      extern "C"
6678 #  endif
6679    int F77_DUMMY_MAIN() { return 1; }
6680 #endif
6681 int
6682 main ()
6683 {
6684 com_err ();
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691   (eval $ac_link) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_search_com_err="none required"
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6705 fi
6706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6707 if test "$ac_cv_search_com_err" = no; then
6708   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6710     cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6712 #include "confdefs.h"
6713
6714 /* Override any gcc2 internal prototype to avoid an error.  */
6715 #ifdef __cplusplus
6716 extern "C"
6717 #endif
6718 /* We use char because int might match the return type of a gcc2
6719    builtin and then its argument prototype would still apply.  */
6720 char com_err ();
6721 #ifdef F77_DUMMY_MAIN
6722 #  ifdef __cplusplus
6723      extern "C"
6724 #  endif
6725    int F77_DUMMY_MAIN() { return 1; }
6726 #endif
6727 int
6728 main ()
6729 {
6730 com_err ();
6731   ;
6732   return 0;
6733 }
6734 _ACEOF
6735 rm -f conftest.$ac_objext conftest$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737   (eval $ac_link) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); } &&
6741          { ac_try='test -s conftest$ac_exeext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_cv_search_com_err="-l$ac_lib"
6748 break
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 fi
6753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754   done
6755 fi
6756 LIBS=$ac_func_search_save_LIBS
6757 fi
6758 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6759 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6760 if test "$ac_cv_search_com_err" != no; then
6761   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6762
6763 else
6764   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6765 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6766    { (exit 1); exit 1; }; }
6767 fi
6768
6769   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6770 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6771 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   ac_func_search_save_LIBS=$LIBS
6775 ac_cv_search_krb5_encrypt=no
6776 cat >conftest.$ac_ext <<_ACEOF
6777 #line $LINENO "configure"
6778 #include "confdefs.h"
6779
6780 /* Override any gcc2 internal prototype to avoid an error.  */
6781 #ifdef __cplusplus
6782 extern "C"
6783 #endif
6784 /* We use char because int might match the return type of a gcc2
6785    builtin and then its argument prototype would still apply.  */
6786 char krb5_encrypt ();
6787 #ifdef F77_DUMMY_MAIN
6788 #  ifdef __cplusplus
6789      extern "C"
6790 #  endif
6791    int F77_DUMMY_MAIN() { return 1; }
6792 #endif
6793 int
6794 main ()
6795 {
6796 krb5_encrypt ();
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803   (eval $ac_link) 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } &&
6807          { ac_try='test -s conftest$ac_exeext'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; }; then
6813   ac_cv_search_krb5_encrypt="none required"
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 fi
6818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6819 if test "$ac_cv_search_krb5_encrypt" = no; then
6820   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6822     cat >conftest.$ac_ext <<_ACEOF
6823 #line $LINENO "configure"
6824 #include "confdefs.h"
6825
6826 /* Override any gcc2 internal prototype to avoid an error.  */
6827 #ifdef __cplusplus
6828 extern "C"
6829 #endif
6830 /* We use char because int might match the return type of a gcc2
6831    builtin and then its argument prototype would still apply.  */
6832 char krb5_encrypt ();
6833 #ifdef F77_DUMMY_MAIN
6834 #  ifdef __cplusplus
6835      extern "C"
6836 #  endif
6837    int F77_DUMMY_MAIN() { return 1; }
6838 #endif
6839 int
6840 main ()
6841 {
6842 krb5_encrypt ();
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849   (eval $ac_link) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -s conftest$ac_exeext'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; }; then
6859   ac_cv_search_krb5_encrypt="-l$ac_lib"
6860 break
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6864 fi
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6866   done
6867 fi
6868 LIBS=$ac_func_search_save_LIBS
6869 fi
6870 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6871 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6872 if test "$ac_cv_search_krb5_encrypt" != no; then
6873   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6874
6875 else
6876   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6877 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6878    { (exit 1); exit 1; }; }
6879 fi
6880
6881   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6882 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6883 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   ac_func_search_save_LIBS=$LIBS
6887 ac_cv_search_krb5_sendauth=no
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6891
6892 /* Override any gcc2 internal prototype to avoid an error.  */
6893 #ifdef __cplusplus
6894 extern "C"
6895 #endif
6896 /* We use char because int might match the return type of a gcc2
6897    builtin and then its argument prototype would still apply.  */
6898 char krb5_sendauth ();
6899 #ifdef F77_DUMMY_MAIN
6900 #  ifdef __cplusplus
6901      extern "C"
6902 #  endif
6903    int F77_DUMMY_MAIN() { return 1; }
6904 #endif
6905 int
6906 main ()
6907 {
6908 krb5_sendauth ();
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915   (eval $ac_link) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -s conftest$ac_exeext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_cv_search_krb5_sendauth="none required"
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6929 fi
6930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6931 if test "$ac_cv_search_krb5_sendauth" = no; then
6932   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6934     cat >conftest.$ac_ext <<_ACEOF
6935 #line $LINENO "configure"
6936 #include "confdefs.h"
6937
6938 /* Override any gcc2 internal prototype to avoid an error.  */
6939 #ifdef __cplusplus
6940 extern "C"
6941 #endif
6942 /* We use char because int might match the return type of a gcc2
6943    builtin and then its argument prototype would still apply.  */
6944 char krb5_sendauth ();
6945 #ifdef F77_DUMMY_MAIN
6946 #  ifdef __cplusplus
6947      extern "C"
6948 #  endif
6949    int F77_DUMMY_MAIN() { return 1; }
6950 #endif
6951 int
6952 main ()
6953 {
6954 krb5_sendauth ();
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext conftest$ac_exeext
6960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961   (eval $ac_link) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_search_krb5_sendauth="-l$ac_lib"
6972 break
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 fi
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978   done
6979 fi
6980 LIBS=$ac_func_search_save_LIBS
6981 fi
6982 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6983 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6984 if test "$ac_cv_search_krb5_sendauth" != no; then
6985   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6986
6987 else
6988   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6989 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6990    { (exit 1); exit 1; }; }
6991 fi
6992
6993 fi
6994
6995 if test "$with_openssl" = yes ; then
6996
6997 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6998 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6999 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   ac_check_lib_save_LIBS=$LIBS
7003 LIBS="-lcrypto  $LIBS"
7004 cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7006 #include "confdefs.h"
7007
7008 /* Override any gcc2 internal prototype to avoid an error.  */
7009 #ifdef __cplusplus
7010 extern "C"
7011 #endif
7012 /* We use char because int might match the return type of a gcc2
7013    builtin and then its argument prototype would still apply.  */
7014 char CRYPTO_new_ex_data ();
7015 #ifdef F77_DUMMY_MAIN
7016 #  ifdef __cplusplus
7017      extern "C"
7018 #  endif
7019    int F77_DUMMY_MAIN() { return 1; }
7020 #endif
7021 int
7022 main ()
7023 {
7024 CRYPTO_new_ex_data ();
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031   (eval $ac_link) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } &&
7035          { ac_try='test -s conftest$ac_exeext'
7036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037   (eval $ac_try) 2>&5
7038   ac_status=$?
7039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040   (exit $ac_status); }; }; then
7041   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7042 else
7043   echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7046 fi
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7051 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7052 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7053   cat >>confdefs.h <<_ACEOF
7054 #define HAVE_LIBCRYPTO 1
7055 _ACEOF
7056
7057   LIBS="-lcrypto $LIBS"
7058
7059 else
7060   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7061 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7062    { (exit 1); exit 1; }; }
7063 fi
7064
7065
7066 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7067 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7068 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   ac_check_lib_save_LIBS=$LIBS
7072 LIBS="-lssl  $LIBS"
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line $LINENO "configure"
7075 #include "confdefs.h"
7076
7077 /* Override any gcc2 internal prototype to avoid an error.  */
7078 #ifdef __cplusplus
7079 extern "C"
7080 #endif
7081 /* We use char because int might match the return type of a gcc2
7082    builtin and then its argument prototype would still apply.  */
7083 char SSL_library_init ();
7084 #ifdef F77_DUMMY_MAIN
7085 #  ifdef __cplusplus
7086      extern "C"
7087 #  endif
7088    int F77_DUMMY_MAIN() { return 1; }
7089 #endif
7090 int
7091 main ()
7092 {
7093 SSL_library_init ();
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100   (eval $ac_link) 2>&5
7101   ac_status=$?
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); } &&
7104          { ac_try='test -s conftest$ac_exeext'
7105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); }; }; then
7110   ac_cv_lib_ssl_SSL_library_init=yes
7111 else
7112   echo "$as_me: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 ac_cv_lib_ssl_SSL_library_init=no
7115 fi
7116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7117 LIBS=$ac_check_lib_save_LIBS
7118 fi
7119 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7120 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7121 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7122   cat >>confdefs.h <<_ACEOF
7123 #define HAVE_LIBSSL 1
7124 _ACEOF
7125
7126   LIBS="-lssl $LIBS"
7127
7128 else
7129   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7130 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7131    { (exit 1); exit 1; }; }
7132 fi
7133
7134 fi
7135
7136 if test "$with_pam" = yes ; then
7137
7138 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7139 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7140 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   ac_check_lib_save_LIBS=$LIBS
7144 LIBS="-lpam  $LIBS"
7145 cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 #include "confdefs.h"
7148
7149 /* Override any gcc2 internal prototype to avoid an error.  */
7150 #ifdef __cplusplus
7151 extern "C"
7152 #endif
7153 /* We use char because int might match the return type of a gcc2
7154    builtin and then its argument prototype would still apply.  */
7155 char pam_start ();
7156 #ifdef F77_DUMMY_MAIN
7157 #  ifdef __cplusplus
7158      extern "C"
7159 #  endif
7160    int F77_DUMMY_MAIN() { return 1; }
7161 #endif
7162 int
7163 main ()
7164 {
7165 pam_start ();
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172   (eval $ac_link) 2>&5
7173   ac_status=$?
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -s conftest$ac_exeext'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; }; then
7182   ac_cv_lib_pam_pam_start=yes
7183 else
7184   echo "$as_me: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 ac_cv_lib_pam_pam_start=no
7187 fi
7188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7189 LIBS=$ac_check_lib_save_LIBS
7190 fi
7191 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7192 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7193 if test $ac_cv_lib_pam_pam_start = yes; then
7194   cat >>confdefs.h <<_ACEOF
7195 #define HAVE_LIBPAM 1
7196 _ACEOF
7197
7198   LIBS="-lpam $LIBS"
7199
7200 else
7201   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7202 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7203    { (exit 1); exit 1; }; }
7204 fi
7205
7206 fi
7207
7208
7209 ##
7210 ## Header files
7211 ##
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7235 do
7236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7238   echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 fi
7243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 else
7246   # Is the header compilable?
7247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7249 cat >conftest.$ac_ext <<_ACEOF
7250 #line $LINENO "configure"
7251 #include "confdefs.h"
7252 $ac_includes_default
7253 #include <$ac_header>
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257   (eval $ac_compile) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -s conftest.$ac_objext'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; }; then
7267   ac_header_compiler=yes
7268 else
7269   echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_header_compiler=no
7272 fi
7273 rm -f conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7275 echo "${ECHO_T}$ac_header_compiler" >&6
7276
7277 # Is the header present?
7278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7282 #include "confdefs.h"
7283 #include <$ac_header>
7284 _ACEOF
7285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287   ac_status=$?
7288   egrep -v '^ *\+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } >/dev/null; then
7293   if test -s conftest.err; then
7294     ac_cpp_err=$ac_c_preproc_warn_flag
7295   else
7296     ac_cpp_err=
7297   fi
7298 else
7299   ac_cpp_err=yes
7300 fi
7301 if test -z "$ac_cpp_err"; then
7302   ac_header_preproc=yes
7303 else
7304   echo "$as_me: failed program was:" >&5
7305   cat conftest.$ac_ext >&5
7306   ac_header_preproc=no
7307 fi
7308 rm -f conftest.err conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7310 echo "${ECHO_T}$ac_header_preproc" >&6
7311
7312 # So?  What about this header?
7313 case $ac_header_compiler:$ac_header_preproc in
7314   yes:no )
7315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7319   no:yes )
7320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7322     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
7327 echo "$as_me:$LINENO: checking for $ac_header" >&5
7328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   eval "$as_ac_Header=$ac_header_preproc"
7333 fi
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7336
7337 fi
7338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7339   cat >>confdefs.h <<_ACEOF
7340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347
7348 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7349 # netinet/in.h is included first.
7350
7351 for ac_header in netinet/in.h
7352 do
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355   echo "$as_me:$LINENO: checking for $ac_header" >&5
7356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 fi
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362 else
7363   # Is the header compilable?
7364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7367 #line $LINENO "configure"
7368 #include "confdefs.h"
7369 $ac_includes_default
7370 #include <$ac_header>
7371 _ACEOF
7372 rm -f conftest.$ac_objext
7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -s conftest.$ac_objext'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; }; then
7384   ac_header_compiler=yes
7385 else
7386   echo "$as_me: failed program was:" >&5
7387 cat conftest.$ac_ext >&5
7388 ac_header_compiler=no
7389 fi
7390 rm -f conftest.$ac_objext conftest.$ac_ext
7391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7392 echo "${ECHO_T}$ac_header_compiler" >&6
7393
7394 # Is the header present?
7395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7397 cat >conftest.$ac_ext <<_ACEOF
7398 #line $LINENO "configure"
7399 #include "confdefs.h"
7400 #include <$ac_header>
7401 _ACEOF
7402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7404   ac_status=$?
7405   egrep -v '^ *\+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } >/dev/null; then
7410   if test -s conftest.err; then
7411     ac_cpp_err=$ac_c_preproc_warn_flag
7412   else
7413     ac_cpp_err=
7414   fi
7415 else
7416   ac_cpp_err=yes
7417 fi
7418 if test -z "$ac_cpp_err"; then
7419   ac_header_preproc=yes
7420 else
7421   echo "$as_me: failed program was:" >&5
7422   cat conftest.$ac_ext >&5
7423   ac_header_preproc=no
7424 fi
7425 rm -f conftest.err conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7427 echo "${ECHO_T}$ac_header_preproc" >&6
7428
7429 # So?  What about this header?
7430 case $ac_header_compiler:$ac_header_preproc in
7431   yes:no )
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7436   no:yes )
7437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7439     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7443 esac
7444 echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   eval "$as_ac_Header=$ac_header_preproc"
7450 fi
7451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7453
7454 fi
7455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7456   cat >>confdefs.h <<_ACEOF
7457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458 _ACEOF
7459
7460 fi
7461
7462 done
7463
7464
7465 for ac_header in netinet/tcp.h
7466 do
7467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7468 echo "$as_me:$LINENO: checking for $ac_header" >&5
7469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   cat >conftest.$ac_ext <<_ACEOF
7474 #line $LINENO "configure"
7475 #include "confdefs.h"
7476 $ac_includes_default
7477 #ifdef HAVE_NETINET_IN_H
7478 #include <netinet/in.h>
7479 #endif
7480
7481
7482 #include <$ac_header>
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486   (eval $ac_compile) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   eval "$as_ac_Header=yes"
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 eval "$as_ac_Header=no"
7501 fi
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7503 fi
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7507   cat >>confdefs.h <<_ACEOF
7508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 _ACEOF
7510
7511 fi
7512
7513 done
7514
7515
7516 if test "$with_readline" = yes; then
7517
7518 for ac_header in readline/readline.h
7519 do
7520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7522   echo "$as_me:$LINENO: checking for $ac_header" >&5
7523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 fi
7527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7529 else
7530   # Is the header compilable?
7531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7535 #include "confdefs.h"
7536 $ac_includes_default
7537 #include <$ac_header>
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7541   (eval $ac_compile) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } &&
7545          { ac_try='test -s conftest.$ac_objext'
7546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547   (eval $ac_try) 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); }; }; then
7551   ac_header_compiler=yes
7552 else
7553   echo "$as_me: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_header_compiler=no
7556 fi
7557 rm -f conftest.$ac_objext conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7559 echo "${ECHO_T}$ac_header_compiler" >&6
7560
7561 # Is the header present?
7562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 #include "confdefs.h"
7567 #include <$ac_header>
7568 _ACEOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7571   ac_status=$?
7572   egrep -v '^ *\+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } >/dev/null; then
7577   if test -s conftest.err; then
7578     ac_cpp_err=$ac_c_preproc_warn_flag
7579   else
7580     ac_cpp_err=
7581   fi
7582 else
7583   ac_cpp_err=yes
7584 fi
7585 if test -z "$ac_cpp_err"; then
7586   ac_header_preproc=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589   cat conftest.$ac_ext >&5
7590   ac_header_preproc=no
7591 fi
7592 rm -f conftest.err conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7594 echo "${ECHO_T}$ac_header_preproc" >&6
7595
7596 # So?  What about this header?
7597 case $ac_header_compiler:$ac_header_preproc in
7598   yes:no )
7599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7603   no:yes )
7604     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7610 esac
7611 echo "$as_me:$LINENO: checking for $ac_header" >&5
7612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   eval "$as_ac_Header=$ac_header_preproc"
7617 fi
7618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620
7621 fi
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623   cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7625 _ACEOF
7626
7627 else
7628
7629 for ac_header in editline/readline.h
7630 do
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633   echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 fi
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640 else
7641   # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7648 #include <$ac_header>
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652   (eval $ac_compile) 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -s conftest.$ac_objext'
7657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658   (eval $ac_try) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   ac_header_compiler=yes
7663 else
7664   echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_compiler=no
7667 fi
7668 rm -f conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7670 echo "${ECHO_T}$ac_header_compiler" >&6
7671
7672 # Is the header present?
7673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7678 #include <$ac_header>
7679 _ACEOF
7680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7682   ac_status=$?
7683   egrep -v '^ *\+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } >/dev/null; then
7688   if test -s conftest.err; then
7689     ac_cpp_err=$ac_c_preproc_warn_flag
7690   else
7691     ac_cpp_err=
7692   fi
7693 else
7694   ac_cpp_err=yes
7695 fi
7696 if test -z "$ac_cpp_err"; then
7697   ac_header_preproc=yes
7698 else
7699   echo "$as_me: failed program was:" >&5
7700   cat conftest.$ac_ext >&5
7701   ac_header_preproc=no
7702 fi
7703 rm -f conftest.err conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7705 echo "${ECHO_T}$ac_header_preproc" >&6
7706
7707 # So?  What about this header?
7708 case $ac_header_compiler:$ac_header_preproc in
7709   yes:no )
7710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7714   no:yes )
7715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7721 esac
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   eval "$as_ac_Header=$ac_header_preproc"
7728 fi
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7731
7732 fi
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734   cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 else
7739
7740 for ac_header in readline.h
7741 do
7742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7744   echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 fi
7749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7751 else
7752   # Is the header compilable?
7753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line $LINENO "configure"
7757 #include "confdefs.h"
7758 $ac_includes_default
7759 #include <$ac_header>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763   (eval $ac_compile) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } &&
7767          { ac_try='test -s conftest.$ac_objext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_header_compiler=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_header_compiler=no
7778 fi
7779 rm -f conftest.$ac_objext conftest.$ac_ext
7780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7781 echo "${ECHO_T}$ac_header_compiler" >&6
7782
7783 # Is the header present?
7784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 #include "confdefs.h"
7789 #include <$ac_header>
7790 _ACEOF
7791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7793   ac_status=$?
7794   egrep -v '^ *\+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } >/dev/null; then
7799   if test -s conftest.err; then
7800     ac_cpp_err=$ac_c_preproc_warn_flag
7801   else
7802     ac_cpp_err=
7803   fi
7804 else
7805   ac_cpp_err=yes
7806 fi
7807 if test -z "$ac_cpp_err"; then
7808   ac_header_preproc=yes
7809 else
7810   echo "$as_me: failed program was:" >&5
7811   cat conftest.$ac_ext >&5
7812   ac_header_preproc=no
7813 fi
7814 rm -f conftest.err conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7816 echo "${ECHO_T}$ac_header_preproc" >&6
7817
7818 # So?  What about this header?
7819 case $ac_header_compiler:$ac_header_preproc in
7820   yes:no )
7821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7825   no:yes )
7826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7828     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7832 esac
7833 echo "$as_me:$LINENO: checking for $ac_header" >&5
7834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7836   echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838   eval "$as_ac_Header=$ac_header_preproc"
7839 fi
7840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7842
7843 fi
7844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7845   cat >>confdefs.h <<_ACEOF
7846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7847 _ACEOF
7848
7849 else
7850   { { echo "$as_me:$LINENO: error: readline header not found
7851 If you have readline already installed, see config.log for details on the
7852 failure.  It is possible the compiler isn't looking in the proper directory.
7853 Use --without-readline to disable readline support." >&5
7854 echo "$as_me: error: readline header not found
7855 If you have readline already installed, see config.log for details on the
7856 failure.  It is possible the compiler isn't looking in the proper directory.
7857 Use --without-readline to disable readline support." >&2;}
7858    { (exit 1); exit 1; }; }
7859 fi
7860
7861 done
7862
7863 fi
7864
7865 done
7866
7867 fi
7868
7869 done
7870
7871
7872 for ac_header in readline/history.h
7873 do
7874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876   echo "$as_me:$LINENO: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 fi
7881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7883 else
7884   # Is the header compilable?
7885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7890 $ac_includes_default
7891 #include <$ac_header>
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } &&
7899          { ac_try='test -s conftest.$ac_objext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   ac_header_compiler=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 ac_header_compiler=no
7910 fi
7911 rm -f conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7913 echo "${ECHO_T}$ac_header_compiler" >&6
7914
7915 # Is the header present?
7916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 #line $LINENO "configure"
7920 #include "confdefs.h"
7921 #include <$ac_header>
7922 _ACEOF
7923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7925   ac_status=$?
7926   egrep -v '^ *\+' conftest.er1 >conftest.err
7927   rm -f conftest.er1
7928   cat conftest.err >&5
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); } >/dev/null; then
7931   if test -s conftest.err; then
7932     ac_cpp_err=$ac_c_preproc_warn_flag
7933   else
7934     ac_cpp_err=
7935   fi
7936 else
7937   ac_cpp_err=yes
7938 fi
7939 if test -z "$ac_cpp_err"; then
7940   ac_header_preproc=yes
7941 else
7942   echo "$as_me: failed program was:" >&5
7943   cat conftest.$ac_ext >&5
7944   ac_header_preproc=no
7945 fi
7946 rm -f conftest.err conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7948 echo "${ECHO_T}$ac_header_preproc" >&6
7949
7950 # So?  What about this header?
7951 case $ac_header_compiler:$ac_header_preproc in
7952   yes:no )
7953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957   no:yes )
7958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7960     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7964 esac
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970   eval "$as_ac_Header=$ac_header_preproc"
7971 fi
7972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7974
7975 fi
7976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7977   cat >>confdefs.h <<_ACEOF
7978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 _ACEOF
7980
7981 else
7982
7983 for ac_header in editline/history.h
7984 do
7985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7987   echo "$as_me:$LINENO: checking for $ac_header" >&5
7988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7990   echo $ECHO_N "(cached) $ECHO_C" >&6
7991 fi
7992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7994 else
7995   # Is the header compilable?
7996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
7999 #line $LINENO "configure"
8000 #include "confdefs.h"
8001 $ac_includes_default
8002 #include <$ac_header>
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006   (eval $ac_compile) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -s conftest.$ac_objext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   ac_header_compiler=yes
8017 else
8018   echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 ac_header_compiler=no
8021 fi
8022 rm -f conftest.$ac_objext conftest.$ac_ext
8023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8024 echo "${ECHO_T}$ac_header_compiler" >&6
8025
8026 # Is the header present?
8027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 #line $LINENO "configure"
8031 #include "confdefs.h"
8032 #include <$ac_header>
8033 _ACEOF
8034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8036   ac_status=$?
8037   egrep -v '^ *\+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } >/dev/null; then
8042   if test -s conftest.err; then
8043     ac_cpp_err=$ac_c_preproc_warn_flag
8044   else
8045     ac_cpp_err=
8046   fi
8047 else
8048   ac_cpp_err=yes
8049 fi
8050 if test -z "$ac_cpp_err"; then
8051   ac_header_preproc=yes
8052 else
8053   echo "$as_me: failed program was:" >&5
8054   cat conftest.$ac_ext >&5
8055   ac_header_preproc=no
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8059 echo "${ECHO_T}$ac_header_preproc" >&6
8060
8061 # So?  What about this header?
8062 case $ac_header_compiler:$ac_header_preproc in
8063   yes:no )
8064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8068   no:yes )
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8075 esac
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   eval "$as_ac_Header=$ac_header_preproc"
8082 fi
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8085
8086 fi
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088   cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 _ACEOF
8091
8092 else
8093
8094 for ac_header in history.h
8095 do
8096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098   echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 fi
8103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8105 else
8106   # Is the header compilable?
8107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line $LINENO "configure"
8111 #include "confdefs.h"
8112 $ac_includes_default
8113 #include <$ac_header>
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117   (eval $ac_compile) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -s conftest.$ac_objext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_header_compiler=yes
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 ac_header_compiler=no
8132 fi
8133 rm -f conftest.$ac_objext conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135 echo "${ECHO_T}$ac_header_compiler" >&6
8136
8137 # Is the header present?
8138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8142 #include "confdefs.h"
8143 #include <$ac_header>
8144 _ACEOF
8145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8147   ac_status=$?
8148   egrep -v '^ *\+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } >/dev/null; then
8153   if test -s conftest.err; then
8154     ac_cpp_err=$ac_c_preproc_warn_flag
8155   else
8156     ac_cpp_err=
8157   fi
8158 else
8159   ac_cpp_err=yes
8160 fi
8161 if test -z "$ac_cpp_err"; then
8162   ac_header_preproc=yes
8163 else
8164   echo "$as_me: failed program was:" >&5
8165   cat conftest.$ac_ext >&5
8166   ac_header_preproc=no
8167 fi
8168 rm -f conftest.err conftest.$ac_ext
8169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6
8171
8172 # So?  What about this header?
8173 case $ac_header_compiler:$ac_header_preproc in
8174   yes:no )
8175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8179   no:yes )
8180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8182     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8186 esac
8187 echo "$as_me:$LINENO: checking for $ac_header" >&5
8188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   eval "$as_ac_Header=$ac_header_preproc"
8193 fi
8194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8196
8197 fi
8198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8199   cat >>confdefs.h <<_ACEOF
8200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8201 _ACEOF
8202
8203 else
8204   { { echo "$as_me:$LINENO: error: history header not found
8205 If you have readline already installed, see config.log for details on the
8206 failure.  It is possible the compiler isn't looking in the proper directory.
8207 Use --without-readline to disable readline support." >&5
8208 echo "$as_me: error: history header not found
8209 If you have readline already installed, see config.log for details on the
8210 failure.  It is possible the compiler isn't looking in the proper directory.
8211 Use --without-readline to disable readline support." >&2;}
8212    { (exit 1); exit 1; }; }
8213 fi
8214
8215 done
8216
8217 fi
8218
8219 done
8220
8221 fi
8222
8223 done
8224
8225 fi
8226
8227 if test "$with_zlib" = yes; then
8228   if test "${ac_cv_header_zlib_h+set}" = set; then
8229   echo "$as_me:$LINENO: checking for zlib.h" >&5
8230 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8231 if test "${ac_cv_header_zlib_h+set}" = set; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 fi
8234 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8235 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8236 else
8237   # Is the header compilable?
8238 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8239 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8244 #include <zlib.h>
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -s conftest.$ac_objext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_header_compiler=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_header_compiler=no
8263 fi
8264 rm -f conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6
8267
8268 # Is the header present?
8269 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8270 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8274 #include <zlib.h>
8275 _ACEOF
8276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8278   ac_status=$?
8279   egrep -v '^ *\+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } >/dev/null; then
8284   if test -s conftest.err; then
8285     ac_cpp_err=$ac_c_preproc_warn_flag
8286   else
8287     ac_cpp_err=
8288   fi
8289 else
8290   ac_cpp_err=yes
8291 fi
8292 if test -z "$ac_cpp_err"; then
8293   ac_header_preproc=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296   cat conftest.$ac_ext >&5
8297   ac_header_preproc=no
8298 fi
8299 rm -f conftest.err conftest.$ac_ext
8300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8301 echo "${ECHO_T}$ac_header_preproc" >&6
8302
8303 # So?  What about this header?
8304 case $ac_header_compiler:$ac_header_preproc in
8305   yes:no )
8306     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8307 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8308     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8309 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8310   no:yes )
8311     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8313     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8316 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8317 esac
8318 echo "$as_me:$LINENO: checking for zlib.h" >&5
8319 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8320 if test "${ac_cv_header_zlib_h+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   ac_cv_header_zlib_h=$ac_header_preproc
8324 fi
8325 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8326 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8327
8328 fi
8329 if test $ac_cv_header_zlib_h = yes; then
8330   :
8331 else
8332   { { echo "$as_me:$LINENO: error: zlib header not found
8333 If you have zlib already installed, see config.log for details on the
8334 failure.  It is possible the compiler isn't looking in the proper directory.
8335 Use --without-zlib to disable zlib support." >&5
8336 echo "$as_me: error: zlib header not found
8337 If you have zlib already installed, see config.log for details on the
8338 failure.  It is possible the compiler isn't looking in the proper directory.
8339 Use --without-zlib to disable zlib support." >&2;}
8340    { (exit 1); exit 1; }; }
8341 fi
8342
8343
8344 fi
8345
8346 if test "$with_krb4" = yes ; then
8347   if test "${ac_cv_header_krb_h+set}" = set; then
8348   echo "$as_me:$LINENO: checking for krb.h" >&5
8349 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8350 if test "${ac_cv_header_krb_h+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 fi
8353 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8354 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8355 else
8356   # Is the header compilable?
8357 echo "$as_me:$LINENO: checking krb.h usability" >&5
8358 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8360 #line $LINENO "configure"
8361 #include "confdefs.h"
8362 $ac_includes_default
8363 #include <krb.h>
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367   (eval $ac_compile) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_header_compiler=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8381 ac_header_compiler=no
8382 fi
8383 rm -f conftest.$ac_objext conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8385 echo "${ECHO_T}$ac_header_compiler" >&6
8386
8387 # Is the header present?
8388 echo "$as_me:$LINENO: checking krb.h presence" >&5
8389 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 #include "confdefs.h"
8393 #include <krb.h>
8394 _ACEOF
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397   ac_status=$?
8398   egrep -v '^ *\+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } >/dev/null; then
8403   if test -s conftest.err; then
8404     ac_cpp_err=$ac_c_preproc_warn_flag
8405   else
8406     ac_cpp_err=
8407   fi
8408 else
8409   ac_cpp_err=yes
8410 fi
8411 if test -z "$ac_cpp_err"; then
8412   ac_header_preproc=yes
8413 else
8414   echo "$as_me: failed program was:" >&5
8415   cat conftest.$ac_ext >&5
8416   ac_header_preproc=no
8417 fi
8418 rm -f conftest.err conftest.$ac_ext
8419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8420 echo "${ECHO_T}$ac_header_preproc" >&6
8421
8422 # So?  What about this header?
8423 case $ac_header_compiler:$ac_header_preproc in
8424   yes:no )
8425     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8426 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8429   no:yes )
8430     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8431 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8433 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8434     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8435 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8436 esac
8437 echo "$as_me:$LINENO: checking for krb.h" >&5
8438 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8439 if test "${ac_cv_header_krb_h+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   ac_cv_header_krb_h=$ac_header_preproc
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8445 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8446
8447 fi
8448 if test $ac_cv_header_krb_h = yes; then
8449   :
8450 else
8451   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8452 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8453    { (exit 1); exit 1; }; }
8454 fi
8455
8456
8457 fi
8458
8459 if test "$with_krb5" = yes ; then
8460   if test "${ac_cv_header_krb5_h+set}" = set; then
8461   echo "$as_me:$LINENO: checking for krb5.h" >&5
8462 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8463 if test "${ac_cv_header_krb5_h+set}" = set; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 fi
8466 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8467 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8468 else
8469   # Is the header compilable?
8470 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8471 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 #include "confdefs.h"
8475 $ac_includes_default
8476 #include <krb5.h>
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480   (eval $ac_compile) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -s conftest.$ac_objext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_header_compiler=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494 ac_header_compiler=no
8495 fi
8496 rm -f conftest.$ac_objext conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8498 echo "${ECHO_T}$ac_header_compiler" >&6
8499
8500 # Is the header present?
8501 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8502 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 #include "confdefs.h"
8506 #include <krb5.h>
8507 _ACEOF
8508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8510   ac_status=$?
8511   egrep -v '^ *\+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } >/dev/null; then
8516   if test -s conftest.err; then
8517     ac_cpp_err=$ac_c_preproc_warn_flag
8518   else
8519     ac_cpp_err=
8520   fi
8521 else
8522   ac_cpp_err=yes
8523 fi
8524 if test -z "$ac_cpp_err"; then
8525   ac_header_preproc=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528   cat conftest.$ac_ext >&5
8529   ac_header_preproc=no
8530 fi
8531 rm -f conftest.err conftest.$ac_ext
8532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8533 echo "${ECHO_T}$ac_header_preproc" >&6
8534
8535 # So?  What about this header?
8536 case $ac_header_compiler:$ac_header_preproc in
8537   yes:no )
8538     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8539 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8542   no:yes )
8543     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8544 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8546 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8547     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8549 esac
8550 echo "$as_me:$LINENO: checking for krb5.h" >&5
8551 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8552 if test "${ac_cv_header_krb5_h+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   ac_cv_header_krb5_h=$ac_header_preproc
8556 fi
8557 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8558 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8559
8560 fi
8561 if test $ac_cv_header_krb5_h = yes; then
8562   :
8563 else
8564   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8565 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8566    { (exit 1); exit 1; }; }
8567 fi
8568
8569
8570   if test "${ac_cv_header_com_err_h+set}" = set; then
8571   echo "$as_me:$LINENO: checking for com_err.h" >&5
8572 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8573 if test "${ac_cv_header_com_err_h+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8577 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8578 else
8579   # Is the header compilable?
8580 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8581 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <com_err.h>
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590   (eval $ac_compile) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_header_compiler=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8605 fi
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8609
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8612 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <com_err.h>
8617 _ACEOF
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620   ac_status=$?
8621   egrep -v '^ *\+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } >/dev/null; then
8626   if test -s conftest.err; then
8627     ac_cpp_err=$ac_c_preproc_warn_flag
8628   else
8629     ac_cpp_err=
8630   fi
8631 else
8632   ac_cpp_err=yes
8633 fi
8634 if test -z "$ac_cpp_err"; then
8635   ac_header_preproc=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638   cat conftest.$ac_ext >&5
8639   ac_header_preproc=no
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8644
8645 # So?  What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8647   yes:no )
8648     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8652   no:yes )
8653     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8659 esac
8660 echo "$as_me:$LINENO: checking for com_err.h" >&5
8661 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8662 if test "${ac_cv_header_com_err_h+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   ac_cv_header_com_err_h=$ac_header_preproc
8666 fi
8667 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8668 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8669
8670 fi
8671 if test $ac_cv_header_com_err_h = yes; then
8672   :
8673 else
8674   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8675 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8676    { (exit 1); exit 1; }; }
8677 fi
8678
8679
8680 fi
8681
8682 if test "$with_openssl" = yes ; then
8683   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8684   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8685 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8686 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 fi
8689 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8690 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8691 else
8692   # Is the header compilable?
8693 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8694 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8695 cat >conftest.$ac_ext <<_ACEOF
8696 #line $LINENO "configure"
8697 #include "confdefs.h"
8698 $ac_includes_default
8699 #include <openssl/ssl.h>
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703   (eval $ac_compile) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -s conftest.$ac_objext'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_header_compiler=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_header_compiler=no
8718 fi
8719 rm -f conftest.$ac_objext conftest.$ac_ext
8720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8721 echo "${ECHO_T}$ac_header_compiler" >&6
8722
8723 # Is the header present?
8724 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8725 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line $LINENO "configure"
8728 #include "confdefs.h"
8729 #include <openssl/ssl.h>
8730 _ACEOF
8731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8733   ac_status=$?
8734   egrep -v '^ *\+' conftest.er1 >conftest.err
8735   rm -f conftest.er1
8736   cat conftest.err >&5
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } >/dev/null; then
8739   if test -s conftest.err; then
8740     ac_cpp_err=$ac_c_preproc_warn_flag
8741   else
8742     ac_cpp_err=
8743   fi
8744 else
8745   ac_cpp_err=yes
8746 fi
8747 if test -z "$ac_cpp_err"; then
8748   ac_header_preproc=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751   cat conftest.$ac_ext >&5
8752   ac_header_preproc=no
8753 fi
8754 rm -f conftest.err conftest.$ac_ext
8755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8756 echo "${ECHO_T}$ac_header_preproc" >&6
8757
8758 # So?  What about this header?
8759 case $ac_header_compiler:$ac_header_preproc in
8760   yes:no )
8761     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8764 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8765   no:yes )
8766     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8767 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8769 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8770     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8772 esac
8773 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8774 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8775 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8776   echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8781 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8782
8783 fi
8784 if test $ac_cv_header_openssl_ssl_h = yes; then
8785   :
8786 else
8787   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8788 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8789    { (exit 1); exit 1; }; }
8790 fi
8791
8792
8793   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8794   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8795 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8796 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 fi
8799 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8800 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8801 else
8802   # Is the header compilable?
8803 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8804 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8807 #include "confdefs.h"
8808 $ac_includes_default
8809 #include <openssl/err.h>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813   (eval $ac_compile) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } &&
8817          { ac_try='test -s conftest.$ac_objext'
8818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819   (eval $ac_try) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); }; }; then
8823   ac_header_compiler=yes
8824 else
8825   echo "$as_me: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 ac_header_compiler=no
8828 fi
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8831 echo "${ECHO_T}$ac_header_compiler" >&6
8832
8833 # Is the header present?
8834 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8835 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 #include "confdefs.h"
8839 #include <openssl/err.h>
8840 _ACEOF
8841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843   ac_status=$?
8844   egrep -v '^ *\+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } >/dev/null; then
8849   if test -s conftest.err; then
8850     ac_cpp_err=$ac_c_preproc_warn_flag
8851   else
8852     ac_cpp_err=
8853   fi
8854 else
8855   ac_cpp_err=yes
8856 fi
8857 if test -z "$ac_cpp_err"; then
8858   ac_header_preproc=yes
8859 else
8860   echo "$as_me: failed program was:" >&5
8861   cat conftest.$ac_ext >&5
8862   ac_header_preproc=no
8863 fi
8864 rm -f conftest.err conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866 echo "${ECHO_T}$ac_header_preproc" >&6
8867
8868 # So?  What about this header?
8869 case $ac_header_compiler:$ac_header_preproc in
8870   yes:no )
8871     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8872 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8874 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8875   no:yes )
8876     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8881 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8882 esac
8883 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8884 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8885 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   ac_cv_header_openssl_err_h=$ac_header_preproc
8889 fi
8890 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8891 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8892
8893 fi
8894 if test $ac_cv_header_openssl_err_h = yes; then
8895   :
8896 else
8897   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8898 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8899    { (exit 1); exit 1; }; }
8900 fi
8901
8902
8903 fi
8904
8905 if test "$with_pam" = yes ; then
8906
8907 for ac_header in security/pam_appl.h
8908 do
8909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8911   echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 fi
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8918 else
8919   # Is the header compilable?
8920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8922 cat >conftest.$ac_ext <<_ACEOF
8923 #line $LINENO "configure"
8924 #include "confdefs.h"
8925 $ac_includes_default
8926 #include <$ac_header>
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930   (eval $ac_compile) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -s conftest.$ac_objext'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; }; then
8940   ac_header_compiler=yes
8941 else
8942   echo "$as_me: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8944 ac_header_compiler=no
8945 fi
8946 rm -f conftest.$ac_objext conftest.$ac_ext
8947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8948 echo "${ECHO_T}$ac_header_compiler" >&6
8949
8950 # Is the header present?
8951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8955 #include "confdefs.h"
8956 #include <$ac_header>
8957 _ACEOF
8958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960   ac_status=$?
8961   egrep -v '^ *\+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } >/dev/null; then
8966   if test -s conftest.err; then
8967     ac_cpp_err=$ac_c_preproc_warn_flag
8968   else
8969     ac_cpp_err=
8970   fi
8971 else
8972   ac_cpp_err=yes
8973 fi
8974 if test -z "$ac_cpp_err"; then
8975   ac_header_preproc=yes
8976 else
8977   echo "$as_me: failed program was:" >&5
8978   cat conftest.$ac_ext >&5
8979   ac_header_preproc=no
8980 fi
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8984
8985 # So?  What about this header?
8986 case $ac_header_compiler:$ac_header_preproc in
8987   yes:no )
8988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8992   no:yes )
8993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8995     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8999 esac
9000 echo "$as_me:$LINENO: checking for $ac_header" >&5
9001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   eval "$as_ac_Header=$ac_header_preproc"
9006 fi
9007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9009
9010 fi
9011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9012   cat >>confdefs.h <<_ACEOF
9013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 _ACEOF
9015
9016 else
9017
9018 for ac_header in pam/pam_appl.h
9019 do
9020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9022   echo "$as_me:$LINENO: checking for $ac_header" >&5
9023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 fi
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9029 else
9030   # Is the header compilable?
9031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 #include "confdefs.h"
9036 $ac_includes_default
9037 #include <$ac_header>
9038 _ACEOF
9039 rm -f conftest.$ac_objext
9040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041   (eval $ac_compile) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -s conftest.$ac_objext'
9046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; }; then
9051   ac_header_compiler=yes
9052 else
9053   echo "$as_me: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 ac_header_compiler=no
9056 fi
9057 rm -f conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9060
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9067 #include <$ac_header>
9068 _ACEOF
9069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9071   ac_status=$?
9072   egrep -v '^ *\+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } >/dev/null; then
9077   if test -s conftest.err; then
9078     ac_cpp_err=$ac_c_preproc_warn_flag
9079   else
9080     ac_cpp_err=
9081   fi
9082 else
9083   ac_cpp_err=yes
9084 fi
9085 if test -z "$ac_cpp_err"; then
9086   ac_header_preproc=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089   cat conftest.$ac_ext >&5
9090   ac_header_preproc=no
9091 fi
9092 rm -f conftest.err conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9094 echo "${ECHO_T}$ac_header_preproc" >&6
9095
9096 # So?  What about this header?
9097 case $ac_header_compiler:$ac_header_preproc in
9098   yes:no )
9099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9103   no:yes )
9104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9110 esac
9111 echo "$as_me:$LINENO: checking for $ac_header" >&5
9112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   eval "$as_ac_Header=$ac_header_preproc"
9117 fi
9118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9120
9121 fi
9122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123   cat >>confdefs.h <<_ACEOF
9124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 _ACEOF
9126
9127 else
9128   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9129 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9130    { (exit 1); exit 1; }; }
9131 fi
9132
9133 done
9134
9135 fi
9136
9137 done
9138
9139 fi
9140
9141 if test "$with_rendezvous" = yes ; then
9142   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9143   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9144 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9145 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9146   echo $ECHO_N "(cached) $ECHO_C" >&6
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9149 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9150 else
9151   # Is the header compilable?
9152 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9153 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line $LINENO "configure"
9156 #include "confdefs.h"
9157 $ac_includes_default
9158 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9159 _ACEOF
9160 rm -f conftest.$ac_objext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9162   (eval $ac_compile) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); } &&
9166          { ac_try='test -s conftest.$ac_objext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   ac_header_compiler=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 ac_header_compiler=no
9177 fi
9178 rm -f conftest.$ac_objext conftest.$ac_ext
9179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9180 echo "${ECHO_T}$ac_header_compiler" >&6
9181
9182 # Is the header present?
9183 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9184 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9186 #line $LINENO "configure"
9187 #include "confdefs.h"
9188 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9189 _ACEOF
9190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9192   ac_status=$?
9193   egrep -v '^ *\+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } >/dev/null; then
9198   if test -s conftest.err; then
9199     ac_cpp_err=$ac_c_preproc_warn_flag
9200   else
9201     ac_cpp_err=
9202   fi
9203 else
9204   ac_cpp_err=yes
9205 fi
9206 if test -z "$ac_cpp_err"; then
9207   ac_header_preproc=yes
9208 else
9209   echo "$as_me: failed program was:" >&5
9210   cat conftest.$ac_ext >&5
9211   ac_header_preproc=no
9212 fi
9213 rm -f conftest.err conftest.$ac_ext
9214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9215 echo "${ECHO_T}$ac_header_preproc" >&6
9216
9217 # So?  What about this header?
9218 case $ac_header_compiler:$ac_header_preproc in
9219   yes:no )
9220     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9221 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9222     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9223 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9224   no:yes )
9225     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9226 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9228 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9229     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9230 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9231 esac
9232 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9233 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9234 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9238 fi
9239 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9240 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9241
9242 fi
9243 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9244   :
9245 else
9246   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9247 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9248    { (exit 1); exit 1; }; }
9249 fi
9250
9251
9252 fi
9253
9254
9255 ##
9256 ## Types, structures, compiler characteristics
9257 ##
9258
9259
9260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9262 if test "${ac_cv_c_const+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   cat >conftest.$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 #include "confdefs.h"
9268
9269 #ifdef F77_DUMMY_MAIN
9270 #  ifdef __cplusplus
9271      extern "C"
9272 #  endif
9273    int F77_DUMMY_MAIN() { return 1; }
9274 #endif
9275 int
9276 main ()
9277 {
9278 /* FIXME: Include the comments suggested by Paul. */
9279 #ifndef __cplusplus
9280   /* Ultrix mips cc rejects this.  */
9281   typedef int charset[2];
9282   const charset x;
9283   /* SunOS 4.1.1 cc rejects this.  */
9284   char const *const *ccp;
9285   char **p;
9286   /* NEC SVR4.0.2 mips cc rejects this.  */
9287   struct point {int x, y;};
9288   static struct point const zero = {0,0};
9289   /* AIX XL C 1.02.0.0 rejects this.
9290      It does not let you subtract one const X* pointer from another in
9291      an arm of an if-expression whose if-part is not a constant
9292      expression */
9293   const char *g = "string";
9294   ccp = &g + (g ? g-g : 0);
9295   /* HPUX 7.0 cc rejects these. */
9296   ++ccp;
9297   p = (char**) ccp;
9298   ccp = (char const *const *) p;
9299   { /* SCO 3.2v4 cc rejects this.  */
9300     char *t;
9301     char const *s = 0 ? (char *) 0 : (char const *) 0;
9302
9303     *t++ = 0;
9304   }
9305   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9306     int x[] = {25, 17};
9307     const int *foo = &x[0];
9308     ++foo;
9309   }
9310   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9311     typedef const int *iptr;
9312     iptr p = 0;
9313     ++p;
9314   }
9315   { /* AIX XL C 1.02.0.0 rejects this saying
9316        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9317     struct s { int j; const int *ap[3]; };
9318     struct s *b; b->j = 5;
9319   }
9320   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9321     const int foo = 10;
9322   }
9323 #endif
9324
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331   (eval $ac_compile) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } &&
9335          { ac_try='test -s conftest.$ac_objext'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341   ac_cv_c_const=yes
9342 else
9343   echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 ac_cv_c_const=no
9346 fi
9347 rm -f conftest.$ac_objext conftest.$ac_ext
9348 fi
9349 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9350 echo "${ECHO_T}$ac_cv_c_const" >&6
9351 if test $ac_cv_c_const = no; then
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define const
9355 _ACEOF
9356
9357 fi
9358
9359 echo "$as_me:$LINENO: checking for inline" >&5
9360 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9361 if test "${ac_cv_c_inline+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   ac_cv_c_inline=no
9365 for ac_kw in inline __inline__ __inline; do
9366   cat >conftest.$ac_ext <<_ACEOF
9367 #line $LINENO "configure"
9368 #include "confdefs.h"
9369 #ifndef __cplusplus
9370 static $ac_kw int static_foo () {return 0; }
9371 $ac_kw int foo () {return 0; }
9372 #endif
9373
9374 _ACEOF
9375 rm -f conftest.$ac_objext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9377   (eval $ac_compile) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -s conftest.$ac_objext'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   ac_cv_c_inline=$ac_kw; break
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 fi
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9393 done
9394
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9397 echo "${ECHO_T}$ac_cv_c_inline" >&6
9398 case $ac_cv_c_inline in
9399   inline | yes) ;;
9400   no)
9401 cat >>confdefs.h <<\_ACEOF
9402 #define inline
9403 _ACEOF
9404  ;;
9405   *)  cat >>confdefs.h <<_ACEOF
9406 #define inline $ac_cv_c_inline
9407 _ACEOF
9408  ;;
9409 esac
9410
9411 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9412 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9413 if test "${ac_cv_c_stringize+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9418 #include "confdefs.h"
9419 #define x(y) #y
9420
9421 char *s = x(teststring);
9422 _ACEOF
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424   egrep "#teststring" >/dev/null 2>&1; then
9425   ac_cv_c_stringize=no
9426 else
9427   ac_cv_c_stringize=yes
9428 fi
9429 rm -f conftest*
9430
9431 fi
9432 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9433 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9434 if test $ac_cv_c_stringize = yes; then
9435
9436 cat >>confdefs.h <<\_ACEOF
9437 #define HAVE_STRINGIZE 1
9438 _ACEOF
9439
9440 fi
9441
9442 echo "$as_me:$LINENO: checking for signed types" >&5
9443 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9444 if test "${pgac_cv_c_signed+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   cat >conftest.$ac_ext <<_ACEOF
9448 #line $LINENO "configure"
9449 #include "confdefs.h"
9450
9451 #ifdef F77_DUMMY_MAIN
9452 #  ifdef __cplusplus
9453      extern "C"
9454 #  endif
9455    int F77_DUMMY_MAIN() { return 1; }
9456 #endif
9457 int
9458 main ()
9459 {
9460 signed char c; signed short s; signed int i;
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467   (eval $ac_compile) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } &&
9471          { ac_try='test -s conftest.$ac_objext'
9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473   (eval $ac_try) 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   pgac_cv_c_signed=yes
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 pgac_cv_c_signed=no
9482 fi
9483 rm -f conftest.$ac_objext conftest.$ac_ext
9484 fi
9485 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9486 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9487 if test x"$pgac_cv_c_signed" = xno ; then
9488
9489 cat >>confdefs.h <<\_ACEOF
9490 #define signed
9491 _ACEOF
9492
9493 fi
9494 echo "$as_me:$LINENO: checking for working volatile" >&5
9495 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9496 if test "${ac_cv_c_volatile+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 #include "confdefs.h"
9502
9503 #ifdef F77_DUMMY_MAIN
9504 #  ifdef __cplusplus
9505      extern "C"
9506 #  endif
9507    int F77_DUMMY_MAIN() { return 1; }
9508 #endif
9509 int
9510 main ()
9511 {
9512
9513 volatile int x;
9514 int * volatile y;
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521   (eval $ac_compile) 2>&5
9522   ac_status=$?
9523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } &&
9525          { ac_try='test -s conftest.$ac_objext'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   ac_cv_c_volatile=yes
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 ac_cv_c_volatile=no
9536 fi
9537 rm -f conftest.$ac_objext conftest.$ac_ext
9538 fi
9539 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9540 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9541 if test $ac_cv_c_volatile = no; then
9542
9543 cat >>confdefs.h <<\_ACEOF
9544 #define volatile
9545 _ACEOF
9546
9547 fi
9548
9549 echo "$as_me:$LINENO: checking for __func__" >&5
9550 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9551 if test "${pgac_cv_funcname_func_support+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9557 #include <stdio.h>
9558 #ifdef F77_DUMMY_MAIN
9559 #  ifdef __cplusplus
9560      extern "C"
9561 #  endif
9562    int F77_DUMMY_MAIN() { return 1; }
9563 #endif
9564 int
9565 main ()
9566 {
9567 printf("%s\n", __func__);
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9574   (eval $ac_compile) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -s conftest.$ac_objext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   pgac_cv_funcname_func_support=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 pgac_cv_funcname_func_support=no
9589 fi
9590 rm -f conftest.$ac_objext conftest.$ac_ext
9591 fi
9592 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9593 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9594 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9595
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_FUNCNAME__FUNC 1
9598 _ACEOF
9599
9600 else
9601 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9602 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9603 if test "${pgac_cv_funcname_function_support+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9609 #include <stdio.h>
9610 #ifdef F77_DUMMY_MAIN
9611 #  ifdef __cplusplus
9612      extern "C"
9613 #  endif
9614    int F77_DUMMY_MAIN() { return 1; }
9615 #endif
9616 int
9617 main ()
9618 {
9619 printf("%s\n", __FUNCTION__);
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626   (eval $ac_compile) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -s conftest.$ac_objext'
9631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632   (eval $ac_try) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636   pgac_cv_funcname_function_support=yes
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 pgac_cv_funcname_function_support=no
9641 fi
9642 rm -f conftest.$ac_objext conftest.$ac_ext
9643 fi
9644 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9645 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9646 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_FUNCNAME__FUNCTION 1
9650 _ACEOF
9651
9652 fi
9653 fi
9654 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9655 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9656 if test "${ac_cv_struct_tm+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 #include "confdefs.h"
9662 #include <sys/types.h>
9663 #include <time.h>
9664
9665 #ifdef F77_DUMMY_MAIN
9666 #  ifdef __cplusplus
9667      extern "C"
9668 #  endif
9669    int F77_DUMMY_MAIN() { return 1; }
9670 #endif
9671 int
9672 main ()
9673 {
9674 struct tm *tp; tp->tm_sec;
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681   (eval $ac_compile) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -s conftest.$ac_objext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_struct_tm=time.h
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_struct_tm=sys/time.h
9696 fi
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9698 fi
9699 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9700 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9701 if test $ac_cv_struct_tm = sys/time.h; then
9702
9703 cat >>confdefs.h <<\_ACEOF
9704 #define TM_IN_SYS_TIME 1
9705 _ACEOF
9706
9707 fi
9708
9709 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9710 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/types.h>
9718 #include <$ac_cv_struct_tm>
9719
9720
9721 #ifdef F77_DUMMY_MAIN
9722 #  ifdef __cplusplus
9723      extern "C"
9724 #  endif
9725    int F77_DUMMY_MAIN() { return 1; }
9726 #endif
9727 int
9728 main ()
9729 {
9730 static struct tm ac_aggr;
9731 if (ac_aggr.tm_zone)
9732 return 0;
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739   (eval $ac_compile) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -s conftest.$ac_objext'
9744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745   (eval $ac_try) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; }; then
9749   ac_cv_member_struct_tm_tm_zone=yes
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 ac_cv_member_struct_tm_tm_zone=no
9754 fi
9755 rm -f conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9758 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9759 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9760
9761 cat >>confdefs.h <<_ACEOF
9762 #define HAVE_STRUCT_TM_TM_ZONE 1
9763 _ACEOF
9764
9765
9766 fi
9767
9768 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9769
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_TM_ZONE 1
9772 _ACEOF
9773
9774 fi
9775 echo "$as_me:$LINENO: checking for tzname" >&5
9776 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9777 if test "${ac_cv_var_tzname+set}" = set; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780   cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <time.h>
9784 #ifndef tzname /* For SGI.  */
9785 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9786 #endif
9787
9788 #ifdef F77_DUMMY_MAIN
9789 #  ifdef __cplusplus
9790      extern "C"
9791 #  endif
9792    int F77_DUMMY_MAIN() { return 1; }
9793 #endif
9794 int
9795 main ()
9796 {
9797 atoi(*tzname);
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804   (eval $ac_link) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } &&
9808          { ac_try='test -s conftest$ac_exeext'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814   ac_cv_var_tzname=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 ac_cv_var_tzname=no
9819 fi
9820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9821 fi
9822 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9823 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9824 if test $ac_cv_var_tzname = yes; then
9825
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_TZNAME 1
9828 _ACEOF
9829
9830 fi
9831
9832 echo "$as_me:$LINENO: checking for union semun" >&5
9833 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9834 if test "${ac_cv_type_union_semun+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   cat >conftest.$ac_ext <<_ACEOF
9838 #line $LINENO "configure"
9839 #include "confdefs.h"
9840 #include <sys/types.h>
9841 #include <sys/ipc.h>
9842 #include <sys/sem.h>
9843
9844 #ifdef F77_DUMMY_MAIN
9845 #  ifdef __cplusplus
9846      extern "C"
9847 #  endif
9848    int F77_DUMMY_MAIN() { return 1; }
9849 #endif
9850 int
9851 main ()
9852 {
9853 if ((union semun *) 0)
9854   return 0;
9855 if (sizeof (union semun))
9856   return 0;
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9863   (eval $ac_compile) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -s conftest.$ac_objext'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   ac_cv_type_union_semun=yes
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 ac_cv_type_union_semun=no
9878 fi
9879 rm -f conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9882 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9883 if test $ac_cv_type_union_semun = yes; then
9884
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_UNION_SEMUN 1
9887 _ACEOF
9888
9889
9890 fi
9891
9892 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9893 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9894 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 #line $LINENO "configure"
9899 #include "confdefs.h"
9900 #include <sys/types.h>
9901 #ifdef HAVE_SYS_UN_H
9902 #include <sys/un.h>
9903 #endif
9904
9905
9906 #ifdef F77_DUMMY_MAIN
9907 #  ifdef __cplusplus
9908      extern "C"
9909 #  endif
9910    int F77_DUMMY_MAIN() { return 1; }
9911 #endif
9912 int
9913 main ()
9914 {
9915 if ((struct sockaddr_un *) 0)
9916   return 0;
9917 if (sizeof (struct sockaddr_un))
9918   return 0;
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9925   (eval $ac_compile) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -s conftest.$ac_objext'
9930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   ac_cv_type_struct_sockaddr_un=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 ac_cv_type_struct_sockaddr_un=no
9940 fi
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 fi
9943 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9944 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9945 if test $ac_cv_type_struct_sockaddr_un = yes; then
9946
9947 cat >>confdefs.h <<_ACEOF
9948 #define HAVE_STRUCT_SOCKADDR_UN 1
9949 _ACEOF
9950
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UNIX_SOCKETS 1
9954 _ACEOF
9955
9956 fi
9957
9958 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9959 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9960 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #ifdef HAVE_SYS_SOCKET_H
9968 #include <sys/socket.h>
9969 #endif
9970
9971
9972 #ifdef F77_DUMMY_MAIN
9973 #  ifdef __cplusplus
9974      extern "C"
9975 #  endif
9976    int F77_DUMMY_MAIN() { return 1; }
9977 #endif
9978 int
9979 main ()
9980 {
9981 if ((struct sockaddr_storage *) 0)
9982   return 0;
9983 if (sizeof (struct sockaddr_storage))
9984   return 0;
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991   (eval $ac_compile) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -s conftest.$ac_objext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_type_struct_sockaddr_storage=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10005 ac_cv_type_struct_sockaddr_storage=no
10006 fi
10007 rm -f conftest.$ac_objext conftest.$ac_ext
10008 fi
10009 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10010 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10011 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10015 _ACEOF
10016
10017
10018 fi
10019
10020 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10021 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10022 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10029 #include <sys/socket.h>
10030 #include <netdb.h>
10031
10032
10033 #ifdef F77_DUMMY_MAIN
10034 #  ifdef __cplusplus
10035      extern "C"
10036 #  endif
10037    int F77_DUMMY_MAIN() { return 1; }
10038 #endif
10039 int
10040 main ()
10041 {
10042 if ((struct addrinfo *) 0)
10043   return 0;
10044 if (sizeof (struct addrinfo))
10045   return 0;
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052   (eval $ac_compile) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -s conftest.$ac_objext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_type_struct_addrinfo=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 ac_cv_type_struct_addrinfo=no
10067 fi
10068 rm -f conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10071 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10072 if test $ac_cv_type_struct_addrinfo = yes; then
10073
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_STRUCT_ADDRINFO 1
10076 _ACEOF
10077
10078
10079 fi
10080
10081
10082 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10083 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10084 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/param.h>
10091 #include <sys/types.h>
10092 #include <sys/socket.h>
10093 #include <sys/ucred.h>
10094
10095 #ifdef F77_DUMMY_MAIN
10096 #  ifdef __cplusplus
10097      extern "C"
10098 #  endif
10099    int F77_DUMMY_MAIN() { return 1; }
10100 #endif
10101 int
10102 main ()
10103 {
10104 if ((struct cmsgcred *) 0)
10105   return 0;
10106 if (sizeof (struct cmsgcred))
10107   return 0;
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114   (eval $ac_compile) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -s conftest.$ac_objext'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; }; then
10124   ac_cv_type_struct_cmsgcred=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_type_struct_cmsgcred=no
10129 fi
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10133 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10134 if test $ac_cv_type_struct_cmsgcred = yes; then
10135
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_CMSGCRED 1
10138 _ACEOF
10139
10140
10141 fi
10142 echo "$as_me:$LINENO: checking for struct fcred" >&5
10143 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10144 if test "${ac_cv_type_struct_fcred+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/param.h>
10151 #include <sys/types.h>
10152 #include <sys/socket.h>
10153 #include <sys/ucred.h>
10154
10155 #ifdef F77_DUMMY_MAIN
10156 #  ifdef __cplusplus
10157      extern "C"
10158 #  endif
10159    int F77_DUMMY_MAIN() { return 1; }
10160 #endif
10161 int
10162 main ()
10163 {
10164 if ((struct fcred *) 0)
10165   return 0;
10166 if (sizeof (struct fcred))
10167   return 0;
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -s conftest.$ac_objext'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   ac_cv_type_struct_fcred=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_type_struct_fcred=no
10189 fi
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10193 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10194 if test $ac_cv_type_struct_fcred = yes; then
10195
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_FCRED 1
10198 _ACEOF
10199
10200
10201 fi
10202 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10203 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10204 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/param.h>
10211 #include <sys/types.h>
10212 #include <sys/socket.h>
10213 #include <sys/ucred.h>
10214
10215 #ifdef F77_DUMMY_MAIN
10216 #  ifdef __cplusplus
10217      extern "C"
10218 #  endif
10219    int F77_DUMMY_MAIN() { return 1; }
10220 #endif
10221 int
10222 main ()
10223 {
10224 if ((struct sockcred *) 0)
10225   return 0;
10226 if (sizeof (struct sockcred))
10227   return 0;
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234   (eval $ac_compile) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -s conftest.$ac_objext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_type_struct_sockcred=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_type_struct_sockcred=no
10249 fi
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10253 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10254 if test $ac_cv_type_struct_sockcred = yes; then
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_SOCKCRED 1
10258 _ACEOF
10259
10260
10261 fi
10262
10263
10264 if test "$with_zlib" = yes; then
10265   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10266   # did not).  While we could work around the lack of z_streamp, it
10267   # seems unwise to encourage people to use such old zlib versions...
10268   echo "$as_me:$LINENO: checking for z_streamp" >&5
10269 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10270 if test "${ac_cv_type_z_streamp+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 #include "confdefs.h"
10276 #include <zlib.h>
10277
10278 #ifdef F77_DUMMY_MAIN
10279 #  ifdef __cplusplus
10280      extern "C"
10281 #  endif
10282    int F77_DUMMY_MAIN() { return 1; }
10283 #endif
10284 int
10285 main ()
10286 {
10287 if ((z_streamp *) 0)
10288   return 0;
10289 if (sizeof (z_streamp))
10290   return 0;
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297   (eval $ac_compile) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -s conftest.$ac_objext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_type_z_streamp=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 ac_cv_type_z_streamp=no
10312 fi
10313 rm -f conftest.$ac_objext conftest.$ac_ext
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10316 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10317 if test $ac_cv_type_z_streamp = yes; then
10318   :
10319 else
10320   { { echo "$as_me:$LINENO: error: zlib version is too old
10321 Use --without-zlib to disable zlib support." >&5
10322 echo "$as_me: error: zlib version is too old
10323 Use --without-zlib to disable zlib support." >&2;}
10324    { (exit 1); exit 1; }; }
10325 fi
10326
10327 fi
10328
10329 if test "$with_krb5" = yes; then
10330 # Check for differences between MIT and Heimdal (KTH) releases
10331   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10332 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10333 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 #include "confdefs.h"
10339 #include <krb5.h>
10340
10341 #ifdef F77_DUMMY_MAIN
10342 #  ifdef __cplusplus
10343      extern "C"
10344 #  endif
10345    int F77_DUMMY_MAIN() { return 1; }
10346 #endif
10347 int
10348 main ()
10349 {
10350 static krb5_ticket ac_aggr;
10351 if (ac_aggr.enc_part2)
10352 return 0;
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359   (eval $ac_compile) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -s conftest.$ac_objext'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   ac_cv_member_krb5_ticket_enc_part2=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 cat conftest.$ac_ext >&5
10373 ac_cv_member_krb5_ticket_enc_part2=no
10374 fi
10375 rm -f conftest.$ac_objext conftest.$ac_ext
10376 fi
10377 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10378 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10379 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10380
10381 cat >>confdefs.h <<_ACEOF
10382 #define HAVE_KRB5_TICKET_ENC_PART2 1
10383 _ACEOF
10384
10385
10386 else
10387   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10388 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10389 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392   cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10395 #include <krb5.h>
10396
10397 #ifdef F77_DUMMY_MAIN
10398 #  ifdef __cplusplus
10399      extern "C"
10400 #  endif
10401    int F77_DUMMY_MAIN() { return 1; }
10402 #endif
10403 int
10404 main ()
10405 {
10406 static krb5_ticket ac_aggr;
10407 if (ac_aggr.client)
10408 return 0;
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415   (eval $ac_compile) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); } &&
10419          { ac_try='test -s conftest.$ac_objext'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; }; then
10425   ac_cv_member_krb5_ticket_client=yes
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 ac_cv_member_krb5_ticket_client=no
10430 fi
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10434 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10435 if test $ac_cv_member_krb5_ticket_client = yes; then
10436
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_KRB5_TICKET_CLIENT 1
10439 _ACEOF
10440
10441
10442 else
10443   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10444 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10445    { (exit 1); exit 1; }; }
10446 fi
10447
10448 fi
10449
10450   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10451 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10452 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455   cat >conftest.$ac_ext <<_ACEOF
10456 #line $LINENO "configure"
10457 #include "confdefs.h"
10458 #include <krb5.h>
10459
10460 #ifdef F77_DUMMY_MAIN
10461 #  ifdef __cplusplus
10462      extern "C"
10463 #  endif
10464    int F77_DUMMY_MAIN() { return 1; }
10465 #endif
10466 int
10467 main ()
10468 {
10469 static krb5_error ac_aggr;
10470 if (ac_aggr.text.data)
10471 return 0;
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478   (eval $ac_compile) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -s conftest.$ac_objext'
10483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484   (eval $ac_try) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_member_krb5_error_text_data=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 ac_cv_member_krb5_error_text_data=no
10493 fi
10494 rm -f conftest.$ac_objext conftest.$ac_ext
10495 fi
10496 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10497 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10498 if test $ac_cv_member_krb5_error_text_data = yes; then
10499
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10502 _ACEOF
10503
10504
10505 else
10506   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10507 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10508 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   cat >conftest.$ac_ext <<_ACEOF
10512 #line $LINENO "configure"
10513 #include "confdefs.h"
10514 #include <krb5.h>
10515
10516 #ifdef F77_DUMMY_MAIN
10517 #  ifdef __cplusplus
10518      extern "C"
10519 #  endif
10520    int F77_DUMMY_MAIN() { return 1; }
10521 #endif
10522 int
10523 main ()
10524 {
10525 static krb5_error ac_aggr;
10526 if (ac_aggr.e_data)
10527 return 0;
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10534   (eval $ac_compile) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); } &&
10538          { ac_try='test -s conftest.$ac_objext'
10539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540   (eval $ac_try) 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_member_krb5_error_e_data=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 ac_cv_member_krb5_error_e_data=no
10549 fi
10550 rm -f conftest.$ac_objext conftest.$ac_ext
10551 fi
10552 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10553 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10554 if test $ac_cv_member_krb5_error_e_data = yes; then
10555
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_KRB5_ERROR_E_DATA 1
10558 _ACEOF
10559
10560
10561 else
10562   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10563 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10564    { (exit 1); exit 1; }; }
10565 fi
10566
10567 fi
10568
10569 fi
10570
10571
10572 ##
10573 ## Functions, global variables
10574 ##
10575
10576 echo "$as_me:$LINENO: checking for int timezone" >&5
10577 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10578 if test "${pgac_cv_var_int_timezone+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 #include <time.h>
10585 int res;
10586 #ifdef F77_DUMMY_MAIN
10587 #  ifdef __cplusplus
10588      extern "C"
10589 #  endif
10590    int F77_DUMMY_MAIN() { return 1; }
10591 #endif
10592 int
10593 main ()
10594 {
10595 res = timezone / 60;
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602   (eval $ac_link) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -s conftest$ac_exeext'
10607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608   (eval $ac_try) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; }; then
10612   pgac_cv_var_int_timezone=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 pgac_cv_var_int_timezone=no
10617 fi
10618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10619 fi
10620 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10621 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10622 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_INT_TIMEZONE
10626 _ACEOF
10627
10628 fi
10629 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10630 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10631  if test "${ac_cv_func_accept_arg1+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634    if test "${ac_cv_func_accept_arg2+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637     if test "${ac_cv_func_accept_arg3+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10641      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10642       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10643        cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 #include "confdefs.h"
10646 #ifdef HAVE_SYS_TYPES_H
10647 #include <sys/types.h>
10648 #endif
10649 #ifdef HAVE_SYS_SOCKET_H
10650 #include <sys/socket.h>
10651 #endif
10652 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10653 #ifdef F77_DUMMY_MAIN
10654 #  ifdef __cplusplus
10655      extern "C"
10656 #  endif
10657    int F77_DUMMY_MAIN() { return 1; }
10658 #endif
10659 int
10660 main ()
10661 {
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -s conftest.$ac_objext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   ac_not_found=no; break 3
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 ac_not_found=yes
10684 fi
10685 rm -f conftest.$ac_objext conftest.$ac_ext
10686       done
10687      done
10688     done
10689     if test "$ac_not_found" = yes; then
10690       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10691 echo "$as_me: error: could not determine argument types" >&2;}
10692    { (exit 1); exit 1; }; }
10693     fi
10694     if test "$ac_cv_func_accept_arg3" = "void"; then
10695       ac_cv_func_accept_arg3=int
10696     fi
10697
10698 fi
10699
10700 fi
10701
10702 fi
10703  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10704 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10708 _ACEOF
10709
10710
10711 cat >>confdefs.h <<_ACEOF
10712 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10713 _ACEOF
10714
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10718 _ACEOF
10719
10720
10721 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10722 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10723 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 #include "confdefs.h"
10729 #include <sys/time.h>
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 struct timeval *tp;
10740 struct timezone *tzp;
10741 gettimeofday(tp,tzp);
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748   (eval $ac_compile) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   pgac_cv_func_gettimeofday_1arg=no
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 pgac_cv_func_gettimeofday_1arg=yes
10763 fi
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10765 fi
10766 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10767 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10768 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define GETTIMEOFDAY_1ARG
10772 _ACEOF
10773
10774 fi
10775
10776
10777
10778 # SunOS doesn't handle negative byte comparisons properly with +/- return
10779 echo "$as_me:$LINENO: checking for working memcmp" >&5
10780 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10781 if test "${ac_cv_func_memcmp_working+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   if test "$cross_compiling" = yes; then
10785   ac_cv_func_memcmp_working=no
10786 else
10787   cat >conftest.$ac_ext <<_ACEOF
10788 #line $LINENO "configure"
10789 #include "confdefs.h"
10790
10791 #ifdef F77_DUMMY_MAIN
10792 #  ifdef __cplusplus
10793      extern "C"
10794 #  endif
10795    int F77_DUMMY_MAIN() { return 1; }
10796 #endif
10797 int
10798 main ()
10799 {
10800
10801   /* Some versions of memcmp are not 8-bit clean.  */
10802   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10803   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10804     exit (1);
10805
10806   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10807      or more and with at least one buffer not starting on a 4-byte boundary.
10808      William Lewis provided this test program.   */
10809   {
10810     char foo[21];
10811     char bar[21];
10812     int i;
10813     for (i = 0; i < 4; i++)
10814       {
10815         char *a = foo + i;
10816         char *b = bar + i;
10817         strcpy (a, "--------01111111");
10818         strcpy (b, "--------10000000");
10819         if (memcmp (a, b, 16) >= 0)
10820           exit (1);
10821       }
10822     exit (0);
10823   }
10824
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831   (eval $ac_link) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   ac_cv_func_memcmp_working=yes
10841 else
10842   echo "$as_me: program exited with status $ac_status" >&5
10843 echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 ( exit $ac_status )
10846 ac_cv_func_memcmp_working=no
10847 fi
10848 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10849 fi
10850 fi
10851 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10852 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10853 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10873 do
10874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10877 if eval "test \"\${$as_ac_var+set}\" = set"; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884     which can conflict with char $ac_func (); below.  */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error.  */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891    builtin and then its argument prototype would still apply.  */
10892 char $ac_func ();
10893 char (*f) ();
10894
10895 #ifdef F77_DUMMY_MAIN
10896 #  ifdef __cplusplus
10897      extern "C"
10898 #  endif
10899    int F77_DUMMY_MAIN() { return 1; }
10900 #endif
10901 int
10902 main ()
10903 {
10904 /* The GNU C library defines this for functions which it implements
10905     to always fail with ENOSYS.  Some functions are actually named
10906     something starting with __ and the normal name is an alias.  */
10907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10908 choke me
10909 #else
10910 f = $ac_func;
10911 #endif
10912
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919   (eval $ac_link) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -s conftest$ac_exeext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   eval "$as_ac_var=yes"
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 eval "$as_ac_var=no"
10934 fi
10935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10936 fi
10937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10939 if test `eval echo '${'$as_ac_var'}'` = yes; then
10940   cat >>confdefs.h <<_ACEOF
10941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942 _ACEOF
10943
10944 fi
10945 done
10946
10947
10948 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10949 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10950 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   cat >conftest.$ac_ext <<_ACEOF
10954 #line $LINENO "configure"
10955 #include "confdefs.h"
10956 #include <unistd.h>
10957
10958 #ifdef F77_DUMMY_MAIN
10959 #  ifdef __cplusplus
10960      extern "C"
10961 #  endif
10962    int F77_DUMMY_MAIN() { return 1; }
10963 #endif
10964 int
10965 main ()
10966 {
10967 #ifndef fdatasync
10968   char *p = (char *) fdatasync;
10969 #endif
10970
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977   (eval $ac_compile) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } &&
10981          { ac_try='test -s conftest.$ac_objext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_cv_have_decl_fdatasync=yes
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 ac_cv_have_decl_fdatasync=no
10992 fi
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10996 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10997 if test $ac_cv_have_decl_fdatasync = yes; then
10998
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_DECL_FDATASYNC 1
11001 _ACEOF
11002
11003
11004 else
11005   cat >>confdefs.h <<_ACEOF
11006 #define HAVE_DECL_FDATASYNC 0
11007 _ACEOF
11008
11009
11010 fi
11011
11012
11013
11014 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11015 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11016 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11017   echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019   cat >conftest.$ac_ext <<_ACEOF
11020 #line $LINENO "configure"
11021 #include "confdefs.h"
11022 $ac_includes_default
11023 #include <netinet/in.h>
11024
11025 #ifdef F77_DUMMY_MAIN
11026 #  ifdef __cplusplus
11027      extern "C"
11028 #  endif
11029    int F77_DUMMY_MAIN() { return 1; }
11030 #endif
11031 int
11032 main ()
11033 {
11034 if ((struct sockaddr_in6 *) 0)
11035   return 0;
11036 if (sizeof (struct sockaddr_in6))
11037   return 0;
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } &&
11048          { ac_try='test -s conftest.$ac_objext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   ac_cv_type_struct_sockaddr_in6=yes
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 cat conftest.$ac_ext >&5
11058 ac_cv_type_struct_sockaddr_in6=no
11059 fi
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11061 fi
11062 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11063 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11064 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11065   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11066 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11067 if test "${ac_cv_func_inet_ntop+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 #include "confdefs.h"
11073 /* System header to define __stub macros and hopefully few prototypes,
11074     which can conflict with char inet_ntop (); below.  */
11075 #include <assert.h>
11076 /* Override any gcc2 internal prototype to avoid an error.  */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 /* We use char because int might match the return type of a gcc2
11081    builtin and then its argument prototype would still apply.  */
11082 char inet_ntop ();
11083 char (*f) ();
11084
11085 #ifdef F77_DUMMY_MAIN
11086 #  ifdef __cplusplus
11087      extern "C"
11088 #  endif
11089    int F77_DUMMY_MAIN() { return 1; }
11090 #endif
11091 int
11092 main ()
11093 {
11094 /* The GNU C library defines this for functions which it implements
11095     to always fail with ENOSYS.  Some functions are actually named
11096     something starting with __ and the normal name is an alias.  */
11097 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11098 choke me
11099 #else
11100 f = inet_ntop;
11101 #endif
11102
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109   (eval $ac_link) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest$ac_exeext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_func_inet_ntop=yes
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11123 ac_cv_func_inet_ntop=no
11124 fi
11125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11126 fi
11127 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11128 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11129 if test $ac_cv_func_inet_ntop = yes; then
11130
11131 cat >>confdefs.h <<\_ACEOF
11132 #define HAVE_IPV6 1
11133 _ACEOF
11134
11135 fi
11136
11137 fi
11138
11139
11140 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11141 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11142 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 #line $LINENO "configure"
11147 #include "confdefs.h"
11148 #include <machine/vmparam.h>
11149 #include <sys/exec.h>
11150
11151 #ifdef F77_DUMMY_MAIN
11152 #  ifdef __cplusplus
11153      extern "C"
11154 #  endif
11155    int F77_DUMMY_MAIN() { return 1; }
11156 #endif
11157 int
11158 main ()
11159 {
11160 PS_STRINGS->ps_nargvstr = 1;
11161 PS_STRINGS->ps_argvstr = "foo";
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 rm -f conftest.$ac_objext conftest$ac_exeext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11168   (eval $ac_link) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -s conftest$ac_exeext'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   pgac_cv_var_PS_STRINGS=yes
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 pgac_cv_var_PS_STRINGS=no
11183 fi
11184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185 fi
11186 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11187 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11188 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11189
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_PS_STRINGS
11192 _ACEOF
11193
11194 fi
11195
11196
11197 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11198 # is missing.  Yes, there are machines that have only one.  We may
11199 # also decide to use snprintf.c if snprintf() is present but does not
11200 # have working "long long int" support -- see below.
11201
11202 pgac_need_repl_snprintf=no
11203
11204 for ac_func in snprintf
11205 do
11206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11207 echo "$as_me:$LINENO: checking for $ac_func" >&5
11208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11209 if eval "test \"\${$as_ac_var+set}\" = set"; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11214 #include "confdefs.h"
11215 /* System header to define __stub macros and hopefully few prototypes,
11216     which can conflict with char $ac_func (); below.  */
11217 #include <assert.h>
11218 /* Override any gcc2 internal prototype to avoid an error.  */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 /* We use char because int might match the return type of a gcc2
11223    builtin and then its argument prototype would still apply.  */
11224 char $ac_func ();
11225 char (*f) ();
11226
11227 #ifdef F77_DUMMY_MAIN
11228 #  ifdef __cplusplus
11229      extern "C"
11230 #  endif
11231    int F77_DUMMY_MAIN() { return 1; }
11232 #endif
11233 int
11234 main ()
11235 {
11236 /* The GNU C library defines this for functions which it implements
11237     to always fail with ENOSYS.  Some functions are actually named
11238     something starting with __ and the normal name is an alias.  */
11239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11240 choke me
11241 #else
11242 f = $ac_func;
11243 #endif
11244
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251   (eval $ac_link) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -s conftest$ac_exeext'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; }; then
11261   eval "$as_ac_var=yes"
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11266 fi
11267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11268 fi
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272   cat >>confdefs.h <<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 _ACEOF
11275
11276 else
11277   pgac_need_repl_snprintf=yes
11278 fi
11279 done
11280
11281
11282 for ac_func in vsnprintf
11283 do
11284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11285 echo "$as_me:$LINENO: checking for $ac_func" >&5
11286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11287 if eval "test \"\${$as_ac_var+set}\" = set"; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   cat >conftest.$ac_ext <<_ACEOF
11291 #line $LINENO "configure"
11292 #include "confdefs.h"
11293 /* System header to define __stub macros and hopefully few prototypes,
11294     which can conflict with char $ac_func (); below.  */
11295 #include <assert.h>
11296 /* Override any gcc2 internal prototype to avoid an error.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 /* We use char because int might match the return type of a gcc2
11301    builtin and then its argument prototype would still apply.  */
11302 char $ac_func ();
11303 char (*f) ();
11304
11305 #ifdef F77_DUMMY_MAIN
11306 #  ifdef __cplusplus
11307      extern "C"
11308 #  endif
11309    int F77_DUMMY_MAIN() { return 1; }
11310 #endif
11311 int
11312 main ()
11313 {
11314 /* The GNU C library defines this for functions which it implements
11315     to always fail with ENOSYS.  Some functions are actually named
11316     something starting with __ and the normal name is an alias.  */
11317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11318 choke me
11319 #else
11320 f = $ac_func;
11321 #endif
11322
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329   (eval $ac_link) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -s conftest$ac_exeext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   eval "$as_ac_var=yes"
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11343 eval "$as_ac_var=no"
11344 fi
11345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11346 fi
11347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350   cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 _ACEOF
11353
11354 else
11355   pgac_need_repl_snprintf=yes
11356 fi
11357 done
11358
11359
11360
11361 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11362 # include/c.h will provide declarations.  Note this is a separate test
11363 # from whether the functions exist in the C library --- there are
11364 # systems that have the functions but don't bother to declare them :-(
11365
11366 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11367 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11368 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   cat >conftest.$ac_ext <<_ACEOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11374 $ac_includes_default
11375 #ifdef F77_DUMMY_MAIN
11376 #  ifdef __cplusplus
11377      extern "C"
11378 #  endif
11379    int F77_DUMMY_MAIN() { return 1; }
11380 #endif
11381 int
11382 main ()
11383 {
11384 #ifndef snprintf
11385   char *p = (char *) snprintf;
11386 #endif
11387
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11394   (eval $ac_compile) 2>&5
11395   ac_status=$?
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } &&
11398          { ac_try='test -s conftest.$ac_objext'
11399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400   (eval $ac_try) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_cv_have_decl_snprintf=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 ac_cv_have_decl_snprintf=no
11409 fi
11410 rm -f conftest.$ac_objext conftest.$ac_ext
11411 fi
11412 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11413 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11414 if test $ac_cv_have_decl_snprintf = yes; then
11415
11416 cat >>confdefs.h <<_ACEOF
11417 #define HAVE_DECL_SNPRINTF 1
11418 _ACEOF
11419
11420
11421 else
11422   cat >>confdefs.h <<_ACEOF
11423 #define HAVE_DECL_SNPRINTF 0
11424 _ACEOF
11425
11426
11427 fi
11428 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11429 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11430 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   cat >conftest.$ac_ext <<_ACEOF
11434 #line $LINENO "configure"
11435 #include "confdefs.h"
11436 $ac_includes_default
11437 #ifdef F77_DUMMY_MAIN
11438 #  ifdef __cplusplus
11439      extern "C"
11440 #  endif
11441    int F77_DUMMY_MAIN() { return 1; }
11442 #endif
11443 int
11444 main ()
11445 {
11446 #ifndef vsnprintf
11447   char *p = (char *) vsnprintf;
11448 #endif
11449
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456   (eval $ac_compile) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -s conftest.$ac_objext'
11461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462   (eval $ac_try) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   ac_cv_have_decl_vsnprintf=yes
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 cat conftest.$ac_ext >&5
11470 ac_cv_have_decl_vsnprintf=no
11471 fi
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11473 fi
11474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11475 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11476 if test $ac_cv_have_decl_vsnprintf = yes; then
11477
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_DECL_VSNPRINTF 1
11480 _ACEOF
11481
11482
11483 else
11484   cat >>confdefs.h <<_ACEOF
11485 #define HAVE_DECL_VSNPRINTF 0
11486 _ACEOF
11487
11488
11489 fi
11490
11491
11492
11493
11494 # do this one the hard way in case isinf() is a macro
11495 echo "$as_me:$LINENO: checking for isinf" >&5
11496 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11497 if test "${ac_cv_func_isinf+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11502 #include "confdefs.h"
11503 #include <math.h>
11504
11505 #ifdef F77_DUMMY_MAIN
11506 #  ifdef __cplusplus
11507      extern "C"
11508 #  endif
11509    int F77_DUMMY_MAIN() { return 1; }
11510 #endif
11511 int
11512 main ()
11513 {
11514 double x = 0.0; int res = isinf(x);
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521   (eval $ac_link) 2>&5
11522   ac_status=$?
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } &&
11525          { ac_try='test -s conftest$ac_exeext'
11526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527   (eval $ac_try) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }; then
11531   ac_cv_func_isinf=yes
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 ac_cv_func_isinf=no
11536 fi
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11540 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11541
11542 if test $ac_cv_func_isinf = yes ; then
11543
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_ISINF 1
11546 _ACEOF
11547
11548 else
11549   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11550   # Look for a way to implement a substitute for isinf()
11551
11552
11553
11554
11555 for ac_func in fpclass fp_class fp_class_d class
11556 do
11557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11558 echo "$as_me:$LINENO: checking for $ac_func" >&5
11559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11560 if eval "test \"\${$as_ac_var+set}\" = set"; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   cat >conftest.$ac_ext <<_ACEOF
11564 #line $LINENO "configure"
11565 #include "confdefs.h"
11566 /* System header to define __stub macros and hopefully few prototypes,
11567     which can conflict with char $ac_func (); below.  */
11568 #include <assert.h>
11569 /* Override any gcc2 internal prototype to avoid an error.  */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 /* We use char because int might match the return type of a gcc2
11574    builtin and then its argument prototype would still apply.  */
11575 char $ac_func ();
11576 char (*f) ();
11577
11578 #ifdef F77_DUMMY_MAIN
11579 #  ifdef __cplusplus
11580      extern "C"
11581 #  endif
11582    int F77_DUMMY_MAIN() { return 1; }
11583 #endif
11584 int
11585 main ()
11586 {
11587 /* The GNU C library defines this for functions which it implements
11588     to always fail with ENOSYS.  Some functions are actually named
11589     something starting with __ and the normal name is an alias.  */
11590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11591 choke me
11592 #else
11593 f = $ac_func;
11594 #endif
11595
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11602   (eval $ac_link) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -s conftest$ac_exeext'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; }; then
11612   eval "$as_ac_var=yes"
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 eval "$as_ac_var=no"
11617 fi
11618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11619 fi
11620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11622 if test `eval echo '${'$as_ac_var'}'` = yes; then
11623   cat >>confdefs.h <<_ACEOF
11624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11625 _ACEOF
11626  break
11627 fi
11628 done
11629
11630 fi
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11647 do
11648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11649 echo "$as_me:$LINENO: checking for $ac_func" >&5
11650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11651 if eval "test \"\${$as_ac_var+set}\" = set"; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654   cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657 /* System header to define __stub macros and hopefully few prototypes,
11658     which can conflict with char $ac_func (); below.  */
11659 #include <assert.h>
11660 /* Override any gcc2 internal prototype to avoid an error.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665    builtin and then its argument prototype would still apply.  */
11666 char $ac_func ();
11667 char (*f) ();
11668
11669 #ifdef F77_DUMMY_MAIN
11670 #  ifdef __cplusplus
11671      extern "C"
11672 #  endif
11673    int F77_DUMMY_MAIN() { return 1; }
11674 #endif
11675 int
11676 main ()
11677 {
11678 /* The GNU C library defines this for functions which it implements
11679     to always fail with ENOSYS.  Some functions are actually named
11680     something starting with __ and the normal name is an alias.  */
11681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11682 choke me
11683 #else
11684 f = $ac_func;
11685 #endif
11686
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693   (eval $ac_link) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   eval "$as_ac_var=yes"
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 eval "$as_ac_var=no"
11708 fi
11709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11710 fi
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714   cat >>confdefs.h <<_ACEOF
11715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11716 _ACEOF
11717
11718 else
11719   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11720 fi
11721 done
11722
11723
11724
11725 # system's version of getaddrinfo(), if any, may be used only if we found
11726 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11727 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11728
11729 for ac_func in getaddrinfo
11730 do
11731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11732 echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11734 if eval "test \"\${$as_ac_var+set}\" = set"; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737   cat >conftest.$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11739 #include "confdefs.h"
11740 /* System header to define __stub macros and hopefully few prototypes,
11741     which can conflict with char $ac_func (); below.  */
11742 #include <assert.h>
11743 /* Override any gcc2 internal prototype to avoid an error.  */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 /* We use char because int might match the return type of a gcc2
11748    builtin and then its argument prototype would still apply.  */
11749 char $ac_func ();
11750 char (*f) ();
11751
11752 #ifdef F77_DUMMY_MAIN
11753 #  ifdef __cplusplus
11754      extern "C"
11755 #  endif
11756    int F77_DUMMY_MAIN() { return 1; }
11757 #endif
11758 int
11759 main ()
11760 {
11761 /* The GNU C library defines this for functions which it implements
11762     to always fail with ENOSYS.  Some functions are actually named
11763     something starting with __ and the normal name is an alias.  */
11764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11765 choke me
11766 #else
11767 f = $ac_func;
11768 #endif
11769
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11776   (eval $ac_link) 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782   (eval $ac_try) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   eval "$as_ac_var=yes"
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 eval "$as_ac_var=no"
11791 fi
11792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11793 fi
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797   cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801 else
11802   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11803 fi
11804 done
11805
11806
11807 else
11808   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11809 fi
11810
11811 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11812 # We override the previous test that said fseeko/ftello didn't exist
11813 # OS tests are also done in include/c.h and port/fseeko.c
11814 case $host_os in bsdi*|netbsd*)
11815 ac_cv_func_fseeko=yes
11816 esac
11817
11818 # Solaris has a very slow qsort in certain cases, so we replace it.
11819 case $host_os in solaris*)
11820 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11821 esac
11822
11823 # Win32 can't to rename or unlink on an open file
11824 case $host_os in mingw*)
11825 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11826 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11827 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11828 esac
11829
11830 if test "$with_readline" = yes; then
11831   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11832 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 #include "confdefs.h"
11836 #include <stdio.h>
11837 #ifdef HAVE_READLINE_READLINE_H
11838 # include <readline/readline.h>
11839 #elif defined(HAVE_READLINE_H)
11840 # include <readline.h>
11841 #endif
11842
11843 #ifdef F77_DUMMY_MAIN
11844 #  ifdef __cplusplus
11845      extern "C"
11846 #  endif
11847    int F77_DUMMY_MAIN() { return 1; }
11848 #endif
11849 int
11850 main ()
11851 {
11852 rl_completion_append_character = 'x';
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext conftest$ac_exeext
11858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11859   (eval $ac_link) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } &&
11863          { ac_try='test -s conftest$ac_exeext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   echo "$as_me:$LINENO: result: yes" >&5
11870 echo "${ECHO_T}yes" >&6
11871
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11874 _ACEOF
11875
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 echo "$as_me:$LINENO: result: no" >&5
11880 echo "${ECHO_T}no" >&6
11881 fi
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11883
11884
11885 for ac_func in rl_completion_matches rl_filename_completion_function
11886 do
11887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11888 echo "$as_me:$LINENO: checking for $ac_func" >&5
11889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11890 if eval "test \"\${$as_ac_var+set}\" = set"; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893   cat >conftest.$ac_ext <<_ACEOF
11894 #line $LINENO "configure"
11895 #include "confdefs.h"
11896 /* System header to define __stub macros and hopefully few prototypes,
11897     which can conflict with char $ac_func (); below.  */
11898 #include <assert.h>
11899 /* Override any gcc2 internal prototype to avoid an error.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904    builtin and then its argument prototype would still apply.  */
11905 char $ac_func ();
11906 char (*f) ();
11907
11908 #ifdef F77_DUMMY_MAIN
11909 #  ifdef __cplusplus
11910      extern "C"
11911 #  endif
11912    int F77_DUMMY_MAIN() { return 1; }
11913 #endif
11914 int
11915 main ()
11916 {
11917 /* The GNU C library defines this for functions which it implements
11918     to always fail with ENOSYS.  Some functions are actually named
11919     something starting with __ and the normal name is an alias.  */
11920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11921 choke me
11922 #else
11923 f = $ac_func;
11924 #endif
11925
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -s conftest$ac_exeext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11946 eval "$as_ac_var=no"
11947 fi
11948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11949 fi
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953   cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11956
11957 fi
11958 done
11959
11960
11961 for ac_func in replace_history_entry
11962 do
11963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964 echo "$as_me:$LINENO: checking for $ac_func" >&5
11965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11966 if eval "test \"\${$as_ac_var+set}\" = set"; then
11967   echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969   cat >conftest.$ac_ext <<_ACEOF
11970 #line $LINENO "configure"
11971 #include "confdefs.h"
11972 /* System header to define __stub macros and hopefully few prototypes,
11973     which can conflict with char $ac_func (); below.  */
11974 #include <assert.h>
11975 /* Override any gcc2 internal prototype to avoid an error.  */
11976 #ifdef __cplusplus
11977 extern "C"
11978 #endif
11979 /* We use char because int might match the return type of a gcc2
11980    builtin and then its argument prototype would still apply.  */
11981 char $ac_func ();
11982 char (*f) ();
11983
11984 #ifdef F77_DUMMY_MAIN
11985 #  ifdef __cplusplus
11986      extern "C"
11987 #  endif
11988    int F77_DUMMY_MAIN() { return 1; }
11989 #endif
11990 int
11991 main ()
11992 {
11993 /* The GNU C library defines this for functions which it implements
11994     to always fail with ENOSYS.  Some functions are actually named
11995     something starting with __ and the normal name is an alias.  */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11997 choke me
11998 #else
11999 f = $ac_func;
12000 #endif
12001
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -s conftest$ac_exeext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   eval "$as_ac_var=yes"
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12022 eval "$as_ac_var=no"
12023 fi
12024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12025 fi
12026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12028 if test `eval echo '${'$as_ac_var'}'` = yes; then
12029   cat >>confdefs.h <<_ACEOF
12030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 _ACEOF
12032
12033 fi
12034 done
12035
12036 fi
12037
12038
12039 echo "$as_me:$LINENO: checking for finite" >&5
12040 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12044 #include <math.h>
12045 #ifdef F77_DUMMY_MAIN
12046 #  ifdef __cplusplus
12047      extern "C"
12048 #  endif
12049    int F77_DUMMY_MAIN() { return 1; }
12050 #endif
12051 int
12052 main ()
12053 {
12054 int dummy=finite(1.0);
12055   ;
12056   return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061   (eval $ac_link) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); } &&
12065          { ac_try='test -s conftest$ac_exeext'
12066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067   (eval $ac_try) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); }; }; then
12071
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_FINITE 1
12074 _ACEOF
12075
12076 echo "$as_me:$LINENO: result: yes" >&5
12077 echo "${ECHO_T}yes" >&6
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12081 echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6
12083 fi
12084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12085
12086 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12087 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091 #include <setjmp.h>
12092 #ifdef F77_DUMMY_MAIN
12093 #  ifdef __cplusplus
12094      extern "C"
12095 #  endif
12096    int F77_DUMMY_MAIN() { return 1; }
12097 #endif
12098 int
12099 main ()
12100 {
12101 sigjmp_buf x; sigsetjmp(x, 1);
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108   (eval $ac_link) 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -s conftest$ac_exeext'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; }; then
12118
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_SIGSETJMP 1
12121 _ACEOF
12122
12123 echo "$as_me:$LINENO: result: yes" >&5
12124 echo "${ECHO_T}yes" >&6
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 echo "$as_me:$LINENO: result: no" >&5
12129 echo "${ECHO_T}no" >&6
12130 fi
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132
12133 echo "$as_me:$LINENO: checking for syslog" >&5
12134 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12135 if test "${ac_cv_func_syslog+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   cat >conftest.$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141 /* System header to define __stub macros and hopefully few prototypes,
12142     which can conflict with char syslog (); below.  */
12143 #include <assert.h>
12144 /* Override any gcc2 internal prototype to avoid an error.  */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 /* We use char because int might match the return type of a gcc2
12149    builtin and then its argument prototype would still apply.  */
12150 char syslog ();
12151 char (*f) ();
12152
12153 #ifdef F77_DUMMY_MAIN
12154 #  ifdef __cplusplus
12155      extern "C"
12156 #  endif
12157    int F77_DUMMY_MAIN() { return 1; }
12158 #endif
12159 int
12160 main ()
12161 {
12162 /* The GNU C library defines this for functions which it implements
12163     to always fail with ENOSYS.  Some functions are actually named
12164     something starting with __ and the normal name is an alias.  */
12165 #if defined (__stub_syslog) || defined (__stub___syslog)
12166 choke me
12167 #else
12168 f = syslog;
12169 #endif
12170
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177   (eval $ac_link) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } &&
12181          { ac_try='test -s conftest$ac_exeext'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; }; then
12187   ac_cv_func_syslog=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12191 ac_cv_func_syslog=no
12192 fi
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12194 fi
12195 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12196 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12197 if test $ac_cv_func_syslog = yes; then
12198   if test "${ac_cv_header_syslog_h+set}" = set; then
12199   echo "$as_me:$LINENO: checking for syslog.h" >&5
12200 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12201 if test "${ac_cv_header_syslog_h+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 fi
12204 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12206 else
12207   # Is the header compilable?
12208 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12209 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 $ac_includes_default
12214 #include <syslog.h>
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218   (eval $ac_compile) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_header_compiler=yes
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 ac_header_compiler=no
12233 fi
12234 rm -f conftest.$ac_objext conftest.$ac_ext
12235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6
12237
12238 # Is the header present?
12239 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12240 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242 #line $LINENO "configure"
12243 #include "confdefs.h"
12244 #include <syslog.h>
12245 _ACEOF
12246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12248   ac_status=$?
12249   egrep -v '^ *\+' conftest.er1 >conftest.err
12250   rm -f conftest.er1
12251   cat conftest.err >&5
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } >/dev/null; then
12254   if test -s conftest.err; then
12255     ac_cpp_err=$ac_c_preproc_warn_flag
12256   else
12257     ac_cpp_err=
12258   fi
12259 else
12260   ac_cpp_err=yes
12261 fi
12262 if test -z "$ac_cpp_err"; then
12263   ac_header_preproc=yes
12264 else
12265   echo "$as_me: failed program was:" >&5
12266   cat conftest.$ac_ext >&5
12267   ac_header_preproc=no
12268 fi
12269 rm -f conftest.err conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6
12272
12273 # So?  What about this header?
12274 case $ac_header_compiler:$ac_header_preproc in
12275   yes:no )
12276     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12279 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12280   no:yes )
12281     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12282 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12284 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12285     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12287 esac
12288 echo "$as_me:$LINENO: checking for syslog.h" >&5
12289 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12290 if test "${ac_cv_header_syslog_h+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_cv_header_syslog_h=$ac_header_preproc
12294 fi
12295 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12296 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12297
12298 fi
12299 if test $ac_cv_header_syslog_h = yes; then
12300
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_SYSLOG 1
12303 _ACEOF
12304
12305 fi
12306
12307
12308 fi
12309
12310
12311 echo "$as_me:$LINENO: checking for optreset" >&5
12312 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12313 if test "${pgac_cv_var_int_optreset+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316   cat >conftest.$ac_ext <<_ACEOF
12317 #line $LINENO "configure"
12318 #include "confdefs.h"
12319 #include <unistd.h>
12320 #ifdef F77_DUMMY_MAIN
12321 #  ifdef __cplusplus
12322      extern "C"
12323 #  endif
12324    int F77_DUMMY_MAIN() { return 1; }
12325 #endif
12326 int
12327 main ()
12328 {
12329 extern int optreset; optreset = 1;
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336   (eval $ac_link) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); } &&
12340          { ac_try='test -s conftest$ac_exeext'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; }; then
12346   pgac_cv_var_int_optreset=yes
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 pgac_cv_var_int_optreset=no
12351 fi
12352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12353 fi
12354 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12355 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12356 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_INT_OPTRESET 1
12360 _ACEOF
12361
12362 fi
12363
12364
12365
12366 for ac_func in strtoll strtoq
12367 do
12368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12369 echo "$as_me:$LINENO: checking for $ac_func" >&5
12370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12371 if eval "test \"\${$as_ac_var+set}\" = set"; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 #include "confdefs.h"
12377 /* System header to define __stub macros and hopefully few prototypes,
12378     which can conflict with char $ac_func (); below.  */
12379 #include <assert.h>
12380 /* Override any gcc2 internal prototype to avoid an error.  */
12381 #ifdef __cplusplus
12382 extern "C"
12383 #endif
12384 /* We use char because int might match the return type of a gcc2
12385    builtin and then its argument prototype would still apply.  */
12386 char $ac_func ();
12387 char (*f) ();
12388
12389 #ifdef F77_DUMMY_MAIN
12390 #  ifdef __cplusplus
12391      extern "C"
12392 #  endif
12393    int F77_DUMMY_MAIN() { return 1; }
12394 #endif
12395 int
12396 main ()
12397 {
12398 /* The GNU C library defines this for functions which it implements
12399     to always fail with ENOSYS.  Some functions are actually named
12400     something starting with __ and the normal name is an alias.  */
12401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12402 choke me
12403 #else
12404 f = $ac_func;
12405 #endif
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413   (eval $ac_link) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -s conftest$ac_exeext'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; }; then
12423   eval "$as_ac_var=yes"
12424 else
12425   echo "$as_me: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 eval "$as_ac_var=no"
12428 fi
12429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12430 fi
12431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12433 if test `eval echo '${'$as_ac_var'}'` = yes; then
12434   cat >>confdefs.h <<_ACEOF
12435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12436 _ACEOF
12437  break
12438 fi
12439 done
12440
12441
12442
12443 for ac_func in strtoull strtouq
12444 do
12445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12446 echo "$as_me:$LINENO: checking for $ac_func" >&5
12447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12448 if eval "test \"\${$as_ac_var+set}\" = set"; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   cat >conftest.$ac_ext <<_ACEOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12454 /* System header to define __stub macros and hopefully few prototypes,
12455     which can conflict with char $ac_func (); below.  */
12456 #include <assert.h>
12457 /* Override any gcc2 internal prototype to avoid an error.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462    builtin and then its argument prototype would still apply.  */
12463 char $ac_func ();
12464 char (*f) ();
12465
12466 #ifdef F77_DUMMY_MAIN
12467 #  ifdef __cplusplus
12468      extern "C"
12469 #  endif
12470    int F77_DUMMY_MAIN() { return 1; }
12471 #endif
12472 int
12473 main ()
12474 {
12475 /* The GNU C library defines this for functions which it implements
12476     to always fail with ENOSYS.  Some functions are actually named
12477     something starting with __ and the normal name is an alias.  */
12478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12479 choke me
12480 #else
12481 f = $ac_func;
12482 #endif
12483
12484   ;
12485   return 0;
12486 }
12487 _ACEOF
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12490   (eval $ac_link) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); } &&
12494          { ac_try='test -s conftest$ac_exeext'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   eval "$as_ac_var=yes"
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 eval "$as_ac_var=no"
12505 fi
12506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12507 fi
12508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12510 if test `eval echo '${'$as_ac_var'}'` = yes; then
12511   cat >>confdefs.h <<_ACEOF
12512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12513 _ACEOF
12514  break
12515 fi
12516 done
12517
12518
12519 # Check for one of atexit() or on_exit()
12520
12521 for ac_func in atexit
12522 do
12523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12524 echo "$as_me:$LINENO: checking for $ac_func" >&5
12525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12526 if eval "test \"\${$as_ac_var+set}\" = set"; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   cat >conftest.$ac_ext <<_ACEOF
12530 #line $LINENO "configure"
12531 #include "confdefs.h"
12532 /* System header to define __stub macros and hopefully few prototypes,
12533     which can conflict with char $ac_func (); below.  */
12534 #include <assert.h>
12535 /* Override any gcc2 internal prototype to avoid an error.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 /* We use char because int might match the return type of a gcc2
12540    builtin and then its argument prototype would still apply.  */
12541 char $ac_func ();
12542 char (*f) ();
12543
12544 #ifdef F77_DUMMY_MAIN
12545 #  ifdef __cplusplus
12546      extern "C"
12547 #  endif
12548    int F77_DUMMY_MAIN() { return 1; }
12549 #endif
12550 int
12551 main ()
12552 {
12553 /* The GNU C library defines this for functions which it implements
12554     to always fail with ENOSYS.  Some functions are actually named
12555     something starting with __ and the normal name is an alias.  */
12556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12557 choke me
12558 #else
12559 f = $ac_func;
12560 #endif
12561
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568   (eval $ac_link) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -s conftest$ac_exeext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   eval "$as_ac_var=yes"
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 eval "$as_ac_var=no"
12583 fi
12584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12585 fi
12586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12588 if test `eval echo '${'$as_ac_var'}'` = yes; then
12589   cat >>confdefs.h <<_ACEOF
12590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591 _ACEOF
12592
12593 else
12594
12595 for ac_func in on_exit
12596 do
12597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598 echo "$as_me:$LINENO: checking for $ac_func" >&5
12599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_var+set}\" = set"; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 /* System header to define __stub macros and hopefully few prototypes,
12607     which can conflict with char $ac_func (); below.  */
12608 #include <assert.h>
12609 /* Override any gcc2 internal prototype to avoid an error.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 /* We use char because int might match the return type of a gcc2
12614    builtin and then its argument prototype would still apply.  */
12615 char $ac_func ();
12616 char (*f) ();
12617
12618 #ifdef F77_DUMMY_MAIN
12619 #  ifdef __cplusplus
12620      extern "C"
12621 #  endif
12622    int F77_DUMMY_MAIN() { return 1; }
12623 #endif
12624 int
12625 main ()
12626 {
12627 /* The GNU C library defines this for functions which it implements
12628     to always fail with ENOSYS.  Some functions are actually named
12629     something starting with __ and the normal name is an alias.  */
12630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12631 choke me
12632 #else
12633 f = $ac_func;
12634 #endif
12635
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642   (eval $ac_link) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } &&
12646          { ac_try='test -s conftest$ac_exeext'
12647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648   (eval $ac_try) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; }; then
12652   eval "$as_ac_var=yes"
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 eval "$as_ac_var=no"
12657 fi
12658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12659 fi
12660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12662 if test `eval echo '${'$as_ac_var'}'` = yes; then
12663   cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12665 _ACEOF
12666
12667 else
12668   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12669 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12670    { (exit 1); exit 1; }; }
12671 fi
12672 done
12673
12674 fi
12675 done
12676
12677
12678 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12679 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12680 if test "${ac_cv_sys_largefile_source+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   while :; do
12684   ac_cv_sys_largefile_source=no
12685   cat >conftest.$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 #include "confdefs.h"
12688 #include <stdio.h>
12689 #ifdef F77_DUMMY_MAIN
12690 #  ifdef __cplusplus
12691      extern "C"
12692 #  endif
12693    int F77_DUMMY_MAIN() { return 1; }
12694 #endif
12695 int
12696 main ()
12697 {
12698 return !fseeko;
12699   ;
12700   return 0;
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -s conftest.$ac_objext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   break
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 cat conftest.$ac_ext >&5
12719 fi
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12721   cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 #define _LARGEFILE_SOURCE 1
12725 #include <stdio.h>
12726 #ifdef F77_DUMMY_MAIN
12727 #  ifdef __cplusplus
12728      extern "C"
12729 #  endif
12730    int F77_DUMMY_MAIN() { return 1; }
12731 #endif
12732 int
12733 main ()
12734 {
12735 return !fseeko;
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742   (eval $ac_compile) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } &&
12746          { ac_try='test -s conftest.$ac_objext'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; }; then
12752   ac_cv_sys_largefile_source=1; break
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12756 fi
12757 rm -f conftest.$ac_objext conftest.$ac_ext
12758   break
12759 done
12760 fi
12761 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12762 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12763 if test "$ac_cv_sys_largefile_source" != no; then
12764
12765 cat >>confdefs.h <<_ACEOF
12766 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12767 _ACEOF
12768
12769 fi
12770 rm -f conftest*
12771
12772 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12773 # in glibc 2.1.3, but that breaks too many other things.
12774 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12775 echo "$as_me:$LINENO: checking for fseeko" >&5
12776 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12777 if test "${ac_cv_func_fseeko+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12783 #include <stdio.h>
12784 #ifdef F77_DUMMY_MAIN
12785 #  ifdef __cplusplus
12786      extern "C"
12787 #  endif
12788    int F77_DUMMY_MAIN() { return 1; }
12789 #endif
12790 int
12791 main ()
12792 {
12793 return fseeko && fseeko (stdin, 0, 0);
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 rm -f conftest.$ac_objext conftest$ac_exeext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12800   (eval $ac_link) 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } &&
12804          { ac_try='test -s conftest$ac_exeext'
12805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806   (eval $ac_try) 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; }; then
12810   ac_cv_func_fseeko=yes
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 cat conftest.$ac_ext >&5
12814 ac_cv_func_fseeko=no
12815 fi
12816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12817 fi
12818 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12820 if test $ac_cv_func_fseeko = yes; then
12821
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_FSEEKO 1
12824 _ACEOF
12825
12826 fi
12827
12828
12829 #
12830 # Check for re-entrant versions of certain functions
12831 #
12832 # Include special flags if required
12833 #
12834 _CFLAGS="$CFLAGS"
12835 _LIB="$LIBS"
12836 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12837 LIBS="$LIBS $THREAD_LIBS"
12838
12839
12840
12841 for ac_func in strerror_r getpwuid_r gethostbyname_r
12842 do
12843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_var+set}\" = set"; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 #include "confdefs.h"
12852 /* System header to define __stub macros and hopefully few prototypes,
12853     which can conflict with char $ac_func (); below.  */
12854 #include <assert.h>
12855 /* Override any gcc2 internal prototype to avoid an error.  */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 /* We use char because int might match the return type of a gcc2
12860    builtin and then its argument prototype would still apply.  */
12861 char $ac_func ();
12862 char (*f) ();
12863
12864 #ifdef F77_DUMMY_MAIN
12865 #  ifdef __cplusplus
12866      extern "C"
12867 #  endif
12868    int F77_DUMMY_MAIN() { return 1; }
12869 #endif
12870 int
12871 main ()
12872 {
12873 /* The GNU C library defines this for functions which it implements
12874     to always fail with ENOSYS.  Some functions are actually named
12875     something starting with __ and the normal name is an alias.  */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12877 choke me
12878 #else
12879 f = $ac_func;
12880 #endif
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888   (eval $ac_link) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } &&
12892          { ac_try='test -s conftest$ac_exeext'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; }; then
12898   eval "$as_ac_var=yes"
12899 else
12900   echo "$as_me: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 eval "$as_ac_var=no"
12903 fi
12904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12905 fi
12906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12908 if test `eval echo '${'$as_ac_var'}'` = yes; then
12909   cat >>confdefs.h <<_ACEOF
12910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12911 _ACEOF
12912
12913 fi
12914 done
12915
12916 CFLAGS="$_CFLAGS"
12917 LIB="$_LIBS"
12918
12919
12920
12921 # This test makes sure that run tests work at all.  Sometimes a shared
12922 # library is found by the linker, but the runtime linker can't find it.
12923 # This check should come after all modifications of compiler or linker
12924 # variables, and before any other run tests.
12925 echo "$as_me:$LINENO: checking test program" >&5
12926 echo $ECHO_N "checking test program... $ECHO_C" >&6
12927 if test "$cross_compiling" = yes; then
12928   echo "$as_me:$LINENO: result: cross-compiling" >&5
12929 echo "${ECHO_T}cross-compiling" >&6
12930 else
12931   cat >conftest.$ac_ext <<_ACEOF
12932 #line $LINENO "configure"
12933 #include "confdefs.h"
12934 int main() { return 0; }
12935 _ACEOF
12936 rm -f conftest$ac_exeext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12938   (eval $ac_link) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   echo "$as_me:$LINENO: result: ok" >&5
12948 echo "${ECHO_T}ok" >&6
12949 else
12950   echo "$as_me: program exited with status $ac_status" >&5
12951 echo "$as_me: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 ( exit $ac_status )
12954 echo "$as_me:$LINENO: result: failed" >&5
12955 echo "${ECHO_T}failed" >&6
12956 { { echo "$as_me:$LINENO: error:
12957 *** Could not execute a simple test program.  This may be a problem
12958 *** related to locating shared libraries.  Check the file 'config.log'
12959 *** for the exact reason." >&5
12960 echo "$as_me: error:
12961 *** Could not execute a simple test program.  This may be a problem
12962 *** related to locating shared libraries.  Check the file 'config.log'
12963 *** for the exact reason." >&2;}
12964    { (exit 1); exit 1; }; }
12965 fi
12966 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12967 fi
12968
12969
12970
12971 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12972 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12973 if test "${pgac_cv_type_long_int_64+set}" = set; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976   if test "$cross_compiling" = yes; then
12977   # If cross-compiling, check the size reported by the compiler and
12978 # trust that the arithmetic works.
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12982
12983 #ifdef F77_DUMMY_MAIN
12984 #  ifdef __cplusplus
12985      extern "C"
12986 #  endif
12987    int F77_DUMMY_MAIN() { return 1; }
12988 #endif
12989 int
12990 main ()
12991 {
12992 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12993 test_array [0] = 0
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001   (eval $ac_compile) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -s conftest.$ac_objext'
13006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007   (eval $ac_try) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; }; then
13011   pgac_cv_type_long_int_64=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13015 pgac_cv_type_long_int_64=no
13016 fi
13017 rm -f conftest.$ac_objext conftest.$ac_ext
13018 else
13019   cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 typedef long int int64;
13023
13024 /*
13025  * These are globals to discourage the compiler from folding all the
13026  * arithmetic tests down to compile-time constants.
13027  */
13028 int64 a = 20000001;
13029 int64 b = 40000005;
13030
13031 int does_int64_work()
13032 {
13033   int64 c,d;
13034
13035   if (sizeof(int64) != 8)
13036     return 0;                   /* definitely not the right size */
13037
13038   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13039   c = a * b;
13040   d = (c + b) / b;
13041   if (d != a+1)
13042     return 0;
13043   return 1;
13044 }
13045 main() {
13046   exit(! does_int64_work());
13047 }
13048 _ACEOF
13049 rm -f conftest$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051   (eval $ac_link) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056   (eval $ac_try) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; }; then
13060   pgac_cv_type_long_int_64=yes
13061 else
13062   echo "$as_me: program exited with status $ac_status" >&5
13063 echo "$as_me: failed program was:" >&5
13064 cat conftest.$ac_ext >&5
13065 ( exit $ac_status )
13066 pgac_cv_type_long_int_64=no
13067 fi
13068 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13069 fi
13070 fi
13071 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13072 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13073
13074 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13075 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13076
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_LONG_INT_64
13079 _ACEOF
13080
13081 fi
13082
13083
13084 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13085   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13086 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13087 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   if test "$cross_compiling" = yes; then
13091   # If cross-compiling, check the size reported by the compiler and
13092 # trust that the arithmetic works.
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 #include "confdefs.h"
13096
13097 #ifdef F77_DUMMY_MAIN
13098 #  ifdef __cplusplus
13099      extern "C"
13100 #  endif
13101    int F77_DUMMY_MAIN() { return 1; }
13102 #endif
13103 int
13104 main ()
13105 {
13106 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13107 test_array [0] = 0
13108
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115   (eval $ac_compile) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -s conftest.$ac_objext'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; }; then
13125   pgac_cv_type_long_long_int_64=yes
13126 else
13127   echo "$as_me: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 pgac_cv_type_long_long_int_64=no
13130 fi
13131 rm -f conftest.$ac_objext conftest.$ac_ext
13132 else
13133   cat >conftest.$ac_ext <<_ACEOF
13134 #line $LINENO "configure"
13135 #include "confdefs.h"
13136 typedef long long int int64;
13137
13138 /*
13139  * These are globals to discourage the compiler from folding all the
13140  * arithmetic tests down to compile-time constants.
13141  */
13142 int64 a = 20000001;
13143 int64 b = 40000005;
13144
13145 int does_int64_work()
13146 {
13147   int64 c,d;
13148
13149   if (sizeof(int64) != 8)
13150     return 0;                   /* definitely not the right size */
13151
13152   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13153   c = a * b;
13154   d = (c + b) / b;
13155   if (d != a+1)
13156     return 0;
13157   return 1;
13158 }
13159 main() {
13160   exit(! does_int64_work());
13161 }
13162 _ACEOF
13163 rm -f conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165   (eval $ac_link) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; }; then
13174   pgac_cv_type_long_long_int_64=yes
13175 else
13176   echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 cat conftest.$ac_ext >&5
13179 ( exit $ac_status )
13180 pgac_cv_type_long_long_int_64=no
13181 fi
13182 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13183 fi
13184 fi
13185 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13186 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13187
13188 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13189 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_LONG_LONG_INT_64
13193 _ACEOF
13194
13195 fi
13196
13197 fi
13198
13199
13200
13201 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13202   cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13205
13206 #define INT64CONST(x)  x##LL
13207 long long int foo = INT64CONST(0x1234567890123456);
13208
13209 #ifdef F77_DUMMY_MAIN
13210 #  ifdef __cplusplus
13211      extern "C"
13212 #  endif
13213    int F77_DUMMY_MAIN() { return 1; }
13214 #endif
13215 int
13216 main ()
13217 {
13218
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225   (eval $ac_compile) 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -s conftest.$ac_objext'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; }; then
13235
13236 cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_LL_CONSTANTS 1
13238 _ACEOF
13239
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13243 fi
13244 rm -f conftest.$ac_objext conftest.$ac_ext
13245 fi
13246
13247
13248 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13249 # we found we need to use "long long int", better check.  We cope with
13250 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13251 # neither works, fall back to our own snprintf emulation (which we
13252 # know uses %lld).
13253
13254 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13255   if test $pgac_need_repl_snprintf = no; then
13256     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13257 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13258 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   for pgac_format in '%lld' '%qd' '%I64d'; do
13262 if test "$cross_compiling" = yes; then
13263   pgac_cv_snprintf_long_long_int_format=cross; break
13264 else
13265   cat >conftest.$ac_ext <<_ACEOF
13266 #line $LINENO "configure"
13267 #include "confdefs.h"
13268 #include <stdio.h>
13269 typedef long long int int64;
13270 #define INT64_FORMAT "$pgac_format"
13271
13272 int64 a = 20000001;
13273 int64 b = 40000005;
13274
13275 int does_int64_snprintf_work()
13276 {
13277   int64 c;
13278   char buf[100];
13279
13280   if (sizeof(int64) != 8)
13281     return 0;                   /* doesn't look like the right size */
13282
13283   c = a * b;
13284   snprintf(buf, 100, INT64_FORMAT, c);
13285   if (strcmp(buf, "800000140000005") != 0)
13286     return 0;                   /* either multiply or snprintf is busted */
13287   return 1;
13288 }
13289 main() {
13290   exit(! does_int64_snprintf_work());
13291 }
13292 _ACEOF
13293 rm -f conftest$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295   (eval $ac_link) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300   (eval $ac_try) 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; }; then
13304   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13305 else
13306   echo "$as_me: program exited with status $ac_status" >&5
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 fi
13310 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13311 fi
13312 done
13313 fi
13314
13315 LONG_LONG_INT_FORMAT=''
13316
13317 case $pgac_cv_snprintf_long_long_int_format in
13318   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13319 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13320   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13321 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13322          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13323   *)     echo "$as_me:$LINENO: result: none" >&5
13324 echo "${ECHO_T}none" >&6;;
13325 esac
13326     if test "$LONG_LONG_INT_FORMAT" = ""; then
13327       # Force usage of our own snprintf, since system snprintf is broken
13328       pgac_need_repl_snprintf=yes
13329       LONG_LONG_INT_FORMAT='%lld'
13330     fi
13331   else
13332     # Here if we previously decided we needed to use our own snprintf
13333     LONG_LONG_INT_FORMAT='%lld'
13334   fi
13335   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13336 else
13337   # Here if we are not using 'long long int' at all
13338   INT64_FORMAT='"%ld"'
13339 fi
13340
13341
13342 cat >>confdefs.h <<_ACEOF
13343 #define INT64_FORMAT $INT64_FORMAT
13344 _ACEOF
13345
13346
13347 if test $pgac_need_repl_snprintf = yes; then
13348   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13349 fi
13350
13351 # Need a #define for the size of Datum (unsigned long)
13352 echo "$as_me:$LINENO: checking for unsigned long" >&5
13353 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13354 if test "${ac_cv_type_unsigned_long+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357   cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 #include "confdefs.h"
13360 $ac_includes_default
13361 #ifdef F77_DUMMY_MAIN
13362 #  ifdef __cplusplus
13363      extern "C"
13364 #  endif
13365    int F77_DUMMY_MAIN() { return 1; }
13366 #endif
13367 int
13368 main ()
13369 {
13370 if ((unsigned long *) 0)
13371   return 0;
13372 if (sizeof (unsigned long))
13373   return 0;
13374   ;
13375   return 0;
13376 }
13377 _ACEOF
13378 rm -f conftest.$ac_objext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380   (eval $ac_compile) 2>&5
13381   ac_status=$?
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -s conftest.$ac_objext'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_cv_type_unsigned_long=yes
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ac_cv_type_unsigned_long=no
13395 fi
13396 rm -f conftest.$ac_objext conftest.$ac_ext
13397 fi
13398 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13399 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13400
13401 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13402 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13403 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   if test "$ac_cv_type_unsigned_long" = yes; then
13407   # The cast to unsigned long works around a bug in the HP C Compiler
13408   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13409   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13410   # This bug is HP SR number 8606223364.
13411   if test "$cross_compiling" = yes; then
13412   # Depending upon the size, compute the lo and hi bounds.
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13415 #include "confdefs.h"
13416 $ac_includes_default
13417 #ifdef F77_DUMMY_MAIN
13418 #  ifdef __cplusplus
13419      extern "C"
13420 #  endif
13421    int F77_DUMMY_MAIN() { return 1; }
13422 #endif
13423 int
13424 main ()
13425 {
13426 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13427 test_array [0] = 0
13428
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_lo=0 ac_mid=0
13446   while :; do
13447     cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 #include "confdefs.h"
13450 $ac_includes_default
13451 #ifdef F77_DUMMY_MAIN
13452 #  ifdef __cplusplus
13453      extern "C"
13454 #  endif
13455    int F77_DUMMY_MAIN() { return 1; }
13456 #endif
13457 int
13458 main ()
13459 {
13460 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13461 test_array [0] = 0
13462
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469   (eval $ac_compile) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_hi=$ac_mid; break
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 ac_lo=`expr $ac_mid + 1`
13484                     if test $ac_lo -le $ac_mid; then
13485                       ac_lo= ac_hi=
13486                       break
13487                     fi
13488                     ac_mid=`expr 2 '*' $ac_mid + 1`
13489 fi
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13491   done
13492 else
13493   echo "$as_me: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13495 cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13497 #include "confdefs.h"
13498 $ac_includes_default
13499 #ifdef F77_DUMMY_MAIN
13500 #  ifdef __cplusplus
13501      extern "C"
13502 #  endif
13503    int F77_DUMMY_MAIN() { return 1; }
13504 #endif
13505 int
13506 main ()
13507 {
13508 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13509 test_array [0] = 0
13510
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517   (eval $ac_compile) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } &&
13521          { ac_try='test -s conftest.$ac_objext'
13522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523   (eval $ac_try) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_hi=-1 ac_mid=-1
13528   while :; do
13529     cat >conftest.$ac_ext <<_ACEOF
13530 #line $LINENO "configure"
13531 #include "confdefs.h"
13532 $ac_includes_default
13533 #ifdef F77_DUMMY_MAIN
13534 #  ifdef __cplusplus
13535      extern "C"
13536 #  endif
13537    int F77_DUMMY_MAIN() { return 1; }
13538 #endif
13539 int
13540 main ()
13541 {
13542 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13543 test_array [0] = 0
13544
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551   (eval $ac_compile) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -s conftest.$ac_objext'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; }; then
13561   ac_lo=$ac_mid; break
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 ac_hi=`expr '(' $ac_mid ')' - 1`
13566                        if test $ac_mid -le $ac_hi; then
13567                          ac_lo= ac_hi=
13568                          break
13569                        fi
13570                        ac_mid=`expr 2 '*' $ac_mid`
13571 fi
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13573   done
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 ac_lo= ac_hi=
13578 fi
13579 rm -f conftest.$ac_objext conftest.$ac_ext
13580 fi
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13582 # Binary search between lo and hi bounds.
13583 while test "x$ac_lo" != "x$ac_hi"; do
13584   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13585   cat >conftest.$ac_ext <<_ACEOF
13586 #line $LINENO "configure"
13587 #include "confdefs.h"
13588 $ac_includes_default
13589 #ifdef F77_DUMMY_MAIN
13590 #  ifdef __cplusplus
13591      extern "C"
13592 #  endif
13593    int F77_DUMMY_MAIN() { return 1; }
13594 #endif
13595 int
13596 main ()
13597 {
13598 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13599 test_array [0] = 0
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607   (eval $ac_compile) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -s conftest.$ac_objext'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617   ac_hi=$ac_mid
13618 else
13619   echo "$as_me: failed program was:" >&5
13620 cat conftest.$ac_ext >&5
13621 ac_lo=`expr '(' $ac_mid ')' + 1`
13622 fi
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 done
13625 case $ac_lo in
13626 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13628 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13629    { (exit 1); exit 1; }; } ;;
13630 esac
13631 else
13632   if test "$cross_compiling" = yes; then
13633   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13634 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13635    { (exit 1); exit 1; }; }
13636 else
13637   cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 #include "confdefs.h"
13640 $ac_includes_default
13641 long longval () { return (long) (sizeof (unsigned long)); }
13642 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13643 #include <stdio.h>
13644 #include <stdlib.h>
13645 #ifdef F77_DUMMY_MAIN
13646 #  ifdef __cplusplus
13647      extern "C"
13648 #  endif
13649    int F77_DUMMY_MAIN() { return 1; }
13650 #endif
13651 int
13652 main ()
13653 {
13654
13655   FILE *f = fopen ("conftest.val", "w");
13656   if (! f)
13657     exit (1);
13658   if (((long) (sizeof (unsigned long))) < 0)
13659     {
13660       long i = longval ();
13661       if (i != ((long) (sizeof (unsigned long))))
13662         exit (1);
13663       fprintf (f, "%ld\n", i);
13664     }
13665   else
13666     {
13667       unsigned long i = ulongval ();
13668       if (i != ((long) (sizeof (unsigned long))))
13669         exit (1);
13670       fprintf (f, "%lu\n", i);
13671     }
13672   exit (ferror (f) || fclose (f) != 0);
13673
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680   (eval $ac_link) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13690 else
13691   echo "$as_me: program exited with status $ac_status" >&5
13692 echo "$as_me: failed program was:" >&5
13693 cat conftest.$ac_ext >&5
13694 ( exit $ac_status )
13695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13696 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13697    { (exit 1); exit 1; }; }
13698 fi
13699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13700 fi
13701 fi
13702 rm -f conftest.val
13703 else
13704   ac_cv_sizeof_unsigned_long=0
13705 fi
13706 fi
13707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13708 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13709 cat >>confdefs.h <<_ACEOF
13710 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13711 _ACEOF
13712
13713
13714
13715 # Determine memory alignment requirements for the basic C data types.
13716
13717 echo "$as_me:$LINENO: checking for short" >&5
13718 echo $ECHO_N "checking for short... $ECHO_C" >&6
13719 if test "${ac_cv_type_short+set}" = set; then
13720   echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722   cat >conftest.$ac_ext <<_ACEOF
13723 #line $LINENO "configure"
13724 #include "confdefs.h"
13725 $ac_includes_default
13726 #ifdef F77_DUMMY_MAIN
13727 #  ifdef __cplusplus
13728      extern "C"
13729 #  endif
13730    int F77_DUMMY_MAIN() { return 1; }
13731 #endif
13732 int
13733 main ()
13734 {
13735 if ((short *) 0)
13736   return 0;
13737 if (sizeof (short))
13738   return 0;
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745   (eval $ac_compile) 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -s conftest.$ac_objext'
13750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751   (eval $ac_try) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   ac_cv_type_short=yes
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 ac_cv_type_short=no
13760 fi
13761 rm -f conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13764 echo "${ECHO_T}$ac_cv_type_short" >&6
13765
13766 echo "$as_me:$LINENO: checking alignment of short" >&5
13767 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13768 if test "${pgac_cv_alignof_short+set}" = set; then
13769   echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771   if test "$ac_cv_type_short" = yes; then
13772   if test "$cross_compiling" = yes; then
13773   # Depending upon the size, compute the lo and hi bounds.
13774 cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 #include "confdefs.h"
13777 $ac_includes_default
13778 struct { char filler; short field; } pgac_struct;
13779 #ifdef F77_DUMMY_MAIN
13780 #  ifdef __cplusplus
13781      extern "C"
13782 #  endif
13783    int F77_DUMMY_MAIN() { return 1; }
13784 #endif
13785 int
13786 main ()
13787 {
13788 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13789 test_array [0] = 0
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797   (eval $ac_compile) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -s conftest.$ac_objext'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; }; then
13807   ac_lo=0 ac_mid=0
13808   while :; do
13809     cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 $ac_includes_default
13813 struct { char filler; short field; } pgac_struct;
13814 #ifdef F77_DUMMY_MAIN
13815 #  ifdef __cplusplus
13816      extern "C"
13817 #  endif
13818    int F77_DUMMY_MAIN() { return 1; }
13819 #endif
13820 int
13821 main ()
13822 {
13823 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13824 test_array [0] = 0
13825
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832   (eval $ac_compile) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } &&
13836          { ac_try='test -s conftest.$ac_objext'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_hi=$ac_mid; break
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13846 ac_lo=`expr $ac_mid + 1`
13847                     if test $ac_lo -le $ac_mid; then
13848                       ac_lo= ac_hi=
13849                       break
13850                     fi
13851                     ac_mid=`expr 2 '*' $ac_mid + 1`
13852 fi
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13854   done
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 cat >conftest.$ac_ext <<_ACEOF
13859 #line $LINENO "configure"
13860 #include "confdefs.h"
13861 $ac_includes_default
13862 struct { char filler; short field; } pgac_struct;
13863 #ifdef F77_DUMMY_MAIN
13864 #  ifdef __cplusplus
13865      extern "C"
13866 #  endif
13867    int F77_DUMMY_MAIN() { return 1; }
13868 #endif
13869 int
13870 main ()
13871 {
13872 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13873 test_array [0] = 0
13874
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881   (eval $ac_compile) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); } &&
13885          { ac_try='test -s conftest.$ac_objext'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; }; then
13891   ac_hi=-1 ac_mid=-1
13892   while :; do
13893     cat >conftest.$ac_ext <<_ACEOF
13894 #line $LINENO "configure"
13895 #include "confdefs.h"
13896 $ac_includes_default
13897 struct { char filler; short field; } pgac_struct;
13898 #ifdef F77_DUMMY_MAIN
13899 #  ifdef __cplusplus
13900      extern "C"
13901 #  endif
13902    int F77_DUMMY_MAIN() { return 1; }
13903 #endif
13904 int
13905 main ()
13906 {
13907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13908 test_array [0] = 0
13909
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916   (eval $ac_compile) 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -s conftest.$ac_objext'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; }; then
13926   ac_lo=$ac_mid; break
13927 else
13928   echo "$as_me: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 ac_hi=`expr '(' $ac_mid ')' - 1`
13931                        if test $ac_mid -le $ac_hi; then
13932                          ac_lo= ac_hi=
13933                          break
13934                        fi
13935                        ac_mid=`expr 2 '*' $ac_mid`
13936 fi
13937 rm -f conftest.$ac_objext conftest.$ac_ext
13938   done
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 ac_lo= ac_hi=
13943 fi
13944 rm -f conftest.$ac_objext conftest.$ac_ext
13945 fi
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947 # Binary search between lo and hi bounds.
13948 while test "x$ac_lo" != "x$ac_hi"; do
13949   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13950   cat >conftest.$ac_ext <<_ACEOF
13951 #line $LINENO "configure"
13952 #include "confdefs.h"
13953 $ac_includes_default
13954 struct { char filler; short field; } pgac_struct;
13955 #ifdef F77_DUMMY_MAIN
13956 #  ifdef __cplusplus
13957      extern "C"
13958 #  endif
13959    int F77_DUMMY_MAIN() { return 1; }
13960 #endif
13961 int
13962 main ()
13963 {
13964 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13965 test_array [0] = 0
13966
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973   (eval $ac_compile) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } &&
13977          { ac_try='test -s conftest.$ac_objext'
13978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979   (eval $ac_try) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; }; then
13983   ac_hi=$ac_mid
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13987 ac_lo=`expr '(' $ac_mid ')' + 1`
13988 fi
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13990 done
13991 case $ac_lo in
13992 ?*) pgac_cv_alignof_short=$ac_lo;;
13993 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13994 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13995    { (exit 1); exit 1; }; } ;;
13996 esac
13997 else
13998   if test "$cross_compiling" = yes; then
13999   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14000 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14001    { (exit 1); exit 1; }; }
14002 else
14003   cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14005 #include "confdefs.h"
14006 $ac_includes_default
14007 struct { char filler; short field; } pgac_struct;
14008 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14009 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14010 #include <stdio.h>
14011 #include <stdlib.h>
14012 #ifdef F77_DUMMY_MAIN
14013 #  ifdef __cplusplus
14014      extern "C"
14015 #  endif
14016    int F77_DUMMY_MAIN() { return 1; }
14017 #endif
14018 int
14019 main ()
14020 {
14021
14022   FILE *f = fopen ("conftest.val", "w");
14023   if (! f)
14024     exit (1);
14025   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14026     {
14027       long i = longval ();
14028       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14029         exit (1);
14030       fprintf (f, "%ld\n", i);
14031     }
14032   else
14033     {
14034       unsigned long i = ulongval ();
14035       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14036         exit (1);
14037       fprintf (f, "%lu\n", i);
14038     }
14039   exit (ferror (f) || fclose (f) != 0);
14040
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest$ac_exeext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14047   (eval $ac_link) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   pgac_cv_alignof_short=`cat conftest.val`
14057 else
14058   echo "$as_me: program exited with status $ac_status" >&5
14059 echo "$as_me: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 ( exit $ac_status )
14062 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14063 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14064    { (exit 1); exit 1; }; }
14065 fi
14066 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14067 fi
14068 fi
14069 rm -f conftest.val
14070 else
14071   pgac_cv_alignof_short=0
14072 fi
14073 fi
14074 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14075 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14076 cat >>confdefs.h <<_ACEOF
14077 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14078 _ACEOF
14079
14080
14081 echo "$as_me:$LINENO: checking for int" >&5
14082 echo $ECHO_N "checking for int... $ECHO_C" >&6
14083 if test "${ac_cv_type_int+set}" = set; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   cat >conftest.$ac_ext <<_ACEOF
14087 #line $LINENO "configure"
14088 #include "confdefs.h"
14089 $ac_includes_default
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 if ((int *) 0)
14100   return 0;
14101 if (sizeof (int))
14102   return 0;
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109   (eval $ac_compile) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); } &&
14113          { ac_try='test -s conftest.$ac_objext'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119   ac_cv_type_int=yes
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 ac_cv_type_int=no
14124 fi
14125 rm -f conftest.$ac_objext conftest.$ac_ext
14126 fi
14127 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14128 echo "${ECHO_T}$ac_cv_type_int" >&6
14129
14130 echo "$as_me:$LINENO: checking alignment of int" >&5
14131 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14132 if test "${pgac_cv_alignof_int+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   if test "$ac_cv_type_int" = yes; then
14136   if test "$cross_compiling" = yes; then
14137   # Depending upon the size, compute the lo and hi bounds.
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14140 #include "confdefs.h"
14141 $ac_includes_default
14142 struct { char filler; int field; } pgac_struct;
14143 #ifdef F77_DUMMY_MAIN
14144 #  ifdef __cplusplus
14145      extern "C"
14146 #  endif
14147    int F77_DUMMY_MAIN() { return 1; }
14148 #endif
14149 int
14150 main ()
14151 {
14152 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14153 test_array [0] = 0
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161   (eval $ac_compile) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -s conftest.$ac_objext'
14166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167   (eval $ac_try) 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_lo=0 ac_mid=0
14172   while :; do
14173     cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14175 #include "confdefs.h"
14176 $ac_includes_default
14177 struct { char filler; int field; } pgac_struct;
14178 #ifdef F77_DUMMY_MAIN
14179 #  ifdef __cplusplus
14180      extern "C"
14181 #  endif
14182    int F77_DUMMY_MAIN() { return 1; }
14183 #endif
14184 int
14185 main ()
14186 {
14187 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14188 test_array [0] = 0
14189
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196   (eval $ac_compile) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -s conftest.$ac_objext'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_hi=$ac_mid; break
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14210 ac_lo=`expr $ac_mid + 1`
14211                     if test $ac_lo -le $ac_mid; then
14212                       ac_lo= ac_hi=
14213                       break
14214                     fi
14215                     ac_mid=`expr 2 '*' $ac_mid + 1`
14216 fi
14217 rm -f conftest.$ac_objext conftest.$ac_ext
14218   done
14219 else
14220   echo "$as_me: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 cat >conftest.$ac_ext <<_ACEOF
14223 #line $LINENO "configure"
14224 #include "confdefs.h"
14225 $ac_includes_default
14226 struct { char filler; int field; } pgac_struct;
14227 #ifdef F77_DUMMY_MAIN
14228 #  ifdef __cplusplus
14229      extern "C"
14230 #  endif
14231    int F77_DUMMY_MAIN() { return 1; }
14232 #endif
14233 int
14234 main ()
14235 {
14236 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14237 test_array [0] = 0
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245   (eval $ac_compile) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -s conftest.$ac_objext'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; }; then
14255   ac_hi=-1 ac_mid=-1
14256   while :; do
14257     cat >conftest.$ac_ext <<_ACEOF
14258 #line $LINENO "configure"
14259 #include "confdefs.h"
14260 $ac_includes_default
14261 struct { char filler; int field; } pgac_struct;
14262 #ifdef F77_DUMMY_MAIN
14263 #  ifdef __cplusplus
14264      extern "C"
14265 #  endif
14266    int F77_DUMMY_MAIN() { return 1; }
14267 #endif
14268 int
14269 main ()
14270 {
14271 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14272 test_array [0] = 0
14273
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -s conftest.$ac_objext'
14285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286   (eval $ac_try) 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_lo=$ac_mid; break
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14294 ac_hi=`expr '(' $ac_mid ')' - 1`
14295                        if test $ac_mid -le $ac_hi; then
14296                          ac_lo= ac_hi=
14297                          break
14298                        fi
14299                        ac_mid=`expr 2 '*' $ac_mid`
14300 fi
14301 rm -f conftest.$ac_objext conftest.$ac_ext
14302   done
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 cat conftest.$ac_ext >&5
14306 ac_lo= ac_hi=
14307 fi
14308 rm -f conftest.$ac_objext conftest.$ac_ext
14309 fi
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14311 # Binary search between lo and hi bounds.
14312 while test "x$ac_lo" != "x$ac_hi"; do
14313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14314   cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 #include "confdefs.h"
14317 $ac_includes_default
14318 struct { char filler; int field; } pgac_struct;
14319 #ifdef F77_DUMMY_MAIN
14320 #  ifdef __cplusplus
14321      extern "C"
14322 #  endif
14323    int F77_DUMMY_MAIN() { return 1; }
14324 #endif
14325 int
14326 main ()
14327 {
14328 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14329 test_array [0] = 0
14330
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337   (eval $ac_compile) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -s conftest.$ac_objext'
14342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343   (eval $ac_try) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; }; then
14347   ac_hi=$ac_mid
14348 else
14349   echo "$as_me: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 ac_lo=`expr '(' $ac_mid ')' + 1`
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354 done
14355 case $ac_lo in
14356 ?*) pgac_cv_alignof_int=$ac_lo;;
14357 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14358 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14359    { (exit 1); exit 1; }; } ;;
14360 esac
14361 else
14362   if test "$cross_compiling" = yes; then
14363   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14364 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14365    { (exit 1); exit 1; }; }
14366 else
14367   cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 #include "confdefs.h"
14370 $ac_includes_default
14371 struct { char filler; int field; } pgac_struct;
14372 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14373 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14374 #include <stdio.h>
14375 #include <stdlib.h>
14376 #ifdef F77_DUMMY_MAIN
14377 #  ifdef __cplusplus
14378      extern "C"
14379 #  endif
14380    int F77_DUMMY_MAIN() { return 1; }
14381 #endif
14382 int
14383 main ()
14384 {
14385
14386   FILE *f = fopen ("conftest.val", "w");
14387   if (! f)
14388     exit (1);
14389   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14390     {
14391       long i = longval ();
14392       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14393         exit (1);
14394       fprintf (f, "%ld\n", i);
14395     }
14396   else
14397     {
14398       unsigned long i = ulongval ();
14399       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14400         exit (1);
14401       fprintf (f, "%lu\n", i);
14402     }
14403   exit (ferror (f) || fclose (f) != 0);
14404
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411   (eval $ac_link) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   pgac_cv_alignof_int=`cat conftest.val`
14421 else
14422   echo "$as_me: program exited with status $ac_status" >&5
14423 echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ( exit $ac_status )
14426 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14427 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14428    { (exit 1); exit 1; }; }
14429 fi
14430 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14431 fi
14432 fi
14433 rm -f conftest.val
14434 else
14435   pgac_cv_alignof_int=0
14436 fi
14437 fi
14438 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14439 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14440 cat >>confdefs.h <<_ACEOF
14441 #define ALIGNOF_INT $pgac_cv_alignof_int
14442 _ACEOF
14443
14444
14445 echo "$as_me:$LINENO: checking for long" >&5
14446 echo $ECHO_N "checking for long... $ECHO_C" >&6
14447 if test "${ac_cv_type_long+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14452 #include "confdefs.h"
14453 $ac_includes_default
14454 #ifdef F77_DUMMY_MAIN
14455 #  ifdef __cplusplus
14456      extern "C"
14457 #  endif
14458    int F77_DUMMY_MAIN() { return 1; }
14459 #endif
14460 int
14461 main ()
14462 {
14463 if ((long *) 0)
14464   return 0;
14465 if (sizeof (long))
14466   return 0;
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473   (eval $ac_compile) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -s conftest.$ac_objext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   ac_cv_type_long=yes
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 ac_cv_type_long=no
14488 fi
14489 rm -f conftest.$ac_objext conftest.$ac_ext
14490 fi
14491 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14492 echo "${ECHO_T}$ac_cv_type_long" >&6
14493
14494 echo "$as_me:$LINENO: checking alignment of long" >&5
14495 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14496 if test "${pgac_cv_alignof_long+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   if test "$ac_cv_type_long" = yes; then
14500   if test "$cross_compiling" = yes; then
14501   # Depending upon the size, compute the lo and hi bounds.
14502 cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14504 #include "confdefs.h"
14505 $ac_includes_default
14506 struct { char filler; long field; } pgac_struct;
14507 #ifdef F77_DUMMY_MAIN
14508 #  ifdef __cplusplus
14509      extern "C"
14510 #  endif
14511    int F77_DUMMY_MAIN() { return 1; }
14512 #endif
14513 int
14514 main ()
14515 {
14516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14517 test_array [0] = 0
14518
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525   (eval $ac_compile) 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } &&
14529          { ac_try='test -s conftest.$ac_objext'
14530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531   (eval $ac_try) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }; }; then
14535   ac_lo=0 ac_mid=0
14536   while :; do
14537     cat >conftest.$ac_ext <<_ACEOF
14538 #line $LINENO "configure"
14539 #include "confdefs.h"
14540 $ac_includes_default
14541 struct { char filler; long field; } pgac_struct;
14542 #ifdef F77_DUMMY_MAIN
14543 #  ifdef __cplusplus
14544      extern "C"
14545 #  endif
14546    int F77_DUMMY_MAIN() { return 1; }
14547 #endif
14548 int
14549 main ()
14550 {
14551 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14552 test_array [0] = 0
14553
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14560   (eval $ac_compile) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } &&
14564          { ac_try='test -s conftest.$ac_objext'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; }; then
14570   ac_hi=$ac_mid; break
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 ac_lo=`expr $ac_mid + 1`
14575                     if test $ac_lo -le $ac_mid; then
14576                       ac_lo= ac_hi=
14577                       break
14578                     fi
14579                     ac_mid=`expr 2 '*' $ac_mid + 1`
14580 fi
14581 rm -f conftest.$ac_objext conftest.$ac_ext
14582   done
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14586 cat >conftest.$ac_ext <<_ACEOF
14587 #line $LINENO "configure"
14588 #include "confdefs.h"
14589 $ac_includes_default
14590 struct { char filler; long field; } pgac_struct;
14591 #ifdef F77_DUMMY_MAIN
14592 #  ifdef __cplusplus
14593      extern "C"
14594 #  endif
14595    int F77_DUMMY_MAIN() { return 1; }
14596 #endif
14597 int
14598 main ()
14599 {
14600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14601 test_array [0] = 0
14602
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609   (eval $ac_compile) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_hi=-1 ac_mid=-1
14620   while :; do
14621     cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 #include "confdefs.h"
14624 $ac_includes_default
14625 struct { char filler; long field; } pgac_struct;
14626 #ifdef F77_DUMMY_MAIN
14627 #  ifdef __cplusplus
14628      extern "C"
14629 #  endif
14630    int F77_DUMMY_MAIN() { return 1; }
14631 #endif
14632 int
14633 main ()
14634 {
14635 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14636 test_array [0] = 0
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644   (eval $ac_compile) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } &&
14648          { ac_try='test -s conftest.$ac_objext'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; }; then
14654   ac_lo=$ac_mid; break
14655 else
14656   echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 ac_hi=`expr '(' $ac_mid ')' - 1`
14659                        if test $ac_mid -le $ac_hi; then
14660                          ac_lo= ac_hi=
14661                          break
14662                        fi
14663                        ac_mid=`expr 2 '*' $ac_mid`
14664 fi
14665 rm -f conftest.$ac_objext conftest.$ac_ext
14666   done
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 ac_lo= ac_hi=
14671 fi
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14673 fi
14674 rm -f conftest.$ac_objext conftest.$ac_ext
14675 # Binary search between lo and hi bounds.
14676 while test "x$ac_lo" != "x$ac_hi"; do
14677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14678   cat >conftest.$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14680 #include "confdefs.h"
14681 $ac_includes_default
14682 struct { char filler; long field; } pgac_struct;
14683 #ifdef F77_DUMMY_MAIN
14684 #  ifdef __cplusplus
14685      extern "C"
14686 #  endif
14687    int F77_DUMMY_MAIN() { return 1; }
14688 #endif
14689 int
14690 main ()
14691 {
14692 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14693 test_array [0] = 0
14694
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701   (eval $ac_compile) 2>&5
14702   ac_status=$?
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -s conftest.$ac_objext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_hi=$ac_mid
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 ac_lo=`expr '(' $ac_mid ')' + 1`
14716 fi
14717 rm -f conftest.$ac_objext conftest.$ac_ext
14718 done
14719 case $ac_lo in
14720 ?*) pgac_cv_alignof_long=$ac_lo;;
14721 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14722 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14723    { (exit 1); exit 1; }; } ;;
14724 esac
14725 else
14726   if test "$cross_compiling" = yes; then
14727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14728 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14729    { (exit 1); exit 1; }; }
14730 else
14731   cat >conftest.$ac_ext <<_ACEOF
14732 #line $LINENO "configure"
14733 #include "confdefs.h"
14734 $ac_includes_default
14735 struct { char filler; long field; } pgac_struct;
14736 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14737 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14738 #include <stdio.h>
14739 #include <stdlib.h>
14740 #ifdef F77_DUMMY_MAIN
14741 #  ifdef __cplusplus
14742      extern "C"
14743 #  endif
14744    int F77_DUMMY_MAIN() { return 1; }
14745 #endif
14746 int
14747 main ()
14748 {
14749
14750   FILE *f = fopen ("conftest.val", "w");
14751   if (! f)
14752     exit (1);
14753   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14754     {
14755       long i = longval ();
14756       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14757         exit (1);
14758       fprintf (f, "%ld\n", i);
14759     }
14760   else
14761     {
14762       unsigned long i = ulongval ();
14763       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14764         exit (1);
14765       fprintf (f, "%lu\n", i);
14766     }
14767   exit (ferror (f) || fclose (f) != 0);
14768
14769   ;
14770   return 0;
14771 }
14772 _ACEOF
14773 rm -f conftest$ac_exeext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14775   (eval $ac_link) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780   (eval $ac_try) 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; }; then
14784   pgac_cv_alignof_long=`cat conftest.val`
14785 else
14786   echo "$as_me: program exited with status $ac_status" >&5
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 ( exit $ac_status )
14790 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14791 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14792    { (exit 1); exit 1; }; }
14793 fi
14794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14795 fi
14796 fi
14797 rm -f conftest.val
14798 else
14799   pgac_cv_alignof_long=0
14800 fi
14801 fi
14802 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14803 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14804 cat >>confdefs.h <<_ACEOF
14805 #define ALIGNOF_LONG $pgac_cv_alignof_long
14806 _ACEOF
14807
14808
14809 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14810   echo "$as_me:$LINENO: checking for long long int" >&5
14811 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14812 if test "${ac_cv_type_long_long_int+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   cat >conftest.$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14817 #include "confdefs.h"
14818 $ac_includes_default
14819 #ifdef F77_DUMMY_MAIN
14820 #  ifdef __cplusplus
14821      extern "C"
14822 #  endif
14823    int F77_DUMMY_MAIN() { return 1; }
14824 #endif
14825 int
14826 main ()
14827 {
14828 if ((long long int *) 0)
14829   return 0;
14830 if (sizeof (long long int))
14831   return 0;
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838   (eval $ac_compile) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } &&
14842          { ac_try='test -s conftest.$ac_objext'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }; then
14848   ac_cv_type_long_long_int=yes
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 ac_cv_type_long_long_int=no
14853 fi
14854 rm -f conftest.$ac_objext conftest.$ac_ext
14855 fi
14856 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14857 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14858
14859 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14860 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14861 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14862   echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864   if test "$ac_cv_type_long_long_int" = yes; then
14865   if test "$cross_compiling" = yes; then
14866   # Depending upon the size, compute the lo and hi bounds.
14867 cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14870 $ac_includes_default
14871 struct { char filler; long long int field; } pgac_struct;
14872 #ifdef F77_DUMMY_MAIN
14873 #  ifdef __cplusplus
14874      extern "C"
14875 #  endif
14876    int F77_DUMMY_MAIN() { return 1; }
14877 #endif
14878 int
14879 main ()
14880 {
14881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14882 test_array [0] = 0
14883
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14890   (eval $ac_compile) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -s conftest.$ac_objext'
14895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896   (eval $ac_try) 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); }; }; then
14900   ac_lo=0 ac_mid=0
14901   while :; do
14902     cat >conftest.$ac_ext <<_ACEOF
14903 #line $LINENO "configure"
14904 #include "confdefs.h"
14905 $ac_includes_default
14906 struct { char filler; long long int field; } pgac_struct;
14907 #ifdef F77_DUMMY_MAIN
14908 #  ifdef __cplusplus
14909      extern "C"
14910 #  endif
14911    int F77_DUMMY_MAIN() { return 1; }
14912 #endif
14913 int
14914 main ()
14915 {
14916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14917 test_array [0] = 0
14918
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14925   (eval $ac_compile) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } &&
14929          { ac_try='test -s conftest.$ac_objext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_hi=$ac_mid; break
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 ac_lo=`expr $ac_mid + 1`
14940                     if test $ac_lo -le $ac_mid; then
14941                       ac_lo= ac_hi=
14942                       break
14943                     fi
14944                     ac_mid=`expr 2 '*' $ac_mid + 1`
14945 fi
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14947   done
14948 else
14949   echo "$as_me: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 cat >conftest.$ac_ext <<_ACEOF
14952 #line $LINENO "configure"
14953 #include "confdefs.h"
14954 $ac_includes_default
14955 struct { char filler; long long int field; } pgac_struct;
14956 #ifdef F77_DUMMY_MAIN
14957 #  ifdef __cplusplus
14958      extern "C"
14959 #  endif
14960    int F77_DUMMY_MAIN() { return 1; }
14961 #endif
14962 int
14963 main ()
14964 {
14965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14966 test_array [0] = 0
14967
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974   (eval $ac_compile) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); } &&
14978          { ac_try='test -s conftest.$ac_objext'
14979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980   (eval $ac_try) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984   ac_hi=-1 ac_mid=-1
14985   while :; do
14986     cat >conftest.$ac_ext <<_ACEOF
14987 #line $LINENO "configure"
14988 #include "confdefs.h"
14989 $ac_includes_default
14990 struct { char filler; long long int field; } pgac_struct;
14991 #ifdef F77_DUMMY_MAIN
14992 #  ifdef __cplusplus
14993      extern "C"
14994 #  endif
14995    int F77_DUMMY_MAIN() { return 1; }
14996 #endif
14997 int
14998 main ()
14999 {
15000 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15001 test_array [0] = 0
15002
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009   (eval $ac_compile) 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -s conftest.$ac_objext'
15014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015   (eval $ac_try) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019   ac_lo=$ac_mid; break
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 ac_hi=`expr '(' $ac_mid ')' - 1`
15024                        if test $ac_mid -le $ac_hi; then
15025                          ac_lo= ac_hi=
15026                          break
15027                        fi
15028                        ac_mid=`expr 2 '*' $ac_mid`
15029 fi
15030 rm -f conftest.$ac_objext conftest.$ac_ext
15031   done
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 ac_lo= ac_hi=
15036 fi
15037 rm -f conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 rm -f conftest.$ac_objext conftest.$ac_ext
15040 # Binary search between lo and hi bounds.
15041 while test "x$ac_lo" != "x$ac_hi"; do
15042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15043   cat >conftest.$ac_ext <<_ACEOF
15044 #line $LINENO "configure"
15045 #include "confdefs.h"
15046 $ac_includes_default
15047 struct { char filler; long long int field; } pgac_struct;
15048 #ifdef F77_DUMMY_MAIN
15049 #  ifdef __cplusplus
15050      extern "C"
15051 #  endif
15052    int F77_DUMMY_MAIN() { return 1; }
15053 #endif
15054 int
15055 main ()
15056 {
15057 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15058 test_array [0] = 0
15059
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066   (eval $ac_compile) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } &&
15070          { ac_try='test -s conftest.$ac_objext'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }; then
15076   ac_hi=$ac_mid
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 ac_lo=`expr '(' $ac_mid ')' + 1`
15081 fi
15082 rm -f conftest.$ac_objext conftest.$ac_ext
15083 done
15084 case $ac_lo in
15085 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15086 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15087 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15088    { (exit 1); exit 1; }; } ;;
15089 esac
15090 else
15091   if test "$cross_compiling" = yes; then
15092   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15093 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15094    { (exit 1); exit 1; }; }
15095 else
15096   cat >conftest.$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 $ac_includes_default
15100 struct { char filler; long long int field; } pgac_struct;
15101 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15102 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15103 #include <stdio.h>
15104 #include <stdlib.h>
15105 #ifdef F77_DUMMY_MAIN
15106 #  ifdef __cplusplus
15107      extern "C"
15108 #  endif
15109    int F77_DUMMY_MAIN() { return 1; }
15110 #endif
15111 int
15112 main ()
15113 {
15114
15115   FILE *f = fopen ("conftest.val", "w");
15116   if (! f)
15117     exit (1);
15118   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15119     {
15120       long i = longval ();
15121       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15122         exit (1);
15123       fprintf (f, "%ld\n", i);
15124     }
15125   else
15126     {
15127       unsigned long i = ulongval ();
15128       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15129         exit (1);
15130       fprintf (f, "%lu\n", i);
15131     }
15132   exit (ferror (f) || fclose (f) != 0);
15133
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140   (eval $ac_link) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145   (eval $ac_try) 2>&5
15146   ac_status=$?
15147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148   (exit $ac_status); }; }; then
15149   pgac_cv_alignof_long_long_int=`cat conftest.val`
15150 else
15151   echo "$as_me: program exited with status $ac_status" >&5
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 ( exit $ac_status )
15155 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15156 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15157    { (exit 1); exit 1; }; }
15158 fi
15159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 fi
15162 rm -f conftest.val
15163 else
15164   pgac_cv_alignof_long_long_int=0
15165 fi
15166 fi
15167 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15168 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15169 cat >>confdefs.h <<_ACEOF
15170 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15171 _ACEOF
15172
15173
15174 fi
15175 echo "$as_me:$LINENO: checking for double" >&5
15176 echo $ECHO_N "checking for double... $ECHO_C" >&6
15177 if test "${ac_cv_type_double+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180   cat >conftest.$ac_ext <<_ACEOF
15181 #line $LINENO "configure"
15182 #include "confdefs.h"
15183 $ac_includes_default
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 if ((double *) 0)
15194   return 0;
15195 if (sizeof (double))
15196   return 0;
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } &&
15207          { ac_try='test -s conftest.$ac_objext'
15208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209   (eval $ac_try) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; }; then
15213   ac_cv_type_double=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 ac_cv_type_double=no
15218 fi
15219 rm -f conftest.$ac_objext conftest.$ac_ext
15220 fi
15221 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15222 echo "${ECHO_T}$ac_cv_type_double" >&6
15223
15224 echo "$as_me:$LINENO: checking alignment of double" >&5
15225 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15226 if test "${pgac_cv_alignof_double+set}" = set; then
15227   echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229   if test "$ac_cv_type_double" = yes; then
15230   if test "$cross_compiling" = yes; then
15231   # Depending upon the size, compute the lo and hi bounds.
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235 $ac_includes_default
15236 struct { char filler; double field; } pgac_struct;
15237 #ifdef F77_DUMMY_MAIN
15238 #  ifdef __cplusplus
15239      extern "C"
15240 #  endif
15241    int F77_DUMMY_MAIN() { return 1; }
15242 #endif
15243 int
15244 main ()
15245 {
15246 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15247 test_array [0] = 0
15248
15249   ;
15250   return 0;
15251 }
15252 _ACEOF
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255   (eval $ac_compile) 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } &&
15259          { ac_try='test -s conftest.$ac_objext'
15260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261   (eval $ac_try) 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; }; then
15265   ac_lo=0 ac_mid=0
15266   while :; do
15267     cat >conftest.$ac_ext <<_ACEOF
15268 #line $LINENO "configure"
15269 #include "confdefs.h"
15270 $ac_includes_default
15271 struct { char filler; double field; } pgac_struct;
15272 #ifdef F77_DUMMY_MAIN
15273 #  ifdef __cplusplus
15274      extern "C"
15275 #  endif
15276    int F77_DUMMY_MAIN() { return 1; }
15277 #endif
15278 int
15279 main ()
15280 {
15281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15282 test_array [0] = 0
15283
15284   ;
15285   return 0;
15286 }
15287 _ACEOF
15288 rm -f conftest.$ac_objext
15289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290   (eval $ac_compile) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } &&
15294          { ac_try='test -s conftest.$ac_objext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_hi=$ac_mid; break
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 cat conftest.$ac_ext >&5
15304 ac_lo=`expr $ac_mid + 1`
15305                     if test $ac_lo -le $ac_mid; then
15306                       ac_lo= ac_hi=
15307                       break
15308                     fi
15309                     ac_mid=`expr 2 '*' $ac_mid + 1`
15310 fi
15311 rm -f conftest.$ac_objext conftest.$ac_ext
15312   done
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15318 #include "confdefs.h"
15319 $ac_includes_default
15320 struct { char filler; double field; } pgac_struct;
15321 #ifdef F77_DUMMY_MAIN
15322 #  ifdef __cplusplus
15323      extern "C"
15324 #  endif
15325    int F77_DUMMY_MAIN() { return 1; }
15326 #endif
15327 int
15328 main ()
15329 {
15330 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15331 test_array [0] = 0
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339   (eval $ac_compile) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } &&
15343          { ac_try='test -s conftest.$ac_objext'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_hi=-1 ac_mid=-1
15350   while :; do
15351     cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 #include "confdefs.h"
15354 $ac_includes_default
15355 struct { char filler; double field; } pgac_struct;
15356 #ifdef F77_DUMMY_MAIN
15357 #  ifdef __cplusplus
15358      extern "C"
15359 #  endif
15360    int F77_DUMMY_MAIN() { return 1; }
15361 #endif
15362 int
15363 main ()
15364 {
15365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15366 test_array [0] = 0
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15374   (eval $ac_compile) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -s conftest.$ac_objext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_lo=$ac_mid; break
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 ac_hi=`expr '(' $ac_mid ')' - 1`
15389                        if test $ac_mid -le $ac_hi; then
15390                          ac_lo= ac_hi=
15391                          break
15392                        fi
15393                        ac_mid=`expr 2 '*' $ac_mid`
15394 fi
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15396   done
15397 else
15398   echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 ac_lo= ac_hi=
15401 fi
15402 rm -f conftest.$ac_objext conftest.$ac_ext
15403 fi
15404 rm -f conftest.$ac_objext conftest.$ac_ext
15405 # Binary search between lo and hi bounds.
15406 while test "x$ac_lo" != "x$ac_hi"; do
15407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15408   cat >conftest.$ac_ext <<_ACEOF
15409 #line $LINENO "configure"
15410 #include "confdefs.h"
15411 $ac_includes_default
15412 struct { char filler; double field; } pgac_struct;
15413 #ifdef F77_DUMMY_MAIN
15414 #  ifdef __cplusplus
15415      extern "C"
15416 #  endif
15417    int F77_DUMMY_MAIN() { return 1; }
15418 #endif
15419 int
15420 main ()
15421 {
15422 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15423 test_array [0] = 0
15424
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431   (eval $ac_compile) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } &&
15435          { ac_try='test -s conftest.$ac_objext'
15436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437   (eval $ac_try) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; }; then
15441   ac_hi=$ac_mid
15442 else
15443   echo "$as_me: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15445 ac_lo=`expr '(' $ac_mid ')' + 1`
15446 fi
15447 rm -f conftest.$ac_objext conftest.$ac_ext
15448 done
15449 case $ac_lo in
15450 ?*) pgac_cv_alignof_double=$ac_lo;;
15451 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15452 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15453    { (exit 1); exit 1; }; } ;;
15454 esac
15455 else
15456   if test "$cross_compiling" = yes; then
15457   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15458 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15459    { (exit 1); exit 1; }; }
15460 else
15461   cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15463 #include "confdefs.h"
15464 $ac_includes_default
15465 struct { char filler; double field; } pgac_struct;
15466 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15467 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15468 #include <stdio.h>
15469 #include <stdlib.h>
15470 #ifdef F77_DUMMY_MAIN
15471 #  ifdef __cplusplus
15472      extern "C"
15473 #  endif
15474    int F77_DUMMY_MAIN() { return 1; }
15475 #endif
15476 int
15477 main ()
15478 {
15479
15480   FILE *f = fopen ("conftest.val", "w");
15481   if (! f)
15482     exit (1);
15483   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15484     {
15485       long i = longval ();
15486       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15487         exit (1);
15488       fprintf (f, "%ld\n", i);
15489     }
15490   else
15491     {
15492       unsigned long i = ulongval ();
15493       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15494         exit (1);
15495       fprintf (f, "%lu\n", i);
15496     }
15497   exit (ferror (f) || fclose (f) != 0);
15498
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest$ac_exeext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15505   (eval $ac_link) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510   (eval $ac_try) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; }; then
15514   pgac_cv_alignof_double=`cat conftest.val`
15515 else
15516   echo "$as_me: program exited with status $ac_status" >&5
15517 echo "$as_me: failed program was:" >&5
15518 cat conftest.$ac_ext >&5
15519 ( exit $ac_status )
15520 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15521 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15522    { (exit 1); exit 1; }; }
15523 fi
15524 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525 fi
15526 fi
15527 rm -f conftest.val
15528 else
15529   pgac_cv_alignof_double=0
15530 fi
15531 fi
15532 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15533 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15534 cat >>confdefs.h <<_ACEOF
15535 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15536 _ACEOF
15537
15538
15539
15540 # Compute maximum alignment of any basic type.
15541 # We assume long's alignment is at least as strong as char, short, or int;
15542 # but we must check long long (if it exists) and double.
15543
15544 MAX_ALIGNOF=$pgac_cv_alignof_long
15545 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15546   MAX_ALIGNOF=$pgac_cv_alignof_double
15547 fi
15548 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15549   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15550 fi
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15554 _ACEOF
15555
15556
15557
15558 # Some platforms predefine the types int8, int16, etc.  Only check
15559 # a (hopefully) representative subset.
15560 echo "$as_me:$LINENO: checking for int8" >&5
15561 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15562 if test "${ac_cv_type_int8+set}" = set; then
15563   echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565   cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 #include "confdefs.h"
15568 #include <stdio.h>
15569 #ifdef HAVE_SUPPORTDEFS_H
15570 #include <SupportDefs.h>
15571 #endif
15572
15573 #ifdef F77_DUMMY_MAIN
15574 #  ifdef __cplusplus
15575      extern "C"
15576 #  endif
15577    int F77_DUMMY_MAIN() { return 1; }
15578 #endif
15579 int
15580 main ()
15581 {
15582 if ((int8 *) 0)
15583   return 0;
15584 if (sizeof (int8))
15585   return 0;
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592   (eval $ac_compile) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } &&
15596          { ac_try='test -s conftest.$ac_objext'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   ac_cv_type_int8=yes
15603 else
15604   echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 ac_cv_type_int8=no
15607 fi
15608 rm -f conftest.$ac_objext conftest.$ac_ext
15609 fi
15610 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15611 echo "${ECHO_T}$ac_cv_type_int8" >&6
15612 if test $ac_cv_type_int8 = yes; then
15613
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_INT8 1
15616 _ACEOF
15617
15618
15619 fi
15620 echo "$as_me:$LINENO: checking for uint8" >&5
15621 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15622 if test "${ac_cv_type_uint8+set}" = set; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625   cat >conftest.$ac_ext <<_ACEOF
15626 #line $LINENO "configure"
15627 #include "confdefs.h"
15628 #include <stdio.h>
15629 #ifdef HAVE_SUPPORTDEFS_H
15630 #include <SupportDefs.h>
15631 #endif
15632
15633 #ifdef F77_DUMMY_MAIN
15634 #  ifdef __cplusplus
15635      extern "C"
15636 #  endif
15637    int F77_DUMMY_MAIN() { return 1; }
15638 #endif
15639 int
15640 main ()
15641 {
15642 if ((uint8 *) 0)
15643   return 0;
15644 if (sizeof (uint8))
15645   return 0;
15646   ;
15647   return 0;
15648 }
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15652   (eval $ac_compile) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -s conftest.$ac_objext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_type_uint8=yes
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15666 ac_cv_type_uint8=no
15667 fi
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15671 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15672 if test $ac_cv_type_uint8 = yes; then
15673
15674 cat >>confdefs.h <<_ACEOF
15675 #define HAVE_UINT8 1
15676 _ACEOF
15677
15678
15679 fi
15680 echo "$as_me:$LINENO: checking for int64" >&5
15681 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15682 if test "${ac_cv_type_int64+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   cat >conftest.$ac_ext <<_ACEOF
15686 #line $LINENO "configure"
15687 #include "confdefs.h"
15688 #include <stdio.h>
15689 #ifdef HAVE_SUPPORTDEFS_H
15690 #include <SupportDefs.h>
15691 #endif
15692
15693 #ifdef F77_DUMMY_MAIN
15694 #  ifdef __cplusplus
15695      extern "C"
15696 #  endif
15697    int F77_DUMMY_MAIN() { return 1; }
15698 #endif
15699 int
15700 main ()
15701 {
15702 if ((int64 *) 0)
15703   return 0;
15704 if (sizeof (int64))
15705   return 0;
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 rm -f conftest.$ac_objext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15712   (eval $ac_compile) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); } &&
15716          { ac_try='test -s conftest.$ac_objext'
15717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718   (eval $ac_try) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }; then
15722   ac_cv_type_int64=yes
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15726 ac_cv_type_int64=no
15727 fi
15728 rm -f conftest.$ac_objext conftest.$ac_ext
15729 fi
15730 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15731 echo "${ECHO_T}$ac_cv_type_int64" >&6
15732 if test $ac_cv_type_int64 = yes; then
15733
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_INT64 1
15736 _ACEOF
15737
15738
15739 fi
15740 echo "$as_me:$LINENO: checking for uint64" >&5
15741 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15742 if test "${ac_cv_type_uint64+set}" = set; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   cat >conftest.$ac_ext <<_ACEOF
15746 #line $LINENO "configure"
15747 #include "confdefs.h"
15748 #include <stdio.h>
15749 #ifdef HAVE_SUPPORTDEFS_H
15750 #include <SupportDefs.h>
15751 #endif
15752
15753 #ifdef F77_DUMMY_MAIN
15754 #  ifdef __cplusplus
15755      extern "C"
15756 #  endif
15757    int F77_DUMMY_MAIN() { return 1; }
15758 #endif
15759 int
15760 main ()
15761 {
15762 if ((uint64 *) 0)
15763   return 0;
15764 if (sizeof (uint64))
15765   return 0;
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772   (eval $ac_compile) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -s conftest.$ac_objext'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; }; then
15782   ac_cv_type_uint64=yes
15783 else
15784   echo "$as_me: failed program was:" >&5
15785 cat conftest.$ac_ext >&5
15786 ac_cv_type_uint64=no
15787 fi
15788 rm -f conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15791 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15792 if test $ac_cv_type_uint64 = yes; then
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_UINT64 1
15796 _ACEOF
15797
15798
15799 fi
15800
15801
15802 # We also check for sig_atomic_t, which *should* be defined per ANSI
15803 # C, but is missing on some old platforms.
15804 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15805 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15806 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 #include "confdefs.h"
15812 #include <signal.h>
15813
15814 #ifdef F77_DUMMY_MAIN
15815 #  ifdef __cplusplus
15816      extern "C"
15817 #  endif
15818    int F77_DUMMY_MAIN() { return 1; }
15819 #endif
15820 int
15821 main ()
15822 {
15823 if ((sig_atomic_t *) 0)
15824   return 0;
15825 if (sizeof (sig_atomic_t))
15826   return 0;
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833   (eval $ac_compile) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); } &&
15837          { ac_try='test -s conftest.$ac_objext'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; }; then
15843   ac_cv_type_sig_atomic_t=yes
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 ac_cv_type_sig_atomic_t=no
15848 fi
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15850 fi
15851 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15852 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15853 if test $ac_cv_type_sig_atomic_t = yes; then
15854
15855 cat >>confdefs.h <<_ACEOF
15856 #define HAVE_SIG_ATOMIC_T 1
15857 _ACEOF
15858
15859
15860 fi
15861
15862
15863
15864 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15865 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15866 if test "${pgac_cv_func_posix_signals+set}" = set; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   cat >conftest.$ac_ext <<_ACEOF
15870 #line $LINENO "configure"
15871 #include "confdefs.h"
15872 #include <signal.h>
15873
15874 #ifdef F77_DUMMY_MAIN
15875 #  ifdef __cplusplus
15876      extern "C"
15877 #  endif
15878    int F77_DUMMY_MAIN() { return 1; }
15879 #endif
15880 int
15881 main ()
15882 {
15883 struct sigaction act, oact;
15884 sigemptyset(&act.sa_mask);
15885 act.sa_flags = SA_RESTART;
15886 sigaction(0, &act, &oact);
15887   ;
15888   return 0;
15889 }
15890 _ACEOF
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893   (eval $ac_link) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } &&
15897          { ac_try='test -s conftest$ac_exeext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   pgac_cv_func_posix_signals=yes
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15907 pgac_cv_func_posix_signals=no
15908 fi
15909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15910 fi
15911 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15912 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15913 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15914
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_POSIX_SIGNALS
15917 _ACEOF
15918
15919 fi
15920 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15921
15922 if test $ac_cv_func_fseeko = yes; then
15923 # Check whether --enable-largefile or --disable-largefile was given.
15924 if test "${enable_largefile+set}" = set; then
15925   enableval="$enable_largefile"
15926
15927 fi;
15928 if test "$enable_largefile" != no; then
15929
15930   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15931 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15932 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   ac_cv_sys_largefile_CC=no
15936      if test "$GCC" != yes; then
15937        ac_save_CC=$CC
15938        while :; do
15939          # IRIX 6.2 and later do not support large files by default,
15940          # so use the C compiler's -n32 option if that helps.
15941          cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 #include "confdefs.h"
15944 #include <sys/types.h>
15945  /* Check that off_t can represent 2**63 - 1 correctly.
15946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15947     since some C++ compilers masquerading as C compilers
15948     incorrectly reject 9223372036854775807.  */
15949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15951                        && LARGE_OFF_T % 2147483647 == 1)
15952                       ? 1 : -1];
15953 #ifdef F77_DUMMY_MAIN
15954 #  ifdef __cplusplus
15955      extern "C"
15956 #  endif
15957    int F77_DUMMY_MAIN() { return 1; }
15958 #endif
15959 int
15960 main ()
15961 {
15962
15963   ;
15964   return 0;
15965 }
15966 _ACEOF
15967          rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969   (eval $ac_compile) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } &&
15973          { ac_try='test -s conftest.$ac_objext'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   break
15980 else
15981   echo "$as_me: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15983 fi
15984 rm -f conftest.$ac_objext
15985          CC="$CC -n32"
15986          rm -f conftest.$ac_objext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988   (eval $ac_compile) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } &&
15992          { ac_try='test -s conftest.$ac_objext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   ac_cv_sys_largefile_CC=' -n32'; break
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16002 fi
16003 rm -f conftest.$ac_objext
16004          break
16005        done
16006        CC=$ac_save_CC
16007        rm -f conftest.$ac_ext
16008     fi
16009 fi
16010 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16011 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16012   if test "$ac_cv_sys_largefile_CC" != no; then
16013     CC=$CC$ac_cv_sys_largefile_CC
16014   fi
16015
16016   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16017 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16018 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   while :; do
16022   ac_cv_sys_file_offset_bits=no
16023   cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 #include <sys/types.h>
16027  /* Check that off_t can represent 2**63 - 1 correctly.
16028     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16029     since some C++ compilers masquerading as C compilers
16030     incorrectly reject 9223372036854775807.  */
16031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16032   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16033                        && LARGE_OFF_T % 2147483647 == 1)
16034                       ? 1 : -1];
16035 #ifdef F77_DUMMY_MAIN
16036 #  ifdef __cplusplus
16037      extern "C"
16038 #  endif
16039    int F77_DUMMY_MAIN() { return 1; }
16040 #endif
16041 int
16042 main ()
16043 {
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051   (eval $ac_compile) 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -s conftest.$ac_objext'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; }; then
16061   break
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16065 fi
16066 rm -f conftest.$ac_objext conftest.$ac_ext
16067   cat >conftest.$ac_ext <<_ACEOF
16068 #line $LINENO "configure"
16069 #include "confdefs.h"
16070 #define _FILE_OFFSET_BITS 64
16071 #include <sys/types.h>
16072  /* Check that off_t can represent 2**63 - 1 correctly.
16073     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16074     since some C++ compilers masquerading as C compilers
16075     incorrectly reject 9223372036854775807.  */
16076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16077   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16078                        && LARGE_OFF_T % 2147483647 == 1)
16079                       ? 1 : -1];
16080 #ifdef F77_DUMMY_MAIN
16081 #  ifdef __cplusplus
16082      extern "C"
16083 #  endif
16084    int F77_DUMMY_MAIN() { return 1; }
16085 #endif
16086 int
16087 main ()
16088 {
16089
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096   (eval $ac_compile) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -s conftest.$ac_objext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106   ac_cv_sys_file_offset_bits=64; break
16107 else
16108   echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 fi
16111 rm -f conftest.$ac_objext conftest.$ac_ext
16112   break
16113 done
16114 fi
16115 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16116 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16117 if test "$ac_cv_sys_file_offset_bits" != no; then
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16121 _ACEOF
16122
16123 fi
16124 rm -f conftest*
16125   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16126 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16127 if test "${ac_cv_sys_large_files+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   while :; do
16131   ac_cv_sys_large_files=no
16132   cat >conftest.$ac_ext <<_ACEOF
16133 #line $LINENO "configure"
16134 #include "confdefs.h"
16135 #include <sys/types.h>
16136  /* Check that off_t can represent 2**63 - 1 correctly.
16137     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16138     since some C++ compilers masquerading as C compilers
16139     incorrectly reject 9223372036854775807.  */
16140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16141   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16142                        && LARGE_OFF_T % 2147483647 == 1)
16143                       ? 1 : -1];
16144 #ifdef F77_DUMMY_MAIN
16145 #  ifdef __cplusplus
16146      extern "C"
16147 #  endif
16148    int F77_DUMMY_MAIN() { return 1; }
16149 #endif
16150 int
16151 main ()
16152 {
16153
16154   ;
16155   return 0;
16156 }
16157 _ACEOF
16158 rm -f conftest.$ac_objext
16159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16160   (eval $ac_compile) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); } &&
16164          { ac_try='test -s conftest.$ac_objext'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; }; then
16170   break
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 cat conftest.$ac_ext >&5
16174 fi
16175 rm -f conftest.$ac_objext conftest.$ac_ext
16176   cat >conftest.$ac_ext <<_ACEOF
16177 #line $LINENO "configure"
16178 #include "confdefs.h"
16179 #define _LARGE_FILES 1
16180 #include <sys/types.h>
16181  /* Check that off_t can represent 2**63 - 1 correctly.
16182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16183     since some C++ compilers masquerading as C compilers
16184     incorrectly reject 9223372036854775807.  */
16185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16187                        && LARGE_OFF_T % 2147483647 == 1)
16188                       ? 1 : -1];
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
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205   (eval $ac_compile) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } &&
16209          { ac_try='test -s conftest.$ac_objext'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215   ac_cv_sys_large_files=1; break
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 cat conftest.$ac_ext >&5
16219 fi
16220 rm -f conftest.$ac_objext conftest.$ac_ext
16221   break
16222 done
16223 fi
16224 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16225 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16226 if test "$ac_cv_sys_large_files" != no; then
16227
16228 cat >>confdefs.h <<_ACEOF
16229 #define _LARGE_FILES $ac_cv_sys_large_files
16230 _ACEOF
16231
16232 fi
16233 rm -f conftest*
16234 fi
16235
16236 fi
16237
16238
16239 # Select semaphore implementation type.
16240 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16241
16242 cat >>confdefs.h <<\_ACEOF
16243 #define USE_NAMED_POSIX_SEMAPHORES 1
16244 _ACEOF
16245
16246   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16247 else
16248   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16249
16250 cat >>confdefs.h <<\_ACEOF
16251 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16252 _ACEOF
16253
16254     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16255   else
16256
16257 cat >>confdefs.h <<\_ACEOF
16258 #define USE_SYSV_SEMAPHORES 1
16259 _ACEOF
16260
16261     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16262   fi
16263 fi
16264
16265
16266 # Select shared-memory implementation type.
16267
16268 cat >>confdefs.h <<\_ACEOF
16269 #define USE_SYSV_SHARED_MEMORY 1
16270 _ACEOF
16271
16272 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16273
16274
16275 if test "$enable_nls" = yes ; then
16276
16277   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16278 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16279 if test "${ac_cv_search_gettext+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   ac_func_search_save_LIBS=$LIBS
16283 ac_cv_search_gettext=no
16284 cat >conftest.$ac_ext <<_ACEOF
16285 #line $LINENO "configure"
16286 #include "confdefs.h"
16287
16288 /* Override any gcc2 internal prototype to avoid an error.  */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 /* We use char because int might match the return type of a gcc2
16293    builtin and then its argument prototype would still apply.  */
16294 char gettext ();
16295 #ifdef F77_DUMMY_MAIN
16296 #  ifdef __cplusplus
16297      extern "C"
16298 #  endif
16299    int F77_DUMMY_MAIN() { return 1; }
16300 #endif
16301 int
16302 main ()
16303 {
16304 gettext ();
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311   (eval $ac_link) 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } &&
16315          { ac_try='test -s conftest$ac_exeext'
16316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317   (eval $ac_try) 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; }; then
16321   ac_cv_search_gettext="none required"
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 cat conftest.$ac_ext >&5
16325 fi
16326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16327 if test "$ac_cv_search_gettext" = no; then
16328   for ac_lib in intl; do
16329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16330     cat >conftest.$ac_ext <<_ACEOF
16331 #line $LINENO "configure"
16332 #include "confdefs.h"
16333
16334 /* Override any gcc2 internal prototype to avoid an error.  */
16335 #ifdef __cplusplus
16336 extern "C"
16337 #endif
16338 /* We use char because int might match the return type of a gcc2
16339    builtin and then its argument prototype would still apply.  */
16340 char gettext ();
16341 #ifdef F77_DUMMY_MAIN
16342 #  ifdef __cplusplus
16343      extern "C"
16344 #  endif
16345    int F77_DUMMY_MAIN() { return 1; }
16346 #endif
16347 int
16348 main ()
16349 {
16350 gettext ();
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357   (eval $ac_link) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } &&
16361          { ac_try='test -s conftest$ac_exeext'
16362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363   (eval $ac_try) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; }; then
16367   ac_cv_search_gettext="-l$ac_lib"
16368 break
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16372 fi
16373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16374   done
16375 fi
16376 LIBS=$ac_func_search_save_LIBS
16377 fi
16378 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16379 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16380 if test "$ac_cv_search_gettext" != no; then
16381   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16382
16383 else
16384   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16385 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16386    { (exit 1); exit 1; }; }
16387 fi
16388
16389   if test "${ac_cv_header_libintl_h+set}" = set; then
16390   echo "$as_me:$LINENO: checking for libintl.h" >&5
16391 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16392 if test "${ac_cv_header_libintl_h+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 fi
16395 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16396 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16397 else
16398   # Is the header compilable?
16399 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16400 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16401 cat >conftest.$ac_ext <<_ACEOF
16402 #line $LINENO "configure"
16403 #include "confdefs.h"
16404 $ac_includes_default
16405 #include <libintl.h>
16406 _ACEOF
16407 rm -f conftest.$ac_objext
16408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16409   (eval $ac_compile) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } &&
16413          { ac_try='test -s conftest.$ac_objext'
16414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415   (eval $ac_try) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; }; then
16419   ac_header_compiler=yes
16420 else
16421   echo "$as_me: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 ac_header_compiler=no
16424 fi
16425 rm -f conftest.$ac_objext conftest.$ac_ext
16426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6
16428
16429 # Is the header present?
16430 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16431 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16433 #line $LINENO "configure"
16434 #include "confdefs.h"
16435 #include <libintl.h>
16436 _ACEOF
16437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16439   ac_status=$?
16440   egrep -v '^ *\+' conftest.er1 >conftest.err
16441   rm -f conftest.er1
16442   cat conftest.err >&5
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); } >/dev/null; then
16445   if test -s conftest.err; then
16446     ac_cpp_err=$ac_c_preproc_warn_flag
16447   else
16448     ac_cpp_err=
16449   fi
16450 else
16451   ac_cpp_err=yes
16452 fi
16453 if test -z "$ac_cpp_err"; then
16454   ac_header_preproc=yes
16455 else
16456   echo "$as_me: failed program was:" >&5
16457   cat conftest.$ac_ext >&5
16458   ac_header_preproc=no
16459 fi
16460 rm -f conftest.err conftest.$ac_ext
16461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16462 echo "${ECHO_T}$ac_header_preproc" >&6
16463
16464 # So?  What about this header?
16465 case $ac_header_compiler:$ac_header_preproc in
16466   yes:no )
16467     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16468 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16469     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16470 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16471   no:yes )
16472     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16473 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16475 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16477 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16478 esac
16479 echo "$as_me:$LINENO: checking for libintl.h" >&5
16480 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16481 if test "${ac_cv_header_libintl_h+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   ac_cv_header_libintl_h=$ac_header_preproc
16485 fi
16486 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16487 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16488
16489 fi
16490 if test $ac_cv_header_libintl_h = yes; then
16491   :
16492 else
16493   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16494 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16495    { (exit 1); exit 1; }; }
16496 fi
16497
16498
16499   for ac_prog in msgfmt
16500 do
16501   # Extract the first word of "$ac_prog", so it can be a program name with args.
16502 set dummy $ac_prog; ac_word=$2
16503 echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16505 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   if test -n "$MSGFMT"; then
16509   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16510 else
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16513 do
16514   IFS=$as_save_IFS
16515   test -z "$as_dir" && as_dir=.
16516   for ac_exec_ext in '' $ac_executable_extensions; do
16517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518     ac_cv_prog_MSGFMT="$ac_prog"
16519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16520     break 2
16521   fi
16522 done
16523 done
16524
16525 fi
16526 fi
16527 MSGFMT=$ac_cv_prog_MSGFMT
16528 if test -n "$MSGFMT"; then
16529   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16530 echo "${ECHO_T}$MSGFMT" >&6
16531 else
16532   echo "$as_me:$LINENO: result: no" >&5
16533 echo "${ECHO_T}no" >&6
16534 fi
16535
16536   test -n "$MSGFMT" && break
16537 done
16538
16539   if test -z "$MSGFMT"; then
16540     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16541 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16542    { (exit 1); exit 1; }; }
16543   fi
16544   for ac_prog in msgmerge
16545 do
16546   # Extract the first word of "$ac_prog", so it can be a program name with args.
16547 set dummy $ac_prog; ac_word=$2
16548 echo "$as_me:$LINENO: checking for $ac_word" >&5
16549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16550 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   if test -n "$MSGMERGE"; then
16554   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16555 else
16556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16557 for as_dir in $PATH
16558 do
16559   IFS=$as_save_IFS
16560   test -z "$as_dir" && as_dir=.
16561   for ac_exec_ext in '' $ac_executable_extensions; do
16562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16563     ac_cv_prog_MSGMERGE="$ac_prog"
16564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16565     break 2
16566   fi
16567 done
16568 done
16569
16570 fi
16571 fi
16572 MSGMERGE=$ac_cv_prog_MSGMERGE
16573 if test -n "$MSGMERGE"; then
16574   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16575 echo "${ECHO_T}$MSGMERGE" >&6
16576 else
16577   echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6
16579 fi
16580
16581   test -n "$MSGMERGE" && break
16582 done
16583
16584   for ac_prog in xgettext
16585 do
16586   # Extract the first word of "$ac_prog", so it can be a program name with args.
16587 set dummy $ac_prog; ac_word=$2
16588 echo "$as_me:$LINENO: checking for $ac_word" >&5
16589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16590 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   if test -n "$XGETTEXT"; then
16594   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16595 else
16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16598 do
16599   IFS=$as_save_IFS
16600   test -z "$as_dir" && as_dir=.
16601   for ac_exec_ext in '' $ac_executable_extensions; do
16602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603     ac_cv_prog_XGETTEXT="$ac_prog"
16604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16605     break 2
16606   fi
16607 done
16608 done
16609
16610 fi
16611 fi
16612 XGETTEXT=$ac_cv_prog_XGETTEXT
16613 if test -n "$XGETTEXT"; then
16614   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16615 echo "${ECHO_T}$XGETTEXT" >&6
16616 else
16617   echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6
16619 fi
16620
16621   test -n "$XGETTEXT" && break
16622 done
16623
16624
16625   # Note: share/locale is always the default, independent of $datadir
16626   localedir='${prefix}/share/locale'
16627   if test x"$prefix" = x"NONE"; then
16628     exp_localedir="$ac_default_prefix/share/locale"
16629   else
16630     exp_localedir="$prefix/share/locale"
16631   fi
16632
16633
16634
16635 cat >>confdefs.h <<_ACEOF
16636 #define LOCALEDIR "$exp_localedir"
16637 _ACEOF
16638
16639
16640 fi
16641
16642 # Check for Tcl configuration script tclConfig.sh
16643 if test "$with_tcl" = yes; then
16644     for ac_prog in tclsh tcl
16645 do
16646   # Extract the first word of "$ac_prog", so it can be a program name with args.
16647 set dummy $ac_prog; ac_word=$2
16648 echo "$as_me:$LINENO: checking for $ac_word" >&5
16649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16650 if test "${ac_cv_path_TCLSH+set}" = set; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   case $TCLSH in
16654   [\\/]* | ?:[\\/]*)
16655   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16656   ;;
16657   *)
16658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16659 for as_dir in $PATH
16660 do
16661   IFS=$as_save_IFS
16662   test -z "$as_dir" && as_dir=.
16663   for ac_exec_ext in '' $ac_executable_extensions; do
16664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16665     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16667     break 2
16668   fi
16669 done
16670 done
16671
16672   ;;
16673 esac
16674 fi
16675 TCLSH=$ac_cv_path_TCLSH
16676
16677 if test -n "$TCLSH"; then
16678   echo "$as_me:$LINENO: result: $TCLSH" >&5
16679 echo "${ECHO_T}$TCLSH" >&6
16680 else
16681   echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6
16683 fi
16684
16685   test -n "$TCLSH" && break
16686 done
16687
16688 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16689 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16690 # Let user override test
16691 if test -z "$TCL_CONFIG_SH"; then
16692     pgac_test_dirs="$with_tclconfig"
16693
16694     set X $pgac_test_dirs; shift
16695     if test $# -eq 0; then
16696         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16697 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16698    { (exit 1); exit 1; }; }
16699         set X `echo 'puts $auto_path' | $TCLSH`; shift
16700     fi
16701
16702     for pgac_dir do
16703         if test -r "$pgac_dir/tclConfig.sh"; then
16704             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16705             break
16706         fi
16707     done
16708 fi
16709
16710 if test -z "$TCL_CONFIG_SH"; then
16711     echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6
16713     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16714 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16715    { (exit 1); exit 1; }; }
16716 else
16717     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16718 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16719 fi
16720
16721
16722
16723     . "$TCL_CONFIG_SH"
16724 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16725 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16726 eval TCL_LIBS=\"$TCL_LIBS\"
16727 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16728 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16729
16730     fi
16731
16732 # Check for Tk configuration script tkConfig.sh
16733 if test "$with_tk" = yes; then
16734     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16735 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16736 # Let user override test
16737 if test -z "$TK_CONFIG_SH"; then
16738     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16739
16740     set X $pgac_test_dirs; shift
16741     if test $# -eq 0; then
16742         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16743 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16744    { (exit 1); exit 1; }; }
16745         set X `echo 'puts $auto_path' | $TCLSH`; shift
16746     fi
16747
16748     for pgac_dir do
16749         if test -r "$pgac_dir/tkConfig.sh"; then
16750             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16751             break
16752         fi
16753     done
16754 fi
16755
16756 if test -z "$TK_CONFIG_SH"; then
16757     echo "$as_me:$LINENO: result: no" >&5
16758 echo "${ECHO_T}no" >&6
16759     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16760 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16761    { (exit 1); exit 1; }; }
16762 else
16763     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16764 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16765 fi
16766
16767
16768
16769     . "$TK_CONFIG_SH"
16770 eval TK_LIBS=\"$TK_LIBS\"
16771 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16772 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16773
16774 fi
16775
16776
16777 #
16778 # Check for DocBook and tools
16779 #
16780 for ac_prog in onsgmls nsgmls
16781 do
16782   # Extract the first word of "$ac_prog", so it can be a program name with args.
16783 set dummy $ac_prog; ac_word=$2
16784 echo "$as_me:$LINENO: checking for $ac_word" >&5
16785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16786 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16787   echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789   if test -n "$NSGMLS"; then
16790   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16791 else
16792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16793 for as_dir in $PATH
16794 do
16795   IFS=$as_save_IFS
16796   test -z "$as_dir" && as_dir=.
16797   for ac_exec_ext in '' $ac_executable_extensions; do
16798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16799     ac_cv_prog_NSGMLS="$ac_prog"
16800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16801     break 2
16802   fi
16803 done
16804 done
16805
16806 fi
16807 fi
16808 NSGMLS=$ac_cv_prog_NSGMLS
16809 if test -n "$NSGMLS"; then
16810   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16811 echo "${ECHO_T}$NSGMLS" >&6
16812 else
16813   echo "$as_me:$LINENO: result: no" >&5
16814 echo "${ECHO_T}no" >&6
16815 fi
16816
16817   test -n "$NSGMLS" && break
16818 done
16819
16820 for ac_prog in openjade jade
16821 do
16822   # Extract the first word of "$ac_prog", so it can be a program name with args.
16823 set dummy $ac_prog; ac_word=$2
16824 echo "$as_me:$LINENO: checking for $ac_word" >&5
16825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16826 if test "${ac_cv_prog_JADE+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   if test -n "$JADE"; then
16830   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16831 else
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16834 do
16835   IFS=$as_save_IFS
16836   test -z "$as_dir" && as_dir=.
16837   for ac_exec_ext in '' $ac_executable_extensions; do
16838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16839     ac_cv_prog_JADE="$ac_prog"
16840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16841     break 2
16842   fi
16843 done
16844 done
16845
16846 fi
16847 fi
16848 JADE=$ac_cv_prog_JADE
16849 if test -n "$JADE"; then
16850   echo "$as_me:$LINENO: result: $JADE" >&5
16851 echo "${ECHO_T}$JADE" >&6
16852 else
16853   echo "$as_me:$LINENO: result: no" >&5
16854 echo "${ECHO_T}no" >&6
16855 fi
16856
16857   test -n "$JADE" && break
16858 done
16859
16860
16861 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16862 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16863 if test "${pgac_cv_check_docbook+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   cat >conftest.sgml <<EOF
16867 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16868 <book>
16869  <title>test</title>
16870  <chapter>
16871   <title>random</title>
16872    <sect1>
16873     <title>testsect</title>
16874     <para>text</para>
16875   </sect1>
16876  </chapter>
16877 </book>
16878 EOF
16879
16880 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16881 if test $? -eq 0; then
16882   pgac_cv_check_docbook=yes
16883 else
16884   pgac_cv_check_docbook=no
16885 fi
16886 rm -f conftest.sgml
16887 fi
16888 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16889 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16890
16891 have_docbook=$pgac_cv_check_docbook
16892
16893
16894 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16895 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16896 if test "${pgac_cv_path_stylesheets+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   if test -n "$DOCBOOKSTYLE"; then
16900   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16901 else
16902   for pgac_prefix in /usr /usr/local /opt; do
16903     for pgac_infix in share lib; do
16904       for pgac_postfix in \
16905         sgml/stylesheets/nwalsh-modular \
16906         sgml/stylesheets/docbook \
16907         sgml/docbook/dsssl/modular \
16908         sgml/docbook/stylesheet/dsssl/modular \
16909         sgml/docbook/dsssl-stylesheets
16910       do
16911         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16912         if test -r "$pgac_candidate/html/docbook.dsl" \
16913            && test -r "$pgac_candidate/print/docbook.dsl"
16914         then
16915           pgac_cv_path_stylesheets=$pgac_candidate
16916           break 3
16917         fi
16918       done
16919     done
16920   done
16921 fi
16922 fi
16923
16924 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16925
16926 if test -n "$DOCBOOKSTYLE"; then
16927   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16928 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16929 else
16930   echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16932 fi
16933 if test -n "$DOCBOOKSTYLE"; then
16934   for ac_prog in collateindex.pl
16935 do
16936   # Extract the first word of "$ac_prog", so it can be a program name with args.
16937 set dummy $ac_prog; ac_word=$2
16938 echo "$as_me:$LINENO: checking for $ac_word" >&5
16939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16940 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16941   echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943   case $COLLATEINDEX in
16944   [\\/]* | ?:[\\/]*)
16945   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16946   ;;
16947   *)
16948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16949 for as_dir in $DOCBOOKSTYLE/bin $PATH
16950 do
16951   IFS=$as_save_IFS
16952   test -z "$as_dir" && as_dir=.
16953   for ac_exec_ext in '' $ac_executable_extensions; do
16954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16955     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16957     break 2
16958   fi
16959 done
16960 done
16961
16962   ;;
16963 esac
16964 fi
16965 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16966
16967 if test -n "$COLLATEINDEX"; then
16968   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16969 echo "${ECHO_T}$COLLATEINDEX" >&6
16970 else
16971   echo "$as_me:$LINENO: result: no" >&5
16972 echo "${ECHO_T}no" >&6
16973 fi
16974
16975   test -n "$COLLATEINDEX" && break
16976 done
16977
16978 else
16979   for ac_prog in collateindex.pl
16980 do
16981   # Extract the first word of "$ac_prog", so it can be a program name with args.
16982 set dummy $ac_prog; ac_word=$2
16983 echo "$as_me:$LINENO: checking for $ac_word" >&5
16984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16985 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   case $COLLATEINDEX in
16989   [\\/]* | ?:[\\/]*)
16990   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16991   ;;
16992   *)
16993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16994 for as_dir in $PATH
16995 do
16996   IFS=$as_save_IFS
16997   test -z "$as_dir" && as_dir=.
16998   for ac_exec_ext in '' $ac_executable_extensions; do
16999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17000     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17002     break 2
17003   fi
17004 done
17005 done
17006
17007   ;;
17008 esac
17009 fi
17010 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17011
17012 if test -n "$COLLATEINDEX"; then
17013   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17014 echo "${ECHO_T}$COLLATEINDEX" >&6
17015 else
17016   echo "$as_me:$LINENO: result: no" >&5
17017 echo "${ECHO_T}no" >&6
17018 fi
17019
17020   test -n "$COLLATEINDEX" && break
17021 done
17022
17023 fi
17024 for ac_prog in sgmlspl
17025 do
17026   # Extract the first word of "$ac_prog", so it can be a program name with args.
17027 set dummy $ac_prog; ac_word=$2
17028 echo "$as_me:$LINENO: checking for $ac_word" >&5
17029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17030 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 else
17033   if test -n "$SGMLSPL"; then
17034   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17035 else
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17038 do
17039   IFS=$as_save_IFS
17040   test -z "$as_dir" && as_dir=.
17041   for ac_exec_ext in '' $ac_executable_extensions; do
17042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17043     ac_cv_prog_SGMLSPL="$ac_prog"
17044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17045     break 2
17046   fi
17047 done
17048 done
17049
17050 fi
17051 fi
17052 SGMLSPL=$ac_cv_prog_SGMLSPL
17053 if test -n "$SGMLSPL"; then
17054   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17055 echo "${ECHO_T}$SGMLSPL" >&6
17056 else
17057   echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6
17059 fi
17060
17061   test -n "$SGMLSPL" && break
17062 done
17063
17064
17065
17066 # prepare build tree if outside source tree
17067 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17068 # Note 2: /bin/pwd might be better than shell's built-in at getting
17069 #         a symlink-free name.
17070 if test "$no_create" != yes; then
17071   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17072     :
17073   else
17074     vpath_build=yes
17075
17076     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17077     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17078     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17079       || { { echo "$as_me:$LINENO: error: failed" >&5
17080 echo "$as_me: error: failed" >&2;}
17081    { (exit 1); exit 1; }; }
17082     echo "$as_me:$LINENO: result: done" >&5
17083 echo "${ECHO_T}done" >&6
17084   fi
17085 fi
17086
17087
17088 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17089
17090
17091 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}"
17092
17093
17094 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17095
17096
17097 cat >confcache <<\_ACEOF
17098 # This file is a shell script that caches the results of configure
17099 # tests run on this system so they can be shared between configure
17100 # scripts and configure runs, see configure's option --config-cache.
17101 # It is not useful on other systems.  If it contains results you don't
17102 # want to keep, you may remove or edit it.
17103 #
17104 # config.status only pays attention to the cache file if you give it
17105 # the --recheck option to rerun configure.
17106 #
17107 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17109 # following values.
17110
17111 _ACEOF
17112
17113 # The following way of writing the cache mishandles newlines in values,
17114 # but we know of no workaround that is simple, portable, and efficient.
17115 # So, don't put newlines in cache variables' values.
17116 # Ultrix sh set writes to stderr and can't be redirected directly,
17117 # and sets the high bit in the cache file unless we assign to the vars.
17118 {
17119   (set) 2>&1 |
17120     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17121     *ac_space=\ *)
17122       # `set' does not quote correctly, so add quotes (double-quote
17123       # substitution turns \\\\ into \\, and sed turns \\ into \).
17124       sed -n \
17125         "s/'/'\\\\''/g;
17126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17127       ;;
17128     *)
17129       # `set' quotes correctly as required by POSIX, so do not add quotes.
17130       sed -n \
17131         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17132       ;;
17133     esac;
17134 } |
17135   sed '
17136      t clear
17137      : clear
17138      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17139      t end
17140      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17141      : end' >>confcache
17142 if cmp -s $cache_file confcache; then :; else
17143   if test -w $cache_file; then
17144     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17145     cat confcache >$cache_file
17146   else
17147     echo "not updating unwritable cache $cache_file"
17148   fi
17149 fi
17150 rm -f confcache
17151
17152 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17153 # Let make expand exec_prefix.
17154 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17155
17156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17158 # trailing colons and then remove the whole line if VPATH becomes empty
17159 # (actually we leave an empty line to preserve line numbers).
17160 if test "x$srcdir" = x.; then
17161   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17162 s/:*\$(srcdir):*/:/;
17163 s/:*\${srcdir}:*/:/;
17164 s/:*@srcdir@:*/:/;
17165 s/^\([^=]*=[    ]*\):*/\1/;
17166 s/:*$//;
17167 s/^[^=]*=[      ]*$//;
17168 }'
17169 fi
17170
17171 DEFS=-DHAVE_CONFIG_H
17172
17173
17174 : ${CONFIG_STATUS=./config.status}
17175 ac_clean_files_save=$ac_clean_files
17176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17177 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17178 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17179 cat >$CONFIG_STATUS <<_ACEOF
17180 #! $SHELL
17181 # Generated by $as_me.
17182 # Run this file to recreate the current configuration.
17183 # Compiler output produced by configure, useful for debugging
17184 # configure, is in config.log if it exists.
17185
17186 debug=false
17187 SHELL=\${CONFIG_SHELL-$SHELL}
17188 _ACEOF
17189
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17191
17192 ## --------------------- ##
17193 ## M4sh Initialization.  ##
17194 ## --------------------- ##
17195
17196 # Be Bourne compatible
17197 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17198   emulate sh
17199   NULLCMD=:
17200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17201   set -o posix
17202 fi
17203
17204 # NLS nuisances.
17205 # Support unset when possible.
17206 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17207   as_unset=unset
17208 else
17209   as_unset=false
17210 fi
17211
17212 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17213     { $as_unset LANG || test "${LANG+set}" != set; } ||
17214       { LANG=C; export LANG; }
17215 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17216     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17217       { LC_ALL=C; export LC_ALL; }
17218 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17219     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17220       { LC_TIME=C; export LC_TIME; }
17221 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17222     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17223       { LC_CTYPE=C; export LC_CTYPE; }
17224 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17225     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17226       { LANGUAGE=C; export LANGUAGE; }
17227 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17228     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17229       { LC_COLLATE=C; export LC_COLLATE; }
17230 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17231     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17232       { LC_NUMERIC=C; export LC_NUMERIC; }
17233 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17234     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17235       { LC_MESSAGES=C; export LC_MESSAGES; }
17236
17237
17238 # Name of the executable.
17239 as_me=`(basename "$0") 2>/dev/null ||
17240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17241          X"$0" : 'X\(//\)$' \| \
17242          X"$0" : 'X\(/\)$' \| \
17243          .     : '\(.\)' 2>/dev/null ||
17244 echo X/"$0" |
17245     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17246           /^X\/\(\/\/\)$/{ s//\1/; q; }
17247           /^X\/\(\/\).*/{ s//\1/; q; }
17248           s/.*/./; q'`
17249
17250 # PATH needs CR, and LINENO needs CR and PATH.
17251 # Avoid depending upon Character Ranges.
17252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17255 as_cr_digits='0123456789'
17256 as_cr_alnum=$as_cr_Letters$as_cr_digits
17257
17258 # The user is always right.
17259 if test "${PATH_SEPARATOR+set}" != set; then
17260   echo "#! /bin/sh" >conftest.sh
17261   echo  "exit 0"   >>conftest.sh
17262   chmod +x conftest.sh
17263   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17264     PATH_SEPARATOR=';'
17265   else
17266     PATH_SEPARATOR=:
17267   fi
17268   rm -f conftest.sh
17269 fi
17270
17271
17272   as_lineno_1=$LINENO
17273   as_lineno_2=$LINENO
17274   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17275   test "x$as_lineno_1" != "x$as_lineno_2" &&
17276   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17277   # Find who we are.  Look in the path if we contain no path at all
17278   # relative or not.
17279   case $0 in
17280     *[\\/]* ) as_myself=$0 ;;
17281     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17283 do
17284   IFS=$as_save_IFS
17285   test -z "$as_dir" && as_dir=.
17286   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17287 done
17288
17289        ;;
17290   esac
17291   # We did not find ourselves, most probably we were run as `sh COMMAND'
17292   # in which case we are not to be found in the path.
17293   if test "x$as_myself" = x; then
17294     as_myself=$0
17295   fi
17296   if test ! -f "$as_myself"; then
17297     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17298 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17299    { (exit 1); exit 1; }; }
17300   fi
17301   case $CONFIG_SHELL in
17302   '')
17303     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17305 do
17306   IFS=$as_save_IFS
17307   test -z "$as_dir" && as_dir=.
17308   for as_base in sh bash ksh sh5; do
17309          case $as_dir in
17310          /*)
17311            if ("$as_dir/$as_base" -c '
17312   as_lineno_1=$LINENO
17313   as_lineno_2=$LINENO
17314   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17315   test "x$as_lineno_1" != "x$as_lineno_2" &&
17316   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17317              CONFIG_SHELL=$as_dir/$as_base
17318              export CONFIG_SHELL
17319              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17320            fi;;
17321          esac
17322        done
17323 done
17324 ;;
17325   esac
17326
17327   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17328   # uniformly replaced by the line number.  The first 'sed' inserts a
17329   # line-number line before each line; the second 'sed' does the real
17330   # work.  The second script uses 'N' to pair each line-number line
17331   # with the numbered line, and appends trailing '-' during
17332   # substitution so that $LINENO is not a special case at line end.
17333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17334   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17335   sed '=' <$as_myself |
17336     sed '
17337       N
17338       s,$,-,
17339       : loop
17340       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17341       t loop
17342       s,-$,,
17343       s,^['$as_cr_digits']*\n,,
17344     ' >$as_me.lineno &&
17345   chmod +x $as_me.lineno ||
17346     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17348    { (exit 1); exit 1; }; }
17349
17350   # Don't try to exec as it changes $[0], causing all sort of problems
17351   # (the dirname of $[0] is not the place where we might find the
17352   # original and so on.  Autoconf is especially sensible to this).
17353   . ./$as_me.lineno
17354   # Exit status is that of the last command.
17355   exit
17356 }
17357
17358
17359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17360   *c*,-n*) ECHO_N= ECHO_C='
17361 ' ECHO_T='      ' ;;
17362   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17363   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17364 esac
17365
17366 if expr a : '\(a\)' >/dev/null 2>&1; then
17367   as_expr=expr
17368 else
17369   as_expr=false
17370 fi
17371
17372 rm -f conf$$ conf$$.exe conf$$.file
17373 echo >conf$$.file
17374 if ln -s conf$$.file conf$$ 2>/dev/null; then
17375   # We could just check for DJGPP; but this test a) works b) is more generic
17376   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17377   if test -f conf$$.exe; then
17378     # Don't use ln at all; we don't have any links
17379     as_ln_s='cp -p'
17380   else
17381     as_ln_s='ln -s'
17382   fi
17383 elif ln conf$$.file conf$$ 2>/dev/null; then
17384   as_ln_s=ln
17385 else
17386   as_ln_s='cp -p'
17387 fi
17388 rm -f conf$$ conf$$.exe conf$$.file
17389
17390 as_executable_p="test -f"
17391
17392 # Sed expression to map a string onto a valid CPP name.
17393 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17394
17395 # Sed expression to map a string onto a valid variable name.
17396 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17397
17398
17399 # IFS
17400 # We need space, tab and new line, in precisely that order.
17401 as_nl='
17402 '
17403 IFS="   $as_nl"
17404
17405 # CDPATH.
17406 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17407
17408 exec 6>&1
17409
17410 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17411 # report actual input values of CONFIG_FILES etc. instead of their
17412 # values after options handling.  Logging --version etc. is OK.
17413 exec 5>>config.log
17414 {
17415   echo
17416   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17417 ## Running $as_me. ##
17418 _ASBOX
17419 } >&5
17420 cat >&5 <<_CSEOF
17421
17422 This file was extended by PostgreSQL $as_me 7.4devel, which was
17423 generated by GNU Autoconf 2.53.  Invocation command line was
17424
17425   CONFIG_FILES    = $CONFIG_FILES
17426   CONFIG_HEADERS  = $CONFIG_HEADERS
17427   CONFIG_LINKS    = $CONFIG_LINKS
17428   CONFIG_COMMANDS = $CONFIG_COMMANDS
17429   $ $0 $@
17430
17431 _CSEOF
17432 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17433 echo >&5
17434 _ACEOF
17435
17436 # Files that config.status was made for.
17437 if test -n "$ac_config_files"; then
17438   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17439 fi
17440
17441 if test -n "$ac_config_headers"; then
17442   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17443 fi
17444
17445 if test -n "$ac_config_links"; then
17446   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17447 fi
17448
17449 if test -n "$ac_config_commands"; then
17450   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17451 fi
17452
17453 cat >>$CONFIG_STATUS <<\_ACEOF
17454
17455 ac_cs_usage="\
17456 \`$as_me' instantiates files from templates according to the
17457 current configuration.
17458
17459 Usage: $0 [OPTIONS] [FILE]...
17460
17461   -h, --help       print this help, then exit
17462   -V, --version    print version number, then exit
17463   -d, --debug      don't remove temporary files
17464       --recheck    update $as_me by reconfiguring in the same conditions
17465   --file=FILE[:TEMPLATE]
17466                    instantiate the configuration file FILE
17467   --header=FILE[:TEMPLATE]
17468                    instantiate the configuration header FILE
17469
17470 Configuration files:
17471 $config_files
17472
17473 Configuration headers:
17474 $config_headers
17475
17476 Configuration links:
17477 $config_links
17478
17479 Report bugs to <bug-autoconf@gnu.org>."
17480 _ACEOF
17481
17482 cat >>$CONFIG_STATUS <<_ACEOF
17483 ac_cs_version="\\
17484 PostgreSQL config.status 7.4devel
17485 configured by $0, generated by GNU Autoconf 2.53,
17486   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17487
17488 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17489 Free Software Foundation, Inc.
17490 This config.status script is free software; the Free Software Foundation
17491 gives unlimited permission to copy, distribute and modify it."
17492 srcdir=$srcdir
17493 _ACEOF
17494
17495 cat >>$CONFIG_STATUS <<\_ACEOF
17496 # If no file are specified by the user, then we need to provide default
17497 # value.  By we need to know if files were specified by the user.
17498 ac_need_defaults=:
17499 while test $# != 0
17500 do
17501   case $1 in
17502   --*=*)
17503     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17504     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17505     shift
17506     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17507     shift
17508     ;;
17509   -*);;
17510   *) # This is not an option, so the user has probably given explicit
17511      # arguments.
17512      ac_need_defaults=false;;
17513   esac
17514
17515   case $1 in
17516   # Handling of the options.
17517 _ACEOF
17518 cat >>$CONFIG_STATUS <<_ACEOF
17519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17520     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17521     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17522 _ACEOF
17523 cat >>$CONFIG_STATUS <<\_ACEOF
17524   --version | --vers* | -V )
17525     echo "$ac_cs_version"; exit 0 ;;
17526   --he | --h)
17527     # Conflict between --help and --header
17528     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17529 Try \`$0 --help' for more information." >&5
17530 echo "$as_me: error: ambiguous option: $1
17531 Try \`$0 --help' for more information." >&2;}
17532    { (exit 1); exit 1; }; };;
17533   --help | --hel | -h )
17534     echo "$ac_cs_usage"; exit 0 ;;
17535   --debug | --d* | -d )
17536     debug=: ;;
17537   --file | --fil | --fi | --f )
17538     shift
17539     CONFIG_FILES="$CONFIG_FILES $1"
17540     ac_need_defaults=false;;
17541   --header | --heade | --head | --hea )
17542     shift
17543     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17544     ac_need_defaults=false;;
17545
17546   # This is an error.
17547   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17548 Try \`$0 --help' for more information." >&5
17549 echo "$as_me: error: unrecognized option: $1
17550 Try \`$0 --help' for more information." >&2;}
17551    { (exit 1); exit 1; }; } ;;
17552
17553   *) ac_config_targets="$ac_config_targets $1" ;;
17554
17555   esac
17556   shift
17557 done
17558
17559 _ACEOF
17560
17561
17562
17563
17564
17565 cat >>$CONFIG_STATUS <<\_ACEOF
17566 for ac_config_target in $ac_config_targets
17567 do
17568   case "$ac_config_target" in
17569   # Handling of arguments.
17570   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17571   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17572   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17573   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17574   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17575   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17576   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17577   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17578   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17579   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17580   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17581 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17582    { (exit 1); exit 1; }; };;
17583   esac
17584 done
17585
17586 # If the user did not use the arguments to specify the items to instantiate,
17587 # then the envvar interface is used.  Set only those that are not.
17588 # We use the long form for the default assignment because of an extremely
17589 # bizarre bug on SunOS 4.1.3.
17590 if $ac_need_defaults; then
17591   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17592   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17593   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17594 fi
17595
17596 # Create a temporary directory, and hook for its removal unless debugging.
17597 $debug ||
17598 {
17599   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17600   trap '{ (exit 1); exit 1; }' 1 2 13 15
17601 }
17602
17603 # Create a (secure) tmp directory for tmp files.
17604 : ${TMPDIR=/tmp}
17605 {
17606   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17607   test -n "$tmp" && test -d "$tmp"
17608 }  ||
17609 {
17610   tmp=$TMPDIR/cs$$-$RANDOM
17611   (umask 077 && mkdir $tmp)
17612 } ||
17613 {
17614    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17615    { (exit 1); exit 1; }
17616 }
17617
17618 _ACEOF
17619
17620 cat >>$CONFIG_STATUS <<_ACEOF
17621
17622 #
17623 # CONFIG_FILES section.
17624 #
17625
17626 # No need to generate the scripts if there are no CONFIG_FILES.
17627 # This happens for instance when ./config.status config.h
17628 if test -n "\$CONFIG_FILES"; then
17629   # Protect against being on the right side of a sed subst in config.status.
17630   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17631    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17632 s,@SHELL@,$SHELL,;t t
17633 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17634 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17635 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17636 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17637 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17638 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17639 s,@exec_prefix@,$exec_prefix,;t t
17640 s,@prefix@,$prefix,;t t
17641 s,@program_transform_name@,$program_transform_name,;t t
17642 s,@bindir@,$bindir,;t t
17643 s,@sbindir@,$sbindir,;t t
17644 s,@libexecdir@,$libexecdir,;t t
17645 s,@datadir@,$datadir,;t t
17646 s,@sysconfdir@,$sysconfdir,;t t
17647 s,@sharedstatedir@,$sharedstatedir,;t t
17648 s,@localstatedir@,$localstatedir,;t t
17649 s,@libdir@,$libdir,;t t
17650 s,@includedir@,$includedir,;t t
17651 s,@oldincludedir@,$oldincludedir,;t t
17652 s,@infodir@,$infodir,;t t
17653 s,@mandir@,$mandir,;t t
17654 s,@build_alias@,$build_alias,;t t
17655 s,@host_alias@,$host_alias,;t t
17656 s,@target_alias@,$target_alias,;t t
17657 s,@DEFS@,$DEFS,;t t
17658 s,@ECHO_C@,$ECHO_C,;t t
17659 s,@ECHO_N@,$ECHO_N,;t t
17660 s,@ECHO_T@,$ECHO_T,;t t
17661 s,@LIBS@,$LIBS,;t t
17662 s,@docdir@,$docdir,;t t
17663 s,@configure_args@,$configure_args,;t t
17664 s,@build@,$build,;t t
17665 s,@build_cpu@,$build_cpu,;t t
17666 s,@build_vendor@,$build_vendor,;t t
17667 s,@build_os@,$build_os,;t t
17668 s,@host@,$host,;t t
17669 s,@host_cpu@,$host_cpu,;t t
17670 s,@host_vendor@,$host_vendor,;t t
17671 s,@host_os@,$host_os,;t t
17672 s,@PORTNAME@,$PORTNAME,;t t
17673 s,@TAS@,$TAS,;t t
17674 s,@enable_nls@,$enable_nls,;t t
17675 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17676 s,@default_port@,$default_port,;t t
17677 s,@enable_shared@,$enable_shared,;t t
17678 s,@enable_rpath@,$enable_rpath,;t t
17679 s,@enable_debug@,$enable_debug,;t t
17680 s,@CC@,$CC,;t t
17681 s,@CFLAGS@,$CFLAGS,;t t
17682 s,@LDFLAGS@,$LDFLAGS,;t t
17683 s,@CPPFLAGS@,$CPPFLAGS,;t t
17684 s,@ac_ct_CC@,$ac_ct_CC,;t t
17685 s,@EXEEXT@,$EXEEXT,;t t
17686 s,@OBJEXT@,$OBJEXT,;t t
17687 s,@CPP@,$CPP,;t t
17688 s,@GCC@,$GCC,;t t
17689 s,@autodepend@,$autodepend,;t t
17690 s,@INCLUDES@,$INCLUDES,;t t
17691 s,@with_threads@,$with_threads,;t t
17692 s,@with_tcl@,$with_tcl,;t t
17693 s,@with_tk@,$with_tk,;t t
17694 s,@with_perl@,$with_perl,;t t
17695 s,@with_python@,$with_python,;t t
17696 s,@ANT@,$ANT,;t t
17697 s,@with_java@,$with_java,;t t
17698 s,@with_krb4@,$with_krb4,;t t
17699 s,@with_krb5@,$with_krb5,;t t
17700 s,@krb_srvtab@,$krb_srvtab,;t t
17701 s,@with_pam@,$with_pam,;t t
17702 s,@with_rendezvous@,$with_rendezvous,;t t
17703 s,@with_openssl@,$with_openssl,;t t
17704 s,@ELF_SYS@,$ELF_SYS,;t t
17705 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17706 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17707 s,@AWK@,$AWK,;t t
17708 s,@FLEX@,$FLEX,;t t
17709 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17710 s,@LN_S@,$LN_S,;t t
17711 s,@LD@,$LD,;t t
17712 s,@with_gnu_ld@,$with_gnu_ld,;t t
17713 s,@ld_R_works@,$ld_R_works,;t t
17714 s,@RANLIB@,$RANLIB,;t t
17715 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17716 s,@LORDER@,$LORDER,;t t
17717 s,@TAR@,$TAR,;t t
17718 s,@STRIP@,$STRIP,;t t
17719 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17720 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17721 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17722 s,@YACC@,$YACC,;t t
17723 s,@YFLAGS@,$YFLAGS,;t t
17724 s,@PERL@,$PERL,;t t
17725 s,@perl_archlibexp@,$perl_archlibexp,;t t
17726 s,@perl_privlibexp@,$perl_privlibexp,;t t
17727 s,@perl_useshrplib@,$perl_useshrplib,;t t
17728 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17729 s,@PYTHON@,$PYTHON,;t t
17730 s,@python_version@,$python_version,;t t
17731 s,@python_prefix@,$python_prefix,;t t
17732 s,@python_execprefix@,$python_execprefix,;t t
17733 s,@python_configdir@,$python_configdir,;t t
17734 s,@python_moduledir@,$python_moduledir,;t t
17735 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17736 s,@python_includespec@,$python_includespec,;t t
17737 s,@python_libspec@,$python_libspec,;t t
17738 s,@LIBOBJS@,$LIBOBJS,;t t
17739 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17740 s,@MSGFMT@,$MSGFMT,;t t
17741 s,@MSGMERGE@,$MSGMERGE,;t t
17742 s,@XGETTEXT@,$XGETTEXT,;t t
17743 s,@localedir@,$localedir,;t t
17744 s,@TCLSH@,$TCLSH,;t t
17745 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17746 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17747 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17748 s,@TCL_LIBS@,$TCL_LIBS,;t t
17749 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17750 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17751 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17752 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17753 s,@TK_LIBS@,$TK_LIBS,;t t
17754 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17755 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17756 s,@NSGMLS@,$NSGMLS,;t t
17757 s,@JADE@,$JADE,;t t
17758 s,@have_docbook@,$have_docbook,;t t
17759 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17760 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17761 s,@SGMLSPL@,$SGMLSPL,;t t
17762 s,@vpath_build@,$vpath_build,;t t
17763 CEOF
17764
17765 _ACEOF
17766
17767   cat >>$CONFIG_STATUS <<\_ACEOF
17768   # Split the substitutions into bite-sized pieces for seds with
17769   # small command number limits, like on Digital OSF/1 and HP-UX.
17770   ac_max_sed_lines=48
17771   ac_sed_frag=1 # Number of current file.
17772   ac_beg=1 # First line for current file.
17773   ac_end=$ac_max_sed_lines # Line after last line for current file.
17774   ac_more_lines=:
17775   ac_sed_cmds=
17776   while $ac_more_lines; do
17777     if test $ac_beg -gt 1; then
17778       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17779     else
17780       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17781     fi
17782     if test ! -s $tmp/subs.frag; then
17783       ac_more_lines=false
17784     else
17785       # The purpose of the label and of the branching condition is to
17786       # speed up the sed processing (if there are no `@' at all, there
17787       # is no need to browse any of the substitutions).
17788       # These are the two extra sed commands mentioned above.
17789       (echo ':t
17790   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17791       if test -z "$ac_sed_cmds"; then
17792         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17793       else
17794         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17795       fi
17796       ac_sed_frag=`expr $ac_sed_frag + 1`
17797       ac_beg=$ac_end
17798       ac_end=`expr $ac_end + $ac_max_sed_lines`
17799     fi
17800   done
17801   if test -z "$ac_sed_cmds"; then
17802     ac_sed_cmds=cat
17803   fi
17804 fi # test -n "$CONFIG_FILES"
17805
17806 _ACEOF
17807 cat >>$CONFIG_STATUS <<\_ACEOF
17808 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17809   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17810   case $ac_file in
17811   - | *:- | *:-:* ) # input from stdin
17812         cat >$tmp/stdin
17813         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17815   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17816         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17817   * )   ac_file_in=$ac_file.in ;;
17818   esac
17819
17820   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17821   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823          X"$ac_file" : 'X\(//\)[^/]' \| \
17824          X"$ac_file" : 'X\(//\)$' \| \
17825          X"$ac_file" : 'X\(/\)' \| \
17826          .     : '\(.\)' 2>/dev/null ||
17827 echo X"$ac_file" |
17828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17829           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17830           /^X\(\/\/\)$/{ s//\1/; q; }
17831           /^X\(\/\).*/{ s//\1/; q; }
17832           s/.*/./; q'`
17833   { case "$ac_dir" in
17834   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17835   *)                      as_incr_dir=.;;
17836 esac
17837 as_dummy="$ac_dir"
17838 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17839   case $as_mkdir_dir in
17840     # Skip DOS drivespec
17841     ?:) as_incr_dir=$as_mkdir_dir ;;
17842     *)
17843       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17844       test -d "$as_incr_dir" ||
17845         mkdir "$as_incr_dir" ||
17846         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17847 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17848    { (exit 1); exit 1; }; }
17849     ;;
17850   esac
17851 done; }
17852
17853   ac_builddir=.
17854
17855 if test "$ac_dir" != .; then
17856   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17857   # A "../" for each directory in $ac_dir_suffix.
17858   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17859 else
17860   ac_dir_suffix= ac_top_builddir=
17861 fi
17862
17863 case $srcdir in
17864   .)  # No --srcdir option.  We are building in place.
17865     ac_srcdir=.
17866     if test -z "$ac_top_builddir"; then
17867        ac_top_srcdir=.
17868     else
17869        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17870     fi ;;
17871   [\\/]* | ?:[\\/]* )  # Absolute path.
17872     ac_srcdir=$srcdir$ac_dir_suffix;
17873     ac_top_srcdir=$srcdir ;;
17874   *) # Relative path.
17875     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17876     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17877 esac
17878 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17879 # absolute.
17880 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17881 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17882 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17883 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17884
17885
17886
17887   if test x"$ac_file" != x-; then
17888     { echo "$as_me:$LINENO: creating $ac_file" >&5
17889 echo "$as_me: creating $ac_file" >&6;}
17890     rm -f "$ac_file"
17891   fi
17892   # Let's still pretend it is `configure' which instantiates (i.e., don't
17893   # use $as_me), people would be surprised to read:
17894   #    /* config.h.  Generated by config.status.  */
17895   if test x"$ac_file" = x-; then
17896     configure_input=
17897   else
17898     configure_input="$ac_file.  "
17899   fi
17900   configure_input=$configure_input"Generated from `echo $ac_file_in |
17901                                      sed 's,.*/,,'` by configure."
17902
17903   # First look for the input files in the build tree, otherwise in the
17904   # src tree.
17905   ac_file_inputs=`IFS=:
17906     for f in $ac_file_in; do
17907       case $f in
17908       -) echo $tmp/stdin ;;
17909       [\\/$]*)
17910          # Absolute (can't be DOS-style, as IFS=:)
17911          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17912 echo "$as_me: error: cannot find input file: $f" >&2;}
17913    { (exit 1); exit 1; }; }
17914          echo $f;;
17915       *) # Relative
17916          if test -f "$f"; then
17917            # Build tree
17918            echo $f
17919          elif test -f "$srcdir/$f"; then
17920            # Source tree
17921            echo $srcdir/$f
17922          else
17923            # /dev/null tree
17924            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17925 echo "$as_me: error: cannot find input file: $f" >&2;}
17926    { (exit 1); exit 1; }; }
17927          fi;;
17928       esac
17929     done` || { (exit 1); exit 1; }
17930 _ACEOF
17931 cat >>$CONFIG_STATUS <<_ACEOF
17932   sed "$ac_vpsub
17933 $extrasub
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<\_ACEOF
17936 :t
17937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17938 s,@configure_input@,$configure_input,;t t
17939 s,@srcdir@,$ac_srcdir,;t t
17940 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17941 s,@top_srcdir@,$ac_top_srcdir,;t t
17942 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17943 s,@builddir@,$ac_builddir,;t t
17944 s,@abs_builddir@,$ac_abs_builddir,;t t
17945 s,@top_builddir@,$ac_top_builddir,;t t
17946 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17947 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17948   rm -f $tmp/stdin
17949   if test x"$ac_file" != x-; then
17950     mv $tmp/out $ac_file
17951   else
17952     cat $tmp/out
17953     rm -f $tmp/out
17954   fi
17955
17956 done
17957 _ACEOF
17958 cat >>$CONFIG_STATUS <<\_ACEOF
17959
17960 #
17961 # CONFIG_HEADER section.
17962 #
17963
17964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17966 #
17967 # ac_d sets the value in "#define NAME VALUE" lines.
17968 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17969 ac_dB='[        ].*$,\1#\2'
17970 ac_dC=' '
17971 ac_dD=',;t'
17972 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17973 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17974 ac_uB='$,\1#\2define\3'
17975 ac_uC=' '
17976 ac_uD=',;t'
17977
17978 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17980   case $ac_file in
17981   - | *:- | *:-:* ) # input from stdin
17982         cat >$tmp/stdin
17983         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17985   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17987   * )   ac_file_in=$ac_file.in ;;
17988   esac
17989
17990   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17991 echo "$as_me: creating $ac_file" >&6;}
17992
17993   # First look for the input files in the build tree, otherwise in the
17994   # src tree.
17995   ac_file_inputs=`IFS=:
17996     for f in $ac_file_in; do
17997       case $f in
17998       -) echo $tmp/stdin ;;
17999       [\\/$]*)
18000          # Absolute (can't be DOS-style, as IFS=:)
18001          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18002 echo "$as_me: error: cannot find input file: $f" >&2;}
18003    { (exit 1); exit 1; }; }
18004          echo $f;;
18005       *) # Relative
18006          if test -f "$f"; then
18007            # Build tree
18008            echo $f
18009          elif test -f "$srcdir/$f"; then
18010            # Source tree
18011            echo $srcdir/$f
18012          else
18013            # /dev/null tree
18014            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18015 echo "$as_me: error: cannot find input file: $f" >&2;}
18016    { (exit 1); exit 1; }; }
18017          fi;;
18018       esac
18019     done` || { (exit 1); exit 1; }
18020   # Remove the trailing spaces.
18021   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18022
18023 _ACEOF
18024
18025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18026 # `conftest.undefs', that substitutes the proper values into
18027 # config.h.in to produce config.h.  The first handles `#define'
18028 # templates, and the second `#undef' templates.
18029 # And first: Protect against being on the right side of a sed subst in
18030 # config.status.  Protect against being in an unquoted here document
18031 # in config.status.
18032 rm -f conftest.defines conftest.undefs
18033 # Using a here document instead of a string reduces the quoting nightmare.
18034 # Putting comments in sed scripts is not portable.
18035 #
18036 # `end' is used to avoid that the second main sed command (meant for
18037 # 0-ary CPP macros) applies to n-ary macro definitions.
18038 # See the Autoconf documentation for `clear'.
18039 cat >confdef2sed.sed <<\_ACEOF
18040 s/[\\&,]/\\&/g
18041 s,[\\$`],\\&,g
18042 t clear
18043 : clear
18044 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18045 t end
18046 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18047 : end
18048 _ACEOF
18049 # If some macros were called several times there might be several times
18050 # the same #defines, which is useless.  Nevertheless, we may not want to
18051 # sort them, since we want the *last* AC-DEFINE to be honored.
18052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18054 rm -f confdef2sed.sed
18055
18056 # This sed command replaces #undef with comments.  This is necessary, for
18057 # example, in the case of _POSIX_SOURCE, which is predefined and required
18058 # on some systems where configure will not decide to define it.
18059 cat >>conftest.undefs <<\_ACEOF
18060 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18061 _ACEOF
18062
18063 # Break up conftest.defines because some shells have a limit on the size
18064 # of here documents, and old seds have small limits too (100 cmds).
18065 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18066 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18067 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18068 echo '  :' >>$CONFIG_STATUS
18069 rm -f conftest.tail
18070 while grep . conftest.defines >/dev/null
18071 do
18072   # Write a limited-size here document to $tmp/defines.sed.
18073   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18074   # Speed up: don't consider the non `#define' lines.
18075   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18076   # Work around the forget-to-reset-the-flag bug.
18077   echo 't clr' >>$CONFIG_STATUS
18078   echo ': clr' >>$CONFIG_STATUS
18079   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18080   echo 'CEOF
18081   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18082   rm -f $tmp/in
18083   mv $tmp/out $tmp/in
18084 ' >>$CONFIG_STATUS
18085   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18086   rm -f conftest.defines
18087   mv conftest.tail conftest.defines
18088 done
18089 rm -f conftest.defines
18090 echo '  fi # egrep' >>$CONFIG_STATUS
18091 echo >>$CONFIG_STATUS
18092
18093 # Break up conftest.undefs because some shells have a limit on the size
18094 # of here documents, and old seds have small limits too (100 cmds).
18095 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18096 rm -f conftest.tail
18097 while grep . conftest.undefs >/dev/null
18098 do
18099   # Write a limited-size here document to $tmp/undefs.sed.
18100   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18101   # Speed up: don't consider the non `#undef'
18102   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18103   # Work around the forget-to-reset-the-flag bug.
18104   echo 't clr' >>$CONFIG_STATUS
18105   echo ': clr' >>$CONFIG_STATUS
18106   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18107   echo 'CEOF
18108   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18109   rm -f $tmp/in
18110   mv $tmp/out $tmp/in
18111 ' >>$CONFIG_STATUS
18112   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18113   rm -f conftest.undefs
18114   mv conftest.tail conftest.undefs
18115 done
18116 rm -f conftest.undefs
18117
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119   # Let's still pretend it is `configure' which instantiates (i.e., don't
18120   # use $as_me), people would be surprised to read:
18121   #    /* config.h.  Generated by config.status.  */
18122   if test x"$ac_file" = x-; then
18123     echo "/* Generated by configure.  */" >$tmp/config.h
18124   else
18125     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18126   fi
18127   cat $tmp/in >>$tmp/config.h
18128   rm -f $tmp/in
18129   if test x"$ac_file" != x-; then
18130     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18131       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18132 echo "$as_me: $ac_file is unchanged" >&6;}
18133     else
18134       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18136          X"$ac_file" : 'X\(//\)[^/]' \| \
18137          X"$ac_file" : 'X\(//\)$' \| \
18138          X"$ac_file" : 'X\(/\)' \| \
18139          .     : '\(.\)' 2>/dev/null ||
18140 echo X"$ac_file" |
18141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18142           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18143           /^X\(\/\/\)$/{ s//\1/; q; }
18144           /^X\(\/\).*/{ s//\1/; q; }
18145           s/.*/./; q'`
18146       { case "$ac_dir" in
18147   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18148   *)                      as_incr_dir=.;;
18149 esac
18150 as_dummy="$ac_dir"
18151 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18152   case $as_mkdir_dir in
18153     # Skip DOS drivespec
18154     ?:) as_incr_dir=$as_mkdir_dir ;;
18155     *)
18156       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18157       test -d "$as_incr_dir" ||
18158         mkdir "$as_incr_dir" ||
18159         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18160 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18161    { (exit 1); exit 1; }; }
18162     ;;
18163   esac
18164 done; }
18165
18166       rm -f $ac_file
18167       mv $tmp/config.h $ac_file
18168     fi
18169   else
18170     cat $tmp/config.h
18171     rm -f $tmp/config.h
18172   fi
18173   # Run the commands associated with the file.
18174   case $ac_file in
18175     src/include/pg_config.h )
18176 # Update timestamp for pg_config.h (see Makefile.global)
18177 echo >src/include/stamp-h
18178  ;;
18179   esac
18180 done
18181 _ACEOF
18182 cat >>$CONFIG_STATUS <<\_ACEOF
18183
18184 #
18185 # CONFIG_LINKS section.
18186 #
18187
18188 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18189   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18190   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18191
18192   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18193 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18194
18195   if test ! -r $srcdir/$ac_source; then
18196     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18197 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18198    { (exit 1); exit 1; }; }
18199   fi
18200   rm -f $ac_dest
18201
18202   # Make relative symlinks.
18203   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18204 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18205          X"$ac_dest" : 'X\(//\)[^/]' \| \
18206          X"$ac_dest" : 'X\(//\)$' \| \
18207          X"$ac_dest" : 'X\(/\)' \| \
18208          .     : '\(.\)' 2>/dev/null ||
18209 echo X"$ac_dest" |
18210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18211           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18212           /^X\(\/\/\)$/{ s//\1/; q; }
18213           /^X\(\/\).*/{ s//\1/; q; }
18214           s/.*/./; q'`
18215   { case "$ac_dest_dir" in
18216   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18217   *)                      as_incr_dir=.;;
18218 esac
18219 as_dummy="$ac_dest_dir"
18220 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18221   case $as_mkdir_dir in
18222     # Skip DOS drivespec
18223     ?:) as_incr_dir=$as_mkdir_dir ;;
18224     *)
18225       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18226       test -d "$as_incr_dir" ||
18227         mkdir "$as_incr_dir" ||
18228         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18229 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18230    { (exit 1); exit 1; }; }
18231     ;;
18232   esac
18233 done; }
18234
18235   ac_builddir=.
18236
18237 if test "$ac_dest_dir" != .; then
18238   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18239   # A "../" for each directory in $ac_dir_suffix.
18240   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18241 else
18242   ac_dir_suffix= ac_top_builddir=
18243 fi
18244
18245 case $srcdir in
18246   .)  # No --srcdir option.  We are building in place.
18247     ac_srcdir=.
18248     if test -z "$ac_top_builddir"; then
18249        ac_top_srcdir=.
18250     else
18251        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18252     fi ;;
18253   [\\/]* | ?:[\\/]* )  # Absolute path.
18254     ac_srcdir=$srcdir$ac_dir_suffix;
18255     ac_top_srcdir=$srcdir ;;
18256   *) # Relative path.
18257     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18258     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18259 esac
18260 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18261 # absolute.
18262 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18263 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18264 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18265 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18266
18267
18268   case $srcdir in
18269   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18270       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18271   esac
18272
18273   # Make a symlink if possible; otherwise try a hard link.
18274   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18275     ln $srcdir/$ac_source $ac_dest ||
18276     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18277 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18278    { (exit 1); exit 1; }; }
18279 done
18280 _ACEOF
18281
18282 cat >>$CONFIG_STATUS <<\_ACEOF
18283
18284 { (exit 0); exit 0; }
18285 _ACEOF
18286 chmod +x $CONFIG_STATUS
18287 ac_clean_files=$ac_clean_files_save
18288
18289
18290 # configure is writing to config.log, and then calls config.status.
18291 # config.status does its own redirection, appending to config.log.
18292 # Unfortunately, on DOS this fails, as config.log is still kept open
18293 # by configure, so config.status won't be able to write to it; its
18294 # output is simply discarded.  So we exec the FD to /dev/null,
18295 # effectively closing config.log, so it can be properly (re)opened and
18296 # appended to by config.status.  When coming back to configure, we
18297 # need to make the FD available again.
18298 if test "$no_create" != yes; then
18299   ac_cs_success=:
18300   exec 5>/dev/null
18301   $SHELL $CONFIG_STATUS || ac_cs_success=false
18302   exec 5>>config.log
18303   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18304   # would make configure fail if this is the last instruction.
18305   $ac_cs_success || { (exit 1); exit 1; }
18306 fi
18307