]> granicus.if.org Git - postgresql/blob - configure
Re-add USE_THREADS, used by ecpg.
[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-nls[=LANGUAGES]  enable Native Language Support
842   --disable-shared        do not build shared libraries
843   --disable-rpath         do not embed shared library search path in executables
844   --enable-debug          build with debugging symbols (-g)
845   --enable-depend         turn on automatic dependency tracking
846   --enable-cassert        enable assertion checks (for debugging)
847   --enable-thread-safety allow libpq and ecpg to be thread-safe
848   --disable-largefile     omit support for large files
849
850 Optional Packages:
851   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
852   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
853
854   --with-includes=DIRS    look for additional header files in DIRS
855   --with-libraries=DIRS   look for additional libraries in DIRS
856   --with-libs=DIRS        alternative spelling of --with-libraries
857   --with-pgport=PORTNUM   change default port number 5432
858   --with-tcl              build Tcl and Tk interfaces
859   --without-tk            do not build Tk interfaces if Tcl is enabled
860   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
861   --with-tkconfig=DIR     tkConfig.sh is in DIR
862   --with-perl             build Perl modules (PL/Perl)
863   --with-python           build Python interface module
864   --with-java             build JDBC interface and Java tools
865   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
866   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
867   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
868   --with-pam              build with PAM support
869   --with-rendezvous       build with Rendezvous support
870   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
871   --without-readline      do not use Readline
872   --without-zlib          do not use Zlib
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883   DOCBOOKSTYLE
884               location of DocBook stylesheets
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 Report bugs to <pgsql-bugs@postgresql.org>.
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd $ac_popdir
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 PostgreSQL configure 7.4devel
953 generated by GNU Autoconf 2.53
954
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959
960 Copyright 2002 PostgreSQL Global Development Group
961 _ACEOF
962   exit 0
963 fi
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
968
969 It was created by PostgreSQL $as_me 7.4devel, which was
970 generated by GNU Autoconf 2.53.  Invocation command line was
971
972   $ $0 $@
973
974 _ACEOF
975 {
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
980
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998 _ASUNAME
999
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1002 do
1003   IFS=$as_save_IFS
1004   test -z "$as_dir" && as_dir=.
1005   echo "PATH: $as_dir"
1006 done
1007
1008 } >&5
1009
1010 cat >&5 <<_ACEOF
1011
1012
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1016
1017 _ACEOF
1018
1019
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1026 do
1027   case $ac_arg in
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n ) continue ;;
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     continue ;;
1033   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035   esac
1036   case " $ac_configure_args " in
1037     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1038     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039        ac_sep=" " ;;
1040   esac
1041   # Get rid of the leading space.
1042 done
1043
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log.  We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050   # Save into config.log some information that might help in debugging.
1051   {
1052     echo
1053     cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058     echo
1059     # The following way of writing the cache mishandles newlines in values,
1060 {
1061   (set) 2>&1 |
1062     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063     *ac_space=\ *)
1064       sed -n \
1065         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067       ;;
1068     *)
1069       sed -n \
1070         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071       ;;
1072     esac;
1073 }
1074     echo
1075     if test -s confdefs.h; then
1076       cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081       echo
1082       sed "/^$/d" confdefs.h
1083       echo
1084     fi
1085     test "$ac_signal" != 0 &&
1086       echo "$as_me: caught signal $ac_signal"
1087     echo "$as_me: exit $exit_status"
1088   } >&5
1089   rm -f core core.* *.core &&
1090   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091     exit $exit_status
1092      ' 0
1093 for ac_signal in 1 2 13 15; do
1094   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1097
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1102
1103 # Predefined preprocessor variables.
1104
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1108
1109
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1113
1114
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1118
1119
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1123
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1128
1129
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133   if test "x$prefix" != xNONE; then
1134     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135   else
1136     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137   fi
1138 fi
1139 for ac_site_file in $CONFIG_SITE; do
1140   if test -r "$ac_site_file"; then
1141     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143     sed 's/^/| /' "$ac_site_file" >&5
1144     . "$ac_site_file"
1145   fi
1146 done
1147
1148 if test -r "$cache_file"; then
1149   # Some versions of bash will fail to source /dev/null (special
1150   # files actually), so we avoid doing that.
1151   if test -f "$cache_file"; then
1152     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154     case $cache_file in
1155       [\\/]* | ?:[\\/]* ) . $cache_file;;
1156       *)                      . ./$cache_file;;
1157     esac
1158   fi
1159 else
1160   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162   >$cache_file
1163 fi
1164
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171   eval ac_new_set=\$ac_env_${ac_var}_set
1172   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173   eval ac_new_val="\$ac_env_${ac_var}_value"
1174   case $ac_old_set,$ac_new_set in
1175     set,)
1176       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178       ac_cache_corrupted=: ;;
1179     ,set)
1180       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182       ac_cache_corrupted=: ;;
1183     ,);;
1184     *)
1185       if test "x$ac_old_val" != "x$ac_new_val"; then
1186         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1189 echo "$as_me:   former value:  $ac_old_val" >&2;}
1190         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1191 echo "$as_me:   current value: $ac_new_val" >&2;}
1192         ac_cache_corrupted=:
1193       fi;;
1194   esac
1195   # Pass precious variables to config.status.
1196   if test "$ac_new_set" = set; then
1197     case $ac_new_val in
1198     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200     *) ac_arg=$ac_var=$ac_new_val ;;
1201     esac
1202     case " $ac_configure_args " in
1203       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1204       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205     esac
1206   fi
1207 done
1208 if $ac_cache_corrupted; then
1209   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 ac_aux_dir=
1255 for ac_dir in config $srcdir/config; do
1256   if test -f $ac_dir/install-sh; then
1257     ac_aux_dir=$ac_dir
1258     ac_install_sh="$ac_aux_dir/install-sh -c"
1259     break
1260   elif test -f $ac_dir/install.sh; then
1261     ac_aux_dir=$ac_dir
1262     ac_install_sh="$ac_aux_dir/install.sh -c"
1263     break
1264   elif test -f $ac_dir/shtool; then
1265     ac_aux_dir=$ac_dir
1266     ac_install_sh="$ac_aux_dir/shtool install -c"
1267     break
1268   fi
1269 done
1270 if test -z "$ac_aux_dir"; then
1271   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280 configure_args=$ac_configure_args
1281
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1286 _ACEOF
1287
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343
1344 template=
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1347
1348
1349
1350
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353   withval="$with_template"
1354
1355   case $withval in
1356     yes)
1357       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359    { (exit 1); exit 1; }; }
1360       ;;
1361     no)
1362       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364    { (exit 1); exit 1; }; }
1365       ;;
1366     *)
1367
1368   case $withval in
1369     list)   echo; ls "$srcdir/src/template"; exit;;
1370     *)      if test -f "$srcdir/src/template/$with_template" ; then
1371               template=$withval
1372             else
1373               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375    { (exit 1); exit 1; }; }
1376             fi;;
1377   esac
1378
1379       ;;
1380   esac
1381
1382 else
1383
1384   # --with-template not given
1385
1386 case $host_os in
1387      aix*) template=aix ;;
1388     beos*) template=beos ;;
1389     bsdi*) template=bsdi ;;
1390   cygwin*) template=cygwin ;;
1391   darwin*) template=darwin ;;
1392     dgux*) template=dgux ;;
1393  freebsd*) template=freebsd ;;
1394     hpux*) template=hpux ;;
1395     irix*) template=irix5 ;;
1396    linux*) template=linux ;;
1397    mingw*) template=win32 ;;
1398   netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400  openbsd*) template=openbsd ;;
1401      osf*) template=osf ;;
1402      qnx*) template=qnx4 ;;
1403      sco*) template=sco ;;
1404  solaris*) template=solaris ;;
1405    sunos*) template=sunos4 ;;
1406  sysv4.2*)
1407         case $host_vendor in
1408           univel) template=univel ;;
1409         esac ;;
1410    sysv4*) template=svr4 ;;
1411    sysv5*) template=unixware ;;
1412   ultrix*) template=ultrix4 ;;
1413 esac
1414
1415   if test x"$template" = x"" ; then
1416     { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1421
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this.  Include the above 'checking host system type...'
1424 line.
1425 *******************************************************************
1426 " >&5
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1432
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this.  Include the above 'checking host system type...'
1435 line.
1436 *******************************************************************
1437 " >&2;}
1438    { (exit 1); exit 1; }; }
1439   fi
1440
1441
1442 fi;
1443
1444
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1447
1448 PORTNAME=$template
1449
1450
1451 # Pick right test-and-set (TAS) code.  Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1454 case $host in
1455   hppa*-*-hpux*)        need_tas=yes; tas_file=hpux_hppa.s ;;
1456   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1458   *)                need_tas=no;  tas_file=dummy.s ;;
1459 esac
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1461
1462
1463 if test "$need_tas" = yes ; then
1464   TAS=tas.o
1465 fi
1466
1467
1468
1469
1470 ##
1471 ## Command line options
1472 ##
1473
1474
1475 #
1476 # Add non-standard directories to the include path
1477 #
1478
1479
1480
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483   withval="$with_includes"
1484
1485   case $withval in
1486     yes)
1487       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489    { (exit 1); exit 1; }; }
1490       ;;
1491     no)
1492       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494    { (exit 1); exit 1; }; }
1495       ;;
1496     *)
1497
1498       ;;
1499   esac
1500
1501 fi;
1502
1503
1504
1505 #
1506 # Add non-standard directories to the library search path
1507 #
1508
1509
1510
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513   withval="$with_libraries"
1514
1515   case $withval in
1516     yes)
1517       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519    { (exit 1); exit 1; }; }
1520       ;;
1521     no)
1522       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524    { (exit 1); exit 1; }; }
1525       ;;
1526     *)
1527       LIBRARY_DIRS=$withval
1528       ;;
1529   esac
1530
1531 fi;
1532
1533
1534
1535
1536
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539   withval="$with_libs"
1540
1541   case $withval in
1542     yes)
1543       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545    { (exit 1); exit 1; }; }
1546       ;;
1547     no)
1548       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550    { (exit 1); exit 1; }; }
1551       ;;
1552     *)
1553       LIBRARY_DIRS=$withval
1554       ;;
1555   esac
1556
1557 fi;
1558
1559
1560
1561 #
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 #
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1566
1567
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570   enableval="$enable_integer_datetimes"
1571
1572   case $enableval in
1573     yes)
1574
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1577 _ACEOF
1578
1579       ;;
1580     no)
1581       :
1582       ;;
1583     *)
1584       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586    { (exit 1); exit 1; }; }
1587       ;;
1588   esac
1589
1590 else
1591   enable_integer_datetimes=no
1592
1593 fi;
1594
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1597
1598
1599 #
1600 # NLS
1601 #
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1604
1605
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608   enableval="$enable_nls"
1609
1610   case $enableval in
1611     yes)
1612       :
1613       ;;
1614     no)
1615       :
1616       ;;
1617     *)
1618       enable_nls=yes
1619 WANTED_LANGUAGES=$enableval
1620       ;;
1621   esac
1622
1623 else
1624   enable_nls=no
1625 fi;
1626
1627
1628 if test "$enable_nls" = yes; then
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1632 _ACEOF
1633
1634 fi
1635
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1638
1639
1640
1641 #
1642 # Default port number (--with-pgport), default 5432
1643 #
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1646
1647
1648
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651   withval="$with_pgport"
1652
1653   case $withval in
1654     yes)
1655       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657    { (exit 1); exit 1; }; }
1658       ;;
1659     no)
1660       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662    { (exit 1); exit 1; }; }
1663       ;;
1664     *)
1665       default_port=$withval
1666       ;;
1667   esac
1668
1669 else
1670   default_port=5432
1671 fi;
1672
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1684 _ACEOF
1685
1686
1687
1688 #
1689 # Option to disable shared libraries
1690 #
1691
1692
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695   enableval="$enable_shared"
1696
1697   case $enableval in
1698     yes)
1699       :
1700       ;;
1701     no)
1702       :
1703       ;;
1704     *)
1705       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707    { (exit 1); exit 1; }; }
1708       ;;
1709   esac
1710
1711 else
1712   enable_shared=yes
1713
1714 fi;
1715
1716
1717
1718 #
1719 # '-rpath'-like feature can be disabled
1720 #
1721
1722
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725   enableval="$enable_rpath"
1726
1727   case $enableval in
1728     yes)
1729       :
1730       ;;
1731     no)
1732       :
1733       ;;
1734     *)
1735       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737    { (exit 1); exit 1; }; }
1738       ;;
1739   esac
1740
1741 else
1742   enable_rpath=yes
1743
1744 fi;
1745
1746
1747
1748
1749 #
1750 # --enable-debug adds -g to compiler flags
1751 #
1752
1753
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756   enableval="$enable_debug"
1757
1758   case $enableval in
1759     yes)
1760       :
1761       ;;
1762     no)
1763       :
1764       ;;
1765     *)
1766       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768    { (exit 1); exit 1; }; }
1769       ;;
1770   esac
1771
1772 else
1773   enable_debug=no
1774
1775 fi;
1776
1777
1778
1779 #
1780 # C compiler
1781 #
1782
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1785 # variable.
1786
1787
1788
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1791   withval="$with_CC"
1792
1793   case $withval in
1794     yes)
1795       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797    { (exit 1); exit 1; }; }
1798       ;;
1799     no)
1800       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802    { (exit 1); exit 1; }; }
1803       ;;
1804     *)
1805       CC=$with_CC
1806       ;;
1807   esac
1808
1809 fi;
1810
1811
1812 case $template in
1813   aix) pgac_cc_list="gcc xlc";;
1814  irix) pgac_cc_list="cc";; # no gcc
1815     *) pgac_cc_list="gcc cc";;
1816 esac
1817
1818 ac_ext=c
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824   for ac_prog in $pgac_cc_list
1825   do
1826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861     test -n "$CC" && break
1862   done
1863 fi
1864 if test -z "$CC"; then
1865   ac_ct_CC=$CC
1866   for ac_prog in $pgac_cc_list
1867 do
1868   # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="$ac_prog"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   test -n "$ac_ct_CC" && break
1904 done
1905
1906   CC=$ac_ct_CC
1907 fi
1908
1909
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912    { (exit 1); exit 1; }; }
1913
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916      "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919   (eval $ac_compiler --version </dev/null >&5) 2>&5
1920   ac_status=$?
1921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922   (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924   (eval $ac_compiler -v </dev/null >&5) 2>&5
1925   ac_status=$?
1926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927   (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929   (eval $ac_compiler -V </dev/null >&5) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }
1933
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1937
1938 #ifdef F77_DUMMY_MAIN
1939 #  ifdef __cplusplus
1940      extern "C"
1941 #  endif
1942    int F77_DUMMY_MAIN() { return 1; }
1943 #endif
1944 int
1945 main ()
1946 {
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1956 # of exeext.
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961   (eval $ac_link_default) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; then
1965   # Find the output, starting from the most likely.  This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967 # resort.
1968
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971 ac_cv_exeext=
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973                 ls a.out conftest 2>/dev/null;
1974                 ls a.* conftest.* 2>/dev/null`; do
1975   case $ac_file in
1976     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977     a.out ) # We found the default executable, but exeext='' is most
1978             # certainly right.
1979             break;;
1980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1982           export ac_cv_exeext
1983           break;;
1984     * ) break;;
1985   esac
1986 done
1987 else
1988   echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992    { (exit 77); exit 77; }; }
1993 fi
1994
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1998
1999 # Check the compiler produces executables we can run.  If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006   if { ac_try='./$ac_file'
2007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008   (eval $ac_try) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; }; then
2012     cross_compiling=no
2013   else
2014     if test "$cross_compiling" = maybe; then
2015         cross_compiling=yes
2016     else
2017         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021    { (exit 1); exit 1; }; }
2022     fi
2023   fi
2024 fi
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2027
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run.  If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2036
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040   (eval $ac_link) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2047 # `rm'.
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2049   case $ac_file in
2050     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052           export ac_cv_exeext
2053           break;;
2054     * ) break;;
2055   esac
2056 done
2057 else
2058   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2069 ac_exeext=$EXEEXT
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2078
2079 #ifdef F77_DUMMY_MAIN
2080 #  ifdef __cplusplus
2081      extern "C"
2082 #  endif
2083    int F77_DUMMY_MAIN() { return 1; }
2084 #endif
2085 int
2086 main ()
2087 {
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; then
2099   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2100   case $ac_file in
2101     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2103        break;;
2104   esac
2105 done
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115 fi
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2119 ac_objext=$OBJEXT
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128
2129 #ifdef F77_DUMMY_MAIN
2130 #  ifdef __cplusplus
2131      extern "C"
2132 #  endif
2133    int F77_DUMMY_MAIN() { return 1; }
2134 #endif
2135 int
2136 main ()
2137 {
2138 #ifndef __GNUC__
2139        choke me
2140 #endif
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   ac_compiler_gnu=yes
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_compiler_gnu=no
2163 fi
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2173 CFLAGS="-g"
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2182
2183 #ifdef F77_DUMMY_MAIN
2184 #  ifdef __cplusplus
2185      extern "C"
2186 #  endif
2187    int F77_DUMMY_MAIN() { return 1; }
2188 #endif
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199   (eval $ac_compile) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); } &&
2203          { ac_try='test -s conftest.$ac_objext'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; }; then
2209   ac_cv_prog_cc_g=yes
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 ac_cv_prog_cc_g=no
2214 fi
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220   CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222   if test "$GCC" = yes; then
2223     CFLAGS="-g -O2"
2224   else
2225     CFLAGS="-g"
2226   fi
2227 else
2228   if test "$GCC" = yes; then
2229     CFLAGS="-O2"
2230   else
2231     CFLAGS=
2232   fi
2233 fi
2234 # Some people use a C++ compiler to compile C.  Since we use `exit',
2235 # in C++ we need to declare it.  In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #ifndef __cplusplus
2240   choke me
2241 #endif
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245   (eval $ac_compile) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); } &&
2249          { ac_try='test -s conftest.$ac_objext'
2250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251   (eval $ac_try) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; }; then
2255   for ac_declaration in \
2256    ''\
2257    '#include <stdlib.h>' \
2258    'extern "C" void std::exit (int) throw (); using std::exit;' \
2259    'extern "C" void std::exit (int); using std::exit;' \
2260    'extern "C" void exit (int) throw ();' \
2261    'extern "C" void exit (int);' \
2262    'void exit (int);'
2263 do
2264   cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2267 #include <stdlib.h>
2268 $ac_declaration
2269 #ifdef F77_DUMMY_MAIN
2270 #  ifdef __cplusplus
2271      extern "C"
2272 #  endif
2273    int F77_DUMMY_MAIN() { return 1; }
2274 #endif
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   :
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 continue
2300 fi
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302   cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2305 $ac_declaration
2306 #ifdef F77_DUMMY_MAIN
2307 #  ifdef __cplusplus
2308      extern "C"
2309 #  endif
2310    int F77_DUMMY_MAIN() { return 1; }
2311 #endif
2312 int
2313 main ()
2314 {
2315 exit (42);
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); } &&
2326          { ac_try='test -s conftest.$ac_objext'
2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328   (eval $ac_try) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; }; then
2332   break
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 fi
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 fi
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2351 ac_ext=c
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357 # Read the template
2358 . "$srcdir/src/template/$template" || exit
2359
2360 if test "$ac_env_CFLAGS_set" = set; then
2361   CFLAGS=$ac_env_CFLAGS_value
2362 fi
2363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2364   CFLAGS="$CFLAGS -g"
2365 fi
2366 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2367 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2368
2369 # Check if the compiler still works with the template settings
2370 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2371 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2372
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 #include "confdefs.h"
2376
2377 #ifdef F77_DUMMY_MAIN
2378 #  ifdef __cplusplus
2379      extern "C"
2380 #  endif
2381    int F77_DUMMY_MAIN() { return 1; }
2382 #endif
2383 int
2384 main ()
2385 {
2386 return 0;
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393   (eval $ac_link) 2>&5
2394   ac_status=$?
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -s conftest$ac_exeext'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; }; then
2403   echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2411 echo "$as_me: error: cannot proceed" >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2415
2416 # Defend against gcc -ffastmath
2417 if test "$GCC" = yes; then
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2421
2422 #ifdef F77_DUMMY_MAIN
2423 #  ifdef __cplusplus
2424      extern "C"
2425 #  endif
2426    int F77_DUMMY_MAIN() { return 1; }
2427 #endif
2428 int
2429 main ()
2430 {
2431 #ifdef __FAST_MATH__
2432 choke me
2433 #endif
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   :
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2455 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2456    { (exit 1); exit 1; }; }
2457 fi
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2459 fi
2460
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2467 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2468 # On Suns, sometimes $CPP names a directory.
2469 if test -n "$CPP" && test -d "$CPP"; then
2470   CPP=
2471 fi
2472 if test -z "$CPP"; then
2473   if test "${ac_cv_prog_CPP+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476       # Double quotes because CPP needs to be expanded
2477     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2478     do
2479       ac_preproc_ok=false
2480 for ac_c_preproc_warn_flag in '' yes
2481 do
2482   # Use a header file that comes with gcc, so configuring glibc
2483   # with a fresh cross-compiler works.
2484   # On the NeXT, cc -E runs the code through the compiler's parser,
2485   # not just through cpp. "Syntax error" is here to catch this case.
2486   cat >conftest.$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2488 #include "confdefs.h"
2489 #include <assert.h>
2490                      Syntax error
2491 _ACEOF
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494   ac_status=$?
2495   egrep -v '^ *\+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } >/dev/null; then
2500   if test -s conftest.err; then
2501     ac_cpp_err=$ac_c_preproc_warn_flag
2502   else
2503     ac_cpp_err=
2504   fi
2505 else
2506   ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509   :
2510 else
2511   echo "$as_me: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   # Broken: fails on valid input.
2514 continue
2515 fi
2516 rm -f conftest.err conftest.$ac_ext
2517
2518   # OK, works on sane cases.  Now check whether non-existent headers
2519   # can be detected and how.
2520   cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2524 _ACEOF
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527   ac_status=$?
2528   egrep -v '^ *\+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } >/dev/null; then
2533   if test -s conftest.err; then
2534     ac_cpp_err=$ac_c_preproc_warn_flag
2535   else
2536     ac_cpp_err=
2537   fi
2538 else
2539   ac_cpp_err=yes
2540 fi
2541 if test -z "$ac_cpp_err"; then
2542   # Broken: success on invalid input.
2543 continue
2544 else
2545   echo "$as_me: failed program was:" >&5
2546   cat conftest.$ac_ext >&5
2547   # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2557   break
2558 fi
2559
2560     done
2561     ac_cv_prog_CPP=$CPP
2562
2563 fi
2564   CPP=$ac_cv_prog_CPP
2565 else
2566   ac_cv_prog_CPP=$CPP
2567 fi
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2570 ac_preproc_ok=false
2571 for ac_c_preproc_warn_flag in '' yes
2572 do
2573   # Use a header file that comes with gcc, so configuring glibc
2574   # with a fresh cross-compiler works.
2575   # On the NeXT, cc -E runs the code through the compiler's parser,
2576   # not just through cpp. "Syntax error" is here to catch this case.
2577   cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <assert.h>
2581                      Syntax error
2582 _ACEOF
2583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2585   ac_status=$?
2586   egrep -v '^ *\+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } >/dev/null; then
2591   if test -s conftest.err; then
2592     ac_cpp_err=$ac_c_preproc_warn_flag
2593   else
2594     ac_cpp_err=
2595   fi
2596 else
2597   ac_cpp_err=yes
2598 fi
2599 if test -z "$ac_cpp_err"; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603   cat conftest.$ac_ext >&5
2604   # Broken: fails on valid input.
2605 continue
2606 fi
2607 rm -f conftest.err conftest.$ac_ext
2608
2609   # OK, works on sane cases.  Now check whether non-existent headers
2610   # can be detected and how.
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 #include "confdefs.h"
2614 #include <ac_nonexistent.h>
2615 _ACEOF
2616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2618   ac_status=$?
2619   egrep -v '^ *\+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } >/dev/null; then
2624   if test -s conftest.err; then
2625     ac_cpp_err=$ac_c_preproc_warn_flag
2626   else
2627     ac_cpp_err=
2628   fi
2629 else
2630   ac_cpp_err=yes
2631 fi
2632 if test -z "$ac_cpp_err"; then
2633   # Broken: success on invalid input.
2634 continue
2635 else
2636   echo "$as_me: failed program was:" >&5
2637   cat conftest.$ac_ext >&5
2638   # Passes both tests.
2639 ac_preproc_ok=:
2640 break
2641 fi
2642 rm -f conftest.err conftest.$ac_ext
2643
2644 done
2645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646 rm -f conftest.err conftest.$ac_ext
2647 if $ac_preproc_ok; then
2648   :
2649 else
2650   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662
2663 # Create compiler version string
2664 if test x"$GCC" = x"yes" ; then
2665   cc_string="GCC `${CC} --version | sed q`"
2666 else
2667   cc_string=$CC
2668 fi
2669
2670 cat >>confdefs.h <<_ACEOF
2671 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2672 _ACEOF
2673
2674
2675
2676 #
2677 # Automatic dependency tracking
2678 #
2679
2680
2681 # Check whether --enable-depend or --disable-depend was given.
2682 if test "${enable_depend+set}" = set; then
2683   enableval="$enable_depend"
2684
2685   case $enableval in
2686     yes)
2687       autodepend=yes
2688       ;;
2689     no)
2690       :
2691       ;;
2692     *)
2693       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2694 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2695    { (exit 1); exit 1; }; }
2696       ;;
2697   esac
2698
2699 else
2700   enable_depend=no
2701
2702 fi;
2703
2704
2705
2706
2707 #
2708 # Enable assert checks
2709 #
2710
2711
2712 # Check whether --enable-cassert or --disable-cassert was given.
2713 if test "${enable_cassert+set}" = set; then
2714   enableval="$enable_cassert"
2715
2716   case $enableval in
2717     yes)
2718
2719 cat >>confdefs.h <<\_ACEOF
2720 #define USE_ASSERT_CHECKING 1
2721 _ACEOF
2722
2723       ;;
2724     no)
2725       :
2726       ;;
2727     *)
2728       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2729 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2730    { (exit 1); exit 1; }; }
2731       ;;
2732   esac
2733
2734 else
2735   enable_cassert=no
2736
2737 fi;
2738
2739
2740
2741 #
2742 # Include directories
2743 #
2744 ac_save_IFS=$IFS
2745 IFS="${IFS}:"
2746 # SRCH_INC comes from the template file
2747 for dir in $with_includes $SRCH_INC; do
2748   if test -d "$dir"; then
2749     INCLUDES="$INCLUDES -I$dir"
2750   else
2751     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2752 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2753   fi
2754 done
2755 IFS=$ac_save_IFS
2756
2757
2758
2759 #
2760 # Library directories
2761 #
2762 ac_save_IFS=$IFS
2763 IFS="${IFS}:"
2764 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2765 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2766   if test -d "$dir"; then
2767     LIBDIRS="$LIBDIRS -L$dir"
2768   else
2769     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2770 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2771   fi
2772 done
2773 IFS=$ac_save_IFS
2774
2775 #
2776 # Enable libpq to be thread-safety
2777 #
2778 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2779 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2780
2781
2782 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2783 if test "${enable_thread_safety+set}" = set; then
2784   enableval="$enable_thread_safety"
2785
2786   case $enableval in
2787     yes)
2788
2789 cat >>confdefs.h <<\_ACEOF
2790 #define USE_THREADS 1
2791 _ACEOF
2792
2793       ;;
2794     no)
2795       :
2796       ;;
2797     *)
2798       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2799 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2800    { (exit 1); exit 1; }; }
2801       ;;
2802   esac
2803
2804 else
2805   enable_thread_safety=no
2806
2807 fi;
2808
2809 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2810 echo "${ECHO_T}$enable_thread_safety" >&6
2811
2812
2813 #
2814 # Tcl/Tk
2815 #
2816 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2817 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2818
2819
2820
2821 # Check whether --with-tcl or --without-tcl was given.
2822 if test "${with_tcl+set}" = set; then
2823   withval="$with_tcl"
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-tcl option" >&5
2834 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2835    { (exit 1); exit 1; }; }
2836       ;;
2837   esac
2838
2839 else
2840   with_tcl=no
2841
2842 fi;
2843
2844 echo "$as_me:$LINENO: result: $with_tcl" >&5
2845 echo "${ECHO_T}$with_tcl" >&6
2846
2847
2848 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2849 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2850 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2851 if test "$with_tcl" = yes; then
2852
2853
2854
2855 # Check whether --with-tk or --without-tk was given.
2856 if test "${with_tk+set}" = set; then
2857   withval="$with_tk"
2858
2859   case $withval in
2860     yes)
2861       :
2862       ;;
2863     no)
2864       :
2865       ;;
2866     *)
2867       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2868 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2869    { (exit 1); exit 1; }; }
2870       ;;
2871   esac
2872
2873 else
2874   with_tk=yes
2875
2876 fi;
2877
2878 else
2879   with_tk=no
2880 fi
2881 echo "$as_me:$LINENO: result: $with_tk" >&5
2882 echo "${ECHO_T}$with_tk" >&6
2883
2884
2885
2886 # We see if the path to the Tcl/Tk configuration scripts is specified.
2887 # This will override the use of tclsh to find the paths to search.
2888
2889
2890
2891
2892 # Check whether --with-tclconfig or --without-tclconfig was given.
2893 if test "${with_tclconfig+set}" = set; then
2894   withval="$with_tclconfig"
2895
2896   case $withval in
2897     yes)
2898       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2899 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2900    { (exit 1); exit 1; }; }
2901       ;;
2902     no)
2903       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2904 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2905    { (exit 1); exit 1; }; }
2906       ;;
2907     *)
2908
2909       ;;
2910   esac
2911
2912 fi;
2913
2914
2915 # We see if the path to the Tk configuration scripts is specified.
2916 # This will override the use of tclsh to find the paths to search.
2917
2918
2919
2920
2921 # Check whether --with-tkconfig or --without-tkconfig was given.
2922 if test "${with_tkconfig+set}" = set; then
2923   withval="$with_tkconfig"
2924
2925   case $withval in
2926     yes)
2927       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2928 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2929    { (exit 1); exit 1; }; }
2930       ;;
2931     no)
2932       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2933 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2934    { (exit 1); exit 1; }; }
2935       ;;
2936     *)
2937
2938       ;;
2939   esac
2940
2941 fi;
2942
2943
2944 #
2945 # Optionally build Perl modules (PL/Perl)
2946 #
2947 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2948 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2949
2950
2951
2952 # Check whether --with-perl or --without-perl was given.
2953 if test "${with_perl+set}" = set; then
2954   withval="$with_perl"
2955
2956   case $withval in
2957     yes)
2958       :
2959       ;;
2960     no)
2961       :
2962       ;;
2963     *)
2964       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2965 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2966    { (exit 1); exit 1; }; }
2967       ;;
2968   esac
2969
2970 else
2971   with_perl=no
2972
2973 fi;
2974
2975 echo "$as_me:$LINENO: result: $with_perl" >&5
2976 echo "${ECHO_T}$with_perl" >&6
2977
2978
2979 #
2980 # Optionally build Python interface module
2981 #
2982 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2983 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2984
2985
2986
2987 # Check whether --with-python or --without-python was given.
2988 if test "${with_python+set}" = set; then
2989   withval="$with_python"
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-python option" >&5
3000 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3001    { (exit 1); exit 1; }; }
3002       ;;
3003   esac
3004
3005 else
3006   with_python=no
3007
3008 fi;
3009
3010 echo "$as_me:$LINENO: result: $with_python" >&5
3011 echo "${ECHO_T}$with_python" >&6
3012
3013
3014 #
3015 # Optionally build the Java/JDBC tools
3016 #
3017 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3018 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3019
3020
3021
3022 # Check whether --with-java or --without-java was given.
3023 if test "${with_java+set}" = set; then
3024   withval="$with_java"
3025
3026   case $withval in
3027     yes)
3028       echo "$as_me:$LINENO: result: yes" >&5
3029 echo "${ECHO_T}yes" >&6
3030
3031   for ac_prog in jakarta-ant ant ant.sh ant.bat
3032 do
3033   # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_path_ANT+set}" = set; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   case $ANT in
3041   [\\/]* | ?:[\\/]*)
3042   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3043   ;;
3044   *)
3045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058
3059   ;;
3060 esac
3061 fi
3062 ANT=$ac_cv_path_ANT
3063
3064 if test -n "$ANT"; then
3065   echo "$as_me:$LINENO: result: $ANT" >&5
3066 echo "${ECHO_T}$ANT" >&6
3067 else
3068   echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3070 fi
3071
3072   test -n "$ANT" && break
3073 done
3074
3075
3076   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3077 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3078 if test "${pgac_cv_prog_ant_works+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081
3082     cat > conftest.java << EOF
3083 public class conftest {
3084     int testmethod(int a, int b) {
3085         return a + b;
3086     }
3087 }
3088 EOF
3089
3090     cat > conftest.xml << EOF
3091 <project name="conftest" default="conftest">
3092  <target name="conftest">
3093   <javac srcdir="." includes="conftest.java">
3094   </javac>
3095  </target>
3096 </project>
3097 EOF
3098
3099     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3100     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3101   (eval $pgac_cmd) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }
3105     pgac_save_status=$?
3106     if test $? = 0 && test -f ./conftest.class ; then
3107       pgac_cv_prog_ant_works=yes
3108     else
3109       echo "configure: failed java program was:" >&5
3110       cat conftest.java >&5
3111       echo "configure: failed build file was:" >&5
3112       cat conftest.xml >&5
3113       pgac_cv_prog_ant_works=no
3114     fi
3115
3116     rm -f conftest* core core.* *.core
3117
3118 fi
3119 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3120 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3121
3122   if test "$pgac_cv_prog_ant_works" != yes; then
3123     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3124 echo "$as_me: error: ant does not work" >&2;}
3125    { (exit 1); exit 1; }; }
3126   fi
3127
3128
3129 if test -z "$ANT"; then
3130   { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3131 If you have Ant already installed, see config.log for details on the failure." >&5
3132 echo "$as_me: error: Ant is required to build Java components
3133 If you have Ant already installed, see config.log for details on the failure." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3137   { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3138 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3139    { (exit 1); exit 1; }; }
3140 fi
3141       ;;
3142     no)
3143       echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3145       ;;
3146     *)
3147       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3148 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3149    { (exit 1); exit 1; }; }
3150       ;;
3151   esac
3152
3153 else
3154   with_java=no
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3157 fi;
3158
3159
3160
3161
3162 #
3163 # Kerberos 4
3164 #
3165 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3166 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3167
3168
3169
3170 # Check whether --with-krb4 or --without-krb4 was given.
3171 if test "${with_krb4+set}" = set; then
3172   withval="$with_krb4"
3173
3174   case $withval in
3175     yes)
3176       krb4_prefix=/usr/athena
3177       ;;
3178     no)
3179       :
3180       ;;
3181     *)
3182       with_krb4=yes
3183 krb4_prefix=$withval
3184       ;;
3185   esac
3186
3187 else
3188   with_krb4=no
3189 fi;
3190
3191
3192 if test "$with_krb4" = yes; then
3193
3194   echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6
3196
3197 cat >>confdefs.h <<\_ACEOF
3198 #define KRB4 1
3199 _ACEOF
3200
3201
3202   if test -d "$krb4_prefix/include"; then
3203     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3204   fi
3205   if test -d "$krb4_prefix/lib"; then
3206     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3207   fi
3208
3209   krb_srvtab="/etc/srvtab"
3210
3211 else
3212   echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3214 fi
3215
3216
3217
3218
3219
3220 #
3221 # Kerberos 5
3222 #
3223 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3224 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3225
3226
3227
3228 # Check whether --with-krb5 or --without-krb5 was given.
3229 if test "${with_krb5+set}" = set; then
3230   withval="$with_krb5"
3231
3232   case $withval in
3233     yes)
3234       krb5_prefix=/usr/athena
3235       ;;
3236     no)
3237       :
3238       ;;
3239     *)
3240       with_krb5=yes
3241 krb5_prefix=$withval
3242       ;;
3243   esac
3244
3245 else
3246   with_krb5=no
3247 fi;
3248
3249
3250 if test "$with_krb5" = yes; then
3251
3252   echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254
3255 cat >>confdefs.h <<\_ACEOF
3256 #define KRB5 1
3257 _ACEOF
3258
3259
3260   if test -d "$krb5_prefix/include"; then
3261     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3262   fi
3263   if test -d "$krb5_prefix/lib"; then
3264     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3265   fi
3266
3267   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3268
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272 fi
3273
3274
3275
3276
3277
3278 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3279 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3280   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3281 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3282    { (exit 1); exit 1; }; }
3283 fi
3284
3285
3286
3287
3288 #
3289 # Kerberos configuration parameters
3290 #
3291
3292
3293
3294 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3295 if test "${with_krb_srvnam+set}" = set; then
3296   withval="$with_krb_srvnam"
3297
3298   case $withval in
3299     yes)
3300       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3301 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3302    { (exit 1); exit 1; }; }
3303       ;;
3304     no)
3305       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3306 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3307    { (exit 1); exit 1; }; }
3308       ;;
3309     *)
3310
3311       ;;
3312   esac
3313
3314 else
3315   with_krb_srvnam="postgres"
3316 fi;
3317
3318
3319 cat >>confdefs.h <<_ACEOF
3320 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3321 _ACEOF
3322
3323
3324
3325 #
3326 # PAM
3327 #
3328 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3329 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3330
3331
3332
3333 # Check whether --with-pam or --without-pam was given.
3334 if test "${with_pam+set}" = set; then
3335   withval="$with_pam"
3336
3337   case $withval in
3338     yes)
3339
3340 cat >>confdefs.h <<\_ACEOF
3341 #define USE_PAM 1
3342 _ACEOF
3343
3344       ;;
3345     no)
3346       :
3347       ;;
3348     *)
3349       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3350 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3351    { (exit 1); exit 1; }; }
3352       ;;
3353   esac
3354
3355 else
3356   with_pam=no
3357
3358 fi;
3359
3360 echo "$as_me:$LINENO: result: $with_pam" >&5
3361 echo "${ECHO_T}$with_pam" >&6
3362
3363
3364
3365 #
3366 # Rendezvous
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3369 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-rendezvous or --without-rendezvous was given.
3374 if test "${with_rendezvous+set}" = set; then
3375   withval="$with_rendezvous"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_RENDEZVOUS 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3390 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_rendezvous=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3401 echo "${ECHO_T}$with_rendezvous" >&6
3402
3403
3404
3405 #
3406 # OpenSSL
3407 #
3408
3409
3410
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413   withval="$with_openssl"
3414
3415   case $withval in
3416     yes)
3417       openssl_prefix=/usr/local/ssl
3418       ;;
3419     no)
3420       :
3421       ;;
3422     *)
3423       with_openssl=yes
3424 openssl_prefix=$withval
3425       ;;
3426   esac
3427
3428 else
3429   with_openssl=no
3430 fi;
3431
3432
3433 if test "$with_openssl" = yes; then
3434
3435   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3437
3438 cat >>confdefs.h <<\_ACEOF
3439 #define USE_SSL 1
3440 _ACEOF
3441
3442
3443   if test -d "${openssl_prefix}/include" ; then
3444     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3445   fi
3446   if test -d "${openssl_prefix}/lib" ; then
3447     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3448   fi
3449
3450 fi
3451
3452
3453
3454
3455
3456 #
3457 # Readline
3458 #
3459
3460
3461
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464   withval="$with_readline"
3465
3466   case $withval in
3467     yes)
3468       :
3469       ;;
3470     no)
3471       :
3472       ;;
3473     *)
3474       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476    { (exit 1); exit 1; }; }
3477       ;;
3478   esac
3479
3480 else
3481   with_readline=yes
3482
3483 fi;
3484
3485
3486 #
3487 # Zlib
3488 #
3489
3490
3491
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494   withval="$with_zlib"
3495
3496   case $withval in
3497     yes)
3498       :
3499       ;;
3500     no)
3501       :
3502       ;;
3503     *)
3504       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506    { (exit 1); exit 1; }; }
3507       ;;
3508   esac
3509
3510 else
3511   with_zlib=yes
3512
3513 fi;
3514
3515
3516
3517 #
3518 # Elf
3519 #
3520
3521 # Assume system is ELF if it predefines __ELF__ as 1,
3522 # otherwise believe host_os based default.
3523 case $host_os in
3524     freebsd1*|freebsd2*) elf=no;;
3525     freebsd3*|freebsd4*) elf=yes;;
3526 esac
3527
3528
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3531 #include "confdefs.h"
3532 #if __ELF__
3533   yes
3534 #endif
3535
3536 _ACEOF
3537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538   egrep "yes" >/dev/null 2>&1; then
3539   ELF_SYS=true
3540 else
3541   if test "X$elf" = "Xyes" ; then
3542   ELF_SYS=true
3543 else
3544   ELF_SYS=
3545 fi
3546 fi
3547 rm -f conftest*
3548
3549
3550
3551 #
3552 # Assignments
3553 #
3554
3555 CPPFLAGS="$CPPFLAGS $INCLUDES"
3556 LDFLAGS="$LDFLAGS $LIBDIRS"
3557
3558 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3559 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3560 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3561 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3562
3563
3564 for ac_prog in gawk mawk nawk awk
3565 do
3566   # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_AWK+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573   if test -n "$AWK"; then
3574   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581   for ac_exec_ext in '' $ac_executable_extensions; do
3582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583     ac_cv_prog_AWK="$ac_prog"
3584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588 done
3589
3590 fi
3591 fi
3592 AWK=$ac_cv_prog_AWK
3593 if test -n "$AWK"; then
3594   echo "$as_me:$LINENO: result: $AWK" >&5
3595 echo "${ECHO_T}$AWK" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601   test -n "$AWK" && break
3602 done
3603
3604 echo "$as_me:$LINENO: checking for flex" >&5
3605 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3606 if test "${pgac_cv_path_flex+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   # Let the user override the test
3610 if test -n "$FLEX"; then
3611   pgac_cv_path_flex=$FLEX
3612 else
3613   pgac_save_IFS=$IFS
3614   IFS=:
3615   for pgac_dir in $PATH; do
3616     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3617       pgac_dir=`pwd`
3618     fi
3619     for pgac_prog in flex lex; do
3620       pgac_candidate="$pgac_dir/$pgac_prog"
3621       if test -f "$pgac_candidate" \
3622         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3623       then
3624         echo '%%'  > conftest.l
3625         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3626           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3627             pgac_broken_flex=$pgac_candidate
3628             continue
3629           fi
3630
3631           pgac_cv_path_flex=$pgac_candidate
3632           break 2
3633         fi
3634       fi
3635     done
3636   done
3637   IFS=$pgac_save_IFS
3638   rm -f conftest.l
3639   : ${pgac_cv_path_flex=no}
3640 fi
3641
3642 fi
3643 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3644 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3645 if test x"$pgac_cv_path_flex" = x"no"; then
3646   if test -n "$pgac_broken_flex"; then
3647     { echo "$as_me:$LINENO: WARNING:
3648 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3649 *** should get version 2.5.4 or later." >&5
3650 echo "$as_me: WARNING:
3651 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3652 *** should get version 2.5.4 or later." >&2;}
3653   fi
3654
3655   { echo "$as_me:$LINENO: WARNING:
3656 *** Without Flex you will not be able to build PostgreSQL from CVS or
3657 *** change any of the scanner definition files.  You can obtain Flex from
3658 *** a GNU mirror site.  (If you are using the official distribution of
3659 *** PostgreSQL then you do not need to worry about this because the Flex
3660 *** output is pre-generated.)" >&5
3661 echo "$as_me: WARNING:
3662 *** Without Flex you will not be able to build PostgreSQL from CVS or
3663 *** change any of the scanner definition files.  You can obtain Flex from
3664 *** a GNU mirror site.  (If you are using the official distribution of
3665 *** PostgreSQL then you do not need to worry about this because the Flex
3666 *** output is pre-generated.)" >&2;}
3667 fi
3668
3669 if test x"$pgac_cv_path_flex" = x"no"; then
3670   FLEX=
3671 else
3672   FLEX=$pgac_cv_path_flex
3673 fi
3674
3675
3676
3677
3678 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3680 LN_S=$as_ln_s
3681 if test "$LN_S" = "ln -s"; then
3682   echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3684 else
3685   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3686 echo "${ECHO_T}no, using $LN_S" >&6
3687 fi
3688
3689
3690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3691 if test "${with_gnu_ld+set}" = set; then
3692   withval="$with_gnu_ld"
3693   test "$withval" = no || with_gnu_ld=yes
3694 else
3695   with_gnu_ld=no
3696 fi;
3697 ac_prog=ld
3698 if test "$GCC" = yes; then
3699   # Check if gcc -print-prog-name=ld gives a path.
3700   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3701 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3702   case $host in
3703   *-*-mingw*)
3704     # gcc leaves a trailing carriage return which upsets mingw
3705     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3706   *)
3707     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3708   esac
3709   case "$ac_prog" in
3710     # Accept absolute paths.
3711     [\\/]* | [A-Za-z]:[\\/]*)
3712       re_direlt='/[^/][^/]*/\.\./'
3713       # Canonicalize the path of ld
3714       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3715       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3716         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3717       done
3718       test -z "$LD" && LD="$ac_prog"
3719       ;;
3720   "")
3721     # If it fails, then pretend we aren't using GCC.
3722     ac_prog=ld
3723     ;;
3724   *)
3725     # If it is relative, then search for the first ld in PATH.
3726     with_gnu_ld=unknown
3727     ;;
3728   esac
3729 elif test "$with_gnu_ld" = yes; then
3730   echo "$as_me:$LINENO: checking for GNU ld" >&5
3731 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3732 else
3733   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3734 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3735 fi
3736 if test "${ac_cv_path_LD+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -z "$LD"; then
3740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3741   for ac_dir in $PATH; do
3742     test -z "$ac_dir" && ac_dir=.
3743     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3744       ac_cv_path_LD="$ac_dir/$ac_prog"
3745       # Check to see if the program is GNU ld.  I'd rather use --version,
3746       # but apparently some GNU ld's only accept -v.
3747       # Break only if it was the GNU/non-GNU ld that we prefer.
3748       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3749         test "$with_gnu_ld" != no && break
3750       else
3751         test "$with_gnu_ld" != yes && break
3752       fi
3753     fi
3754   done
3755   IFS="$ac_save_ifs"
3756 else
3757   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3758 fi
3759 fi
3760
3761 LD="$ac_cv_path_LD"
3762 if test -n "$LD"; then
3763   echo "$as_me:$LINENO: result: $LD" >&5
3764 echo "${ECHO_T}$LD" >&6
3765 else
3766   echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768 fi
3769 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3770 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3771    { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3773 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3774 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3778 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3779   ac_cv_prog_gnu_ld=yes
3780 else
3781   ac_cv_prog_gnu_ld=no
3782 fi
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3785 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3786 with_gnu_ld=$ac_cv_prog_gnu_ld
3787
3788
3789
3790
3791 case $host_os in sysv5*)
3792   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3793 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3794 if test "${pgac_cv_prog_ld_R+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797
3798     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3799     cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 #include "confdefs.h"
3802
3803 #ifdef F77_DUMMY_MAIN
3804 #  ifdef __cplusplus
3805      extern "C"
3806 #  endif
3807    int F77_DUMMY_MAIN() { return 1; }
3808 #endif
3809 int
3810 main ()
3811 {
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext conftest$ac_exeext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819   (eval $ac_link) 2>&5
3820   ac_status=$?
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } &&
3823          { ac_try='test -s conftest$ac_exeext'
3824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825   (eval $ac_try) 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; }; then
3829   pgac_cv_prog_ld_R=yes
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 pgac_cv_prog_ld_R=no
3834 fi
3835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3836     LDFLAGS=$pgac_save_LDFLAGS
3837
3838 fi
3839 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3840 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3841   ld_R_works=$pgac_cv_prog_ld_R
3842
3843 esac
3844 if test -n "$ac_tool_prefix"; then
3845   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_RANLIB+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$RANLIB"; then
3853   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869 fi
3870 fi
3871 RANLIB=$ac_cv_prog_RANLIB
3872 if test -n "$RANLIB"; then
3873   echo "$as_me:$LINENO: result: $RANLIB" >&5
3874 echo "${ECHO_T}$RANLIB" >&6
3875 else
3876   echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3878 fi
3879
3880 fi
3881 if test -z "$ac_cv_prog_RANLIB"; then
3882   ac_ct_RANLIB=$RANLIB
3883   # Extract the first word of "ranlib", so it can be a program name with args.
3884 set dummy ranlib; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   if test -n "$ac_ct_RANLIB"; then
3891   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     ac_cv_prog_ac_ct_RANLIB="ranlib"
3901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905 done
3906
3907   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3908 fi
3909 fi
3910 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3911 if test -n "$ac_ct_RANLIB"; then
3912   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3913 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3914 else
3915   echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917 fi
3918
3919   RANLIB=$ac_ct_RANLIB
3920 else
3921   RANLIB="$ac_cv_prog_RANLIB"
3922 fi
3923
3924 for ac_prog in lorder
3925 do
3926   # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_LORDER+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$LORDER"; then
3934   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_LORDER="$ac_prog"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949
3950 fi
3951 fi
3952 LORDER=$ac_cv_prog_LORDER
3953 if test -n "$LORDER"; then
3954   echo "$as_me:$LINENO: result: $LORDER" >&5
3955 echo "${ECHO_T}$LORDER" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961   test -n "$LORDER" && break
3962 done
3963
3964 # Extract the first word of "tar", so it can be a program name with args.
3965 set dummy tar; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_path_TAR+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   case $TAR in
3972   [\\/]* | ?:[\\/]*)
3973   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3974   ;;
3975   *)
3976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988 done
3989
3990   ;;
3991 esac
3992 fi
3993 TAR=$ac_cv_path_TAR
3994
3995 if test -n "$TAR"; then
3996   echo "$as_me:$LINENO: result: $TAR" >&5
3997 echo "${ECHO_T}$TAR" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003
4004   if test -n "$ac_tool_prefix"; then
4005   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}strip; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_STRIP+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   if test -n "$STRIP"; then
4013   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029 fi
4030 fi
4031 STRIP=$ac_cv_prog_STRIP
4032 if test -n "$STRIP"; then
4033   echo "$as_me:$LINENO: result: $STRIP" >&5
4034 echo "${ECHO_T}$STRIP" >&6
4035 else
4036   echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040 fi
4041 if test -z "$ac_cv_prog_STRIP"; then
4042   ac_ct_STRIP=$STRIP
4043   # Extract the first word of "strip", so it can be a program name with args.
4044 set dummy strip; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$ac_ct_STRIP"; then
4051   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_ac_ct_STRIP="strip"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4068 fi
4069 fi
4070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4071 if test -n "$ac_ct_STRIP"; then
4072   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4073 echo "${ECHO_T}$ac_ct_STRIP" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079   STRIP=$ac_ct_STRIP
4080 else
4081   STRIP="$ac_cv_prog_STRIP"
4082 fi
4083
4084
4085   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4086 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4087   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4088     STRIP_STATIC_LIB="$STRIP -x"
4089     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4090     echo "$as_me:$LINENO: result: yes" >&5
4091 echo "${ECHO_T}yes" >&6
4092   else
4093     STRIP_STATIC_LIB=:
4094     STRIP_SHARED_LIB=:
4095     echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097   fi
4098
4099
4100
4101
4102 for ac_prog in 'bison -y'
4103 do
4104   # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_YACC+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   if test -n "$YACC"; then
4112   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119   for ac_exec_ext in '' $ac_executable_extensions; do
4120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121     ac_cv_prog_YACC="$ac_prog"
4122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126 done
4127
4128 fi
4129 fi
4130 YACC=$ac_cv_prog_YACC
4131 if test -n "$YACC"; then
4132   echo "$as_me:$LINENO: result: $YACC" >&5
4133 echo "${ECHO_T}$YACC" >&6
4134 else
4135   echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137 fi
4138
4139   test -n "$YACC" && break
4140 done
4141
4142
4143 if test "$YACC"; then
4144   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4145     { echo "$as_me:$LINENO: WARNING:
4146 *** The installed version of Bison is too old.  PostgreSQL needs
4147 *** Bison version 1.875 or later." >&5
4148 echo "$as_me: WARNING:
4149 *** The installed version of Bison is too old.  PostgreSQL needs
4150 *** Bison version 1.875 or later." >&2;}
4151   fi
4152 fi
4153
4154 if test -z "$YACC"; then
4155   { echo "$as_me:$LINENO: WARNING:
4156 *** Without Bison you will not be able to build PostgreSQL from CVS or
4157 *** change any of the parser definition files.  You can obtain Bison from
4158 *** a GNU mirror site.  (If you are using the official distribution of
4159 *** PostgreSQL then you do not need to worry about this because the Bison
4160 *** output is pre-generated.)  To use a different yacc program (possible,
4161 *** but not recommended), set the environment variable YACC before running
4162 *** 'configure'." >&5
4163 echo "$as_me: WARNING:
4164 *** Without Bison you will not be able to build PostgreSQL from CVS or
4165 *** change any of the parser definition files.  You can obtain Bison from
4166 *** a GNU mirror site.  (If you are using the official distribution of
4167 *** PostgreSQL then you do not need to worry about this because the Bison
4168 *** output is pre-generated.)  To use a different yacc program (possible,
4169 *** but not recommended), set the environment variable YACC before running
4170 *** 'configure'." >&2;}
4171 fi
4172
4173
4174 # Extract the first word of "perl", so it can be a program name with args.
4175 set dummy perl; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_path_PERL+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   case $PERL in
4182   [\\/]* | ?:[\\/]*)
4183   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4184   ;;
4185   *)
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200   ;;
4201 esac
4202 fi
4203 PERL=$ac_cv_path_PERL
4204
4205 if test -n "$PERL"; then
4206   echo "$as_me:$LINENO: result: $PERL" >&5
4207 echo "${ECHO_T}$PERL" >&6
4208 else
4209   echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4211 fi
4212
4213 if test "$with_perl" = yes; then
4214
4215 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4216 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4217 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4218 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4219 echo "${ECHO_T}$perl_archlibexp" >&6
4220 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4221 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4222 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4223 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4224 echo "${ECHO_T}$perl_privlibexp" >&6
4225 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4226 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4227 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4228 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4229 echo "${ECHO_T}$perl_useshrplib" >&6
4230
4231 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4232 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4233 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4234 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4235 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4236 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4237 echo "${ECHO_T}$perl_embed_ldflags" >&6
4238 fi
4239
4240 if test "$with_python" = yes; then
4241   # Extract the first word of "python", so it can be a program name with args.
4242 set dummy python; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_path_PYTHON+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   case $PYTHON in
4249   [\\/]* | ?:[\\/]*)
4250   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4251   ;;
4252   *)
4253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266
4267   ;;
4268 esac
4269 fi
4270 PYTHON=$ac_cv_path_PYTHON
4271
4272 if test -n "$PYTHON"; then
4273   echo "$as_me:$LINENO: result: $PYTHON" >&5
4274 echo "${ECHO_T}$PYTHON" >&6
4275 else
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280 if test x"$PYTHON" = x""; then
4281   { { echo "$as_me:$LINENO: error: Python not found" >&5
4282 echo "$as_me: error: Python not found" >&2;}
4283    { (exit 1); exit 1; }; }
4284 fi
4285
4286
4287 echo "$as_me:$LINENO: checking Python installation directories" >&5
4288 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4289 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4290 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4291 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4292 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4293 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4294 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4295 python_includespec="-I${python_prefix}/include/python${python_version}"
4296 if test "$python_prefix" != "$python_execprefix"; then
4297   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4298 fi
4299
4300 # This should be enough of a message.
4301 if test "$python_prefix" != "$python_execprefix"; then
4302   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4303 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4304 else
4305   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4306 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4307 fi
4308
4309
4310
4311
4312
4313 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4314 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4315
4316 if test ! -f "$python_configdir/Makefile"; then
4317   echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4320 echo "$as_me: error: Python Makefile not found" >&2;}
4321    { (exit 1); exit 1; }; }
4322 fi
4323
4324 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4325 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4326 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4328 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4329
4330 pgac_tab="      " # tab character
4331 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"`
4332
4333 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4334 echo "${ECHO_T}${python_libspec}" >&6
4335
4336
4337 fi
4338
4339
4340 ##
4341 ## Libraries
4342 ##
4343
4344 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4345 then
4346
4347 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4348 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4349 if test "${ac_cv_lib_bsd_main+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   ac_check_lib_save_LIBS=$LIBS
4353 LIBS="-lbsd  $LIBS"
4354 cat >conftest.$ac_ext <<_ACEOF
4355 #line $LINENO "configure"
4356 #include "confdefs.h"
4357
4358
4359 #ifdef F77_DUMMY_MAIN
4360 #  ifdef __cplusplus
4361      extern "C"
4362 #  endif
4363    int F77_DUMMY_MAIN() { return 1; }
4364 #endif
4365 int
4366 main ()
4367 {
4368 main ();
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext conftest$ac_exeext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375   (eval $ac_link) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); } &&
4379          { ac_try='test -s conftest$ac_exeext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_cv_lib_bsd_main=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 ac_cv_lib_bsd_main=no
4390 fi
4391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4392 LIBS=$ac_check_lib_save_LIBS
4393 fi
4394 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4395 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4396 if test $ac_cv_lib_bsd_main = yes; then
4397   cat >>confdefs.h <<_ACEOF
4398 #define HAVE_LIBBSD 1
4399 _ACEOF
4400
4401   LIBS="-lbsd $LIBS"
4402
4403 fi
4404
4405 fi
4406
4407 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4408 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4409 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   ac_check_lib_save_LIBS=$LIBS
4413 LIBS="-lutil  $LIBS"
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4417
4418 /* Override any gcc2 internal prototype to avoid an error.  */
4419 #ifdef __cplusplus
4420 extern "C"
4421 #endif
4422 /* We use char because int might match the return type of a gcc2
4423    builtin and then its argument prototype would still apply.  */
4424 char setproctitle ();
4425 #ifdef F77_DUMMY_MAIN
4426 #  ifdef __cplusplus
4427      extern "C"
4428 #  endif
4429    int F77_DUMMY_MAIN() { return 1; }
4430 #endif
4431 int
4432 main ()
4433 {
4434 setproctitle ();
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441   (eval $ac_link) 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } &&
4445          { ac_try='test -s conftest$ac_exeext'
4446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447   (eval $ac_try) 2>&5
4448   ac_status=$?
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); }; }; then
4451   ac_cv_lib_util_setproctitle=yes
4452 else
4453   echo "$as_me: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 ac_cv_lib_util_setproctitle=no
4456 fi
4457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4459 fi
4460 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4461 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4462 if test $ac_cv_lib_util_setproctitle = yes; then
4463   cat >>confdefs.h <<_ACEOF
4464 #define HAVE_LIBUTIL 1
4465 _ACEOF
4466
4467   LIBS="-lutil $LIBS"
4468
4469 fi
4470
4471
4472 echo "$as_me:$LINENO: checking for main in -lm" >&5
4473 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4474 if test "${ac_cv_lib_m_main+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   ac_check_lib_save_LIBS=$LIBS
4478 LIBS="-lm  $LIBS"
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4482
4483
4484 #ifdef F77_DUMMY_MAIN
4485 #  ifdef __cplusplus
4486      extern "C"
4487 #  endif
4488    int F77_DUMMY_MAIN() { return 1; }
4489 #endif
4490 int
4491 main ()
4492 {
4493 main ();
4494   ;
4495   return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext conftest$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500   (eval $ac_link) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } &&
4504          { ac_try='test -s conftest$ac_exeext'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; }; then
4510   ac_cv_lib_m_main=yes
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 ac_cv_lib_m_main=no
4515 fi
4516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4517 LIBS=$ac_check_lib_save_LIBS
4518 fi
4519 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4520 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4521 if test $ac_cv_lib_m_main = yes; then
4522   cat >>confdefs.h <<_ACEOF
4523 #define HAVE_LIBM 1
4524 _ACEOF
4525
4526   LIBS="-lm $LIBS"
4527
4528 fi
4529
4530
4531 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4532 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4533 if test "${ac_cv_lib_dl_main+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   ac_check_lib_save_LIBS=$LIBS
4537 LIBS="-ldl  $LIBS"
4538 cat >conftest.$ac_ext <<_ACEOF
4539 #line $LINENO "configure"
4540 #include "confdefs.h"
4541
4542
4543 #ifdef F77_DUMMY_MAIN
4544 #  ifdef __cplusplus
4545      extern "C"
4546 #  endif
4547    int F77_DUMMY_MAIN() { return 1; }
4548 #endif
4549 int
4550 main ()
4551 {
4552 main ();
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559   (eval $ac_link) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } &&
4563          { ac_try='test -s conftest$ac_exeext'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569   ac_cv_lib_dl_main=yes
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 ac_cv_lib_dl_main=no
4574 fi
4575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4576 LIBS=$ac_check_lib_save_LIBS
4577 fi
4578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4579 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4580 if test $ac_cv_lib_dl_main = yes; then
4581   cat >>confdefs.h <<_ACEOF
4582 #define HAVE_LIBDL 1
4583 _ACEOF
4584
4585   LIBS="-ldl $LIBS"
4586
4587 fi
4588
4589
4590 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4591 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4592 if test "${ac_cv_lib_nsl_main+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   ac_check_lib_save_LIBS=$LIBS
4596 LIBS="-lnsl  $LIBS"
4597 cat >conftest.$ac_ext <<_ACEOF
4598 #line $LINENO "configure"
4599 #include "confdefs.h"
4600
4601
4602 #ifdef F77_DUMMY_MAIN
4603 #  ifdef __cplusplus
4604      extern "C"
4605 #  endif
4606    int F77_DUMMY_MAIN() { return 1; }
4607 #endif
4608 int
4609 main ()
4610 {
4611 main ();
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618   (eval $ac_link) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } &&
4622          { ac_try='test -s conftest$ac_exeext'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; }; then
4628   ac_cv_lib_nsl_main=yes
4629 else
4630   echo "$as_me: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 ac_cv_lib_nsl_main=no
4633 fi
4634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4635 LIBS=$ac_check_lib_save_LIBS
4636 fi
4637 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4638 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4639 if test $ac_cv_lib_nsl_main = yes; then
4640   cat >>confdefs.h <<_ACEOF
4641 #define HAVE_LIBNSL 1
4642 _ACEOF
4643
4644   LIBS="-lnsl $LIBS"
4645
4646 fi
4647
4648
4649 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4650 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4651 if test "${ac_cv_lib_socket_main+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   ac_check_lib_save_LIBS=$LIBS
4655 LIBS="-lsocket  $LIBS"
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 #include "confdefs.h"
4659
4660
4661 #ifdef F77_DUMMY_MAIN
4662 #  ifdef __cplusplus
4663      extern "C"
4664 #  endif
4665    int F77_DUMMY_MAIN() { return 1; }
4666 #endif
4667 int
4668 main ()
4669 {
4670 main ();
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677   (eval $ac_link) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } &&
4681          { ac_try='test -s conftest$ac_exeext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_cv_lib_socket_main=yes
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 ac_cv_lib_socket_main=no
4692 fi
4693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694 LIBS=$ac_check_lib_save_LIBS
4695 fi
4696 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4697 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4698 if test $ac_cv_lib_socket_main = yes; then
4699   cat >>confdefs.h <<_ACEOF
4700 #define HAVE_LIBSOCKET 1
4701 _ACEOF
4702
4703   LIBS="-lsocket $LIBS"
4704
4705 fi
4706
4707
4708 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4709 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4710 if test "${ac_cv_lib_ipc_main+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   ac_check_lib_save_LIBS=$LIBS
4714 LIBS="-lipc  $LIBS"
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4717 #include "confdefs.h"
4718
4719
4720 #ifdef F77_DUMMY_MAIN
4721 #  ifdef __cplusplus
4722      extern "C"
4723 #  endif
4724    int F77_DUMMY_MAIN() { return 1; }
4725 #endif
4726 int
4727 main ()
4728 {
4729 main ();
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736   (eval $ac_link) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } &&
4740          { ac_try='test -s conftest$ac_exeext'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   ac_cv_lib_ipc_main=yes
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 ac_cv_lib_ipc_main=no
4751 fi
4752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4756 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4757 if test $ac_cv_lib_ipc_main = yes; then
4758   cat >>confdefs.h <<_ACEOF
4759 #define HAVE_LIBIPC 1
4760 _ACEOF
4761
4762   LIBS="-lipc $LIBS"
4763
4764 fi
4765
4766
4767 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4768 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4769 if test "${ac_cv_lib_IPC_main+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   ac_check_lib_save_LIBS=$LIBS
4773 LIBS="-lIPC  $LIBS"
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 #include "confdefs.h"
4777
4778
4779 #ifdef F77_DUMMY_MAIN
4780 #  ifdef __cplusplus
4781      extern "C"
4782 #  endif
4783    int F77_DUMMY_MAIN() { return 1; }
4784 #endif
4785 int
4786 main ()
4787 {
4788 main ();
4789   ;
4790   return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext conftest$ac_exeext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795   (eval $ac_link) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); } &&
4799          { ac_try='test -s conftest$ac_exeext'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; }; then
4805   ac_cv_lib_IPC_main=yes
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4809 ac_cv_lib_IPC_main=no
4810 fi
4811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4812 LIBS=$ac_check_lib_save_LIBS
4813 fi
4814 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4815 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4816 if test $ac_cv_lib_IPC_main = yes; then
4817   cat >>confdefs.h <<_ACEOF
4818 #define HAVE_LIBIPC 1
4819 _ACEOF
4820
4821   LIBS="-lIPC $LIBS"
4822
4823 fi
4824
4825
4826 echo "$as_me:$LINENO: checking for main in -llc" >&5
4827 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4828 if test "${ac_cv_lib_lc_main+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   ac_check_lib_save_LIBS=$LIBS
4832 LIBS="-llc  $LIBS"
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line $LINENO "configure"
4835 #include "confdefs.h"
4836
4837
4838 #ifdef F77_DUMMY_MAIN
4839 #  ifdef __cplusplus
4840      extern "C"
4841 #  endif
4842    int F77_DUMMY_MAIN() { return 1; }
4843 #endif
4844 int
4845 main ()
4846 {
4847 main ();
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854   (eval $ac_link) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } &&
4858          { ac_try='test -s conftest$ac_exeext'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_cv_lib_lc_main=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 ac_cv_lib_lc_main=no
4869 fi
4870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4871 LIBS=$ac_check_lib_save_LIBS
4872 fi
4873 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4874 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4875 if test $ac_cv_lib_lc_main = yes; then
4876   cat >>confdefs.h <<_ACEOF
4877 #define HAVE_LIBLC 1
4878 _ACEOF
4879
4880   LIBS="-llc $LIBS"
4881
4882 fi
4883
4884
4885 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4886 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4887 if test "${ac_cv_lib_dld_main+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-ldld  $LIBS"
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 #include "confdefs.h"
4895
4896
4897 #ifdef F77_DUMMY_MAIN
4898 #  ifdef __cplusplus
4899      extern "C"
4900 #  endif
4901    int F77_DUMMY_MAIN() { return 1; }
4902 #endif
4903 int
4904 main ()
4905 {
4906 main ();
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913   (eval $ac_link) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest$ac_exeext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_lib_dld_main=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 ac_cv_lib_dld_main=no
4928 fi
4929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4931 fi
4932 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4933 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4934 if test $ac_cv_lib_dld_main = yes; then
4935   cat >>confdefs.h <<_ACEOF
4936 #define HAVE_LIBDLD 1
4937 _ACEOF
4938
4939   LIBS="-ldld $LIBS"
4940
4941 fi
4942
4943
4944 echo "$as_me:$LINENO: checking for main in -lld" >&5
4945 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4946 if test "${ac_cv_lib_ld_main+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   ac_check_lib_save_LIBS=$LIBS
4950 LIBS="-lld  $LIBS"
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 #include "confdefs.h"
4954
4955
4956 #ifdef F77_DUMMY_MAIN
4957 #  ifdef __cplusplus
4958      extern "C"
4959 #  endif
4960    int F77_DUMMY_MAIN() { return 1; }
4961 #endif
4962 int
4963 main ()
4964 {
4965 main ();
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972   (eval $ac_link) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -s conftest$ac_exeext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_cv_lib_ld_main=yes
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 ac_cv_lib_ld_main=no
4987 fi
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4992 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4993 if test $ac_cv_lib_ld_main = yes; then
4994   cat >>confdefs.h <<_ACEOF
4995 #define HAVE_LIBLD 1
4996 _ACEOF
4997
4998   LIBS="-lld $LIBS"
4999
5000 fi
5001
5002
5003 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5004 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5005 if test "${ac_cv_lib_compat_main+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   ac_check_lib_save_LIBS=$LIBS
5009 LIBS="-lcompat  $LIBS"
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 #include "confdefs.h"
5013
5014
5015 #ifdef F77_DUMMY_MAIN
5016 #  ifdef __cplusplus
5017      extern "C"
5018 #  endif
5019    int F77_DUMMY_MAIN() { return 1; }
5020 #endif
5021 int
5022 main ()
5023 {
5024 main ();
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031   (eval $ac_link) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   ac_cv_lib_compat_main=yes
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 ac_cv_lib_compat_main=no
5046 fi
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 LIBS=$ac_check_lib_save_LIBS
5049 fi
5050 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5051 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5052 if test $ac_cv_lib_compat_main = yes; then
5053   cat >>confdefs.h <<_ACEOF
5054 #define HAVE_LIBCOMPAT 1
5055 _ACEOF
5056
5057   LIBS="-lcompat $LIBS"
5058
5059 fi
5060
5061
5062 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5063 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5064 if test "${ac_cv_lib_BSD_main+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   ac_check_lib_save_LIBS=$LIBS
5068 LIBS="-lBSD  $LIBS"
5069 cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5071 #include "confdefs.h"
5072
5073
5074 #ifdef F77_DUMMY_MAIN
5075 #  ifdef __cplusplus
5076      extern "C"
5077 #  endif
5078    int F77_DUMMY_MAIN() { return 1; }
5079 #endif
5080 int
5081 main ()
5082 {
5083 main ();
5084   ;
5085   return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090   (eval $ac_link) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } &&
5094          { ac_try='test -s conftest$ac_exeext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   ac_cv_lib_BSD_main=yes
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5104 ac_cv_lib_BSD_main=no
5105 fi
5106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5107 LIBS=$ac_check_lib_save_LIBS
5108 fi
5109 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5110 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5111 if test $ac_cv_lib_BSD_main = yes; then
5112   cat >>confdefs.h <<_ACEOF
5113 #define HAVE_LIBBSD 1
5114 _ACEOF
5115
5116   LIBS="-lBSD $LIBS"
5117
5118 fi
5119
5120
5121 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5122 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5123 if test "${ac_cv_lib_gen_main+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   ac_check_lib_save_LIBS=$LIBS
5127 LIBS="-lgen  $LIBS"
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 #include "confdefs.h"
5131
5132
5133 #ifdef F77_DUMMY_MAIN
5134 #  ifdef __cplusplus
5135      extern "C"
5136 #  endif
5137    int F77_DUMMY_MAIN() { return 1; }
5138 #endif
5139 int
5140 main ()
5141 {
5142 main ();
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest.$ac_objext conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149   (eval $ac_link) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } &&
5153          { ac_try='test -s conftest$ac_exeext'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; }; then
5159   ac_cv_lib_gen_main=yes
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 ac_cv_lib_gen_main=no
5164 fi
5165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5166 LIBS=$ac_check_lib_save_LIBS
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5169 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5170 if test $ac_cv_lib_gen_main = yes; then
5171   cat >>confdefs.h <<_ACEOF
5172 #define HAVE_LIBGEN 1
5173 _ACEOF
5174
5175   LIBS="-lgen $LIBS"
5176
5177 fi
5178
5179
5180 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5181 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5182 if test "${ac_cv_lib_PW_main+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   ac_check_lib_save_LIBS=$LIBS
5186 LIBS="-lPW  $LIBS"
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 #include "confdefs.h"
5190
5191
5192 #ifdef F77_DUMMY_MAIN
5193 #  ifdef __cplusplus
5194      extern "C"
5195 #  endif
5196    int F77_DUMMY_MAIN() { return 1; }
5197 #endif
5198 int
5199 main ()
5200 {
5201 main ();
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208   (eval $ac_link) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212          { ac_try='test -s conftest$ac_exeext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_cv_lib_PW_main=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 ac_cv_lib_PW_main=no
5223 fi
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5226 fi
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5228 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5229 if test $ac_cv_lib_PW_main = yes; then
5230   cat >>confdefs.h <<_ACEOF
5231 #define HAVE_LIBPW 1
5232 _ACEOF
5233
5234   LIBS="-lPW $LIBS"
5235
5236 fi
5237
5238
5239 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5240 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5241 if test "${ac_cv_lib_resolv_main+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-lresolv  $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 #include "confdefs.h"
5249
5250
5251 #ifdef F77_DUMMY_MAIN
5252 #  ifdef __cplusplus
5253      extern "C"
5254 #  endif
5255    int F77_DUMMY_MAIN() { return 1; }
5256 #endif
5257 int
5258 main ()
5259 {
5260 main ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267   (eval $ac_link) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } &&
5271          { ac_try='test -s conftest$ac_exeext'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; }; then
5277   ac_cv_lib_resolv_main=yes
5278 else
5279   echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 ac_cv_lib_resolv_main=no
5282 fi
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5285 fi
5286 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5287 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5288 if test $ac_cv_lib_resolv_main = yes; then
5289   cat >>confdefs.h <<_ACEOF
5290 #define HAVE_LIBRESOLV 1
5291 _ACEOF
5292
5293   LIBS="-lresolv $LIBS"
5294
5295 fi
5296
5297
5298 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5299 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5300 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   ac_check_lib_save_LIBS=$LIBS
5304 LIBS="-lwsock32  $LIBS"
5305 cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 #include "confdefs.h"
5308
5309
5310 #ifdef F77_DUMMY_MAIN
5311 #  ifdef __cplusplus
5312      extern "C"
5313 #  endif
5314    int F77_DUMMY_MAIN() { return 1; }
5315 #endif
5316 int
5317 main ()
5318 {
5319 main ();
5320   ;
5321   return 0;
5322 }
5323 _ACEOF
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326   (eval $ac_link) 2>&5
5327   ac_status=$?
5328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329   (exit $ac_status); } &&
5330          { ac_try='test -s conftest$ac_exeext'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; }; then
5336   ac_cv_lib_wsock32_main=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5340 ac_cv_lib_wsock32_main=no
5341 fi
5342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5343 LIBS=$ac_check_lib_save_LIBS
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5346 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5347 if test $ac_cv_lib_wsock32_main = yes; then
5348   cat >>confdefs.h <<_ACEOF
5349 #define HAVE_LIBWSOCK32 1
5350 _ACEOF
5351
5352   LIBS="-lwsock32 $LIBS"
5353
5354 fi
5355
5356 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5357 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5358 if test "${ac_cv_search_getopt_long+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   ac_func_search_save_LIBS=$LIBS
5362 ac_cv_search_getopt_long=no
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 #include "confdefs.h"
5366
5367 /* Override any gcc2 internal prototype to avoid an error.  */
5368 #ifdef __cplusplus
5369 extern "C"
5370 #endif
5371 /* We use char because int might match the return type of a gcc2
5372    builtin and then its argument prototype would still apply.  */
5373 char getopt_long ();
5374 #ifdef F77_DUMMY_MAIN
5375 #  ifdef __cplusplus
5376      extern "C"
5377 #  endif
5378    int F77_DUMMY_MAIN() { return 1; }
5379 #endif
5380 int
5381 main ()
5382 {
5383 getopt_long ();
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext conftest$ac_exeext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390   (eval $ac_link) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } &&
5394          { ac_try='test -s conftest$ac_exeext'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; }; then
5400   ac_cv_search_getopt_long="none required"
5401 else
5402   echo "$as_me: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 fi
5405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 if test "$ac_cv_search_getopt_long" = no; then
5407   for ac_lib in getopt gnugetopt; do
5408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5409     cat >conftest.$ac_ext <<_ACEOF
5410 #line $LINENO "configure"
5411 #include "confdefs.h"
5412
5413 /* Override any gcc2 internal prototype to avoid an error.  */
5414 #ifdef __cplusplus
5415 extern "C"
5416 #endif
5417 /* We use char because int might match the return type of a gcc2
5418    builtin and then its argument prototype would still apply.  */
5419 char getopt_long ();
5420 #ifdef F77_DUMMY_MAIN
5421 #  ifdef __cplusplus
5422      extern "C"
5423 #  endif
5424    int F77_DUMMY_MAIN() { return 1; }
5425 #endif
5426 int
5427 main ()
5428 {
5429 getopt_long ();
5430   ;
5431   return 0;
5432 }
5433 _ACEOF
5434 rm -f conftest.$ac_objext conftest$ac_exeext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436   (eval $ac_link) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } &&
5440          { ac_try='test -s conftest$ac_exeext'
5441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442   (eval $ac_try) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }; }; then
5446   ac_cv_search_getopt_long="-l$ac_lib"
5447 break
5448 else
5449   echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 fi
5452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5453   done
5454 fi
5455 LIBS=$ac_func_search_save_LIBS
5456 fi
5457 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5458 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5459 if test "$ac_cv_search_getopt_long" != no; then
5460   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5461
5462 fi
5463
5464 # QNX:
5465
5466 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5467 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5468 if test "${ac_cv_lib_unix_main+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   ac_check_lib_save_LIBS=$LIBS
5472 LIBS="-lunix  $LIBS"
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 #include "confdefs.h"
5476
5477
5478 #ifdef F77_DUMMY_MAIN
5479 #  ifdef __cplusplus
5480      extern "C"
5481 #  endif
5482    int F77_DUMMY_MAIN() { return 1; }
5483 #endif
5484 int
5485 main ()
5486 {
5487 main ();
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext conftest$ac_exeext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494   (eval $ac_link) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } &&
5498          { ac_try='test -s conftest$ac_exeext'
5499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   ac_cv_lib_unix_main=yes
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 ac_cv_lib_unix_main=no
5509 fi
5510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5511 LIBS=$ac_check_lib_save_LIBS
5512 fi
5513 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5514 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5515 if test $ac_cv_lib_unix_main = yes; then
5516   cat >>confdefs.h <<_ACEOF
5517 #define HAVE_LIBUNIX 1
5518 _ACEOF
5519
5520   LIBS="-lunix $LIBS"
5521
5522 fi
5523
5524 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5525 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5526 if test "${ac_cv_search_crypt+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   ac_func_search_save_LIBS=$LIBS
5530 ac_cv_search_crypt=no
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5533 #include "confdefs.h"
5534
5535 /* Override any gcc2 internal prototype to avoid an error.  */
5536 #ifdef __cplusplus
5537 extern "C"
5538 #endif
5539 /* We use char because int might match the return type of a gcc2
5540    builtin and then its argument prototype would still apply.  */
5541 char crypt ();
5542 #ifdef F77_DUMMY_MAIN
5543 #  ifdef __cplusplus
5544      extern "C"
5545 #  endif
5546    int F77_DUMMY_MAIN() { return 1; }
5547 #endif
5548 int
5549 main ()
5550 {
5551 crypt ();
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558   (eval $ac_link) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); } &&
5562          { ac_try='test -s conftest$ac_exeext'
5563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564   (eval $ac_try) 2>&5
5565   ac_status=$?
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); }; }; then
5568   ac_cv_search_crypt="none required"
5569 else
5570   echo "$as_me: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 fi
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574 if test "$ac_cv_search_crypt" = no; then
5575   for ac_lib in crypt; do
5576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5577     cat >conftest.$ac_ext <<_ACEOF
5578 #line $LINENO "configure"
5579 #include "confdefs.h"
5580
5581 /* Override any gcc2 internal prototype to avoid an error.  */
5582 #ifdef __cplusplus
5583 extern "C"
5584 #endif
5585 /* We use char because int might match the return type of a gcc2
5586    builtin and then its argument prototype would still apply.  */
5587 char crypt ();
5588 #ifdef F77_DUMMY_MAIN
5589 #  ifdef __cplusplus
5590      extern "C"
5591 #  endif
5592    int F77_DUMMY_MAIN() { return 1; }
5593 #endif
5594 int
5595 main ()
5596 {
5597 crypt ();
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604   (eval $ac_link) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } &&
5608          { ac_try='test -s conftest$ac_exeext'
5609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610   (eval $ac_try) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_cv_search_crypt="-l$ac_lib"
5615 break
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 fi
5620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5621   done
5622 fi
5623 LIBS=$ac_func_search_save_LIBS
5624 fi
5625 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5626 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5627 if test "$ac_cv_search_crypt" != no; then
5628   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5629
5630 fi
5631
5632 # BeOS:
5633 if test "$PORTNAME" = "beos"
5634 then
5635
5636 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5637 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5638 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-lbind  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5646
5647 /* Override any gcc2 internal prototype to avoid an error.  */
5648 #ifdef __cplusplus
5649 extern "C"
5650 #endif
5651 /* We use char because int might match the return type of a gcc2
5652    builtin and then its argument prototype would still apply.  */
5653 char __inet_ntoa ();
5654 #ifdef F77_DUMMY_MAIN
5655 #  ifdef __cplusplus
5656      extern "C"
5657 #  endif
5658    int F77_DUMMY_MAIN() { return 1; }
5659 #endif
5660 int
5661 main ()
5662 {
5663 __inet_ntoa ();
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670   (eval $ac_link) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -s conftest$ac_exeext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_lib_bind___inet_ntoa=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_cv_lib_bind___inet_ntoa=no
5685 fi
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5688 fi
5689 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5690 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5691 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5692   cat >>confdefs.h <<_ACEOF
5693 #define HAVE_LIBBIND 1
5694 _ACEOF
5695
5696   LIBS="-lbind $LIBS"
5697
5698 fi
5699
5700 fi
5701 # Solaris:
5702 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5703 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5704 if test "${ac_cv_search_fdatasync+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   ac_func_search_save_LIBS=$LIBS
5708 ac_cv_search_fdatasync=no
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 #include "confdefs.h"
5712
5713 /* Override any gcc2 internal prototype to avoid an error.  */
5714 #ifdef __cplusplus
5715 extern "C"
5716 #endif
5717 /* We use char because int might match the return type of a gcc2
5718    builtin and then its argument prototype would still apply.  */
5719 char fdatasync ();
5720 #ifdef F77_DUMMY_MAIN
5721 #  ifdef __cplusplus
5722      extern "C"
5723 #  endif
5724    int F77_DUMMY_MAIN() { return 1; }
5725 #endif
5726 int
5727 main ()
5728 {
5729 fdatasync ();
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736   (eval $ac_link) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest$ac_exeext'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_cv_search_fdatasync="none required"
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 fi
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752 if test "$ac_cv_search_fdatasync" = no; then
5753   for ac_lib in rt posix4; do
5754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5755     cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 #include "confdefs.h"
5758
5759 /* Override any gcc2 internal prototype to avoid an error.  */
5760 #ifdef __cplusplus
5761 extern "C"
5762 #endif
5763 /* We use char because int might match the return type of a gcc2
5764    builtin and then its argument prototype would still apply.  */
5765 char fdatasync ();
5766 #ifdef F77_DUMMY_MAIN
5767 #  ifdef __cplusplus
5768      extern "C"
5769 #  endif
5770    int F77_DUMMY_MAIN() { return 1; }
5771 #endif
5772 int
5773 main ()
5774 {
5775 fdatasync ();
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest$ac_exeext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_search_fdatasync="-l$ac_lib"
5793 break
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 fi
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799   done
5800 fi
5801 LIBS=$ac_func_search_save_LIBS
5802 fi
5803 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5804 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5805 if test "$ac_cv_search_fdatasync" != no; then
5806   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5807
5808 fi
5809
5810 # Cygwin:
5811
5812 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5813 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5814 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   ac_check_lib_save_LIBS=$LIBS
5818 LIBS="-lcygipc  $LIBS"
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5822
5823 /* Override any gcc2 internal prototype to avoid an error.  */
5824 #ifdef __cplusplus
5825 extern "C"
5826 #endif
5827 /* We use char because int might match the return type of a gcc2
5828    builtin and then its argument prototype would still apply.  */
5829 char shmget ();
5830 #ifdef F77_DUMMY_MAIN
5831 #  ifdef __cplusplus
5832      extern "C"
5833 #  endif
5834    int F77_DUMMY_MAIN() { return 1; }
5835 #endif
5836 int
5837 main ()
5838 {
5839 shmget ();
5840   ;
5841   return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846   (eval $ac_link) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -s conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_lib_cygipc_shmget=yes
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_cygipc_shmget=no
5861 fi
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5864 fi
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5866 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5867 if test $ac_cv_lib_cygipc_shmget = yes; then
5868   cat >>confdefs.h <<_ACEOF
5869 #define HAVE_LIBCYGIPC 1
5870 _ACEOF
5871
5872   LIBS="-lcygipc $LIBS"
5873
5874 fi
5875
5876
5877 if test "$with_readline" = yes; then
5878
5879 echo "$as_me:$LINENO: checking for readline" >&5
5880 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5881
5882 if test "${pgac_cv_check_readline+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   pgac_cv_check_readline=no
5886 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5887   for pgac_rllib in -lreadline -ledit ; do
5888     pgac_save_LIBS=$LIBS
5889     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5890     cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 #include "confdefs.h"
5893
5894 /* Override any gcc2 internal prototype to avoid an error.  */
5895 #ifdef __cplusplus
5896 extern "C"
5897 #endif
5898 /* We use char because int might match the return type of a gcc2
5899    builtin and then its argument prototype would still apply.  */
5900 char readline ();
5901 #ifdef F77_DUMMY_MAIN
5902 #  ifdef __cplusplus
5903      extern "C"
5904 #  endif
5905    int F77_DUMMY_MAIN() { return 1; }
5906 #endif
5907 int
5908 main ()
5909 {
5910 readline ();
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917   (eval $ac_link) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } &&
5921          { ac_try='test -s conftest$ac_exeext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927
5928       # NetBSD and OpenBSD have a broken linker that does not
5929       # recognize dependent libraries
5930       case $host_os in netbsd* | openbsd* )
5931         case $pgac_lib in
5932           *curses*) ;;
5933           *) pgac_lib=" -lcurses" ;;
5934         esac
5935       esac
5936
5937       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5938       break 2
5939
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5943 fi
5944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5945     LIBS=$pgac_save_LIBS
5946   done
5947 done
5948 LIBS=$pgac_save_LIBS
5949
5950 fi
5951
5952 if test "$pgac_cv_check_readline" != no ; then
5953
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_LIBREADLINE 1
5956 _ACEOF
5957
5958   LIBS="$pgac_cv_check_readline $LIBS"
5959   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5960 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5961 else
5962   echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5964 fi
5965   if test x"$pgac_cv_check_readline" = x"no"; then
5966     { { echo "$as_me:$LINENO: error: readline library not found
5967 If you have readline already installed, see config.log for details on the
5968 failure.  It is possible the compiler isn't looking in the proper directory.
5969 Use --without-readline to disable readline support." >&5
5970 echo "$as_me: error: readline library not found
5971 If you have readline already installed, see config.log for details on the
5972 failure.  It is possible the compiler isn't looking in the proper directory.
5973 Use --without-readline to disable readline support." >&2;}
5974    { (exit 1); exit 1; }; }
5975   fi
5976 fi
5977
5978 if test "$with_zlib" = yes; then
5979
5980 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5981 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5982 if test "${ac_cv_lib_z_inflate+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   ac_check_lib_save_LIBS=$LIBS
5986 LIBS="-lz  $LIBS"
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5990
5991 /* Override any gcc2 internal prototype to avoid an error.  */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 /* We use char because int might match the return type of a gcc2
5996    builtin and then its argument prototype would still apply.  */
5997 char inflate ();
5998 #ifdef F77_DUMMY_MAIN
5999 #  ifdef __cplusplus
6000      extern "C"
6001 #  endif
6002    int F77_DUMMY_MAIN() { return 1; }
6003 #endif
6004 int
6005 main ()
6006 {
6007 inflate ();
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014   (eval $ac_link) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -s conftest$ac_exeext'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_lib_z_inflate=yes
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 ac_cv_lib_z_inflate=no
6029 fi
6030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6032 fi
6033 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6034 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6035 if test $ac_cv_lib_z_inflate = yes; then
6036   cat >>confdefs.h <<_ACEOF
6037 #define HAVE_LIBZ 1
6038 _ACEOF
6039
6040   LIBS="-lz $LIBS"
6041
6042 else
6043   { { echo "$as_me:$LINENO: error: zlib library not found
6044 If you have zlib already installed, see config.log for details on the
6045 failure.  It is possible the compiler isn't looking in the proper directory.
6046 Use --without-zlib to disable zlib support." >&5
6047 echo "$as_me: error: zlib library not found
6048 If you have zlib already installed, see config.log for details on the
6049 failure.  It is possible the compiler isn't looking in the proper directory.
6050 Use --without-zlib to disable zlib support." >&2;}
6051    { (exit 1); exit 1; }; }
6052 fi
6053
6054 fi
6055
6056 if test "$with_krb4" = yes ; then
6057
6058 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6059 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6060 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-ldes  $LIBS"
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6068
6069 /* Override any gcc2 internal prototype to avoid an error.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char des_encrypt ();
6076 #ifdef F77_DUMMY_MAIN
6077 #  ifdef __cplusplus
6078      extern "C"
6079 #  endif
6080    int F77_DUMMY_MAIN() { return 1; }
6081 #endif
6082 int
6083 main ()
6084 {
6085 des_encrypt ();
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>&5
6093   ac_status=$?
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } &&
6096          { ac_try='test -s conftest$ac_exeext'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; }; then
6102   ac_cv_lib_des_des_encrypt=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 ac_cv_lib_des_des_encrypt=no
6107 fi
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6110 fi
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6112 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6113 if test $ac_cv_lib_des_des_encrypt = yes; then
6114   cat >>confdefs.h <<_ACEOF
6115 #define HAVE_LIBDES 1
6116 _ACEOF
6117
6118   LIBS="-ldes $LIBS"
6119
6120 else
6121   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6122 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6123    { (exit 1); exit 1; }; }
6124 fi
6125
6126
6127 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6128 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6129 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   ac_check_lib_save_LIBS=$LIBS
6133 LIBS="-lkrb  $LIBS"
6134 cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6136 #include "confdefs.h"
6137
6138 /* Override any gcc2 internal prototype to avoid an error.  */
6139 #ifdef __cplusplus
6140 extern "C"
6141 #endif
6142 /* We use char because int might match the return type of a gcc2
6143    builtin and then its argument prototype would still apply.  */
6144 char krb_sendauth ();
6145 #ifdef F77_DUMMY_MAIN
6146 #  ifdef __cplusplus
6147      extern "C"
6148 #  endif
6149    int F77_DUMMY_MAIN() { return 1; }
6150 #endif
6151 int
6152 main ()
6153 {
6154 krb_sendauth ();
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161   (eval $ac_link) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -s conftest$ac_exeext'
6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_cv_lib_krb_krb_sendauth=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_lib_krb_krb_sendauth=no
6176 fi
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_check_lib_save_LIBS
6179 fi
6180 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6181 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6182 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6183   cat >>confdefs.h <<_ACEOF
6184 #define HAVE_LIBKRB 1
6185 _ACEOF
6186
6187   LIBS="-lkrb $LIBS"
6188
6189 else
6190   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6191 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6192    { (exit 1); exit 1; }; }
6193 fi
6194
6195
6196 for ac_func in gethostname
6197 do
6198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6199 echo "$as_me:$LINENO: checking for $ac_func" >&5
6200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_var+set}\" = set"; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208     which can conflict with char $ac_func (); below.  */
6209 #include <assert.h>
6210 /* Override any gcc2 internal prototype to avoid an error.  */
6211 #ifdef __cplusplus
6212 extern "C"
6213 #endif
6214 /* We use char because int might match the return type of a gcc2
6215    builtin and then its argument prototype would still apply.  */
6216 char $ac_func ();
6217 char (*f) ();
6218
6219 #ifdef F77_DUMMY_MAIN
6220 #  ifdef __cplusplus
6221      extern "C"
6222 #  endif
6223    int F77_DUMMY_MAIN() { return 1; }
6224 #endif
6225 int
6226 main ()
6227 {
6228 /* The GNU C library defines this for functions which it implements
6229     to always fail with ENOSYS.  Some functions are actually named
6230     something starting with __ and the normal name is an alias.  */
6231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 choke me
6233 #else
6234 f = $ac_func;
6235 #endif
6236
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243   (eval $ac_link) 2>&5
6244   ac_status=$?
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } &&
6247          { ac_try='test -s conftest$ac_exeext'
6248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249   (eval $ac_try) 2>&5
6250   ac_status=$?
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); }; }; then
6253   eval "$as_ac_var=yes"
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 eval "$as_ac_var=no"
6258 fi
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6260 fi
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6263 if test `eval echo '${'$as_ac_var'}'` = yes; then
6264   cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6266 _ACEOF
6267
6268 else
6269   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6270 fi
6271 done
6272
6273
6274 fi
6275
6276 if test "$with_krb5" = yes ; then
6277   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6278 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6279 if test "${ac_cv_search_com_err+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   ac_func_search_save_LIBS=$LIBS
6283 ac_cv_search_com_err=no
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6287
6288 /* Override any gcc2 internal prototype to avoid an error.  */
6289 #ifdef __cplusplus
6290 extern "C"
6291 #endif
6292 /* We use char because int might match the return type of a gcc2
6293    builtin and then its argument prototype would still apply.  */
6294 char com_err ();
6295 #ifdef F77_DUMMY_MAIN
6296 #  ifdef __cplusplus
6297      extern "C"
6298 #  endif
6299    int F77_DUMMY_MAIN() { return 1; }
6300 #endif
6301 int
6302 main ()
6303 {
6304 com_err ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311   (eval $ac_link) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -s conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_cv_search_com_err="none required"
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 fi
6326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327 if test "$ac_cv_search_com_err" = no; then
6328   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6330     cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6333
6334 /* Override any gcc2 internal prototype to avoid an error.  */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 /* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340 char com_err ();
6341 #ifdef F77_DUMMY_MAIN
6342 #  ifdef __cplusplus
6343      extern "C"
6344 #  endif
6345    int F77_DUMMY_MAIN() { return 1; }
6346 #endif
6347 int
6348 main ()
6349 {
6350 com_err ();
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357   (eval $ac_link) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -s conftest$ac_exeext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   ac_cv_search_com_err="-l$ac_lib"
6368 break
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6372 fi
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374   done
6375 fi
6376 LIBS=$ac_func_search_save_LIBS
6377 fi
6378 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6379 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6380 if test "$ac_cv_search_com_err" != no; then
6381   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6382
6383 else
6384   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6385 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6386    { (exit 1); exit 1; }; }
6387 fi
6388
6389   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6390 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6391 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   ac_func_search_save_LIBS=$LIBS
6395 ac_cv_search_krb5_encrypt=no
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6399
6400 /* Override any gcc2 internal prototype to avoid an error.  */
6401 #ifdef __cplusplus
6402 extern "C"
6403 #endif
6404 /* We use char because int might match the return type of a gcc2
6405    builtin and then its argument prototype would still apply.  */
6406 char krb5_encrypt ();
6407 #ifdef F77_DUMMY_MAIN
6408 #  ifdef __cplusplus
6409      extern "C"
6410 #  endif
6411    int F77_DUMMY_MAIN() { return 1; }
6412 #endif
6413 int
6414 main ()
6415 {
6416 krb5_encrypt ();
6417   ;
6418   return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423   (eval $ac_link) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -s conftest$ac_exeext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   ac_cv_search_krb5_encrypt="none required"
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 fi
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 if test "$ac_cv_search_krb5_encrypt" = no; then
6440   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6442     cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445
6446 /* Override any gcc2 internal prototype to avoid an error.  */
6447 #ifdef __cplusplus
6448 extern "C"
6449 #endif
6450 /* We use char because int might match the return type of a gcc2
6451    builtin and then its argument prototype would still apply.  */
6452 char krb5_encrypt ();
6453 #ifdef F77_DUMMY_MAIN
6454 #  ifdef __cplusplus
6455      extern "C"
6456 #  endif
6457    int F77_DUMMY_MAIN() { return 1; }
6458 #endif
6459 int
6460 main ()
6461 {
6462 krb5_encrypt ();
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469   (eval $ac_link) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -s conftest$ac_exeext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   ac_cv_search_krb5_encrypt="-l$ac_lib"
6480 break
6481 else
6482   echo "$as_me: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6484 fi
6485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6486   done
6487 fi
6488 LIBS=$ac_func_search_save_LIBS
6489 fi
6490 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6491 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6492 if test "$ac_cv_search_krb5_encrypt" != no; then
6493   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6494
6495 else
6496   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6497 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6498    { (exit 1); exit 1; }; }
6499 fi
6500
6501   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6502 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6503 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   ac_func_search_save_LIBS=$LIBS
6507 ac_cv_search_krb5_sendauth=no
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line $LINENO "configure"
6510 #include "confdefs.h"
6511
6512 /* Override any gcc2 internal prototype to avoid an error.  */
6513 #ifdef __cplusplus
6514 extern "C"
6515 #endif
6516 /* We use char because int might match the return type of a gcc2
6517    builtin and then its argument prototype would still apply.  */
6518 char krb5_sendauth ();
6519 #ifdef F77_DUMMY_MAIN
6520 #  ifdef __cplusplus
6521      extern "C"
6522 #  endif
6523    int F77_DUMMY_MAIN() { return 1; }
6524 #endif
6525 int
6526 main ()
6527 {
6528 krb5_sendauth ();
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6535   (eval $ac_link) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); } &&
6539          { ac_try='test -s conftest$ac_exeext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   ac_cv_search_krb5_sendauth="none required"
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 fi
6550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6551 if test "$ac_cv_search_krb5_sendauth" = no; then
6552   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6554     cat >conftest.$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 #include "confdefs.h"
6557
6558 /* Override any gcc2 internal prototype to avoid an error.  */
6559 #ifdef __cplusplus
6560 extern "C"
6561 #endif
6562 /* We use char because int might match the return type of a gcc2
6563    builtin and then its argument prototype would still apply.  */
6564 char krb5_sendauth ();
6565 #ifdef F77_DUMMY_MAIN
6566 #  ifdef __cplusplus
6567      extern "C"
6568 #  endif
6569    int F77_DUMMY_MAIN() { return 1; }
6570 #endif
6571 int
6572 main ()
6573 {
6574 krb5_sendauth ();
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581   (eval $ac_link) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -s conftest$ac_exeext'
6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587   (eval $ac_try) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; }; then
6591   ac_cv_search_krb5_sendauth="-l$ac_lib"
6592 break
6593 else
6594   echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 fi
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598   done
6599 fi
6600 LIBS=$ac_func_search_save_LIBS
6601 fi
6602 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6603 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6604 if test "$ac_cv_search_krb5_sendauth" != no; then
6605   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6606
6607 else
6608   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6609 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6610    { (exit 1); exit 1; }; }
6611 fi
6612
6613 fi
6614
6615 if test "$with_openssl" = yes ; then
6616
6617 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6618 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6619 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   ac_check_lib_save_LIBS=$LIBS
6623 LIBS="-lcrypto  $LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 #include "confdefs.h"
6627
6628 /* Override any gcc2 internal prototype to avoid an error.  */
6629 #ifdef __cplusplus
6630 extern "C"
6631 #endif
6632 /* We use char because int might match the return type of a gcc2
6633    builtin and then its argument prototype would still apply.  */
6634 char CRYPTO_new_ex_data ();
6635 #ifdef F77_DUMMY_MAIN
6636 #  ifdef __cplusplus
6637      extern "C"
6638 #  endif
6639    int F77_DUMMY_MAIN() { return 1; }
6640 #endif
6641 int
6642 main ()
6643 {
6644 CRYPTO_new_ex_data ();
6645   ;
6646   return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } &&
6655          { ac_try='test -s conftest$ac_exeext'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; }; then
6661   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6666 fi
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668 LIBS=$ac_check_lib_save_LIBS
6669 fi
6670 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6671 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6672 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6673   cat >>confdefs.h <<_ACEOF
6674 #define HAVE_LIBCRYPTO 1
6675 _ACEOF
6676
6677   LIBS="-lcrypto $LIBS"
6678
6679 else
6680   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6681 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6682    { (exit 1); exit 1; }; }
6683 fi
6684
6685
6686 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6687 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6688 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6689   echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691   ac_check_lib_save_LIBS=$LIBS
6692 LIBS="-lssl  $LIBS"
6693 cat >conftest.$ac_ext <<_ACEOF
6694 #line $LINENO "configure"
6695 #include "confdefs.h"
6696
6697 /* Override any gcc2 internal prototype to avoid an error.  */
6698 #ifdef __cplusplus
6699 extern "C"
6700 #endif
6701 /* We use char because int might match the return type of a gcc2
6702    builtin and then its argument prototype would still apply.  */
6703 char SSL_library_init ();
6704 #ifdef F77_DUMMY_MAIN
6705 #  ifdef __cplusplus
6706      extern "C"
6707 #  endif
6708    int F77_DUMMY_MAIN() { return 1; }
6709 #endif
6710 int
6711 main ()
6712 {
6713 SSL_library_init ();
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720   (eval $ac_link) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); } &&
6724          { ac_try='test -s conftest$ac_exeext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_cv_lib_ssl_SSL_library_init=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6734 ac_cv_lib_ssl_SSL_library_init=no
6735 fi
6736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6737 LIBS=$ac_check_lib_save_LIBS
6738 fi
6739 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6740 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6741 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6742   cat >>confdefs.h <<_ACEOF
6743 #define HAVE_LIBSSL 1
6744 _ACEOF
6745
6746   LIBS="-lssl $LIBS"
6747
6748 else
6749   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6750 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6751    { (exit 1); exit 1; }; }
6752 fi
6753
6754 fi
6755
6756 if test "$with_pam" = yes ; then
6757
6758 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6759 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6760 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   ac_check_lib_save_LIBS=$LIBS
6764 LIBS="-lpam  $LIBS"
6765 cat >conftest.$ac_ext <<_ACEOF
6766 #line $LINENO "configure"
6767 #include "confdefs.h"
6768
6769 /* Override any gcc2 internal prototype to avoid an error.  */
6770 #ifdef __cplusplus
6771 extern "C"
6772 #endif
6773 /* We use char because int might match the return type of a gcc2
6774    builtin and then its argument prototype would still apply.  */
6775 char pam_start ();
6776 #ifdef F77_DUMMY_MAIN
6777 #  ifdef __cplusplus
6778      extern "C"
6779 #  endif
6780    int F77_DUMMY_MAIN() { return 1; }
6781 #endif
6782 int
6783 main ()
6784 {
6785 pam_start ();
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792   (eval $ac_link) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); } &&
6796          { ac_try='test -s conftest$ac_exeext'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; }; then
6802   ac_cv_lib_pam_pam_start=yes
6803 else
6804   echo "$as_me: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 ac_cv_lib_pam_pam_start=no
6807 fi
6808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6810 fi
6811 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6812 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6813 if test $ac_cv_lib_pam_pam_start = yes; then
6814   cat >>confdefs.h <<_ACEOF
6815 #define HAVE_LIBPAM 1
6816 _ACEOF
6817
6818   LIBS="-lpam $LIBS"
6819
6820 else
6821   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6822 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6823    { (exit 1); exit 1; }; }
6824 fi
6825
6826 fi
6827
6828
6829 ##
6830 ## Header files
6831 ##
6832
6833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6835 if test "${ac_cv_header_stdc+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 #include "confdefs.h"
6841 #include <stdlib.h>
6842 #include <stdarg.h>
6843 #include <string.h>
6844 #include <float.h>
6845
6846 _ACEOF
6847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6849   ac_status=$?
6850   egrep -v '^ *\+' conftest.er1 >conftest.err
6851   rm -f conftest.er1
6852   cat conftest.err >&5
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } >/dev/null; then
6855   if test -s conftest.err; then
6856     ac_cpp_err=$ac_c_preproc_warn_flag
6857   else
6858     ac_cpp_err=
6859   fi
6860 else
6861   ac_cpp_err=yes
6862 fi
6863 if test -z "$ac_cpp_err"; then
6864   ac_cv_header_stdc=yes
6865 else
6866   echo "$as_me: failed program was:" >&5
6867   cat conftest.$ac_ext >&5
6868   ac_cv_header_stdc=no
6869 fi
6870 rm -f conftest.err conftest.$ac_ext
6871
6872 if test $ac_cv_header_stdc = yes; then
6873   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6874   cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6877 #include <string.h>
6878
6879 _ACEOF
6880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6881   egrep "memchr" >/dev/null 2>&1; then
6882   :
6883 else
6884   ac_cv_header_stdc=no
6885 fi
6886 rm -f conftest*
6887
6888 fi
6889
6890 if test $ac_cv_header_stdc = yes; then
6891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6892   cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 #include "confdefs.h"
6895 #include <stdlib.h>
6896
6897 _ACEOF
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899   egrep "free" >/dev/null 2>&1; then
6900   :
6901 else
6902   ac_cv_header_stdc=no
6903 fi
6904 rm -f conftest*
6905
6906 fi
6907
6908 if test $ac_cv_header_stdc = yes; then
6909   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6910   if test "$cross_compiling" = yes; then
6911   :
6912 else
6913   cat >conftest.$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 #include "confdefs.h"
6916 #include <ctype.h>
6917 #if ((' ' & 0x0FF) == 0x020)
6918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6920 #else
6921 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6922                      || ('j' <= (c) && (c) <= 'r') \
6923                      || ('s' <= (c) && (c) <= 'z'))
6924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6925 #endif
6926
6927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6928 int
6929 main ()
6930 {
6931   int i;
6932   for (i = 0; i < 256; i++)
6933     if (XOR (islower (i), ISLOWER (i))
6934         || toupper (i) != TOUPPER (i))
6935       exit(2);
6936   exit (0);
6937 }
6938 _ACEOF
6939 rm -f conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941   (eval $ac_link) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946   (eval $ac_try) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); }; }; then
6950   :
6951 else
6952   echo "$as_me: program exited with status $ac_status" >&5
6953 echo "$as_me: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6955 ( exit $ac_status )
6956 ac_cv_header_stdc=no
6957 fi
6958 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 fi
6960 fi
6961 fi
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6965
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6968 _ACEOF
6969
6970 fi
6971
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983                   inttypes.h stdint.h unistd.h
6984 do
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989   echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991   cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6994 $ac_includes_default
6995
6996 #include <$ac_header>
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000   (eval $ac_compile) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } &&
7004          { ac_try='test -s conftest.$ac_objext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   eval "$as_ac_Header=yes"
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 eval "$as_ac_Header=no"
7015 fi
7016 rm -f conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7021   cat >>confdefs.h <<_ACEOF
7022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023 _ACEOF
7024
7025 fi
7026
7027 done
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 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
7052 do
7053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7055   echo "$as_me:$LINENO: checking for $ac_header" >&5
7056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 fi
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062 else
7063   # Is the header compilable?
7064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 #include "confdefs.h"
7069 $ac_includes_default
7070 #include <$ac_header>
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074   (eval $ac_compile) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } &&
7078          { ac_try='test -s conftest.$ac_objext'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; }; then
7084   ac_header_compiler=yes
7085 else
7086   echo "$as_me: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 ac_header_compiler=no
7089 fi
7090 rm -f conftest.$ac_objext conftest.$ac_ext
7091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092 echo "${ECHO_T}$ac_header_compiler" >&6
7093
7094 # Is the header present?
7095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7097 cat >conftest.$ac_ext <<_ACEOF
7098 #line $LINENO "configure"
7099 #include "confdefs.h"
7100 #include <$ac_header>
7101 _ACEOF
7102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7104   ac_status=$?
7105   egrep -v '^ *\+' conftest.er1 >conftest.err
7106   rm -f conftest.er1
7107   cat conftest.err >&5
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } >/dev/null; then
7110   if test -s conftest.err; then
7111     ac_cpp_err=$ac_c_preproc_warn_flag
7112   else
7113     ac_cpp_err=
7114   fi
7115 else
7116   ac_cpp_err=yes
7117 fi
7118 if test -z "$ac_cpp_err"; then
7119   ac_header_preproc=yes
7120 else
7121   echo "$as_me: failed program was:" >&5
7122   cat conftest.$ac_ext >&5
7123   ac_header_preproc=no
7124 fi
7125 rm -f conftest.err conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7127 echo "${ECHO_T}$ac_header_preproc" >&6
7128
7129 # So?  What about this header?
7130 case $ac_header_compiler:$ac_header_preproc in
7131   yes:no )
7132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7136   no:yes )
7137     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7139     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7143 esac
7144 echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   eval "$as_ac_Header=$ac_header_preproc"
7150 fi
7151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153
7154 fi
7155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156   cat >>confdefs.h <<_ACEOF
7157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158 _ACEOF
7159
7160 fi
7161
7162 done
7163
7164
7165 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7166 # netinet/in.h is included first.
7167
7168 for ac_header in netinet/in.h
7169 do
7170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172   echo "$as_me:$LINENO: checking for $ac_header" >&5
7173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 fi
7177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179 else
7180   # Is the header compilable?
7181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 $ac_includes_default
7187 #include <$ac_header>
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191   (eval $ac_compile) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -s conftest.$ac_objext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   ac_header_compiler=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 ac_header_compiler=no
7206 fi
7207 rm -f conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 echo "${ECHO_T}$ac_header_compiler" >&6
7210
7211 # Is the header present?
7212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 #include "confdefs.h"
7217 #include <$ac_header>
7218 _ACEOF
7219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7221   ac_status=$?
7222   egrep -v '^ *\+' conftest.er1 >conftest.err
7223   rm -f conftest.er1
7224   cat conftest.err >&5
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); } >/dev/null; then
7227   if test -s conftest.err; then
7228     ac_cpp_err=$ac_c_preproc_warn_flag
7229   else
7230     ac_cpp_err=
7231   fi
7232 else
7233   ac_cpp_err=yes
7234 fi
7235 if test -z "$ac_cpp_err"; then
7236   ac_header_preproc=yes
7237 else
7238   echo "$as_me: failed program was:" >&5
7239   cat conftest.$ac_ext >&5
7240   ac_header_preproc=no
7241 fi
7242 rm -f conftest.err conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7244 echo "${ECHO_T}$ac_header_preproc" >&6
7245
7246 # So?  What about this header?
7247 case $ac_header_compiler:$ac_header_preproc in
7248   yes:no )
7249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7253   no:yes )
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260 esac
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   eval "$as_ac_Header=$ac_header_preproc"
7267 fi
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270
7271 fi
7272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273   cat >>confdefs.h <<_ACEOF
7274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275 _ACEOF
7276
7277 fi
7278
7279 done
7280
7281
7282 for ac_header in netinet/tcp.h
7283 do
7284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 #include "confdefs.h"
7293 $ac_includes_default
7294 #ifdef HAVE_NETINET_IN_H
7295 #include <netinet/in.h>
7296 #endif
7297
7298
7299 #include <$ac_header>
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303   (eval $ac_compile) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } &&
7307          { ac_try='test -s conftest.$ac_objext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   eval "$as_ac_Header=yes"
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 eval "$as_ac_Header=no"
7318 fi
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7320 fi
7321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7324   cat >>confdefs.h <<_ACEOF
7325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7326 _ACEOF
7327
7328 fi
7329
7330 done
7331
7332
7333 if test "$with_readline" = yes; then
7334
7335 for ac_header in readline/readline.h
7336 do
7337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7339   echo "$as_me:$LINENO: checking for $ac_header" >&5
7340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 fi
7344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7346 else
7347   # Is the header compilable?
7348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7351 #line $LINENO "configure"
7352 #include "confdefs.h"
7353 $ac_includes_default
7354 #include <$ac_header>
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358   (eval $ac_compile) 2>&5
7359   ac_status=$?
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } &&
7362          { ac_try='test -s conftest.$ac_objext'
7363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364   (eval $ac_try) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; }; then
7368   ac_header_compiler=yes
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 ac_header_compiler=no
7373 fi
7374 rm -f conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376 echo "${ECHO_T}$ac_header_compiler" >&6
7377
7378 # Is the header present?
7379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <$ac_header>
7385 _ACEOF
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388   ac_status=$?
7389   egrep -v '^ *\+' conftest.er1 >conftest.err
7390   rm -f conftest.er1
7391   cat conftest.err >&5
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); } >/dev/null; then
7394   if test -s conftest.err; then
7395     ac_cpp_err=$ac_c_preproc_warn_flag
7396   else
7397     ac_cpp_err=
7398   fi
7399 else
7400   ac_cpp_err=yes
7401 fi
7402 if test -z "$ac_cpp_err"; then
7403   ac_header_preproc=yes
7404 else
7405   echo "$as_me: failed program was:" >&5
7406   cat conftest.$ac_ext >&5
7407   ac_header_preproc=no
7408 fi
7409 rm -f conftest.err conftest.$ac_ext
7410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7411 echo "${ECHO_T}$ac_header_preproc" >&6
7412
7413 # So?  What about this header?
7414 case $ac_header_compiler:$ac_header_preproc in
7415   yes:no )
7416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7420   no:yes )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7427 esac
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   eval "$as_ac_Header=$ac_header_preproc"
7434 fi
7435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7437
7438 fi
7439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7440   cat >>confdefs.h <<_ACEOF
7441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7442 _ACEOF
7443
7444 else
7445
7446 for ac_header in editline/readline.h
7447 do
7448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7450   echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 fi
7455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7457 else
7458   # Is the header compilable?
7459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 #include "confdefs.h"
7464 $ac_includes_default
7465 #include <$ac_header>
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469   (eval $ac_compile) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } &&
7473          { ac_try='test -s conftest.$ac_objext'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; }; then
7479   ac_header_compiler=yes
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7483 ac_header_compiler=no
7484 fi
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7487 echo "${ECHO_T}$ac_header_compiler" >&6
7488
7489 # Is the header present?
7490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495 #include <$ac_header>
7496 _ACEOF
7497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7499   ac_status=$?
7500   egrep -v '^ *\+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } >/dev/null; then
7505   if test -s conftest.err; then
7506     ac_cpp_err=$ac_c_preproc_warn_flag
7507   else
7508     ac_cpp_err=
7509   fi
7510 else
7511   ac_cpp_err=yes
7512 fi
7513 if test -z "$ac_cpp_err"; then
7514   ac_header_preproc=yes
7515 else
7516   echo "$as_me: failed program was:" >&5
7517   cat conftest.$ac_ext >&5
7518   ac_header_preproc=no
7519 fi
7520 rm -f conftest.err conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7522 echo "${ECHO_T}$ac_header_preproc" >&6
7523
7524 # So?  What about this header?
7525 case $ac_header_compiler:$ac_header_preproc in
7526   yes:no )
7527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7531   no:yes )
7532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7534     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7538 esac
7539 echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   eval "$as_ac_Header=$ac_header_preproc"
7545 fi
7546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7548
7549 fi
7550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551   cat >>confdefs.h <<_ACEOF
7552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553 _ACEOF
7554
7555 else
7556
7557 for ac_header in readline.h
7558 do
7559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7561   echo "$as_me:$LINENO: checking for $ac_header" >&5
7562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 fi
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568 else
7569   # Is the header compilable?
7570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7572 cat >conftest.$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7574 #include "confdefs.h"
7575 $ac_includes_default
7576 #include <$ac_header>
7577 _ACEOF
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580   (eval $ac_compile) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } &&
7584          { ac_try='test -s conftest.$ac_objext'
7585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586   (eval $ac_try) 2>&5
7587   ac_status=$?
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); }; }; then
7590   ac_header_compiler=yes
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7594 ac_header_compiler=no
7595 fi
7596 rm -f conftest.$ac_objext conftest.$ac_ext
7597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7598 echo "${ECHO_T}$ac_header_compiler" >&6
7599
7600 # Is the header present?
7601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7603 cat >conftest.$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7605 #include "confdefs.h"
7606 #include <$ac_header>
7607 _ACEOF
7608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7610   ac_status=$?
7611   egrep -v '^ *\+' conftest.er1 >conftest.err
7612   rm -f conftest.er1
7613   cat conftest.err >&5
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); } >/dev/null; then
7616   if test -s conftest.err; then
7617     ac_cpp_err=$ac_c_preproc_warn_flag
7618   else
7619     ac_cpp_err=
7620   fi
7621 else
7622   ac_cpp_err=yes
7623 fi
7624 if test -z "$ac_cpp_err"; then
7625   ac_header_preproc=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628   cat conftest.$ac_ext >&5
7629   ac_header_preproc=no
7630 fi
7631 rm -f conftest.err conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633 echo "${ECHO_T}$ac_header_preproc" >&6
7634
7635 # So?  What about this header?
7636 case $ac_header_compiler:$ac_header_preproc in
7637   yes:no )
7638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7642   no:yes )
7643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7645     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7649 esac
7650 echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   eval "$as_ac_Header=$ac_header_preproc"
7656 fi
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7659
7660 fi
7661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7662   cat >>confdefs.h <<_ACEOF
7663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7664 _ACEOF
7665
7666 else
7667   { { echo "$as_me:$LINENO: error: readline header not found
7668 If you have readline already installed, see config.log for details on the
7669 failure.  It is possible the compiler isn't looking in the proper directory.
7670 Use --without-readline to disable readline support." >&5
7671 echo "$as_me: error: readline header not found
7672 If you have readline already installed, see config.log for details on the
7673 failure.  It is possible the compiler isn't looking in the proper directory.
7674 Use --without-readline to disable readline support." >&2;}
7675    { (exit 1); exit 1; }; }
7676 fi
7677
7678 done
7679
7680 fi
7681
7682 done
7683
7684 fi
7685
7686 done
7687
7688
7689 for ac_header in readline/history.h
7690 do
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7693   echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 fi
7698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7700 else
7701   # Is the header compilable?
7702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line $LINENO "configure"
7706 #include "confdefs.h"
7707 $ac_includes_default
7708 #include <$ac_header>
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712   (eval $ac_compile) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -s conftest.$ac_objext'
7717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718   (eval $ac_try) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; }; then
7722   ac_header_compiler=yes
7723 else
7724   echo "$as_me: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7726 ac_header_compiler=no
7727 fi
7728 rm -f conftest.$ac_objext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7730 echo "${ECHO_T}$ac_header_compiler" >&6
7731
7732 # Is the header present?
7733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 #include "confdefs.h"
7738 #include <$ac_header>
7739 _ACEOF
7740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7742   ac_status=$?
7743   egrep -v '^ *\+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } >/dev/null; then
7748   if test -s conftest.err; then
7749     ac_cpp_err=$ac_c_preproc_warn_flag
7750   else
7751     ac_cpp_err=
7752   fi
7753 else
7754   ac_cpp_err=yes
7755 fi
7756 if test -z "$ac_cpp_err"; then
7757   ac_header_preproc=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760   cat conftest.$ac_ext >&5
7761   ac_header_preproc=no
7762 fi
7763 rm -f conftest.err conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6
7766
7767 # So?  What about this header?
7768 case $ac_header_compiler:$ac_header_preproc in
7769   yes:no )
7770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7774   no:yes )
7775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7777     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7781 esac
7782 echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   eval "$as_ac_Header=$ac_header_preproc"
7788 fi
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791
7792 fi
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794   cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 _ACEOF
7797
7798 else
7799
7800 for ac_header in editline/history.h
7801 do
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804   echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 else
7812   # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #include <$ac_header>
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823   (eval $ac_compile) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_header_compiler=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7838 fi
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7842
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7849 #include <$ac_header>
7850 _ACEOF
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7853   ac_status=$?
7854   egrep -v '^ *\+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } >/dev/null; then
7859   if test -s conftest.err; then
7860     ac_cpp_err=$ac_c_preproc_warn_flag
7861   else
7862     ac_cpp_err=
7863   fi
7864 else
7865   ac_cpp_err=yes
7866 fi
7867 if test -z "$ac_cpp_err"; then
7868   ac_header_preproc=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871   cat conftest.$ac_ext >&5
7872   ac_header_preproc=no
7873 fi
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7877
7878 # So?  What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7880   yes:no )
7881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7885   no:yes )
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7892 esac
7893 echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   eval "$as_ac_Header=$ac_header_preproc"
7899 fi
7900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7902
7903 fi
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905   cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 _ACEOF
7908
7909 else
7910
7911 for ac_header in history.h
7912 do
7913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7915   echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 fi
7920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7922 else
7923   # Is the header compilable?
7924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7928 #include "confdefs.h"
7929 $ac_includes_default
7930 #include <$ac_header>
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934   (eval $ac_compile) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -s conftest.$ac_objext'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; }; then
7944   ac_header_compiler=yes
7945 else
7946   echo "$as_me: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 ac_header_compiler=no
7949 fi
7950 rm -f conftest.$ac_objext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7952 echo "${ECHO_T}$ac_header_compiler" >&6
7953
7954 # Is the header present?
7955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 #include "confdefs.h"
7960 #include <$ac_header>
7961 _ACEOF
7962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7964   ac_status=$?
7965   egrep -v '^ *\+' conftest.er1 >conftest.err
7966   rm -f conftest.er1
7967   cat conftest.err >&5
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } >/dev/null; then
7970   if test -s conftest.err; then
7971     ac_cpp_err=$ac_c_preproc_warn_flag
7972   else
7973     ac_cpp_err=
7974   fi
7975 else
7976   ac_cpp_err=yes
7977 fi
7978 if test -z "$ac_cpp_err"; then
7979   ac_header_preproc=yes
7980 else
7981   echo "$as_me: failed program was:" >&5
7982   cat conftest.$ac_ext >&5
7983   ac_header_preproc=no
7984 fi
7985 rm -f conftest.err conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6
7988
7989 # So?  What about this header?
7990 case $ac_header_compiler:$ac_header_preproc in
7991   yes:no )
7992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7996   no:yes )
7997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8003 esac
8004 echo "$as_me:$LINENO: checking for $ac_header" >&5
8005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   eval "$as_ac_Header=$ac_header_preproc"
8010 fi
8011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8013
8014 fi
8015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016   cat >>confdefs.h <<_ACEOF
8017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8018 _ACEOF
8019
8020 else
8021   { { echo "$as_me:$LINENO: error: history header not found
8022 If you have readline already installed, see config.log for details on the
8023 failure.  It is possible the compiler isn't looking in the proper directory.
8024 Use --without-readline to disable readline support." >&5
8025 echo "$as_me: error: history header not found
8026 If you have readline already installed, see config.log for details on the
8027 failure.  It is possible the compiler isn't looking in the proper directory.
8028 Use --without-readline to disable readline support." >&2;}
8029    { (exit 1); exit 1; }; }
8030 fi
8031
8032 done
8033
8034 fi
8035
8036 done
8037
8038 fi
8039
8040 done
8041
8042 fi
8043
8044 if test "$with_zlib" = yes; then
8045   if test "${ac_cv_header_zlib_h+set}" = set; then
8046   echo "$as_me:$LINENO: checking for zlib.h" >&5
8047 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8048 if test "${ac_cv_header_zlib_h+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 fi
8051 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8052 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8053 else
8054   # Is the header compilable?
8055 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8056 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 #include "confdefs.h"
8060 $ac_includes_default
8061 #include <zlib.h>
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065   (eval $ac_compile) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest.$ac_objext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_header_compiler=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 ac_header_compiler=no
8080 fi
8081 rm -f conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8083 echo "${ECHO_T}$ac_header_compiler" >&6
8084
8085 # Is the header present?
8086 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8087 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 #include "confdefs.h"
8091 #include <zlib.h>
8092 _ACEOF
8093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8095   ac_status=$?
8096   egrep -v '^ *\+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } >/dev/null; then
8101   if test -s conftest.err; then
8102     ac_cpp_err=$ac_c_preproc_warn_flag
8103   else
8104     ac_cpp_err=
8105   fi
8106 else
8107   ac_cpp_err=yes
8108 fi
8109 if test -z "$ac_cpp_err"; then
8110   ac_header_preproc=yes
8111 else
8112   echo "$as_me: failed program was:" >&5
8113   cat conftest.$ac_ext >&5
8114   ac_header_preproc=no
8115 fi
8116 rm -f conftest.err conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8118 echo "${ECHO_T}$ac_header_preproc" >&6
8119
8120 # So?  What about this header?
8121 case $ac_header_compiler:$ac_header_preproc in
8122   yes:no )
8123     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8124 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8125     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8127   no:yes )
8128     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8129 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8130     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8131 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8132     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8133 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8134 esac
8135 echo "$as_me:$LINENO: checking for zlib.h" >&5
8136 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_zlib_h+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   ac_cv_header_zlib_h=$ac_header_preproc
8141 fi
8142 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8144
8145 fi
8146 if test $ac_cv_header_zlib_h = yes; then
8147   :
8148 else
8149   { { echo "$as_me:$LINENO: error: zlib header not found
8150 If you have zlib already installed, see config.log for details on the
8151 failure.  It is possible the compiler isn't looking in the proper directory.
8152 Use --without-zlib to disable zlib support." >&5
8153 echo "$as_me: error: zlib header not found
8154 If you have zlib already installed, see config.log for details on the
8155 failure.  It is possible the compiler isn't looking in the proper directory.
8156 Use --without-zlib to disable zlib support." >&2;}
8157    { (exit 1); exit 1; }; }
8158 fi
8159
8160
8161 fi
8162
8163 if test "$with_krb4" = yes ; then
8164   if test "${ac_cv_header_krb_h+set}" = set; then
8165   echo "$as_me:$LINENO: checking for krb.h" >&5
8166 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8167 if test "${ac_cv_header_krb_h+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 fi
8170 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8171 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8172 else
8173   # Is the header compilable?
8174 echo "$as_me:$LINENO: checking krb.h usability" >&5
8175 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8177 #line $LINENO "configure"
8178 #include "confdefs.h"
8179 $ac_includes_default
8180 #include <krb.h>
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184   (eval $ac_compile) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -s conftest.$ac_objext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_header_compiler=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 ac_header_compiler=no
8199 fi
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8202 echo "${ECHO_T}$ac_header_compiler" >&6
8203
8204 # Is the header present?
8205 echo "$as_me:$LINENO: checking krb.h presence" >&5
8206 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line $LINENO "configure"
8209 #include "confdefs.h"
8210 #include <krb.h>
8211 _ACEOF
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8214   ac_status=$?
8215   egrep -v '^ *\+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } >/dev/null; then
8220   if test -s conftest.err; then
8221     ac_cpp_err=$ac_c_preproc_warn_flag
8222   else
8223     ac_cpp_err=
8224   fi
8225 else
8226   ac_cpp_err=yes
8227 fi
8228 if test -z "$ac_cpp_err"; then
8229   ac_header_preproc=yes
8230 else
8231   echo "$as_me: failed program was:" >&5
8232   cat conftest.$ac_ext >&5
8233   ac_header_preproc=no
8234 fi
8235 rm -f conftest.err conftest.$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8237 echo "${ECHO_T}$ac_header_preproc" >&6
8238
8239 # So?  What about this header?
8240 case $ac_header_compiler:$ac_header_preproc in
8241   yes:no )
8242     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8243 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8244     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8245 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8246   no:yes )
8247     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8248 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8249     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8250 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8251     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8252 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8253 esac
8254 echo "$as_me:$LINENO: checking for krb.h" >&5
8255 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8256 if test "${ac_cv_header_krb_h+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_cv_header_krb_h=$ac_header_preproc
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8262 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8263
8264 fi
8265 if test $ac_cv_header_krb_h = yes; then
8266   :
8267 else
8268   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8269 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8270    { (exit 1); exit 1; }; }
8271 fi
8272
8273
8274 fi
8275
8276 if test "$with_krb5" = yes ; then
8277   if test "${ac_cv_header_krb5_h+set}" = set; then
8278   echo "$as_me:$LINENO: checking for krb5.h" >&5
8279 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8280 if test "${ac_cv_header_krb5_h+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 fi
8283 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8284 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8285 else
8286   # Is the header compilable?
8287 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8288 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 $ac_includes_default
8293 #include <krb5.h>
8294 _ACEOF
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8297   (eval $ac_compile) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -s conftest.$ac_objext'
8302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303   (eval $ac_try) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; }; then
8307   ac_header_compiler=yes
8308 else
8309   echo "$as_me: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 ac_header_compiler=no
8312 fi
8313 rm -f conftest.$ac_objext conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8315 echo "${ECHO_T}$ac_header_compiler" >&6
8316
8317 # Is the header present?
8318 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8319 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 #include "confdefs.h"
8323 #include <krb5.h>
8324 _ACEOF
8325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327   ac_status=$?
8328   egrep -v '^ *\+' conftest.er1 >conftest.err
8329   rm -f conftest.er1
8330   cat conftest.err >&5
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); } >/dev/null; then
8333   if test -s conftest.err; then
8334     ac_cpp_err=$ac_c_preproc_warn_flag
8335   else
8336     ac_cpp_err=
8337   fi
8338 else
8339   ac_cpp_err=yes
8340 fi
8341 if test -z "$ac_cpp_err"; then
8342   ac_header_preproc=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345   cat conftest.$ac_ext >&5
8346   ac_header_preproc=no
8347 fi
8348 rm -f conftest.err conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8350 echo "${ECHO_T}$ac_header_preproc" >&6
8351
8352 # So?  What about this header?
8353 case $ac_header_compiler:$ac_header_preproc in
8354   yes:no )
8355     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8356 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8357     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8358 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8359   no:yes )
8360     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8362     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8364     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8365 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8366 esac
8367 echo "$as_me:$LINENO: checking for krb5.h" >&5
8368 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8369 if test "${ac_cv_header_krb5_h+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   ac_cv_header_krb5_h=$ac_header_preproc
8373 fi
8374 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8375 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8376
8377 fi
8378 if test $ac_cv_header_krb5_h = yes; then
8379   :
8380 else
8381   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8382 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8383    { (exit 1); exit 1; }; }
8384 fi
8385
8386
8387   if test "${ac_cv_header_com_err_h+set}" = set; then
8388   echo "$as_me:$LINENO: checking for com_err.h" >&5
8389 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8390 if test "${ac_cv_header_com_err_h+set}" = set; then
8391   echo $ECHO_N "(cached) $ECHO_C" >&6
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8394 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8395 else
8396   # Is the header compilable?
8397 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8398 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 #include "confdefs.h"
8402 $ac_includes_default
8403 #include <com_err.h>
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407   (eval $ac_compile) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -s conftest.$ac_objext'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_header_compiler=yes
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 ac_header_compiler=no
8422 fi
8423 rm -f conftest.$ac_objext conftest.$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8425 echo "${ECHO_T}$ac_header_compiler" >&6
8426
8427 # Is the header present?
8428 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8429 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8432 #include "confdefs.h"
8433 #include <com_err.h>
8434 _ACEOF
8435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437   ac_status=$?
8438   egrep -v '^ *\+' conftest.er1 >conftest.err
8439   rm -f conftest.er1
8440   cat conftest.err >&5
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); } >/dev/null; then
8443   if test -s conftest.err; then
8444     ac_cpp_err=$ac_c_preproc_warn_flag
8445   else
8446     ac_cpp_err=
8447   fi
8448 else
8449   ac_cpp_err=yes
8450 fi
8451 if test -z "$ac_cpp_err"; then
8452   ac_header_preproc=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455   cat conftest.$ac_ext >&5
8456   ac_header_preproc=no
8457 fi
8458 rm -f conftest.err conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8460 echo "${ECHO_T}$ac_header_preproc" >&6
8461
8462 # So?  What about this header?
8463 case $ac_header_compiler:$ac_header_preproc in
8464   yes:no )
8465     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8466 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8467     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8468 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8469   no:yes )
8470     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8471 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8472     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8473 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8474     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8475 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8476 esac
8477 echo "$as_me:$LINENO: checking for com_err.h" >&5
8478 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8479 if test "${ac_cv_header_com_err_h+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   ac_cv_header_com_err_h=$ac_header_preproc
8483 fi
8484 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8485 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8486
8487 fi
8488 if test $ac_cv_header_com_err_h = yes; then
8489   :
8490 else
8491   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8492 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8493    { (exit 1); exit 1; }; }
8494 fi
8495
8496
8497 fi
8498
8499 if test "$with_openssl" = yes ; then
8500   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8501   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8502 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8503 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 fi
8506 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8507 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8508 else
8509   # Is the header compilable?
8510 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8511 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 #line $LINENO "configure"
8514 #include "confdefs.h"
8515 $ac_includes_default
8516 #include <openssl/ssl.h>
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520   (eval $ac_compile) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -s conftest.$ac_objext'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; }; then
8530   ac_header_compiler=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 ac_header_compiler=no
8535 fi
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8538 echo "${ECHO_T}$ac_header_compiler" >&6
8539
8540 # Is the header present?
8541 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8542 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 #include "confdefs.h"
8546 #include <openssl/ssl.h>
8547 _ACEOF
8548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8550   ac_status=$?
8551   egrep -v '^ *\+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } >/dev/null; then
8556   if test -s conftest.err; then
8557     ac_cpp_err=$ac_c_preproc_warn_flag
8558   else
8559     ac_cpp_err=
8560   fi
8561 else
8562   ac_cpp_err=yes
8563 fi
8564 if test -z "$ac_cpp_err"; then
8565   ac_header_preproc=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568   cat conftest.$ac_ext >&5
8569   ac_header_preproc=no
8570 fi
8571 rm -f conftest.err conftest.$ac_ext
8572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8573 echo "${ECHO_T}$ac_header_preproc" >&6
8574
8575 # So?  What about this header?
8576 case $ac_header_compiler:$ac_header_preproc in
8577   yes:no )
8578     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8579 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8581 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8582   no:yes )
8583     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8589 esac
8590 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8591 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8592 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8596 fi
8597 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8598 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8599
8600 fi
8601 if test $ac_cv_header_openssl_ssl_h = yes; then
8602   :
8603 else
8604   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8605 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8606    { (exit 1); exit 1; }; }
8607 fi
8608
8609
8610   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8611   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8612 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8613 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8618 else
8619   # Is the header compilable?
8620 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8621 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8623 #line $LINENO "configure"
8624 #include "confdefs.h"
8625 $ac_includes_default
8626 #include <openssl/err.h>
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630   (eval $ac_compile) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -s conftest.$ac_objext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_header_compiler=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8644 ac_header_compiler=no
8645 fi
8646 rm -f conftest.$ac_objext conftest.$ac_ext
8647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648 echo "${ECHO_T}$ac_header_compiler" >&6
8649
8650 # Is the header present?
8651 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8652 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line $LINENO "configure"
8655 #include "confdefs.h"
8656 #include <openssl/err.h>
8657 _ACEOF
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8660   ac_status=$?
8661   egrep -v '^ *\+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } >/dev/null; then
8666   if test -s conftest.err; then
8667     ac_cpp_err=$ac_c_preproc_warn_flag
8668   else
8669     ac_cpp_err=
8670   fi
8671 else
8672   ac_cpp_err=yes
8673 fi
8674 if test -z "$ac_cpp_err"; then
8675   ac_header_preproc=yes
8676 else
8677   echo "$as_me: failed program was:" >&5
8678   cat conftest.$ac_ext >&5
8679   ac_header_preproc=no
8680 fi
8681 rm -f conftest.err conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6
8684
8685 # So?  What about this header?
8686 case $ac_header_compiler:$ac_header_preproc in
8687   yes:no )
8688     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8689 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8690     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8692   no:yes )
8693     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8694 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8695     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8696 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8697     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8698 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8699 esac
8700 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8701 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8702 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   ac_cv_header_openssl_err_h=$ac_header_preproc
8706 fi
8707 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8708 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8709
8710 fi
8711 if test $ac_cv_header_openssl_err_h = yes; then
8712   :
8713 else
8714   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8715 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8716    { (exit 1); exit 1; }; }
8717 fi
8718
8719
8720 fi
8721
8722 if test "$with_pam" = yes ; then
8723
8724 for ac_header in security/pam_appl.h
8725 do
8726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728   echo "$as_me:$LINENO: checking for $ac_header" >&5
8729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 else
8736   # Is the header compilable?
8737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8742 $ac_includes_default
8743 #include <$ac_header>
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747   (eval $ac_compile) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest.$ac_objext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_header_compiler=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_header_compiler=no
8762 fi
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765 echo "${ECHO_T}$ac_header_compiler" >&6
8766
8767 # Is the header present?
8768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773 #include <$ac_header>
8774 _ACEOF
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8777   ac_status=$?
8778   egrep -v '^ *\+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null; then
8783   if test -s conftest.err; then
8784     ac_cpp_err=$ac_c_preproc_warn_flag
8785   else
8786     ac_cpp_err=
8787   fi
8788 else
8789   ac_cpp_err=yes
8790 fi
8791 if test -z "$ac_cpp_err"; then
8792   ac_header_preproc=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795   cat conftest.$ac_ext >&5
8796   ac_header_preproc=no
8797 fi
8798 rm -f conftest.err conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800 echo "${ECHO_T}$ac_header_preproc" >&6
8801
8802 # So?  What about this header?
8803 case $ac_header_compiler:$ac_header_preproc in
8804   yes:no )
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8809   no:yes )
8810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8816 esac
8817 echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   eval "$as_ac_Header=$ac_header_preproc"
8823 fi
8824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8826
8827 fi
8828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8829   cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8831 _ACEOF
8832
8833 else
8834
8835 for ac_header in pam/pam_appl.h
8836 do
8837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8839   echo "$as_me:$LINENO: checking for $ac_header" >&5
8840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 fi
8844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8846 else
8847   # Is the header compilable?
8848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line $LINENO "configure"
8852 #include "confdefs.h"
8853 $ac_includes_default
8854 #include <$ac_header>
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858   (eval $ac_compile) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -s conftest.$ac_objext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_header_compiler=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8872 ac_header_compiler=no
8873 fi
8874 rm -f conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6
8877
8878 # Is the header present?
8879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 #include "confdefs.h"
8884 #include <$ac_header>
8885 _ACEOF
8886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8888   ac_status=$?
8889   egrep -v '^ *\+' conftest.er1 >conftest.err
8890   rm -f conftest.er1
8891   cat conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } >/dev/null; then
8894   if test -s conftest.err; then
8895     ac_cpp_err=$ac_c_preproc_warn_flag
8896   else
8897     ac_cpp_err=
8898   fi
8899 else
8900   ac_cpp_err=yes
8901 fi
8902 if test -z "$ac_cpp_err"; then
8903   ac_header_preproc=yes
8904 else
8905   echo "$as_me: failed program was:" >&5
8906   cat conftest.$ac_ext >&5
8907   ac_header_preproc=no
8908 fi
8909 rm -f conftest.err conftest.$ac_ext
8910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8911 echo "${ECHO_T}$ac_header_preproc" >&6
8912
8913 # So?  What about this header?
8914 case $ac_header_compiler:$ac_header_preproc in
8915   yes:no )
8916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8920   no:yes )
8921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8923     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8927 esac
8928 echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   eval "$as_ac_Header=$ac_header_preproc"
8934 fi
8935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8937
8938 fi
8939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940   cat >>confdefs.h <<_ACEOF
8941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942 _ACEOF
8943
8944 else
8945   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8946 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8947    { (exit 1); exit 1; }; }
8948 fi
8949
8950 done
8951
8952 fi
8953
8954 done
8955
8956 fi
8957
8958 if test "$with_rendezvous" = yes ; then
8959   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8960   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8961 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8962 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 fi
8965 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8967 else
8968   # Is the header compilable?
8969 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8970 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 #include "confdefs.h"
8974 $ac_includes_default
8975 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979   (eval $ac_compile) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); } &&
8983          { ac_try='test -s conftest.$ac_objext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_header_compiler=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 ac_header_compiler=no
8994 fi
8995 rm -f conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8997 echo "${ECHO_T}$ac_header_compiler" >&6
8998
8999 # Is the header present?
9000 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9001 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9005 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9006 _ACEOF
9007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9009   ac_status=$?
9010   egrep -v '^ *\+' conftest.er1 >conftest.err
9011   rm -f conftest.er1
9012   cat conftest.err >&5
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); } >/dev/null; then
9015   if test -s conftest.err; then
9016     ac_cpp_err=$ac_c_preproc_warn_flag
9017   else
9018     ac_cpp_err=
9019   fi
9020 else
9021   ac_cpp_err=yes
9022 fi
9023 if test -z "$ac_cpp_err"; then
9024   ac_header_preproc=yes
9025 else
9026   echo "$as_me: failed program was:" >&5
9027   cat conftest.$ac_ext >&5
9028   ac_header_preproc=no
9029 fi
9030 rm -f conftest.err conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9032 echo "${ECHO_T}$ac_header_preproc" >&6
9033
9034 # So?  What about this header?
9035 case $ac_header_compiler:$ac_header_preproc in
9036   yes:no )
9037     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9038 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9041   no:yes )
9042     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9048 esac
9049 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9050 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9051 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9057 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9058
9059 fi
9060 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9061   :
9062 else
9063   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9064 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9065    { (exit 1); exit 1; }; }
9066 fi
9067
9068
9069 fi
9070
9071
9072 ##
9073 ## Types, structures, compiler characteristics
9074 ##
9075
9076
9077 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9079 if test "${ac_cv_c_const+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082   cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 #include "confdefs.h"
9085
9086 #ifdef F77_DUMMY_MAIN
9087 #  ifdef __cplusplus
9088      extern "C"
9089 #  endif
9090    int F77_DUMMY_MAIN() { return 1; }
9091 #endif
9092 int
9093 main ()
9094 {
9095 /* FIXME: Include the comments suggested by Paul. */
9096 #ifndef __cplusplus
9097   /* Ultrix mips cc rejects this.  */
9098   typedef int charset[2];
9099   const charset x;
9100   /* SunOS 4.1.1 cc rejects this.  */
9101   char const *const *ccp;
9102   char **p;
9103   /* NEC SVR4.0.2 mips cc rejects this.  */
9104   struct point {int x, y;};
9105   static struct point const zero = {0,0};
9106   /* AIX XL C 1.02.0.0 rejects this.
9107      It does not let you subtract one const X* pointer from another in
9108      an arm of an if-expression whose if-part is not a constant
9109      expression */
9110   const char *g = "string";
9111   ccp = &g + (g ? g-g : 0);
9112   /* HPUX 7.0 cc rejects these. */
9113   ++ccp;
9114   p = (char**) ccp;
9115   ccp = (char const *const *) p;
9116   { /* SCO 3.2v4 cc rejects this.  */
9117     char *t;
9118     char const *s = 0 ? (char *) 0 : (char const *) 0;
9119
9120     *t++ = 0;
9121   }
9122   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9123     int x[] = {25, 17};
9124     const int *foo = &x[0];
9125     ++foo;
9126   }
9127   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9128     typedef const int *iptr;
9129     iptr p = 0;
9130     ++p;
9131   }
9132   { /* AIX XL C 1.02.0.0 rejects this saying
9133        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9134     struct s { int j; const int *ap[3]; };
9135     struct s *b; b->j = 5;
9136   }
9137   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9138     const int foo = 10;
9139   }
9140 #endif
9141
9142   ;
9143   return 0;
9144 }
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148   (eval $ac_compile) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -s conftest.$ac_objext'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; }; then
9158   ac_cv_c_const=yes
9159 else
9160   echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 ac_cv_c_const=no
9163 fi
9164 rm -f conftest.$ac_objext conftest.$ac_ext
9165 fi
9166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9167 echo "${ECHO_T}$ac_cv_c_const" >&6
9168 if test $ac_cv_c_const = no; then
9169
9170 cat >>confdefs.h <<\_ACEOF
9171 #define const
9172 _ACEOF
9173
9174 fi
9175
9176 echo "$as_me:$LINENO: checking for inline" >&5
9177 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9178 if test "${ac_cv_c_inline+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   ac_cv_c_inline=no
9182 for ac_kw in inline __inline__ __inline; do
9183   cat >conftest.$ac_ext <<_ACEOF
9184 #line $LINENO "configure"
9185 #include "confdefs.h"
9186 #ifndef __cplusplus
9187 static $ac_kw int static_foo () {return 0; }
9188 $ac_kw int foo () {return 0; }
9189 #endif
9190
9191 _ACEOF
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194   (eval $ac_compile) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -s conftest.$ac_objext'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   ac_cv_c_inline=$ac_kw; break
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9208 fi
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 done
9211
9212 fi
9213 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9214 echo "${ECHO_T}$ac_cv_c_inline" >&6
9215 case $ac_cv_c_inline in
9216   inline | yes) ;;
9217   no)
9218 cat >>confdefs.h <<\_ACEOF
9219 #define inline
9220 _ACEOF
9221  ;;
9222   *)  cat >>confdefs.h <<_ACEOF
9223 #define inline $ac_cv_c_inline
9224 _ACEOF
9225  ;;
9226 esac
9227
9228 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9229 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9230 if test "${ac_cv_c_stringize+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 #include "confdefs.h"
9236 #define x(y) #y
9237
9238 char *s = x(teststring);
9239 _ACEOF
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241   egrep "#teststring" >/dev/null 2>&1; then
9242   ac_cv_c_stringize=no
9243 else
9244   ac_cv_c_stringize=yes
9245 fi
9246 rm -f conftest*
9247
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9250 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9251 if test $ac_cv_c_stringize = yes; then
9252
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_STRINGIZE 1
9255 _ACEOF
9256
9257 fi
9258
9259 echo "$as_me:$LINENO: checking for signed types" >&5
9260 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9261 if test "${pgac_cv_c_signed+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 #include "confdefs.h"
9267
9268 #ifdef F77_DUMMY_MAIN
9269 #  ifdef __cplusplus
9270      extern "C"
9271 #  endif
9272    int F77_DUMMY_MAIN() { return 1; }
9273 #endif
9274 int
9275 main ()
9276 {
9277 signed char c; signed short s; signed int i;
9278   ;
9279   return 0;
9280 }
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284   (eval $ac_compile) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); } &&
9288          { ac_try='test -s conftest.$ac_objext'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   pgac_cv_c_signed=yes
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 pgac_cv_c_signed=no
9299 fi
9300 rm -f conftest.$ac_objext conftest.$ac_ext
9301 fi
9302 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9303 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9304 if test x"$pgac_cv_c_signed" = xno ; then
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define signed
9308 _ACEOF
9309
9310 fi
9311 echo "$as_me:$LINENO: checking for working volatile" >&5
9312 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9313 if test "${ac_cv_c_volatile+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   cat >conftest.$ac_ext <<_ACEOF
9317 #line $LINENO "configure"
9318 #include "confdefs.h"
9319
9320 #ifdef F77_DUMMY_MAIN
9321 #  ifdef __cplusplus
9322      extern "C"
9323 #  endif
9324    int F77_DUMMY_MAIN() { return 1; }
9325 #endif
9326 int
9327 main ()
9328 {
9329
9330 volatile int x;
9331 int * volatile y;
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338   (eval $ac_compile) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -s conftest.$ac_objext'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; }; then
9348   ac_cv_c_volatile=yes
9349 else
9350   echo "$as_me: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 ac_cv_c_volatile=no
9353 fi
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9355 fi
9356 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9357 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9358 if test $ac_cv_c_volatile = no; then
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define volatile
9362 _ACEOF
9363
9364 fi
9365
9366 echo "$as_me:$LINENO: checking for __func__" >&5
9367 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9368 if test "${pgac_cv_funcname_func_support+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9374 #include <stdio.h>
9375 #ifdef F77_DUMMY_MAIN
9376 #  ifdef __cplusplus
9377      extern "C"
9378 #  endif
9379    int F77_DUMMY_MAIN() { return 1; }
9380 #endif
9381 int
9382 main ()
9383 {
9384 printf("%s\n", __func__);
9385   ;
9386   return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391   (eval $ac_compile) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -s conftest.$ac_objext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   pgac_cv_funcname_func_support=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 pgac_cv_funcname_func_support=no
9406 fi
9407 rm -f conftest.$ac_objext conftest.$ac_ext
9408 fi
9409 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9410 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9411 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_FUNCNAME__FUNC 1
9415 _ACEOF
9416
9417 else
9418 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9419 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9420 if test "${pgac_cv_funcname_function_support+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 #include "confdefs.h"
9426 #include <stdio.h>
9427 #ifdef F77_DUMMY_MAIN
9428 #  ifdef __cplusplus
9429      extern "C"
9430 #  endif
9431    int F77_DUMMY_MAIN() { return 1; }
9432 #endif
9433 int
9434 main ()
9435 {
9436 printf("%s\n", __FUNCTION__);
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443   (eval $ac_compile) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -s conftest.$ac_objext'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; }; then
9453   pgac_cv_funcname_function_support=yes
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 pgac_cv_funcname_function_support=no
9458 fi
9459 rm -f conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9462 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9463 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9464
9465 cat >>confdefs.h <<\_ACEOF
9466 #define HAVE_FUNCNAME__FUNCTION 1
9467 _ACEOF
9468
9469 fi
9470 fi
9471 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9473 if test "${ac_cv_struct_tm+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   cat >conftest.$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9478 #include "confdefs.h"
9479 #include <sys/types.h>
9480 #include <time.h>
9481
9482 #ifdef F77_DUMMY_MAIN
9483 #  ifdef __cplusplus
9484      extern "C"
9485 #  endif
9486    int F77_DUMMY_MAIN() { return 1; }
9487 #endif
9488 int
9489 main ()
9490 {
9491 struct tm *tp; tp->tm_sec;
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498   (eval $ac_compile) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } &&
9502          { ac_try='test -s conftest.$ac_objext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   ac_cv_struct_tm=time.h
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 ac_cv_struct_tm=sys/time.h
9513 fi
9514 rm -f conftest.$ac_objext conftest.$ac_ext
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9517 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9518 if test $ac_cv_struct_tm = sys/time.h; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define TM_IN_SYS_TIME 1
9522 _ACEOF
9523
9524 fi
9525
9526 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9527 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9528 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   cat >conftest.$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9534 #include <sys/types.h>
9535 #include <$ac_cv_struct_tm>
9536
9537
9538 #ifdef F77_DUMMY_MAIN
9539 #  ifdef __cplusplus
9540      extern "C"
9541 #  endif
9542    int F77_DUMMY_MAIN() { return 1; }
9543 #endif
9544 int
9545 main ()
9546 {
9547 static struct tm ac_aggr;
9548 if (ac_aggr.tm_zone)
9549 return 0;
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556   (eval $ac_compile) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); } &&
9560          { ac_try='test -s conftest.$ac_objext'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   ac_cv_member_struct_tm_tm_zone=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 ac_cv_member_struct_tm_tm_zone=no
9571 fi
9572 rm -f conftest.$ac_objext conftest.$ac_ext
9573 fi
9574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9575 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9576 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9577
9578 cat >>confdefs.h <<_ACEOF
9579 #define HAVE_STRUCT_TM_TM_ZONE 1
9580 _ACEOF
9581
9582
9583 fi
9584
9585 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9586
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_TM_ZONE 1
9589 _ACEOF
9590
9591 fi
9592 echo "$as_me:$LINENO: checking for tzname" >&5
9593 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9594 if test "${ac_cv_var_tzname+set}" = set; then
9595   echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597   cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9600 #include <time.h>
9601 #ifndef tzname /* For SGI.  */
9602 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9603 #endif
9604
9605 #ifdef F77_DUMMY_MAIN
9606 #  ifdef __cplusplus
9607      extern "C"
9608 #  endif
9609    int F77_DUMMY_MAIN() { return 1; }
9610 #endif
9611 int
9612 main ()
9613 {
9614 atoi(*tzname);
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   ac_cv_var_tzname=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_var_tzname=no
9636 fi
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9638 fi
9639 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9640 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9641 if test $ac_cv_var_tzname = yes; then
9642
9643 cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_TZNAME 1
9645 _ACEOF
9646
9647 fi
9648
9649 echo "$as_me:$LINENO: checking for union semun" >&5
9650 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9651 if test "${ac_cv_type_union_semun+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <sys/ipc.h>
9659 #include <sys/sem.h>
9660
9661 #ifdef F77_DUMMY_MAIN
9662 #  ifdef __cplusplus
9663      extern "C"
9664 #  endif
9665    int F77_DUMMY_MAIN() { return 1; }
9666 #endif
9667 int
9668 main ()
9669 {
9670 if ((union semun *) 0)
9671   return 0;
9672 if (sizeof (union semun))
9673   return 0;
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680   (eval $ac_compile) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } &&
9684          { ac_try='test -s conftest.$ac_objext'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   ac_cv_type_union_semun=yes
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 ac_cv_type_union_semun=no
9695 fi
9696 rm -f conftest.$ac_objext conftest.$ac_ext
9697 fi
9698 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9699 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9700 if test $ac_cv_type_union_semun = yes; then
9701
9702 cat >>confdefs.h <<_ACEOF
9703 #define HAVE_UNION_SEMUN 1
9704 _ACEOF
9705
9706
9707 fi
9708
9709 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9710 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9711 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/types.h>
9718 #ifdef HAVE_SYS_UN_H
9719 #include <sys/un.h>
9720 #endif
9721
9722
9723 #ifdef F77_DUMMY_MAIN
9724 #  ifdef __cplusplus
9725      extern "C"
9726 #  endif
9727    int F77_DUMMY_MAIN() { return 1; }
9728 #endif
9729 int
9730 main ()
9731 {
9732 if ((struct sockaddr_un *) 0)
9733   return 0;
9734 if (sizeof (struct sockaddr_un))
9735   return 0;
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742   (eval $ac_compile) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -s conftest.$ac_objext'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; }; then
9752   ac_cv_type_struct_sockaddr_un=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 ac_cv_type_struct_sockaddr_un=no
9757 fi
9758 rm -f conftest.$ac_objext conftest.$ac_ext
9759 fi
9760 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9761 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9762 if test $ac_cv_type_struct_sockaddr_un = yes; then
9763
9764 cat >>confdefs.h <<_ACEOF
9765 #define HAVE_STRUCT_SOCKADDR_UN 1
9766 _ACEOF
9767
9768
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_UNIX_SOCKETS 1
9771 _ACEOF
9772
9773 fi
9774
9775 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9776 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9777 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9778   echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780   cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <sys/types.h>
9784 #ifdef HAVE_SYS_SOCKET_H
9785 #include <sys/socket.h>
9786 #endif
9787
9788
9789 #ifdef F77_DUMMY_MAIN
9790 #  ifdef __cplusplus
9791      extern "C"
9792 #  endif
9793    int F77_DUMMY_MAIN() { return 1; }
9794 #endif
9795 int
9796 main ()
9797 {
9798 if ((struct sockaddr_storage *) 0)
9799   return 0;
9800 if (sizeof (struct sockaddr_storage))
9801   return 0;
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -s conftest.$ac_objext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_type_struct_sockaddr_storage=yes
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 ac_cv_type_struct_sockaddr_storage=no
9823 fi
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9827 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9828 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9832 _ACEOF
9833
9834
9835 fi
9836
9837 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9838 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9839 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9846 #ifdef HAVE_SYS_SOCKET_H
9847 #include <sys/socket.h>
9848 #endif
9849
9850
9851 #ifdef F77_DUMMY_MAIN
9852 #  ifdef __cplusplus
9853      extern "C"
9854 #  endif
9855    int F77_DUMMY_MAIN() { return 1; }
9856 #endif
9857 int
9858 main ()
9859 {
9860 static struct sockaddr_storage ac_aggr;
9861 if (ac_aggr.ss_family)
9862 return 0;
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869   (eval $ac_compile) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -s conftest.$ac_objext'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 ac_cv_member_struct_sockaddr_storage_ss_family=no
9884 fi
9885 rm -f conftest.$ac_objext conftest.$ac_ext
9886 fi
9887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9888 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9889 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9890
9891 cat >>confdefs.h <<_ACEOF
9892 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9893 _ACEOF
9894
9895
9896 fi
9897 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9898 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9899 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9900   echo $ECHO_N "(cached) $ECHO_C" >&6
9901 else
9902   cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9906 #ifdef HAVE_SYS_SOCKET_H
9907 #include <sys/socket.h>
9908 #endif
9909
9910
9911 #ifdef F77_DUMMY_MAIN
9912 #  ifdef __cplusplus
9913      extern "C"
9914 #  endif
9915    int F77_DUMMY_MAIN() { return 1; }
9916 #endif
9917 int
9918 main ()
9919 {
9920 static struct sockaddr_storage ac_aggr;
9921 if (ac_aggr.__ss_family)
9922 return 0;
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929   (eval $ac_compile) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -s conftest.$ac_objext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_member_struct_sockaddr_storage___ss_family=no
9944 fi
9945 rm -f conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9948 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9949 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9950
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9953 _ACEOF
9954
9955
9956 fi
9957 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9958 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9959 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   cat >conftest.$ac_ext <<_ACEOF
9963 #line $LINENO "configure"
9964 #include "confdefs.h"
9965 #include <sys/types.h>
9966 #ifdef HAVE_SYS_SOCKET_H
9967 #include <sys/socket.h>
9968 #endif
9969
9970
9971 #ifdef F77_DUMMY_MAIN
9972 #  ifdef __cplusplus
9973      extern "C"
9974 #  endif
9975    int F77_DUMMY_MAIN() { return 1; }
9976 #endif
9977 int
9978 main ()
9979 {
9980 static struct sockaddr_storage ac_aggr;
9981 if (ac_aggr.ss_len)
9982 return 0;
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989   (eval $ac_compile) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -s conftest.$ac_objext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10003 ac_cv_member_struct_sockaddr_storage_ss_len=no
10004 fi
10005 rm -f conftest.$ac_objext conftest.$ac_ext
10006 fi
10007 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10008 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10009 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10010
10011 cat >>confdefs.h <<_ACEOF
10012 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10013 _ACEOF
10014
10015
10016 fi
10017 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10018 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10019 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 #include "confdefs.h"
10025 #include <sys/types.h>
10026 #ifdef HAVE_SYS_SOCKET_H
10027 #include <sys/socket.h>
10028 #endif
10029
10030
10031 #ifdef F77_DUMMY_MAIN
10032 #  ifdef __cplusplus
10033      extern "C"
10034 #  endif
10035    int F77_DUMMY_MAIN() { return 1; }
10036 #endif
10037 int
10038 main ()
10039 {
10040 static struct sockaddr_storage ac_aggr;
10041 if (ac_aggr.__ss_len)
10042 return 0;
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049   (eval $ac_compile) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -s conftest.$ac_objext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10063 ac_cv_member_struct_sockaddr_storage___ss_len=no
10064 fi
10065 rm -f conftest.$ac_objext conftest.$ac_ext
10066 fi
10067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10068 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10069 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10070
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10073 _ACEOF
10074
10075
10076 fi
10077 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10078 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10079 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10085 #include <sys/types.h>
10086 #ifdef HAVE_SYS_SOCKET_H
10087 #include <sys/socket.h>
10088 #endif
10089
10090
10091 #ifdef F77_DUMMY_MAIN
10092 #  ifdef __cplusplus
10093      extern "C"
10094 #  endif
10095    int F77_DUMMY_MAIN() { return 1; }
10096 #endif
10097 int
10098 main ()
10099 {
10100 static struct sockaddr ac_aggr;
10101 if (ac_aggr.sa_len)
10102 return 0;
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109   (eval $ac_compile) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -s conftest.$ac_objext'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   ac_cv_member_struct_sockaddr_sa_len=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 ac_cv_member_struct_sockaddr_sa_len=no
10124 fi
10125 rm -f conftest.$ac_objext conftest.$ac_ext
10126 fi
10127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10128 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10129 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10130
10131 cat >>confdefs.h <<_ACEOF
10132 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10133 _ACEOF
10134
10135
10136 fi
10137
10138 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10139 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10140 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10147 #include <sys/socket.h>
10148 #include <netdb.h>
10149
10150
10151 #ifdef F77_DUMMY_MAIN
10152 #  ifdef __cplusplus
10153      extern "C"
10154 #  endif
10155    int F77_DUMMY_MAIN() { return 1; }
10156 #endif
10157 int
10158 main ()
10159 {
10160 if ((struct addrinfo *) 0)
10161   return 0;
10162 if (sizeof (struct addrinfo))
10163   return 0;
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170   (eval $ac_compile) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest.$ac_objext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_type_struct_addrinfo=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_type_struct_addrinfo=no
10185 fi
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10187 fi
10188 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10189 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10190 if test $ac_cv_type_struct_addrinfo = yes; then
10191
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_STRUCT_ADDRINFO 1
10194 _ACEOF
10195
10196
10197 fi
10198
10199
10200 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10201 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10202 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 #include "confdefs.h"
10208 #include <sys/param.h>
10209 #include <sys/types.h>
10210 #include <sys/socket.h>
10211 #include <sys/ucred.h>
10212
10213 #ifdef F77_DUMMY_MAIN
10214 #  ifdef __cplusplus
10215      extern "C"
10216 #  endif
10217    int F77_DUMMY_MAIN() { return 1; }
10218 #endif
10219 int
10220 main ()
10221 {
10222 if ((struct cmsgcred *) 0)
10223   return 0;
10224 if (sizeof (struct cmsgcred))
10225   return 0;
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232   (eval $ac_compile) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -s conftest.$ac_objext'
10237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238   (eval $ac_try) 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; }; then
10242   ac_cv_type_struct_cmsgcred=yes
10243 else
10244   echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 ac_cv_type_struct_cmsgcred=no
10247 fi
10248 rm -f conftest.$ac_objext conftest.$ac_ext
10249 fi
10250 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10251 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10252 if test $ac_cv_type_struct_cmsgcred = yes; then
10253
10254 cat >>confdefs.h <<_ACEOF
10255 #define HAVE_STRUCT_CMSGCRED 1
10256 _ACEOF
10257
10258
10259 fi
10260 echo "$as_me:$LINENO: checking for struct fcred" >&5
10261 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10262 if test "${ac_cv_type_struct_fcred+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 <sys/param.h>
10269 #include <sys/types.h>
10270 #include <sys/socket.h>
10271 #include <sys/ucred.h>
10272
10273 #ifdef F77_DUMMY_MAIN
10274 #  ifdef __cplusplus
10275      extern "C"
10276 #  endif
10277    int F77_DUMMY_MAIN() { return 1; }
10278 #endif
10279 int
10280 main ()
10281 {
10282 if ((struct fcred *) 0)
10283   return 0;
10284 if (sizeof (struct fcred))
10285   return 0;
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292   (eval $ac_compile) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } &&
10296          { ac_try='test -s conftest.$ac_objext'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_type_struct_fcred=yes
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 ac_cv_type_struct_fcred=no
10307 fi
10308 rm -f conftest.$ac_objext conftest.$ac_ext
10309 fi
10310 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10311 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10312 if test $ac_cv_type_struct_fcred = yes; then
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_STRUCT_FCRED 1
10316 _ACEOF
10317
10318
10319 fi
10320 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10321 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10322 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   cat >conftest.$ac_ext <<_ACEOF
10326 #line $LINENO "configure"
10327 #include "confdefs.h"
10328 #include <sys/param.h>
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <sys/ucred.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 if ((struct sockcred *) 0)
10343   return 0;
10344 if (sizeof (struct sockcred))
10345   return 0;
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352   (eval $ac_compile) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } &&
10356          { ac_try='test -s conftest.$ac_objext'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; }; then
10362   ac_cv_type_struct_sockcred=yes
10363 else
10364   echo "$as_me: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 ac_cv_type_struct_sockcred=no
10367 fi
10368 rm -f conftest.$ac_objext conftest.$ac_ext
10369 fi
10370 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10371 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10372 if test $ac_cv_type_struct_sockcred = yes; then
10373
10374 cat >>confdefs.h <<_ACEOF
10375 #define HAVE_STRUCT_SOCKCRED 1
10376 _ACEOF
10377
10378
10379 fi
10380
10381
10382 if test "$with_zlib" = yes; then
10383   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10384   # did not).  While we could work around the lack of z_streamp, it
10385   # seems unwise to encourage people to use such old zlib versions...
10386   echo "$as_me:$LINENO: checking for z_streamp" >&5
10387 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10388 if test "${ac_cv_type_z_streamp+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10393 #include "confdefs.h"
10394 #include <zlib.h>
10395
10396 #ifdef F77_DUMMY_MAIN
10397 #  ifdef __cplusplus
10398      extern "C"
10399 #  endif
10400    int F77_DUMMY_MAIN() { return 1; }
10401 #endif
10402 int
10403 main ()
10404 {
10405 if ((z_streamp *) 0)
10406   return 0;
10407 if (sizeof (z_streamp))
10408   return 0;
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415   (eval $ac_compile) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); } &&
10419          { ac_try='test -s conftest.$ac_objext'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; }; then
10425   ac_cv_type_z_streamp=yes
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 ac_cv_type_z_streamp=no
10430 fi
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10432 fi
10433 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10434 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10435 if test $ac_cv_type_z_streamp = yes; then
10436   :
10437 else
10438   { { echo "$as_me:$LINENO: error: zlib version is too old
10439 Use --without-zlib to disable zlib support." >&5
10440 echo "$as_me: error: zlib version is too old
10441 Use --without-zlib to disable zlib support." >&2;}
10442    { (exit 1); exit 1; }; }
10443 fi
10444
10445 fi
10446
10447 if test "$with_krb5" = yes; then
10448 # Check for differences between MIT and Heimdal (KTH) releases
10449   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10450 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10451 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 #include "confdefs.h"
10457 #include <krb5.h>
10458
10459 #ifdef F77_DUMMY_MAIN
10460 #  ifdef __cplusplus
10461      extern "C"
10462 #  endif
10463    int F77_DUMMY_MAIN() { return 1; }
10464 #endif
10465 int
10466 main ()
10467 {
10468 static krb5_ticket ac_aggr;
10469 if (ac_aggr.enc_part2)
10470 return 0;
10471   ;
10472   return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } &&
10481          { ac_try='test -s conftest.$ac_objext'
10482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483   (eval $ac_try) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487   ac_cv_member_krb5_ticket_enc_part2=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_cv_member_krb5_ticket_enc_part2=no
10492 fi
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10496 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10497 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10498
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_KRB5_TICKET_ENC_PART2 1
10501 _ACEOF
10502
10503
10504 else
10505   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10506 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10507 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 #include "confdefs.h"
10513 #include <krb5.h>
10514
10515 #ifdef F77_DUMMY_MAIN
10516 #  ifdef __cplusplus
10517      extern "C"
10518 #  endif
10519    int F77_DUMMY_MAIN() { return 1; }
10520 #endif
10521 int
10522 main ()
10523 {
10524 static krb5_ticket ac_aggr;
10525 if (ac_aggr.client)
10526 return 0;
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533   (eval $ac_compile) 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -s conftest.$ac_objext'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_member_krb5_ticket_client=yes
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 ac_cv_member_krb5_ticket_client=no
10548 fi
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10550 fi
10551 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10552 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10553 if test $ac_cv_member_krb5_ticket_client = yes; then
10554
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_KRB5_TICKET_CLIENT 1
10557 _ACEOF
10558
10559
10560 else
10561   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10562 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10563    { (exit 1); exit 1; }; }
10564 fi
10565
10566 fi
10567
10568   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10569 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10570 if test "${ac_cv_member_krb5_error_text_data+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 <krb5.h>
10577
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 static krb5_error ac_aggr;
10588 if (ac_aggr.text.data)
10589 return 0;
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10596   (eval $ac_compile) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -s conftest.$ac_objext'
10601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602   (eval $ac_try) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; }; then
10606   ac_cv_member_krb5_error_text_data=yes
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 cat conftest.$ac_ext >&5
10610 ac_cv_member_krb5_error_text_data=no
10611 fi
10612 rm -f conftest.$ac_objext conftest.$ac_ext
10613 fi
10614 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10615 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10616 if test $ac_cv_member_krb5_error_text_data = yes; then
10617
10618 cat >>confdefs.h <<_ACEOF
10619 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10620 _ACEOF
10621
10622
10623 else
10624   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10625 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10626 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   cat >conftest.$ac_ext <<_ACEOF
10630 #line $LINENO "configure"
10631 #include "confdefs.h"
10632 #include <krb5.h>
10633
10634 #ifdef F77_DUMMY_MAIN
10635 #  ifdef __cplusplus
10636      extern "C"
10637 #  endif
10638    int F77_DUMMY_MAIN() { return 1; }
10639 #endif
10640 int
10641 main ()
10642 {
10643 static krb5_error ac_aggr;
10644 if (ac_aggr.e_data)
10645 return 0;
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652   (eval $ac_compile) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -s conftest.$ac_objext'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_member_krb5_error_e_data=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 ac_cv_member_krb5_error_e_data=no
10667 fi
10668 rm -f conftest.$ac_objext conftest.$ac_ext
10669 fi
10670 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10671 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10672 if test $ac_cv_member_krb5_error_e_data = yes; then
10673
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_KRB5_ERROR_E_DATA 1
10676 _ACEOF
10677
10678
10679 else
10680   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10681 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10682    { (exit 1); exit 1; }; }
10683 fi
10684
10685 fi
10686
10687 fi
10688
10689
10690 ##
10691 ## Functions, global variables
10692 ##
10693
10694 echo "$as_me:$LINENO: checking for int timezone" >&5
10695 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10696 if test "${pgac_cv_var_int_timezone+set}" = set; then
10697   echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699   cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10702 #include <time.h>
10703 int res;
10704 #ifdef F77_DUMMY_MAIN
10705 #  ifdef __cplusplus
10706      extern "C"
10707 #  endif
10708    int F77_DUMMY_MAIN() { return 1; }
10709 #endif
10710 int
10711 main ()
10712 {
10713 res = timezone / 60;
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720   (eval $ac_link) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -s conftest$ac_exeext'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; }; then
10730   pgac_cv_var_int_timezone=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 pgac_cv_var_int_timezone=no
10735 fi
10736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10737 fi
10738 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10739 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10740 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10741
10742 cat >>confdefs.h <<\_ACEOF
10743 #define HAVE_INT_TIMEZONE
10744 _ACEOF
10745
10746 fi
10747 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10748 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10749  if test "${ac_cv_func_accept_arg1+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752    if test "${ac_cv_func_accept_arg2+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755     if test "${ac_cv_func_accept_arg3+set}" = set; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10759      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10760       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10761        cat >conftest.$ac_ext <<_ACEOF
10762 #line $LINENO "configure"
10763 #include "confdefs.h"
10764 #ifdef HAVE_SYS_TYPES_H
10765 #include <sys/types.h>
10766 #endif
10767 #ifdef HAVE_SYS_SOCKET_H
10768 #include <sys/socket.h>
10769 #endif
10770 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10771 #ifdef F77_DUMMY_MAIN
10772 #  ifdef __cplusplus
10773      extern "C"
10774 #  endif
10775    int F77_DUMMY_MAIN() { return 1; }
10776 #endif
10777 int
10778 main ()
10779 {
10780
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 rm -f conftest.$ac_objext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10787   (eval $ac_compile) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -s conftest.$ac_objext'
10792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793   (eval $ac_try) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; }; then
10797   ac_not_found=no; break 3
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10801 ac_not_found=yes
10802 fi
10803 rm -f conftest.$ac_objext conftest.$ac_ext
10804       done
10805      done
10806     done
10807     if test "$ac_not_found" = yes; then
10808       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10809 echo "$as_me: error: could not determine argument types" >&2;}
10810    { (exit 1); exit 1; }; }
10811     fi
10812     if test "$ac_cv_func_accept_arg3" = "void"; then
10813       ac_cv_func_accept_arg3=int
10814     fi
10815
10816 fi
10817
10818 fi
10819
10820 fi
10821  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10822 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10826 _ACEOF
10827
10828
10829 cat >>confdefs.h <<_ACEOF
10830 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10831 _ACEOF
10832
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10836 _ACEOF
10837
10838
10839 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10840 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10841 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <sys/time.h>
10848 #ifdef F77_DUMMY_MAIN
10849 #  ifdef __cplusplus
10850      extern "C"
10851 #  endif
10852    int F77_DUMMY_MAIN() { return 1; }
10853 #endif
10854 int
10855 main ()
10856 {
10857 struct timeval *tp;
10858 struct timezone *tzp;
10859 gettimeofday(tp,tzp);
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866   (eval $ac_compile) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } &&
10870          { ac_try='test -s conftest.$ac_objext'
10871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872   (eval $ac_try) 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; }; then
10876   pgac_cv_func_gettimeofday_1arg=no
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 pgac_cv_func_gettimeofday_1arg=yes
10881 fi
10882 rm -f conftest.$ac_objext conftest.$ac_ext
10883 fi
10884 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10885 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10886 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10887
10888 cat >>confdefs.h <<\_ACEOF
10889 #define GETTIMEOFDAY_1ARG
10890 _ACEOF
10891
10892 fi
10893
10894
10895
10896 # SunOS doesn't handle negative byte comparisons properly with +/- return
10897 echo "$as_me:$LINENO: checking for working memcmp" >&5
10898 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10899 if test "${ac_cv_func_memcmp_working+set}" = set; then
10900   echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902   if test "$cross_compiling" = yes; then
10903   ac_cv_func_memcmp_working=no
10904 else
10905   cat >conftest.$ac_ext <<_ACEOF
10906 #line $LINENO "configure"
10907 #include "confdefs.h"
10908
10909 #ifdef F77_DUMMY_MAIN
10910 #  ifdef __cplusplus
10911      extern "C"
10912 #  endif
10913    int F77_DUMMY_MAIN() { return 1; }
10914 #endif
10915 int
10916 main ()
10917 {
10918
10919   /* Some versions of memcmp are not 8-bit clean.  */
10920   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10921   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10922     exit (1);
10923
10924   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10925      or more and with at least one buffer not starting on a 4-byte boundary.
10926      William Lewis provided this test program.   */
10927   {
10928     char foo[21];
10929     char bar[21];
10930     int i;
10931     for (i = 0; i < 4; i++)
10932       {
10933         char *a = foo + i;
10934         char *b = bar + i;
10935         strcpy (a, "--------01111111");
10936         strcpy (b, "--------10000000");
10937         if (memcmp (a, b, 16) >= 0)
10938           exit (1);
10939       }
10940     exit (0);
10941   }
10942
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949   (eval $ac_link) 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_cv_func_memcmp_working=yes
10959 else
10960   echo "$as_me: program exited with status $ac_status" >&5
10961 echo "$as_me: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 ( exit $ac_status )
10964 ac_cv_func_memcmp_working=no
10965 fi
10966 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 fi
10968 fi
10969 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10970 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10971 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10991 do
10992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 echo "$as_me:$LINENO: checking for $ac_func" >&5
10994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_var+set}\" = set"; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.  */
11003 #include <assert.h>
11004 /* Override any gcc2 internal prototype to avoid an error.  */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 /* We use char because int might match the return type of a gcc2
11009    builtin and then its argument prototype would still apply.  */
11010 char $ac_func ();
11011 char (*f) ();
11012
11013 #ifdef F77_DUMMY_MAIN
11014 #  ifdef __cplusplus
11015      extern "C"
11016 #  endif
11017    int F77_DUMMY_MAIN() { return 1; }
11018 #endif
11019 int
11020 main ()
11021 {
11022 /* The GNU C library defines this for functions which it implements
11023     to always fail with ENOSYS.  Some functions are actually named
11024     something starting with __ and the normal name is an alias.  */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026 choke me
11027 #else
11028 f = $ac_func;
11029 #endif
11030
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037   (eval $ac_link) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } &&
11041          { ac_try='test -s conftest$ac_exeext'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; }; then
11047   eval "$as_ac_var=yes"
11048 else
11049   echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11052 fi
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058   cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 _ACEOF
11061
11062 fi
11063 done
11064
11065
11066 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11067 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11068 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071   cat >conftest.$ac_ext <<_ACEOF
11072 #line $LINENO "configure"
11073 #include "confdefs.h"
11074 #include <unistd.h>
11075
11076 #ifdef F77_DUMMY_MAIN
11077 #  ifdef __cplusplus
11078      extern "C"
11079 #  endif
11080    int F77_DUMMY_MAIN() { return 1; }
11081 #endif
11082 int
11083 main ()
11084 {
11085 #ifndef fdatasync
11086   char *p = (char *) fdatasync;
11087 #endif
11088
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095   (eval $ac_compile) 2>&5
11096   ac_status=$?
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -s conftest.$ac_objext'
11100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101   (eval $ac_try) 2>&5
11102   ac_status=$?
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); }; }; then
11105   ac_cv_have_decl_fdatasync=yes
11106 else
11107   echo "$as_me: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 ac_cv_have_decl_fdatasync=no
11110 fi
11111 rm -f conftest.$ac_objext conftest.$ac_ext
11112 fi
11113 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11114 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11115 if test $ac_cv_have_decl_fdatasync = yes; then
11116
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE_DECL_FDATASYNC 1
11119 _ACEOF
11120
11121
11122 else
11123   cat >>confdefs.h <<_ACEOF
11124 #define HAVE_DECL_FDATASYNC 0
11125 _ACEOF
11126
11127
11128 fi
11129
11130
11131
11132 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11133 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11134 if test "${ac_cv_type_struct_sockaddr_in6+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 $ac_includes_default
11141 #include <netinet/in.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 if ((struct sockaddr_in6 *) 0)
11153   return 0;
11154 if (sizeof (struct sockaddr_in6))
11155   return 0;
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162   (eval $ac_compile) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } &&
11166          { ac_try='test -s conftest.$ac_objext'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   ac_cv_type_struct_sockaddr_in6=yes
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 ac_cv_type_struct_sockaddr_in6=no
11177 fi
11178 rm -f conftest.$ac_objext conftest.$ac_ext
11179 fi
11180 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11181 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11182 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11183   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11184 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11185 if test "${ac_cv_func_inet_ntop+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188   cat >conftest.$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11190 #include "confdefs.h"
11191 /* System header to define __stub macros and hopefully few prototypes,
11192     which can conflict with char inet_ntop (); below.  */
11193 #include <assert.h>
11194 /* Override any gcc2 internal prototype to avoid an error.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 /* We use char because int might match the return type of a gcc2
11199    builtin and then its argument prototype would still apply.  */
11200 char inet_ntop ();
11201 char (*f) ();
11202
11203 #ifdef F77_DUMMY_MAIN
11204 #  ifdef __cplusplus
11205      extern "C"
11206 #  endif
11207    int F77_DUMMY_MAIN() { return 1; }
11208 #endif
11209 int
11210 main ()
11211 {
11212 /* The GNU C library defines this for functions which it implements
11213     to always fail with ENOSYS.  Some functions are actually named
11214     something starting with __ and the normal name is an alias.  */
11215 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11216 choke me
11217 #else
11218 f = inet_ntop;
11219 #endif
11220
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227   (eval $ac_link) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -s conftest$ac_exeext'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   ac_cv_func_inet_ntop=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 ac_cv_func_inet_ntop=no
11242 fi
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11246 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11247 if test $ac_cv_func_inet_ntop = yes; then
11248
11249 cat >>confdefs.h <<\_ACEOF
11250 #define HAVE_IPV6 1
11251 _ACEOF
11252
11253 fi
11254
11255 fi
11256
11257
11258 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11259 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11260 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   cat >conftest.$ac_ext <<_ACEOF
11264 #line $LINENO "configure"
11265 #include "confdefs.h"
11266 #include <machine/vmparam.h>
11267 #include <sys/exec.h>
11268
11269 #ifdef F77_DUMMY_MAIN
11270 #  ifdef __cplusplus
11271      extern "C"
11272 #  endif
11273    int F77_DUMMY_MAIN() { return 1; }
11274 #endif
11275 int
11276 main ()
11277 {
11278 PS_STRINGS->ps_nargvstr = 1;
11279 PS_STRINGS->ps_argvstr = "foo";
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286   (eval $ac_link) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -s conftest$ac_exeext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   pgac_cv_var_PS_STRINGS=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 pgac_cv_var_PS_STRINGS=no
11301 fi
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11305 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11306 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11307
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_PS_STRINGS
11310 _ACEOF
11311
11312 fi
11313
11314
11315 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11316 # is missing.  Yes, there are machines that have only one.  We may
11317 # also decide to use snprintf.c if snprintf() is present but does not
11318 # have working "long long int" support -- see below.
11319
11320 pgac_need_repl_snprintf=no
11321
11322 for ac_func in snprintf
11323 do
11324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 echo "$as_me:$LINENO: checking for $ac_func" >&5
11326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_var+set}\" = set"; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333 /* System header to define __stub macros and hopefully few prototypes,
11334     which can conflict with char $ac_func (); below.  */
11335 #include <assert.h>
11336 /* Override any gcc2 internal prototype to avoid an error.  */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 /* We use char because int might match the return type of a gcc2
11341    builtin and then its argument prototype would still apply.  */
11342 char $ac_func ();
11343 char (*f) ();
11344
11345 #ifdef F77_DUMMY_MAIN
11346 #  ifdef __cplusplus
11347      extern "C"
11348 #  endif
11349    int F77_DUMMY_MAIN() { return 1; }
11350 #endif
11351 int
11352 main ()
11353 {
11354 /* The GNU C library defines this for functions which it implements
11355     to always fail with ENOSYS.  Some functions are actually named
11356     something starting with __ and the normal name is an alias.  */
11357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11358 choke me
11359 #else
11360 f = $ac_func;
11361 #endif
11362
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369   (eval $ac_link) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -s conftest$ac_exeext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   eval "$as_ac_var=yes"
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11383 eval "$as_ac_var=no"
11384 fi
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11386 fi
11387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 else
11395   pgac_need_repl_snprintf=yes
11396 fi
11397 done
11398
11399
11400 for ac_func in vsnprintf
11401 do
11402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11403 echo "$as_me:$LINENO: checking for $ac_func" >&5
11404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11405 if eval "test \"\${$as_ac_var+set}\" = set"; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 /* System header to define __stub macros and hopefully few prototypes,
11412     which can conflict with char $ac_func (); below.  */
11413 #include <assert.h>
11414 /* Override any gcc2 internal prototype to avoid an error.  */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 /* We use char because int might match the return type of a gcc2
11419    builtin and then its argument prototype would still apply.  */
11420 char $ac_func ();
11421 char (*f) ();
11422
11423 #ifdef F77_DUMMY_MAIN
11424 #  ifdef __cplusplus
11425      extern "C"
11426 #  endif
11427    int F77_DUMMY_MAIN() { return 1; }
11428 #endif
11429 int
11430 main ()
11431 {
11432 /* The GNU C library defines this for functions which it implements
11433     to always fail with ENOSYS.  Some functions are actually named
11434     something starting with __ and the normal name is an alias.  */
11435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11436 choke me
11437 #else
11438 f = $ac_func;
11439 #endif
11440
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447   (eval $ac_link) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); } &&
11451          { ac_try='test -s conftest$ac_exeext'
11452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453   (eval $ac_try) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; }; then
11457   eval "$as_ac_var=yes"
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11461 eval "$as_ac_var=no"
11462 fi
11463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11464 fi
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468   cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11471
11472 else
11473   pgac_need_repl_snprintf=yes
11474 fi
11475 done
11476
11477
11478
11479 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11480 # include/c.h will provide declarations.  Note this is a separate test
11481 # from whether the functions exist in the C library --- there are
11482 # systems that have the functions but don't bother to declare them :-(
11483
11484 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11485 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11486 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   cat >conftest.$ac_ext <<_ACEOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11492 $ac_includes_default
11493 #ifdef F77_DUMMY_MAIN
11494 #  ifdef __cplusplus
11495      extern "C"
11496 #  endif
11497    int F77_DUMMY_MAIN() { return 1; }
11498 #endif
11499 int
11500 main ()
11501 {
11502 #ifndef snprintf
11503   char *p = (char *) snprintf;
11504 #endif
11505
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512   (eval $ac_compile) 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } &&
11516          { ac_try='test -s conftest.$ac_objext'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; }; then
11522   ac_cv_have_decl_snprintf=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 ac_cv_have_decl_snprintf=no
11527 fi
11528 rm -f conftest.$ac_objext conftest.$ac_ext
11529 fi
11530 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11531 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11532 if test $ac_cv_have_decl_snprintf = yes; then
11533
11534 cat >>confdefs.h <<_ACEOF
11535 #define HAVE_DECL_SNPRINTF 1
11536 _ACEOF
11537
11538
11539 else
11540   cat >>confdefs.h <<_ACEOF
11541 #define HAVE_DECL_SNPRINTF 0
11542 _ACEOF
11543
11544
11545 fi
11546 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11547 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11548 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11553 #include "confdefs.h"
11554 $ac_includes_default
11555 #ifdef F77_DUMMY_MAIN
11556 #  ifdef __cplusplus
11557      extern "C"
11558 #  endif
11559    int F77_DUMMY_MAIN() { return 1; }
11560 #endif
11561 int
11562 main ()
11563 {
11564 #ifndef vsnprintf
11565   char *p = (char *) vsnprintf;
11566 #endif
11567
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574   (eval $ac_compile) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -s conftest.$ac_objext'
11579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580   (eval $ac_try) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; }; then
11584   ac_cv_have_decl_vsnprintf=yes
11585 else
11586   echo "$as_me: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 ac_cv_have_decl_vsnprintf=no
11589 fi
11590 rm -f conftest.$ac_objext conftest.$ac_ext
11591 fi
11592 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11593 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11594 if test $ac_cv_have_decl_vsnprintf = yes; then
11595
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_DECL_VSNPRINTF 1
11598 _ACEOF
11599
11600
11601 else
11602   cat >>confdefs.h <<_ACEOF
11603 #define HAVE_DECL_VSNPRINTF 0
11604 _ACEOF
11605
11606
11607 fi
11608
11609
11610
11611
11612 # do this one the hard way in case isinf() is a macro
11613 echo "$as_me:$LINENO: checking for isinf" >&5
11614 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11615 if test "${ac_cv_func_isinf+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 #include "confdefs.h"
11621 #include <math.h>
11622
11623 #ifdef F77_DUMMY_MAIN
11624 #  ifdef __cplusplus
11625      extern "C"
11626 #  endif
11627    int F77_DUMMY_MAIN() { return 1; }
11628 #endif
11629 int
11630 main ()
11631 {
11632 double x = 0.0; int res = isinf(x);
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639   (eval $ac_link) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -s conftest$ac_exeext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_func_isinf=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 ac_cv_func_isinf=no
11654 fi
11655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656 fi
11657 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11658 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11659
11660 if test $ac_cv_func_isinf = yes ; then
11661
11662 cat >>confdefs.h <<\_ACEOF
11663 #define HAVE_ISINF 1
11664 _ACEOF
11665
11666 else
11667   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11668   # Look for a way to implement a substitute for isinf()
11669
11670
11671
11672
11673 for ac_func in fpclass fp_class fp_class_d class
11674 do
11675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676 echo "$as_me:$LINENO: checking for $ac_func" >&5
11677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11678 if eval "test \"\${$as_ac_var+set}\" = set"; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11683 #include "confdefs.h"
11684 /* System header to define __stub macros and hopefully few prototypes,
11685     which can conflict with char $ac_func (); below.  */
11686 #include <assert.h>
11687 /* Override any gcc2 internal prototype to avoid an error.  */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 /* We use char because int might match the return type of a gcc2
11692    builtin and then its argument prototype would still apply.  */
11693 char $ac_func ();
11694 char (*f) ();
11695
11696 #ifdef F77_DUMMY_MAIN
11697 #  ifdef __cplusplus
11698      extern "C"
11699 #  endif
11700    int F77_DUMMY_MAIN() { return 1; }
11701 #endif
11702 int
11703 main ()
11704 {
11705 /* The GNU C library defines this for functions which it implements
11706     to always fail with ENOSYS.  Some functions are actually named
11707     something starting with __ and the normal name is an alias.  */
11708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709 choke me
11710 #else
11711 f = $ac_func;
11712 #endif
11713
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -s conftest$ac_exeext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   eval "$as_ac_var=yes"
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11735 fi
11736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737 fi
11738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741   cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743 _ACEOF
11744  break
11745 fi
11746 done
11747
11748 fi
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11765 do
11766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 echo "$as_me:$LINENO: checking for $ac_func" >&5
11768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_var+set}\" = set"; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   cat >conftest.$ac_ext <<_ACEOF
11773 #line $LINENO "configure"
11774 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes,
11776     which can conflict with char $ac_func (); below.  */
11777 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error.  */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 /* We use char because int might match the return type of a gcc2
11783    builtin and then its argument prototype would still apply.  */
11784 char $ac_func ();
11785 char (*f) ();
11786
11787 #ifdef F77_DUMMY_MAIN
11788 #  ifdef __cplusplus
11789      extern "C"
11790 #  endif
11791    int F77_DUMMY_MAIN() { return 1; }
11792 #endif
11793 int
11794 main ()
11795 {
11796 /* The GNU C library defines this for functions which it implements
11797     to always fail with ENOSYS.  Some functions are actually named
11798     something starting with __ and the normal name is an alias.  */
11799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11800 choke me
11801 #else
11802 f = $ac_func;
11803 #endif
11804
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811   (eval $ac_link) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817   (eval $ac_try) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; }; then
11821   eval "$as_ac_var=yes"
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 eval "$as_ac_var=no"
11826 fi
11827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11828 fi
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11831 if test `eval echo '${'$as_ac_var'}'` = yes; then
11832   cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11834 _ACEOF
11835
11836 else
11837   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11838 fi
11839 done
11840
11841
11842
11843 # system's version of getaddrinfo(), if any, may be used only if we found
11844 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11845 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11846
11847 for ac_func in getaddrinfo
11848 do
11849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11850 echo "$as_me:$LINENO: checking for $ac_func" >&5
11851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11852 if eval "test \"\${$as_ac_var+set}\" = set"; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 #include "confdefs.h"
11858 /* System header to define __stub macros and hopefully few prototypes,
11859     which can conflict with char $ac_func (); below.  */
11860 #include <assert.h>
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 /* We use char because int might match the return type of a gcc2
11866    builtin and then its argument prototype would still apply.  */
11867 char $ac_func ();
11868 char (*f) ();
11869
11870 #ifdef F77_DUMMY_MAIN
11871 #  ifdef __cplusplus
11872      extern "C"
11873 #  endif
11874    int F77_DUMMY_MAIN() { return 1; }
11875 #endif
11876 int
11877 main ()
11878 {
11879 /* The GNU C library defines this for functions which it implements
11880     to always fail with ENOSYS.  Some functions are actually named
11881     something starting with __ and the normal name is an alias.  */
11882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11883 choke me
11884 #else
11885 f = $ac_func;
11886 #endif
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900   (eval $ac_try) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }; }; then
11904   eval "$as_ac_var=yes"
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 eval "$as_ac_var=no"
11909 fi
11910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11915   cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11917 _ACEOF
11918
11919 else
11920   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11921 fi
11922 done
11923
11924
11925 else
11926   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11927 fi
11928
11929 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11930 # We override the previous test that said fseeko/ftello didn't exist
11931 # OS tests are also done in include/c.h and port/fseeko.c
11932 case $host_os in bsdi*|netbsd*)
11933 ac_cv_func_fseeko=yes
11934 esac
11935
11936 # Solaris has a very slow qsort in certain cases, so we replace it.
11937 case $host_os in solaris*)
11938 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11939 esac
11940
11941 # Win32 can't to rename or unlink on an open file
11942 case $host_os in mingw*)
11943 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11944 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11945 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11946 esac
11947
11948 if test "$with_readline" = yes; then
11949   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11950 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11954 #include <stdio.h>
11955 #ifdef HAVE_READLINE_READLINE_H
11956 # include <readline/readline.h>
11957 #elif defined(HAVE_READLINE_H)
11958 # include <readline.h>
11959 #endif
11960
11961 #ifdef F77_DUMMY_MAIN
11962 #  ifdef __cplusplus
11963      extern "C"
11964 #  endif
11965    int F77_DUMMY_MAIN() { return 1; }
11966 #endif
11967 int
11968 main ()
11969 {
11970 rl_completion_append_character = 'x';
11971   ;
11972   return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977   (eval $ac_link) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   echo "$as_me:$LINENO: result: yes" >&5
11988 echo "${ECHO_T}yes" >&6
11989
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11992 _ACEOF
11993
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 echo "$as_me:$LINENO: result: no" >&5
11998 echo "${ECHO_T}no" >&6
11999 fi
12000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001
12002
12003 for ac_func in rl_completion_matches rl_filename_completion_function
12004 do
12005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12006 echo "$as_me:$LINENO: checking for $ac_func" >&5
12007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12008 if eval "test \"\${$as_ac_var+set}\" = set"; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 #line $LINENO "configure"
12013 #include "confdefs.h"
12014 /* System header to define __stub macros and hopefully few prototypes,
12015     which can conflict with char $ac_func (); below.  */
12016 #include <assert.h>
12017 /* Override any gcc2 internal prototype to avoid an error.  */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 /* We use char because int might match the return type of a gcc2
12022    builtin and then its argument prototype would still apply.  */
12023 char $ac_func ();
12024 char (*f) ();
12025
12026 #ifdef F77_DUMMY_MAIN
12027 #  ifdef __cplusplus
12028      extern "C"
12029 #  endif
12030    int F77_DUMMY_MAIN() { return 1; }
12031 #endif
12032 int
12033 main ()
12034 {
12035 /* The GNU C library defines this for functions which it implements
12036     to always fail with ENOSYS.  Some functions are actually named
12037     something starting with __ and the normal name is an alias.  */
12038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12039 choke me
12040 #else
12041 f = $ac_func;
12042 #endif
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050   (eval $ac_link) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } &&
12054          { ac_try='test -s conftest$ac_exeext'
12055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056   (eval $ac_try) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; }; then
12060   eval "$as_ac_var=yes"
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 eval "$as_ac_var=no"
12065 fi
12066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12067 fi
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071   cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12074
12075 fi
12076 done
12077
12078
12079 for ac_func in replace_history_entry
12080 do
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   cat >conftest.$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091     which can conflict with char $ac_func (); below.  */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098    builtin and then its argument prototype would still apply.  */
12099 char $ac_func ();
12100 char (*f) ();
12101
12102 #ifdef F77_DUMMY_MAIN
12103 #  ifdef __cplusplus
12104      extern "C"
12105 #  endif
12106    int F77_DUMMY_MAIN() { return 1; }
12107 #endif
12108 int
12109 main ()
12110 {
12111 /* The GNU C library defines this for functions which it implements
12112     to always fail with ENOSYS.  Some functions are actually named
12113     something starting with __ and the normal name is an alias.  */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 f = $ac_func;
12118 #endif
12119
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126   (eval $ac_link) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } &&
12130          { ac_try='test -s conftest$ac_exeext'
12131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132   (eval $ac_try) 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136   eval "$as_ac_var=yes"
12137 else
12138   echo "$as_me: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 eval "$as_ac_var=no"
12141 fi
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143 fi
12144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147   cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12149 _ACEOF
12150
12151 fi
12152 done
12153
12154 fi
12155
12156
12157 echo "$as_me:$LINENO: checking for finite" >&5
12158 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162 #include <math.h>
12163 #ifdef F77_DUMMY_MAIN
12164 #  ifdef __cplusplus
12165      extern "C"
12166 #  endif
12167    int F77_DUMMY_MAIN() { return 1; }
12168 #endif
12169 int
12170 main ()
12171 {
12172 int dummy=finite(1.0);
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179   (eval $ac_link) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_FINITE 1
12192 _ACEOF
12193
12194 echo "$as_me:$LINENO: result: yes" >&5
12195 echo "${ECHO_T}yes" >&6
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12201 fi
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12203
12204 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12205 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12207 #line $LINENO "configure"
12208 #include "confdefs.h"
12209 #include <setjmp.h>
12210 #ifdef F77_DUMMY_MAIN
12211 #  ifdef __cplusplus
12212      extern "C"
12213 #  endif
12214    int F77_DUMMY_MAIN() { return 1; }
12215 #endif
12216 int
12217 main ()
12218 {
12219 sigjmp_buf x; sigsetjmp(x, 1);
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226   (eval $ac_link) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -s conftest$ac_exeext'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; }; then
12236
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_SIGSETJMP 1
12239 _ACEOF
12240
12241 echo "$as_me:$LINENO: result: yes" >&5
12242 echo "${ECHO_T}yes" >&6
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6
12248 fi
12249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12250
12251 echo "$as_me:$LINENO: checking for syslog" >&5
12252 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12253 if test "${ac_cv_func_syslog+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 /* System header to define __stub macros and hopefully few prototypes,
12260     which can conflict with char syslog (); below.  */
12261 #include <assert.h>
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267    builtin and then its argument prototype would still apply.  */
12268 char syslog ();
12269 char (*f) ();
12270
12271 #ifdef F77_DUMMY_MAIN
12272 #  ifdef __cplusplus
12273      extern "C"
12274 #  endif
12275    int F77_DUMMY_MAIN() { return 1; }
12276 #endif
12277 int
12278 main ()
12279 {
12280 /* The GNU C library defines this for functions which it implements
12281     to always fail with ENOSYS.  Some functions are actually named
12282     something starting with __ and the normal name is an alias.  */
12283 #if defined (__stub_syslog) || defined (__stub___syslog)
12284 choke me
12285 #else
12286 f = syslog;
12287 #endif
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295   (eval $ac_link) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_func_syslog=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 ac_cv_func_syslog=no
12310 fi
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12312 fi
12313 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12314 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12315 if test $ac_cv_func_syslog = yes; then
12316   if test "${ac_cv_header_syslog_h+set}" = set; then
12317   echo "$as_me:$LINENO: checking for syslog.h" >&5
12318 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12319 if test "${ac_cv_header_syslog_h+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 fi
12322 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12323 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12324 else
12325   # Is the header compilable?
12326 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12327 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12331 $ac_includes_default
12332 #include <syslog.h>
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336   (eval $ac_compile) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); } &&
12340          { ac_try='test -s conftest.$ac_objext'
12341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342   (eval $ac_try) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); }; }; then
12346   ac_header_compiler=yes
12347 else
12348   echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 ac_header_compiler=no
12351 fi
12352 rm -f conftest.$ac_objext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6
12355
12356 # Is the header present?
12357 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12358 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 #include <syslog.h>
12363 _ACEOF
12364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12366   ac_status=$?
12367   egrep -v '^ *\+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } >/dev/null; then
12372   if test -s conftest.err; then
12373     ac_cpp_err=$ac_c_preproc_warn_flag
12374   else
12375     ac_cpp_err=
12376   fi
12377 else
12378   ac_cpp_err=yes
12379 fi
12380 if test -z "$ac_cpp_err"; then
12381   ac_header_preproc=yes
12382 else
12383   echo "$as_me: failed program was:" >&5
12384   cat conftest.$ac_ext >&5
12385   ac_header_preproc=no
12386 fi
12387 rm -f conftest.err conftest.$ac_ext
12388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12389 echo "${ECHO_T}$ac_header_preproc" >&6
12390
12391 # So?  What about this header?
12392 case $ac_header_compiler:$ac_header_preproc in
12393   yes:no )
12394     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12395 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12397 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12398   no:yes )
12399     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12400 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12401     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12402 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12403     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12404 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12405 esac
12406 echo "$as_me:$LINENO: checking for syslog.h" >&5
12407 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12408 if test "${ac_cv_header_syslog_h+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   ac_cv_header_syslog_h=$ac_header_preproc
12412 fi
12413 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12415
12416 fi
12417 if test $ac_cv_header_syslog_h = yes; then
12418
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_SYSLOG 1
12421 _ACEOF
12422
12423 fi
12424
12425
12426 fi
12427
12428
12429 echo "$as_me:$LINENO: checking for optreset" >&5
12430 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12431 if test "${pgac_cv_var_int_optreset+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   cat >conftest.$ac_ext <<_ACEOF
12435 #line $LINENO "configure"
12436 #include "confdefs.h"
12437 #include <unistd.h>
12438 #ifdef F77_DUMMY_MAIN
12439 #  ifdef __cplusplus
12440      extern "C"
12441 #  endif
12442    int F77_DUMMY_MAIN() { return 1; }
12443 #endif
12444 int
12445 main ()
12446 {
12447 extern int optreset; optreset = 1;
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454   (eval $ac_link) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } &&
12458          { ac_try='test -s conftest$ac_exeext'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   pgac_cv_var_int_optreset=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 pgac_cv_var_int_optreset=no
12469 fi
12470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12471 fi
12472 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12473 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12474 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12475
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_INT_OPTRESET 1
12478 _ACEOF
12479
12480 fi
12481
12482
12483
12484 for ac_func in strtoll strtoq
12485 do
12486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12487 echo "$as_me:$LINENO: checking for $ac_func" >&5
12488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12489 if eval "test \"\${$as_ac_var+set}\" = set"; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492   cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495 /* System header to define __stub macros and hopefully few prototypes,
12496     which can conflict with char $ac_func (); below.  */
12497 #include <assert.h>
12498 /* Override any gcc2 internal prototype to avoid an error.  */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 /* We use char because int might match the return type of a gcc2
12503    builtin and then its argument prototype would still apply.  */
12504 char $ac_func ();
12505 char (*f) ();
12506
12507 #ifdef F77_DUMMY_MAIN
12508 #  ifdef __cplusplus
12509      extern "C"
12510 #  endif
12511    int F77_DUMMY_MAIN() { return 1; }
12512 #endif
12513 int
12514 main ()
12515 {
12516 /* The GNU C library defines this for functions which it implements
12517     to always fail with ENOSYS.  Some functions are actually named
12518     something starting with __ and the normal name is an alias.  */
12519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12520 choke me
12521 #else
12522 f = $ac_func;
12523 #endif
12524
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531   (eval $ac_link) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   eval "$as_ac_var=yes"
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 eval "$as_ac_var=no"
12546 fi
12547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12548 fi
12549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12551 if test `eval echo '${'$as_ac_var'}'` = yes; then
12552   cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12554 _ACEOF
12555  break
12556 fi
12557 done
12558
12559
12560
12561 for ac_func in strtoull strtouq
12562 do
12563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12564 echo "$as_me:$LINENO: checking for $ac_func" >&5
12565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_var+set}\" = set"; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   cat >conftest.$ac_ext <<_ACEOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572 /* System header to define __stub macros and hopefully few prototypes,
12573     which can conflict with char $ac_func (); below.  */
12574 #include <assert.h>
12575 /* Override any gcc2 internal prototype to avoid an error.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 /* We use char because int might match the return type of a gcc2
12580    builtin and then its argument prototype would still apply.  */
12581 char $ac_func ();
12582 char (*f) ();
12583
12584 #ifdef F77_DUMMY_MAIN
12585 #  ifdef __cplusplus
12586      extern "C"
12587 #  endif
12588    int F77_DUMMY_MAIN() { return 1; }
12589 #endif
12590 int
12591 main ()
12592 {
12593 /* The GNU C library defines this for functions which it implements
12594     to always fail with ENOSYS.  Some functions are actually named
12595     something starting with __ and the normal name is an alias.  */
12596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12597 choke me
12598 #else
12599 f = $ac_func;
12600 #endif
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608   (eval $ac_link) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } &&
12612          { ac_try='test -s conftest$ac_exeext'
12613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614   (eval $ac_try) 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   eval "$as_ac_var=yes"
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 eval "$as_ac_var=no"
12623 fi
12624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12625 fi
12626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12628 if test `eval echo '${'$as_ac_var'}'` = yes; then
12629   cat >>confdefs.h <<_ACEOF
12630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12631 _ACEOF
12632  break
12633 fi
12634 done
12635
12636
12637 # Check for one of atexit() or on_exit()
12638
12639 for ac_func in atexit
12640 do
12641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12642 echo "$as_me:$LINENO: checking for $ac_func" >&5
12643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12644 if eval "test \"\${$as_ac_var+set}\" = set"; then
12645   echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647   cat >conftest.$ac_ext <<_ACEOF
12648 #line $LINENO "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651     which can conflict with char $ac_func (); below.  */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error.  */
12654 #ifdef __cplusplus
12655 extern "C"
12656 #endif
12657 /* We use char because int might match the return type of a gcc2
12658    builtin and then its argument prototype would still apply.  */
12659 char $ac_func ();
12660 char (*f) ();
12661
12662 #ifdef F77_DUMMY_MAIN
12663 #  ifdef __cplusplus
12664      extern "C"
12665 #  endif
12666    int F77_DUMMY_MAIN() { return 1; }
12667 #endif
12668 int
12669 main ()
12670 {
12671 /* The GNU C library defines this for functions which it implements
12672     to always fail with ENOSYS.  Some functions are actually named
12673     something starting with __ and the normal name is an alias.  */
12674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12675 choke me
12676 #else
12677 f = $ac_func;
12678 #endif
12679
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12686   (eval $ac_link) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } &&
12690          { ac_try='test -s conftest$ac_exeext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   eval "$as_ac_var=yes"
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 cat conftest.$ac_ext >&5
12700 eval "$as_ac_var=no"
12701 fi
12702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12703 fi
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12706 if test `eval echo '${'$as_ac_var'}'` = yes; then
12707   cat >>confdefs.h <<_ACEOF
12708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709 _ACEOF
12710
12711 else
12712
12713 for ac_func in on_exit
12714 do
12715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12716 echo "$as_me:$LINENO: checking for $ac_func" >&5
12717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12718 if eval "test \"\${$as_ac_var+set}\" = set"; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 /* System header to define __stub macros and hopefully few prototypes,
12725     which can conflict with char $ac_func (); below.  */
12726 #include <assert.h>
12727 /* Override any gcc2 internal prototype to avoid an error.  */
12728 #ifdef __cplusplus
12729 extern "C"
12730 #endif
12731 /* We use char because int might match the return type of a gcc2
12732    builtin and then its argument prototype would still apply.  */
12733 char $ac_func ();
12734 char (*f) ();
12735
12736 #ifdef F77_DUMMY_MAIN
12737 #  ifdef __cplusplus
12738      extern "C"
12739 #  endif
12740    int F77_DUMMY_MAIN() { return 1; }
12741 #endif
12742 int
12743 main ()
12744 {
12745 /* The GNU C library defines this for functions which it implements
12746     to always fail with ENOSYS.  Some functions are actually named
12747     something starting with __ and the normal name is an alias.  */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749 choke me
12750 #else
12751 f = $ac_func;
12752 #endif
12753
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760   (eval $ac_link) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -s conftest$ac_exeext'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; }; then
12770   eval "$as_ac_var=yes"
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 eval "$as_ac_var=no"
12775 fi
12776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12777 fi
12778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781   cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 _ACEOF
12784
12785 else
12786   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12787 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12788    { (exit 1); exit 1; }; }
12789 fi
12790 done
12791
12792 fi
12793 done
12794
12795
12796 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12797 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12798 if test "${ac_cv_sys_largefile_source+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   while :; do
12802   ac_cv_sys_largefile_source=no
12803   cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12806 #include <stdio.h>
12807 #ifdef F77_DUMMY_MAIN
12808 #  ifdef __cplusplus
12809      extern "C"
12810 #  endif
12811    int F77_DUMMY_MAIN() { return 1; }
12812 #endif
12813 int
12814 main ()
12815 {
12816 return !fseeko;
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -s conftest.$ac_objext'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833   break
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 cat conftest.$ac_ext >&5
12837 fi
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839   cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12842 #define _LARGEFILE_SOURCE 1
12843 #include <stdio.h>
12844 #ifdef F77_DUMMY_MAIN
12845 #  ifdef __cplusplus
12846      extern "C"
12847 #  endif
12848    int F77_DUMMY_MAIN() { return 1; }
12849 #endif
12850 int
12851 main ()
12852 {
12853 return !fseeko;
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860   (eval $ac_compile) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); } &&
12864          { ac_try='test -s conftest.$ac_objext'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_sys_largefile_source=1; break
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12874 fi
12875 rm -f conftest.$ac_objext conftest.$ac_ext
12876   break
12877 done
12878 fi
12879 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12880 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12881 if test "$ac_cv_sys_largefile_source" != no; then
12882
12883 cat >>confdefs.h <<_ACEOF
12884 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12885 _ACEOF
12886
12887 fi
12888 rm -f conftest*
12889
12890 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12891 # in glibc 2.1.3, but that breaks too many other things.
12892 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12893 echo "$as_me:$LINENO: checking for fseeko" >&5
12894 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12895 if test "${ac_cv_func_fseeko+set}" = set; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898   cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12901 #include <stdio.h>
12902 #ifdef F77_DUMMY_MAIN
12903 #  ifdef __cplusplus
12904      extern "C"
12905 #  endif
12906    int F77_DUMMY_MAIN() { return 1; }
12907 #endif
12908 int
12909 main ()
12910 {
12911 return fseeko && fseeko (stdin, 0, 0);
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918   (eval $ac_link) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); } &&
12922          { ac_try='test -s conftest$ac_exeext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_cv_func_fseeko=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 ac_cv_func_fseeko=no
12933 fi
12934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12935 fi
12936 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12937 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12938 if test $ac_cv_func_fseeko = yes; then
12939
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_FSEEKO 1
12942 _ACEOF
12943
12944 fi
12945
12946
12947 #
12948 # Pthreads
12949 #
12950 # For each platform, we need to know about any special compile and link
12951 # libraries, and whether the normal C function names are thread-safe.
12952 #
12953 if test "$enable_thread_safety" = yes; then
12954 if test "${ac_cv_header_pthread_h+set}" = set; then
12955   echo "$as_me:$LINENO: checking for pthread.h" >&5
12956 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12957 if test "${ac_cv_header_pthread_h+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 fi
12960 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12961 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12962 else
12963   # Is the header compilable?
12964 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12965 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 #include "confdefs.h"
12969 $ac_includes_default
12970 #include <pthread.h>
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974   (eval $ac_compile) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -s conftest.$ac_objext'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_header_compiler=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 ac_header_compiler=no
12989 fi
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12992 echo "${ECHO_T}$ac_header_compiler" >&6
12993
12994 # Is the header present?
12995 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12996 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12997 cat >conftest.$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13000 #include <pthread.h>
13001 _ACEOF
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13004   ac_status=$?
13005   egrep -v '^ *\+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_c_preproc_warn_flag
13012   else
13013     ac_cpp_err=
13014   fi
13015 else
13016   ac_cpp_err=yes
13017 fi
13018 if test -z "$ac_cpp_err"; then
13019   ac_header_preproc=yes
13020 else
13021   echo "$as_me: failed program was:" >&5
13022   cat conftest.$ac_ext >&5
13023   ac_header_preproc=no
13024 fi
13025 rm -f conftest.err conftest.$ac_ext
13026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13027 echo "${ECHO_T}$ac_header_preproc" >&6
13028
13029 # So?  What about this header?
13030 case $ac_header_compiler:$ac_header_preproc in
13031   yes:no )
13032     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13033 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13035 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13036   no:yes )
13037     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13038 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13039     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13040 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13042 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13043 esac
13044 echo "$as_me:$LINENO: checking for pthread.h" >&5
13045 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13046 if test "${ac_cv_header_pthread_h+set}" = set; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049   ac_cv_header_pthread_h=$ac_header_preproc
13050 fi
13051 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13052 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13053
13054 fi
13055 if test $ac_cv_header_pthread_h = yes; then
13056   :
13057 else
13058   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
13059 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
13060    { (exit 1); exit 1; }; }
13061 fi
13062
13063
13064
13065 if test "$SUPPORTS_THREADS" != yes; then
13066 { { echo "$as_me:$LINENO: error:
13067 Cannot enable threads on your platform.
13068 Please report your platform threading info to the PostgreSQL mailing lists
13069 so it can be added to the next release.  Report all compile flags, link flags,
13070 functions, or libraries required for threading support.
13071 " >&5
13072 echo "$as_me: error:
13073 Cannot enable threads on your platform.
13074 Please report your platform threading info to the PostgreSQL mailing lists
13075 so it can be added to the next release.  Report all compile flags, link flags,
13076 functions, or libraries required for threading support.
13077 " >&2;}
13078    { (exit 1); exit 1; }; }
13079 fi
13080 else
13081 # do not use values from template file
13082 THREAD_CFLAGS=
13083 THREAD_LIBS=
13084 fi
13085
13086
13087
13088
13089 #
13090 # Check for re-entrant versions of certain functions
13091 #
13092 # Include special flags if threads are enabled _and_ if required for
13093 # threading on this platform.  Some platforms have *_r functions but
13094 # their natively named funcs are threadsafe, and should be used instead.
13095 #
13096 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13097 # functions are marked "not found", which is perfect.
13098 #
13099 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13100 _CFLAGS="$CFLAGS"
13101 _LIBS="$LIBS"
13102 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13103 LIBS="$LIBS $THREAD_LIBS"
13104
13105
13106
13107 for ac_func in strerror_r getpwuid_r gethostbyname_r
13108 do
13109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13110 echo "$as_me:$LINENO: checking for $ac_func" >&5
13111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13112 if eval "test \"\${$as_ac_var+set}\" = set"; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115   cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118 /* System header to define __stub macros and hopefully few prototypes,
13119     which can conflict with char $ac_func (); below.  */
13120 #include <assert.h>
13121 /* Override any gcc2 internal prototype to avoid an error.  */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 /* We use char because int might match the return type of a gcc2
13126    builtin and then its argument prototype would still apply.  */
13127 char $ac_func ();
13128 char (*f) ();
13129
13130 #ifdef F77_DUMMY_MAIN
13131 #  ifdef __cplusplus
13132      extern "C"
13133 #  endif
13134    int F77_DUMMY_MAIN() { return 1; }
13135 #endif
13136 int
13137 main ()
13138 {
13139 /* The GNU C library defines this for functions which it implements
13140     to always fail with ENOSYS.  Some functions are actually named
13141     something starting with __ and the normal name is an alias.  */
13142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13143 choke me
13144 #else
13145 f = $ac_func;
13146 #endif
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154   (eval $ac_link) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -s conftest$ac_exeext'
13159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160   (eval $ac_try) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; }; then
13164   eval "$as_ac_var=yes"
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 eval "$as_ac_var=no"
13169 fi
13170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13171 fi
13172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13174 if test `eval echo '${'$as_ac_var'}'` = yes; then
13175   cat >>confdefs.h <<_ACEOF
13176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13177 _ACEOF
13178
13179 fi
13180 done
13181
13182 CFLAGS="$_CFLAGS"
13183 LIBS="$_LIBS"
13184 fi
13185
13186
13187 # This test makes sure that run tests work at all.  Sometimes a shared
13188 # library is found by the linker, but the runtime linker can't find it.
13189 # This check should come after all modifications of compiler or linker
13190 # variables, and before any other run tests.
13191 echo "$as_me:$LINENO: checking test program" >&5
13192 echo $ECHO_N "checking test program... $ECHO_C" >&6
13193 if test "$cross_compiling" = yes; then
13194   echo "$as_me:$LINENO: result: cross-compiling" >&5
13195 echo "${ECHO_T}cross-compiling" >&6
13196 else
13197   cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 #include "confdefs.h"
13200 int main() { return 0; }
13201 _ACEOF
13202 rm -f conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204   (eval $ac_link) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209   (eval $ac_try) 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }; }; then
13213   echo "$as_me:$LINENO: result: ok" >&5
13214 echo "${ECHO_T}ok" >&6
13215 else
13216   echo "$as_me: program exited with status $ac_status" >&5
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 echo "$as_me:$LINENO: result: failed" >&5
13221 echo "${ECHO_T}failed" >&6
13222 { { echo "$as_me:$LINENO: error:
13223 *** Could not execute a simple test program.  This may be a problem
13224 *** related to locating shared libraries.  Check the file 'config.log'
13225 *** for the exact reason." >&5
13226 echo "$as_me: error:
13227 *** Could not execute a simple test program.  This may be a problem
13228 *** related to locating shared libraries.  Check the file 'config.log'
13229 *** for the exact reason." >&2;}
13230    { (exit 1); exit 1; }; }
13231 fi
13232 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13233 fi
13234
13235
13236
13237 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13238 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13239 if test "${pgac_cv_type_long_int_64+set}" = set; then
13240   echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242   if test "$cross_compiling" = yes; then
13243   # If cross-compiling, check the size reported by the compiler and
13244 # trust that the arithmetic works.
13245 cat >conftest.$ac_ext <<_ACEOF
13246 #line $LINENO "configure"
13247 #include "confdefs.h"
13248
13249 #ifdef F77_DUMMY_MAIN
13250 #  ifdef __cplusplus
13251      extern "C"
13252 #  endif
13253    int F77_DUMMY_MAIN() { return 1; }
13254 #endif
13255 int
13256 main ()
13257 {
13258 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13259 test_array [0] = 0
13260
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267   (eval $ac_compile) 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); } &&
13271          { ac_try='test -s conftest.$ac_objext'
13272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273   (eval $ac_try) 2>&5
13274   ac_status=$?
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); }; }; then
13277   pgac_cv_type_long_int_64=yes
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 pgac_cv_type_long_int_64=no
13282 fi
13283 rm -f conftest.$ac_objext conftest.$ac_ext
13284 else
13285   cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 #include "confdefs.h"
13288 typedef long int int64;
13289
13290 /*
13291  * These are globals to discourage the compiler from folding all the
13292  * arithmetic tests down to compile-time constants.
13293  */
13294 int64 a = 20000001;
13295 int64 b = 40000005;
13296
13297 int does_int64_work()
13298 {
13299   int64 c,d;
13300
13301   if (sizeof(int64) != 8)
13302     return 0;                   /* definitely not the right size */
13303
13304   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13305   c = a * b;
13306   d = (c + b) / b;
13307   if (d != a+1)
13308     return 0;
13309   return 1;
13310 }
13311 main() {
13312   exit(! does_int64_work());
13313 }
13314 _ACEOF
13315 rm -f conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322   (eval $ac_try) 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; }; then
13326   pgac_cv_type_long_int_64=yes
13327 else
13328   echo "$as_me: program exited with status $ac_status" >&5
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 ( exit $ac_status )
13332 pgac_cv_type_long_int_64=no
13333 fi
13334 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 fi
13337 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13338 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13339
13340 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13341 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13342
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_LONG_INT_64
13345 _ACEOF
13346
13347 fi
13348
13349
13350 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13351   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13352 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13353 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13354   echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356   if test "$cross_compiling" = yes; then
13357   # If cross-compiling, check the size reported by the compiler and
13358 # trust that the arithmetic works.
13359 cat >conftest.$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13361 #include "confdefs.h"
13362
13363 #ifdef F77_DUMMY_MAIN
13364 #  ifdef __cplusplus
13365      extern "C"
13366 #  endif
13367    int F77_DUMMY_MAIN() { return 1; }
13368 #endif
13369 int
13370 main ()
13371 {
13372 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13373 test_array [0] = 0
13374
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381   (eval $ac_compile) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } &&
13385          { ac_try='test -s conftest.$ac_objext'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; }; then
13391   pgac_cv_type_long_long_int_64=yes
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 pgac_cv_type_long_long_int_64=no
13396 fi
13397 rm -f conftest.$ac_objext conftest.$ac_ext
13398 else
13399   cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 #include "confdefs.h"
13402 typedef long long int int64;
13403
13404 /*
13405  * These are globals to discourage the compiler from folding all the
13406  * arithmetic tests down to compile-time constants.
13407  */
13408 int64 a = 20000001;
13409 int64 b = 40000005;
13410
13411 int does_int64_work()
13412 {
13413   int64 c,d;
13414
13415   if (sizeof(int64) != 8)
13416     return 0;                   /* definitely not the right size */
13417
13418   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13419   c = a * b;
13420   d = (c + b) / b;
13421   if (d != a+1)
13422     return 0;
13423   return 1;
13424 }
13425 main() {
13426   exit(! does_int64_work());
13427 }
13428 _ACEOF
13429 rm -f conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431   (eval $ac_link) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   pgac_cv_type_long_long_int_64=yes
13441 else
13442   echo "$as_me: program exited with status $ac_status" >&5
13443 echo "$as_me: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 ( exit $ac_status )
13446 pgac_cv_type_long_long_int_64=no
13447 fi
13448 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 fi
13451 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13452 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13453
13454 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13455 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13456
13457 cat >>confdefs.h <<\_ACEOF
13458 #define HAVE_LONG_LONG_INT_64
13459 _ACEOF
13460
13461 fi
13462
13463 fi
13464
13465
13466
13467 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13468   cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 #include "confdefs.h"
13471
13472 #define INT64CONST(x)  x##LL
13473 long long int foo = INT64CONST(0x1234567890123456);
13474
13475 #ifdef F77_DUMMY_MAIN
13476 #  ifdef __cplusplus
13477      extern "C"
13478 #  endif
13479    int F77_DUMMY_MAIN() { return 1; }
13480 #endif
13481 int
13482 main ()
13483 {
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491   (eval $ac_compile) 2>&5
13492   ac_status=$?
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -s conftest.$ac_objext'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_LL_CONSTANTS 1
13504 _ACEOF
13505
13506 else
13507   echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 fi
13510 rm -f conftest.$ac_objext conftest.$ac_ext
13511 fi
13512
13513
13514 # If we found "long int" is 64 bits, assume snprintf handles it.  If
13515 # we found we need to use "long long int", better check.  We cope with
13516 # snprintfs that use either %lld, %qd, or %I64d as the format.  If
13517 # neither works, fall back to our own snprintf emulation (which we
13518 # know uses %lld).
13519
13520 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13521   if test $pgac_need_repl_snprintf = no; then
13522     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13523 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13524 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527   for pgac_format in '%lld' '%qd' '%I64d'; do
13528 if test "$cross_compiling" = yes; then
13529   pgac_cv_snprintf_long_long_int_format=cross; break
13530 else
13531   cat >conftest.$ac_ext <<_ACEOF
13532 #line $LINENO "configure"
13533 #include "confdefs.h"
13534 #include <stdio.h>
13535 typedef long long int int64;
13536 #define INT64_FORMAT "$pgac_format"
13537
13538 int64 a = 20000001;
13539 int64 b = 40000005;
13540
13541 int does_int64_snprintf_work()
13542 {
13543   int64 c;
13544   char buf[100];
13545
13546   if (sizeof(int64) != 8)
13547     return 0;                   /* doesn't look like the right size */
13548
13549   c = a * b;
13550   snprintf(buf, 100, INT64_FORMAT, c);
13551   if (strcmp(buf, "800000140000005") != 0)
13552     return 0;                   /* either multiply or snprintf is busted */
13553   return 1;
13554 }
13555 main() {
13556   exit(! does_int64_snprintf_work());
13557 }
13558 _ACEOF
13559 rm -f conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561   (eval $ac_link) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13571 else
13572   echo "$as_me: program exited with status $ac_status" >&5
13573 echo "$as_me: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 fi
13576 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 done
13579 fi
13580
13581 LONG_LONG_INT_FORMAT=''
13582
13583 case $pgac_cv_snprintf_long_long_int_format in
13584   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13585 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13586   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13587 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13588          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13589   *)     echo "$as_me:$LINENO: result: none" >&5
13590 echo "${ECHO_T}none" >&6;;
13591 esac
13592     if test "$LONG_LONG_INT_FORMAT" = ""; then
13593       # Force usage of our own snprintf, since system snprintf is broken
13594       pgac_need_repl_snprintf=yes
13595       LONG_LONG_INT_FORMAT='%lld'
13596     fi
13597   else
13598     # Here if we previously decided we needed to use our own snprintf
13599     LONG_LONG_INT_FORMAT='%lld'
13600   fi
13601   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13602 else
13603   # Here if we are not using 'long long int' at all
13604   INT64_FORMAT='"%ld"'
13605 fi
13606
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define INT64_FORMAT $INT64_FORMAT
13610 _ACEOF
13611
13612
13613 if test $pgac_need_repl_snprintf = yes; then
13614   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13615 fi
13616
13617 # Need a #define for the size of Datum (unsigned long)
13618 echo "$as_me:$LINENO: checking for unsigned long" >&5
13619 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13620 if test "${ac_cv_type_unsigned_long+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 ((unsigned long *) 0)
13637   return 0;
13638 if (sizeof (unsigned long))
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_unsigned_long=yes
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_type_unsigned_long=no
13661 fi
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13663 fi
13664 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13665 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13666
13667 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13668 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13669 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   if test "$ac_cv_type_unsigned_long" = yes; then
13673   # The cast to unsigned long works around a bug in the HP C Compiler
13674   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13675   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13676   # This bug is HP SR number 8606223364.
13677   if test "$cross_compiling" = yes; then
13678   # Depending upon the size, compute the lo and hi bounds.
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13681 #include "confdefs.h"
13682 $ac_includes_default
13683 #ifdef F77_DUMMY_MAIN
13684 #  ifdef __cplusplus
13685      extern "C"
13686 #  endif
13687    int F77_DUMMY_MAIN() { return 1; }
13688 #endif
13689 int
13690 main ()
13691 {
13692 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13693 test_array [0] = 0
13694
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701   (eval $ac_compile) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -s conftest.$ac_objext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711   ac_lo=0 ac_mid=0
13712   while :; do
13713     cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 #include "confdefs.h"
13716 $ac_includes_default
13717 #ifdef F77_DUMMY_MAIN
13718 #  ifdef __cplusplus
13719      extern "C"
13720 #  endif
13721    int F77_DUMMY_MAIN() { return 1; }
13722 #endif
13723 int
13724 main ()
13725 {
13726 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13727 test_array [0] = 0
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735   (eval $ac_compile) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -s conftest.$ac_objext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_hi=$ac_mid; break
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 ac_lo=`expr $ac_mid + 1`
13750                     if test $ac_lo -le $ac_mid; then
13751                       ac_lo= ac_hi=
13752                       break
13753                     fi
13754                     ac_mid=`expr 2 '*' $ac_mid + 1`
13755 fi
13756 rm -f conftest.$ac_objext conftest.$ac_ext
13757   done
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 cat >conftest.$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13763 #include "confdefs.h"
13764 $ac_includes_default
13765 #ifdef F77_DUMMY_MAIN
13766 #  ifdef __cplusplus
13767      extern "C"
13768 #  endif
13769    int F77_DUMMY_MAIN() { return 1; }
13770 #endif
13771 int
13772 main ()
13773 {
13774 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13775 test_array [0] = 0
13776
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783   (eval $ac_compile) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -s conftest.$ac_objext'
13788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789   (eval $ac_try) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793   ac_hi=-1 ac_mid=-1
13794   while :; do
13795     cat >conftest.$ac_ext <<_ACEOF
13796 #line $LINENO "configure"
13797 #include "confdefs.h"
13798 $ac_includes_default
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 * !(((long) (sizeof (unsigned long))) >= $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 #ifdef F77_DUMMY_MAIN
13856 #  ifdef __cplusplus
13857      extern "C"
13858 #  endif
13859    int F77_DUMMY_MAIN() { return 1; }
13860 #endif
13861 int
13862 main ()
13863 {
13864 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13865 test_array [0] = 0
13866
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873   (eval $ac_compile) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); } &&
13877          { ac_try='test -s conftest.$ac_objext'
13878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879   (eval $ac_try) 2>&5
13880   ac_status=$?
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); }; }; then
13883   ac_hi=$ac_mid
13884 else
13885   echo "$as_me: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13887 ac_lo=`expr '(' $ac_mid ')' + 1`
13888 fi
13889 rm -f conftest.$ac_objext conftest.$ac_ext
13890 done
13891 case $ac_lo in
13892 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13893 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13894 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13895    { (exit 1); exit 1; }; } ;;
13896 esac
13897 else
13898   if test "$cross_compiling" = yes; then
13899   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13900 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13901    { (exit 1); exit 1; }; }
13902 else
13903   cat >conftest.$ac_ext <<_ACEOF
13904 #line $LINENO "configure"
13905 #include "confdefs.h"
13906 $ac_includes_default
13907 long longval () { return (long) (sizeof (unsigned long)); }
13908 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13909 #include <stdio.h>
13910 #include <stdlib.h>
13911 #ifdef F77_DUMMY_MAIN
13912 #  ifdef __cplusplus
13913      extern "C"
13914 #  endif
13915    int F77_DUMMY_MAIN() { return 1; }
13916 #endif
13917 int
13918 main ()
13919 {
13920
13921   FILE *f = fopen ("conftest.val", "w");
13922   if (! f)
13923     exit (1);
13924   if (((long) (sizeof (unsigned long))) < 0)
13925     {
13926       long i = longval ();
13927       if (i != ((long) (sizeof (unsigned long))))
13928         exit (1);
13929       fprintf (f, "%ld\n", i);
13930     }
13931   else
13932     {
13933       unsigned long i = ulongval ();
13934       if (i != ((long) (sizeof (unsigned long))))
13935         exit (1);
13936       fprintf (f, "%lu\n", i);
13937     }
13938   exit (ferror (f) || fclose (f) != 0);
13939
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946   (eval $ac_link) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13956 else
13957   echo "$as_me: program exited with status $ac_status" >&5
13958 echo "$as_me: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13960 ( exit $ac_status )
13961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13962 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13963    { (exit 1); exit 1; }; }
13964 fi
13965 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13966 fi
13967 fi
13968 rm -f conftest.val
13969 else
13970   ac_cv_sizeof_unsigned_long=0
13971 fi
13972 fi
13973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13974 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13975 cat >>confdefs.h <<_ACEOF
13976 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13977 _ACEOF
13978
13979
13980
13981 # Determine memory alignment requirements for the basic C data types.
13982
13983 echo "$as_me:$LINENO: checking for short" >&5
13984 echo $ECHO_N "checking for short... $ECHO_C" >&6
13985 if test "${ac_cv_type_short+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13990 #include "confdefs.h"
13991 $ac_includes_default
13992 #ifdef F77_DUMMY_MAIN
13993 #  ifdef __cplusplus
13994      extern "C"
13995 #  endif
13996    int F77_DUMMY_MAIN() { return 1; }
13997 #endif
13998 int
13999 main ()
14000 {
14001 if ((short *) 0)
14002   return 0;
14003 if (sizeof (short))
14004   return 0;
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } &&
14015          { ac_try='test -s conftest.$ac_objext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   ac_cv_type_short=yes
14022 else
14023   echo "$as_me: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 ac_cv_type_short=no
14026 fi
14027 rm -f conftest.$ac_objext conftest.$ac_ext
14028 fi
14029 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14030 echo "${ECHO_T}$ac_cv_type_short" >&6
14031
14032 echo "$as_me:$LINENO: checking alignment of short" >&5
14033 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14034 if test "${pgac_cv_alignof_short+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   if test "$ac_cv_type_short" = yes; then
14038   if test "$cross_compiling" = yes; then
14039   # Depending upon the size, compute the lo and hi bounds.
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14043 $ac_includes_default
14044 struct { char filler; short field; } pgac_struct;
14045 #ifdef F77_DUMMY_MAIN
14046 #  ifdef __cplusplus
14047      extern "C"
14048 #  endif
14049    int F77_DUMMY_MAIN() { return 1; }
14050 #endif
14051 int
14052 main ()
14053 {
14054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14055 test_array [0] = 0
14056
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063   (eval $ac_compile) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -s conftest.$ac_objext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073   ac_lo=0 ac_mid=0
14074   while :; do
14075     cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 #include "confdefs.h"
14078 $ac_includes_default
14079 struct { char filler; short field; } pgac_struct;
14080 #ifdef F77_DUMMY_MAIN
14081 #  ifdef __cplusplus
14082      extern "C"
14083 #  endif
14084    int F77_DUMMY_MAIN() { return 1; }
14085 #endif
14086 int
14087 main ()
14088 {
14089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14090 test_array [0] = 0
14091
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 rm -f conftest.$ac_objext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14098   (eval $ac_compile) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -s conftest.$ac_objext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_hi=$ac_mid; break
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 ac_lo=`expr $ac_mid + 1`
14113                     if test $ac_lo -le $ac_mid; then
14114                       ac_lo= ac_hi=
14115                       break
14116                     fi
14117                     ac_mid=`expr 2 '*' $ac_mid + 1`
14118 fi
14119 rm -f conftest.$ac_objext conftest.$ac_ext
14120   done
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 cat >conftest.$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14126 #include "confdefs.h"
14127 $ac_includes_default
14128 struct { char filler; short field; } pgac_struct;
14129 #ifdef F77_DUMMY_MAIN
14130 #  ifdef __cplusplus
14131      extern "C"
14132 #  endif
14133    int F77_DUMMY_MAIN() { return 1; }
14134 #endif
14135 int
14136 main ()
14137 {
14138 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14139 test_array [0] = 0
14140
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147   (eval $ac_compile) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -s conftest.$ac_objext'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; }; then
14157   ac_hi=-1 ac_mid=-1
14158   while :; do
14159     cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14162 $ac_includes_default
14163 struct { char filler; short field; } pgac_struct;
14164 #ifdef F77_DUMMY_MAIN
14165 #  ifdef __cplusplus
14166      extern "C"
14167 #  endif
14168    int F77_DUMMY_MAIN() { return 1; }
14169 #endif
14170 int
14171 main ()
14172 {
14173 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14174 test_array [0] = 0
14175
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182   (eval $ac_compile) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } &&
14186          { ac_try='test -s conftest.$ac_objext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_lo=$ac_mid; break
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 ac_hi=`expr '(' $ac_mid ')' - 1`
14197                        if test $ac_mid -le $ac_hi; then
14198                          ac_lo= ac_hi=
14199                          break
14200                        fi
14201                        ac_mid=`expr 2 '*' $ac_mid`
14202 fi
14203 rm -f conftest.$ac_objext conftest.$ac_ext
14204   done
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14208 ac_lo= ac_hi=
14209 fi
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14211 fi
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14213 # Binary search between lo and hi bounds.
14214 while test "x$ac_lo" != "x$ac_hi"; do
14215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14216   cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 #include "confdefs.h"
14219 $ac_includes_default
14220 struct { char filler; short field; } pgac_struct;
14221 #ifdef F77_DUMMY_MAIN
14222 #  ifdef __cplusplus
14223      extern "C"
14224 #  endif
14225    int F77_DUMMY_MAIN() { return 1; }
14226 #endif
14227 int
14228 main ()
14229 {
14230 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14231 test_array [0] = 0
14232
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239   (eval $ac_compile) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); } &&
14243          { ac_try='test -s conftest.$ac_objext'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_hi=$ac_mid
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14253 ac_lo=`expr '(' $ac_mid ')' + 1`
14254 fi
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14256 done
14257 case $ac_lo in
14258 ?*) pgac_cv_alignof_short=$ac_lo;;
14259 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14260 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14261    { (exit 1); exit 1; }; } ;;
14262 esac
14263 else
14264   if test "$cross_compiling" = yes; then
14265   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14266 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14267    { (exit 1); exit 1; }; }
14268 else
14269   cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 #include "confdefs.h"
14272 $ac_includes_default
14273 struct { char filler; short field; } pgac_struct;
14274 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14275 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14276 #include <stdio.h>
14277 #include <stdlib.h>
14278 #ifdef F77_DUMMY_MAIN
14279 #  ifdef __cplusplus
14280      extern "C"
14281 #  endif
14282    int F77_DUMMY_MAIN() { return 1; }
14283 #endif
14284 int
14285 main ()
14286 {
14287
14288   FILE *f = fopen ("conftest.val", "w");
14289   if (! f)
14290     exit (1);
14291   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14292     {
14293       long i = longval ();
14294       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14295         exit (1);
14296       fprintf (f, "%ld\n", i);
14297     }
14298   else
14299     {
14300       unsigned long i = ulongval ();
14301       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14302         exit (1);
14303       fprintf (f, "%lu\n", i);
14304     }
14305   exit (ferror (f) || fclose (f) != 0);
14306
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313   (eval $ac_link) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; }; then
14322   pgac_cv_alignof_short=`cat conftest.val`
14323 else
14324   echo "$as_me: program exited with status $ac_status" >&5
14325 echo "$as_me: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14327 ( exit $ac_status )
14328 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14329 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14330    { (exit 1); exit 1; }; }
14331 fi
14332 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14333 fi
14334 fi
14335 rm -f conftest.val
14336 else
14337   pgac_cv_alignof_short=0
14338 fi
14339 fi
14340 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14341 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14342 cat >>confdefs.h <<_ACEOF
14343 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14344 _ACEOF
14345
14346
14347 echo "$as_me:$LINENO: checking for int" >&5
14348 echo $ECHO_N "checking for int... $ECHO_C" >&6
14349 if test "${ac_cv_type_int+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   cat >conftest.$ac_ext <<_ACEOF
14353 #line $LINENO "configure"
14354 #include "confdefs.h"
14355 $ac_includes_default
14356 #ifdef F77_DUMMY_MAIN
14357 #  ifdef __cplusplus
14358      extern "C"
14359 #  endif
14360    int F77_DUMMY_MAIN() { return 1; }
14361 #endif
14362 int
14363 main ()
14364 {
14365 if ((int *) 0)
14366   return 0;
14367 if (sizeof (int))
14368   return 0;
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375   (eval $ac_compile) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   ac_cv_type_int=yes
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 ac_cv_type_int=no
14390 fi
14391 rm -f conftest.$ac_objext conftest.$ac_ext
14392 fi
14393 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14394 echo "${ECHO_T}$ac_cv_type_int" >&6
14395
14396 echo "$as_me:$LINENO: checking alignment of int" >&5
14397 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14398 if test "${pgac_cv_alignof_int+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   if test "$ac_cv_type_int" = yes; then
14402   if test "$cross_compiling" = yes; then
14403   # Depending upon the size, compute the lo and hi bounds.
14404 cat >conftest.$ac_ext <<_ACEOF
14405 #line $LINENO "configure"
14406 #include "confdefs.h"
14407 $ac_includes_default
14408 struct { char filler; int field; } pgac_struct;
14409 #ifdef F77_DUMMY_MAIN
14410 #  ifdef __cplusplus
14411      extern "C"
14412 #  endif
14413    int F77_DUMMY_MAIN() { return 1; }
14414 #endif
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14419 test_array [0] = 0
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427   (eval $ac_compile) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); } &&
14431          { ac_try='test -s conftest.$ac_objext'
14432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433   (eval $ac_try) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); }; }; then
14437   ac_lo=0 ac_mid=0
14438   while :; do
14439     cat >conftest.$ac_ext <<_ACEOF
14440 #line $LINENO "configure"
14441 #include "confdefs.h"
14442 $ac_includes_default
14443 struct { char filler; int field; } pgac_struct;
14444 #ifdef F77_DUMMY_MAIN
14445 #  ifdef __cplusplus
14446      extern "C"
14447 #  endif
14448    int F77_DUMMY_MAIN() { return 1; }
14449 #endif
14450 int
14451 main ()
14452 {
14453 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14454 test_array [0] = 0
14455
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462   (eval $ac_compile) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -s conftest.$ac_objext'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   ac_hi=$ac_mid; break
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14476 ac_lo=`expr $ac_mid + 1`
14477                     if test $ac_lo -le $ac_mid; then
14478                       ac_lo= ac_hi=
14479                       break
14480                     fi
14481                     ac_mid=`expr 2 '*' $ac_mid + 1`
14482 fi
14483 rm -f conftest.$ac_objext conftest.$ac_ext
14484   done
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 cat >conftest.$ac_ext <<_ACEOF
14489 #line $LINENO "configure"
14490 #include "confdefs.h"
14491 $ac_includes_default
14492 struct { char filler; int field; } pgac_struct;
14493 #ifdef F77_DUMMY_MAIN
14494 #  ifdef __cplusplus
14495      extern "C"
14496 #  endif
14497    int F77_DUMMY_MAIN() { return 1; }
14498 #endif
14499 int
14500 main ()
14501 {
14502 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14503 test_array [0] = 0
14504
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511   (eval $ac_compile) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   ac_hi=-1 ac_mid=-1
14522   while :; do
14523     cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14525 #include "confdefs.h"
14526 $ac_includes_default
14527 struct { char filler; int field; } pgac_struct;
14528 #ifdef F77_DUMMY_MAIN
14529 #  ifdef __cplusplus
14530      extern "C"
14531 #  endif
14532    int F77_DUMMY_MAIN() { return 1; }
14533 #endif
14534 int
14535 main ()
14536 {
14537 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14538 test_array [0] = 0
14539
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546   (eval $ac_compile) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -s conftest.$ac_objext'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; }; then
14556   ac_lo=$ac_mid; break
14557 else
14558   echo "$as_me: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14560 ac_hi=`expr '(' $ac_mid ')' - 1`
14561                        if test $ac_mid -le $ac_hi; then
14562                          ac_lo= ac_hi=
14563                          break
14564                        fi
14565                        ac_mid=`expr 2 '*' $ac_mid`
14566 fi
14567 rm -f conftest.$ac_objext conftest.$ac_ext
14568   done
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 ac_lo= ac_hi=
14573 fi
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14575 fi
14576 rm -f conftest.$ac_objext conftest.$ac_ext
14577 # Binary search between lo and hi bounds.
14578 while test "x$ac_lo" != "x$ac_hi"; do
14579   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14580   cat >conftest.$ac_ext <<_ACEOF
14581 #line $LINENO "configure"
14582 #include "confdefs.h"
14583 $ac_includes_default
14584 struct { char filler; int field; } pgac_struct;
14585 #ifdef F77_DUMMY_MAIN
14586 #  ifdef __cplusplus
14587      extern "C"
14588 #  endif
14589    int F77_DUMMY_MAIN() { return 1; }
14590 #endif
14591 int
14592 main ()
14593 {
14594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14595 test_array [0] = 0
14596
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603   (eval $ac_compile) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; }; then
14613   ac_hi=$ac_mid
14614 else
14615   echo "$as_me: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14617 ac_lo=`expr '(' $ac_mid ')' + 1`
14618 fi
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14620 done
14621 case $ac_lo in
14622 ?*) pgac_cv_alignof_int=$ac_lo;;
14623 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14624 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14625    { (exit 1); exit 1; }; } ;;
14626 esac
14627 else
14628   if test "$cross_compiling" = yes; then
14629   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14630 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14631    { (exit 1); exit 1; }; }
14632 else
14633   cat >conftest.$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 $ac_includes_default
14637 struct { char filler; int field; } pgac_struct;
14638 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14639 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14640 #include <stdio.h>
14641 #include <stdlib.h>
14642 #ifdef F77_DUMMY_MAIN
14643 #  ifdef __cplusplus
14644      extern "C"
14645 #  endif
14646    int F77_DUMMY_MAIN() { return 1; }
14647 #endif
14648 int
14649 main ()
14650 {
14651
14652   FILE *f = fopen ("conftest.val", "w");
14653   if (! f)
14654     exit (1);
14655   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14656     {
14657       long i = longval ();
14658       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14659         exit (1);
14660       fprintf (f, "%ld\n", i);
14661     }
14662   else
14663     {
14664       unsigned long i = ulongval ();
14665       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14666         exit (1);
14667       fprintf (f, "%lu\n", i);
14668     }
14669   exit (ferror (f) || fclose (f) != 0);
14670
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677   (eval $ac_link) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   pgac_cv_alignof_int=`cat conftest.val`
14687 else
14688   echo "$as_me: program exited with status $ac_status" >&5
14689 echo "$as_me: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 ( exit $ac_status )
14692 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14693 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14694    { (exit 1); exit 1; }; }
14695 fi
14696 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14697 fi
14698 fi
14699 rm -f conftest.val
14700 else
14701   pgac_cv_alignof_int=0
14702 fi
14703 fi
14704 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14705 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14706 cat >>confdefs.h <<_ACEOF
14707 #define ALIGNOF_INT $pgac_cv_alignof_int
14708 _ACEOF
14709
14710
14711 echo "$as_me:$LINENO: checking for long" >&5
14712 echo $ECHO_N "checking for long... $ECHO_C" >&6
14713 if test "${ac_cv_type_long+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 *) 0)
14730   return 0;
14731 if (sizeof (long))
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=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 ac_cv_type_long=no
14754 fi
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14756 fi
14757 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14758 echo "${ECHO_T}$ac_cv_type_long" >&6
14759
14760 echo "$as_me:$LINENO: checking alignment of long" >&5
14761 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14762 if test "${pgac_cv_alignof_long+set}" = set; then
14763   echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765   if test "$ac_cv_type_long" = 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 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 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 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 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 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=$ac_lo;;
14987 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14988 echo "$as_me: error: cannot compute alignment of long, 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 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=`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, 77" >&5
15057 echo "$as_me: error: cannot compute alignment of long, 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=0
15066 fi
15067 fi
15068 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15069 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15070 cat >>confdefs.h <<_ACEOF
15071 #define ALIGNOF_LONG $pgac_cv_alignof_long
15072 _ACEOF
15073
15074
15075 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15076   echo "$as_me:$LINENO: checking for long long int" >&5
15077 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15078 if test "${ac_cv_type_long_long_int+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 ((long long int *) 0)
15095   return 0;
15096 if (sizeof (long long int))
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_long_long_int=yes
15115 else
15116   echo "$as_me: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 ac_cv_type_long_long_int=no
15119 fi
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15123 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15124
15125 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15126 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15127 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   if test "$ac_cv_type_long_long_int" = 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; long long int 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; long long int 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; long long int 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; long long int 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; long long int 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_long_long_int=$ac_lo;;
15352 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15353 echo "$as_me: error: cannot compute alignment of long long int, 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; long long int 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_long_long_int=`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 long long int, 77" >&5
15422 echo "$as_me: error: cannot compute alignment of long long int, 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_long_long_int=0
15431 fi
15432 fi
15433 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15434 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15435 cat >>confdefs.h <<_ACEOF
15436 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15437 _ACEOF
15438
15439
15440 fi
15441 echo "$as_me:$LINENO: checking for double" >&5
15442 echo $ECHO_N "checking for double... $ECHO_C" >&6
15443 if test "${ac_cv_type_double+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 $ac_includes_default
15450 #ifdef F77_DUMMY_MAIN
15451 #  ifdef __cplusplus
15452      extern "C"
15453 #  endif
15454    int F77_DUMMY_MAIN() { return 1; }
15455 #endif
15456 int
15457 main ()
15458 {
15459 if ((double *) 0)
15460   return 0;
15461 if (sizeof (double))
15462   return 0;
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469   (eval $ac_compile) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -s conftest.$ac_objext'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }; then
15479   ac_cv_type_double=yes
15480 else
15481   echo "$as_me: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15483 ac_cv_type_double=no
15484 fi
15485 rm -f conftest.$ac_objext conftest.$ac_ext
15486 fi
15487 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15488 echo "${ECHO_T}$ac_cv_type_double" >&6
15489
15490 echo "$as_me:$LINENO: checking alignment of double" >&5
15491 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15492 if test "${pgac_cv_alignof_double+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   if test "$ac_cv_type_double" = yes; then
15496   if test "$cross_compiling" = yes; then
15497   # Depending upon the size, compute the lo and hi bounds.
15498 cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15501 $ac_includes_default
15502 struct { char filler; double field; } pgac_struct;
15503 #ifdef F77_DUMMY_MAIN
15504 #  ifdef __cplusplus
15505      extern "C"
15506 #  endif
15507    int F77_DUMMY_MAIN() { return 1; }
15508 #endif
15509 int
15510 main ()
15511 {
15512 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15513 test_array [0] = 0
15514
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521   (eval $ac_compile) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -s conftest.$ac_objext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_lo=0 ac_mid=0
15532   while :; do
15533     cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 #include "confdefs.h"
15536 $ac_includes_default
15537 struct { char filler; double field; } pgac_struct;
15538 #ifdef F77_DUMMY_MAIN
15539 #  ifdef __cplusplus
15540      extern "C"
15541 #  endif
15542    int F77_DUMMY_MAIN() { return 1; }
15543 #endif
15544 int
15545 main ()
15546 {
15547 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15548 test_array [0] = 0
15549
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556   (eval $ac_compile) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } &&
15560          { ac_try='test -s conftest.$ac_objext'
15561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562   (eval $ac_try) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; }; then
15566   ac_hi=$ac_mid; break
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 ac_lo=`expr $ac_mid + 1`
15571                     if test $ac_lo -le $ac_mid; then
15572                       ac_lo= ac_hi=
15573                       break
15574                     fi
15575                     ac_mid=`expr 2 '*' $ac_mid + 1`
15576 fi
15577 rm -f conftest.$ac_objext conftest.$ac_ext
15578   done
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15584 #include "confdefs.h"
15585 $ac_includes_default
15586 struct { char filler; double field; } pgac_struct;
15587 #ifdef F77_DUMMY_MAIN
15588 #  ifdef __cplusplus
15589      extern "C"
15590 #  endif
15591    int F77_DUMMY_MAIN() { return 1; }
15592 #endif
15593 int
15594 main ()
15595 {
15596 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15597 test_array [0] = 0
15598
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15605   (eval $ac_compile) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); } &&
15609          { ac_try='test -s conftest.$ac_objext'
15610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611   (eval $ac_try) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; }; then
15615   ac_hi=-1 ac_mid=-1
15616   while :; do
15617     cat >conftest.$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 #include "confdefs.h"
15620 $ac_includes_default
15621 struct { char filler; double field; } pgac_struct;
15622 #ifdef F77_DUMMY_MAIN
15623 #  ifdef __cplusplus
15624      extern "C"
15625 #  endif
15626    int F77_DUMMY_MAIN() { return 1; }
15627 #endif
15628 int
15629 main ()
15630 {
15631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15632 test_array [0] = 0
15633
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640   (eval $ac_compile) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -s conftest.$ac_objext'
15645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646   (eval $ac_try) 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); }; }; then
15650   ac_lo=$ac_mid; break
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 ac_hi=`expr '(' $ac_mid ')' - 1`
15655                        if test $ac_mid -le $ac_hi; then
15656                          ac_lo= ac_hi=
15657                          break
15658                        fi
15659                        ac_mid=`expr 2 '*' $ac_mid`
15660 fi
15661 rm -f conftest.$ac_objext conftest.$ac_ext
15662   done
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15666 ac_lo= ac_hi=
15667 fi
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 rm -f conftest.$ac_objext conftest.$ac_ext
15671 # Binary search between lo and hi bounds.
15672 while test "x$ac_lo" != "x$ac_hi"; do
15673   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15674   cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15678 struct { char filler; double field; } pgac_struct;
15679 #ifdef F77_DUMMY_MAIN
15680 #  ifdef __cplusplus
15681      extern "C"
15682 #  endif
15683    int F77_DUMMY_MAIN() { return 1; }
15684 #endif
15685 int
15686 main ()
15687 {
15688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15689 test_array [0] = 0
15690
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697   (eval $ac_compile) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -s conftest.$ac_objext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_hi=$ac_mid
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 cat conftest.$ac_ext >&5
15711 ac_lo=`expr '(' $ac_mid ')' + 1`
15712 fi
15713 rm -f conftest.$ac_objext conftest.$ac_ext
15714 done
15715 case $ac_lo in
15716 ?*) pgac_cv_alignof_double=$ac_lo;;
15717 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15718 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15719    { (exit 1); exit 1; }; } ;;
15720 esac
15721 else
15722   if test "$cross_compiling" = yes; then
15723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15725    { (exit 1); exit 1; }; }
15726 else
15727   cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 #include "confdefs.h"
15730 $ac_includes_default
15731 struct { char filler; double field; } pgac_struct;
15732 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15733 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15734 #include <stdio.h>
15735 #include <stdlib.h>
15736 #ifdef F77_DUMMY_MAIN
15737 #  ifdef __cplusplus
15738      extern "C"
15739 #  endif
15740    int F77_DUMMY_MAIN() { return 1; }
15741 #endif
15742 int
15743 main ()
15744 {
15745
15746   FILE *f = fopen ("conftest.val", "w");
15747   if (! f)
15748     exit (1);
15749   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15750     {
15751       long i = longval ();
15752       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15753         exit (1);
15754       fprintf (f, "%ld\n", i);
15755     }
15756   else
15757     {
15758       unsigned long i = ulongval ();
15759       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15760         exit (1);
15761       fprintf (f, "%lu\n", i);
15762     }
15763   exit (ferror (f) || fclose (f) != 0);
15764
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771   (eval $ac_link) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776   (eval $ac_try) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; }; then
15780   pgac_cv_alignof_double=`cat conftest.val`
15781 else
15782   echo "$as_me: program exited with status $ac_status" >&5
15783 echo "$as_me: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15785 ( exit $ac_status )
15786 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15787 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15788    { (exit 1); exit 1; }; }
15789 fi
15790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 fi
15793 rm -f conftest.val
15794 else
15795   pgac_cv_alignof_double=0
15796 fi
15797 fi
15798 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15799 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15800 cat >>confdefs.h <<_ACEOF
15801 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15802 _ACEOF
15803
15804
15805
15806 # Compute maximum alignment of any basic type.
15807 # We assume long's alignment is at least as strong as char, short, or int;
15808 # but we must check long long (if it exists) and double.
15809
15810 MAX_ALIGNOF=$pgac_cv_alignof_long
15811 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15812   MAX_ALIGNOF=$pgac_cv_alignof_double
15813 fi
15814 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15815   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15816 fi
15817
15818 cat >>confdefs.h <<_ACEOF
15819 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15820 _ACEOF
15821
15822
15823
15824 # Some platforms predefine the types int8, int16, etc.  Only check
15825 # a (hopefully) representative subset.
15826 echo "$as_me:$LINENO: checking for int8" >&5
15827 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15828 if test "${ac_cv_type_int8+set}" = set; then
15829   echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831   cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 #include "confdefs.h"
15834 #include <stdio.h>
15835 #ifdef HAVE_SUPPORTDEFS_H
15836 #include <SupportDefs.h>
15837 #endif
15838
15839 #ifdef F77_DUMMY_MAIN
15840 #  ifdef __cplusplus
15841      extern "C"
15842 #  endif
15843    int F77_DUMMY_MAIN() { return 1; }
15844 #endif
15845 int
15846 main ()
15847 {
15848 if ((int8 *) 0)
15849   return 0;
15850 if (sizeof (int8))
15851   return 0;
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858   (eval $ac_compile) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -s conftest.$ac_objext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_cv_type_int8=yes
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15872 ac_cv_type_int8=no
15873 fi
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15875 fi
15876 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15877 echo "${ECHO_T}$ac_cv_type_int8" >&6
15878 if test $ac_cv_type_int8 = yes; then
15879
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_INT8 1
15882 _ACEOF
15883
15884
15885 fi
15886 echo "$as_me:$LINENO: checking for uint8" >&5
15887 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15888 if test "${ac_cv_type_uint8+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   cat >conftest.$ac_ext <<_ACEOF
15892 #line $LINENO "configure"
15893 #include "confdefs.h"
15894 #include <stdio.h>
15895 #ifdef HAVE_SUPPORTDEFS_H
15896 #include <SupportDefs.h>
15897 #endif
15898
15899 #ifdef F77_DUMMY_MAIN
15900 #  ifdef __cplusplus
15901      extern "C"
15902 #  endif
15903    int F77_DUMMY_MAIN() { return 1; }
15904 #endif
15905 int
15906 main ()
15907 {
15908 if ((uint8 *) 0)
15909   return 0;
15910 if (sizeof (uint8))
15911   return 0;
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15918   (eval $ac_compile) 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -s conftest.$ac_objext'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; }; then
15928   ac_cv_type_uint8=yes
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 ac_cv_type_uint8=no
15933 fi
15934 rm -f conftest.$ac_objext conftest.$ac_ext
15935 fi
15936 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15937 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15938 if test $ac_cv_type_uint8 = yes; then
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_UINT8 1
15942 _ACEOF
15943
15944
15945 fi
15946 echo "$as_me:$LINENO: checking for int64" >&5
15947 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15948 if test "${ac_cv_type_int64+set}" = set; then
15949   echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951   cat >conftest.$ac_ext <<_ACEOF
15952 #line $LINENO "configure"
15953 #include "confdefs.h"
15954 #include <stdio.h>
15955 #ifdef HAVE_SUPPORTDEFS_H
15956 #include <SupportDefs.h>
15957 #endif
15958
15959 #ifdef F77_DUMMY_MAIN
15960 #  ifdef __cplusplus
15961      extern "C"
15962 #  endif
15963    int F77_DUMMY_MAIN() { return 1; }
15964 #endif
15965 int
15966 main ()
15967 {
15968 if ((int64 *) 0)
15969   return 0;
15970 if (sizeof (int64))
15971   return 0;
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978   (eval $ac_compile) 2>&5
15979   ac_status=$?
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } &&
15982          { ac_try='test -s conftest.$ac_objext'
15983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984   (eval $ac_try) 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }; }; then
15988   ac_cv_type_int64=yes
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 cat conftest.$ac_ext >&5
15992 ac_cv_type_int64=no
15993 fi
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15997 echo "${ECHO_T}$ac_cv_type_int64" >&6
15998 if test $ac_cv_type_int64 = yes; then
15999
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_INT64 1
16002 _ACEOF
16003
16004
16005 fi
16006 echo "$as_me:$LINENO: checking for uint64" >&5
16007 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16008 if test "${ac_cv_type_uint64+set}" = set; then
16009   echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011   cat >conftest.$ac_ext <<_ACEOF
16012 #line $LINENO "configure"
16013 #include "confdefs.h"
16014 #include <stdio.h>
16015 #ifdef HAVE_SUPPORTDEFS_H
16016 #include <SupportDefs.h>
16017 #endif
16018
16019 #ifdef F77_DUMMY_MAIN
16020 #  ifdef __cplusplus
16021      extern "C"
16022 #  endif
16023    int F77_DUMMY_MAIN() { return 1; }
16024 #endif
16025 int
16026 main ()
16027 {
16028 if ((uint64 *) 0)
16029   return 0;
16030 if (sizeof (uint64))
16031   return 0;
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038   (eval $ac_compile) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } &&
16042          { ac_try='test -s conftest.$ac_objext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_type_uint64=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 ac_cv_type_uint64=no
16053 fi
16054 rm -f conftest.$ac_objext conftest.$ac_ext
16055 fi
16056 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16057 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16058 if test $ac_cv_type_uint64 = yes; then
16059
16060 cat >>confdefs.h <<_ACEOF
16061 #define HAVE_UINT64 1
16062 _ACEOF
16063
16064
16065 fi
16066
16067
16068 # We also check for sig_atomic_t, which *should* be defined per ANSI
16069 # C, but is missing on some old platforms.
16070 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16071 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16072 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075   cat >conftest.$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16077 #include "confdefs.h"
16078 #include <signal.h>
16079
16080 #ifdef F77_DUMMY_MAIN
16081 #  ifdef __cplusplus
16082      extern "C"
16083 #  endif
16084    int F77_DUMMY_MAIN() { return 1; }
16085 #endif
16086 int
16087 main ()
16088 {
16089 if ((sig_atomic_t *) 0)
16090   return 0;
16091 if (sizeof (sig_atomic_t))
16092   return 0;
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099   (eval $ac_compile) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_cv_type_sig_atomic_t=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_cv_type_sig_atomic_t=no
16114 fi
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16116 fi
16117 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16118 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16119 if test $ac_cv_type_sig_atomic_t = yes; then
16120
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_SIG_ATOMIC_T 1
16123 _ACEOF
16124
16125
16126 fi
16127
16128
16129
16130 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16131 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16132 if test "${pgac_cv_func_posix_signals+set}" = set; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   cat >conftest.$ac_ext <<_ACEOF
16136 #line $LINENO "configure"
16137 #include "confdefs.h"
16138 #include <signal.h>
16139
16140 #ifdef F77_DUMMY_MAIN
16141 #  ifdef __cplusplus
16142      extern "C"
16143 #  endif
16144    int F77_DUMMY_MAIN() { return 1; }
16145 #endif
16146 int
16147 main ()
16148 {
16149 struct sigaction act, oact;
16150 sigemptyset(&act.sa_mask);
16151 act.sa_flags = SA_RESTART;
16152 sigaction(0, &act, &oact);
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159   (eval $ac_link) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -s conftest$ac_exeext'
16164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165   (eval $ac_try) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; }; then
16169   pgac_cv_func_posix_signals=yes
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16173 pgac_cv_func_posix_signals=no
16174 fi
16175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16176 fi
16177 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16178 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16179 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_POSIX_SIGNALS
16183 _ACEOF
16184
16185 fi
16186 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16187
16188 if test $ac_cv_func_fseeko = yes; then
16189 # Check whether --enable-largefile or --disable-largefile was given.
16190 if test "${enable_largefile+set}" = set; then
16191   enableval="$enable_largefile"
16192
16193 fi;
16194 if test "$enable_largefile" != no; then
16195
16196   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16197 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16198 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201   ac_cv_sys_largefile_CC=no
16202      if test "$GCC" != yes; then
16203        ac_save_CC=$CC
16204        while :; do
16205          # IRIX 6.2 and later do not support large files by default,
16206          # so use the C compiler's -n32 option if that helps.
16207          cat >conftest.$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16209 #include "confdefs.h"
16210 #include <sys/types.h>
16211  /* Check that off_t can represent 2**63 - 1 correctly.
16212     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16213     since some C++ compilers masquerading as C compilers
16214     incorrectly reject 9223372036854775807.  */
16215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16216   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16217                        && LARGE_OFF_T % 2147483647 == 1)
16218                       ? 1 : -1];
16219 #ifdef F77_DUMMY_MAIN
16220 #  ifdef __cplusplus
16221      extern "C"
16222 #  endif
16223    int F77_DUMMY_MAIN() { return 1; }
16224 #endif
16225 int
16226 main ()
16227 {
16228
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233          rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235   (eval $ac_compile) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   break
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16249 fi
16250 rm -f conftest.$ac_objext
16251          CC="$CC -n32"
16252          rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254   (eval $ac_compile) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_cv_sys_largefile_CC=' -n32'; break
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16268 fi
16269 rm -f conftest.$ac_objext
16270          break
16271        done
16272        CC=$ac_save_CC
16273        rm -f conftest.$ac_ext
16274     fi
16275 fi
16276 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16277 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16278   if test "$ac_cv_sys_largefile_CC" != no; then
16279     CC=$CC$ac_cv_sys_largefile_CC
16280   fi
16281
16282   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16283 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16284 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   while :; do
16288   ac_cv_sys_file_offset_bits=no
16289   cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 #include "confdefs.h"
16292 #include <sys/types.h>
16293  /* Check that off_t can represent 2**63 - 1 correctly.
16294     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16295     since some C++ compilers masquerading as C compilers
16296     incorrectly reject 9223372036854775807.  */
16297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16298   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16299                        && LARGE_OFF_T % 2147483647 == 1)
16300                       ? 1 : -1];
16301 #ifdef F77_DUMMY_MAIN
16302 #  ifdef __cplusplus
16303      extern "C"
16304 #  endif
16305    int F77_DUMMY_MAIN() { return 1; }
16306 #endif
16307 int
16308 main ()
16309 {
16310
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext
16316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16317   (eval $ac_compile) 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } &&
16321          { ac_try='test -s conftest.$ac_objext'
16322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323   (eval $ac_try) 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; }; then
16327   break
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 cat conftest.$ac_ext >&5
16331 fi
16332 rm -f conftest.$ac_objext conftest.$ac_ext
16333   cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 #include "confdefs.h"
16336 #define _FILE_OFFSET_BITS 64
16337 #include <sys/types.h>
16338  /* Check that off_t can represent 2**63 - 1 correctly.
16339     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16340     since some C++ compilers masquerading as C compilers
16341     incorrectly reject 9223372036854775807.  */
16342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16343   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16344                        && LARGE_OFF_T % 2147483647 == 1)
16345                       ? 1 : -1];
16346 #ifdef F77_DUMMY_MAIN
16347 #  ifdef __cplusplus
16348      extern "C"
16349 #  endif
16350    int F77_DUMMY_MAIN() { return 1; }
16351 #endif
16352 int
16353 main ()
16354 {
16355
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362   (eval $ac_compile) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } &&
16366          { ac_try='test -s conftest.$ac_objext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_cv_sys_file_offset_bits=64; break
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 cat conftest.$ac_ext >&5
16376 fi
16377 rm -f conftest.$ac_objext conftest.$ac_ext
16378   break
16379 done
16380 fi
16381 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16382 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16383 if test "$ac_cv_sys_file_offset_bits" != no; then
16384
16385 cat >>confdefs.h <<_ACEOF
16386 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16387 _ACEOF
16388
16389 fi
16390 rm -f conftest*
16391   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16392 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16393 if test "${ac_cv_sys_large_files+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   while :; do
16397   ac_cv_sys_large_files=no
16398   cat >conftest.$ac_ext <<_ACEOF
16399 #line $LINENO "configure"
16400 #include "confdefs.h"
16401 #include <sys/types.h>
16402  /* Check that off_t can represent 2**63 - 1 correctly.
16403     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16404     since some C++ compilers masquerading as C compilers
16405     incorrectly reject 9223372036854775807.  */
16406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16407   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16408                        && LARGE_OFF_T % 2147483647 == 1)
16409                       ? 1 : -1];
16410 #ifdef F77_DUMMY_MAIN
16411 #  ifdef __cplusplus
16412      extern "C"
16413 #  endif
16414    int F77_DUMMY_MAIN() { return 1; }
16415 #endif
16416 int
16417 main ()
16418 {
16419
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426   (eval $ac_compile) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } &&
16430          { ac_try='test -s conftest.$ac_objext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   break
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16440 fi
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442   cat >conftest.$ac_ext <<_ACEOF
16443 #line $LINENO "configure"
16444 #include "confdefs.h"
16445 #define _LARGE_FILES 1
16446 #include <sys/types.h>
16447  /* Check that off_t can represent 2**63 - 1 correctly.
16448     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16449     since some C++ compilers masquerading as C compilers
16450     incorrectly reject 9223372036854775807.  */
16451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16452   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16453                        && LARGE_OFF_T % 2147483647 == 1)
16454                       ? 1 : -1];
16455 #ifdef F77_DUMMY_MAIN
16456 #  ifdef __cplusplus
16457      extern "C"
16458 #  endif
16459    int F77_DUMMY_MAIN() { return 1; }
16460 #endif
16461 int
16462 main ()
16463 {
16464
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16471   (eval $ac_compile) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -s conftest.$ac_objext'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; }; then
16481   ac_cv_sys_large_files=1; break
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16485 fi
16486 rm -f conftest.$ac_objext conftest.$ac_ext
16487   break
16488 done
16489 fi
16490 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16491 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16492 if test "$ac_cv_sys_large_files" != no; then
16493
16494 cat >>confdefs.h <<_ACEOF
16495 #define _LARGE_FILES $ac_cv_sys_large_files
16496 _ACEOF
16497
16498 fi
16499 rm -f conftest*
16500 fi
16501
16502 fi
16503
16504
16505 # Select semaphore implementation type.
16506 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16507
16508 cat >>confdefs.h <<\_ACEOF
16509 #define USE_NAMED_POSIX_SEMAPHORES 1
16510 _ACEOF
16511
16512   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16513 else
16514   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16515
16516 cat >>confdefs.h <<\_ACEOF
16517 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16518 _ACEOF
16519
16520     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16521   else
16522
16523 cat >>confdefs.h <<\_ACEOF
16524 #define USE_SYSV_SEMAPHORES 1
16525 _ACEOF
16526
16527     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16528   fi
16529 fi
16530
16531
16532 # Select shared-memory implementation type.
16533
16534 cat >>confdefs.h <<\_ACEOF
16535 #define USE_SYSV_SHARED_MEMORY 1
16536 _ACEOF
16537
16538 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16539
16540
16541 if test "$enable_nls" = yes ; then
16542
16543   echo "$as_me:$LINENO: checking for library containing gettext" >&5
16544 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16545 if test "${ac_cv_search_gettext+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   ac_func_search_save_LIBS=$LIBS
16549 ac_cv_search_gettext=no
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16553
16554 /* Override any gcc2 internal prototype to avoid an error.  */
16555 #ifdef __cplusplus
16556 extern "C"
16557 #endif
16558 /* We use char because int might match the return type of a gcc2
16559    builtin and then its argument prototype would still apply.  */
16560 char gettext ();
16561 #ifdef F77_DUMMY_MAIN
16562 #  ifdef __cplusplus
16563      extern "C"
16564 #  endif
16565    int F77_DUMMY_MAIN() { return 1; }
16566 #endif
16567 int
16568 main ()
16569 {
16570 gettext ();
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577   (eval $ac_link) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -s conftest$ac_exeext'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; }; then
16587   ac_cv_search_gettext="none required"
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 cat conftest.$ac_ext >&5
16591 fi
16592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16593 if test "$ac_cv_search_gettext" = no; then
16594   for ac_lib in intl; do
16595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16596     cat >conftest.$ac_ext <<_ACEOF
16597 #line $LINENO "configure"
16598 #include "confdefs.h"
16599
16600 /* Override any gcc2 internal prototype to avoid an error.  */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 /* We use char because int might match the return type of a gcc2
16605    builtin and then its argument prototype would still apply.  */
16606 char gettext ();
16607 #ifdef F77_DUMMY_MAIN
16608 #  ifdef __cplusplus
16609      extern "C"
16610 #  endif
16611    int F77_DUMMY_MAIN() { return 1; }
16612 #endif
16613 int
16614 main ()
16615 {
16616 gettext ();
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16623   (eval $ac_link) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); } &&
16627          { ac_try='test -s conftest$ac_exeext'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; }; then
16633   ac_cv_search_gettext="-l$ac_lib"
16634 break
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 cat conftest.$ac_ext >&5
16638 fi
16639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16640   done
16641 fi
16642 LIBS=$ac_func_search_save_LIBS
16643 fi
16644 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16645 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16646 if test "$ac_cv_search_gettext" != no; then
16647   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16648
16649 else
16650   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16651 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16652    { (exit 1); exit 1; }; }
16653 fi
16654
16655   if test "${ac_cv_header_libintl_h+set}" = set; then
16656   echo "$as_me:$LINENO: checking for libintl.h" >&5
16657 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16658 if test "${ac_cv_header_libintl_h+set}" = set; then
16659   echo $ECHO_N "(cached) $ECHO_C" >&6
16660 fi
16661 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16662 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16663 else
16664   # Is the header compilable?
16665 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16666 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16667 cat >conftest.$ac_ext <<_ACEOF
16668 #line $LINENO "configure"
16669 #include "confdefs.h"
16670 $ac_includes_default
16671 #include <libintl.h>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675   (eval $ac_compile) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -s conftest.$ac_objext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_header_compiler=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 cat conftest.$ac_ext >&5
16689 ac_header_compiler=no
16690 fi
16691 rm -f conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16693 echo "${ECHO_T}$ac_header_compiler" >&6
16694
16695 # Is the header present?
16696 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16697 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 #include "confdefs.h"
16701 #include <libintl.h>
16702 _ACEOF
16703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16705   ac_status=$?
16706   egrep -v '^ *\+' conftest.er1 >conftest.err
16707   rm -f conftest.er1
16708   cat conftest.err >&5
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } >/dev/null; then
16711   if test -s conftest.err; then
16712     ac_cpp_err=$ac_c_preproc_warn_flag
16713   else
16714     ac_cpp_err=
16715   fi
16716 else
16717   ac_cpp_err=yes
16718 fi
16719 if test -z "$ac_cpp_err"; then
16720   ac_header_preproc=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723   cat conftest.$ac_ext >&5
16724   ac_header_preproc=no
16725 fi
16726 rm -f conftest.err conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728 echo "${ECHO_T}$ac_header_preproc" >&6
16729
16730 # So?  What about this header?
16731 case $ac_header_compiler:$ac_header_preproc in
16732   yes:no )
16733     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16734 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16737   no:yes )
16738     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16742     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16744 esac
16745 echo "$as_me:$LINENO: checking for libintl.h" >&5
16746 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16747 if test "${ac_cv_header_libintl_h+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   ac_cv_header_libintl_h=$ac_header_preproc
16751 fi
16752 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16753 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16754
16755 fi
16756 if test $ac_cv_header_libintl_h = yes; then
16757   :
16758 else
16759   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16760 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16761    { (exit 1); exit 1; }; }
16762 fi
16763
16764
16765   for ac_prog in msgfmt
16766 do
16767   # Extract the first word of "$ac_prog", so it can be a program name with args.
16768 set dummy $ac_prog; ac_word=$2
16769 echo "$as_me:$LINENO: checking for $ac_word" >&5
16770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16771 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   if test -n "$MSGFMT"; then
16775   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16776 else
16777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778 for as_dir in $PATH
16779 do
16780   IFS=$as_save_IFS
16781   test -z "$as_dir" && as_dir=.
16782   for ac_exec_ext in '' $ac_executable_extensions; do
16783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16784     ac_cv_prog_MSGFMT="$ac_prog"
16785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16786     break 2
16787   fi
16788 done
16789 done
16790
16791 fi
16792 fi
16793 MSGFMT=$ac_cv_prog_MSGFMT
16794 if test -n "$MSGFMT"; then
16795   echo "$as_me:$LINENO: result: $MSGFMT" >&5
16796 echo "${ECHO_T}$MSGFMT" >&6
16797 else
16798   echo "$as_me:$LINENO: result: no" >&5
16799 echo "${ECHO_T}no" >&6
16800 fi
16801
16802   test -n "$MSGFMT" && break
16803 done
16804
16805   if test -z "$MSGFMT"; then
16806     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16807 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16808    { (exit 1); exit 1; }; }
16809   fi
16810   for ac_prog in msgmerge
16811 do
16812   # Extract the first word of "$ac_prog", so it can be a program name with args.
16813 set dummy $ac_prog; ac_word=$2
16814 echo "$as_me:$LINENO: checking for $ac_word" >&5
16815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16816 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   if test -n "$MSGMERGE"; then
16820   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16821 else
16822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16823 for as_dir in $PATH
16824 do
16825   IFS=$as_save_IFS
16826   test -z "$as_dir" && as_dir=.
16827   for ac_exec_ext in '' $ac_executable_extensions; do
16828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16829     ac_cv_prog_MSGMERGE="$ac_prog"
16830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16831     break 2
16832   fi
16833 done
16834 done
16835
16836 fi
16837 fi
16838 MSGMERGE=$ac_cv_prog_MSGMERGE
16839 if test -n "$MSGMERGE"; then
16840   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16841 echo "${ECHO_T}$MSGMERGE" >&6
16842 else
16843   echo "$as_me:$LINENO: result: no" >&5
16844 echo "${ECHO_T}no" >&6
16845 fi
16846
16847   test -n "$MSGMERGE" && break
16848 done
16849
16850   for ac_prog in xgettext
16851 do
16852   # Extract the first word of "$ac_prog", so it can be a program name with args.
16853 set dummy $ac_prog; ac_word=$2
16854 echo "$as_me:$LINENO: checking for $ac_word" >&5
16855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16856 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859   if test -n "$XGETTEXT"; then
16860   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16861 else
16862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16863 for as_dir in $PATH
16864 do
16865   IFS=$as_save_IFS
16866   test -z "$as_dir" && as_dir=.
16867   for ac_exec_ext in '' $ac_executable_extensions; do
16868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16869     ac_cv_prog_XGETTEXT="$ac_prog"
16870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16871     break 2
16872   fi
16873 done
16874 done
16875
16876 fi
16877 fi
16878 XGETTEXT=$ac_cv_prog_XGETTEXT
16879 if test -n "$XGETTEXT"; then
16880   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16881 echo "${ECHO_T}$XGETTEXT" >&6
16882 else
16883   echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6
16885 fi
16886
16887   test -n "$XGETTEXT" && break
16888 done
16889
16890
16891   # Note: share/locale is always the default, independent of $datadir
16892   localedir='${prefix}/share/locale'
16893   if test x"$prefix" = x"NONE"; then
16894     exp_localedir="$ac_default_prefix/share/locale"
16895   else
16896     exp_localedir="$prefix/share/locale"
16897   fi
16898
16899
16900
16901 cat >>confdefs.h <<_ACEOF
16902 #define LOCALEDIR "$exp_localedir"
16903 _ACEOF
16904
16905
16906 fi
16907
16908 # Check for Tcl configuration script tclConfig.sh
16909 if test "$with_tcl" = yes; then
16910     for ac_prog in tclsh tcl
16911 do
16912   # Extract the first word of "$ac_prog", so it can be a program name with args.
16913 set dummy $ac_prog; ac_word=$2
16914 echo "$as_me:$LINENO: checking for $ac_word" >&5
16915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16916 if test "${ac_cv_path_TCLSH+set}" = set; then
16917   echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919   case $TCLSH in
16920   [\\/]* | ?:[\\/]*)
16921   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16922   ;;
16923   *)
16924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16926 do
16927   IFS=$as_save_IFS
16928   test -z "$as_dir" && as_dir=.
16929   for ac_exec_ext in '' $ac_executable_extensions; do
16930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16933     break 2
16934   fi
16935 done
16936 done
16937
16938   ;;
16939 esac
16940 fi
16941 TCLSH=$ac_cv_path_TCLSH
16942
16943 if test -n "$TCLSH"; then
16944   echo "$as_me:$LINENO: result: $TCLSH" >&5
16945 echo "${ECHO_T}$TCLSH" >&6
16946 else
16947   echo "$as_me:$LINENO: result: no" >&5
16948 echo "${ECHO_T}no" >&6
16949 fi
16950
16951   test -n "$TCLSH" && break
16952 done
16953
16954 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16955 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16956 # Let user override test
16957 if test -z "$TCL_CONFIG_SH"; then
16958     pgac_test_dirs="$with_tclconfig"
16959
16960     set X $pgac_test_dirs; shift
16961     if test $# -eq 0; then
16962         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16963 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16964    { (exit 1); exit 1; }; }
16965         set X `echo 'puts $auto_path' | $TCLSH`; shift
16966     fi
16967
16968     for pgac_dir do
16969         if test -r "$pgac_dir/tclConfig.sh"; then
16970             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16971             break
16972         fi
16973     done
16974 fi
16975
16976 if test -z "$TCL_CONFIG_SH"; then
16977     echo "$as_me:$LINENO: result: no" >&5
16978 echo "${ECHO_T}no" >&6
16979     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16980 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16981    { (exit 1); exit 1; }; }
16982 else
16983     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16984 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16985 fi
16986
16987
16988
16989     . "$TCL_CONFIG_SH"
16990 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16991 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16992 eval TCL_LIBS=\"$TCL_LIBS\"
16993 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16994 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16995
16996     fi
16997
16998 # Check for Tk configuration script tkConfig.sh
16999 if test "$with_tk" = yes; then
17000     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17001 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17002 # Let user override test
17003 if test -z "$TK_CONFIG_SH"; then
17004     pgac_test_dirs="$with_tkconfig $with_tclconfig"
17005
17006     set X $pgac_test_dirs; shift
17007     if test $# -eq 0; then
17008         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17009 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17010    { (exit 1); exit 1; }; }
17011         set X `echo 'puts $auto_path' | $TCLSH`; shift
17012     fi
17013
17014     for pgac_dir do
17015         if test -r "$pgac_dir/tkConfig.sh"; then
17016             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17017             break
17018         fi
17019     done
17020 fi
17021
17022 if test -z "$TK_CONFIG_SH"; then
17023     echo "$as_me:$LINENO: result: no" >&5
17024 echo "${ECHO_T}no" >&6
17025     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17026 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17027    { (exit 1); exit 1; }; }
17028 else
17029     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17030 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17031 fi
17032
17033
17034
17035     . "$TK_CONFIG_SH"
17036 eval TK_LIBS=\"$TK_LIBS\"
17037 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17038 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17039
17040 fi
17041
17042
17043 #
17044 # Check for DocBook and tools
17045 #
17046 for ac_prog in onsgmls nsgmls
17047 do
17048   # Extract the first word of "$ac_prog", so it can be a program name with args.
17049 set dummy $ac_prog; ac_word=$2
17050 echo "$as_me:$LINENO: checking for $ac_word" >&5
17051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17052 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   if test -n "$NSGMLS"; then
17056   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17057 else
17058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059 for as_dir in $PATH
17060 do
17061   IFS=$as_save_IFS
17062   test -z "$as_dir" && as_dir=.
17063   for ac_exec_ext in '' $ac_executable_extensions; do
17064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17065     ac_cv_prog_NSGMLS="$ac_prog"
17066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17067     break 2
17068   fi
17069 done
17070 done
17071
17072 fi
17073 fi
17074 NSGMLS=$ac_cv_prog_NSGMLS
17075 if test -n "$NSGMLS"; then
17076   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17077 echo "${ECHO_T}$NSGMLS" >&6
17078 else
17079   echo "$as_me:$LINENO: result: no" >&5
17080 echo "${ECHO_T}no" >&6
17081 fi
17082
17083   test -n "$NSGMLS" && break
17084 done
17085
17086 for ac_prog in openjade jade
17087 do
17088   # Extract the first word of "$ac_prog", so it can be a program name with args.
17089 set dummy $ac_prog; ac_word=$2
17090 echo "$as_me:$LINENO: checking for $ac_word" >&5
17091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17092 if test "${ac_cv_prog_JADE+set}" = set; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   if test -n "$JADE"; then
17096   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17097 else
17098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17099 for as_dir in $PATH
17100 do
17101   IFS=$as_save_IFS
17102   test -z "$as_dir" && as_dir=.
17103   for ac_exec_ext in '' $ac_executable_extensions; do
17104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17105     ac_cv_prog_JADE="$ac_prog"
17106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17107     break 2
17108   fi
17109 done
17110 done
17111
17112 fi
17113 fi
17114 JADE=$ac_cv_prog_JADE
17115 if test -n "$JADE"; then
17116   echo "$as_me:$LINENO: result: $JADE" >&5
17117 echo "${ECHO_T}$JADE" >&6
17118 else
17119   echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6
17121 fi
17122
17123   test -n "$JADE" && break
17124 done
17125
17126
17127 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17128 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17129 if test "${pgac_cv_check_docbook+set}" = set; then
17130   echo $ECHO_N "(cached) $ECHO_C" >&6
17131 else
17132   cat >conftest.sgml <<EOF
17133 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17134 <book>
17135  <title>test</title>
17136  <chapter>
17137   <title>random</title>
17138    <sect1>
17139     <title>testsect</title>
17140     <para>text</para>
17141   </sect1>
17142  </chapter>
17143 </book>
17144 EOF
17145
17146 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17147 if test $? -eq 0; then
17148   pgac_cv_check_docbook=yes
17149 else
17150   pgac_cv_check_docbook=no
17151 fi
17152 rm -f conftest.sgml
17153 fi
17154 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17155 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17156
17157 have_docbook=$pgac_cv_check_docbook
17158
17159
17160 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17161 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17162 if test "${pgac_cv_path_stylesheets+set}" = set; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165   if test -n "$DOCBOOKSTYLE"; then
17166   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17167 else
17168   for pgac_prefix in /usr /usr/local /opt; do
17169     for pgac_infix in share lib; do
17170       for pgac_postfix in \
17171         sgml/stylesheets/nwalsh-modular \
17172         sgml/stylesheets/docbook \
17173         sgml/docbook/dsssl/modular \
17174         sgml/docbook/stylesheet/dsssl/modular \
17175         sgml/docbook/dsssl-stylesheets
17176       do
17177         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17178         if test -r "$pgac_candidate/html/docbook.dsl" \
17179            && test -r "$pgac_candidate/print/docbook.dsl"
17180         then
17181           pgac_cv_path_stylesheets=$pgac_candidate
17182           break 3
17183         fi
17184       done
17185     done
17186   done
17187 fi
17188 fi
17189
17190 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17191
17192 if test -n "$DOCBOOKSTYLE"; then
17193   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17194 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17195 else
17196   echo "$as_me:$LINENO: result: no" >&5
17197 echo "${ECHO_T}no" >&6
17198 fi
17199 if test -n "$DOCBOOKSTYLE"; then
17200   for ac_prog in collateindex.pl
17201 do
17202   # Extract the first word of "$ac_prog", so it can be a program name with args.
17203 set dummy $ac_prog; ac_word=$2
17204 echo "$as_me:$LINENO: checking for $ac_word" >&5
17205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17206 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   case $COLLATEINDEX in
17210   [\\/]* | ?:[\\/]*)
17211   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17212   ;;
17213   *)
17214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $DOCBOOKSTYLE/bin $PATH
17216 do
17217   IFS=$as_save_IFS
17218   test -z "$as_dir" && as_dir=.
17219   for ac_exec_ext in '' $ac_executable_extensions; do
17220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17223     break 2
17224   fi
17225 done
17226 done
17227
17228   ;;
17229 esac
17230 fi
17231 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17232
17233 if test -n "$COLLATEINDEX"; then
17234   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17235 echo "${ECHO_T}$COLLATEINDEX" >&6
17236 else
17237   echo "$as_me:$LINENO: result: no" >&5
17238 echo "${ECHO_T}no" >&6
17239 fi
17240
17241   test -n "$COLLATEINDEX" && break
17242 done
17243
17244 else
17245   for ac_prog in collateindex.pl
17246 do
17247   # Extract the first word of "$ac_prog", so it can be a program name with args.
17248 set dummy $ac_prog; ac_word=$2
17249 echo "$as_me:$LINENO: checking for $ac_word" >&5
17250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17251 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17252   echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254   case $COLLATEINDEX in
17255   [\\/]* | ?:[\\/]*)
17256   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17257   ;;
17258   *)
17259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260 for as_dir in $PATH
17261 do
17262   IFS=$as_save_IFS
17263   test -z "$as_dir" && as_dir=.
17264   for ac_exec_ext in '' $ac_executable_extensions; do
17265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17266     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17268     break 2
17269   fi
17270 done
17271 done
17272
17273   ;;
17274 esac
17275 fi
17276 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17277
17278 if test -n "$COLLATEINDEX"; then
17279   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17280 echo "${ECHO_T}$COLLATEINDEX" >&6
17281 else
17282   echo "$as_me:$LINENO: result: no" >&5
17283 echo "${ECHO_T}no" >&6
17284 fi
17285
17286   test -n "$COLLATEINDEX" && break
17287 done
17288
17289 fi
17290 for ac_prog in sgmlspl
17291 do
17292   # Extract the first word of "$ac_prog", so it can be a program name with args.
17293 set dummy $ac_prog; ac_word=$2
17294 echo "$as_me:$LINENO: checking for $ac_word" >&5
17295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17296 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   if test -n "$SGMLSPL"; then
17300   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17301 else
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17304 do
17305   IFS=$as_save_IFS
17306   test -z "$as_dir" && as_dir=.
17307   for ac_exec_ext in '' $ac_executable_extensions; do
17308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309     ac_cv_prog_SGMLSPL="$ac_prog"
17310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17311     break 2
17312   fi
17313 done
17314 done
17315
17316 fi
17317 fi
17318 SGMLSPL=$ac_cv_prog_SGMLSPL
17319 if test -n "$SGMLSPL"; then
17320   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17321 echo "${ECHO_T}$SGMLSPL" >&6
17322 else
17323   echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17325 fi
17326
17327   test -n "$SGMLSPL" && break
17328 done
17329
17330
17331
17332 # prepare build tree if outside source tree
17333 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17334 # Note 2: /bin/pwd might be better than shell's built-in at getting
17335 #         a symlink-free name.
17336 if test "$no_create" != yes; then
17337   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17338     :
17339   else
17340     vpath_build=yes
17341
17342     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17343     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17344     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17345       || { { echo "$as_me:$LINENO: error: failed" >&5
17346 echo "$as_me: error: failed" >&2;}
17347    { (exit 1); exit 1; }; }
17348     echo "$as_me:$LINENO: result: done" >&5
17349 echo "${ECHO_T}done" >&6
17350   fi
17351 fi
17352
17353
17354 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17355
17356
17357 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}"
17358
17359
17360 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17361
17362
17363 cat >confcache <<\_ACEOF
17364 # This file is a shell script that caches the results of configure
17365 # tests run on this system so they can be shared between configure
17366 # scripts and configure runs, see configure's option --config-cache.
17367 # It is not useful on other systems.  If it contains results you don't
17368 # want to keep, you may remove or edit it.
17369 #
17370 # config.status only pays attention to the cache file if you give it
17371 # the --recheck option to rerun configure.
17372 #
17373 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17375 # following values.
17376
17377 _ACEOF
17378
17379 # The following way of writing the cache mishandles newlines in values,
17380 # but we know of no workaround that is simple, portable, and efficient.
17381 # So, don't put newlines in cache variables' values.
17382 # Ultrix sh set writes to stderr and can't be redirected directly,
17383 # and sets the high bit in the cache file unless we assign to the vars.
17384 {
17385   (set) 2>&1 |
17386     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17387     *ac_space=\ *)
17388       # `set' does not quote correctly, so add quotes (double-quote
17389       # substitution turns \\\\ into \\, and sed turns \\ into \).
17390       sed -n \
17391         "s/'/'\\\\''/g;
17392           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17393       ;;
17394     *)
17395       # `set' quotes correctly as required by POSIX, so do not add quotes.
17396       sed -n \
17397         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17398       ;;
17399     esac;
17400 } |
17401   sed '
17402      t clear
17403      : clear
17404      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17405      t end
17406      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17407      : end' >>confcache
17408 if cmp -s $cache_file confcache; then :; else
17409   if test -w $cache_file; then
17410     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17411     cat confcache >$cache_file
17412   else
17413     echo "not updating unwritable cache $cache_file"
17414   fi
17415 fi
17416 rm -f confcache
17417
17418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17419 # Let make expand exec_prefix.
17420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17421
17422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17424 # trailing colons and then remove the whole line if VPATH becomes empty
17425 # (actually we leave an empty line to preserve line numbers).
17426 if test "x$srcdir" = x.; then
17427   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17428 s/:*\$(srcdir):*/:/;
17429 s/:*\${srcdir}:*/:/;
17430 s/:*@srcdir@:*/:/;
17431 s/^\([^=]*=[    ]*\):*/\1/;
17432 s/:*$//;
17433 s/^[^=]*=[      ]*$//;
17434 }'
17435 fi
17436
17437 DEFS=-DHAVE_CONFIG_H
17438
17439
17440 : ${CONFIG_STATUS=./config.status}
17441 ac_clean_files_save=$ac_clean_files
17442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17443 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17444 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17445 cat >$CONFIG_STATUS <<_ACEOF
17446 #! $SHELL
17447 # Generated by $as_me.
17448 # Run this file to recreate the current configuration.
17449 # Compiler output produced by configure, useful for debugging
17450 # configure, is in config.log if it exists.
17451
17452 debug=false
17453 SHELL=\${CONFIG_SHELL-$SHELL}
17454 _ACEOF
17455
17456 cat >>$CONFIG_STATUS <<\_ACEOF
17457
17458 ## --------------------- ##
17459 ## M4sh Initialization.  ##
17460 ## --------------------- ##
17461
17462 # Be Bourne compatible
17463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17464   emulate sh
17465   NULLCMD=:
17466 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17467   set -o posix
17468 fi
17469
17470 # NLS nuisances.
17471 # Support unset when possible.
17472 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17473   as_unset=unset
17474 else
17475   as_unset=false
17476 fi
17477
17478 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17479     { $as_unset LANG || test "${LANG+set}" != set; } ||
17480       { LANG=C; export LANG; }
17481 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17482     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17483       { LC_ALL=C; export LC_ALL; }
17484 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17485     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17486       { LC_TIME=C; export LC_TIME; }
17487 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17488     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17489       { LC_CTYPE=C; export LC_CTYPE; }
17490 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17491     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17492       { LANGUAGE=C; export LANGUAGE; }
17493 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17494     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17495       { LC_COLLATE=C; export LC_COLLATE; }
17496 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17497     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17498       { LC_NUMERIC=C; export LC_NUMERIC; }
17499 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17500     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17501       { LC_MESSAGES=C; export LC_MESSAGES; }
17502
17503
17504 # Name of the executable.
17505 as_me=`(basename "$0") 2>/dev/null ||
17506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17507          X"$0" : 'X\(//\)$' \| \
17508          X"$0" : 'X\(/\)$' \| \
17509          .     : '\(.\)' 2>/dev/null ||
17510 echo X/"$0" |
17511     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17512           /^X\/\(\/\/\)$/{ s//\1/; q; }
17513           /^X\/\(\/\).*/{ s//\1/; q; }
17514           s/.*/./; q'`
17515
17516 # PATH needs CR, and LINENO needs CR and PATH.
17517 # Avoid depending upon Character Ranges.
17518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17521 as_cr_digits='0123456789'
17522 as_cr_alnum=$as_cr_Letters$as_cr_digits
17523
17524 # The user is always right.
17525 if test "${PATH_SEPARATOR+set}" != set; then
17526   echo "#! /bin/sh" >conftest.sh
17527   echo  "exit 0"   >>conftest.sh
17528   chmod +x conftest.sh
17529   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17530     PATH_SEPARATOR=';'
17531   else
17532     PATH_SEPARATOR=:
17533   fi
17534   rm -f conftest.sh
17535 fi
17536
17537
17538   as_lineno_1=$LINENO
17539   as_lineno_2=$LINENO
17540   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17541   test "x$as_lineno_1" != "x$as_lineno_2" &&
17542   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17543   # Find who we are.  Look in the path if we contain no path at all
17544   # relative or not.
17545   case $0 in
17546     *[\\/]* ) as_myself=$0 ;;
17547     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17548 for as_dir in $PATH
17549 do
17550   IFS=$as_save_IFS
17551   test -z "$as_dir" && as_dir=.
17552   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17553 done
17554
17555        ;;
17556   esac
17557   # We did not find ourselves, most probably we were run as `sh COMMAND'
17558   # in which case we are not to be found in the path.
17559   if test "x$as_myself" = x; then
17560     as_myself=$0
17561   fi
17562   if test ! -f "$as_myself"; then
17563     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17565    { (exit 1); exit 1; }; }
17566   fi
17567   case $CONFIG_SHELL in
17568   '')
17569     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17571 do
17572   IFS=$as_save_IFS
17573   test -z "$as_dir" && as_dir=.
17574   for as_base in sh bash ksh sh5; do
17575          case $as_dir in
17576          /*)
17577            if ("$as_dir/$as_base" -c '
17578   as_lineno_1=$LINENO
17579   as_lineno_2=$LINENO
17580   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17581   test "x$as_lineno_1" != "x$as_lineno_2" &&
17582   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17583              CONFIG_SHELL=$as_dir/$as_base
17584              export CONFIG_SHELL
17585              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17586            fi;;
17587          esac
17588        done
17589 done
17590 ;;
17591   esac
17592
17593   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17594   # uniformly replaced by the line number.  The first 'sed' inserts a
17595   # line-number line before each line; the second 'sed' does the real
17596   # work.  The second script uses 'N' to pair each line-number line
17597   # with the numbered line, and appends trailing '-' during
17598   # substitution so that $LINENO is not a special case at line end.
17599   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17600   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17601   sed '=' <$as_myself |
17602     sed '
17603       N
17604       s,$,-,
17605       : loop
17606       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17607       t loop
17608       s,-$,,
17609       s,^['$as_cr_digits']*\n,,
17610     ' >$as_me.lineno &&
17611   chmod +x $as_me.lineno ||
17612     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17613 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17614    { (exit 1); exit 1; }; }
17615
17616   # Don't try to exec as it changes $[0], causing all sort of problems
17617   # (the dirname of $[0] is not the place where we might find the
17618   # original and so on.  Autoconf is especially sensible to this).
17619   . ./$as_me.lineno
17620   # Exit status is that of the last command.
17621   exit
17622 }
17623
17624
17625 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17626   *c*,-n*) ECHO_N= ECHO_C='
17627 ' ECHO_T='      ' ;;
17628   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17629   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17630 esac
17631
17632 if expr a : '\(a\)' >/dev/null 2>&1; then
17633   as_expr=expr
17634 else
17635   as_expr=false
17636 fi
17637
17638 rm -f conf$$ conf$$.exe conf$$.file
17639 echo >conf$$.file
17640 if ln -s conf$$.file conf$$ 2>/dev/null; then
17641   # We could just check for DJGPP; but this test a) works b) is more generic
17642   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17643   if test -f conf$$.exe; then
17644     # Don't use ln at all; we don't have any links
17645     as_ln_s='cp -p'
17646   else
17647     as_ln_s='ln -s'
17648   fi
17649 elif ln conf$$.file conf$$ 2>/dev/null; then
17650   as_ln_s=ln
17651 else
17652   as_ln_s='cp -p'
17653 fi
17654 rm -f conf$$ conf$$.exe conf$$.file
17655
17656 as_executable_p="test -f"
17657
17658 # Sed expression to map a string onto a valid CPP name.
17659 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17660
17661 # Sed expression to map a string onto a valid variable name.
17662 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17663
17664
17665 # IFS
17666 # We need space, tab and new line, in precisely that order.
17667 as_nl='
17668 '
17669 IFS="   $as_nl"
17670
17671 # CDPATH.
17672 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17673
17674 exec 6>&1
17675
17676 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17677 # report actual input values of CONFIG_FILES etc. instead of their
17678 # values after options handling.  Logging --version etc. is OK.
17679 exec 5>>config.log
17680 {
17681   echo
17682   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17683 ## Running $as_me. ##
17684 _ASBOX
17685 } >&5
17686 cat >&5 <<_CSEOF
17687
17688 This file was extended by PostgreSQL $as_me 7.4devel, which was
17689 generated by GNU Autoconf 2.53.  Invocation command line was
17690
17691   CONFIG_FILES    = $CONFIG_FILES
17692   CONFIG_HEADERS  = $CONFIG_HEADERS
17693   CONFIG_LINKS    = $CONFIG_LINKS
17694   CONFIG_COMMANDS = $CONFIG_COMMANDS
17695   $ $0 $@
17696
17697 _CSEOF
17698 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17699 echo >&5
17700 _ACEOF
17701
17702 # Files that config.status was made for.
17703 if test -n "$ac_config_files"; then
17704   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17705 fi
17706
17707 if test -n "$ac_config_headers"; then
17708   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17709 fi
17710
17711 if test -n "$ac_config_links"; then
17712   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17713 fi
17714
17715 if test -n "$ac_config_commands"; then
17716   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17717 fi
17718
17719 cat >>$CONFIG_STATUS <<\_ACEOF
17720
17721 ac_cs_usage="\
17722 \`$as_me' instantiates files from templates according to the
17723 current configuration.
17724
17725 Usage: $0 [OPTIONS] [FILE]...
17726
17727   -h, --help       print this help, then exit
17728   -V, --version    print version number, then exit
17729   -d, --debug      don't remove temporary files
17730       --recheck    update $as_me by reconfiguring in the same conditions
17731   --file=FILE[:TEMPLATE]
17732                    instantiate the configuration file FILE
17733   --header=FILE[:TEMPLATE]
17734                    instantiate the configuration header FILE
17735
17736 Configuration files:
17737 $config_files
17738
17739 Configuration headers:
17740 $config_headers
17741
17742 Configuration links:
17743 $config_links
17744
17745 Report bugs to <bug-autoconf@gnu.org>."
17746 _ACEOF
17747
17748 cat >>$CONFIG_STATUS <<_ACEOF
17749 ac_cs_version="\\
17750 PostgreSQL config.status 7.4devel
17751 configured by $0, generated by GNU Autoconf 2.53,
17752   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17753
17754 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17755 Free Software Foundation, Inc.
17756 This config.status script is free software; the Free Software Foundation
17757 gives unlimited permission to copy, distribute and modify it."
17758 srcdir=$srcdir
17759 _ACEOF
17760
17761 cat >>$CONFIG_STATUS <<\_ACEOF
17762 # If no file are specified by the user, then we need to provide default
17763 # value.  By we need to know if files were specified by the user.
17764 ac_need_defaults=:
17765 while test $# != 0
17766 do
17767   case $1 in
17768   --*=*)
17769     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17770     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17771     shift
17772     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17773     shift
17774     ;;
17775   -*);;
17776   *) # This is not an option, so the user has probably given explicit
17777      # arguments.
17778      ac_need_defaults=false;;
17779   esac
17780
17781   case $1 in
17782   # Handling of the options.
17783 _ACEOF
17784 cat >>$CONFIG_STATUS <<_ACEOF
17785   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17786     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17787     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17788 _ACEOF
17789 cat >>$CONFIG_STATUS <<\_ACEOF
17790   --version | --vers* | -V )
17791     echo "$ac_cs_version"; exit 0 ;;
17792   --he | --h)
17793     # Conflict between --help and --header
17794     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17795 Try \`$0 --help' for more information." >&5
17796 echo "$as_me: error: ambiguous option: $1
17797 Try \`$0 --help' for more information." >&2;}
17798    { (exit 1); exit 1; }; };;
17799   --help | --hel | -h )
17800     echo "$ac_cs_usage"; exit 0 ;;
17801   --debug | --d* | -d )
17802     debug=: ;;
17803   --file | --fil | --fi | --f )
17804     shift
17805     CONFIG_FILES="$CONFIG_FILES $1"
17806     ac_need_defaults=false;;
17807   --header | --heade | --head | --hea )
17808     shift
17809     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17810     ac_need_defaults=false;;
17811
17812   # This is an error.
17813   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17814 Try \`$0 --help' for more information." >&5
17815 echo "$as_me: error: unrecognized option: $1
17816 Try \`$0 --help' for more information." >&2;}
17817    { (exit 1); exit 1; }; } ;;
17818
17819   *) ac_config_targets="$ac_config_targets $1" ;;
17820
17821   esac
17822   shift
17823 done
17824
17825 _ACEOF
17826
17827
17828
17829
17830
17831 cat >>$CONFIG_STATUS <<\_ACEOF
17832 for ac_config_target in $ac_config_targets
17833 do
17834   case "$ac_config_target" in
17835   # Handling of arguments.
17836   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17837   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17838   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17839   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17840   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17841   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17842   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17843   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17844   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17845   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17846   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17847 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17848    { (exit 1); exit 1; }; };;
17849   esac
17850 done
17851
17852 # If the user did not use the arguments to specify the items to instantiate,
17853 # then the envvar interface is used.  Set only those that are not.
17854 # We use the long form for the default assignment because of an extremely
17855 # bizarre bug on SunOS 4.1.3.
17856 if $ac_need_defaults; then
17857   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17858   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17859   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17860 fi
17861
17862 # Create a temporary directory, and hook for its removal unless debugging.
17863 $debug ||
17864 {
17865   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17866   trap '{ (exit 1); exit 1; }' 1 2 13 15
17867 }
17868
17869 # Create a (secure) tmp directory for tmp files.
17870 : ${TMPDIR=/tmp}
17871 {
17872   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17873   test -n "$tmp" && test -d "$tmp"
17874 }  ||
17875 {
17876   tmp=$TMPDIR/cs$$-$RANDOM
17877   (umask 077 && mkdir $tmp)
17878 } ||
17879 {
17880    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17881    { (exit 1); exit 1; }
17882 }
17883
17884 _ACEOF
17885
17886 cat >>$CONFIG_STATUS <<_ACEOF
17887
17888 #
17889 # CONFIG_FILES section.
17890 #
17891
17892 # No need to generate the scripts if there are no CONFIG_FILES.
17893 # This happens for instance when ./config.status config.h
17894 if test -n "\$CONFIG_FILES"; then
17895   # Protect against being on the right side of a sed subst in config.status.
17896   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17897    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17898 s,@SHELL@,$SHELL,;t t
17899 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17900 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17901 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17902 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17903 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17904 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17905 s,@exec_prefix@,$exec_prefix,;t t
17906 s,@prefix@,$prefix,;t t
17907 s,@program_transform_name@,$program_transform_name,;t t
17908 s,@bindir@,$bindir,;t t
17909 s,@sbindir@,$sbindir,;t t
17910 s,@libexecdir@,$libexecdir,;t t
17911 s,@datadir@,$datadir,;t t
17912 s,@sysconfdir@,$sysconfdir,;t t
17913 s,@sharedstatedir@,$sharedstatedir,;t t
17914 s,@localstatedir@,$localstatedir,;t t
17915 s,@libdir@,$libdir,;t t
17916 s,@includedir@,$includedir,;t t
17917 s,@oldincludedir@,$oldincludedir,;t t
17918 s,@infodir@,$infodir,;t t
17919 s,@mandir@,$mandir,;t t
17920 s,@build_alias@,$build_alias,;t t
17921 s,@host_alias@,$host_alias,;t t
17922 s,@target_alias@,$target_alias,;t t
17923 s,@DEFS@,$DEFS,;t t
17924 s,@ECHO_C@,$ECHO_C,;t t
17925 s,@ECHO_N@,$ECHO_N,;t t
17926 s,@ECHO_T@,$ECHO_T,;t t
17927 s,@LIBS@,$LIBS,;t t
17928 s,@docdir@,$docdir,;t t
17929 s,@configure_args@,$configure_args,;t t
17930 s,@build@,$build,;t t
17931 s,@build_cpu@,$build_cpu,;t t
17932 s,@build_vendor@,$build_vendor,;t t
17933 s,@build_os@,$build_os,;t t
17934 s,@host@,$host,;t t
17935 s,@host_cpu@,$host_cpu,;t t
17936 s,@host_vendor@,$host_vendor,;t t
17937 s,@host_os@,$host_os,;t t
17938 s,@PORTNAME@,$PORTNAME,;t t
17939 s,@TAS@,$TAS,;t t
17940 s,@enable_nls@,$enable_nls,;t t
17941 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17942 s,@default_port@,$default_port,;t t
17943 s,@enable_shared@,$enable_shared,;t t
17944 s,@enable_rpath@,$enable_rpath,;t t
17945 s,@enable_debug@,$enable_debug,;t t
17946 s,@CC@,$CC,;t t
17947 s,@CFLAGS@,$CFLAGS,;t t
17948 s,@LDFLAGS@,$LDFLAGS,;t t
17949 s,@CPPFLAGS@,$CPPFLAGS,;t t
17950 s,@ac_ct_CC@,$ac_ct_CC,;t t
17951 s,@EXEEXT@,$EXEEXT,;t t
17952 s,@OBJEXT@,$OBJEXT,;t t
17953 s,@CPP@,$CPP,;t t
17954 s,@GCC@,$GCC,;t t
17955 s,@autodepend@,$autodepend,;t t
17956 s,@INCLUDES@,$INCLUDES,;t t
17957 s,@enable_thread_safety@,$enable_thread_safety,;t t
17958 s,@with_tcl@,$with_tcl,;t t
17959 s,@with_tk@,$with_tk,;t t
17960 s,@with_perl@,$with_perl,;t t
17961 s,@with_python@,$with_python,;t t
17962 s,@ANT@,$ANT,;t t
17963 s,@with_java@,$with_java,;t t
17964 s,@with_krb4@,$with_krb4,;t t
17965 s,@with_krb5@,$with_krb5,;t t
17966 s,@krb_srvtab@,$krb_srvtab,;t t
17967 s,@with_pam@,$with_pam,;t t
17968 s,@with_rendezvous@,$with_rendezvous,;t t
17969 s,@with_openssl@,$with_openssl,;t t
17970 s,@ELF_SYS@,$ELF_SYS,;t t
17971 s,@AWK@,$AWK,;t t
17972 s,@FLEX@,$FLEX,;t t
17973 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17974 s,@LN_S@,$LN_S,;t t
17975 s,@LD@,$LD,;t t
17976 s,@with_gnu_ld@,$with_gnu_ld,;t t
17977 s,@ld_R_works@,$ld_R_works,;t t
17978 s,@RANLIB@,$RANLIB,;t t
17979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17980 s,@LORDER@,$LORDER,;t t
17981 s,@TAR@,$TAR,;t t
17982 s,@STRIP@,$STRIP,;t t
17983 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17984 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17985 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17986 s,@YACC@,$YACC,;t t
17987 s,@YFLAGS@,$YFLAGS,;t t
17988 s,@PERL@,$PERL,;t t
17989 s,@perl_archlibexp@,$perl_archlibexp,;t t
17990 s,@perl_privlibexp@,$perl_privlibexp,;t t
17991 s,@perl_useshrplib@,$perl_useshrplib,;t t
17992 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17993 s,@PYTHON@,$PYTHON,;t t
17994 s,@python_version@,$python_version,;t t
17995 s,@python_prefix@,$python_prefix,;t t
17996 s,@python_execprefix@,$python_execprefix,;t t
17997 s,@python_configdir@,$python_configdir,;t t
17998 s,@python_moduledir@,$python_moduledir,;t t
17999 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
18000 s,@python_includespec@,$python_includespec,;t t
18001 s,@python_libspec@,$python_libspec,;t t
18002 s,@LIBOBJS@,$LIBOBJS,;t t
18003 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18004 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18005 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18006 s,@MSGFMT@,$MSGFMT,;t t
18007 s,@MSGMERGE@,$MSGMERGE,;t t
18008 s,@XGETTEXT@,$XGETTEXT,;t t
18009 s,@localedir@,$localedir,;t t
18010 s,@TCLSH@,$TCLSH,;t t
18011 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18012 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18013 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18014 s,@TCL_LIBS@,$TCL_LIBS,;t t
18015 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18016 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18017 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18018 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18019 s,@TK_LIBS@,$TK_LIBS,;t t
18020 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18021 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18022 s,@NSGMLS@,$NSGMLS,;t t
18023 s,@JADE@,$JADE,;t t
18024 s,@have_docbook@,$have_docbook,;t t
18025 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18026 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18027 s,@SGMLSPL@,$SGMLSPL,;t t
18028 s,@vpath_build@,$vpath_build,;t t
18029 CEOF
18030
18031 _ACEOF
18032
18033   cat >>$CONFIG_STATUS <<\_ACEOF
18034   # Split the substitutions into bite-sized pieces for seds with
18035   # small command number limits, like on Digital OSF/1 and HP-UX.
18036   ac_max_sed_lines=48
18037   ac_sed_frag=1 # Number of current file.
18038   ac_beg=1 # First line for current file.
18039   ac_end=$ac_max_sed_lines # Line after last line for current file.
18040   ac_more_lines=:
18041   ac_sed_cmds=
18042   while $ac_more_lines; do
18043     if test $ac_beg -gt 1; then
18044       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18045     else
18046       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18047     fi
18048     if test ! -s $tmp/subs.frag; then
18049       ac_more_lines=false
18050     else
18051       # The purpose of the label and of the branching condition is to
18052       # speed up the sed processing (if there are no `@' at all, there
18053       # is no need to browse any of the substitutions).
18054       # These are the two extra sed commands mentioned above.
18055       (echo ':t
18056   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18057       if test -z "$ac_sed_cmds"; then
18058         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18059       else
18060         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18061       fi
18062       ac_sed_frag=`expr $ac_sed_frag + 1`
18063       ac_beg=$ac_end
18064       ac_end=`expr $ac_end + $ac_max_sed_lines`
18065     fi
18066   done
18067   if test -z "$ac_sed_cmds"; then
18068     ac_sed_cmds=cat
18069   fi
18070 fi # test -n "$CONFIG_FILES"
18071
18072 _ACEOF
18073 cat >>$CONFIG_STATUS <<\_ACEOF
18074 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18075   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18076   case $ac_file in
18077   - | *:- | *:-:* ) # input from stdin
18078         cat >$tmp/stdin
18079         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18080         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18081   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18082         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18083   * )   ac_file_in=$ac_file.in ;;
18084   esac
18085
18086   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18087   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089          X"$ac_file" : 'X\(//\)[^/]' \| \
18090          X"$ac_file" : 'X\(//\)$' \| \
18091          X"$ac_file" : 'X\(/\)' \| \
18092          .     : '\(.\)' 2>/dev/null ||
18093 echo X"$ac_file" |
18094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18095           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18096           /^X\(\/\/\)$/{ s//\1/; q; }
18097           /^X\(\/\).*/{ s//\1/; q; }
18098           s/.*/./; q'`
18099   { case "$ac_dir" in
18100   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18101   *)                      as_incr_dir=.;;
18102 esac
18103 as_dummy="$ac_dir"
18104 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18105   case $as_mkdir_dir in
18106     # Skip DOS drivespec
18107     ?:) as_incr_dir=$as_mkdir_dir ;;
18108     *)
18109       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18110       test -d "$as_incr_dir" ||
18111         mkdir "$as_incr_dir" ||
18112         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18113 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18114    { (exit 1); exit 1; }; }
18115     ;;
18116   esac
18117 done; }
18118
18119   ac_builddir=.
18120
18121 if test "$ac_dir" != .; then
18122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18123   # A "../" for each directory in $ac_dir_suffix.
18124   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18125 else
18126   ac_dir_suffix= ac_top_builddir=
18127 fi
18128
18129 case $srcdir in
18130   .)  # No --srcdir option.  We are building in place.
18131     ac_srcdir=.
18132     if test -z "$ac_top_builddir"; then
18133        ac_top_srcdir=.
18134     else
18135        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18136     fi ;;
18137   [\\/]* | ?:[\\/]* )  # Absolute path.
18138     ac_srcdir=$srcdir$ac_dir_suffix;
18139     ac_top_srcdir=$srcdir ;;
18140   *) # Relative path.
18141     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18142     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18143 esac
18144 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18145 # absolute.
18146 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18147 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18148 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18149 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18150
18151
18152
18153   if test x"$ac_file" != x-; then
18154     { echo "$as_me:$LINENO: creating $ac_file" >&5
18155 echo "$as_me: creating $ac_file" >&6;}
18156     rm -f "$ac_file"
18157   fi
18158   # Let's still pretend it is `configure' which instantiates (i.e., don't
18159   # use $as_me), people would be surprised to read:
18160   #    /* config.h.  Generated by config.status.  */
18161   if test x"$ac_file" = x-; then
18162     configure_input=
18163   else
18164     configure_input="$ac_file.  "
18165   fi
18166   configure_input=$configure_input"Generated from `echo $ac_file_in |
18167                                      sed 's,.*/,,'` by configure."
18168
18169   # First look for the input files in the build tree, otherwise in the
18170   # src tree.
18171   ac_file_inputs=`IFS=:
18172     for f in $ac_file_in; do
18173       case $f in
18174       -) echo $tmp/stdin ;;
18175       [\\/$]*)
18176          # Absolute (can't be DOS-style, as IFS=:)
18177          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18178 echo "$as_me: error: cannot find input file: $f" >&2;}
18179    { (exit 1); exit 1; }; }
18180          echo $f;;
18181       *) # Relative
18182          if test -f "$f"; then
18183            # Build tree
18184            echo $f
18185          elif test -f "$srcdir/$f"; then
18186            # Source tree
18187            echo $srcdir/$f
18188          else
18189            # /dev/null tree
18190            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18191 echo "$as_me: error: cannot find input file: $f" >&2;}
18192    { (exit 1); exit 1; }; }
18193          fi;;
18194       esac
18195     done` || { (exit 1); exit 1; }
18196 _ACEOF
18197 cat >>$CONFIG_STATUS <<_ACEOF
18198   sed "$ac_vpsub
18199 $extrasub
18200 _ACEOF
18201 cat >>$CONFIG_STATUS <<\_ACEOF
18202 :t
18203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18204 s,@configure_input@,$configure_input,;t t
18205 s,@srcdir@,$ac_srcdir,;t t
18206 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18207 s,@top_srcdir@,$ac_top_srcdir,;t t
18208 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18209 s,@builddir@,$ac_builddir,;t t
18210 s,@abs_builddir@,$ac_abs_builddir,;t t
18211 s,@top_builddir@,$ac_top_builddir,;t t
18212 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18214   rm -f $tmp/stdin
18215   if test x"$ac_file" != x-; then
18216     mv $tmp/out $ac_file
18217   else
18218     cat $tmp/out
18219     rm -f $tmp/out
18220   fi
18221
18222 done
18223 _ACEOF
18224 cat >>$CONFIG_STATUS <<\_ACEOF
18225
18226 #
18227 # CONFIG_HEADER section.
18228 #
18229
18230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18232 #
18233 # ac_d sets the value in "#define NAME VALUE" lines.
18234 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18235 ac_dB='[        ].*$,\1#\2'
18236 ac_dC=' '
18237 ac_dD=',;t'
18238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18239 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18240 ac_uB='$,\1#\2define\3'
18241 ac_uC=' '
18242 ac_uD=',;t'
18243
18244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18245   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18246   case $ac_file in
18247   - | *:- | *:-:* ) # input from stdin
18248         cat >$tmp/stdin
18249         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18250         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18251   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18252         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18253   * )   ac_file_in=$ac_file.in ;;
18254   esac
18255
18256   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18257 echo "$as_me: creating $ac_file" >&6;}
18258
18259   # First look for the input files in the build tree, otherwise in the
18260   # src tree.
18261   ac_file_inputs=`IFS=:
18262     for f in $ac_file_in; do
18263       case $f in
18264       -) echo $tmp/stdin ;;
18265       [\\/$]*)
18266          # Absolute (can't be DOS-style, as IFS=:)
18267          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18268 echo "$as_me: error: cannot find input file: $f" >&2;}
18269    { (exit 1); exit 1; }; }
18270          echo $f;;
18271       *) # Relative
18272          if test -f "$f"; then
18273            # Build tree
18274            echo $f
18275          elif test -f "$srcdir/$f"; then
18276            # Source tree
18277            echo $srcdir/$f
18278          else
18279            # /dev/null tree
18280            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18281 echo "$as_me: error: cannot find input file: $f" >&2;}
18282    { (exit 1); exit 1; }; }
18283          fi;;
18284       esac
18285     done` || { (exit 1); exit 1; }
18286   # Remove the trailing spaces.
18287   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18288
18289 _ACEOF
18290
18291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18292 # `conftest.undefs', that substitutes the proper values into
18293 # config.h.in to produce config.h.  The first handles `#define'
18294 # templates, and the second `#undef' templates.
18295 # And first: Protect against being on the right side of a sed subst in
18296 # config.status.  Protect against being in an unquoted here document
18297 # in config.status.
18298 rm -f conftest.defines conftest.undefs
18299 # Using a here document instead of a string reduces the quoting nightmare.
18300 # Putting comments in sed scripts is not portable.
18301 #
18302 # `end' is used to avoid that the second main sed command (meant for
18303 # 0-ary CPP macros) applies to n-ary macro definitions.
18304 # See the Autoconf documentation for `clear'.
18305 cat >confdef2sed.sed <<\_ACEOF
18306 s/[\\&,]/\\&/g
18307 s,[\\$`],\\&,g
18308 t clear
18309 : clear
18310 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18311 t end
18312 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18313 : end
18314 _ACEOF
18315 # If some macros were called several times there might be several times
18316 # the same #defines, which is useless.  Nevertheless, we may not want to
18317 # sort them, since we want the *last* AC-DEFINE to be honored.
18318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18320 rm -f confdef2sed.sed
18321
18322 # This sed command replaces #undef with comments.  This is necessary, for
18323 # example, in the case of _POSIX_SOURCE, which is predefined and required
18324 # on some systems where configure will not decide to define it.
18325 cat >>conftest.undefs <<\_ACEOF
18326 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18327 _ACEOF
18328
18329 # Break up conftest.defines because some shells have a limit on the size
18330 # of here documents, and old seds have small limits too (100 cmds).
18331 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18332 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18333 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18334 echo '  :' >>$CONFIG_STATUS
18335 rm -f conftest.tail
18336 while grep . conftest.defines >/dev/null
18337 do
18338   # Write a limited-size here document to $tmp/defines.sed.
18339   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18340   # Speed up: don't consider the non `#define' lines.
18341   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18342   # Work around the forget-to-reset-the-flag bug.
18343   echo 't clr' >>$CONFIG_STATUS
18344   echo ': clr' >>$CONFIG_STATUS
18345   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18346   echo 'CEOF
18347   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18348   rm -f $tmp/in
18349   mv $tmp/out $tmp/in
18350 ' >>$CONFIG_STATUS
18351   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18352   rm -f conftest.defines
18353   mv conftest.tail conftest.defines
18354 done
18355 rm -f conftest.defines
18356 echo '  fi # egrep' >>$CONFIG_STATUS
18357 echo >>$CONFIG_STATUS
18358
18359 # Break up conftest.undefs because some shells have a limit on the size
18360 # of here documents, and old seds have small limits too (100 cmds).
18361 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18362 rm -f conftest.tail
18363 while grep . conftest.undefs >/dev/null
18364 do
18365   # Write a limited-size here document to $tmp/undefs.sed.
18366   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18367   # Speed up: don't consider the non `#undef'
18368   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18369   # Work around the forget-to-reset-the-flag bug.
18370   echo 't clr' >>$CONFIG_STATUS
18371   echo ': clr' >>$CONFIG_STATUS
18372   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18373   echo 'CEOF
18374   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18375   rm -f $tmp/in
18376   mv $tmp/out $tmp/in
18377 ' >>$CONFIG_STATUS
18378   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18379   rm -f conftest.undefs
18380   mv conftest.tail conftest.undefs
18381 done
18382 rm -f conftest.undefs
18383
18384 cat >>$CONFIG_STATUS <<\_ACEOF
18385   # Let's still pretend it is `configure' which instantiates (i.e., don't
18386   # use $as_me), people would be surprised to read:
18387   #    /* config.h.  Generated by config.status.  */
18388   if test x"$ac_file" = x-; then
18389     echo "/* Generated by configure.  */" >$tmp/config.h
18390   else
18391     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18392   fi
18393   cat $tmp/in >>$tmp/config.h
18394   rm -f $tmp/in
18395   if test x"$ac_file" != x-; then
18396     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18397       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18398 echo "$as_me: $ac_file is unchanged" >&6;}
18399     else
18400       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18402          X"$ac_file" : 'X\(//\)[^/]' \| \
18403          X"$ac_file" : 'X\(//\)$' \| \
18404          X"$ac_file" : 'X\(/\)' \| \
18405          .     : '\(.\)' 2>/dev/null ||
18406 echo X"$ac_file" |
18407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18408           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18409           /^X\(\/\/\)$/{ s//\1/; q; }
18410           /^X\(\/\).*/{ s//\1/; q; }
18411           s/.*/./; q'`
18412       { case "$ac_dir" in
18413   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18414   *)                      as_incr_dir=.;;
18415 esac
18416 as_dummy="$ac_dir"
18417 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18418   case $as_mkdir_dir in
18419     # Skip DOS drivespec
18420     ?:) as_incr_dir=$as_mkdir_dir ;;
18421     *)
18422       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18423       test -d "$as_incr_dir" ||
18424         mkdir "$as_incr_dir" ||
18425         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18427    { (exit 1); exit 1; }; }
18428     ;;
18429   esac
18430 done; }
18431
18432       rm -f $ac_file
18433       mv $tmp/config.h $ac_file
18434     fi
18435   else
18436     cat $tmp/config.h
18437     rm -f $tmp/config.h
18438   fi
18439   # Run the commands associated with the file.
18440   case $ac_file in
18441     src/include/pg_config.h )
18442 # Update timestamp for pg_config.h (see Makefile.global)
18443 echo >src/include/stamp-h
18444  ;;
18445   esac
18446 done
18447 _ACEOF
18448 cat >>$CONFIG_STATUS <<\_ACEOF
18449
18450 #
18451 # CONFIG_LINKS section.
18452 #
18453
18454 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18455   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18456   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18457
18458   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18459 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18460
18461   if test ! -r $srcdir/$ac_source; then
18462     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18463 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18464    { (exit 1); exit 1; }; }
18465   fi
18466   rm -f $ac_dest
18467
18468   # Make relative symlinks.
18469   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18470 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18471          X"$ac_dest" : 'X\(//\)[^/]' \| \
18472          X"$ac_dest" : 'X\(//\)$' \| \
18473          X"$ac_dest" : 'X\(/\)' \| \
18474          .     : '\(.\)' 2>/dev/null ||
18475 echo X"$ac_dest" |
18476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18478           /^X\(\/\/\)$/{ s//\1/; q; }
18479           /^X\(\/\).*/{ s//\1/; q; }
18480           s/.*/./; q'`
18481   { case "$ac_dest_dir" in
18482   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18483   *)                      as_incr_dir=.;;
18484 esac
18485 as_dummy="$ac_dest_dir"
18486 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18487   case $as_mkdir_dir in
18488     # Skip DOS drivespec
18489     ?:) as_incr_dir=$as_mkdir_dir ;;
18490     *)
18491       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18492       test -d "$as_incr_dir" ||
18493         mkdir "$as_incr_dir" ||
18494         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18495 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18496    { (exit 1); exit 1; }; }
18497     ;;
18498   esac
18499 done; }
18500
18501   ac_builddir=.
18502
18503 if test "$ac_dest_dir" != .; then
18504   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18505   # A "../" for each directory in $ac_dir_suffix.
18506   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18507 else
18508   ac_dir_suffix= ac_top_builddir=
18509 fi
18510
18511 case $srcdir in
18512   .)  # No --srcdir option.  We are building in place.
18513     ac_srcdir=.
18514     if test -z "$ac_top_builddir"; then
18515        ac_top_srcdir=.
18516     else
18517        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18518     fi ;;
18519   [\\/]* | ?:[\\/]* )  # Absolute path.
18520     ac_srcdir=$srcdir$ac_dir_suffix;
18521     ac_top_srcdir=$srcdir ;;
18522   *) # Relative path.
18523     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18524     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18525 esac
18526 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18527 # absolute.
18528 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18529 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18530 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18531 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18532
18533
18534   case $srcdir in
18535   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18536       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18537   esac
18538
18539   # Make a symlink if possible; otherwise try a hard link.
18540   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18541     ln $srcdir/$ac_source $ac_dest ||
18542     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18543 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18544    { (exit 1); exit 1; }; }
18545 done
18546 _ACEOF
18547
18548 cat >>$CONFIG_STATUS <<\_ACEOF
18549
18550 { (exit 0); exit 0; }
18551 _ACEOF
18552 chmod +x $CONFIG_STATUS
18553 ac_clean_files=$ac_clean_files_save
18554
18555
18556 # configure is writing to config.log, and then calls config.status.
18557 # config.status does its own redirection, appending to config.log.
18558 # Unfortunately, on DOS this fails, as config.log is still kept open
18559 # by configure, so config.status won't be able to write to it; its
18560 # output is simply discarded.  So we exec the FD to /dev/null,
18561 # effectively closing config.log, so it can be properly (re)opened and
18562 # appended to by config.status.  When coming back to configure, we
18563 # need to make the FD available again.
18564 if test "$no_create" != yes; then
18565   ac_cs_success=:
18566   exec 5>/dev/null
18567   $SHELL $CONFIG_STATUS || ac_cs_success=false
18568   exec 5>>config.log
18569   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18570   # would make configure fail if this is the last instruction.
18571   $ac_cs_success || { (exit 1); exit 1; }
18572 fi
18573