]> granicus.if.org Git - postgresql/blob - configure
3dd2f4dccc24e1951f9a3143dd273d0998a2ab6b
[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       ;;
2829     no)
2830       :
2831       ;;
2832     *)
2833       { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2834 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2835    { (exit 1); exit 1; }; }
2836       ;;
2837   esac
2838
2839 else
2840   with_threads=no
2841
2842 fi;
2843
2844 echo "$as_me:$LINENO: result: $with_threads" >&5
2845 echo "${ECHO_T}$with_threads" >&6
2846
2847
2848 #
2849 # Tcl/Tk
2850 #
2851 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2852 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2853
2854
2855
2856 # Check whether --with-tcl or --without-tcl was given.
2857 if test "${with_tcl+set}" = set; then
2858   withval="$with_tcl"
2859
2860   case $withval in
2861     yes)
2862       :
2863       ;;
2864     no)
2865       :
2866       ;;
2867     *)
2868       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2869 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2870    { (exit 1); exit 1; }; }
2871       ;;
2872   esac
2873
2874 else
2875   with_tcl=no
2876
2877 fi;
2878
2879 echo "$as_me:$LINENO: result: $with_tcl" >&5
2880 echo "${ECHO_T}$with_tcl" >&6
2881
2882
2883 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2884 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2885 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2886 if test "$with_tcl" = yes; then
2887
2888
2889
2890 # Check whether --with-tk or --without-tk was given.
2891 if test "${with_tk+set}" = set; then
2892   withval="$with_tk"
2893
2894   case $withval in
2895     yes)
2896       :
2897       ;;
2898     no)
2899       :
2900       ;;
2901     *)
2902       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2903 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2904    { (exit 1); exit 1; }; }
2905       ;;
2906   esac
2907
2908 else
2909   with_tk=yes
2910
2911 fi;
2912
2913 else
2914   with_tk=no
2915 fi
2916 echo "$as_me:$LINENO: result: $with_tk" >&5
2917 echo "${ECHO_T}$with_tk" >&6
2918
2919
2920
2921 # We see if the path to the Tcl/Tk configuration scripts is specified.
2922 # This will override the use of tclsh to find the paths to search.
2923
2924
2925
2926
2927 # Check whether --with-tclconfig or --without-tclconfig was given.
2928 if test "${with_tclconfig+set}" = set; then
2929   withval="$with_tclconfig"
2930
2931   case $withval in
2932     yes)
2933       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2934 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2935    { (exit 1); exit 1; }; }
2936       ;;
2937     no)
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     *)
2943
2944       ;;
2945   esac
2946
2947 fi;
2948
2949
2950 # We see if the path to the Tk configuration scripts is specified.
2951 # This will override the use of tclsh to find the paths to search.
2952
2953
2954
2955
2956 # Check whether --with-tkconfig or --without-tkconfig was given.
2957 if test "${with_tkconfig+set}" = set; then
2958   withval="$with_tkconfig"
2959
2960   case $withval in
2961     yes)
2962       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2963 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2964    { (exit 1); exit 1; }; }
2965       ;;
2966     no)
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     *)
2972
2973       ;;
2974   esac
2975
2976 fi;
2977
2978
2979 #
2980 # Optionally build Perl modules (PL/Perl)
2981 #
2982 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2983 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2984
2985
2986
2987 # Check whether --with-perl or --without-perl was given.
2988 if test "${with_perl+set}" = set; then
2989   withval="$with_perl"
2990
2991   case $withval in
2992     yes)
2993       :
2994       ;;
2995     no)
2996       :
2997       ;;
2998     *)
2999       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3000 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3001    { (exit 1); exit 1; }; }
3002       ;;
3003   esac
3004
3005 else
3006   with_perl=no
3007
3008 fi;
3009
3010 echo "$as_me:$LINENO: result: $with_perl" >&5
3011 echo "${ECHO_T}$with_perl" >&6
3012
3013
3014 #
3015 # Optionally build Python interface module
3016 #
3017 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3018 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3019
3020
3021
3022 # Check whether --with-python or --without-python was given.
3023 if test "${with_python+set}" = set; then
3024   withval="$with_python"
3025
3026   case $withval in
3027     yes)
3028       :
3029       ;;
3030     no)
3031       :
3032       ;;
3033     *)
3034       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3035 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3036    { (exit 1); exit 1; }; }
3037       ;;
3038   esac
3039
3040 else
3041   with_python=no
3042
3043 fi;
3044
3045 echo "$as_me:$LINENO: result: $with_python" >&5
3046 echo "${ECHO_T}$with_python" >&6
3047
3048
3049 #
3050 # Optionally build the Java/JDBC tools
3051 #
3052 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3053 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3054
3055
3056
3057 # Check whether --with-java or --without-java was given.
3058 if test "${with_java+set}" = set; then
3059   withval="$with_java"
3060
3061   case $withval in
3062     yes)
3063       echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065
3066   for ac_prog in jakarta-ant ant ant.sh ant.bat
3067 do
3068   # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_path_ANT+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   case $ANT in
3076   [\\/]* | ?:[\\/]*)
3077   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3078   ;;
3079   *)
3080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085   for ac_exec_ext in '' $ac_executable_extensions; do
3086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092 done
3093
3094   ;;
3095 esac
3096 fi
3097 ANT=$ac_cv_path_ANT
3098
3099 if test -n "$ANT"; then
3100   echo "$as_me:$LINENO: result: $ANT" >&5
3101 echo "${ECHO_T}$ANT" >&6
3102 else
3103   echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 fi
3106
3107   test -n "$ANT" && break
3108 done
3109
3110
3111   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3112 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3113 if test "${pgac_cv_prog_ant_works+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116
3117     cat > conftest.java << EOF
3118 public class conftest {
3119     int testmethod(int a, int b) {
3120         return a + b;
3121     }
3122 }
3123 EOF
3124
3125     cat > conftest.xml << EOF
3126 <project name="conftest" default="conftest">
3127  <target name="conftest">
3128   <javac srcdir="." includes="conftest.java">
3129   </javac>
3130  </target>
3131 </project>
3132 EOF
3133
3134     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3135     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3136   (eval $pgac_cmd) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140     pgac_save_status=$?
3141     if test $? = 0 && test -f ./conftest.class ; then
3142       pgac_cv_prog_ant_works=yes
3143     else
3144       echo "configure: failed java program was:" >&5
3145       cat conftest.java >&5
3146       echo "configure: failed build file was:" >&5
3147       cat conftest.xml >&5
3148       pgac_cv_prog_ant_works=no
3149     fi
3150
3151     rm -f conftest* core core.* *.core
3152
3153 fi
3154 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3155 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3156
3157   if test "$pgac_cv_prog_ant_works" != yes; then
3158     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3159 echo "$as_me: error: ant does not work" >&2;}
3160    { (exit 1); exit 1; }; }
3161   fi
3162
3163
3164 if test -z "$ANT"; then
3165   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3166 If you have Ant already installed, see config.log for details on the failure." >&5
3167 echo "$as_me: error: Ant is required to build Java components
3168 If you have Ant already installed, see config.log for details on the failure." >&2;}
3169    { (exit 1); exit 1; }; }
3170 fi
3171 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3172   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3173 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3174    { (exit 1); exit 1; }; }
3175 fi
3176       ;;
3177     no)
3178       echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180       ;;
3181     *)
3182       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3183 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3184    { (exit 1); exit 1; }; }
3185       ;;
3186   esac
3187
3188 else
3189   with_java=no
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3192 fi;
3193
3194
3195
3196
3197 #
3198 # Kerberos 4
3199 #
3200 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3201 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3202
3203
3204
3205 # Check whether --with-krb4 or --without-krb4 was given.
3206 if test "${with_krb4+set}" = set; then
3207   withval="$with_krb4"
3208
3209   case $withval in
3210     yes)
3211       krb4_prefix=/usr/athena
3212       ;;
3213     no)
3214       :
3215       ;;
3216     *)
3217       with_krb4=yes
3218 krb4_prefix=$withval
3219       ;;
3220   esac
3221
3222 else
3223   with_krb4=no
3224 fi;
3225
3226
3227 if test "$with_krb4" = yes; then
3228
3229   echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6
3231
3232 cat >>confdefs.h <<\_ACEOF
3233 #define KRB4 1
3234 _ACEOF
3235
3236
3237   if test -d "$krb4_prefix/include"; then
3238     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3239   fi
3240   if test -d "$krb4_prefix/lib"; then
3241     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3242   fi
3243
3244   krb_srvtab="/etc/srvtab"
3245
3246 else
3247   echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3249 fi
3250
3251
3252
3253
3254
3255 #
3256 # Kerberos 5
3257 #
3258 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3259 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3260
3261
3262
3263 # Check whether --with-krb5 or --without-krb5 was given.
3264 if test "${with_krb5+set}" = set; then
3265   withval="$with_krb5"
3266
3267   case $withval in
3268     yes)
3269       krb5_prefix=/usr/athena
3270       ;;
3271     no)
3272       :
3273       ;;
3274     *)
3275       with_krb5=yes
3276 krb5_prefix=$withval
3277       ;;
3278   esac
3279
3280 else
3281   with_krb5=no
3282 fi;
3283
3284
3285 if test "$with_krb5" = yes; then
3286
3287   echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6
3289
3290 cat >>confdefs.h <<\_ACEOF
3291 #define KRB5 1
3292 _ACEOF
3293
3294
3295   if test -d "$krb5_prefix/include"; then
3296     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3297   fi
3298   if test -d "$krb5_prefix/lib"; then
3299     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3300   fi
3301
3302   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3303
3304 else
3305   echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307 fi
3308
3309
3310
3311
3312
3313 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3314 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3315   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3316 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320
3321
3322
3323 #
3324 # Kerberos configuration parameters
3325 #
3326
3327
3328
3329 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3330 if test "${with_krb_srvnam+set}" = set; then
3331   withval="$with_krb_srvnam"
3332
3333   case $withval in
3334     yes)
3335       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3336 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3337    { (exit 1); exit 1; }; }
3338       ;;
3339     no)
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     *)
3345
3346       ;;
3347   esac
3348
3349 else
3350   with_krb_srvnam="postgres"
3351 fi;
3352
3353
3354 cat >>confdefs.h <<_ACEOF
3355 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3356 _ACEOF
3357
3358
3359
3360 #
3361 # PAM
3362 #
3363 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3364 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3365
3366
3367
3368 # Check whether --with-pam or --without-pam was given.
3369 if test "${with_pam+set}" = set; then
3370   withval="$with_pam"
3371
3372   case $withval in
3373     yes)
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define USE_PAM 1
3377 _ACEOF
3378
3379       ;;
3380     no)
3381       :
3382       ;;
3383     *)
3384       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3385 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3386    { (exit 1); exit 1; }; }
3387       ;;
3388   esac
3389
3390 else
3391   with_pam=no
3392
3393 fi;
3394
3395 echo "$as_me:$LINENO: result: $with_pam" >&5
3396 echo "${ECHO_T}$with_pam" >&6
3397
3398
3399
3400 #
3401 # Rendezvous
3402 #
3403 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3404 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3405
3406
3407
3408 # Check whether --with-rendezvous or --without-rendezvous was given.
3409 if test "${with_rendezvous+set}" = set; then
3410   withval="$with_rendezvous"
3411
3412   case $withval in
3413     yes)
3414
3415 cat >>confdefs.h <<\_ACEOF
3416 #define USE_RENDEZVOUS 1
3417 _ACEOF
3418
3419       ;;
3420     no)
3421       :
3422       ;;
3423     *)
3424       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3425 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3426    { (exit 1); exit 1; }; }
3427       ;;
3428   esac
3429
3430 else
3431   with_rendezvous=no
3432
3433 fi;
3434
3435 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3436 echo "${ECHO_T}$with_rendezvous" >&6
3437
3438
3439
3440 #
3441 # OpenSSL
3442 #
3443
3444
3445
3446 # Check whether --with-openssl or --without-openssl was given.
3447 if test "${with_openssl+set}" = set; then
3448   withval="$with_openssl"
3449
3450   case $withval in
3451     yes)
3452       openssl_prefix=/usr/local/ssl
3453       ;;
3454     no)
3455       :
3456       ;;
3457     *)
3458       with_openssl=yes
3459 openssl_prefix=$withval
3460       ;;
3461   esac
3462
3463 else
3464   with_openssl=no
3465 fi;
3466
3467
3468 if test "$with_openssl" = yes; then
3469
3470   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3471 echo "${ECHO_T}building with OpenSSL support" >&6
3472
3473 cat >>confdefs.h <<\_ACEOF
3474 #define USE_SSL 1
3475 _ACEOF
3476
3477
3478   if test -d "${openssl_prefix}/include" ; then
3479     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3480   fi
3481   if test -d "${openssl_prefix}/lib" ; then
3482     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3483   fi
3484
3485 fi
3486
3487
3488
3489
3490
3491 #
3492 # Readline
3493 #
3494
3495
3496
3497 # Check whether --with-readline or --without-readline was given.
3498 if test "${with_readline+set}" = set; then
3499   withval="$with_readline"
3500
3501   case $withval in
3502     yes)
3503       :
3504       ;;
3505     no)
3506       :
3507       ;;
3508     *)
3509       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3510 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3511    { (exit 1); exit 1; }; }
3512       ;;
3513   esac
3514
3515 else
3516   with_readline=yes
3517
3518 fi;
3519
3520
3521 #
3522 # Zlib
3523 #
3524
3525
3526
3527 # Check whether --with-zlib or --without-zlib was given.
3528 if test "${with_zlib+set}" = set; then
3529   withval="$with_zlib"
3530
3531   case $withval in
3532     yes)
3533       :
3534       ;;
3535     no)
3536       :
3537       ;;
3538     *)
3539       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3540 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3541    { (exit 1); exit 1; }; }
3542       ;;
3543   esac
3544
3545 else
3546   with_zlib=yes
3547
3548 fi;
3549
3550
3551
3552 #
3553 # Elf
3554 #
3555
3556 # Assume system is ELF if it predefines __ELF__ as 1,
3557 # otherwise believe host_os based default.
3558 case $host_os in
3559     freebsd1*|freebsd2*) elf=no;;
3560     freebsd3*|freebsd4*) elf=yes;;
3561 esac
3562
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 #include "confdefs.h"
3567 #if __ELF__
3568   yes
3569 #endif
3570
3571 _ACEOF
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573   egrep "yes" >/dev/null 2>&1; then
3574   ELF_SYS=true
3575 else
3576   if test "X$elf" = "Xyes" ; then
3577   ELF_SYS=true
3578 else
3579   ELF_SYS=
3580 fi
3581 fi
3582 rm -f conftest*
3583
3584
3585
3586 #
3587 # Pthreads
3588 #
3589 if test "$with_threads" = yes; then
3590 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 #include "confdefs.h"
3598 #include <stdlib.h>
3599 #include <stdarg.h>
3600 #include <string.h>
3601 #include <float.h>
3602
3603 _ACEOF
3604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3606   ac_status=$?
3607   egrep -v '^ *\+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } >/dev/null; then
3612   if test -s conftest.err; then
3613     ac_cpp_err=$ac_c_preproc_warn_flag
3614   else
3615     ac_cpp_err=
3616   fi
3617 else
3618   ac_cpp_err=yes
3619 fi
3620 if test -z "$ac_cpp_err"; then
3621   ac_cv_header_stdc=yes
3622 else
3623   echo "$as_me: failed program was:" >&5
3624   cat conftest.$ac_ext >&5
3625   ac_cv_header_stdc=no
3626 fi
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 if test $ac_cv_header_stdc = yes; then
3630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631   cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 #include "confdefs.h"
3634 #include <string.h>
3635
3636 _ACEOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638   egrep "memchr" >/dev/null 2>&1; then
3639   :
3640 else
3641   ac_cv_header_stdc=no
3642 fi
3643 rm -f conftest*
3644
3645 fi
3646
3647 if test $ac_cv_header_stdc = yes; then
3648   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3649   cat >conftest.$ac_ext <<_ACEOF
3650 #line $LINENO "configure"
3651 #include "confdefs.h"
3652 #include <stdlib.h>
3653
3654 _ACEOF
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656   egrep "free" >/dev/null 2>&1; then
3657   :
3658 else
3659   ac_cv_header_stdc=no
3660 fi
3661 rm -f conftest*
3662
3663 fi
3664
3665 if test $ac_cv_header_stdc = yes; then
3666   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3667   if test "$cross_compiling" = yes; then
3668   :
3669 else
3670   cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 #include "confdefs.h"
3673 #include <ctype.h>
3674 #if ((' ' & 0x0FF) == 0x020)
3675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3677 #else
3678 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3679                      || ('j' <= (c) && (c) <= 'r') \
3680                      || ('s' <= (c) && (c) <= 'z'))
3681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3682 #endif
3683
3684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3685 int
3686 main ()
3687 {
3688   int i;
3689   for (i = 0; i < 256; i++)
3690     if (XOR (islower (i), ISLOWER (i))
3691         || toupper (i) != TOUPPER (i))
3692       exit(2);
3693   exit (0);
3694 }
3695 _ACEOF
3696 rm -f conftest$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698   (eval $ac_link) 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703   (eval $ac_try) 2>&5
3704   ac_status=$?
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); }; }; then
3707   :
3708 else
3709   echo "$as_me: program exited with status $ac_status" >&5
3710 echo "$as_me: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3712 ( exit $ac_status )
3713 ac_cv_header_stdc=no
3714 fi
3715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3716 fi
3717 fi
3718 fi
3719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3721 if test $ac_cv_header_stdc = yes; then
3722
3723 cat >>confdefs.h <<\_ACEOF
3724 #define STDC_HEADERS 1
3725 _ACEOF
3726
3727 fi
3728
3729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3740                   inttypes.h stdint.h unistd.h
3741 do
3742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3743 echo "$as_me:$LINENO: checking for $ac_header" >&5
3744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   cat >conftest.$ac_ext <<_ACEOF
3749 #line $LINENO "configure"
3750 #include "confdefs.h"
3751 $ac_includes_default
3752
3753 #include <$ac_header>
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757   (eval $ac_compile) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          { ac_try='test -s conftest.$ac_objext'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; }; then
3767   eval "$as_ac_Header=yes"
3768 else
3769   echo "$as_me: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 eval "$as_ac_Header=no"
3772 fi
3773 rm -f conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778   cat >>confdefs.h <<_ACEOF
3779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3780 _ACEOF
3781
3782 fi
3783
3784 done
3785
3786
3787 if test "${ac_cv_header_pthread_h+set}" = set; then
3788   echo "$as_me:$LINENO: checking for pthread.h" >&5
3789 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3790 if test "${ac_cv_header_pthread_h+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 fi
3793 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3794 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3795 else
3796   # Is the header compilable?
3797 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3798 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 #include "confdefs.h"
3802 $ac_includes_default
3803 #include <pthread.h>
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807   (eval $ac_compile) 2>&5
3808   ac_status=$?
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); } &&
3811          { ac_try='test -s conftest.$ac_objext'
3812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813   (eval $ac_try) 2>&5
3814   ac_status=$?
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }; }; then
3817   ac_header_compiler=yes
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 ac_header_compiler=no
3822 fi
3823 rm -f conftest.$ac_objext conftest.$ac_ext
3824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3825 echo "${ECHO_T}$ac_header_compiler" >&6
3826
3827 # Is the header present?
3828 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3829 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3831 #line $LINENO "configure"
3832 #include "confdefs.h"
3833 #include <pthread.h>
3834 _ACEOF
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3837   ac_status=$?
3838   egrep -v '^ *\+' conftest.er1 >conftest.err
3839   rm -f conftest.er1
3840   cat conftest.err >&5
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); } >/dev/null; then
3843   if test -s conftest.err; then
3844     ac_cpp_err=$ac_c_preproc_warn_flag
3845   else
3846     ac_cpp_err=
3847   fi
3848 else
3849   ac_cpp_err=yes
3850 fi
3851 if test -z "$ac_cpp_err"; then
3852   ac_header_preproc=yes
3853 else
3854   echo "$as_me: failed program was:" >&5
3855   cat conftest.$ac_ext >&5
3856   ac_header_preproc=no
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3860 echo "${ECHO_T}$ac_header_preproc" >&6
3861
3862 # So?  What about this header?
3863 case $ac_header_compiler:$ac_header_preproc in
3864   yes:no )
3865     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3866 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3867     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3868 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3869   no:yes )
3870     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3871 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3872     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3873 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3874     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3875 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3876 esac
3877 echo "$as_me:$LINENO: checking for pthread.h" >&5
3878 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3879 if test "${ac_cv_header_pthread_h+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   ac_cv_header_pthread_h=$ac_header_preproc
3883 fi
3884 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3885 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3886
3887 fi
3888 if test $ac_cv_header_pthread_h = yes; then
3889   :
3890 else
3891   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3892 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3893    { (exit 1); exit 1; }; }
3894 fi
3895
3896
3897 case $host_os in
3898                 netbsd*|bsdi*)
3899                         # these require no special flags or libraries
3900                         ;;
3901                 freebsd2*|freebsd3*|freebsd4*) THREAD_CFLAGS="-pthread" ;;
3902                 freebsd*) THREAD_LIBS="-lc_r" ;;
3903                 linux*) THREAD_LIBS="-lpthread"
3904                         THREAD_CFLAGS="-D_REENTRANT" ;;
3905                 *)
3906                         # other operating systems might fail because they have pthread.h but need
3907                         # special libs we don't know about yet.
3908                         { { echo "$as_me:$LINENO: error:
3909 Cannot enable threads on your platform.
3910 Please report your platform threading info to the PostgreSQL mailing lists
3911 so it can be added to the next release.  Report any compile or link flags,
3912 or libraries required for threading support.
3913 " >&5
3914 echo "$as_me: error:
3915 Cannot enable threads on your platform.
3916 Please report your platform threading info to the PostgreSQL mailing lists
3917 so it can be added to the next release.  Report any compile or link flags,
3918 or libraries required for threading support.
3919 " >&2;}
3920    { (exit 1); exit 1; }; }
3921         esac
3922 fi
3923
3924
3925
3926 #
3927 # Assignments
3928 #
3929
3930 CPPFLAGS="$CPPFLAGS $INCLUDES"
3931 LDFLAGS="$LDFLAGS $LIBDIRS"
3932
3933 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3934 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3935 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3936 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3937
3938
3939 for ac_prog in gawk mawk nawk awk
3940 do
3941   # Extract the first word of "$ac_prog", so it can be a program name with args.
3942 set dummy $ac_prog; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_AWK+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948   if test -n "$AWK"; then
3949   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956   for ac_exec_ext in '' $ac_executable_extensions; do
3957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958     ac_cv_prog_AWK="$ac_prog"
3959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960     break 2
3961   fi
3962 done
3963 done
3964
3965 fi
3966 fi
3967 AWK=$ac_cv_prog_AWK
3968 if test -n "$AWK"; then
3969   echo "$as_me:$LINENO: result: $AWK" >&5
3970 echo "${ECHO_T}$AWK" >&6
3971 else
3972   echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976   test -n "$AWK" && break
3977 done
3978
3979 echo "$as_me:$LINENO: checking for flex" >&5
3980 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3981 if test "${pgac_cv_path_flex+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   # Let the user override the test
3985 if test -n "$FLEX"; then
3986   pgac_cv_path_flex=$FLEX
3987 else
3988   pgac_save_IFS=$IFS
3989   IFS=:
3990   for pgac_dir in $PATH; do
3991     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3992       pgac_dir=`pwd`
3993     fi
3994     for pgac_prog in flex lex; do
3995       pgac_candidate="$pgac_dir/$pgac_prog"
3996       if test -f "$pgac_candidate" \
3997         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3998       then
3999         echo '%%'  > conftest.l
4000         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4001           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4002             pgac_broken_flex=$pgac_candidate
4003             continue
4004           fi
4005
4006           pgac_cv_path_flex=$pgac_candidate
4007           break 2
4008         fi
4009       fi
4010     done
4011   done
4012   IFS=$pgac_save_IFS
4013   rm -f conftest.l
4014   : ${pgac_cv_path_flex=no}
4015 fi
4016
4017 fi
4018 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4019 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4020 if test x"$pgac_cv_path_flex" = x"no"; then
4021   if test -n "$pgac_broken_flex"; then
4022     { echo "$as_me:$LINENO: WARNING:
4023 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4024 *** should get version 2.5.4 or later." >&5
4025 echo "$as_me: WARNING:
4026 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4027 *** should get version 2.5.4 or later." >&2;}
4028   fi
4029
4030   { echo "$as_me:$LINENO: WARNING:
4031 *** Without Flex you will not be able to build PostgreSQL from CVS or
4032 *** change any of the scanner definition files.  You can obtain Flex from
4033 *** a GNU mirror site.  (If you are using the official distribution of
4034 *** PostgreSQL then you do not need to worry about this because the Flex
4035 *** output is pre-generated.)" >&5
4036 echo "$as_me: WARNING:
4037 *** Without Flex you will not be able to build PostgreSQL from CVS or
4038 *** change any of the scanner definition files.  You can obtain Flex from
4039 *** a GNU mirror site.  (If you are using the official distribution of
4040 *** PostgreSQL then you do not need to worry about this because the Flex
4041 *** output is pre-generated.)" >&2;}
4042 fi
4043
4044 if test x"$pgac_cv_path_flex" = x"no"; then
4045   FLEX=
4046 else
4047   FLEX=$pgac_cv_path_flex
4048 fi
4049
4050
4051
4052
4053 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4055 LN_S=$as_ln_s
4056 if test "$LN_S" = "ln -s"; then
4057   echo "$as_me:$LINENO: result: yes" >&5
4058 echo "${ECHO_T}yes" >&6
4059 else
4060   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4061 echo "${ECHO_T}no, using $LN_S" >&6
4062 fi
4063
4064
4065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4066 if test "${with_gnu_ld+set}" = set; then
4067   withval="$with_gnu_ld"
4068   test "$withval" = no || with_gnu_ld=yes
4069 else
4070   with_gnu_ld=no
4071 fi;
4072 ac_prog=ld
4073 if test "$GCC" = yes; then
4074   # Check if gcc -print-prog-name=ld gives a path.
4075   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4077   case $host in
4078   *-*-mingw*)
4079     # gcc leaves a trailing carriage return which upsets mingw
4080     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4081   *)
4082     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083   esac
4084   case "$ac_prog" in
4085     # Accept absolute paths.
4086     [\\/]* | [A-Za-z]:[\\/]*)
4087       re_direlt='/[^/][^/]*/\.\./'
4088       # Canonicalize the path of ld
4089       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4090       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4092       done
4093       test -z "$LD" && LD="$ac_prog"
4094       ;;
4095   "")
4096     # If it fails, then pretend we aren't using GCC.
4097     ac_prog=ld
4098     ;;
4099   *)
4100     # If it is relative, then search for the first ld in PATH.
4101     with_gnu_ld=unknown
4102     ;;
4103   esac
4104 elif test "$with_gnu_ld" = yes; then
4105   echo "$as_me:$LINENO: checking for GNU ld" >&5
4106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4107 else
4108   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4110 fi
4111 if test "${ac_cv_path_LD+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   if test -z "$LD"; then
4115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4116   for ac_dir in $PATH; do
4117     test -z "$ac_dir" && ac_dir=.
4118     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119       ac_cv_path_LD="$ac_dir/$ac_prog"
4120       # Check to see if the program is GNU ld.  I'd rather use --version,
4121       # but apparently some GNU ld's only accept -v.
4122       # Break only if it was the GNU/non-GNU ld that we prefer.
4123       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4124         test "$with_gnu_ld" != no && break
4125       else
4126         test "$with_gnu_ld" != yes && break
4127       fi
4128     fi
4129   done
4130   IFS="$ac_save_ifs"
4131 else
4132   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4133 fi
4134 fi
4135
4136 LD="$ac_cv_path_LD"
4137 if test -n "$LD"; then
4138   echo "$as_me:$LINENO: result: $LD" >&5
4139 echo "${ECHO_T}$LD" >&6
4140 else
4141   echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146    { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4149 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4154   ac_cv_prog_gnu_ld=yes
4155 else
4156   ac_cv_prog_gnu_ld=no
4157 fi
4158 fi
4159 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4161 with_gnu_ld=$ac_cv_prog_gnu_ld
4162
4163
4164
4165
4166 case $host_os in sysv5*)
4167   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4168 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4169 if test "${pgac_cv_prog_ld_R+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172
4173     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4174     cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177
4178 #ifdef F77_DUMMY_MAIN
4179 #  ifdef __cplusplus
4180      extern "C"
4181 #  endif
4182    int F77_DUMMY_MAIN() { return 1; }
4183 #endif
4184 int
4185 main ()
4186 {
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194   (eval $ac_link) 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } &&
4198          { ac_try='test -s conftest$ac_exeext'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; }; then
4204   pgac_cv_prog_ld_R=yes
4205 else
4206   echo "$as_me: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 pgac_cv_prog_ld_R=no
4209 fi
4210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4211     LDFLAGS=$pgac_save_LDFLAGS
4212
4213 fi
4214 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4215 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4216   ld_R_works=$pgac_cv_prog_ld_R
4217
4218 esac
4219 if test -n "$ac_tool_prefix"; then
4220   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_RANLIB+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   if test -n "$RANLIB"; then
4228   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235   for ac_exec_ext in '' $ac_executable_extensions; do
4236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242 done
4243
4244 fi
4245 fi
4246 RANLIB=$ac_cv_prog_RANLIB
4247 if test -n "$RANLIB"; then
4248   echo "$as_me:$LINENO: result: $RANLIB" >&5
4249 echo "${ECHO_T}$RANLIB" >&6
4250 else
4251   echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4253 fi
4254
4255 fi
4256 if test -z "$ac_cv_prog_RANLIB"; then
4257   ac_ct_RANLIB=$RANLIB
4258   # Extract the first word of "ranlib", so it can be a program name with args.
4259 set dummy ranlib; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$ac_ct_RANLIB"; then
4266   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_prog_ac_ct_RANLIB="ranlib"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281
4282   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4283 fi
4284 fi
4285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4286 if test -n "$ac_ct_RANLIB"; then
4287   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4288 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4289 else
4290   echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4292 fi
4293
4294   RANLIB=$ac_ct_RANLIB
4295 else
4296   RANLIB="$ac_cv_prog_RANLIB"
4297 fi
4298
4299 for ac_prog in lorder
4300 do
4301   # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_LORDER+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$LORDER"; then
4309   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_LORDER="$ac_prog"
4319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323 done
4324
4325 fi
4326 fi
4327 LORDER=$ac_cv_prog_LORDER
4328 if test -n "$LORDER"; then
4329   echo "$as_me:$LINENO: result: $LORDER" >&5
4330 echo "${ECHO_T}$LORDER" >&6
4331 else
4332   echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4334 fi
4335
4336   test -n "$LORDER" && break
4337 done
4338
4339 # Extract the first word of "tar", so it can be a program name with args.
4340 set dummy tar; ac_word=$2
4341 echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343 if test "${ac_cv_path_TAR+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   case $TAR in
4347   [\\/]* | ?:[\\/]*)
4348   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4349   ;;
4350   *)
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365   ;;
4366 esac
4367 fi
4368 TAR=$ac_cv_path_TAR
4369
4370 if test -n "$TAR"; then
4371   echo "$as_me:$LINENO: result: $TAR" >&5
4372 echo "${ECHO_T}$TAR" >&6
4373 else
4374   echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4376 fi
4377
4378
4379   if test -n "$ac_tool_prefix"; then
4380   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4381 set dummy ${ac_tool_prefix}strip; ac_word=$2
4382 echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4384 if test "${ac_cv_prog_STRIP+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test -n "$STRIP"; then
4388   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403
4404 fi
4405 fi
4406 STRIP=$ac_cv_prog_STRIP
4407 if test -n "$STRIP"; then
4408   echo "$as_me:$LINENO: result: $STRIP" >&5
4409 echo "${ECHO_T}$STRIP" >&6
4410 else
4411   echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4413 fi
4414
4415 fi
4416 if test -z "$ac_cv_prog_STRIP"; then
4417   ac_ct_STRIP=$STRIP
4418   # Extract the first word of "strip", so it can be a program name with args.
4419 set dummy strip; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$ac_ct_STRIP"; then
4426   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_prog_ac_ct_STRIP="strip"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441
4442   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4443 fi
4444 fi
4445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4446 if test -n "$ac_ct_STRIP"; then
4447   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4448 echo "${ECHO_T}$ac_ct_STRIP" >&6
4449 else
4450   echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452 fi
4453
4454   STRIP=$ac_ct_STRIP
4455 else
4456   STRIP="$ac_cv_prog_STRIP"
4457 fi
4458
4459
4460   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4461 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4462   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4463     STRIP_STATIC_LIB="$STRIP -x"
4464     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4465     echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467   else
4468     STRIP_STATIC_LIB=:
4469     STRIP_SHARED_LIB=:
4470     echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472   fi
4473
4474
4475
4476
4477 for ac_prog in 'bison -y'
4478 do
4479   # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_YACC+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   if test -n "$YACC"; then
4487   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496     ac_cv_prog_YACC="$ac_prog"
4497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498     break 2
4499   fi
4500 done
4501 done
4502
4503 fi
4504 fi
4505 YACC=$ac_cv_prog_YACC
4506 if test -n "$YACC"; then
4507   echo "$as_me:$LINENO: result: $YACC" >&5
4508 echo "${ECHO_T}$YACC" >&6
4509 else
4510   echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4512 fi
4513
4514   test -n "$YACC" && break
4515 done
4516
4517
4518 if test "$YACC"; then
4519   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4520     { echo "$as_me:$LINENO: WARNING:
4521 *** The installed version of Bison is too old.  PostgreSQL needs
4522 *** Bison version 1.875 or later." >&5
4523 echo "$as_me: WARNING:
4524 *** The installed version of Bison is too old.  PostgreSQL needs
4525 *** Bison version 1.875 or later." >&2;}
4526   fi
4527 fi
4528
4529 if test -z "$YACC"; then
4530   { echo "$as_me:$LINENO: WARNING:
4531 *** Without Bison you will not be able to build PostgreSQL from CVS or
4532 *** change any of the parser definition files.  You can obtain Bison from
4533 *** a GNU mirror site.  (If you are using the official distribution of
4534 *** PostgreSQL then you do not need to worry about this because the Bison
4535 *** output is pre-generated.)  To use a different yacc program (possible,
4536 *** but not recommended), set the environment variable YACC before running
4537 *** 'configure'." >&5
4538 echo "$as_me: 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'." >&2;}
4546 fi
4547
4548
4549 # Extract the first word of "perl", so it can be a program name with args.
4550 set dummy perl; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_PERL+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   case $PERL in
4557   [\\/]* | ?:[\\/]*)
4558   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4559   ;;
4560   *)
4561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575   ;;
4576 esac
4577 fi
4578 PERL=$ac_cv_path_PERL
4579
4580 if test -n "$PERL"; then
4581   echo "$as_me:$LINENO: result: $PERL" >&5
4582 echo "${ECHO_T}$PERL" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588 if test "$with_perl" = yes; then
4589
4590 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4591 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4592 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4593 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4594 echo "${ECHO_T}$perl_archlibexp" >&6
4595 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4596 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4597 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4598 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4599 echo "${ECHO_T}$perl_privlibexp" >&6
4600 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4601 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4602 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4603 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4604 echo "${ECHO_T}$perl_useshrplib" >&6
4605
4606 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4607 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4608 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4609 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4610 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4611 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4612 echo "${ECHO_T}$perl_embed_ldflags" >&6
4613 fi
4614
4615 if test "$with_python" = yes; then
4616   # Extract the first word of "python", so it can be a program name with args.
4617 set dummy python; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_path_PYTHON+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   case $PYTHON in
4624   [\\/]* | ?:[\\/]*)
4625   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4626   ;;
4627   *)
4628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641
4642   ;;
4643 esac
4644 fi
4645 PYTHON=$ac_cv_path_PYTHON
4646
4647 if test -n "$PYTHON"; then
4648   echo "$as_me:$LINENO: result: $PYTHON" >&5
4649 echo "${ECHO_T}$PYTHON" >&6
4650 else
4651   echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4653 fi
4654
4655 if test x"$PYTHON" = x""; then
4656   { { echo "$as_me:$LINENO: error: Python not found" >&5
4657 echo "$as_me: error: Python not found" >&2;}
4658    { (exit 1); exit 1; }; }
4659 fi
4660
4661
4662 echo "$as_me:$LINENO: checking Python installation directories" >&5
4663 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4664 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4665 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4666 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4667 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4668 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4669 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4670 python_includespec="-I${python_prefix}/include/python${python_version}"
4671 if test "$python_prefix" != "$python_execprefix"; then
4672   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4673 fi
4674
4675 # This should be enough of a message.
4676 if test "$python_prefix" != "$python_execprefix"; then
4677   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4678 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4679 else
4680   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4681 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4682 fi
4683
4684
4685
4686
4687
4688 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4689 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4690
4691 if test ! -f "$python_configdir/Makefile"; then
4692   echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4695 echo "$as_me: error: Python Makefile not found" >&2;}
4696    { (exit 1); exit 1; }; }
4697 fi
4698
4699 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4700 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4701 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4702 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4703 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4704
4705 pgac_tab="      " # tab character
4706 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"`
4707
4708 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4709 echo "${ECHO_T}${python_libspec}" >&6
4710
4711
4712 fi
4713
4714
4715 ##
4716 ## Libraries
4717 ##
4718
4719 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4720 then
4721
4722 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4723 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4724 if test "${ac_cv_lib_bsd_main+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   ac_check_lib_save_LIBS=$LIBS
4728 LIBS="-lbsd  $LIBS"
4729 cat >conftest.$ac_ext <<_ACEOF
4730 #line $LINENO "configure"
4731 #include "confdefs.h"
4732
4733
4734 #ifdef F77_DUMMY_MAIN
4735 #  ifdef __cplusplus
4736      extern "C"
4737 #  endif
4738    int F77_DUMMY_MAIN() { return 1; }
4739 #endif
4740 int
4741 main ()
4742 {
4743 main ();
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest.$ac_objext conftest$ac_exeext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750   (eval $ac_link) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -s conftest$ac_exeext'
4755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756   (eval $ac_try) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }; }; then
4760   ac_cv_lib_bsd_main=yes
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 ac_cv_lib_bsd_main=no
4765 fi
4766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4768 fi
4769 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4770 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4771 if test $ac_cv_lib_bsd_main = yes; then
4772   cat >>confdefs.h <<_ACEOF
4773 #define HAVE_LIBBSD 1
4774 _ACEOF
4775
4776   LIBS="-lbsd $LIBS"
4777
4778 fi
4779
4780 fi
4781
4782 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4783 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4784 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   ac_check_lib_save_LIBS=$LIBS
4788 LIBS="-lutil  $LIBS"
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line $LINENO "configure"
4791 #include "confdefs.h"
4792
4793 /* Override any gcc2 internal prototype to avoid an error.  */
4794 #ifdef __cplusplus
4795 extern "C"
4796 #endif
4797 /* We use char because int might match the return type of a gcc2
4798    builtin and then its argument prototype would still apply.  */
4799 char setproctitle ();
4800 #ifdef F77_DUMMY_MAIN
4801 #  ifdef __cplusplus
4802      extern "C"
4803 #  endif
4804    int F77_DUMMY_MAIN() { return 1; }
4805 #endif
4806 int
4807 main ()
4808 {
4809 setproctitle ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816   (eval $ac_link) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -s conftest$ac_exeext'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; }; then
4826   ac_cv_lib_util_setproctitle=yes
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 ac_cv_lib_util_setproctitle=no
4831 fi
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4834 fi
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4836 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4837 if test $ac_cv_lib_util_setproctitle = yes; then
4838   cat >>confdefs.h <<_ACEOF
4839 #define HAVE_LIBUTIL 1
4840 _ACEOF
4841
4842   LIBS="-lutil $LIBS"
4843
4844 fi
4845
4846
4847 echo "$as_me:$LINENO: checking for main in -lm" >&5
4848 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4849 if test "${ac_cv_lib_m_main+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   ac_check_lib_save_LIBS=$LIBS
4853 LIBS="-lm  $LIBS"
4854 cat >conftest.$ac_ext <<_ACEOF
4855 #line $LINENO "configure"
4856 #include "confdefs.h"
4857
4858
4859 #ifdef F77_DUMMY_MAIN
4860 #  ifdef __cplusplus
4861      extern "C"
4862 #  endif
4863    int F77_DUMMY_MAIN() { return 1; }
4864 #endif
4865 int
4866 main ()
4867 {
4868 main ();
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875   (eval $ac_link) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } &&
4879          { ac_try='test -s conftest$ac_exeext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_cv_lib_m_main=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 ac_cv_lib_m_main=no
4890 fi
4891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892 LIBS=$ac_check_lib_save_LIBS
4893 fi
4894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4895 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4896 if test $ac_cv_lib_m_main = yes; then
4897   cat >>confdefs.h <<_ACEOF
4898 #define HAVE_LIBM 1
4899 _ACEOF
4900
4901   LIBS="-lm $LIBS"
4902
4903 fi
4904
4905
4906 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4907 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4908 if test "${ac_cv_lib_dl_main+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   ac_check_lib_save_LIBS=$LIBS
4912 LIBS="-ldl  $LIBS"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 #line $LINENO "configure"
4915 #include "confdefs.h"
4916
4917
4918 #ifdef F77_DUMMY_MAIN
4919 #  ifdef __cplusplus
4920      extern "C"
4921 #  endif
4922    int F77_DUMMY_MAIN() { return 1; }
4923 #endif
4924 int
4925 main ()
4926 {
4927 main ();
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934   (eval $ac_link) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } &&
4938          { ac_try='test -s conftest$ac_exeext'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   ac_cv_lib_dl_main=yes
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 ac_cv_lib_dl_main=no
4949 fi
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4952 fi
4953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4954 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4955 if test $ac_cv_lib_dl_main = yes; then
4956   cat >>confdefs.h <<_ACEOF
4957 #define HAVE_LIBDL 1
4958 _ACEOF
4959
4960   LIBS="-ldl $LIBS"
4961
4962 fi
4963
4964
4965 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4966 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4967 if test "${ac_cv_lib_nsl_main+set}" = set; then
4968   echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970   ac_check_lib_save_LIBS=$LIBS
4971 LIBS="-lnsl  $LIBS"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 #include "confdefs.h"
4975
4976
4977 #ifdef F77_DUMMY_MAIN
4978 #  ifdef __cplusplus
4979      extern "C"
4980 #  endif
4981    int F77_DUMMY_MAIN() { return 1; }
4982 #endif
4983 int
4984 main ()
4985 {
4986 main ();
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993   (eval $ac_link) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } &&
4997          { ac_try='test -s conftest$ac_exeext'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; }; then
5003   ac_cv_lib_nsl_main=yes
5004 else
5005   echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 ac_cv_lib_nsl_main=no
5008 fi
5009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5013 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5014 if test $ac_cv_lib_nsl_main = yes; then
5015   cat >>confdefs.h <<_ACEOF
5016 #define HAVE_LIBNSL 1
5017 _ACEOF
5018
5019   LIBS="-lnsl $LIBS"
5020
5021 fi
5022
5023
5024 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5025 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5026 if test "${ac_cv_lib_socket_main+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   ac_check_lib_save_LIBS=$LIBS
5030 LIBS="-lsocket  $LIBS"
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 #include "confdefs.h"
5034
5035
5036 #ifdef F77_DUMMY_MAIN
5037 #  ifdef __cplusplus
5038      extern "C"
5039 #  endif
5040    int F77_DUMMY_MAIN() { return 1; }
5041 #endif
5042 int
5043 main ()
5044 {
5045 main ();
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052   (eval $ac_link) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -s conftest$ac_exeext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_cv_lib_socket_main=yes
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_lib_socket_main=no
5067 fi
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5069 LIBS=$ac_check_lib_save_LIBS
5070 fi
5071 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5072 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5073 if test $ac_cv_lib_socket_main = yes; then
5074   cat >>confdefs.h <<_ACEOF
5075 #define HAVE_LIBSOCKET 1
5076 _ACEOF
5077
5078   LIBS="-lsocket $LIBS"
5079
5080 fi
5081
5082
5083 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5084 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5085 if test "${ac_cv_lib_ipc_main+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   ac_check_lib_save_LIBS=$LIBS
5089 LIBS="-lipc  $LIBS"
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 #include "confdefs.h"
5093
5094
5095 #ifdef F77_DUMMY_MAIN
5096 #  ifdef __cplusplus
5097      extern "C"
5098 #  endif
5099    int F77_DUMMY_MAIN() { return 1; }
5100 #endif
5101 int
5102 main ()
5103 {
5104 main ();
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111   (eval $ac_link) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -s conftest$ac_exeext'
5116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   ac_cv_lib_ipc_main=yes
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_cv_lib_ipc_main=no
5126 fi
5127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5131 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5132 if test $ac_cv_lib_ipc_main = yes; then
5133   cat >>confdefs.h <<_ACEOF
5134 #define HAVE_LIBIPC 1
5135 _ACEOF
5136
5137   LIBS="-lipc $LIBS"
5138
5139 fi
5140
5141
5142 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5143 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5144 if test "${ac_cv_lib_IPC_main+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   ac_check_lib_save_LIBS=$LIBS
5148 LIBS="-lIPC  $LIBS"
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5151 #include "confdefs.h"
5152
5153
5154 #ifdef F77_DUMMY_MAIN
5155 #  ifdef __cplusplus
5156      extern "C"
5157 #  endif
5158    int F77_DUMMY_MAIN() { return 1; }
5159 #endif
5160 int
5161 main ()
5162 {
5163 main ();
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170   (eval $ac_link) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } &&
5174          { ac_try='test -s conftest$ac_exeext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   ac_cv_lib_IPC_main=yes
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 ac_cv_lib_IPC_main=no
5185 fi
5186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5188 fi
5189 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5190 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5191 if test $ac_cv_lib_IPC_main = yes; then
5192   cat >>confdefs.h <<_ACEOF
5193 #define HAVE_LIBIPC 1
5194 _ACEOF
5195
5196   LIBS="-lIPC $LIBS"
5197
5198 fi
5199
5200
5201 echo "$as_me:$LINENO: checking for main in -llc" >&5
5202 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5203 if test "${ac_cv_lib_lc_main+set}" = set; then
5204   echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206   ac_check_lib_save_LIBS=$LIBS
5207 LIBS="-llc  $LIBS"
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5210 #include "confdefs.h"
5211
5212
5213 #ifdef F77_DUMMY_MAIN
5214 #  ifdef __cplusplus
5215      extern "C"
5216 #  endif
5217    int F77_DUMMY_MAIN() { return 1; }
5218 #endif
5219 int
5220 main ()
5221 {
5222 main ();
5223   ;
5224   return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229   (eval $ac_link) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } &&
5233          { ac_try='test -s conftest$ac_exeext'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   ac_cv_lib_lc_main=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_lib_lc_main=no
5244 fi
5245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5247 fi
5248 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5249 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5250 if test $ac_cv_lib_lc_main = yes; then
5251   cat >>confdefs.h <<_ACEOF
5252 #define HAVE_LIBLC 1
5253 _ACEOF
5254
5255   LIBS="-llc $LIBS"
5256
5257 fi
5258
5259
5260 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5261 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5262 if test "${ac_cv_lib_dld_main+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   ac_check_lib_save_LIBS=$LIBS
5266 LIBS="-ldld  $LIBS"
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 #include "confdefs.h"
5270
5271
5272 #ifdef F77_DUMMY_MAIN
5273 #  ifdef __cplusplus
5274      extern "C"
5275 #  endif
5276    int F77_DUMMY_MAIN() { return 1; }
5277 #endif
5278 int
5279 main ()
5280 {
5281 main ();
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288   (eval $ac_link) 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -s conftest$ac_exeext'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298   ac_cv_lib_dld_main=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_cv_lib_dld_main=no
5303 fi
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 LIBS=$ac_check_lib_save_LIBS
5306 fi
5307 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5308 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5309 if test $ac_cv_lib_dld_main = yes; then
5310   cat >>confdefs.h <<_ACEOF
5311 #define HAVE_LIBDLD 1
5312 _ACEOF
5313
5314   LIBS="-ldld $LIBS"
5315
5316 fi
5317
5318
5319 echo "$as_me:$LINENO: checking for main in -lld" >&5
5320 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5321 if test "${ac_cv_lib_ld_main+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lld  $LIBS"
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5329
5330
5331 #ifdef F77_DUMMY_MAIN
5332 #  ifdef __cplusplus
5333      extern "C"
5334 #  endif
5335    int F77_DUMMY_MAIN() { return 1; }
5336 #endif
5337 int
5338 main ()
5339 {
5340 main ();
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347   (eval $ac_link) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -s conftest$ac_exeext'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; }; then
5357   ac_cv_lib_ld_main=yes
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 ac_cv_lib_ld_main=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5367 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5368 if test $ac_cv_lib_ld_main = yes; then
5369   cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBLD 1
5371 _ACEOF
5372
5373   LIBS="-lld $LIBS"
5374
5375 fi
5376
5377
5378 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5379 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5380 if test "${ac_cv_lib_compat_main+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   ac_check_lib_save_LIBS=$LIBS
5384 LIBS="-lcompat  $LIBS"
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5387 #include "confdefs.h"
5388
5389
5390 #ifdef F77_DUMMY_MAIN
5391 #  ifdef __cplusplus
5392      extern "C"
5393 #  endif
5394    int F77_DUMMY_MAIN() { return 1; }
5395 #endif
5396 int
5397 main ()
5398 {
5399 main ();
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext conftest$ac_exeext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5406   (eval $ac_link) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); } &&
5410          { ac_try='test -s conftest$ac_exeext'
5411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412   (eval $ac_try) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); }; }; then
5416   ac_cv_lib_compat_main=yes
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5420 ac_cv_lib_compat_main=no
5421 fi
5422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 LIBS=$ac_check_lib_save_LIBS
5424 fi
5425 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5426 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5427 if test $ac_cv_lib_compat_main = yes; then
5428   cat >>confdefs.h <<_ACEOF
5429 #define HAVE_LIBCOMPAT 1
5430 _ACEOF
5431
5432   LIBS="-lcompat $LIBS"
5433
5434 fi
5435
5436
5437 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5438 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5439 if test "${ac_cv_lib_BSD_main+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   ac_check_lib_save_LIBS=$LIBS
5443 LIBS="-lBSD  $LIBS"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5446 #include "confdefs.h"
5447
5448
5449 #ifdef F77_DUMMY_MAIN
5450 #  ifdef __cplusplus
5451      extern "C"
5452 #  endif
5453    int F77_DUMMY_MAIN() { return 1; }
5454 #endif
5455 int
5456 main ()
5457 {
5458 main ();
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465   (eval $ac_link) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -s conftest$ac_exeext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   ac_cv_lib_BSD_main=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 ac_cv_lib_BSD_main=no
5480 fi
5481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5483 fi
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5485 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5486 if test $ac_cv_lib_BSD_main = yes; then
5487   cat >>confdefs.h <<_ACEOF
5488 #define HAVE_LIBBSD 1
5489 _ACEOF
5490
5491   LIBS="-lBSD $LIBS"
5492
5493 fi
5494
5495
5496 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5497 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5498 if test "${ac_cv_lib_gen_main+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   ac_check_lib_save_LIBS=$LIBS
5502 LIBS="-lgen  $LIBS"
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5506
5507
5508 #ifdef F77_DUMMY_MAIN
5509 #  ifdef __cplusplus
5510      extern "C"
5511 #  endif
5512    int F77_DUMMY_MAIN() { return 1; }
5513 #endif
5514 int
5515 main ()
5516 {
5517 main ();
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524   (eval $ac_link) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } &&
5528          { ac_try='test -s conftest$ac_exeext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   ac_cv_lib_gen_main=yes
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ac_cv_lib_gen_main=no
5539 fi
5540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5542 fi
5543 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5544 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5545 if test $ac_cv_lib_gen_main = yes; then
5546   cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LIBGEN 1
5548 _ACEOF
5549
5550   LIBS="-lgen $LIBS"
5551
5552 fi
5553
5554
5555 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5556 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5557 if test "${ac_cv_lib_PW_main+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lPW  $LIBS"
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5565
5566
5567 #ifdef F77_DUMMY_MAIN
5568 #  ifdef __cplusplus
5569      extern "C"
5570 #  endif
5571    int F77_DUMMY_MAIN() { return 1; }
5572 #endif
5573 int
5574 main ()
5575 {
5576 main ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583   (eval $ac_link) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587          { ac_try='test -s conftest$ac_exeext'
5588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589   (eval $ac_try) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   ac_cv_lib_PW_main=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_PW_main=no
5598 fi
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5601 fi
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5603 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5604 if test $ac_cv_lib_PW_main = yes; then
5605   cat >>confdefs.h <<_ACEOF
5606 #define HAVE_LIBPW 1
5607 _ACEOF
5608
5609   LIBS="-lPW $LIBS"
5610
5611 fi
5612
5613
5614 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5615 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5616 if test "${ac_cv_lib_resolv_main+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   ac_check_lib_save_LIBS=$LIBS
5620 LIBS="-lresolv  $LIBS"
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5624
5625
5626 #ifdef F77_DUMMY_MAIN
5627 #  ifdef __cplusplus
5628      extern "C"
5629 #  endif
5630    int F77_DUMMY_MAIN() { return 1; }
5631 #endif
5632 int
5633 main ()
5634 {
5635 main ();
5636   ;
5637   return 0;
5638 }
5639 _ACEOF
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642   (eval $ac_link) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } &&
5646          { ac_try='test -s conftest$ac_exeext'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; }; then
5652   ac_cv_lib_resolv_main=yes
5653 else
5654   echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_cv_lib_resolv_main=no
5657 fi
5658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5660 fi
5661 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5662 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5663 if test $ac_cv_lib_resolv_main = yes; then
5664   cat >>confdefs.h <<_ACEOF
5665 #define HAVE_LIBRESOLV 1
5666 _ACEOF
5667
5668   LIBS="-lresolv $LIBS"
5669
5670 fi
5671
5672
5673 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5674 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5675 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lwsock32  $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5682 #include "confdefs.h"
5683
5684
5685 #ifdef F77_DUMMY_MAIN
5686 #  ifdef __cplusplus
5687      extern "C"
5688 #  endif
5689    int F77_DUMMY_MAIN() { return 1; }
5690 #endif
5691 int
5692 main ()
5693 {
5694 main ();
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701   (eval $ac_link) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } &&
5705          { ac_try='test -s conftest$ac_exeext'
5706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707   (eval $ac_try) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; }; then
5711   ac_cv_lib_wsock32_main=yes
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 ac_cv_lib_wsock32_main=no
5716 fi
5717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718 LIBS=$ac_check_lib_save_LIBS
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5721 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5722 if test $ac_cv_lib_wsock32_main = yes; then
5723   cat >>confdefs.h <<_ACEOF
5724 #define HAVE_LIBWSOCK32 1
5725 _ACEOF
5726
5727   LIBS="-lwsock32 $LIBS"
5728
5729 fi
5730
5731 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5732 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5733 if test "${ac_cv_search_getopt_long+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   ac_func_search_save_LIBS=$LIBS
5737 ac_cv_search_getopt_long=no
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line $LINENO "configure"
5740 #include "confdefs.h"
5741
5742 /* Override any gcc2 internal prototype to avoid an error.  */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 /* We use char because int might match the return type of a gcc2
5747    builtin and then its argument prototype would still apply.  */
5748 char getopt_long ();
5749 #ifdef F77_DUMMY_MAIN
5750 #  ifdef __cplusplus
5751      extern "C"
5752 #  endif
5753    int F77_DUMMY_MAIN() { return 1; }
5754 #endif
5755 int
5756 main ()
5757 {
5758 getopt_long ();
5759   ;
5760   return 0;
5761 }
5762 _ACEOF
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765   (eval $ac_link) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } &&
5769          { ac_try='test -s conftest$ac_exeext'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   ac_cv_search_getopt_long="none required"
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 fi
5780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5781 if test "$ac_cv_search_getopt_long" = no; then
5782   for ac_lib in getopt gnugetopt; do
5783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5784     cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 #include "confdefs.h"
5787
5788 /* Override any gcc2 internal prototype to avoid an error.  */
5789 #ifdef __cplusplus
5790 extern "C"
5791 #endif
5792 /* We use char because int might match the return type of a gcc2
5793    builtin and then its argument prototype would still apply.  */
5794 char getopt_long ();
5795 #ifdef F77_DUMMY_MAIN
5796 #  ifdef __cplusplus
5797      extern "C"
5798 #  endif
5799    int F77_DUMMY_MAIN() { return 1; }
5800 #endif
5801 int
5802 main ()
5803 {
5804 getopt_long ();
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811   (eval $ac_link) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -s conftest$ac_exeext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_cv_search_getopt_long="-l$ac_lib"
5822 break
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 fi
5827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5828   done
5829 fi
5830 LIBS=$ac_func_search_save_LIBS
5831 fi
5832 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5833 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5834 if test "$ac_cv_search_getopt_long" != no; then
5835   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5836
5837 fi
5838
5839 # QNX:
5840
5841 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5842 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5843 if test "${ac_cv_lib_unix_main+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-lunix  $LIBS"
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5851
5852
5853 #ifdef F77_DUMMY_MAIN
5854 #  ifdef __cplusplus
5855      extern "C"
5856 #  endif
5857    int F77_DUMMY_MAIN() { return 1; }
5858 #endif
5859 int
5860 main ()
5861 {
5862 main ();
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869   (eval $ac_link) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -s conftest$ac_exeext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   ac_cv_lib_unix_main=yes
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 ac_cv_lib_unix_main=no
5884 fi
5885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5886 LIBS=$ac_check_lib_save_LIBS
5887 fi
5888 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5889 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5890 if test $ac_cv_lib_unix_main = yes; then
5891   cat >>confdefs.h <<_ACEOF
5892 #define HAVE_LIBUNIX 1
5893 _ACEOF
5894
5895   LIBS="-lunix $LIBS"
5896
5897 fi
5898
5899 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5900 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5901 if test "${ac_cv_search_crypt+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   ac_func_search_save_LIBS=$LIBS
5905 ac_cv_search_crypt=no
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 #include "confdefs.h"
5909
5910 /* Override any gcc2 internal prototype to avoid an error.  */
5911 #ifdef __cplusplus
5912 extern "C"
5913 #endif
5914 /* We use char because int might match the return type of a gcc2
5915    builtin and then its argument prototype would still apply.  */
5916 char crypt ();
5917 #ifdef F77_DUMMY_MAIN
5918 #  ifdef __cplusplus
5919      extern "C"
5920 #  endif
5921    int F77_DUMMY_MAIN() { return 1; }
5922 #endif
5923 int
5924 main ()
5925 {
5926 crypt ();
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933   (eval $ac_link) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest$ac_exeext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_search_crypt="none required"
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 if test "$ac_cv_search_crypt" = no; then
5950   for ac_lib in crypt; do
5951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5952     cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 #include "confdefs.h"
5955
5956 /* Override any gcc2 internal prototype to avoid an error.  */
5957 #ifdef __cplusplus
5958 extern "C"
5959 #endif
5960 /* We use char because int might match the return type of a gcc2
5961    builtin and then its argument prototype would still apply.  */
5962 char crypt ();
5963 #ifdef F77_DUMMY_MAIN
5964 #  ifdef __cplusplus
5965      extern "C"
5966 #  endif
5967    int F77_DUMMY_MAIN() { return 1; }
5968 #endif
5969 int
5970 main ()
5971 {
5972 crypt ();
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979   (eval $ac_link) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -s conftest$ac_exeext'
5984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985   (eval $ac_try) 2>&5
5986   ac_status=$?
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); }; }; then
5989   ac_cv_search_crypt="-l$ac_lib"
5990 break
5991 else
5992   echo "$as_me: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5994 fi
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996   done
5997 fi
5998 LIBS=$ac_func_search_save_LIBS
5999 fi
6000 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6001 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6002 if test "$ac_cv_search_crypt" != no; then
6003   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6004
6005 fi
6006
6007 # BeOS:
6008
6009 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6010 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6011 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   ac_check_lib_save_LIBS=$LIBS
6015 LIBS="-lbind  $LIBS"
6016 cat >conftest.$ac_ext <<_ACEOF
6017 #line $LINENO "configure"
6018 #include "confdefs.h"
6019
6020 /* Override any gcc2 internal prototype to avoid an error.  */
6021 #ifdef __cplusplus
6022 extern "C"
6023 #endif
6024 /* We use char because int might match the return type of a gcc2
6025    builtin and then its argument prototype would still apply.  */
6026 char __inet_ntoa ();
6027 #ifdef F77_DUMMY_MAIN
6028 #  ifdef __cplusplus
6029      extern "C"
6030 #  endif
6031    int F77_DUMMY_MAIN() { return 1; }
6032 #endif
6033 int
6034 main ()
6035 {
6036 __inet_ntoa ();
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>&5
6044   ac_status=$?
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -s conftest$ac_exeext'
6048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049   (eval $ac_try) 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }; }; then
6053   ac_cv_lib_bind___inet_ntoa=yes
6054 else
6055   echo "$as_me: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 ac_cv_lib_bind___inet_ntoa=no
6058 fi
6059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6060 LIBS=$ac_check_lib_save_LIBS
6061 fi
6062 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6063 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6064 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6065   cat >>confdefs.h <<_ACEOF
6066 #define HAVE_LIBBIND 1
6067 _ACEOF
6068
6069   LIBS="-lbind $LIBS"
6070
6071 fi
6072
6073 # Solaris:
6074 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6075 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6076 if test "${ac_cv_search_fdatasync+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   ac_func_search_save_LIBS=$LIBS
6080 ac_cv_search_fdatasync=no
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6084
6085 /* Override any gcc2 internal prototype to avoid an error.  */
6086 #ifdef __cplusplus
6087 extern "C"
6088 #endif
6089 /* We use char because int might match the return type of a gcc2
6090    builtin and then its argument prototype would still apply.  */
6091 char fdatasync ();
6092 #ifdef F77_DUMMY_MAIN
6093 #  ifdef __cplusplus
6094      extern "C"
6095 #  endif
6096    int F77_DUMMY_MAIN() { return 1; }
6097 #endif
6098 int
6099 main ()
6100 {
6101 fdatasync ();
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108   (eval $ac_link) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } &&
6112          { ac_try='test -s conftest$ac_exeext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_search_fdatasync="none required"
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6122 fi
6123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6124 if test "$ac_cv_search_fdatasync" = no; then
6125   for ac_lib in rt posix4; do
6126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6127     cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 #include "confdefs.h"
6130
6131 /* Override any gcc2 internal prototype to avoid an error.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 /* We use char because int might match the return type of a gcc2
6136    builtin and then its argument prototype would still apply.  */
6137 char fdatasync ();
6138 #ifdef F77_DUMMY_MAIN
6139 #  ifdef __cplusplus
6140      extern "C"
6141 #  endif
6142    int F77_DUMMY_MAIN() { return 1; }
6143 #endif
6144 int
6145 main ()
6146 {
6147 fdatasync ();
6148   ;
6149   return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154   (eval $ac_link) 2>&5
6155   ac_status=$?
6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157   (exit $ac_status); } &&
6158          { ac_try='test -s conftest$ac_exeext'
6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160   (eval $ac_try) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); }; }; then
6164   ac_cv_search_fdatasync="-l$ac_lib"
6165 break
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6169 fi
6170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6171   done
6172 fi
6173 LIBS=$ac_func_search_save_LIBS
6174 fi
6175 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6176 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6177 if test "$ac_cv_search_fdatasync" != no; then
6178   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6179
6180 fi
6181
6182 # Cygwin:
6183
6184 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6185 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6186 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   ac_check_lib_save_LIBS=$LIBS
6190 LIBS="-lcygipc  $LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6194
6195 /* Override any gcc2 internal prototype to avoid an error.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 /* We use char because int might match the return type of a gcc2
6200    builtin and then its argument prototype would still apply.  */
6201 char shmget ();
6202 #ifdef F77_DUMMY_MAIN
6203 #  ifdef __cplusplus
6204      extern "C"
6205 #  endif
6206    int F77_DUMMY_MAIN() { return 1; }
6207 #endif
6208 int
6209 main ()
6210 {
6211 shmget ();
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218   (eval $ac_link) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -s conftest$ac_exeext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_cv_lib_cygipc_shmget=yes
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 ac_cv_lib_cygipc_shmget=no
6233 fi
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6238 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6239 if test $ac_cv_lib_cygipc_shmget = yes; then
6240   cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LIBCYGIPC 1
6242 _ACEOF
6243
6244   LIBS="-lcygipc $LIBS"
6245
6246 fi
6247
6248
6249 if test "$with_readline" = yes; then
6250
6251 echo "$as_me:$LINENO: checking for readline" >&5
6252 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6253
6254 if test "${pgac_cv_check_readline+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   pgac_cv_check_readline=no
6258 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6259   for pgac_rllib in -lreadline -ledit ; do
6260     pgac_save_LIBS=$LIBS
6261     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6262     cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 #include "confdefs.h"
6265
6266 /* Override any gcc2 internal prototype to avoid an error.  */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271    builtin and then its argument prototype would still apply.  */
6272 char readline ();
6273 #ifdef F77_DUMMY_MAIN
6274 #  ifdef __cplusplus
6275      extern "C"
6276 #  endif
6277    int F77_DUMMY_MAIN() { return 1; }
6278 #endif
6279 int
6280 main ()
6281 {
6282 readline ();
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289   (eval $ac_link) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } &&
6293          { ac_try='test -s conftest$ac_exeext'
6294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295   (eval $ac_try) 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299
6300       # NetBSD and OpenBSD have a broken linker that does not
6301       # recognize dependent libraries
6302       case $host_os in netbsd* | openbsd* )
6303         case $pgac_lib in
6304           *curses*) ;;
6305           *) pgac_lib=" -lcurses" ;;
6306         esac
6307       esac
6308
6309       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6310       break 2
6311
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6315 fi
6316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317     LIBS=$pgac_save_LIBS
6318   done
6319 done
6320 LIBS=$pgac_save_LIBS
6321
6322 fi
6323
6324 if test "$pgac_cv_check_readline" != no ; then
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define HAVE_LIBREADLINE 1
6328 _ACEOF
6329
6330   LIBS="$pgac_cv_check_readline $LIBS"
6331   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6332 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6333 else
6334   echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6
6336 fi
6337   if test x"$pgac_cv_check_readline" = x"no"; then
6338     { { echo "$as_me:$LINENO: error: readline library not found
6339 If you have readline already installed, see config.log for details on the
6340 failure.  It is possible the compiler isn't looking in the proper directory.
6341 Use --without-readline to disable readline support." >&5
6342 echo "$as_me: error: readline library not found
6343 If you have readline already installed, see config.log for details on the
6344 failure.  It is possible the compiler isn't looking in the proper directory.
6345 Use --without-readline to disable readline support." >&2;}
6346    { (exit 1); exit 1; }; }
6347   fi
6348 fi
6349
6350 if test "$with_zlib" = yes; then
6351
6352 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6353 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6354 if test "${ac_cv_lib_z_inflate+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   ac_check_lib_save_LIBS=$LIBS
6358 LIBS="-lz  $LIBS"
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 #include "confdefs.h"
6362
6363 /* Override any gcc2 internal prototype to avoid an error.  */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 /* We use char because int might match the return type of a gcc2
6368    builtin and then its argument prototype would still apply.  */
6369 char inflate ();
6370 #ifdef F77_DUMMY_MAIN
6371 #  ifdef __cplusplus
6372      extern "C"
6373 #  endif
6374    int F77_DUMMY_MAIN() { return 1; }
6375 #endif
6376 int
6377 main ()
6378 {
6379 inflate ();
6380   ;
6381   return 0;
6382 }
6383 _ACEOF
6384 rm -f conftest.$ac_objext conftest$ac_exeext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6386   (eval $ac_link) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); } &&
6390          { ac_try='test -s conftest$ac_exeext'
6391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392   (eval $ac_try) 2>&5
6393   ac_status=$?
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); }; }; then
6396   ac_cv_lib_z_inflate=yes
6397 else
6398   echo "$as_me: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 ac_cv_lib_z_inflate=no
6401 fi
6402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6403 LIBS=$ac_check_lib_save_LIBS
6404 fi
6405 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6406 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6407 if test $ac_cv_lib_z_inflate = yes; then
6408   cat >>confdefs.h <<_ACEOF
6409 #define HAVE_LIBZ 1
6410 _ACEOF
6411
6412   LIBS="-lz $LIBS"
6413
6414 else
6415   { { echo "$as_me:$LINENO: error: zlib library not found
6416 If you have zlib already installed, see config.log for details on the
6417 failure.  It is possible the compiler isn't looking in the proper directory.
6418 Use --without-zlib to disable zlib support." >&5
6419 echo "$as_me: error: zlib library not found
6420 If you have zlib already installed, see config.log for details on the
6421 failure.  It is possible the compiler isn't looking in the proper directory.
6422 Use --without-zlib to disable zlib support." >&2;}
6423    { (exit 1); exit 1; }; }
6424 fi
6425
6426 fi
6427
6428 if test "$with_krb4" = yes ; then
6429
6430 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6431 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6432 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   ac_check_lib_save_LIBS=$LIBS
6436 LIBS="-ldes  $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440
6441 /* Override any gcc2 internal prototype to avoid an error.  */
6442 #ifdef __cplusplus
6443 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446    builtin and then its argument prototype would still apply.  */
6447 char des_encrypt ();
6448 #ifdef F77_DUMMY_MAIN
6449 #  ifdef __cplusplus
6450      extern "C"
6451 #  endif
6452    int F77_DUMMY_MAIN() { return 1; }
6453 #endif
6454 int
6455 main ()
6456 {
6457 des_encrypt ();
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464   (eval $ac_link) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } &&
6468          { ac_try='test -s conftest$ac_exeext'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   ac_cv_lib_des_des_encrypt=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 ac_cv_lib_des_des_encrypt=no
6479 fi
6480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_check_lib_save_LIBS
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6484 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6485 if test $ac_cv_lib_des_des_encrypt = yes; then
6486   cat >>confdefs.h <<_ACEOF
6487 #define HAVE_LIBDES 1
6488 _ACEOF
6489
6490   LIBS="-ldes $LIBS"
6491
6492 else
6493   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6494 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6495    { (exit 1); exit 1; }; }
6496 fi
6497
6498
6499 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6500 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6501 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   ac_check_lib_save_LIBS=$LIBS
6505 LIBS="-lkrb  $LIBS"
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6509
6510 /* Override any gcc2 internal prototype to avoid an error.  */
6511 #ifdef __cplusplus
6512 extern "C"
6513 #endif
6514 /* We use char because int might match the return type of a gcc2
6515    builtin and then its argument prototype would still apply.  */
6516 char krb_sendauth ();
6517 #ifdef F77_DUMMY_MAIN
6518 #  ifdef __cplusplus
6519      extern "C"
6520 #  endif
6521    int F77_DUMMY_MAIN() { return 1; }
6522 #endif
6523 int
6524 main ()
6525 {
6526 krb_sendauth ();
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533   (eval $ac_link) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } &&
6537          { ac_try='test -s conftest$ac_exeext'
6538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539   (eval $ac_try) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; }; then
6543   ac_cv_lib_krb_krb_sendauth=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 ac_cv_lib_krb_krb_sendauth=no
6548 fi
6549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6551 fi
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6553 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6554 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6555   cat >>confdefs.h <<_ACEOF
6556 #define HAVE_LIBKRB 1
6557 _ACEOF
6558
6559   LIBS="-lkrb $LIBS"
6560
6561 else
6562   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6563 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6564    { (exit 1); exit 1; }; }
6565 fi
6566
6567
6568 for ac_func in gethostname
6569 do
6570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6571 echo "$as_me:$LINENO: checking for $ac_func" >&5
6572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_var+set}\" = set"; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580     which can conflict with char $ac_func (); below.  */
6581 #include <assert.h>
6582 /* Override any gcc2 internal prototype to avoid an error.  */
6583 #ifdef __cplusplus
6584 extern "C"
6585 #endif
6586 /* We use char because int might match the return type of a gcc2
6587    builtin and then its argument prototype would still apply.  */
6588 char $ac_func ();
6589 char (*f) ();
6590
6591 #ifdef F77_DUMMY_MAIN
6592 #  ifdef __cplusplus
6593      extern "C"
6594 #  endif
6595    int F77_DUMMY_MAIN() { return 1; }
6596 #endif
6597 int
6598 main ()
6599 {
6600 /* The GNU C library defines this for functions which it implements
6601     to always fail with ENOSYS.  Some functions are actually named
6602     something starting with __ and the normal name is an alias.  */
6603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6604 choke me
6605 #else
6606 f = $ac_func;
6607 #endif
6608
6609   ;
6610   return 0;
6611 }
6612 _ACEOF
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615   (eval $ac_link) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } &&
6619          { ac_try='test -s conftest$ac_exeext'
6620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); }; }; then
6625   eval "$as_ac_var=yes"
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 eval "$as_ac_var=no"
6630 fi
6631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632 fi
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6635 if test `eval echo '${'$as_ac_var'}'` = yes; then
6636   cat >>confdefs.h <<_ACEOF
6637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6638 _ACEOF
6639
6640 else
6641   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6642 fi
6643 done
6644
6645
6646 fi
6647
6648 if test "$with_krb5" = yes ; then
6649   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6650 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6651 if test "${ac_cv_search_com_err+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   ac_func_search_save_LIBS=$LIBS
6655 ac_cv_search_com_err=no
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6658 #include "confdefs.h"
6659
6660 /* Override any gcc2 internal prototype to avoid an error.  */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665    builtin and then its argument prototype would still apply.  */
6666 char com_err ();
6667 #ifdef F77_DUMMY_MAIN
6668 #  ifdef __cplusplus
6669      extern "C"
6670 #  endif
6671    int F77_DUMMY_MAIN() { return 1; }
6672 #endif
6673 int
6674 main ()
6675 {
6676 com_err ();
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext conftest$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683   (eval $ac_link) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } &&
6687          { ac_try='test -s conftest$ac_exeext'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; }; then
6693   ac_cv_search_com_err="none required"
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6697 fi
6698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 if test "$ac_cv_search_com_err" = no; then
6700   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6701     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6702     cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6705
6706 /* Override any gcc2 internal prototype to avoid an error.  */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 /* We use char because int might match the return type of a gcc2
6711    builtin and then its argument prototype would still apply.  */
6712 char com_err ();
6713 #ifdef F77_DUMMY_MAIN
6714 #  ifdef __cplusplus
6715      extern "C"
6716 #  endif
6717    int F77_DUMMY_MAIN() { return 1; }
6718 #endif
6719 int
6720 main ()
6721 {
6722 com_err ();
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729   (eval $ac_link) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } &&
6733          { ac_try='test -s conftest$ac_exeext'
6734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735   (eval $ac_try) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; }; then
6739   ac_cv_search_com_err="-l$ac_lib"
6740 break
6741 else
6742   echo "$as_me: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6744 fi
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746   done
6747 fi
6748 LIBS=$ac_func_search_save_LIBS
6749 fi
6750 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6751 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6752 if test "$ac_cv_search_com_err" != no; then
6753   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6754
6755 else
6756   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6757 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6758    { (exit 1); exit 1; }; }
6759 fi
6760
6761   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6762 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6763 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   ac_func_search_save_LIBS=$LIBS
6767 ac_cv_search_krb5_encrypt=no
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771
6772 /* Override any gcc2 internal prototype to avoid an error.  */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 /* We use char because int might match the return type of a gcc2
6777    builtin and then its argument prototype would still apply.  */
6778 char krb5_encrypt ();
6779 #ifdef F77_DUMMY_MAIN
6780 #  ifdef __cplusplus
6781      extern "C"
6782 #  endif
6783    int F77_DUMMY_MAIN() { return 1; }
6784 #endif
6785 int
6786 main ()
6787 {
6788 krb5_encrypt ();
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_search_krb5_encrypt="none required"
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 fi
6810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 if test "$ac_cv_search_krb5_encrypt" = no; then
6812   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6813     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6814     cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6817
6818 /* Override any gcc2 internal prototype to avoid an error.  */
6819 #ifdef __cplusplus
6820 extern "C"
6821 #endif
6822 /* We use char because int might match the return type of a gcc2
6823    builtin and then its argument prototype would still apply.  */
6824 char krb5_encrypt ();
6825 #ifdef F77_DUMMY_MAIN
6826 #  ifdef __cplusplus
6827      extern "C"
6828 #  endif
6829    int F77_DUMMY_MAIN() { return 1; }
6830 #endif
6831 int
6832 main ()
6833 {
6834 krb5_encrypt ();
6835   ;
6836   return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841   (eval $ac_link) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } &&
6845          { ac_try='test -s conftest$ac_exeext'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; }; then
6851   ac_cv_search_krb5_encrypt="-l$ac_lib"
6852 break
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 fi
6857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858   done
6859 fi
6860 LIBS=$ac_func_search_save_LIBS
6861 fi
6862 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6863 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6864 if test "$ac_cv_search_krb5_encrypt" != no; then
6865   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6866
6867 else
6868   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6869 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6870    { (exit 1); exit 1; }; }
6871 fi
6872
6873   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6874 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6875 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   ac_func_search_save_LIBS=$LIBS
6879 ac_cv_search_krb5_sendauth=no
6880 cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6882 #include "confdefs.h"
6883
6884 /* Override any gcc2 internal prototype to avoid an error.  */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889    builtin and then its argument prototype would still apply.  */
6890 char krb5_sendauth ();
6891 #ifdef F77_DUMMY_MAIN
6892 #  ifdef __cplusplus
6893      extern "C"
6894 #  endif
6895    int F77_DUMMY_MAIN() { return 1; }
6896 #endif
6897 int
6898 main ()
6899 {
6900 krb5_sendauth ();
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907   (eval $ac_link) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } &&
6911          { ac_try='test -s conftest$ac_exeext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   ac_cv_search_krb5_sendauth="none required"
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 fi
6922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6923 if test "$ac_cv_search_krb5_sendauth" = no; then
6924   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6926     cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6929
6930 /* Override any gcc2 internal prototype to avoid an error.  */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935    builtin and then its argument prototype would still apply.  */
6936 char krb5_sendauth ();
6937 #ifdef F77_DUMMY_MAIN
6938 #  ifdef __cplusplus
6939      extern "C"
6940 #  endif
6941    int F77_DUMMY_MAIN() { return 1; }
6942 #endif
6943 int
6944 main ()
6945 {
6946 krb5_sendauth ();
6947   ;
6948   return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953   (eval $ac_link) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } &&
6957          { ac_try='test -s conftest$ac_exeext'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; }; then
6963   ac_cv_search_krb5_sendauth="-l$ac_lib"
6964 break
6965 else
6966   echo "$as_me: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6968 fi
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6970   done
6971 fi
6972 LIBS=$ac_func_search_save_LIBS
6973 fi
6974 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6975 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6976 if test "$ac_cv_search_krb5_sendauth" != no; then
6977   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6978
6979 else
6980   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6981 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6982    { (exit 1); exit 1; }; }
6983 fi
6984
6985 fi
6986
6987 if test "$with_openssl" = yes ; then
6988
6989 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6990 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6991 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-lcrypto  $LIBS"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 #include "confdefs.h"
6999
7000 /* Override any gcc2 internal prototype to avoid an error.  */
7001 #ifdef __cplusplus
7002 extern "C"
7003 #endif
7004 /* We use char because int might match the return type of a gcc2
7005    builtin and then its argument prototype would still apply.  */
7006 char CRYPTO_new_ex_data ();
7007 #ifdef F77_DUMMY_MAIN
7008 #  ifdef __cplusplus
7009      extern "C"
7010 #  endif
7011    int F77_DUMMY_MAIN() { return 1; }
7012 #endif
7013 int
7014 main ()
7015 {
7016 CRYPTO_new_ex_data ();
7017   ;
7018   return 0;
7019 }
7020 _ACEOF
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023   (eval $ac_link) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } &&
7027          { ac_try='test -s conftest$ac_exeext'
7028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029   (eval $ac_try) 2>&5
7030   ac_status=$?
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); }; }; then
7033   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7034 else
7035   echo "$as_me: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7037 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7038 fi
7039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7040 LIBS=$ac_check_lib_save_LIBS
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7043 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7044 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7045   cat >>confdefs.h <<_ACEOF
7046 #define HAVE_LIBCRYPTO 1
7047 _ACEOF
7048
7049   LIBS="-lcrypto $LIBS"
7050
7051 else
7052   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7053 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7054    { (exit 1); exit 1; }; }
7055 fi
7056
7057
7058 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7059 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7060 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   ac_check_lib_save_LIBS=$LIBS
7064 LIBS="-lssl  $LIBS"
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line $LINENO "configure"
7067 #include "confdefs.h"
7068
7069 /* Override any gcc2 internal prototype to avoid an error.  */
7070 #ifdef __cplusplus
7071 extern "C"
7072 #endif
7073 /* We use char because int might match the return type of a gcc2
7074    builtin and then its argument prototype would still apply.  */
7075 char SSL_library_init ();
7076 #ifdef F77_DUMMY_MAIN
7077 #  ifdef __cplusplus
7078      extern "C"
7079 #  endif
7080    int F77_DUMMY_MAIN() { return 1; }
7081 #endif
7082 int
7083 main ()
7084 {
7085 SSL_library_init ();
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092   (eval $ac_link) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } &&
7096          { ac_try='test -s conftest$ac_exeext'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_lib_ssl_SSL_library_init=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 ac_cv_lib_ssl_SSL_library_init=no
7107 fi
7108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7109 LIBS=$ac_check_lib_save_LIBS
7110 fi
7111 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7114   cat >>confdefs.h <<_ACEOF
7115 #define HAVE_LIBSSL 1
7116 _ACEOF
7117
7118   LIBS="-lssl $LIBS"
7119
7120 else
7121   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7123    { (exit 1); exit 1; }; }
7124 fi
7125
7126 fi
7127
7128 if test "$with_pam" = yes ; then
7129
7130 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7131 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7132 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   ac_check_lib_save_LIBS=$LIBS
7136 LIBS="-lpam  $LIBS"
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 #include "confdefs.h"
7140
7141 /* Override any gcc2 internal prototype to avoid an error.  */
7142 #ifdef __cplusplus
7143 extern "C"
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146    builtin and then its argument prototype would still apply.  */
7147 char pam_start ();
7148 #ifdef F77_DUMMY_MAIN
7149 #  ifdef __cplusplus
7150      extern "C"
7151 #  endif
7152    int F77_DUMMY_MAIN() { return 1; }
7153 #endif
7154 int
7155 main ()
7156 {
7157 pam_start ();
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164   (eval $ac_link) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -s conftest$ac_exeext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   ac_cv_lib_pam_pam_start=yes
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 ac_cv_lib_pam_pam_start=no
7179 fi
7180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7181 LIBS=$ac_check_lib_save_LIBS
7182 fi
7183 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7184 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7185 if test $ac_cv_lib_pam_pam_start = yes; then
7186   cat >>confdefs.h <<_ACEOF
7187 #define HAVE_LIBPAM 1
7188 _ACEOF
7189
7190   LIBS="-lpam $LIBS"
7191
7192 else
7193   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7194 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7195    { (exit 1); exit 1; }; }
7196 fi
7197
7198 fi
7199
7200
7201 ##
7202 ## Header files
7203 ##
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 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
7227 do
7228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7230   echo "$as_me:$LINENO: checking for $ac_header" >&5
7231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 fi
7235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7237 else
7238   # Is the header compilable?
7239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 #include "confdefs.h"
7244 $ac_includes_default
7245 #include <$ac_header>
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249   (eval $ac_compile) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } &&
7253          { ac_try='test -s conftest.$ac_objext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   ac_header_compiler=yes
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 ac_header_compiler=no
7264 fi
7265 rm -f conftest.$ac_objext conftest.$ac_ext
7266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7267 echo "${ECHO_T}$ac_header_compiler" >&6
7268
7269 # Is the header present?
7270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7273 #line $LINENO "configure"
7274 #include "confdefs.h"
7275 #include <$ac_header>
7276 _ACEOF
7277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7279   ac_status=$?
7280   egrep -v '^ *\+' conftest.er1 >conftest.err
7281   rm -f conftest.er1
7282   cat conftest.err >&5
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } >/dev/null; then
7285   if test -s conftest.err; then
7286     ac_cpp_err=$ac_c_preproc_warn_flag
7287   else
7288     ac_cpp_err=
7289   fi
7290 else
7291   ac_cpp_err=yes
7292 fi
7293 if test -z "$ac_cpp_err"; then
7294   ac_header_preproc=yes
7295 else
7296   echo "$as_me: failed program was:" >&5
7297   cat conftest.$ac_ext >&5
7298   ac_header_preproc=no
7299 fi
7300 rm -f conftest.err conftest.$ac_ext
7301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7302 echo "${ECHO_T}$ac_header_preproc" >&6
7303
7304 # So?  What about this header?
7305 case $ac_header_compiler:$ac_header_preproc in
7306   yes:no )
7307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7311   no:yes )
7312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7314     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7318 esac
7319 echo "$as_me:$LINENO: checking for $ac_header" >&5
7320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   eval "$as_ac_Header=$ac_header_preproc"
7325 fi
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7328
7329 fi
7330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7331   cat >>confdefs.h <<_ACEOF
7332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7333 _ACEOF
7334
7335 fi
7336
7337 done
7338
7339
7340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7341 # netinet/in.h is included first.
7342
7343 for ac_header in netinet/in.h
7344 do
7345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7347   echo "$as_me:$LINENO: checking for $ac_header" >&5
7348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 fi
7352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7354 else
7355   # Is the header compilable?
7356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7359 #line $LINENO "configure"
7360 #include "confdefs.h"
7361 $ac_includes_default
7362 #include <$ac_header>
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366   (eval $ac_compile) 2>&5
7367   ac_status=$?
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } &&
7370          { ac_try='test -s conftest.$ac_objext'
7371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372   (eval $ac_try) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; }; then
7376   ac_header_compiler=yes
7377 else
7378   echo "$as_me: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 ac_header_compiler=no
7381 fi
7382 rm -f conftest.$ac_objext conftest.$ac_ext
7383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7384 echo "${ECHO_T}$ac_header_compiler" >&6
7385
7386 # Is the header present?
7387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7390 #line $LINENO "configure"
7391 #include "confdefs.h"
7392 #include <$ac_header>
7393 _ACEOF
7394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7396   ac_status=$?
7397   egrep -v '^ *\+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } >/dev/null; then
7402   if test -s conftest.err; then
7403     ac_cpp_err=$ac_c_preproc_warn_flag
7404   else
7405     ac_cpp_err=
7406   fi
7407 else
7408   ac_cpp_err=yes
7409 fi
7410 if test -z "$ac_cpp_err"; then
7411   ac_header_preproc=yes
7412 else
7413   echo "$as_me: failed program was:" >&5
7414   cat conftest.$ac_ext >&5
7415   ac_header_preproc=no
7416 fi
7417 rm -f conftest.err conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6
7420
7421 # So?  What about this header?
7422 case $ac_header_compiler:$ac_header_preproc in
7423   yes:no )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7428   no:yes )
7429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7435 esac
7436 echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   eval "$as_ac_Header=$ac_header_preproc"
7442 fi
7443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7445
7446 fi
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448   cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450 _ACEOF
7451
7452 fi
7453
7454 done
7455
7456
7457 for ac_header in netinet/tcp.h
7458 do
7459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7460 echo "$as_me:$LINENO: checking for $ac_header" >&5
7461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   cat >conftest.$ac_ext <<_ACEOF
7466 #line $LINENO "configure"
7467 #include "confdefs.h"
7468 $ac_includes_default
7469 #ifdef HAVE_NETINET_IN_H
7470 #include <netinet/in.h>
7471 #endif
7472
7473
7474 #include <$ac_header>
7475 _ACEOF
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478   (eval $ac_compile) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } &&
7482          { ac_try='test -s conftest.$ac_objext'
7483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484   (eval $ac_try) 2>&5
7485   ac_status=$?
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); }; }; then
7488   eval "$as_ac_Header=yes"
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 eval "$as_ac_Header=no"
7493 fi
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499   cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7501 _ACEOF
7502
7503 fi
7504
7505 done
7506
7507
7508 if test "$with_readline" = yes; then
7509
7510 for ac_header in readline/readline.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514   echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 fi
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 else
7522   # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -s conftest.$ac_objext'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; }; then
7543   ac_header_compiler=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7548 fi
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7552
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7560 _ACEOF
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7563   ac_status=$?
7564   egrep -v '^ *\+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } >/dev/null; then
7569   if test -s conftest.err; then
7570     ac_cpp_err=$ac_c_preproc_warn_flag
7571   else
7572     ac_cpp_err=
7573   fi
7574 else
7575   ac_cpp_err=yes
7576 fi
7577 if test -z "$ac_cpp_err"; then
7578   ac_header_preproc=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581   cat conftest.$ac_ext >&5
7582   ac_header_preproc=no
7583 fi
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7587
7588 # So?  What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7590   yes:no )
7591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7595   no:yes )
7596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7602 esac
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   eval "$as_ac_Header=$ac_header_preproc"
7609 fi
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612
7613 fi
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615   cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 _ACEOF
7618
7619 else
7620
7621 for ac_header in editline/readline.h
7622 do
7623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7625   echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 fi
7630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7632 else
7633   # Is the header compilable?
7634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line $LINENO "configure"
7638 #include "confdefs.h"
7639 $ac_includes_default
7640 #include <$ac_header>
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644   (eval $ac_compile) 2>&5
7645   ac_status=$?
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } &&
7648          { ac_try='test -s conftest.$ac_objext'
7649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650   (eval $ac_try) 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   ac_header_compiler=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 ac_header_compiler=no
7659 fi
7660 rm -f conftest.$ac_objext conftest.$ac_ext
7661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7662 echo "${ECHO_T}$ac_header_compiler" >&6
7663
7664 # Is the header present?
7665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 #include <$ac_header>
7671 _ACEOF
7672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7674   ac_status=$?
7675   egrep -v '^ *\+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } >/dev/null; then
7680   if test -s conftest.err; then
7681     ac_cpp_err=$ac_c_preproc_warn_flag
7682   else
7683     ac_cpp_err=
7684   fi
7685 else
7686   ac_cpp_err=yes
7687 fi
7688 if test -z "$ac_cpp_err"; then
7689   ac_header_preproc=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692   cat conftest.$ac_ext >&5
7693   ac_header_preproc=no
7694 fi
7695 rm -f conftest.err conftest.$ac_ext
7696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7697 echo "${ECHO_T}$ac_header_preproc" >&6
7698
7699 # So?  What about this header?
7700 case $ac_header_compiler:$ac_header_preproc in
7701   yes:no )
7702     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7706   no:yes )
7707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7713 esac
7714 echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   eval "$as_ac_Header=$ac_header_preproc"
7720 fi
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723
7724 fi
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726   cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 _ACEOF
7729
7730 else
7731
7732 for ac_header in readline.h
7733 do
7734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7736   echo "$as_me:$LINENO: checking for $ac_header" >&5
7737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739   echo $ECHO_N "(cached) $ECHO_C" >&6
7740 fi
7741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7743 else
7744   # Is the header compilable?
7745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 #include "confdefs.h"
7750 $ac_includes_default
7751 #include <$ac_header>
7752 _ACEOF
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755   (eval $ac_compile) 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); } &&
7759          { ac_try='test -s conftest.$ac_objext'
7760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761   (eval $ac_try) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); }; }; then
7765   ac_header_compiler=yes
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 ac_header_compiler=no
7770 fi
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7773 echo "${ECHO_T}$ac_header_compiler" >&6
7774
7775 # Is the header present?
7776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7781 #include <$ac_header>
7782 _ACEOF
7783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7785   ac_status=$?
7786   egrep -v '^ *\+' conftest.er1 >conftest.err
7787   rm -f conftest.er1
7788   cat conftest.err >&5
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } >/dev/null; then
7791   if test -s conftest.err; then
7792     ac_cpp_err=$ac_c_preproc_warn_flag
7793   else
7794     ac_cpp_err=
7795   fi
7796 else
7797   ac_cpp_err=yes
7798 fi
7799 if test -z "$ac_cpp_err"; then
7800   ac_header_preproc=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803   cat conftest.$ac_ext >&5
7804   ac_header_preproc=no
7805 fi
7806 rm -f conftest.err conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7808 echo "${ECHO_T}$ac_header_preproc" >&6
7809
7810 # So?  What about this header?
7811 case $ac_header_compiler:$ac_header_preproc in
7812   yes:no )
7813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7817   no:yes )
7818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7820     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7824 esac
7825 echo "$as_me:$LINENO: checking for $ac_header" >&5
7826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   eval "$as_ac_Header=$ac_header_preproc"
7831 fi
7832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7834
7835 fi
7836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837   cat >>confdefs.h <<_ACEOF
7838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 _ACEOF
7840
7841 else
7842   { { echo "$as_me:$LINENO: error: readline header not found
7843 If you have readline already installed, see config.log for details on the
7844 failure.  It is possible the compiler isn't looking in the proper directory.
7845 Use --without-readline to disable readline support." >&5
7846 echo "$as_me: error: readline header not found
7847 If you have readline already installed, see config.log for details on the
7848 failure.  It is possible the compiler isn't looking in the proper directory.
7849 Use --without-readline to disable readline support." >&2;}
7850    { (exit 1); exit 1; }; }
7851 fi
7852
7853 done
7854
7855 fi
7856
7857 done
7858
7859 fi
7860
7861 done
7862
7863
7864 for ac_header in readline/history.h
7865 do
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868   echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 fi
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7875 else
7876   # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887   (eval $ac_compile) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -s conftest.$ac_objext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_header_compiler=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7902 fi
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7906
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7914 _ACEOF
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7917   ac_status=$?
7918   egrep -v '^ *\+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } >/dev/null; then
7923   if test -s conftest.err; then
7924     ac_cpp_err=$ac_c_preproc_warn_flag
7925   else
7926     ac_cpp_err=
7927   fi
7928 else
7929   ac_cpp_err=yes
7930 fi
7931 if test -z "$ac_cpp_err"; then
7932   ac_header_preproc=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935   cat conftest.$ac_ext >&5
7936   ac_header_preproc=no
7937 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7941
7942 # So?  What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7944   yes:no )
7945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7949   no:yes )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7956 esac
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   eval "$as_ac_Header=$ac_header_preproc"
7963 fi
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7966
7967 fi
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969   cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 _ACEOF
7972
7973 else
7974
7975 for ac_header in editline/history.h
7976 do
7977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7979   echo "$as_me:$LINENO: checking for $ac_header" >&5
7980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 fi
7984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986 else
7987   # Is the header compilable?
7988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line $LINENO "configure"
7992 #include "confdefs.h"
7993 $ac_includes_default
7994 #include <$ac_header>
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998   (eval $ac_compile) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_header_compiler=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 ac_header_compiler=no
8013 fi
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8016 echo "${ECHO_T}$ac_header_compiler" >&6
8017
8018 # Is the header present?
8019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8023 #include "confdefs.h"
8024 #include <$ac_header>
8025 _ACEOF
8026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8028   ac_status=$?
8029   egrep -v '^ *\+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } >/dev/null; then
8034   if test -s conftest.err; then
8035     ac_cpp_err=$ac_c_preproc_warn_flag
8036   else
8037     ac_cpp_err=
8038   fi
8039 else
8040   ac_cpp_err=yes
8041 fi
8042 if test -z "$ac_cpp_err"; then
8043   ac_header_preproc=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046   cat conftest.$ac_ext >&5
8047   ac_header_preproc=no
8048 fi
8049 rm -f conftest.err conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8051 echo "${ECHO_T}$ac_header_preproc" >&6
8052
8053 # So?  What about this header?
8054 case $ac_header_compiler:$ac_header_preproc in
8055   yes:no )
8056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8060   no:yes )
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8067 esac
8068 echo "$as_me:$LINENO: checking for $ac_header" >&5
8069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   eval "$as_ac_Header=$ac_header_preproc"
8074 fi
8075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8077
8078 fi
8079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8080   cat >>confdefs.h <<_ACEOF
8081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8082 _ACEOF
8083
8084 else
8085
8086 for ac_header in history.h
8087 do
8088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090   echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093   echo $ECHO_N "(cached) $ECHO_C" >&6
8094 fi
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 else
8098   # Is the header compilable?
8099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 #include "confdefs.h"
8104 $ac_includes_default
8105 #include <$ac_header>
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109   (eval $ac_compile) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -s conftest.$ac_objext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_header_compiler=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 ac_header_compiler=no
8124 fi
8125 rm -f conftest.$ac_objext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8127 echo "${ECHO_T}$ac_header_compiler" >&6
8128
8129 # Is the header present?
8130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8135 #include <$ac_header>
8136 _ACEOF
8137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8139   ac_status=$?
8140   egrep -v '^ *\+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } >/dev/null; then
8145   if test -s conftest.err; then
8146     ac_cpp_err=$ac_c_preproc_warn_flag
8147   else
8148     ac_cpp_err=
8149   fi
8150 else
8151   ac_cpp_err=yes
8152 fi
8153 if test -z "$ac_cpp_err"; then
8154   ac_header_preproc=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157   cat conftest.$ac_ext >&5
8158   ac_header_preproc=no
8159 fi
8160 rm -f conftest.err conftest.$ac_ext
8161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162 echo "${ECHO_T}$ac_header_preproc" >&6
8163
8164 # So?  What about this header?
8165 case $ac_header_compiler:$ac_header_preproc in
8166   yes:no )
8167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8171   no:yes )
8172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8174     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8178 esac
8179 echo "$as_me:$LINENO: checking for $ac_header" >&5
8180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   eval "$as_ac_Header=$ac_header_preproc"
8185 fi
8186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8188
8189 fi
8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191   cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8193 _ACEOF
8194
8195 else
8196   { { echo "$as_me:$LINENO: error: history header not found
8197 If you have readline already installed, see config.log for details on the
8198 failure.  It is possible the compiler isn't looking in the proper directory.
8199 Use --without-readline to disable readline support." >&5
8200 echo "$as_me: error: history header not found
8201 If you have readline already installed, see config.log for details on the
8202 failure.  It is possible the compiler isn't looking in the proper directory.
8203 Use --without-readline to disable readline support." >&2;}
8204    { (exit 1); exit 1; }; }
8205 fi
8206
8207 done
8208
8209 fi
8210
8211 done
8212
8213 fi
8214
8215 done
8216
8217 fi
8218
8219 if test "$with_zlib" = yes; then
8220   if test "${ac_cv_header_zlib_h+set}" = set; then
8221   echo "$as_me:$LINENO: checking for zlib.h" >&5
8222 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8223 if test "${ac_cv_header_zlib_h+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 fi
8226 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8227 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8228 else
8229   # Is the header compilable?
8230 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8231 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8233 #line $LINENO "configure"
8234 #include "confdefs.h"
8235 $ac_includes_default
8236 #include <zlib.h>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240   (eval $ac_compile) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -s conftest.$ac_objext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_header_compiler=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 ac_header_compiler=no
8255 fi
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8258 echo "${ECHO_T}$ac_header_compiler" >&6
8259
8260 # Is the header present?
8261 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8262 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8263 cat >conftest.$ac_ext <<_ACEOF
8264 #line $LINENO "configure"
8265 #include "confdefs.h"
8266 #include <zlib.h>
8267 _ACEOF
8268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8270   ac_status=$?
8271   egrep -v '^ *\+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } >/dev/null; then
8276   if test -s conftest.err; then
8277     ac_cpp_err=$ac_c_preproc_warn_flag
8278   else
8279     ac_cpp_err=
8280   fi
8281 else
8282   ac_cpp_err=yes
8283 fi
8284 if test -z "$ac_cpp_err"; then
8285   ac_header_preproc=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288   cat conftest.$ac_ext >&5
8289   ac_header_preproc=no
8290 fi
8291 rm -f conftest.err conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8293 echo "${ECHO_T}$ac_header_preproc" >&6
8294
8295 # So?  What about this header?
8296 case $ac_header_compiler:$ac_header_preproc in
8297   yes:no )
8298     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8299 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8300     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8301 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8302   no:yes )
8303     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8304 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8306 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8307     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8308 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8309 esac
8310 echo "$as_me:$LINENO: checking for zlib.h" >&5
8311 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8312 if test "${ac_cv_header_zlib_h+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_cv_header_zlib_h=$ac_header_preproc
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8318 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8319
8320 fi
8321 if test $ac_cv_header_zlib_h = yes; then
8322   :
8323 else
8324   { { echo "$as_me:$LINENO: error: zlib header not found
8325 If you have zlib already installed, see config.log for details on the
8326 failure.  It is possible the compiler isn't looking in the proper directory.
8327 Use --without-zlib to disable zlib support." >&5
8328 echo "$as_me: error: zlib header not found
8329 If you have zlib already installed, see config.log for details on the
8330 failure.  It is possible the compiler isn't looking in the proper directory.
8331 Use --without-zlib to disable zlib support." >&2;}
8332    { (exit 1); exit 1; }; }
8333 fi
8334
8335
8336 fi
8337
8338 if test "$with_krb4" = yes ; then
8339   if test "${ac_cv_header_krb_h+set}" = set; then
8340   echo "$as_me:$LINENO: checking for krb.h" >&5
8341 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8342 if test "${ac_cv_header_krb_h+set}" = set; then
8343   echo $ECHO_N "(cached) $ECHO_C" >&6
8344 fi
8345 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8346 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8347 else
8348   # Is the header compilable?
8349 echo "$as_me:$LINENO: checking krb.h usability" >&5
8350 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8352 #line $LINENO "configure"
8353 #include "confdefs.h"
8354 $ac_includes_default
8355 #include <krb.h>
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359   (eval $ac_compile) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -s conftest.$ac_objext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_header_compiler=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 ac_header_compiler=no
8374 fi
8375 rm -f conftest.$ac_objext conftest.$ac_ext
8376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377 echo "${ECHO_T}$ac_header_compiler" >&6
8378
8379 # Is the header present?
8380 echo "$as_me:$LINENO: checking krb.h presence" >&5
8381 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 #include "confdefs.h"
8385 #include <krb.h>
8386 _ACEOF
8387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389   ac_status=$?
8390   egrep -v '^ *\+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } >/dev/null; then
8395   if test -s conftest.err; then
8396     ac_cpp_err=$ac_c_preproc_warn_flag
8397   else
8398     ac_cpp_err=
8399   fi
8400 else
8401   ac_cpp_err=yes
8402 fi
8403 if test -z "$ac_cpp_err"; then
8404   ac_header_preproc=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407   cat conftest.$ac_ext >&5
8408   ac_header_preproc=no
8409 fi
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8413
8414 # So?  What about this header?
8415 case $ac_header_compiler:$ac_header_preproc in
8416   yes:no )
8417     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8421   no:yes )
8422     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8424     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8427 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8428 esac
8429 echo "$as_me:$LINENO: checking for krb.h" >&5
8430 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8431 if test "${ac_cv_header_krb_h+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   ac_cv_header_krb_h=$ac_header_preproc
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8437 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8438
8439 fi
8440 if test $ac_cv_header_krb_h = yes; then
8441   :
8442 else
8443   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8444 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8445    { (exit 1); exit 1; }; }
8446 fi
8447
8448
8449 fi
8450
8451 if test "$with_krb5" = yes ; then
8452   if test "${ac_cv_header_krb5_h+set}" = set; then
8453   echo "$as_me:$LINENO: checking for krb5.h" >&5
8454 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_krb5_h+set}" = set; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 fi
8458 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8460 else
8461   # Is the header compilable?
8462 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8463 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 #include "confdefs.h"
8467 $ac_includes_default
8468 #include <krb5.h>
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472   (eval $ac_compile) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -s conftest.$ac_objext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_header_compiler=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 ac_header_compiler=no
8487 fi
8488 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8490 echo "${ECHO_T}$ac_header_compiler" >&6
8491
8492 # Is the header present?
8493 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8494 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 #include "confdefs.h"
8498 #include <krb5.h>
8499 _ACEOF
8500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8502   ac_status=$?
8503   egrep -v '^ *\+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } >/dev/null; then
8508   if test -s conftest.err; then
8509     ac_cpp_err=$ac_c_preproc_warn_flag
8510   else
8511     ac_cpp_err=
8512   fi
8513 else
8514   ac_cpp_err=yes
8515 fi
8516 if test -z "$ac_cpp_err"; then
8517   ac_header_preproc=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520   cat conftest.$ac_ext >&5
8521   ac_header_preproc=no
8522 fi
8523 rm -f conftest.err conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525 echo "${ECHO_T}$ac_header_preproc" >&6
8526
8527 # So?  What about this header?
8528 case $ac_header_compiler:$ac_header_preproc in
8529   yes:no )
8530     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8531 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8534   no:yes )
8535     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8541 esac
8542 echo "$as_me:$LINENO: checking for krb5.h" >&5
8543 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8544 if test "${ac_cv_header_krb5_h+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   ac_cv_header_krb5_h=$ac_header_preproc
8548 fi
8549 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8550 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8551
8552 fi
8553 if test $ac_cv_header_krb5_h = yes; then
8554   :
8555 else
8556   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8557 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8558    { (exit 1); exit 1; }; }
8559 fi
8560
8561
8562   if test "${ac_cv_header_com_err_h+set}" = set; then
8563   echo "$as_me:$LINENO: checking for com_err.h" >&5
8564 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8565 if test "${ac_cv_header_com_err_h+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 fi
8568 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8569 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8570 else
8571   # Is the header compilable?
8572 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8573 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8574 cat >conftest.$ac_ext <<_ACEOF
8575 #line $LINENO "configure"
8576 #include "confdefs.h"
8577 $ac_includes_default
8578 #include <com_err.h>
8579 _ACEOF
8580 rm -f conftest.$ac_objext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582   (eval $ac_compile) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -s conftest.$ac_objext'
8587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588   (eval $ac_try) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; }; then
8592   ac_header_compiler=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8596 ac_header_compiler=no
8597 fi
8598 rm -f conftest.$ac_objext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600 echo "${ECHO_T}$ac_header_compiler" >&6
8601
8602 # Is the header present?
8603 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8604 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8607 #include "confdefs.h"
8608 #include <com_err.h>
8609 _ACEOF
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8612   ac_status=$?
8613   egrep -v '^ *\+' conftest.er1 >conftest.err
8614   rm -f conftest.er1
8615   cat conftest.err >&5
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); } >/dev/null; then
8618   if test -s conftest.err; then
8619     ac_cpp_err=$ac_c_preproc_warn_flag
8620   else
8621     ac_cpp_err=
8622   fi
8623 else
8624   ac_cpp_err=yes
8625 fi
8626 if test -z "$ac_cpp_err"; then
8627   ac_header_preproc=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630   cat conftest.$ac_ext >&5
8631   ac_header_preproc=no
8632 fi
8633 rm -f conftest.err conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8635 echo "${ECHO_T}$ac_header_preproc" >&6
8636
8637 # So?  What about this header?
8638 case $ac_header_compiler:$ac_header_preproc in
8639   yes:no )
8640     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8641 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8642     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8643 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8644   no:yes )
8645     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8646 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8647     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8648 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8651 esac
8652 echo "$as_me:$LINENO: checking for com_err.h" >&5
8653 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8654 if test "${ac_cv_header_com_err_h+set}" = set; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657   ac_cv_header_com_err_h=$ac_header_preproc
8658 fi
8659 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8660 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8661
8662 fi
8663 if test $ac_cv_header_com_err_h = yes; then
8664   :
8665 else
8666   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8667 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8668    { (exit 1); exit 1; }; }
8669 fi
8670
8671
8672 fi
8673
8674 if test "$with_openssl" = yes ; then
8675   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8676   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8677 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 fi
8681 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8682 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8683 else
8684   # Is the header compilable?
8685 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8686 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8691 #include <openssl/ssl.h>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695   (eval $ac_compile) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } &&
8699          { ac_try='test -s conftest.$ac_objext'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   ac_header_compiler=yes
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ac_header_compiler=no
8710 fi
8711 rm -f conftest.$ac_objext conftest.$ac_ext
8712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6
8714
8715 # Is the header present?
8716 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8717 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line $LINENO "configure"
8720 #include "confdefs.h"
8721 #include <openssl/ssl.h>
8722 _ACEOF
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725   ac_status=$?
8726   egrep -v '^ *\+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } >/dev/null; then
8731   if test -s conftest.err; then
8732     ac_cpp_err=$ac_c_preproc_warn_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743   cat conftest.$ac_ext >&5
8744   ac_header_preproc=no
8745 fi
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8749
8750 # So?  What about this header?
8751 case $ac_header_compiler:$ac_header_preproc in
8752   yes:no )
8753     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8757   no:yes )
8758     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8764 esac
8765 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8766 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8774
8775 fi
8776 if test $ac_cv_header_openssl_ssl_h = yes; then
8777   :
8778 else
8779   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8780 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8781    { (exit 1); exit 1; }; }
8782 fi
8783
8784
8785   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8786   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8787 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8788 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8789   echo $ECHO_N "(cached) $ECHO_C" >&6
8790 fi
8791 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8792 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8793 else
8794   # Is the header compilable?
8795 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8796 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 #include "confdefs.h"
8800 $ac_includes_default
8801 #include <openssl/err.h>
8802 _ACEOF
8803 rm -f conftest.$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805   (eval $ac_compile) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } &&
8809          { ac_try='test -s conftest.$ac_objext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_header_compiler=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 ac_header_compiler=no
8820 fi
8821 rm -f conftest.$ac_objext conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8823 echo "${ECHO_T}$ac_header_compiler" >&6
8824
8825 # Is the header present?
8826 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8827 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 #include "confdefs.h"
8831 #include <openssl/err.h>
8832 _ACEOF
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8835   ac_status=$?
8836   egrep -v '^ *\+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } >/dev/null; then
8841   if test -s conftest.err; then
8842     ac_cpp_err=$ac_c_preproc_warn_flag
8843   else
8844     ac_cpp_err=
8845   fi
8846 else
8847   ac_cpp_err=yes
8848 fi
8849 if test -z "$ac_cpp_err"; then
8850   ac_header_preproc=yes
8851 else
8852   echo "$as_me: failed program was:" >&5
8853   cat conftest.$ac_ext >&5
8854   ac_header_preproc=no
8855 fi
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8859
8860 # So?  What about this header?
8861 case $ac_header_compiler:$ac_header_preproc in
8862   yes:no )
8863     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8866 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8867   no:yes )
8868     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8869 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8871 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8874 esac
8875 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8876 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8877 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   ac_cv_header_openssl_err_h=$ac_header_preproc
8881 fi
8882 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8883 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8884
8885 fi
8886 if test $ac_cv_header_openssl_err_h = yes; then
8887   :
8888 else
8889   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8890 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8891    { (exit 1); exit 1; }; }
8892 fi
8893
8894
8895 fi
8896
8897 if test "$with_pam" = yes ; then
8898
8899 for ac_header in security/pam_appl.h
8900 do
8901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903   echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 fi
8908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8910 else
8911   # Is the header compilable?
8912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8916 #include "confdefs.h"
8917 $ac_includes_default
8918 #include <$ac_header>
8919 _ACEOF
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922   (eval $ac_compile) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   ac_header_compiler=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_header_compiler=no
8937 fi
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8941
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8947 #include "confdefs.h"
8948 #include <$ac_header>
8949 _ACEOF
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8952   ac_status=$?
8953   egrep -v '^ *\+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } >/dev/null; then
8958   if test -s conftest.err; then
8959     ac_cpp_err=$ac_c_preproc_warn_flag
8960   else
8961     ac_cpp_err=
8962   fi
8963 else
8964   ac_cpp_err=yes
8965 fi
8966 if test -z "$ac_cpp_err"; then
8967   ac_header_preproc=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970   cat conftest.$ac_ext >&5
8971   ac_header_preproc=no
8972 fi
8973 rm -f conftest.err conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8975 echo "${ECHO_T}$ac_header_preproc" >&6
8976
8977 # So?  What about this header?
8978 case $ac_header_compiler:$ac_header_preproc in
8979   yes:no )
8980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8984   no:yes )
8985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8991 esac
8992 echo "$as_me:$LINENO: checking for $ac_header" >&5
8993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   eval "$as_ac_Header=$ac_header_preproc"
8998 fi
8999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9001
9002 fi
9003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9004   cat >>confdefs.h <<_ACEOF
9005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9006 _ACEOF
9007
9008 else
9009
9010 for ac_header in pam/pam_appl.h
9011 do
9012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014   echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 fi
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021 else
9022   # Is the header compilable?
9023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 #include "confdefs.h"
9028 $ac_includes_default
9029 #include <$ac_header>
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033   (eval $ac_compile) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } &&
9037          { ac_try='test -s conftest.$ac_objext'
9038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039   (eval $ac_try) 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; }; then
9043   ac_header_compiler=yes
9044 else
9045   echo "$as_me: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 ac_header_compiler=no
9048 fi
9049 rm -f conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9051 echo "${ECHO_T}$ac_header_compiler" >&6
9052
9053 # Is the header present?
9054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 #include "confdefs.h"
9059 #include <$ac_header>
9060 _ACEOF
9061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9063   ac_status=$?
9064   egrep -v '^ *\+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } >/dev/null; then
9069   if test -s conftest.err; then
9070     ac_cpp_err=$ac_c_preproc_warn_flag
9071   else
9072     ac_cpp_err=
9073   fi
9074 else
9075   ac_cpp_err=yes
9076 fi
9077 if test -z "$ac_cpp_err"; then
9078   ac_header_preproc=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081   cat conftest.$ac_ext >&5
9082   ac_header_preproc=no
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9087
9088 # So?  What about this header?
9089 case $ac_header_compiler:$ac_header_preproc in
9090   yes:no )
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9095   no:yes )
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9102 esac
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   eval "$as_ac_Header=$ac_header_preproc"
9109 fi
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112
9113 fi
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115   cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 _ACEOF
9118
9119 else
9120   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9121 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9122    { (exit 1); exit 1; }; }
9123 fi
9124
9125 done
9126
9127 fi
9128
9129 done
9130
9131 fi
9132
9133 if test "$with_rendezvous" = yes ; then
9134   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9135   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9136 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9137 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9141 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9142 else
9143   # Is the header compilable?
9144 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9145 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9149 $ac_includes_default
9150 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9151 _ACEOF
9152 rm -f conftest.$ac_objext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154   (eval $ac_compile) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); } &&
9158          { ac_try='test -s conftest.$ac_objext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_header_compiler=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 ac_header_compiler=no
9169 fi
9170 rm -f conftest.$ac_objext conftest.$ac_ext
9171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9172 echo "${ECHO_T}$ac_header_compiler" >&6
9173
9174 # Is the header present?
9175 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9176 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9180 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9181 _ACEOF
9182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9184   ac_status=$?
9185   egrep -v '^ *\+' conftest.er1 >conftest.err
9186   rm -f conftest.er1
9187   cat conftest.err >&5
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } >/dev/null; then
9190   if test -s conftest.err; then
9191     ac_cpp_err=$ac_c_preproc_warn_flag
9192   else
9193     ac_cpp_err=
9194   fi
9195 else
9196   ac_cpp_err=yes
9197 fi
9198 if test -z "$ac_cpp_err"; then
9199   ac_header_preproc=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202   cat conftest.$ac_ext >&5
9203   ac_header_preproc=no
9204 fi
9205 rm -f conftest.err conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207 echo "${ECHO_T}$ac_header_preproc" >&6
9208
9209 # So?  What about this header?
9210 case $ac_header_compiler:$ac_header_preproc in
9211   yes:no )
9212     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9213 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9216   no:yes )
9217     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9221     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9222 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9223 esac
9224 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9225 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9226 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9230 fi
9231 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9233
9234 fi
9235 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9236   :
9237 else
9238   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9239 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9240    { (exit 1); exit 1; }; }
9241 fi
9242
9243
9244 fi
9245
9246
9247 ##
9248 ## Types, structures, compiler characteristics
9249 ##
9250
9251
9252 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9253 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9254 if test "${ac_cv_c_const+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   cat >conftest.$ac_ext <<_ACEOF
9258 #line $LINENO "configure"
9259 #include "confdefs.h"
9260
9261 #ifdef F77_DUMMY_MAIN
9262 #  ifdef __cplusplus
9263      extern "C"
9264 #  endif
9265    int F77_DUMMY_MAIN() { return 1; }
9266 #endif
9267 int
9268 main ()
9269 {
9270 /* FIXME: Include the comments suggested by Paul. */
9271 #ifndef __cplusplus
9272   /* Ultrix mips cc rejects this.  */
9273   typedef int charset[2];
9274   const charset x;
9275   /* SunOS 4.1.1 cc rejects this.  */
9276   char const *const *ccp;
9277   char **p;
9278   /* NEC SVR4.0.2 mips cc rejects this.  */
9279   struct point {int x, y;};
9280   static struct point const zero = {0,0};
9281   /* AIX XL C 1.02.0.0 rejects this.
9282      It does not let you subtract one const X* pointer from another in
9283      an arm of an if-expression whose if-part is not a constant
9284      expression */
9285   const char *g = "string";
9286   ccp = &g + (g ? g-g : 0);
9287   /* HPUX 7.0 cc rejects these. */
9288   ++ccp;
9289   p = (char**) ccp;
9290   ccp = (char const *const *) p;
9291   { /* SCO 3.2v4 cc rejects this.  */
9292     char *t;
9293     char const *s = 0 ? (char *) 0 : (char const *) 0;
9294
9295     *t++ = 0;
9296   }
9297   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9298     int x[] = {25, 17};
9299     const int *foo = &x[0];
9300     ++foo;
9301   }
9302   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9303     typedef const int *iptr;
9304     iptr p = 0;
9305     ++p;
9306   }
9307   { /* AIX XL C 1.02.0.0 rejects this saying
9308        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9309     struct s { int j; const int *ap[3]; };
9310     struct s *b; b->j = 5;
9311   }
9312   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9313     const int foo = 10;
9314   }
9315 #endif
9316
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323   (eval $ac_compile) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -s conftest.$ac_objext'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; }; then
9333   ac_cv_c_const=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 ac_cv_c_const=no
9338 fi
9339 rm -f conftest.$ac_objext conftest.$ac_ext
9340 fi
9341 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9342 echo "${ECHO_T}$ac_cv_c_const" >&6
9343 if test $ac_cv_c_const = no; then
9344
9345 cat >>confdefs.h <<\_ACEOF
9346 #define const
9347 _ACEOF
9348
9349 fi
9350
9351 echo "$as_me:$LINENO: checking for inline" >&5
9352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9353 if test "${ac_cv_c_inline+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   ac_cv_c_inline=no
9357 for ac_kw in inline __inline__ __inline; do
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 #include "confdefs.h"
9361 #ifndef __cplusplus
9362 static $ac_kw int static_foo () {return 0; }
9363 $ac_kw int foo () {return 0; }
9364 #endif
9365
9366 _ACEOF
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369   (eval $ac_compile) 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -s conftest.$ac_objext'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; }; then
9379   ac_cv_c_inline=$ac_kw; break
9380 else
9381   echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 fi
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9385 done
9386
9387 fi
9388 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9389 echo "${ECHO_T}$ac_cv_c_inline" >&6
9390 case $ac_cv_c_inline in
9391   inline | yes) ;;
9392   no)
9393 cat >>confdefs.h <<\_ACEOF
9394 #define inline
9395 _ACEOF
9396  ;;
9397   *)  cat >>confdefs.h <<_ACEOF
9398 #define inline $ac_cv_c_inline
9399 _ACEOF
9400  ;;
9401 esac
9402
9403 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9404 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9405 if test "${ac_cv_c_stringize+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 #include "confdefs.h"
9411 #define x(y) #y
9412
9413 char *s = x(teststring);
9414 _ACEOF
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416   egrep "#teststring" >/dev/null 2>&1; then
9417   ac_cv_c_stringize=no
9418 else
9419   ac_cv_c_stringize=yes
9420 fi
9421 rm -f conftest*
9422
9423 fi
9424 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9425 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9426 if test $ac_cv_c_stringize = yes; then
9427
9428 cat >>confdefs.h <<\_ACEOF
9429 #define HAVE_STRINGIZE 1
9430 _ACEOF
9431
9432 fi
9433
9434 echo "$as_me:$LINENO: checking for signed types" >&5
9435 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9436 if test "${pgac_cv_c_signed+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9442
9443 #ifdef F77_DUMMY_MAIN
9444 #  ifdef __cplusplus
9445      extern "C"
9446 #  endif
9447    int F77_DUMMY_MAIN() { return 1; }
9448 #endif
9449 int
9450 main ()
9451 {
9452 signed char c; signed short s; signed int i;
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459   (eval $ac_compile) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -s conftest.$ac_objext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   pgac_cv_c_signed=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 pgac_cv_c_signed=no
9474 fi
9475 rm -f conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9478 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9479 if test x"$pgac_cv_c_signed" = xno ; then
9480
9481 cat >>confdefs.h <<\_ACEOF
9482 #define signed
9483 _ACEOF
9484
9485 fi
9486 echo "$as_me:$LINENO: checking for working volatile" >&5
9487 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9488 if test "${ac_cv_c_volatile+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 #include "confdefs.h"
9494
9495 #ifdef F77_DUMMY_MAIN
9496 #  ifdef __cplusplus
9497      extern "C"
9498 #  endif
9499    int F77_DUMMY_MAIN() { return 1; }
9500 #endif
9501 int
9502 main ()
9503 {
9504
9505 volatile int x;
9506 int * volatile y;
9507   ;
9508   return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513   (eval $ac_compile) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -s conftest.$ac_objext'
9518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519   (eval $ac_try) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; }; then
9523   ac_cv_c_volatile=yes
9524 else
9525   echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 ac_cv_c_volatile=no
9528 fi
9529 rm -f conftest.$ac_objext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9532 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9533 if test $ac_cv_c_volatile = no; then
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define volatile
9537 _ACEOF
9538
9539 fi
9540
9541 echo "$as_me:$LINENO: checking for __func__" >&5
9542 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9543 if test "${pgac_cv_funcname_func_support+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549 #include <stdio.h>
9550 #ifdef F77_DUMMY_MAIN
9551 #  ifdef __cplusplus
9552      extern "C"
9553 #  endif
9554    int F77_DUMMY_MAIN() { return 1; }
9555 #endif
9556 int
9557 main ()
9558 {
9559 printf("%s\n", __func__);
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566   (eval $ac_compile) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -s conftest.$ac_objext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   pgac_cv_funcname_func_support=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 pgac_cv_funcname_func_support=no
9581 fi
9582 rm -f conftest.$ac_objext conftest.$ac_ext
9583 fi
9584 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9585 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9586 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_FUNCNAME__FUNC 1
9590 _ACEOF
9591
9592 else
9593 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9594 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9595 if test "${pgac_cv_funcname_function_support+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 #include "confdefs.h"
9601 #include <stdio.h>
9602 #ifdef F77_DUMMY_MAIN
9603 #  ifdef __cplusplus
9604      extern "C"
9605 #  endif
9606    int F77_DUMMY_MAIN() { return 1; }
9607 #endif
9608 int
9609 main ()
9610 {
9611 printf("%s\n", __FUNCTION__);
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9618   (eval $ac_compile) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); } &&
9622          { ac_try='test -s conftest.$ac_objext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   pgac_cv_funcname_function_support=yes
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 pgac_cv_funcname_function_support=no
9633 fi
9634 rm -f conftest.$ac_objext conftest.$ac_ext
9635 fi
9636 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9637 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9638 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9639
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_FUNCNAME__FUNCTION 1
9642 _ACEOF
9643
9644 fi
9645 fi
9646 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9647 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9648 if test "${ac_cv_struct_tm+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 #include "confdefs.h"
9654 #include <sys/types.h>
9655 #include <time.h>
9656
9657 #ifdef F77_DUMMY_MAIN
9658 #  ifdef __cplusplus
9659      extern "C"
9660 #  endif
9661    int F77_DUMMY_MAIN() { return 1; }
9662 #endif
9663 int
9664 main ()
9665 {
9666 struct tm *tp; tp->tm_sec;
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673   (eval $ac_compile) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -s conftest.$ac_objext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   ac_cv_struct_tm=time.h
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 ac_cv_struct_tm=sys/time.h
9688 fi
9689 rm -f conftest.$ac_objext conftest.$ac_ext
9690 fi
9691 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9692 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9693 if test $ac_cv_struct_tm = sys/time.h; then
9694
9695 cat >>confdefs.h <<\_ACEOF
9696 #define TM_IN_SYS_TIME 1
9697 _ACEOF
9698
9699 fi
9700
9701 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9702 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9703 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   cat >conftest.$ac_ext <<_ACEOF
9707 #line $LINENO "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9710 #include <$ac_cv_struct_tm>
9711
9712
9713 #ifdef F77_DUMMY_MAIN
9714 #  ifdef __cplusplus
9715      extern "C"
9716 #  endif
9717    int F77_DUMMY_MAIN() { return 1; }
9718 #endif
9719 int
9720 main ()
9721 {
9722 static struct tm ac_aggr;
9723 if (ac_aggr.tm_zone)
9724 return 0;
9725   ;
9726   return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731   (eval $ac_compile) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } &&
9735          { ac_try='test -s conftest.$ac_objext'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; }; then
9741   ac_cv_member_struct_tm_tm_zone=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 ac_cv_member_struct_tm_tm_zone=no
9746 fi
9747 rm -f conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9750 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9751 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9752
9753 cat >>confdefs.h <<_ACEOF
9754 #define HAVE_STRUCT_TM_TM_ZONE 1
9755 _ACEOF
9756
9757
9758 fi
9759
9760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9761
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_TM_ZONE 1
9764 _ACEOF
9765
9766 fi
9767 echo "$as_me:$LINENO: checking for tzname" >&5
9768 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9769 if test "${ac_cv_var_tzname+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9774 #include "confdefs.h"
9775 #include <time.h>
9776 #ifndef tzname /* For SGI.  */
9777 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9778 #endif
9779
9780 #ifdef F77_DUMMY_MAIN
9781 #  ifdef __cplusplus
9782      extern "C"
9783 #  endif
9784    int F77_DUMMY_MAIN() { return 1; }
9785 #endif
9786 int
9787 main ()
9788 {
9789 atoi(*tzname);
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796   (eval $ac_link) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -s conftest$ac_exeext'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_var_tzname=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 ac_cv_var_tzname=no
9811 fi
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9813 fi
9814 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9815 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9816 if test $ac_cv_var_tzname = yes; then
9817
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_TZNAME 1
9820 _ACEOF
9821
9822 fi
9823
9824 echo "$as_me:$LINENO: checking for union semun" >&5
9825 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9826 if test "${ac_cv_type_union_semun+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <sys/ipc.h>
9834 #include <sys/sem.h>
9835
9836 #ifdef F77_DUMMY_MAIN
9837 #  ifdef __cplusplus
9838      extern "C"
9839 #  endif
9840    int F77_DUMMY_MAIN() { return 1; }
9841 #endif
9842 int
9843 main ()
9844 {
9845 if ((union semun *) 0)
9846   return 0;
9847 if (sizeof (union semun))
9848   return 0;
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855   (eval $ac_compile) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -s conftest.$ac_objext'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865   ac_cv_type_union_semun=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 ac_cv_type_union_semun=no
9870 fi
9871 rm -f conftest.$ac_objext conftest.$ac_ext
9872 fi
9873 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9874 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9875 if test $ac_cv_type_union_semun = yes; then
9876
9877 cat >>confdefs.h <<_ACEOF
9878 #define HAVE_UNION_SEMUN 1
9879 _ACEOF
9880
9881
9882 fi
9883
9884 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9885 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9886 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893 #ifdef HAVE_SYS_UN_H
9894 #include <sys/un.h>
9895 #endif
9896
9897
9898 #ifdef F77_DUMMY_MAIN
9899 #  ifdef __cplusplus
9900      extern "C"
9901 #  endif
9902    int F77_DUMMY_MAIN() { return 1; }
9903 #endif
9904 int
9905 main ()
9906 {
9907 if ((struct sockaddr_un *) 0)
9908   return 0;
9909 if (sizeof (struct sockaddr_un))
9910   return 0;
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917   (eval $ac_compile) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_type_struct_sockaddr_un=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 ac_cv_type_struct_sockaddr_un=no
9932 fi
9933 rm -f conftest.$ac_objext conftest.$ac_ext
9934 fi
9935 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9936 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9937 if test $ac_cv_type_struct_sockaddr_un = yes; then
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_STRUCT_SOCKADDR_UN 1
9941 _ACEOF
9942
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_UNIX_SOCKETS 1
9946 _ACEOF
9947
9948 fi
9949
9950 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9951 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9952 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   cat >conftest.$ac_ext <<_ACEOF
9956 #line $LINENO "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9959 #ifdef HAVE_SYS_SOCKET_H
9960 #include <sys/socket.h>
9961 #endif
9962
9963
9964 #ifdef F77_DUMMY_MAIN
9965 #  ifdef __cplusplus
9966      extern "C"
9967 #  endif
9968    int F77_DUMMY_MAIN() { return 1; }
9969 #endif
9970 int
9971 main ()
9972 {
9973 if ((struct sockaddr_storage *) 0)
9974   return 0;
9975 if (sizeof (struct sockaddr_storage))
9976   return 0;
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983   (eval $ac_compile) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -s conftest.$ac_objext'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_type_struct_sockaddr_storage=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9997 ac_cv_type_struct_sockaddr_storage=no
9998 fi
9999 rm -f conftest.$ac_objext conftest.$ac_ext
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10002 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10003 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10004
10005 cat >>confdefs.h <<_ACEOF
10006 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10007 _ACEOF
10008
10009
10010 fi
10011
10012 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10013 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10014 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10015   echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017   cat >conftest.$ac_ext <<_ACEOF
10018 #line $LINENO "configure"
10019 #include "confdefs.h"
10020 #include <sys/types.h>
10021 #include <sys/socket.h>
10022 #include <netdb.h>
10023
10024
10025 #ifdef F77_DUMMY_MAIN
10026 #  ifdef __cplusplus
10027      extern "C"
10028 #  endif
10029    int F77_DUMMY_MAIN() { return 1; }
10030 #endif
10031 int
10032 main ()
10033 {
10034 if ((struct addrinfo *) 0)
10035   return 0;
10036 if (sizeof (struct addrinfo))
10037   return 0;
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044   (eval $ac_compile) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -s conftest.$ac_objext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_type_struct_addrinfo=yes
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 ac_cv_type_struct_addrinfo=no
10059 fi
10060 rm -f conftest.$ac_objext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10063 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10064 if test $ac_cv_type_struct_addrinfo = yes; then
10065
10066 cat >>confdefs.h <<_ACEOF
10067 #define HAVE_STRUCT_ADDRINFO 1
10068 _ACEOF
10069
10070
10071 fi
10072
10073
10074 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10075 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10076 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 #line $LINENO "configure"
10081 #include "confdefs.h"
10082 #include <sys/param.h>
10083 #include <sys/types.h>
10084 #include <sys/socket.h>
10085 #include <sys/ucred.h>
10086
10087 #ifdef F77_DUMMY_MAIN
10088 #  ifdef __cplusplus
10089      extern "C"
10090 #  endif
10091    int F77_DUMMY_MAIN() { return 1; }
10092 #endif
10093 int
10094 main ()
10095 {
10096 if ((struct cmsgcred *) 0)
10097   return 0;
10098 if (sizeof (struct cmsgcred))
10099   return 0;
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106   (eval $ac_compile) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_cv_type_struct_cmsgcred=yes
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 ac_cv_type_struct_cmsgcred=no
10121 fi
10122 rm -f conftest.$ac_objext conftest.$ac_ext
10123 fi
10124 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10125 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10126 if test $ac_cv_type_struct_cmsgcred = yes; then
10127
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_STRUCT_CMSGCRED 1
10130 _ACEOF
10131
10132
10133 fi
10134 echo "$as_me:$LINENO: checking for struct fcred" >&5
10135 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10136 if test "${ac_cv_type_struct_fcred+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10141 #include "confdefs.h"
10142 #include <sys/param.h>
10143 #include <sys/types.h>
10144 #include <sys/socket.h>
10145 #include <sys/ucred.h>
10146
10147 #ifdef F77_DUMMY_MAIN
10148 #  ifdef __cplusplus
10149      extern "C"
10150 #  endif
10151    int F77_DUMMY_MAIN() { return 1; }
10152 #endif
10153 int
10154 main ()
10155 {
10156 if ((struct fcred *) 0)
10157   return 0;
10158 if (sizeof (struct fcred))
10159   return 0;
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166   (eval $ac_compile) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); } &&
10170          { ac_try='test -s conftest.$ac_objext'
10171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172   (eval $ac_try) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; }; then
10176   ac_cv_type_struct_fcred=yes
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 ac_cv_type_struct_fcred=no
10181 fi
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10183 fi
10184 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10185 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10186 if test $ac_cv_type_struct_fcred = yes; then
10187
10188 cat >>confdefs.h <<_ACEOF
10189 #define HAVE_STRUCT_FCRED 1
10190 _ACEOF
10191
10192
10193 fi
10194 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10195 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10196 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   cat >conftest.$ac_ext <<_ACEOF
10200 #line $LINENO "configure"
10201 #include "confdefs.h"
10202 #include <sys/param.h>
10203 #include <sys/types.h>
10204 #include <sys/socket.h>
10205 #include <sys/ucred.h>
10206
10207 #ifdef F77_DUMMY_MAIN
10208 #  ifdef __cplusplus
10209      extern "C"
10210 #  endif
10211    int F77_DUMMY_MAIN() { return 1; }
10212 #endif
10213 int
10214 main ()
10215 {
10216 if ((struct sockcred *) 0)
10217   return 0;
10218 if (sizeof (struct sockcred))
10219   return 0;
10220   ;
10221   return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10226   (eval $ac_compile) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } &&
10230          { ac_try='test -s conftest.$ac_objext'
10231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232   (eval $ac_try) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; }; then
10236   ac_cv_type_struct_sockcred=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 ac_cv_type_struct_sockcred=no
10241 fi
10242 rm -f conftest.$ac_objext conftest.$ac_ext
10243 fi
10244 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10245 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10246 if test $ac_cv_type_struct_sockcred = yes; then
10247
10248 cat >>confdefs.h <<_ACEOF
10249 #define HAVE_STRUCT_SOCKCRED 1
10250 _ACEOF
10251
10252
10253 fi
10254
10255
10256 if test "$with_zlib" = yes; then
10257   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10258   # did not).  While we could work around the lack of z_streamp, it
10259   # seems unwise to encourage people to use such old zlib versions...
10260   echo "$as_me:$LINENO: checking for z_streamp" >&5
10261 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10262 if test "${ac_cv_type_z_streamp+set}" = set; then
10263   echo $ECHO_N "(cached) $ECHO_C" >&6
10264 else
10265   cat >conftest.$ac_ext <<_ACEOF
10266 #line $LINENO "configure"
10267 #include "confdefs.h"
10268 #include <zlib.h>
10269
10270 #ifdef F77_DUMMY_MAIN
10271 #  ifdef __cplusplus
10272      extern "C"
10273 #  endif
10274    int F77_DUMMY_MAIN() { return 1; }
10275 #endif
10276 int
10277 main ()
10278 {
10279 if ((z_streamp *) 0)
10280   return 0;
10281 if (sizeof (z_streamp))
10282   return 0;
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289   (eval $ac_compile) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_cv_type_z_streamp=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 ac_cv_type_z_streamp=no
10304 fi
10305 rm -f conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10308 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10309 if test $ac_cv_type_z_streamp = yes; then
10310   :
10311 else
10312   { { echo "$as_me:$LINENO: error: zlib version is too old
10313 Use --without-zlib to disable zlib support." >&5
10314 echo "$as_me: error: zlib version is too old
10315 Use --without-zlib to disable zlib support." >&2;}
10316    { (exit 1); exit 1; }; }
10317 fi
10318
10319 fi
10320
10321 if test "$with_krb5" = yes; then
10322 # Check for differences between MIT and Heimdal (KTH) releases
10323   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10324 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10325 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10331 #include <krb5.h>
10332
10333 #ifdef F77_DUMMY_MAIN
10334 #  ifdef __cplusplus
10335      extern "C"
10336 #  endif
10337    int F77_DUMMY_MAIN() { return 1; }
10338 #endif
10339 int
10340 main ()
10341 {
10342 static krb5_ticket ac_aggr;
10343 if (ac_aggr.enc_part2)
10344 return 0;
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351   (eval $ac_compile) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -s conftest.$ac_objext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   ac_cv_member_krb5_ticket_enc_part2=yes
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 ac_cv_member_krb5_ticket_enc_part2=no
10366 fi
10367 rm -f conftest.$ac_objext conftest.$ac_ext
10368 fi
10369 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10370 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10371 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10372
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_KRB5_TICKET_ENC_PART2 1
10375 _ACEOF
10376
10377
10378 else
10379   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10380 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10381 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 #include "confdefs.h"
10387 #include <krb5.h>
10388
10389 #ifdef F77_DUMMY_MAIN
10390 #  ifdef __cplusplus
10391      extern "C"
10392 #  endif
10393    int F77_DUMMY_MAIN() { return 1; }
10394 #endif
10395 int
10396 main ()
10397 {
10398 static krb5_ticket ac_aggr;
10399 if (ac_aggr.client)
10400 return 0;
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407   (eval $ac_compile) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -s conftest.$ac_objext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   ac_cv_member_krb5_ticket_client=yes
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 ac_cv_member_krb5_ticket_client=no
10422 fi
10423 rm -f conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10426 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10427 if test $ac_cv_member_krb5_ticket_client = yes; then
10428
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_KRB5_TICKET_CLIENT 1
10431 _ACEOF
10432
10433
10434 else
10435   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10436 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10437    { (exit 1); exit 1; }; }
10438 fi
10439
10440 fi
10441
10442   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10443 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10444 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   cat >conftest.$ac_ext <<_ACEOF
10448 #line $LINENO "configure"
10449 #include "confdefs.h"
10450 #include <krb5.h>
10451
10452 #ifdef F77_DUMMY_MAIN
10453 #  ifdef __cplusplus
10454      extern "C"
10455 #  endif
10456    int F77_DUMMY_MAIN() { return 1; }
10457 #endif
10458 int
10459 main ()
10460 {
10461 static krb5_error ac_aggr;
10462 if (ac_aggr.text.data)
10463 return 0;
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470   (eval $ac_compile) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -s conftest.$ac_objext'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; }; then
10480   ac_cv_member_krb5_error_text_data=yes
10481 else
10482   echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_member_krb5_error_text_data=no
10485 fi
10486 rm -f conftest.$ac_objext conftest.$ac_ext
10487 fi
10488 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10489 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10490 if test $ac_cv_member_krb5_error_text_data = yes; then
10491
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10494 _ACEOF
10495
10496
10497 else
10498   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10499 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10500 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   cat >conftest.$ac_ext <<_ACEOF
10504 #line $LINENO "configure"
10505 #include "confdefs.h"
10506 #include <krb5.h>
10507
10508 #ifdef F77_DUMMY_MAIN
10509 #  ifdef __cplusplus
10510      extern "C"
10511 #  endif
10512    int F77_DUMMY_MAIN() { return 1; }
10513 #endif
10514 int
10515 main ()
10516 {
10517 static krb5_error ac_aggr;
10518 if (ac_aggr.e_data)
10519 return 0;
10520   ;
10521   return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526   (eval $ac_compile) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -s conftest.$ac_objext'
10531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532   (eval $ac_try) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; }; then
10536   ac_cv_member_krb5_error_e_data=yes
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 ac_cv_member_krb5_error_e_data=no
10541 fi
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10543 fi
10544 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10545 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10546 if test $ac_cv_member_krb5_error_e_data = yes; then
10547
10548 cat >>confdefs.h <<_ACEOF
10549 #define HAVE_KRB5_ERROR_E_DATA 1
10550 _ACEOF
10551
10552
10553 else
10554   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10555 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10556    { (exit 1); exit 1; }; }
10557 fi
10558
10559 fi
10560
10561 fi
10562
10563
10564 ##
10565 ## Functions, global variables
10566 ##
10567
10568 echo "$as_me:$LINENO: checking for int timezone" >&5
10569 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10570 if test "${pgac_cv_var_int_timezone+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 #include "confdefs.h"
10576 #include <time.h>
10577 int res;
10578 #ifdef F77_DUMMY_MAIN
10579 #  ifdef __cplusplus
10580      extern "C"
10581 #  endif
10582    int F77_DUMMY_MAIN() { return 1; }
10583 #endif
10584 int
10585 main ()
10586 {
10587 res = timezone / 60;
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594   (eval $ac_link) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } &&
10598          { ac_try='test -s conftest$ac_exeext'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   pgac_cv_var_int_timezone=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 pgac_cv_var_int_timezone=no
10609 fi
10610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10611 fi
10612 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10613 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10614 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10615
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_INT_TIMEZONE
10618 _ACEOF
10619
10620 fi
10621 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10622 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10623  if test "${ac_cv_func_accept_arg1+set}" = set; then
10624   echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626    if test "${ac_cv_func_accept_arg2+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629     if test "${ac_cv_func_accept_arg3+set}" = set; then
10630   echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10633      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10634       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10635        cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10637 #include "confdefs.h"
10638 #ifdef HAVE_SYS_TYPES_H
10639 #include <sys/types.h>
10640 #endif
10641 #ifdef HAVE_SYS_SOCKET_H
10642 #include <sys/socket.h>
10643 #endif
10644 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10645 #ifdef F77_DUMMY_MAIN
10646 #  ifdef __cplusplus
10647      extern "C"
10648 #  endif
10649    int F77_DUMMY_MAIN() { return 1; }
10650 #endif
10651 int
10652 main ()
10653 {
10654
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661   (eval $ac_compile) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); } &&
10665          { ac_try='test -s conftest.$ac_objext'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_not_found=no; break 3
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10675 ac_not_found=yes
10676 fi
10677 rm -f conftest.$ac_objext conftest.$ac_ext
10678       done
10679      done
10680     done
10681     if test "$ac_not_found" = yes; then
10682       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10683 echo "$as_me: error: could not determine argument types" >&2;}
10684    { (exit 1); exit 1; }; }
10685     fi
10686     if test "$ac_cv_func_accept_arg3" = "void"; then
10687       ac_cv_func_accept_arg3=int
10688     fi
10689
10690 fi
10691
10692 fi
10693
10694 fi
10695  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10696 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10697
10698 cat >>confdefs.h <<_ACEOF
10699 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10700 _ACEOF
10701
10702
10703 cat >>confdefs.h <<_ACEOF
10704 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10705 _ACEOF
10706
10707
10708 cat >>confdefs.h <<_ACEOF
10709 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10710 _ACEOF
10711
10712
10713 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10714 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10715 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 #include "confdefs.h"
10721 #include <sys/time.h>
10722 #ifdef F77_DUMMY_MAIN
10723 #  ifdef __cplusplus
10724      extern "C"
10725 #  endif
10726    int F77_DUMMY_MAIN() { return 1; }
10727 #endif
10728 int
10729 main ()
10730 {
10731 struct timeval *tp;
10732 struct timezone *tzp;
10733 gettimeofday(tp,tzp);
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740   (eval $ac_compile) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } &&
10744          { ac_try='test -s conftest.$ac_objext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   pgac_cv_func_gettimeofday_1arg=no
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10754 pgac_cv_func_gettimeofday_1arg=yes
10755 fi
10756 rm -f conftest.$ac_objext conftest.$ac_ext
10757 fi
10758 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10759 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10760 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10761
10762 cat >>confdefs.h <<\_ACEOF
10763 #define GETTIMEOFDAY_1ARG
10764 _ACEOF
10765
10766 fi
10767
10768
10769
10770 # SunOS doesn't handle negative byte comparisons properly with +/- return
10771 echo "$as_me:$LINENO: checking for working memcmp" >&5
10772 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10773 if test "${ac_cv_func_memcmp_working+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   if test "$cross_compiling" = yes; then
10777   ac_cv_func_memcmp_working=no
10778 else
10779   cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10782
10783 #ifdef F77_DUMMY_MAIN
10784 #  ifdef __cplusplus
10785      extern "C"
10786 #  endif
10787    int F77_DUMMY_MAIN() { return 1; }
10788 #endif
10789 int
10790 main ()
10791 {
10792
10793   /* Some versions of memcmp are not 8-bit clean.  */
10794   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10795   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10796     exit (1);
10797
10798   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10799      or more and with at least one buffer not starting on a 4-byte boundary.
10800      William Lewis provided this test program.   */
10801   {
10802     char foo[21];
10803     char bar[21];
10804     int i;
10805     for (i = 0; i < 4; i++)
10806       {
10807         char *a = foo + i;
10808         char *b = bar + i;
10809         strcpy (a, "--------01111111");
10810         strcpy (b, "--------10000000");
10811         if (memcmp (a, b, 16) >= 0)
10812           exit (1);
10813       }
10814     exit (0);
10815   }
10816
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823   (eval $ac_link) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828   (eval $ac_try) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; }; then
10832   ac_cv_func_memcmp_working=yes
10833 else
10834   echo "$as_me: program exited with status $ac_status" >&5
10835 echo "$as_me: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 ( exit $ac_status )
10838 ac_cv_func_memcmp_working=no
10839 fi
10840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10841 fi
10842 fi
10843 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10844 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10845 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10865 do
10866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10867 echo "$as_me:$LINENO: checking for $ac_func" >&5
10868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10869 if eval "test \"\${$as_ac_var+set}\" = set"; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func (); below.  */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 /* We use char because int might match the return type of a gcc2
10883    builtin and then its argument prototype would still apply.  */
10884 char $ac_func ();
10885 char (*f) ();
10886
10887 #ifdef F77_DUMMY_MAIN
10888 #  ifdef __cplusplus
10889      extern "C"
10890 #  endif
10891    int F77_DUMMY_MAIN() { return 1; }
10892 #endif
10893 int
10894 main ()
10895 {
10896 /* The GNU C library defines this for functions which it implements
10897     to always fail with ENOSYS.  Some functions are actually named
10898     something starting with __ and the normal name is an alias.  */
10899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10900 choke me
10901 #else
10902 f = $ac_func;
10903 #endif
10904
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911   (eval $ac_link) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); } &&
10915          { ac_try='test -s conftest$ac_exeext'
10916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917   (eval $ac_try) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   eval "$as_ac_var=yes"
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10925 eval "$as_ac_var=no"
10926 fi
10927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10928 fi
10929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10931 if test `eval echo '${'$as_ac_var'}'` = yes; then
10932   cat >>confdefs.h <<_ACEOF
10933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10934 _ACEOF
10935
10936 fi
10937 done
10938
10939
10940 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10941 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10942 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 #include <unistd.h>
10949
10950 #ifdef F77_DUMMY_MAIN
10951 #  ifdef __cplusplus
10952      extern "C"
10953 #  endif
10954    int F77_DUMMY_MAIN() { return 1; }
10955 #endif
10956 int
10957 main ()
10958 {
10959 #ifndef fdatasync
10960   char *p = (char *) fdatasync;
10961 #endif
10962
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -s conftest.$ac_objext'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979   ac_cv_have_decl_fdatasync=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 ac_cv_have_decl_fdatasync=no
10984 fi
10985 rm -f conftest.$ac_objext conftest.$ac_ext
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10988 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10989 if test $ac_cv_have_decl_fdatasync = yes; then
10990
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_FDATASYNC 1
10993 _ACEOF
10994
10995
10996 else
10997   cat >>confdefs.h <<_ACEOF
10998 #define HAVE_DECL_FDATASYNC 0
10999 _ACEOF
11000
11001
11002 fi
11003
11004
11005
11006 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11007 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11008 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11009   echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011   cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 #include "confdefs.h"
11014 $ac_includes_default
11015 #include <netinet/in.h>
11016
11017 #ifdef F77_DUMMY_MAIN
11018 #  ifdef __cplusplus
11019      extern "C"
11020 #  endif
11021    int F77_DUMMY_MAIN() { return 1; }
11022 #endif
11023 int
11024 main ()
11025 {
11026 if ((struct sockaddr_in6 *) 0)
11027   return 0;
11028 if (sizeof (struct sockaddr_in6))
11029   return 0;
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_type_struct_sockaddr_in6=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 ac_cv_type_struct_sockaddr_in6=no
11051 fi
11052 rm -f conftest.$ac_objext conftest.$ac_ext
11053 fi
11054 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11055 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11056 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11057   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11058 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11059 if test "${ac_cv_func_inet_ntop+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066     which can conflict with char inet_ntop (); below.  */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 /* We use char because int might match the return type of a gcc2
11073    builtin and then its argument prototype would still apply.  */
11074 char inet_ntop ();
11075 char (*f) ();
11076
11077 #ifdef F77_DUMMY_MAIN
11078 #  ifdef __cplusplus
11079      extern "C"
11080 #  endif
11081    int F77_DUMMY_MAIN() { return 1; }
11082 #endif
11083 int
11084 main ()
11085 {
11086 /* The GNU C library defines this for functions which it implements
11087     to always fail with ENOSYS.  Some functions are actually named
11088     something starting with __ and the normal name is an alias.  */
11089 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11090 choke me
11091 #else
11092 f = inet_ntop;
11093 #endif
11094
11095   ;
11096   return 0;
11097 }
11098 _ACEOF
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } &&
11105          { ac_try='test -s conftest$ac_exeext'
11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107   (eval $ac_try) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   ac_cv_func_inet_ntop=yes
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 ac_cv_func_inet_ntop=no
11116 fi
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11118 fi
11119 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11120 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11121 if test $ac_cv_func_inet_ntop = yes; then
11122
11123 cat >>confdefs.h <<\_ACEOF
11124 #define HAVE_IPV6 1
11125 _ACEOF
11126
11127 fi
11128
11129 fi
11130
11131
11132 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11133 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11134 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11135   echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137   cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 #include "confdefs.h"
11140 #include <machine/vmparam.h>
11141 #include <sys/exec.h>
11142
11143 #ifdef F77_DUMMY_MAIN
11144 #  ifdef __cplusplus
11145      extern "C"
11146 #  endif
11147    int F77_DUMMY_MAIN() { return 1; }
11148 #endif
11149 int
11150 main ()
11151 {
11152 PS_STRINGS->ps_nargvstr = 1;
11153 PS_STRINGS->ps_argvstr = "foo";
11154   ;
11155   return 0;
11156 }
11157 _ACEOF
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160   (eval $ac_link) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -s conftest$ac_exeext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   pgac_cv_var_PS_STRINGS=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 pgac_cv_var_PS_STRINGS=no
11175 fi
11176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11177 fi
11178 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11179 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11180 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11181
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_PS_STRINGS
11184 _ACEOF
11185
11186 fi
11187
11188
11189 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11190 # is missing.  Yes, there are machines that have only one.  We may
11191 # also decide to use snprintf.c if snprintf() is present but does not
11192 # have working "long long int" support -- see below.
11193
11194 pgac_need_repl_snprintf=no
11195
11196 for ac_func in snprintf
11197 do
11198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 echo "$as_me:$LINENO: checking for $ac_func" >&5
11200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_var+set}\" = set"; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11207 /* System header to define __stub macros and hopefully few prototypes,
11208     which can conflict with char $ac_func (); below.  */
11209 #include <assert.h>
11210 /* Override any gcc2 internal prototype to avoid an error.  */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 /* We use char because int might match the return type of a gcc2
11215    builtin and then its argument prototype would still apply.  */
11216 char $ac_func ();
11217 char (*f) ();
11218
11219 #ifdef F77_DUMMY_MAIN
11220 #  ifdef __cplusplus
11221      extern "C"
11222 #  endif
11223    int F77_DUMMY_MAIN() { return 1; }
11224 #endif
11225 int
11226 main ()
11227 {
11228 /* The GNU C library defines this for functions which it implements
11229     to always fail with ENOSYS.  Some functions are actually named
11230     something starting with __ and the normal name is an alias.  */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11232 choke me
11233 #else
11234 f = $ac_func;
11235 #endif
11236
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243   (eval $ac_link) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } &&
11247          { ac_try='test -s conftest$ac_exeext'
11248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249   (eval $ac_try) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   eval "$as_ac_var=yes"
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 eval "$as_ac_var=no"
11258 fi
11259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260 fi
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264   cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 _ACEOF
11267
11268 else
11269   pgac_need_repl_snprintf=yes
11270 fi
11271 done
11272
11273
11274 for ac_func in vsnprintf
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_var+set}\" = set"; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   cat >conftest.$ac_ext <<_ACEOF
11283 #line $LINENO "configure"
11284 #include "confdefs.h"
11285 /* System header to define __stub macros and hopefully few prototypes,
11286     which can conflict with char $ac_func (); below.  */
11287 #include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error.  */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293    builtin and then its argument prototype would still apply.  */
11294 char $ac_func ();
11295 char (*f) ();
11296
11297 #ifdef F77_DUMMY_MAIN
11298 #  ifdef __cplusplus
11299      extern "C"
11300 #  endif
11301    int F77_DUMMY_MAIN() { return 1; }
11302 #endif
11303 int
11304 main ()
11305 {
11306 /* The GNU C library defines this for functions which it implements
11307     to always fail with ENOSYS.  Some functions are actually named
11308     something starting with __ and the normal name is an alias.  */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310 choke me
11311 #else
11312 f = $ac_func;
11313 #endif
11314
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321   (eval $ac_link) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -s conftest$ac_exeext'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; }; then
11331   eval "$as_ac_var=yes"
11332 else
11333   echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342   cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 else
11347   pgac_need_repl_snprintf=yes
11348 fi
11349 done
11350
11351
11352
11353 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11354 # include/c.h will provide declarations.  Note this is a separate test
11355 # from whether the functions exist in the C library --- there are
11356 # systems that have the functions but don't bother to declare them :-(
11357
11358 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11359 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11360 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11361   echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363   cat >conftest.$ac_ext <<_ACEOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11366 $ac_includes_default
11367 #ifdef F77_DUMMY_MAIN
11368 #  ifdef __cplusplus
11369      extern "C"
11370 #  endif
11371    int F77_DUMMY_MAIN() { return 1; }
11372 #endif
11373 int
11374 main ()
11375 {
11376 #ifndef snprintf
11377   char *p = (char *) snprintf;
11378 #endif
11379
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386   (eval $ac_compile) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } &&
11390          { ac_try='test -s conftest.$ac_objext'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   ac_cv_have_decl_snprintf=yes
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 ac_cv_have_decl_snprintf=no
11401 fi
11402 rm -f conftest.$ac_objext conftest.$ac_ext
11403 fi
11404 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11405 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11406 if test $ac_cv_have_decl_snprintf = yes; then
11407
11408 cat >>confdefs.h <<_ACEOF
11409 #define HAVE_DECL_SNPRINTF 1
11410 _ACEOF
11411
11412
11413 else
11414   cat >>confdefs.h <<_ACEOF
11415 #define HAVE_DECL_SNPRINTF 0
11416 _ACEOF
11417
11418
11419 fi
11420 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11421 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11422 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11427 #include "confdefs.h"
11428 $ac_includes_default
11429 #ifdef F77_DUMMY_MAIN
11430 #  ifdef __cplusplus
11431      extern "C"
11432 #  endif
11433    int F77_DUMMY_MAIN() { return 1; }
11434 #endif
11435 int
11436 main ()
11437 {
11438 #ifndef vsnprintf
11439   char *p = (char *) vsnprintf;
11440 #endif
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11448   (eval $ac_compile) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_cv_have_decl_vsnprintf=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11462 ac_cv_have_decl_vsnprintf=no
11463 fi
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11465 fi
11466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11467 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11468 if test $ac_cv_have_decl_vsnprintf = yes; then
11469
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_DECL_VSNPRINTF 1
11472 _ACEOF
11473
11474
11475 else
11476   cat >>confdefs.h <<_ACEOF
11477 #define HAVE_DECL_VSNPRINTF 0
11478 _ACEOF
11479
11480
11481 fi
11482
11483
11484
11485
11486 # do this one the hard way in case isinf() is a macro
11487 echo "$as_me:$LINENO: checking for isinf" >&5
11488 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11489 if test "${ac_cv_func_isinf+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11495 #include <math.h>
11496
11497 #ifdef F77_DUMMY_MAIN
11498 #  ifdef __cplusplus
11499      extern "C"
11500 #  endif
11501    int F77_DUMMY_MAIN() { return 1; }
11502 #endif
11503 int
11504 main ()
11505 {
11506 double x = 0.0; int res = isinf(x);
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513   (eval $ac_link) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); } &&
11517          { ac_try='test -s conftest$ac_exeext'
11518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519   (eval $ac_try) 2>&5
11520   ac_status=$?
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); }; }; then
11523   ac_cv_func_isinf=yes
11524 else
11525   echo "$as_me: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 ac_cv_func_isinf=no
11528 fi
11529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11530 fi
11531 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11532 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11533
11534 if test $ac_cv_func_isinf = yes ; then
11535
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_ISINF 1
11538 _ACEOF
11539
11540 else
11541   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11542   # Look for a way to implement a substitute for isinf()
11543
11544
11545
11546
11547 for ac_func in fpclass fp_class fp_class_d class
11548 do
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.  */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566    builtin and then its argument prototype would still apply.  */
11567 char $ac_func ();
11568 char (*f) ();
11569
11570 #ifdef F77_DUMMY_MAIN
11571 #  ifdef __cplusplus
11572      extern "C"
11573 #  endif
11574    int F77_DUMMY_MAIN() { return 1; }
11575 #endif
11576 int
11577 main ()
11578 {
11579 /* The GNU C library defines this for functions which it implements
11580     to always fail with ENOSYS.  Some functions are actually named
11581     something starting with __ and the normal name is an alias.  */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11583 choke me
11584 #else
11585 f = $ac_func;
11586 #endif
11587
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -s conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11609 fi
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 fi
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11618  break
11619 fi
11620 done
11621
11622 fi
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11639 do
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_var+set}\" = set"; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646   cat >conftest.$ac_ext <<_ACEOF
11647 #line $LINENO "configure"
11648 #include "confdefs.h"
11649 /* System header to define __stub macros and hopefully few prototypes,
11650     which can conflict with char $ac_func (); below.  */
11651 #include <assert.h>
11652 /* Override any gcc2 internal prototype to avoid an error.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657    builtin and then its argument prototype would still apply.  */
11658 char $ac_func ();
11659 char (*f) ();
11660
11661 #ifdef F77_DUMMY_MAIN
11662 #  ifdef __cplusplus
11663      extern "C"
11664 #  endif
11665    int F77_DUMMY_MAIN() { return 1; }
11666 #endif
11667 int
11668 main ()
11669 {
11670 /* The GNU C library defines this for functions which it implements
11671     to always fail with ENOSYS.  Some functions are actually named
11672     something starting with __ and the normal name is an alias.  */
11673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11674 choke me
11675 #else
11676 f = $ac_func;
11677 #endif
11678
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } &&
11689          { ac_try='test -s conftest$ac_exeext'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; }; then
11695   eval "$as_ac_var=yes"
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11700 fi
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702 fi
11703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706   cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11709
11710 else
11711   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11712 fi
11713 done
11714
11715
11716
11717 # system's version of getaddrinfo(), if any, may be used only if we found
11718 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11719 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11720
11721 for ac_func in getaddrinfo
11722 do
11723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11724 echo "$as_me:$LINENO: checking for $ac_func" >&5
11725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11726 if eval "test \"\${$as_ac_var+set}\" = set"; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729   cat >conftest.$ac_ext <<_ACEOF
11730 #line $LINENO "configure"
11731 #include "confdefs.h"
11732 /* System header to define __stub macros and hopefully few prototypes,
11733     which can conflict with char $ac_func (); below.  */
11734 #include <assert.h>
11735 /* Override any gcc2 internal prototype to avoid an error.  */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740    builtin and then its argument prototype would still apply.  */
11741 char $ac_func ();
11742 char (*f) ();
11743
11744 #ifdef F77_DUMMY_MAIN
11745 #  ifdef __cplusplus
11746      extern "C"
11747 #  endif
11748    int F77_DUMMY_MAIN() { return 1; }
11749 #endif
11750 int
11751 main ()
11752 {
11753 /* The GNU C library defines this for functions which it implements
11754     to always fail with ENOSYS.  Some functions are actually named
11755     something starting with __ and the normal name is an alias.  */
11756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 choke me
11758 #else
11759 f = $ac_func;
11760 #endif
11761
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768   (eval $ac_link) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -s conftest$ac_exeext'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   eval "$as_ac_var=yes"
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 eval "$as_ac_var=no"
11783 fi
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785 fi
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789   cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11791 _ACEOF
11792
11793 else
11794   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11795 fi
11796 done
11797
11798
11799 else
11800   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11801 fi
11802
11803 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11804 # We override the previous test that said fseeko/ftello didn't exist
11805 # OS tests are also done in include/c.h and port/fseeko.c
11806 case $host_os in bsdi*|netbsd*)
11807 ac_cv_func_fseeko=yes
11808 esac
11809
11810 # Solaris has a very slow qsort in certain cases, so we replace it.
11811 case $host_os in solaris*)
11812 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11813 esac
11814
11815 # Win32 can't to rename or unlink on an open file
11816 case $host_os in mingw*)
11817 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11818 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11819 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11820 esac
11821
11822 if test "$with_readline" = yes; then
11823   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11824 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 #include "confdefs.h"
11828 #include <stdio.h>
11829 #ifdef HAVE_READLINE_READLINE_H
11830 # include <readline/readline.h>
11831 #elif defined(HAVE_READLINE_H)
11832 # include <readline.h>
11833 #endif
11834
11835 #ifdef F77_DUMMY_MAIN
11836 #  ifdef __cplusplus
11837      extern "C"
11838 #  endif
11839    int F77_DUMMY_MAIN() { return 1; }
11840 #endif
11841 int
11842 main ()
11843 {
11844 rl_completion_append_character = 'x';
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851   (eval $ac_link) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -s conftest$ac_exeext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   echo "$as_me:$LINENO: result: yes" >&5
11862 echo "${ECHO_T}yes" >&6
11863
11864 cat >>confdefs.h <<\_ACEOF
11865 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11866 _ACEOF
11867
11868 else
11869   echo "$as_me: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 fi
11874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11875
11876
11877 for ac_func in rl_completion_matches rl_filename_completion_function
11878 do
11879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880 echo "$as_me:$LINENO: checking for $ac_func" >&5
11881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11882 if eval "test \"\${$as_ac_var+set}\" = set"; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889     which can conflict with char $ac_func (); below.  */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 /* We use char because int might match the return type of a gcc2
11896    builtin and then its argument prototype would still apply.  */
11897 char $ac_func ();
11898 char (*f) ();
11899
11900 #ifdef F77_DUMMY_MAIN
11901 #  ifdef __cplusplus
11902      extern "C"
11903 #  endif
11904    int F77_DUMMY_MAIN() { return 1; }
11905 #endif
11906 int
11907 main ()
11908 {
11909 /* The GNU C library defines this for functions which it implements
11910     to always fail with ENOSYS.  Some functions are actually named
11911     something starting with __ and the normal name is an alias.  */
11912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11913 choke me
11914 #else
11915 f = $ac_func;
11916 #endif
11917
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924   (eval $ac_link) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   eval "$as_ac_var=yes"
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11939 fi
11940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 fi
11942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11944 if test `eval echo '${'$as_ac_var'}'` = yes; then
11945   cat >>confdefs.h <<_ACEOF
11946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947 _ACEOF
11948
11949 fi
11950 done
11951
11952
11953 for ac_func in replace_history_entry
11954 do
11955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11956 echo "$as_me:$LINENO: checking for $ac_func" >&5
11957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11958 if eval "test \"\${$as_ac_var+set}\" = set"; then
11959   echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961   cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11963 #include "confdefs.h"
11964 /* System header to define __stub macros and hopefully few prototypes,
11965     which can conflict with char $ac_func (); below.  */
11966 #include <assert.h>
11967 /* Override any gcc2 internal prototype to avoid an error.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 /* We use char because int might match the return type of a gcc2
11972    builtin and then its argument prototype would still apply.  */
11973 char $ac_func ();
11974 char (*f) ();
11975
11976 #ifdef F77_DUMMY_MAIN
11977 #  ifdef __cplusplus
11978      extern "C"
11979 #  endif
11980    int F77_DUMMY_MAIN() { return 1; }
11981 #endif
11982 int
11983 main ()
11984 {
11985 /* The GNU C library defines this for functions which it implements
11986     to always fail with ENOSYS.  Some functions are actually named
11987     something starting with __ and the normal name is an alias.  */
11988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11989 choke me
11990 #else
11991 f = $ac_func;
11992 #endif
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000   (eval $ac_link) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } &&
12004          { ac_try='test -s conftest$ac_exeext'
12005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006   (eval $ac_try) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; }; then
12010   eval "$as_ac_var=yes"
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 eval "$as_ac_var=no"
12015 fi
12016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12017 fi
12018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12020 if test `eval echo '${'$as_ac_var'}'` = yes; then
12021   cat >>confdefs.h <<_ACEOF
12022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12023 _ACEOF
12024
12025 fi
12026 done
12027
12028 fi
12029
12030
12031 echo "$as_me:$LINENO: checking for finite" >&5
12032 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037 #ifdef F77_DUMMY_MAIN
12038 #  ifdef __cplusplus
12039      extern "C"
12040 #  endif
12041    int F77_DUMMY_MAIN() { return 1; }
12042 #endif
12043 int
12044 main ()
12045 {
12046 int dummy=finite(1.0);
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053   (eval $ac_link) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } &&
12057          { ac_try='test -s conftest$ac_exeext'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_FINITE 1
12066 _ACEOF
12067
12068 echo "$as_me:$LINENO: result: yes" >&5
12069 echo "${ECHO_T}yes" >&6
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12075 fi
12076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12077
12078 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12079 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083 #include <setjmp.h>
12084 #ifdef F77_DUMMY_MAIN
12085 #  ifdef __cplusplus
12086      extern "C"
12087 #  endif
12088    int F77_DUMMY_MAIN() { return 1; }
12089 #endif
12090 int
12091 main ()
12092 {
12093 sigjmp_buf x; sigsetjmp(x, 1);
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100   (eval $ac_link) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -s conftest$ac_exeext'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; }; then
12110
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_SIGSETJMP 1
12113 _ACEOF
12114
12115 echo "$as_me:$LINENO: result: yes" >&5
12116 echo "${ECHO_T}yes" >&6
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12122 fi
12123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12124
12125 echo "$as_me:$LINENO: checking for syslog" >&5
12126 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12127 if test "${ac_cv_func_syslog+set}" = set; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130   cat >conftest.$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12133 /* System header to define __stub macros and hopefully few prototypes,
12134     which can conflict with char syslog (); below.  */
12135 #include <assert.h>
12136 /* Override any gcc2 internal prototype to avoid an error.  */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 /* We use char because int might match the return type of a gcc2
12141    builtin and then its argument prototype would still apply.  */
12142 char syslog ();
12143 char (*f) ();
12144
12145 #ifdef F77_DUMMY_MAIN
12146 #  ifdef __cplusplus
12147      extern "C"
12148 #  endif
12149    int F77_DUMMY_MAIN() { return 1; }
12150 #endif
12151 int
12152 main ()
12153 {
12154 /* The GNU C library defines this for functions which it implements
12155     to always fail with ENOSYS.  Some functions are actually named
12156     something starting with __ and the normal name is an alias.  */
12157 #if defined (__stub_syslog) || defined (__stub___syslog)
12158 choke me
12159 #else
12160 f = syslog;
12161 #endif
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169   (eval $ac_link) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -s conftest$ac_exeext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_cv_func_syslog=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 ac_cv_func_syslog=no
12184 fi
12185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12186 fi
12187 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12188 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12189 if test $ac_cv_func_syslog = yes; then
12190   if test "${ac_cv_header_syslog_h+set}" = set; then
12191   echo "$as_me:$LINENO: checking for syslog.h" >&5
12192 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12193 if test "${ac_cv_header_syslog_h+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 fi
12196 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12197 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12198 else
12199   # Is the header compilable?
12200 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12201 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 #include "confdefs.h"
12205 $ac_includes_default
12206 #include <syslog.h>
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210   (eval $ac_compile) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_header_compiler=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 ac_header_compiler=no
12225 fi
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12228 echo "${ECHO_T}$ac_header_compiler" >&6
12229
12230 # Is the header present?
12231 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12232 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12235 #include "confdefs.h"
12236 #include <syslog.h>
12237 _ACEOF
12238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12240   ac_status=$?
12241   egrep -v '^ *\+' conftest.er1 >conftest.err
12242   rm -f conftest.er1
12243   cat conftest.err >&5
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } >/dev/null; then
12246   if test -s conftest.err; then
12247     ac_cpp_err=$ac_c_preproc_warn_flag
12248   else
12249     ac_cpp_err=
12250   fi
12251 else
12252   ac_cpp_err=yes
12253 fi
12254 if test -z "$ac_cpp_err"; then
12255   ac_header_preproc=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258   cat conftest.$ac_ext >&5
12259   ac_header_preproc=no
12260 fi
12261 rm -f conftest.err conftest.$ac_ext
12262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12263 echo "${ECHO_T}$ac_header_preproc" >&6
12264
12265 # So?  What about this header?
12266 case $ac_header_compiler:$ac_header_preproc in
12267   yes:no )
12268     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12269 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12270     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12271 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12272   no:yes )
12273     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12275     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12277     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12278 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12279 esac
12280 echo "$as_me:$LINENO: checking for syslog.h" >&5
12281 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12282 if test "${ac_cv_header_syslog_h+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   ac_cv_header_syslog_h=$ac_header_preproc
12286 fi
12287 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12288 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12289
12290 fi
12291 if test $ac_cv_header_syslog_h = yes; then
12292
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_SYSLOG 1
12295 _ACEOF
12296
12297 fi
12298
12299
12300 fi
12301
12302
12303 echo "$as_me:$LINENO: checking for optreset" >&5
12304 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12305 if test "${pgac_cv_var_int_optreset+set}" = set; then
12306   echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308   cat >conftest.$ac_ext <<_ACEOF
12309 #line $LINENO "configure"
12310 #include "confdefs.h"
12311 #include <unistd.h>
12312 #ifdef F77_DUMMY_MAIN
12313 #  ifdef __cplusplus
12314      extern "C"
12315 #  endif
12316    int F77_DUMMY_MAIN() { return 1; }
12317 #endif
12318 int
12319 main ()
12320 {
12321 extern int optreset; optreset = 1;
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328   (eval $ac_link) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -s conftest$ac_exeext'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   pgac_cv_var_int_optreset=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12342 pgac_cv_var_int_optreset=no
12343 fi
12344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12345 fi
12346 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12347 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12348 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12349
12350 cat >>confdefs.h <<\_ACEOF
12351 #define HAVE_INT_OPTRESET 1
12352 _ACEOF
12353
12354 fi
12355
12356
12357
12358 for ac_func in strtoll strtoq
12359 do
12360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12361 echo "$as_me:$LINENO: checking for $ac_func" >&5
12362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12363 if eval "test \"\${$as_ac_var+set}\" = set"; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   cat >conftest.$ac_ext <<_ACEOF
12367 #line $LINENO "configure"
12368 #include "confdefs.h"
12369 /* System header to define __stub macros and hopefully few prototypes,
12370     which can conflict with char $ac_func (); below.  */
12371 #include <assert.h>
12372 /* Override any gcc2 internal prototype to avoid an error.  */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 /* We use char because int might match the return type of a gcc2
12377    builtin and then its argument prototype would still apply.  */
12378 char $ac_func ();
12379 char (*f) ();
12380
12381 #ifdef F77_DUMMY_MAIN
12382 #  ifdef __cplusplus
12383      extern "C"
12384 #  endif
12385    int F77_DUMMY_MAIN() { return 1; }
12386 #endif
12387 int
12388 main ()
12389 {
12390 /* The GNU C library defines this for functions which it implements
12391     to always fail with ENOSYS.  Some functions are actually named
12392     something starting with __ and the normal name is an alias.  */
12393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12394 choke me
12395 #else
12396 f = $ac_func;
12397 #endif
12398
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405   (eval $ac_link) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -s conftest$ac_exeext'
12410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411   (eval $ac_try) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; }; then
12415   eval "$as_ac_var=yes"
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 eval "$as_ac_var=no"
12420 fi
12421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12422 fi
12423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12425 if test `eval echo '${'$as_ac_var'}'` = yes; then
12426   cat >>confdefs.h <<_ACEOF
12427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12428 _ACEOF
12429  break
12430 fi
12431 done
12432
12433
12434
12435 for ac_func in strtoull strtouq
12436 do
12437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12438 echo "$as_me:$LINENO: checking for $ac_func" >&5
12439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12440 if eval "test \"\${$as_ac_var+set}\" = set"; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443   cat >conftest.$ac_ext <<_ACEOF
12444 #line $LINENO "configure"
12445 #include "confdefs.h"
12446 /* System header to define __stub macros and hopefully few prototypes,
12447     which can conflict with char $ac_func (); below.  */
12448 #include <assert.h>
12449 /* Override any gcc2 internal prototype to avoid an error.  */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 /* We use char because int might match the return type of a gcc2
12454    builtin and then its argument prototype would still apply.  */
12455 char $ac_func ();
12456 char (*f) ();
12457
12458 #ifdef F77_DUMMY_MAIN
12459 #  ifdef __cplusplus
12460      extern "C"
12461 #  endif
12462    int F77_DUMMY_MAIN() { return 1; }
12463 #endif
12464 int
12465 main ()
12466 {
12467 /* The GNU C library defines this for functions which it implements
12468     to always fail with ENOSYS.  Some functions are actually named
12469     something starting with __ and the normal name is an alias.  */
12470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12471 choke me
12472 #else
12473 f = $ac_func;
12474 #endif
12475
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } &&
12486          { ac_try='test -s conftest$ac_exeext'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   eval "$as_ac_var=yes"
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 eval "$as_ac_var=no"
12497 fi
12498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12499 fi
12500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12502 if test `eval echo '${'$as_ac_var'}'` = yes; then
12503   cat >>confdefs.h <<_ACEOF
12504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12505 _ACEOF
12506  break
12507 fi
12508 done
12509
12510
12511 # Check for one of atexit() or on_exit()
12512
12513 for ac_func in atexit
12514 do
12515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12516 echo "$as_me:$LINENO: checking for $ac_func" >&5
12517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12518 if eval "test \"\${$as_ac_var+set}\" = set"; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   cat >conftest.$ac_ext <<_ACEOF
12522 #line $LINENO "configure"
12523 #include "confdefs.h"
12524 /* System header to define __stub macros and hopefully few prototypes,
12525     which can conflict with char $ac_func (); below.  */
12526 #include <assert.h>
12527 /* Override any gcc2 internal prototype to avoid an error.  */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 /* We use char because int might match the return type of a gcc2
12532    builtin and then its argument prototype would still apply.  */
12533 char $ac_func ();
12534 char (*f) ();
12535
12536 #ifdef F77_DUMMY_MAIN
12537 #  ifdef __cplusplus
12538      extern "C"
12539 #  endif
12540    int F77_DUMMY_MAIN() { return 1; }
12541 #endif
12542 int
12543 main ()
12544 {
12545 /* The GNU C library defines this for functions which it implements
12546     to always fail with ENOSYS.  Some functions are actually named
12547     something starting with __ and the normal name is an alias.  */
12548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12549 choke me
12550 #else
12551 f = $ac_func;
12552 #endif
12553
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560   (eval $ac_link) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -s conftest$ac_exeext'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; }; then
12570   eval "$as_ac_var=yes"
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12574 eval "$as_ac_var=no"
12575 fi
12576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581   cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 _ACEOF
12584
12585 else
12586
12587 for ac_func in on_exit
12588 do
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_var+set}\" = set"; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 #include "confdefs.h"
12598 /* System header to define __stub macros and hopefully few prototypes,
12599     which can conflict with char $ac_func (); below.  */
12600 #include <assert.h>
12601 /* Override any gcc2 internal prototype to avoid an error.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 /* We use char because int might match the return type of a gcc2
12606    builtin and then its argument prototype would still apply.  */
12607 char $ac_func ();
12608 char (*f) ();
12609
12610 #ifdef F77_DUMMY_MAIN
12611 #  ifdef __cplusplus
12612      extern "C"
12613 #  endif
12614    int F77_DUMMY_MAIN() { return 1; }
12615 #endif
12616 int
12617 main ()
12618 {
12619 /* The GNU C library defines this for functions which it implements
12620     to always fail with ENOSYS.  Some functions are actually named
12621     something starting with __ and the normal name is an alias.  */
12622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12623 choke me
12624 #else
12625 f = $ac_func;
12626 #endif
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634   (eval $ac_link) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -s conftest$ac_exeext'
12639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640   (eval $ac_try) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644   eval "$as_ac_var=yes"
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 eval "$as_ac_var=no"
12649 fi
12650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12651 fi
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12658
12659 else
12660   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12661 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12662    { (exit 1); exit 1; }; }
12663 fi
12664 done
12665
12666 fi
12667 done
12668
12669
12670 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12671 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12672 if test "${ac_cv_sys_largefile_source+set}" = set; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675   while :; do
12676   ac_cv_sys_largefile_source=no
12677   cat >conftest.$ac_ext <<_ACEOF
12678 #line $LINENO "configure"
12679 #include "confdefs.h"
12680 #include <stdio.h>
12681 #ifdef F77_DUMMY_MAIN
12682 #  ifdef __cplusplus
12683      extern "C"
12684 #  endif
12685    int F77_DUMMY_MAIN() { return 1; }
12686 #endif
12687 int
12688 main ()
12689 {
12690 return !fseeko;
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697   (eval $ac_compile) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -s conftest.$ac_objext'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; }; then
12707   break
12708 else
12709   echo "$as_me: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 fi
12712 rm -f conftest.$ac_objext conftest.$ac_ext
12713   cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 #define _LARGEFILE_SOURCE 1
12717 #include <stdio.h>
12718 #ifdef F77_DUMMY_MAIN
12719 #  ifdef __cplusplus
12720      extern "C"
12721 #  endif
12722    int F77_DUMMY_MAIN() { return 1; }
12723 #endif
12724 int
12725 main ()
12726 {
12727 return !fseeko;
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734   (eval $ac_compile) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } &&
12738          { ac_try='test -s conftest.$ac_objext'
12739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740   (eval $ac_try) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; }; then
12744   ac_cv_sys_largefile_source=1; break
12745 else
12746   echo "$as_me: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 fi
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12750   break
12751 done
12752 fi
12753 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12754 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12755 if test "$ac_cv_sys_largefile_source" != no; then
12756
12757 cat >>confdefs.h <<_ACEOF
12758 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12759 _ACEOF
12760
12761 fi
12762 rm -f conftest*
12763
12764 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12765 # in glibc 2.1.3, but that breaks too many other things.
12766 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12767 echo "$as_me:$LINENO: checking for fseeko" >&5
12768 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12769 if test "${ac_cv_func_fseeko+set}" = set; then
12770   echo $ECHO_N "(cached) $ECHO_C" >&6
12771 else
12772   cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12774 #include "confdefs.h"
12775 #include <stdio.h>
12776 #ifdef F77_DUMMY_MAIN
12777 #  ifdef __cplusplus
12778      extern "C"
12779 #  endif
12780    int F77_DUMMY_MAIN() { return 1; }
12781 #endif
12782 int
12783 main ()
12784 {
12785 return fseeko && fseeko (stdin, 0, 0);
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } &&
12796          { ac_try='test -s conftest$ac_exeext'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802   ac_cv_func_fseeko=yes
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12806 ac_cv_func_fseeko=no
12807 fi
12808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12809 fi
12810 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12811 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12812 if test $ac_cv_func_fseeko = yes; then
12813
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_FSEEKO 1
12816 _ACEOF
12817
12818 fi
12819
12820
12821
12822 # This test makes sure that run tests work at all.  Sometimes a shared
12823 # library is found by the linker, but the runtime linker can't find it.
12824 # This check should come after all modifications of compiler or linker
12825 # variables, and before any other run tests.
12826 echo "$as_me:$LINENO: checking test program" >&5
12827 echo $ECHO_N "checking test program... $ECHO_C" >&6
12828 if test "$cross_compiling" = yes; then
12829   echo "$as_me:$LINENO: result: cross-compiling" >&5
12830 echo "${ECHO_T}cross-compiling" >&6
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12834 #include "confdefs.h"
12835 int main() { return 0; }
12836 _ACEOF
12837 rm -f conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   echo "$as_me:$LINENO: result: ok" >&5
12849 echo "${ECHO_T}ok" >&6
12850 else
12851   echo "$as_me: program exited with status $ac_status" >&5
12852 echo "$as_me: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 ( exit $ac_status )
12855 echo "$as_me:$LINENO: result: failed" >&5
12856 echo "${ECHO_T}failed" >&6
12857 { { echo "$as_me:$LINENO: error:
12858 *** Could not execute a simple test program.  This may be a problem
12859 *** related to locating shared libraries.  Check the file 'config.log'
12860 *** for the exact reason." >&5
12861 echo "$as_me: error:
12862 *** Could not execute a simple test program.  This may be a problem
12863 *** related to locating shared libraries.  Check the file 'config.log'
12864 *** for the exact reason." >&2;}
12865    { (exit 1); exit 1; }; }
12866 fi
12867 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12868 fi
12869
12870
12871
12872 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12873 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12874 if test "${pgac_cv_type_long_int_64+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   if test "$cross_compiling" = yes; then
12878   # If cross-compiling, check the size reported by the compiler and
12879 # trust that the arithmetic works.
12880 cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12882 #include "confdefs.h"
12883
12884 #ifdef F77_DUMMY_MAIN
12885 #  ifdef __cplusplus
12886      extern "C"
12887 #  endif
12888    int F77_DUMMY_MAIN() { return 1; }
12889 #endif
12890 int
12891 main ()
12892 {
12893 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12894 test_array [0] = 0
12895
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902   (eval $ac_compile) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } &&
12906          { ac_try='test -s conftest.$ac_objext'
12907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908   (eval $ac_try) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; }; then
12912   pgac_cv_type_long_int_64=yes
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 pgac_cv_type_long_int_64=no
12917 fi
12918 rm -f conftest.$ac_objext conftest.$ac_ext
12919 else
12920   cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923 typedef long int int64;
12924
12925 /*
12926  * These are globals to discourage the compiler from folding all the
12927  * arithmetic tests down to compile-time constants.
12928  */
12929 int64 a = 20000001;
12930 int64 b = 40000005;
12931
12932 int does_int64_work()
12933 {
12934   int64 c,d;
12935
12936   if (sizeof(int64) != 8)
12937     return 0;                   /* definitely not the right size */
12938
12939   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12940   c = a * b;
12941   d = (c + b) / b;
12942   if (d != a+1)
12943     return 0;
12944   return 1;
12945 }
12946 main() {
12947   exit(! does_int64_work());
12948 }
12949 _ACEOF
12950 rm -f conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952   (eval $ac_link) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957   (eval $ac_try) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; }; then
12961   pgac_cv_type_long_int_64=yes
12962 else
12963   echo "$as_me: program exited with status $ac_status" >&5
12964 echo "$as_me: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12966 ( exit $ac_status )
12967 pgac_cv_type_long_int_64=no
12968 fi
12969 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12970 fi
12971 fi
12972 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12973 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12974
12975 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12976 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12977
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_LONG_INT_64
12980 _ACEOF
12981
12982 fi
12983
12984
12985 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12986   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12987 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12988 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12989   echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991   if test "$cross_compiling" = yes; then
12992   # If cross-compiling, check the size reported by the compiler and
12993 # trust that the arithmetic works.
12994 cat >conftest.$ac_ext <<_ACEOF
12995 #line $LINENO "configure"
12996 #include "confdefs.h"
12997
12998 #ifdef F77_DUMMY_MAIN
12999 #  ifdef __cplusplus
13000      extern "C"
13001 #  endif
13002    int F77_DUMMY_MAIN() { return 1; }
13003 #endif
13004 int
13005 main ()
13006 {
13007 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13008 test_array [0] = 0
13009
13010   ;
13011   return 0;
13012 }
13013 _ACEOF
13014 rm -f conftest.$ac_objext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13016   (eval $ac_compile) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } &&
13020          { ac_try='test -s conftest.$ac_objext'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026   pgac_cv_type_long_long_int_64=yes
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 pgac_cv_type_long_long_int_64=no
13031 fi
13032 rm -f conftest.$ac_objext conftest.$ac_ext
13033 else
13034   cat >conftest.$ac_ext <<_ACEOF
13035 #line $LINENO "configure"
13036 #include "confdefs.h"
13037 typedef long long int int64;
13038
13039 /*
13040  * These are globals to discourage the compiler from folding all the
13041  * arithmetic tests down to compile-time constants.
13042  */
13043 int64 a = 20000001;
13044 int64 b = 40000005;
13045
13046 int does_int64_work()
13047 {
13048   int64 c,d;
13049
13050   if (sizeof(int64) != 8)
13051     return 0;                   /* definitely not the right size */
13052
13053   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13054   c = a * b;
13055   d = (c + b) / b;
13056   if (d != a+1)
13057     return 0;
13058   return 1;
13059 }
13060 main() {
13061   exit(! does_int64_work());
13062 }
13063 _ACEOF
13064 rm -f conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066   (eval $ac_link) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071   (eval $ac_try) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   pgac_cv_type_long_long_int_64=yes
13076 else
13077   echo "$as_me: program exited with status $ac_status" >&5
13078 echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 ( exit $ac_status )
13081 pgac_cv_type_long_long_int_64=no
13082 fi
13083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13084 fi
13085 fi
13086 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13087 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13088
13089 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13090 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13091
13092 cat >>confdefs.h <<\_ACEOF
13093 #define HAVE_LONG_LONG_INT_64
13094 _ACEOF
13095
13096 fi
13097
13098 fi
13099
13100
13101
13102 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13103   cat >conftest.$ac_ext <<_ACEOF
13104 #line $LINENO "configure"
13105 #include "confdefs.h"
13106
13107 #define INT64CONST(x)  x##LL
13108 long long int foo = INT64CONST(0x1234567890123456);
13109
13110 #ifdef F77_DUMMY_MAIN
13111 #  ifdef __cplusplus
13112      extern "C"
13113 #  endif
13114    int F77_DUMMY_MAIN() { return 1; }
13115 #endif
13116 int
13117 main ()
13118 {
13119
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126   (eval $ac_compile) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } &&
13130          { ac_try='test -s conftest.$ac_objext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_LL_CONSTANTS 1
13139 _ACEOF
13140
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 cat conftest.$ac_ext >&5
13144 fi
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13146 fi
13147
13148
13149 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13150 # we found we need to use "long long int", better check.  We cope with
13151 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13152 # neither works, fall back to our own snprintf emulation (which we
13153 # know uses %lld).
13154
13155 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13156   if test $pgac_need_repl_snprintf = no; then
13157     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13158 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13159 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   for pgac_format in '%lld' '%qd' '%I64d'; do
13163 if test "$cross_compiling" = yes; then
13164   pgac_cv_snprintf_long_long_int_format=cross; break
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13169 #include <stdio.h>
13170 typedef long long int int64;
13171 #define INT64_FORMAT "$pgac_format"
13172
13173 int64 a = 20000001;
13174 int64 b = 40000005;
13175
13176 int does_int64_snprintf_work()
13177 {
13178   int64 c;
13179   char buf[100];
13180
13181   if (sizeof(int64) != 8)
13182     return 0;                   /* doesn't look like the right size */
13183
13184   c = a * b;
13185   snprintf(buf, 100, INT64_FORMAT, c);
13186   if (strcmp(buf, "800000140000005") != 0)
13187     return 0;                   /* either multiply or snprintf is busted */
13188   return 1;
13189 }
13190 main() {
13191   exit(! does_int64_snprintf_work());
13192 }
13193 _ACEOF
13194 rm -f conftest$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196   (eval $ac_link) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201   (eval $ac_try) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; }; then
13205   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13206 else
13207   echo "$as_me: program exited with status $ac_status" >&5
13208 echo "$as_me: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13210 fi
13211 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13212 fi
13213 done
13214 fi
13215
13216 LONG_LONG_INT_FORMAT=''
13217
13218 case $pgac_cv_snprintf_long_long_int_format in
13219   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13220 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13221   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13222 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13223          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13224   *)     echo "$as_me:$LINENO: result: none" >&5
13225 echo "${ECHO_T}none" >&6;;
13226 esac
13227     if test "$LONG_LONG_INT_FORMAT" = ""; then
13228       # Force usage of our own snprintf, since system snprintf is broken
13229       pgac_need_repl_snprintf=yes
13230       LONG_LONG_INT_FORMAT='%lld'
13231     fi
13232   else
13233     # Here if we previously decided we needed to use our own snprintf
13234     LONG_LONG_INT_FORMAT='%lld'
13235   fi
13236   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13237 else
13238   # Here if we are not using 'long long int' at all
13239   INT64_FORMAT='"%ld"'
13240 fi
13241
13242
13243 cat >>confdefs.h <<_ACEOF
13244 #define INT64_FORMAT $INT64_FORMAT
13245 _ACEOF
13246
13247
13248 if test $pgac_need_repl_snprintf = yes; then
13249   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13250 fi
13251
13252 # Need a #define for the size of Datum (unsigned long)
13253 echo "$as_me:$LINENO: checking for unsigned long" >&5
13254 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13255 if test "${ac_cv_type_unsigned_long+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258   cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261 $ac_includes_default
13262 #ifdef F77_DUMMY_MAIN
13263 #  ifdef __cplusplus
13264      extern "C"
13265 #  endif
13266    int F77_DUMMY_MAIN() { return 1; }
13267 #endif
13268 int
13269 main ()
13270 {
13271 if ((unsigned long *) 0)
13272   return 0;
13273 if (sizeof (unsigned long))
13274   return 0;
13275   ;
13276   return 0;
13277 }
13278 _ACEOF
13279 rm -f conftest.$ac_objext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281   (eval $ac_compile) 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } &&
13285          { ac_try='test -s conftest.$ac_objext'
13286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287   (eval $ac_try) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; }; then
13291   ac_cv_type_unsigned_long=yes
13292 else
13293   echo "$as_me: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
13295 ac_cv_type_unsigned_long=no
13296 fi
13297 rm -f conftest.$ac_objext conftest.$ac_ext
13298 fi
13299 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13300 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13301
13302 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13303 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13304 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   if test "$ac_cv_type_unsigned_long" = yes; then
13308   # The cast to unsigned long works around a bug in the HP C Compiler
13309   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13310   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13311   # This bug is HP SR number 8606223364.
13312   if test "$cross_compiling" = yes; then
13313   # Depending upon the size, compute the lo and hi bounds.
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13316 #include "confdefs.h"
13317 $ac_includes_default
13318 #ifdef F77_DUMMY_MAIN
13319 #  ifdef __cplusplus
13320      extern "C"
13321 #  endif
13322    int F77_DUMMY_MAIN() { return 1; }
13323 #endif
13324 int
13325 main ()
13326 {
13327 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13328 test_array [0] = 0
13329
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336   (eval $ac_compile) 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } &&
13340          { ac_try='test -s conftest.$ac_objext'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   ac_lo=0 ac_mid=0
13347   while :; do
13348     cat >conftest.$ac_ext <<_ACEOF
13349 #line $LINENO "configure"
13350 #include "confdefs.h"
13351 $ac_includes_default
13352 #ifdef F77_DUMMY_MAIN
13353 #  ifdef __cplusplus
13354      extern "C"
13355 #  endif
13356    int F77_DUMMY_MAIN() { return 1; }
13357 #endif
13358 int
13359 main ()
13360 {
13361 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13362 test_array [0] = 0
13363
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370   (eval $ac_compile) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } &&
13374          { ac_try='test -s conftest.$ac_objext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ac_hi=$ac_mid; break
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ac_lo=`expr $ac_mid + 1`
13385                     if test $ac_lo -le $ac_mid; then
13386                       ac_lo= ac_hi=
13387                       break
13388                     fi
13389                     ac_mid=`expr 2 '*' $ac_mid + 1`
13390 fi
13391 rm -f conftest.$ac_objext conftest.$ac_ext
13392   done
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 cat >conftest.$ac_ext <<_ACEOF
13397 #line $LINENO "configure"
13398 #include "confdefs.h"
13399 $ac_includes_default
13400 #ifdef F77_DUMMY_MAIN
13401 #  ifdef __cplusplus
13402      extern "C"
13403 #  endif
13404    int F77_DUMMY_MAIN() { return 1; }
13405 #endif
13406 int
13407 main ()
13408 {
13409 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13410 test_array [0] = 0
13411
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418   (eval $ac_compile) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_hi=-1 ac_mid=-1
13429   while :; do
13430     cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 $ac_includes_default
13434 #ifdef F77_DUMMY_MAIN
13435 #  ifdef __cplusplus
13436      extern "C"
13437 #  endif
13438    int F77_DUMMY_MAIN() { return 1; }
13439 #endif
13440 int
13441 main ()
13442 {
13443 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13444 test_array [0] = 0
13445
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452   (eval $ac_compile) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -s conftest.$ac_objext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_lo=$ac_mid; break
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13466 ac_hi=`expr '(' $ac_mid ')' - 1`
13467                        if test $ac_mid -le $ac_hi; then
13468                          ac_lo= ac_hi=
13469                          break
13470                        fi
13471                        ac_mid=`expr 2 '*' $ac_mid`
13472 fi
13473 rm -f conftest.$ac_objext conftest.$ac_ext
13474   done
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 ac_lo= ac_hi=
13479 fi
13480 rm -f conftest.$ac_objext conftest.$ac_ext
13481 fi
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13483 # Binary search between lo and hi bounds.
13484 while test "x$ac_lo" != "x$ac_hi"; do
13485   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13486   cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 $ac_includes_default
13490 #ifdef F77_DUMMY_MAIN
13491 #  ifdef __cplusplus
13492      extern "C"
13493 #  endif
13494    int F77_DUMMY_MAIN() { return 1; }
13495 #endif
13496 int
13497 main ()
13498 {
13499 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13500 test_array [0] = 0
13501
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_hi=$ac_mid
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 ac_lo=`expr '(' $ac_mid ')' + 1`
13523 fi
13524 rm -f conftest.$ac_objext conftest.$ac_ext
13525 done
13526 case $ac_lo in
13527 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13529 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13530    { (exit 1); exit 1; }; } ;;
13531 esac
13532 else
13533   if test "$cross_compiling" = yes; then
13534   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13535 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13536    { (exit 1); exit 1; }; }
13537 else
13538   cat >conftest.$ac_ext <<_ACEOF
13539 #line $LINENO "configure"
13540 #include "confdefs.h"
13541 $ac_includes_default
13542 long longval () { return (long) (sizeof (unsigned long)); }
13543 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13544 #include <stdio.h>
13545 #include <stdlib.h>
13546 #ifdef F77_DUMMY_MAIN
13547 #  ifdef __cplusplus
13548      extern "C"
13549 #  endif
13550    int F77_DUMMY_MAIN() { return 1; }
13551 #endif
13552 int
13553 main ()
13554 {
13555
13556   FILE *f = fopen ("conftest.val", "w");
13557   if (! f)
13558     exit (1);
13559   if (((long) (sizeof (unsigned long))) < 0)
13560     {
13561       long i = longval ();
13562       if (i != ((long) (sizeof (unsigned long))))
13563         exit (1);
13564       fprintf (f, "%ld\n", i);
13565     }
13566   else
13567     {
13568       unsigned long i = ulongval ();
13569       if (i != ((long) (sizeof (unsigned long))))
13570         exit (1);
13571       fprintf (f, "%lu\n", i);
13572     }
13573   exit (ferror (f) || fclose (f) != 0);
13574
13575   ;
13576   return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest$ac_exeext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13581   (eval $ac_link) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586   (eval $ac_try) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; }; then
13590   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13591 else
13592   echo "$as_me: program exited with status $ac_status" >&5
13593 echo "$as_me: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 ( exit $ac_status )
13596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13597 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13598    { (exit 1); exit 1; }; }
13599 fi
13600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 fi
13603 rm -f conftest.val
13604 else
13605   ac_cv_sizeof_unsigned_long=0
13606 fi
13607 fi
13608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13609 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13610 cat >>confdefs.h <<_ACEOF
13611 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13612 _ACEOF
13613
13614
13615
13616 # Determine memory alignment requirements for the basic C data types.
13617
13618 echo "$as_me:$LINENO: checking for short" >&5
13619 echo $ECHO_N "checking for short... $ECHO_C" >&6
13620 if test "${ac_cv_type_short+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   cat >conftest.$ac_ext <<_ACEOF
13624 #line $LINENO "configure"
13625 #include "confdefs.h"
13626 $ac_includes_default
13627 #ifdef F77_DUMMY_MAIN
13628 #  ifdef __cplusplus
13629      extern "C"
13630 #  endif
13631    int F77_DUMMY_MAIN() { return 1; }
13632 #endif
13633 int
13634 main ()
13635 {
13636 if ((short *) 0)
13637   return 0;
13638 if (sizeof (short))
13639   return 0;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646   (eval $ac_compile) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); } &&
13650          { ac_try='test -s conftest.$ac_objext'
13651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652   (eval $ac_try) 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; }; then
13656   ac_cv_type_short=yes
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_type_short=no
13661 fi
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13663 fi
13664 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13665 echo "${ECHO_T}$ac_cv_type_short" >&6
13666
13667 echo "$as_me:$LINENO: checking alignment of short" >&5
13668 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13669 if test "${pgac_cv_alignof_short+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   if test "$ac_cv_type_short" = yes; then
13673   if test "$cross_compiling" = yes; then
13674   # Depending upon the size, compute the lo and hi bounds.
13675 cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 $ac_includes_default
13679 struct { char filler; short field; } pgac_struct;
13680 #ifdef F77_DUMMY_MAIN
13681 #  ifdef __cplusplus
13682      extern "C"
13683 #  endif
13684    int F77_DUMMY_MAIN() { return 1; }
13685 #endif
13686 int
13687 main ()
13688 {
13689 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13690 test_array [0] = 0
13691
13692   ;
13693   return 0;
13694 }
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13698   (eval $ac_compile) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); } &&
13702          { ac_try='test -s conftest.$ac_objext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   ac_lo=0 ac_mid=0
13709   while :; do
13710     cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 #include "confdefs.h"
13713 $ac_includes_default
13714 struct { char filler; short field; } pgac_struct;
13715 #ifdef F77_DUMMY_MAIN
13716 #  ifdef __cplusplus
13717      extern "C"
13718 #  endif
13719    int F77_DUMMY_MAIN() { return 1; }
13720 #endif
13721 int
13722 main ()
13723 {
13724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13725 test_array [0] = 0
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_hi=$ac_mid; break
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ac_lo=`expr $ac_mid + 1`
13748                     if test $ac_lo -le $ac_mid; then
13749                       ac_lo= ac_hi=
13750                       break
13751                     fi
13752                     ac_mid=`expr 2 '*' $ac_mid + 1`
13753 fi
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13755   done
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13761 #include "confdefs.h"
13762 $ac_includes_default
13763 struct { char filler; short field; } pgac_struct;
13764 #ifdef F77_DUMMY_MAIN
13765 #  ifdef __cplusplus
13766      extern "C"
13767 #  endif
13768    int F77_DUMMY_MAIN() { return 1; }
13769 #endif
13770 int
13771 main ()
13772 {
13773 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13774 test_array [0] = 0
13775
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782   (eval $ac_compile) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -s conftest.$ac_objext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   ac_hi=-1 ac_mid=-1
13793   while :; do
13794     cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 #include "confdefs.h"
13797 $ac_includes_default
13798 struct { char filler; short field; } pgac_struct;
13799 #ifdef F77_DUMMY_MAIN
13800 #  ifdef __cplusplus
13801      extern "C"
13802 #  endif
13803    int F77_DUMMY_MAIN() { return 1; }
13804 #endif
13805 int
13806 main ()
13807 {
13808 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13809 test_array [0] = 0
13810
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_lo=$ac_mid; break
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 ac_hi=`expr '(' $ac_mid ')' - 1`
13832                        if test $ac_mid -le $ac_hi; then
13833                          ac_lo= ac_hi=
13834                          break
13835                        fi
13836                        ac_mid=`expr 2 '*' $ac_mid`
13837 fi
13838 rm -f conftest.$ac_objext conftest.$ac_ext
13839   done
13840 else
13841   echo "$as_me: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13843 ac_lo= ac_hi=
13844 fi
13845 rm -f conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 # Binary search between lo and hi bounds.
13849 while test "x$ac_lo" != "x$ac_hi"; do
13850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13851   cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 #include "confdefs.h"
13854 $ac_includes_default
13855 struct { char filler; short field; } pgac_struct;
13856 #ifdef F77_DUMMY_MAIN
13857 #  ifdef __cplusplus
13858      extern "C"
13859 #  endif
13860    int F77_DUMMY_MAIN() { return 1; }
13861 #endif
13862 int
13863 main ()
13864 {
13865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13866 test_array [0] = 0
13867
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874   (eval $ac_compile) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } &&
13878          { ac_try='test -s conftest.$ac_objext'
13879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880   (eval $ac_try) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; }; then
13884   ac_hi=$ac_mid
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ac_lo=`expr '(' $ac_mid ')' + 1`
13889 fi
13890 rm -f conftest.$ac_objext conftest.$ac_ext
13891 done
13892 case $ac_lo in
13893 ?*) pgac_cv_alignof_short=$ac_lo;;
13894 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13895 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13896    { (exit 1); exit 1; }; } ;;
13897 esac
13898 else
13899   if test "$cross_compiling" = yes; then
13900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13901 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13902    { (exit 1); exit 1; }; }
13903 else
13904   cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 #include "confdefs.h"
13907 $ac_includes_default
13908 struct { char filler; short field; } pgac_struct;
13909 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13910 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13911 #include <stdio.h>
13912 #include <stdlib.h>
13913 #ifdef F77_DUMMY_MAIN
13914 #  ifdef __cplusplus
13915      extern "C"
13916 #  endif
13917    int F77_DUMMY_MAIN() { return 1; }
13918 #endif
13919 int
13920 main ()
13921 {
13922
13923   FILE *f = fopen ("conftest.val", "w");
13924   if (! f)
13925     exit (1);
13926   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13927     {
13928       long i = longval ();
13929       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13930         exit (1);
13931       fprintf (f, "%ld\n", i);
13932     }
13933   else
13934     {
13935       unsigned long i = ulongval ();
13936       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13937         exit (1);
13938       fprintf (f, "%lu\n", i);
13939     }
13940   exit (ferror (f) || fclose (f) != 0);
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest$ac_exeext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13948   (eval $ac_link) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   pgac_cv_alignof_short=`cat conftest.val`
13958 else
13959   echo "$as_me: program exited with status $ac_status" >&5
13960 echo "$as_me: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 ( exit $ac_status )
13963 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13964 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13965    { (exit 1); exit 1; }; }
13966 fi
13967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13968 fi
13969 fi
13970 rm -f conftest.val
13971 else
13972   pgac_cv_alignof_short=0
13973 fi
13974 fi
13975 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13976 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13977 cat >>confdefs.h <<_ACEOF
13978 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13979 _ACEOF
13980
13981
13982 echo "$as_me:$LINENO: checking for int" >&5
13983 echo $ECHO_N "checking for int... $ECHO_C" >&6
13984 if test "${ac_cv_type_int+set}" = set; then
13985   echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987   cat >conftest.$ac_ext <<_ACEOF
13988 #line $LINENO "configure"
13989 #include "confdefs.h"
13990 $ac_includes_default
13991 #ifdef F77_DUMMY_MAIN
13992 #  ifdef __cplusplus
13993      extern "C"
13994 #  endif
13995    int F77_DUMMY_MAIN() { return 1; }
13996 #endif
13997 int
13998 main ()
13999 {
14000 if ((int *) 0)
14001   return 0;
14002 if (sizeof (int))
14003   return 0;
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010   (eval $ac_compile) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); } &&
14014          { ac_try='test -s conftest.$ac_objext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020   ac_cv_type_int=yes
14021 else
14022   echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14024 ac_cv_type_int=no
14025 fi
14026 rm -f conftest.$ac_objext conftest.$ac_ext
14027 fi
14028 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14029 echo "${ECHO_T}$ac_cv_type_int" >&6
14030
14031 echo "$as_me:$LINENO: checking alignment of int" >&5
14032 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14033 if test "${pgac_cv_alignof_int+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   if test "$ac_cv_type_int" = yes; then
14037   if test "$cross_compiling" = yes; then
14038   # Depending upon the size, compute the lo and hi bounds.
14039 cat >conftest.$ac_ext <<_ACEOF
14040 #line $LINENO "configure"
14041 #include "confdefs.h"
14042 $ac_includes_default
14043 struct { char filler; int field; } pgac_struct;
14044 #ifdef F77_DUMMY_MAIN
14045 #  ifdef __cplusplus
14046      extern "C"
14047 #  endif
14048    int F77_DUMMY_MAIN() { return 1; }
14049 #endif
14050 int
14051 main ()
14052 {
14053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14054 test_array [0] = 0
14055
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062   (eval $ac_compile) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -s conftest.$ac_objext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   ac_lo=0 ac_mid=0
14073   while :; do
14074     cat >conftest.$ac_ext <<_ACEOF
14075 #line $LINENO "configure"
14076 #include "confdefs.h"
14077 $ac_includes_default
14078 struct { char filler; int field; } pgac_struct;
14079 #ifdef F77_DUMMY_MAIN
14080 #  ifdef __cplusplus
14081      extern "C"
14082 #  endif
14083    int F77_DUMMY_MAIN() { return 1; }
14084 #endif
14085 int
14086 main ()
14087 {
14088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14089 test_array [0] = 0
14090
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097   (eval $ac_compile) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -s conftest.$ac_objext'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; }; then
14107   ac_hi=$ac_mid; break
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 ac_lo=`expr $ac_mid + 1`
14112                     if test $ac_lo -le $ac_mid; then
14113                       ac_lo= ac_hi=
14114                       break
14115                     fi
14116                     ac_mid=`expr 2 '*' $ac_mid + 1`
14117 fi
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14119   done
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 cat >conftest.$ac_ext <<_ACEOF
14124 #line $LINENO "configure"
14125 #include "confdefs.h"
14126 $ac_includes_default
14127 struct { char filler; int field; } pgac_struct;
14128 #ifdef F77_DUMMY_MAIN
14129 #  ifdef __cplusplus
14130      extern "C"
14131 #  endif
14132    int F77_DUMMY_MAIN() { return 1; }
14133 #endif
14134 int
14135 main ()
14136 {
14137 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14138 test_array [0] = 0
14139
14140   ;
14141   return 0;
14142 }
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146   (eval $ac_compile) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_hi=-1 ac_mid=-1
14157   while :; do
14158     cat >conftest.$ac_ext <<_ACEOF
14159 #line $LINENO "configure"
14160 #include "confdefs.h"
14161 $ac_includes_default
14162 struct { char filler; int field; } pgac_struct;
14163 #ifdef F77_DUMMY_MAIN
14164 #  ifdef __cplusplus
14165      extern "C"
14166 #  endif
14167    int F77_DUMMY_MAIN() { return 1; }
14168 #endif
14169 int
14170 main ()
14171 {
14172 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14173 test_array [0] = 0
14174
14175   ;
14176   return 0;
14177 }
14178 _ACEOF
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181   (eval $ac_compile) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   ac_lo=$ac_mid; break
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14195 ac_hi=`expr '(' $ac_mid ')' - 1`
14196                        if test $ac_mid -le $ac_hi; then
14197                          ac_lo= ac_hi=
14198                          break
14199                        fi
14200                        ac_mid=`expr 2 '*' $ac_mid`
14201 fi
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14203   done
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 ac_lo= ac_hi=
14208 fi
14209 rm -f conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212 # Binary search between lo and hi bounds.
14213 while test "x$ac_lo" != "x$ac_hi"; do
14214   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14215   cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14217 #include "confdefs.h"
14218 $ac_includes_default
14219 struct { char filler; int field; } pgac_struct;
14220 #ifdef F77_DUMMY_MAIN
14221 #  ifdef __cplusplus
14222      extern "C"
14223 #  endif
14224    int F77_DUMMY_MAIN() { return 1; }
14225 #endif
14226 int
14227 main ()
14228 {
14229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14230 test_array [0] = 0
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -s conftest.$ac_objext'
14243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244   (eval $ac_try) 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; }; then
14248   ac_hi=$ac_mid
14249 else
14250   echo "$as_me: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14252 ac_lo=`expr '(' $ac_mid ')' + 1`
14253 fi
14254 rm -f conftest.$ac_objext conftest.$ac_ext
14255 done
14256 case $ac_lo in
14257 ?*) pgac_cv_alignof_int=$ac_lo;;
14258 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14259 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14260    { (exit 1); exit 1; }; } ;;
14261 esac
14262 else
14263   if test "$cross_compiling" = yes; then
14264   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14265 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14266    { (exit 1); exit 1; }; }
14267 else
14268   cat >conftest.$ac_ext <<_ACEOF
14269 #line $LINENO "configure"
14270 #include "confdefs.h"
14271 $ac_includes_default
14272 struct { char filler; int field; } pgac_struct;
14273 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14274 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14275 #include <stdio.h>
14276 #include <stdlib.h>
14277 #ifdef F77_DUMMY_MAIN
14278 #  ifdef __cplusplus
14279      extern "C"
14280 #  endif
14281    int F77_DUMMY_MAIN() { return 1; }
14282 #endif
14283 int
14284 main ()
14285 {
14286
14287   FILE *f = fopen ("conftest.val", "w");
14288   if (! f)
14289     exit (1);
14290   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14291     {
14292       long i = longval ();
14293       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14294         exit (1);
14295       fprintf (f, "%ld\n", i);
14296     }
14297   else
14298     {
14299       unsigned long i = ulongval ();
14300       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14301         exit (1);
14302       fprintf (f, "%lu\n", i);
14303     }
14304   exit (ferror (f) || fclose (f) != 0);
14305
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312   (eval $ac_link) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   pgac_cv_alignof_int=`cat conftest.val`
14322 else
14323   echo "$as_me: program exited with status $ac_status" >&5
14324 echo "$as_me: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 ( exit $ac_status )
14327 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14328 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14329    { (exit 1); exit 1; }; }
14330 fi
14331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14332 fi
14333 fi
14334 rm -f conftest.val
14335 else
14336   pgac_cv_alignof_int=0
14337 fi
14338 fi
14339 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14340 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14341 cat >>confdefs.h <<_ACEOF
14342 #define ALIGNOF_INT $pgac_cv_alignof_int
14343 _ACEOF
14344
14345
14346 echo "$as_me:$LINENO: checking for long" >&5
14347 echo $ECHO_N "checking for long... $ECHO_C" >&6
14348 if test "${ac_cv_type_long+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14353 #include "confdefs.h"
14354 $ac_includes_default
14355 #ifdef F77_DUMMY_MAIN
14356 #  ifdef __cplusplus
14357      extern "C"
14358 #  endif
14359    int F77_DUMMY_MAIN() { return 1; }
14360 #endif
14361 int
14362 main ()
14363 {
14364 if ((long *) 0)
14365   return 0;
14366 if (sizeof (long))
14367   return 0;
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374   (eval $ac_compile) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -s conftest.$ac_objext'
14379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380   (eval $ac_try) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); }; }; then
14384   ac_cv_type_long=yes
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14388 ac_cv_type_long=no
14389 fi
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391 fi
14392 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14393 echo "${ECHO_T}$ac_cv_type_long" >&6
14394
14395 echo "$as_me:$LINENO: checking alignment of long" >&5
14396 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14397 if test "${pgac_cv_alignof_long+set}" = set; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400   if test "$ac_cv_type_long" = yes; then
14401   if test "$cross_compiling" = yes; then
14402   # Depending upon the size, compute the lo and hi bounds.
14403 cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 $ac_includes_default
14407 struct { char filler; long field; } pgac_struct;
14408 #ifdef F77_DUMMY_MAIN
14409 #  ifdef __cplusplus
14410      extern "C"
14411 #  endif
14412    int F77_DUMMY_MAIN() { return 1; }
14413 #endif
14414 int
14415 main ()
14416 {
14417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14418 test_array [0] = 0
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   ac_lo=0 ac_mid=0
14437   while :; do
14438     cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14440 #include "confdefs.h"
14441 $ac_includes_default
14442 struct { char filler; long field; } pgac_struct;
14443 #ifdef F77_DUMMY_MAIN
14444 #  ifdef __cplusplus
14445      extern "C"
14446 #  endif
14447    int F77_DUMMY_MAIN() { return 1; }
14448 #endif
14449 int
14450 main ()
14451 {
14452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14453 test_array [0] = 0
14454
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461   (eval $ac_compile) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } &&
14465          { ac_try='test -s conftest.$ac_objext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   ac_hi=$ac_mid; break
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 ac_lo=`expr $ac_mid + 1`
14476                     if test $ac_lo -le $ac_mid; then
14477                       ac_lo= ac_hi=
14478                       break
14479                     fi
14480                     ac_mid=`expr 2 '*' $ac_mid + 1`
14481 fi
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14483   done
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 cat >conftest.$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14489 #include "confdefs.h"
14490 $ac_includes_default
14491 struct { char filler; long field; } pgac_struct;
14492 #ifdef F77_DUMMY_MAIN
14493 #  ifdef __cplusplus
14494      extern "C"
14495 #  endif
14496    int F77_DUMMY_MAIN() { return 1; }
14497 #endif
14498 int
14499 main ()
14500 {
14501 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14502 test_array [0] = 0
14503
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510   (eval $ac_compile) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -s conftest.$ac_objext'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; }; then
14520   ac_hi=-1 ac_mid=-1
14521   while :; do
14522     cat >conftest.$ac_ext <<_ACEOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525 $ac_includes_default
14526 struct { char filler; long field; } pgac_struct;
14527 #ifdef F77_DUMMY_MAIN
14528 #  ifdef __cplusplus
14529      extern "C"
14530 #  endif
14531    int F77_DUMMY_MAIN() { return 1; }
14532 #endif
14533 int
14534 main ()
14535 {
14536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14537 test_array [0] = 0
14538
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   ac_lo=$ac_mid; break
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14559 ac_hi=`expr '(' $ac_mid ')' - 1`
14560                        if test $ac_mid -le $ac_hi; then
14561                          ac_lo= ac_hi=
14562                          break
14563                        fi
14564                        ac_mid=`expr 2 '*' $ac_mid`
14565 fi
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14567   done
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14571 ac_lo= ac_hi=
14572 fi
14573 rm -f conftest.$ac_objext conftest.$ac_ext
14574 fi
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576 # Binary search between lo and hi bounds.
14577 while test "x$ac_lo" != "x$ac_hi"; do
14578   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14579   cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 #include "confdefs.h"
14582 $ac_includes_default
14583 struct { char filler; long field; } pgac_struct;
14584 #ifdef F77_DUMMY_MAIN
14585 #  ifdef __cplusplus
14586      extern "C"
14587 #  endif
14588    int F77_DUMMY_MAIN() { return 1; }
14589 #endif
14590 int
14591 main ()
14592 {
14593 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14594 test_array [0] = 0
14595
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602   (eval $ac_compile) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   ac_hi=$ac_mid
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ac_lo=`expr '(' $ac_mid ')' + 1`
14617 fi
14618 rm -f conftest.$ac_objext conftest.$ac_ext
14619 done
14620 case $ac_lo in
14621 ?*) pgac_cv_alignof_long=$ac_lo;;
14622 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14623 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14624    { (exit 1); exit 1; }; } ;;
14625 esac
14626 else
14627   if test "$cross_compiling" = yes; then
14628   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14629 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14630    { (exit 1); exit 1; }; }
14631 else
14632   cat >conftest.$ac_ext <<_ACEOF
14633 #line $LINENO "configure"
14634 #include "confdefs.h"
14635 $ac_includes_default
14636 struct { char filler; long field; } pgac_struct;
14637 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14638 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14639 #include <stdio.h>
14640 #include <stdlib.h>
14641 #ifdef F77_DUMMY_MAIN
14642 #  ifdef __cplusplus
14643      extern "C"
14644 #  endif
14645    int F77_DUMMY_MAIN() { return 1; }
14646 #endif
14647 int
14648 main ()
14649 {
14650
14651   FILE *f = fopen ("conftest.val", "w");
14652   if (! f)
14653     exit (1);
14654   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14655     {
14656       long i = longval ();
14657       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14658         exit (1);
14659       fprintf (f, "%ld\n", i);
14660     }
14661   else
14662     {
14663       unsigned long i = ulongval ();
14664       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14665         exit (1);
14666       fprintf (f, "%lu\n", i);
14667     }
14668   exit (ferror (f) || fclose (f) != 0);
14669
14670   ;
14671   return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676   (eval $ac_link) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685   pgac_cv_alignof_long=`cat conftest.val`
14686 else
14687   echo "$as_me: program exited with status $ac_status" >&5
14688 echo "$as_me: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14692 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14693    { (exit 1); exit 1; }; }
14694 fi
14695 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14696 fi
14697 fi
14698 rm -f conftest.val
14699 else
14700   pgac_cv_alignof_long=0
14701 fi
14702 fi
14703 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14704 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14705 cat >>confdefs.h <<_ACEOF
14706 #define ALIGNOF_LONG $pgac_cv_alignof_long
14707 _ACEOF
14708
14709
14710 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14711   echo "$as_me:$LINENO: checking for long long int" >&5
14712 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14713 if test "${ac_cv_type_long_long_int+set}" = set; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 #include "confdefs.h"
14719 $ac_includes_default
14720 #ifdef F77_DUMMY_MAIN
14721 #  ifdef __cplusplus
14722      extern "C"
14723 #  endif
14724    int F77_DUMMY_MAIN() { return 1; }
14725 #endif
14726 int
14727 main ()
14728 {
14729 if ((long long int *) 0)
14730   return 0;
14731 if (sizeof (long long int))
14732   return 0;
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739   (eval $ac_compile) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -s conftest.$ac_objext'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749   ac_cv_type_long_long_int=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 ac_cv_type_long_long_int=no
14754 fi
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14756 fi
14757 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14758 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14759
14760 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14761 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14762 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14763   echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765   if test "$ac_cv_type_long_long_int" = yes; then
14766   if test "$cross_compiling" = yes; then
14767   # Depending upon the size, compute the lo and hi bounds.
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 $ac_includes_default
14772 struct { char filler; long long int field; } pgac_struct;
14773 #ifdef F77_DUMMY_MAIN
14774 #  ifdef __cplusplus
14775      extern "C"
14776 #  endif
14777    int F77_DUMMY_MAIN() { return 1; }
14778 #endif
14779 int
14780 main ()
14781 {
14782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14783 test_array [0] = 0
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791   (eval $ac_compile) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -s conftest.$ac_objext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ac_lo=0 ac_mid=0
14802   while :; do
14803     cat >conftest.$ac_ext <<_ACEOF
14804 #line $LINENO "configure"
14805 #include "confdefs.h"
14806 $ac_includes_default
14807 struct { char filler; long long int field; } pgac_struct;
14808 #ifdef F77_DUMMY_MAIN
14809 #  ifdef __cplusplus
14810      extern "C"
14811 #  endif
14812    int F77_DUMMY_MAIN() { return 1; }
14813 #endif
14814 int
14815 main ()
14816 {
14817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14818 test_array [0] = 0
14819
14820   ;
14821   return 0;
14822 }
14823 _ACEOF
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826   (eval $ac_compile) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } &&
14830          { ac_try='test -s conftest.$ac_objext'
14831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832   (eval $ac_try) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; }; then
14836   ac_hi=$ac_mid; break
14837 else
14838   echo "$as_me: failed program was:" >&5
14839 cat conftest.$ac_ext >&5
14840 ac_lo=`expr $ac_mid + 1`
14841                     if test $ac_lo -le $ac_mid; then
14842                       ac_lo= ac_hi=
14843                       break
14844                     fi
14845                     ac_mid=`expr 2 '*' $ac_mid + 1`
14846 fi
14847 rm -f conftest.$ac_objext conftest.$ac_ext
14848   done
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 #include "confdefs.h"
14855 $ac_includes_default
14856 struct { char filler; long long int field; } pgac_struct;
14857 #ifdef F77_DUMMY_MAIN
14858 #  ifdef __cplusplus
14859      extern "C"
14860 #  endif
14861    int F77_DUMMY_MAIN() { return 1; }
14862 #endif
14863 int
14864 main ()
14865 {
14866 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14867 test_array [0] = 0
14868
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875   (eval $ac_compile) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885   ac_hi=-1 ac_mid=-1
14886   while :; do
14887     cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 #include "confdefs.h"
14890 $ac_includes_default
14891 struct { char filler; long long int field; } pgac_struct;
14892 #ifdef F77_DUMMY_MAIN
14893 #  ifdef __cplusplus
14894      extern "C"
14895 #  endif
14896    int F77_DUMMY_MAIN() { return 1; }
14897 #endif
14898 int
14899 main ()
14900 {
14901 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14902 test_array [0] = 0
14903
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910   (eval $ac_compile) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } &&
14914          { ac_try='test -s conftest.$ac_objext'
14915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916   (eval $ac_try) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; }; then
14920   ac_lo=$ac_mid; break
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 ac_hi=`expr '(' $ac_mid ')' - 1`
14925                        if test $ac_mid -le $ac_hi; then
14926                          ac_lo= ac_hi=
14927                          break
14928                        fi
14929                        ac_mid=`expr 2 '*' $ac_mid`
14930 fi
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14932   done
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 ac_lo= ac_hi=
14937 fi
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14939 fi
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14941 # Binary search between lo and hi bounds.
14942 while test "x$ac_lo" != "x$ac_hi"; do
14943   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14944   cat >conftest.$ac_ext <<_ACEOF
14945 #line $LINENO "configure"
14946 #include "confdefs.h"
14947 $ac_includes_default
14948 struct { char filler; long long int field; } pgac_struct;
14949 #ifdef F77_DUMMY_MAIN
14950 #  ifdef __cplusplus
14951      extern "C"
14952 #  endif
14953    int F77_DUMMY_MAIN() { return 1; }
14954 #endif
14955 int
14956 main ()
14957 {
14958 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14959 test_array [0] = 0
14960
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967   (eval $ac_compile) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -s conftest.$ac_objext'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_hi=$ac_mid
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ac_lo=`expr '(' $ac_mid ')' + 1`
14982 fi
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14984 done
14985 case $ac_lo in
14986 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14987 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14988 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14989    { (exit 1); exit 1; }; } ;;
14990 esac
14991 else
14992   if test "$cross_compiling" = yes; then
14993   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14994 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14995    { (exit 1); exit 1; }; }
14996 else
14997   cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 $ac_includes_default
15001 struct { char filler; long long int field; } pgac_struct;
15002 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15003 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15004 #include <stdio.h>
15005 #include <stdlib.h>
15006 #ifdef F77_DUMMY_MAIN
15007 #  ifdef __cplusplus
15008      extern "C"
15009 #  endif
15010    int F77_DUMMY_MAIN() { return 1; }
15011 #endif
15012 int
15013 main ()
15014 {
15015
15016   FILE *f = fopen ("conftest.val", "w");
15017   if (! f)
15018     exit (1);
15019   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15020     {
15021       long i = longval ();
15022       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15023         exit (1);
15024       fprintf (f, "%ld\n", i);
15025     }
15026   else
15027     {
15028       unsigned long i = ulongval ();
15029       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15030         exit (1);
15031       fprintf (f, "%lu\n", i);
15032     }
15033   exit (ferror (f) || fclose (f) != 0);
15034
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041   (eval $ac_link) 2>&5
15042   ac_status=$?
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046   (eval $ac_try) 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); }; }; then
15050   pgac_cv_alignof_long_long_int=`cat conftest.val`
15051 else
15052   echo "$as_me: program exited with status $ac_status" >&5
15053 echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ( exit $ac_status )
15056 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15057 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15058    { (exit 1); exit 1; }; }
15059 fi
15060 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 fi
15063 rm -f conftest.val
15064 else
15065   pgac_cv_alignof_long_long_int=0
15066 fi
15067 fi
15068 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15069 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15070 cat >>confdefs.h <<_ACEOF
15071 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15072 _ACEOF
15073
15074
15075 fi
15076 echo "$as_me:$LINENO: checking for double" >&5
15077 echo $ECHO_N "checking for double... $ECHO_C" >&6
15078 if test "${ac_cv_type_double+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 $ac_includes_default
15085 #ifdef F77_DUMMY_MAIN
15086 #  ifdef __cplusplus
15087      extern "C"
15088 #  endif
15089    int F77_DUMMY_MAIN() { return 1; }
15090 #endif
15091 int
15092 main ()
15093 {
15094 if ((double *) 0)
15095   return 0;
15096 if (sizeof (double))
15097   return 0;
15098   ;
15099   return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest.$ac_objext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104   (eval $ac_compile) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -s conftest.$ac_objext'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; }; then
15114   ac_cv_type_double=yes
15115 else
15116   echo "$as_me: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 ac_cv_type_double=no
15119 fi
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15123 echo "${ECHO_T}$ac_cv_type_double" >&6
15124
15125 echo "$as_me:$LINENO: checking alignment of double" >&5
15126 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15127 if test "${pgac_cv_alignof_double+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   if test "$ac_cv_type_double" = yes; then
15131   if test "$cross_compiling" = yes; then
15132   # Depending upon the size, compute the lo and hi bounds.
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15135 #include "confdefs.h"
15136 $ac_includes_default
15137 struct { char filler; double field; } pgac_struct;
15138 #ifdef F77_DUMMY_MAIN
15139 #  ifdef __cplusplus
15140      extern "C"
15141 #  endif
15142    int F77_DUMMY_MAIN() { return 1; }
15143 #endif
15144 int
15145 main ()
15146 {
15147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15148 test_array [0] = 0
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156   (eval $ac_compile) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } &&
15160          { ac_try='test -s conftest.$ac_objext'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_lo=0 ac_mid=0
15167   while :; do
15168     cat >conftest.$ac_ext <<_ACEOF
15169 #line $LINENO "configure"
15170 #include "confdefs.h"
15171 $ac_includes_default
15172 struct { char filler; double field; } pgac_struct;
15173 #ifdef F77_DUMMY_MAIN
15174 #  ifdef __cplusplus
15175      extern "C"
15176 #  endif
15177    int F77_DUMMY_MAIN() { return 1; }
15178 #endif
15179 int
15180 main ()
15181 {
15182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15183 test_array [0] = 0
15184
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191   (eval $ac_compile) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201   ac_hi=$ac_mid; break
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 ac_lo=`expr $ac_mid + 1`
15206                     if test $ac_lo -le $ac_mid; then
15207                       ac_lo= ac_hi=
15208                       break
15209                     fi
15210                     ac_mid=`expr 2 '*' $ac_mid + 1`
15211 fi
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15213   done
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 #include "confdefs.h"
15220 $ac_includes_default
15221 struct { char filler; double field; } pgac_struct;
15222 #ifdef F77_DUMMY_MAIN
15223 #  ifdef __cplusplus
15224      extern "C"
15225 #  endif
15226    int F77_DUMMY_MAIN() { return 1; }
15227 #endif
15228 int
15229 main ()
15230 {
15231 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15232 test_array [0] = 0
15233
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 rm -f conftest.$ac_objext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240   (eval $ac_compile) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); } &&
15244          { ac_try='test -s conftest.$ac_objext'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_hi=-1 ac_mid=-1
15251   while :; do
15252     cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 #include "confdefs.h"
15255 $ac_includes_default
15256 struct { char filler; double field; } pgac_struct;
15257 #ifdef F77_DUMMY_MAIN
15258 #  ifdef __cplusplus
15259      extern "C"
15260 #  endif
15261    int F77_DUMMY_MAIN() { return 1; }
15262 #endif
15263 int
15264 main ()
15265 {
15266 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15267 test_array [0] = 0
15268
15269   ;
15270   return 0;
15271 }
15272 _ACEOF
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275   (eval $ac_compile) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } &&
15279          { ac_try='test -s conftest.$ac_objext'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; }; then
15285   ac_lo=$ac_mid; break
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 ac_hi=`expr '(' $ac_mid ')' - 1`
15290                        if test $ac_mid -le $ac_hi; then
15291                          ac_lo= ac_hi=
15292                          break
15293                        fi
15294                        ac_mid=`expr 2 '*' $ac_mid`
15295 fi
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15297   done
15298 else
15299   echo "$as_me: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15301 ac_lo= ac_hi=
15302 fi
15303 rm -f conftest.$ac_objext conftest.$ac_ext
15304 fi
15305 rm -f conftest.$ac_objext conftest.$ac_ext
15306 # Binary search between lo and hi bounds.
15307 while test "x$ac_lo" != "x$ac_hi"; do
15308   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15309   cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 #include "confdefs.h"
15312 $ac_includes_default
15313 struct { char filler; double field; } pgac_struct;
15314 #ifdef F77_DUMMY_MAIN
15315 #  ifdef __cplusplus
15316      extern "C"
15317 #  endif
15318    int F77_DUMMY_MAIN() { return 1; }
15319 #endif
15320 int
15321 main ()
15322 {
15323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15324 test_array [0] = 0
15325
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332   (eval $ac_compile) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -s conftest.$ac_objext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   ac_hi=$ac_mid
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 ac_lo=`expr '(' $ac_mid ')' + 1`
15347 fi
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15349 done
15350 case $ac_lo in
15351 ?*) pgac_cv_alignof_double=$ac_lo;;
15352 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15353 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15354    { (exit 1); exit 1; }; } ;;
15355 esac
15356 else
15357   if test "$cross_compiling" = yes; then
15358   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15359 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15360    { (exit 1); exit 1; }; }
15361 else
15362   cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 $ac_includes_default
15366 struct { char filler; double field; } pgac_struct;
15367 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15368 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15369 #include <stdio.h>
15370 #include <stdlib.h>
15371 #ifdef F77_DUMMY_MAIN
15372 #  ifdef __cplusplus
15373      extern "C"
15374 #  endif
15375    int F77_DUMMY_MAIN() { return 1; }
15376 #endif
15377 int
15378 main ()
15379 {
15380
15381   FILE *f = fopen ("conftest.val", "w");
15382   if (! f)
15383     exit (1);
15384   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15385     {
15386       long i = longval ();
15387       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15388         exit (1);
15389       fprintf (f, "%ld\n", i);
15390     }
15391   else
15392     {
15393       unsigned long i = ulongval ();
15394       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15395         exit (1);
15396       fprintf (f, "%lu\n", i);
15397     }
15398   exit (ferror (f) || fclose (f) != 0);
15399
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406   (eval $ac_link) 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411   (eval $ac_try) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; }; then
15415   pgac_cv_alignof_double=`cat conftest.val`
15416 else
15417   echo "$as_me: program exited with status $ac_status" >&5
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ( exit $ac_status )
15421 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15422 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15423    { (exit 1); exit 1; }; }
15424 fi
15425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15426 fi
15427 fi
15428 rm -f conftest.val
15429 else
15430   pgac_cv_alignof_double=0
15431 fi
15432 fi
15433 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15434 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15435 cat >>confdefs.h <<_ACEOF
15436 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15437 _ACEOF
15438
15439
15440
15441 # Compute maximum alignment of any basic type.
15442 # We assume long's alignment is at least as strong as char, short, or int;
15443 # but we must check long long (if it exists) and double.
15444
15445 MAX_ALIGNOF=$pgac_cv_alignof_long
15446 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15447   MAX_ALIGNOF=$pgac_cv_alignof_double
15448 fi
15449 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15450   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15451 fi
15452
15453 cat >>confdefs.h <<_ACEOF
15454 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15455 _ACEOF
15456
15457
15458
15459 # Some platforms predefine the types int8, int16, etc.  Only check
15460 # a (hopefully) representative subset.
15461 echo "$as_me:$LINENO: checking for int8" >&5
15462 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15463 if test "${ac_cv_type_int8+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   cat >conftest.$ac_ext <<_ACEOF
15467 #line $LINENO "configure"
15468 #include "confdefs.h"
15469 #include <stdio.h>
15470 #ifdef HAVE_SUPPORTDEFS_H
15471 #include <SupportDefs.h>
15472 #endif
15473
15474 #ifdef F77_DUMMY_MAIN
15475 #  ifdef __cplusplus
15476      extern "C"
15477 #  endif
15478    int F77_DUMMY_MAIN() { return 1; }
15479 #endif
15480 int
15481 main ()
15482 {
15483 if ((int8 *) 0)
15484   return 0;
15485 if (sizeof (int8))
15486   return 0;
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493   (eval $ac_compile) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -s conftest.$ac_objext'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; }; then
15503   ac_cv_type_int8=yes
15504 else
15505   echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 ac_cv_type_int8=no
15508 fi
15509 rm -f conftest.$ac_objext conftest.$ac_ext
15510 fi
15511 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15512 echo "${ECHO_T}$ac_cv_type_int8" >&6
15513 if test $ac_cv_type_int8 = yes; then
15514
15515 cat >>confdefs.h <<_ACEOF
15516 #define HAVE_INT8 1
15517 _ACEOF
15518
15519
15520 fi
15521 echo "$as_me:$LINENO: checking for uint8" >&5
15522 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15523 if test "${ac_cv_type_uint8+set}" = set; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   cat >conftest.$ac_ext <<_ACEOF
15527 #line $LINENO "configure"
15528 #include "confdefs.h"
15529 #include <stdio.h>
15530 #ifdef HAVE_SUPPORTDEFS_H
15531 #include <SupportDefs.h>
15532 #endif
15533
15534 #ifdef F77_DUMMY_MAIN
15535 #  ifdef __cplusplus
15536      extern "C"
15537 #  endif
15538    int F77_DUMMY_MAIN() { return 1; }
15539 #endif
15540 int
15541 main ()
15542 {
15543 if ((uint8 *) 0)
15544   return 0;
15545 if (sizeof (uint8))
15546   return 0;
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553   (eval $ac_compile) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } &&
15557          { ac_try='test -s conftest.$ac_objext'
15558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; }; then
15563   ac_cv_type_uint8=yes
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 ac_cv_type_uint8=no
15568 fi
15569 rm -f conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15572 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15573 if test $ac_cv_type_uint8 = yes; then
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_UINT8 1
15577 _ACEOF
15578
15579
15580 fi
15581 echo "$as_me:$LINENO: checking for int64" >&5
15582 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15583 if test "${ac_cv_type_int64+set}" = set; then
15584   echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586   cat >conftest.$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15588 #include "confdefs.h"
15589 #include <stdio.h>
15590 #ifdef HAVE_SUPPORTDEFS_H
15591 #include <SupportDefs.h>
15592 #endif
15593
15594 #ifdef F77_DUMMY_MAIN
15595 #  ifdef __cplusplus
15596      extern "C"
15597 #  endif
15598    int F77_DUMMY_MAIN() { return 1; }
15599 #endif
15600 int
15601 main ()
15602 {
15603 if ((int64 *) 0)
15604   return 0;
15605 if (sizeof (int64))
15606   return 0;
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613   (eval $ac_compile) 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } &&
15617          { ac_try='test -s conftest.$ac_objext'
15618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619   (eval $ac_try) 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }; }; then
15623   ac_cv_type_int64=yes
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 ac_cv_type_int64=no
15628 fi
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15630 fi
15631 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15632 echo "${ECHO_T}$ac_cv_type_int64" >&6
15633 if test $ac_cv_type_int64 = yes; then
15634
15635 cat >>confdefs.h <<_ACEOF
15636 #define HAVE_INT64 1
15637 _ACEOF
15638
15639
15640 fi
15641 echo "$as_me:$LINENO: checking for uint64" >&5
15642 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15643 if test "${ac_cv_type_uint64+set}" = set; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 #include "confdefs.h"
15649 #include <stdio.h>
15650 #ifdef HAVE_SUPPORTDEFS_H
15651 #include <SupportDefs.h>
15652 #endif
15653
15654 #ifdef F77_DUMMY_MAIN
15655 #  ifdef __cplusplus
15656      extern "C"
15657 #  endif
15658    int F77_DUMMY_MAIN() { return 1; }
15659 #endif
15660 int
15661 main ()
15662 {
15663 if ((uint64 *) 0)
15664   return 0;
15665 if (sizeof (uint64))
15666   return 0;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -s conftest.$ac_objext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_type_uint64=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 cat conftest.$ac_ext >&5
15687 ac_cv_type_uint64=no
15688 fi
15689 rm -f conftest.$ac_objext conftest.$ac_ext
15690 fi
15691 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15692 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15693 if test $ac_cv_type_uint64 = yes; then
15694
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_UINT64 1
15697 _ACEOF
15698
15699
15700 fi
15701
15702
15703 # We also check for sig_atomic_t, which *should* be defined per ANSI
15704 # C, but is missing on some old platforms.
15705 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15706 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15707 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 #include "confdefs.h"
15713 #include <signal.h>
15714
15715 #ifdef F77_DUMMY_MAIN
15716 #  ifdef __cplusplus
15717      extern "C"
15718 #  endif
15719    int F77_DUMMY_MAIN() { return 1; }
15720 #endif
15721 int
15722 main ()
15723 {
15724 if ((sig_atomic_t *) 0)
15725   return 0;
15726 if (sizeof (sig_atomic_t))
15727   return 0;
15728   ;
15729   return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734   (eval $ac_compile) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_type_sig_atomic_t=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15748 ac_cv_type_sig_atomic_t=no
15749 fi
15750 rm -f conftest.$ac_objext conftest.$ac_ext
15751 fi
15752 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15753 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15754 if test $ac_cv_type_sig_atomic_t = yes; then
15755
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_SIG_ATOMIC_T 1
15758 _ACEOF
15759
15760
15761 fi
15762
15763
15764
15765 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15766 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15767 if test "${pgac_cv_func_posix_signals+set}" = set; then
15768   echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770   cat >conftest.$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15772 #include "confdefs.h"
15773 #include <signal.h>
15774
15775 #ifdef F77_DUMMY_MAIN
15776 #  ifdef __cplusplus
15777      extern "C"
15778 #  endif
15779    int F77_DUMMY_MAIN() { return 1; }
15780 #endif
15781 int
15782 main ()
15783 {
15784 struct sigaction act, oact;
15785 sigemptyset(&act.sa_mask);
15786 act.sa_flags = SA_RESTART;
15787 sigaction(0, &act, &oact);
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794   (eval $ac_link) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -s conftest$ac_exeext'
15799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800   (eval $ac_try) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   pgac_cv_func_posix_signals=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 cat conftest.$ac_ext >&5
15808 pgac_cv_func_posix_signals=no
15809 fi
15810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15811 fi
15812 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15813 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15814 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15815
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_POSIX_SIGNALS
15818 _ACEOF
15819
15820 fi
15821 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15822
15823 if test $ac_cv_func_fseeko = yes; then
15824 # Check whether --enable-largefile or --disable-largefile was given.
15825 if test "${enable_largefile+set}" = set; then
15826   enableval="$enable_largefile"
15827
15828 fi;
15829 if test "$enable_largefile" != no; then
15830
15831   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15832 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15833 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836   ac_cv_sys_largefile_CC=no
15837      if test "$GCC" != yes; then
15838        ac_save_CC=$CC
15839        while :; do
15840          # IRIX 6.2 and later do not support large files by default,
15841          # so use the C compiler's -n32 option if that helps.
15842          cat >conftest.$ac_ext <<_ACEOF
15843 #line $LINENO "configure"
15844 #include "confdefs.h"
15845 #include <sys/types.h>
15846  /* Check that off_t can represent 2**63 - 1 correctly.
15847     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15848     since some C++ compilers masquerading as C compilers
15849     incorrectly reject 9223372036854775807.  */
15850 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15851   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15852                        && LARGE_OFF_T % 2147483647 == 1)
15853                       ? 1 : -1];
15854 #ifdef F77_DUMMY_MAIN
15855 #  ifdef __cplusplus
15856      extern "C"
15857 #  endif
15858    int F77_DUMMY_MAIN() { return 1; }
15859 #endif
15860 int
15861 main ()
15862 {
15863
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868          rm -f conftest.$ac_objext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15870   (eval $ac_compile) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -s conftest.$ac_objext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   break
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 fi
15885 rm -f conftest.$ac_objext
15886          CC="$CC -n32"
15887          rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889   (eval $ac_compile) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_cv_sys_largefile_CC=' -n32'; break
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 fi
15904 rm -f conftest.$ac_objext
15905          break
15906        done
15907        CC=$ac_save_CC
15908        rm -f conftest.$ac_ext
15909     fi
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15912 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15913   if test "$ac_cv_sys_largefile_CC" != no; then
15914     CC=$CC$ac_cv_sys_largefile_CC
15915   fi
15916
15917   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15918 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15919 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15920   echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922   while :; do
15923   ac_cv_sys_file_offset_bits=no
15924   cat >conftest.$ac_ext <<_ACEOF
15925 #line $LINENO "configure"
15926 #include "confdefs.h"
15927 #include <sys/types.h>
15928  /* Check that off_t can represent 2**63 - 1 correctly.
15929     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15930     since some C++ compilers masquerading as C compilers
15931     incorrectly reject 9223372036854775807.  */
15932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15933   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15934                        && LARGE_OFF_T % 2147483647 == 1)
15935                       ? 1 : -1];
15936 #ifdef F77_DUMMY_MAIN
15937 #  ifdef __cplusplus
15938      extern "C"
15939 #  endif
15940    int F77_DUMMY_MAIN() { return 1; }
15941 #endif
15942 int
15943 main ()
15944 {
15945
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952   (eval $ac_compile) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } &&
15956          { ac_try='test -s conftest.$ac_objext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   break
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 fi
15967 rm -f conftest.$ac_objext conftest.$ac_ext
15968   cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15970 #include "confdefs.h"
15971 #define _FILE_OFFSET_BITS 64
15972 #include <sys/types.h>
15973  /* Check that off_t can represent 2**63 - 1 correctly.
15974     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15975     since some C++ compilers masquerading as C compilers
15976     incorrectly reject 9223372036854775807.  */
15977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15978   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15979                        && LARGE_OFF_T % 2147483647 == 1)
15980                       ? 1 : -1];
15981 #ifdef F77_DUMMY_MAIN
15982 #  ifdef __cplusplus
15983      extern "C"
15984 #  endif
15985    int F77_DUMMY_MAIN() { return 1; }
15986 #endif
15987 int
15988 main ()
15989 {
15990
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997   (eval $ac_compile) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   ac_cv_sys_file_offset_bits=64; break
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16011 fi
16012 rm -f conftest.$ac_objext conftest.$ac_ext
16013   break
16014 done
16015 fi
16016 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16017 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16018 if test "$ac_cv_sys_file_offset_bits" != no; then
16019
16020 cat >>confdefs.h <<_ACEOF
16021 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16022 _ACEOF
16023
16024 fi
16025 rm -f conftest*
16026   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16027 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16028 if test "${ac_cv_sys_large_files+set}" = set; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   while :; do
16032   ac_cv_sys_large_files=no
16033   cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 #include "confdefs.h"
16036 #include <sys/types.h>
16037  /* Check that off_t can represent 2**63 - 1 correctly.
16038     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16039     since some C++ compilers masquerading as C compilers
16040     incorrectly reject 9223372036854775807.  */
16041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16042   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16043                        && LARGE_OFF_T % 2147483647 == 1)
16044                       ? 1 : -1];
16045 #ifdef F77_DUMMY_MAIN
16046 #  ifdef __cplusplus
16047      extern "C"
16048 #  endif
16049    int F77_DUMMY_MAIN() { return 1; }
16050 #endif
16051 int
16052 main ()
16053 {
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061   (eval $ac_compile) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -s conftest.$ac_objext'
16066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067   (eval $ac_try) 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   break
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 fi
16076 rm -f conftest.$ac_objext conftest.$ac_ext
16077   cat >conftest.$ac_ext <<_ACEOF
16078 #line $LINENO "configure"
16079 #include "confdefs.h"
16080 #define _LARGE_FILES 1
16081 #include <sys/types.h>
16082  /* Check that off_t can represent 2**63 - 1 correctly.
16083     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16084     since some C++ compilers masquerading as C compilers
16085     incorrectly reject 9223372036854775807.  */
16086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16087   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16088                        && LARGE_OFF_T % 2147483647 == 1)
16089                       ? 1 : -1];
16090 #ifdef F77_DUMMY_MAIN
16091 #  ifdef __cplusplus
16092      extern "C"
16093 #  endif
16094    int F77_DUMMY_MAIN() { return 1; }
16095 #endif
16096 int
16097 main ()
16098 {
16099
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106   (eval $ac_compile) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } &&
16110          { ac_try='test -s conftest.$ac_objext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_sys_large_files=1; break
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16120 fi
16121 rm -f conftest.$ac_objext conftest.$ac_ext
16122   break
16123 done
16124 fi
16125 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16127 if test "$ac_cv_sys_large_files" != no; then
16128
16129 cat >>confdefs.h <<_ACEOF
16130 #define _LARGE_FILES $ac_cv_sys_large_files
16131 _ACEOF
16132
16133 fi
16134 rm -f conftest*
16135 fi
16136
16137 fi
16138
16139
16140 # Select semaphore implementation type.
16141 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define USE_NAMED_POSIX_SEMAPHORES 1
16145 _ACEOF
16146
16147   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16148 else
16149   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16150
16151 cat >>confdefs.h <<\_ACEOF
16152 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16153 _ACEOF
16154
16155     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16156   else
16157
16158 cat >>confdefs.h <<\_ACEOF
16159 #define USE_SYSV_SEMAPHORES 1
16160 _ACEOF
16161
16162     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16163   fi
16164 fi
16165
16166
16167 # Select shared-memory implementation type.
16168
16169 cat >>confdefs.h <<\_ACEOF
16170 #define USE_SYSV_SHARED_MEMORY 1
16171 _ACEOF
16172
16173 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16174
16175
16176 if test "$enable_nls" = yes ; then
16177
16178   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16179 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16180 if test "${ac_cv_search_gettext+set}" = set; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183   ac_func_search_save_LIBS=$LIBS
16184 ac_cv_search_gettext=no
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188
16189 /* Override any gcc2 internal prototype to avoid an error.  */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 /* We use char because int might match the return type of a gcc2
16194    builtin and then its argument prototype would still apply.  */
16195 char gettext ();
16196 #ifdef F77_DUMMY_MAIN
16197 #  ifdef __cplusplus
16198      extern "C"
16199 #  endif
16200    int F77_DUMMY_MAIN() { return 1; }
16201 #endif
16202 int
16203 main ()
16204 {
16205 gettext ();
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16212   (eval $ac_link) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } &&
16216          { ac_try='test -s conftest$ac_exeext'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; }; then
16222   ac_cv_search_gettext="none required"
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16226 fi
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228 if test "$ac_cv_search_gettext" = no; then
16229   for ac_lib in intl; do
16230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16231     cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16234
16235 /* Override any gcc2 internal prototype to avoid an error.  */
16236 #ifdef __cplusplus
16237 extern "C"
16238 #endif
16239 /* We use char because int might match the return type of a gcc2
16240    builtin and then its argument prototype would still apply.  */
16241 char gettext ();
16242 #ifdef F77_DUMMY_MAIN
16243 #  ifdef __cplusplus
16244      extern "C"
16245 #  endif
16246    int F77_DUMMY_MAIN() { return 1; }
16247 #endif
16248 int
16249 main ()
16250 {
16251 gettext ();
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258   (eval $ac_link) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } &&
16262          { ac_try='test -s conftest$ac_exeext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268   ac_cv_search_gettext="-l$ac_lib"
16269 break
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16273 fi
16274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16275   done
16276 fi
16277 LIBS=$ac_func_search_save_LIBS
16278 fi
16279 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16280 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16281 if test "$ac_cv_search_gettext" != no; then
16282   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16283
16284 else
16285   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16286 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16287    { (exit 1); exit 1; }; }
16288 fi
16289
16290   if test "${ac_cv_header_libintl_h+set}" = set; then
16291   echo "$as_me:$LINENO: checking for libintl.h" >&5
16292 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16293 if test "${ac_cv_header_libintl_h+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 fi
16296 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16297 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16298 else
16299   # Is the header compilable?
16300 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16301 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16303 #line $LINENO "configure"
16304 #include "confdefs.h"
16305 $ac_includes_default
16306 #include <libintl.h>
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310   (eval $ac_compile) 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } &&
16314          { ac_try='test -s conftest.$ac_objext'
16315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316   (eval $ac_try) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; }; then
16320   ac_header_compiler=yes
16321 else
16322   echo "$as_me: failed program was:" >&5
16323 cat conftest.$ac_ext >&5
16324 ac_header_compiler=no
16325 fi
16326 rm -f conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16328 echo "${ECHO_T}$ac_header_compiler" >&6
16329
16330 # Is the header present?
16331 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16332 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 #include "confdefs.h"
16336 #include <libintl.h>
16337 _ACEOF
16338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16340   ac_status=$?
16341   egrep -v '^ *\+' conftest.er1 >conftest.err
16342   rm -f conftest.er1
16343   cat conftest.err >&5
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } >/dev/null; then
16346   if test -s conftest.err; then
16347     ac_cpp_err=$ac_c_preproc_warn_flag
16348   else
16349     ac_cpp_err=
16350   fi
16351 else
16352   ac_cpp_err=yes
16353 fi
16354 if test -z "$ac_cpp_err"; then
16355   ac_header_preproc=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358   cat conftest.$ac_ext >&5
16359   ac_header_preproc=no
16360 fi
16361 rm -f conftest.err conftest.$ac_ext
16362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16363 echo "${ECHO_T}$ac_header_preproc" >&6
16364
16365 # So?  What about this header?
16366 case $ac_header_compiler:$ac_header_preproc in
16367   yes:no )
16368     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16369 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16370     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16372   no:yes )
16373     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16375     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16377     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16378 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16379 esac
16380 echo "$as_me:$LINENO: checking for libintl.h" >&5
16381 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16382 if test "${ac_cv_header_libintl_h+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   ac_cv_header_libintl_h=$ac_header_preproc
16386 fi
16387 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16388 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16389
16390 fi
16391 if test $ac_cv_header_libintl_h = yes; then
16392   :
16393 else
16394   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16395 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16396    { (exit 1); exit 1; }; }
16397 fi
16398
16399
16400   for ac_prog in msgfmt
16401 do
16402   # Extract the first word of "$ac_prog", so it can be a program name with args.
16403 set dummy $ac_prog; ac_word=$2
16404 echo "$as_me:$LINENO: checking for $ac_word" >&5
16405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16406 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16407   echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409   if test -n "$MSGFMT"; then
16410   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16411 else
16412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16413 for as_dir in $PATH
16414 do
16415   IFS=$as_save_IFS
16416   test -z "$as_dir" && as_dir=.
16417   for ac_exec_ext in '' $ac_executable_extensions; do
16418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16419     ac_cv_prog_MSGFMT="$ac_prog"
16420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16421     break 2
16422   fi
16423 done
16424 done
16425
16426 fi
16427 fi
16428 MSGFMT=$ac_cv_prog_MSGFMT
16429 if test -n "$MSGFMT"; then
16430   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16431 echo "${ECHO_T}$MSGFMT" >&6
16432 else
16433   echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6
16435 fi
16436
16437   test -n "$MSGFMT" && break
16438 done
16439
16440   if test -z "$MSGFMT"; then
16441     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16442 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16443    { (exit 1); exit 1; }; }
16444   fi
16445   for ac_prog in msgmerge
16446 do
16447   # Extract the first word of "$ac_prog", so it can be a program name with args.
16448 set dummy $ac_prog; ac_word=$2
16449 echo "$as_me:$LINENO: checking for $ac_word" >&5
16450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16451 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16452   echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454   if test -n "$MSGMERGE"; then
16455   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16456 else
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16459 do
16460   IFS=$as_save_IFS
16461   test -z "$as_dir" && as_dir=.
16462   for ac_exec_ext in '' $ac_executable_extensions; do
16463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16464     ac_cv_prog_MSGMERGE="$ac_prog"
16465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16466     break 2
16467   fi
16468 done
16469 done
16470
16471 fi
16472 fi
16473 MSGMERGE=$ac_cv_prog_MSGMERGE
16474 if test -n "$MSGMERGE"; then
16475   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16476 echo "${ECHO_T}$MSGMERGE" >&6
16477 else
16478   echo "$as_me:$LINENO: result: no" >&5
16479 echo "${ECHO_T}no" >&6
16480 fi
16481
16482   test -n "$MSGMERGE" && break
16483 done
16484
16485   for ac_prog in xgettext
16486 do
16487   # Extract the first word of "$ac_prog", so it can be a program name with args.
16488 set dummy $ac_prog; ac_word=$2
16489 echo "$as_me:$LINENO: checking for $ac_word" >&5
16490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16491 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494   if test -n "$XGETTEXT"; then
16495   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16496 else
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH
16499 do
16500   IFS=$as_save_IFS
16501   test -z "$as_dir" && as_dir=.
16502   for ac_exec_ext in '' $ac_executable_extensions; do
16503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504     ac_cv_prog_XGETTEXT="$ac_prog"
16505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16506     break 2
16507   fi
16508 done
16509 done
16510
16511 fi
16512 fi
16513 XGETTEXT=$ac_cv_prog_XGETTEXT
16514 if test -n "$XGETTEXT"; then
16515   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16516 echo "${ECHO_T}$XGETTEXT" >&6
16517 else
16518   echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6
16520 fi
16521
16522   test -n "$XGETTEXT" && break
16523 done
16524
16525
16526   # Note: share/locale is always the default, independent of $datadir
16527   localedir='${prefix}/share/locale'
16528   if test x"$prefix" = x"NONE"; then
16529     exp_localedir="$ac_default_prefix/share/locale"
16530   else
16531     exp_localedir="$prefix/share/locale"
16532   fi
16533
16534
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define LOCALEDIR "$exp_localedir"
16538 _ACEOF
16539
16540
16541 fi
16542
16543 # Check for Tcl configuration script tclConfig.sh
16544 if test "$with_tcl" = yes; then
16545     for ac_prog in tclsh tcl
16546 do
16547   # Extract the first word of "$ac_prog", so it can be a program name with args.
16548 set dummy $ac_prog; ac_word=$2
16549 echo "$as_me:$LINENO: checking for $ac_word" >&5
16550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16551 if test "${ac_cv_path_TCLSH+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   case $TCLSH in
16555   [\\/]* | ?:[\\/]*)
16556   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16557   ;;
16558   *)
16559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16560 for as_dir in $PATH
16561 do
16562   IFS=$as_save_IFS
16563   test -z "$as_dir" && as_dir=.
16564   for ac_exec_ext in '' $ac_executable_extensions; do
16565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16566     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16568     break 2
16569   fi
16570 done
16571 done
16572
16573   ;;
16574 esac
16575 fi
16576 TCLSH=$ac_cv_path_TCLSH
16577
16578 if test -n "$TCLSH"; then
16579   echo "$as_me:$LINENO: result: $TCLSH" >&5
16580 echo "${ECHO_T}$TCLSH" >&6
16581 else
16582   echo "$as_me:$LINENO: result: no" >&5
16583 echo "${ECHO_T}no" >&6
16584 fi
16585
16586   test -n "$TCLSH" && break
16587 done
16588
16589 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16590 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16591 # Let user override test
16592 if test -z "$TCL_CONFIG_SH"; then
16593     pgac_test_dirs="$with_tclconfig"
16594
16595     set X $pgac_test_dirs; shift
16596     if test $# -eq 0; then
16597         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16598 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16599    { (exit 1); exit 1; }; }
16600         set X `echo 'puts $auto_path' | $TCLSH`; shift
16601     fi
16602
16603     for pgac_dir do
16604         if test -r "$pgac_dir/tclConfig.sh"; then
16605             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16606             break
16607         fi
16608     done
16609 fi
16610
16611 if test -z "$TCL_CONFIG_SH"; then
16612     echo "$as_me:$LINENO: result: no" >&5
16613 echo "${ECHO_T}no" >&6
16614     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16615 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16616    { (exit 1); exit 1; }; }
16617 else
16618     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16619 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16620 fi
16621
16622
16623
16624     . "$TCL_CONFIG_SH"
16625 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16626 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16627 eval TCL_LIBS=\"$TCL_LIBS\"
16628 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16629 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16630
16631     fi
16632
16633 # Check for Tk configuration script tkConfig.sh
16634 if test "$with_tk" = yes; then
16635     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16636 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16637 # Let user override test
16638 if test -z "$TK_CONFIG_SH"; then
16639     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16640
16641     set X $pgac_test_dirs; shift
16642     if test $# -eq 0; then
16643         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16644 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16645    { (exit 1); exit 1; }; }
16646         set X `echo 'puts $auto_path' | $TCLSH`; shift
16647     fi
16648
16649     for pgac_dir do
16650         if test -r "$pgac_dir/tkConfig.sh"; then
16651             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16652             break
16653         fi
16654     done
16655 fi
16656
16657 if test -z "$TK_CONFIG_SH"; then
16658     echo "$as_me:$LINENO: result: no" >&5
16659 echo "${ECHO_T}no" >&6
16660     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16661 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16662    { (exit 1); exit 1; }; }
16663 else
16664     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16665 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16666 fi
16667
16668
16669
16670     . "$TK_CONFIG_SH"
16671 eval TK_LIBS=\"$TK_LIBS\"
16672 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16673 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16674
16675 fi
16676
16677
16678 #
16679 # Check for DocBook and tools
16680 #
16681 for ac_prog in onsgmls nsgmls
16682 do
16683   # Extract the first word of "$ac_prog", so it can be a program name with args.
16684 set dummy $ac_prog; ac_word=$2
16685 echo "$as_me:$LINENO: checking for $ac_word" >&5
16686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16687 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690   if test -n "$NSGMLS"; then
16691   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16692 else
16693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16694 for as_dir in $PATH
16695 do
16696   IFS=$as_save_IFS
16697   test -z "$as_dir" && as_dir=.
16698   for ac_exec_ext in '' $ac_executable_extensions; do
16699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16700     ac_cv_prog_NSGMLS="$ac_prog"
16701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16702     break 2
16703   fi
16704 done
16705 done
16706
16707 fi
16708 fi
16709 NSGMLS=$ac_cv_prog_NSGMLS
16710 if test -n "$NSGMLS"; then
16711   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16712 echo "${ECHO_T}$NSGMLS" >&6
16713 else
16714   echo "$as_me:$LINENO: result: no" >&5
16715 echo "${ECHO_T}no" >&6
16716 fi
16717
16718   test -n "$NSGMLS" && break
16719 done
16720
16721 for ac_prog in openjade jade
16722 do
16723   # Extract the first word of "$ac_prog", so it can be a program name with args.
16724 set dummy $ac_prog; ac_word=$2
16725 echo "$as_me:$LINENO: checking for $ac_word" >&5
16726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16727 if test "${ac_cv_prog_JADE+set}" = set; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730   if test -n "$JADE"; then
16731   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16732 else
16733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734 for as_dir in $PATH
16735 do
16736   IFS=$as_save_IFS
16737   test -z "$as_dir" && as_dir=.
16738   for ac_exec_ext in '' $ac_executable_extensions; do
16739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16740     ac_cv_prog_JADE="$ac_prog"
16741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16742     break 2
16743   fi
16744 done
16745 done
16746
16747 fi
16748 fi
16749 JADE=$ac_cv_prog_JADE
16750 if test -n "$JADE"; then
16751   echo "$as_me:$LINENO: result: $JADE" >&5
16752 echo "${ECHO_T}$JADE" >&6
16753 else
16754   echo "$as_me:$LINENO: result: no" >&5
16755 echo "${ECHO_T}no" >&6
16756 fi
16757
16758   test -n "$JADE" && break
16759 done
16760
16761
16762 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16763 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16764 if test "${pgac_cv_check_docbook+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   cat >conftest.sgml <<EOF
16768 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16769 <book>
16770  <title>test</title>
16771  <chapter>
16772   <title>random</title>
16773    <sect1>
16774     <title>testsect</title>
16775     <para>text</para>
16776   </sect1>
16777  </chapter>
16778 </book>
16779 EOF
16780
16781 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16782 if test $? -eq 0; then
16783   pgac_cv_check_docbook=yes
16784 else
16785   pgac_cv_check_docbook=no
16786 fi
16787 rm -f conftest.sgml
16788 fi
16789 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16790 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16791
16792 have_docbook=$pgac_cv_check_docbook
16793
16794
16795 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16796 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16797 if test "${pgac_cv_path_stylesheets+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800   if test -n "$DOCBOOKSTYLE"; then
16801   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16802 else
16803   for pgac_prefix in /usr /usr/local /opt; do
16804     for pgac_infix in share lib; do
16805       for pgac_postfix in \
16806         sgml/stylesheets/nwalsh-modular \
16807         sgml/stylesheets/docbook \
16808         sgml/docbook/dsssl/modular \
16809         sgml/docbook/stylesheet/dsssl/modular \
16810         sgml/docbook/dsssl-stylesheets
16811       do
16812         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16813         if test -r "$pgac_candidate/html/docbook.dsl" \
16814            && test -r "$pgac_candidate/print/docbook.dsl"
16815         then
16816           pgac_cv_path_stylesheets=$pgac_candidate
16817           break 3
16818         fi
16819       done
16820     done
16821   done
16822 fi
16823 fi
16824
16825 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16826
16827 if test -n "$DOCBOOKSTYLE"; then
16828   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16829 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16830 else
16831   echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6
16833 fi
16834 if test -n "$DOCBOOKSTYLE"; then
16835   for ac_prog in collateindex.pl
16836 do
16837   # Extract the first word of "$ac_prog", so it can be a program name with args.
16838 set dummy $ac_prog; ac_word=$2
16839 echo "$as_me:$LINENO: checking for $ac_word" >&5
16840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16841 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844   case $COLLATEINDEX in
16845   [\\/]* | ?:[\\/]*)
16846   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16847   ;;
16848   *)
16849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850 for as_dir in $DOCBOOKSTYLE/bin $PATH
16851 do
16852   IFS=$as_save_IFS
16853   test -z "$as_dir" && as_dir=.
16854   for ac_exec_ext in '' $ac_executable_extensions; do
16855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16858     break 2
16859   fi
16860 done
16861 done
16862
16863   ;;
16864 esac
16865 fi
16866 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16867
16868 if test -n "$COLLATEINDEX"; then
16869   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16870 echo "${ECHO_T}$COLLATEINDEX" >&6
16871 else
16872   echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16874 fi
16875
16876   test -n "$COLLATEINDEX" && break
16877 done
16878
16879 else
16880   for ac_prog in collateindex.pl
16881 do
16882   # Extract the first word of "$ac_prog", so it can be a program name with args.
16883 set dummy $ac_prog; ac_word=$2
16884 echo "$as_me:$LINENO: checking for $ac_word" >&5
16885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16886 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16887   echo $ECHO_N "(cached) $ECHO_C" >&6
16888 else
16889   case $COLLATEINDEX in
16890   [\\/]* | ?:[\\/]*)
16891   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16892   ;;
16893   *)
16894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895 for as_dir in $PATH
16896 do
16897   IFS=$as_save_IFS
16898   test -z "$as_dir" && as_dir=.
16899   for ac_exec_ext in '' $ac_executable_extensions; do
16900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16901     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16903     break 2
16904   fi
16905 done
16906 done
16907
16908   ;;
16909 esac
16910 fi
16911 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16912
16913 if test -n "$COLLATEINDEX"; then
16914   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16915 echo "${ECHO_T}$COLLATEINDEX" >&6
16916 else
16917   echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6
16919 fi
16920
16921   test -n "$COLLATEINDEX" && break
16922 done
16923
16924 fi
16925 for ac_prog in sgmlspl
16926 do
16927   # Extract the first word of "$ac_prog", so it can be a program name with args.
16928 set dummy $ac_prog; ac_word=$2
16929 echo "$as_me:$LINENO: checking for $ac_word" >&5
16930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16931 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16932   echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934   if test -n "$SGMLSPL"; then
16935   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16936 else
16937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16939 do
16940   IFS=$as_save_IFS
16941   test -z "$as_dir" && as_dir=.
16942   for ac_exec_ext in '' $ac_executable_extensions; do
16943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16944     ac_cv_prog_SGMLSPL="$ac_prog"
16945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16946     break 2
16947   fi
16948 done
16949 done
16950
16951 fi
16952 fi
16953 SGMLSPL=$ac_cv_prog_SGMLSPL
16954 if test -n "$SGMLSPL"; then
16955   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16956 echo "${ECHO_T}$SGMLSPL" >&6
16957 else
16958   echo "$as_me:$LINENO: result: no" >&5
16959 echo "${ECHO_T}no" >&6
16960 fi
16961
16962   test -n "$SGMLSPL" && break
16963 done
16964
16965
16966
16967 # prepare build tree if outside source tree
16968 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16969 # Note 2: /bin/pwd might be better than shell's built-in at getting
16970 #         a symlink-free name.
16971 if test "$no_create" != yes; then
16972   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16973     :
16974   else
16975     vpath_build=yes
16976
16977     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16978     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16979     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16980       || { { echo "$as_me:$LINENO: error: failed" >&5
16981 echo "$as_me: error: failed" >&2;}
16982    { (exit 1); exit 1; }; }
16983     echo "$as_me:$LINENO: result: done" >&5
16984 echo "${ECHO_T}done" >&6
16985   fi
16986 fi
16987
16988
16989 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16990
16991
16992 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}"
16993
16994
16995 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16996
16997
16998 cat >confcache <<\_ACEOF
16999 # This file is a shell script that caches the results of configure
17000 # tests run on this system so they can be shared between configure
17001 # scripts and configure runs, see configure's option --config-cache.
17002 # It is not useful on other systems.  If it contains results you don't
17003 # want to keep, you may remove or edit it.
17004 #
17005 # config.status only pays attention to the cache file if you give it
17006 # the --recheck option to rerun configure.
17007 #
17008 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17010 # following values.
17011
17012 _ACEOF
17013
17014 # The following way of writing the cache mishandles newlines in values,
17015 # but we know of no workaround that is simple, portable, and efficient.
17016 # So, don't put newlines in cache variables' values.
17017 # Ultrix sh set writes to stderr and can't be redirected directly,
17018 # and sets the high bit in the cache file unless we assign to the vars.
17019 {
17020   (set) 2>&1 |
17021     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17022     *ac_space=\ *)
17023       # `set' does not quote correctly, so add quotes (double-quote
17024       # substitution turns \\\\ into \\, and sed turns \\ into \).
17025       sed -n \
17026         "s/'/'\\\\''/g;
17027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17028       ;;
17029     *)
17030       # `set' quotes correctly as required by POSIX, so do not add quotes.
17031       sed -n \
17032         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17033       ;;
17034     esac;
17035 } |
17036   sed '
17037      t clear
17038      : clear
17039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17040      t end
17041      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17042      : end' >>confcache
17043 if cmp -s $cache_file confcache; then :; else
17044   if test -w $cache_file; then
17045     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17046     cat confcache >$cache_file
17047   else
17048     echo "not updating unwritable cache $cache_file"
17049   fi
17050 fi
17051 rm -f confcache
17052
17053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17054 # Let make expand exec_prefix.
17055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17056
17057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17059 # trailing colons and then remove the whole line if VPATH becomes empty
17060 # (actually we leave an empty line to preserve line numbers).
17061 if test "x$srcdir" = x.; then
17062   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17063 s/:*\$(srcdir):*/:/;
17064 s/:*\${srcdir}:*/:/;
17065 s/:*@srcdir@:*/:/;
17066 s/^\([^=]*=[    ]*\):*/\1/;
17067 s/:*$//;
17068 s/^[^=]*=[      ]*$//;
17069 }'
17070 fi
17071
17072 DEFS=-DHAVE_CONFIG_H
17073
17074
17075 : ${CONFIG_STATUS=./config.status}
17076 ac_clean_files_save=$ac_clean_files
17077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17080 cat >$CONFIG_STATUS <<_ACEOF
17081 #! $SHELL
17082 # Generated by $as_me.
17083 # Run this file to recreate the current configuration.
17084 # Compiler output produced by configure, useful for debugging
17085 # configure, is in config.log if it exists.
17086
17087 debug=false
17088 SHELL=\${CONFIG_SHELL-$SHELL}
17089 _ACEOF
17090
17091 cat >>$CONFIG_STATUS <<\_ACEOF
17092
17093 ## --------------------- ##
17094 ## M4sh Initialization.  ##
17095 ## --------------------- ##
17096
17097 # Be Bourne compatible
17098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17099   emulate sh
17100   NULLCMD=:
17101 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17102   set -o posix
17103 fi
17104
17105 # NLS nuisances.
17106 # Support unset when possible.
17107 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17108   as_unset=unset
17109 else
17110   as_unset=false
17111 fi
17112
17113 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17114     { $as_unset LANG || test "${LANG+set}" != set; } ||
17115       { LANG=C; export LANG; }
17116 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17117     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17118       { LC_ALL=C; export LC_ALL; }
17119 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17120     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17121       { LC_TIME=C; export LC_TIME; }
17122 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17123     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17124       { LC_CTYPE=C; export LC_CTYPE; }
17125 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17126     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17127       { LANGUAGE=C; export LANGUAGE; }
17128 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17129     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17130       { LC_COLLATE=C; export LC_COLLATE; }
17131 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17132     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17133       { LC_NUMERIC=C; export LC_NUMERIC; }
17134 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17135     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17136       { LC_MESSAGES=C; export LC_MESSAGES; }
17137
17138
17139 # Name of the executable.
17140 as_me=`(basename "$0") 2>/dev/null ||
17141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17142          X"$0" : 'X\(//\)$' \| \
17143          X"$0" : 'X\(/\)$' \| \
17144          .     : '\(.\)' 2>/dev/null ||
17145 echo X/"$0" |
17146     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17147           /^X\/\(\/\/\)$/{ s//\1/; q; }
17148           /^X\/\(\/\).*/{ s//\1/; q; }
17149           s/.*/./; q'`
17150
17151 # PATH needs CR, and LINENO needs CR and PATH.
17152 # Avoid depending upon Character Ranges.
17153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17156 as_cr_digits='0123456789'
17157 as_cr_alnum=$as_cr_Letters$as_cr_digits
17158
17159 # The user is always right.
17160 if test "${PATH_SEPARATOR+set}" != set; then
17161   echo "#! /bin/sh" >conftest.sh
17162   echo  "exit 0"   >>conftest.sh
17163   chmod +x conftest.sh
17164   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17165     PATH_SEPARATOR=';'
17166   else
17167     PATH_SEPARATOR=:
17168   fi
17169   rm -f conftest.sh
17170 fi
17171
17172
17173   as_lineno_1=$LINENO
17174   as_lineno_2=$LINENO
17175   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17176   test "x$as_lineno_1" != "x$as_lineno_2" &&
17177   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17178   # Find who we are.  Look in the path if we contain no path at all
17179   # relative or not.
17180   case $0 in
17181     *[\\/]* ) as_myself=$0 ;;
17182     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17183 for as_dir in $PATH
17184 do
17185   IFS=$as_save_IFS
17186   test -z "$as_dir" && as_dir=.
17187   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17188 done
17189
17190        ;;
17191   esac
17192   # We did not find ourselves, most probably we were run as `sh COMMAND'
17193   # in which case we are not to be found in the path.
17194   if test "x$as_myself" = x; then
17195     as_myself=$0
17196   fi
17197   if test ! -f "$as_myself"; then
17198     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17199 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17200    { (exit 1); exit 1; }; }
17201   fi
17202   case $CONFIG_SHELL in
17203   '')
17204     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17206 do
17207   IFS=$as_save_IFS
17208   test -z "$as_dir" && as_dir=.
17209   for as_base in sh bash ksh sh5; do
17210          case $as_dir in
17211          /*)
17212            if ("$as_dir/$as_base" -c '
17213   as_lineno_1=$LINENO
17214   as_lineno_2=$LINENO
17215   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17216   test "x$as_lineno_1" != "x$as_lineno_2" &&
17217   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17218              CONFIG_SHELL=$as_dir/$as_base
17219              export CONFIG_SHELL
17220              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17221            fi;;
17222          esac
17223        done
17224 done
17225 ;;
17226   esac
17227
17228   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17229   # uniformly replaced by the line number.  The first 'sed' inserts a
17230   # line-number line before each line; the second 'sed' does the real
17231   # work.  The second script uses 'N' to pair each line-number line
17232   # with the numbered line, and appends trailing '-' during
17233   # substitution so that $LINENO is not a special case at line end.
17234   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17235   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17236   sed '=' <$as_myself |
17237     sed '
17238       N
17239       s,$,-,
17240       : loop
17241       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17242       t loop
17243       s,-$,,
17244       s,^['$as_cr_digits']*\n,,
17245     ' >$as_me.lineno &&
17246   chmod +x $as_me.lineno ||
17247     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17248 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17249    { (exit 1); exit 1; }; }
17250
17251   # Don't try to exec as it changes $[0], causing all sort of problems
17252   # (the dirname of $[0] is not the place where we might find the
17253   # original and so on.  Autoconf is especially sensible to this).
17254   . ./$as_me.lineno
17255   # Exit status is that of the last command.
17256   exit
17257 }
17258
17259
17260 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17261   *c*,-n*) ECHO_N= ECHO_C='
17262 ' ECHO_T='      ' ;;
17263   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17264   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17265 esac
17266
17267 if expr a : '\(a\)' >/dev/null 2>&1; then
17268   as_expr=expr
17269 else
17270   as_expr=false
17271 fi
17272
17273 rm -f conf$$ conf$$.exe conf$$.file
17274 echo >conf$$.file
17275 if ln -s conf$$.file conf$$ 2>/dev/null; then
17276   # We could just check for DJGPP; but this test a) works b) is more generic
17277   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17278   if test -f conf$$.exe; then
17279     # Don't use ln at all; we don't have any links
17280     as_ln_s='cp -p'
17281   else
17282     as_ln_s='ln -s'
17283   fi
17284 elif ln conf$$.file conf$$ 2>/dev/null; then
17285   as_ln_s=ln
17286 else
17287   as_ln_s='cp -p'
17288 fi
17289 rm -f conf$$ conf$$.exe conf$$.file
17290
17291 as_executable_p="test -f"
17292
17293 # Sed expression to map a string onto a valid CPP name.
17294 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17295
17296 # Sed expression to map a string onto a valid variable name.
17297 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17298
17299
17300 # IFS
17301 # We need space, tab and new line, in precisely that order.
17302 as_nl='
17303 '
17304 IFS="   $as_nl"
17305
17306 # CDPATH.
17307 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17308
17309 exec 6>&1
17310
17311 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17312 # report actual input values of CONFIG_FILES etc. instead of their
17313 # values after options handling.  Logging --version etc. is OK.
17314 exec 5>>config.log
17315 {
17316   echo
17317   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17318 ## Running $as_me. ##
17319 _ASBOX
17320 } >&5
17321 cat >&5 <<_CSEOF
17322
17323 This file was extended by PostgreSQL $as_me 7.4devel, which was
17324 generated by GNU Autoconf 2.53.  Invocation command line was
17325
17326   CONFIG_FILES    = $CONFIG_FILES
17327   CONFIG_HEADERS  = $CONFIG_HEADERS
17328   CONFIG_LINKS    = $CONFIG_LINKS
17329   CONFIG_COMMANDS = $CONFIG_COMMANDS
17330   $ $0 $@
17331
17332 _CSEOF
17333 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17334 echo >&5
17335 _ACEOF
17336
17337 # Files that config.status was made for.
17338 if test -n "$ac_config_files"; then
17339   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17340 fi
17341
17342 if test -n "$ac_config_headers"; then
17343   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17344 fi
17345
17346 if test -n "$ac_config_links"; then
17347   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17348 fi
17349
17350 if test -n "$ac_config_commands"; then
17351   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17352 fi
17353
17354 cat >>$CONFIG_STATUS <<\_ACEOF
17355
17356 ac_cs_usage="\
17357 \`$as_me' instantiates files from templates according to the
17358 current configuration.
17359
17360 Usage: $0 [OPTIONS] [FILE]...
17361
17362   -h, --help       print this help, then exit
17363   -V, --version    print version number, then exit
17364   -d, --debug      don't remove temporary files
17365       --recheck    update $as_me by reconfiguring in the same conditions
17366   --file=FILE[:TEMPLATE]
17367                    instantiate the configuration file FILE
17368   --header=FILE[:TEMPLATE]
17369                    instantiate the configuration header FILE
17370
17371 Configuration files:
17372 $config_files
17373
17374 Configuration headers:
17375 $config_headers
17376
17377 Configuration links:
17378 $config_links
17379
17380 Report bugs to <bug-autoconf@gnu.org>."
17381 _ACEOF
17382
17383 cat >>$CONFIG_STATUS <<_ACEOF
17384 ac_cs_version="\\
17385 PostgreSQL config.status 7.4devel
17386 configured by $0, generated by GNU Autoconf 2.53,
17387   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17388
17389 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17390 Free Software Foundation, Inc.
17391 This config.status script is free software; the Free Software Foundation
17392 gives unlimited permission to copy, distribute and modify it."
17393 srcdir=$srcdir
17394 _ACEOF
17395
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397 # If no file are specified by the user, then we need to provide default
17398 # value.  By we need to know if files were specified by the user.
17399 ac_need_defaults=:
17400 while test $# != 0
17401 do
17402   case $1 in
17403   --*=*)
17404     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17405     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17406     shift
17407     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17408     shift
17409     ;;
17410   -*);;
17411   *) # This is not an option, so the user has probably given explicit
17412      # arguments.
17413      ac_need_defaults=false;;
17414   esac
17415
17416   case $1 in
17417   # Handling of the options.
17418 _ACEOF
17419 cat >>$CONFIG_STATUS <<_ACEOF
17420   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17421     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17422     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17423 _ACEOF
17424 cat >>$CONFIG_STATUS <<\_ACEOF
17425   --version | --vers* | -V )
17426     echo "$ac_cs_version"; exit 0 ;;
17427   --he | --h)
17428     # Conflict between --help and --header
17429     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17430 Try \`$0 --help' for more information." >&5
17431 echo "$as_me: error: ambiguous option: $1
17432 Try \`$0 --help' for more information." >&2;}
17433    { (exit 1); exit 1; }; };;
17434   --help | --hel | -h )
17435     echo "$ac_cs_usage"; exit 0 ;;
17436   --debug | --d* | -d )
17437     debug=: ;;
17438   --file | --fil | --fi | --f )
17439     shift
17440     CONFIG_FILES="$CONFIG_FILES $1"
17441     ac_need_defaults=false;;
17442   --header | --heade | --head | --hea )
17443     shift
17444     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17445     ac_need_defaults=false;;
17446
17447   # This is an error.
17448   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17449 Try \`$0 --help' for more information." >&5
17450 echo "$as_me: error: unrecognized option: $1
17451 Try \`$0 --help' for more information." >&2;}
17452    { (exit 1); exit 1; }; } ;;
17453
17454   *) ac_config_targets="$ac_config_targets $1" ;;
17455
17456   esac
17457   shift
17458 done
17459
17460 _ACEOF
17461
17462
17463
17464
17465
17466 cat >>$CONFIG_STATUS <<\_ACEOF
17467 for ac_config_target in $ac_config_targets
17468 do
17469   case "$ac_config_target" in
17470   # Handling of arguments.
17471   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17472   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17473   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17474   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17475   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17476   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17477   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17478   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17479   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17480   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17481   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17482 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17483    { (exit 1); exit 1; }; };;
17484   esac
17485 done
17486
17487 # If the user did not use the arguments to specify the items to instantiate,
17488 # then the envvar interface is used.  Set only those that are not.
17489 # We use the long form for the default assignment because of an extremely
17490 # bizarre bug on SunOS 4.1.3.
17491 if $ac_need_defaults; then
17492   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17493   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17494   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17495 fi
17496
17497 # Create a temporary directory, and hook for its removal unless debugging.
17498 $debug ||
17499 {
17500   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17501   trap '{ (exit 1); exit 1; }' 1 2 13 15
17502 }
17503
17504 # Create a (secure) tmp directory for tmp files.
17505 : ${TMPDIR=/tmp}
17506 {
17507   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17508   test -n "$tmp" && test -d "$tmp"
17509 }  ||
17510 {
17511   tmp=$TMPDIR/cs$$-$RANDOM
17512   (umask 077 && mkdir $tmp)
17513 } ||
17514 {
17515    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17516    { (exit 1); exit 1; }
17517 }
17518
17519 _ACEOF
17520
17521 cat >>$CONFIG_STATUS <<_ACEOF
17522
17523 #
17524 # CONFIG_FILES section.
17525 #
17526
17527 # No need to generate the scripts if there are no CONFIG_FILES.
17528 # This happens for instance when ./config.status config.h
17529 if test -n "\$CONFIG_FILES"; then
17530   # Protect against being on the right side of a sed subst in config.status.
17531   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17532    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17533 s,@SHELL@,$SHELL,;t t
17534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17540 s,@exec_prefix@,$exec_prefix,;t t
17541 s,@prefix@,$prefix,;t t
17542 s,@program_transform_name@,$program_transform_name,;t t
17543 s,@bindir@,$bindir,;t t
17544 s,@sbindir@,$sbindir,;t t
17545 s,@libexecdir@,$libexecdir,;t t
17546 s,@datadir@,$datadir,;t t
17547 s,@sysconfdir@,$sysconfdir,;t t
17548 s,@sharedstatedir@,$sharedstatedir,;t t
17549 s,@localstatedir@,$localstatedir,;t t
17550 s,@libdir@,$libdir,;t t
17551 s,@includedir@,$includedir,;t t
17552 s,@oldincludedir@,$oldincludedir,;t t
17553 s,@infodir@,$infodir,;t t
17554 s,@mandir@,$mandir,;t t
17555 s,@build_alias@,$build_alias,;t t
17556 s,@host_alias@,$host_alias,;t t
17557 s,@target_alias@,$target_alias,;t t
17558 s,@DEFS@,$DEFS,;t t
17559 s,@ECHO_C@,$ECHO_C,;t t
17560 s,@ECHO_N@,$ECHO_N,;t t
17561 s,@ECHO_T@,$ECHO_T,;t t
17562 s,@LIBS@,$LIBS,;t t
17563 s,@docdir@,$docdir,;t t
17564 s,@configure_args@,$configure_args,;t t
17565 s,@build@,$build,;t t
17566 s,@build_cpu@,$build_cpu,;t t
17567 s,@build_vendor@,$build_vendor,;t t
17568 s,@build_os@,$build_os,;t t
17569 s,@host@,$host,;t t
17570 s,@host_cpu@,$host_cpu,;t t
17571 s,@host_vendor@,$host_vendor,;t t
17572 s,@host_os@,$host_os,;t t
17573 s,@PORTNAME@,$PORTNAME,;t t
17574 s,@TAS@,$TAS,;t t
17575 s,@enable_nls@,$enable_nls,;t t
17576 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17577 s,@default_port@,$default_port,;t t
17578 s,@enable_shared@,$enable_shared,;t t
17579 s,@enable_rpath@,$enable_rpath,;t t
17580 s,@enable_debug@,$enable_debug,;t t
17581 s,@CC@,$CC,;t t
17582 s,@CFLAGS@,$CFLAGS,;t t
17583 s,@LDFLAGS@,$LDFLAGS,;t t
17584 s,@CPPFLAGS@,$CPPFLAGS,;t t
17585 s,@ac_ct_CC@,$ac_ct_CC,;t t
17586 s,@EXEEXT@,$EXEEXT,;t t
17587 s,@OBJEXT@,$OBJEXT,;t t
17588 s,@CPP@,$CPP,;t t
17589 s,@GCC@,$GCC,;t t
17590 s,@autodepend@,$autodepend,;t t
17591 s,@INCLUDES@,$INCLUDES,;t t
17592 s,@with_threads@,$with_threads,;t t
17593 s,@with_tcl@,$with_tcl,;t t
17594 s,@with_tk@,$with_tk,;t t
17595 s,@with_perl@,$with_perl,;t t
17596 s,@with_python@,$with_python,;t t
17597 s,@ANT@,$ANT,;t t
17598 s,@with_java@,$with_java,;t t
17599 s,@with_krb4@,$with_krb4,;t t
17600 s,@with_krb5@,$with_krb5,;t t
17601 s,@krb_srvtab@,$krb_srvtab,;t t
17602 s,@with_pam@,$with_pam,;t t
17603 s,@with_rendezvous@,$with_rendezvous,;t t
17604 s,@with_openssl@,$with_openssl,;t t
17605 s,@ELF_SYS@,$ELF_SYS,;t t
17606 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17607 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17608 s,@AWK@,$AWK,;t t
17609 s,@FLEX@,$FLEX,;t t
17610 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17611 s,@LN_S@,$LN_S,;t t
17612 s,@LD@,$LD,;t t
17613 s,@with_gnu_ld@,$with_gnu_ld,;t t
17614 s,@ld_R_works@,$ld_R_works,;t t
17615 s,@RANLIB@,$RANLIB,;t t
17616 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17617 s,@LORDER@,$LORDER,;t t
17618 s,@TAR@,$TAR,;t t
17619 s,@STRIP@,$STRIP,;t t
17620 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17621 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17622 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17623 s,@YACC@,$YACC,;t t
17624 s,@YFLAGS@,$YFLAGS,;t t
17625 s,@PERL@,$PERL,;t t
17626 s,@perl_archlibexp@,$perl_archlibexp,;t t
17627 s,@perl_privlibexp@,$perl_privlibexp,;t t
17628 s,@perl_useshrplib@,$perl_useshrplib,;t t
17629 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17630 s,@PYTHON@,$PYTHON,;t t
17631 s,@python_version@,$python_version,;t t
17632 s,@python_prefix@,$python_prefix,;t t
17633 s,@python_execprefix@,$python_execprefix,;t t
17634 s,@python_configdir@,$python_configdir,;t t
17635 s,@python_moduledir@,$python_moduledir,;t t
17636 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17637 s,@python_includespec@,$python_includespec,;t t
17638 s,@python_libspec@,$python_libspec,;t t
17639 s,@LIBOBJS@,$LIBOBJS,;t t
17640 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17641 s,@MSGFMT@,$MSGFMT,;t t
17642 s,@MSGMERGE@,$MSGMERGE,;t t
17643 s,@XGETTEXT@,$XGETTEXT,;t t
17644 s,@localedir@,$localedir,;t t
17645 s,@TCLSH@,$TCLSH,;t t
17646 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17647 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17648 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17649 s,@TCL_LIBS@,$TCL_LIBS,;t t
17650 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17651 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17652 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17653 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17654 s,@TK_LIBS@,$TK_LIBS,;t t
17655 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17656 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17657 s,@NSGMLS@,$NSGMLS,;t t
17658 s,@JADE@,$JADE,;t t
17659 s,@have_docbook@,$have_docbook,;t t
17660 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17661 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17662 s,@SGMLSPL@,$SGMLSPL,;t t
17663 s,@vpath_build@,$vpath_build,;t t
17664 CEOF
17665
17666 _ACEOF
17667
17668   cat >>$CONFIG_STATUS <<\_ACEOF
17669   # Split the substitutions into bite-sized pieces for seds with
17670   # small command number limits, like on Digital OSF/1 and HP-UX.
17671   ac_max_sed_lines=48
17672   ac_sed_frag=1 # Number of current file.
17673   ac_beg=1 # First line for current file.
17674   ac_end=$ac_max_sed_lines # Line after last line for current file.
17675   ac_more_lines=:
17676   ac_sed_cmds=
17677   while $ac_more_lines; do
17678     if test $ac_beg -gt 1; then
17679       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17680     else
17681       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17682     fi
17683     if test ! -s $tmp/subs.frag; then
17684       ac_more_lines=false
17685     else
17686       # The purpose of the label and of the branching condition is to
17687       # speed up the sed processing (if there are no `@' at all, there
17688       # is no need to browse any of the substitutions).
17689       # These are the two extra sed commands mentioned above.
17690       (echo ':t
17691   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17692       if test -z "$ac_sed_cmds"; then
17693         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17694       else
17695         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17696       fi
17697       ac_sed_frag=`expr $ac_sed_frag + 1`
17698       ac_beg=$ac_end
17699       ac_end=`expr $ac_end + $ac_max_sed_lines`
17700     fi
17701   done
17702   if test -z "$ac_sed_cmds"; then
17703     ac_sed_cmds=cat
17704   fi
17705 fi # test -n "$CONFIG_FILES"
17706
17707 _ACEOF
17708 cat >>$CONFIG_STATUS <<\_ACEOF
17709 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17710   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17711   case $ac_file in
17712   - | *:- | *:-:* ) # input from stdin
17713         cat >$tmp/stdin
17714         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17715         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17716   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17717         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17718   * )   ac_file_in=$ac_file.in ;;
17719   esac
17720
17721   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17722   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17724          X"$ac_file" : 'X\(//\)[^/]' \| \
17725          X"$ac_file" : 'X\(//\)$' \| \
17726          X"$ac_file" : 'X\(/\)' \| \
17727          .     : '\(.\)' 2>/dev/null ||
17728 echo X"$ac_file" |
17729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17730           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17731           /^X\(\/\/\)$/{ s//\1/; q; }
17732           /^X\(\/\).*/{ s//\1/; q; }
17733           s/.*/./; q'`
17734   { case "$ac_dir" in
17735   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17736   *)                      as_incr_dir=.;;
17737 esac
17738 as_dummy="$ac_dir"
17739 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17740   case $as_mkdir_dir in
17741     # Skip DOS drivespec
17742     ?:) as_incr_dir=$as_mkdir_dir ;;
17743     *)
17744       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17745       test -d "$as_incr_dir" ||
17746         mkdir "$as_incr_dir" ||
17747         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17748 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17749    { (exit 1); exit 1; }; }
17750     ;;
17751   esac
17752 done; }
17753
17754   ac_builddir=.
17755
17756 if test "$ac_dir" != .; then
17757   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17758   # A "../" for each directory in $ac_dir_suffix.
17759   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17760 else
17761   ac_dir_suffix= ac_top_builddir=
17762 fi
17763
17764 case $srcdir in
17765   .)  # No --srcdir option.  We are building in place.
17766     ac_srcdir=.
17767     if test -z "$ac_top_builddir"; then
17768        ac_top_srcdir=.
17769     else
17770        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17771     fi ;;
17772   [\\/]* | ?:[\\/]* )  # Absolute path.
17773     ac_srcdir=$srcdir$ac_dir_suffix;
17774     ac_top_srcdir=$srcdir ;;
17775   *) # Relative path.
17776     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17777     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17778 esac
17779 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17780 # absolute.
17781 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17782 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17783 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17784 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17785
17786
17787
17788   if test x"$ac_file" != x-; then
17789     { echo "$as_me:$LINENO: creating $ac_file" >&5
17790 echo "$as_me: creating $ac_file" >&6;}
17791     rm -f "$ac_file"
17792   fi
17793   # Let's still pretend it is `configure' which instantiates (i.e., don't
17794   # use $as_me), people would be surprised to read:
17795   #    /* config.h.  Generated by config.status.  */
17796   if test x"$ac_file" = x-; then
17797     configure_input=
17798   else
17799     configure_input="$ac_file.  "
17800   fi
17801   configure_input=$configure_input"Generated from `echo $ac_file_in |
17802                                      sed 's,.*/,,'` by configure."
17803
17804   # First look for the input files in the build tree, otherwise in the
17805   # src tree.
17806   ac_file_inputs=`IFS=:
17807     for f in $ac_file_in; do
17808       case $f in
17809       -) echo $tmp/stdin ;;
17810       [\\/$]*)
17811          # Absolute (can't be DOS-style, as IFS=:)
17812          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17813 echo "$as_me: error: cannot find input file: $f" >&2;}
17814    { (exit 1); exit 1; }; }
17815          echo $f;;
17816       *) # Relative
17817          if test -f "$f"; then
17818            # Build tree
17819            echo $f
17820          elif test -f "$srcdir/$f"; then
17821            # Source tree
17822            echo $srcdir/$f
17823          else
17824            # /dev/null tree
17825            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17826 echo "$as_me: error: cannot find input file: $f" >&2;}
17827    { (exit 1); exit 1; }; }
17828          fi;;
17829       esac
17830     done` || { (exit 1); exit 1; }
17831 _ACEOF
17832 cat >>$CONFIG_STATUS <<_ACEOF
17833   sed "$ac_vpsub
17834 $extrasub
17835 _ACEOF
17836 cat >>$CONFIG_STATUS <<\_ACEOF
17837 :t
17838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17839 s,@configure_input@,$configure_input,;t t
17840 s,@srcdir@,$ac_srcdir,;t t
17841 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17842 s,@top_srcdir@,$ac_top_srcdir,;t t
17843 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17844 s,@builddir@,$ac_builddir,;t t
17845 s,@abs_builddir@,$ac_abs_builddir,;t t
17846 s,@top_builddir@,$ac_top_builddir,;t t
17847 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17848 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17849   rm -f $tmp/stdin
17850   if test x"$ac_file" != x-; then
17851     mv $tmp/out $ac_file
17852   else
17853     cat $tmp/out
17854     rm -f $tmp/out
17855   fi
17856
17857 done
17858 _ACEOF
17859 cat >>$CONFIG_STATUS <<\_ACEOF
17860
17861 #
17862 # CONFIG_HEADER section.
17863 #
17864
17865 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17866 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17867 #
17868 # ac_d sets the value in "#define NAME VALUE" lines.
17869 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17870 ac_dB='[        ].*$,\1#\2'
17871 ac_dC=' '
17872 ac_dD=',;t'
17873 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17874 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17875 ac_uB='$,\1#\2define\3'
17876 ac_uC=' '
17877 ac_uD=',;t'
17878
17879 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17880   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17881   case $ac_file in
17882   - | *:- | *:-:* ) # input from stdin
17883         cat >$tmp/stdin
17884         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17885         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17886   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17887         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17888   * )   ac_file_in=$ac_file.in ;;
17889   esac
17890
17891   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17892 echo "$as_me: creating $ac_file" >&6;}
17893
17894   # First look for the input files in the build tree, otherwise in the
17895   # src tree.
17896   ac_file_inputs=`IFS=:
17897     for f in $ac_file_in; do
17898       case $f in
17899       -) echo $tmp/stdin ;;
17900       [\\/$]*)
17901          # Absolute (can't be DOS-style, as IFS=:)
17902          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17903 echo "$as_me: error: cannot find input file: $f" >&2;}
17904    { (exit 1); exit 1; }; }
17905          echo $f;;
17906       *) # Relative
17907          if test -f "$f"; then
17908            # Build tree
17909            echo $f
17910          elif test -f "$srcdir/$f"; then
17911            # Source tree
17912            echo $srcdir/$f
17913          else
17914            # /dev/null tree
17915            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17916 echo "$as_me: error: cannot find input file: $f" >&2;}
17917    { (exit 1); exit 1; }; }
17918          fi;;
17919       esac
17920     done` || { (exit 1); exit 1; }
17921   # Remove the trailing spaces.
17922   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17923
17924 _ACEOF
17925
17926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17927 # `conftest.undefs', that substitutes the proper values into
17928 # config.h.in to produce config.h.  The first handles `#define'
17929 # templates, and the second `#undef' templates.
17930 # And first: Protect against being on the right side of a sed subst in
17931 # config.status.  Protect against being in an unquoted here document
17932 # in config.status.
17933 rm -f conftest.defines conftest.undefs
17934 # Using a here document instead of a string reduces the quoting nightmare.
17935 # Putting comments in sed scripts is not portable.
17936 #
17937 # `end' is used to avoid that the second main sed command (meant for
17938 # 0-ary CPP macros) applies to n-ary macro definitions.
17939 # See the Autoconf documentation for `clear'.
17940 cat >confdef2sed.sed <<\_ACEOF
17941 s/[\\&,]/\\&/g
17942 s,[\\$`],\\&,g
17943 t clear
17944 : clear
17945 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17946 t end
17947 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17948 : end
17949 _ACEOF
17950 # If some macros were called several times there might be several times
17951 # the same #defines, which is useless.  Nevertheless, we may not want to
17952 # sort them, since we want the *last* AC-DEFINE to be honored.
17953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17955 rm -f confdef2sed.sed
17956
17957 # This sed command replaces #undef with comments.  This is necessary, for
17958 # example, in the case of _POSIX_SOURCE, which is predefined and required
17959 # on some systems where configure will not decide to define it.
17960 cat >>conftest.undefs <<\_ACEOF
17961 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17962 _ACEOF
17963
17964 # Break up conftest.defines because some shells have a limit on the size
17965 # of here documents, and old seds have small limits too (100 cmds).
17966 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17967 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17968 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17969 echo '  :' >>$CONFIG_STATUS
17970 rm -f conftest.tail
17971 while grep . conftest.defines >/dev/null
17972 do
17973   # Write a limited-size here document to $tmp/defines.sed.
17974   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17975   # Speed up: don't consider the non `#define' lines.
17976   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17977   # Work around the forget-to-reset-the-flag bug.
17978   echo 't clr' >>$CONFIG_STATUS
17979   echo ': clr' >>$CONFIG_STATUS
17980   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17981   echo 'CEOF
17982   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17983   rm -f $tmp/in
17984   mv $tmp/out $tmp/in
17985 ' >>$CONFIG_STATUS
17986   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17987   rm -f conftest.defines
17988   mv conftest.tail conftest.defines
17989 done
17990 rm -f conftest.defines
17991 echo '  fi # egrep' >>$CONFIG_STATUS
17992 echo >>$CONFIG_STATUS
17993
17994 # Break up conftest.undefs because some shells have a limit on the size
17995 # of here documents, and old seds have small limits too (100 cmds).
17996 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17997 rm -f conftest.tail
17998 while grep . conftest.undefs >/dev/null
17999 do
18000   # Write a limited-size here document to $tmp/undefs.sed.
18001   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18002   # Speed up: don't consider the non `#undef'
18003   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18004   # Work around the forget-to-reset-the-flag bug.
18005   echo 't clr' >>$CONFIG_STATUS
18006   echo ': clr' >>$CONFIG_STATUS
18007   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18008   echo 'CEOF
18009   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18010   rm -f $tmp/in
18011   mv $tmp/out $tmp/in
18012 ' >>$CONFIG_STATUS
18013   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18014   rm -f conftest.undefs
18015   mv conftest.tail conftest.undefs
18016 done
18017 rm -f conftest.undefs
18018
18019 cat >>$CONFIG_STATUS <<\_ACEOF
18020   # Let's still pretend it is `configure' which instantiates (i.e., don't
18021   # use $as_me), people would be surprised to read:
18022   #    /* config.h.  Generated by config.status.  */
18023   if test x"$ac_file" = x-; then
18024     echo "/* Generated by configure.  */" >$tmp/config.h
18025   else
18026     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18027   fi
18028   cat $tmp/in >>$tmp/config.h
18029   rm -f $tmp/in
18030   if test x"$ac_file" != x-; then
18031     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18032       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18033 echo "$as_me: $ac_file is unchanged" >&6;}
18034     else
18035       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18037          X"$ac_file" : 'X\(//\)[^/]' \| \
18038          X"$ac_file" : 'X\(//\)$' \| \
18039          X"$ac_file" : 'X\(/\)' \| \
18040          .     : '\(.\)' 2>/dev/null ||
18041 echo X"$ac_file" |
18042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18044           /^X\(\/\/\)$/{ s//\1/; q; }
18045           /^X\(\/\).*/{ s//\1/; q; }
18046           s/.*/./; q'`
18047       { case "$ac_dir" in
18048   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18049   *)                      as_incr_dir=.;;
18050 esac
18051 as_dummy="$ac_dir"
18052 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18053   case $as_mkdir_dir in
18054     # Skip DOS drivespec
18055     ?:) as_incr_dir=$as_mkdir_dir ;;
18056     *)
18057       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18058       test -d "$as_incr_dir" ||
18059         mkdir "$as_incr_dir" ||
18060         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18061 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18062    { (exit 1); exit 1; }; }
18063     ;;
18064   esac
18065 done; }
18066
18067       rm -f $ac_file
18068       mv $tmp/config.h $ac_file
18069     fi
18070   else
18071     cat $tmp/config.h
18072     rm -f $tmp/config.h
18073   fi
18074   # Run the commands associated with the file.
18075   case $ac_file in
18076     src/include/pg_config.h )
18077 # Update timestamp for pg_config.h (see Makefile.global)
18078 echo >src/include/stamp-h
18079  ;;
18080   esac
18081 done
18082 _ACEOF
18083 cat >>$CONFIG_STATUS <<\_ACEOF
18084
18085 #
18086 # CONFIG_LINKS section.
18087 #
18088
18089 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18090   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18091   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18092
18093   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18094 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18095
18096   if test ! -r $srcdir/$ac_source; then
18097     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18098 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18099    { (exit 1); exit 1; }; }
18100   fi
18101   rm -f $ac_dest
18102
18103   # Make relative symlinks.
18104   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18106          X"$ac_dest" : 'X\(//\)[^/]' \| \
18107          X"$ac_dest" : 'X\(//\)$' \| \
18108          X"$ac_dest" : 'X\(/\)' \| \
18109          .     : '\(.\)' 2>/dev/null ||
18110 echo X"$ac_dest" |
18111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18113           /^X\(\/\/\)$/{ s//\1/; q; }
18114           /^X\(\/\).*/{ s//\1/; q; }
18115           s/.*/./; q'`
18116   { case "$ac_dest_dir" in
18117   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18118   *)                      as_incr_dir=.;;
18119 esac
18120 as_dummy="$ac_dest_dir"
18121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18122   case $as_mkdir_dir in
18123     # Skip DOS drivespec
18124     ?:) as_incr_dir=$as_mkdir_dir ;;
18125     *)
18126       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18127       test -d "$as_incr_dir" ||
18128         mkdir "$as_incr_dir" ||
18129         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18130 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18131    { (exit 1); exit 1; }; }
18132     ;;
18133   esac
18134 done; }
18135
18136   ac_builddir=.
18137
18138 if test "$ac_dest_dir" != .; then
18139   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18140   # A "../" for each directory in $ac_dir_suffix.
18141   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18142 else
18143   ac_dir_suffix= ac_top_builddir=
18144 fi
18145
18146 case $srcdir in
18147   .)  # No --srcdir option.  We are building in place.
18148     ac_srcdir=.
18149     if test -z "$ac_top_builddir"; then
18150        ac_top_srcdir=.
18151     else
18152        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18153     fi ;;
18154   [\\/]* | ?:[\\/]* )  # Absolute path.
18155     ac_srcdir=$srcdir$ac_dir_suffix;
18156     ac_top_srcdir=$srcdir ;;
18157   *) # Relative path.
18158     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18159     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18160 esac
18161 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18162 # absolute.
18163 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18164 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18165 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18166 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18167
18168
18169   case $srcdir in
18170   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18171       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18172   esac
18173
18174   # Make a symlink if possible; otherwise try a hard link.
18175   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18176     ln $srcdir/$ac_source $ac_dest ||
18177     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18178 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18179    { (exit 1); exit 1; }; }
18180 done
18181 _ACEOF
18182
18183 cat >>$CONFIG_STATUS <<\_ACEOF
18184
18185 { (exit 0); exit 0; }
18186 _ACEOF
18187 chmod +x $CONFIG_STATUS
18188 ac_clean_files=$ac_clean_files_save
18189
18190
18191 # configure is writing to config.log, and then calls config.status.
18192 # config.status does its own redirection, appending to config.log.
18193 # Unfortunately, on DOS this fails, as config.log is still kept open
18194 # by configure, so config.status won't be able to write to it; its
18195 # output is simply discarded.  So we exec the FD to /dev/null,
18196 # effectively closing config.log, so it can be properly (re)opened and
18197 # appended to by config.status.  When coming back to configure, we
18198 # need to make the FD available again.
18199 if test "$no_create" != yes; then
18200   ac_cs_success=:
18201   exec 5>/dev/null
18202   $SHELL $CONFIG_STATUS || ac_cs_success=false
18203   exec 5>>config.log
18204   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18205   # would make configure fail if this is the last instruction.
18206   $ac_cs_success || { (exit 1); exit 1; }
18207 fi
18208