]> granicus.if.org Git - postgresql/blob - configure
7e0a563444df053f902c68961593c3ff4a9f8a56
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.0.0beta4.
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 2004 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='8.0.0beta4'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta4'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -infodir | --infodir | --infodi | --infod | --info | --inf)
440     ac_prev=infodir ;;
441   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442     infodir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir infodir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
768
769 #
770 # Report the --help message.
771 #
772 if test "$ac_init_help" = "long"; then
773   # Omit some internal or obsolete options to make the list less imposing.
774   # This message is too long to be a string in the A/UX 3.1 sh.
775   cat <<_ACEOF
776 \`configure' configures PostgreSQL 8.0.0beta4 to adapt to many kinds of systems.
777
778 Usage: $0 [OPTION]... [VAR=VALUE]...
779
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE.  See below for descriptions of some of the useful variables.
782
783 Defaults for the options are specified in brackets.
784
785 Configuration:
786   -h, --help              display this help and exit
787       --help=short        display options specific to this package
788       --help=recursive    display the short help of all the included packages
789   -V, --version           display version information and exit
790   -q, --quiet, --silent   do not print \`checking...' messages
791       --cache-file=FILE   cache test results in FILE [disabled]
792   -C, --config-cache      alias for \`--cache-file=config.cache'
793   -n, --no-create         do not create output files
794       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
795
796 _ACEOF
797
798   cat <<_ACEOF
799 Installation directories:
800   --prefix=PREFIX         install architecture-independent files in PREFIX
801                           [$ac_default_prefix]
802   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
803                           [PREFIX]
804
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
809
810 For better control, use the options below.
811
812 Fine tuning of the installation directories:
813   --bindir=DIR           user executables [EPREFIX/bin]
814   --sbindir=DIR          system admin executables [EPREFIX/sbin]
815   --libexecdir=DIR       program executables [EPREFIX/libexec]
816   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
817   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
818   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
819   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
820   --libdir=DIR           object code libraries [EPREFIX/lib]
821   --includedir=DIR       C header files [PREFIX/include]
822   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
823   --infodir=DIR          info documentation [PREFIX/info]
824   --mandir=DIR           man documentation [PREFIX/man]
825 _ACEOF
826
827   cat <<\_ACEOF
828
829 System types:
830   --build=BUILD     configure for building on BUILD [guessed]
831   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836   case $ac_init_help in
837      short | recursive ) echo "Configuration of PostgreSQL 8.0.0beta4:";;
838    esac
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-integer-datetimes  enable 64-bit integer date/time support
845   --enable-nls[=LANGUAGES]  enable Native Language Support
846   --disable-shared        do not build shared libraries
847   --disable-rpath         do not embed shared library search path in executables
848   --disable-spinlocks     do not use spinlocks
849   --enable-debug          build with debugging symbols (-g)
850   --enable-depend         turn on automatic dependency tracking
851   --enable-cassert        enable assertion checks (for debugging)
852   --enable-thread-safety  make client libraries thread-safe
853   --enable-thread-safety-force  force thread-safety in spite of thread test failure
854   --disable-largefile     omit support for large files
855
856 Optional Packages:
857   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859
860   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
861   --without-docdir        do not install the documentation
862   --with-includes=DIRS    look for additional header files in DIRS
863   --with-libraries=DIRS   look for additional libraries in DIRS
864   --with-libs=DIRS        alternative spelling of --with-libraries
865   --with-pgport=PORTNUM   change default port number 5432
866   --with-tcl              build Tcl modules (PL/Tcl)
867   --with-tclconfig=DIR    tclConfig.sh is in DIR
868   --with-perl             build Perl modules (PL/Perl)
869   --with-python           build Python modules (PL/Python)
870   --with-krb4             build with Kerberos 4 support
871   --with-krb5             build with Kerberos 5 support
872   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]
873   --with-pam              build with PAM support
874   --with-rendezvous       build with Rendezvous support
875   --with-openssl          build with OpenSSL support
876   --without-readline      do not use Readline
877   --without-zlib          do not use Zlib
878   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
879
880 Some influential environment variables:
881   CC          C compiler command
882   CFLAGS      C compiler flags
883   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884               nonstandard directory <lib dir>
885   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886               headers in a nonstandard directory <include dir>
887   CPP         C preprocessor
888   LDFLAGS_SL
889   DOCBOOKSTYLE
890               location of DocBook stylesheets
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 Report bugs to <pgsql-bugs@postgresql.org>.
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936     cd $ac_dir
937     # Check for guested configure; otherwise get Cygnus style configure.
938     if test -f $ac_srcdir/configure.gnu; then
939       echo
940       $SHELL $ac_srcdir/configure.gnu  --help=recursive
941     elif test -f $ac_srcdir/configure; then
942       echo
943       $SHELL $ac_srcdir/configure  --help=recursive
944     elif test -f $ac_srcdir/configure.ac ||
945            test -f $ac_srcdir/configure.in; then
946       echo
947       $ac_configure --help
948     else
949       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950     fi
951     cd $ac_popdir
952   done
953 fi
954
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957   cat <<\_ACEOF
958 PostgreSQL configure 8.0.0beta4
959 generated by GNU Autoconf 2.53
960
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965
966 Copyright 2004 PostgreSQL Global Development Group
967 _ACEOF
968   exit 0
969 fi
970 exec 5>config.log
971 cat >&5 <<_ACEOF
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
974
975 It was created by PostgreSQL $as_me 8.0.0beta4, which was
976 generated by GNU Autoconf 2.53.  Invocation command line was
977
978   $ $0 $@
979
980 _ACEOF
981 {
982 cat <<_ASUNAME
983 ## --------- ##
984 ## Platform. ##
985 ## --------- ##
986
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
992
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
995
996 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
997 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1000 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1001 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1002 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1003
1004 _ASUNAME
1005
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 for as_dir in $PATH
1008 do
1009   IFS=$as_save_IFS
1010   test -z "$as_dir" && as_dir=.
1011   echo "PATH: $as_dir"
1012 done
1013
1014 } >&5
1015
1016 cat >&5 <<_ACEOF
1017
1018
1019 ## ----------- ##
1020 ## Core tests. ##
1021 ## ----------- ##
1022
1023 _ACEOF
1024
1025
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Also quote any args containing shell meta-characters.
1029 ac_configure_args=
1030 ac_sep=
1031 for ac_arg
1032 do
1033   case $ac_arg in
1034   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035   | --no-cr | --no-c | -n ) continue ;;
1036   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038     continue ;;
1039   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041   esac
1042   case " $ac_configure_args " in
1043     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1044     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045        ac_sep=" " ;;
1046   esac
1047   # Get rid of the leading space.
1048 done
1049
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log.  We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056   # Save into config.log some information that might help in debugging.
1057   {
1058     echo
1059     cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064     echo
1065     # The following way of writing the cache mishandles newlines in values,
1066 {
1067   (set) 2>&1 |
1068     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069     *ac_space=\ *)
1070       sed -n \
1071         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073       ;;
1074     *)
1075       sed -n \
1076         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077       ;;
1078     esac;
1079 }
1080     echo
1081     if test -s confdefs.h; then
1082       cat <<\_ASBOX
1083 ## ----------- ##
1084 ## confdefs.h. ##
1085 ## ----------- ##
1086 _ASBOX
1087       echo
1088       sed "/^$/d" confdefs.h
1089       echo
1090     fi
1091     test "$ac_signal" != 0 &&
1092       echo "$as_me: caught signal $ac_signal"
1093     echo "$as_me: exit $exit_status"
1094   } >&5
1095   rm -f core core.* *.core &&
1096   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1097     exit $exit_status
1098      ' 0
1099 for ac_signal in 1 2 13 15; do
1100   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1101 done
1102 ac_signal=0
1103
1104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1105 rm -rf conftest* confdefs.h
1106 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1107 echo >confdefs.h
1108
1109 # Predefined preprocessor variables.
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_NAME "$PACKAGE_NAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_STRING "$PACKAGE_STRING"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1133 _ACEOF
1134
1135
1136 # Let the site file select an alternate cache file if it wants to.
1137 # Prefer explicitly selected file to automatically selected ones.
1138 if test -z "$CONFIG_SITE"; then
1139   if test "x$prefix" != xNONE; then
1140     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1141   else
1142     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1143   fi
1144 fi
1145 for ac_site_file in $CONFIG_SITE; do
1146   if test -r "$ac_site_file"; then
1147     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1148 echo "$as_me: loading site script $ac_site_file" >&6;}
1149     sed 's/^/| /' "$ac_site_file" >&5
1150     . "$ac_site_file"
1151   fi
1152 done
1153
1154 if test -r "$cache_file"; then
1155   # Some versions of bash will fail to source /dev/null (special
1156   # files actually), so we avoid doing that.
1157   if test -f "$cache_file"; then
1158     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1159 echo "$as_me: loading cache $cache_file" >&6;}
1160     case $cache_file in
1161       [\\/]* | ?:[\\/]* ) . $cache_file;;
1162       *)                      . ./$cache_file;;
1163     esac
1164   fi
1165 else
1166   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1167 echo "$as_me: creating cache $cache_file" >&6;}
1168   >$cache_file
1169 fi
1170
1171 # Check that the precious variables saved in the cache have kept the same
1172 # value.
1173 ac_cache_corrupted=false
1174 for ac_var in `(set) 2>&1 |
1175                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1176   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1177   eval ac_new_set=\$ac_env_${ac_var}_set
1178   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1179   eval ac_new_val="\$ac_env_${ac_var}_value"
1180   case $ac_old_set,$ac_new_set in
1181     set,)
1182       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1184       ac_cache_corrupted=: ;;
1185     ,set)
1186       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1188       ac_cache_corrupted=: ;;
1189     ,);;
1190     *)
1191       if test "x$ac_old_val" != "x$ac_new_val"; then
1192         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1193 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1194         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1195 echo "$as_me:   former value:  $ac_old_val" >&2;}
1196         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1197 echo "$as_me:   current value: $ac_new_val" >&2;}
1198         ac_cache_corrupted=:
1199       fi;;
1200   esac
1201   # Pass precious variables to config.status.
1202   if test "$ac_new_set" = set; then
1203     case $ac_new_val in
1204     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1206     *) ac_arg=$ac_var=$ac_new_val ;;
1207     esac
1208     case " $ac_configure_args " in
1209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1210       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1211     esac
1212   fi
1213 done
1214 if $ac_cache_corrupted; then
1215   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1216 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1217   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1218 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1219    { (exit 1); exit 1; }; }
1220 fi
1221
1222 ac_ext=c
1223 ac_cpp='$CPP $CPPFLAGS'
1224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257 ac_aux_dir=
1258 for ac_dir in config $srcdir/config; do
1259   if test -f $ac_dir/install-sh; then
1260     ac_aux_dir=$ac_dir
1261     ac_install_sh="$ac_aux_dir/install-sh -c"
1262     break
1263   elif test -f $ac_dir/install.sh; then
1264     ac_aux_dir=$ac_dir
1265     ac_install_sh="$ac_aux_dir/install.sh -c"
1266     break
1267   elif test -f $ac_dir/shtool; then
1268     ac_aux_dir=$ac_dir
1269     ac_install_sh="$ac_aux_dir/shtool install -c"
1270     break
1271   fi
1272 done
1273 if test -z "$ac_aux_dir"; then
1274   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1275 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1276    { (exit 1); exit 1; }; }
1277 fi
1278 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1279 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1280 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281
1282
1283 configure_args=$ac_configure_args
1284
1285
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define PG_VERSION "$PACKAGE_VERSION"
1289 _ACEOF
1290
1291
1292 # Make sure we can run config.sub.
1293 $ac_config_sub sun4 >/dev/null 2>&1 ||
1294   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1296    { (exit 1); exit 1; }; }
1297
1298 echo "$as_me:$LINENO: checking build system type" >&5
1299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1300 if test "${ac_cv_build+set}" = set; then
1301   echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303   ac_cv_build_alias=$build_alias
1304 test -z "$ac_cv_build_alias" &&
1305   ac_cv_build_alias=`$ac_config_guess`
1306 test -z "$ac_cv_build_alias" &&
1307   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1309    { (exit 1); exit 1; }; }
1310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1311   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1313    { (exit 1); exit 1; }; }
1314
1315 fi
1316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1317 echo "${ECHO_T}$ac_cv_build" >&6
1318 build=$ac_cv_build
1319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322
1323
1324 echo "$as_me:$LINENO: checking host system type" >&5
1325 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1326 if test "${ac_cv_host+set}" = set; then
1327   echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329   ac_cv_host_alias=$host_alias
1330 test -z "$ac_cv_host_alias" &&
1331   ac_cv_host_alias=$ac_cv_build_alias
1332 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1333   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1335    { (exit 1); exit 1; }; }
1336
1337 fi
1338 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1339 echo "${ECHO_T}$ac_cv_host" >&6
1340 host=$ac_cv_host
1341 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344
1345
1346
1347 template=
1348 echo "$as_me:$LINENO: checking which template to use" >&5
1349 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1350
1351
1352
1353
1354 # Check whether --with-template or --without-template was given.
1355 if test "${with_template+set}" = set; then
1356   withval="$with_template"
1357
1358   case $withval in
1359     yes)
1360       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362    { (exit 1); exit 1; }; }
1363       ;;
1364     no)
1365       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1366 echo "$as_me: error: argument required for --with-template option" >&2;}
1367    { (exit 1); exit 1; }; }
1368       ;;
1369     *)
1370
1371   case $withval in
1372     list)   echo; ls "$srcdir/src/template"; exit;;
1373     *)      if test -f "$srcdir/src/template/$with_template" ; then
1374               template=$withval
1375             else
1376               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1377 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1378    { (exit 1); exit 1; }; }
1379             fi;;
1380   esac
1381
1382       ;;
1383   esac
1384
1385 else
1386
1387 # --with-template not given
1388
1389 case $host_os in
1390      aix*) template=aix ;;
1391     beos*) template=beos ;;
1392     bsdi*) template=bsdi ;;
1393   cygwin*) template=cygwin ;;
1394   darwin*) template=darwin ;;
1395     dgux*) template=dgux ;;
1396  freebsd*) template=freebsd ;;
1397     hpux*) template=hpux ;;
1398     irix*) template=irix ;;
1399  linux*|gnu*|k*bsd*-gnu)
1400            template=linux ;;
1401    mingw*) template=win32 ;;
1402   netbsd*) template=netbsd ;;
1403 nextstep*) template=nextstep ;;
1404  openbsd*) template=openbsd ;;
1405      osf*) template=osf ;;
1406      qnx*) template=qnx4 ;;
1407      sco*) template=sco ;;
1408  solaris*) template=solaris ;;
1409    sunos*) template=sunos4 ;;
1410  sysv4.2*)
1411         case $host_vendor in
1412           univel) template=univel ;;
1413         esac ;;
1414    sysv4*) template=svr4 ;;
1415    sysv5*) template=unixware ;;
1416   ultrix*) template=ultrix4 ;;
1417 esac
1418
1419   if test x"$template" = x"" ; then
1420     { { echo "$as_me:$LINENO: error:
1421 *******************************************************************
1422 PostgreSQL has apparently not been ported to your platform yet.
1423 To try a manual configuration, look into the src/template directory
1424 for a similar platform and use the '--with-template=' option.
1425
1426 Please also contact <pgsql-ports@postgresql.org> to see about
1427 rectifying this.  Include the above 'checking host system type...'
1428 line.
1429 *******************************************************************
1430 " >&5
1431 echo "$as_me: error:
1432 *******************************************************************
1433 PostgreSQL has apparently not been ported to your platform yet.
1434 To try a manual configuration, look into the src/template directory
1435 for a similar platform and use the '--with-template=' option.
1436
1437 Please also contact <pgsql-ports@postgresql.org> to see about
1438 rectifying this.  Include the above 'checking host system type...'
1439 line.
1440 *******************************************************************
1441 " >&2;}
1442    { (exit 1); exit 1; }; }
1443   fi
1444
1445
1446 fi;
1447
1448
1449 echo "$as_me:$LINENO: result: $template" >&5
1450 echo "${ECHO_T}$template" >&6
1451
1452 PORTNAME=$template
1453
1454
1455 # Initialize default assumption that we do not need separate assembly code
1456 # for TAS (test-and-set).  This can be overridden by the template file
1457 # when it's executed.
1458 need_tas=no
1459 tas_file=dummy.s
1460
1461
1462
1463 ##
1464 ## Command line options
1465 ##
1466
1467 #
1468 # Installation directory for documentation
1469 #
1470
1471
1472
1473 # Check whether --with-docdir or --without-docdir was given.
1474 if test "${with_docdir+set}" = set; then
1475   withval="$with_docdir"
1476
1477   case $withval in
1478     yes)
1479       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1480 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1481    { (exit 1); exit 1; }; }
1482       ;;
1483     no)
1484       docdir=
1485       ;;
1486     *)
1487       docdir=$withval
1488       ;;
1489   esac
1490
1491 else
1492   docdir='${prefix}/doc'
1493 fi;
1494
1495
1496
1497
1498 #
1499 # Add non-standard directories to the include path
1500 #
1501
1502
1503
1504 # Check whether --with-includes or --without-includes was given.
1505 if test "${with_includes+set}" = set; then
1506   withval="$with_includes"
1507
1508   case $withval in
1509     yes)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     no)
1515       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1516 echo "$as_me: error: argument required for --with-includes option" >&2;}
1517    { (exit 1); exit 1; }; }
1518       ;;
1519     *)
1520
1521       ;;
1522   esac
1523
1524 fi;
1525
1526
1527
1528 #
1529 # Add non-standard directories to the library search path
1530 #
1531
1532
1533
1534 # Check whether --with-libraries or --without-libraries was given.
1535 if test "${with_libraries+set}" = set; then
1536   withval="$with_libraries"
1537
1538   case $withval in
1539     yes)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     no)
1545       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1546 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1547    { (exit 1); exit 1; }; }
1548       ;;
1549     *)
1550       LIBRARY_DIRS=$withval
1551       ;;
1552   esac
1553
1554 fi;
1555
1556
1557
1558
1559
1560 # Check whether --with-libs or --without-libs was given.
1561 if test "${with_libs+set}" = set; then
1562   withval="$with_libs"
1563
1564   case $withval in
1565     yes)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     no)
1571       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1572 echo "$as_me: error: argument required for --with-libs option" >&2;}
1573    { (exit 1); exit 1; }; }
1574       ;;
1575     *)
1576       LIBRARY_DIRS=$withval
1577       ;;
1578   esac
1579
1580 fi;
1581
1582
1583
1584 #
1585 # 64-bit integer date/time storage (--enable-integer-datetimes)
1586 #
1587 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1588 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1589
1590
1591 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1592 if test "${enable_integer_datetimes+set}" = set; then
1593   enableval="$enable_integer_datetimes"
1594
1595   case $enableval in
1596     yes)
1597
1598 cat >>confdefs.h <<\_ACEOF
1599 #define USE_INTEGER_DATETIMES 1
1600 _ACEOF
1601
1602       ;;
1603     no)
1604       :
1605       ;;
1606     *)
1607       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1608 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1609    { (exit 1); exit 1; }; }
1610       ;;
1611   esac
1612
1613 else
1614   enable_integer_datetimes=no
1615
1616 fi;
1617
1618 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1619 echo "${ECHO_T}$enable_integer_datetimes" >&6
1620
1621
1622 #
1623 # NLS
1624 #
1625 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1626 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1627
1628
1629 # Check whether --enable-nls or --disable-nls was given.
1630 if test "${enable_nls+set}" = set; then
1631   enableval="$enable_nls"
1632
1633   case $enableval in
1634     yes)
1635       :
1636       ;;
1637     no)
1638       :
1639       ;;
1640     *)
1641       enable_nls=yes
1642 WANTED_LANGUAGES=$enableval
1643       ;;
1644   esac
1645
1646 else
1647   enable_nls=no
1648 fi;
1649
1650
1651 if test "$enable_nls" = yes; then
1652
1653 cat >>confdefs.h <<\_ACEOF
1654 #define ENABLE_NLS 1
1655 _ACEOF
1656
1657 fi
1658
1659 echo "$as_me:$LINENO: result: $enable_nls" >&5
1660 echo "${ECHO_T}$enable_nls" >&6
1661
1662
1663
1664 #
1665 # Default port number (--with-pgport), default 5432
1666 #
1667 echo "$as_me:$LINENO: checking for default port number" >&5
1668 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1669
1670
1671
1672 # Check whether --with-pgport or --without-pgport was given.
1673 if test "${with_pgport+set}" = set; then
1674   withval="$with_pgport"
1675
1676   case $withval in
1677     yes)
1678       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680    { (exit 1); exit 1; }; }
1681       ;;
1682     no)
1683       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1684 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1685    { (exit 1); exit 1; }; }
1686       ;;
1687     *)
1688       default_port=$withval
1689       ;;
1690   esac
1691
1692 else
1693   default_port=5432
1694 fi;
1695
1696 echo "$as_me:$LINENO: result: $default_port" >&5
1697 echo "${ECHO_T}$default_port" >&6
1698 # Need both of these because some places want an integer and some a string
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT ${default_port}
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEF_PGPORT_STR "${default_port}"
1707 _ACEOF
1708
1709
1710
1711 #
1712 # Option to disable shared libraries
1713 #
1714
1715
1716 # Check whether --enable-shared or --disable-shared was given.
1717 if test "${enable_shared+set}" = set; then
1718   enableval="$enable_shared"
1719
1720   case $enableval in
1721     yes)
1722       :
1723       ;;
1724     no)
1725       :
1726       ;;
1727     *)
1728       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1729 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1730    { (exit 1); exit 1; }; }
1731       ;;
1732   esac
1733
1734 else
1735   enable_shared=yes
1736
1737 fi;
1738
1739
1740
1741 #
1742 # '-rpath'-like feature can be disabled
1743 #
1744
1745
1746 # Check whether --enable-rpath or --disable-rpath was given.
1747 if test "${enable_rpath+set}" = set; then
1748   enableval="$enable_rpath"
1749
1750   case $enableval in
1751     yes)
1752       :
1753       ;;
1754     no)
1755       :
1756       ;;
1757     *)
1758       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1759 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1760    { (exit 1); exit 1; }; }
1761       ;;
1762   esac
1763
1764 else
1765   enable_rpath=yes
1766
1767 fi;
1768
1769
1770
1771 #
1772 # Spinlocks
1773 #
1774
1775
1776 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1777 if test "${enable_spinlocks+set}" = set; then
1778   enableval="$enable_spinlocks"
1779
1780   case $enableval in
1781     yes)
1782       :
1783       ;;
1784     no)
1785       :
1786       ;;
1787     *)
1788       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1789 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1790    { (exit 1); exit 1; }; }
1791       ;;
1792   esac
1793
1794 else
1795   enable_spinlocks=yes
1796
1797 fi;
1798
1799
1800 #
1801 # --enable-debug adds -g to compiler flags
1802 #
1803
1804
1805 # Check whether --enable-debug or --disable-debug was given.
1806 if test "${enable_debug+set}" = set; then
1807   enableval="$enable_debug"
1808
1809   case $enableval in
1810     yes)
1811       :
1812       ;;
1813     no)
1814       :
1815       ;;
1816     *)
1817       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1818 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1819    { (exit 1); exit 1; }; }
1820       ;;
1821   esac
1822
1823 else
1824   enable_debug=no
1825
1826 fi;
1827
1828
1829
1830 #
1831 # C compiler
1832 #
1833
1834 # For historical reasons you can also use --with-CC to specify the C compiler
1835 # to use, although the standard way to do this is to set the CC environment
1836 # variable.
1837
1838
1839
1840 # Check whether --with-CC or --without-CC was given.
1841 if test "${with_CC+set}" = set; then
1842   withval="$with_CC"
1843
1844   case $withval in
1845     yes)
1846       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848    { (exit 1); exit 1; }; }
1849       ;;
1850     no)
1851       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1852 echo "$as_me: error: argument required for --with-CC option" >&2;}
1853    { (exit 1); exit 1; }; }
1854       ;;
1855     *)
1856       CC=$with_CC
1857       ;;
1858   esac
1859
1860 fi;
1861
1862
1863 case $template in
1864   aix) pgac_cc_list="gcc xlc";;
1865  irix) pgac_cc_list="cc";; # no gcc
1866     *) pgac_cc_list="gcc cc";;
1867 esac
1868
1869 ac_ext=c
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 if test -n "$ac_tool_prefix"; then
1875   for ac_prog in $pgac_cc_list
1876   do
1877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$CC"; then
1885   ac_cv_prog_CC="$CC" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 CC=$ac_cv_prog_CC
1904 if test -n "$CC"; then
1905   echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912     test -n "$CC" && break
1913   done
1914 fi
1915 if test -z "$CC"; then
1916   ac_ct_CC=$CC
1917   for ac_prog in $pgac_cc_list
1918 do
1919   # Extract the first word of "$ac_prog", so it can be a program name with args.
1920 set dummy $ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="$ac_prog"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   test -n "$ac_ct_CC" && break
1955 done
1956
1957   CC=$ac_ct_CC
1958 fi
1959
1960
1961 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1963    { (exit 1); exit 1; }; }
1964
1965 # Provide some information about the compiler.
1966 echo "$as_me:$LINENO:" \
1967      "checking for C compiler version" >&5
1968 ac_compiler=`set X $ac_compile; echo $2`
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1970   (eval $ac_compiler --version </dev/null >&5) 2>&5
1971   ac_status=$?
1972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973   (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1975   (eval $ac_compiler -v </dev/null >&5) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1980   (eval $ac_compiler -V </dev/null >&5) 2>&5
1981   ac_status=$?
1982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983   (exit $ac_status); }
1984
1985 cat >conftest.$ac_ext <<_ACEOF
1986 #line $LINENO "configure"
1987 #include "confdefs.h"
1988
1989 #ifdef F77_DUMMY_MAIN
1990 #  ifdef __cplusplus
1991      extern "C"
1992 #  endif
1993    int F77_DUMMY_MAIN() { return 1; }
1994 #endif
1995 int
1996 main ()
1997 {
1998
1999   ;
2000   return 0;
2001 }
2002 _ACEOF
2003 ac_clean_files_save=$ac_clean_files
2004 ac_clean_files="$ac_clean_files a.out a.exe"
2005 # Try to create an executable without -o first, disregard a.out.
2006 # It will help us diagnose broken compilers, and finding out an intuition
2007 # of exeext.
2008 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2009 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2010 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012   (eval $ac_link_default) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; then
2016   # Find the output, starting from the most likely.  This scheme is
2017 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2018 # resort.
2019
2020 # Be careful to initialize this variable, since it used to be cached.
2021 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022 ac_cv_exeext=
2023 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2024                 ls a.out conftest 2>/dev/null;
2025                 ls a.* conftest.* 2>/dev/null`; do
2026   case $ac_file in
2027     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2028     a.out ) # We found the default executable, but exeext='' is most
2029             # certainly right.
2030             break;;
2031     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2033           export ac_cv_exeext
2034           break;;
2035     * ) break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2042 echo "$as_me: error: C compiler cannot create executables" >&2;}
2043    { (exit 77); exit 77; }; }
2044 fi
2045
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2049
2050 # Check the compiler produces executables we can run.  If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057   if { ac_try='./$ac_file'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; }; then
2063     cross_compiling=no
2064   else
2065     if test "$cross_compiling" = maybe; then
2066         cross_compiling=yes
2067     else
2068         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'." >&2;}
2072    { (exit 1); exit 1; }; }
2073     fi
2074   fi
2075 fi
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2078
2079 rm -f a.out a.exe conftest$ac_cv_exeext
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run.  If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2087
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091   (eval $ac_link) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; then
2095   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 # `rm'.
2099 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2100   case $ac_file in
2101     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103           export ac_cv_exeext
2104           break;;
2105     * ) break;;
2106   esac
2107 done
2108 else
2109   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2117
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2120 ac_exeext=$EXEEXT
2121 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123 if test "${ac_cv_objext+set}" = set; then
2124   echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126   cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2129
2130 #ifdef F77_DUMMY_MAIN
2131 #  ifdef __cplusplus
2132      extern "C"
2133 #  endif
2134    int F77_DUMMY_MAIN() { return 1; }
2135 #endif
2136 int
2137 main ()
2138 {
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 rm -f conftest.o conftest.obj
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146   (eval $ac_compile) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; then
2150   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2151   case $ac_file in
2152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2153     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154        break;;
2155   esac
2156 done
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2161 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2162    { (exit 1); exit 1; }; }
2163 fi
2164
2165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 fi
2167 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168 echo "${ECHO_T}$ac_cv_objext" >&6
2169 OBJEXT=$ac_cv_objext
2170 ac_objext=$OBJEXT
2171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 #include "confdefs.h"
2179
2180 #ifdef F77_DUMMY_MAIN
2181 #  ifdef __cplusplus
2182      extern "C"
2183 #  endif
2184    int F77_DUMMY_MAIN() { return 1; }
2185 #endif
2186 int
2187 main ()
2188 {
2189 #ifndef __GNUC__
2190        choke me
2191 #endif
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_compiler_gnu=yes
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 ac_compiler_gnu=no
2214 fi
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2217
2218 fi
2219 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2221 GCC=`test $ac_compiler_gnu = yes && echo yes`
2222 ac_test_CFLAGS=${CFLAGS+set}
2223 ac_save_CFLAGS=$CFLAGS
2224 CFLAGS="-g"
2225 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2226 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2227 if test "${ac_cv_prog_cc_g+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2233
2234 #ifdef F77_DUMMY_MAIN
2235 #  ifdef __cplusplus
2236      extern "C"
2237 #  endif
2238    int F77_DUMMY_MAIN() { return 1; }
2239 #endif
2240 int
2241 main ()
2242 {
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); } &&
2254          { ac_try='test -s conftest.$ac_objext'
2255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256   (eval $ac_try) 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; }; then
2260   ac_cv_prog_cc_g=yes
2261 else
2262   echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 ac_cv_prog_cc_g=no
2265 fi
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271   CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273   if test "$GCC" = yes; then
2274     CFLAGS="-g -O2"
2275   else
2276     CFLAGS="-g"
2277   fi
2278 else
2279   if test "$GCC" = yes; then
2280     CFLAGS="-O2"
2281   else
2282     CFLAGS=
2283   fi
2284 fi
2285 # Some people use a C++ compiler to compile C.  Since we use `exit',
2286 # in C++ we need to declare it.  In case someone uses the same compiler
2287 # for both compiling C and C++ we need to have the C++ compiler decide
2288 # the declaration of exit, since it's the most demanding environment.
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #ifndef __cplusplus
2291   choke me
2292 #endif
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   for ac_declaration in \
2307    ''\
2308    '#include <stdlib.h>' \
2309    'extern "C" void std::exit (int) throw (); using std::exit;' \
2310    'extern "C" void std::exit (int); using std::exit;' \
2311    'extern "C" void exit (int) throw ();' \
2312    'extern "C" void exit (int);' \
2313    'void exit (int);'
2314 do
2315   cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2318 #include <stdlib.h>
2319 $ac_declaration
2320 #ifdef F77_DUMMY_MAIN
2321 #  ifdef __cplusplus
2322      extern "C"
2323 #  endif
2324    int F77_DUMMY_MAIN() { return 1; }
2325 #endif
2326 int
2327 main ()
2328 {
2329 exit (42);
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336   (eval $ac_compile) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); } &&
2340          { ac_try='test -s conftest.$ac_objext'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; }; then
2346   :
2347 else
2348   echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 continue
2351 fi
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353   cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 #include "confdefs.h"
2356 $ac_declaration
2357 #ifdef F77_DUMMY_MAIN
2358 #  ifdef __cplusplus
2359      extern "C"
2360 #  endif
2361    int F77_DUMMY_MAIN() { return 1; }
2362 #endif
2363 int
2364 main ()
2365 {
2366 exit (42);
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373   (eval $ac_compile) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -s conftest.$ac_objext'
2378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379   (eval $ac_try) 2>&5
2380   ac_status=$?
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); }; }; then
2383   break
2384 else
2385   echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 fi
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2389 done
2390 rm -f conftest*
2391 if test -n "$ac_declaration"; then
2392   echo '#ifdef __cplusplus' >>confdefs.h
2393   echo $ac_declaration      >>confdefs.h
2394   echo '#endif'             >>confdefs.h
2395 fi
2396
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2400 fi
2401 rm -f conftest.$ac_objext conftest.$ac_ext
2402 ac_ext=c
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407
2408
2409 unset CFLAGS
2410
2411 #
2412 # Read the template
2413 #
2414 . "$srcdir/src/template/$template" || exit
2415
2416 # CFLAGS are selected so:
2417 # If the user specifies something in the environment, that is used.
2418 # else:  If the template file set something, that is used.
2419 # else:  If the compiler is GCC, then we use -O2.
2420 # else:  If the compiler is something else, then we use -0.
2421
2422 if test "$ac_env_CFLAGS_set" = set; then
2423   CFLAGS=$ac_env_CFLAGS_value
2424 elif test "${CFLAGS+set}" = set; then
2425   : # (keep what template set)
2426 elif test "$GCC" = yes; then
2427   CFLAGS="-O2"
2428 else
2429   # if the user selected debug mode, don't use -O
2430   if test "$enable_debug" != yes; then
2431     CFLAGS="-O"
2432   fi
2433 fi
2434
2435 if test "$GCC" = yes; then
2436   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2437
2438   # Some versions of GCC support some additional useful warning flags.
2439   # Check whether they are supported, and add them to CFLAGS if so.
2440   echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2441 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2442 pgac_save_CFLAGS=$CFLAGS
2443 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2447
2448 #ifdef F77_DUMMY_MAIN
2449 #  ifdef __cplusplus
2450      extern "C"
2451 #  endif
2452    int F77_DUMMY_MAIN() { return 1; }
2453 #endif
2454 int
2455 main ()
2456 {
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464   (eval $ac_compile) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 CFLAGS="$pgac_save_CFLAGS"
2480                     echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2482 fi
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484
2485   echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2486 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2487 pgac_save_CFLAGS=$CFLAGS
2488 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2492
2493 #ifdef F77_DUMMY_MAIN
2494 #  ifdef __cplusplus
2495      extern "C"
2496 #  endif
2497    int F77_DUMMY_MAIN() { return 1; }
2498 #endif
2499 int
2500 main ()
2501 {
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 CFLAGS="$pgac_save_CFLAGS"
2525                     echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2529
2530   echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2531 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2532 pgac_save_CFLAGS=$CFLAGS
2533 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 #include "confdefs.h"
2537
2538 #ifdef F77_DUMMY_MAIN
2539 #  ifdef __cplusplus
2540      extern "C"
2541 #  endif
2542    int F77_DUMMY_MAIN() { return 1; }
2543 #endif
2544 int
2545 main ()
2546 {
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 CFLAGS="$pgac_save_CFLAGS"
2570                     echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573 rm -f conftest.$ac_objext conftest.$ac_ext
2574
2575
2576   # Disable strict-aliasing rules; needed for gcc 3.3+
2577   echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2578 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2579 pgac_save_CFLAGS=$CFLAGS
2580 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2584
2585 #ifdef F77_DUMMY_MAIN
2586 #  ifdef __cplusplus
2587      extern "C"
2588 #  endif
2589    int F77_DUMMY_MAIN() { return 1; }
2590 #endif
2591 int
2592 main ()
2593 {
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 CFLAGS="$pgac_save_CFLAGS"
2617                     echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621
2622 fi
2623
2624 # supply -g if --enable-debug
2625 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2626   CFLAGS="$CFLAGS -g"
2627 fi
2628
2629 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2630 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2631
2632 # We already have this in Makefile.win32, but configure needs it too
2633 if test "$PORTNAME" = "win32"; then
2634   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2635 fi
2636
2637 # Check if the compiler still works with the template settings
2638 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2639 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2640
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644
2645 #ifdef F77_DUMMY_MAIN
2646 #  ifdef __cplusplus
2647      extern "C"
2648 #  endif
2649    int F77_DUMMY_MAIN() { return 1; }
2650 #endif
2651 int
2652 main ()
2653 {
2654 return 0;
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661   (eval $ac_link) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -s conftest$ac_exeext'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; }; then
2671   echo "$as_me:$LINENO: result: yes" >&5
2672 echo "${ECHO_T}yes" >&6
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2678    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2679 echo "$as_me: error: cannot proceed" >&2;}
2680    { (exit 1); exit 1; }; }
2681 fi
2682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2683
2684 # Defend against gcc -ffast-math
2685 if test "$GCC" = yes; then
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2689
2690 #ifdef F77_DUMMY_MAIN
2691 #  ifdef __cplusplus
2692      extern "C"
2693 #  endif
2694    int F77_DUMMY_MAIN() { return 1; }
2695 #endif
2696 int
2697 main ()
2698 {
2699 #ifdef __FAST_MATH__
2700 choke me
2701 #endif
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   :
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2723 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2724    { (exit 1); exit 1; }; }
2725 fi
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2727 fi
2728
2729 ac_ext=c
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2736 # On Suns, sometimes $CPP names a directory.
2737 if test -n "$CPP" && test -d "$CPP"; then
2738   CPP=
2739 fi
2740 if test -z "$CPP"; then
2741   if test "${ac_cv_prog_CPP+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744       # Double quotes because CPP needs to be expanded
2745     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2746     do
2747       ac_preproc_ok=false
2748 for ac_c_preproc_warn_flag in '' yes
2749 do
2750   # Use a header file that comes with gcc, so configuring glibc
2751   # with a fresh cross-compiler works.
2752   # On the NeXT, cc -E runs the code through the compiler's parser,
2753   # not just through cpp. "Syntax error" is here to catch this case.
2754   cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2757 #include <assert.h>
2758                      Syntax error
2759 _ACEOF
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2762   ac_status=$?
2763   egrep -v '^ *\+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } >/dev/null; then
2768   if test -s conftest.err; then
2769     ac_cpp_err=$ac_c_preproc_warn_flag
2770   else
2771     ac_cpp_err=
2772   fi
2773 else
2774   ac_cpp_err=yes
2775 fi
2776 if test -z "$ac_cpp_err"; then
2777   :
2778 else
2779   echo "$as_me: failed program was:" >&5
2780   cat conftest.$ac_ext >&5
2781   # Broken: fails on valid input.
2782 continue
2783 fi
2784 rm -f conftest.err conftest.$ac_ext
2785
2786   # OK, works on sane cases.  Now check whether non-existent headers
2787   # can be detected and how.
2788   cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 #include "confdefs.h"
2791 #include <ac_nonexistent.h>
2792 _ACEOF
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795   ac_status=$?
2796   egrep -v '^ *\+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } >/dev/null; then
2801   if test -s conftest.err; then
2802     ac_cpp_err=$ac_c_preproc_warn_flag
2803   else
2804     ac_cpp_err=
2805   fi
2806 else
2807   ac_cpp_err=yes
2808 fi
2809 if test -z "$ac_cpp_err"; then
2810   # Broken: success on invalid input.
2811 continue
2812 else
2813   echo "$as_me: failed program was:" >&5
2814   cat conftest.$ac_ext >&5
2815   # Passes both tests.
2816 ac_preproc_ok=:
2817 break
2818 fi
2819 rm -f conftest.err conftest.$ac_ext
2820
2821 done
2822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2823 rm -f conftest.err conftest.$ac_ext
2824 if $ac_preproc_ok; then
2825   break
2826 fi
2827
2828     done
2829     ac_cv_prog_CPP=$CPP
2830
2831 fi
2832   CPP=$ac_cv_prog_CPP
2833 else
2834   ac_cv_prog_CPP=$CPP
2835 fi
2836 echo "$as_me:$LINENO: result: $CPP" >&5
2837 echo "${ECHO_T}$CPP" >&6
2838 ac_preproc_ok=false
2839 for ac_c_preproc_warn_flag in '' yes
2840 do
2841   # Use a header file that comes with gcc, so configuring glibc
2842   # with a fresh cross-compiler works.
2843   # On the NeXT, cc -E runs the code through the compiler's parser,
2844   # not just through cpp. "Syntax error" is here to catch this case.
2845   cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 #include "confdefs.h"
2848 #include <assert.h>
2849                      Syntax error
2850 _ACEOF
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853   ac_status=$?
2854   egrep -v '^ *\+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } >/dev/null; then
2859   if test -s conftest.err; then
2860     ac_cpp_err=$ac_c_preproc_warn_flag
2861   else
2862     ac_cpp_err=
2863   fi
2864 else
2865   ac_cpp_err=yes
2866 fi
2867 if test -z "$ac_cpp_err"; then
2868   :
2869 else
2870   echo "$as_me: failed program was:" >&5
2871   cat conftest.$ac_ext >&5
2872   # Broken: fails on valid input.
2873 continue
2874 fi
2875 rm -f conftest.err conftest.$ac_ext
2876
2877   # OK, works on sane cases.  Now check whether non-existent headers
2878   # can be detected and how.
2879   cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 #include "confdefs.h"
2882 #include <ac_nonexistent.h>
2883 _ACEOF
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2886   ac_status=$?
2887   egrep -v '^ *\+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } >/dev/null; then
2892   if test -s conftest.err; then
2893     ac_cpp_err=$ac_c_preproc_warn_flag
2894   else
2895     ac_cpp_err=
2896   fi
2897 else
2898   ac_cpp_err=yes
2899 fi
2900 if test -z "$ac_cpp_err"; then
2901   # Broken: success on invalid input.
2902 continue
2903 else
2904   echo "$as_me: failed program was:" >&5
2905   cat conftest.$ac_ext >&5
2906   # Passes both tests.
2907 ac_preproc_ok=:
2908 break
2909 fi
2910 rm -f conftest.err conftest.$ac_ext
2911
2912 done
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2916   :
2917 else
2918   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2920    { (exit 1); exit 1; }; }
2921 fi
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929
2930
2931 # Create compiler version string
2932 if test x"$GCC" = x"yes" ; then
2933   cc_string="GCC `${CC} --version | sed q`"
2934 else
2935   cc_string=$CC
2936 fi
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2940 _ACEOF
2941
2942
2943
2944 #
2945 # Set up TAS assembly code if needed; the template file has now had its
2946 # chance to request this.
2947 #
2948 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2949
2950
2951 if test "$need_tas" = yes ; then
2952   TAS=tas.o
2953 else
2954   TAS=""
2955 fi
2956
2957
2958
2959 #
2960 # Automatic dependency tracking
2961 #
2962
2963
2964 # Check whether --enable-depend or --disable-depend was given.
2965 if test "${enable_depend+set}" = set; then
2966   enableval="$enable_depend"
2967
2968   case $enableval in
2969     yes)
2970       autodepend=yes
2971       ;;
2972     no)
2973       :
2974       ;;
2975     *)
2976       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2977 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2978    { (exit 1); exit 1; }; }
2979       ;;
2980   esac
2981
2982 else
2983   enable_depend=no
2984
2985 fi;
2986
2987
2988
2989
2990 #
2991 # Enable assert checks
2992 #
2993
2994
2995 # Check whether --enable-cassert or --disable-cassert was given.
2996 if test "${enable_cassert+set}" = set; then
2997   enableval="$enable_cassert"
2998
2999   case $enableval in
3000     yes)
3001
3002 cat >>confdefs.h <<\_ACEOF
3003 #define USE_ASSERT_CHECKING 1
3004 _ACEOF
3005
3006       ;;
3007     no)
3008       :
3009       ;;
3010     *)
3011       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3012 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3013    { (exit 1); exit 1; }; }
3014       ;;
3015   esac
3016
3017 else
3018   enable_cassert=no
3019
3020 fi;
3021
3022
3023
3024 #
3025 # Include directories
3026 #
3027 ac_save_IFS=$IFS
3028 IFS="${IFS}${PATH_SEPARATOR}"
3029 # SRCH_INC comes from the template file
3030 for dir in $with_includes $SRCH_INC; do
3031   if test -d "$dir"; then
3032     INCLUDES="$INCLUDES -I$dir"
3033   else
3034     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3035 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3036   fi
3037 done
3038 IFS=$ac_save_IFS
3039
3040
3041
3042 #
3043 # Library directories
3044 #
3045 ac_save_IFS=$IFS
3046 IFS="${IFS}${PATH_SEPARATOR}"
3047 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3048 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3049   if test -d "$dir"; then
3050     LIBDIRS="$LIBDIRS -L$dir"
3051   else
3052     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3053 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3054   fi
3055 done
3056 IFS=$ac_save_IFS
3057
3058 #
3059 # Enable thread-safe client libraries
3060 #
3061 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3062 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3063
3064
3065 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3066 if test "${enable_thread_safety+set}" = set; then
3067   enableval="$enable_thread_safety"
3068
3069   case $enableval in
3070     yes)
3071       :
3072       ;;
3073     no)
3074       :
3075       ;;
3076     *)
3077       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3078 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3079    { (exit 1); exit 1; }; }
3080       ;;
3081   esac
3082
3083 else
3084   enable_thread_safety=no
3085
3086 fi;
3087
3088
3089
3090 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3091 if test "${enable_thread_safety_force+set}" = set; then
3092   enableval="$enable_thread_safety_force"
3093
3094   case $enableval in
3095     yes)
3096       :
3097       ;;
3098     no)
3099       :
3100       ;;
3101     *)
3102       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3103 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3104    { (exit 1); exit 1; }; }
3105       ;;
3106   esac
3107
3108 else
3109   enable_thread_safety_force=no
3110
3111 fi;
3112
3113 if test "$enable_thread_safety" = yes -o \
3114         "$enable_thread_safety_force" = yes; then
3115   enable_thread_safety="yes"    # for 'force'
3116
3117 cat >>confdefs.h <<\_ACEOF
3118 #define ENABLE_THREAD_SAFETY 1
3119 _ACEOF
3120
3121 fi
3122 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3123 echo "${ECHO_T}$enable_thread_safety" >&6
3124
3125
3126 #
3127 # Optionally build Tcl modules (PL/Tcl)
3128 #
3129 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3130 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3131
3132
3133
3134 # Check whether --with-tcl or --without-tcl was given.
3135 if test "${with_tcl+set}" = set; then
3136   withval="$with_tcl"
3137
3138   case $withval in
3139     yes)
3140       :
3141       ;;
3142     no)
3143       :
3144       ;;
3145     *)
3146       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3147 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3148    { (exit 1); exit 1; }; }
3149       ;;
3150   esac
3151
3152 else
3153   with_tcl=no
3154
3155 fi;
3156
3157 echo "$as_me:$LINENO: result: $with_tcl" >&5
3158 echo "${ECHO_T}$with_tcl" >&6
3159
3160
3161 # We see if the path to the Tcl/Tk configuration scripts is specified.
3162 # This will override the use of tclsh to find the paths to search.
3163
3164
3165
3166
3167 # Check whether --with-tclconfig or --without-tclconfig was given.
3168 if test "${with_tclconfig+set}" = set; then
3169   withval="$with_tclconfig"
3170
3171   case $withval in
3172     yes)
3173       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3174 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3175    { (exit 1); exit 1; }; }
3176       ;;
3177     no)
3178       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3179 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3180    { (exit 1); exit 1; }; }
3181       ;;
3182     *)
3183
3184       ;;
3185   esac
3186
3187 fi;
3188
3189
3190 #
3191 # Optionally build Perl modules (PL/Perl)
3192 #
3193 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3194 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3195
3196
3197
3198 # Check whether --with-perl or --without-perl was given.
3199 if test "${with_perl+set}" = set; then
3200   withval="$with_perl"
3201
3202   case $withval in
3203     yes)
3204       :
3205       ;;
3206     no)
3207       :
3208       ;;
3209     *)
3210       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3211 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3212    { (exit 1); exit 1; }; }
3213       ;;
3214   esac
3215
3216 else
3217   with_perl=no
3218
3219 fi;
3220
3221 echo "$as_me:$LINENO: result: $with_perl" >&5
3222 echo "${ECHO_T}$with_perl" >&6
3223
3224
3225 #
3226 # Optionally build Python modules (PL/Python)
3227 #
3228 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3229 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3230
3231
3232
3233 # Check whether --with-python or --without-python was given.
3234 if test "${with_python+set}" = set; then
3235   withval="$with_python"
3236
3237   case $withval in
3238     yes)
3239       :
3240       ;;
3241     no)
3242       :
3243       ;;
3244     *)
3245       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3246 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3247    { (exit 1); exit 1; }; }
3248       ;;
3249   esac
3250
3251 else
3252   with_python=no
3253
3254 fi;
3255
3256 echo "$as_me:$LINENO: result: $with_python" >&5
3257 echo "${ECHO_T}$with_python" >&6
3258
3259
3260 #
3261 # Kerberos 4
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb4 or --without-krb4 was given.
3269 if test "${with_krb4+set}" = set; then
3270   withval="$with_krb4"
3271
3272   case $withval in
3273     yes)
3274
3275
3276 cat >>confdefs.h <<\_ACEOF
3277 #define KRB4 1
3278 _ACEOF
3279
3280   krb_srvtab="/etc/srvtab"
3281
3282       ;;
3283     no)
3284       :
3285       ;;
3286     *)
3287       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3288 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3289    { (exit 1); exit 1; }; }
3290       ;;
3291   esac
3292
3293 else
3294   with_krb4=no
3295
3296 fi;
3297
3298 echo "$as_me:$LINENO: result: $with_krb4" >&5
3299 echo "${ECHO_T}$with_krb4" >&6
3300
3301
3302
3303 #
3304 # Kerberos 5
3305 #
3306 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3307 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3308
3309
3310
3311 # Check whether --with-krb5 or --without-krb5 was given.
3312 if test "${with_krb5+set}" = set; then
3313   withval="$with_krb5"
3314
3315   case $withval in
3316     yes)
3317
3318
3319 cat >>confdefs.h <<\_ACEOF
3320 #define KRB5 1
3321 _ACEOF
3322
3323   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3324
3325       ;;
3326     no)
3327       :
3328       ;;
3329     *)
3330       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3331 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3332    { (exit 1); exit 1; }; }
3333       ;;
3334   esac
3335
3336 else
3337   with_krb5=no
3338
3339 fi;
3340
3341 echo "$as_me:$LINENO: result: $with_krb5" >&5
3342 echo "${ECHO_T}$with_krb5" >&6
3343
3344
3345
3346 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3347 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3348   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3349 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3350    { (exit 1); exit 1; }; }
3351 fi
3352
3353
3354
3355
3356 #
3357 # Kerberos configuration parameters
3358 #
3359
3360
3361
3362 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3363 if test "${with_krb_srvnam+set}" = set; then
3364   withval="$with_krb_srvnam"
3365
3366   case $withval in
3367     yes)
3368       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3369 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3370    { (exit 1); exit 1; }; }
3371       ;;
3372     no)
3373       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3374 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3375    { (exit 1); exit 1; }; }
3376       ;;
3377     *)
3378
3379       ;;
3380   esac
3381
3382 else
3383   with_krb_srvnam="postgres"
3384 fi;
3385
3386
3387 cat >>confdefs.h <<_ACEOF
3388 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3389 _ACEOF
3390
3391
3392
3393 #
3394 # PAM
3395 #
3396 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3397 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3398
3399
3400
3401 # Check whether --with-pam or --without-pam was given.
3402 if test "${with_pam+set}" = set; then
3403   withval="$with_pam"
3404
3405   case $withval in
3406     yes)
3407
3408 cat >>confdefs.h <<\_ACEOF
3409 #define USE_PAM 1
3410 _ACEOF
3411
3412       ;;
3413     no)
3414       :
3415       ;;
3416     *)
3417       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3418 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3419    { (exit 1); exit 1; }; }
3420       ;;
3421   esac
3422
3423 else
3424   with_pam=no
3425
3426 fi;
3427
3428 echo "$as_me:$LINENO: result: $with_pam" >&5
3429 echo "${ECHO_T}$with_pam" >&6
3430
3431
3432
3433 #
3434 # Rendezvous
3435 #
3436 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3437 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3438
3439
3440
3441 # Check whether --with-rendezvous or --without-rendezvous was given.
3442 if test "${with_rendezvous+set}" = set; then
3443   withval="$with_rendezvous"
3444
3445   case $withval in
3446     yes)
3447
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_RENDEZVOUS 1
3450 _ACEOF
3451
3452       ;;
3453     no)
3454       :
3455       ;;
3456     *)
3457       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3458 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3459    { (exit 1); exit 1; }; }
3460       ;;
3461   esac
3462
3463 else
3464   with_rendezvous=no
3465
3466 fi;
3467
3468 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3469 echo "${ECHO_T}$with_rendezvous" >&6
3470
3471
3472
3473 #
3474 # OpenSSL
3475 #
3476 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3477 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3478
3479
3480
3481 # Check whether --with-openssl or --without-openssl was given.
3482 if test "${with_openssl+set}" = set; then
3483   withval="$with_openssl"
3484
3485   case $withval in
3486     yes)
3487
3488 cat >>confdefs.h <<\_ACEOF
3489 #define USE_SSL 1
3490 _ACEOF
3491
3492       ;;
3493     no)
3494       :
3495       ;;
3496     *)
3497       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3498 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3499    { (exit 1); exit 1; }; }
3500       ;;
3501   esac
3502
3503 else
3504   with_openssl=no
3505
3506 fi;
3507
3508 echo "$as_me:$LINENO: result: $with_openssl" >&5
3509 echo "${ECHO_T}$with_openssl" >&6
3510
3511
3512
3513 #
3514 # Readline
3515 #
3516
3517
3518
3519 # Check whether --with-readline or --without-readline was given.
3520 if test "${with_readline+set}" = set; then
3521   withval="$with_readline"
3522
3523   case $withval in
3524     yes)
3525       :
3526       ;;
3527     no)
3528       :
3529       ;;
3530     *)
3531       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3532 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3533    { (exit 1); exit 1; }; }
3534       ;;
3535   esac
3536
3537 else
3538   with_readline=yes
3539
3540 fi;
3541
3542 # readline on MinGW has problems with backslashes in psql and other bugs.
3543 # This is particularly a problem with non-US code pages.
3544 # Therefore disable its use until we understand the cause. 2004-07-20
3545 if test "$PORTNAME" = "win32"; then
3546   if test "$with_readline" = yes; then
3547     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3548 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3549     with_readline=no
3550   fi
3551 fi
3552
3553
3554 #
3555 # Zlib
3556 #
3557
3558
3559
3560 # Check whether --with-zlib or --without-zlib was given.
3561 if test "${with_zlib+set}" = set; then
3562   withval="$with_zlib"
3563
3564   case $withval in
3565     yes)
3566       :
3567       ;;
3568     no)
3569       :
3570       ;;
3571     *)
3572       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3573 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3574    { (exit 1); exit 1; }; }
3575       ;;
3576   esac
3577
3578 else
3579   with_zlib=yes
3580
3581 fi;
3582
3583
3584 #
3585 # Elf
3586 #
3587
3588 # Assume system is ELF if it predefines __ELF__ as 1,
3589 # otherwise believe host_os based default.
3590 case $host_os in
3591     freebsd1*|freebsd2*) elf=no;;
3592     freebsd3*|freebsd4*) elf=yes;;
3593 esac
3594
3595
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 #include "confdefs.h"
3599 #if __ELF__
3600   yes
3601 #endif
3602
3603 _ACEOF
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605   egrep "yes" >/dev/null 2>&1; then
3606   ELF_SYS=true
3607 else
3608   if test "X$elf" = "Xyes" ; then
3609   ELF_SYS=true
3610 else
3611   ELF_SYS=
3612 fi
3613 fi
3614 rm -f conftest*
3615
3616
3617
3618 #
3619 # Assignments
3620 #
3621
3622 CPPFLAGS="$CPPFLAGS $INCLUDES"
3623 LDFLAGS="$LDFLAGS $LIBDIRS"
3624
3625 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3626 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3627 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3628 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3629
3630
3631
3632 for ac_prog in gawk mawk nawk awk
3633 do
3634   # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_AWK+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test -n "$AWK"; then
3642   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647   IFS=$as_save_IFS
3648   test -z "$as_dir" && as_dir=.
3649   for ac_exec_ext in '' $ac_executable_extensions; do
3650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651     ac_cv_prog_AWK="$ac_prog"
3652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653     break 2
3654   fi
3655 done
3656 done
3657
3658 fi
3659 fi
3660 AWK=$ac_cv_prog_AWK
3661 if test -n "$AWK"; then
3662   echo "$as_me:$LINENO: result: $AWK" >&5
3663 echo "${ECHO_T}$AWK" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669   test -n "$AWK" && break
3670 done
3671
3672 echo "$as_me:$LINENO: checking for flex" >&5
3673 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3674 if test "${pgac_cv_path_flex+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   # Let the user override the test
3678 if test -n "$FLEX"; then
3679   pgac_cv_path_flex=$FLEX
3680 else
3681   pgac_save_IFS=$IFS
3682   IFS=$PATH_SEPARATOR
3683   for pgac_dir in $PATH; do
3684     IFS=$pgac_save_IFS
3685     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3686       pgac_dir=`pwd`
3687     fi
3688     for pgac_prog in flex lex; do
3689       pgac_candidate="$pgac_dir/$pgac_prog"
3690       if test -f "$pgac_candidate" \
3691         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3692       then
3693         echo '%%'  > conftest.l
3694         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3695           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3696             pgac_broken_flex=$pgac_candidate
3697             continue
3698           fi
3699
3700           pgac_cv_path_flex=$pgac_candidate
3701           break 2
3702         fi
3703       fi
3704     done
3705   done
3706   rm -f conftest.l lex.yy.c
3707   : ${pgac_cv_path_flex=no}
3708 fi
3709
3710 fi
3711 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3712 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3713 if test x"$pgac_cv_path_flex" = x"no"; then
3714   if test -n "$pgac_broken_flex"; then
3715     { echo "$as_me:$LINENO: WARNING:
3716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3717 *** should get version 2.5.4 or later." >&5
3718 echo "$as_me: WARNING:
3719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3720 *** should get version 2.5.4 or later." >&2;}
3721   fi
3722
3723   { echo "$as_me:$LINENO: WARNING:
3724 *** Without Flex you will not be able to build PostgreSQL from CVS or
3725 *** change any of the scanner definition files.  You can obtain Flex from
3726 *** a GNU mirror site.  (If you are using the official distribution of
3727 *** PostgreSQL then you do not need to worry about this because the Flex
3728 *** output is pre-generated.)" >&5
3729 echo "$as_me: WARNING:
3730 *** Without Flex you will not be able to build PostgreSQL from CVS or
3731 *** change any of the scanner definition files.  You can obtain Flex from
3732 *** a GNU mirror site.  (If you are using the official distribution of
3733 *** PostgreSQL then you do not need to worry about this because the Flex
3734 *** output is pre-generated.)" >&2;}
3735 fi
3736
3737 if test x"$pgac_cv_path_flex" = x"no"; then
3738   FLEX=
3739 else
3740   FLEX=$pgac_cv_path_flex
3741 fi
3742
3743
3744
3745
3746 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3748 LN_S=$as_ln_s
3749 if test "$LN_S" = "ln -s"; then
3750   echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6
3752 else
3753   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3754 echo "${ECHO_T}no, using $LN_S" >&6
3755 fi
3756
3757
3758 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3759 if test "${with_gnu_ld+set}" = set; then
3760   withval="$with_gnu_ld"
3761   test "$withval" = no || with_gnu_ld=yes
3762 else
3763   with_gnu_ld=no
3764 fi;
3765 ac_prog=ld
3766 if test "$GCC" = yes; then
3767   # Check if gcc -print-prog-name=ld gives a path.
3768   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3769 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3770   case $host in
3771   *-*-mingw*)
3772     # gcc leaves a trailing carriage return which upsets mingw
3773     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3774   *)
3775     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3776   esac
3777   case "$ac_prog" in
3778     # Accept absolute paths.
3779     [\\/]* | [A-Za-z]:[\\/]*)
3780       re_direlt='/[^/][^/]*/\.\./'
3781       # Canonicalize the path of ld
3782       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3783       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3784         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3785       done
3786       test -z "$LD" && LD="$ac_prog"
3787       ;;
3788   "")
3789     # If it fails, then pretend we aren't using GCC.
3790     ac_prog=ld
3791     ;;
3792   *)
3793     # If it is relative, then search for the first ld in PATH.
3794     with_gnu_ld=unknown
3795     ;;
3796   esac
3797 elif test "$with_gnu_ld" = yes; then
3798   echo "$as_me:$LINENO: checking for GNU ld" >&5
3799 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3800 else
3801   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3802 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3803 fi
3804 if test "${ac_cv_path_LD+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -z "$LD"; then
3808   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3809   for ac_dir in $PATH; do
3810     test -z "$ac_dir" && ac_dir=.
3811     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3812       ac_cv_path_LD="$ac_dir/$ac_prog"
3813       # Check to see if the program is GNU ld.  I'd rather use --version,
3814       # but apparently some GNU ld's only accept -v.
3815       # Break only if it was the GNU/non-GNU ld that we prefer.
3816       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3817         test "$with_gnu_ld" != no && break
3818       else
3819         test "$with_gnu_ld" != yes && break
3820       fi
3821     fi
3822   done
3823   IFS="$ac_save_ifs"
3824 else
3825   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3826 fi
3827 fi
3828
3829 LD="$ac_cv_path_LD"
3830 if test -n "$LD"; then
3831   echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3838 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3839    { (exit 1); exit 1; }; }
3840 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3841 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3842 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3846 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3847   ac_cv_prog_gnu_ld=yes
3848 else
3849   ac_cv_prog_gnu_ld=no
3850 fi
3851 fi
3852 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3853 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3854 with_gnu_ld=$ac_cv_prog_gnu_ld
3855
3856
3857
3858
3859 case $host_os in sysv5*)
3860   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3861 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3862 if test "${pgac_cv_prog_ld_R+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865
3866     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3867     cat >conftest.$ac_ext <<_ACEOF
3868 #line $LINENO "configure"
3869 #include "confdefs.h"
3870
3871 #ifdef F77_DUMMY_MAIN
3872 #  ifdef __cplusplus
3873      extern "C"
3874 #  endif
3875    int F77_DUMMY_MAIN() { return 1; }
3876 #endif
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext conftest$ac_exeext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3887   (eval $ac_link) 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } &&
3891          { ac_try='test -s conftest$ac_exeext'
3892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893   (eval $ac_try) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; }; then
3897   pgac_cv_prog_ld_R=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 pgac_cv_prog_ld_R=no
3902 fi
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904     LDFLAGS=$pgac_save_LDFLAGS
3905
3906 fi
3907 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3908 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3909   ld_R_works=$pgac_cv_prog_ld_R
3910
3911 esac
3912 if test -n "$ac_tool_prefix"; then
3913   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_RANLIB+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920   if test -n "$RANLIB"; then
3921   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926   IFS=$as_save_IFS
3927   test -z "$as_dir" && as_dir=.
3928   for ac_exec_ext in '' $ac_executable_extensions; do
3929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932     break 2
3933   fi
3934 done
3935 done
3936
3937 fi
3938 fi
3939 RANLIB=$ac_cv_prog_RANLIB
3940 if test -n "$RANLIB"; then
3941   echo "$as_me:$LINENO: result: $RANLIB" >&5
3942 echo "${ECHO_T}$RANLIB" >&6
3943 else
3944   echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3946 fi
3947
3948 fi
3949 if test -z "$ac_cv_prog_RANLIB"; then
3950   ac_ct_RANLIB=$RANLIB
3951   # Extract the first word of "ranlib", so it can be a program name with args.
3952 set dummy ranlib; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$ac_ct_RANLIB"; then
3959   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_ac_ct_RANLIB="ranlib"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3976 fi
3977 fi
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3981 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3982 else
3983   echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3985 fi
3986
3987   RANLIB=$ac_ct_RANLIB
3988 else
3989   RANLIB="$ac_cv_prog_RANLIB"
3990 fi
3991
3992 for ac_prog in lorder
3993 do
3994   # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_LORDER+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   if test -n "$LORDER"; then
4002   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011     ac_cv_prog_LORDER="$ac_prog"
4012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013     break 2
4014   fi
4015 done
4016 done
4017
4018 fi
4019 fi
4020 LORDER=$ac_cv_prog_LORDER
4021 if test -n "$LORDER"; then
4022   echo "$as_me:$LINENO: result: $LORDER" >&5
4023 echo "${ECHO_T}$LORDER" >&6
4024 else
4025   echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4027 fi
4028
4029   test -n "$LORDER" && break
4030 done
4031
4032 # Extract the first word of "tar", so it can be a program name with args.
4033 set dummy tar; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_path_TAR+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   case $TAR in
4040   [\\/]* | ?:[\\/]*)
4041   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4042   ;;
4043   *)
4044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_exec_ext in '' $ac_executable_extensions; do
4050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053     break 2
4054   fi
4055 done
4056 done
4057
4058   ;;
4059 esac
4060 fi
4061 TAR=$ac_cv_path_TAR
4062
4063 if test -n "$TAR"; then
4064   echo "$as_me:$LINENO: result: $TAR" >&5
4065 echo "${ECHO_T}$TAR" >&6
4066 else
4067   echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072   if test -n "$ac_tool_prefix"; then
4073   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_STRIP+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -n "$STRIP"; then
4081   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086   IFS=$as_save_IFS
4087   test -z "$as_dir" && as_dir=.
4088   for ac_exec_ext in '' $ac_executable_extensions; do
4089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095 done
4096
4097 fi
4098 fi
4099 STRIP=$ac_cv_prog_STRIP
4100 if test -n "$STRIP"; then
4101   echo "$as_me:$LINENO: result: $STRIP" >&5
4102 echo "${ECHO_T}$STRIP" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108 fi
4109 if test -z "$ac_cv_prog_STRIP"; then
4110   ac_ct_STRIP=$STRIP
4111   # Extract the first word of "strip", so it can be a program name with args.
4112 set dummy strip; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   if test -n "$ac_ct_STRIP"; then
4119   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128     ac_cv_prog_ac_ct_STRIP="strip"
4129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134
4135   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4136 fi
4137 fi
4138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4139 if test -n "$ac_ct_STRIP"; then
4140   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4141 echo "${ECHO_T}$ac_ct_STRIP" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147   STRIP=$ac_ct_STRIP
4148 else
4149   STRIP="$ac_cv_prog_STRIP"
4150 fi
4151
4152
4153   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4154 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4155   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4156     STRIP_STATIC_LIB="$STRIP -x"
4157     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4158     echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6
4160   else
4161     STRIP_STATIC_LIB=:
4162     STRIP_SHARED_LIB=:
4163     echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4165   fi
4166
4167
4168
4169
4170 for ac_prog in 'bison -y'
4171 do
4172   # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_YACC+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   if test -n "$YACC"; then
4180   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189     ac_cv_prog_YACC="$ac_prog"
4190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194 done
4195
4196 fi
4197 fi
4198 YACC=$ac_cv_prog_YACC
4199 if test -n "$YACC"; then
4200   echo "$as_me:$LINENO: result: $YACC" >&5
4201 echo "${ECHO_T}$YACC" >&6
4202 else
4203   echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205 fi
4206
4207   test -n "$YACC" && break
4208 done
4209
4210
4211 if test "$YACC"; then
4212   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4213     { echo "$as_me:$LINENO: WARNING:
4214 *** If you are going to modify the grammar files or build from CVS, the installed
4215 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4216 echo "$as_me: WARNING:
4217 *** If you are going to modify the grammar files or build from CVS, the installed
4218 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4219   fi
4220 fi
4221
4222 if test -z "$YACC"; then
4223   { echo "$as_me:$LINENO: WARNING:
4224 *** Without Bison you will not be able to build PostgreSQL from CVS or
4225 *** change any of the parser definition files.  You can obtain Bison from
4226 *** a GNU mirror site.  (If you are using the official distribution of
4227 *** PostgreSQL then you do not need to worry about this because the Bison
4228 *** output is pre-generated.)  To use a different yacc program (possible,
4229 *** but not recommended), set the environment variable YACC before running
4230 *** 'configure'." >&5
4231 echo "$as_me: WARNING:
4232 *** Without Bison you will not be able to build PostgreSQL from CVS or
4233 *** change any of the parser definition files.  You can obtain Bison from
4234 *** a GNU mirror site.  (If you are using the official distribution of
4235 *** PostgreSQL then you do not need to worry about this because the Bison
4236 *** output is pre-generated.)  To use a different yacc program (possible,
4237 *** but not recommended), set the environment variable YACC before running
4238 *** 'configure'." >&2;}
4239 fi
4240
4241
4242 # Extract the first word of "perl", so it can be a program name with args.
4243 set dummy perl; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_path_PERL+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   case $PERL in
4250   [\\/]* | ?:[\\/]*)
4251   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4252   ;;
4253   *)
4254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267
4268   ;;
4269 esac
4270 fi
4271 PERL=$ac_cv_path_PERL
4272
4273 if test -n "$PERL"; then
4274   echo "$as_me:$LINENO: result: $PERL" >&5
4275 echo "${ECHO_T}$PERL" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281 if test "$with_perl" = yes; then
4282
4283 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4284 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4285 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4286 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4287 echo "${ECHO_T}$perl_archlibexp" >&6
4288 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4289 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4290 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4291 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4292 echo "${ECHO_T}$perl_privlibexp" >&6
4293 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4294 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4295 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4296 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4297 echo "${ECHO_T}$perl_useshrplib" >&6
4298
4299 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4300 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4301 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4302 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4303 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4304 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4305 echo "${ECHO_T}$perl_embed_ldflags" >&6
4306 fi
4307
4308 if test "$with_python" = yes; then
4309   # Extract the first word of "python", so it can be a program name with args.
4310 set dummy python; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_PYTHON+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $PYTHON in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335   ;;
4336 esac
4337 fi
4338 PYTHON=$ac_cv_path_PYTHON
4339
4340 if test -n "$PYTHON"; then
4341   echo "$as_me:$LINENO: result: $PYTHON" >&5
4342 echo "${ECHO_T}$PYTHON" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348 if test x"$PYTHON" = x""; then
4349   { { echo "$as_me:$LINENO: error: Python not found" >&5
4350 echo "$as_me: error: Python not found" >&2;}
4351    { (exit 1); exit 1; }; }
4352 fi
4353
4354
4355 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4356 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4357 if "${PYTHON}" 2>&- -c 'import distutils'
4358 then
4359     echo "$as_me:$LINENO: result: yes" >&5
4360 echo "${ECHO_T}yes" >&6
4361 else
4362     echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4365 echo "$as_me: error: distutils module not found" >&2;}
4366    { (exit 1); exit 1; }; }
4367 fi
4368 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4369 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4370 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4371 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4372 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4373
4374 # This should be enough of a message.
4375 echo "$as_me:$LINENO: result: $python_configdir" >&5
4376 echo "${ECHO_T}$python_configdir" >&6
4377
4378
4379 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4380 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4381
4382 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4383 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4384 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4385 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4386
4387 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4388 then
4389         # New way: use the official shared library
4390         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4391         python_libspec="-L${python_libdir} -l${ldlibrary}"
4392 else
4393         # Old way: use libpython from python_configdir
4394         python_libdir="${python_configdir}"
4395         python_libspec="-L${python_libdir} -lpython${python_version}"
4396 fi
4397
4398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4399
4400 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4401 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4402
4403
4404 fi
4405
4406
4407 ##
4408 ## Libraries
4409 ##
4410
4411 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4412 then
4413
4414 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4415 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4416 if test "${ac_cv_lib_bsd_main+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lbsd  $LIBS"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4424
4425
4426 #ifdef F77_DUMMY_MAIN
4427 #  ifdef __cplusplus
4428      extern "C"
4429 #  endif
4430    int F77_DUMMY_MAIN() { return 1; }
4431 #endif
4432 int
4433 main ()
4434 {
4435 main ();
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442   (eval $ac_link) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } &&
4446          { ac_try='test -s conftest$ac_exeext'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; }; then
4452   ac_cv_lib_bsd_main=yes
4453 else
4454   echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 ac_cv_lib_bsd_main=no
4457 fi
4458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459 LIBS=$ac_check_lib_save_LIBS
4460 fi
4461 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4462 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4463 if test $ac_cv_lib_bsd_main = yes; then
4464   cat >>confdefs.h <<_ACEOF
4465 #define HAVE_LIBBSD 1
4466 _ACEOF
4467
4468   LIBS="-lbsd $LIBS"
4469
4470 fi
4471
4472 fi
4473
4474 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4475 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4476 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   ac_check_lib_save_LIBS=$LIBS
4480 LIBS="-lutil  $LIBS"
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4484
4485 /* Override any gcc2 internal prototype to avoid an error.  */
4486 #ifdef __cplusplus
4487 extern "C"
4488 #endif
4489 /* We use char because int might match the return type of a gcc2
4490    builtin and then its argument prototype would still apply.  */
4491 char setproctitle ();
4492 #ifdef F77_DUMMY_MAIN
4493 #  ifdef __cplusplus
4494      extern "C"
4495 #  endif
4496    int F77_DUMMY_MAIN() { return 1; }
4497 #endif
4498 int
4499 main ()
4500 {
4501 setproctitle ();
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   ac_cv_lib_util_setproctitle=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_util_setproctitle=no
4523 fi
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4526 fi
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4528 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4529 if test $ac_cv_lib_util_setproctitle = yes; then
4530   cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBUTIL 1
4532 _ACEOF
4533
4534   LIBS="-lutil $LIBS"
4535
4536 fi
4537
4538
4539 echo "$as_me:$LINENO: checking for main in -lm" >&5
4540 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4541 if test "${ac_cv_lib_m_main+set}" = set; then
4542   echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544   ac_check_lib_save_LIBS=$LIBS
4545 LIBS="-lm  $LIBS"
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4548 #include "confdefs.h"
4549
4550
4551 #ifdef F77_DUMMY_MAIN
4552 #  ifdef __cplusplus
4553      extern "C"
4554 #  endif
4555    int F77_DUMMY_MAIN() { return 1; }
4556 #endif
4557 int
4558 main ()
4559 {
4560 main ();
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567   (eval $ac_link) 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } &&
4571          { ac_try='test -s conftest$ac_exeext'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; }; then
4577   ac_cv_lib_m_main=yes
4578 else
4579   echo "$as_me: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 ac_cv_lib_m_main=no
4582 fi
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4585 fi
4586 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4587 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4588 if test $ac_cv_lib_m_main = yes; then
4589   cat >>confdefs.h <<_ACEOF
4590 #define HAVE_LIBM 1
4591 _ACEOF
4592
4593   LIBS="-lm $LIBS"
4594
4595 fi
4596
4597
4598 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4599 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4600 if test "${ac_cv_lib_dl_main+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   ac_check_lib_save_LIBS=$LIBS
4604 LIBS="-ldl  $LIBS"
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4608
4609
4610 #ifdef F77_DUMMY_MAIN
4611 #  ifdef __cplusplus
4612      extern "C"
4613 #  endif
4614    int F77_DUMMY_MAIN() { return 1; }
4615 #endif
4616 int
4617 main ()
4618 {
4619 main ();
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626   (eval $ac_link) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); } &&
4630          { ac_try='test -s conftest$ac_exeext'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636   ac_cv_lib_dl_main=yes
4637 else
4638   echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_lib_dl_main=no
4641 fi
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4644 fi
4645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4646 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4647 if test $ac_cv_lib_dl_main = yes; then
4648   cat >>confdefs.h <<_ACEOF
4649 #define HAVE_LIBDL 1
4650 _ACEOF
4651
4652   LIBS="-ldl $LIBS"
4653
4654 fi
4655
4656
4657 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4658 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4659 if test "${ac_cv_lib_nsl_main+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   ac_check_lib_save_LIBS=$LIBS
4663 LIBS="-lnsl  $LIBS"
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667
4668
4669 #ifdef F77_DUMMY_MAIN
4670 #  ifdef __cplusplus
4671      extern "C"
4672 #  endif
4673    int F77_DUMMY_MAIN() { return 1; }
4674 #endif
4675 int
4676 main ()
4677 {
4678 main ();
4679   ;
4680   return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685   (eval $ac_link) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -s conftest$ac_exeext'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   ac_cv_lib_nsl_main=yes
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_nsl_main=no
4700 fi
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4705 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4706 if test $ac_cv_lib_nsl_main = yes; then
4707   cat >>confdefs.h <<_ACEOF
4708 #define HAVE_LIBNSL 1
4709 _ACEOF
4710
4711   LIBS="-lnsl $LIBS"
4712
4713 fi
4714
4715
4716 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4717 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4718 if test "${ac_cv_lib_socket_main+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-lsocket  $LIBS"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4726
4727
4728 #ifdef F77_DUMMY_MAIN
4729 #  ifdef __cplusplus
4730      extern "C"
4731 #  endif
4732    int F77_DUMMY_MAIN() { return 1; }
4733 #endif
4734 int
4735 main ()
4736 {
4737 main ();
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744   (eval $ac_link) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -s conftest$ac_exeext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_lib_socket_main=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 ac_cv_lib_socket_main=no
4759 fi
4760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4762 fi
4763 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4764 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4765 if test $ac_cv_lib_socket_main = yes; then
4766   cat >>confdefs.h <<_ACEOF
4767 #define HAVE_LIBSOCKET 1
4768 _ACEOF
4769
4770   LIBS="-lsocket $LIBS"
4771
4772 fi
4773
4774
4775 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4776 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4777 if test "${ac_cv_lib_ipc_main+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   ac_check_lib_save_LIBS=$LIBS
4781 LIBS="-lipc  $LIBS"
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 #include "confdefs.h"
4785
4786
4787 #ifdef F77_DUMMY_MAIN
4788 #  ifdef __cplusplus
4789      extern "C"
4790 #  endif
4791    int F77_DUMMY_MAIN() { return 1; }
4792 #endif
4793 int
4794 main ()
4795 {
4796 main ();
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803   (eval $ac_link) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -s conftest$ac_exeext'
4808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_lib_ipc_main=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_ipc_main=no
4818 fi
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4823 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4824 if test $ac_cv_lib_ipc_main = yes; then
4825   cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBIPC 1
4827 _ACEOF
4828
4829   LIBS="-lipc $LIBS"
4830
4831 fi
4832
4833
4834 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4835 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4836 if test "${ac_cv_lib_IPC_main+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   ac_check_lib_save_LIBS=$LIBS
4840 LIBS="-lIPC  $LIBS"
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844
4845
4846 #ifdef F77_DUMMY_MAIN
4847 #  ifdef __cplusplus
4848      extern "C"
4849 #  endif
4850    int F77_DUMMY_MAIN() { return 1; }
4851 #endif
4852 int
4853 main ()
4854 {
4855 main ();
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862   (eval $ac_link) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); } &&
4866          { ac_try='test -s conftest$ac_exeext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   ac_cv_lib_IPC_main=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_IPC_main=no
4877 fi
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4880 fi
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4882 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4883 if test $ac_cv_lib_IPC_main = yes; then
4884   cat >>confdefs.h <<_ACEOF
4885 #define HAVE_LIBIPC 1
4886 _ACEOF
4887
4888   LIBS="-lIPC $LIBS"
4889
4890 fi
4891
4892
4893 echo "$as_me:$LINENO: checking for main in -llc" >&5
4894 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4895 if test "${ac_cv_lib_lc_main+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   ac_check_lib_save_LIBS=$LIBS
4899 LIBS="-llc  $LIBS"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 #include "confdefs.h"
4903
4904
4905 #ifdef F77_DUMMY_MAIN
4906 #  ifdef __cplusplus
4907      extern "C"
4908 #  endif
4909    int F77_DUMMY_MAIN() { return 1; }
4910 #endif
4911 int
4912 main ()
4913 {
4914 main ();
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921   (eval $ac_link) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } &&
4925          { ac_try='test -s conftest$ac_exeext'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_cv_lib_lc_main=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_lib_lc_main=no
4936 fi
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4939 fi
4940 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4941 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4942 if test $ac_cv_lib_lc_main = yes; then
4943   cat >>confdefs.h <<_ACEOF
4944 #define HAVE_LIBLC 1
4945 _ACEOF
4946
4947   LIBS="-llc $LIBS"
4948
4949 fi
4950
4951
4952 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4953 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4954 if test "${ac_cv_lib_dld_main+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   ac_check_lib_save_LIBS=$LIBS
4958 LIBS="-ldld  $LIBS"
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962
4963
4964 #ifdef F77_DUMMY_MAIN
4965 #  ifdef __cplusplus
4966      extern "C"
4967 #  endif
4968    int F77_DUMMY_MAIN() { return 1; }
4969 #endif
4970 int
4971 main ()
4972 {
4973 main ();
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980   (eval $ac_link) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); } &&
4984          { ac_try='test -s conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   ac_cv_lib_dld_main=yes
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 ac_cv_lib_dld_main=no
4995 fi
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4998 fi
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5000 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5001 if test $ac_cv_lib_dld_main = yes; then
5002   cat >>confdefs.h <<_ACEOF
5003 #define HAVE_LIBDLD 1
5004 _ACEOF
5005
5006   LIBS="-ldld $LIBS"
5007
5008 fi
5009
5010
5011 echo "$as_me:$LINENO: checking for main in -lld" >&5
5012 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5013 if test "${ac_cv_lib_ld_main+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   ac_check_lib_save_LIBS=$LIBS
5017 LIBS="-lld  $LIBS"
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5021
5022
5023 #ifdef F77_DUMMY_MAIN
5024 #  ifdef __cplusplus
5025      extern "C"
5026 #  endif
5027    int F77_DUMMY_MAIN() { return 1; }
5028 #endif
5029 int
5030 main ()
5031 {
5032 main ();
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039   (eval $ac_link) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -s conftest$ac_exeext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   ac_cv_lib_ld_main=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_lib_ld_main=no
5054 fi
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5056 LIBS=$ac_check_lib_save_LIBS
5057 fi
5058 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5059 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5060 if test $ac_cv_lib_ld_main = yes; then
5061   cat >>confdefs.h <<_ACEOF
5062 #define HAVE_LIBLD 1
5063 _ACEOF
5064
5065   LIBS="-lld $LIBS"
5066
5067 fi
5068
5069
5070 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5071 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5072 if test "${ac_cv_lib_compat_main+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   ac_check_lib_save_LIBS=$LIBS
5076 LIBS="-lcompat  $LIBS"
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5080
5081
5082 #ifdef F77_DUMMY_MAIN
5083 #  ifdef __cplusplus
5084      extern "C"
5085 #  endif
5086    int F77_DUMMY_MAIN() { return 1; }
5087 #endif
5088 int
5089 main ()
5090 {
5091 main ();
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098   (eval $ac_link) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -s conftest$ac_exeext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   ac_cv_lib_compat_main=yes
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_lib_compat_main=no
5113 fi
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5118 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5119 if test $ac_cv_lib_compat_main = yes; then
5120   cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBCOMPAT 1
5122 _ACEOF
5123
5124   LIBS="-lcompat $LIBS"
5125
5126 fi
5127
5128
5129 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5130 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5131 if test "${ac_cv_lib_BSD_main+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   ac_check_lib_save_LIBS=$LIBS
5135 LIBS="-lBSD  $LIBS"
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 #include "confdefs.h"
5139
5140
5141 #ifdef F77_DUMMY_MAIN
5142 #  ifdef __cplusplus
5143      extern "C"
5144 #  endif
5145    int F77_DUMMY_MAIN() { return 1; }
5146 #endif
5147 int
5148 main ()
5149 {
5150 main ();
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157   (eval $ac_link) 2>&5
5158   ac_status=$?
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } &&
5161          { ac_try='test -s conftest$ac_exeext'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; }; then
5167   ac_cv_lib_BSD_main=yes
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_cv_lib_BSD_main=no
5172 fi
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5175 fi
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5177 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5178 if test $ac_cv_lib_BSD_main = yes; then
5179   cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBBSD 1
5181 _ACEOF
5182
5183   LIBS="-lBSD $LIBS"
5184
5185 fi
5186
5187
5188 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5189 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5190 if test "${ac_cv_lib_gen_main+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   ac_check_lib_save_LIBS=$LIBS
5194 LIBS="-lgen  $LIBS"
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198
5199
5200 #ifdef F77_DUMMY_MAIN
5201 #  ifdef __cplusplus
5202      extern "C"
5203 #  endif
5204    int F77_DUMMY_MAIN() { return 1; }
5205 #endif
5206 int
5207 main ()
5208 {
5209 main ();
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216   (eval $ac_link) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest$ac_exeext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_cv_lib_gen_main=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_gen_main=no
5231 fi
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5236 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5237 if test $ac_cv_lib_gen_main = yes; then
5238   cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBGEN 1
5240 _ACEOF
5241
5242   LIBS="-lgen $LIBS"
5243
5244 fi
5245
5246
5247 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5248 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5249 if test "${ac_cv_lib_PW_main+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-lPW  $LIBS"
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 #include "confdefs.h"
5257
5258
5259 #ifdef F77_DUMMY_MAIN
5260 #  ifdef __cplusplus
5261      extern "C"
5262 #  endif
5263    int F77_DUMMY_MAIN() { return 1; }
5264 #endif
5265 int
5266 main ()
5267 {
5268 main ();
5269   ;
5270   return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275   (eval $ac_link) 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } &&
5279          { ac_try='test -s conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_cv_lib_PW_main=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 ac_cv_lib_PW_main=no
5290 fi
5291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5295 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5296 if test $ac_cv_lib_PW_main = yes; then
5297   cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBPW 1
5299 _ACEOF
5300
5301   LIBS="-lPW $LIBS"
5302
5303 fi
5304
5305
5306 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5307 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5308 if test "${ac_cv_lib_resolv_main+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lresolv  $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 #include "confdefs.h"
5316
5317
5318 #ifdef F77_DUMMY_MAIN
5319 #  ifdef __cplusplus
5320      extern "C"
5321 #  endif
5322    int F77_DUMMY_MAIN() { return 1; }
5323 #endif
5324 int
5325 main ()
5326 {
5327 main ();
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334   (eval $ac_link) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest$ac_exeext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_cv_lib_resolv_main=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_cv_lib_resolv_main=no
5349 fi
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5352 fi
5353 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5354 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5355 if test $ac_cv_lib_resolv_main = yes; then
5356   cat >>confdefs.h <<_ACEOF
5357 #define HAVE_LIBRESOLV 1
5358 _ACEOF
5359
5360   LIBS="-lresolv $LIBS"
5361
5362 fi
5363
5364 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5365 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5366 if test "${ac_cv_search_getopt_long+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   ac_func_search_save_LIBS=$LIBS
5370 ac_cv_search_getopt_long=no
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line $LINENO "configure"
5373 #include "confdefs.h"
5374
5375 /* Override any gcc2 internal prototype to avoid an error.  */
5376 #ifdef __cplusplus
5377 extern "C"
5378 #endif
5379 /* We use char because int might match the return type of a gcc2
5380    builtin and then its argument prototype would still apply.  */
5381 char getopt_long ();
5382 #ifdef F77_DUMMY_MAIN
5383 #  ifdef __cplusplus
5384      extern "C"
5385 #  endif
5386    int F77_DUMMY_MAIN() { return 1; }
5387 #endif
5388 int
5389 main ()
5390 {
5391 getopt_long ();
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398   (eval $ac_link) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -s conftest$ac_exeext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_cv_search_getopt_long="none required"
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 fi
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 if test "$ac_cv_search_getopt_long" = no; then
5415   for ac_lib in getopt gnugetopt; do
5416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5417     cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5420
5421 /* Override any gcc2 internal prototype to avoid an error.  */
5422 #ifdef __cplusplus
5423 extern "C"
5424 #endif
5425 /* We use char because int might match the return type of a gcc2
5426    builtin and then its argument prototype would still apply.  */
5427 char getopt_long ();
5428 #ifdef F77_DUMMY_MAIN
5429 #  ifdef __cplusplus
5430      extern "C"
5431 #  endif
5432    int F77_DUMMY_MAIN() { return 1; }
5433 #endif
5434 int
5435 main ()
5436 {
5437 getopt_long ();
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444   (eval $ac_link) 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } &&
5448          { ac_try='test -s conftest$ac_exeext'
5449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450   (eval $ac_try) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }; }; then
5454   ac_cv_search_getopt_long="-l$ac_lib"
5455 break
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5459 fi
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461   done
5462 fi
5463 LIBS=$ac_func_search_save_LIBS
5464 fi
5465 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5466 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5467 if test "$ac_cv_search_getopt_long" != no; then
5468   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5469
5470 fi
5471
5472 # QNX:
5473
5474 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5475 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5476 if test "${ac_cv_lib_unix_main+set}" = set; then
5477   echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479   ac_check_lib_save_LIBS=$LIBS
5480 LIBS="-lunix  $LIBS"
5481 cat >conftest.$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5484
5485
5486 #ifdef F77_DUMMY_MAIN
5487 #  ifdef __cplusplus
5488      extern "C"
5489 #  endif
5490    int F77_DUMMY_MAIN() { return 1; }
5491 #endif
5492 int
5493 main ()
5494 {
5495 main ();
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502   (eval $ac_link) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -s conftest$ac_exeext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_cv_lib_unix_main=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_lib_unix_main=no
5517 fi
5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5520 fi
5521 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5522 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5523 if test $ac_cv_lib_unix_main = yes; then
5524   cat >>confdefs.h <<_ACEOF
5525 #define HAVE_LIBUNIX 1
5526 _ACEOF
5527
5528   LIBS="-lunix $LIBS"
5529
5530 fi
5531
5532 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5533 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5534 if test "${ac_cv_search_crypt+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   ac_func_search_save_LIBS=$LIBS
5538 ac_cv_search_crypt=no
5539 cat >conftest.$ac_ext <<_ACEOF
5540 #line $LINENO "configure"
5541 #include "confdefs.h"
5542
5543 /* Override any gcc2 internal prototype to avoid an error.  */
5544 #ifdef __cplusplus
5545 extern "C"
5546 #endif
5547 /* We use char because int might match the return type of a gcc2
5548    builtin and then its argument prototype would still apply.  */
5549 char crypt ();
5550 #ifdef F77_DUMMY_MAIN
5551 #  ifdef __cplusplus
5552      extern "C"
5553 #  endif
5554    int F77_DUMMY_MAIN() { return 1; }
5555 #endif
5556 int
5557 main ()
5558 {
5559 crypt ();
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext conftest$ac_exeext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566   (eval $ac_link) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } &&
5570          { ac_try='test -s conftest$ac_exeext'
5571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572   (eval $ac_try) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; }; then
5576   ac_cv_search_crypt="none required"
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5580 fi
5581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5582 if test "$ac_cv_search_crypt" = no; then
5583   for ac_lib in crypt; do
5584     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5585     cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 #include "confdefs.h"
5588
5589 /* Override any gcc2 internal prototype to avoid an error.  */
5590 #ifdef __cplusplus
5591 extern "C"
5592 #endif
5593 /* We use char because int might match the return type of a gcc2
5594    builtin and then its argument prototype would still apply.  */
5595 char crypt ();
5596 #ifdef F77_DUMMY_MAIN
5597 #  ifdef __cplusplus
5598      extern "C"
5599 #  endif
5600    int F77_DUMMY_MAIN() { return 1; }
5601 #endif
5602 int
5603 main ()
5604 {
5605 crypt ();
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612   (eval $ac_link) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          { ac_try='test -s conftest$ac_exeext'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   ac_cv_search_crypt="-l$ac_lib"
5623 break
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 fi
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5629   done
5630 fi
5631 LIBS=$ac_func_search_save_LIBS
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5634 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5635 if test "$ac_cv_search_crypt" != no; then
5636   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5637
5638 fi
5639
5640 # BeOS:
5641 if test "$PORTNAME" = "beos"
5642 then
5643
5644 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5645 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5646 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   ac_check_lib_save_LIBS=$LIBS
5650 LIBS="-lbind  $LIBS"
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 #include "confdefs.h"
5654
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660    builtin and then its argument prototype would still apply.  */
5661 char __inet_ntoa ();
5662 #ifdef F77_DUMMY_MAIN
5663 #  ifdef __cplusplus
5664      extern "C"
5665 #  endif
5666    int F77_DUMMY_MAIN() { return 1; }
5667 #endif
5668 int
5669 main ()
5670 {
5671 __inet_ntoa ();
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678   (eval $ac_link) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_cv_lib_bind___inet_ntoa=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5692 ac_cv_lib_bind___inet_ntoa=no
5693 fi
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5696 fi
5697 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5698 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5699 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5700   cat >>confdefs.h <<_ACEOF
5701 #define HAVE_LIBBIND 1
5702 _ACEOF
5703
5704   LIBS="-lbind $LIBS"
5705
5706 fi
5707
5708 fi
5709 # Solaris:
5710 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5711 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5712 if test "${ac_cv_search_fdatasync+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   ac_func_search_save_LIBS=$LIBS
5716 ac_cv_search_fdatasync=no
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 #include "confdefs.h"
5720
5721 /* Override any gcc2 internal prototype to avoid an error.  */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 /* We use char because int might match the return type of a gcc2
5726    builtin and then its argument prototype would still apply.  */
5727 char fdatasync ();
5728 #ifdef F77_DUMMY_MAIN
5729 #  ifdef __cplusplus
5730      extern "C"
5731 #  endif
5732    int F77_DUMMY_MAIN() { return 1; }
5733 #endif
5734 int
5735 main ()
5736 {
5737 fdatasync ();
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744   (eval $ac_link) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); } &&
5748          { ac_try='test -s conftest$ac_exeext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   ac_cv_search_fdatasync="none required"
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5758 fi
5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 if test "$ac_cv_search_fdatasync" = no; then
5761   for ac_lib in rt posix4; do
5762     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5763     cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 #include "confdefs.h"
5766
5767 /* Override any gcc2 internal prototype to avoid an error.  */
5768 #ifdef __cplusplus
5769 extern "C"
5770 #endif
5771 /* We use char because int might match the return type of a gcc2
5772    builtin and then its argument prototype would still apply.  */
5773 char fdatasync ();
5774 #ifdef F77_DUMMY_MAIN
5775 #  ifdef __cplusplus
5776      extern "C"
5777 #  endif
5778    int F77_DUMMY_MAIN() { return 1; }
5779 #endif
5780 int
5781 main ()
5782 {
5783 fdatasync ();
5784   ;
5785   return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790   (eval $ac_link) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } &&
5794          { ac_try='test -s conftest$ac_exeext'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; }; then
5800   ac_cv_search_fdatasync="-l$ac_lib"
5801 break
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5805 fi
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5807   done
5808 fi
5809 LIBS=$ac_func_search_save_LIBS
5810 fi
5811 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5812 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5813 if test "$ac_cv_search_fdatasync" != no; then
5814   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5815
5816 fi
5817
5818 # Cygwin:
5819
5820 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5821 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5822 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lcygipc  $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5830
5831 /* Override any gcc2 internal prototype to avoid an error.  */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836    builtin and then its argument prototype would still apply.  */
5837 char shmget ();
5838 #ifdef F77_DUMMY_MAIN
5839 #  ifdef __cplusplus
5840      extern "C"
5841 #  endif
5842    int F77_DUMMY_MAIN() { return 1; }
5843 #endif
5844 int
5845 main ()
5846 {
5847 shmget ();
5848   ;
5849   return 0;
5850 }
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854   (eval $ac_link) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -s conftest$ac_exeext'
5859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860   (eval $ac_try) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; }; then
5864   ac_cv_lib_cygipc_shmget=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_lib_cygipc_shmget=no
5869 fi
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 LIBS=$ac_check_lib_save_LIBS
5872 fi
5873 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5874 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5875 if test $ac_cv_lib_cygipc_shmget = yes; then
5876   cat >>confdefs.h <<_ACEOF
5877 #define HAVE_LIBCYGIPC 1
5878 _ACEOF
5879
5880   LIBS="-lcygipc $LIBS"
5881
5882 fi
5883
5884 # WIN32:
5885 if test "$PORTNAME" = "win32"
5886 then
5887
5888 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5889 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5890 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   ac_check_lib_save_LIBS=$LIBS
5894 LIBS="-lwsock32  $LIBS"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 #include "confdefs.h"
5898
5899
5900 #ifdef F77_DUMMY_MAIN
5901 #  ifdef __cplusplus
5902      extern "C"
5903 #  endif
5904    int F77_DUMMY_MAIN() { return 1; }
5905 #endif
5906 int
5907 main ()
5908 {
5909 main ();
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916   (eval $ac_link) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -s conftest$ac_exeext'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; }; then
5926   ac_cv_lib_wsock32_main=yes
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_lib_wsock32_main=no
5931 fi
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5934 fi
5935 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5936 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5937 if test $ac_cv_lib_wsock32_main = yes; then
5938   cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LIBWSOCK32 1
5940 _ACEOF
5941
5942   LIBS="-lwsock32 $LIBS"
5943
5944 fi
5945
5946 fi
5947
5948 if test "$with_readline" = yes; then
5949
5950 echo "$as_me:$LINENO: checking for readline" >&5
5951 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5952
5953 if test "${pgac_cv_check_readline+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   pgac_cv_check_readline=no
5957 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5958   for pgac_rllib in -lreadline -ledit ; do
5959     pgac_save_LIBS=$LIBS
5960     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5961     cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 #include "confdefs.h"
5964
5965 /* Override any gcc2 internal prototype to avoid an error.  */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 /* We use char because int might match the return type of a gcc2
5970    builtin and then its argument prototype would still apply.  */
5971 char readline ();
5972 #ifdef F77_DUMMY_MAIN
5973 #  ifdef __cplusplus
5974      extern "C"
5975 #  endif
5976    int F77_DUMMY_MAIN() { return 1; }
5977 #endif
5978 int
5979 main ()
5980 {
5981 readline ();
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988   (eval $ac_link) 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -s conftest$ac_exeext'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998
5999       # NetBSD, OpenBSD, and Irix have a broken linker that does not
6000       # recognize dependent libraries
6001       case $host_os in netbsd* | openbsd* | irix*)
6002         case $pgac_lib in
6003           *curses*) ;;
6004           *) pgac_lib=" -lcurses" ;;
6005         esac
6006       esac
6007
6008       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6009       break 2
6010
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 fi
6015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016     LIBS=$pgac_save_LIBS
6017   done
6018 done
6019 LIBS=$pgac_save_LIBS
6020
6021 fi
6022
6023 if test "$pgac_cv_check_readline" != no ; then
6024
6025 cat >>confdefs.h <<\_ACEOF
6026 #define HAVE_LIBREADLINE 1
6027 _ACEOF
6028
6029   LIBS="$pgac_cv_check_readline $LIBS"
6030   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6031 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6032 else
6033   echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6035 fi
6036   if test x"$pgac_cv_check_readline" = x"no"; then
6037     { { echo "$as_me:$LINENO: error: readline library not found
6038 If you have readline already installed, see config.log for details on the
6039 failure.  It is possible the compiler isn't looking in the proper directory.
6040 Use --without-readline to disable readline support." >&5
6041 echo "$as_me: error: readline library not found
6042 If you have readline already installed, see config.log for details on the
6043 failure.  It is possible the compiler isn't looking in the proper directory.
6044 Use --without-readline to disable readline support." >&2;}
6045    { (exit 1); exit 1; }; }
6046   fi
6047 fi
6048
6049 if test "$with_zlib" = yes; then
6050
6051 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6052 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6053 if test "${ac_cv_lib_z_inflate+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lz  $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6061
6062 /* Override any gcc2 internal prototype to avoid an error.  */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067    builtin and then its argument prototype would still apply.  */
6068 char inflate ();
6069 #ifdef F77_DUMMY_MAIN
6070 #  ifdef __cplusplus
6071      extern "C"
6072 #  endif
6073    int F77_DUMMY_MAIN() { return 1; }
6074 #endif
6075 int
6076 main ()
6077 {
6078 inflate ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_lib_z_inflate=yes
6096 else
6097   echo "$as_me: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 ac_cv_lib_z_inflate=no
6100 fi
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6103 fi
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6106 if test $ac_cv_lib_z_inflate = yes; then
6107   cat >>confdefs.h <<_ACEOF
6108 #define HAVE_LIBZ 1
6109 _ACEOF
6110
6111   LIBS="-lz $LIBS"
6112
6113 else
6114   { { echo "$as_me:$LINENO: error: zlib library not found
6115 If you have zlib already installed, see config.log for details on the
6116 failure.  It is possible the compiler isn't looking in the proper directory.
6117 Use --without-zlib to disable zlib support." >&5
6118 echo "$as_me: error: zlib library not found
6119 If you have zlib already installed, see config.log for details on the
6120 failure.  It is possible the compiler isn't looking in the proper directory.
6121 Use --without-zlib to disable zlib support." >&2;}
6122    { (exit 1); exit 1; }; }
6123 fi
6124
6125 fi
6126
6127 if test "$enable_spinlocks" = yes; then
6128
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_SPINLOCKS 1
6131 _ACEOF
6132
6133 else
6134   { echo "$as_me:$LINENO: WARNING:
6135 *** Not using spinlocks will cause poor performance." >&5
6136 echo "$as_me: WARNING:
6137 *** Not using spinlocks will cause poor performance." >&2;}
6138 fi
6139
6140 if test "$with_krb4" = yes ; then
6141
6142 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6143 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6144 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   ac_check_lib_save_LIBS=$LIBS
6148 LIBS="-ldes  $LIBS"
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6151 #include "confdefs.h"
6152
6153 /* Override any gcc2 internal prototype to avoid an error.  */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158    builtin and then its argument prototype would still apply.  */
6159 char des_encrypt ();
6160 #ifdef F77_DUMMY_MAIN
6161 #  ifdef __cplusplus
6162      extern "C"
6163 #  endif
6164    int F77_DUMMY_MAIN() { return 1; }
6165 #endif
6166 int
6167 main ()
6168 {
6169 des_encrypt ();
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176   (eval $ac_link) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } &&
6180          { ac_try='test -s conftest$ac_exeext'
6181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182   (eval $ac_try) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; }; then
6186   ac_cv_lib_des_des_encrypt=yes
6187 else
6188   echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 ac_cv_lib_des_des_encrypt=no
6191 fi
6192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6194 fi
6195 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6196 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6197 if test $ac_cv_lib_des_des_encrypt = yes; then
6198   cat >>confdefs.h <<_ACEOF
6199 #define HAVE_LIBDES 1
6200 _ACEOF
6201
6202   LIBS="-ldes $LIBS"
6203
6204 else
6205   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6206 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6207    { (exit 1); exit 1; }; }
6208 fi
6209
6210
6211 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6212 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6213 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-lkrb  $LIBS"
6218 cat >conftest.$ac_ext <<_ACEOF
6219 #line $LINENO "configure"
6220 #include "confdefs.h"
6221
6222 /* Override any gcc2 internal prototype to avoid an error.  */
6223 #ifdef __cplusplus
6224 extern "C"
6225 #endif
6226 /* We use char because int might match the return type of a gcc2
6227    builtin and then its argument prototype would still apply.  */
6228 char krb_sendauth ();
6229 #ifdef F77_DUMMY_MAIN
6230 #  ifdef __cplusplus
6231      extern "C"
6232 #  endif
6233    int F77_DUMMY_MAIN() { return 1; }
6234 #endif
6235 int
6236 main ()
6237 {
6238 krb_sendauth ();
6239   ;
6240   return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245   (eval $ac_link) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } &&
6249          { ac_try='test -s conftest$ac_exeext'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   ac_cv_lib_krb_krb_sendauth=yes
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 ac_cv_lib_krb_krb_sendauth=no
6260 fi
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6262 LIBS=$ac_check_lib_save_LIBS
6263 fi
6264 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6265 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6266 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6267   cat >>confdefs.h <<_ACEOF
6268 #define HAVE_LIBKRB 1
6269 _ACEOF
6270
6271   LIBS="-lkrb $LIBS"
6272
6273 else
6274   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6275 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6276    { (exit 1); exit 1; }; }
6277 fi
6278
6279
6280 for ac_func in gethostname
6281 do
6282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_func" >&5
6284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_var+set}\" = set"; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6291 /* System header to define __stub macros and hopefully few prototypes,
6292     which can conflict with char $ac_func (); below.  */
6293 #include <assert.h>
6294 /* Override any gcc2 internal prototype to avoid an error.  */
6295 #ifdef __cplusplus
6296 extern "C"
6297 #endif
6298 /* We use char because int might match the return type of a gcc2
6299    builtin and then its argument prototype would still apply.  */
6300 char $ac_func ();
6301 char (*f) ();
6302
6303 #ifdef F77_DUMMY_MAIN
6304 #  ifdef __cplusplus
6305      extern "C"
6306 #  endif
6307    int F77_DUMMY_MAIN() { return 1; }
6308 #endif
6309 int
6310 main ()
6311 {
6312 /* The GNU C library defines this for functions which it implements
6313     to always fail with ENOSYS.  Some functions are actually named
6314     something starting with __ and the normal name is an alias.  */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 choke me
6317 #else
6318 f = $ac_func;
6319 #endif
6320
6321   ;
6322   return 0;
6323 }
6324 _ACEOF
6325 rm -f conftest.$ac_objext conftest$ac_exeext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327   (eval $ac_link) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -s conftest$ac_exeext'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   eval "$as_ac_var=yes"
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 eval "$as_ac_var=no"
6342 fi
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6344 fi
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348   cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6350 _ACEOF
6351
6352 else
6353   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6354 fi
6355 done
6356
6357
6358 fi
6359
6360 if test "$with_krb5" = yes ; then
6361   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6362 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6363 if test "${ac_cv_search_com_err+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   ac_func_search_save_LIBS=$LIBS
6367 ac_cv_search_com_err=no
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6371
6372 /* Override any gcc2 internal prototype to avoid an error.  */
6373 #ifdef __cplusplus
6374 extern "C"
6375 #endif
6376 /* We use char because int might match the return type of a gcc2
6377    builtin and then its argument prototype would still apply.  */
6378 char com_err ();
6379 #ifdef F77_DUMMY_MAIN
6380 #  ifdef __cplusplus
6381      extern "C"
6382 #  endif
6383    int F77_DUMMY_MAIN() { return 1; }
6384 #endif
6385 int
6386 main ()
6387 {
6388 com_err ();
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395   (eval $ac_link) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -s conftest$ac_exeext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   ac_cv_search_com_err="none required"
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 fi
6410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6411 if test "$ac_cv_search_com_err" = no; then
6412   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6413     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6414     cat >conftest.$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6416 #include "confdefs.h"
6417
6418 /* Override any gcc2 internal prototype to avoid an error.  */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 /* We use char because int might match the return type of a gcc2
6423    builtin and then its argument prototype would still apply.  */
6424 char com_err ();
6425 #ifdef F77_DUMMY_MAIN
6426 #  ifdef __cplusplus
6427      extern "C"
6428 #  endif
6429    int F77_DUMMY_MAIN() { return 1; }
6430 #endif
6431 int
6432 main ()
6433 {
6434 com_err ();
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441   (eval $ac_link) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } &&
6445          { ac_try='test -s conftest$ac_exeext'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   ac_cv_search_com_err="-l$ac_lib"
6452 break
6453 else
6454   echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 fi
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458   done
6459 fi
6460 LIBS=$ac_func_search_save_LIBS
6461 fi
6462 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6463 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6464 if test "$ac_cv_search_com_err" != no; then
6465   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6466
6467 else
6468   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6469 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6470    { (exit 1); exit 1; }; }
6471 fi
6472
6473   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6474 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6475 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   ac_func_search_save_LIBS=$LIBS
6479 ac_cv_search_krb5_encrypt=no
6480 cat >conftest.$ac_ext <<_ACEOF
6481 #line $LINENO "configure"
6482 #include "confdefs.h"
6483
6484 /* Override any gcc2 internal prototype to avoid an error.  */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 /* We use char because int might match the return type of a gcc2
6489    builtin and then its argument prototype would still apply.  */
6490 char krb5_encrypt ();
6491 #ifdef F77_DUMMY_MAIN
6492 #  ifdef __cplusplus
6493      extern "C"
6494 #  endif
6495    int F77_DUMMY_MAIN() { return 1; }
6496 #endif
6497 int
6498 main ()
6499 {
6500 krb5_encrypt ();
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507   (eval $ac_link) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); } &&
6511          { ac_try='test -s conftest$ac_exeext'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; }; then
6517   ac_cv_search_krb5_encrypt="none required"
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6521 fi
6522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6523 if test "$ac_cv_search_krb5_encrypt" = no; then
6524   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6526     cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529
6530 /* Override any gcc2 internal prototype to avoid an error.  */
6531 #ifdef __cplusplus
6532 extern "C"
6533 #endif
6534 /* We use char because int might match the return type of a gcc2
6535    builtin and then its argument prototype would still apply.  */
6536 char krb5_encrypt ();
6537 #ifdef F77_DUMMY_MAIN
6538 #  ifdef __cplusplus
6539      extern "C"
6540 #  endif
6541    int F77_DUMMY_MAIN() { return 1; }
6542 #endif
6543 int
6544 main ()
6545 {
6546 krb5_encrypt ();
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553   (eval $ac_link) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -s conftest$ac_exeext'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563   ac_cv_search_krb5_encrypt="-l$ac_lib"
6564 break
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 fi
6569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6570   done
6571 fi
6572 LIBS=$ac_func_search_save_LIBS
6573 fi
6574 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6575 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6576 if test "$ac_cv_search_krb5_encrypt" != no; then
6577   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6578
6579 else
6580   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6581 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6582    { (exit 1); exit 1; }; }
6583 fi
6584
6585   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6586 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6587 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   ac_func_search_save_LIBS=$LIBS
6591 ac_cv_search_krb5_sendauth=no
6592 cat >conftest.$ac_ext <<_ACEOF
6593 #line $LINENO "configure"
6594 #include "confdefs.h"
6595
6596 /* Override any gcc2 internal prototype to avoid an error.  */
6597 #ifdef __cplusplus
6598 extern "C"
6599 #endif
6600 /* We use char because int might match the return type of a gcc2
6601    builtin and then its argument prototype would still apply.  */
6602 char krb5_sendauth ();
6603 #ifdef F77_DUMMY_MAIN
6604 #  ifdef __cplusplus
6605      extern "C"
6606 #  endif
6607    int F77_DUMMY_MAIN() { return 1; }
6608 #endif
6609 int
6610 main ()
6611 {
6612 krb5_sendauth ();
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext conftest$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619   (eval $ac_link) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } &&
6623          { ac_try='test -s conftest$ac_exeext'
6624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625   (eval $ac_try) 2>&5
6626   ac_status=$?
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); }; }; then
6629   ac_cv_search_krb5_sendauth="none required"
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6633 fi
6634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6635 if test "$ac_cv_search_krb5_sendauth" = no; then
6636   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6638     cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 #include "confdefs.h"
6641
6642 /* Override any gcc2 internal prototype to avoid an error.  */
6643 #ifdef __cplusplus
6644 extern "C"
6645 #endif
6646 /* We use char because int might match the return type of a gcc2
6647    builtin and then its argument prototype would still apply.  */
6648 char krb5_sendauth ();
6649 #ifdef F77_DUMMY_MAIN
6650 #  ifdef __cplusplus
6651      extern "C"
6652 #  endif
6653    int F77_DUMMY_MAIN() { return 1; }
6654 #endif
6655 int
6656 main ()
6657 {
6658 krb5_sendauth ();
6659   ;
6660   return 0;
6661 }
6662 _ACEOF
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665   (eval $ac_link) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); } &&
6669          { ac_try='test -s conftest$ac_exeext'
6670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671   (eval $ac_try) 2>&5
6672   ac_status=$?
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); }; }; then
6675   ac_cv_search_krb5_sendauth="-l$ac_lib"
6676 break
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6680 fi
6681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6682   done
6683 fi
6684 LIBS=$ac_func_search_save_LIBS
6685 fi
6686 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6687 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6688 if test "$ac_cv_search_krb5_sendauth" != no; then
6689   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6690
6691 else
6692   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6693 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6694    { (exit 1); exit 1; }; }
6695 fi
6696
6697 fi
6698
6699 if test "$with_openssl" = yes ; then
6700     if test "$PORTNAME" != "win32"; then
6701
6702 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6703 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6704 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   ac_check_lib_save_LIBS=$LIBS
6708 LIBS="-lcrypto  $LIBS"
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 #include "confdefs.h"
6712
6713 /* Override any gcc2 internal prototype to avoid an error.  */
6714 #ifdef __cplusplus
6715 extern "C"
6716 #endif
6717 /* We use char because int might match the return type of a gcc2
6718    builtin and then its argument prototype would still apply.  */
6719 char CRYPTO_new_ex_data ();
6720 #ifdef F77_DUMMY_MAIN
6721 #  ifdef __cplusplus
6722      extern "C"
6723 #  endif
6724    int F77_DUMMY_MAIN() { return 1; }
6725 #endif
6726 int
6727 main ()
6728 {
6729 CRYPTO_new_ex_data ();
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736   (eval $ac_link) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } &&
6740          { ac_try='test -s conftest$ac_exeext'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; }; then
6746   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6751 fi
6752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6754 fi
6755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6756 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6757 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6758   cat >>confdefs.h <<_ACEOF
6759 #define HAVE_LIBCRYPTO 1
6760 _ACEOF
6761
6762   LIBS="-lcrypto $LIBS"
6763
6764 else
6765   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6766 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6767    { (exit 1); exit 1; }; }
6768 fi
6769
6770
6771 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6772 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6773 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   ac_check_lib_save_LIBS=$LIBS
6777 LIBS="-lssl  $LIBS"
6778 cat >conftest.$ac_ext <<_ACEOF
6779 #line $LINENO "configure"
6780 #include "confdefs.h"
6781
6782 /* Override any gcc2 internal prototype to avoid an error.  */
6783 #ifdef __cplusplus
6784 extern "C"
6785 #endif
6786 /* We use char because int might match the return type of a gcc2
6787    builtin and then its argument prototype would still apply.  */
6788 char SSL_library_init ();
6789 #ifdef F77_DUMMY_MAIN
6790 #  ifdef __cplusplus
6791      extern "C"
6792 #  endif
6793    int F77_DUMMY_MAIN() { return 1; }
6794 #endif
6795 int
6796 main ()
6797 {
6798 SSL_library_init ();
6799   ;
6800   return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext conftest$ac_exeext
6804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805   (eval $ac_link) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } &&
6809          { ac_try='test -s conftest$ac_exeext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815   ac_cv_lib_ssl_SSL_library_init=yes
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 ac_cv_lib_ssl_SSL_library_init=no
6820 fi
6821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 LIBS=$ac_check_lib_save_LIBS
6823 fi
6824 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6825 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6826 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6827   cat >>confdefs.h <<_ACEOF
6828 #define HAVE_LIBSSL 1
6829 _ACEOF
6830
6831   LIBS="-lssl $LIBS"
6832
6833 else
6834   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6835 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6836    { (exit 1); exit 1; }; }
6837 fi
6838
6839   else
6840
6841 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6842 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6843 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   ac_check_lib_save_LIBS=$LIBS
6847 LIBS="-leay32  $LIBS"
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #line $LINENO "configure"
6850 #include "confdefs.h"
6851
6852 /* Override any gcc2 internal prototype to avoid an error.  */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857    builtin and then its argument prototype would still apply.  */
6858 char CRYPTO_new_ex_data ();
6859 #ifdef F77_DUMMY_MAIN
6860 #  ifdef __cplusplus
6861      extern "C"
6862 #  endif
6863    int F77_DUMMY_MAIN() { return 1; }
6864 #endif
6865 int
6866 main ()
6867 {
6868 CRYPTO_new_ex_data ();
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875   (eval $ac_link) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -s conftest$ac_exeext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6886 else
6887   echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6890 fi
6891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892 LIBS=$ac_check_lib_save_LIBS
6893 fi
6894 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6895 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6896 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6897   cat >>confdefs.h <<_ACEOF
6898 #define HAVE_LIBEAY32 1
6899 _ACEOF
6900
6901   LIBS="-leay32 $LIBS"
6902
6903 else
6904   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6905 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6906    { (exit 1); exit 1; }; }
6907 fi
6908
6909
6910 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
6911 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
6912 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   ac_check_lib_save_LIBS=$LIBS
6916 LIBS="-lssleay32  $LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6920
6921 /* Override any gcc2 internal prototype to avoid an error.  */
6922 #ifdef __cplusplus
6923 extern "C"
6924 #endif
6925 /* We use char because int might match the return type of a gcc2
6926    builtin and then its argument prototype would still apply.  */
6927 char SSL_library_init ();
6928 #ifdef F77_DUMMY_MAIN
6929 #  ifdef __cplusplus
6930      extern "C"
6931 #  endif
6932    int F77_DUMMY_MAIN() { return 1; }
6933 #endif
6934 int
6935 main ()
6936 {
6937 SSL_library_init ();
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } &&
6948          { ac_try='test -s conftest$ac_exeext'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; }; then
6954   ac_cv_lib_ssleay32_SSL_library_init=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 ac_cv_lib_ssleay32_SSL_library_init=no
6959 fi
6960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6962 fi
6963 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
6964 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
6965 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
6966   cat >>confdefs.h <<_ACEOF
6967 #define HAVE_LIBSSLEAY32 1
6968 _ACEOF
6969
6970   LIBS="-lssleay32 $LIBS"
6971
6972 else
6973   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
6974 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
6975    { (exit 1); exit 1; }; }
6976 fi
6977
6978   fi
6979 fi
6980
6981 if test "$with_pam" = yes ; then
6982
6983 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6984 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6985 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   ac_check_lib_save_LIBS=$LIBS
6989 LIBS="-lpam  $LIBS"
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line $LINENO "configure"
6992 #include "confdefs.h"
6993
6994 /* Override any gcc2 internal prototype to avoid an error.  */
6995 #ifdef __cplusplus
6996 extern "C"
6997 #endif
6998 /* We use char because int might match the return type of a gcc2
6999    builtin and then its argument prototype would still apply.  */
7000 char pam_start ();
7001 #ifdef F77_DUMMY_MAIN
7002 #  ifdef __cplusplus
7003      extern "C"
7004 #  endif
7005    int F77_DUMMY_MAIN() { return 1; }
7006 #endif
7007 int
7008 main ()
7009 {
7010 pam_start ();
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017   (eval $ac_link) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } &&
7021          { ac_try='test -s conftest$ac_exeext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_lib_pam_pam_start=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 ac_cv_lib_pam_pam_start=no
7032 fi
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7035 fi
7036 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7037 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7038 if test $ac_cv_lib_pam_pam_start = yes; then
7039   cat >>confdefs.h <<_ACEOF
7040 #define HAVE_LIBPAM 1
7041 _ACEOF
7042
7043   LIBS="-lpam $LIBS"
7044
7045 else
7046   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7047 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7048    { (exit 1); exit 1; }; }
7049 fi
7050
7051 fi
7052
7053
7054 ##
7055 ## Header files
7056 ##
7057
7058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7060 if test "${ac_cv_header_stdc+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   cat >conftest.$ac_ext <<_ACEOF
7064 #line $LINENO "configure"
7065 #include "confdefs.h"
7066 #include <stdlib.h>
7067 #include <stdarg.h>
7068 #include <string.h>
7069 #include <float.h>
7070
7071 _ACEOF
7072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074   ac_status=$?
7075   egrep -v '^ *\+' conftest.er1 >conftest.err
7076   rm -f conftest.er1
7077   cat conftest.err >&5
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } >/dev/null; then
7080   if test -s conftest.err; then
7081     ac_cpp_err=$ac_c_preproc_warn_flag
7082   else
7083     ac_cpp_err=
7084   fi
7085 else
7086   ac_cpp_err=yes
7087 fi
7088 if test -z "$ac_cpp_err"; then
7089   ac_cv_header_stdc=yes
7090 else
7091   echo "$as_me: failed program was:" >&5
7092   cat conftest.$ac_ext >&5
7093   ac_cv_header_stdc=no
7094 fi
7095 rm -f conftest.err conftest.$ac_ext
7096
7097 if test $ac_cv_header_stdc = yes; then
7098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099   cat >conftest.$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102 #include <string.h>
7103
7104 _ACEOF
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106   egrep "memchr" >/dev/null 2>&1; then
7107   :
7108 else
7109   ac_cv_header_stdc=no
7110 fi
7111 rm -f conftest*
7112
7113 fi
7114
7115 if test $ac_cv_header_stdc = yes; then
7116   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117   cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7120 #include <stdlib.h>
7121
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124   egrep "free" >/dev/null 2>&1; then
7125   :
7126 else
7127   ac_cv_header_stdc=no
7128 fi
7129 rm -f conftest*
7130
7131 fi
7132
7133 if test $ac_cv_header_stdc = yes; then
7134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7135   if test "$cross_compiling" = yes; then
7136   :
7137 else
7138   cat >conftest.$ac_ext <<_ACEOF
7139 #line $LINENO "configure"
7140 #include "confdefs.h"
7141 #include <ctype.h>
7142 #if ((' ' & 0x0FF) == 0x020)
7143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7145 #else
7146 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7147                      || ('j' <= (c) && (c) <= 'r') \
7148                      || ('s' <= (c) && (c) <= 'z'))
7149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7150 #endif
7151
7152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7153 int
7154 main ()
7155 {
7156   int i;
7157   for (i = 0; i < 256; i++)
7158     if (XOR (islower (i), ISLOWER (i))
7159         || toupper (i) != TOUPPER (i))
7160       exit(2);
7161   exit (0);
7162 }
7163 _ACEOF
7164 rm -f conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166   (eval $ac_link) 2>&5
7167   ac_status=$?
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; }; then
7175   :
7176 else
7177   echo "$as_me: program exited with status $ac_status" >&5
7178 echo "$as_me: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7180 ( exit $ac_status )
7181 ac_cv_header_stdc=no
7182 fi
7183 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 fi
7186 fi
7187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7189 if test $ac_cv_header_stdc = yes; then
7190
7191 cat >>confdefs.h <<\_ACEOF
7192 #define STDC_HEADERS 1
7193 _ACEOF
7194
7195 fi
7196
7197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7208                   inttypes.h stdint.h unistd.h
7209 do
7210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 echo "$as_me:$LINENO: checking for $ac_header" >&5
7212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   cat >conftest.$ac_ext <<_ACEOF
7217 #line $LINENO "configure"
7218 #include "confdefs.h"
7219 $ac_includes_default
7220
7221 #include <$ac_header>
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225   (eval $ac_compile) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -s conftest.$ac_objext'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; }; then
7235   eval "$as_ac_Header=yes"
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 cat conftest.$ac_ext >&5
7239 eval "$as_ac_Header=no"
7240 fi
7241 rm -f conftest.$ac_objext conftest.$ac_ext
7242 fi
7243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246   cat >>confdefs.h <<_ACEOF
7247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7248 _ACEOF
7249
7250 fi
7251
7252 done
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7281 do
7282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284   echo "$as_me:$LINENO: checking for $ac_header" >&5
7285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 fi
7289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7291 else
7292   # Is the header compilable?
7293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7296 #line $LINENO "configure"
7297 #include "confdefs.h"
7298 $ac_includes_default
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   ac_header_compiler=yes
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 ac_header_compiler=no
7318 fi
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7322
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7328 #include "confdefs.h"
7329 #include <$ac_header>
7330 _ACEOF
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7333   ac_status=$?
7334   egrep -v '^ *\+' conftest.er1 >conftest.err
7335   rm -f conftest.er1
7336   cat conftest.err >&5
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); } >/dev/null; then
7339   if test -s conftest.err; then
7340     ac_cpp_err=$ac_c_preproc_warn_flag
7341   else
7342     ac_cpp_err=
7343   fi
7344 else
7345   ac_cpp_err=yes
7346 fi
7347 if test -z "$ac_cpp_err"; then
7348   ac_header_preproc=yes
7349 else
7350   echo "$as_me: failed program was:" >&5
7351   cat conftest.$ac_ext >&5
7352   ac_header_preproc=no
7353 fi
7354 rm -f conftest.err conftest.$ac_ext
7355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7356 echo "${ECHO_T}$ac_header_preproc" >&6
7357
7358 # So?  What about this header?
7359 case $ac_header_compiler:$ac_header_preproc in
7360   yes:no )
7361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7365   no:yes )
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7372 esac
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   eval "$as_ac_Header=$ac_header_preproc"
7379 fi
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7382
7383 fi
7384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7385   cat >>confdefs.h <<_ACEOF
7386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387 _ACEOF
7388
7389 fi
7390
7391 done
7392
7393
7394 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7395 # netinet/in.h is included first.
7396
7397 for ac_header in netinet/in.h
7398 do
7399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7401   echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 fi
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 else
7409   # Is the header compilable?
7410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7412 cat >conftest.$ac_ext <<_ACEOF
7413 #line $LINENO "configure"
7414 #include "confdefs.h"
7415 $ac_includes_default
7416 #include <$ac_header>
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420   (eval $ac_compile) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } &&
7424          { ac_try='test -s conftest.$ac_objext'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; }; then
7430   ac_header_compiler=yes
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 ac_header_compiler=no
7435 fi
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438 echo "${ECHO_T}$ac_header_compiler" >&6
7439
7440 # Is the header present?
7441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <$ac_header>
7447 _ACEOF
7448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450   ac_status=$?
7451   egrep -v '^ *\+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } >/dev/null; then
7456   if test -s conftest.err; then
7457     ac_cpp_err=$ac_c_preproc_warn_flag
7458   else
7459     ac_cpp_err=
7460   fi
7461 else
7462   ac_cpp_err=yes
7463 fi
7464 if test -z "$ac_cpp_err"; then
7465   ac_header_preproc=yes
7466 else
7467   echo "$as_me: failed program was:" >&5
7468   cat conftest.$ac_ext >&5
7469   ac_header_preproc=no
7470 fi
7471 rm -f conftest.err conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6
7474
7475 # So?  What about this header?
7476 case $ac_header_compiler:$ac_header_preproc in
7477   yes:no )
7478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7482   no:yes )
7483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7489 esac
7490 echo "$as_me:$LINENO: checking for $ac_header" >&5
7491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   eval "$as_ac_Header=$ac_header_preproc"
7496 fi
7497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7499
7500 fi
7501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7502   cat >>confdefs.h <<_ACEOF
7503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7504 _ACEOF
7505
7506 fi
7507
7508 done
7509
7510
7511 for ac_header in netinet/tcp.h
7512 do
7513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 #include "confdefs.h"
7522 $ac_includes_default
7523 #ifdef HAVE_NETINET_IN_H
7524 #include <netinet/in.h>
7525 #endif
7526
7527
7528 #include <$ac_header>
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532   (eval $ac_compile) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); } &&
7536          { ac_try='test -s conftest.$ac_objext'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; }; then
7542   eval "$as_ac_Header=yes"
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7546 eval "$as_ac_Header=no"
7547 fi
7548 rm -f conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7553   cat >>confdefs.h <<_ACEOF
7554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 _ACEOF
7556
7557 fi
7558
7559 done
7560
7561
7562 if test "$with_readline" = yes; then
7563
7564 for ac_header in readline/readline.h
7565 do
7566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568   echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 fi
7573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7575 else
7576   # Is the header compilable?
7577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7582 $ac_includes_default
7583 #include <$ac_header>
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7587   (eval $ac_compile) 2>&5
7588   ac_status=$?
7589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } &&
7591          { ac_try='test -s conftest.$ac_objext'
7592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593   (eval $ac_try) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); }; }; then
7597   ac_header_compiler=yes
7598 else
7599   echo "$as_me: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 ac_header_compiler=no
7602 fi
7603 rm -f conftest.$ac_objext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7605 echo "${ECHO_T}$ac_header_compiler" >&6
7606
7607 # Is the header present?
7608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 #include <$ac_header>
7614 _ACEOF
7615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7617   ac_status=$?
7618   egrep -v '^ *\+' conftest.er1 >conftest.err
7619   rm -f conftest.er1
7620   cat conftest.err >&5
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } >/dev/null; then
7623   if test -s conftest.err; then
7624     ac_cpp_err=$ac_c_preproc_warn_flag
7625   else
7626     ac_cpp_err=
7627   fi
7628 else
7629   ac_cpp_err=yes
7630 fi
7631 if test -z "$ac_cpp_err"; then
7632   ac_header_preproc=yes
7633 else
7634   echo "$as_me: failed program was:" >&5
7635   cat conftest.$ac_ext >&5
7636   ac_header_preproc=no
7637 fi
7638 rm -f conftest.err conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6
7641
7642 # So?  What about this header?
7643 case $ac_header_compiler:$ac_header_preproc in
7644   yes:no )
7645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
7650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7652     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7656 esac
7657 echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   eval "$as_ac_Header=$ac_header_preproc"
7663 fi
7664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666
7667 fi
7668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7669   cat >>confdefs.h <<_ACEOF
7670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7672
7673 else
7674
7675 for ac_header in editline/readline.h
7676 do
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679   echo "$as_me:$LINENO: checking for $ac_header" >&5
7680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 fi
7684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686 else
7687   # Is the header compilable?
7688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7690 cat >conftest.$ac_ext <<_ACEOF
7691 #line $LINENO "configure"
7692 #include "confdefs.h"
7693 $ac_includes_default
7694 #include <$ac_header>
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698   (eval $ac_compile) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } &&
7702          { ac_try='test -s conftest.$ac_objext'
7703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704   (eval $ac_try) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; }; then
7708   ac_header_compiler=yes
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7712 ac_header_compiler=no
7713 fi
7714 rm -f conftest.$ac_objext conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7716 echo "${ECHO_T}$ac_header_compiler" >&6
7717
7718 # Is the header present?
7719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7721 cat >conftest.$ac_ext <<_ACEOF
7722 #line $LINENO "configure"
7723 #include "confdefs.h"
7724 #include <$ac_header>
7725 _ACEOF
7726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7728   ac_status=$?
7729   egrep -v '^ *\+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } >/dev/null; then
7734   if test -s conftest.err; then
7735     ac_cpp_err=$ac_c_preproc_warn_flag
7736   else
7737     ac_cpp_err=
7738   fi
7739 else
7740   ac_cpp_err=yes
7741 fi
7742 if test -z "$ac_cpp_err"; then
7743   ac_header_preproc=yes
7744 else
7745   echo "$as_me: failed program was:" >&5
7746   cat conftest.$ac_ext >&5
7747   ac_header_preproc=no
7748 fi
7749 rm -f conftest.err conftest.$ac_ext
7750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7751 echo "${ECHO_T}$ac_header_preproc" >&6
7752
7753 # So?  What about this header?
7754 case $ac_header_compiler:$ac_header_preproc in
7755   yes:no )
7756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7760   no:yes )
7761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7763     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7767 esac
7768 echo "$as_me:$LINENO: checking for $ac_header" >&5
7769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   eval "$as_ac_Header=$ac_header_preproc"
7774 fi
7775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777
7778 fi
7779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7780   cat >>confdefs.h <<_ACEOF
7781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782 _ACEOF
7783
7784 else
7785
7786 for ac_header in readline.h
7787 do
7788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7790   echo "$as_me:$LINENO: checking for $ac_header" >&5
7791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 fi
7795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7797 else
7798   # Is the header compilable?
7799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line $LINENO "configure"
7803 #include "confdefs.h"
7804 $ac_includes_default
7805 #include <$ac_header>
7806 _ACEOF
7807 rm -f conftest.$ac_objext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7809   (eval $ac_compile) 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -s conftest.$ac_objext'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; }; then
7819   ac_header_compiler=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7823 ac_header_compiler=no
7824 fi
7825 rm -f conftest.$ac_objext conftest.$ac_ext
7826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7827 echo "${ECHO_T}$ac_header_compiler" >&6
7828
7829 # Is the header present?
7830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7834 #include "confdefs.h"
7835 #include <$ac_header>
7836 _ACEOF
7837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7839   ac_status=$?
7840   egrep -v '^ *\+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } >/dev/null; then
7845   if test -s conftest.err; then
7846     ac_cpp_err=$ac_c_preproc_warn_flag
7847   else
7848     ac_cpp_err=
7849   fi
7850 else
7851   ac_cpp_err=yes
7852 fi
7853 if test -z "$ac_cpp_err"; then
7854   ac_header_preproc=yes
7855 else
7856   echo "$as_me: failed program was:" >&5
7857   cat conftest.$ac_ext >&5
7858   ac_header_preproc=no
7859 fi
7860 rm -f conftest.err conftest.$ac_ext
7861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7862 echo "${ECHO_T}$ac_header_preproc" >&6
7863
7864 # So?  What about this header?
7865 case $ac_header_compiler:$ac_header_preproc in
7866   yes:no )
7867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7871   no:yes )
7872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7878 esac
7879 echo "$as_me:$LINENO: checking for $ac_header" >&5
7880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   eval "$as_ac_Header=$ac_header_preproc"
7885 fi
7886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7888
7889 fi
7890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7891   cat >>confdefs.h <<_ACEOF
7892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7893 _ACEOF
7894
7895 else
7896   { { echo "$as_me:$LINENO: error: readline header not found
7897 If you have readline already installed, see config.log for details on the
7898 failure.  It is possible the compiler isn't looking in the proper directory.
7899 Use --without-readline to disable readline support." >&5
7900 echo "$as_me: error: readline header not found
7901 If you have readline already installed, see config.log for details on the
7902 failure.  It is possible the compiler isn't looking in the proper directory.
7903 Use --without-readline to disable readline support." >&2;}
7904    { (exit 1); exit 1; }; }
7905 fi
7906
7907 done
7908
7909 fi
7910
7911 done
7912
7913 fi
7914
7915 done
7916
7917
7918 for ac_header in readline/history.h
7919 do
7920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922   echo "$as_me:$LINENO: checking for $ac_header" >&5
7923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 fi
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929 else
7930   # Is the header compilable?
7931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 #include "confdefs.h"
7936 $ac_includes_default
7937 #include <$ac_header>
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941   (eval $ac_compile) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } &&
7945          { ac_try='test -s conftest.$ac_objext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   ac_header_compiler=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_header_compiler=no
7956 fi
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959 echo "${ECHO_T}$ac_header_compiler" >&6
7960
7961 # Is the header present?
7962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 #include "confdefs.h"
7967 #include <$ac_header>
7968 _ACEOF
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7971   ac_status=$?
7972   egrep -v '^ *\+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } >/dev/null; then
7977   if test -s conftest.err; then
7978     ac_cpp_err=$ac_c_preproc_warn_flag
7979   else
7980     ac_cpp_err=
7981   fi
7982 else
7983   ac_cpp_err=yes
7984 fi
7985 if test -z "$ac_cpp_err"; then
7986   ac_header_preproc=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989   cat conftest.$ac_ext >&5
7990   ac_header_preproc=no
7991 fi
7992 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6
7995
7996 # So?  What about this header?
7997 case $ac_header_compiler:$ac_header_preproc in
7998   yes:no )
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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   no:yes )
8004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8010 esac
8011 echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   eval "$as_ac_Header=$ac_header_preproc"
8017 fi
8018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8020
8021 fi
8022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8023   cat >>confdefs.h <<_ACEOF
8024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8025 _ACEOF
8026
8027 else
8028
8029 for ac_header in editline/history.h
8030 do
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8033   echo "$as_me:$LINENO: checking for $ac_header" >&5
8034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 fi
8038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8040 else
8041   # Is the header compilable?
8042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #include <$ac_header>
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052   (eval $ac_compile) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_header_compiler=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_compiler=no
8067 fi
8068 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8070 echo "${ECHO_T}$ac_header_compiler" >&6
8071
8072 # Is the header present?
8073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 #include <$ac_header>
8079 _ACEOF
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082   ac_status=$?
8083   egrep -v '^ *\+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } >/dev/null; then
8088   if test -s conftest.err; then
8089     ac_cpp_err=$ac_c_preproc_warn_flag
8090   else
8091     ac_cpp_err=
8092   fi
8093 else
8094   ac_cpp_err=yes
8095 fi
8096 if test -z "$ac_cpp_err"; then
8097   ac_header_preproc=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100   cat conftest.$ac_ext >&5
8101   ac_header_preproc=no
8102 fi
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8106
8107 # So?  What about this header?
8108 case $ac_header_compiler:$ac_header_preproc in
8109   yes:no )
8110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8114   no:yes )
8115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8117     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8121 esac
8122 echo "$as_me:$LINENO: checking for $ac_header" >&5
8123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   eval "$as_ac_Header=$ac_header_preproc"
8128 fi
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8131
8132 fi
8133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8134   cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8136 _ACEOF
8137
8138 else
8139
8140 for ac_header in history.h
8141 do
8142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8144   echo "$as_me:$LINENO: checking for $ac_header" >&5
8145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 fi
8149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8151 else
8152   # Is the header compilable?
8153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 $ac_includes_default
8159 #include <$ac_header>
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163   (eval $ac_compile) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   ac_header_compiler=yes
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 ac_header_compiler=no
8178 fi
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8181 echo "${ECHO_T}$ac_header_compiler" >&6
8182
8183 # Is the header present?
8184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 #include "confdefs.h"
8189 #include <$ac_header>
8190 _ACEOF
8191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8193   ac_status=$?
8194   egrep -v '^ *\+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } >/dev/null; then
8199   if test -s conftest.err; then
8200     ac_cpp_err=$ac_c_preproc_warn_flag
8201   else
8202     ac_cpp_err=
8203   fi
8204 else
8205   ac_cpp_err=yes
8206 fi
8207 if test -z "$ac_cpp_err"; then
8208   ac_header_preproc=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211   cat conftest.$ac_ext >&5
8212   ac_header_preproc=no
8213 fi
8214 rm -f conftest.err conftest.$ac_ext
8215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8216 echo "${ECHO_T}$ac_header_preproc" >&6
8217
8218 # So?  What about this header?
8219 case $ac_header_compiler:$ac_header_preproc in
8220   yes:no )
8221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8225   no:yes )
8226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8228     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8232 esac
8233 echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   eval "$as_ac_Header=$ac_header_preproc"
8239 fi
8240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8242
8243 fi
8244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8245   cat >>confdefs.h <<_ACEOF
8246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 _ACEOF
8248
8249 else
8250   { { echo "$as_me:$LINENO: error: history header not found
8251 If you have readline already installed, see config.log for details on the
8252 failure.  It is possible the compiler isn't looking in the proper directory.
8253 Use --without-readline to disable readline support." >&5
8254 echo "$as_me: error: history header not found
8255 If you have readline already installed, see config.log for details on the
8256 failure.  It is possible the compiler isn't looking in the proper directory.
8257 Use --without-readline to disable readline support." >&2;}
8258    { (exit 1); exit 1; }; }
8259 fi
8260
8261 done
8262
8263 fi
8264
8265 done
8266
8267 fi
8268
8269 done
8270
8271 fi
8272
8273 if test "$with_zlib" = yes; then
8274   if test "${ac_cv_header_zlib_h+set}" = set; then
8275   echo "$as_me:$LINENO: checking for zlib.h" >&5
8276 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8277 if test "${ac_cv_header_zlib_h+set}" = set; then
8278   echo $ECHO_N "(cached) $ECHO_C" >&6
8279 fi
8280 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8282 else
8283   # Is the header compilable?
8284 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8285 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8289 $ac_includes_default
8290 #include <zlib.h>
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294   (eval $ac_compile) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_header_compiler=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 ac_header_compiler=no
8309 fi
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8312 echo "${ECHO_T}$ac_header_compiler" >&6
8313
8314 # Is the header present?
8315 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8316 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8319 #include "confdefs.h"
8320 #include <zlib.h>
8321 _ACEOF
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8324   ac_status=$?
8325   egrep -v '^ *\+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } >/dev/null; then
8330   if test -s conftest.err; then
8331     ac_cpp_err=$ac_c_preproc_warn_flag
8332   else
8333     ac_cpp_err=
8334   fi
8335 else
8336   ac_cpp_err=yes
8337 fi
8338 if test -z "$ac_cpp_err"; then
8339   ac_header_preproc=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342   cat conftest.$ac_ext >&5
8343   ac_header_preproc=no
8344 fi
8345 rm -f conftest.err conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6
8348
8349 # So?  What about this header?
8350 case $ac_header_compiler:$ac_header_preproc in
8351   yes:no )
8352     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8355 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8356   no:yes )
8357     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8362 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8363 esac
8364 echo "$as_me:$LINENO: checking for zlib.h" >&5
8365 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8366 if test "${ac_cv_header_zlib_h+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   ac_cv_header_zlib_h=$ac_header_preproc
8370 fi
8371 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8372 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8373
8374 fi
8375 if test $ac_cv_header_zlib_h = yes; then
8376   :
8377 else
8378   { { echo "$as_me:$LINENO: error: zlib header not found
8379 If you have zlib already installed, see config.log for details on the
8380 failure.  It is possible the compiler isn't looking in the proper directory.
8381 Use --without-zlib to disable zlib support." >&5
8382 echo "$as_me: error: zlib header not found
8383 If you have zlib already installed, see config.log for details on the
8384 failure.  It is possible the compiler isn't looking in the proper directory.
8385 Use --without-zlib to disable zlib support." >&2;}
8386    { (exit 1); exit 1; }; }
8387 fi
8388
8389
8390 fi
8391
8392 if test "$with_krb4" = yes ; then
8393   if test "${ac_cv_header_krb_h+set}" = set; then
8394   echo "$as_me:$LINENO: checking for krb.h" >&5
8395 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8396 if test "${ac_cv_header_krb_h+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8400 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8401 else
8402   # Is the header compilable?
8403 echo "$as_me:$LINENO: checking krb.h usability" >&5
8404 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 #include "confdefs.h"
8408 $ac_includes_default
8409 #include <krb.h>
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413   (eval $ac_compile) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -s conftest.$ac_objext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_header_compiler=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8427 ac_header_compiler=no
8428 fi
8429 rm -f conftest.$ac_objext conftest.$ac_ext
8430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431 echo "${ECHO_T}$ac_header_compiler" >&6
8432
8433 # Is the header present?
8434 echo "$as_me:$LINENO: checking krb.h presence" >&5
8435 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 #line $LINENO "configure"
8438 #include "confdefs.h"
8439 #include <krb.h>
8440 _ACEOF
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443   ac_status=$?
8444   egrep -v '^ *\+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } >/dev/null; then
8449   if test -s conftest.err; then
8450     ac_cpp_err=$ac_c_preproc_warn_flag
8451   else
8452     ac_cpp_err=
8453   fi
8454 else
8455   ac_cpp_err=yes
8456 fi
8457 if test -z "$ac_cpp_err"; then
8458   ac_header_preproc=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461   cat conftest.$ac_ext >&5
8462   ac_header_preproc=no
8463 fi
8464 rm -f conftest.err conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8466 echo "${ECHO_T}$ac_header_preproc" >&6
8467
8468 # So?  What about this header?
8469 case $ac_header_compiler:$ac_header_preproc in
8470   yes:no )
8471     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8472 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8473     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8474 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8475   no:yes )
8476     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8477 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8478     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8479 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8480     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8481 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8482 esac
8483 echo "$as_me:$LINENO: checking for krb.h" >&5
8484 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8485 if test "${ac_cv_header_krb_h+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_cv_header_krb_h=$ac_header_preproc
8489 fi
8490 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8491 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8492
8493 fi
8494 if test $ac_cv_header_krb_h = yes; then
8495   :
8496 else
8497   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8498 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8499    { (exit 1); exit 1; }; }
8500 fi
8501
8502
8503 fi
8504
8505 if test "$with_krb5" = yes ; then
8506   if test "${ac_cv_header_krb5_h+set}" = set; then
8507   echo "$as_me:$LINENO: checking for krb5.h" >&5
8508 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8509 if test "${ac_cv_header_krb5_h+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 fi
8512 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8513 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8514 else
8515   # Is the header compilable?
8516 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8517 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 #include "confdefs.h"
8521 $ac_includes_default
8522 #include <krb5.h>
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526   (eval $ac_compile) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -s conftest.$ac_objext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   ac_header_compiler=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8540 ac_header_compiler=no
8541 fi
8542 rm -f conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8544 echo "${ECHO_T}$ac_header_compiler" >&6
8545
8546 # Is the header present?
8547 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8548 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 #line $LINENO "configure"
8551 #include "confdefs.h"
8552 #include <krb5.h>
8553 _ACEOF
8554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8556   ac_status=$?
8557   egrep -v '^ *\+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } >/dev/null; then
8562   if test -s conftest.err; then
8563     ac_cpp_err=$ac_c_preproc_warn_flag
8564   else
8565     ac_cpp_err=
8566   fi
8567 else
8568   ac_cpp_err=yes
8569 fi
8570 if test -z "$ac_cpp_err"; then
8571   ac_header_preproc=yes
8572 else
8573   echo "$as_me: failed program was:" >&5
8574   cat conftest.$ac_ext >&5
8575   ac_header_preproc=no
8576 fi
8577 rm -f conftest.err conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8579 echo "${ECHO_T}$ac_header_preproc" >&6
8580
8581 # So?  What about this header?
8582 case $ac_header_compiler:$ac_header_preproc in
8583   yes:no )
8584     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8585 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8588   no:yes )
8589     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8590 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8592 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8594 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8595 esac
8596 echo "$as_me:$LINENO: checking for krb5.h" >&5
8597 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8598 if test "${ac_cv_header_krb5_h+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   ac_cv_header_krb5_h=$ac_header_preproc
8602 fi
8603 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8604 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8605
8606 fi
8607 if test $ac_cv_header_krb5_h = yes; then
8608   :
8609 else
8610   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8611 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8612    { (exit 1); exit 1; }; }
8613 fi
8614
8615
8616   if test "${ac_cv_header_com_err_h+set}" = set; then
8617   echo "$as_me:$LINENO: checking for com_err.h" >&5
8618 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8619 if test "${ac_cv_header_com_err_h+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 fi
8622 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8623 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8624 else
8625   # Is the header compilable?
8626 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8627 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8631 $ac_includes_default
8632 #include <com_err.h>
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636   (eval $ac_compile) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -s conftest.$ac_objext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_header_compiler=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8650 ac_header_compiler=no
8651 fi
8652 rm -f conftest.$ac_objext conftest.$ac_ext
8653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8654 echo "${ECHO_T}$ac_header_compiler" >&6
8655
8656 # Is the header present?
8657 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8658 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8661 #include "confdefs.h"
8662 #include <com_err.h>
8663 _ACEOF
8664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8666   ac_status=$?
8667   egrep -v '^ *\+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } >/dev/null; then
8672   if test -s conftest.err; then
8673     ac_cpp_err=$ac_c_preproc_warn_flag
8674   else
8675     ac_cpp_err=
8676   fi
8677 else
8678   ac_cpp_err=yes
8679 fi
8680 if test -z "$ac_cpp_err"; then
8681   ac_header_preproc=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684   cat conftest.$ac_ext >&5
8685   ac_header_preproc=no
8686 fi
8687 rm -f conftest.err conftest.$ac_ext
8688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8689 echo "${ECHO_T}$ac_header_preproc" >&6
8690
8691 # So?  What about this header?
8692 case $ac_header_compiler:$ac_header_preproc in
8693   yes:no )
8694     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8695 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8696     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8697 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8698   no:yes )
8699     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8700 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8701     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8702 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8703     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8704 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8705 esac
8706 echo "$as_me:$LINENO: checking for com_err.h" >&5
8707 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8708 if test "${ac_cv_header_com_err_h+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711   ac_cv_header_com_err_h=$ac_header_preproc
8712 fi
8713 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8714 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8715
8716 fi
8717 if test $ac_cv_header_com_err_h = yes; then
8718   :
8719 else
8720   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8721 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8722    { (exit 1); exit 1; }; }
8723 fi
8724
8725
8726 fi
8727
8728 if test "$with_openssl" = yes ; then
8729   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8730   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8731 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8732 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 fi
8735 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8736 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8737 else
8738   # Is the header compilable?
8739 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8740 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 $ac_includes_default
8745 #include <openssl/ssl.h>
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749   (eval $ac_compile) 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -s conftest.$ac_objext'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; }; then
8759   ac_header_compiler=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_header_compiler=no
8764 fi
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8768
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8771 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775 #include <openssl/ssl.h>
8776 _ACEOF
8777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8779   ac_status=$?
8780   egrep -v '^ *\+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } >/dev/null; then
8785   if test -s conftest.err; then
8786     ac_cpp_err=$ac_c_preproc_warn_flag
8787   else
8788     ac_cpp_err=
8789   fi
8790 else
8791   ac_cpp_err=yes
8792 fi
8793 if test -z "$ac_cpp_err"; then
8794   ac_header_preproc=yes
8795 else
8796   echo "$as_me: failed program was:" >&5
8797   cat conftest.$ac_ext >&5
8798   ac_header_preproc=no
8799 fi
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8803
8804 # So?  What about this header?
8805 case $ac_header_compiler:$ac_header_preproc in
8806   yes:no )
8807     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8811   no:yes )
8812     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8814     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8818 esac
8819 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8820 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8821 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8827 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8828
8829 fi
8830 if test $ac_cv_header_openssl_ssl_h = yes; then
8831   :
8832 else
8833   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8834 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8835    { (exit 1); exit 1; }; }
8836 fi
8837
8838
8839   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8840   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8841 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8842 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8843   echo $ECHO_N "(cached) $ECHO_C" >&6
8844 fi
8845 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8846 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8847 else
8848   # Is the header compilable?
8849 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8850 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line $LINENO "configure"
8853 #include "confdefs.h"
8854 $ac_includes_default
8855 #include <openssl/err.h>
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8859   (eval $ac_compile) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } &&
8863          { ac_try='test -s conftest.$ac_objext'
8864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865   (eval $ac_try) 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; }; then
8869   ac_header_compiler=yes
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8873 ac_header_compiler=no
8874 fi
8875 rm -f conftest.$ac_objext conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877 echo "${ECHO_T}$ac_header_compiler" >&6
8878
8879 # Is the header present?
8880 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8881 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 #include "confdefs.h"
8885 #include <openssl/err.h>
8886 _ACEOF
8887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889   ac_status=$?
8890   egrep -v '^ *\+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } >/dev/null; then
8895   if test -s conftest.err; then
8896     ac_cpp_err=$ac_c_preproc_warn_flag
8897   else
8898     ac_cpp_err=
8899   fi
8900 else
8901   ac_cpp_err=yes
8902 fi
8903 if test -z "$ac_cpp_err"; then
8904   ac_header_preproc=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907   cat conftest.$ac_ext >&5
8908   ac_header_preproc=no
8909 fi
8910 rm -f conftest.err conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8912 echo "${ECHO_T}$ac_header_preproc" >&6
8913
8914 # So?  What about this header?
8915 case $ac_header_compiler:$ac_header_preproc in
8916   yes:no )
8917     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8918 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8919     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8920 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8921   no:yes )
8922     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8923 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8924     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8925 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8926     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8928 esac
8929 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8930 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8931 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8932   echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934   ac_cv_header_openssl_err_h=$ac_header_preproc
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8937 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8938
8939 fi
8940 if test $ac_cv_header_openssl_err_h = yes; then
8941   :
8942 else
8943   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8944 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8945    { (exit 1); exit 1; }; }
8946 fi
8947
8948
8949 fi
8950
8951 if test "$with_pam" = yes ; then
8952
8953 for ac_header in security/pam_appl.h
8954 do
8955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957   echo "$as_me:$LINENO: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 fi
8962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964 else
8965   # Is the header compilable?
8966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8970 #include "confdefs.h"
8971 $ac_includes_default
8972 #include <$ac_header>
8973 _ACEOF
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976   (eval $ac_compile) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -s conftest.$ac_objext'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; }; then
8986   ac_header_compiler=yes
8987 else
8988   echo "$as_me: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 ac_header_compiler=no
8991 fi
8992 rm -f conftest.$ac_objext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8994 echo "${ECHO_T}$ac_header_compiler" >&6
8995
8996 # Is the header present?
8997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8999 cat >conftest.$ac_ext <<_ACEOF
9000 #line $LINENO "configure"
9001 #include "confdefs.h"
9002 #include <$ac_header>
9003 _ACEOF
9004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9006   ac_status=$?
9007   egrep -v '^ *\+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } >/dev/null; then
9012   if test -s conftest.err; then
9013     ac_cpp_err=$ac_c_preproc_warn_flag
9014   else
9015     ac_cpp_err=
9016   fi
9017 else
9018   ac_cpp_err=yes
9019 fi
9020 if test -z "$ac_cpp_err"; then
9021   ac_header_preproc=yes
9022 else
9023   echo "$as_me: failed program was:" >&5
9024   cat conftest.$ac_ext >&5
9025   ac_header_preproc=no
9026 fi
9027 rm -f conftest.err conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9029 echo "${ECHO_T}$ac_header_preproc" >&6
9030
9031 # So?  What about this header?
9032 case $ac_header_compiler:$ac_header_preproc in
9033   yes:no )
9034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9038   no:yes )
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9041     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9045 esac
9046 echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   eval "$as_ac_Header=$ac_header_preproc"
9052 fi
9053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9055
9056 fi
9057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9058   cat >>confdefs.h <<_ACEOF
9059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9060 _ACEOF
9061
9062 else
9063
9064 for ac_header in pam/pam_appl.h
9065 do
9066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068   echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9075 else
9076   # Is the header compilable?
9077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9079 cat >conftest.$ac_ext <<_ACEOF
9080 #line $LINENO "configure"
9081 #include "confdefs.h"
9082 $ac_includes_default
9083 #include <$ac_header>
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087   (eval $ac_compile) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } &&
9091          { ac_try='test -s conftest.$ac_objext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_header_compiler=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 ac_header_compiler=no
9102 fi
9103 rm -f conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9106
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 #line $LINENO "configure"
9112 #include "confdefs.h"
9113 #include <$ac_header>
9114 _ACEOF
9115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9117   ac_status=$?
9118   egrep -v '^ *\+' conftest.er1 >conftest.err
9119   rm -f conftest.er1
9120   cat conftest.err >&5
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } >/dev/null; then
9123   if test -s conftest.err; then
9124     ac_cpp_err=$ac_c_preproc_warn_flag
9125   else
9126     ac_cpp_err=
9127   fi
9128 else
9129   ac_cpp_err=yes
9130 fi
9131 if test -z "$ac_cpp_err"; then
9132   ac_header_preproc=yes
9133 else
9134   echo "$as_me: failed program was:" >&5
9135   cat conftest.$ac_ext >&5
9136   ac_header_preproc=no
9137 fi
9138 rm -f conftest.err conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6
9141
9142 # So?  What about this header?
9143 case $ac_header_compiler:$ac_header_preproc in
9144   yes:no )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9149   no:yes )
9150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9156 esac
9157 echo "$as_me:$LINENO: checking for $ac_header" >&5
9158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   eval "$as_ac_Header=$ac_header_preproc"
9163 fi
9164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9166
9167 fi
9168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9169   cat >>confdefs.h <<_ACEOF
9170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 _ACEOF
9172
9173 else
9174   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9175 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9176    { (exit 1); exit 1; }; }
9177 fi
9178
9179 done
9180
9181 fi
9182
9183 done
9184
9185 fi
9186
9187 if test "$with_rendezvous" = yes ; then
9188   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9189   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9190 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9191 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9195 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9196 else
9197   # Is the header compilable?
9198 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9199 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line $LINENO "configure"
9202 #include "confdefs.h"
9203 $ac_includes_default
9204 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9205 _ACEOF
9206 rm -f conftest.$ac_objext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208   (eval $ac_compile) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } &&
9212          { ac_try='test -s conftest.$ac_objext'
9213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214   (eval $ac_try) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; }; then
9218   ac_header_compiler=yes
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9222 ac_header_compiler=no
9223 fi
9224 rm -f conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226 echo "${ECHO_T}$ac_header_compiler" >&6
9227
9228 # Is the header present?
9229 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9230 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9233 #include "confdefs.h"
9234 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9235 _ACEOF
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9238   ac_status=$?
9239   egrep -v '^ *\+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } >/dev/null; then
9244   if test -s conftest.err; then
9245     ac_cpp_err=$ac_c_preproc_warn_flag
9246   else
9247     ac_cpp_err=
9248   fi
9249 else
9250   ac_cpp_err=yes
9251 fi
9252 if test -z "$ac_cpp_err"; then
9253   ac_header_preproc=yes
9254 else
9255   echo "$as_me: failed program was:" >&5
9256   cat conftest.$ac_ext >&5
9257   ac_header_preproc=no
9258 fi
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9262
9263 # So?  What about this header?
9264 case $ac_header_compiler:$ac_header_preproc in
9265   yes:no )
9266     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9270   no:yes )
9271     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9272 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9273     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9274 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9275     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9276 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9277 esac
9278 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9279 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9280 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9284 fi
9285 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9286 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9287
9288 fi
9289 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9290   :
9291 else
9292   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9293 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9294    { (exit 1); exit 1; }; }
9295 fi
9296
9297
9298 fi
9299
9300
9301 ##
9302 ## Types, structures, compiler characteristics
9303 ##
9304
9305
9306 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9307 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9308 if test "${ac_cv_c_const+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   cat >conftest.$ac_ext <<_ACEOF
9312 #line $LINENO "configure"
9313 #include "confdefs.h"
9314
9315 #ifdef F77_DUMMY_MAIN
9316 #  ifdef __cplusplus
9317      extern "C"
9318 #  endif
9319    int F77_DUMMY_MAIN() { return 1; }
9320 #endif
9321 int
9322 main ()
9323 {
9324 /* FIXME: Include the comments suggested by Paul. */
9325 #ifndef __cplusplus
9326   /* Ultrix mips cc rejects this.  */
9327   typedef int charset[2];
9328   const charset x;
9329   /* SunOS 4.1.1 cc rejects this.  */
9330   char const *const *ccp;
9331   char **p;
9332   /* NEC SVR4.0.2 mips cc rejects this.  */
9333   struct point {int x, y;};
9334   static struct point const zero = {0,0};
9335   /* AIX XL C 1.02.0.0 rejects this.
9336      It does not let you subtract one const X* pointer from another in
9337      an arm of an if-expression whose if-part is not a constant
9338      expression */
9339   const char *g = "string";
9340   ccp = &g + (g ? g-g : 0);
9341   /* HPUX 7.0 cc rejects these. */
9342   ++ccp;
9343   p = (char**) ccp;
9344   ccp = (char const *const *) p;
9345   { /* SCO 3.2v4 cc rejects this.  */
9346     char *t;
9347     char const *s = 0 ? (char *) 0 : (char const *) 0;
9348
9349     *t++ = 0;
9350   }
9351   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9352     int x[] = {25, 17};
9353     const int *foo = &x[0];
9354     ++foo;
9355   }
9356   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9357     typedef const int *iptr;
9358     iptr p = 0;
9359     ++p;
9360   }
9361   { /* AIX XL C 1.02.0.0 rejects this saying
9362        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9363     struct s { int j; const int *ap[3]; };
9364     struct s *b; b->j = 5;
9365   }
9366   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9367     const int foo = 10;
9368   }
9369 #endif
9370
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9377   (eval $ac_compile) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -s conftest.$ac_objext'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   ac_cv_c_const=yes
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 ac_cv_c_const=no
9392 fi
9393 rm -f conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9396 echo "${ECHO_T}$ac_cv_c_const" >&6
9397 if test $ac_cv_c_const = no; then
9398
9399 cat >>confdefs.h <<\_ACEOF
9400 #define const
9401 _ACEOF
9402
9403 fi
9404
9405 echo "$as_me:$LINENO: checking for inline" >&5
9406 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9407 if test "${ac_cv_c_inline+set}" = set; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410   ac_cv_c_inline=no
9411 for ac_kw in inline __inline__ __inline; do
9412   cat >conftest.$ac_ext <<_ACEOF
9413 #line $LINENO "configure"
9414 #include "confdefs.h"
9415 #ifndef __cplusplus
9416 typedef int foo_t;
9417 static $ac_kw foo_t static_foo () {return 0; }
9418 $ac_kw int foo () {return 0; }
9419 #endif
9420
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424   (eval $ac_compile) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -s conftest.$ac_objext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   ac_cv_c_inline=$ac_kw; break
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 fi
9439 rm -f conftest.$ac_objext conftest.$ac_ext
9440 done
9441
9442 fi
9443 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9444 echo "${ECHO_T}$ac_cv_c_inline" >&6
9445 case $ac_cv_c_inline in
9446   inline | yes) ;;
9447   no)
9448 cat >>confdefs.h <<\_ACEOF
9449 #define inline
9450 _ACEOF
9451  ;;
9452   *)  cat >>confdefs.h <<_ACEOF
9453 #define inline $ac_cv_c_inline
9454 _ACEOF
9455  ;;
9456 esac
9457
9458 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9459 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9460 if test "${ac_cv_c_stringize+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   cat >conftest.$ac_ext <<_ACEOF
9464 #line $LINENO "configure"
9465 #include "confdefs.h"
9466 #define x(y) #y
9467
9468 char *s = x(teststring);
9469 _ACEOF
9470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9471   egrep "#teststring" >/dev/null 2>&1; then
9472   ac_cv_c_stringize=no
9473 else
9474   ac_cv_c_stringize=yes
9475 fi
9476 rm -f conftest*
9477
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9480 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9481 if test $ac_cv_c_stringize = yes; then
9482
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_STRINGIZE 1
9485 _ACEOF
9486
9487 fi
9488
9489 echo "$as_me:$LINENO: checking for signed types" >&5
9490 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9491 if test "${pgac_cv_c_signed+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497
9498 #ifdef F77_DUMMY_MAIN
9499 #  ifdef __cplusplus
9500      extern "C"
9501 #  endif
9502    int F77_DUMMY_MAIN() { return 1; }
9503 #endif
9504 int
9505 main ()
9506 {
9507 signed char c; signed short s; signed int i;
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514   (eval $ac_compile) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -s conftest.$ac_objext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   pgac_cv_c_signed=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9528 pgac_cv_c_signed=no
9529 fi
9530 rm -f conftest.$ac_objext conftest.$ac_ext
9531 fi
9532 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9533 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9534 if test x"$pgac_cv_c_signed" = xno ; then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define signed
9538 _ACEOF
9539
9540 fi
9541 echo "$as_me:$LINENO: checking for working volatile" >&5
9542 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9543 if test "${ac_cv_c_volatile+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9549
9550 #ifdef F77_DUMMY_MAIN
9551 #  ifdef __cplusplus
9552      extern "C"
9553 #  endif
9554    int F77_DUMMY_MAIN() { return 1; }
9555 #endif
9556 int
9557 main ()
9558 {
9559
9560 volatile int x;
9561 int * volatile y;
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -s conftest.$ac_objext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   ac_cv_c_volatile=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 ac_cv_c_volatile=no
9583 fi
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9587 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9588 if test $ac_cv_c_volatile = no; then
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define volatile
9592 _ACEOF
9593
9594 fi
9595
9596 echo "$as_me:$LINENO: checking for __func__" >&5
9597 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9598 if test "${pgac_cv_funcname_func_support+set}" = set; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9604 #include <stdio.h>
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 printf("%s\n", __func__);
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621   (eval $ac_compile) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -s conftest.$ac_objext'
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   pgac_cv_funcname_func_support=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 pgac_cv_funcname_func_support=no
9636 fi
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9638 fi
9639 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9640 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9641 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9642
9643 cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_FUNCNAME__FUNC 1
9645 _ACEOF
9646
9647 else
9648 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9649 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9650 if test "${pgac_cv_funcname_function_support+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 #include "confdefs.h"
9656 #include <stdio.h>
9657 #ifdef F77_DUMMY_MAIN
9658 #  ifdef __cplusplus
9659      extern "C"
9660 #  endif
9661    int F77_DUMMY_MAIN() { return 1; }
9662 #endif
9663 int
9664 main ()
9665 {
9666 printf("%s\n", __FUNCTION__);
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673   (eval $ac_compile) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -s conftest.$ac_objext'
9678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679   (eval $ac_try) 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); }; }; then
9683   pgac_cv_funcname_function_support=yes
9684 else
9685   echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 pgac_cv_funcname_function_support=no
9688 fi
9689 rm -f conftest.$ac_objext conftest.$ac_ext
9690 fi
9691 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9692 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9693 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9694
9695 cat >>confdefs.h <<\_ACEOF
9696 #define HAVE_FUNCNAME__FUNCTION 1
9697 _ACEOF
9698
9699 fi
9700 fi
9701 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9702 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9703 if test "${ac_cv_struct_tm+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   cat >conftest.$ac_ext <<_ACEOF
9707 #line $LINENO "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9710 #include <time.h>
9711
9712 #ifdef F77_DUMMY_MAIN
9713 #  ifdef __cplusplus
9714      extern "C"
9715 #  endif
9716    int F77_DUMMY_MAIN() { return 1; }
9717 #endif
9718 int
9719 main ()
9720 {
9721 struct tm *tp; tp->tm_sec;
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728   (eval $ac_compile) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -s conftest.$ac_objext'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_struct_tm=time.h
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 ac_cv_struct_tm=sys/time.h
9743 fi
9744 rm -f conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9747 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9748 if test $ac_cv_struct_tm = sys/time.h; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define TM_IN_SYS_TIME 1
9752 _ACEOF
9753
9754 fi
9755
9756 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9757 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9758 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 #include "confdefs.h"
9764 #include <sys/types.h>
9765 #include <$ac_cv_struct_tm>
9766
9767
9768 #ifdef F77_DUMMY_MAIN
9769 #  ifdef __cplusplus
9770      extern "C"
9771 #  endif
9772    int F77_DUMMY_MAIN() { return 1; }
9773 #endif
9774 int
9775 main ()
9776 {
9777 static struct tm ac_aggr;
9778 if (ac_aggr.tm_zone)
9779 return 0;
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9786   (eval $ac_compile) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -s conftest.$ac_objext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_cv_member_struct_tm_tm_zone=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 ac_cv_member_struct_tm_tm_zone=no
9801 fi
9802 rm -f conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9805 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9806 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9807
9808 cat >>confdefs.h <<_ACEOF
9809 #define HAVE_STRUCT_TM_TM_ZONE 1
9810 _ACEOF
9811
9812
9813 fi
9814
9815 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9816
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_TM_ZONE 1
9819 _ACEOF
9820
9821 fi
9822 echo "$as_me:$LINENO: checking for tzname" >&5
9823 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9824 if test "${ac_cv_var_tzname+set}" = set; then
9825   echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827   cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9829 #include "confdefs.h"
9830 #include <time.h>
9831 #ifndef tzname /* For SGI.  */
9832 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9833 #endif
9834
9835 #ifdef F77_DUMMY_MAIN
9836 #  ifdef __cplusplus
9837      extern "C"
9838 #  endif
9839    int F77_DUMMY_MAIN() { return 1; }
9840 #endif
9841 int
9842 main ()
9843 {
9844 atoi(*tzname);
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851   (eval $ac_link) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_var_tzname=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 ac_cv_var_tzname=no
9866 fi
9867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9870 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9871 if test $ac_cv_var_tzname = yes; then
9872
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_TZNAME 1
9875 _ACEOF
9876
9877 fi
9878
9879 echo "$as_me:$LINENO: checking for union semun" >&5
9880 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9881 if test "${ac_cv_type_union_semun+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 #include "confdefs.h"
9887 #include <sys/types.h>
9888 #include <sys/ipc.h>
9889 #include <sys/sem.h>
9890
9891 #ifdef F77_DUMMY_MAIN
9892 #  ifdef __cplusplus
9893      extern "C"
9894 #  endif
9895    int F77_DUMMY_MAIN() { return 1; }
9896 #endif
9897 int
9898 main ()
9899 {
9900 if ((union semun *) 0)
9901   return 0;
9902 if (sizeof (union semun))
9903   return 0;
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910   (eval $ac_compile) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -s conftest.$ac_objext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   ac_cv_type_union_semun=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 ac_cv_type_union_semun=no
9925 fi
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9927 fi
9928 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9929 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9930 if test $ac_cv_type_union_semun = yes; then
9931
9932 cat >>confdefs.h <<_ACEOF
9933 #define HAVE_UNION_SEMUN 1
9934 _ACEOF
9935
9936
9937 fi
9938
9939 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9940 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9941 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   cat >conftest.$ac_ext <<_ACEOF
9945 #line $LINENO "configure"
9946 #include "confdefs.h"
9947 #include <sys/types.h>
9948 #ifdef HAVE_SYS_UN_H
9949 #include <sys/un.h>
9950 #endif
9951
9952
9953 #ifdef F77_DUMMY_MAIN
9954 #  ifdef __cplusplus
9955      extern "C"
9956 #  endif
9957    int F77_DUMMY_MAIN() { return 1; }
9958 #endif
9959 int
9960 main ()
9961 {
9962 if ((struct sockaddr_un *) 0)
9963   return 0;
9964 if (sizeof (struct sockaddr_un))
9965   return 0;
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } &&
9976          { ac_try='test -s conftest.$ac_objext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_cv_type_struct_sockaddr_un=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9986 ac_cv_type_struct_sockaddr_un=no
9987 fi
9988 rm -f conftest.$ac_objext conftest.$ac_ext
9989 fi
9990 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9991 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9992 if test $ac_cv_type_struct_sockaddr_un = yes; then
9993
9994 cat >>confdefs.h <<_ACEOF
9995 #define HAVE_STRUCT_SOCKADDR_UN 1
9996 _ACEOF
9997
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_UNIX_SOCKETS 1
10001 _ACEOF
10002
10003 fi
10004
10005 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10006 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10007 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 #line $LINENO "configure"
10012 #include "confdefs.h"
10013 #include <sys/types.h>
10014 #ifdef HAVE_SYS_SOCKET_H
10015 #include <sys/socket.h>
10016 #endif
10017
10018
10019 #ifdef F77_DUMMY_MAIN
10020 #  ifdef __cplusplus
10021      extern "C"
10022 #  endif
10023    int F77_DUMMY_MAIN() { return 1; }
10024 #endif
10025 int
10026 main ()
10027 {
10028 if ((struct sockaddr_storage *) 0)
10029   return 0;
10030 if (sizeof (struct sockaddr_storage))
10031   return 0;
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038   (eval $ac_compile) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); } &&
10042          { ac_try='test -s conftest.$ac_objext'
10043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044   (eval $ac_try) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048   ac_cv_type_struct_sockaddr_storage=yes
10049 else
10050   echo "$as_me: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10052 ac_cv_type_struct_sockaddr_storage=no
10053 fi
10054 rm -f conftest.$ac_objext conftest.$ac_ext
10055 fi
10056 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10057 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10058 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10062 _ACEOF
10063
10064
10065 fi
10066
10067 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10068 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10069 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   cat >conftest.$ac_ext <<_ACEOF
10073 #line $LINENO "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #ifdef HAVE_SYS_SOCKET_H
10077 #include <sys/socket.h>
10078 #endif
10079
10080
10081 #ifdef F77_DUMMY_MAIN
10082 #  ifdef __cplusplus
10083      extern "C"
10084 #  endif
10085    int F77_DUMMY_MAIN() { return 1; }
10086 #endif
10087 int
10088 main ()
10089 {
10090 static struct sockaddr_storage ac_aggr;
10091 if (ac_aggr.ss_family)
10092 return 0;
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099   (eval $ac_compile) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -s conftest.$ac_objext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_member_struct_sockaddr_storage_ss_family=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_member_struct_sockaddr_storage_ss_family=no
10114 fi
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10118 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10119 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10120
10121 cat >>confdefs.h <<_ACEOF
10122 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10123 _ACEOF
10124
10125
10126 fi
10127 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10128 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10129 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10130   echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132   cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10135 #include <sys/types.h>
10136 #ifdef HAVE_SYS_SOCKET_H
10137 #include <sys/socket.h>
10138 #endif
10139
10140
10141 #ifdef F77_DUMMY_MAIN
10142 #  ifdef __cplusplus
10143      extern "C"
10144 #  endif
10145    int F77_DUMMY_MAIN() { return 1; }
10146 #endif
10147 int
10148 main ()
10149 {
10150 static struct sockaddr_storage ac_aggr;
10151 if (ac_aggr.__ss_family)
10152 return 0;
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159   (eval $ac_compile) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } &&
10163          { ac_try='test -s conftest.$ac_objext'
10164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165   (eval $ac_try) 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; }; then
10169   ac_cv_member_struct_sockaddr_storage___ss_family=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 ac_cv_member_struct_sockaddr_storage___ss_family=no
10174 fi
10175 rm -f conftest.$ac_objext conftest.$ac_ext
10176 fi
10177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10178 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10179 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10180
10181 cat >>confdefs.h <<_ACEOF
10182 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10183 _ACEOF
10184
10185
10186 fi
10187 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10188 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10189 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195 #include <sys/types.h>
10196 #ifdef HAVE_SYS_SOCKET_H
10197 #include <sys/socket.h>
10198 #endif
10199
10200
10201 #ifdef F77_DUMMY_MAIN
10202 #  ifdef __cplusplus
10203      extern "C"
10204 #  endif
10205    int F77_DUMMY_MAIN() { return 1; }
10206 #endif
10207 int
10208 main ()
10209 {
10210 static struct sockaddr_storage ac_aggr;
10211 if (ac_aggr.ss_len)
10212 return 0;
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -s conftest.$ac_objext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_member_struct_sockaddr_storage_ss_len=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 ac_cv_member_struct_sockaddr_storage_ss_len=no
10234 fi
10235 rm -f conftest.$ac_objext conftest.$ac_ext
10236 fi
10237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10238 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10239 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10240
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10243 _ACEOF
10244
10245
10246 fi
10247 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10248 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10249 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 #line $LINENO "configure"
10254 #include "confdefs.h"
10255 #include <sys/types.h>
10256 #ifdef HAVE_SYS_SOCKET_H
10257 #include <sys/socket.h>
10258 #endif
10259
10260
10261 #ifdef F77_DUMMY_MAIN
10262 #  ifdef __cplusplus
10263      extern "C"
10264 #  endif
10265    int F77_DUMMY_MAIN() { return 1; }
10266 #endif
10267 int
10268 main ()
10269 {
10270 static struct sockaddr_storage ac_aggr;
10271 if (ac_aggr.__ss_len)
10272 return 0;
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -s conftest.$ac_objext'
10284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285   (eval $ac_try) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); }; }; then
10289   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 ac_cv_member_struct_sockaddr_storage___ss_len=no
10294 fi
10295 rm -f conftest.$ac_objext conftest.$ac_ext
10296 fi
10297 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10298 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10299 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10300
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10303 _ACEOF
10304
10305
10306 fi
10307 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10308 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10309 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   cat >conftest.$ac_ext <<_ACEOF
10313 #line $LINENO "configure"
10314 #include "confdefs.h"
10315 #include <sys/types.h>
10316 #ifdef HAVE_SYS_SOCKET_H
10317 #include <sys/socket.h>
10318 #endif
10319
10320
10321 #ifdef F77_DUMMY_MAIN
10322 #  ifdef __cplusplus
10323      extern "C"
10324 #  endif
10325    int F77_DUMMY_MAIN() { return 1; }
10326 #endif
10327 int
10328 main ()
10329 {
10330 static struct sockaddr ac_aggr;
10331 if (ac_aggr.sa_len)
10332 return 0;
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339   (eval $ac_compile) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } &&
10343          { ac_try='test -s conftest.$ac_objext'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; }; then
10349   ac_cv_member_struct_sockaddr_sa_len=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 ac_cv_member_struct_sockaddr_sa_len=no
10354 fi
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10356 fi
10357 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10358 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10359 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10360
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10363 _ACEOF
10364
10365
10366 fi
10367
10368 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10369 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10370 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   cat >conftest.$ac_ext <<_ACEOF
10374 #line $LINENO "configure"
10375 #include "confdefs.h"
10376 #include <sys/types.h>
10377 #include <sys/socket.h>
10378 #include <netdb.h>
10379
10380
10381 #ifdef F77_DUMMY_MAIN
10382 #  ifdef __cplusplus
10383      extern "C"
10384 #  endif
10385    int F77_DUMMY_MAIN() { return 1; }
10386 #endif
10387 int
10388 main ()
10389 {
10390 if ((struct addrinfo *) 0)
10391   return 0;
10392 if (sizeof (struct addrinfo))
10393   return 0;
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400   (eval $ac_compile) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } &&
10404          { ac_try='test -s conftest.$ac_objext'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; }; then
10410   ac_cv_type_struct_addrinfo=yes
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 ac_cv_type_struct_addrinfo=no
10415 fi
10416 rm -f conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10419 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10420 if test $ac_cv_type_struct_addrinfo = yes; then
10421
10422 cat >>confdefs.h <<_ACEOF
10423 #define HAVE_STRUCT_ADDRINFO 1
10424 _ACEOF
10425
10426
10427 fi
10428
10429
10430 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10431 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10432 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10437 #include "confdefs.h"
10438 #include <sys/param.h>
10439 #include <sys/types.h>
10440 #include <sys/socket.h>
10441 #include <sys/ucred.h>
10442
10443 #ifdef F77_DUMMY_MAIN
10444 #  ifdef __cplusplus
10445      extern "C"
10446 #  endif
10447    int F77_DUMMY_MAIN() { return 1; }
10448 #endif
10449 int
10450 main ()
10451 {
10452 if ((struct cmsgcred *) 0)
10453   return 0;
10454 if (sizeof (struct cmsgcred))
10455   return 0;
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462   (eval $ac_compile) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } &&
10466          { ac_try='test -s conftest.$ac_objext'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472   ac_cv_type_struct_cmsgcred=yes
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_cv_type_struct_cmsgcred=no
10477 fi
10478 rm -f conftest.$ac_objext conftest.$ac_ext
10479 fi
10480 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10481 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10482 if test $ac_cv_type_struct_cmsgcred = yes; then
10483
10484 cat >>confdefs.h <<_ACEOF
10485 #define HAVE_STRUCT_CMSGCRED 1
10486 _ACEOF
10487
10488
10489 fi
10490 echo "$as_me:$LINENO: checking for struct fcred" >&5
10491 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10492 if test "${ac_cv_type_struct_fcred+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 #line $LINENO "configure"
10497 #include "confdefs.h"
10498 #include <sys/param.h>
10499 #include <sys/types.h>
10500 #include <sys/socket.h>
10501 #include <sys/ucred.h>
10502
10503 #ifdef F77_DUMMY_MAIN
10504 #  ifdef __cplusplus
10505      extern "C"
10506 #  endif
10507    int F77_DUMMY_MAIN() { return 1; }
10508 #endif
10509 int
10510 main ()
10511 {
10512 if ((struct fcred *) 0)
10513   return 0;
10514 if (sizeof (struct fcred))
10515   return 0;
10516   ;
10517   return 0;
10518 }
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522   (eval $ac_compile) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } &&
10526          { ac_try='test -s conftest.$ac_objext'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; }; then
10532   ac_cv_type_struct_fcred=yes
10533 else
10534   echo "$as_me: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 ac_cv_type_struct_fcred=no
10537 fi
10538 rm -f conftest.$ac_objext conftest.$ac_ext
10539 fi
10540 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10541 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10542 if test $ac_cv_type_struct_fcred = yes; then
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_FCRED 1
10546 _ACEOF
10547
10548
10549 fi
10550 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10551 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10552 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10558 #include <sys/param.h>
10559 #include <sys/types.h>
10560 #include <sys/socket.h>
10561 #include <sys/ucred.h>
10562
10563 #ifdef F77_DUMMY_MAIN
10564 #  ifdef __cplusplus
10565      extern "C"
10566 #  endif
10567    int F77_DUMMY_MAIN() { return 1; }
10568 #endif
10569 int
10570 main ()
10571 {
10572 if ((struct sockcred *) 0)
10573   return 0;
10574 if (sizeof (struct sockcred))
10575   return 0;
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582   (eval $ac_compile) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest.$ac_objext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   ac_cv_type_struct_sockcred=yes
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 ac_cv_type_struct_sockcred=no
10597 fi
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10599 fi
10600 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10601 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10602 if test $ac_cv_type_struct_sockcred = yes; then
10603
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_STRUCT_SOCKCRED 1
10606 _ACEOF
10607
10608
10609 fi
10610
10611
10612 echo "$as_me:$LINENO: checking for struct option" >&5
10613 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10614 if test "${ac_cv_type_struct_option+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620 #ifdef HAVE_GETOPT_H
10621 #include <getopt.h>
10622 #endif
10623
10624 #ifdef F77_DUMMY_MAIN
10625 #  ifdef __cplusplus
10626      extern "C"
10627 #  endif
10628    int F77_DUMMY_MAIN() { return 1; }
10629 #endif
10630 int
10631 main ()
10632 {
10633 if ((struct option *) 0)
10634   return 0;
10635 if (sizeof (struct option))
10636   return 0;
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643   (eval $ac_compile) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -s conftest.$ac_objext'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; }; then
10653   ac_cv_type_struct_option=yes
10654 else
10655   echo "$as_me: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 ac_cv_type_struct_option=no
10658 fi
10659 rm -f conftest.$ac_objext conftest.$ac_ext
10660 fi
10661 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10662 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10663 if test $ac_cv_type_struct_option = yes; then
10664
10665 cat >>confdefs.h <<_ACEOF
10666 #define HAVE_STRUCT_OPTION 1
10667 _ACEOF
10668
10669
10670 fi
10671
10672
10673 if test "$with_zlib" = yes; then
10674   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10675   # did not).  While we could work around the lack of z_streamp, it
10676   # seems unwise to encourage people to use such old zlib versions...
10677   echo "$as_me:$LINENO: checking for z_streamp" >&5
10678 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10679 if test "${ac_cv_type_z_streamp+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 #include <zlib.h>
10686
10687 #ifdef F77_DUMMY_MAIN
10688 #  ifdef __cplusplus
10689      extern "C"
10690 #  endif
10691    int F77_DUMMY_MAIN() { return 1; }
10692 #endif
10693 int
10694 main ()
10695 {
10696 if ((z_streamp *) 0)
10697   return 0;
10698 if (sizeof (z_streamp))
10699   return 0;
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706   (eval $ac_compile) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -s conftest.$ac_objext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_cv_type_z_streamp=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10720 ac_cv_type_z_streamp=no
10721 fi
10722 rm -f conftest.$ac_objext conftest.$ac_ext
10723 fi
10724 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10725 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10726 if test $ac_cv_type_z_streamp = yes; then
10727   :
10728 else
10729   { { echo "$as_me:$LINENO: error: zlib version is too old
10730 Use --without-zlib to disable zlib support." >&5
10731 echo "$as_me: error: zlib version is too old
10732 Use --without-zlib to disable zlib support." >&2;}
10733    { (exit 1); exit 1; }; }
10734 fi
10735
10736 fi
10737
10738 if test "$with_krb5" = yes; then
10739 # Check for differences between MIT and Heimdal (KTH) releases
10740   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10741 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10742 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 #include "confdefs.h"
10748 #include <krb5.h>
10749
10750 #ifdef F77_DUMMY_MAIN
10751 #  ifdef __cplusplus
10752      extern "C"
10753 #  endif
10754    int F77_DUMMY_MAIN() { return 1; }
10755 #endif
10756 int
10757 main ()
10758 {
10759 static krb5_ticket ac_aggr;
10760 if (ac_aggr.enc_part2)
10761 return 0;
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768   (eval $ac_compile) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_member_krb5_ticket_enc_part2=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 ac_cv_member_krb5_ticket_enc_part2=no
10783 fi
10784 rm -f conftest.$ac_objext conftest.$ac_ext
10785 fi
10786 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10787 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10788 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10789
10790 cat >>confdefs.h <<_ACEOF
10791 #define HAVE_KRB5_TICKET_ENC_PART2 1
10792 _ACEOF
10793
10794
10795 else
10796   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10797 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10798 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801   cat >conftest.$ac_ext <<_ACEOF
10802 #line $LINENO "configure"
10803 #include "confdefs.h"
10804 #include <krb5.h>
10805
10806 #ifdef F77_DUMMY_MAIN
10807 #  ifdef __cplusplus
10808      extern "C"
10809 #  endif
10810    int F77_DUMMY_MAIN() { return 1; }
10811 #endif
10812 int
10813 main ()
10814 {
10815 static krb5_ticket ac_aggr;
10816 if (ac_aggr.client)
10817 return 0;
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824   (eval $ac_compile) 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -s conftest.$ac_objext'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_cv_member_krb5_ticket_client=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 cat conftest.$ac_ext >&5
10838 ac_cv_member_krb5_ticket_client=no
10839 fi
10840 rm -f conftest.$ac_objext conftest.$ac_ext
10841 fi
10842 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10843 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10844 if test $ac_cv_member_krb5_ticket_client = yes; then
10845
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_KRB5_TICKET_CLIENT 1
10848 _ACEOF
10849
10850
10851 else
10852   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10853 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10854    { (exit 1); exit 1; }; }
10855 fi
10856
10857 fi
10858
10859   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10860 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10861 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865 #line $LINENO "configure"
10866 #include "confdefs.h"
10867 #include <krb5.h>
10868
10869 #ifdef F77_DUMMY_MAIN
10870 #  ifdef __cplusplus
10871      extern "C"
10872 #  endif
10873    int F77_DUMMY_MAIN() { return 1; }
10874 #endif
10875 int
10876 main ()
10877 {
10878 static krb5_error ac_aggr;
10879 if (ac_aggr.text.data)
10880 return 0;
10881   ;
10882   return 0;
10883 }
10884 _ACEOF
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887   (eval $ac_compile) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   ac_cv_member_krb5_error_text_data=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10901 ac_cv_member_krb5_error_text_data=no
10902 fi
10903 rm -f conftest.$ac_objext conftest.$ac_ext
10904 fi
10905 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10906 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10907 if test $ac_cv_member_krb5_error_text_data = yes; then
10908
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10911 _ACEOF
10912
10913
10914 else
10915   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10916 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10917 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   cat >conftest.$ac_ext <<_ACEOF
10921 #line $LINENO "configure"
10922 #include "confdefs.h"
10923 #include <krb5.h>
10924
10925 #ifdef F77_DUMMY_MAIN
10926 #  ifdef __cplusplus
10927      extern "C"
10928 #  endif
10929    int F77_DUMMY_MAIN() { return 1; }
10930 #endif
10931 int
10932 main ()
10933 {
10934 static krb5_error ac_aggr;
10935 if (ac_aggr.e_data)
10936 return 0;
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10943   (eval $ac_compile) 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -s conftest.$ac_objext'
10948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949   (eval $ac_try) 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }; then
10953   ac_cv_member_krb5_error_e_data=yes
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 cat conftest.$ac_ext >&5
10957 ac_cv_member_krb5_error_e_data=no
10958 fi
10959 rm -f conftest.$ac_objext conftest.$ac_ext
10960 fi
10961 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10962 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10963 if test $ac_cv_member_krb5_error_e_data = yes; then
10964
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_KRB5_ERROR_E_DATA 1
10967 _ACEOF
10968
10969
10970 else
10971   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10972 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10973    { (exit 1); exit 1; }; }
10974 fi
10975
10976 fi
10977
10978 fi
10979
10980 ##
10981 ## Functions, global variables
10982 ##
10983
10984 echo "$as_me:$LINENO: checking for int timezone" >&5
10985 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10986 if test "${pgac_cv_var_int_timezone+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10991 #include "confdefs.h"
10992 #include <time.h>
10993 int res;
10994 #ifdef F77_DUMMY_MAIN
10995 #  ifdef __cplusplus
10996      extern "C"
10997 #  endif
10998    int F77_DUMMY_MAIN() { return 1; }
10999 #endif
11000 int
11001 main ()
11002 {
11003 #ifndef __CYGWIN__
11004 res = timezone / 60;
11005 #else
11006 res = _timezone / 60;
11007 #endif
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014   (eval $ac_link) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -s conftest$ac_exeext'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; }; then
11024   pgac_cv_var_int_timezone=yes
11025 else
11026   echo "$as_me: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 pgac_cv_var_int_timezone=no
11029 fi
11030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11031 fi
11032 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11033 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11034 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11035
11036 cat >>confdefs.h <<\_ACEOF
11037 #define HAVE_INT_TIMEZONE
11038 _ACEOF
11039
11040 fi
11041 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11042 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11043  if test "${ac_cv_func_accept_return+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046    if test "${ac_cv_func_accept_arg1+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049     if test "${ac_cv_func_accept_arg2+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052      if test "${ac_cv_func_accept_arg3+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11056       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11057        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11058         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11059          cat >conftest.$ac_ext <<_ACEOF
11060 #line $LINENO "configure"
11061 #include "confdefs.h"
11062 #ifdef HAVE_SYS_TYPES_H
11063 #include <sys/types.h>
11064 #endif
11065 #ifdef HAVE_SYS_SOCKET_H
11066 #include <sys/socket.h>
11067 #endif
11068 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11069 #ifdef F77_DUMMY_MAIN
11070 #  ifdef __cplusplus
11071      extern "C"
11072 #  endif
11073    int F77_DUMMY_MAIN() { return 1; }
11074 #endif
11075 int
11076 main ()
11077 {
11078
11079   ;
11080   return 0;
11081 }
11082 _ACEOF
11083 rm -f conftest.$ac_objext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11085   (eval $ac_compile) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } &&
11089          { ac_try='test -s conftest.$ac_objext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_not_found=no; break 4
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 ac_not_found=yes
11100 fi
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11102        done
11103       done
11104      done
11105     done
11106     if test "$ac_not_found" = yes; then
11107       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11108 echo "$as_me: error: could not determine argument types" >&2;}
11109    { (exit 1); exit 1; }; }
11110     fi
11111     if test "$ac_cv_func_accept_arg3" = "void"; then
11112       ac_cv_func_accept_arg3=int
11113     fi
11114
11115 fi
11116
11117 fi
11118
11119 fi
11120
11121 fi
11122  echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11123 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11124
11125 cat >>confdefs.h <<_ACEOF
11126 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11127 _ACEOF
11128
11129
11130 cat >>confdefs.h <<_ACEOF
11131 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11132 _ACEOF
11133
11134
11135 cat >>confdefs.h <<_ACEOF
11136 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11137 _ACEOF
11138
11139
11140 cat >>confdefs.h <<_ACEOF
11141 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11142 _ACEOF
11143
11144
11145 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11146 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11147 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 #include "confdefs.h"
11153 #include <sys/time.h>
11154 #ifdef F77_DUMMY_MAIN
11155 #  ifdef __cplusplus
11156      extern "C"
11157 #  endif
11158    int F77_DUMMY_MAIN() { return 1; }
11159 #endif
11160 int
11161 main ()
11162 {
11163 struct timeval *tp;
11164 struct timezone *tzp;
11165 gettimeofday(tp,tzp);
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172   (eval $ac_compile) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } &&
11176          { ac_try='test -s conftest.$ac_objext'
11177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178   (eval $ac_try) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   pgac_cv_func_gettimeofday_1arg=no
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 pgac_cv_func_gettimeofday_1arg=yes
11187 fi
11188 rm -f conftest.$ac_objext conftest.$ac_ext
11189 fi
11190 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11191 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11192 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11193
11194 cat >>confdefs.h <<\_ACEOF
11195 #define GETTIMEOFDAY_1ARG
11196 _ACEOF
11197
11198 fi
11199
11200
11201
11202 # SunOS doesn't handle negative byte comparisons properly with +/- return
11203 echo "$as_me:$LINENO: checking for working memcmp" >&5
11204 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11205 if test "${ac_cv_func_memcmp_working+set}" = set; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   if test "$cross_compiling" = yes; then
11209   ac_cv_func_memcmp_working=no
11210 else
11211   cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 #include "confdefs.h"
11214
11215 #ifdef F77_DUMMY_MAIN
11216 #  ifdef __cplusplus
11217      extern "C"
11218 #  endif
11219    int F77_DUMMY_MAIN() { return 1; }
11220 #endif
11221 int
11222 main ()
11223 {
11224
11225   /* Some versions of memcmp are not 8-bit clean.  */
11226   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11227   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11228     exit (1);
11229
11230   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11231      or more and with at least one buffer not starting on a 4-byte boundary.
11232      William Lewis provided this test program.   */
11233   {
11234     char foo[21];
11235     char bar[21];
11236     int i;
11237     for (i = 0; i < 4; i++)
11238       {
11239         char *a = foo + i;
11240         char *b = bar + i;
11241         strcpy (a, "--------01111111");
11242         strcpy (b, "--------10000000");
11243         if (memcmp (a, b, 16) >= 0)
11244           exit (1);
11245       }
11246     exit (0);
11247   }
11248
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255   (eval $ac_link) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_cv_func_memcmp_working=yes
11265 else
11266   echo "$as_me: program exited with status $ac_status" >&5
11267 echo "$as_me: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11269 ( exit $ac_status )
11270 ac_cv_func_memcmp_working=no
11271 fi
11272 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11276 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11277 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11299 do
11300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11301 echo "$as_me:$LINENO: checking for $ac_func" >&5
11302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11303 if eval "test \"\${$as_ac_var+set}\" = set"; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   cat >conftest.$ac_ext <<_ACEOF
11307 #line $LINENO "configure"
11308 #include "confdefs.h"
11309 /* System header to define __stub macros and hopefully few prototypes,
11310     which can conflict with char $ac_func (); below.  */
11311 #include <assert.h>
11312 /* Override any gcc2 internal prototype to avoid an error.  */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 /* We use char because int might match the return type of a gcc2
11317    builtin and then its argument prototype would still apply.  */
11318 char $ac_func ();
11319 char (*f) ();
11320
11321 #ifdef F77_DUMMY_MAIN
11322 #  ifdef __cplusplus
11323      extern "C"
11324 #  endif
11325    int F77_DUMMY_MAIN() { return 1; }
11326 #endif
11327 int
11328 main ()
11329 {
11330 /* The GNU C library defines this for functions which it implements
11331     to always fail with ENOSYS.  Some functions are actually named
11332     something starting with __ and the normal name is an alias.  */
11333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11334 choke me
11335 #else
11336 f = $ac_func;
11337 #endif
11338
11339   ;
11340   return 0;
11341 }
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345   (eval $ac_link) 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } &&
11349          { ac_try='test -s conftest$ac_exeext'
11350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351   (eval $ac_try) 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   eval "$as_ac_var=yes"
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11359 eval "$as_ac_var=no"
11360 fi
11361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362 fi
11363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11365 if test `eval echo '${'$as_ac_var'}'` = yes; then
11366   cat >>confdefs.h <<_ACEOF
11367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11368 _ACEOF
11369
11370 fi
11371 done
11372
11373
11374 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11375 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11376 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11377   echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379   cat >conftest.$ac_ext <<_ACEOF
11380 #line $LINENO "configure"
11381 #include "confdefs.h"
11382 #include <unistd.h>
11383
11384 #ifdef F77_DUMMY_MAIN
11385 #  ifdef __cplusplus
11386      extern "C"
11387 #  endif
11388    int F77_DUMMY_MAIN() { return 1; }
11389 #endif
11390 int
11391 main ()
11392 {
11393 #ifndef fdatasync
11394   char *p = (char *) fdatasync;
11395 #endif
11396
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403   (eval $ac_compile) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_cv_have_decl_fdatasync=yes
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11417 ac_cv_have_decl_fdatasync=no
11418 fi
11419 rm -f conftest.$ac_objext conftest.$ac_ext
11420 fi
11421 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11422 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11423 if test $ac_cv_have_decl_fdatasync = yes; then
11424
11425 cat >>confdefs.h <<_ACEOF
11426 #define HAVE_DECL_FDATASYNC 1
11427 _ACEOF
11428
11429
11430 else
11431   cat >>confdefs.h <<_ACEOF
11432 #define HAVE_DECL_FDATASYNC 0
11433 _ACEOF
11434
11435
11436 fi
11437
11438
11439
11440 HAVE_IPV6=no
11441 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11442 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11443 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   cat >conftest.$ac_ext <<_ACEOF
11447 #line $LINENO "configure"
11448 #include "confdefs.h"
11449 $ac_includes_default
11450 #include <netinet/in.h>
11451
11452 #ifdef F77_DUMMY_MAIN
11453 #  ifdef __cplusplus
11454      extern "C"
11455 #  endif
11456    int F77_DUMMY_MAIN() { return 1; }
11457 #endif
11458 int
11459 main ()
11460 {
11461 if ((struct sockaddr_in6 *) 0)
11462   return 0;
11463 if (sizeof (struct sockaddr_in6))
11464   return 0;
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471   (eval $ac_compile) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -s conftest.$ac_objext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   ac_cv_type_struct_sockaddr_in6=yes
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11485 ac_cv_type_struct_sockaddr_in6=no
11486 fi
11487 rm -f conftest.$ac_objext conftest.$ac_ext
11488 fi
11489 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11490 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11491 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11492   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11493 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11494 if test "${ac_cv_func_inet_ntop+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11499 #include "confdefs.h"
11500 /* System header to define __stub macros and hopefully few prototypes,
11501     which can conflict with char inet_ntop (); below.  */
11502 #include <assert.h>
11503 /* Override any gcc2 internal prototype to avoid an error.  */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 /* We use char because int might match the return type of a gcc2
11508    builtin and then its argument prototype would still apply.  */
11509 char inet_ntop ();
11510 char (*f) ();
11511
11512 #ifdef F77_DUMMY_MAIN
11513 #  ifdef __cplusplus
11514      extern "C"
11515 #  endif
11516    int F77_DUMMY_MAIN() { return 1; }
11517 #endif
11518 int
11519 main ()
11520 {
11521 /* The GNU C library defines this for functions which it implements
11522     to always fail with ENOSYS.  Some functions are actually named
11523     something starting with __ and the normal name is an alias.  */
11524 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11525 choke me
11526 #else
11527 f = inet_ntop;
11528 #endif
11529
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536   (eval $ac_link) 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -s conftest$ac_exeext'
11541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542   (eval $ac_try) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; }; then
11546   ac_cv_func_inet_ntop=yes
11547 else
11548   echo "$as_me: failed program was:" >&5
11549 cat conftest.$ac_ext >&5
11550 ac_cv_func_inet_ntop=no
11551 fi
11552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11553 fi
11554 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11555 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11556 if test $ac_cv_func_inet_ntop = yes; then
11557
11558 cat >>confdefs.h <<\_ACEOF
11559 #define HAVE_IPV6 1
11560 _ACEOF
11561
11562                                                           HAVE_IPV6=yes
11563 fi
11564
11565 fi
11566
11567
11568
11569 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11570 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11571 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   cat >conftest.$ac_ext <<_ACEOF
11575 #line $LINENO "configure"
11576 #include "confdefs.h"
11577 #include <machine/vmparam.h>
11578 #include <sys/exec.h>
11579
11580 #ifdef F77_DUMMY_MAIN
11581 #  ifdef __cplusplus
11582      extern "C"
11583 #  endif
11584    int F77_DUMMY_MAIN() { return 1; }
11585 #endif
11586 int
11587 main ()
11588 {
11589 PS_STRINGS->ps_nargvstr = 1;
11590 PS_STRINGS->ps_argvstr = "foo";
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11597   (eval $ac_link) 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -s conftest$ac_exeext'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }; then
11607   pgac_cv_var_PS_STRINGS=yes
11608 else
11609   echo "$as_me: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 pgac_cv_var_PS_STRINGS=no
11612 fi
11613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11614 fi
11615 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11616 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11617 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11618
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_PS_STRINGS
11621 _ACEOF
11622
11623 fi
11624
11625
11626 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11627 # is missing.  Yes, there are machines that have only one.  We may
11628 # also decide to use snprintf.c if snprintf() is present but does not
11629 # have working "long long int" support -- see below.
11630
11631 pgac_need_repl_snprintf=no
11632
11633 for ac_func in snprintf
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_var+set}\" = set"; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11643 #include "confdefs.h"
11644 /* System header to define __stub macros and hopefully few prototypes,
11645     which can conflict with char $ac_func (); below.  */
11646 #include <assert.h>
11647 /* Override any gcc2 internal prototype to avoid an error.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 /* We use char because int might match the return type of a gcc2
11652    builtin and then its argument prototype would still apply.  */
11653 char $ac_func ();
11654 char (*f) ();
11655
11656 #ifdef F77_DUMMY_MAIN
11657 #  ifdef __cplusplus
11658      extern "C"
11659 #  endif
11660    int F77_DUMMY_MAIN() { return 1; }
11661 #endif
11662 int
11663 main ()
11664 {
11665 /* The GNU C library defines this for functions which it implements
11666     to always fail with ENOSYS.  Some functions are actually named
11667     something starting with __ and the normal name is an alias.  */
11668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11669 choke me
11670 #else
11671 f = $ac_func;
11672 #endif
11673
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680   (eval $ac_link) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   eval "$as_ac_var=yes"
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 eval "$as_ac_var=no"
11695 fi
11696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11700 if test `eval echo '${'$as_ac_var'}'` = yes; then
11701   cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 _ACEOF
11704
11705 else
11706   pgac_need_repl_snprintf=yes
11707 fi
11708 done
11709
11710
11711 for ac_func in vsnprintf
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11716 if eval "test \"\${$as_ac_var+set}\" = set"; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11721 #include "confdefs.h"
11722 /* System header to define __stub macros and hopefully few prototypes,
11723     which can conflict with char $ac_func (); below.  */
11724 #include <assert.h>
11725 /* Override any gcc2 internal prototype to avoid an error.  */
11726 #ifdef __cplusplus
11727 extern "C"
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730    builtin and then its argument prototype would still apply.  */
11731 char $ac_func ();
11732 char (*f) ();
11733
11734 #ifdef F77_DUMMY_MAIN
11735 #  ifdef __cplusplus
11736      extern "C"
11737 #  endif
11738    int F77_DUMMY_MAIN() { return 1; }
11739 #endif
11740 int
11741 main ()
11742 {
11743 /* The GNU C library defines this for functions which it implements
11744     to always fail with ENOSYS.  Some functions are actually named
11745     something starting with __ and the normal name is an alias.  */
11746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11747 choke me
11748 #else
11749 f = $ac_func;
11750 #endif
11751
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758   (eval $ac_link) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   eval "$as_ac_var=yes"
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 eval "$as_ac_var=no"
11773 fi
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11775 fi
11776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779   cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781 _ACEOF
11782
11783 else
11784   pgac_need_repl_snprintf=yes
11785 fi
11786 done
11787
11788
11789
11790 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11791 # include/c.h will provide declarations.  Note this is a separate test
11792 # from whether the functions exist in the C library --- there are
11793 # systems that have the functions but don't bother to declare them :-(
11794
11795 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11796 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11797 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 #line $LINENO "configure"
11802 #include "confdefs.h"
11803 $ac_includes_default
11804 #ifdef F77_DUMMY_MAIN
11805 #  ifdef __cplusplus
11806      extern "C"
11807 #  endif
11808    int F77_DUMMY_MAIN() { return 1; }
11809 #endif
11810 int
11811 main ()
11812 {
11813 #ifndef snprintf
11814   char *p = (char *) snprintf;
11815 #endif
11816
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823   (eval $ac_compile) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } &&
11827          { ac_try='test -s conftest.$ac_objext'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   ac_cv_have_decl_snprintf=yes
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 cat conftest.$ac_ext >&5
11837 ac_cv_have_decl_snprintf=no
11838 fi
11839 rm -f conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11842 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11843 if test $ac_cv_have_decl_snprintf = yes; then
11844
11845 cat >>confdefs.h <<_ACEOF
11846 #define HAVE_DECL_SNPRINTF 1
11847 _ACEOF
11848
11849
11850 else
11851   cat >>confdefs.h <<_ACEOF
11852 #define HAVE_DECL_SNPRINTF 0
11853 _ACEOF
11854
11855
11856 fi
11857 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11858 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11859 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   cat >conftest.$ac_ext <<_ACEOF
11863 #line $LINENO "configure"
11864 #include "confdefs.h"
11865 $ac_includes_default
11866 #ifdef F77_DUMMY_MAIN
11867 #  ifdef __cplusplus
11868      extern "C"
11869 #  endif
11870    int F77_DUMMY_MAIN() { return 1; }
11871 #endif
11872 int
11873 main ()
11874 {
11875 #ifndef vsnprintf
11876   char *p = (char *) vsnprintf;
11877 #endif
11878
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885   (eval $ac_compile) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -s conftest.$ac_objext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   ac_cv_have_decl_vsnprintf=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 ac_cv_have_decl_vsnprintf=no
11900 fi
11901 rm -f conftest.$ac_objext conftest.$ac_ext
11902 fi
11903 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11904 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11905 if test $ac_cv_have_decl_vsnprintf = yes; then
11906
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_VSNPRINTF 1
11909 _ACEOF
11910
11911
11912 else
11913   cat >>confdefs.h <<_ACEOF
11914 #define HAVE_DECL_VSNPRINTF 0
11915 _ACEOF
11916
11917
11918 fi
11919
11920
11921
11922
11923 # do this one the hard way in case isinf() is a macro
11924 echo "$as_me:$LINENO: checking for isinf" >&5
11925 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11926 if test "${ac_cv_func_isinf+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   cat >conftest.$ac_ext <<_ACEOF
11930 #line $LINENO "configure"
11931 #include "confdefs.h"
11932 #include <math.h>
11933
11934 #ifdef F77_DUMMY_MAIN
11935 #  ifdef __cplusplus
11936      extern "C"
11937 #  endif
11938    int F77_DUMMY_MAIN() { return 1; }
11939 #endif
11940 int
11941 main ()
11942 {
11943 double x = 0.0; int res = isinf(x);
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950   (eval $ac_link) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_func_isinf=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964 ac_cv_func_isinf=no
11965 fi
11966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11967 fi
11968 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11969 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11970
11971 if test $ac_cv_func_isinf = yes ; then
11972
11973 cat >>confdefs.h <<\_ACEOF
11974 #define HAVE_ISINF 1
11975 _ACEOF
11976
11977 else
11978   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11979   # Look for a way to implement a substitute for isinf()
11980
11981
11982
11983
11984 for ac_func in fpclass fp_class fp_class_d class
11985 do
11986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987 echo "$as_me:$LINENO: checking for $ac_func" >&5
11988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_var+set}\" = set"; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 else
11992   cat >conftest.$ac_ext <<_ACEOF
11993 #line $LINENO "configure"
11994 #include "confdefs.h"
11995 /* System header to define __stub macros and hopefully few prototypes,
11996     which can conflict with char $ac_func (); below.  */
11997 #include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error.  */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 /* We use char because int might match the return type of a gcc2
12003    builtin and then its argument prototype would still apply.  */
12004 char $ac_func ();
12005 char (*f) ();
12006
12007 #ifdef F77_DUMMY_MAIN
12008 #  ifdef __cplusplus
12009      extern "C"
12010 #  endif
12011    int F77_DUMMY_MAIN() { return 1; }
12012 #endif
12013 int
12014 main ()
12015 {
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 f = $ac_func;
12023 #endif
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   eval "$as_ac_var=yes"
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12045 eval "$as_ac_var=no"
12046 fi
12047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12048 fi
12049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12051 if test `eval echo '${'$as_ac_var'}'` = yes; then
12052   cat >>confdefs.h <<_ACEOF
12053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12054 _ACEOF
12055  break
12056 fi
12057 done
12058
12059 fi
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12075 do
12076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077 echo "$as_me:$LINENO: checking for $ac_func" >&5
12078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12079 if eval "test \"\${$as_ac_var+set}\" = set"; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12084 #include "confdefs.h"
12085 /* System header to define __stub macros and hopefully few prototypes,
12086     which can conflict with char $ac_func (); below.  */
12087 #include <assert.h>
12088 /* Override any gcc2 internal prototype to avoid an error.  */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 /* We use char because int might match the return type of a gcc2
12093    builtin and then its argument prototype would still apply.  */
12094 char $ac_func ();
12095 char (*f) ();
12096
12097 #ifdef F77_DUMMY_MAIN
12098 #  ifdef __cplusplus
12099      extern "C"
12100 #  endif
12101    int F77_DUMMY_MAIN() { return 1; }
12102 #endif
12103 int
12104 main ()
12105 {
12106 /* The GNU C library defines this for functions which it implements
12107     to always fail with ENOSYS.  Some functions are actually named
12108     something starting with __ and the normal name is an alias.  */
12109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12110 choke me
12111 #else
12112 f = $ac_func;
12113 #endif
12114
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -s conftest$ac_exeext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   eval "$as_ac_var=yes"
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12135 eval "$as_ac_var=no"
12136 fi
12137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12138 fi
12139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12141 if test `eval echo '${'$as_ac_var'}'` = yes; then
12142   cat >>confdefs.h <<_ACEOF
12143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12144 _ACEOF
12145
12146 else
12147   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12148 fi
12149 done
12150
12151
12152
12153 # system's version of getaddrinfo(), if any, may be used only if we found
12154 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12155 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12156
12157 for ac_func in getaddrinfo
12158 do
12159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12160 echo "$as_me:$LINENO: checking for $ac_func" >&5
12161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12162 if eval "test \"\${$as_ac_var+set}\" = set"; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 #line $LINENO "configure"
12167 #include "confdefs.h"
12168 /* System header to define __stub macros and hopefully few prototypes,
12169     which can conflict with char $ac_func (); below.  */
12170 #include <assert.h>
12171 /* Override any gcc2 internal prototype to avoid an error.  */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 /* We use char because int might match the return type of a gcc2
12176    builtin and then its argument prototype would still apply.  */
12177 char $ac_func ();
12178 char (*f) ();
12179
12180 #ifdef F77_DUMMY_MAIN
12181 #  ifdef __cplusplus
12182      extern "C"
12183 #  endif
12184    int F77_DUMMY_MAIN() { return 1; }
12185 #endif
12186 int
12187 main ()
12188 {
12189 /* The GNU C library defines this for functions which it implements
12190     to always fail with ENOSYS.  Some functions are actually named
12191     something starting with __ and the normal name is an alias.  */
12192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 choke me
12194 #else
12195 f = $ac_func;
12196 #endif
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204   (eval $ac_link) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); } &&
12208          { ac_try='test -s conftest$ac_exeext'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   eval "$as_ac_var=yes"
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 eval "$as_ac_var=no"
12219 fi
12220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12221 fi
12222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12224 if test `eval echo '${'$as_ac_var'}'` = yes; then
12225   cat >>confdefs.h <<_ACEOF
12226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12227 _ACEOF
12228
12229 else
12230   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12231 fi
12232 done
12233
12234
12235 else
12236   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12237 fi
12238
12239 # similarly, use system's getopt_long() only if system provides struct option.
12240 if test x"$ac_cv_type_struct_option" = xyes ; then
12241
12242 for ac_func in getopt_long
12243 do
12244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12245 echo "$as_me:$LINENO: checking for $ac_func" >&5
12246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12247 if eval "test \"\${$as_ac_var+set}\" = set"; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 #include "confdefs.h"
12253 /* System header to define __stub macros and hopefully few prototypes,
12254     which can conflict with char $ac_func (); below.  */
12255 #include <assert.h>
12256 /* Override any gcc2 internal prototype to avoid an error.  */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 /* We use char because int might match the return type of a gcc2
12261    builtin and then its argument prototype would still apply.  */
12262 char $ac_func ();
12263 char (*f) ();
12264
12265 #ifdef F77_DUMMY_MAIN
12266 #  ifdef __cplusplus
12267      extern "C"
12268 #  endif
12269    int F77_DUMMY_MAIN() { return 1; }
12270 #endif
12271 int
12272 main ()
12273 {
12274 /* The GNU C library defines this for functions which it implements
12275     to always fail with ENOSYS.  Some functions are actually named
12276     something starting with __ and the normal name is an alias.  */
12277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12278 choke me
12279 #else
12280 f = $ac_func;
12281 #endif
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289   (eval $ac_link) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -s conftest$ac_exeext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   eval "$as_ac_var=yes"
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 eval "$as_ac_var=no"
12304 fi
12305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12306 fi
12307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12309 if test `eval echo '${'$as_ac_var'}'` = yes; then
12310   cat >>confdefs.h <<_ACEOF
12311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12312 _ACEOF
12313
12314 else
12315   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12316 fi
12317 done
12318
12319
12320 else
12321   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12322 fi
12323
12324 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12325 # We override the previous test that said fseeko/ftello didn't exist
12326 # OS tests are also done in include/c.h and port/fseeko.c
12327 case $host_os in bsdi*|netbsd*)
12328 ac_cv_func_fseeko=yes
12329 esac
12330
12331 # Solaris has a very slow qsort in certain cases, so we replace it.
12332 if test "$PORTNAME" = "solaris"; then
12333 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12334 fi
12335
12336 # Win32 support
12337 if test "$PORTNAME" = "win32"; then
12338 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12339 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12340 LIBOBJS="$LIBOBJS kill.$ac_objext"
12341 LIBOBJS="$LIBOBJS open.$ac_objext"
12342 LIBOBJS="$LIBOBJS rand.$ac_objext"
12343
12344 cat >>confdefs.h <<\_ACEOF
12345 #define HAVE_SYMLINK 1
12346 _ACEOF
12347
12348 fi
12349
12350 if test "$with_readline" = yes; then
12351   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12352 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12354 #line $LINENO "configure"
12355 #include "confdefs.h"
12356 #include <stdio.h>
12357 #ifdef HAVE_READLINE_READLINE_H
12358 # include <readline/readline.h>
12359 #elif defined(HAVE_READLINE_H)
12360 # include <readline.h>
12361 #endif
12362
12363 #ifdef F77_DUMMY_MAIN
12364 #  ifdef __cplusplus
12365      extern "C"
12366 #  endif
12367    int F77_DUMMY_MAIN() { return 1; }
12368 #endif
12369 int
12370 main ()
12371 {
12372 rl_completion_append_character = 'x';
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379   (eval $ac_link) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -s conftest$ac_exeext'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; }; then
12389   echo "$as_me:$LINENO: result: yes" >&5
12390 echo "${ECHO_T}yes" >&6
12391
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12394 _ACEOF
12395
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 cat conftest.$ac_ext >&5
12399 echo "$as_me:$LINENO: result: no" >&5
12400 echo "${ECHO_T}no" >&6
12401 fi
12402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12403
12404
12405 for ac_func in rl_completion_matches rl_filename_completion_function
12406 do
12407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12408 echo "$as_me:$LINENO: checking for $ac_func" >&5
12409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12410 if eval "test \"\${$as_ac_var+set}\" = set"; then
12411   echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413   cat >conftest.$ac_ext <<_ACEOF
12414 #line $LINENO "configure"
12415 #include "confdefs.h"
12416 /* System header to define __stub macros and hopefully few prototypes,
12417     which can conflict with char $ac_func (); below.  */
12418 #include <assert.h>
12419 /* Override any gcc2 internal prototype to avoid an error.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 /* We use char because int might match the return type of a gcc2
12424    builtin and then its argument prototype would still apply.  */
12425 char $ac_func ();
12426 char (*f) ();
12427
12428 #ifdef F77_DUMMY_MAIN
12429 #  ifdef __cplusplus
12430      extern "C"
12431 #  endif
12432    int F77_DUMMY_MAIN() { return 1; }
12433 #endif
12434 int
12435 main ()
12436 {
12437 /* The GNU C library defines this for functions which it implements
12438     to always fail with ENOSYS.  Some functions are actually named
12439     something starting with __ and the normal name is an alias.  */
12440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12441 choke me
12442 #else
12443 f = $ac_func;
12444 #endif
12445
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452   (eval $ac_link) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -s conftest$ac_exeext'
12457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458   (eval $ac_try) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; }; then
12462   eval "$as_ac_var=yes"
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12466 eval "$as_ac_var=no"
12467 fi
12468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12469 fi
12470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12472 if test `eval echo '${'$as_ac_var'}'` = yes; then
12473   cat >>confdefs.h <<_ACEOF
12474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12475 _ACEOF
12476
12477 fi
12478 done
12479
12480
12481 for ac_func in replace_history_entry
12482 do
12483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 echo "$as_me:$LINENO: checking for $ac_func" >&5
12485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12486 if eval "test \"\${$as_ac_var+set}\" = set"; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   cat >conftest.$ac_ext <<_ACEOF
12490 #line $LINENO "configure"
12491 #include "confdefs.h"
12492 /* System header to define __stub macros and hopefully few prototypes,
12493     which can conflict with char $ac_func (); below.  */
12494 #include <assert.h>
12495 /* Override any gcc2 internal prototype to avoid an error.  */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 /* We use char because int might match the return type of a gcc2
12500    builtin and then its argument prototype would still apply.  */
12501 char $ac_func ();
12502 char (*f) ();
12503
12504 #ifdef F77_DUMMY_MAIN
12505 #  ifdef __cplusplus
12506      extern "C"
12507 #  endif
12508    int F77_DUMMY_MAIN() { return 1; }
12509 #endif
12510 int
12511 main ()
12512 {
12513 /* The GNU C library defines this for functions which it implements
12514     to always fail with ENOSYS.  Some functions are actually named
12515     something starting with __ and the normal name is an alias.  */
12516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12517 choke me
12518 #else
12519 f = $ac_func;
12520 #endif
12521
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12528   (eval $ac_link) 2>&5
12529   ac_status=$?
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -s conftest$ac_exeext'
12533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534   (eval $ac_try) 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; }; then
12538   eval "$as_ac_var=yes"
12539 else
12540   echo "$as_me: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 eval "$as_ac_var=no"
12543 fi
12544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12545 fi
12546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12548 if test `eval echo '${'$as_ac_var'}'` = yes; then
12549   cat >>confdefs.h <<_ACEOF
12550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12551 _ACEOF
12552
12553 fi
12554 done
12555
12556 fi
12557
12558
12559 echo "$as_me:$LINENO: checking for finite" >&5
12560 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12563 #include "confdefs.h"
12564 #include <math.h>
12565 #ifdef F77_DUMMY_MAIN
12566 #  ifdef __cplusplus
12567      extern "C"
12568 #  endif
12569    int F77_DUMMY_MAIN() { return 1; }
12570 #endif
12571 int
12572 main ()
12573 {
12574 int dummy=finite(1.0);
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581   (eval $ac_link) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -s conftest$ac_exeext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591
12592 cat >>confdefs.h <<\_ACEOF
12593 #define HAVE_FINITE 1
12594 _ACEOF
12595
12596 echo "$as_me:$LINENO: result: yes" >&5
12597 echo "${ECHO_T}yes" >&6
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 cat conftest.$ac_ext >&5
12601 echo "$as_me:$LINENO: result: no" >&5
12602 echo "${ECHO_T}no" >&6
12603 fi
12604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12605
12606 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12607 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 #include "confdefs.h"
12611 #include <setjmp.h>
12612 #ifdef F77_DUMMY_MAIN
12613 #  ifdef __cplusplus
12614      extern "C"
12615 #  endif
12616    int F77_DUMMY_MAIN() { return 1; }
12617 #endif
12618 int
12619 main ()
12620 {
12621 sigjmp_buf x; sigsetjmp(x, 1);
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12628   (eval $ac_link) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -s conftest$ac_exeext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_SIGSETJMP 1
12641 _ACEOF
12642
12643 echo "$as_me:$LINENO: result: yes" >&5
12644 echo "${ECHO_T}yes" >&6
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6
12650 fi
12651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12652
12653 echo "$as_me:$LINENO: checking for syslog" >&5
12654 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12655 if test "${ac_cv_func_syslog+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12660 #include "confdefs.h"
12661 /* System header to define __stub macros and hopefully few prototypes,
12662     which can conflict with char syslog (); below.  */
12663 #include <assert.h>
12664 /* Override any gcc2 internal prototype to avoid an error.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 /* We use char because int might match the return type of a gcc2
12669    builtin and then its argument prototype would still apply.  */
12670 char syslog ();
12671 char (*f) ();
12672
12673 #ifdef F77_DUMMY_MAIN
12674 #  ifdef __cplusplus
12675      extern "C"
12676 #  endif
12677    int F77_DUMMY_MAIN() { return 1; }
12678 #endif
12679 int
12680 main ()
12681 {
12682 /* The GNU C library defines this for functions which it implements
12683     to always fail with ENOSYS.  Some functions are actually named
12684     something starting with __ and the normal name is an alias.  */
12685 #if defined (__stub_syslog) || defined (__stub___syslog)
12686 choke me
12687 #else
12688 f = syslog;
12689 #endif
12690
12691   ;
12692   return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697   (eval $ac_link) 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -s conftest$ac_exeext'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; }; then
12707   ac_cv_func_syslog=yes
12708 else
12709   echo "$as_me: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12711 ac_cv_func_syslog=no
12712 fi
12713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12714 fi
12715 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12716 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12717 if test $ac_cv_func_syslog = yes; then
12718   if test "${ac_cv_header_syslog_h+set}" = set; then
12719   echo "$as_me:$LINENO: checking for syslog.h" >&5
12720 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12721 if test "${ac_cv_header_syslog_h+set}" = set; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 fi
12724 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12726 else
12727   # Is the header compilable?
12728 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12729 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12732 #include "confdefs.h"
12733 $ac_includes_default
12734 #include <syslog.h>
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738   (eval $ac_compile) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -s conftest.$ac_objext'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; }; then
12748   ac_header_compiler=yes
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12752 ac_header_compiler=no
12753 fi
12754 rm -f conftest.$ac_objext conftest.$ac_ext
12755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12756 echo "${ECHO_T}$ac_header_compiler" >&6
12757
12758 # Is the header present?
12759 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12760 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line $LINENO "configure"
12763 #include "confdefs.h"
12764 #include <syslog.h>
12765 _ACEOF
12766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12768   ac_status=$?
12769   egrep -v '^ *\+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } >/dev/null; then
12774   if test -s conftest.err; then
12775     ac_cpp_err=$ac_c_preproc_warn_flag
12776   else
12777     ac_cpp_err=
12778   fi
12779 else
12780   ac_cpp_err=yes
12781 fi
12782 if test -z "$ac_cpp_err"; then
12783   ac_header_preproc=yes
12784 else
12785   echo "$as_me: failed program was:" >&5
12786   cat conftest.$ac_ext >&5
12787   ac_header_preproc=no
12788 fi
12789 rm -f conftest.err conftest.$ac_ext
12790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6
12792
12793 # So?  What about this header?
12794 case $ac_header_compiler:$ac_header_preproc in
12795   yes:no )
12796     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12799 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12800   no:yes )
12801     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12802 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12803     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12804 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12805     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12806 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12807 esac
12808 echo "$as_me:$LINENO: checking for syslog.h" >&5
12809 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12810 if test "${ac_cv_header_syslog_h+set}" = set; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   ac_cv_header_syslog_h=$ac_header_preproc
12814 fi
12815 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12816 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12817
12818 fi
12819 if test $ac_cv_header_syslog_h = yes; then
12820
12821 cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_SYSLOG 1
12823 _ACEOF
12824
12825 fi
12826
12827
12828 fi
12829
12830
12831 echo "$as_me:$LINENO: checking for optreset" >&5
12832 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12833 if test "${pgac_cv_var_int_optreset+set}" = set; then
12834   echo $ECHO_N "(cached) $ECHO_C" >&6
12835 else
12836   cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 #include "confdefs.h"
12839 #include <unistd.h>
12840 #ifdef F77_DUMMY_MAIN
12841 #  ifdef __cplusplus
12842      extern "C"
12843 #  endif
12844    int F77_DUMMY_MAIN() { return 1; }
12845 #endif
12846 int
12847 main ()
12848 {
12849 extern int optreset; optreset = 1;
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest.$ac_objext conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856   (eval $ac_link) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -s conftest$ac_exeext'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   pgac_cv_var_int_optreset=yes
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 pgac_cv_var_int_optreset=no
12871 fi
12872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12873 fi
12874 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12875 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12876 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12877
12878 cat >>confdefs.h <<\_ACEOF
12879 #define HAVE_INT_OPTRESET 1
12880 _ACEOF
12881
12882 fi
12883
12884
12885
12886 for ac_func in strtoll strtoq
12887 do
12888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12889 echo "$as_me:$LINENO: checking for $ac_func" >&5
12890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12891 if eval "test \"\${$as_ac_var+set}\" = set"; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   cat >conftest.$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12896 #include "confdefs.h"
12897 /* System header to define __stub macros and hopefully few prototypes,
12898     which can conflict with char $ac_func (); below.  */
12899 #include <assert.h>
12900 /* Override any gcc2 internal prototype to avoid an error.  */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 /* We use char because int might match the return type of a gcc2
12905    builtin and then its argument prototype would still apply.  */
12906 char $ac_func ();
12907 char (*f) ();
12908
12909 #ifdef F77_DUMMY_MAIN
12910 #  ifdef __cplusplus
12911      extern "C"
12912 #  endif
12913    int F77_DUMMY_MAIN() { return 1; }
12914 #endif
12915 int
12916 main ()
12917 {
12918 /* The GNU C library defines this for functions which it implements
12919     to always fail with ENOSYS.  Some functions are actually named
12920     something starting with __ and the normal name is an alias.  */
12921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12922 choke me
12923 #else
12924 f = $ac_func;
12925 #endif
12926
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933   (eval $ac_link) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } &&
12937          { ac_try='test -s conftest$ac_exeext'
12938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939   (eval $ac_try) 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; }; then
12943   eval "$as_ac_var=yes"
12944 else
12945   echo "$as_me: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 eval "$as_ac_var=no"
12948 fi
12949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12950 fi
12951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12953 if test `eval echo '${'$as_ac_var'}'` = yes; then
12954   cat >>confdefs.h <<_ACEOF
12955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12956 _ACEOF
12957  break
12958 fi
12959 done
12960
12961
12962
12963 for ac_func in strtoull strtouq
12964 do
12965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12966 echo "$as_me:$LINENO: checking for $ac_func" >&5
12967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12968 if eval "test \"\${$as_ac_var+set}\" = set"; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   cat >conftest.$ac_ext <<_ACEOF
12972 #line $LINENO "configure"
12973 #include "confdefs.h"
12974 /* System header to define __stub macros and hopefully few prototypes,
12975     which can conflict with char $ac_func (); below.  */
12976 #include <assert.h>
12977 /* Override any gcc2 internal prototype to avoid an error.  */
12978 #ifdef __cplusplus
12979 extern "C"
12980 #endif
12981 /* We use char because int might match the return type of a gcc2
12982    builtin and then its argument prototype would still apply.  */
12983 char $ac_func ();
12984 char (*f) ();
12985
12986 #ifdef F77_DUMMY_MAIN
12987 #  ifdef __cplusplus
12988      extern "C"
12989 #  endif
12990    int F77_DUMMY_MAIN() { return 1; }
12991 #endif
12992 int
12993 main ()
12994 {
12995 /* The GNU C library defines this for functions which it implements
12996     to always fail with ENOSYS.  Some functions are actually named
12997     something starting with __ and the normal name is an alias.  */
12998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12999 choke me
13000 #else
13001 f = $ac_func;
13002 #endif
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010   (eval $ac_link) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); } &&
13014          { ac_try='test -s conftest$ac_exeext'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   eval "$as_ac_var=yes"
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13024 eval "$as_ac_var=no"
13025 fi
13026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13027 fi
13028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13030 if test `eval echo '${'$as_ac_var'}'` = yes; then
13031   cat >>confdefs.h <<_ACEOF
13032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033 _ACEOF
13034  break
13035 fi
13036 done
13037
13038
13039 # Check for one of atexit() or on_exit()
13040
13041 for ac_func in atexit
13042 do
13043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13044 echo "$as_me:$LINENO: checking for $ac_func" >&5
13045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13046 if eval "test \"\${$as_ac_var+set}\" = set"; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049   cat >conftest.$ac_ext <<_ACEOF
13050 #line $LINENO "configure"
13051 #include "confdefs.h"
13052 /* System header to define __stub macros and hopefully few prototypes,
13053     which can conflict with char $ac_func (); below.  */
13054 #include <assert.h>
13055 /* Override any gcc2 internal prototype to avoid an error.  */
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 /* We use char because int might match the return type of a gcc2
13060    builtin and then its argument prototype would still apply.  */
13061 char $ac_func ();
13062 char (*f) ();
13063
13064 #ifdef F77_DUMMY_MAIN
13065 #  ifdef __cplusplus
13066      extern "C"
13067 #  endif
13068    int F77_DUMMY_MAIN() { return 1; }
13069 #endif
13070 int
13071 main ()
13072 {
13073 /* The GNU C library defines this for functions which it implements
13074     to always fail with ENOSYS.  Some functions are actually named
13075     something starting with __ and the normal name is an alias.  */
13076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13077 choke me
13078 #else
13079 f = $ac_func;
13080 #endif
13081
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088   (eval $ac_link) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } &&
13092          { ac_try='test -s conftest$ac_exeext'
13093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094   (eval $ac_try) 2>&5
13095   ac_status=$?
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); }; }; then
13098   eval "$as_ac_var=yes"
13099 else
13100   echo "$as_me: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13102 eval "$as_ac_var=no"
13103 fi
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 fi
13106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13108 if test `eval echo '${'$as_ac_var'}'` = yes; then
13109   cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13111 _ACEOF
13112
13113 else
13114
13115 for ac_func in on_exit
13116 do
13117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13118 echo "$as_me:$LINENO: checking for $ac_func" >&5
13119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13120 if eval "test \"\${$as_ac_var+set}\" = set"; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   cat >conftest.$ac_ext <<_ACEOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13126 /* System header to define __stub macros and hopefully few prototypes,
13127     which can conflict with char $ac_func (); below.  */
13128 #include <assert.h>
13129 /* Override any gcc2 internal prototype to avoid an error.  */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 /* We use char because int might match the return type of a gcc2
13134    builtin and then its argument prototype would still apply.  */
13135 char $ac_func ();
13136 char (*f) ();
13137
13138 #ifdef F77_DUMMY_MAIN
13139 #  ifdef __cplusplus
13140      extern "C"
13141 #  endif
13142    int F77_DUMMY_MAIN() { return 1; }
13143 #endif
13144 int
13145 main ()
13146 {
13147 /* The GNU C library defines this for functions which it implements
13148     to always fail with ENOSYS.  Some functions are actually named
13149     something starting with __ and the normal name is an alias.  */
13150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13151 choke me
13152 #else
13153 f = $ac_func;
13154 #endif
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162   (eval $ac_link) 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -s conftest$ac_exeext'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   eval "$as_ac_var=yes"
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 cat conftest.$ac_ext >&5
13176 eval "$as_ac_var=no"
13177 fi
13178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13179 fi
13180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13182 if test `eval echo '${'$as_ac_var'}'` = yes; then
13183   cat >>confdefs.h <<_ACEOF
13184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13185 _ACEOF
13186
13187 else
13188   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13189 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13190    { (exit 1); exit 1; }; }
13191 fi
13192 done
13193
13194 fi
13195 done
13196
13197
13198 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13199 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13200 if test "${ac_cv_sys_largefile_source+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   while :; do
13204   ac_cv_sys_largefile_source=no
13205   cat >conftest.$ac_ext <<_ACEOF
13206 #line $LINENO "configure"
13207 #include "confdefs.h"
13208 #include <stdio.h>
13209 #ifdef F77_DUMMY_MAIN
13210 #  ifdef __cplusplus
13211      extern "C"
13212 #  endif
13213    int F77_DUMMY_MAIN() { return 1; }
13214 #endif
13215 int
13216 main ()
13217 {
13218 return !fseeko;
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225   (eval $ac_compile) 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -s conftest.$ac_objext'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; }; then
13235   break
13236 else
13237   echo "$as_me: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13239 fi
13240 rm -f conftest.$ac_objext conftest.$ac_ext
13241   cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13243 #include "confdefs.h"
13244 #define _LARGEFILE_SOURCE 1
13245 #include <stdio.h>
13246 #ifdef F77_DUMMY_MAIN
13247 #  ifdef __cplusplus
13248      extern "C"
13249 #  endif
13250    int F77_DUMMY_MAIN() { return 1; }
13251 #endif
13252 int
13253 main ()
13254 {
13255 return !fseeko;
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262   (eval $ac_compile) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); } &&
13266          { ac_try='test -s conftest.$ac_objext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_sys_largefile_source=1; break
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 cat conftest.$ac_ext >&5
13276 fi
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278   break
13279 done
13280 fi
13281 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13283 if test "$ac_cv_sys_largefile_source" != no; then
13284
13285 cat >>confdefs.h <<_ACEOF
13286 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13287 _ACEOF
13288
13289 fi
13290 rm -f conftest*
13291
13292 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13293 # in glibc 2.1.3, but that breaks too many other things.
13294 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13295 echo "$as_me:$LINENO: checking for fseeko" >&5
13296 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13297 if test "${ac_cv_func_fseeko+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 #line $LINENO "configure"
13302 #include "confdefs.h"
13303 #include <stdio.h>
13304 #ifdef F77_DUMMY_MAIN
13305 #  ifdef __cplusplus
13306      extern "C"
13307 #  endif
13308    int F77_DUMMY_MAIN() { return 1; }
13309 #endif
13310 int
13311 main ()
13312 {
13313 return fseeko && fseeko (stdin, 0, 0);
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320   (eval $ac_link) 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -s conftest$ac_exeext'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; }; then
13330   ac_cv_func_fseeko=yes
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_cv_func_fseeko=no
13335 fi
13336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13337 fi
13338 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13339 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13340 if test $ac_cv_func_fseeko = yes; then
13341
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_FSEEKO 1
13344 _ACEOF
13345
13346 fi
13347
13348
13349 #
13350 # Pthreads
13351 #
13352 # For each platform, we need to know about any special compile and link
13353 # libraries, and whether the normal C function names are thread-safe.
13354 # See the comment at the top of src/port/thread.c for more information.
13355 #
13356 if test "$enable_thread_safety" = yes; then
13357
13358
13359
13360
13361 ac_ext=c
13362 ac_cpp='$CPP $CPPFLAGS'
13363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13366
13367 acx_pthread_ok=no
13368
13369 # We used to check for pthread.h first, but this fails if pthread.h
13370 # requires special compiler flags (e.g. on True64 or Sequent).
13371 # It gets checked for in the link test anyway.
13372
13373 # First of all, check if the user has set any of the PTHREAD_LIBS,
13374 # etcetera environment variables, and if threads linking works using
13375 # them:
13376 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13377         save_CFLAGS="$CFLAGS"
13378         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13379         save_LIBS="$LIBS"
13380         LIBS="$PTHREAD_LIBS $LIBS"
13381         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13382 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13383         cat >conftest.$ac_ext <<_ACEOF
13384 #line $LINENO "configure"
13385 #include "confdefs.h"
13386
13387 /* Override any gcc2 internal prototype to avoid an error.  */
13388 #ifdef __cplusplus
13389 extern "C"
13390 #endif
13391 /* We use char because int might match the return type of a gcc2
13392    builtin and then its argument prototype would still apply.  */
13393 char pthread_join ();
13394 #ifdef F77_DUMMY_MAIN
13395 #  ifdef __cplusplus
13396      extern "C"
13397 #  endif
13398    int F77_DUMMY_MAIN() { return 1; }
13399 #endif
13400 int
13401 main ()
13402 {
13403 pthread_join ();
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410   (eval $ac_link) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -s conftest$ac_exeext'
13415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416   (eval $ac_try) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; }; then
13420   acx_pthread_ok=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 fi
13425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13426         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13427 echo "${ECHO_T}$acx_pthread_ok" >&6
13428         if test x"$acx_pthread_ok" = xno; then
13429                 PTHREAD_LIBS=""
13430                 PTHREAD_CFLAGS=""
13431         fi
13432         LIBS="$save_LIBS"
13433         CFLAGS="$save_CFLAGS"
13434 fi
13435
13436 # We must check for the threads library under a number of different
13437 # names; the ordering is very important because some systems
13438 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13439 # libraries is broken (non-POSIX).
13440
13441 # Create a list of thread flags to try.  Items starting with a "-" are
13442 # C compiler flags, and other items are library names, except for "none"
13443 # which indicates that we try without any flags at all, and "pthread-config"
13444 # which is a program returning the flags for the Pth emulation library.
13445
13446 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13447
13448 # The ordering *is* (sometimes) important.  Some notes on the
13449 # individual items follow:
13450
13451 # pthreads: AIX (must check this before -lpthread)
13452 # none: in case threads are in libc; should be tried before -Kthread and
13453 #       other compiler flags to prevent continual compiler warnings
13454 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13455 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13456 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13457 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13458 # -pthreads: Solaris/gcc
13459 # -mthreads: Mingw32/gcc, Lynx/gcc
13460 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13461 #      doesn't hurt to check since this sometimes defines pthreads too;
13462 #      also defines -D_REENTRANT)
13463 # pthread: Linux, etcetera
13464 # --thread-safe: KAI C++
13465 # pthread-config: use pthread-config program (for GNU Pth library)
13466
13467 case "${host_cpu}-${host_os}" in
13468         *solaris*)
13469
13470         # On Solaris (at least, for some versions), libc contains stubbed
13471         # (non-functional) versions of the pthreads routines, so link-based
13472         # tests will erroneously succeed.  (We need to link with -pthread or
13473         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13474         # a function called by this macro, so we could check for that, but
13475         # who knows whether they'll stub that too in a future libc.)  So,
13476         # we'll just look for -pthreads and -lpthread first:
13477
13478         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13479         ;;
13480 esac
13481
13482 if test x"$acx_pthread_ok" = xno; then
13483 for flag in $acx_pthread_flags; do
13484
13485         tryPTHREAD_CFLAGS=""
13486         tryPTHREAD_LIBS=""
13487         case $flag in
13488                 none)
13489                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13490 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13491                 ;;
13492
13493                 -*)
13494                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13495 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13496                 tryPTHREAD_CFLAGS="$flag"
13497                 ;;
13498
13499                 pthread-config)
13500                 # skip this if we already have flags defined, for PostgreSQL
13501                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13502                 # Extract the first word of "pthread-config", so it can be a program name with args.
13503 set dummy pthread-config; ac_word=$2
13504 echo "$as_me:$LINENO: checking for $ac_word" >&5
13505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13506 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13507   echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509   if test -n "$acx_pthread_config"; then
13510   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13511 else
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13514 do
13515   IFS=$as_save_IFS
13516   test -z "$as_dir" && as_dir=.
13517   for ac_exec_ext in '' $ac_executable_extensions; do
13518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13519     ac_cv_prog_acx_pthread_config="yes"
13520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13521     break 2
13522   fi
13523 done
13524 done
13525
13526   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13527 fi
13528 fi
13529 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13530 if test -n "$acx_pthread_config"; then
13531   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13532 echo "${ECHO_T}$acx_pthread_config" >&6
13533 else
13534   echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13536 fi
13537
13538                 if test x"$acx_pthread_config" = xno; then continue; fi
13539                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13540                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13541                 ;;
13542
13543                 *)
13544                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13545 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13546                 tryPTHREAD_LIBS="-l$flag"
13547                 ;;
13548         esac
13549
13550         save_LIBS="$LIBS"
13551         save_CFLAGS="$CFLAGS"
13552         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13553         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13554
13555         # Check for various functions.  We must include pthread.h,
13556         # since some functions may be macros.  (On the Sequent, we
13557         # need a special flag -Kthread to make this header compile.)
13558         # We check for pthread_join because it is in -lpthread on IRIX
13559         # while pthread_create is in libc.  We check for pthread_attr_init
13560         # due to DEC craziness with -lpthreads.  We check for
13561         # pthread_cleanup_push because it is one of the few pthread
13562         # functions on Solaris that doesn't have a non-functional libc stub.
13563         # We try pthread_create on general principles.
13564         cat >conftest.$ac_ext <<_ACEOF
13565 #line $LINENO "configure"
13566 #include "confdefs.h"
13567 #include <pthread.h>
13568 #ifdef F77_DUMMY_MAIN
13569 #  ifdef __cplusplus
13570      extern "C"
13571 #  endif
13572    int F77_DUMMY_MAIN() { return 1; }
13573 #endif
13574 int
13575 main ()
13576 {
13577 pthread_t th; pthread_join(th, 0);
13578                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
13579                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586   (eval $ac_link) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } &&
13590          { ac_try='test -s conftest$ac_exeext'
13591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592   (eval $ac_try) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); }; }; then
13596   acx_pthread_ok=yes
13597 else
13598   echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13600 acx_pthread_ok=no
13601 fi
13602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13603
13604         if test "x$acx_pthread_ok" = xyes; then
13605             # Don't use options that are ignored by the compiler.
13606             # We find them by checking stderror.
13607             cat >conftest.$ac_ext <<_ACEOF
13608 int
13609 main (int argc, char **argv)
13610 {
13611   (void) argc;
13612   (void) argv;
13613   return 0;
13614 }
13615 _ACEOF
13616             rm -f conftest.$ac_objext conftest$ac_exeext
13617             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
13618                 # we continue with more flags because Linux needs -lpthread
13619                 # for libpq builds on PostgreSQL.  The test above only
13620                 # tests for building binaries, not shared libraries.
13621                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13622                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13623             else   acx_pthread_ok=no
13624             fi
13625         fi
13626
13627         LIBS="$save_LIBS"
13628         CFLAGS="$save_CFLAGS"
13629
13630         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13631 echo "${ECHO_T}$acx_pthread_ok" >&6
13632 done
13633 fi
13634
13635 # Various other checks:
13636 if test "x$acx_pthread_ok" = xyes; then
13637         save_LIBS="$LIBS"
13638         LIBS="$PTHREAD_LIBS $LIBS"
13639         save_CFLAGS="$CFLAGS"
13640         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13641
13642         # Detect AIX lossage: threads are created detached by default
13643         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13644         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13645 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13646         cat >conftest.$ac_ext <<_ACEOF
13647 #line $LINENO "configure"
13648 #include "confdefs.h"
13649 #include <pthread.h>
13650 #ifdef F77_DUMMY_MAIN
13651 #  ifdef __cplusplus
13652      extern "C"
13653 #  endif
13654    int F77_DUMMY_MAIN() { return 1; }
13655 #endif
13656 int
13657 main ()
13658 {
13659 int attr=PTHREAD_CREATE_JOINABLE;
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest$ac_exeext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ok=PTHREAD_CREATE_JOINABLE
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 ok=unknown
13681 fi
13682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683         if test x"$ok" = xunknown; then
13684                 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 #include "confdefs.h"
13687 #include <pthread.h>
13688 #ifdef F77_DUMMY_MAIN
13689 #  ifdef __cplusplus
13690      extern "C"
13691 #  endif
13692    int F77_DUMMY_MAIN() { return 1; }
13693 #endif
13694 int
13695 main ()
13696 {
13697 int attr=PTHREAD_CREATE_UNDETACHED;
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704   (eval $ac_link) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -s conftest$ac_exeext'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714   ok=PTHREAD_CREATE_UNDETACHED
13715 else
13716   echo "$as_me: failed program was:" >&5
13717 cat conftest.$ac_ext >&5
13718 ok=unknown
13719 fi
13720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13721         fi
13722         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13723
13724 cat >>confdefs.h <<\_ACEOF
13725 #define PTHREAD_CREATE_JOINABLE $ok
13726 _ACEOF
13727
13728         fi
13729         echo "$as_me:$LINENO: result: ${ok}" >&5
13730 echo "${ECHO_T}${ok}" >&6
13731         if test x"$ok" = xunknown; then
13732                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13733 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13734         fi
13735
13736         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13737 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13738         flag=no
13739 # We always add these in PostgreSQL
13740 #       case "${host_cpu}-${host_os}" in
13741 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13742 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13743 #       esac
13744         echo "$as_me:$LINENO: result: ${flag}" >&5
13745 echo "${ECHO_T}${flag}" >&6
13746         if test "x$flag" != xno; then
13747                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13748         fi
13749
13750         LIBS="$save_LIBS"
13751         CFLAGS="$save_CFLAGS"
13752
13753         # More AIX lossage: must compile with cc_r
13754         # Extract the first word of "cc_r", so it can be a program name with args.
13755 set dummy cc_r; ac_word=$2
13756 echo "$as_me:$LINENO: checking for $ac_word" >&5
13757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13758 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   if test -n "$PTHREAD_CC"; then
13762   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13763 else
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767   IFS=$as_save_IFS
13768   test -z "$as_dir" && as_dir=.
13769   for ac_exec_ext in '' $ac_executable_extensions; do
13770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771     ac_cv_prog_PTHREAD_CC="cc_r"
13772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13773     break 2
13774   fi
13775 done
13776 done
13777
13778   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13779 fi
13780 fi
13781 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13782 if test -n "$PTHREAD_CC"; then
13783   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13784 echo "${ECHO_T}$PTHREAD_CC" >&6
13785 else
13786   echo "$as_me:$LINENO: result: no" >&5
13787 echo "${ECHO_T}no" >&6
13788 fi
13789
13790 else
13791         PTHREAD_CC="$CC"
13792 fi
13793
13794
13795
13796
13797
13798 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13799 if test x"$acx_pthread_ok" = xyes; then
13800
13801 cat >>confdefs.h <<\_ACEOF
13802 #define HAVE_PTHREAD 1
13803 _ACEOF
13804
13805         :
13806 else
13807         acx_pthread_ok=no
13808
13809 fi
13810 ac_ext=c
13811 ac_cpp='$CPP $CPPFLAGS'
13812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13815
13816         # set thread flags
13817
13818 # Some platforms use these, so just defineed them.  They can't hurt if they
13819 # are not supported.
13820 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13821
13822
13823 # At this point, we don't want to muck with the compiler name for threading.
13824 # Let's see who fails, perhaps AIX.  2004-04-23
13825 if test "$PTHREAD_CC" != "$CC"; then
13826 { { echo "$as_me:$LINENO: error:
13827 PostgreSQL does not support platforms that require a special
13828 compiler binary for thread-safety.
13829 " >&5
13830 echo "$as_me: error:
13831 PostgreSQL does not support platforms that require a special
13832 compiler binary for thread-safety.
13833 " >&2;}
13834    { (exit 1); exit 1; }; }
13835 fi
13836
13837 if test "$THREAD_SUPPORT" = no; then
13838 { { echo "$as_me:$LINENO: error:
13839 Cannot enable threads on your platform.
13840 Your platform is known to not support thread-safe programs.
13841 For details, compile and run src/bin/pg_thread_test.
13842 " >&5
13843 echo "$as_me: error:
13844 Cannot enable threads on your platform.
13845 Your platform is known to not support thread-safe programs.
13846 For details, compile and run src/bin/pg_thread_test.
13847 " >&2;}
13848    { (exit 1); exit 1; }; }
13849 fi
13850
13851 # Check for *_r functions
13852 _CFLAGS="$CFLAGS"
13853 _LIBS="$LIBS"
13854 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13855 LIBS="$LIBS $PTHREAD_LIBS"
13856
13857 if test "${ac_cv_header_pthread_h+set}" = set; then
13858   echo "$as_me:$LINENO: checking for pthread.h" >&5
13859 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13860 if test "${ac_cv_header_pthread_h+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 fi
13863 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13864 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13865 else
13866   # Is the header compilable?
13867 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13868 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 #include "confdefs.h"
13872 $ac_includes_default
13873 #include <pthread.h>
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877   (eval $ac_compile) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -s conftest.$ac_objext'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_header_compiler=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 ac_header_compiler=no
13892 fi
13893 rm -f conftest.$ac_objext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13895 echo "${ECHO_T}$ac_header_compiler" >&6
13896
13897 # Is the header present?
13898 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13899 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13900 cat >conftest.$ac_ext <<_ACEOF
13901 #line $LINENO "configure"
13902 #include "confdefs.h"
13903 #include <pthread.h>
13904 _ACEOF
13905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13907   ac_status=$?
13908   egrep -v '^ *\+' conftest.er1 >conftest.err
13909   rm -f conftest.er1
13910   cat conftest.err >&5
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } >/dev/null; then
13913   if test -s conftest.err; then
13914     ac_cpp_err=$ac_c_preproc_warn_flag
13915   else
13916     ac_cpp_err=
13917   fi
13918 else
13919   ac_cpp_err=yes
13920 fi
13921 if test -z "$ac_cpp_err"; then
13922   ac_header_preproc=yes
13923 else
13924   echo "$as_me: failed program was:" >&5
13925   cat conftest.$ac_ext >&5
13926   ac_header_preproc=no
13927 fi
13928 rm -f conftest.err conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13930 echo "${ECHO_T}$ac_header_preproc" >&6
13931
13932 # So?  What about this header?
13933 case $ac_header_compiler:$ac_header_preproc in
13934   yes:no )
13935     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13936 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13937     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13938 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13939   no:yes )
13940     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13941 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13942     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13943 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13944     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13945 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13946 esac
13947 echo "$as_me:$LINENO: checking for pthread.h" >&5
13948 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13949 if test "${ac_cv_header_pthread_h+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   ac_cv_header_pthread_h=$ac_header_preproc
13953 fi
13954 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13955 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13956
13957 fi
13958 if test $ac_cv_header_pthread_h = yes; then
13959   :
13960 else
13961   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13962 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13963    { (exit 1); exit 1; }; }
13964 fi
13965
13966
13967
13968
13969
13970
13971 for ac_func in strerror_r getpwuid_r gethostbyname_r
13972 do
13973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13974 echo "$as_me:$LINENO: checking for $ac_func" >&5
13975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13976 if eval "test \"\${$as_ac_var+set}\" = set"; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   cat >conftest.$ac_ext <<_ACEOF
13980 #line $LINENO "configure"
13981 #include "confdefs.h"
13982 /* System header to define __stub macros and hopefully few prototypes,
13983     which can conflict with char $ac_func (); below.  */
13984 #include <assert.h>
13985 /* Override any gcc2 internal prototype to avoid an error.  */
13986 #ifdef __cplusplus
13987 extern "C"
13988 #endif
13989 /* We use char because int might match the return type of a gcc2
13990    builtin and then its argument prototype would still apply.  */
13991 char $ac_func ();
13992 char (*f) ();
13993
13994 #ifdef F77_DUMMY_MAIN
13995 #  ifdef __cplusplus
13996      extern "C"
13997 #  endif
13998    int F77_DUMMY_MAIN() { return 1; }
13999 #endif
14000 int
14001 main ()
14002 {
14003 /* The GNU C library defines this for functions which it implements
14004     to always fail with ENOSYS.  Some functions are actually named
14005     something starting with __ and the normal name is an alias.  */
14006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14007 choke me
14008 #else
14009 f = $ac_func;
14010 #endif
14011
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018   (eval $ac_link) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -s conftest$ac_exeext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   eval "$as_ac_var=yes"
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14032 eval "$as_ac_var=no"
14033 fi
14034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14035 fi
14036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14038 if test `eval echo '${'$as_ac_var'}'` = yes; then
14039   cat >>confdefs.h <<_ACEOF
14040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14041 _ACEOF
14042
14043 fi
14044 done
14045
14046
14047 # Do test here with the proper thread flags
14048 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14049 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14050 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 #line $LINENO "configure"
14055 #include "confdefs.h"
14056 #include <sys/types.h>
14057 #include <pwd.h>
14058 #ifdef F77_DUMMY_MAIN
14059 #  ifdef __cplusplus
14060      extern "C"
14061 #  endif
14062    int F77_DUMMY_MAIN() { return 1; }
14063 #endif
14064 int
14065 main ()
14066 {
14067 uid_t uid;
14068 struct passwd *space;
14069 char *buf;
14070 size_t bufsize;
14071 struct passwd **result;
14072 getpwuid_r(uid, space, buf, bufsize, result);
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079   (eval $ac_compile) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -s conftest.$ac_objext'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089   pgac_func_getpwuid_r_5arg=yes
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14093 pgac_func_getpwuid_r_5arg=no
14094 fi
14095 rm -f conftest.$ac_objext conftest.$ac_ext
14096 fi
14097 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14098 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14099 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14100
14101 cat >>confdefs.h <<\_ACEOF
14102 #define GETPWUID_R_5ARG
14103 _ACEOF
14104
14105 fi
14106
14107 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14108 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14109 if test "${pgac_func_strerror_r_int+set}" = set; then
14110   echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112   cat >conftest.$ac_ext <<_ACEOF
14113 #line $LINENO "configure"
14114 #include "confdefs.h"
14115 #include <string.h>
14116 #ifdef F77_DUMMY_MAIN
14117 #  ifdef __cplusplus
14118      extern "C"
14119 #  endif
14120    int F77_DUMMY_MAIN() { return 1; }
14121 #endif
14122 int
14123 main ()
14124 {
14125 int strerror_r(int, char *, size_t);
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest.$ac_objext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14132   (eval $ac_compile) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } &&
14136          { ac_try='test -s conftest.$ac_objext'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   pgac_func_strerror_r_int=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 pgac_func_strerror_r_int=no
14147 fi
14148 rm -f conftest.$ac_objext conftest.$ac_ext
14149 fi
14150 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14151 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14152 if test x"$pgac_func_strerror_r_int" = xyes ; then
14153
14154 cat >>confdefs.h <<\_ACEOF
14155 #define STRERROR_R_INT
14156 _ACEOF
14157
14158 fi
14159
14160
14161 CFLAGS="$_CFLAGS"
14162 LIBS="$_LIBS"
14163
14164 else
14165 # do not use values from template file
14166 PTHREAD_CFLAGS=
14167 PTHREAD_LIBS=
14168 fi
14169
14170
14171
14172
14173
14174 # This test makes sure that run tests work at all.  Sometimes a shared
14175 # library is found by the linker, but the runtime linker can't find it.
14176 # This check should come after all modifications of compiler or linker
14177 # variables, and before any other run tests.
14178 echo "$as_me:$LINENO: checking test program" >&5
14179 echo $ECHO_N "checking test program... $ECHO_C" >&6
14180 if test "$cross_compiling" = yes; then
14181   echo "$as_me:$LINENO: result: cross-compiling" >&5
14182 echo "${ECHO_T}cross-compiling" >&6
14183 else
14184   cat >conftest.$ac_ext <<_ACEOF
14185 #line $LINENO "configure"
14186 #include "confdefs.h"
14187 int main() { return 0; }
14188 _ACEOF
14189 rm -f conftest$ac_exeext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191   (eval $ac_link) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; }; then
14200   echo "$as_me:$LINENO: result: ok" >&5
14201 echo "${ECHO_T}ok" >&6
14202 else
14203   echo "$as_me: program exited with status $ac_status" >&5
14204 echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 ( exit $ac_status )
14207 echo "$as_me:$LINENO: result: failed" >&5
14208 echo "${ECHO_T}failed" >&6
14209 { { echo "$as_me:$LINENO: error:
14210 *** Could not execute a simple test program.  This may be a problem
14211 *** related to locating shared libraries.  Check the file 'config.log'
14212 *** for the exact reason." >&5
14213 echo "$as_me: error:
14214 *** Could not execute a simple test program.  This may be a problem
14215 *** related to locating shared libraries.  Check the file 'config.log'
14216 *** for the exact reason." >&2;}
14217    { (exit 1); exit 1; }; }
14218 fi
14219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14220 fi
14221
14222
14223
14224 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14225 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14226 if test "${pgac_cv_type_long_int_64+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   if test "$cross_compiling" = yes; then
14230   # If cross-compiling, check the size reported by the compiler and
14231 # trust that the arithmetic works.
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14234 #include "confdefs.h"
14235
14236 #ifdef F77_DUMMY_MAIN
14237 #  ifdef __cplusplus
14238      extern "C"
14239 #  endif
14240    int F77_DUMMY_MAIN() { return 1; }
14241 #endif
14242 int
14243 main ()
14244 {
14245 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14246 test_array [0] = 0
14247
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 rm -f conftest.$ac_objext
14253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254   (eval $ac_compile) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -s conftest.$ac_objext'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; }; then
14264   pgac_cv_type_long_int_64=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14268 pgac_cv_type_long_int_64=no
14269 fi
14270 rm -f conftest.$ac_objext conftest.$ac_ext
14271 else
14272   cat >conftest.$ac_ext <<_ACEOF
14273 #line $LINENO "configure"
14274 #include "confdefs.h"
14275 typedef long int int64;
14276
14277 /*
14278  * These are globals to discourage the compiler from folding all the
14279  * arithmetic tests down to compile-time constants.
14280  */
14281 int64 a = 20000001;
14282 int64 b = 40000005;
14283
14284 int does_int64_work()
14285 {
14286   int64 c,d;
14287
14288   if (sizeof(int64) != 8)
14289     return 0;                   /* definitely not the right size */
14290
14291   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14292   c = a * b;
14293   d = (c + b) / b;
14294   if (d != a+1)
14295     return 0;
14296   return 1;
14297 }
14298 main() {
14299   exit(! does_int64_work());
14300 }
14301 _ACEOF
14302 rm -f conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304   (eval $ac_link) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309   (eval $ac_try) 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   pgac_cv_type_long_int_64=yes
14314 else
14315   echo "$as_me: program exited with status $ac_status" >&5
14316 echo "$as_me: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 ( exit $ac_status )
14319 pgac_cv_type_long_int_64=no
14320 fi
14321 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 fi
14324 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14325 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14326
14327 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14328 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_LONG_INT_64
14332 _ACEOF
14333
14334 fi
14335
14336
14337 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14338   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14339 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14340 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   if test "$cross_compiling" = yes; then
14344   # If cross-compiling, check the size reported by the compiler and
14345 # trust that the arithmetic works.
14346 cat >conftest.$ac_ext <<_ACEOF
14347 #line $LINENO "configure"
14348 #include "confdefs.h"
14349
14350 #ifdef F77_DUMMY_MAIN
14351 #  ifdef __cplusplus
14352      extern "C"
14353 #  endif
14354    int F77_DUMMY_MAIN() { return 1; }
14355 #endif
14356 int
14357 main ()
14358 {
14359 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14360 test_array [0] = 0
14361
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368   (eval $ac_compile) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -s conftest.$ac_objext'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; }; then
14378   pgac_cv_type_long_long_int_64=yes
14379 else
14380   echo "$as_me: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14382 pgac_cv_type_long_long_int_64=no
14383 fi
14384 rm -f conftest.$ac_objext conftest.$ac_ext
14385 else
14386   cat >conftest.$ac_ext <<_ACEOF
14387 #line $LINENO "configure"
14388 #include "confdefs.h"
14389 typedef long long int int64;
14390
14391 /*
14392  * These are globals to discourage the compiler from folding all the
14393  * arithmetic tests down to compile-time constants.
14394  */
14395 int64 a = 20000001;
14396 int64 b = 40000005;
14397
14398 int does_int64_work()
14399 {
14400   int64 c,d;
14401
14402   if (sizeof(int64) != 8)
14403     return 0;                   /* definitely not the right size */
14404
14405   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14406   c = a * b;
14407   d = (c + b) / b;
14408   if (d != a+1)
14409     return 0;
14410   return 1;
14411 }
14412 main() {
14413   exit(! does_int64_work());
14414 }
14415 _ACEOF
14416 rm -f conftest$ac_exeext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14418   (eval $ac_link) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; }; then
14427   pgac_cv_type_long_long_int_64=yes
14428 else
14429   echo "$as_me: program exited with status $ac_status" >&5
14430 echo "$as_me: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 ( exit $ac_status )
14433 pgac_cv_type_long_long_int_64=no
14434 fi
14435 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14436 fi
14437 fi
14438 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14439 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14440
14441 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14442 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14443
14444 cat >>confdefs.h <<\_ACEOF
14445 #define HAVE_LONG_LONG_INT_64
14446 _ACEOF
14447
14448 fi
14449
14450 fi
14451
14452
14453
14454 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14455   cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 #include "confdefs.h"
14458
14459 #define INT64CONST(x)  x##LL
14460 long long int foo = INT64CONST(0x1234567890123456);
14461
14462 #ifdef F77_DUMMY_MAIN
14463 #  ifdef __cplusplus
14464      extern "C"
14465 #  endif
14466    int F77_DUMMY_MAIN() { return 1; }
14467 #endif
14468 int
14469 main ()
14470 {
14471
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14478   (eval $ac_compile) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } &&
14482          { ac_try='test -s conftest.$ac_objext'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; }; then
14488
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_LL_CONSTANTS 1
14491 _ACEOF
14492
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 fi
14497 rm -f conftest.$ac_objext conftest.$ac_ext
14498 fi
14499
14500
14501 # If we found "long int" is 64 bits, assume snprintf handles it.  If
14502 # we found we need to use "long long int", better check.  We cope with
14503 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14504 # work, fall back to our own snprintf emulation (which we know uses %lld).
14505
14506 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14507   if test $pgac_need_repl_snprintf = no; then
14508     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14509 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14510 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14511   echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513   for pgac_format in '%lld' '%qd' '%I64d'; do
14514 if test "$cross_compiling" = yes; then
14515   pgac_cv_snprintf_long_long_int_format=cross; break
14516 else
14517   cat >conftest.$ac_ext <<_ACEOF
14518 #line $LINENO "configure"
14519 #include "confdefs.h"
14520 #include <stdio.h>
14521 typedef long long int int64;
14522 #define INT64_FORMAT "$pgac_format"
14523
14524 int64 a = 20000001;
14525 int64 b = 40000005;
14526
14527 int does_int64_snprintf_work()
14528 {
14529   int64 c;
14530   char buf[100];
14531
14532   if (sizeof(int64) != 8)
14533     return 0;                   /* doesn't look like the right size */
14534
14535   c = a * b;
14536   snprintf(buf, 100, INT64_FORMAT, c);
14537   if (strcmp(buf, "800000140000005") != 0)
14538     return 0;                   /* either multiply or snprintf is busted */
14539   return 1;
14540 }
14541 main() {
14542   exit(! does_int64_snprintf_work());
14543 }
14544 _ACEOF
14545 rm -f conftest$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547   (eval $ac_link) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14557 else
14558   echo "$as_me: program exited with status $ac_status" >&5
14559 echo "$as_me: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 fi
14562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14563 fi
14564 done
14565 fi
14566
14567 LONG_LONG_INT_FORMAT=''
14568
14569 case $pgac_cv_snprintf_long_long_int_format in
14570   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14571 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14572   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14573 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14574          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14575   *)     echo "$as_me:$LINENO: result: none" >&5
14576 echo "${ECHO_T}none" >&6;;
14577 esac
14578     if test "$LONG_LONG_INT_FORMAT" = ""; then
14579       # Force usage of our own snprintf, since system snprintf is broken
14580       pgac_need_repl_snprintf=yes
14581       LONG_LONG_INT_FORMAT='%lld'
14582     fi
14583   else
14584     # Here if we previously decided we needed to use our own snprintf
14585     LONG_LONG_INT_FORMAT='%lld'
14586   fi
14587   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14588   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14589   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14590 else
14591   # Here if we are not using 'long long int' at all
14592   INT64_FORMAT='"%ld"'
14593   UINT64_FORMAT='"%lu"'
14594 fi
14595
14596
14597 cat >>confdefs.h <<_ACEOF
14598 #define INT64_FORMAT $INT64_FORMAT
14599 _ACEOF
14600
14601
14602
14603 cat >>confdefs.h <<_ACEOF
14604 #define UINT64_FORMAT $UINT64_FORMAT
14605 _ACEOF
14606
14607
14608 if test $pgac_need_repl_snprintf = yes; then
14609   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14610 fi
14611
14612 # Need a #define for the size of Datum (unsigned long)
14613 echo "$as_me:$LINENO: checking for unsigned long" >&5
14614 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14615 if test "${ac_cv_type_unsigned_long+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   cat >conftest.$ac_ext <<_ACEOF
14619 #line $LINENO "configure"
14620 #include "confdefs.h"
14621 $ac_includes_default
14622 #ifdef F77_DUMMY_MAIN
14623 #  ifdef __cplusplus
14624      extern "C"
14625 #  endif
14626    int F77_DUMMY_MAIN() { return 1; }
14627 #endif
14628 int
14629 main ()
14630 {
14631 if ((unsigned long *) 0)
14632   return 0;
14633 if (sizeof (unsigned long))
14634   return 0;
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641   (eval $ac_compile) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_cv_type_unsigned_long=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14655 ac_cv_type_unsigned_long=no
14656 fi
14657 rm -f conftest.$ac_objext conftest.$ac_ext
14658 fi
14659 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14660 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14661
14662 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14663 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14664 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667   if test "$ac_cv_type_unsigned_long" = yes; then
14668   # The cast to unsigned long works around a bug in the HP C Compiler
14669   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14670   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14671   # This bug is HP SR number 8606223364.
14672   if test "$cross_compiling" = yes; then
14673   # Depending upon the size, compute the lo and hi bounds.
14674 cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 #include "confdefs.h"
14677 $ac_includes_default
14678 #ifdef F77_DUMMY_MAIN
14679 #  ifdef __cplusplus
14680      extern "C"
14681 #  endif
14682    int F77_DUMMY_MAIN() { return 1; }
14683 #endif
14684 int
14685 main ()
14686 {
14687 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14688 test_array [0] = 0
14689
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696   (eval $ac_compile) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_lo=0 ac_mid=0
14707   while :; do
14708     cat >conftest.$ac_ext <<_ACEOF
14709 #line $LINENO "configure"
14710 #include "confdefs.h"
14711 $ac_includes_default
14712 #ifdef F77_DUMMY_MAIN
14713 #  ifdef __cplusplus
14714      extern "C"
14715 #  endif
14716    int F77_DUMMY_MAIN() { return 1; }
14717 #endif
14718 int
14719 main ()
14720 {
14721 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14722 test_array [0] = 0
14723
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14730   (eval $ac_compile) 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } &&
14734          { ac_try='test -s conftest.$ac_objext'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; }; then
14740   ac_hi=$ac_mid; break
14741 else
14742   echo "$as_me: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 ac_lo=`expr $ac_mid + 1`
14745                     if test $ac_lo -le $ac_mid; then
14746                       ac_lo= ac_hi=
14747                       break
14748                     fi
14749                     ac_mid=`expr 2 '*' $ac_mid + 1`
14750 fi
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14752   done
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 $ac_includes_default
14760 #ifdef F77_DUMMY_MAIN
14761 #  ifdef __cplusplus
14762      extern "C"
14763 #  endif
14764    int F77_DUMMY_MAIN() { return 1; }
14765 #endif
14766 int
14767 main ()
14768 {
14769 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14770 test_array [0] = 0
14771
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778   (eval $ac_compile) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } &&
14782          { ac_try='test -s conftest.$ac_objext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_hi=-1 ac_mid=-1
14789   while :; do
14790     cat >conftest.$ac_ext <<_ACEOF
14791 #line $LINENO "configure"
14792 #include "confdefs.h"
14793 $ac_includes_default
14794 #ifdef F77_DUMMY_MAIN
14795 #  ifdef __cplusplus
14796      extern "C"
14797 #  endif
14798    int F77_DUMMY_MAIN() { return 1; }
14799 #endif
14800 int
14801 main ()
14802 {
14803 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14804 test_array [0] = 0
14805
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -s conftest.$ac_objext'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822   ac_lo=$ac_mid; break
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 ac_hi=`expr '(' $ac_mid ')' - 1`
14827                        if test $ac_mid -le $ac_hi; then
14828                          ac_lo= ac_hi=
14829                          break
14830                        fi
14831                        ac_mid=`expr 2 '*' $ac_mid`
14832 fi
14833 rm -f conftest.$ac_objext conftest.$ac_ext
14834   done
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 ac_lo= ac_hi=
14839 fi
14840 rm -f conftest.$ac_objext conftest.$ac_ext
14841 fi
14842 rm -f conftest.$ac_objext conftest.$ac_ext
14843 # Binary search between lo and hi bounds.
14844 while test "x$ac_lo" != "x$ac_hi"; do
14845   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14846   cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 #include "confdefs.h"
14849 $ac_includes_default
14850 #ifdef F77_DUMMY_MAIN
14851 #  ifdef __cplusplus
14852      extern "C"
14853 #  endif
14854    int F77_DUMMY_MAIN() { return 1; }
14855 #endif
14856 int
14857 main ()
14858 {
14859 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14860 test_array [0] = 0
14861
14862   ;
14863   return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868   (eval $ac_compile) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } &&
14872          { ac_try='test -s conftest.$ac_objext'
14873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874   (eval $ac_try) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; }; then
14878   ac_hi=$ac_mid
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14882 ac_lo=`expr '(' $ac_mid ')' + 1`
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885 done
14886 case $ac_lo in
14887 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14889 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14890    { (exit 1); exit 1; }; } ;;
14891 esac
14892 else
14893   if test "$cross_compiling" = yes; then
14894   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14895 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14896    { (exit 1); exit 1; }; }
14897 else
14898   cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14900 #include "confdefs.h"
14901 $ac_includes_default
14902 long longval () { return (long) (sizeof (unsigned long)); }
14903 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14904 #include <stdio.h>
14905 #include <stdlib.h>
14906 #ifdef F77_DUMMY_MAIN
14907 #  ifdef __cplusplus
14908      extern "C"
14909 #  endif
14910    int F77_DUMMY_MAIN() { return 1; }
14911 #endif
14912 int
14913 main ()
14914 {
14915
14916   FILE *f = fopen ("conftest.val", "w");
14917   if (! f)
14918     exit (1);
14919   if (((long) (sizeof (unsigned long))) < 0)
14920     {
14921       long i = longval ();
14922       if (i != ((long) (sizeof (unsigned long))))
14923         exit (1);
14924       fprintf (f, "%ld\n", i);
14925     }
14926   else
14927     {
14928       unsigned long i = ulongval ();
14929       if (i != ((long) (sizeof (unsigned long))))
14930         exit (1);
14931       fprintf (f, "%lu\n", i);
14932     }
14933   exit (ferror (f) || fclose (f) != 0);
14934
14935   ;
14936   return 0;
14937 }
14938 _ACEOF
14939 rm -f conftest$ac_exeext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14941   (eval $ac_link) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; }; then
14950   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14951 else
14952   echo "$as_me: program exited with status $ac_status" >&5
14953 echo "$as_me: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14955 ( exit $ac_status )
14956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14957 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14958    { (exit 1); exit 1; }; }
14959 fi
14960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14961 fi
14962 fi
14963 rm -f conftest.val
14964 else
14965   ac_cv_sizeof_unsigned_long=0
14966 fi
14967 fi
14968 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14969 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14970 cat >>confdefs.h <<_ACEOF
14971 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14972 _ACEOF
14973
14974
14975
14976 # Determine memory alignment requirements for the basic C data types.
14977
14978 echo "$as_me:$LINENO: checking for short" >&5
14979 echo $ECHO_N "checking for short... $ECHO_C" >&6
14980 if test "${ac_cv_type_short+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   cat >conftest.$ac_ext <<_ACEOF
14984 #line $LINENO "configure"
14985 #include "confdefs.h"
14986 $ac_includes_default
14987 #ifdef F77_DUMMY_MAIN
14988 #  ifdef __cplusplus
14989      extern "C"
14990 #  endif
14991    int F77_DUMMY_MAIN() { return 1; }
14992 #endif
14993 int
14994 main ()
14995 {
14996 if ((short *) 0)
14997   return 0;
14998 if (sizeof (short))
14999   return 0;
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   ac_cv_type_short=yes
15017 else
15018   echo "$as_me: failed program was:" >&5
15019 cat conftest.$ac_ext >&5
15020 ac_cv_type_short=no
15021 fi
15022 rm -f conftest.$ac_objext conftest.$ac_ext
15023 fi
15024 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15025 echo "${ECHO_T}$ac_cv_type_short" >&6
15026
15027 echo "$as_me:$LINENO: checking alignment of short" >&5
15028 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15029 if test "${pgac_cv_alignof_short+set}" = set; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   if test "$ac_cv_type_short" = yes; then
15033   if test "$cross_compiling" = yes; then
15034   # Depending upon the size, compute the lo and hi bounds.
15035 cat >conftest.$ac_ext <<_ACEOF
15036 #line $LINENO "configure"
15037 #include "confdefs.h"
15038 $ac_includes_default
15039 struct { char filler; short field; } pgac_struct;
15040 #ifdef F77_DUMMY_MAIN
15041 #  ifdef __cplusplus
15042      extern "C"
15043 #  endif
15044    int F77_DUMMY_MAIN() { return 1; }
15045 #endif
15046 int
15047 main ()
15048 {
15049 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15050 test_array [0] = 0
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -s conftest.$ac_objext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068   ac_lo=0 ac_mid=0
15069   while :; do
15070     cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15072 #include "confdefs.h"
15073 $ac_includes_default
15074 struct { char filler; short field; } pgac_struct;
15075 #ifdef F77_DUMMY_MAIN
15076 #  ifdef __cplusplus
15077      extern "C"
15078 #  endif
15079    int F77_DUMMY_MAIN() { return 1; }
15080 #endif
15081 int
15082 main ()
15083 {
15084 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15085 test_array [0] = 0
15086
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103   ac_hi=$ac_mid; break
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 ac_lo=`expr $ac_mid + 1`
15108                     if test $ac_lo -le $ac_mid; then
15109                       ac_lo= ac_hi=
15110                       break
15111                     fi
15112                     ac_mid=`expr 2 '*' $ac_mid + 1`
15113 fi
15114 rm -f conftest.$ac_objext conftest.$ac_ext
15115   done
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 cat conftest.$ac_ext >&5
15119 cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15122 $ac_includes_default
15123 struct { char filler; short field; } pgac_struct;
15124 #ifdef F77_DUMMY_MAIN
15125 #  ifdef __cplusplus
15126      extern "C"
15127 #  endif
15128    int F77_DUMMY_MAIN() { return 1; }
15129 #endif
15130 int
15131 main ()
15132 {
15133 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15134 test_array [0] = 0
15135
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142   (eval $ac_compile) 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } &&
15146          { ac_try='test -s conftest.$ac_objext'
15147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148   (eval $ac_try) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); }; }; then
15152   ac_hi=-1 ac_mid=-1
15153   while :; do
15154     cat >conftest.$ac_ext <<_ACEOF
15155 #line $LINENO "configure"
15156 #include "confdefs.h"
15157 $ac_includes_default
15158 struct { char filler; short field; } pgac_struct;
15159 #ifdef F77_DUMMY_MAIN
15160 #  ifdef __cplusplus
15161      extern "C"
15162 #  endif
15163    int F77_DUMMY_MAIN() { return 1; }
15164 #endif
15165 int
15166 main ()
15167 {
15168 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15169 test_array [0] = 0
15170
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177   (eval $ac_compile) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } &&
15181          { ac_try='test -s conftest.$ac_objext'
15182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183   (eval $ac_try) 2>&5
15184   ac_status=$?
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; }; then
15187   ac_lo=$ac_mid; break
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 cat conftest.$ac_ext >&5
15191 ac_hi=`expr '(' $ac_mid ')' - 1`
15192                        if test $ac_mid -le $ac_hi; then
15193                          ac_lo= ac_hi=
15194                          break
15195                        fi
15196                        ac_mid=`expr 2 '*' $ac_mid`
15197 fi
15198 rm -f conftest.$ac_objext conftest.$ac_ext
15199   done
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 ac_lo= ac_hi=
15204 fi
15205 rm -f conftest.$ac_objext conftest.$ac_ext
15206 fi
15207 rm -f conftest.$ac_objext conftest.$ac_ext
15208 # Binary search between lo and hi bounds.
15209 while test "x$ac_lo" != "x$ac_hi"; do
15210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15211   cat >conftest.$ac_ext <<_ACEOF
15212 #line $LINENO "configure"
15213 #include "confdefs.h"
15214 $ac_includes_default
15215 struct { char filler; short field; } pgac_struct;
15216 #ifdef F77_DUMMY_MAIN
15217 #  ifdef __cplusplus
15218      extern "C"
15219 #  endif
15220    int F77_DUMMY_MAIN() { return 1; }
15221 #endif
15222 int
15223 main ()
15224 {
15225 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15226 test_array [0] = 0
15227
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15234   (eval $ac_compile) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -s conftest.$ac_objext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_hi=$ac_mid
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15248 ac_lo=`expr '(' $ac_mid ')' + 1`
15249 fi
15250 rm -f conftest.$ac_objext conftest.$ac_ext
15251 done
15252 case $ac_lo in
15253 ?*) pgac_cv_alignof_short=$ac_lo;;
15254 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15255 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15256    { (exit 1); exit 1; }; } ;;
15257 esac
15258 else
15259   if test "$cross_compiling" = yes; then
15260   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15261 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15262    { (exit 1); exit 1; }; }
15263 else
15264   cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 #include "confdefs.h"
15267 $ac_includes_default
15268 struct { char filler; short field; } pgac_struct;
15269 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15270 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15271 #include <stdio.h>
15272 #include <stdlib.h>
15273 #ifdef F77_DUMMY_MAIN
15274 #  ifdef __cplusplus
15275      extern "C"
15276 #  endif
15277    int F77_DUMMY_MAIN() { return 1; }
15278 #endif
15279 int
15280 main ()
15281 {
15282
15283   FILE *f = fopen ("conftest.val", "w");
15284   if (! f)
15285     exit (1);
15286   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15287     {
15288       long i = longval ();
15289       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15290         exit (1);
15291       fprintf (f, "%ld\n", i);
15292     }
15293   else
15294     {
15295       unsigned long i = ulongval ();
15296       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15297         exit (1);
15298       fprintf (f, "%lu\n", i);
15299     }
15300   exit (ferror (f) || fclose (f) != 0);
15301
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest$ac_exeext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308   (eval $ac_link) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313   (eval $ac_try) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); }; }; then
15317   pgac_cv_alignof_short=`cat conftest.val`
15318 else
15319   echo "$as_me: program exited with status $ac_status" >&5
15320 echo "$as_me: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 ( exit $ac_status )
15323 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15324 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15325    { (exit 1); exit 1; }; }
15326 fi
15327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15328 fi
15329 fi
15330 rm -f conftest.val
15331 else
15332   pgac_cv_alignof_short=0
15333 fi
15334 fi
15335 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15336 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15337 cat >>confdefs.h <<_ACEOF
15338 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15339 _ACEOF
15340
15341
15342 echo "$as_me:$LINENO: checking for int" >&5
15343 echo $ECHO_N "checking for int... $ECHO_C" >&6
15344 if test "${ac_cv_type_int+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   cat >conftest.$ac_ext <<_ACEOF
15348 #line $LINENO "configure"
15349 #include "confdefs.h"
15350 $ac_includes_default
15351 #ifdef F77_DUMMY_MAIN
15352 #  ifdef __cplusplus
15353      extern "C"
15354 #  endif
15355    int F77_DUMMY_MAIN() { return 1; }
15356 #endif
15357 int
15358 main ()
15359 {
15360 if ((int *) 0)
15361   return 0;
15362 if (sizeof (int))
15363   return 0;
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15370   (eval $ac_compile) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -s conftest.$ac_objext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   ac_cv_type_int=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15384 ac_cv_type_int=no
15385 fi
15386 rm -f conftest.$ac_objext conftest.$ac_ext
15387 fi
15388 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15389 echo "${ECHO_T}$ac_cv_type_int" >&6
15390
15391 echo "$as_me:$LINENO: checking alignment of int" >&5
15392 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15393 if test "${pgac_cv_alignof_int+set}" = set; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   if test "$ac_cv_type_int" = yes; then
15397   if test "$cross_compiling" = yes; then
15398   # Depending upon the size, compute the lo and hi bounds.
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line $LINENO "configure"
15401 #include "confdefs.h"
15402 $ac_includes_default
15403 struct { char filler; int field; } pgac_struct;
15404 #ifdef F77_DUMMY_MAIN
15405 #  ifdef __cplusplus
15406      extern "C"
15407 #  endif
15408    int F77_DUMMY_MAIN() { return 1; }
15409 #endif
15410 int
15411 main ()
15412 {
15413 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15414 test_array [0] = 0
15415
15416   ;
15417   return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422   (eval $ac_compile) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); } &&
15426          { ac_try='test -s conftest.$ac_objext'
15427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428   (eval $ac_try) 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }; then
15432   ac_lo=0 ac_mid=0
15433   while :; do
15434     cat >conftest.$ac_ext <<_ACEOF
15435 #line $LINENO "configure"
15436 #include "confdefs.h"
15437 $ac_includes_default
15438 struct { char filler; int field; } pgac_struct;
15439 #ifdef F77_DUMMY_MAIN
15440 #  ifdef __cplusplus
15441      extern "C"
15442 #  endif
15443    int F77_DUMMY_MAIN() { return 1; }
15444 #endif
15445 int
15446 main ()
15447 {
15448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15449 test_array [0] = 0
15450
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } &&
15461          { ac_try='test -s conftest.$ac_objext'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; }; then
15467   ac_hi=$ac_mid; break
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15471 ac_lo=`expr $ac_mid + 1`
15472                     if test $ac_lo -le $ac_mid; then
15473                       ac_lo= ac_hi=
15474                       break
15475                     fi
15476                     ac_mid=`expr 2 '*' $ac_mid + 1`
15477 fi
15478 rm -f conftest.$ac_objext conftest.$ac_ext
15479   done
15480 else
15481   echo "$as_me: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15483 cat >conftest.$ac_ext <<_ACEOF
15484 #line $LINENO "configure"
15485 #include "confdefs.h"
15486 $ac_includes_default
15487 struct { char filler; int field; } pgac_struct;
15488 #ifdef F77_DUMMY_MAIN
15489 #  ifdef __cplusplus
15490      extern "C"
15491 #  endif
15492    int F77_DUMMY_MAIN() { return 1; }
15493 #endif
15494 int
15495 main ()
15496 {
15497 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15498 test_array [0] = 0
15499
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506   (eval $ac_compile) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } &&
15510          { ac_try='test -s conftest.$ac_objext'
15511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512   (eval $ac_try) 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; }; then
15516   ac_hi=-1 ac_mid=-1
15517   while :; do
15518     cat >conftest.$ac_ext <<_ACEOF
15519 #line $LINENO "configure"
15520 #include "confdefs.h"
15521 $ac_includes_default
15522 struct { char filler; int field; } pgac_struct;
15523 #ifdef F77_DUMMY_MAIN
15524 #  ifdef __cplusplus
15525      extern "C"
15526 #  endif
15527    int F77_DUMMY_MAIN() { return 1; }
15528 #endif
15529 int
15530 main ()
15531 {
15532 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15533 test_array [0] = 0
15534
15535   ;
15536   return 0;
15537 }
15538 _ACEOF
15539 rm -f conftest.$ac_objext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541   (eval $ac_compile) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -s conftest.$ac_objext'
15546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547   (eval $ac_try) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_lo=$ac_mid; break
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15555 ac_hi=`expr '(' $ac_mid ')' - 1`
15556                        if test $ac_mid -le $ac_hi; then
15557                          ac_lo= ac_hi=
15558                          break
15559                        fi
15560                        ac_mid=`expr 2 '*' $ac_mid`
15561 fi
15562 rm -f conftest.$ac_objext conftest.$ac_ext
15563   done
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 ac_lo= ac_hi=
15568 fi
15569 rm -f conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 rm -f conftest.$ac_objext conftest.$ac_ext
15572 # Binary search between lo and hi bounds.
15573 while test "x$ac_lo" != "x$ac_hi"; do
15574   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15575   cat >conftest.$ac_ext <<_ACEOF
15576 #line $LINENO "configure"
15577 #include "confdefs.h"
15578 $ac_includes_default
15579 struct { char filler; int field; } pgac_struct;
15580 #ifdef F77_DUMMY_MAIN
15581 #  ifdef __cplusplus
15582      extern "C"
15583 #  endif
15584    int F77_DUMMY_MAIN() { return 1; }
15585 #endif
15586 int
15587 main ()
15588 {
15589 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15590 test_array [0] = 0
15591
15592   ;
15593   return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest.$ac_objext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15598   (eval $ac_compile) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -s conftest.$ac_objext'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   ac_hi=$ac_mid
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 ac_lo=`expr '(' $ac_mid ')' + 1`
15613 fi
15614 rm -f conftest.$ac_objext conftest.$ac_ext
15615 done
15616 case $ac_lo in
15617 ?*) pgac_cv_alignof_int=$ac_lo;;
15618 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15619 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15620    { (exit 1); exit 1; }; } ;;
15621 esac
15622 else
15623   if test "$cross_compiling" = yes; then
15624   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15625 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15626    { (exit 1); exit 1; }; }
15627 else
15628   cat >conftest.$ac_ext <<_ACEOF
15629 #line $LINENO "configure"
15630 #include "confdefs.h"
15631 $ac_includes_default
15632 struct { char filler; int field; } pgac_struct;
15633 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15634 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15635 #include <stdio.h>
15636 #include <stdlib.h>
15637 #ifdef F77_DUMMY_MAIN
15638 #  ifdef __cplusplus
15639      extern "C"
15640 #  endif
15641    int F77_DUMMY_MAIN() { return 1; }
15642 #endif
15643 int
15644 main ()
15645 {
15646
15647   FILE *f = fopen ("conftest.val", "w");
15648   if (! f)
15649     exit (1);
15650   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15651     {
15652       long i = longval ();
15653       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15654         exit (1);
15655       fprintf (f, "%ld\n", i);
15656     }
15657   else
15658     {
15659       unsigned long i = ulongval ();
15660       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15661         exit (1);
15662       fprintf (f, "%lu\n", i);
15663     }
15664   exit (ferror (f) || fclose (f) != 0);
15665
15666   ;
15667   return 0;
15668 }
15669 _ACEOF
15670 rm -f conftest$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672   (eval $ac_link) 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677   (eval $ac_try) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); }; }; then
15681   pgac_cv_alignof_int=`cat conftest.val`
15682 else
15683   echo "$as_me: program exited with status $ac_status" >&5
15684 echo "$as_me: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 ( exit $ac_status )
15687 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15688 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15689    { (exit 1); exit 1; }; }
15690 fi
15691 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15692 fi
15693 fi
15694 rm -f conftest.val
15695 else
15696   pgac_cv_alignof_int=0
15697 fi
15698 fi
15699 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15700 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15701 cat >>confdefs.h <<_ACEOF
15702 #define ALIGNOF_INT $pgac_cv_alignof_int
15703 _ACEOF
15704
15705
15706 echo "$as_me:$LINENO: checking for long" >&5
15707 echo $ECHO_N "checking for long... $ECHO_C" >&6
15708 if test "${ac_cv_type_long+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 #include "confdefs.h"
15714 $ac_includes_default
15715 #ifdef F77_DUMMY_MAIN
15716 #  ifdef __cplusplus
15717      extern "C"
15718 #  endif
15719    int F77_DUMMY_MAIN() { return 1; }
15720 #endif
15721 int
15722 main ()
15723 {
15724 if ((long *) 0)
15725   return 0;
15726 if (sizeof (long))
15727   return 0;
15728   ;
15729   return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734   (eval $ac_compile) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_type_long=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15748 ac_cv_type_long=no
15749 fi
15750 rm -f conftest.$ac_objext conftest.$ac_ext
15751 fi
15752 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15753 echo "${ECHO_T}$ac_cv_type_long" >&6
15754
15755 echo "$as_me:$LINENO: checking alignment of long" >&5
15756 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15757 if test "${pgac_cv_alignof_long+set}" = set; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   if test "$ac_cv_type_long" = yes; then
15761   if test "$cross_compiling" = yes; then
15762   # Depending upon the size, compute the lo and hi bounds.
15763 cat >conftest.$ac_ext <<_ACEOF
15764 #line $LINENO "configure"
15765 #include "confdefs.h"
15766 $ac_includes_default
15767 struct { char filler; long field; } pgac_struct;
15768 #ifdef F77_DUMMY_MAIN
15769 #  ifdef __cplusplus
15770      extern "C"
15771 #  endif
15772    int F77_DUMMY_MAIN() { return 1; }
15773 #endif
15774 int
15775 main ()
15776 {
15777 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15778 test_array [0] = 0
15779
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786   (eval $ac_compile) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796   ac_lo=0 ac_mid=0
15797   while :; do
15798     cat >conftest.$ac_ext <<_ACEOF
15799 #line $LINENO "configure"
15800 #include "confdefs.h"
15801 $ac_includes_default
15802 struct { char filler; long field; } pgac_struct;
15803 #ifdef F77_DUMMY_MAIN
15804 #  ifdef __cplusplus
15805      extern "C"
15806 #  endif
15807    int F77_DUMMY_MAIN() { return 1; }
15808 #endif
15809 int
15810 main ()
15811 {
15812 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15813 test_array [0] = 0
15814
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15821   (eval $ac_compile) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } &&
15825          { ac_try='test -s conftest.$ac_objext'
15826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827   (eval $ac_try) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; }; then
15831   ac_hi=$ac_mid; break
15832 else
15833   echo "$as_me: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15835 ac_lo=`expr $ac_mid + 1`
15836                     if test $ac_lo -le $ac_mid; then
15837                       ac_lo= ac_hi=
15838                       break
15839                     fi
15840                     ac_mid=`expr 2 '*' $ac_mid + 1`
15841 fi
15842 rm -f conftest.$ac_objext conftest.$ac_ext
15843   done
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15847 cat >conftest.$ac_ext <<_ACEOF
15848 #line $LINENO "configure"
15849 #include "confdefs.h"
15850 $ac_includes_default
15851 struct { char filler; long field; } pgac_struct;
15852 #ifdef F77_DUMMY_MAIN
15853 #  ifdef __cplusplus
15854      extern "C"
15855 #  endif
15856    int F77_DUMMY_MAIN() { return 1; }
15857 #endif
15858 int
15859 main ()
15860 {
15861 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15862 test_array [0] = 0
15863
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15870   (eval $ac_compile) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -s conftest.$ac_objext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   ac_hi=-1 ac_mid=-1
15881   while :; do
15882     cat >conftest.$ac_ext <<_ACEOF
15883 #line $LINENO "configure"
15884 #include "confdefs.h"
15885 $ac_includes_default
15886 struct { char filler; long field; } pgac_struct;
15887 #ifdef F77_DUMMY_MAIN
15888 #  ifdef __cplusplus
15889      extern "C"
15890 #  endif
15891    int F77_DUMMY_MAIN() { return 1; }
15892 #endif
15893 int
15894 main ()
15895 {
15896 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15897 test_array [0] = 0
15898
15899   ;
15900   return 0;
15901 }
15902 _ACEOF
15903 rm -f conftest.$ac_objext
15904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905   (eval $ac_compile) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } &&
15909          { ac_try='test -s conftest.$ac_objext'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   ac_lo=$ac_mid; break
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 cat conftest.$ac_ext >&5
15919 ac_hi=`expr '(' $ac_mid ')' - 1`
15920                        if test $ac_mid -le $ac_hi; then
15921                          ac_lo= ac_hi=
15922                          break
15923                        fi
15924                        ac_mid=`expr 2 '*' $ac_mid`
15925 fi
15926 rm -f conftest.$ac_objext conftest.$ac_ext
15927   done
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 ac_lo= ac_hi=
15932 fi
15933 rm -f conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 rm -f conftest.$ac_objext conftest.$ac_ext
15936 # Binary search between lo and hi bounds.
15937 while test "x$ac_lo" != "x$ac_hi"; do
15938   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15939   cat >conftest.$ac_ext <<_ACEOF
15940 #line $LINENO "configure"
15941 #include "confdefs.h"
15942 $ac_includes_default
15943 struct { char filler; long field; } pgac_struct;
15944 #ifdef F77_DUMMY_MAIN
15945 #  ifdef __cplusplus
15946      extern "C"
15947 #  endif
15948    int F77_DUMMY_MAIN() { return 1; }
15949 #endif
15950 int
15951 main ()
15952 {
15953 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15954 test_array [0] = 0
15955
15956   ;
15957   return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext
15961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15962   (eval $ac_compile) 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); } &&
15966          { ac_try='test -s conftest.$ac_objext'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; }; then
15972   ac_hi=$ac_mid
15973 else
15974   echo "$as_me: failed program was:" >&5
15975 cat conftest.$ac_ext >&5
15976 ac_lo=`expr '(' $ac_mid ')' + 1`
15977 fi
15978 rm -f conftest.$ac_objext conftest.$ac_ext
15979 done
15980 case $ac_lo in
15981 ?*) pgac_cv_alignof_long=$ac_lo;;
15982 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15983 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15984    { (exit 1); exit 1; }; } ;;
15985 esac
15986 else
15987   if test "$cross_compiling" = yes; then
15988   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15989 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15990    { (exit 1); exit 1; }; }
15991 else
15992   cat >conftest.$ac_ext <<_ACEOF
15993 #line $LINENO "configure"
15994 #include "confdefs.h"
15995 $ac_includes_default
15996 struct { char filler; long field; } pgac_struct;
15997 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15998 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15999 #include <stdio.h>
16000 #include <stdlib.h>
16001 #ifdef F77_DUMMY_MAIN
16002 #  ifdef __cplusplus
16003      extern "C"
16004 #  endif
16005    int F77_DUMMY_MAIN() { return 1; }
16006 #endif
16007 int
16008 main ()
16009 {
16010
16011   FILE *f = fopen ("conftest.val", "w");
16012   if (! f)
16013     exit (1);
16014   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16015     {
16016       long i = longval ();
16017       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16018         exit (1);
16019       fprintf (f, "%ld\n", i);
16020     }
16021   else
16022     {
16023       unsigned long i = ulongval ();
16024       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16025         exit (1);
16026       fprintf (f, "%lu\n", i);
16027     }
16028   exit (ferror (f) || fclose (f) != 0);
16029
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest$ac_exeext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16036   (eval $ac_link) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041   (eval $ac_try) 2>&5
16042   ac_status=$?
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); }; }; then
16045   pgac_cv_alignof_long=`cat conftest.val`
16046 else
16047   echo "$as_me: program exited with status $ac_status" >&5
16048 echo "$as_me: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 ( exit $ac_status )
16051 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16052 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16053    { (exit 1); exit 1; }; }
16054 fi
16055 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056 fi
16057 fi
16058 rm -f conftest.val
16059 else
16060   pgac_cv_alignof_long=0
16061 fi
16062 fi
16063 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16064 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16065 cat >>confdefs.h <<_ACEOF
16066 #define ALIGNOF_LONG $pgac_cv_alignof_long
16067 _ACEOF
16068
16069
16070 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16071   echo "$as_me:$LINENO: checking for long long int" >&5
16072 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16073 if test "${ac_cv_type_long_long_int+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 #include "confdefs.h"
16079 $ac_includes_default
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 ((long long int *) 0)
16090   return 0;
16091 if (sizeof (long long int))
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_long_long_int=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_cv_type_long_long_int=no
16114 fi
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16116 fi
16117 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16118 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16119
16120 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16121 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16122 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16123   echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125   if test "$ac_cv_type_long_long_int" = yes; then
16126   if test "$cross_compiling" = yes; then
16127   # Depending upon the size, compute the lo and hi bounds.
16128 cat >conftest.$ac_ext <<_ACEOF
16129 #line $LINENO "configure"
16130 #include "confdefs.h"
16131 $ac_includes_default
16132 struct { char filler; long long int field; } pgac_struct;
16133 #ifdef F77_DUMMY_MAIN
16134 #  ifdef __cplusplus
16135      extern "C"
16136 #  endif
16137    int F77_DUMMY_MAIN() { return 1; }
16138 #endif
16139 int
16140 main ()
16141 {
16142 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16143 test_array [0] = 0
16144
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16151   (eval $ac_compile) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -s conftest.$ac_objext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_lo=0 ac_mid=0
16162   while :; do
16163     cat >conftest.$ac_ext <<_ACEOF
16164 #line $LINENO "configure"
16165 #include "confdefs.h"
16166 $ac_includes_default
16167 struct { char filler; long long int field; } pgac_struct;
16168 #ifdef F77_DUMMY_MAIN
16169 #  ifdef __cplusplus
16170      extern "C"
16171 #  endif
16172    int F77_DUMMY_MAIN() { return 1; }
16173 #endif
16174 int
16175 main ()
16176 {
16177 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16178 test_array [0] = 0
16179
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 rm -f conftest.$ac_objext
16185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16186   (eval $ac_compile) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } &&
16190          { ac_try='test -s conftest.$ac_objext'
16191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192   (eval $ac_try) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; }; then
16196   ac_hi=$ac_mid; break
16197 else
16198   echo "$as_me: failed program was:" >&5
16199 cat conftest.$ac_ext >&5
16200 ac_lo=`expr $ac_mid + 1`
16201                     if test $ac_lo -le $ac_mid; then
16202                       ac_lo= ac_hi=
16203                       break
16204                     fi
16205                     ac_mid=`expr 2 '*' $ac_mid + 1`
16206 fi
16207 rm -f conftest.$ac_objext conftest.$ac_ext
16208   done
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16212 cat >conftest.$ac_ext <<_ACEOF
16213 #line $LINENO "configure"
16214 #include "confdefs.h"
16215 $ac_includes_default
16216 struct { char filler; long long int field; } pgac_struct;
16217 #ifdef F77_DUMMY_MAIN
16218 #  ifdef __cplusplus
16219      extern "C"
16220 #  endif
16221    int F77_DUMMY_MAIN() { return 1; }
16222 #endif
16223 int
16224 main ()
16225 {
16226 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16227 test_array [0] = 0
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   ac_hi=-1 ac_mid=-1
16246   while :; do
16247     cat >conftest.$ac_ext <<_ACEOF
16248 #line $LINENO "configure"
16249 #include "confdefs.h"
16250 $ac_includes_default
16251 struct { char filler; long long int field; } pgac_struct;
16252 #ifdef F77_DUMMY_MAIN
16253 #  ifdef __cplusplus
16254      extern "C"
16255 #  endif
16256    int F77_DUMMY_MAIN() { return 1; }
16257 #endif
16258 int
16259 main ()
16260 {
16261 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16262 test_array [0] = 0
16263
16264   ;
16265   return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270   (eval $ac_compile) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -s conftest.$ac_objext'
16275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276   (eval $ac_try) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; }; then
16280   ac_lo=$ac_mid; break
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 cat conftest.$ac_ext >&5
16284 ac_hi=`expr '(' $ac_mid ')' - 1`
16285                        if test $ac_mid -le $ac_hi; then
16286                          ac_lo= ac_hi=
16287                          break
16288                        fi
16289                        ac_mid=`expr 2 '*' $ac_mid`
16290 fi
16291 rm -f conftest.$ac_objext conftest.$ac_ext
16292   done
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 ac_lo= ac_hi=
16297 fi
16298 rm -f conftest.$ac_objext conftest.$ac_ext
16299 fi
16300 rm -f conftest.$ac_objext conftest.$ac_ext
16301 # Binary search between lo and hi bounds.
16302 while test "x$ac_lo" != "x$ac_hi"; do
16303   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16304   cat >conftest.$ac_ext <<_ACEOF
16305 #line $LINENO "configure"
16306 #include "confdefs.h"
16307 $ac_includes_default
16308 struct { char filler; long long int field; } pgac_struct;
16309 #ifdef F77_DUMMY_MAIN
16310 #  ifdef __cplusplus
16311      extern "C"
16312 #  endif
16313    int F77_DUMMY_MAIN() { return 1; }
16314 #endif
16315 int
16316 main ()
16317 {
16318 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16319 test_array [0] = 0
16320
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327   (eval $ac_compile) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } &&
16331          { ac_try='test -s conftest.$ac_objext'
16332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333   (eval $ac_try) 2>&5
16334   ac_status=$?
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); }; }; then
16337   ac_hi=$ac_mid
16338 else
16339   echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 ac_lo=`expr '(' $ac_mid ')' + 1`
16342 fi
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16344 done
16345 case $ac_lo in
16346 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16347 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16348 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16349    { (exit 1); exit 1; }; } ;;
16350 esac
16351 else
16352   if test "$cross_compiling" = yes; then
16353   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16354 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16355    { (exit 1); exit 1; }; }
16356 else
16357   cat >conftest.$ac_ext <<_ACEOF
16358 #line $LINENO "configure"
16359 #include "confdefs.h"
16360 $ac_includes_default
16361 struct { char filler; long long int field; } pgac_struct;
16362 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16363 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16364 #include <stdio.h>
16365 #include <stdlib.h>
16366 #ifdef F77_DUMMY_MAIN
16367 #  ifdef __cplusplus
16368      extern "C"
16369 #  endif
16370    int F77_DUMMY_MAIN() { return 1; }
16371 #endif
16372 int
16373 main ()
16374 {
16375
16376   FILE *f = fopen ("conftest.val", "w");
16377   if (! f)
16378     exit (1);
16379   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16380     {
16381       long i = longval ();
16382       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16383         exit (1);
16384       fprintf (f, "%ld\n", i);
16385     }
16386   else
16387     {
16388       unsigned long i = ulongval ();
16389       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16390         exit (1);
16391       fprintf (f, "%lu\n", i);
16392     }
16393   exit (ferror (f) || fclose (f) != 0);
16394
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest$ac_exeext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401   (eval $ac_link) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406   (eval $ac_try) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   pgac_cv_alignof_long_long_int=`cat conftest.val`
16411 else
16412   echo "$as_me: program exited with status $ac_status" >&5
16413 echo "$as_me: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16415 ( exit $ac_status )
16416 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16417 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16418    { (exit 1); exit 1; }; }
16419 fi
16420 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16421 fi
16422 fi
16423 rm -f conftest.val
16424 else
16425   pgac_cv_alignof_long_long_int=0
16426 fi
16427 fi
16428 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16429 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16430 cat >>confdefs.h <<_ACEOF
16431 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16432 _ACEOF
16433
16434
16435 fi
16436 echo "$as_me:$LINENO: checking for double" >&5
16437 echo $ECHO_N "checking for double... $ECHO_C" >&6
16438 if test "${ac_cv_type_double+set}" = set; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   cat >conftest.$ac_ext <<_ACEOF
16442 #line $LINENO "configure"
16443 #include "confdefs.h"
16444 $ac_includes_default
16445 #ifdef F77_DUMMY_MAIN
16446 #  ifdef __cplusplus
16447      extern "C"
16448 #  endif
16449    int F77_DUMMY_MAIN() { return 1; }
16450 #endif
16451 int
16452 main ()
16453 {
16454 if ((double *) 0)
16455   return 0;
16456 if (sizeof (double))
16457   return 0;
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464   (eval $ac_compile) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_type_double=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16478 ac_cv_type_double=no
16479 fi
16480 rm -f conftest.$ac_objext conftest.$ac_ext
16481 fi
16482 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16483 echo "${ECHO_T}$ac_cv_type_double" >&6
16484
16485 echo "$as_me:$LINENO: checking alignment of double" >&5
16486 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16487 if test "${pgac_cv_alignof_double+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   if test "$ac_cv_type_double" = yes; then
16491   if test "$cross_compiling" = yes; then
16492   # Depending upon the size, compute the lo and hi bounds.
16493 cat >conftest.$ac_ext <<_ACEOF
16494 #line $LINENO "configure"
16495 #include "confdefs.h"
16496 $ac_includes_default
16497 struct { char filler; double field; } pgac_struct;
16498 #ifdef F77_DUMMY_MAIN
16499 #  ifdef __cplusplus
16500      extern "C"
16501 #  endif
16502    int F77_DUMMY_MAIN() { return 1; }
16503 #endif
16504 int
16505 main ()
16506 {
16507 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16508 test_array [0] = 0
16509
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516   (eval $ac_compile) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } &&
16520          { ac_try='test -s conftest.$ac_objext'
16521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522   (eval $ac_try) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; }; then
16526   ac_lo=0 ac_mid=0
16527   while :; do
16528     cat >conftest.$ac_ext <<_ACEOF
16529 #line $LINENO "configure"
16530 #include "confdefs.h"
16531 $ac_includes_default
16532 struct { char filler; double field; } pgac_struct;
16533 #ifdef F77_DUMMY_MAIN
16534 #  ifdef __cplusplus
16535      extern "C"
16536 #  endif
16537    int F77_DUMMY_MAIN() { return 1; }
16538 #endif
16539 int
16540 main ()
16541 {
16542 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16543 test_array [0] = 0
16544
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16551   (eval $ac_compile) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } &&
16555          { ac_try='test -s conftest.$ac_objext'
16556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557   (eval $ac_try) 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   ac_hi=$ac_mid; break
16562 else
16563   echo "$as_me: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 ac_lo=`expr $ac_mid + 1`
16566                     if test $ac_lo -le $ac_mid; then
16567                       ac_lo= ac_hi=
16568                       break
16569                     fi
16570                     ac_mid=`expr 2 '*' $ac_mid + 1`
16571 fi
16572 rm -f conftest.$ac_objext conftest.$ac_ext
16573   done
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 cat >conftest.$ac_ext <<_ACEOF
16578 #line $LINENO "configure"
16579 #include "confdefs.h"
16580 $ac_includes_default
16581 struct { char filler; double field; } pgac_struct;
16582 #ifdef F77_DUMMY_MAIN
16583 #  ifdef __cplusplus
16584      extern "C"
16585 #  endif
16586    int F77_DUMMY_MAIN() { return 1; }
16587 #endif
16588 int
16589 main ()
16590 {
16591 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16592 test_array [0] = 0
16593
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16600   (eval $ac_compile) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_hi=-1 ac_mid=-1
16611   while :; do
16612     cat >conftest.$ac_ext <<_ACEOF
16613 #line $LINENO "configure"
16614 #include "confdefs.h"
16615 $ac_includes_default
16616 struct { char filler; double field; } pgac_struct;
16617 #ifdef F77_DUMMY_MAIN
16618 #  ifdef __cplusplus
16619      extern "C"
16620 #  endif
16621    int F77_DUMMY_MAIN() { return 1; }
16622 #endif
16623 int
16624 main ()
16625 {
16626 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16627 test_array [0] = 0
16628
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635   (eval $ac_compile) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641   (eval $ac_try) 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; }; then
16645   ac_lo=$ac_mid; break
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 ac_hi=`expr '(' $ac_mid ')' - 1`
16650                        if test $ac_mid -le $ac_hi; then
16651                          ac_lo= ac_hi=
16652                          break
16653                        fi
16654                        ac_mid=`expr 2 '*' $ac_mid`
16655 fi
16656 rm -f conftest.$ac_objext conftest.$ac_ext
16657   done
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16661 ac_lo= ac_hi=
16662 fi
16663 rm -f conftest.$ac_objext conftest.$ac_ext
16664 fi
16665 rm -f conftest.$ac_objext conftest.$ac_ext
16666 # Binary search between lo and hi bounds.
16667 while test "x$ac_lo" != "x$ac_hi"; do
16668   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16669   cat >conftest.$ac_ext <<_ACEOF
16670 #line $LINENO "configure"
16671 #include "confdefs.h"
16672 $ac_includes_default
16673 struct { char filler; double field; } pgac_struct;
16674 #ifdef F77_DUMMY_MAIN
16675 #  ifdef __cplusplus
16676      extern "C"
16677 #  endif
16678    int F77_DUMMY_MAIN() { return 1; }
16679 #endif
16680 int
16681 main ()
16682 {
16683 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16684 test_array [0] = 0
16685
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692   (eval $ac_compile) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } &&
16696          { ac_try='test -s conftest.$ac_objext'
16697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698   (eval $ac_try) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; }; then
16702   ac_hi=$ac_mid
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 cat conftest.$ac_ext >&5
16706 ac_lo=`expr '(' $ac_mid ')' + 1`
16707 fi
16708 rm -f conftest.$ac_objext conftest.$ac_ext
16709 done
16710 case $ac_lo in
16711 ?*) pgac_cv_alignof_double=$ac_lo;;
16712 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16713 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16714    { (exit 1); exit 1; }; } ;;
16715 esac
16716 else
16717   if test "$cross_compiling" = yes; then
16718   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16719 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16720    { (exit 1); exit 1; }; }
16721 else
16722   cat >conftest.$ac_ext <<_ACEOF
16723 #line $LINENO "configure"
16724 #include "confdefs.h"
16725 $ac_includes_default
16726 struct { char filler; double field; } pgac_struct;
16727 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16728 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16729 #include <stdio.h>
16730 #include <stdlib.h>
16731 #ifdef F77_DUMMY_MAIN
16732 #  ifdef __cplusplus
16733      extern "C"
16734 #  endif
16735    int F77_DUMMY_MAIN() { return 1; }
16736 #endif
16737 int
16738 main ()
16739 {
16740
16741   FILE *f = fopen ("conftest.val", "w");
16742   if (! f)
16743     exit (1);
16744   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16745     {
16746       long i = longval ();
16747       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16748         exit (1);
16749       fprintf (f, "%ld\n", i);
16750     }
16751   else
16752     {
16753       unsigned long i = ulongval ();
16754       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16755         exit (1);
16756       fprintf (f, "%lu\n", i);
16757     }
16758   exit (ferror (f) || fclose (f) != 0);
16759
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest$ac_exeext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766   (eval $ac_link) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; }; then
16775   pgac_cv_alignof_double=`cat conftest.val`
16776 else
16777   echo "$as_me: program exited with status $ac_status" >&5
16778 echo "$as_me: failed program was:" >&5
16779 cat conftest.$ac_ext >&5
16780 ( exit $ac_status )
16781 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16782 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16783    { (exit 1); exit 1; }; }
16784 fi
16785 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 fi
16788 rm -f conftest.val
16789 else
16790   pgac_cv_alignof_double=0
16791 fi
16792 fi
16793 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16794 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16795 cat >>confdefs.h <<_ACEOF
16796 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16797 _ACEOF
16798
16799
16800
16801 # Compute maximum alignment of any basic type.
16802 # We assume long's alignment is at least as strong as char, short, or int;
16803 # but we must check long long (if it exists) and double.
16804
16805 MAX_ALIGNOF=$pgac_cv_alignof_long
16806 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16807   MAX_ALIGNOF=$pgac_cv_alignof_double
16808 fi
16809 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16810   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16811 fi
16812
16813 cat >>confdefs.h <<_ACEOF
16814 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16815 _ACEOF
16816
16817
16818
16819 # Some platforms predefine the types int8, int16, etc.  Only check
16820 # a (hopefully) representative subset.
16821 echo "$as_me:$LINENO: checking for int8" >&5
16822 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16823 if test "${ac_cv_type_int8+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   cat >conftest.$ac_ext <<_ACEOF
16827 #line $LINENO "configure"
16828 #include "confdefs.h"
16829 #include <stdio.h>
16830 #ifdef HAVE_SUPPORTDEFS_H
16831 #include <SupportDefs.h>
16832 #endif
16833
16834 #ifdef F77_DUMMY_MAIN
16835 #  ifdef __cplusplus
16836      extern "C"
16837 #  endif
16838    int F77_DUMMY_MAIN() { return 1; }
16839 #endif
16840 int
16841 main ()
16842 {
16843 if ((int8 *) 0)
16844   return 0;
16845 if (sizeof (int8))
16846   return 0;
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest.$ac_objext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853   (eval $ac_compile) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } &&
16857          { ac_try='test -s conftest.$ac_objext'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; }; then
16863   ac_cv_type_int8=yes
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 ac_cv_type_int8=no
16868 fi
16869 rm -f conftest.$ac_objext conftest.$ac_ext
16870 fi
16871 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16872 echo "${ECHO_T}$ac_cv_type_int8" >&6
16873 if test $ac_cv_type_int8 = yes; then
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_INT8 1
16877 _ACEOF
16878
16879
16880 fi
16881 echo "$as_me:$LINENO: checking for uint8" >&5
16882 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16883 if test "${ac_cv_type_uint8+set}" = set; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 #include "confdefs.h"
16889 #include <stdio.h>
16890 #ifdef HAVE_SUPPORTDEFS_H
16891 #include <SupportDefs.h>
16892 #endif
16893
16894 #ifdef F77_DUMMY_MAIN
16895 #  ifdef __cplusplus
16896      extern "C"
16897 #  endif
16898    int F77_DUMMY_MAIN() { return 1; }
16899 #endif
16900 int
16901 main ()
16902 {
16903 if ((uint8 *) 0)
16904   return 0;
16905 if (sizeof (uint8))
16906   return 0;
16907   ;
16908   return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest.$ac_objext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16913   (eval $ac_compile) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -s conftest.$ac_objext'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_type_uint8=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16927 ac_cv_type_uint8=no
16928 fi
16929 rm -f conftest.$ac_objext conftest.$ac_ext
16930 fi
16931 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16932 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16933 if test $ac_cv_type_uint8 = yes; then
16934
16935 cat >>confdefs.h <<_ACEOF
16936 #define HAVE_UINT8 1
16937 _ACEOF
16938
16939
16940 fi
16941 echo "$as_me:$LINENO: checking for int64" >&5
16942 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16943 if test "${ac_cv_type_int64+set}" = set; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946   cat >conftest.$ac_ext <<_ACEOF
16947 #line $LINENO "configure"
16948 #include "confdefs.h"
16949 #include <stdio.h>
16950 #ifdef HAVE_SUPPORTDEFS_H
16951 #include <SupportDefs.h>
16952 #endif
16953
16954 #ifdef F77_DUMMY_MAIN
16955 #  ifdef __cplusplus
16956      extern "C"
16957 #  endif
16958    int F77_DUMMY_MAIN() { return 1; }
16959 #endif
16960 int
16961 main ()
16962 {
16963 if ((int64 *) 0)
16964   return 0;
16965 if (sizeof (int64))
16966   return 0;
16967   ;
16968   return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext
16972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16973   (eval $ac_compile) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -s conftest.$ac_objext'
16978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979   (eval $ac_try) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); }; }; then
16983   ac_cv_type_int64=yes
16984 else
16985   echo "$as_me: failed program was:" >&5
16986 cat conftest.$ac_ext >&5
16987 ac_cv_type_int64=no
16988 fi
16989 rm -f conftest.$ac_objext conftest.$ac_ext
16990 fi
16991 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16992 echo "${ECHO_T}$ac_cv_type_int64" >&6
16993 if test $ac_cv_type_int64 = yes; then
16994
16995 cat >>confdefs.h <<_ACEOF
16996 #define HAVE_INT64 1
16997 _ACEOF
16998
16999
17000 fi
17001 echo "$as_me:$LINENO: checking for uint64" >&5
17002 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17003 if test "${ac_cv_type_uint64+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006   cat >conftest.$ac_ext <<_ACEOF
17007 #line $LINENO "configure"
17008 #include "confdefs.h"
17009 #include <stdio.h>
17010 #ifdef HAVE_SUPPORTDEFS_H
17011 #include <SupportDefs.h>
17012 #endif
17013
17014 #ifdef F77_DUMMY_MAIN
17015 #  ifdef __cplusplus
17016      extern "C"
17017 #  endif
17018    int F77_DUMMY_MAIN() { return 1; }
17019 #endif
17020 int
17021 main ()
17022 {
17023 if ((uint64 *) 0)
17024   return 0;
17025 if (sizeof (uint64))
17026   return 0;
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033   (eval $ac_compile) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -s conftest.$ac_objext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   ac_cv_type_uint64=yes
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 cat conftest.$ac_ext >&5
17047 ac_cv_type_uint64=no
17048 fi
17049 rm -f conftest.$ac_objext conftest.$ac_ext
17050 fi
17051 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17052 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17053 if test $ac_cv_type_uint64 = yes; then
17054
17055 cat >>confdefs.h <<_ACEOF
17056 #define HAVE_UINT64 1
17057 _ACEOF
17058
17059
17060 fi
17061
17062
17063 # We also check for sig_atomic_t, which *should* be defined per ANSI
17064 # C, but is missing on some old platforms.
17065 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17066 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17067 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 #line $LINENO "configure"
17072 #include "confdefs.h"
17073 #include <signal.h>
17074
17075 #ifdef F77_DUMMY_MAIN
17076 #  ifdef __cplusplus
17077      extern "C"
17078 #  endif
17079    int F77_DUMMY_MAIN() { return 1; }
17080 #endif
17081 int
17082 main ()
17083 {
17084 if ((sig_atomic_t *) 0)
17085   return 0;
17086 if (sizeof (sig_atomic_t))
17087   return 0;
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17094   (eval $ac_compile) 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); } &&
17098          { ac_try='test -s conftest.$ac_objext'
17099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100   (eval $ac_try) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   ac_cv_type_sig_atomic_t=yes
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 cat conftest.$ac_ext >&5
17108 ac_cv_type_sig_atomic_t=no
17109 fi
17110 rm -f conftest.$ac_objext conftest.$ac_ext
17111 fi
17112 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17113 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17114 if test $ac_cv_type_sig_atomic_t = yes; then
17115
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_SIG_ATOMIC_T 1
17118 _ACEOF
17119
17120
17121 fi
17122
17123
17124
17125 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17126 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17127 if test "${pgac_cv_func_posix_signals+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   cat >conftest.$ac_ext <<_ACEOF
17131 #line $LINENO "configure"
17132 #include "confdefs.h"
17133 #include <signal.h>
17134
17135 #ifdef F77_DUMMY_MAIN
17136 #  ifdef __cplusplus
17137      extern "C"
17138 #  endif
17139    int F77_DUMMY_MAIN() { return 1; }
17140 #endif
17141 int
17142 main ()
17143 {
17144 struct sigaction act, oact;
17145 sigemptyset(&act.sa_mask);
17146 act.sa_flags = SA_RESTART;
17147 sigaction(0, &act, &oact);
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154   (eval $ac_link) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -s conftest$ac_exeext'
17159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160   (eval $ac_try) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; }; then
17164   pgac_cv_func_posix_signals=yes
17165 else
17166   echo "$as_me: failed program was:" >&5
17167 cat conftest.$ac_ext >&5
17168 pgac_cv_func_posix_signals=no
17169 fi
17170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17171 fi
17172 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17173 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17174 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17175
17176 cat >>confdefs.h <<\_ACEOF
17177 #define HAVE_POSIX_SIGNALS
17178 _ACEOF
17179
17180 fi
17181 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17182
17183 if test $ac_cv_func_fseeko = yes; then
17184 # Check whether --enable-largefile or --disable-largefile was given.
17185 if test "${enable_largefile+set}" = set; then
17186   enableval="$enable_largefile"
17187
17188 fi;
17189 if test "$enable_largefile" != no; then
17190
17191   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17192 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17193 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   ac_cv_sys_largefile_CC=no
17197      if test "$GCC" != yes; then
17198        ac_save_CC=$CC
17199        while :; do
17200          # IRIX 6.2 and later do not support large files by default,
17201          # so use the C compiler's -n32 option if that helps.
17202          cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17204 #include "confdefs.h"
17205 #include <sys/types.h>
17206  /* Check that off_t can represent 2**63 - 1 correctly.
17207     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17208     since some C++ compilers masquerading as C compilers
17209     incorrectly reject 9223372036854775807.  */
17210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17211   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17212                        && LARGE_OFF_T % 2147483647 == 1)
17213                       ? 1 : -1];
17214 #ifdef F77_DUMMY_MAIN
17215 #  ifdef __cplusplus
17216      extern "C"
17217 #  endif
17218    int F77_DUMMY_MAIN() { return 1; }
17219 #endif
17220 int
17221 main ()
17222 {
17223
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228          rm -f conftest.$ac_objext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230   (eval $ac_compile) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } &&
17234          { ac_try='test -s conftest.$ac_objext'
17235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236   (eval $ac_try) 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; }; then
17240   break
17241 else
17242   echo "$as_me: failed program was:" >&5
17243 cat conftest.$ac_ext >&5
17244 fi
17245 rm -f conftest.$ac_objext
17246          CC="$CC -n32"
17247          rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249   (eval $ac_compile) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -s conftest.$ac_objext'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; }; then
17259   ac_cv_sys_largefile_CC=' -n32'; break
17260 else
17261   echo "$as_me: failed program was:" >&5
17262 cat conftest.$ac_ext >&5
17263 fi
17264 rm -f conftest.$ac_objext
17265          break
17266        done
17267        CC=$ac_save_CC
17268        rm -f conftest.$ac_ext
17269     fi
17270 fi
17271 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17272 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17273   if test "$ac_cv_sys_largefile_CC" != no; then
17274     CC=$CC$ac_cv_sys_largefile_CC
17275   fi
17276
17277   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17278 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17279 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17280   echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282   while :; do
17283   ac_cv_sys_file_offset_bits=no
17284   cat >conftest.$ac_ext <<_ACEOF
17285 #line $LINENO "configure"
17286 #include "confdefs.h"
17287 #include <sys/types.h>
17288  /* Check that off_t can represent 2**63 - 1 correctly.
17289     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17290     since some C++ compilers masquerading as C compilers
17291     incorrectly reject 9223372036854775807.  */
17292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17293   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17294                        && LARGE_OFF_T % 2147483647 == 1)
17295                       ? 1 : -1];
17296 #ifdef F77_DUMMY_MAIN
17297 #  ifdef __cplusplus
17298      extern "C"
17299 #  endif
17300    int F77_DUMMY_MAIN() { return 1; }
17301 #endif
17302 int
17303 main ()
17304 {
17305
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312   (eval $ac_compile) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } &&
17316          { ac_try='test -s conftest.$ac_objext'
17317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318   (eval $ac_try) 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; }; then
17322   break
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17326 fi
17327 rm -f conftest.$ac_objext conftest.$ac_ext
17328   cat >conftest.$ac_ext <<_ACEOF
17329 #line $LINENO "configure"
17330 #include "confdefs.h"
17331 #define _FILE_OFFSET_BITS 64
17332 #include <sys/types.h>
17333  /* Check that off_t can represent 2**63 - 1 correctly.
17334     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17335     since some C++ compilers masquerading as C compilers
17336     incorrectly reject 9223372036854775807.  */
17337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17338   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17339                        && LARGE_OFF_T % 2147483647 == 1)
17340                       ? 1 : -1];
17341 #ifdef F77_DUMMY_MAIN
17342 #  ifdef __cplusplus
17343      extern "C"
17344 #  endif
17345    int F77_DUMMY_MAIN() { return 1; }
17346 #endif
17347 int
17348 main ()
17349 {
17350
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17357   (eval $ac_compile) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } &&
17361          { ac_try='test -s conftest.$ac_objext'
17362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363   (eval $ac_try) 2>&5
17364   ac_status=$?
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); }; }; then
17367   ac_cv_sys_file_offset_bits=64; break
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 cat conftest.$ac_ext >&5
17371 fi
17372 rm -f conftest.$ac_objext conftest.$ac_ext
17373   break
17374 done
17375 fi
17376 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17377 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17378 if test "$ac_cv_sys_file_offset_bits" != no; then
17379
17380 cat >>confdefs.h <<_ACEOF
17381 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17382 _ACEOF
17383
17384 fi
17385 rm -f conftest*
17386   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17387 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17388 if test "${ac_cv_sys_large_files+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   while :; do
17392   ac_cv_sys_large_files=no
17393   cat >conftest.$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17395 #include "confdefs.h"
17396 #include <sys/types.h>
17397  /* Check that off_t can represent 2**63 - 1 correctly.
17398     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17399     since some C++ compilers masquerading as C compilers
17400     incorrectly reject 9223372036854775807.  */
17401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17402   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17403                        && LARGE_OFF_T % 2147483647 == 1)
17404                       ? 1 : -1];
17405 #ifdef F77_DUMMY_MAIN
17406 #  ifdef __cplusplus
17407      extern "C"
17408 #  endif
17409    int F77_DUMMY_MAIN() { return 1; }
17410 #endif
17411 int
17412 main ()
17413 {
17414
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421   (eval $ac_compile) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -s conftest.$ac_objext'
17426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427   (eval $ac_try) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; }; then
17431   break
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 cat conftest.$ac_ext >&5
17435 fi
17436 rm -f conftest.$ac_objext conftest.$ac_ext
17437   cat >conftest.$ac_ext <<_ACEOF
17438 #line $LINENO "configure"
17439 #include "confdefs.h"
17440 #define _LARGE_FILES 1
17441 #include <sys/types.h>
17442  /* Check that off_t can represent 2**63 - 1 correctly.
17443     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17444     since some C++ compilers masquerading as C compilers
17445     incorrectly reject 9223372036854775807.  */
17446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17447   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17448                        && LARGE_OFF_T % 2147483647 == 1)
17449                       ? 1 : -1];
17450 #ifdef F77_DUMMY_MAIN
17451 #  ifdef __cplusplus
17452      extern "C"
17453 #  endif
17454    int F77_DUMMY_MAIN() { return 1; }
17455 #endif
17456 int
17457 main ()
17458 {
17459
17460   ;
17461   return 0;
17462 }
17463 _ACEOF
17464 rm -f conftest.$ac_objext
17465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17466   (eval $ac_compile) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   ac_cv_sys_large_files=1; break
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 cat conftest.$ac_ext >&5
17480 fi
17481 rm -f conftest.$ac_objext conftest.$ac_ext
17482   break
17483 done
17484 fi
17485 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17486 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17487 if test "$ac_cv_sys_large_files" != no; then
17488
17489 cat >>confdefs.h <<_ACEOF
17490 #define _LARGE_FILES $ac_cv_sys_large_files
17491 _ACEOF
17492
17493 fi
17494 rm -f conftest*
17495 fi
17496
17497 fi
17498
17499
17500 # Select semaphore implementation type.
17501 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17502
17503 cat >>confdefs.h <<\_ACEOF
17504 #define USE_NAMED_POSIX_SEMAPHORES 1
17505 _ACEOF
17506
17507   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17508 else
17509   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17510
17511 cat >>confdefs.h <<\_ACEOF
17512 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17513 _ACEOF
17514
17515     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17516   else
17517
17518 cat >>confdefs.h <<\_ACEOF
17519 #define USE_SYSV_SEMAPHORES 1
17520 _ACEOF
17521
17522     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17523   fi
17524 fi
17525
17526
17527 # Select shared-memory implementation type.
17528
17529 cat >>confdefs.h <<\_ACEOF
17530 #define USE_SYSV_SHARED_MEMORY 1
17531 _ACEOF
17532
17533 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17534
17535
17536 if test "$enable_nls" = yes ; then
17537
17538   echo "$as_me:$LINENO: checking for library containing gettext" >&5
17539 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17540 if test "${ac_cv_search_gettext+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543   ac_func_search_save_LIBS=$LIBS
17544 ac_cv_search_gettext=no
17545 cat >conftest.$ac_ext <<_ACEOF
17546 #line $LINENO "configure"
17547 #include "confdefs.h"
17548
17549 /* Override any gcc2 internal prototype to avoid an error.  */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 /* We use char because int might match the return type of a gcc2
17554    builtin and then its argument prototype would still apply.  */
17555 char gettext ();
17556 #ifdef F77_DUMMY_MAIN
17557 #  ifdef __cplusplus
17558      extern "C"
17559 #  endif
17560    int F77_DUMMY_MAIN() { return 1; }
17561 #endif
17562 int
17563 main ()
17564 {
17565 gettext ();
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572   (eval $ac_link) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -s conftest$ac_exeext'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   ac_cv_search_gettext="none required"
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 cat conftest.$ac_ext >&5
17586 fi
17587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17588 if test "$ac_cv_search_gettext" = no; then
17589   for ac_lib in intl; do
17590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17591     cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17593 #include "confdefs.h"
17594
17595 /* Override any gcc2 internal prototype to avoid an error.  */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 /* We use char because int might match the return type of a gcc2
17600    builtin and then its argument prototype would still apply.  */
17601 char gettext ();
17602 #ifdef F77_DUMMY_MAIN
17603 #  ifdef __cplusplus
17604      extern "C"
17605 #  endif
17606    int F77_DUMMY_MAIN() { return 1; }
17607 #endif
17608 int
17609 main ()
17610 {
17611 gettext ();
17612   ;
17613   return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618   (eval $ac_link) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); } &&
17622          { ac_try='test -s conftest$ac_exeext'
17623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624   (eval $ac_try) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   ac_cv_search_gettext="-l$ac_lib"
17629 break
17630 else
17631   echo "$as_me: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17633 fi
17634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17635   done
17636 fi
17637 LIBS=$ac_func_search_save_LIBS
17638 fi
17639 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17640 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17641 if test "$ac_cv_search_gettext" != no; then
17642   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17643
17644 else
17645   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17646 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17647    { (exit 1); exit 1; }; }
17648 fi
17649
17650   if test "${ac_cv_header_libintl_h+set}" = set; then
17651   echo "$as_me:$LINENO: checking for libintl.h" >&5
17652 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17653 if test "${ac_cv_header_libintl_h+set}" = set; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 fi
17656 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17657 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17658 else
17659   # Is the header compilable?
17660 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17661 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17662 cat >conftest.$ac_ext <<_ACEOF
17663 #line $LINENO "configure"
17664 #include "confdefs.h"
17665 $ac_includes_default
17666 #include <libintl.h>
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670   (eval $ac_compile) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); } &&
17674          { ac_try='test -s conftest.$ac_objext'
17675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676   (eval $ac_try) 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; }; then
17680   ac_header_compiler=yes
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 cat conftest.$ac_ext >&5
17684 ac_header_compiler=no
17685 fi
17686 rm -f conftest.$ac_objext conftest.$ac_ext
17687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17688 echo "${ECHO_T}$ac_header_compiler" >&6
17689
17690 # Is the header present?
17691 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17692 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17693 cat >conftest.$ac_ext <<_ACEOF
17694 #line $LINENO "configure"
17695 #include "confdefs.h"
17696 #include <libintl.h>
17697 _ACEOF
17698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17700   ac_status=$?
17701   egrep -v '^ *\+' conftest.er1 >conftest.err
17702   rm -f conftest.er1
17703   cat conftest.err >&5
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); } >/dev/null; then
17706   if test -s conftest.err; then
17707     ac_cpp_err=$ac_c_preproc_warn_flag
17708   else
17709     ac_cpp_err=
17710   fi
17711 else
17712   ac_cpp_err=yes
17713 fi
17714 if test -z "$ac_cpp_err"; then
17715   ac_header_preproc=yes
17716 else
17717   echo "$as_me: failed program was:" >&5
17718   cat conftest.$ac_ext >&5
17719   ac_header_preproc=no
17720 fi
17721 rm -f conftest.err conftest.$ac_ext
17722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17723 echo "${ECHO_T}$ac_header_preproc" >&6
17724
17725 # So?  What about this header?
17726 case $ac_header_compiler:$ac_header_preproc in
17727   yes:no )
17728     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17729 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17730     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17731 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17732   no:yes )
17733     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17734 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17735     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17736 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17737     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17739 esac
17740 echo "$as_me:$LINENO: checking for libintl.h" >&5
17741 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17742 if test "${ac_cv_header_libintl_h+set}" = set; then
17743   echo $ECHO_N "(cached) $ECHO_C" >&6
17744 else
17745   ac_cv_header_libintl_h=$ac_header_preproc
17746 fi
17747 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17748 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17749
17750 fi
17751 if test $ac_cv_header_libintl_h = yes; then
17752   :
17753 else
17754   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17755 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17756    { (exit 1); exit 1; }; }
17757 fi
17758
17759
17760   for ac_prog in msgfmt
17761 do
17762   # Extract the first word of "$ac_prog", so it can be a program name with args.
17763 set dummy $ac_prog; ac_word=$2
17764 echo "$as_me:$LINENO: checking for $ac_word" >&5
17765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17766 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   if test -n "$MSGFMT"; then
17770   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17771 else
17772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17773 for as_dir in $PATH
17774 do
17775   IFS=$as_save_IFS
17776   test -z "$as_dir" && as_dir=.
17777   for ac_exec_ext in '' $ac_executable_extensions; do
17778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17779     ac_cv_prog_MSGFMT="$ac_prog"
17780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17781     break 2
17782   fi
17783 done
17784 done
17785
17786 fi
17787 fi
17788 MSGFMT=$ac_cv_prog_MSGFMT
17789 if test -n "$MSGFMT"; then
17790   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17791 echo "${ECHO_T}$MSGFMT" >&6
17792 else
17793   echo "$as_me:$LINENO: result: no" >&5
17794 echo "${ECHO_T}no" >&6
17795 fi
17796
17797   test -n "$MSGFMT" && break
17798 done
17799
17800   if test -z "$MSGFMT"; then
17801     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17802 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17803    { (exit 1); exit 1; }; }
17804   fi
17805   for ac_prog in msgmerge
17806 do
17807   # Extract the first word of "$ac_prog", so it can be a program name with args.
17808 set dummy $ac_prog; ac_word=$2
17809 echo "$as_me:$LINENO: checking for $ac_word" >&5
17810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17811 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   if test -n "$MSGMERGE"; then
17815   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17816 else
17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17819 do
17820   IFS=$as_save_IFS
17821   test -z "$as_dir" && as_dir=.
17822   for ac_exec_ext in '' $ac_executable_extensions; do
17823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17824     ac_cv_prog_MSGMERGE="$ac_prog"
17825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17826     break 2
17827   fi
17828 done
17829 done
17830
17831 fi
17832 fi
17833 MSGMERGE=$ac_cv_prog_MSGMERGE
17834 if test -n "$MSGMERGE"; then
17835   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17836 echo "${ECHO_T}$MSGMERGE" >&6
17837 else
17838   echo "$as_me:$LINENO: result: no" >&5
17839 echo "${ECHO_T}no" >&6
17840 fi
17841
17842   test -n "$MSGMERGE" && break
17843 done
17844
17845   for ac_prog in xgettext
17846 do
17847   # Extract the first word of "$ac_prog", so it can be a program name with args.
17848 set dummy $ac_prog; ac_word=$2
17849 echo "$as_me:$LINENO: checking for $ac_word" >&5
17850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17851 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   if test -n "$XGETTEXT"; then
17855   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17856 else
17857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17858 for as_dir in $PATH
17859 do
17860   IFS=$as_save_IFS
17861   test -z "$as_dir" && as_dir=.
17862   for ac_exec_ext in '' $ac_executable_extensions; do
17863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17864     ac_cv_prog_XGETTEXT="$ac_prog"
17865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17866     break 2
17867   fi
17868 done
17869 done
17870
17871 fi
17872 fi
17873 XGETTEXT=$ac_cv_prog_XGETTEXT
17874 if test -n "$XGETTEXT"; then
17875   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17876 echo "${ECHO_T}$XGETTEXT" >&6
17877 else
17878   echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6
17880 fi
17881
17882   test -n "$XGETTEXT" && break
17883 done
17884
17885
17886   # Note: share/locale is always the default, independent of $datadir
17887   localedir='${prefix}/share/locale'
17888   if test x"$prefix" = x"NONE"; then
17889     exp_localedir="$ac_default_prefix/share/locale"
17890   else
17891     exp_localedir="$prefix/share/locale"
17892   fi
17893
17894
17895
17896 cat >>confdefs.h <<_ACEOF
17897 #define LOCALEDIR "$exp_localedir"
17898 _ACEOF
17899
17900
17901 fi
17902
17903 # Check for Tcl configuration script tclConfig.sh
17904 if test "$with_tcl" = yes; then
17905     for ac_prog in tclsh tcl
17906 do
17907   # Extract the first word of "$ac_prog", so it can be a program name with args.
17908 set dummy $ac_prog; ac_word=$2
17909 echo "$as_me:$LINENO: checking for $ac_word" >&5
17910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17911 if test "${ac_cv_path_TCLSH+set}" = set; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914   case $TCLSH in
17915   [\\/]* | ?:[\\/]*)
17916   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17917   ;;
17918   *)
17919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17920 for as_dir in $PATH
17921 do
17922   IFS=$as_save_IFS
17923   test -z "$as_dir" && as_dir=.
17924   for ac_exec_ext in '' $ac_executable_extensions; do
17925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17926     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17928     break 2
17929   fi
17930 done
17931 done
17932
17933   ;;
17934 esac
17935 fi
17936 TCLSH=$ac_cv_path_TCLSH
17937
17938 if test -n "$TCLSH"; then
17939   echo "$as_me:$LINENO: result: $TCLSH" >&5
17940 echo "${ECHO_T}$TCLSH" >&6
17941 else
17942   echo "$as_me:$LINENO: result: no" >&5
17943 echo "${ECHO_T}no" >&6
17944 fi
17945
17946   test -n "$TCLSH" && break
17947 done
17948
17949 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17950 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17951 # Let user override test
17952 if test -z "$TCL_CONFIG_SH"; then
17953     pgac_test_dirs="$with_tclconfig"
17954
17955     set X $pgac_test_dirs; shift
17956     if test $# -eq 0; then
17957         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17958 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17959    { (exit 1); exit 1; }; }
17960         set X `echo 'puts $auto_path' | $TCLSH`; shift
17961     fi
17962
17963     for pgac_dir do
17964         if test -r "$pgac_dir/tclConfig.sh"; then
17965             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17966             break
17967         fi
17968     done
17969 fi
17970
17971 if test -z "$TCL_CONFIG_SH"; then
17972     echo "$as_me:$LINENO: result: no" >&5
17973 echo "${ECHO_T}no" >&6
17974     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17975 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17976    { (exit 1); exit 1; }; }
17977 else
17978     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17979 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17980 fi
17981
17982
17983
17984     . "$TCL_CONFIG_SH"
17985 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17986 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17987 eval TCL_LIBS=\"$TCL_LIBS\"
17988 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17989 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17990
17991     fi
17992
17993 #
17994 # Check for DocBook and tools
17995 #
17996 for ac_prog in onsgmls nsgmls
17997 do
17998   # Extract the first word of "$ac_prog", so it can be a program name with args.
17999 set dummy $ac_prog; ac_word=$2
18000 echo "$as_me:$LINENO: checking for $ac_word" >&5
18001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18002 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   if test -n "$NSGMLS"; then
18006   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18007 else
18008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18009 for as_dir in $PATH
18010 do
18011   IFS=$as_save_IFS
18012   test -z "$as_dir" && as_dir=.
18013   for ac_exec_ext in '' $ac_executable_extensions; do
18014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18015     ac_cv_prog_NSGMLS="$ac_prog"
18016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18017     break 2
18018   fi
18019 done
18020 done
18021
18022 fi
18023 fi
18024 NSGMLS=$ac_cv_prog_NSGMLS
18025 if test -n "$NSGMLS"; then
18026   echo "$as_me:$LINENO: result: $NSGMLS" >&5
18027 echo "${ECHO_T}$NSGMLS" >&6
18028 else
18029   echo "$as_me:$LINENO: result: no" >&5
18030 echo "${ECHO_T}no" >&6
18031 fi
18032
18033   test -n "$NSGMLS" && break
18034 done
18035
18036 for ac_prog in openjade jade
18037 do
18038   # Extract the first word of "$ac_prog", so it can be a program name with args.
18039 set dummy $ac_prog; ac_word=$2
18040 echo "$as_me:$LINENO: checking for $ac_word" >&5
18041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18042 if test "${ac_cv_prog_JADE+set}" = set; then
18043   echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045   if test -n "$JADE"; then
18046   ac_cv_prog_JADE="$JADE" # Let the user override the test.
18047 else
18048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18049 for as_dir in $PATH
18050 do
18051   IFS=$as_save_IFS
18052   test -z "$as_dir" && as_dir=.
18053   for ac_exec_ext in '' $ac_executable_extensions; do
18054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18055     ac_cv_prog_JADE="$ac_prog"
18056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18057     break 2
18058   fi
18059 done
18060 done
18061
18062 fi
18063 fi
18064 JADE=$ac_cv_prog_JADE
18065 if test -n "$JADE"; then
18066   echo "$as_me:$LINENO: result: $JADE" >&5
18067 echo "${ECHO_T}$JADE" >&6
18068 else
18069   echo "$as_me:$LINENO: result: no" >&5
18070 echo "${ECHO_T}no" >&6
18071 fi
18072
18073   test -n "$JADE" && break
18074 done
18075
18076
18077 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18078 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18079 if test "${pgac_cv_check_docbook+set}" = set; then
18080   echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082   cat >conftest.sgml <<EOF
18083 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18084 <book>
18085  <title>test</title>
18086  <chapter>
18087   <title>random</title>
18088    <sect1>
18089     <title>testsect</title>
18090     <para>text</para>
18091   </sect1>
18092  </chapter>
18093 </book>
18094 EOF
18095
18096 pgac_cv_check_docbook=no
18097
18098 if test -n "$NSGMLS"; then
18099   $NSGMLS -s conftest.sgml 1>&5 2>&1
18100   if test $? -eq 0; then
18101     pgac_cv_check_docbook=yes
18102   fi
18103 fi
18104 rm -f conftest.sgml
18105 fi
18106 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18107 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18108
18109 have_docbook=$pgac_cv_check_docbook
18110
18111
18112 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18113 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18114 if test "${pgac_cv_path_stylesheets+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   if test -n "$DOCBOOKSTYLE"; then
18118   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18119 else
18120   for pgac_prefix in /usr /usr/local /opt; do
18121     for pgac_infix in share lib; do
18122       for pgac_postfix in \
18123         sgml/stylesheets/nwalsh-modular \
18124         sgml/stylesheets/docbook \
18125                 sgml/docbook-dsssl \
18126         sgml/docbook/dsssl/modular \
18127         sgml/docbook/stylesheet/dsssl/modular \
18128         sgml/docbook/dsssl-stylesheets
18129       do
18130         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18131         if test -r "$pgac_candidate/html/docbook.dsl" \
18132            && test -r "$pgac_candidate/print/docbook.dsl"
18133         then
18134           pgac_cv_path_stylesheets=$pgac_candidate
18135           break 3
18136         fi
18137       done
18138     done
18139   done
18140 fi
18141 fi
18142
18143 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18144
18145 if test -n "$DOCBOOKSTYLE"; then
18146   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18147 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18148 else
18149   echo "$as_me:$LINENO: result: no" >&5
18150 echo "${ECHO_T}no" >&6
18151 fi
18152 if test -n "$DOCBOOKSTYLE"; then
18153   for ac_prog in collateindex.pl
18154 do
18155   # Extract the first word of "$ac_prog", so it can be a program name with args.
18156 set dummy $ac_prog; ac_word=$2
18157 echo "$as_me:$LINENO: checking for $ac_word" >&5
18158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18159 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18160   echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18162   case $COLLATEINDEX in
18163   [\\/]* | ?:[\\/]*)
18164   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18165   ;;
18166   *)
18167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18168 for as_dir in $DOCBOOKSTYLE/bin $PATH
18169 do
18170   IFS=$as_save_IFS
18171   test -z "$as_dir" && as_dir=.
18172   for ac_exec_ext in '' $ac_executable_extensions; do
18173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18174     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18176     break 2
18177   fi
18178 done
18179 done
18180
18181   ;;
18182 esac
18183 fi
18184 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18185
18186 if test -n "$COLLATEINDEX"; then
18187   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18188 echo "${ECHO_T}$COLLATEINDEX" >&6
18189 else
18190   echo "$as_me:$LINENO: result: no" >&5
18191 echo "${ECHO_T}no" >&6
18192 fi
18193
18194   test -n "$COLLATEINDEX" && break
18195 done
18196
18197 else
18198   for ac_prog in collateindex.pl
18199 do
18200   # Extract the first word of "$ac_prog", so it can be a program name with args.
18201 set dummy $ac_prog; ac_word=$2
18202 echo "$as_me:$LINENO: checking for $ac_word" >&5
18203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18204 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   case $COLLATEINDEX in
18208   [\\/]* | ?:[\\/]*)
18209   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18210   ;;
18211   *)
18212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18213 for as_dir in $PATH
18214 do
18215   IFS=$as_save_IFS
18216   test -z "$as_dir" && as_dir=.
18217   for ac_exec_ext in '' $ac_executable_extensions; do
18218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18219     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18221     break 2
18222   fi
18223 done
18224 done
18225
18226   ;;
18227 esac
18228 fi
18229 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18230
18231 if test -n "$COLLATEINDEX"; then
18232   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18233 echo "${ECHO_T}$COLLATEINDEX" >&6
18234 else
18235   echo "$as_me:$LINENO: result: no" >&5
18236 echo "${ECHO_T}no" >&6
18237 fi
18238
18239   test -n "$COLLATEINDEX" && break
18240 done
18241
18242 fi
18243 for ac_prog in sgmlspl
18244 do
18245   # Extract the first word of "$ac_prog", so it can be a program name with args.
18246 set dummy $ac_prog; ac_word=$2
18247 echo "$as_me:$LINENO: checking for $ac_word" >&5
18248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18249 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   if test -n "$SGMLSPL"; then
18253   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
18254 else
18255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18257 do
18258   IFS=$as_save_IFS
18259   test -z "$as_dir" && as_dir=.
18260   for ac_exec_ext in '' $ac_executable_extensions; do
18261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18262     ac_cv_prog_SGMLSPL="$ac_prog"
18263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18264     break 2
18265   fi
18266 done
18267 done
18268
18269 fi
18270 fi
18271 SGMLSPL=$ac_cv_prog_SGMLSPL
18272 if test -n "$SGMLSPL"; then
18273   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
18274 echo "${ECHO_T}$SGMLSPL" >&6
18275 else
18276   echo "$as_me:$LINENO: result: no" >&5
18277 echo "${ECHO_T}no" >&6
18278 fi
18279
18280   test -n "$SGMLSPL" && break
18281 done
18282
18283
18284 # Thread testing
18285
18286 # We have to run the thread test near the end so we have all our symbols
18287 # defined.  Cross compiling throws a warning.
18288 #
18289 if test "$enable_thread_safety_force" = yes; then
18290   { echo "$as_me:$LINENO: WARNING:
18291 *** Skipping thread test program.  --enable-thread-safety-force was used.
18292 *** Run the program in src/tools/thread on the your machine and add
18293 proper locking function calls to your applications to guarantee thread
18294 safety.
18295 " >&5
18296 echo "$as_me: WARNING:
18297 *** Skipping thread test program.  --enable-thread-safety-force was used.
18298 *** Run the program in src/tools/thread on the your machine and add
18299 proper locking function calls to your applications to guarantee thread
18300 safety.
18301 " >&2;}
18302 elif test "$enable_thread_safety" = yes; then
18303 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18304 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18305
18306 _CFLAGS="$CFLAGS"
18307 _LIBS="$LIBS"
18308 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18309 LIBS="$LIBS $PTHREAD_LIBS"
18310 if test "$cross_compiling" = yes; then
18311   echo "$as_me:$LINENO: result: maybe" >&5
18312 echo "${ECHO_T}maybe" >&6
18313   { echo "$as_me:$LINENO: WARNING:
18314 *** Skipping thread test program because of cross-compile build.
18315 *** Run the program in src/tools/thread on the target machine.
18316 " >&5
18317 echo "$as_me: WARNING:
18318 *** Skipping thread test program because of cross-compile build.
18319 *** Run the program in src/tools/thread on the target machine.
18320 " >&2;}
18321 else
18322   cat >conftest.$ac_ext <<_ACEOF
18323 #line $LINENO "configure"
18324 #include "confdefs.h"
18325 #include "$srcdir/src/tools/thread/thread_test.c"
18326 _ACEOF
18327 rm -f conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329   (eval $ac_link) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334   (eval $ac_try) 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; }; then
18338   echo "$as_me:$LINENO: result: yes" >&5
18339 echo "${ECHO_T}yes" >&6
18340 else
18341   echo "$as_me: program exited with status $ac_status" >&5
18342 echo "$as_me: failed program was:" >&5
18343 cat conftest.$ac_ext >&5
18344 ( exit $ac_status )
18345 echo "$as_me:$LINENO: result: no" >&5
18346 echo "${ECHO_T}no" >&6
18347   { { echo "$as_me:$LINENO: error:
18348 *** Thread test program failed.  Your platform is not thread-safe.
18349 *** Check the file 'config.log'for the exact reason.
18350 ***
18351 *** You can use the configure option --enable-thread-safety-force
18352 *** to force threads to be enabled.  However, you must then run
18353 *** the program in src/tools/thread and add locking function calls
18354 *** to your applications to guarantee thread safety.
18355 " >&5
18356 echo "$as_me: error:
18357 *** Thread test program failed.  Your platform is not thread-safe.
18358 *** Check the file 'config.log'for the exact reason.
18359 ***
18360 *** You can use the configure option --enable-thread-safety-force
18361 *** to force threads to be enabled.  However, you must then run
18362 *** the program in src/tools/thread and add locking function calls
18363 *** to your applications to guarantee thread safety.
18364 " >&2;}
18365    { (exit 1); exit 1; }; }
18366 fi
18367 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 CFLAGS="$_CFLAGS"
18370 LIBS="$_LIBS"
18371 fi
18372
18373 # prepare build tree if outside source tree
18374 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18375 # Note 2: /bin/pwd might be better than shell's built-in at getting
18376 #         a symlink-free name.
18377 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18378   vpath_build=no
18379 else
18380   vpath_build=yes
18381   if test "$no_create" != yes; then
18382     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18383     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18384     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18385       || { { echo "$as_me:$LINENO: error: failed" >&5
18386 echo "$as_me: error: failed" >&2;}
18387    { (exit 1); exit 1; }; }
18388     echo "$as_me:$LINENO: result: done" >&5
18389 echo "${ECHO_T}done" >&6
18390   fi
18391 fi
18392
18393
18394
18395 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18396
18397
18398 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}"
18399
18400
18401 if test "$PORTNAME" = "win32"; then
18402 ac_config_commands="$ac_config_commands check_win32_symlinks"
18403
18404 fi
18405
18406 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18407
18408
18409 cat >confcache <<\_ACEOF
18410 # This file is a shell script that caches the results of configure
18411 # tests run on this system so they can be shared between configure
18412 # scripts and configure runs, see configure's option --config-cache.
18413 # It is not useful on other systems.  If it contains results you don't
18414 # want to keep, you may remove or edit it.
18415 #
18416 # config.status only pays attention to the cache file if you give it
18417 # the --recheck option to rerun configure.
18418 #
18419 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18421 # following values.
18422
18423 _ACEOF
18424
18425 # The following way of writing the cache mishandles newlines in values,
18426 # but we know of no workaround that is simple, portable, and efficient.
18427 # So, don't put newlines in cache variables' values.
18428 # Ultrix sh set writes to stderr and can't be redirected directly,
18429 # and sets the high bit in the cache file unless we assign to the vars.
18430 {
18431   (set) 2>&1 |
18432     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18433     *ac_space=\ *)
18434       # `set' does not quote correctly, so add quotes (double-quote
18435       # substitution turns \\\\ into \\, and sed turns \\ into \).
18436       sed -n \
18437         "s/'/'\\\\''/g;
18438           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18439       ;;
18440     *)
18441       # `set' quotes correctly as required by POSIX, so do not add quotes.
18442       sed -n \
18443         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18444       ;;
18445     esac;
18446 } |
18447   sed '
18448      t clear
18449      : clear
18450      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18451      t end
18452      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18453      : end' >>confcache
18454 if cmp -s $cache_file confcache; then :; else
18455   if test -w $cache_file; then
18456     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18457     cat confcache >$cache_file
18458   else
18459     echo "not updating unwritable cache $cache_file"
18460   fi
18461 fi
18462 rm -f confcache
18463
18464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18465 # Let make expand exec_prefix.
18466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18467
18468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18470 # trailing colons and then remove the whole line if VPATH becomes empty
18471 # (actually we leave an empty line to preserve line numbers).
18472 if test "x$srcdir" = x.; then
18473   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18474 s/:*\$(srcdir):*/:/;
18475 s/:*\${srcdir}:*/:/;
18476 s/:*@srcdir@:*/:/;
18477 s/^\([^=]*=[    ]*\):*/\1/;
18478 s/:*$//;
18479 s/^[^=]*=[      ]*$//;
18480 }'
18481 fi
18482
18483 DEFS=-DHAVE_CONFIG_H
18484
18485
18486 : ${CONFIG_STATUS=./config.status}
18487 ac_clean_files_save=$ac_clean_files
18488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18489 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18491 cat >$CONFIG_STATUS <<_ACEOF
18492 #! $SHELL
18493 # Generated by $as_me.
18494 # Run this file to recreate the current configuration.
18495 # Compiler output produced by configure, useful for debugging
18496 # configure, is in config.log if it exists.
18497
18498 debug=false
18499 SHELL=\${CONFIG_SHELL-$SHELL}
18500 _ACEOF
18501
18502 cat >>$CONFIG_STATUS <<\_ACEOF
18503
18504 ## --------------------- ##
18505 ## M4sh Initialization.  ##
18506 ## --------------------- ##
18507
18508 # Be Bourne compatible
18509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18510   emulate sh
18511   NULLCMD=:
18512 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18513   set -o posix
18514 fi
18515
18516 # NLS nuisances.
18517 # Support unset when possible.
18518 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18519   as_unset=unset
18520 else
18521   as_unset=false
18522 fi
18523
18524 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18525     { $as_unset LANG || test "${LANG+set}" != set; } ||
18526       { LANG=C; export LANG; }
18527 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18528     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18529       { LC_ALL=C; export LC_ALL; }
18530 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18531     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18532       { LC_TIME=C; export LC_TIME; }
18533 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18534     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18535       { LC_CTYPE=C; export LC_CTYPE; }
18536 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18537     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18538       { LANGUAGE=C; export LANGUAGE; }
18539 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18540     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18541       { LC_COLLATE=C; export LC_COLLATE; }
18542 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18543     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18544       { LC_NUMERIC=C; export LC_NUMERIC; }
18545 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18546     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18547       { LC_MESSAGES=C; export LC_MESSAGES; }
18548
18549
18550 # Name of the executable.
18551 as_me=`(basename "$0") 2>/dev/null ||
18552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18553          X"$0" : 'X\(//\)$' \| \
18554          X"$0" : 'X\(/\)$' \| \
18555          .     : '\(.\)' 2>/dev/null ||
18556 echo X/"$0" |
18557     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18558           /^X\/\(\/\/\)$/{ s//\1/; q; }
18559           /^X\/\(\/\).*/{ s//\1/; q; }
18560           s/.*/./; q'`
18561
18562 # PATH needs CR, and LINENO needs CR and PATH.
18563 # Avoid depending upon Character Ranges.
18564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18567 as_cr_digits='0123456789'
18568 as_cr_alnum=$as_cr_Letters$as_cr_digits
18569
18570 # The user is always right.
18571 if test "${PATH_SEPARATOR+set}" != set; then
18572   echo "#! /bin/sh" >conftest.sh
18573   echo  "exit 0"   >>conftest.sh
18574   chmod +x conftest.sh
18575   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18576     PATH_SEPARATOR=';'
18577   else
18578     PATH_SEPARATOR=:
18579   fi
18580   rm -f conftest.sh
18581 fi
18582
18583
18584   as_lineno_1=$LINENO
18585   as_lineno_2=$LINENO
18586   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18587   test "x$as_lineno_1" != "x$as_lineno_2" &&
18588   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18589   # Find who we are.  Look in the path if we contain no path at all
18590   # relative or not.
18591   case $0 in
18592     *[\\/]* ) as_myself=$0 ;;
18593     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594 for as_dir in $PATH
18595 do
18596   IFS=$as_save_IFS
18597   test -z "$as_dir" && as_dir=.
18598   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18599 done
18600
18601        ;;
18602   esac
18603   # We did not find ourselves, most probably we were run as `sh COMMAND'
18604   # in which case we are not to be found in the path.
18605   if test "x$as_myself" = x; then
18606     as_myself=$0
18607   fi
18608   if test ! -f "$as_myself"; then
18609     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18610 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18611    { (exit 1); exit 1; }; }
18612   fi
18613   case $CONFIG_SHELL in
18614   '')
18615     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18617 do
18618   IFS=$as_save_IFS
18619   test -z "$as_dir" && as_dir=.
18620   for as_base in sh bash ksh sh5; do
18621          case $as_dir in
18622          /*)
18623            if ("$as_dir/$as_base" -c '
18624   as_lineno_1=$LINENO
18625   as_lineno_2=$LINENO
18626   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18627   test "x$as_lineno_1" != "x$as_lineno_2" &&
18628   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18629              CONFIG_SHELL=$as_dir/$as_base
18630              export CONFIG_SHELL
18631              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18632            fi;;
18633          esac
18634        done
18635 done
18636 ;;
18637   esac
18638
18639   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18640   # uniformly replaced by the line number.  The first 'sed' inserts a
18641   # line-number line before each line; the second 'sed' does the real
18642   # work.  The second script uses 'N' to pair each line-number line
18643   # with the numbered line, and appends trailing '-' during
18644   # substitution so that $LINENO is not a special case at line end.
18645   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18646   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18647   sed '=' <$as_myself |
18648     sed '
18649       N
18650       s,$,-,
18651       : loop
18652       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18653       t loop
18654       s,-$,,
18655       s,^['$as_cr_digits']*\n,,
18656     ' >$as_me.lineno &&
18657   chmod +x $as_me.lineno ||
18658     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18659 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18660    { (exit 1); exit 1; }; }
18661
18662   # Don't try to exec as it changes $[0], causing all sort of problems
18663   # (the dirname of $[0] is not the place where we might find the
18664   # original and so on.  Autoconf is especially sensible to this).
18665   . ./$as_me.lineno
18666   # Exit status is that of the last command.
18667   exit
18668 }
18669
18670
18671 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18672   *c*,-n*) ECHO_N= ECHO_C='
18673 ' ECHO_T='      ' ;;
18674   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18675   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18676 esac
18677
18678 if expr a : '\(a\)' >/dev/null 2>&1; then
18679   as_expr=expr
18680 else
18681   as_expr=false
18682 fi
18683
18684 rm -f conf$$ conf$$.exe conf$$.file
18685 echo >conf$$.file
18686 if ln -s conf$$.file conf$$ 2>/dev/null; then
18687   # We could just check for DJGPP; but this test a) works b) is more generic
18688   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18689   if test -f conf$$.exe; then
18690     # Don't use ln at all; we don't have any links
18691     as_ln_s='cp -p'
18692   else
18693     as_ln_s='ln -s'
18694   fi
18695 elif ln conf$$.file conf$$ 2>/dev/null; then
18696   as_ln_s=ln
18697 else
18698   as_ln_s='cp -p'
18699 fi
18700 rm -f conf$$ conf$$.exe conf$$.file
18701
18702 as_executable_p="test -f"
18703
18704 # Sed expression to map a string onto a valid CPP name.
18705 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18706
18707 # Sed expression to map a string onto a valid variable name.
18708 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18709
18710
18711 # IFS
18712 # We need space, tab and new line, in precisely that order.
18713 as_nl='
18714 '
18715 IFS="   $as_nl"
18716
18717 # CDPATH.
18718 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18719
18720 exec 6>&1
18721
18722 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18723 # report actual input values of CONFIG_FILES etc. instead of their
18724 # values after options handling.  Logging --version etc. is OK.
18725 exec 5>>config.log
18726 {
18727   echo
18728   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18729 ## Running $as_me. ##
18730 _ASBOX
18731 } >&5
18732 cat >&5 <<_CSEOF
18733
18734 This file was extended by PostgreSQL $as_me 8.0.0beta4, which was
18735 generated by GNU Autoconf 2.53.  Invocation command line was
18736
18737   CONFIG_FILES    = $CONFIG_FILES
18738   CONFIG_HEADERS  = $CONFIG_HEADERS
18739   CONFIG_LINKS    = $CONFIG_LINKS
18740   CONFIG_COMMANDS = $CONFIG_COMMANDS
18741   $ $0 $@
18742
18743 _CSEOF
18744 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18745 echo >&5
18746 _ACEOF
18747
18748 # Files that config.status was made for.
18749 if test -n "$ac_config_files"; then
18750   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18751 fi
18752
18753 if test -n "$ac_config_headers"; then
18754   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18755 fi
18756
18757 if test -n "$ac_config_links"; then
18758   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18759 fi
18760
18761 if test -n "$ac_config_commands"; then
18762   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18763 fi
18764
18765 cat >>$CONFIG_STATUS <<\_ACEOF
18766
18767 ac_cs_usage="\
18768 \`$as_me' instantiates files from templates according to the
18769 current configuration.
18770
18771 Usage: $0 [OPTIONS] [FILE]...
18772
18773   -h, --help       print this help, then exit
18774   -V, --version    print version number, then exit
18775   -d, --debug      don't remove temporary files
18776       --recheck    update $as_me by reconfiguring in the same conditions
18777   --file=FILE[:TEMPLATE]
18778                    instantiate the configuration file FILE
18779   --header=FILE[:TEMPLATE]
18780                    instantiate the configuration header FILE
18781
18782 Configuration files:
18783 $config_files
18784
18785 Configuration headers:
18786 $config_headers
18787
18788 Configuration links:
18789 $config_links
18790
18791 Configuration commands:
18792 $config_commands
18793
18794 Report bugs to <bug-autoconf@gnu.org>."
18795 _ACEOF
18796
18797 cat >>$CONFIG_STATUS <<_ACEOF
18798 ac_cs_version="\\
18799 PostgreSQL config.status 8.0.0beta4
18800 configured by $0, generated by GNU Autoconf 2.53,
18801   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18802
18803 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18804 Free Software Foundation, Inc.
18805 This config.status script is free software; the Free Software Foundation
18806 gives unlimited permission to copy, distribute and modify it."
18807 srcdir=$srcdir
18808 _ACEOF
18809
18810 cat >>$CONFIG_STATUS <<\_ACEOF
18811 # If no file are specified by the user, then we need to provide default
18812 # value.  By we need to know if files were specified by the user.
18813 ac_need_defaults=:
18814 while test $# != 0
18815 do
18816   case $1 in
18817   --*=*)
18818     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18819     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18820     shift
18821     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18822     shift
18823     ;;
18824   -*);;
18825   *) # This is not an option, so the user has probably given explicit
18826      # arguments.
18827      ac_need_defaults=false;;
18828   esac
18829
18830   case $1 in
18831   # Handling of the options.
18832 _ACEOF
18833 cat >>$CONFIG_STATUS <<_ACEOF
18834   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18835     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18836     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18837 _ACEOF
18838 cat >>$CONFIG_STATUS <<\_ACEOF
18839   --version | --vers* | -V )
18840     echo "$ac_cs_version"; exit 0 ;;
18841   --he | --h)
18842     # Conflict between --help and --header
18843     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18844 Try \`$0 --help' for more information." >&5
18845 echo "$as_me: error: ambiguous option: $1
18846 Try \`$0 --help' for more information." >&2;}
18847    { (exit 1); exit 1; }; };;
18848   --help | --hel | -h )
18849     echo "$ac_cs_usage"; exit 0 ;;
18850   --debug | --d* | -d )
18851     debug=: ;;
18852   --file | --fil | --fi | --f )
18853     shift
18854     CONFIG_FILES="$CONFIG_FILES $1"
18855     ac_need_defaults=false;;
18856   --header | --heade | --head | --hea )
18857     shift
18858     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18859     ac_need_defaults=false;;
18860
18861   # This is an error.
18862   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18863 Try \`$0 --help' for more information." >&5
18864 echo "$as_me: error: unrecognized option: $1
18865 Try \`$0 --help' for more information." >&2;}
18866    { (exit 1); exit 1; }; } ;;
18867
18868   *) ac_config_targets="$ac_config_targets $1" ;;
18869
18870   esac
18871   shift
18872 done
18873
18874 _ACEOF
18875
18876
18877
18878
18879
18880 cat >>$CONFIG_STATUS <<\_ACEOF
18881 for ac_config_target in $ac_config_targets
18882 do
18883   case "$ac_config_target" in
18884   # Handling of arguments.
18885   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18886   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18887   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18888   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18889   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18890   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18891   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18892   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18893   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18894   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18895   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18896   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18898    { (exit 1); exit 1; }; };;
18899   esac
18900 done
18901
18902 # If the user did not use the arguments to specify the items to instantiate,
18903 # then the envvar interface is used.  Set only those that are not.
18904 # We use the long form for the default assignment because of an extremely
18905 # bizarre bug on SunOS 4.1.3.
18906 if $ac_need_defaults; then
18907   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18908   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18909   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18910   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18911 fi
18912
18913 # Create a temporary directory, and hook for its removal unless debugging.
18914 $debug ||
18915 {
18916   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18917   trap '{ (exit 1); exit 1; }' 1 2 13 15
18918 }
18919
18920 # Create a (secure) tmp directory for tmp files.
18921 : ${TMPDIR=/tmp}
18922 {
18923   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18924   test -n "$tmp" && test -d "$tmp"
18925 }  ||
18926 {
18927   tmp=$TMPDIR/cs$$-$RANDOM
18928   (umask 077 && mkdir $tmp)
18929 } ||
18930 {
18931    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18932    { (exit 1); exit 1; }
18933 }
18934
18935 _ACEOF
18936
18937 cat >>$CONFIG_STATUS <<_ACEOF
18938
18939 #
18940 # CONFIG_FILES section.
18941 #
18942
18943 # No need to generate the scripts if there are no CONFIG_FILES.
18944 # This happens for instance when ./config.status config.h
18945 if test -n "\$CONFIG_FILES"; then
18946   # Protect against being on the right side of a sed subst in config.status.
18947   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18948    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18949 s,@SHELL@,$SHELL,;t t
18950 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18951 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18952 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18953 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18954 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18955 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18956 s,@exec_prefix@,$exec_prefix,;t t
18957 s,@prefix@,$prefix,;t t
18958 s,@program_transform_name@,$program_transform_name,;t t
18959 s,@bindir@,$bindir,;t t
18960 s,@sbindir@,$sbindir,;t t
18961 s,@libexecdir@,$libexecdir,;t t
18962 s,@datadir@,$datadir,;t t
18963 s,@sysconfdir@,$sysconfdir,;t t
18964 s,@sharedstatedir@,$sharedstatedir,;t t
18965 s,@localstatedir@,$localstatedir,;t t
18966 s,@libdir@,$libdir,;t t
18967 s,@includedir@,$includedir,;t t
18968 s,@oldincludedir@,$oldincludedir,;t t
18969 s,@infodir@,$infodir,;t t
18970 s,@mandir@,$mandir,;t t
18971 s,@build_alias@,$build_alias,;t t
18972 s,@host_alias@,$host_alias,;t t
18973 s,@target_alias@,$target_alias,;t t
18974 s,@DEFS@,$DEFS,;t t
18975 s,@ECHO_C@,$ECHO_C,;t t
18976 s,@ECHO_N@,$ECHO_N,;t t
18977 s,@ECHO_T@,$ECHO_T,;t t
18978 s,@LIBS@,$LIBS,;t t
18979 s,@configure_args@,$configure_args,;t t
18980 s,@build@,$build,;t t
18981 s,@build_cpu@,$build_cpu,;t t
18982 s,@build_vendor@,$build_vendor,;t t
18983 s,@build_os@,$build_os,;t t
18984 s,@host@,$host,;t t
18985 s,@host_cpu@,$host_cpu,;t t
18986 s,@host_vendor@,$host_vendor,;t t
18987 s,@host_os@,$host_os,;t t
18988 s,@PORTNAME@,$PORTNAME,;t t
18989 s,@docdir@,$docdir,;t t
18990 s,@enable_nls@,$enable_nls,;t t
18991 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18992 s,@default_port@,$default_port,;t t
18993 s,@enable_shared@,$enable_shared,;t t
18994 s,@enable_rpath@,$enable_rpath,;t t
18995 s,@enable_debug@,$enable_debug,;t t
18996 s,@CC@,$CC,;t t
18997 s,@CFLAGS@,$CFLAGS,;t t
18998 s,@LDFLAGS@,$LDFLAGS,;t t
18999 s,@CPPFLAGS@,$CPPFLAGS,;t t
19000 s,@ac_ct_CC@,$ac_ct_CC,;t t
19001 s,@EXEEXT@,$EXEEXT,;t t
19002 s,@OBJEXT@,$OBJEXT,;t t
19003 s,@CPP@,$CPP,;t t
19004 s,@GCC@,$GCC,;t t
19005 s,@TAS@,$TAS,;t t
19006 s,@autodepend@,$autodepend,;t t
19007 s,@INCLUDES@,$INCLUDES,;t t
19008 s,@enable_thread_safety@,$enable_thread_safety,;t t
19009 s,@with_tcl@,$with_tcl,;t t
19010 s,@with_perl@,$with_perl,;t t
19011 s,@with_python@,$with_python,;t t
19012 s,@with_krb4@,$with_krb4,;t t
19013 s,@with_krb5@,$with_krb5,;t t
19014 s,@krb_srvtab@,$krb_srvtab,;t t
19015 s,@with_pam@,$with_pam,;t t
19016 s,@with_rendezvous@,$with_rendezvous,;t t
19017 s,@with_openssl@,$with_openssl,;t t
19018 s,@ELF_SYS@,$ELF_SYS,;t t
19019 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19020 s,@AWK@,$AWK,;t t
19021 s,@FLEX@,$FLEX,;t t
19022 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19023 s,@LN_S@,$LN_S,;t t
19024 s,@LD@,$LD,;t t
19025 s,@with_gnu_ld@,$with_gnu_ld,;t t
19026 s,@ld_R_works@,$ld_R_works,;t t
19027 s,@RANLIB@,$RANLIB,;t t
19028 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19029 s,@LORDER@,$LORDER,;t t
19030 s,@TAR@,$TAR,;t t
19031 s,@STRIP@,$STRIP,;t t
19032 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19033 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19034 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19035 s,@YACC@,$YACC,;t t
19036 s,@YFLAGS@,$YFLAGS,;t t
19037 s,@PERL@,$PERL,;t t
19038 s,@perl_archlibexp@,$perl_archlibexp,;t t
19039 s,@perl_privlibexp@,$perl_privlibexp,;t t
19040 s,@perl_useshrplib@,$perl_useshrplib,;t t
19041 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19042 s,@PYTHON@,$PYTHON,;t t
19043 s,@python_version@,$python_version,;t t
19044 s,@python_configdir@,$python_configdir,;t t
19045 s,@python_includespec@,$python_includespec,;t t
19046 s,@python_libdir@,$python_libdir,;t t
19047 s,@python_libspec@,$python_libspec,;t t
19048 s,@python_additional_libs@,$python_additional_libs,;t t
19049 s,@LIBOBJS@,$LIBOBJS,;t t
19050 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19051 s,@acx_pthread_config@,$acx_pthread_config,;t t
19052 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19053 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19054 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19055 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19056 s,@MSGFMT@,$MSGFMT,;t t
19057 s,@MSGMERGE@,$MSGMERGE,;t t
19058 s,@XGETTEXT@,$XGETTEXT,;t t
19059 s,@localedir@,$localedir,;t t
19060 s,@TCLSH@,$TCLSH,;t t
19061 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19062 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19063 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19064 s,@TCL_LIBS@,$TCL_LIBS,;t t
19065 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19066 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19067 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19068 s,@NSGMLS@,$NSGMLS,;t t
19069 s,@JADE@,$JADE,;t t
19070 s,@have_docbook@,$have_docbook,;t t
19071 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19072 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19073 s,@SGMLSPL@,$SGMLSPL,;t t
19074 s,@vpath_build@,$vpath_build,;t t
19075 CEOF
19076
19077 _ACEOF
19078
19079   cat >>$CONFIG_STATUS <<\_ACEOF
19080   # Split the substitutions into bite-sized pieces for seds with
19081   # small command number limits, like on Digital OSF/1 and HP-UX.
19082   ac_max_sed_lines=48
19083   ac_sed_frag=1 # Number of current file.
19084   ac_beg=1 # First line for current file.
19085   ac_end=$ac_max_sed_lines # Line after last line for current file.
19086   ac_more_lines=:
19087   ac_sed_cmds=
19088   while $ac_more_lines; do
19089     if test $ac_beg -gt 1; then
19090       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19091     else
19092       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19093     fi
19094     if test ! -s $tmp/subs.frag; then
19095       ac_more_lines=false
19096     else
19097       # The purpose of the label and of the branching condition is to
19098       # speed up the sed processing (if there are no `@' at all, there
19099       # is no need to browse any of the substitutions).
19100       # These are the two extra sed commands mentioned above.
19101       (echo ':t
19102   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19103       if test -z "$ac_sed_cmds"; then
19104         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19105       else
19106         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19107       fi
19108       ac_sed_frag=`expr $ac_sed_frag + 1`
19109       ac_beg=$ac_end
19110       ac_end=`expr $ac_end + $ac_max_sed_lines`
19111     fi
19112   done
19113   if test -z "$ac_sed_cmds"; then
19114     ac_sed_cmds=cat
19115   fi
19116 fi # test -n "$CONFIG_FILES"
19117
19118 _ACEOF
19119 cat >>$CONFIG_STATUS <<\_ACEOF
19120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19121   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19122   case $ac_file in
19123   - | *:- | *:-:* ) # input from stdin
19124         cat >$tmp/stdin
19125         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19127   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19129   * )   ac_file_in=$ac_file.in ;;
19130   esac
19131
19132   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19133   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135          X"$ac_file" : 'X\(//\)[^/]' \| \
19136          X"$ac_file" : 'X\(//\)$' \| \
19137          X"$ac_file" : 'X\(/\)' \| \
19138          .     : '\(.\)' 2>/dev/null ||
19139 echo X"$ac_file" |
19140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19142           /^X\(\/\/\)$/{ s//\1/; q; }
19143           /^X\(\/\).*/{ s//\1/; q; }
19144           s/.*/./; q'`
19145   { case "$ac_dir" in
19146   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19147   *)                      as_incr_dir=.;;
19148 esac
19149 as_dummy="$ac_dir"
19150 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19151   case $as_mkdir_dir in
19152     # Skip DOS drivespec
19153     ?:) as_incr_dir=$as_mkdir_dir ;;
19154     *)
19155       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19156       test -d "$as_incr_dir" ||
19157         mkdir "$as_incr_dir" ||
19158         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19159 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19160    { (exit 1); exit 1; }; }
19161     ;;
19162   esac
19163 done; }
19164
19165   ac_builddir=.
19166
19167 if test "$ac_dir" != .; then
19168   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19169   # A "../" for each directory in $ac_dir_suffix.
19170   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19171 else
19172   ac_dir_suffix= ac_top_builddir=
19173 fi
19174
19175 case $srcdir in
19176   .)  # No --srcdir option.  We are building in place.
19177     ac_srcdir=.
19178     if test -z "$ac_top_builddir"; then
19179        ac_top_srcdir=.
19180     else
19181        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19182     fi ;;
19183   [\\/]* | ?:[\\/]* )  # Absolute path.
19184     ac_srcdir=$srcdir$ac_dir_suffix;
19185     ac_top_srcdir=$srcdir ;;
19186   *) # Relative path.
19187     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19188     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19189 esac
19190 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19191 # absolute.
19192 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19193 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19194 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19195 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19196
19197
19198
19199   if test x"$ac_file" != x-; then
19200     { echo "$as_me:$LINENO: creating $ac_file" >&5
19201 echo "$as_me: creating $ac_file" >&6;}
19202     rm -f "$ac_file"
19203   fi
19204   # Let's still pretend it is `configure' which instantiates (i.e., don't
19205   # use $as_me), people would be surprised to read:
19206   #    /* config.h.  Generated by config.status.  */
19207   if test x"$ac_file" = x-; then
19208     configure_input=
19209   else
19210     configure_input="$ac_file.  "
19211   fi
19212   configure_input=$configure_input"Generated from `echo $ac_file_in |
19213                                      sed 's,.*/,,'` by configure."
19214
19215   # First look for the input files in the build tree, otherwise in the
19216   # src tree.
19217   ac_file_inputs=`IFS=:
19218     for f in $ac_file_in; do
19219       case $f in
19220       -) echo $tmp/stdin ;;
19221       [\\/$]*)
19222          # Absolute (can't be DOS-style, as IFS=:)
19223          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19224 echo "$as_me: error: cannot find input file: $f" >&2;}
19225    { (exit 1); exit 1; }; }
19226          echo $f;;
19227       *) # Relative
19228          if test -f "$f"; then
19229            # Build tree
19230            echo $f
19231          elif test -f "$srcdir/$f"; then
19232            # Source tree
19233            echo $srcdir/$f
19234          else
19235            # /dev/null tree
19236            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19237 echo "$as_me: error: cannot find input file: $f" >&2;}
19238    { (exit 1); exit 1; }; }
19239          fi;;
19240       esac
19241     done` || { (exit 1); exit 1; }
19242 _ACEOF
19243 cat >>$CONFIG_STATUS <<_ACEOF
19244   sed "$ac_vpsub
19245 $extrasub
19246 _ACEOF
19247 cat >>$CONFIG_STATUS <<\_ACEOF
19248 :t
19249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19250 s,@configure_input@,$configure_input,;t t
19251 s,@srcdir@,$ac_srcdir,;t t
19252 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19253 s,@top_srcdir@,$ac_top_srcdir,;t t
19254 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19255 s,@builddir@,$ac_builddir,;t t
19256 s,@abs_builddir@,$ac_abs_builddir,;t t
19257 s,@top_builddir@,$ac_top_builddir,;t t
19258 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19259 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19260   rm -f $tmp/stdin
19261   if test x"$ac_file" != x-; then
19262     mv $tmp/out $ac_file
19263   else
19264     cat $tmp/out
19265     rm -f $tmp/out
19266   fi
19267
19268 done
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<\_ACEOF
19271
19272 #
19273 # CONFIG_HEADER section.
19274 #
19275
19276 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19277 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19278 #
19279 # ac_d sets the value in "#define NAME VALUE" lines.
19280 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19281 ac_dB='[        ].*$,\1#\2'
19282 ac_dC=' '
19283 ac_dD=',;t'
19284 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19285 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19286 ac_uB='$,\1#\2define\3'
19287 ac_uC=' '
19288 ac_uD=',;t'
19289
19290 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19291   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19292   case $ac_file in
19293   - | *:- | *:-:* ) # input from stdin
19294         cat >$tmp/stdin
19295         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19296         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19297   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19298         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19299   * )   ac_file_in=$ac_file.in ;;
19300   esac
19301
19302   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19303 echo "$as_me: creating $ac_file" >&6;}
19304
19305   # First look for the input files in the build tree, otherwise in the
19306   # src tree.
19307   ac_file_inputs=`IFS=:
19308     for f in $ac_file_in; do
19309       case $f in
19310       -) echo $tmp/stdin ;;
19311       [\\/$]*)
19312          # Absolute (can't be DOS-style, as IFS=:)
19313          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19314 echo "$as_me: error: cannot find input file: $f" >&2;}
19315    { (exit 1); exit 1; }; }
19316          echo $f;;
19317       *) # Relative
19318          if test -f "$f"; then
19319            # Build tree
19320            echo $f
19321          elif test -f "$srcdir/$f"; then
19322            # Source tree
19323            echo $srcdir/$f
19324          else
19325            # /dev/null tree
19326            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19327 echo "$as_me: error: cannot find input file: $f" >&2;}
19328    { (exit 1); exit 1; }; }
19329          fi;;
19330       esac
19331     done` || { (exit 1); exit 1; }
19332   # Remove the trailing spaces.
19333   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19334
19335 _ACEOF
19336
19337 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19338 # `conftest.undefs', that substitutes the proper values into
19339 # config.h.in to produce config.h.  The first handles `#define'
19340 # templates, and the second `#undef' templates.
19341 # And first: Protect against being on the right side of a sed subst in
19342 # config.status.  Protect against being in an unquoted here document
19343 # in config.status.
19344 rm -f conftest.defines conftest.undefs
19345 # Using a here document instead of a string reduces the quoting nightmare.
19346 # Putting comments in sed scripts is not portable.
19347 #
19348 # `end' is used to avoid that the second main sed command (meant for
19349 # 0-ary CPP macros) applies to n-ary macro definitions.
19350 # See the Autoconf documentation for `clear'.
19351 cat >confdef2sed.sed <<\_ACEOF
19352 s/[\\&,]/\\&/g
19353 s,[\\$`],\\&,g
19354 t clear
19355 : clear
19356 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19357 t end
19358 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19359 : end
19360 _ACEOF
19361 # If some macros were called several times there might be several times
19362 # the same #defines, which is useless.  Nevertheless, we may not want to
19363 # sort them, since we want the *last* AC-DEFINE to be honored.
19364 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19365 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19366 rm -f confdef2sed.sed
19367
19368 # This sed command replaces #undef with comments.  This is necessary, for
19369 # example, in the case of _POSIX_SOURCE, which is predefined and required
19370 # on some systems where configure will not decide to define it.
19371 cat >>conftest.undefs <<\_ACEOF
19372 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19373 _ACEOF
19374
19375 # Break up conftest.defines because some shells have a limit on the size
19376 # of here documents, and old seds have small limits too (100 cmds).
19377 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19378 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19379 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19380 echo '  :' >>$CONFIG_STATUS
19381 rm -f conftest.tail
19382 while grep . conftest.defines >/dev/null
19383 do
19384   # Write a limited-size here document to $tmp/defines.sed.
19385   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19386   # Speed up: don't consider the non `#define' lines.
19387   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19388   # Work around the forget-to-reset-the-flag bug.
19389   echo 't clr' >>$CONFIG_STATUS
19390   echo ': clr' >>$CONFIG_STATUS
19391   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19392   echo 'CEOF
19393   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19394   rm -f $tmp/in
19395   mv $tmp/out $tmp/in
19396 ' >>$CONFIG_STATUS
19397   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19398   rm -f conftest.defines
19399   mv conftest.tail conftest.defines
19400 done
19401 rm -f conftest.defines
19402 echo '  fi # egrep' >>$CONFIG_STATUS
19403 echo >>$CONFIG_STATUS
19404
19405 # Break up conftest.undefs because some shells have a limit on the size
19406 # of here documents, and old seds have small limits too (100 cmds).
19407 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19408 rm -f conftest.tail
19409 while grep . conftest.undefs >/dev/null
19410 do
19411   # Write a limited-size here document to $tmp/undefs.sed.
19412   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19413   # Speed up: don't consider the non `#undef'
19414   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19415   # Work around the forget-to-reset-the-flag bug.
19416   echo 't clr' >>$CONFIG_STATUS
19417   echo ': clr' >>$CONFIG_STATUS
19418   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19419   echo 'CEOF
19420   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19421   rm -f $tmp/in
19422   mv $tmp/out $tmp/in
19423 ' >>$CONFIG_STATUS
19424   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19425   rm -f conftest.undefs
19426   mv conftest.tail conftest.undefs
19427 done
19428 rm -f conftest.undefs
19429
19430 cat >>$CONFIG_STATUS <<\_ACEOF
19431   # Let's still pretend it is `configure' which instantiates (i.e., don't
19432   # use $as_me), people would be surprised to read:
19433   #    /* config.h.  Generated by config.status.  */
19434   if test x"$ac_file" = x-; then
19435     echo "/* Generated by configure.  */" >$tmp/config.h
19436   else
19437     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19438   fi
19439   cat $tmp/in >>$tmp/config.h
19440   rm -f $tmp/in
19441   if test x"$ac_file" != x-; then
19442     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19443       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19444 echo "$as_me: $ac_file is unchanged" >&6;}
19445     else
19446       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19448          X"$ac_file" : 'X\(//\)[^/]' \| \
19449          X"$ac_file" : 'X\(//\)$' \| \
19450          X"$ac_file" : 'X\(/\)' \| \
19451          .     : '\(.\)' 2>/dev/null ||
19452 echo X"$ac_file" |
19453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19455           /^X\(\/\/\)$/{ s//\1/; q; }
19456           /^X\(\/\).*/{ s//\1/; q; }
19457           s/.*/./; q'`
19458       { case "$ac_dir" in
19459   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19460   *)                      as_incr_dir=.;;
19461 esac
19462 as_dummy="$ac_dir"
19463 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19464   case $as_mkdir_dir in
19465     # Skip DOS drivespec
19466     ?:) as_incr_dir=$as_mkdir_dir ;;
19467     *)
19468       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19469       test -d "$as_incr_dir" ||
19470         mkdir "$as_incr_dir" ||
19471         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19472 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19473    { (exit 1); exit 1; }; }
19474     ;;
19475   esac
19476 done; }
19477
19478       rm -f $ac_file
19479       mv $tmp/config.h $ac_file
19480     fi
19481   else
19482     cat $tmp/config.h
19483     rm -f $tmp/config.h
19484   fi
19485   # Run the commands associated with the file.
19486   case $ac_file in
19487     src/include/pg_config.h )
19488 # Update timestamp for pg_config.h (see Makefile.global)
19489 echo >src/include/stamp-h
19490  ;;
19491   esac
19492 done
19493 _ACEOF
19494 cat >>$CONFIG_STATUS <<\_ACEOF
19495
19496 #
19497 # CONFIG_LINKS section.
19498 #
19499
19500 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19501   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19502   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19503
19504   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19505 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19506
19507   if test ! -r $srcdir/$ac_source; then
19508     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19509 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19510    { (exit 1); exit 1; }; }
19511   fi
19512   rm -f $ac_dest
19513
19514   # Make relative symlinks.
19515   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19516 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19517          X"$ac_dest" : 'X\(//\)[^/]' \| \
19518          X"$ac_dest" : 'X\(//\)$' \| \
19519          X"$ac_dest" : 'X\(/\)' \| \
19520          .     : '\(.\)' 2>/dev/null ||
19521 echo X"$ac_dest" |
19522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19523           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19524           /^X\(\/\/\)$/{ s//\1/; q; }
19525           /^X\(\/\).*/{ s//\1/; q; }
19526           s/.*/./; q'`
19527   { case "$ac_dest_dir" in
19528   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19529   *)                      as_incr_dir=.;;
19530 esac
19531 as_dummy="$ac_dest_dir"
19532 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19533   case $as_mkdir_dir in
19534     # Skip DOS drivespec
19535     ?:) as_incr_dir=$as_mkdir_dir ;;
19536     *)
19537       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19538       test -d "$as_incr_dir" ||
19539         mkdir "$as_incr_dir" ||
19540         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19541 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19542    { (exit 1); exit 1; }; }
19543     ;;
19544   esac
19545 done; }
19546
19547   ac_builddir=.
19548
19549 if test "$ac_dest_dir" != .; then
19550   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19551   # A "../" for each directory in $ac_dir_suffix.
19552   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19553 else
19554   ac_dir_suffix= ac_top_builddir=
19555 fi
19556
19557 case $srcdir in
19558   .)  # No --srcdir option.  We are building in place.
19559     ac_srcdir=.
19560     if test -z "$ac_top_builddir"; then
19561        ac_top_srcdir=.
19562     else
19563        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19564     fi ;;
19565   [\\/]* | ?:[\\/]* )  # Absolute path.
19566     ac_srcdir=$srcdir$ac_dir_suffix;
19567     ac_top_srcdir=$srcdir ;;
19568   *) # Relative path.
19569     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19570     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19571 esac
19572 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19573 # absolute.
19574 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19575 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19576 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19577 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19578
19579
19580   case $srcdir in
19581   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19582       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19583   esac
19584
19585   # Make a symlink if possible; otherwise try a hard link.
19586   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19587     ln $srcdir/$ac_source $ac_dest ||
19588     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19589 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19590    { (exit 1); exit 1; }; }
19591 done
19592 _ACEOF
19593 cat >>$CONFIG_STATUS <<\_ACEOF
19594
19595 #
19596 # CONFIG_COMMANDS section.
19597 #
19598 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19599   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19600   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19601   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19602 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19603          X"$ac_dest" : 'X\(//\)[^/]' \| \
19604          X"$ac_dest" : 'X\(//\)$' \| \
19605          X"$ac_dest" : 'X\(/\)' \| \
19606          .     : '\(.\)' 2>/dev/null ||
19607 echo X"$ac_dest" |
19608     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19609           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19610           /^X\(\/\/\)$/{ s//\1/; q; }
19611           /^X\(\/\).*/{ s//\1/; q; }
19612           s/.*/./; q'`
19613   ac_builddir=.
19614
19615 if test "$ac_dir" != .; then
19616   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19617   # A "../" for each directory in $ac_dir_suffix.
19618   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19619 else
19620   ac_dir_suffix= ac_top_builddir=
19621 fi
19622
19623 case $srcdir in
19624   .)  # No --srcdir option.  We are building in place.
19625     ac_srcdir=.
19626     if test -z "$ac_top_builddir"; then
19627        ac_top_srcdir=.
19628     else
19629        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19630     fi ;;
19631   [\\/]* | ?:[\\/]* )  # Absolute path.
19632     ac_srcdir=$srcdir$ac_dir_suffix;
19633     ac_top_srcdir=$srcdir ;;
19634   *) # Relative path.
19635     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19636     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19637 esac
19638 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19639 # absolute.
19640 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19641 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19642 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19643 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19644
19645
19646   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19647 echo "$as_me: executing $ac_dest commands" >&6;}
19648   case $ac_dest in
19649     check_win32_symlinks )
19650 # Links sometimes fail undetected on Mingw -
19651 # so here we detect it and warn the user
19652 for FILE in $CONFIG_LINKS
19653  do
19654         # test -e works for symlinks in the MinGW console
19655         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19656 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19657  done
19658  ;;
19659   esac
19660 done
19661 _ACEOF
19662
19663 cat >>$CONFIG_STATUS <<\_ACEOF
19664
19665 { (exit 0); exit 0; }
19666 _ACEOF
19667 chmod +x $CONFIG_STATUS
19668 ac_clean_files=$ac_clean_files_save
19669
19670
19671 # configure is writing to config.log, and then calls config.status.
19672 # config.status does its own redirection, appending to config.log.
19673 # Unfortunately, on DOS this fails, as config.log is still kept open
19674 # by configure, so config.status won't be able to write to it; its
19675 # output is simply discarded.  So we exec the FD to /dev/null,
19676 # effectively closing config.log, so it can be properly (re)opened and
19677 # appended to by config.status.  When coming back to configure, we
19678 # need to make the FD available again.
19679 if test "$no_create" != yes; then
19680   ac_cs_success=:
19681   exec 5>/dev/null
19682   $SHELL $CONFIG_STATUS || ac_cs_success=false
19683   exec 5>>config.log
19684   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19685   # would make configure fail if this is the last instruction.
19686   $ac_cs_success || { (exit 1); exit 1; }
19687 fi
19688
19689