]> granicus.if.org Git - postgresql/blob - configure
Move io.h include higher in the file so it doesn't conflict with
[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.0beta1.
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 2003 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.0beta1'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta1'
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_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures PostgreSQL 8.0.0beta1 to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 System types:
826   --build=BUILD     configure for building on BUILD [guessed]
827   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
828 _ACEOF
829 fi
830
831 if test -n "$ac_init_help"; then
832   case $ac_init_help in
833      short | recursive ) echo "Configuration of PostgreSQL 8.0.0beta1:";;
834    esac
835   cat <<\_ACEOF
836
837 Optional Features:
838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
840   --enable-integer-datetimes  enable 64-bit integer date/time support
841   --enable-nls[=LANGUAGES]  enable Native Language Support
842   --disable-shared        do not build shared libraries
843   --disable-rpath         do not embed shared library search path in executables
844   --disable-spinlocks     do not use spinlocks
845   --enable-debug          build with debugging symbols (-g)
846   --enable-depend         turn on automatic dependency tracking
847   --enable-cassert        enable assertion checks (for debugging)
848   --enable-thread-safety  make client libraries thread-safe
849   --enable-thread-safety-force  force thread-safety in spite of thread test failure
850   --disable-largefile     omit support for large files
851
852 Optional Packages:
853   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855
856   --with-docdir=DIR       install the documentation in DIR [PREFIX/doc]
857   --without-docdir        do not install the documentation
858   --with-includes=DIRS    look for additional header files in DIRS
859   --with-libraries=DIRS   look for additional libraries in DIRS
860   --with-libs=DIRS        alternative spelling of --with-libraries
861   --with-pgport=PORTNUM   change default port number 5432
862   --with-tcl              build Tcl and Tk interfaces
863   --with-tclconfig=DIR    tclConfig.sh is in DIR
864   --with-perl             build Perl modules (PL/Perl)
865   --with-python           build Python modules (PL/Python)
866   --with-krb4             build with Kerberos 4 support
867   --with-krb5             build with Kerberos 5 support
868   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]
869   --with-pam              build with PAM support
870   --with-rendezvous       build with Rendezvous support
871   --with-openssl          build with OpenSSL support
872   --without-readline      do not use Readline
873   --without-zlib          do not use Zlib
874   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884   DOCBOOKSTYLE
885               location of DocBook stylesheets
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 Report bugs to <pgsql-bugs@postgresql.org>.
891 _ACEOF
892 fi
893
894 if test "$ac_init_help" = "recursive"; then
895   # If there are subdirs, report their specific --help.
896   ac_popdir=`pwd`
897   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898     test -d $ac_dir || continue
899     ac_builddir=.
900
901 if test "$ac_dir" != .; then
902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903   # A "../" for each directory in $ac_dir_suffix.
904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906   ac_dir_suffix= ac_top_builddir=
907 fi
908
909 case $srcdir in
910   .)  # No --srcdir option.  We are building in place.
911     ac_srcdir=.
912     if test -z "$ac_top_builddir"; then
913        ac_top_srcdir=.
914     else
915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916     fi ;;
917   [\\/]* | ?:[\\/]* )  # Absolute path.
918     ac_srcdir=$srcdir$ac_dir_suffix;
919     ac_top_srcdir=$srcdir ;;
920   *) # Relative path.
921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953 PostgreSQL configure 8.0.0beta1
954 generated by GNU Autoconf 2.53
955
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960
961 Copyright 2003 PostgreSQL Global Development Group
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by PostgreSQL $as_me 8.0.0beta1, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252 ac_aux_dir=
1253 for ac_dir in config $srcdir/config; do
1254   if test -f $ac_dir/install-sh; then
1255     ac_aux_dir=$ac_dir
1256     ac_install_sh="$ac_aux_dir/install-sh -c"
1257     break
1258   elif test -f $ac_dir/install.sh; then
1259     ac_aux_dir=$ac_dir
1260     ac_install_sh="$ac_aux_dir/install.sh -c"
1261     break
1262   elif test -f $ac_dir/shtool; then
1263     ac_aux_dir=$ac_dir
1264     ac_install_sh="$ac_aux_dir/shtool install -c"
1265     break
1266   fi
1267 done
1268 if test -z "$ac_aux_dir"; then
1269   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1270 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1271    { (exit 1); exit 1; }; }
1272 fi
1273 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1274 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1275 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1276
1277
1278 configure_args=$ac_configure_args
1279
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PG_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1285
1286
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291    { (exit 1); exit 1; }; }
1292
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296   echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298   ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300   ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304    { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308    { (exit 1); exit 1; }; }
1309
1310 fi
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1313 build=$ac_cv_build
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1317
1318
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322   echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324   ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326   ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330    { (exit 1); exit 1; }; }
1331
1332 fi
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1335 host=$ac_cv_host
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341
1342 template=
1343 echo "$as_me:$LINENO: checking which template to use" >&5
1344 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1345
1346
1347
1348
1349 # Check whether --with-template or --without-template was given.
1350 if test "${with_template+set}" = set; then
1351   withval="$with_template"
1352
1353   case $withval in
1354     yes)
1355       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1356 echo "$as_me: error: argument required for --with-template option" >&2;}
1357    { (exit 1); exit 1; }; }
1358       ;;
1359     no)
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     *)
1365
1366   case $withval in
1367     list)   echo; ls "$srcdir/src/template"; exit;;
1368     *)      if test -f "$srcdir/src/template/$with_template" ; then
1369               template=$withval
1370             else
1371               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1372 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1373    { (exit 1); exit 1; }; }
1374             fi;;
1375   esac
1376
1377       ;;
1378   esac
1379
1380 else
1381
1382 # --with-template not given
1383
1384 case $host_os in
1385      aix*) template=aix ;;
1386     beos*) template=beos ;;
1387     bsdi*) template=bsdi ;;
1388   cygwin*) template=cygwin ;;
1389   darwin*) template=darwin ;;
1390     dgux*) template=dgux ;;
1391  freebsd*) template=freebsd ;;
1392     hpux*) template=hpux ;;
1393     irix*) template=irix ;;
1394    linux*) template=linux ;;
1395    mingw*) template=win32 ;;
1396   netbsd*) template=netbsd ;;
1397 nextstep*) template=nextstep ;;
1398  openbsd*) template=openbsd ;;
1399      osf*) template=osf ;;
1400      qnx*) template=qnx4 ;;
1401      sco*) template=sco ;;
1402  solaris*) template=solaris ;;
1403    sunos*) template=sunos4 ;;
1404  sysv4.2*)
1405         case $host_vendor in
1406           univel) template=univel ;;
1407         esac ;;
1408    sysv4*) template=svr4 ;;
1409    sysv5*) template=unixware ;;
1410   ultrix*) template=ultrix4 ;;
1411 esac
1412
1413   if test x"$template" = x"" ; then
1414     { { echo "$as_me:$LINENO: error:
1415 *******************************************************************
1416 PostgreSQL has apparently not been ported to your platform yet.
1417 To try a manual configuration, look into the src/template directory
1418 for a similar platform and use the '--with-template=' option.
1419
1420 Please also contact <pgsql-ports@postgresql.org> to see about
1421 rectifying this.  Include the above 'checking host system type...'
1422 line.
1423 *******************************************************************
1424 " >&5
1425 echo "$as_me: error:
1426 *******************************************************************
1427 PostgreSQL has apparently not been ported to your platform yet.
1428 To try a manual configuration, look into the src/template directory
1429 for a similar platform and use the '--with-template=' option.
1430
1431 Please also contact <pgsql-ports@postgresql.org> to see about
1432 rectifying this.  Include the above 'checking host system type...'
1433 line.
1434 *******************************************************************
1435 " >&2;}
1436    { (exit 1); exit 1; }; }
1437   fi
1438
1439
1440 fi;
1441
1442
1443 echo "$as_me:$LINENO: result: $template" >&5
1444 echo "${ECHO_T}$template" >&6
1445
1446 PORTNAME=$template
1447
1448
1449 # Initialize default assumption that we do not need separate assembly code
1450 # for TAS (test-and-set).  This can be overridden by the template file
1451 # when it's executed.
1452 need_tas=no
1453 tas_file=dummy.s
1454
1455
1456
1457 ##
1458 ## Command line options
1459 ##
1460
1461 #
1462 # Installation directory for documentation
1463 #
1464
1465
1466
1467 # Check whether --with-docdir or --without-docdir was given.
1468 if test "${with_docdir+set}" = set; then
1469   withval="$with_docdir"
1470
1471   case $withval in
1472     yes)
1473       { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1474 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1475    { (exit 1); exit 1; }; }
1476       ;;
1477     no)
1478       docdir=
1479       ;;
1480     *)
1481       docdir=$withval
1482       ;;
1483   esac
1484
1485 else
1486   docdir='${prefix}/doc'
1487 fi;
1488
1489
1490
1491
1492 #
1493 # Add non-standard directories to the include path
1494 #
1495
1496
1497
1498 # Check whether --with-includes or --without-includes was given.
1499 if test "${with_includes+set}" = set; then
1500   withval="$with_includes"
1501
1502   case $withval in
1503     yes)
1504       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1505 echo "$as_me: error: argument required for --with-includes option" >&2;}
1506    { (exit 1); exit 1; }; }
1507       ;;
1508     no)
1509       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511    { (exit 1); exit 1; }; }
1512       ;;
1513     *)
1514
1515       ;;
1516   esac
1517
1518 fi;
1519
1520
1521
1522 #
1523 # Add non-standard directories to the library search path
1524 #
1525
1526
1527
1528 # Check whether --with-libraries or --without-libraries was given.
1529 if test "${with_libraries+set}" = set; then
1530   withval="$with_libraries"
1531
1532   case $withval in
1533     yes)
1534       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1535 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1536    { (exit 1); exit 1; }; }
1537       ;;
1538     no)
1539       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541    { (exit 1); exit 1; }; }
1542       ;;
1543     *)
1544       LIBRARY_DIRS=$withval
1545       ;;
1546   esac
1547
1548 fi;
1549
1550
1551
1552
1553
1554 # Check whether --with-libs or --without-libs was given.
1555 if test "${with_libs+set}" = set; then
1556   withval="$with_libs"
1557
1558   case $withval in
1559     yes)
1560       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1561 echo "$as_me: error: argument required for --with-libs option" >&2;}
1562    { (exit 1); exit 1; }; }
1563       ;;
1564     no)
1565       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567    { (exit 1); exit 1; }; }
1568       ;;
1569     *)
1570       LIBRARY_DIRS=$withval
1571       ;;
1572   esac
1573
1574 fi;
1575
1576
1577
1578 #
1579 # 64-bit integer date/time storage (--enable-integer-datetimes)
1580 #
1581 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1582 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1583
1584
1585 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1586 if test "${enable_integer_datetimes+set}" = set; then
1587   enableval="$enable_integer_datetimes"
1588
1589   case $enableval in
1590     yes)
1591
1592 cat >>confdefs.h <<\_ACEOF
1593 #define USE_INTEGER_DATETIMES 1
1594 _ACEOF
1595
1596       ;;
1597     no)
1598       :
1599       ;;
1600     *)
1601       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1602 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1603    { (exit 1); exit 1; }; }
1604       ;;
1605   esac
1606
1607 else
1608   enable_integer_datetimes=no
1609
1610 fi;
1611
1612 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1613 echo "${ECHO_T}$enable_integer_datetimes" >&6
1614
1615
1616 #
1617 # NLS
1618 #
1619 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1620 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-nls or --disable-nls was given.
1624 if test "${enable_nls+set}" = set; then
1625   enableval="$enable_nls"
1626
1627   case $enableval in
1628     yes)
1629       :
1630       ;;
1631     no)
1632       :
1633       ;;
1634     *)
1635       enable_nls=yes
1636 WANTED_LANGUAGES=$enableval
1637       ;;
1638   esac
1639
1640 else
1641   enable_nls=no
1642 fi;
1643
1644
1645 if test "$enable_nls" = yes; then
1646
1647 cat >>confdefs.h <<\_ACEOF
1648 #define ENABLE_NLS 1
1649 _ACEOF
1650
1651 fi
1652
1653 echo "$as_me:$LINENO: result: $enable_nls" >&5
1654 echo "${ECHO_T}$enable_nls" >&6
1655
1656
1657
1658 #
1659 # Default port number (--with-pgport), default 5432
1660 #
1661 echo "$as_me:$LINENO: checking for default port number" >&5
1662 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1663
1664
1665
1666 # Check whether --with-pgport or --without-pgport was given.
1667 if test "${with_pgport+set}" = set; then
1668   withval="$with_pgport"
1669
1670   case $withval in
1671     yes)
1672       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1673 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1674    { (exit 1); exit 1; }; }
1675       ;;
1676     no)
1677       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679    { (exit 1); exit 1; }; }
1680       ;;
1681     *)
1682       default_port=$withval
1683       ;;
1684   esac
1685
1686 else
1687   default_port=5432
1688 fi;
1689
1690 echo "$as_me:$LINENO: result: $default_port" >&5
1691 echo "${ECHO_T}$default_port" >&6
1692 # Need both of these because some places want an integer and some a string
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define DEF_PGPORT ${default_port}
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT_STR "${default_port}"
1701 _ACEOF
1702
1703
1704
1705 #
1706 # Option to disable shared libraries
1707 #
1708
1709
1710 # Check whether --enable-shared or --disable-shared was given.
1711 if test "${enable_shared+set}" = set; then
1712   enableval="$enable_shared"
1713
1714   case $enableval in
1715     yes)
1716       :
1717       ;;
1718     no)
1719       :
1720       ;;
1721     *)
1722       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1723 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1724    { (exit 1); exit 1; }; }
1725       ;;
1726   esac
1727
1728 else
1729   enable_shared=yes
1730
1731 fi;
1732
1733
1734
1735 #
1736 # '-rpath'-like feature can be disabled
1737 #
1738
1739
1740 # Check whether --enable-rpath or --disable-rpath was given.
1741 if test "${enable_rpath+set}" = set; then
1742   enableval="$enable_rpath"
1743
1744   case $enableval in
1745     yes)
1746       :
1747       ;;
1748     no)
1749       :
1750       ;;
1751     *)
1752       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1753 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1754    { (exit 1); exit 1; }; }
1755       ;;
1756   esac
1757
1758 else
1759   enable_rpath=yes
1760
1761 fi;
1762
1763
1764
1765 #
1766 # Spinlocks
1767 #
1768
1769
1770 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1771 if test "${enable_spinlocks+set}" = set; then
1772   enableval="$enable_spinlocks"
1773
1774   case $enableval in
1775     yes)
1776       :
1777       ;;
1778     no)
1779       :
1780       ;;
1781     *)
1782       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1783 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1784    { (exit 1); exit 1; }; }
1785       ;;
1786   esac
1787
1788 else
1789   enable_spinlocks=yes
1790
1791 fi;
1792
1793
1794 #
1795 # --enable-debug adds -g to compiler flags
1796 #
1797
1798
1799 # Check whether --enable-debug or --disable-debug was given.
1800 if test "${enable_debug+set}" = set; then
1801   enableval="$enable_debug"
1802
1803   case $enableval in
1804     yes)
1805       :
1806       ;;
1807     no)
1808       :
1809       ;;
1810     *)
1811       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1812 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1813    { (exit 1); exit 1; }; }
1814       ;;
1815   esac
1816
1817 else
1818   enable_debug=no
1819
1820 fi;
1821
1822
1823
1824 #
1825 # C compiler
1826 #
1827
1828 # For historical reasons you can also use --with-CC to specify the C compiler
1829 # to use, although the standard way to do this is to set the CC environment
1830 # variable.
1831
1832
1833
1834 # Check whether --with-CC or --without-CC was given.
1835 if test "${with_CC+set}" = set; then
1836   withval="$with_CC"
1837
1838   case $withval in
1839     yes)
1840       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1841 echo "$as_me: error: argument required for --with-CC option" >&2;}
1842    { (exit 1); exit 1; }; }
1843       ;;
1844     no)
1845       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847    { (exit 1); exit 1; }; }
1848       ;;
1849     *)
1850       CC=$with_CC
1851       ;;
1852   esac
1853
1854 fi;
1855
1856
1857 case $template in
1858   aix) pgac_cc_list="gcc xlc";;
1859  irix) pgac_cc_list="cc";; # no gcc
1860     *) pgac_cc_list="gcc cc";;
1861 esac
1862
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869   for ac_prog in $pgac_cc_list
1870   do
1871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$CC"; then
1879   ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899   echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906     test -n "$CC" && break
1907   done
1908 fi
1909 if test -z "$CC"; then
1910   ac_ct_CC=$CC
1911   for ac_prog in $pgac_cc_list
1912 do
1913   # Extract the first word of "$ac_prog", so it can be a program name with args.
1914 set dummy $ac_prog; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$ac_ct_CC"; then
1921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_ac_ct_CC="$ac_prog"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948   test -n "$ac_ct_CC" && break
1949 done
1950
1951   CC=$ac_ct_CC
1952 fi
1953
1954
1955 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1956 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1957    { (exit 1); exit 1; }; }
1958
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961      "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964   (eval $ac_compiler --version </dev/null >&5) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969   (eval $ac_compiler -v </dev/null >&5) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974   (eval $ac_compiler -V </dev/null >&5) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }
1978
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line $LINENO "configure"
1981 #include "confdefs.h"
1982
1983 #ifdef F77_DUMMY_MAIN
1984 #  ifdef __cplusplus
1985      extern "C"
1986 #  endif
1987    int F77_DUMMY_MAIN() { return 1; }
1988 #endif
1989 int
1990 main ()
1991 {
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 ac_clean_files_save=$ac_clean_files
1998 ac_clean_files="$ac_clean_files a.out a.exe"
1999 # Try to create an executable without -o first, disregard a.out.
2000 # It will help us diagnose broken compilers, and finding out an intuition
2001 # of exeext.
2002 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2003 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2004 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2005 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2006   (eval $ac_link_default) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; then
2010   # Find the output, starting from the most likely.  This scheme is
2011 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2012 # resort.
2013
2014 # Be careful to initialize this variable, since it used to be cached.
2015 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2016 ac_cv_exeext=
2017 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2018                 ls a.out conftest 2>/dev/null;
2019                 ls a.* conftest.* 2>/dev/null`; do
2020   case $ac_file in
2021     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2022     a.out ) # We found the default executable, but exeext='' is most
2023             # certainly right.
2024             break;;
2025     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2027           export ac_cv_exeext
2028           break;;
2029     * ) break;;
2030   esac
2031 done
2032 else
2033   echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2036 echo "$as_me: error: C compiler cannot create executables" >&2;}
2037    { (exit 77); exit 77; }; }
2038 fi
2039
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2043
2044 # Check the compiler produces executables we can run.  If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051   if { ac_try='./$ac_file'
2052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053   (eval $ac_try) 2>&5
2054   ac_status=$?
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); }; }; then
2057     cross_compiling=no
2058   else
2059     if test "$cross_compiling" = maybe; then
2060         cross_compiling=yes
2061     else
2062         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'." >&5
2064 echo "$as_me: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&2;}
2066    { (exit 1); exit 1; }; }
2067     fi
2068   fi
2069 fi
2070 echo "$as_me:$LINENO: result: yes" >&5
2071 echo "${ECHO_T}yes" >&6
2072
2073 rm -f a.out a.exe conftest$ac_cv_exeext
2074 ac_clean_files=$ac_clean_files_save
2075 # Check the compiler produces executables we can run.  If not, either
2076 # the compiler is broken, or we cross compile.
2077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2080 echo "${ECHO_T}$cross_compiling" >&6
2081
2082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2085   (eval $ac_link) 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }; then
2089   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2090 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2091 # work properly (i.e., refer to `conftest.exe'), while it won't with
2092 # `rm'.
2093 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2094   case $ac_file in
2095     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2096     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097           export ac_cv_exeext
2098           break;;
2099     * ) break;;
2100   esac
2101 done
2102 else
2103   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2111
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2114 ac_exeext=$EXEEXT
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 #include "confdefs.h"
2123
2124 #ifdef F77_DUMMY_MAIN
2125 #  ifdef __cplusplus
2126      extern "C"
2127 #  endif
2128    int F77_DUMMY_MAIN() { return 1; }
2129 #endif
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.o conftest.obj
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; then
2144   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145   case $ac_file in
2146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2147     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2148        break;;
2149   esac
2150 done
2151 else
2152   echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2173
2174 #ifdef F77_DUMMY_MAIN
2175 #  ifdef __cplusplus
2176      extern "C"
2177 #  endif
2178    int F77_DUMMY_MAIN() { return 1; }
2179 #endif
2180 int
2181 main ()
2182 {
2183 #ifndef __GNUC__
2184        choke me
2185 #endif
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -s conftest.$ac_objext'
2198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199   (eval $ac_try) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; }; then
2203   ac_compiler_gnu=yes
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 ac_compiler_gnu=no
2208 fi
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2211
2212 fi
2213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2215 GCC=`test $ac_compiler_gnu = yes && echo yes`
2216 ac_test_CFLAGS=${CFLAGS+set}
2217 ac_save_CFLAGS=$CFLAGS
2218 CFLAGS="-g"
2219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2221 if test "${ac_cv_prog_cc_g+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2227
2228 #ifdef F77_DUMMY_MAIN
2229 #  ifdef __cplusplus
2230      extern "C"
2231 #  endif
2232    int F77_DUMMY_MAIN() { return 1; }
2233 #endif
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); } &&
2248          { ac_try='test -s conftest.$ac_objext'
2249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250   (eval $ac_try) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; }; then
2254   ac_cv_prog_cc_g=yes
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 ac_cv_prog_cc_g=no
2259 fi
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265   CFLAGS=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267   if test "$GCC" = yes; then
2268     CFLAGS="-g -O2"
2269   else
2270     CFLAGS="-g"
2271   fi
2272 else
2273   if test "$GCC" = yes; then
2274     CFLAGS="-O2"
2275   else
2276     CFLAGS=
2277   fi
2278 fi
2279 # Some people use a C++ compiler to compile C.  Since we use `exit',
2280 # in C++ we need to declare it.  In case someone uses the same compiler
2281 # for both compiling C and C++ we need to have the C++ compiler decide
2282 # the declaration of exit, since it's the most demanding environment.
2283 cat >conftest.$ac_ext <<_ACEOF
2284 #ifndef __cplusplus
2285   choke me
2286 #endif
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   (eval $ac_compile) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); } &&
2294          { ac_try='test -s conftest.$ac_objext'
2295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296   (eval $ac_try) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; }; then
2300   for ac_declaration in \
2301    ''\
2302    '#include <stdlib.h>' \
2303    'extern "C" void std::exit (int) throw (); using std::exit;' \
2304    'extern "C" void std::exit (int); using std::exit;' \
2305    'extern "C" void exit (int) throw ();' \
2306    'extern "C" void exit (int);' \
2307    'void exit (int);'
2308 do
2309   cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2312 #include <stdlib.h>
2313 $ac_declaration
2314 #ifdef F77_DUMMY_MAIN
2315 #  ifdef __cplusplus
2316      extern "C"
2317 #  endif
2318    int F77_DUMMY_MAIN() { return 1; }
2319 #endif
2320 int
2321 main ()
2322 {
2323 exit (42);
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); } &&
2334          { ac_try='test -s conftest.$ac_objext'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; }; then
2340   :
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 continue
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347   cat >conftest.$ac_ext <<_ACEOF
2348 #line $LINENO "configure"
2349 #include "confdefs.h"
2350 $ac_declaration
2351 #ifdef F77_DUMMY_MAIN
2352 #  ifdef __cplusplus
2353      extern "C"
2354 #  endif
2355    int F77_DUMMY_MAIN() { return 1; }
2356 #endif
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   break
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 fi
2382 rm -f conftest.$ac_objext conftest.$ac_ext
2383 done
2384 rm -f conftest*
2385 if test -n "$ac_declaration"; then
2386   echo '#ifdef __cplusplus' >>confdefs.h
2387   echo $ac_declaration      >>confdefs.h
2388   echo '#endif'             >>confdefs.h
2389 fi
2390
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 fi
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403 unset CFLAGS
2404
2405 #
2406 # Read the template
2407 #
2408 . "$srcdir/src/template/$template" || exit
2409
2410 # CFLAGS are selected so:
2411 # If the user specifies something in the environment, that is used.
2412 # else:  If the template file set something, that is used.
2413 # else:  If the compiler is GCC, then we use -O2.
2414 # else:  If the compiler is something else, then we use -0.
2415
2416 if test "$ac_env_CFLAGS_set" = set; then
2417   CFLAGS=$ac_env_CFLAGS_value
2418 elif test "${CFLAGS+set}" = set; then
2419   : # (keep what template set)
2420 elif test "$GCC" = yes; then
2421   CFLAGS="-O2"
2422 else
2423   # if the user selected debug mode, don't use -O
2424   if test "$enable_debug" != yes; then
2425     CFLAGS="-O"
2426   fi
2427 fi
2428
2429 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2430 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2431 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2432 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   pgac_save_CFLAGS=$CFLAGS
2436 if test "$GCC" = yes; then
2437   pgac_try="-fno-strict-aliasing"
2438 else
2439   # Maybe fill in later...
2440   pgac_try=
2441 fi
2442
2443 for pgac_flag in $pgac_try; do
2444   CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2445   cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2448
2449 #ifdef F77_DUMMY_MAIN
2450 #  ifdef __cplusplus
2451      extern "C"
2452 #  endif
2453    int F77_DUMMY_MAIN() { return 1; }
2454 #endif
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465   (eval $ac_compile) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2476 break
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 fi
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2482 done
2483
2484 CFLAGS=$pgac_save_CFLAGS
2485
2486 fi
2487 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2488 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2489
2490 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2491   CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2492 fi
2493
2494 # supply -g if --enable-debug
2495 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2496   CFLAGS="$CFLAGS -g"
2497 fi
2498
2499 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2500 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2501
2502 # We already have this in Makefile.win32, but configure needs it too
2503 if test "$PORTNAME" = "win32"; then
2504   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2505 fi
2506
2507 # Check if the compiler still works with the template settings
2508 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2509 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2510
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2514
2515 #ifdef F77_DUMMY_MAIN
2516 #  ifdef __cplusplus
2517      extern "C"
2518 #  endif
2519    int F77_DUMMY_MAIN() { return 1; }
2520 #endif
2521 int
2522 main ()
2523 {
2524 return 0;
2525   ;
2526   return 0;
2527 }
2528 _ACEOF
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531   (eval $ac_link) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -s conftest$ac_exeext'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2549 echo "$as_me: error: cannot proceed" >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2553
2554 # Defend against gcc -ffast-math
2555 if test "$GCC" = yes; then
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2559
2560 #ifdef F77_DUMMY_MAIN
2561 #  ifdef __cplusplus
2562      extern "C"
2563 #  endif
2564    int F77_DUMMY_MAIN() { return 1; }
2565 #endif
2566 int
2567 main ()
2568 {
2569 #ifdef __FAST_MATH__
2570 choke me
2571 #endif
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   :
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2593 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2594    { (exit 1); exit 1; }; }
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 fi
2598
2599 ac_ext=c
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2605 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2606 # On Suns, sometimes $CPP names a directory.
2607 if test -n "$CPP" && test -d "$CPP"; then
2608   CPP=
2609 fi
2610 if test -z "$CPP"; then
2611   if test "${ac_cv_prog_CPP+set}" = set; then
2612   echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614       # Double quotes because CPP needs to be expanded
2615     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2616     do
2617       ac_preproc_ok=false
2618 for ac_c_preproc_warn_flag in '' yes
2619 do
2620   # Use a header file that comes with gcc, so configuring glibc
2621   # with a fresh cross-compiler works.
2622   # On the NeXT, cc -E runs the code through the compiler's parser,
2623   # not just through cpp. "Syntax error" is here to catch this case.
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 #include "confdefs.h"
2627 #include <assert.h>
2628                      Syntax error
2629 _ACEOF
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632   ac_status=$?
2633   egrep -v '^ *\+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } >/dev/null; then
2638   if test -s conftest.err; then
2639     ac_cpp_err=$ac_c_preproc_warn_flag
2640   else
2641     ac_cpp_err=
2642   fi
2643 else
2644   ac_cpp_err=yes
2645 fi
2646 if test -z "$ac_cpp_err"; then
2647   :
2648 else
2649   echo "$as_me: failed program was:" >&5
2650   cat conftest.$ac_ext >&5
2651   # Broken: fails on valid input.
2652 continue
2653 fi
2654 rm -f conftest.err conftest.$ac_ext
2655
2656   # OK, works on sane cases.  Now check whether non-existent headers
2657   # can be detected and how.
2658   cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 #include "confdefs.h"
2661 #include <ac_nonexistent.h>
2662 _ACEOF
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665   ac_status=$?
2666   egrep -v '^ *\+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } >/dev/null; then
2671   if test -s conftest.err; then
2672     ac_cpp_err=$ac_c_preproc_warn_flag
2673   else
2674     ac_cpp_err=
2675   fi
2676 else
2677   ac_cpp_err=yes
2678 fi
2679 if test -z "$ac_cpp_err"; then
2680   # Broken: success on invalid input.
2681 continue
2682 else
2683   echo "$as_me: failed program was:" >&5
2684   cat conftest.$ac_ext >&5
2685   # Passes both tests.
2686 ac_preproc_ok=:
2687 break
2688 fi
2689 rm -f conftest.err conftest.$ac_ext
2690
2691 done
2692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2693 rm -f conftest.err conftest.$ac_ext
2694 if $ac_preproc_ok; then
2695   break
2696 fi
2697
2698     done
2699     ac_cv_prog_CPP=$CPP
2700
2701 fi
2702   CPP=$ac_cv_prog_CPP
2703 else
2704   ac_cv_prog_CPP=$CPP
2705 fi
2706 echo "$as_me:$LINENO: result: $CPP" >&5
2707 echo "${ECHO_T}$CPP" >&6
2708 ac_preproc_ok=false
2709 for ac_c_preproc_warn_flag in '' yes
2710 do
2711   # Use a header file that comes with gcc, so configuring glibc
2712   # with a fresh cross-compiler works.
2713   # On the NeXT, cc -E runs the code through the compiler's parser,
2714   # not just through cpp. "Syntax error" is here to catch this case.
2715   cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2717 #include "confdefs.h"
2718 #include <assert.h>
2719                      Syntax error
2720 _ACEOF
2721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723   ac_status=$?
2724   egrep -v '^ *\+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } >/dev/null; then
2729   if test -s conftest.err; then
2730     ac_cpp_err=$ac_c_preproc_warn_flag
2731   else
2732     ac_cpp_err=
2733   fi
2734 else
2735   ac_cpp_err=yes
2736 fi
2737 if test -z "$ac_cpp_err"; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741   cat conftest.$ac_ext >&5
2742   # Broken: fails on valid input.
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_ext
2746
2747   # OK, works on sane cases.  Now check whether non-existent headers
2748   # can be detected and how.
2749   cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <ac_nonexistent.h>
2753 _ACEOF
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756   ac_status=$?
2757   egrep -v '^ *\+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } >/dev/null; then
2762   if test -s conftest.err; then
2763     ac_cpp_err=$ac_c_preproc_warn_flag
2764   else
2765     ac_cpp_err=
2766   fi
2767 else
2768   ac_cpp_err=yes
2769 fi
2770 if test -z "$ac_cpp_err"; then
2771   # Broken: success on invalid input.
2772 continue
2773 else
2774   echo "$as_me: failed program was:" >&5
2775   cat conftest.$ac_ext >&5
2776   # Passes both tests.
2777 ac_preproc_ok=:
2778 break
2779 fi
2780 rm -f conftest.err conftest.$ac_ext
2781
2782 done
2783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2784 rm -f conftest.err conftest.$ac_ext
2785 if $ac_preproc_ok; then
2786   :
2787 else
2788   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2790    { (exit 1); exit 1; }; }
2791 fi
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799
2800
2801 # Create compiler version string
2802 if test x"$GCC" = x"yes" ; then
2803   cc_string="GCC `${CC} --version | sed q`"
2804 else
2805   cc_string=$CC
2806 fi
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2810 _ACEOF
2811
2812
2813
2814 #
2815 # Set up TAS assembly code if needed; the template file has now had its
2816 # chance to request this.
2817 #
2818 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2819
2820
2821 if test "$need_tas" = yes ; then
2822   TAS=tas.o
2823 else
2824   TAS=""
2825 fi
2826
2827
2828
2829 #
2830 # Automatic dependency tracking
2831 #
2832
2833
2834 # Check whether --enable-depend or --disable-depend was given.
2835 if test "${enable_depend+set}" = set; then
2836   enableval="$enable_depend"
2837
2838   case $enableval in
2839     yes)
2840       autodepend=yes
2841       ;;
2842     no)
2843       :
2844       ;;
2845     *)
2846       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2847 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2848    { (exit 1); exit 1; }; }
2849       ;;
2850   esac
2851
2852 else
2853   enable_depend=no
2854
2855 fi;
2856
2857
2858
2859
2860 #
2861 # Enable assert checks
2862 #
2863
2864
2865 # Check whether --enable-cassert or --disable-cassert was given.
2866 if test "${enable_cassert+set}" = set; then
2867   enableval="$enable_cassert"
2868
2869   case $enableval in
2870     yes)
2871
2872 cat >>confdefs.h <<\_ACEOF
2873 #define USE_ASSERT_CHECKING 1
2874 _ACEOF
2875
2876       ;;
2877     no)
2878       :
2879       ;;
2880     *)
2881       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2882 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2883    { (exit 1); exit 1; }; }
2884       ;;
2885   esac
2886
2887 else
2888   enable_cassert=no
2889
2890 fi;
2891
2892
2893
2894 #
2895 # Include directories
2896 #
2897 ac_save_IFS=$IFS
2898 IFS="${IFS}:"
2899 # SRCH_INC comes from the template file
2900 for dir in $with_includes $SRCH_INC; do
2901   if test -d "$dir"; then
2902     INCLUDES="$INCLUDES -I$dir"
2903   else
2904     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2905 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2906   fi
2907 done
2908 IFS=$ac_save_IFS
2909
2910
2911
2912 #
2913 # Library directories
2914 #
2915 ac_save_IFS=$IFS
2916 IFS="${IFS}:"
2917 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2918 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2919   if test -d "$dir"; then
2920     LIBDIRS="$LIBDIRS -L$dir"
2921   else
2922     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2923 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2924   fi
2925 done
2926 IFS=$ac_save_IFS
2927
2928 #
2929 # Enable thread-safe client libraries
2930 #
2931 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2932 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2933
2934
2935 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2936 if test "${enable_thread_safety+set}" = set; then
2937   enableval="$enable_thread_safety"
2938
2939   case $enableval in
2940     yes)
2941       :
2942       ;;
2943     no)
2944       :
2945       ;;
2946     *)
2947       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2948 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2949    { (exit 1); exit 1; }; }
2950       ;;
2951   esac
2952
2953 else
2954   enable_thread_safety=no
2955
2956 fi;
2957
2958
2959
2960 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
2961 if test "${enable_thread_safety_force+set}" = set; then
2962   enableval="$enable_thread_safety_force"
2963
2964   case $enableval in
2965     yes)
2966       :
2967       ;;
2968     no)
2969       :
2970       ;;
2971     *)
2972       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
2973 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
2974    { (exit 1); exit 1; }; }
2975       ;;
2976   esac
2977
2978 else
2979   enable_thread_safety_force=no
2980
2981 fi;
2982
2983 if test "$enable_thread_safety" = yes -o \
2984         "$enable_thread_safety_force" = yes; then
2985   enable_thread_safety="yes"    # for 'force'
2986
2987 cat >>confdefs.h <<\_ACEOF
2988 #define ENABLE_THREAD_SAFETY 1
2989 _ACEOF
2990
2991 fi
2992 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2993 echo "${ECHO_T}$enable_thread_safety" >&6
2994
2995
2996 #
2997 # Tcl/Tk
2998 #
2999 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3000 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3001
3002
3003
3004 # Check whether --with-tcl or --without-tcl was given.
3005 if test "${with_tcl+set}" = set; then
3006   withval="$with_tcl"
3007
3008   case $withval in
3009     yes)
3010       :
3011       ;;
3012     no)
3013       :
3014       ;;
3015     *)
3016       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3017 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3018    { (exit 1); exit 1; }; }
3019       ;;
3020   esac
3021
3022 else
3023   with_tcl=no
3024
3025 fi;
3026
3027 echo "$as_me:$LINENO: result: $with_tcl" >&5
3028 echo "${ECHO_T}$with_tcl" >&6
3029
3030
3031 # We see if the path to the Tcl/Tk configuration scripts is specified.
3032 # This will override the use of tclsh to find the paths to search.
3033
3034
3035
3036
3037 # Check whether --with-tclconfig or --without-tclconfig was given.
3038 if test "${with_tclconfig+set}" = set; then
3039   withval="$with_tclconfig"
3040
3041   case $withval in
3042     yes)
3043       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3044 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3045    { (exit 1); exit 1; }; }
3046       ;;
3047     no)
3048       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3049 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3050    { (exit 1); exit 1; }; }
3051       ;;
3052     *)
3053
3054       ;;
3055   esac
3056
3057 fi;
3058
3059
3060 #
3061 # Optionally build Perl modules (PL/Perl)
3062 #
3063 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3064 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3065
3066
3067
3068 # Check whether --with-perl or --without-perl was given.
3069 if test "${with_perl+set}" = set; then
3070   withval="$with_perl"
3071
3072   case $withval in
3073     yes)
3074       :
3075       ;;
3076     no)
3077       :
3078       ;;
3079     *)
3080       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3081 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3082    { (exit 1); exit 1; }; }
3083       ;;
3084   esac
3085
3086 else
3087   with_perl=no
3088
3089 fi;
3090
3091 echo "$as_me:$LINENO: result: $with_perl" >&5
3092 echo "${ECHO_T}$with_perl" >&6
3093
3094
3095 #
3096 # Optionally build Python modules (PL/Python)
3097 #
3098 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3099 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3100
3101
3102
3103 # Check whether --with-python or --without-python was given.
3104 if test "${with_python+set}" = set; then
3105   withval="$with_python"
3106
3107   case $withval in
3108     yes)
3109       :
3110       ;;
3111     no)
3112       :
3113       ;;
3114     *)
3115       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3116 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3117    { (exit 1); exit 1; }; }
3118       ;;
3119   esac
3120
3121 else
3122   with_python=no
3123
3124 fi;
3125
3126 echo "$as_me:$LINENO: result: $with_python" >&5
3127 echo "${ECHO_T}$with_python" >&6
3128
3129
3130 #
3131 # Kerberos 4
3132 #
3133 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3134 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3135
3136
3137
3138 # Check whether --with-krb4 or --without-krb4 was given.
3139 if test "${with_krb4+set}" = set; then
3140   withval="$with_krb4"
3141
3142   case $withval in
3143     yes)
3144
3145
3146 cat >>confdefs.h <<\_ACEOF
3147 #define KRB4 1
3148 _ACEOF
3149
3150   krb_srvtab="/etc/srvtab"
3151
3152       ;;
3153     no)
3154       :
3155       ;;
3156     *)
3157       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3158 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3159    { (exit 1); exit 1; }; }
3160       ;;
3161   esac
3162
3163 else
3164   with_krb4=no
3165
3166 fi;
3167
3168 echo "$as_me:$LINENO: result: $with_krb4" >&5
3169 echo "${ECHO_T}$with_krb4" >&6
3170
3171
3172
3173 #
3174 # Kerberos 5
3175 #
3176 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3177 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3178
3179
3180
3181 # Check whether --with-krb5 or --without-krb5 was given.
3182 if test "${with_krb5+set}" = set; then
3183   withval="$with_krb5"
3184
3185   case $withval in
3186     yes)
3187
3188
3189 cat >>confdefs.h <<\_ACEOF
3190 #define KRB5 1
3191 _ACEOF
3192
3193   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3194
3195       ;;
3196     no)
3197       :
3198       ;;
3199     *)
3200       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3201 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3202    { (exit 1); exit 1; }; }
3203       ;;
3204   esac
3205
3206 else
3207   with_krb5=no
3208
3209 fi;
3210
3211 echo "$as_me:$LINENO: result: $with_krb5" >&5
3212 echo "${ECHO_T}$with_krb5" >&6
3213
3214
3215
3216 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3217 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3218   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3219 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3220    { (exit 1); exit 1; }; }
3221 fi
3222
3223
3224
3225
3226 #
3227 # Kerberos configuration parameters
3228 #
3229
3230
3231
3232 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3233 if test "${with_krb_srvnam+set}" = set; then
3234   withval="$with_krb_srvnam"
3235
3236   case $withval in
3237     yes)
3238       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3239 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3240    { (exit 1); exit 1; }; }
3241       ;;
3242     no)
3243       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3244 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3245    { (exit 1); exit 1; }; }
3246       ;;
3247     *)
3248
3249       ;;
3250   esac
3251
3252 else
3253   with_krb_srvnam="postgres"
3254 fi;
3255
3256
3257 cat >>confdefs.h <<_ACEOF
3258 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3259 _ACEOF
3260
3261
3262
3263 #
3264 # PAM
3265 #
3266 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3267 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3268
3269
3270
3271 # Check whether --with-pam or --without-pam was given.
3272 if test "${with_pam+set}" = set; then
3273   withval="$with_pam"
3274
3275   case $withval in
3276     yes)
3277
3278 cat >>confdefs.h <<\_ACEOF
3279 #define USE_PAM 1
3280 _ACEOF
3281
3282       ;;
3283     no)
3284       :
3285       ;;
3286     *)
3287       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3288 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3289    { (exit 1); exit 1; }; }
3290       ;;
3291   esac
3292
3293 else
3294   with_pam=no
3295
3296 fi;
3297
3298 echo "$as_me:$LINENO: result: $with_pam" >&5
3299 echo "${ECHO_T}$with_pam" >&6
3300
3301
3302
3303 #
3304 # Rendezvous
3305 #
3306 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3307 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3308
3309
3310
3311 # Check whether --with-rendezvous or --without-rendezvous was given.
3312 if test "${with_rendezvous+set}" = set; then
3313   withval="$with_rendezvous"
3314
3315   case $withval in
3316     yes)
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define USE_RENDEZVOUS 1
3320 _ACEOF
3321
3322       ;;
3323     no)
3324       :
3325       ;;
3326     *)
3327       { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3328 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3329    { (exit 1); exit 1; }; }
3330       ;;
3331   esac
3332
3333 else
3334   with_rendezvous=no
3335
3336 fi;
3337
3338 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3339 echo "${ECHO_T}$with_rendezvous" >&6
3340
3341
3342
3343 #
3344 # OpenSSL
3345 #
3346 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3347 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3348
3349
3350
3351 # Check whether --with-openssl or --without-openssl was given.
3352 if test "${with_openssl+set}" = set; then
3353   withval="$with_openssl"
3354
3355   case $withval in
3356     yes)
3357
3358 cat >>confdefs.h <<\_ACEOF
3359 #define USE_SSL 1
3360 _ACEOF
3361
3362       ;;
3363     no)
3364       :
3365       ;;
3366     *)
3367       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3368 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3369    { (exit 1); exit 1; }; }
3370       ;;
3371   esac
3372
3373 else
3374   with_openssl=no
3375
3376 fi;
3377
3378 echo "$as_me:$LINENO: result: $with_openssl" >&5
3379 echo "${ECHO_T}$with_openssl" >&6
3380
3381
3382
3383 #
3384 # Readline
3385 #
3386
3387
3388
3389 # Check whether --with-readline or --without-readline was given.
3390 if test "${with_readline+set}" = set; then
3391   withval="$with_readline"
3392
3393   case $withval in
3394     yes)
3395       :
3396       ;;
3397     no)
3398       :
3399       ;;
3400     *)
3401       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3402 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3403    { (exit 1); exit 1; }; }
3404       ;;
3405   esac
3406
3407 else
3408   with_readline=yes
3409
3410 fi;
3411
3412 # readline on MinGW has problems with backslashes in psql and other bugs.
3413 # This is particularly a problem with non-US code pages.
3414 # Therefore disable its use until we understand the cause. 2004-07-20
3415 case $host_os in mingw*)
3416   if test "$with_readline" = yes; then
3417     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3418 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3419     with_readline=no
3420   fi;;
3421 esac
3422
3423
3424 #
3425 # Zlib
3426 #
3427
3428
3429
3430 # Check whether --with-zlib or --without-zlib was given.
3431 if test "${with_zlib+set}" = set; then
3432   withval="$with_zlib"
3433
3434   case $withval in
3435     yes)
3436       :
3437       ;;
3438     no)
3439       :
3440       ;;
3441     *)
3442       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3443 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3444    { (exit 1); exit 1; }; }
3445       ;;
3446   esac
3447
3448 else
3449   with_zlib=yes
3450
3451 fi;
3452
3453
3454 #
3455 # Elf
3456 #
3457
3458 # Assume system is ELF if it predefines __ELF__ as 1,
3459 # otherwise believe host_os based default.
3460 case $host_os in
3461     freebsd1*|freebsd2*) elf=no;;
3462     freebsd3*|freebsd4*) elf=yes;;
3463 esac
3464
3465
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3469 #if __ELF__
3470   yes
3471 #endif
3472
3473 _ACEOF
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475   egrep "yes" >/dev/null 2>&1; then
3476   ELF_SYS=true
3477 else
3478   if test "X$elf" = "Xyes" ; then
3479   ELF_SYS=true
3480 else
3481   ELF_SYS=
3482 fi
3483 fi
3484 rm -f conftest*
3485
3486
3487
3488 #
3489 # Assignments
3490 #
3491
3492 CPPFLAGS="$CPPFLAGS $INCLUDES"
3493 LDFLAGS="$LDFLAGS $LIBDIRS"
3494
3495 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3496 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3497 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3498 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3499
3500
3501 for ac_prog in gawk mawk nawk awk
3502 do
3503   # Extract the first word of "$ac_prog", so it can be a program name with args.
3504 set dummy $ac_prog; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AWK+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -n "$AWK"; then
3511   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518   for ac_exec_ext in '' $ac_executable_extensions; do
3519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_AWK="$ac_prog"
3521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525 done
3526
3527 fi
3528 fi
3529 AWK=$ac_cv_prog_AWK
3530 if test -n "$AWK"; then
3531   echo "$as_me:$LINENO: result: $AWK" >&5
3532 echo "${ECHO_T}$AWK" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538   test -n "$AWK" && break
3539 done
3540
3541 echo "$as_me:$LINENO: checking for flex" >&5
3542 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3543 if test "${pgac_cv_path_flex+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # Let the user override the test
3547 if test -n "$FLEX"; then
3548   pgac_cv_path_flex=$FLEX
3549 else
3550   pgac_save_IFS=$IFS
3551   IFS=:
3552   for pgac_dir in $PATH; do
3553     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3554       pgac_dir=`pwd`
3555     fi
3556     for pgac_prog in flex lex; do
3557       pgac_candidate="$pgac_dir/$pgac_prog"
3558       if test -f "$pgac_candidate" \
3559         && $pgac_candidate --version </dev/null >/dev/null 2>&1
3560       then
3561         echo '%%'  > conftest.l
3562         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3563           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3564             pgac_broken_flex=$pgac_candidate
3565             continue
3566           fi
3567
3568           pgac_cv_path_flex=$pgac_candidate
3569           break 2
3570         fi
3571       fi
3572     done
3573   done
3574   IFS=$pgac_save_IFS
3575   rm -f conftest.l
3576   : ${pgac_cv_path_flex=no}
3577 fi
3578
3579 fi
3580 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3581 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3582 if test x"$pgac_cv_path_flex" = x"no"; then
3583   if test -n "$pgac_broken_flex"; then
3584     { echo "$as_me:$LINENO: WARNING:
3585 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3586 *** should get version 2.5.4 or later." >&5
3587 echo "$as_me: WARNING:
3588 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3589 *** should get version 2.5.4 or later." >&2;}
3590   fi
3591
3592   { echo "$as_me:$LINENO: WARNING:
3593 *** Without Flex you will not be able to build PostgreSQL from CVS or
3594 *** change any of the scanner definition files.  You can obtain Flex from
3595 *** a GNU mirror site.  (If you are using the official distribution of
3596 *** PostgreSQL then you do not need to worry about this because the Flex
3597 *** output is pre-generated.)" >&5
3598 echo "$as_me: WARNING:
3599 *** Without Flex you will not be able to build PostgreSQL from CVS or
3600 *** change any of the scanner definition files.  You can obtain Flex from
3601 *** a GNU mirror site.  (If you are using the official distribution of
3602 *** PostgreSQL then you do not need to worry about this because the Flex
3603 *** output is pre-generated.)" >&2;}
3604 fi
3605
3606 if test x"$pgac_cv_path_flex" = x"no"; then
3607   FLEX=
3608 else
3609   FLEX=$pgac_cv_path_flex
3610 fi
3611
3612
3613
3614
3615 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3617 LN_S=$as_ln_s
3618 if test "$LN_S" = "ln -s"; then
3619   echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3621 else
3622   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3623 echo "${ECHO_T}no, using $LN_S" >&6
3624 fi
3625
3626
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629   withval="$with_gnu_ld"
3630   test "$withval" = no || with_gnu_ld=yes
3631 else
3632   with_gnu_ld=no
3633 fi;
3634 ac_prog=ld
3635 if test "$GCC" = yes; then
3636   # Check if gcc -print-prog-name=ld gives a path.
3637   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3638 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3639   case $host in
3640   *-*-mingw*)
3641     # gcc leaves a trailing carriage return which upsets mingw
3642     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3643   *)
3644     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3645   esac
3646   case "$ac_prog" in
3647     # Accept absolute paths.
3648     [\\/]* | [A-Za-z]:[\\/]*)
3649       re_direlt='/[^/][^/]*/\.\./'
3650       # Canonicalize the path of ld
3651       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3652       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3654       done
3655       test -z "$LD" && LD="$ac_prog"
3656       ;;
3657   "")
3658     # If it fails, then pretend we aren't using GCC.
3659     ac_prog=ld
3660     ;;
3661   *)
3662     # If it is relative, then search for the first ld in PATH.
3663     with_gnu_ld=unknown
3664     ;;
3665   esac
3666 elif test "$with_gnu_ld" = yes; then
3667   echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3669 else
3670   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3672 fi
3673 if test "${ac_cv_path_LD+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -z "$LD"; then
3677   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3678   for ac_dir in $PATH; do
3679     test -z "$ac_dir" && ac_dir=.
3680     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681       ac_cv_path_LD="$ac_dir/$ac_prog"
3682       # Check to see if the program is GNU ld.  I'd rather use --version,
3683       # but apparently some GNU ld's only accept -v.
3684       # Break only if it was the GNU/non-GNU ld that we prefer.
3685       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3686         test "$with_gnu_ld" != no && break
3687       else
3688         test "$with_gnu_ld" != yes && break
3689       fi
3690     fi
3691   done
3692   IFS="$ac_save_ifs"
3693 else
3694   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3695 fi
3696 fi
3697
3698 LD="$ac_cv_path_LD"
3699 if test -n "$LD"; then
3700   echo "$as_me:$LINENO: result: $LD" >&5
3701 echo "${ECHO_T}$LD" >&6
3702 else
3703   echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705 fi
3706 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3707 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3708    { (exit 1); exit 1; }; }
3709 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3710 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3711 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3715 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3716   ac_cv_prog_gnu_ld=yes
3717 else
3718   ac_cv_prog_gnu_ld=no
3719 fi
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$ac_cv_prog_gnu_ld
3724
3725
3726
3727
3728 case $host_os in sysv5*)
3729   echo "$as_me:$LINENO: checking whether ld -R works" >&5
3730 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3731 if test "${pgac_cv_prog_ld_R+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734
3735     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3736     cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3738 #include "confdefs.h"
3739
3740 #ifdef F77_DUMMY_MAIN
3741 #  ifdef __cplusplus
3742      extern "C"
3743 #  endif
3744    int F77_DUMMY_MAIN() { return 1; }
3745 #endif
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756   (eval $ac_link) 2>&5
3757   ac_status=$?
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } &&
3760          { ac_try='test -s conftest$ac_exeext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   pgac_cv_prog_ld_R=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 pgac_cv_prog_ld_R=no
3771 fi
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773     LDFLAGS=$pgac_save_LDFLAGS
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3777 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3778   ld_R_works=$pgac_cv_prog_ld_R
3779
3780 esac
3781 if test -n "$ac_tool_prefix"; then
3782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_RANLIB+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -n "$RANLIB"; then
3790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804 done
3805
3806 fi
3807 fi
3808 RANLIB=$ac_cv_prog_RANLIB
3809 if test -n "$RANLIB"; then
3810   echo "$as_me:$LINENO: result: $RANLIB" >&5
3811 echo "${ECHO_T}$RANLIB" >&6
3812 else
3813   echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 fi
3816
3817 fi
3818 if test -z "$ac_cv_prog_RANLIB"; then
3819   ac_ct_RANLIB=$RANLIB
3820   # Extract the first word of "ranlib", so it can be a program name with args.
3821 set dummy ranlib; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   if test -n "$ac_ct_RANLIB"; then
3828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_prog_ac_ct_RANLIB="ranlib"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3845 fi
3846 fi
3847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848 if test -n "$ac_ct_RANLIB"; then
3849   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856   RANLIB=$ac_ct_RANLIB
3857 else
3858   RANLIB="$ac_cv_prog_RANLIB"
3859 fi
3860
3861 for ac_prog in lorder
3862 do
3863   # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_LORDER+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   if test -n "$LORDER"; then
3871   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878   for ac_exec_ext in '' $ac_executable_extensions; do
3879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880     ac_cv_prog_LORDER="$ac_prog"
3881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882     break 2
3883   fi
3884 done
3885 done
3886
3887 fi
3888 fi
3889 LORDER=$ac_cv_prog_LORDER
3890 if test -n "$LORDER"; then
3891   echo "$as_me:$LINENO: result: $LORDER" >&5
3892 echo "${ECHO_T}$LORDER" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898   test -n "$LORDER" && break
3899 done
3900
3901 # Extract the first word of "tar", so it can be a program name with args.
3902 set dummy tar; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_path_TAR+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   case $TAR in
3909   [\\/]* | ?:[\\/]*)
3910   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3911   ;;
3912   *)
3913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925 done
3926
3927   ;;
3928 esac
3929 fi
3930 TAR=$ac_cv_path_TAR
3931
3932 if test -n "$TAR"; then
3933   echo "$as_me:$LINENO: result: $TAR" >&5
3934 echo "${ECHO_T}$TAR" >&6
3935 else
3936   echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940
3941   if test -n "$ac_tool_prefix"; then
3942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_STRIP+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   if test -n "$STRIP"; then
3950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957   for ac_exec_ext in '' $ac_executable_extensions; do
3958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964 done
3965
3966 fi
3967 fi
3968 STRIP=$ac_cv_prog_STRIP
3969 if test -n "$STRIP"; then
3970   echo "$as_me:$LINENO: result: $STRIP" >&5
3971 echo "${ECHO_T}$STRIP" >&6
3972 else
3973   echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975 fi
3976
3977 fi
3978 if test -z "$ac_cv_prog_STRIP"; then
3979   ac_ct_STRIP=$STRIP
3980   # Extract the first word of "strip", so it can be a program name with args.
3981 set dummy strip; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$ac_ct_STRIP"; then
3988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_ac_ct_STRIP="strip"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4005 fi
4006 fi
4007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4008 if test -n "$ac_ct_STRIP"; then
4009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4010 echo "${ECHO_T}$ac_ct_STRIP" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016   STRIP=$ac_ct_STRIP
4017 else
4018   STRIP="$ac_cv_prog_STRIP"
4019 fi
4020
4021
4022   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4023 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4024   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4025     STRIP_STATIC_LIB="$STRIP -x"
4026     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4027     echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4029   else
4030     STRIP_STATIC_LIB=:
4031     STRIP_SHARED_LIB=:
4032     echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4034   fi
4035
4036
4037
4038
4039 for ac_prog in 'bison -y'
4040 do
4041   # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_YACC+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   if test -n "$YACC"; then
4049   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_YACC="$ac_prog"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065 fi
4066 fi
4067 YACC=$ac_cv_prog_YACC
4068 if test -n "$YACC"; then
4069   echo "$as_me:$LINENO: result: $YACC" >&5
4070 echo "${ECHO_T}$YACC" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076   test -n "$YACC" && break
4077 done
4078
4079
4080 if test "$YACC"; then
4081   if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4082     { echo "$as_me:$LINENO: WARNING:
4083 *** If you are going to modify the grammar files or build from CVS, the installed
4084 *** version of Bison is too old.  Bison version 1.875 or later is required." >&5
4085 echo "$as_me: WARNING:
4086 *** If you are going to modify the grammar files or build from CVS, the installed
4087 *** version of Bison is too old.  Bison version 1.875 or later is required." >&2;}
4088   fi
4089 fi
4090
4091 if test -z "$YACC"; then
4092   { echo "$as_me:$LINENO: WARNING:
4093 *** Without Bison you will not be able to build PostgreSQL from CVS or
4094 *** change any of the parser definition files.  You can obtain Bison from
4095 *** a GNU mirror site.  (If you are using the official distribution of
4096 *** PostgreSQL then you do not need to worry about this because the Bison
4097 *** output is pre-generated.)  To use a different yacc program (possible,
4098 *** but not recommended), set the environment variable YACC before running
4099 *** 'configure'." >&5
4100 echo "$as_me: WARNING:
4101 *** Without Bison you will not be able to build PostgreSQL from CVS or
4102 *** change any of the parser definition files.  You can obtain Bison from
4103 *** a GNU mirror site.  (If you are using the official distribution of
4104 *** PostgreSQL then you do not need to worry about this because the Bison
4105 *** output is pre-generated.)  To use a different yacc program (possible,
4106 *** but not recommended), set the environment variable YACC before running
4107 *** 'configure'." >&2;}
4108 fi
4109
4110
4111 # Extract the first word of "perl", so it can be a program name with args.
4112 set dummy perl; 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_path_PERL+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118   case $PERL in
4119   [\\/]* | ?:[\\/]*)
4120   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4121   ;;
4122   *)
4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132     break 2
4133   fi
4134 done
4135 done
4136
4137   ;;
4138 esac
4139 fi
4140 PERL=$ac_cv_path_PERL
4141
4142 if test -n "$PERL"; then
4143   echo "$as_me:$LINENO: result: $PERL" >&5
4144 echo "${ECHO_T}$PERL" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150 if test "$with_perl" = yes; then
4151
4152 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4153 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4154 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4155 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4156 echo "${ECHO_T}$perl_archlibexp" >&6
4157 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4158 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4159 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4161 echo "${ECHO_T}$perl_privlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4163 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4164 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4165 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4166 echo "${ECHO_T}$perl_useshrplib" >&6
4167
4168 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4169 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4170 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4171 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4172 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4173 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4174 echo "${ECHO_T}$perl_embed_ldflags" >&6
4175 fi
4176
4177 if test "$with_python" = yes; then
4178   # Extract the first word of "python", so it can be a program name with args.
4179 set dummy python; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PYTHON+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   case $PYTHON in
4186   [\\/]* | ?:[\\/]*)
4187   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4188   ;;
4189   *)
4190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193   IFS=$as_save_IFS
4194   test -z "$as_dir" && as_dir=.
4195   for ac_exec_ext in '' $ac_executable_extensions; do
4196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199     break 2
4200   fi
4201 done
4202 done
4203
4204   ;;
4205 esac
4206 fi
4207 PYTHON=$ac_cv_path_PYTHON
4208
4209 if test -n "$PYTHON"; then
4210   echo "$as_me:$LINENO: result: $PYTHON" >&5
4211 echo "${ECHO_T}$PYTHON" >&6
4212 else
4213   echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4215 fi
4216
4217 if test x"$PYTHON" = x""; then
4218   { { echo "$as_me:$LINENO: error: Python not found" >&5
4219 echo "$as_me: error: Python not found" >&2;}
4220    { (exit 1); exit 1; }; }
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking Python installation directories" >&5
4225 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4226 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4227 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4228 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4229 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4230 python_includespec="-I${python_prefix}/include/python${python_version}"
4231 if test "$python_prefix" != "$python_execprefix"; then
4232   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4233 fi
4234
4235 # This should be enough of a message.
4236 if test "$python_prefix" != "$python_execprefix"; then
4237   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4238 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4239 else
4240   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4241 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4242 fi
4243
4244
4245 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4246 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4247
4248 if test ! -f "$python_configdir/Makefile"; then
4249   echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251   { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4252 echo "$as_me: error: Python Makefile not found" >&2;}
4253    { (exit 1); exit 1; }; }
4254 fi
4255
4256 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4257 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4258 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4259 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4260 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4261
4262 pgac_tab="      " # tab character
4263 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4264
4265 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4266 echo "${ECHO_T}${python_libspec}" >&6
4267
4268
4269 fi
4270
4271
4272 ##
4273 ## Libraries
4274 ##
4275
4276 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4277 then
4278
4279 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4280 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4281 if test "${ac_cv_lib_bsd_main+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   ac_check_lib_save_LIBS=$LIBS
4285 LIBS="-lbsd  $LIBS"
4286 cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
4288 #include "confdefs.h"
4289
4290
4291 #ifdef F77_DUMMY_MAIN
4292 #  ifdef __cplusplus
4293      extern "C"
4294 #  endif
4295    int F77_DUMMY_MAIN() { return 1; }
4296 #endif
4297 int
4298 main ()
4299 {
4300 main ();
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307   (eval $ac_link) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -s conftest$ac_exeext'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_lib_bsd_main=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_cv_lib_bsd_main=no
4322 fi
4323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4324 LIBS=$ac_check_lib_save_LIBS
4325 fi
4326 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4327 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4328 if test $ac_cv_lib_bsd_main = yes; then
4329   cat >>confdefs.h <<_ACEOF
4330 #define HAVE_LIBBSD 1
4331 _ACEOF
4332
4333   LIBS="-lbsd $LIBS"
4334
4335 fi
4336
4337 fi
4338
4339 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4340 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4341 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lutil  $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4349
4350 /* Override any gcc2 internal prototype to avoid an error.  */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355    builtin and then its argument prototype would still apply.  */
4356 char setproctitle ();
4357 #ifdef F77_DUMMY_MAIN
4358 #  ifdef __cplusplus
4359      extern "C"
4360 #  endif
4361    int F77_DUMMY_MAIN() { return 1; }
4362 #endif
4363 int
4364 main ()
4365 {
4366 setproctitle ();
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373   (eval $ac_link) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } &&
4377          { ac_try='test -s conftest$ac_exeext'
4378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379   (eval $ac_try) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   ac_cv_lib_util_setproctitle=yes
4384 else
4385   echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_util_setproctitle=no
4388 fi
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4391 fi
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4393 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4394 if test $ac_cv_lib_util_setproctitle = yes; then
4395   cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBUTIL 1
4397 _ACEOF
4398
4399   LIBS="-lutil $LIBS"
4400
4401 fi
4402
4403
4404 echo "$as_me:$LINENO: checking for main in -lm" >&5
4405 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4406 if test "${ac_cv_lib_m_main+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   ac_check_lib_save_LIBS=$LIBS
4410 LIBS="-lm  $LIBS"
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 #include "confdefs.h"
4414
4415
4416 #ifdef F77_DUMMY_MAIN
4417 #  ifdef __cplusplus
4418      extern "C"
4419 #  endif
4420    int F77_DUMMY_MAIN() { return 1; }
4421 #endif
4422 int
4423 main ()
4424 {
4425 main ();
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432   (eval $ac_link) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -s conftest$ac_exeext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_cv_lib_m_main=yes
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 ac_cv_lib_m_main=no
4447 fi
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4450 fi
4451 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4452 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4453 if test $ac_cv_lib_m_main = yes; then
4454   cat >>confdefs.h <<_ACEOF
4455 #define HAVE_LIBM 1
4456 _ACEOF
4457
4458   LIBS="-lm $LIBS"
4459
4460 fi
4461
4462
4463 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4464 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4465 if test "${ac_cv_lib_dl_main+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-ldl  $LIBS"
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 #include "confdefs.h"
4473
4474
4475 #ifdef F77_DUMMY_MAIN
4476 #  ifdef __cplusplus
4477      extern "C"
4478 #  endif
4479    int F77_DUMMY_MAIN() { return 1; }
4480 #endif
4481 int
4482 main ()
4483 {
4484 main ();
4485   ;
4486   return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491   (eval $ac_link) 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } &&
4495          { ac_try='test -s conftest$ac_exeext'
4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497   (eval $ac_try) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   ac_cv_lib_dl_main=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 ac_cv_lib_dl_main=no
4506 fi
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4509 fi
4510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4511 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4512 if test $ac_cv_lib_dl_main = yes; then
4513   cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBDL 1
4515 _ACEOF
4516
4517   LIBS="-ldl $LIBS"
4518
4519 fi
4520
4521
4522 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4523 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4524 if test "${ac_cv_lib_nsl_main+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   ac_check_lib_save_LIBS=$LIBS
4528 LIBS="-lnsl  $LIBS"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4532
4533
4534 #ifdef F77_DUMMY_MAIN
4535 #  ifdef __cplusplus
4536      extern "C"
4537 #  endif
4538    int F77_DUMMY_MAIN() { return 1; }
4539 #endif
4540 int
4541 main ()
4542 {
4543 main ();
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -s conftest$ac_exeext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_cv_lib_nsl_main=yes
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_nsl_main=no
4565 fi
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4568 fi
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4570 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4571 if test $ac_cv_lib_nsl_main = yes; then
4572   cat >>confdefs.h <<_ACEOF
4573 #define HAVE_LIBNSL 1
4574 _ACEOF
4575
4576   LIBS="-lnsl $LIBS"
4577
4578 fi
4579
4580
4581 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4582 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4583 if test "${ac_cv_lib_socket_main+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lsocket  $LIBS"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4591
4592
4593 #ifdef F77_DUMMY_MAIN
4594 #  ifdef __cplusplus
4595      extern "C"
4596 #  endif
4597    int F77_DUMMY_MAIN() { return 1; }
4598 #endif
4599 int
4600 main ()
4601 {
4602 main ();
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609   (eval $ac_link) 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -s conftest$ac_exeext'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_lib_socket_main=yes
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 ac_cv_lib_socket_main=no
4624 fi
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4630 if test $ac_cv_lib_socket_main = yes; then
4631   cat >>confdefs.h <<_ACEOF
4632 #define HAVE_LIBSOCKET 1
4633 _ACEOF
4634
4635   LIBS="-lsocket $LIBS"
4636
4637 fi
4638
4639
4640 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4641 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ipc_main+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   ac_check_lib_save_LIBS=$LIBS
4646 LIBS="-lipc  $LIBS"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4649 #include "confdefs.h"
4650
4651
4652 #ifdef F77_DUMMY_MAIN
4653 #  ifdef __cplusplus
4654      extern "C"
4655 #  endif
4656    int F77_DUMMY_MAIN() { return 1; }
4657 #endif
4658 int
4659 main ()
4660 {
4661 main ();
4662   ;
4663   return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668   (eval $ac_link) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); } &&
4672          { ac_try='test -s conftest$ac_exeext'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   ac_cv_lib_ipc_main=yes
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 ac_cv_lib_ipc_main=no
4683 fi
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4686 fi
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4688 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4689 if test $ac_cv_lib_ipc_main = yes; then
4690   cat >>confdefs.h <<_ACEOF
4691 #define HAVE_LIBIPC 1
4692 _ACEOF
4693
4694   LIBS="-lipc $LIBS"
4695
4696 fi
4697
4698
4699 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4700 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4701 if test "${ac_cv_lib_IPC_main+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lIPC  $LIBS"
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4709
4710
4711 #ifdef F77_DUMMY_MAIN
4712 #  ifdef __cplusplus
4713      extern "C"
4714 #  endif
4715    int F77_DUMMY_MAIN() { return 1; }
4716 #endif
4717 int
4718 main ()
4719 {
4720 main ();
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4727   (eval $ac_link) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } &&
4731          { ac_try='test -s conftest$ac_exeext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_cv_lib_IPC_main=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 ac_cv_lib_IPC_main=no
4742 fi
4743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4744 LIBS=$ac_check_lib_save_LIBS
4745 fi
4746 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4747 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4748 if test $ac_cv_lib_IPC_main = yes; then
4749   cat >>confdefs.h <<_ACEOF
4750 #define HAVE_LIBIPC 1
4751 _ACEOF
4752
4753   LIBS="-lIPC $LIBS"
4754
4755 fi
4756
4757
4758 echo "$as_me:$LINENO: checking for main in -llc" >&5
4759 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4760 if test "${ac_cv_lib_lc_main+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   ac_check_lib_save_LIBS=$LIBS
4764 LIBS="-llc  $LIBS"
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4768
4769
4770 #ifdef F77_DUMMY_MAIN
4771 #  ifdef __cplusplus
4772      extern "C"
4773 #  endif
4774    int F77_DUMMY_MAIN() { return 1; }
4775 #endif
4776 int
4777 main ()
4778 {
4779 main ();
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786   (eval $ac_link) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -s conftest$ac_exeext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_cv_lib_lc_main=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_lc_main=no
4801 fi
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4806 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4807 if test $ac_cv_lib_lc_main = yes; then
4808   cat >>confdefs.h <<_ACEOF
4809 #define HAVE_LIBLC 1
4810 _ACEOF
4811
4812   LIBS="-llc $LIBS"
4813
4814 fi
4815
4816
4817 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4818 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4819 if test "${ac_cv_lib_dld_main+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   ac_check_lib_save_LIBS=$LIBS
4823 LIBS="-ldld  $LIBS"
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4827
4828
4829 #ifdef F77_DUMMY_MAIN
4830 #  ifdef __cplusplus
4831      extern "C"
4832 #  endif
4833    int F77_DUMMY_MAIN() { return 1; }
4834 #endif
4835 int
4836 main ()
4837 {
4838 main ();
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845   (eval $ac_link) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -s conftest$ac_exeext'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; }; then
4855   ac_cv_lib_dld_main=yes
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 ac_cv_lib_dld_main=no
4860 fi
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4865 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4866 if test $ac_cv_lib_dld_main = yes; then
4867   cat >>confdefs.h <<_ACEOF
4868 #define HAVE_LIBDLD 1
4869 _ACEOF
4870
4871   LIBS="-ldld $LIBS"
4872
4873 fi
4874
4875
4876 echo "$as_me:$LINENO: checking for main in -lld" >&5
4877 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4878 if test "${ac_cv_lib_ld_main+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   ac_check_lib_save_LIBS=$LIBS
4882 LIBS="-lld  $LIBS"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 #include "confdefs.h"
4886
4887
4888 #ifdef F77_DUMMY_MAIN
4889 #  ifdef __cplusplus
4890      extern "C"
4891 #  endif
4892    int F77_DUMMY_MAIN() { return 1; }
4893 #endif
4894 int
4895 main ()
4896 {
4897 main ();
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904   (eval $ac_link) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } &&
4908          { ac_try='test -s conftest$ac_exeext'
4909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910   (eval $ac_try) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); }; }; then
4914   ac_cv_lib_ld_main=yes
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_cv_lib_ld_main=no
4919 fi
4920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4921 LIBS=$ac_check_lib_save_LIBS
4922 fi
4923 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4924 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4925 if test $ac_cv_lib_ld_main = yes; then
4926   cat >>confdefs.h <<_ACEOF
4927 #define HAVE_LIBLD 1
4928 _ACEOF
4929
4930   LIBS="-lld $LIBS"
4931
4932 fi
4933
4934
4935 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4936 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4937 if test "${ac_cv_lib_compat_main+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lcompat  $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 #include "confdefs.h"
4945
4946
4947 #ifdef F77_DUMMY_MAIN
4948 #  ifdef __cplusplus
4949      extern "C"
4950 #  endif
4951    int F77_DUMMY_MAIN() { return 1; }
4952 #endif
4953 int
4954 main ()
4955 {
4956 main ();
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963   (eval $ac_link) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -s conftest$ac_exeext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   ac_cv_lib_compat_main=yes
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_lib_compat_main=no
4978 fi
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4983 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4984 if test $ac_cv_lib_compat_main = yes; then
4985   cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBCOMPAT 1
4987 _ACEOF
4988
4989   LIBS="-lcompat $LIBS"
4990
4991 fi
4992
4993
4994 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4995 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4996 if test "${ac_cv_lib_BSD_main+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lBSD  $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 #include "confdefs.h"
5004
5005
5006 #ifdef F77_DUMMY_MAIN
5007 #  ifdef __cplusplus
5008      extern "C"
5009 #  endif
5010    int F77_DUMMY_MAIN() { return 1; }
5011 #endif
5012 int
5013 main ()
5014 {
5015 main ();
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022   (eval $ac_link) 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } &&
5026          { ac_try='test -s conftest$ac_exeext'
5027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028   (eval $ac_try) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; }; then
5032   ac_cv_lib_BSD_main=yes
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_lib_BSD_main=no
5037 fi
5038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5040 fi
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5042 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5043 if test $ac_cv_lib_BSD_main = yes; then
5044   cat >>confdefs.h <<_ACEOF
5045 #define HAVE_LIBBSD 1
5046 _ACEOF
5047
5048   LIBS="-lBSD $LIBS"
5049
5050 fi
5051
5052
5053 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5054 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5055 if test "${ac_cv_lib_gen_main+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   ac_check_lib_save_LIBS=$LIBS
5059 LIBS="-lgen  $LIBS"
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 #include "confdefs.h"
5063
5064
5065 #ifdef F77_DUMMY_MAIN
5066 #  ifdef __cplusplus
5067      extern "C"
5068 #  endif
5069    int F77_DUMMY_MAIN() { return 1; }
5070 #endif
5071 int
5072 main ()
5073 {
5074 main ();
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081   (eval $ac_link) 2>&5
5082   ac_status=$?
5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084   (exit $ac_status); } &&
5085          { ac_try='test -s conftest$ac_exeext'
5086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087   (eval $ac_try) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; }; then
5091   ac_cv_lib_gen_main=yes
5092 else
5093   echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 ac_cv_lib_gen_main=no
5096 fi
5097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5099 fi
5100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5101 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5102 if test $ac_cv_lib_gen_main = yes; then
5103   cat >>confdefs.h <<_ACEOF
5104 #define HAVE_LIBGEN 1
5105 _ACEOF
5106
5107   LIBS="-lgen $LIBS"
5108
5109 fi
5110
5111
5112 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5113 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5114 if test "${ac_cv_lib_PW_main+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lPW  $LIBS"
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 #include "confdefs.h"
5122
5123
5124 #ifdef F77_DUMMY_MAIN
5125 #  ifdef __cplusplus
5126      extern "C"
5127 #  endif
5128    int F77_DUMMY_MAIN() { return 1; }
5129 #endif
5130 int
5131 main ()
5132 {
5133 main ();
5134   ;
5135   return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140   (eval $ac_link) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -s conftest$ac_exeext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   ac_cv_lib_PW_main=yes
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 ac_cv_lib_PW_main=no
5155 fi
5156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5160 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5161 if test $ac_cv_lib_PW_main = yes; then
5162   cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBPW 1
5164 _ACEOF
5165
5166   LIBS="-lPW $LIBS"
5167
5168 fi
5169
5170
5171 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5172 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5173 if test "${ac_cv_lib_resolv_main+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-lresolv  $LIBS"
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181
5182
5183 #ifdef F77_DUMMY_MAIN
5184 #  ifdef __cplusplus
5185      extern "C"
5186 #  endif
5187    int F77_DUMMY_MAIN() { return 1; }
5188 #endif
5189 int
5190 main ()
5191 {
5192 main ();
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199   (eval $ac_link) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); } &&
5203          { ac_try='test -s conftest$ac_exeext'
5204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205   (eval $ac_try) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; }; then
5209   ac_cv_lib_resolv_main=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 ac_cv_lib_resolv_main=no
5214 fi
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 LIBS=$ac_check_lib_save_LIBS
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5219 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5220 if test $ac_cv_lib_resolv_main = yes; then
5221   cat >>confdefs.h <<_ACEOF
5222 #define HAVE_LIBRESOLV 1
5223 _ACEOF
5224
5225   LIBS="-lresolv $LIBS"
5226
5227 fi
5228
5229 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5230 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5231 if test "${ac_cv_search_getopt_long+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   ac_func_search_save_LIBS=$LIBS
5235 ac_cv_search_getopt_long=no
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 #include "confdefs.h"
5239
5240 /* Override any gcc2 internal prototype to avoid an error.  */
5241 #ifdef __cplusplus
5242 extern "C"
5243 #endif
5244 /* We use char because int might match the return type of a gcc2
5245    builtin and then its argument prototype would still apply.  */
5246 char getopt_long ();
5247 #ifdef F77_DUMMY_MAIN
5248 #  ifdef __cplusplus
5249      extern "C"
5250 #  endif
5251    int F77_DUMMY_MAIN() { return 1; }
5252 #endif
5253 int
5254 main ()
5255 {
5256 getopt_long ();
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263   (eval $ac_link) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } &&
5267          { ac_try='test -s conftest$ac_exeext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_search_getopt_long="none required"
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5277 fi
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5279 if test "$ac_cv_search_getopt_long" = no; then
5280   for ac_lib in getopt gnugetopt; do
5281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5282     cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 #include "confdefs.h"
5285
5286 /* Override any gcc2 internal prototype to avoid an error.  */
5287 #ifdef __cplusplus
5288 extern "C"
5289 #endif
5290 /* We use char because int might match the return type of a gcc2
5291    builtin and then its argument prototype would still apply.  */
5292 char getopt_long ();
5293 #ifdef F77_DUMMY_MAIN
5294 #  ifdef __cplusplus
5295      extern "C"
5296 #  endif
5297    int F77_DUMMY_MAIN() { return 1; }
5298 #endif
5299 int
5300 main ()
5301 {
5302 getopt_long ();
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_search_getopt_long="-l$ac_lib"
5320 break
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 fi
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326   done
5327 fi
5328 LIBS=$ac_func_search_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5331 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5332 if test "$ac_cv_search_getopt_long" != no; then
5333   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5334
5335 fi
5336
5337 # QNX:
5338
5339 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5340 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5341 if test "${ac_cv_lib_unix_main+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   ac_check_lib_save_LIBS=$LIBS
5345 LIBS="-lunix  $LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5348 #include "confdefs.h"
5349
5350
5351 #ifdef F77_DUMMY_MAIN
5352 #  ifdef __cplusplus
5353      extern "C"
5354 #  endif
5355    int F77_DUMMY_MAIN() { return 1; }
5356 #endif
5357 int
5358 main ()
5359 {
5360 main ();
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367   (eval $ac_link) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } &&
5371          { ac_try='test -s conftest$ac_exeext'
5372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373   (eval $ac_try) 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; }; then
5377   ac_cv_lib_unix_main=yes
5378 else
5379   echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_lib_unix_main=no
5382 fi
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5387 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5388 if test $ac_cv_lib_unix_main = yes; then
5389   cat >>confdefs.h <<_ACEOF
5390 #define HAVE_LIBUNIX 1
5391 _ACEOF
5392
5393   LIBS="-lunix $LIBS"
5394
5395 fi
5396
5397 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5398 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5399 if test "${ac_cv_search_crypt+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   ac_func_search_save_LIBS=$LIBS
5403 ac_cv_search_crypt=no
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 #include "confdefs.h"
5407
5408 /* Override any gcc2 internal prototype to avoid an error.  */
5409 #ifdef __cplusplus
5410 extern "C"
5411 #endif
5412 /* We use char because int might match the return type of a gcc2
5413    builtin and then its argument prototype would still apply.  */
5414 char crypt ();
5415 #ifdef F77_DUMMY_MAIN
5416 #  ifdef __cplusplus
5417      extern "C"
5418 #  endif
5419    int F77_DUMMY_MAIN() { return 1; }
5420 #endif
5421 int
5422 main ()
5423 {
5424 crypt ();
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431   (eval $ac_link) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); } &&
5435          { ac_try='test -s conftest$ac_exeext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_cv_search_crypt="none required"
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5445 fi
5446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 if test "$ac_cv_search_crypt" = no; then
5448   for ac_lib in crypt; do
5449     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5450     cat >conftest.$ac_ext <<_ACEOF
5451 #line $LINENO "configure"
5452 #include "confdefs.h"
5453
5454 /* Override any gcc2 internal prototype to avoid an error.  */
5455 #ifdef __cplusplus
5456 extern "C"
5457 #endif
5458 /* We use char because int might match the return type of a gcc2
5459    builtin and then its argument prototype would still apply.  */
5460 char crypt ();
5461 #ifdef F77_DUMMY_MAIN
5462 #  ifdef __cplusplus
5463      extern "C"
5464 #  endif
5465    int F77_DUMMY_MAIN() { return 1; }
5466 #endif
5467 int
5468 main ()
5469 {
5470 crypt ();
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477   (eval $ac_link) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } &&
5481          { ac_try='test -s conftest$ac_exeext'
5482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483   (eval $ac_try) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }; }; then
5487   ac_cv_search_crypt="-l$ac_lib"
5488 break
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5492 fi
5493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5494   done
5495 fi
5496 LIBS=$ac_func_search_save_LIBS
5497 fi
5498 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5499 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5500 if test "$ac_cv_search_crypt" != no; then
5501   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5502
5503 fi
5504
5505 # BeOS:
5506 if test "$PORTNAME" = "beos"
5507 then
5508
5509 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5510 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5511 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514   ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lbind  $LIBS"
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 #include "confdefs.h"
5519
5520 /* Override any gcc2 internal prototype to avoid an error.  */
5521 #ifdef __cplusplus
5522 extern "C"
5523 #endif
5524 /* We use char because int might match the return type of a gcc2
5525    builtin and then its argument prototype would still apply.  */
5526 char __inet_ntoa ();
5527 #ifdef F77_DUMMY_MAIN
5528 #  ifdef __cplusplus
5529      extern "C"
5530 #  endif
5531    int F77_DUMMY_MAIN() { return 1; }
5532 #endif
5533 int
5534 main ()
5535 {
5536 __inet_ntoa ();
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543   (eval $ac_link) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -s conftest$ac_exeext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_cv_lib_bind___inet_ntoa=yes
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_lib_bind___inet_ntoa=no
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5563 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5564 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5565   cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBBIND 1
5567 _ACEOF
5568
5569   LIBS="-lbind $LIBS"
5570
5571 fi
5572
5573 fi
5574 # Solaris:
5575 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5576 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5577 if test "${ac_cv_search_fdatasync+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   ac_func_search_save_LIBS=$LIBS
5581 ac_cv_search_fdatasync=no
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5585
5586 /* Override any gcc2 internal prototype to avoid an error.  */
5587 #ifdef __cplusplus
5588 extern "C"
5589 #endif
5590 /* We use char because int might match the return type of a gcc2
5591    builtin and then its argument prototype would still apply.  */
5592 char fdatasync ();
5593 #ifdef F77_DUMMY_MAIN
5594 #  ifdef __cplusplus
5595      extern "C"
5596 #  endif
5597    int F77_DUMMY_MAIN() { return 1; }
5598 #endif
5599 int
5600 main ()
5601 {
5602 fdatasync ();
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609   (eval $ac_link) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -s conftest$ac_exeext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   ac_cv_search_fdatasync="none required"
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 fi
5624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 if test "$ac_cv_search_fdatasync" = no; then
5626   for ac_lib in rt posix4; do
5627     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5628     cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5631
5632 /* Override any gcc2 internal prototype to avoid an error.  */
5633 #ifdef __cplusplus
5634 extern "C"
5635 #endif
5636 /* We use char because int might match the return type of a gcc2
5637    builtin and then its argument prototype would still apply.  */
5638 char fdatasync ();
5639 #ifdef F77_DUMMY_MAIN
5640 #  ifdef __cplusplus
5641      extern "C"
5642 #  endif
5643    int F77_DUMMY_MAIN() { return 1; }
5644 #endif
5645 int
5646 main ()
5647 {
5648 fdatasync ();
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } &&
5659          { ac_try='test -s conftest$ac_exeext'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; }; then
5665   ac_cv_search_fdatasync="-l$ac_lib"
5666 break
5667 else
5668   echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 fi
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5672   done
5673 fi
5674 LIBS=$ac_func_search_save_LIBS
5675 fi
5676 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5677 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5678 if test "$ac_cv_search_fdatasync" != no; then
5679   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5680
5681 fi
5682
5683 # Cygwin:
5684
5685 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5686 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5687 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lcygipc  $LIBS"
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 #include "confdefs.h"
5695
5696 /* Override any gcc2 internal prototype to avoid an error.  */
5697 #ifdef __cplusplus
5698 extern "C"
5699 #endif
5700 /* We use char because int might match the return type of a gcc2
5701    builtin and then its argument prototype would still apply.  */
5702 char shmget ();
5703 #ifdef F77_DUMMY_MAIN
5704 #  ifdef __cplusplus
5705      extern "C"
5706 #  endif
5707    int F77_DUMMY_MAIN() { return 1; }
5708 #endif
5709 int
5710 main ()
5711 {
5712 shmget ();
5713   ;
5714   return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719   (eval $ac_link) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -s conftest$ac_exeext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_lib_cygipc_shmget=yes
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_cygipc_shmget=no
5734 fi
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5739 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5740 if test $ac_cv_lib_cygipc_shmget = yes; then
5741   cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBCYGIPC 1
5743 _ACEOF
5744
5745   LIBS="-lcygipc $LIBS"
5746
5747 fi
5748
5749 # WIN32:
5750 if test "$PORTNAME" = "win32"
5751 then
5752
5753 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5754 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5755 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lwsock32  $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 #include "confdefs.h"
5763
5764
5765 #ifdef F77_DUMMY_MAIN
5766 #  ifdef __cplusplus
5767      extern "C"
5768 #  endif
5769    int F77_DUMMY_MAIN() { return 1; }
5770 #endif
5771 int
5772 main ()
5773 {
5774 main ();
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781   (eval $ac_link) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_lib_wsock32_main=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_wsock32_main=no
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5799 fi
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5802 if test $ac_cv_lib_wsock32_main = yes; then
5803   cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBWSOCK32 1
5805 _ACEOF
5806
5807   LIBS="-lwsock32 $LIBS"
5808
5809 fi
5810
5811 fi
5812
5813 if test "$with_readline" = yes; then
5814
5815 echo "$as_me:$LINENO: checking for readline" >&5
5816 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5817
5818 if test "${pgac_cv_check_readline+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   pgac_cv_check_readline=no
5822 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5823   for pgac_rllib in -lreadline -ledit ; do
5824     pgac_save_LIBS=$LIBS
5825     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5826     cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5829
5830 /* Override any gcc2 internal prototype to avoid an error.  */
5831 #ifdef __cplusplus
5832 extern "C"
5833 #endif
5834 /* We use char because int might match the return type of a gcc2
5835    builtin and then its argument prototype would still apply.  */
5836 char readline ();
5837 #ifdef F77_DUMMY_MAIN
5838 #  ifdef __cplusplus
5839      extern "C"
5840 #  endif
5841    int F77_DUMMY_MAIN() { return 1; }
5842 #endif
5843 int
5844 main ()
5845 {
5846 readline ();
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853   (eval $ac_link) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863
5864       # NetBSD, OpenBSD, and Irix have a broken linker that does not
5865       # recognize dependent libraries
5866       case $host_os in netbsd* | openbsd* | irix*)
5867         case $pgac_lib in
5868           *curses*) ;;
5869           *) pgac_lib=" -lcurses" ;;
5870         esac
5871       esac
5872
5873       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5874       break 2
5875
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 fi
5880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5881     LIBS=$pgac_save_LIBS
5882   done
5883 done
5884 LIBS=$pgac_save_LIBS
5885
5886 fi
5887
5888 if test "$pgac_cv_check_readline" != no ; then
5889
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIBREADLINE 1
5892 _ACEOF
5893
5894   LIBS="$pgac_cv_check_readline $LIBS"
5895   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5896 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5897 else
5898   echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5900 fi
5901   if test x"$pgac_cv_check_readline" = x"no"; then
5902     { { echo "$as_me:$LINENO: error: readline library not found
5903 If you have readline already installed, see config.log for details on the
5904 failure.  It is possible the compiler isn't looking in the proper directory.
5905 Use --without-readline to disable readline support." >&5
5906 echo "$as_me: error: readline library not found
5907 If you have readline already installed, see config.log for details on the
5908 failure.  It is possible the compiler isn't looking in the proper directory.
5909 Use --without-readline to disable readline support." >&2;}
5910    { (exit 1); exit 1; }; }
5911   fi
5912 fi
5913
5914 if test "$with_zlib" = yes; then
5915
5916 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5917 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5918 if test "${ac_cv_lib_z_inflate+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   ac_check_lib_save_LIBS=$LIBS
5922 LIBS="-lz  $LIBS"
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5926
5927 /* Override any gcc2 internal prototype to avoid an error.  */
5928 #ifdef __cplusplus
5929 extern "C"
5930 #endif
5931 /* We use char because int might match the return type of a gcc2
5932    builtin and then its argument prototype would still apply.  */
5933 char inflate ();
5934 #ifdef F77_DUMMY_MAIN
5935 #  ifdef __cplusplus
5936      extern "C"
5937 #  endif
5938    int F77_DUMMY_MAIN() { return 1; }
5939 #endif
5940 int
5941 main ()
5942 {
5943 inflate ();
5944   ;
5945   return 0;
5946 }
5947 _ACEOF
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950   (eval $ac_link) 2>&5
5951   ac_status=$?
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } &&
5954          { ac_try='test -s conftest$ac_exeext'
5955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956   (eval $ac_try) 2>&5
5957   ac_status=$?
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); }; }; then
5960   ac_cv_lib_z_inflate=yes
5961 else
5962   echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 ac_cv_lib_z_inflate=no
5965 fi
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5968 fi
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5970 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5971 if test $ac_cv_lib_z_inflate = yes; then
5972   cat >>confdefs.h <<_ACEOF
5973 #define HAVE_LIBZ 1
5974 _ACEOF
5975
5976   LIBS="-lz $LIBS"
5977
5978 else
5979   { { echo "$as_me:$LINENO: error: zlib library not found
5980 If you have zlib already installed, see config.log for details on the
5981 failure.  It is possible the compiler isn't looking in the proper directory.
5982 Use --without-zlib to disable zlib support." >&5
5983 echo "$as_me: error: zlib library not found
5984 If you have zlib already installed, see config.log for details on the
5985 failure.  It is possible the compiler isn't looking in the proper directory.
5986 Use --without-zlib to disable zlib support." >&2;}
5987    { (exit 1); exit 1; }; }
5988 fi
5989
5990 fi
5991
5992 if test "$enable_spinlocks" = yes; then
5993
5994 cat >>confdefs.h <<\_ACEOF
5995 #define HAVE_SPINLOCKS 1
5996 _ACEOF
5997
5998 else
5999   { echo "$as_me:$LINENO: WARNING:
6000 *** Not using spinlocks will cause poor performance." >&5
6001 echo "$as_me: WARNING:
6002 *** Not using spinlocks will cause poor performance." >&2;}
6003 fi
6004
6005 if test "$with_krb4" = yes ; then
6006
6007 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6008 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6009 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   ac_check_lib_save_LIBS=$LIBS
6013 LIBS="-ldes  $LIBS"
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6017
6018 /* Override any gcc2 internal prototype to avoid an error.  */
6019 #ifdef __cplusplus
6020 extern "C"
6021 #endif
6022 /* We use char because int might match the return type of a gcc2
6023    builtin and then its argument prototype would still apply.  */
6024 char des_encrypt ();
6025 #ifdef F77_DUMMY_MAIN
6026 #  ifdef __cplusplus
6027      extern "C"
6028 #  endif
6029    int F77_DUMMY_MAIN() { return 1; }
6030 #endif
6031 int
6032 main ()
6033 {
6034 des_encrypt ();
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041   (eval $ac_link) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -s conftest$ac_exeext'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; }; then
6051   ac_cv_lib_des_des_encrypt=yes
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_des_des_encrypt=no
6056 fi
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6059 fi
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6061 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6062 if test $ac_cv_lib_des_des_encrypt = yes; then
6063   cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBDES 1
6065 _ACEOF
6066
6067   LIBS="-ldes $LIBS"
6068
6069 else
6070   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6072    { (exit 1); exit 1; }; }
6073 fi
6074
6075
6076 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6077 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6078 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   ac_check_lib_save_LIBS=$LIBS
6082 LIBS="-lkrb  $LIBS"
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 #include "confdefs.h"
6086
6087 /* Override any gcc2 internal prototype to avoid an error.  */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092    builtin and then its argument prototype would still apply.  */
6093 char krb_sendauth ();
6094 #ifdef F77_DUMMY_MAIN
6095 #  ifdef __cplusplus
6096      extern "C"
6097 #  endif
6098    int F77_DUMMY_MAIN() { return 1; }
6099 #endif
6100 int
6101 main ()
6102 {
6103 krb_sendauth ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_lib_krb_krb_sendauth=yes
6121 else
6122   echo "$as_me: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 ac_cv_lib_krb_krb_sendauth=no
6125 fi
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6130 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6131 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6132   cat >>confdefs.h <<_ACEOF
6133 #define HAVE_LIBKRB 1
6134 _ACEOF
6135
6136   LIBS="-lkrb $LIBS"
6137
6138 else
6139   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6140 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6141    { (exit 1); exit 1; }; }
6142 fi
6143
6144
6145 for ac_func in gethostname
6146 do
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157     which can conflict with char $ac_func (); below.  */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error.  */
6160 #ifdef __cplusplus
6161 extern "C"
6162 #endif
6163 /* We use char because int might match the return type of a gcc2
6164    builtin and then its argument prototype would still apply.  */
6165 char $ac_func ();
6166 char (*f) ();
6167
6168 #ifdef F77_DUMMY_MAIN
6169 #  ifdef __cplusplus
6170      extern "C"
6171 #  endif
6172    int F77_DUMMY_MAIN() { return 1; }
6173 #endif
6174 int
6175 main ()
6176 {
6177 /* The GNU C library defines this for functions which it implements
6178     to always fail with ENOSYS.  Some functions are actually named
6179     something starting with __ and the normal name is an alias.  */
6180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6181 choke me
6182 #else
6183 f = $ac_func;
6184 #endif
6185
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   eval "$as_ac_var=yes"
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6207 fi
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6209 fi
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
6213   cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6215 _ACEOF
6216
6217 else
6218   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6219 fi
6220 done
6221
6222
6223 fi
6224
6225 if test "$with_krb5" = yes ; then
6226   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6228 if test "${ac_cv_search_com_err+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   ac_func_search_save_LIBS=$LIBS
6232 ac_cv_search_com_err=no
6233 cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6236
6237 /* Override any gcc2 internal prototype to avoid an error.  */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 /* We use char because int might match the return type of a gcc2
6242    builtin and then its argument prototype would still apply.  */
6243 char com_err ();
6244 #ifdef F77_DUMMY_MAIN
6245 #  ifdef __cplusplus
6246      extern "C"
6247 #  endif
6248    int F77_DUMMY_MAIN() { return 1; }
6249 #endif
6250 int
6251 main ()
6252 {
6253 com_err ();
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260   (eval $ac_link) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } &&
6264          { ac_try='test -s conftest$ac_exeext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_cv_search_com_err="none required"
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 fi
6275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6276 if test "$ac_cv_search_com_err" = no; then
6277   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6279     cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282
6283 /* Override any gcc2 internal prototype to avoid an error.  */
6284 #ifdef __cplusplus
6285 extern "C"
6286 #endif
6287 /* We use char because int might match the return type of a gcc2
6288    builtin and then its argument prototype would still apply.  */
6289 char com_err ();
6290 #ifdef F77_DUMMY_MAIN
6291 #  ifdef __cplusplus
6292      extern "C"
6293 #  endif
6294    int F77_DUMMY_MAIN() { return 1; }
6295 #endif
6296 int
6297 main ()
6298 {
6299 com_err ();
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest$ac_exeext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_search_com_err="-l$ac_lib"
6317 break
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 fi
6322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6323   done
6324 fi
6325 LIBS=$ac_func_search_save_LIBS
6326 fi
6327 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6328 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6329 if test "$ac_cv_search_com_err" != no; then
6330   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6331
6332 else
6333   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6334 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6335    { (exit 1); exit 1; }; }
6336 fi
6337
6338   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6339 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6340 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   ac_func_search_save_LIBS=$LIBS
6344 ac_cv_search_krb5_encrypt=no
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348
6349 /* Override any gcc2 internal prototype to avoid an error.  */
6350 #ifdef __cplusplus
6351 extern "C"
6352 #endif
6353 /* We use char because int might match the return type of a gcc2
6354    builtin and then its argument prototype would still apply.  */
6355 char krb5_encrypt ();
6356 #ifdef F77_DUMMY_MAIN
6357 #  ifdef __cplusplus
6358      extern "C"
6359 #  endif
6360    int F77_DUMMY_MAIN() { return 1; }
6361 #endif
6362 int
6363 main ()
6364 {
6365 krb5_encrypt ();
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372   (eval $ac_link) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } &&
6376          { ac_try='test -s conftest$ac_exeext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_cv_search_krb5_encrypt="none required"
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 if test "$ac_cv_search_krb5_encrypt" = no; then
6389   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6391     cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 #include "confdefs.h"
6394
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 #ifdef __cplusplus
6397 extern "C"
6398 #endif
6399 /* We use char because int might match the return type of a gcc2
6400    builtin and then its argument prototype would still apply.  */
6401 char krb5_encrypt ();
6402 #ifdef F77_DUMMY_MAIN
6403 #  ifdef __cplusplus
6404      extern "C"
6405 #  endif
6406    int F77_DUMMY_MAIN() { return 1; }
6407 #endif
6408 int
6409 main ()
6410 {
6411 krb5_encrypt ();
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418   (eval $ac_link) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest$ac_exeext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_search_krb5_encrypt="-l$ac_lib"
6429 break
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6433 fi
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6435   done
6436 fi
6437 LIBS=$ac_func_search_save_LIBS
6438 fi
6439 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6440 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6441 if test "$ac_cv_search_krb5_encrypt" != no; then
6442   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6443
6444 else
6445   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6446 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6447    { (exit 1); exit 1; }; }
6448 fi
6449
6450   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6451 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6452 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   ac_func_search_save_LIBS=$LIBS
6456 ac_cv_search_krb5_sendauth=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 #include "confdefs.h"
6460
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466    builtin and then its argument prototype would still apply.  */
6467 char krb5_sendauth ();
6468 #ifdef F77_DUMMY_MAIN
6469 #  ifdef __cplusplus
6470      extern "C"
6471 #  endif
6472    int F77_DUMMY_MAIN() { return 1; }
6473 #endif
6474 int
6475 main ()
6476 {
6477 krb5_sendauth ();
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484   (eval $ac_link) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); } &&
6488          { ac_try='test -s conftest$ac_exeext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_cv_search_krb5_sendauth="none required"
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6498 fi
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 if test "$ac_cv_search_krb5_sendauth" = no; then
6501   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6502     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6503     cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 #include "confdefs.h"
6506
6507 /* Override any gcc2 internal prototype to avoid an error.  */
6508 #ifdef __cplusplus
6509 extern "C"
6510 #endif
6511 /* We use char because int might match the return type of a gcc2
6512    builtin and then its argument prototype would still apply.  */
6513 char krb5_sendauth ();
6514 #ifdef F77_DUMMY_MAIN
6515 #  ifdef __cplusplus
6516      extern "C"
6517 #  endif
6518    int F77_DUMMY_MAIN() { return 1; }
6519 #endif
6520 int
6521 main ()
6522 {
6523 krb5_sendauth ();
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530   (eval $ac_link) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_search_krb5_sendauth="-l$ac_lib"
6541 break
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6545 fi
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547   done
6548 fi
6549 LIBS=$ac_func_search_save_LIBS
6550 fi
6551 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6552 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6553 if test "$ac_cv_search_krb5_sendauth" != no; then
6554   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6555
6556 else
6557   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6558 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6559    { (exit 1); exit 1; }; }
6560 fi
6561
6562 fi
6563
6564 if test "$with_openssl" = yes ; then
6565
6566 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6567 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6568 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lcrypto  $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576
6577 /* Override any gcc2 internal prototype to avoid an error.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 /* We use char because int might match the return type of a gcc2
6582    builtin and then its argument prototype would still apply.  */
6583 char CRYPTO_new_ex_data ();
6584 #ifdef F77_DUMMY_MAIN
6585 #  ifdef __cplusplus
6586      extern "C"
6587 #  endif
6588    int F77_DUMMY_MAIN() { return 1; }
6589 #endif
6590 int
6591 main ()
6592 {
6593 CRYPTO_new_ex_data ();
6594   ;
6595   return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600   (eval $ac_link) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -s conftest$ac_exeext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6615 fi
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6618 fi
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6620 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6621 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6622   cat >>confdefs.h <<_ACEOF
6623 #define HAVE_LIBCRYPTO 1
6624 _ACEOF
6625
6626   LIBS="-lcrypto $LIBS"
6627
6628 else
6629   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6630 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6631    { (exit 1); exit 1; }; }
6632 fi
6633
6634
6635 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6636 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6637 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lssl  $LIBS"
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6645
6646 /* Override any gcc2 internal prototype to avoid an error.  */
6647 #ifdef __cplusplus
6648 extern "C"
6649 #endif
6650 /* We use char because int might match the return type of a gcc2
6651    builtin and then its argument prototype would still apply.  */
6652 char SSL_library_init ();
6653 #ifdef F77_DUMMY_MAIN
6654 #  ifdef __cplusplus
6655      extern "C"
6656 #  endif
6657    int F77_DUMMY_MAIN() { return 1; }
6658 #endif
6659 int
6660 main ()
6661 {
6662 SSL_library_init ();
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669   (eval $ac_link) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); } &&
6673          { ac_try='test -s conftest$ac_exeext'
6674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675   (eval $ac_try) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); }; }; then
6679   ac_cv_lib_ssl_SSL_library_init=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ac_cv_lib_ssl_SSL_library_init=no
6684 fi
6685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6686 LIBS=$ac_check_lib_save_LIBS
6687 fi
6688 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6689 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6690 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6691   cat >>confdefs.h <<_ACEOF
6692 #define HAVE_LIBSSL 1
6693 _ACEOF
6694
6695   LIBS="-lssl $LIBS"
6696
6697 else
6698   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6699 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6700    { (exit 1); exit 1; }; }
6701 fi
6702
6703 fi
6704
6705 if test "$with_pam" = yes ; then
6706
6707 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6708 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6709 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   ac_check_lib_save_LIBS=$LIBS
6713 LIBS="-lpam  $LIBS"
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6717
6718 /* Override any gcc2 internal prototype to avoid an error.  */
6719 #ifdef __cplusplus
6720 extern "C"
6721 #endif
6722 /* We use char because int might match the return type of a gcc2
6723    builtin and then its argument prototype would still apply.  */
6724 char pam_start ();
6725 #ifdef F77_DUMMY_MAIN
6726 #  ifdef __cplusplus
6727      extern "C"
6728 #  endif
6729    int F77_DUMMY_MAIN() { return 1; }
6730 #endif
6731 int
6732 main ()
6733 {
6734 pam_start ();
6735   ;
6736   return 0;
6737 }
6738 _ACEOF
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741   (eval $ac_link) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -s conftest$ac_exeext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_cv_lib_pam_pam_start=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 ac_cv_lib_pam_pam_start=no
6756 fi
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6758 LIBS=$ac_check_lib_save_LIBS
6759 fi
6760 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6761 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6762 if test $ac_cv_lib_pam_pam_start = yes; then
6763   cat >>confdefs.h <<_ACEOF
6764 #define HAVE_LIBPAM 1
6765 _ACEOF
6766
6767   LIBS="-lpam $LIBS"
6768
6769 else
6770   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6771 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6772    { (exit 1); exit 1; }; }
6773 fi
6774
6775 fi
6776
6777
6778 ##
6779 ## Header files
6780 ##
6781
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6790 #include <stdlib.h>
6791 #include <stdarg.h>
6792 #include <string.h>
6793 #include <float.h>
6794
6795 _ACEOF
6796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798   ac_status=$?
6799   egrep -v '^ *\+' conftest.er1 >conftest.err
6800   rm -f conftest.er1
6801   cat conftest.err >&5
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); } >/dev/null; then
6804   if test -s conftest.err; then
6805     ac_cpp_err=$ac_c_preproc_warn_flag
6806   else
6807     ac_cpp_err=
6808   fi
6809 else
6810   ac_cpp_err=yes
6811 fi
6812 if test -z "$ac_cpp_err"; then
6813   ac_cv_header_stdc=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816   cat conftest.$ac_ext >&5
6817   ac_cv_header_stdc=no
6818 fi
6819 rm -f conftest.err conftest.$ac_ext
6820
6821 if test $ac_cv_header_stdc = yes; then
6822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823   cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6826 #include <string.h>
6827
6828 _ACEOF
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830   egrep "memchr" >/dev/null 2>&1; then
6831   :
6832 else
6833   ac_cv_header_stdc=no
6834 fi
6835 rm -f conftest*
6836
6837 fi
6838
6839 if test $ac_cv_header_stdc = yes; then
6840   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6841   cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6844 #include <stdlib.h>
6845
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848   egrep "free" >/dev/null 2>&1; then
6849   :
6850 else
6851   ac_cv_header_stdc=no
6852 fi
6853 rm -f conftest*
6854
6855 fi
6856
6857 if test $ac_cv_header_stdc = yes; then
6858   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859   if test "$cross_compiling" = yes; then
6860   :
6861 else
6862   cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6865 #include <ctype.h>
6866 #if ((' ' & 0x0FF) == 0x020)
6867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6869 #else
6870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6871                      || ('j' <= (c) && (c) <= 'r') \
6872                      || ('s' <= (c) && (c) <= 'z'))
6873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6874 #endif
6875
6876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6877 int
6878 main ()
6879 {
6880   int i;
6881   for (i = 0; i < 256; i++)
6882     if (XOR (islower (i), ISLOWER (i))
6883         || toupper (i) != TOUPPER (i))
6884       exit(2);
6885   exit (0);
6886 }
6887 _ACEOF
6888 rm -f conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890   (eval $ac_link) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   :
6900 else
6901   echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6904 ( exit $ac_status )
6905 ac_cv_header_stdc=no
6906 fi
6907 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6908 fi
6909 fi
6910 fi
6911 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6913 if test $ac_cv_header_stdc = yes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6917 _ACEOF
6918
6919 fi
6920
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932                   inttypes.h stdint.h unistd.h
6933 do
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6944
6945 #include <$ac_header>
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949   (eval $ac_compile) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); } &&
6953          { ac_try='test -s conftest.$ac_objext'
6954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955   (eval $ac_try) 2>&5
6956   ac_status=$?
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); }; }; then
6959   eval "$as_ac_Header=yes"
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 eval "$as_ac_Header=no"
6964 fi
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970   cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6972 _ACEOF
6973
6974 fi
6975
6976 done
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 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
7005 do
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008   echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 fi
7013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7015 else
7016   # Is the header compilable?
7017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022 $ac_includes_default
7023 #include <$ac_header>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027   (eval $ac_compile) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } &&
7031          { ac_try='test -s conftest.$ac_objext'
7032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033   (eval $ac_try) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; }; then
7037   ac_header_compiler=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 ac_header_compiler=no
7042 fi
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 #include "confdefs.h"
7053 #include <$ac_header>
7054 _ACEOF
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7057   ac_status=$?
7058   egrep -v '^ *\+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } >/dev/null; then
7063   if test -s conftest.err; then
7064     ac_cpp_err=$ac_c_preproc_warn_flag
7065   else
7066     ac_cpp_err=
7067   fi
7068 else
7069   ac_cpp_err=yes
7070 fi
7071 if test -z "$ac_cpp_err"; then
7072   ac_header_preproc=yes
7073 else
7074   echo "$as_me: failed program was:" >&5
7075   cat conftest.$ac_ext >&5
7076   ac_header_preproc=no
7077 fi
7078 rm -f conftest.err conftest.$ac_ext
7079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7080 echo "${ECHO_T}$ac_header_preproc" >&6
7081
7082 # So?  What about this header?
7083 case $ac_header_compiler:$ac_header_preproc in
7084   yes:no )
7085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7089   no:yes )
7090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7092     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7096 esac
7097 echo "$as_me:$LINENO: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   eval "$as_ac_Header=$ac_header_preproc"
7103 fi
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7106
7107 fi
7108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7109   cat >>confdefs.h <<_ACEOF
7110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 _ACEOF
7112
7113 fi
7114
7115 done
7116
7117
7118 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7119 # netinet/in.h is included first.
7120
7121 for ac_header in netinet/in.h
7122 do
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7125   echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 fi
7130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7132 else
7133   # Is the header compilable?
7134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 #include "confdefs.h"
7139 $ac_includes_default
7140 #include <$ac_header>
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -s conftest.$ac_objext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   ac_header_compiler=yes
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 ac_header_compiler=no
7159 fi
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7163
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 #include "confdefs.h"
7170 #include <$ac_header>
7171 _ACEOF
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7174   ac_status=$?
7175   egrep -v '^ *\+' conftest.er1 >conftest.err
7176   rm -f conftest.er1
7177   cat conftest.err >&5
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } >/dev/null; then
7180   if test -s conftest.err; then
7181     ac_cpp_err=$ac_c_preproc_warn_flag
7182   else
7183     ac_cpp_err=
7184   fi
7185 else
7186   ac_cpp_err=yes
7187 fi
7188 if test -z "$ac_cpp_err"; then
7189   ac_header_preproc=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192   cat conftest.$ac_ext >&5
7193   ac_header_preproc=no
7194 fi
7195 rm -f conftest.err conftest.$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7197 echo "${ECHO_T}$ac_header_preproc" >&6
7198
7199 # So?  What about this header?
7200 case $ac_header_compiler:$ac_header_preproc in
7201   yes:no )
7202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7206   no:yes )
7207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7209     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7213 esac
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   eval "$as_ac_Header=$ac_header_preproc"
7220 fi
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7223
7224 fi
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226   cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7228 _ACEOF
7229
7230 fi
7231
7232 done
7233
7234
7235 for ac_header in netinet/tcp.h
7236 do
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   cat >conftest.$ac_ext <<_ACEOF
7244 #line $LINENO "configure"
7245 #include "confdefs.h"
7246 $ac_includes_default
7247 #ifdef HAVE_NETINET_IN_H
7248 #include <netinet/in.h>
7249 #endif
7250
7251
7252 #include <$ac_header>
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   eval "$as_ac_Header=yes"
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 eval "$as_ac_Header=no"
7271 fi
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277   cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 _ACEOF
7280
7281 fi
7282
7283 done
7284
7285
7286 if test "$with_readline" = yes; then
7287
7288 for ac_header in readline/readline.h
7289 do
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292   echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 fi
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299 else
7300   # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311   (eval $ac_compile) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -s conftest.$ac_objext'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; }; then
7321   ac_header_compiler=yes
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7326 fi
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7330
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7338 _ACEOF
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7341   ac_status=$?
7342   egrep -v '^ *\+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } >/dev/null; then
7347   if test -s conftest.err; then
7348     ac_cpp_err=$ac_c_preproc_warn_flag
7349   else
7350     ac_cpp_err=
7351   fi
7352 else
7353   ac_cpp_err=yes
7354 fi
7355 if test -z "$ac_cpp_err"; then
7356   ac_header_preproc=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359   cat conftest.$ac_ext >&5
7360   ac_header_preproc=no
7361 fi
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7365
7366 # So?  What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7368   yes:no )
7369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7373   no:yes )
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7380 esac
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   eval "$as_ac_Header=$ac_header_preproc"
7387 fi
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390
7391 fi
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393   cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 _ACEOF
7396
7397 else
7398
7399 for ac_header in editline/readline.h
7400 do
7401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403   echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 fi
7408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7410 else
7411   # Is the header compilable?
7412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #include <$ac_header>
7419 _ACEOF
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422   (eval $ac_compile) 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } &&
7426          { ac_try='test -s conftest.$ac_objext'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; }; then
7432   ac_header_compiler=yes
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 ac_header_compiler=no
7437 fi
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6
7441
7442 # Is the header present?
7443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 #include "confdefs.h"
7448 #include <$ac_header>
7449 _ACEOF
7450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452   ac_status=$?
7453   egrep -v '^ *\+' conftest.er1 >conftest.err
7454   rm -f conftest.er1
7455   cat conftest.err >&5
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } >/dev/null; then
7458   if test -s conftest.err; then
7459     ac_cpp_err=$ac_c_preproc_warn_flag
7460   else
7461     ac_cpp_err=
7462   fi
7463 else
7464   ac_cpp_err=yes
7465 fi
7466 if test -z "$ac_cpp_err"; then
7467   ac_header_preproc=yes
7468 else
7469   echo "$as_me: failed program was:" >&5
7470   cat conftest.$ac_ext >&5
7471   ac_header_preproc=no
7472 fi
7473 rm -f conftest.err conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475 echo "${ECHO_T}$ac_header_preproc" >&6
7476
7477 # So?  What about this header?
7478 case $ac_header_compiler:$ac_header_preproc in
7479   yes:no )
7480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7484   no:yes )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7491 esac
7492 echo "$as_me:$LINENO: checking for $ac_header" >&5
7493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   eval "$as_ac_Header=$ac_header_preproc"
7498 fi
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501
7502 fi
7503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7504   cat >>confdefs.h <<_ACEOF
7505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7506 _ACEOF
7507
7508 else
7509
7510 for ac_header in readline.h
7511 do
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514   echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 fi
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7521 else
7522   # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -s conftest.$ac_objext'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; }; then
7543   ac_header_compiler=yes
7544 else
7545   echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7548 fi
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7552
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7560 _ACEOF
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7563   ac_status=$?
7564   egrep -v '^ *\+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } >/dev/null; then
7569   if test -s conftest.err; then
7570     ac_cpp_err=$ac_c_preproc_warn_flag
7571   else
7572     ac_cpp_err=
7573   fi
7574 else
7575   ac_cpp_err=yes
7576 fi
7577 if test -z "$ac_cpp_err"; then
7578   ac_header_preproc=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581   cat conftest.$ac_ext >&5
7582   ac_header_preproc=no
7583 fi
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7587
7588 # So?  What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7590   yes:no )
7591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7595   no:yes )
7596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7602 esac
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   eval "$as_ac_Header=$ac_header_preproc"
7609 fi
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7612
7613 fi
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615   cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 _ACEOF
7618
7619 else
7620   { { echo "$as_me:$LINENO: error: readline header not found
7621 If you have readline already installed, see config.log for details on the
7622 failure.  It is possible the compiler isn't looking in the proper directory.
7623 Use --without-readline to disable readline support." >&5
7624 echo "$as_me: error: readline header not found
7625 If you have readline already installed, see config.log for details on the
7626 failure.  It is possible the compiler isn't looking in the proper directory.
7627 Use --without-readline to disable readline support." >&2;}
7628    { (exit 1); exit 1; }; }
7629 fi
7630
7631 done
7632
7633 fi
7634
7635 done
7636
7637 fi
7638
7639 done
7640
7641
7642 for ac_header in readline/history.h
7643 do
7644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646   echo "$as_me:$LINENO: checking for $ac_header" >&5
7647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 fi
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7653 else
7654   # Is the header compilable?
7655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 $ac_includes_default
7661 #include <$ac_header>
7662 _ACEOF
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665   (eval $ac_compile) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -s conftest.$ac_objext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_header_compiler=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_header_compiler=no
7680 fi
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6
7684
7685 # Is the header present?
7686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7688 cat >conftest.$ac_ext <<_ACEOF
7689 #line $LINENO "configure"
7690 #include "confdefs.h"
7691 #include <$ac_header>
7692 _ACEOF
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7695   ac_status=$?
7696   egrep -v '^ *\+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } >/dev/null; then
7701   if test -s conftest.err; then
7702     ac_cpp_err=$ac_c_preproc_warn_flag
7703   else
7704     ac_cpp_err=
7705   fi
7706 else
7707   ac_cpp_err=yes
7708 fi
7709 if test -z "$ac_cpp_err"; then
7710   ac_header_preproc=yes
7711 else
7712   echo "$as_me: failed program was:" >&5
7713   cat conftest.$ac_ext >&5
7714   ac_header_preproc=no
7715 fi
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7719
7720 # So?  What about this header?
7721 case $ac_header_compiler:$ac_header_preproc in
7722   yes:no )
7723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7727   no:yes )
7728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7734 esac
7735 echo "$as_me:$LINENO: checking for $ac_header" >&5
7736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   eval "$as_ac_Header=$ac_header_preproc"
7741 fi
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744
7745 fi
7746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7747   cat >>confdefs.h <<_ACEOF
7748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749 _ACEOF
7750
7751 else
7752
7753 for ac_header in editline/history.h
7754 do
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757   echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 fi
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7764 else
7765   # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776   (eval $ac_compile) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_header_compiler=yes
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7791 fi
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7795
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7803 _ACEOF
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7806   ac_status=$?
7807   egrep -v '^ *\+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } >/dev/null; then
7812   if test -s conftest.err; then
7813     ac_cpp_err=$ac_c_preproc_warn_flag
7814   else
7815     ac_cpp_err=
7816   fi
7817 else
7818   ac_cpp_err=yes
7819 fi
7820 if test -z "$ac_cpp_err"; then
7821   ac_header_preproc=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824   cat conftest.$ac_ext >&5
7825   ac_header_preproc=no
7826 fi
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7830
7831 # So?  What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7833   yes:no )
7834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7838   no:yes )
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7845 esac
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   eval "$as_ac_Header=$ac_header_preproc"
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855
7856 fi
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858   cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 else
7863
7864 for ac_header in history.h
7865 do
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868   echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 fi
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7875 else
7876   # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887   (eval $ac_compile) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -s conftest.$ac_objext'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; }; then
7897   ac_header_compiler=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7902 fi
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7906
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7914 _ACEOF
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7917   ac_status=$?
7918   egrep -v '^ *\+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } >/dev/null; then
7923   if test -s conftest.err; then
7924     ac_cpp_err=$ac_c_preproc_warn_flag
7925   else
7926     ac_cpp_err=
7927   fi
7928 else
7929   ac_cpp_err=yes
7930 fi
7931 if test -z "$ac_cpp_err"; then
7932   ac_header_preproc=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935   cat conftest.$ac_ext >&5
7936   ac_header_preproc=no
7937 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7941
7942 # So?  What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7944   yes:no )
7945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7949   no:yes )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7956 esac
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   eval "$as_ac_Header=$ac_header_preproc"
7963 fi
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7966
7967 fi
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969   cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 _ACEOF
7972
7973 else
7974   { { echo "$as_me:$LINENO: error: history header not found
7975 If you have readline already installed, see config.log for details on the
7976 failure.  It is possible the compiler isn't looking in the proper directory.
7977 Use --without-readline to disable readline support." >&5
7978 echo "$as_me: error: history header not found
7979 If you have readline already installed, see config.log for details on the
7980 failure.  It is possible the compiler isn't looking in the proper directory.
7981 Use --without-readline to disable readline support." >&2;}
7982    { (exit 1); exit 1; }; }
7983 fi
7984
7985 done
7986
7987 fi
7988
7989 done
7990
7991 fi
7992
7993 done
7994
7995 fi
7996
7997 if test "$with_zlib" = yes; then
7998   if test "${ac_cv_header_zlib_h+set}" = set; then
7999   echo "$as_me:$LINENO: checking for zlib.h" >&5
8000 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_zlib_h+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8006 else
8007   # Is the header compilable?
8008 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8009 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8014 #include <zlib.h>
8015 _ACEOF
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018   (eval $ac_compile) 2>&5
8019   ac_status=$?
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -s conftest.$ac_objext'
8023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024   (eval $ac_try) 2>&5
8025   ac_status=$?
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); }; }; then
8028   ac_header_compiler=yes
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_header_compiler=no
8033 fi
8034 rm -f conftest.$ac_objext conftest.$ac_ext
8035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8036 echo "${ECHO_T}$ac_header_compiler" >&6
8037
8038 # Is the header present?
8039 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8040 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 #include "confdefs.h"
8044 #include <zlib.h>
8045 _ACEOF
8046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8048   ac_status=$?
8049   egrep -v '^ *\+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } >/dev/null; then
8054   if test -s conftest.err; then
8055     ac_cpp_err=$ac_c_preproc_warn_flag
8056   else
8057     ac_cpp_err=
8058   fi
8059 else
8060   ac_cpp_err=yes
8061 fi
8062 if test -z "$ac_cpp_err"; then
8063   ac_header_preproc=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066   cat conftest.$ac_ext >&5
8067   ac_header_preproc=no
8068 fi
8069 rm -f conftest.err conftest.$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071 echo "${ECHO_T}$ac_header_preproc" >&6
8072
8073 # So?  What about this header?
8074 case $ac_header_compiler:$ac_header_preproc in
8075   yes:no )
8076     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8077 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8080   no:yes )
8081     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8082 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8084 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8085     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8086 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8087 esac
8088 echo "$as_me:$LINENO: checking for zlib.h" >&5
8089 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8090 if test "${ac_cv_header_zlib_h+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   ac_cv_header_zlib_h=$ac_header_preproc
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8096 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8097
8098 fi
8099 if test $ac_cv_header_zlib_h = yes; then
8100   :
8101 else
8102   { { echo "$as_me:$LINENO: error: zlib header not found
8103 If you have zlib already installed, see config.log for details on the
8104 failure.  It is possible the compiler isn't looking in the proper directory.
8105 Use --without-zlib to disable zlib support." >&5
8106 echo "$as_me: error: zlib header not found
8107 If you have zlib already installed, see config.log for details on the
8108 failure.  It is possible the compiler isn't looking in the proper directory.
8109 Use --without-zlib to disable zlib support." >&2;}
8110    { (exit 1); exit 1; }; }
8111 fi
8112
8113
8114 fi
8115
8116 if test "$with_krb4" = yes ; then
8117   if test "${ac_cv_header_krb_h+set}" = set; then
8118   echo "$as_me:$LINENO: checking for krb.h" >&5
8119 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_krb_h+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8125 else
8126   # Is the header compilable?
8127 echo "$as_me:$LINENO: checking krb.h usability" >&5
8128 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8133 #include <krb.h>
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137   (eval $ac_compile) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   ac_header_compiler=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 ac_header_compiler=no
8152 fi
8153 rm -f conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8156
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking krb.h presence" >&5
8159 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 #include "confdefs.h"
8163 #include <krb.h>
8164 _ACEOF
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8167   ac_status=$?
8168   egrep -v '^ *\+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } >/dev/null; then
8173   if test -s conftest.err; then
8174     ac_cpp_err=$ac_c_preproc_warn_flag
8175   else
8176     ac_cpp_err=
8177   fi
8178 else
8179   ac_cpp_err=yes
8180 fi
8181 if test -z "$ac_cpp_err"; then
8182   ac_header_preproc=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185   cat conftest.$ac_ext >&5
8186   ac_header_preproc=no
8187 fi
8188 rm -f conftest.err conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8190 echo "${ECHO_T}$ac_header_preproc" >&6
8191
8192 # So?  What about this header?
8193 case $ac_header_compiler:$ac_header_preproc in
8194   yes:no )
8195     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8196 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8199   no:yes )
8200     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8201 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8202     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8203 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8204     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8206 esac
8207 echo "$as_me:$LINENO: checking for krb.h" >&5
8208 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_krb_h+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   ac_cv_header_krb_h=$ac_header_preproc
8213 fi
8214 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8215 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8216
8217 fi
8218 if test $ac_cv_header_krb_h = yes; then
8219   :
8220 else
8221   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8222 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8223    { (exit 1); exit 1; }; }
8224 fi
8225
8226
8227 fi
8228
8229 if test "$with_krb5" = yes ; then
8230   if test "${ac_cv_header_krb5_h+set}" = set; then
8231   echo "$as_me:$LINENO: checking for krb5.h" >&5
8232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_krb5_h+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8238 else
8239   # Is the header compilable?
8240 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #include <krb5.h>
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250   (eval $ac_compile) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_header_compiler=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8265 fi
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8269
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8272 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <krb5.h>
8277 _ACEOF
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8280   ac_status=$?
8281   egrep -v '^ *\+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } >/dev/null; then
8286   if test -s conftest.err; then
8287     ac_cpp_err=$ac_c_preproc_warn_flag
8288   else
8289     ac_cpp_err=
8290   fi
8291 else
8292   ac_cpp_err=yes
8293 fi
8294 if test -z "$ac_cpp_err"; then
8295   ac_header_preproc=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298   cat conftest.$ac_ext >&5
8299   ac_header_preproc=no
8300 fi
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8304
8305 # So?  What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8307   yes:no )
8308     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8312   no:yes )
8313     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8317     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8319 esac
8320 echo "$as_me:$LINENO: checking for krb5.h" >&5
8321 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_krb5_h+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   ac_cv_header_krb5_h=$ac_header_preproc
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8329
8330 fi
8331 if test $ac_cv_header_krb5_h = yes; then
8332   :
8333 else
8334   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8336    { (exit 1); exit 1; }; }
8337 fi
8338
8339
8340   if test "${ac_cv_header_com_err_h+set}" = set; then
8341   echo "$as_me:$LINENO: checking for com_err.h" >&5
8342 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_com_err_h+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8348 else
8349   # Is the header compilable?
8350 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8351 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <com_err.h>
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest.$ac_objext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_header_compiler=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8375 fi
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8379
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8382 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <com_err.h>
8387 _ACEOF
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390   ac_status=$?
8391   egrep -v '^ *\+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } >/dev/null; then
8396   if test -s conftest.err; then
8397     ac_cpp_err=$ac_c_preproc_warn_flag
8398   else
8399     ac_cpp_err=
8400   fi
8401 else
8402   ac_cpp_err=yes
8403 fi
8404 if test -z "$ac_cpp_err"; then
8405   ac_header_preproc=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   ac_header_preproc=no
8410 fi
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8414
8415 # So?  What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8417   yes:no )
8418     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8422   no:yes )
8423     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8429 esac
8430 echo "$as_me:$LINENO: checking for com_err.h" >&5
8431 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_com_err_h+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_cv_header_com_err_h=$ac_header_preproc
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8439
8440 fi
8441 if test $ac_cv_header_com_err_h = yes; then
8442   :
8443 else
8444   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8445 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8446    { (exit 1); exit 1; }; }
8447 fi
8448
8449
8450 fi
8451
8452 if test "$with_openssl" = yes ; then
8453   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8454   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8455 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8461 else
8462   # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8464 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <openssl/ssl.h>
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -s conftest.$ac_objext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483   ac_header_compiler=yes
8484 else
8485   echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8488 fi
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8492
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8495 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/ssl.h>
8500 _ACEOF
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503   ac_status=$?
8504   egrep -v '^ *\+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } >/dev/null; then
8509   if test -s conftest.err; then
8510     ac_cpp_err=$ac_c_preproc_warn_flag
8511   else
8512     ac_cpp_err=
8513   fi
8514 else
8515   ac_cpp_err=yes
8516 fi
8517 if test -z "$ac_cpp_err"; then
8518   ac_header_preproc=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   ac_header_preproc=no
8523 fi
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8527
8528 # So?  What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8530   yes:no )
8531     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8535   no:yes )
8536     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8542 esac
8543 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8544 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8552
8553 fi
8554 if test $ac_cv_header_openssl_ssl_h = yes; then
8555   :
8556 else
8557   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8559    { (exit 1); exit 1; }; }
8560 fi
8561
8562
8563   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8564   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8565 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8571 else
8572   # Is the header compilable?
8573 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8574 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <openssl/err.h>
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583   (eval $ac_compile) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } &&
8587          { ac_try='test -s conftest.$ac_objext'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; }; then
8593   ac_header_compiler=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8598 fi
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8602
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8605 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <openssl/err.h>
8610 _ACEOF
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8613   ac_status=$?
8614   egrep -v '^ *\+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } >/dev/null; then
8619   if test -s conftest.err; then
8620     ac_cpp_err=$ac_c_preproc_warn_flag
8621   else
8622     ac_cpp_err=
8623   fi
8624 else
8625   ac_cpp_err=yes
8626 fi
8627 if test -z "$ac_cpp_err"; then
8628   ac_header_preproc=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631   cat conftest.$ac_ext >&5
8632   ac_header_preproc=no
8633 fi
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8637
8638 # So?  What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8640   yes:no )
8641     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8645   no:yes )
8646     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8652 esac
8653 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8654 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_cv_header_openssl_err_h=$ac_header_preproc
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8662
8663 fi
8664 if test $ac_cv_header_openssl_err_h = yes; then
8665   :
8666 else
8667   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8668 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8669    { (exit 1); exit 1; }; }
8670 fi
8671
8672
8673 fi
8674
8675 if test "$with_pam" = yes ; then
8676
8677 for ac_header in security/pam_appl.h
8678 do
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681   echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 fi
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 else
8689   # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8694 #include "confdefs.h"
8695 $ac_includes_default
8696 #include <$ac_header>
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700   (eval $ac_compile) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -s conftest.$ac_objext'
8705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706   (eval $ac_try) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_header_compiler=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 ac_header_compiler=no
8715 fi
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718 echo "${ECHO_T}$ac_header_compiler" >&6
8719
8720 # Is the header present?
8721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 #include "confdefs.h"
8726 #include <$ac_header>
8727 _ACEOF
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8730   ac_status=$?
8731   egrep -v '^ *\+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } >/dev/null; then
8736   if test -s conftest.err; then
8737     ac_cpp_err=$ac_c_preproc_warn_flag
8738   else
8739     ac_cpp_err=
8740   fi
8741 else
8742   ac_cpp_err=yes
8743 fi
8744 if test -z "$ac_cpp_err"; then
8745   ac_header_preproc=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748   cat conftest.$ac_ext >&5
8749   ac_header_preproc=no
8750 fi
8751 rm -f conftest.err conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6
8754
8755 # So?  What about this header?
8756 case $ac_header_compiler:$ac_header_preproc in
8757   yes:no )
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8762   no:yes )
8763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8769 esac
8770 echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   eval "$as_ac_Header=$ac_header_preproc"
8776 fi
8777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8779
8780 fi
8781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8782   cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8784 _ACEOF
8785
8786 else
8787
8788 for ac_header in pam/pam_appl.h
8789 do
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792   echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 fi
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8799 else
8800   # Is the header compilable?
8801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <$ac_header>
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811   (eval $ac_compile) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); } &&
8815          { ac_try='test -s conftest.$ac_objext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_header_compiler=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8826 fi
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8830
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <$ac_header>
8838 _ACEOF
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8841   ac_status=$?
8842   egrep -v '^ *\+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } >/dev/null; then
8847   if test -s conftest.err; then
8848     ac_cpp_err=$ac_c_preproc_warn_flag
8849   else
8850     ac_cpp_err=
8851   fi
8852 else
8853   ac_cpp_err=yes
8854 fi
8855 if test -z "$ac_cpp_err"; then
8856   ac_header_preproc=yes
8857 else
8858   echo "$as_me: failed program was:" >&5
8859   cat conftest.$ac_ext >&5
8860   ac_header_preproc=no
8861 fi
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8865
8866 # So?  What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8868   yes:no )
8869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8873   no:yes )
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8880 esac
8881 echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   eval "$as_ac_Header=$ac_header_preproc"
8887 fi
8888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8890
8891 fi
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893   cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 _ACEOF
8896
8897 else
8898   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8899 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8900    { (exit 1); exit 1; }; }
8901 fi
8902
8903 done
8904
8905 fi
8906
8907 done
8908
8909 fi
8910
8911 if test "$with_rendezvous" = yes ; then
8912   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8913   echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8914 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8915 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8919 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8920 else
8921   # Is the header compilable?
8922 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8923 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932   (eval $ac_compile) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -s conftest.$ac_objext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_header_compiler=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8947 fi
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8951
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8954 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   egrep -v '^ *\+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970   else
8971     ac_cpp_err=
8972   fi
8973 else
8974   ac_cpp_err=yes
8975 fi
8976 if test -z "$ac_cpp_err"; then
8977   ac_header_preproc=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980   cat conftest.$ac_ext >&5
8981   ac_header_preproc=no
8982 fi
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8986
8987 # So?  What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8989   yes:no )
8990     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8994   no:yes )
8995     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9001 esac
9002 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9003 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9004 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9008 fi
9009 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9010 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9011
9012 fi
9013 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9014   :
9015 else
9016   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9017 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9018    { (exit 1); exit 1; }; }
9019 fi
9020
9021
9022 fi
9023
9024
9025 ##
9026 ## Types, structures, compiler characteristics
9027 ##
9028
9029
9030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9032 if test "${ac_cv_c_const+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9038
9039 #ifdef F77_DUMMY_MAIN
9040 #  ifdef __cplusplus
9041      extern "C"
9042 #  endif
9043    int F77_DUMMY_MAIN() { return 1; }
9044 #endif
9045 int
9046 main ()
9047 {
9048 /* FIXME: Include the comments suggested by Paul. */
9049 #ifndef __cplusplus
9050   /* Ultrix mips cc rejects this.  */
9051   typedef int charset[2];
9052   const charset x;
9053   /* SunOS 4.1.1 cc rejects this.  */
9054   char const *const *ccp;
9055   char **p;
9056   /* NEC SVR4.0.2 mips cc rejects this.  */
9057   struct point {int x, y;};
9058   static struct point const zero = {0,0};
9059   /* AIX XL C 1.02.0.0 rejects this.
9060      It does not let you subtract one const X* pointer from another in
9061      an arm of an if-expression whose if-part is not a constant
9062      expression */
9063   const char *g = "string";
9064   ccp = &g + (g ? g-g : 0);
9065   /* HPUX 7.0 cc rejects these. */
9066   ++ccp;
9067   p = (char**) ccp;
9068   ccp = (char const *const *) p;
9069   { /* SCO 3.2v4 cc rejects this.  */
9070     char *t;
9071     char const *s = 0 ? (char *) 0 : (char const *) 0;
9072
9073     *t++ = 0;
9074   }
9075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9076     int x[] = {25, 17};
9077     const int *foo = &x[0];
9078     ++foo;
9079   }
9080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081     typedef const int *iptr;
9082     iptr p = 0;
9083     ++p;
9084   }
9085   { /* AIX XL C 1.02.0.0 rejects this saying
9086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087     struct s { int j; const int *ap[3]; };
9088     struct s *b; b->j = 5;
9089   }
9090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9091     const int foo = 10;
9092   }
9093 #endif
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -s conftest.$ac_objext'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   ac_cv_c_const=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9115 ac_cv_c_const=no
9116 fi
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9120 echo "${ECHO_T}$ac_cv_c_const" >&6
9121 if test $ac_cv_c_const = no; then
9122
9123 cat >>confdefs.h <<\_ACEOF
9124 #define const
9125 _ACEOF
9126
9127 fi
9128
9129 echo "$as_me:$LINENO: checking for inline" >&5
9130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9131 if test "${ac_cv_c_inline+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   ac_cv_c_inline=no
9135 for ac_kw in inline __inline__ __inline; do
9136   cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 #include "confdefs.h"
9139 #ifndef __cplusplus
9140 typedef int foo_t;
9141 static $ac_kw foo_t static_foo () {return 0; }
9142 $ac_kw int foo () {return 0; }
9143 #endif
9144
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148   (eval $ac_compile) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -s conftest.$ac_objext'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; }; then
9158   ac_cv_c_inline=$ac_kw; break
9159 else
9160   echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 fi
9163 rm -f conftest.$ac_objext conftest.$ac_ext
9164 done
9165
9166 fi
9167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9168 echo "${ECHO_T}$ac_cv_c_inline" >&6
9169 case $ac_cv_c_inline in
9170   inline | yes) ;;
9171   no)
9172 cat >>confdefs.h <<\_ACEOF
9173 #define inline
9174 _ACEOF
9175  ;;
9176   *)  cat >>confdefs.h <<_ACEOF
9177 #define inline $ac_cv_c_inline
9178 _ACEOF
9179  ;;
9180 esac
9181
9182 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9183 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9184 if test "${ac_cv_c_stringize+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9190 #define x(y) #y
9191
9192 char *s = x(teststring);
9193 _ACEOF
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195   egrep "#teststring" >/dev/null 2>&1; then
9196   ac_cv_c_stringize=no
9197 else
9198   ac_cv_c_stringize=yes
9199 fi
9200 rm -f conftest*
9201
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9204 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9205 if test $ac_cv_c_stringize = yes; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_STRINGIZE 1
9209 _ACEOF
9210
9211 fi
9212
9213 echo "$as_me:$LINENO: checking for signed types" >&5
9214 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9215 if test "${pgac_cv_c_signed+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9221
9222 #ifdef F77_DUMMY_MAIN
9223 #  ifdef __cplusplus
9224      extern "C"
9225 #  endif
9226    int F77_DUMMY_MAIN() { return 1; }
9227 #endif
9228 int
9229 main ()
9230 {
9231 signed char c; signed short s; signed int i;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238   (eval $ac_compile) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } &&
9242          { ac_try='test -s conftest.$ac_objext'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; }; then
9248   pgac_cv_c_signed=yes
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 pgac_cv_c_signed=no
9253 fi
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9257 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9258 if test x"$pgac_cv_c_signed" = xno ; then
9259
9260 cat >>confdefs.h <<\_ACEOF
9261 #define signed
9262 _ACEOF
9263
9264 fi
9265 echo "$as_me:$LINENO: checking for working volatile" >&5
9266 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9267 if test "${ac_cv_c_volatile+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9273
9274 #ifdef F77_DUMMY_MAIN
9275 #  ifdef __cplusplus
9276      extern "C"
9277 #  endif
9278    int F77_DUMMY_MAIN() { return 1; }
9279 #endif
9280 int
9281 main ()
9282 {
9283
9284 volatile int x;
9285 int * volatile y;
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292   (eval $ac_compile) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } &&
9296          { ac_try='test -s conftest.$ac_objext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_c_volatile=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 ac_cv_c_volatile=no
9307 fi
9308 rm -f conftest.$ac_objext conftest.$ac_ext
9309 fi
9310 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9311 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9312 if test $ac_cv_c_volatile = no; then
9313
9314 cat >>confdefs.h <<\_ACEOF
9315 #define volatile
9316 _ACEOF
9317
9318 fi
9319
9320 echo "$as_me:$LINENO: checking for __func__" >&5
9321 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9322 if test "${pgac_cv_funcname_func_support+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9328 #include <stdio.h>
9329 #ifdef F77_DUMMY_MAIN
9330 #  ifdef __cplusplus
9331      extern "C"
9332 #  endif
9333    int F77_DUMMY_MAIN() { return 1; }
9334 #endif
9335 int
9336 main ()
9337 {
9338 printf("%s\n", __func__);
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345   (eval $ac_compile) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } &&
9349          { ac_try='test -s conftest.$ac_objext'
9350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351   (eval $ac_try) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   pgac_cv_funcname_func_support=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 pgac_cv_funcname_func_support=no
9360 fi
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9364 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9365 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9366
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_FUNCNAME__FUNC 1
9369 _ACEOF
9370
9371 else
9372 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9373 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9374 if test "${pgac_cv_funcname_function_support+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   cat >conftest.$ac_ext <<_ACEOF
9378 #line $LINENO "configure"
9379 #include "confdefs.h"
9380 #include <stdio.h>
9381 #ifdef F77_DUMMY_MAIN
9382 #  ifdef __cplusplus
9383      extern "C"
9384 #  endif
9385    int F77_DUMMY_MAIN() { return 1; }
9386 #endif
9387 int
9388 main ()
9389 {
9390 printf("%s\n", __FUNCTION__);
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397   (eval $ac_compile) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -s conftest.$ac_objext'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; }; then
9407   pgac_cv_funcname_function_support=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 pgac_cv_funcname_function_support=no
9412 fi
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9416 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9417 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9418
9419 cat >>confdefs.h <<\_ACEOF
9420 #define HAVE_FUNCNAME__FUNCTION 1
9421 _ACEOF
9422
9423 fi
9424 fi
9425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9427 if test "${ac_cv_struct_tm+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9434 #include <time.h>
9435
9436 #ifdef F77_DUMMY_MAIN
9437 #  ifdef __cplusplus
9438      extern "C"
9439 #  endif
9440    int F77_DUMMY_MAIN() { return 1; }
9441 #endif
9442 int
9443 main ()
9444 {
9445 struct tm *tp; tp->tm_sec;
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452   (eval $ac_compile) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -s conftest.$ac_objext'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; }; then
9462   ac_cv_struct_tm=time.h
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 ac_cv_struct_tm=sys/time.h
9467 fi
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9469 fi
9470 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9471 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9472 if test $ac_cv_struct_tm = sys/time.h; then
9473
9474 cat >>confdefs.h <<\_ACEOF
9475 #define TM_IN_SYS_TIME 1
9476 _ACEOF
9477
9478 fi
9479
9480 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9481 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9482 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <$ac_cv_struct_tm>
9490
9491
9492 #ifdef F77_DUMMY_MAIN
9493 #  ifdef __cplusplus
9494      extern "C"
9495 #  endif
9496    int F77_DUMMY_MAIN() { return 1; }
9497 #endif
9498 int
9499 main ()
9500 {
9501 static struct tm ac_aggr;
9502 if (ac_aggr.tm_zone)
9503 return 0;
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510   (eval $ac_compile) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); } &&
9514          { ac_try='test -s conftest.$ac_objext'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   ac_cv_member_struct_tm_tm_zone=yes
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 ac_cv_member_struct_tm_tm_zone=no
9525 fi
9526 rm -f conftest.$ac_objext conftest.$ac_ext
9527 fi
9528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9531
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE_STRUCT_TM_TM_ZONE 1
9534 _ACEOF
9535
9536
9537 fi
9538
9539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9540
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_TM_ZONE 1
9543 _ACEOF
9544
9545 fi
9546 echo "$as_me:$LINENO: checking for tzname" >&5
9547 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9548 if test "${ac_cv_var_tzname+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9553 #include "confdefs.h"
9554 #include <time.h>
9555 #ifndef tzname /* For SGI.  */
9556 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9557 #endif
9558
9559 #ifdef F77_DUMMY_MAIN
9560 #  ifdef __cplusplus
9561      extern "C"
9562 #  endif
9563    int F77_DUMMY_MAIN() { return 1; }
9564 #endif
9565 int
9566 main ()
9567 {
9568 atoi(*tzname);
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } &&
9579          { ac_try='test -s conftest$ac_exeext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_var_tzname=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 ac_cv_var_tzname=no
9590 fi
9591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9594 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9595 if test $ac_cv_var_tzname = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_TZNAME 1
9599 _ACEOF
9600
9601 fi
9602
9603 echo "$as_me:$LINENO: checking for union semun" >&5
9604 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9605 if test "${ac_cv_type_union_semun+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 #include <sys/types.h>
9612 #include <sys/ipc.h>
9613 #include <sys/sem.h>
9614
9615 #ifdef F77_DUMMY_MAIN
9616 #  ifdef __cplusplus
9617      extern "C"
9618 #  endif
9619    int F77_DUMMY_MAIN() { return 1; }
9620 #endif
9621 int
9622 main ()
9623 {
9624 if ((union semun *) 0)
9625   return 0;
9626 if (sizeof (union semun))
9627   return 0;
9628   ;
9629   return 0;
9630 }
9631 _ACEOF
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634   (eval $ac_compile) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } &&
9638          { ac_try='test -s conftest.$ac_objext'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   ac_cv_type_union_semun=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 ac_cv_type_union_semun=no
9649 fi
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9653 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9654 if test $ac_cv_type_union_semun = yes; then
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_UNION_SEMUN 1
9658 _ACEOF
9659
9660
9661 fi
9662
9663 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9664 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9665 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 #include <sys/types.h>
9672 #ifdef HAVE_SYS_UN_H
9673 #include <sys/un.h>
9674 #endif
9675
9676
9677 #ifdef F77_DUMMY_MAIN
9678 #  ifdef __cplusplus
9679      extern "C"
9680 #  endif
9681    int F77_DUMMY_MAIN() { return 1; }
9682 #endif
9683 int
9684 main ()
9685 {
9686 if ((struct sockaddr_un *) 0)
9687   return 0;
9688 if (sizeof (struct sockaddr_un))
9689   return 0;
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696   (eval $ac_compile) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } &&
9700          { ac_try='test -s conftest.$ac_objext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_type_struct_sockaddr_un=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_type_struct_sockaddr_un=no
9711 fi
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9715 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9716 if test $ac_cv_type_struct_sockaddr_un = yes; then
9717
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_STRUCT_SOCKADDR_UN 1
9720 _ACEOF
9721
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_UNIX_SOCKETS 1
9725 _ACEOF
9726
9727 fi
9728
9729 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9730 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9731 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9738 #ifdef HAVE_SYS_SOCKET_H
9739 #include <sys/socket.h>
9740 #endif
9741
9742
9743 #ifdef F77_DUMMY_MAIN
9744 #  ifdef __cplusplus
9745      extern "C"
9746 #  endif
9747    int F77_DUMMY_MAIN() { return 1; }
9748 #endif
9749 int
9750 main ()
9751 {
9752 if ((struct sockaddr_storage *) 0)
9753   return 0;
9754 if (sizeof (struct sockaddr_storage))
9755   return 0;
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762   (eval $ac_compile) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -s conftest.$ac_objext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_type_struct_sockaddr_storage=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockaddr_storage=no
9777 fi
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9782 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9783
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9786 _ACEOF
9787
9788
9789 fi
9790
9791 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9792 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9793 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800 #ifdef HAVE_SYS_SOCKET_H
9801 #include <sys/socket.h>
9802 #endif
9803
9804
9805 #ifdef F77_DUMMY_MAIN
9806 #  ifdef __cplusplus
9807      extern "C"
9808 #  endif
9809    int F77_DUMMY_MAIN() { return 1; }
9810 #endif
9811 int
9812 main ()
9813 {
9814 static struct sockaddr_storage ac_aggr;
9815 if (ac_aggr.ss_family)
9816 return 0;
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823   (eval $ac_compile) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -s conftest.$ac_objext'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; }; then
9833   ac_cv_member_struct_sockaddr_storage_ss_family=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_cv_member_struct_sockaddr_storage_ss_family=no
9838 fi
9839 rm -f conftest.$ac_objext conftest.$ac_ext
9840 fi
9841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9843 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9844
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9847 _ACEOF
9848
9849
9850 fi
9851 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9852 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9853 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #ifdef HAVE_SYS_SOCKET_H
9861 #include <sys/socket.h>
9862 #endif
9863
9864
9865 #ifdef F77_DUMMY_MAIN
9866 #  ifdef __cplusplus
9867      extern "C"
9868 #  endif
9869    int F77_DUMMY_MAIN() { return 1; }
9870 #endif
9871 int
9872 main ()
9873 {
9874 static struct sockaddr_storage ac_aggr;
9875 if (ac_aggr.__ss_family)
9876 return 0;
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883   (eval $ac_compile) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -s conftest.$ac_objext'
9888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889   (eval $ac_try) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893   ac_cv_member_struct_sockaddr_storage___ss_family=yes
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 ac_cv_member_struct_sockaddr_storage___ss_family=no
9898 fi
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9900 fi
9901 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9902 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9903 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9904
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9907 _ACEOF
9908
9909
9910 fi
9911 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9912 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9913 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #ifdef HAVE_SYS_SOCKET_H
9921 #include <sys/socket.h>
9922 #endif
9923
9924
9925 #ifdef F77_DUMMY_MAIN
9926 #  ifdef __cplusplus
9927      extern "C"
9928 #  endif
9929    int F77_DUMMY_MAIN() { return 1; }
9930 #endif
9931 int
9932 main ()
9933 {
9934 static struct sockaddr_storage ac_aggr;
9935 if (ac_aggr.ss_len)
9936 return 0;
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943   (eval $ac_compile) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -s conftest.$ac_objext'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; }; then
9953   ac_cv_member_struct_sockaddr_storage_ss_len=yes
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_struct_sockaddr_storage_ss_len=no
9958 fi
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9960 fi
9961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9962 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9963 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9964
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9967 _ACEOF
9968
9969
9970 fi
9971 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9972 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9973 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #ifdef HAVE_SYS_SOCKET_H
9981 #include <sys/socket.h>
9982 #endif
9983
9984
9985 #ifdef F77_DUMMY_MAIN
9986 #  ifdef __cplusplus
9987      extern "C"
9988 #  endif
9989    int F77_DUMMY_MAIN() { return 1; }
9990 #endif
9991 int
9992 main ()
9993 {
9994 static struct sockaddr_storage ac_aggr;
9995 if (ac_aggr.__ss_len)
9996 return 0;
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003   (eval $ac_compile) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -s conftest.$ac_objext'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   ac_cv_member_struct_sockaddr_storage___ss_len=yes
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_member_struct_sockaddr_storage___ss_len=no
10018 fi
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10020 fi
10021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10022 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10023 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10027 _ACEOF
10028
10029
10030 fi
10031 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10032 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10033 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #ifdef HAVE_SYS_SOCKET_H
10041 #include <sys/socket.h>
10042 #endif
10043
10044
10045 #ifdef F77_DUMMY_MAIN
10046 #  ifdef __cplusplus
10047      extern "C"
10048 #  endif
10049    int F77_DUMMY_MAIN() { return 1; }
10050 #endif
10051 int
10052 main ()
10053 {
10054 static struct sockaddr ac_aggr;
10055 if (ac_aggr.sa_len)
10056 return 0;
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063   (eval $ac_compile) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -s conftest.$ac_objext'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_member_struct_sockaddr_sa_len=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_member_struct_sockaddr_sa_len=no
10078 fi
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10082 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10083 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10084
10085 cat >>confdefs.h <<_ACEOF
10086 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10087 _ACEOF
10088
10089
10090 fi
10091
10092 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10093 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10101 #include <sys/socket.h>
10102 #include <netdb.h>
10103
10104
10105 #ifdef F77_DUMMY_MAIN
10106 #  ifdef __cplusplus
10107      extern "C"
10108 #  endif
10109    int F77_DUMMY_MAIN() { return 1; }
10110 #endif
10111 int
10112 main ()
10113 {
10114 if ((struct addrinfo *) 0)
10115   return 0;
10116 if (sizeof (struct addrinfo))
10117   return 0;
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } &&
10128          { ac_try='test -s conftest.$ac_objext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   ac_cv_type_struct_addrinfo=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_addrinfo=no
10139 fi
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10144 if test $ac_cv_type_struct_addrinfo = yes; then
10145
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_ADDRINFO 1
10148 _ACEOF
10149
10150
10151 fi
10152
10153
10154 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10155 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10156 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #include <sys/param.h>
10163 #include <sys/types.h>
10164 #include <sys/socket.h>
10165 #include <sys/ucred.h>
10166
10167 #ifdef F77_DUMMY_MAIN
10168 #  ifdef __cplusplus
10169      extern "C"
10170 #  endif
10171    int F77_DUMMY_MAIN() { return 1; }
10172 #endif
10173 int
10174 main ()
10175 {
10176 if ((struct cmsgcred *) 0)
10177   return 0;
10178 if (sizeof (struct cmsgcred))
10179   return 0;
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186   (eval $ac_compile) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } &&
10190          { ac_try='test -s conftest.$ac_objext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   ac_cv_type_struct_cmsgcred=yes
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 ac_cv_type_struct_cmsgcred=no
10201 fi
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10203 fi
10204 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10205 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10206 if test $ac_cv_type_struct_cmsgcred = yes; then
10207
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_STRUCT_CMSGCRED 1
10210 _ACEOF
10211
10212
10213 fi
10214 echo "$as_me:$LINENO: checking for struct fcred" >&5
10215 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10216 if test "${ac_cv_type_struct_fcred+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 #include <sys/param.h>
10223 #include <sys/types.h>
10224 #include <sys/socket.h>
10225 #include <sys/ucred.h>
10226
10227 #ifdef F77_DUMMY_MAIN
10228 #  ifdef __cplusplus
10229      extern "C"
10230 #  endif
10231    int F77_DUMMY_MAIN() { return 1; }
10232 #endif
10233 int
10234 main ()
10235 {
10236 if ((struct fcred *) 0)
10237   return 0;
10238 if (sizeof (struct fcred))
10239   return 0;
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246   (eval $ac_compile) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -s conftest.$ac_objext'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; }; then
10256   ac_cv_type_struct_fcred=yes
10257 else
10258   echo "$as_me: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 ac_cv_type_struct_fcred=no
10261 fi
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10263 fi
10264 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10265 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10266 if test $ac_cv_type_struct_fcred = yes; then
10267
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_STRUCT_FCRED 1
10270 _ACEOF
10271
10272
10273 fi
10274 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10275 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10276 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 #include "confdefs.h"
10282 #include <sys/param.h>
10283 #include <sys/types.h>
10284 #include <sys/socket.h>
10285 #include <sys/ucred.h>
10286
10287 #ifdef F77_DUMMY_MAIN
10288 #  ifdef __cplusplus
10289      extern "C"
10290 #  endif
10291    int F77_DUMMY_MAIN() { return 1; }
10292 #endif
10293 int
10294 main ()
10295 {
10296 if ((struct sockcred *) 0)
10297   return 0;
10298 if (sizeof (struct sockcred))
10299   return 0;
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306   (eval $ac_compile) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -s conftest.$ac_objext'
10311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312   (eval $ac_try) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; }; then
10316   ac_cv_type_struct_sockcred=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_type_struct_sockcred=no
10321 fi
10322 rm -f conftest.$ac_objext conftest.$ac_ext
10323 fi
10324 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10325 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10326 if test $ac_cv_type_struct_sockcred = yes; then
10327
10328 cat >>confdefs.h <<_ACEOF
10329 #define HAVE_STRUCT_SOCKCRED 1
10330 _ACEOF
10331
10332
10333 fi
10334
10335
10336 echo "$as_me:$LINENO: checking for struct option" >&5
10337 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_option+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344 #ifdef HAVE_GETOPT_H
10345 #include <getopt.h>
10346 #endif
10347
10348 #ifdef F77_DUMMY_MAIN
10349 #  ifdef __cplusplus
10350      extern "C"
10351 #  endif
10352    int F77_DUMMY_MAIN() { return 1; }
10353 #endif
10354 int
10355 main ()
10356 {
10357 if ((struct option *) 0)
10358   return 0;
10359 if (sizeof (struct option))
10360   return 0;
10361   ;
10362   return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367   (eval $ac_compile) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } &&
10371          { ac_try='test -s conftest.$ac_objext'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_cv_type_struct_option=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 ac_cv_type_struct_option=no
10382 fi
10383 rm -f conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10386 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10387 if test $ac_cv_type_struct_option = yes; then
10388
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_OPTION 1
10391 _ACEOF
10392
10393
10394 fi
10395
10396
10397 if test "$with_zlib" = yes; then
10398   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10399   # did not).  While we could work around the lack of z_streamp, it
10400   # seems unwise to encourage people to use such old zlib versions...
10401   echo "$as_me:$LINENO: checking for z_streamp" >&5
10402 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10403 if test "${ac_cv_type_z_streamp+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10409 #include <zlib.h>
10410
10411 #ifdef F77_DUMMY_MAIN
10412 #  ifdef __cplusplus
10413      extern "C"
10414 #  endif
10415    int F77_DUMMY_MAIN() { return 1; }
10416 #endif
10417 int
10418 main ()
10419 {
10420 if ((z_streamp *) 0)
10421   return 0;
10422 if (sizeof (z_streamp))
10423   return 0;
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430   (eval $ac_compile) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } &&
10434          { ac_try='test -s conftest.$ac_objext'
10435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436   (eval $ac_try) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; }; then
10440   ac_cv_type_z_streamp=yes
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 ac_cv_type_z_streamp=no
10445 fi
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10447 fi
10448 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10449 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10450 if test $ac_cv_type_z_streamp = yes; then
10451   :
10452 else
10453   { { echo "$as_me:$LINENO: error: zlib version is too old
10454 Use --without-zlib to disable zlib support." >&5
10455 echo "$as_me: error: zlib version is too old
10456 Use --without-zlib to disable zlib support." >&2;}
10457    { (exit 1); exit 1; }; }
10458 fi
10459
10460 fi
10461
10462 if test "$with_krb5" = yes; then
10463 # Check for differences between MIT and Heimdal (KTH) releases
10464   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10465 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10466 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 #include <krb5.h>
10473
10474 #ifdef F77_DUMMY_MAIN
10475 #  ifdef __cplusplus
10476      extern "C"
10477 #  endif
10478    int F77_DUMMY_MAIN() { return 1; }
10479 #endif
10480 int
10481 main ()
10482 {
10483 static krb5_ticket ac_aggr;
10484 if (ac_aggr.enc_part2)
10485 return 0;
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492   (eval $ac_compile) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } &&
10496          { ac_try='test -s conftest.$ac_objext'
10497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498   (eval $ac_try) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; }; then
10502   ac_cv_member_krb5_ticket_enc_part2=yes
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 ac_cv_member_krb5_ticket_enc_part2=no
10507 fi
10508 rm -f conftest.$ac_objext conftest.$ac_ext
10509 fi
10510 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10511 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10512 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_KRB5_TICKET_ENC_PART2 1
10516 _ACEOF
10517
10518
10519 else
10520   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10521 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10522 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 #include "confdefs.h"
10528 #include <krb5.h>
10529
10530 #ifdef F77_DUMMY_MAIN
10531 #  ifdef __cplusplus
10532      extern "C"
10533 #  endif
10534    int F77_DUMMY_MAIN() { return 1; }
10535 #endif
10536 int
10537 main ()
10538 {
10539 static krb5_ticket ac_aggr;
10540 if (ac_aggr.client)
10541 return 0;
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } &&
10552          { ac_try='test -s conftest.$ac_objext'
10553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   ac_cv_member_krb5_ticket_client=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_member_krb5_ticket_client=no
10563 fi
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10567 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10568 if test $ac_cv_member_krb5_ticket_client = yes; then
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_KRB5_TICKET_CLIENT 1
10572 _ACEOF
10573
10574
10575 else
10576   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10577 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10578    { (exit 1); exit 1; }; }
10579 fi
10580
10581 fi
10582
10583   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10584 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10585 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588   cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 #include "confdefs.h"
10591 #include <krb5.h>
10592
10593 #ifdef F77_DUMMY_MAIN
10594 #  ifdef __cplusplus
10595      extern "C"
10596 #  endif
10597    int F77_DUMMY_MAIN() { return 1; }
10598 #endif
10599 int
10600 main ()
10601 {
10602 static krb5_error ac_aggr;
10603 if (ac_aggr.text.data)
10604 return 0;
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -s conftest.$ac_objext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_cv_member_krb5_error_text_data=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_cv_member_krb5_error_text_data=no
10626 fi
10627 rm -f conftest.$ac_objext conftest.$ac_ext
10628 fi
10629 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10630 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10631 if test $ac_cv_member_krb5_error_text_data = yes; then
10632
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10635 _ACEOF
10636
10637
10638 else
10639   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10640 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10641 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 #include <krb5.h>
10648
10649 #ifdef F77_DUMMY_MAIN
10650 #  ifdef __cplusplus
10651      extern "C"
10652 #  endif
10653    int F77_DUMMY_MAIN() { return 1; }
10654 #endif
10655 int
10656 main ()
10657 {
10658 static krb5_error ac_aggr;
10659 if (ac_aggr.e_data)
10660 return 0;
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667   (eval $ac_compile) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_member_krb5_error_e_data=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 ac_cv_member_krb5_error_e_data=no
10682 fi
10683 rm -f conftest.$ac_objext conftest.$ac_ext
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10686 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10687 if test $ac_cv_member_krb5_error_e_data = yes; then
10688
10689 cat >>confdefs.h <<_ACEOF
10690 #define HAVE_KRB5_ERROR_E_DATA 1
10691 _ACEOF
10692
10693
10694 else
10695   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10696 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10697    { (exit 1); exit 1; }; }
10698 fi
10699
10700 fi
10701
10702 fi
10703
10704
10705 ##
10706 ## Functions, global variables
10707 ##
10708
10709 echo "$as_me:$LINENO: checking for int timezone" >&5
10710 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10711 if test "${pgac_cv_var_int_timezone+set}" = set; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10717 #include <time.h>
10718 int res;
10719 #ifdef F77_DUMMY_MAIN
10720 #  ifdef __cplusplus
10721      extern "C"
10722 #  endif
10723    int F77_DUMMY_MAIN() { return 1; }
10724 #endif
10725 int
10726 main ()
10727 {
10728 res = timezone / 60;
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735   (eval $ac_link) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); } &&
10739          { ac_try='test -s conftest$ac_exeext'
10740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741   (eval $ac_try) 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; }; then
10745   pgac_cv_var_int_timezone=yes
10746 else
10747   echo "$as_me: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 pgac_cv_var_int_timezone=no
10750 fi
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10752 fi
10753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10754 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10755 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_INT_TIMEZONE
10759 _ACEOF
10760
10761 fi
10762 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10763 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10764  if test "${ac_cv_func_accept_return+set}" = set; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767    if test "${ac_cv_func_accept_arg1+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770     if test "${ac_cv_func_accept_arg2+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773      if test "${ac_cv_func_accept_arg3+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10777       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10778        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10779         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10780          cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10783 #ifdef HAVE_SYS_TYPES_H
10784 #include <sys/types.h>
10785 #endif
10786 #ifdef HAVE_SYS_SOCKET_H
10787 #include <sys/socket.h>
10788 #endif
10789 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10790 #ifdef F77_DUMMY_MAIN
10791 #  ifdef __cplusplus
10792      extern "C"
10793 #  endif
10794    int F77_DUMMY_MAIN() { return 1; }
10795 #endif
10796 int
10797 main ()
10798 {
10799
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806   (eval $ac_compile) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -s conftest.$ac_objext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_not_found=no; break 4
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 ac_not_found=yes
10821 fi
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10823        done
10824       done
10825      done
10826     done
10827     if test "$ac_not_found" = yes; then
10828       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10829 echo "$as_me: error: could not determine argument types" >&2;}
10830    { (exit 1); exit 1; }; }
10831     fi
10832     if test "$ac_cv_func_accept_arg3" = "void"; then
10833       ac_cv_func_accept_arg3=int
10834     fi
10835
10836 fi
10837
10838 fi
10839
10840 fi
10841
10842 fi
10843  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
10844 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10845
10846 cat >>confdefs.h <<_ACEOF
10847 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10848 _ACEOF
10849
10850
10851 cat >>confdefs.h <<_ACEOF
10852 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10853 _ACEOF
10854
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10858 _ACEOF
10859
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10863 _ACEOF
10864
10865
10866 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10867 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10868 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 #include "confdefs.h"
10874 #include <sys/time.h>
10875 #ifdef F77_DUMMY_MAIN
10876 #  ifdef __cplusplus
10877      extern "C"
10878 #  endif
10879    int F77_DUMMY_MAIN() { return 1; }
10880 #endif
10881 int
10882 main ()
10883 {
10884 struct timeval *tp;
10885 struct timezone *tzp;
10886 gettimeofday(tp,tzp);
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893   (eval $ac_compile) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -s conftest.$ac_objext'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; }; then
10903   pgac_cv_func_gettimeofday_1arg=no
10904 else
10905   echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 pgac_cv_func_gettimeofday_1arg=yes
10908 fi
10909 rm -f conftest.$ac_objext conftest.$ac_ext
10910 fi
10911 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10912 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10913 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10914
10915 cat >>confdefs.h <<\_ACEOF
10916 #define GETTIMEOFDAY_1ARG
10917 _ACEOF
10918
10919 fi
10920
10921
10922
10923 # SunOS doesn't handle negative byte comparisons properly with +/- return
10924 echo "$as_me:$LINENO: checking for working memcmp" >&5
10925 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10926 if test "${ac_cv_func_memcmp_working+set}" = set; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   if test "$cross_compiling" = yes; then
10930   ac_cv_func_memcmp_working=no
10931 else
10932   cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10935
10936 #ifdef F77_DUMMY_MAIN
10937 #  ifdef __cplusplus
10938      extern "C"
10939 #  endif
10940    int F77_DUMMY_MAIN() { return 1; }
10941 #endif
10942 int
10943 main ()
10944 {
10945
10946   /* Some versions of memcmp are not 8-bit clean.  */
10947   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10948   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10949     exit (1);
10950
10951   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10952      or more and with at least one buffer not starting on a 4-byte boundary.
10953      William Lewis provided this test program.   */
10954   {
10955     char foo[21];
10956     char bar[21];
10957     int i;
10958     for (i = 0; i < 4; i++)
10959       {
10960         char *a = foo + i;
10961         char *b = bar + i;
10962         strcpy (a, "--------01111111");
10963         strcpy (b, "--------10000000");
10964         if (memcmp (a, b, 16) >= 0)
10965           exit (1);
10966       }
10967     exit (0);
10968   }
10969
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976   (eval $ac_link) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   ac_cv_func_memcmp_working=yes
10986 else
10987   echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 ( exit $ac_status )
10991 ac_cv_func_memcmp_working=no
10992 fi
10993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 fi
10996 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10997 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10998 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11020 do
11021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11022 echo "$as_me:$LINENO: checking for $ac_func" >&5
11023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11024 if eval "test \"\${$as_ac_var+set}\" = set"; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031     which can conflict with char $ac_func (); below.  */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error.  */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 /* We use char because int might match the return type of a gcc2
11038    builtin and then its argument prototype would still apply.  */
11039 char $ac_func ();
11040 char (*f) ();
11041
11042 #ifdef F77_DUMMY_MAIN
11043 #  ifdef __cplusplus
11044      extern "C"
11045 #  endif
11046    int F77_DUMMY_MAIN() { return 1; }
11047 #endif
11048 int
11049 main ()
11050 {
11051 /* The GNU C library defines this for functions which it implements
11052     to always fail with ENOSYS.  Some functions are actually named
11053     something starting with __ and the normal name is an alias.  */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11055 choke me
11056 #else
11057 f = $ac_func;
11058 #endif
11059
11060   ;
11061   return 0;
11062 }
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066   (eval $ac_link) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -s conftest$ac_exeext'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; }; then
11076   eval "$as_ac_var=yes"
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 eval "$as_ac_var=no"
11081 fi
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11086 if test `eval echo '${'$as_ac_var'}'` = yes; then
11087   cat >>confdefs.h <<_ACEOF
11088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11089 _ACEOF
11090
11091 fi
11092 done
11093
11094
11095 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11096 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11097 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11103 #include <unistd.h>
11104
11105 #ifdef F77_DUMMY_MAIN
11106 #  ifdef __cplusplus
11107      extern "C"
11108 #  endif
11109    int F77_DUMMY_MAIN() { return 1; }
11110 #endif
11111 int
11112 main ()
11113 {
11114 #ifndef fdatasync
11115   char *p = (char *) fdatasync;
11116 #endif
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124   (eval $ac_compile) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130   (eval $ac_try) 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; }; then
11134   ac_cv_have_decl_fdatasync=yes
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 ac_cv_have_decl_fdatasync=no
11139 fi
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11143 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11144 if test $ac_cv_have_decl_fdatasync = yes; then
11145
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_FDATASYNC 1
11148 _ACEOF
11149
11150
11151 else
11152   cat >>confdefs.h <<_ACEOF
11153 #define HAVE_DECL_FDATASYNC 0
11154 _ACEOF
11155
11156
11157 fi
11158
11159
11160
11161 HAVE_IPV6=no
11162 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11163 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11164 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   cat >conftest.$ac_ext <<_ACEOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11170 $ac_includes_default
11171 #include <netinet/in.h>
11172
11173 #ifdef F77_DUMMY_MAIN
11174 #  ifdef __cplusplus
11175      extern "C"
11176 #  endif
11177    int F77_DUMMY_MAIN() { return 1; }
11178 #endif
11179 int
11180 main ()
11181 {
11182 if ((struct sockaddr_in6 *) 0)
11183   return 0;
11184 if (sizeof (struct sockaddr_in6))
11185   return 0;
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192   (eval $ac_compile) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   ac_cv_type_struct_sockaddr_in6=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 ac_cv_type_struct_sockaddr_in6=no
11207 fi
11208 rm -f conftest.$ac_objext conftest.$ac_ext
11209 fi
11210 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11211 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11212 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11213   echo "$as_me:$LINENO: checking for inet_ntop" >&5
11214 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11215 if test "${ac_cv_func_inet_ntop+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222     which can conflict with char inet_ntop (); below.  */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error.  */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 /* We use char because int might match the return type of a gcc2
11229    builtin and then its argument prototype would still apply.  */
11230 char inet_ntop ();
11231 char (*f) ();
11232
11233 #ifdef F77_DUMMY_MAIN
11234 #  ifdef __cplusplus
11235      extern "C"
11236 #  endif
11237    int F77_DUMMY_MAIN() { return 1; }
11238 #endif
11239 int
11240 main ()
11241 {
11242 /* The GNU C library defines this for functions which it implements
11243     to always fail with ENOSYS.  Some functions are actually named
11244     something starting with __ and the normal name is an alias.  */
11245 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11246 choke me
11247 #else
11248 f = inet_ntop;
11249 #endif
11250
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257   (eval $ac_link) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } &&
11261          { ac_try='test -s conftest$ac_exeext'
11262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263   (eval $ac_try) 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; }; then
11267   ac_cv_func_inet_ntop=yes
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 ac_cv_func_inet_ntop=no
11272 fi
11273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11276 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11277 if test $ac_cv_func_inet_ntop = yes; then
11278
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_IPV6 1
11281 _ACEOF
11282
11283                                                           HAVE_IPV6=yes
11284 fi
11285
11286 fi
11287
11288
11289
11290 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11291 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11292 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 #include "confdefs.h"
11298 #include <machine/vmparam.h>
11299 #include <sys/exec.h>
11300
11301 #ifdef F77_DUMMY_MAIN
11302 #  ifdef __cplusplus
11303      extern "C"
11304 #  endif
11305    int F77_DUMMY_MAIN() { return 1; }
11306 #endif
11307 int
11308 main ()
11309 {
11310 PS_STRINGS->ps_nargvstr = 1;
11311 PS_STRINGS->ps_argvstr = "foo";
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318   (eval $ac_link) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } &&
11322          { ac_try='test -s conftest$ac_exeext'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   pgac_cv_var_PS_STRINGS=yes
11329 else
11330   echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 pgac_cv_var_PS_STRINGS=no
11333 fi
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11337 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11338 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_PS_STRINGS
11342 _ACEOF
11343
11344 fi
11345
11346
11347 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11348 # is missing.  Yes, there are machines that have only one.  We may
11349 # also decide to use snprintf.c if snprintf() is present but does not
11350 # have working "long long int" support -- see below.
11351
11352 pgac_need_repl_snprintf=no
11353
11354 for ac_func in snprintf
11355 do
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362   cat >conftest.$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366     which can conflict with char $ac_func (); below.  */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 /* We use char because int might match the return type of a gcc2
11373    builtin and then its argument prototype would still apply.  */
11374 char $ac_func ();
11375 char (*f) ();
11376
11377 #ifdef F77_DUMMY_MAIN
11378 #  ifdef __cplusplus
11379      extern "C"
11380 #  endif
11381    int F77_DUMMY_MAIN() { return 1; }
11382 #endif
11383 int
11384 main ()
11385 {
11386 /* The GNU C library defines this for functions which it implements
11387     to always fail with ENOSYS.  Some functions are actually named
11388     something starting with __ and the normal name is an alias.  */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11390 choke me
11391 #else
11392 f = $ac_func;
11393 #endif
11394
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401   (eval $ac_link) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -s conftest$ac_exeext'
11406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407   (eval $ac_try) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; }; then
11411   eval "$as_ac_var=yes"
11412 else
11413   echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11416 fi
11417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11418 fi
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422   cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11424 _ACEOF
11425
11426 else
11427   pgac_need_repl_snprintf=yes
11428 fi
11429 done
11430
11431
11432 for ac_func in vsnprintf
11433 do
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444     which can conflict with char $ac_func (); below.  */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 /* We use char because int might match the return type of a gcc2
11451    builtin and then its argument prototype would still apply.  */
11452 char $ac_func ();
11453 char (*f) ();
11454
11455 #ifdef F77_DUMMY_MAIN
11456 #  ifdef __cplusplus
11457      extern "C"
11458 #  endif
11459    int F77_DUMMY_MAIN() { return 1; }
11460 #endif
11461 int
11462 main ()
11463 {
11464 /* The GNU C library defines this for functions which it implements
11465     to always fail with ENOSYS.  Some functions are actually named
11466     something starting with __ and the normal name is an alias.  */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11468 choke me
11469 #else
11470 f = $ac_func;
11471 #endif
11472
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479   (eval $ac_link) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } &&
11483          { ac_try='test -s conftest$ac_exeext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   eval "$as_ac_var=yes"
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11494 fi
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11496 fi
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500   cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11502 _ACEOF
11503
11504 else
11505   pgac_need_repl_snprintf=yes
11506 fi
11507 done
11508
11509
11510
11511 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11512 # include/c.h will provide declarations.  Note this is a separate test
11513 # from whether the functions exist in the C library --- there are
11514 # systems that have the functions but don't bother to declare them :-(
11515
11516 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11517 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11518 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521   cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11524 $ac_includes_default
11525 #ifdef F77_DUMMY_MAIN
11526 #  ifdef __cplusplus
11527      extern "C"
11528 #  endif
11529    int F77_DUMMY_MAIN() { return 1; }
11530 #endif
11531 int
11532 main ()
11533 {
11534 #ifndef snprintf
11535   char *p = (char *) snprintf;
11536 #endif
11537
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544   (eval $ac_compile) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_have_decl_snprintf=yes
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 ac_cv_have_decl_snprintf=no
11559 fi
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11563 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11564 if test $ac_cv_have_decl_snprintf = yes; then
11565
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_SNPRINTF 1
11568 _ACEOF
11569
11570
11571 else
11572   cat >>confdefs.h <<_ACEOF
11573 #define HAVE_DECL_SNPRINTF 0
11574 _ACEOF
11575
11576
11577 fi
11578 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11579 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11580 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586 $ac_includes_default
11587 #ifdef F77_DUMMY_MAIN
11588 #  ifdef __cplusplus
11589      extern "C"
11590 #  endif
11591    int F77_DUMMY_MAIN() { return 1; }
11592 #endif
11593 int
11594 main ()
11595 {
11596 #ifndef vsnprintf
11597   char *p = (char *) vsnprintf;
11598 #endif
11599
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606   (eval $ac_compile) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } &&
11610          { ac_try='test -s conftest.$ac_objext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_cv_have_decl_vsnprintf=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 ac_cv_have_decl_vsnprintf=no
11621 fi
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11623 fi
11624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11625 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11626 if test $ac_cv_have_decl_vsnprintf = yes; then
11627
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_VSNPRINTF 1
11630 _ACEOF
11631
11632
11633 else
11634   cat >>confdefs.h <<_ACEOF
11635 #define HAVE_DECL_VSNPRINTF 0
11636 _ACEOF
11637
11638
11639 fi
11640
11641
11642
11643
11644 # do this one the hard way in case isinf() is a macro
11645 echo "$as_me:$LINENO: checking for isinf" >&5
11646 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11647 if test "${ac_cv_func_isinf+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 #include "confdefs.h"
11653 #include <math.h>
11654
11655 #ifdef F77_DUMMY_MAIN
11656 #  ifdef __cplusplus
11657      extern "C"
11658 #  endif
11659    int F77_DUMMY_MAIN() { return 1; }
11660 #endif
11661 int
11662 main ()
11663 {
11664 double x = 0.0; int res = isinf(x);
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_func_isinf=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_func_isinf=no
11686 fi
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11690 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11691
11692 if test $ac_cv_func_isinf = yes ; then
11693
11694 cat >>confdefs.h <<\_ACEOF
11695 #define HAVE_ISINF 1
11696 _ACEOF
11697
11698 else
11699   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11700   # Look for a way to implement a substitute for isinf()
11701
11702
11703
11704
11705 for ac_func in fpclass fp_class fp_class_d class
11706 do
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717     which can conflict with char $ac_func (); below.  */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error.  */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724    builtin and then its argument prototype would still apply.  */
11725 char $ac_func ();
11726 char (*f) ();
11727
11728 #ifdef F77_DUMMY_MAIN
11729 #  ifdef __cplusplus
11730      extern "C"
11731 #  endif
11732    int F77_DUMMY_MAIN() { return 1; }
11733 #endif
11734 int
11735 main ()
11736 {
11737 /* The GNU C library defines this for functions which it implements
11738     to always fail with ENOSYS.  Some functions are actually named
11739     something starting with __ and the normal name is an alias.  */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11741 choke me
11742 #else
11743 f = $ac_func;
11744 #endif
11745
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752   (eval $ac_link) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } &&
11756          { ac_try='test -s conftest$ac_exeext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   eval "$as_ac_var=yes"
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11767 fi
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11769 fi
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773   cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 _ACEOF
11776  break
11777 fi
11778 done
11779
11780 fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
11796 do
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11800 if eval "test \"\${$as_ac_var+set}\" = set"; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 #include "confdefs.h"
11806 /* System header to define __stub macros and hopefully few prototypes,
11807     which can conflict with char $ac_func (); below.  */
11808 #include <assert.h>
11809 /* Override any gcc2 internal prototype to avoid an error.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 /* We use char because int might match the return type of a gcc2
11814    builtin and then its argument prototype would still apply.  */
11815 char $ac_func ();
11816 char (*f) ();
11817
11818 #ifdef F77_DUMMY_MAIN
11819 #  ifdef __cplusplus
11820      extern "C"
11821 #  endif
11822    int F77_DUMMY_MAIN() { return 1; }
11823 #endif
11824 int
11825 main ()
11826 {
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831 choke me
11832 #else
11833 f = $ac_func;
11834 #endif
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842   (eval $ac_link) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest$ac_exeext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   eval "$as_ac_var=yes"
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11856 eval "$as_ac_var=no"
11857 fi
11858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863   cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 _ACEOF
11866
11867 else
11868   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11869 fi
11870 done
11871
11872
11873
11874 # system's version of getaddrinfo(), if any, may be used only if we found
11875 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11876 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11877
11878 for ac_func in getaddrinfo
11879 do
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890     which can conflict with char $ac_func (); below.  */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char $ac_func ();
11899 char (*f) ();
11900
11901 #ifdef F77_DUMMY_MAIN
11902 #  ifdef __cplusplus
11903      extern "C"
11904 #  endif
11905    int F77_DUMMY_MAIN() { return 1; }
11906 #endif
11907 int
11908 main ()
11909 {
11910 /* The GNU C library defines this for functions which it implements
11911     to always fail with ENOSYS.  Some functions are actually named
11912     something starting with __ and the normal name is an alias.  */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11914 choke me
11915 #else
11916 f = $ac_func;
11917 #endif
11918
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -s conftest$ac_exeext'
11930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); }; }; then
11935   eval "$as_ac_var=yes"
11936 else
11937   echo "$as_me: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11940 fi
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 fi
11943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946   cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11948 _ACEOF
11949
11950 else
11951   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11952 fi
11953 done
11954
11955
11956 else
11957   LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11958 fi
11959
11960 # similarly, use system's getopt_long() only if system provides struct option.
11961 if test x"$ac_cv_type_struct_option" = xyes ; then
11962
11963 for ac_func in getopt_long
11964 do
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char $ac_func (); below.  */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char $ac_func ();
11984 char (*f) ();
11985
11986 #ifdef F77_DUMMY_MAIN
11987 #  ifdef __cplusplus
11988      extern "C"
11989 #  endif
11990    int F77_DUMMY_MAIN() { return 1; }
11991 #endif
11992 int
11993 main ()
11994 {
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999 choke me
12000 #else
12001 f = $ac_func;
12002 #endif
12003
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010   (eval $ac_link) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12025 fi
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031   cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12034
12035 else
12036   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12037 fi
12038 done
12039
12040
12041 else
12042   LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12043 fi
12044
12045 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12046 # We override the previous test that said fseeko/ftello didn't exist
12047 # OS tests are also done in include/c.h and port/fseeko.c
12048 case $host_os in bsdi*|netbsd*)
12049 ac_cv_func_fseeko=yes
12050 esac
12051
12052 # Solaris has a very slow qsort in certain cases, so we replace it.
12053 case $host_os in solaris*)
12054 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12055 esac
12056
12057 # Win32 support
12058 case $host_os in mingw*)
12059 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12060 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12061 LIBOBJS="$LIBOBJS kill.$ac_objext"
12062 LIBOBJS="$LIBOBJS open.$ac_objext"
12063 LIBOBJS="$LIBOBJS rand.$ac_objext"
12064
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_SYMLINK 1
12067 _ACEOF
12068
12069 ;;
12070 esac
12071
12072 if test "$with_readline" = yes; then
12073   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12074 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 #include <stdio.h>
12079 #ifdef HAVE_READLINE_READLINE_H
12080 # include <readline/readline.h>
12081 #elif defined(HAVE_READLINE_H)
12082 # include <readline.h>
12083 #endif
12084
12085 #ifdef F77_DUMMY_MAIN
12086 #  ifdef __cplusplus
12087      extern "C"
12088 #  endif
12089    int F77_DUMMY_MAIN() { return 1; }
12090 #endif
12091 int
12092 main ()
12093 {
12094 rl_completion_append_character = 'x';
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101   (eval $ac_link) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -s conftest$ac_exeext'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12116 _ACEOF
12117
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125
12126
12127 for ac_func in rl_completion_matches rl_filename_completion_function
12128 do
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139     which can conflict with char $ac_func (); below.  */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 /* We use char because int might match the return type of a gcc2
12146    builtin and then its argument prototype would still apply.  */
12147 char $ac_func ();
12148 char (*f) ();
12149
12150 #ifdef F77_DUMMY_MAIN
12151 #  ifdef __cplusplus
12152      extern "C"
12153 #  endif
12154    int F77_DUMMY_MAIN() { return 1; }
12155 #endif
12156 int
12157 main ()
12158 {
12159 /* The GNU C library defines this for functions which it implements
12160     to always fail with ENOSYS.  Some functions are actually named
12161     something starting with __ and the normal name is an alias.  */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 choke me
12164 #else
12165 f = $ac_func;
12166 #endif
12167
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174   (eval $ac_link) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   eval "$as_ac_var=yes"
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12189 fi
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12191 fi
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12194 if test `eval echo '${'$as_ac_var'}'` = yes; then
12195   cat >>confdefs.h <<_ACEOF
12196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 _ACEOF
12198
12199 fi
12200 done
12201
12202
12203 for ac_func in replace_history_entry
12204 do
12205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_var+set}\" = set"; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215     which can conflict with char $ac_func (); below.  */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error.  */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char $ac_func ();
12224 char (*f) ();
12225
12226 #ifdef F77_DUMMY_MAIN
12227 #  ifdef __cplusplus
12228      extern "C"
12229 #  endif
12230    int F77_DUMMY_MAIN() { return 1; }
12231 #endif
12232 int
12233 main ()
12234 {
12235 /* The GNU C library defines this for functions which it implements
12236     to always fail with ENOSYS.  Some functions are actually named
12237     something starting with __ and the normal name is an alias.  */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12239 choke me
12240 #else
12241 f = $ac_func;
12242 #endif
12243
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250   (eval $ac_link) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); } &&
12254          { ac_try='test -s conftest$ac_exeext'
12255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256   (eval $ac_try) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; }; then
12260   eval "$as_ac_var=yes"
12261 else
12262   echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 eval "$as_ac_var=no"
12265 fi
12266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12267 fi
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271   cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12273 _ACEOF
12274
12275 fi
12276 done
12277
12278 fi
12279
12280
12281 echo "$as_me:$LINENO: checking for finite" >&5
12282 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 #include "confdefs.h"
12286 #include <math.h>
12287 #ifdef F77_DUMMY_MAIN
12288 #  ifdef __cplusplus
12289      extern "C"
12290 #  endif
12291    int F77_DUMMY_MAIN() { return 1; }
12292 #endif
12293 int
12294 main ()
12295 {
12296 int dummy=finite(1.0);
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303   (eval $ac_link) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -s conftest$ac_exeext'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_FINITE 1
12316 _ACEOF
12317
12318 echo "$as_me:$LINENO: result: yes" >&5
12319 echo "${ECHO_T}yes" >&6
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6
12325 fi
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12327
12328 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12329 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 #include <setjmp.h>
12334 #ifdef F77_DUMMY_MAIN
12335 #  ifdef __cplusplus
12336      extern "C"
12337 #  endif
12338    int F77_DUMMY_MAIN() { return 1; }
12339 #endif
12340 int
12341 main ()
12342 {
12343 sigjmp_buf x; sigsetjmp(x, 1);
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350   (eval $ac_link) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } &&
12354          { ac_try='test -s conftest$ac_exeext'
12355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356   (eval $ac_try) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; }; then
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_SIGSETJMP 1
12363 _ACEOF
12364
12365 echo "$as_me:$LINENO: result: yes" >&5
12366 echo "${ECHO_T}yes" >&6
12367 else
12368   echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12372 fi
12373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12374
12375 echo "$as_me:$LINENO: checking for syslog" >&5
12376 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12377 if test "${ac_cv_func_syslog+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char syslog (); below.  */
12385 #include <assert.h>
12386 /* Override any gcc2 internal prototype to avoid an error.  */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391    builtin and then its argument prototype would still apply.  */
12392 char syslog ();
12393 char (*f) ();
12394
12395 #ifdef F77_DUMMY_MAIN
12396 #  ifdef __cplusplus
12397      extern "C"
12398 #  endif
12399    int F77_DUMMY_MAIN() { return 1; }
12400 #endif
12401 int
12402 main ()
12403 {
12404 /* The GNU C library defines this for functions which it implements
12405     to always fail with ENOSYS.  Some functions are actually named
12406     something starting with __ and the normal name is an alias.  */
12407 #if defined (__stub_syslog) || defined (__stub___syslog)
12408 choke me
12409 #else
12410 f = syslog;
12411 #endif
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419   (eval $ac_link) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -s conftest$ac_exeext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   ac_cv_func_syslog=yes
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 ac_cv_func_syslog=no
12434 fi
12435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12438 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12439 if test $ac_cv_func_syslog = yes; then
12440   if test "${ac_cv_header_syslog_h+set}" = set; then
12441   echo "$as_me:$LINENO: checking for syslog.h" >&5
12442 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12443 if test "${ac_cv_header_syslog_h+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12447 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12448 else
12449   # Is the header compilable?
12450 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12451 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 #include <syslog.h>
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460   (eval $ac_compile) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -s conftest.$ac_objext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_header_compiler=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 ac_header_compiler=no
12475 fi
12476 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12478 echo "${ECHO_T}$ac_header_compiler" >&6
12479
12480 # Is the header present?
12481 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12482 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12485 #include "confdefs.h"
12486 #include <syslog.h>
12487 _ACEOF
12488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12490   ac_status=$?
12491   egrep -v '^ *\+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } >/dev/null; then
12496   if test -s conftest.err; then
12497     ac_cpp_err=$ac_c_preproc_warn_flag
12498   else
12499     ac_cpp_err=
12500   fi
12501 else
12502   ac_cpp_err=yes
12503 fi
12504 if test -z "$ac_cpp_err"; then
12505   ac_header_preproc=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508   cat conftest.$ac_ext >&5
12509   ac_header_preproc=no
12510 fi
12511 rm -f conftest.err conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 echo "${ECHO_T}$ac_header_preproc" >&6
12514
12515 # So?  What about this header?
12516 case $ac_header_compiler:$ac_header_preproc in
12517   yes:no )
12518     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12519 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12522   no:yes )
12523     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12529 esac
12530 echo "$as_me:$LINENO: checking for syslog.h" >&5
12531 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12532 if test "${ac_cv_header_syslog_h+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   ac_cv_header_syslog_h=$ac_header_preproc
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12538 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12539
12540 fi
12541 if test $ac_cv_header_syslog_h = yes; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_SYSLOG 1
12545 _ACEOF
12546
12547 fi
12548
12549
12550 fi
12551
12552
12553 echo "$as_me:$LINENO: checking for optreset" >&5
12554 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12555 if test "${pgac_cv_var_int_optreset+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 #include <unistd.h>
12562 #ifdef F77_DUMMY_MAIN
12563 #  ifdef __cplusplus
12564      extern "C"
12565 #  endif
12566    int F77_DUMMY_MAIN() { return 1; }
12567 #endif
12568 int
12569 main ()
12570 {
12571 extern int optreset; optreset = 1;
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578   (eval $ac_link) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -s conftest$ac_exeext'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; }; then
12588   pgac_cv_var_int_optreset=yes
12589 else
12590   echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 pgac_cv_var_int_optreset=no
12593 fi
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 fi
12596 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12597 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12598 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_INT_OPTRESET 1
12602 _ACEOF
12603
12604 fi
12605
12606
12607
12608 for ac_func in strtoll strtoq
12609 do
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12613 if eval "test \"\${$as_ac_var+set}\" = set"; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620     which can conflict with char $ac_func (); below.  */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error.  */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 /* We use char because int might match the return type of a gcc2
12627    builtin and then its argument prototype would still apply.  */
12628 char $ac_func ();
12629 char (*f) ();
12630
12631 #ifdef F77_DUMMY_MAIN
12632 #  ifdef __cplusplus
12633      extern "C"
12634 #  endif
12635    int F77_DUMMY_MAIN() { return 1; }
12636 #endif
12637 int
12638 main ()
12639 {
12640 /* The GNU C library defines this for functions which it implements
12641     to always fail with ENOSYS.  Some functions are actually named
12642     something starting with __ and the normal name is an alias.  */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12644 choke me
12645 #else
12646 f = $ac_func;
12647 #endif
12648
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655   (eval $ac_link) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -s conftest$ac_exeext'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; }; then
12665   eval "$as_ac_var=yes"
12666 else
12667   echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 eval "$as_ac_var=no"
12670 fi
12671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676   cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12678 _ACEOF
12679  break
12680 fi
12681 done
12682
12683
12684
12685 for ac_func in strtoull strtouq
12686 do
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697     which can conflict with char $ac_func (); below.  */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 /* We use char because int might match the return type of a gcc2
12704    builtin and then its argument prototype would still apply.  */
12705 char $ac_func ();
12706 char (*f) ();
12707
12708 #ifdef F77_DUMMY_MAIN
12709 #  ifdef __cplusplus
12710      extern "C"
12711 #  endif
12712    int F77_DUMMY_MAIN() { return 1; }
12713 #endif
12714 int
12715 main ()
12716 {
12717 /* The GNU C library defines this for functions which it implements
12718     to always fail with ENOSYS.  Some functions are actually named
12719     something starting with __ and the normal name is an alias.  */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 f = $ac_func;
12724 #endif
12725
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732   (eval $ac_link) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -s conftest$ac_exeext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   eval "$as_ac_var=yes"
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12747 fi
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12749 fi
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753   cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12755 _ACEOF
12756  break
12757 fi
12758 done
12759
12760
12761 # Check for one of atexit() or on_exit()
12762
12763 for ac_func in atexit
12764 do
12765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12766 echo "$as_me:$LINENO: checking for $ac_func" >&5
12767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_var+set}\" = set"; then
12769   echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771   cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 /* System header to define __stub macros and hopefully few prototypes,
12775     which can conflict with char $ac_func (); below.  */
12776 #include <assert.h>
12777 /* Override any gcc2 internal prototype to avoid an error.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 /* We use char because int might match the return type of a gcc2
12782    builtin and then its argument prototype would still apply.  */
12783 char $ac_func ();
12784 char (*f) ();
12785
12786 #ifdef F77_DUMMY_MAIN
12787 #  ifdef __cplusplus
12788      extern "C"
12789 #  endif
12790    int F77_DUMMY_MAIN() { return 1; }
12791 #endif
12792 int
12793 main ()
12794 {
12795 /* The GNU C library defines this for functions which it implements
12796     to always fail with ENOSYS.  Some functions are actually named
12797     something starting with __ and the normal name is an alias.  */
12798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12799 choke me
12800 #else
12801 f = $ac_func;
12802 #endif
12803
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810   (eval $ac_link) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } &&
12814          { ac_try='test -s conftest$ac_exeext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   eval "$as_ac_var=yes"
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 eval "$as_ac_var=no"
12825 fi
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827 fi
12828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12830 if test `eval echo '${'$as_ac_var'}'` = yes; then
12831   cat >>confdefs.h <<_ACEOF
12832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12833 _ACEOF
12834
12835 else
12836
12837 for ac_func in on_exit
12838 do
12839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12842 if eval "test \"\${$as_ac_var+set}\" = set"; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845   cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12847 #include "confdefs.h"
12848 /* System header to define __stub macros and hopefully few prototypes,
12849     which can conflict with char $ac_func (); below.  */
12850 #include <assert.h>
12851 /* Override any gcc2 internal prototype to avoid an error.  */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 /* We use char because int might match the return type of a gcc2
12856    builtin and then its argument prototype would still apply.  */
12857 char $ac_func ();
12858 char (*f) ();
12859
12860 #ifdef F77_DUMMY_MAIN
12861 #  ifdef __cplusplus
12862      extern "C"
12863 #  endif
12864    int F77_DUMMY_MAIN() { return 1; }
12865 #endif
12866 int
12867 main ()
12868 {
12869 /* The GNU C library defines this for functions which it implements
12870     to always fail with ENOSYS.  Some functions are actually named
12871     something starting with __ and the normal name is an alias.  */
12872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12873 choke me
12874 #else
12875 f = $ac_func;
12876 #endif
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   eval "$as_ac_var=yes"
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "$as_ac_var=no"
12899 fi
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12901 fi
12902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12904 if test `eval echo '${'$as_ac_var'}'` = yes; then
12905   cat >>confdefs.h <<_ACEOF
12906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 _ACEOF
12908
12909 else
12910   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12911 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12912    { (exit 1); exit 1; }; }
12913 fi
12914 done
12915
12916 fi
12917 done
12918
12919
12920 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12921 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12922 if test "${ac_cv_sys_largefile_source+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   while :; do
12926   ac_cv_sys_largefile_source=no
12927   cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12930 #include <stdio.h>
12931 #ifdef F77_DUMMY_MAIN
12932 #  ifdef __cplusplus
12933      extern "C"
12934 #  endif
12935    int F77_DUMMY_MAIN() { return 1; }
12936 #endif
12937 int
12938 main ()
12939 {
12940 return !fseeko;
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947   (eval $ac_compile) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } &&
12951          { ac_try='test -s conftest.$ac_objext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   break
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 fi
12962 rm -f conftest.$ac_objext conftest.$ac_ext
12963   cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12965 #include "confdefs.h"
12966 #define _LARGEFILE_SOURCE 1
12967 #include <stdio.h>
12968 #ifdef F77_DUMMY_MAIN
12969 #  ifdef __cplusplus
12970      extern "C"
12971 #  endif
12972    int F77_DUMMY_MAIN() { return 1; }
12973 #endif
12974 int
12975 main ()
12976 {
12977 return !fseeko;
12978   ;
12979   return 0;
12980 }
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984   (eval $ac_compile) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); } &&
12988          { ac_try='test -s conftest.$ac_objext'
12989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990   (eval $ac_try) 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   ac_cv_sys_largefile_source=1; break
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 fi
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13000   break
13001 done
13002 fi
13003 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13004 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13005 if test "$ac_cv_sys_largefile_source" != no; then
13006
13007 cat >>confdefs.h <<_ACEOF
13008 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13009 _ACEOF
13010
13011 fi
13012 rm -f conftest*
13013
13014 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13015 # in glibc 2.1.3, but that breaks too many other things.
13016 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13017 echo "$as_me:$LINENO: checking for fseeko" >&5
13018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13019 if test "${ac_cv_func_fseeko+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 #include <stdio.h>
13026 #ifdef F77_DUMMY_MAIN
13027 #  ifdef __cplusplus
13028      extern "C"
13029 #  endif
13030    int F77_DUMMY_MAIN() { return 1; }
13031 #endif
13032 int
13033 main ()
13034 {
13035 return fseeko && fseeko (stdin, 0, 0);
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042   (eval $ac_link) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest$ac_exeext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   ac_cv_func_fseeko=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_func_fseeko=no
13057 fi
13058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13061 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13062 if test $ac_cv_func_fseeko = yes; then
13063
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_FSEEKO 1
13066 _ACEOF
13067
13068 fi
13069
13070
13071 #
13072 # Pthreads
13073 #
13074 # For each platform, we need to know about any special compile and link
13075 # libraries, and whether the normal C function names are thread-safe.
13076 # See the comment at the top of src/port/thread.c for more information.
13077 #
13078 if test "$enable_thread_safety" = yes; then
13079
13080
13081
13082
13083 ac_ext=c
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089 acx_pthread_ok=no
13090
13091 # We used to check for pthread.h first, but this fails if pthread.h
13092 # requires special compiler flags (e.g. on True64 or Sequent).
13093 # It gets checked for in the link test anyway.
13094
13095 # First of all, check if the user has set any of the PTHREAD_LIBS,
13096 # etcetera environment variables, and if threads linking works using
13097 # them:
13098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13099         save_CFLAGS="$CFLAGS"
13100         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13101         save_LIBS="$LIBS"
13102         LIBS="$PTHREAD_LIBS $LIBS"
13103         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13104 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13105         cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13108
13109 /* Override any gcc2 internal prototype to avoid an error.  */
13110 #ifdef __cplusplus
13111 extern "C"
13112 #endif
13113 /* We use char because int might match the return type of a gcc2
13114    builtin and then its argument prototype would still apply.  */
13115 char pthread_join ();
13116 #ifdef F77_DUMMY_MAIN
13117 #  ifdef __cplusplus
13118      extern "C"
13119 #  endif
13120    int F77_DUMMY_MAIN() { return 1; }
13121 #endif
13122 int
13123 main ()
13124 {
13125 pthread_join ();
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132   (eval $ac_link) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -s conftest$ac_exeext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   acx_pthread_ok=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13146 fi
13147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13148         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13149 echo "${ECHO_T}$acx_pthread_ok" >&6
13150         if test x"$acx_pthread_ok" = xno; then
13151                 PTHREAD_LIBS=""
13152                 PTHREAD_CFLAGS=""
13153         fi
13154         LIBS="$save_LIBS"
13155         CFLAGS="$save_CFLAGS"
13156 fi
13157
13158 # We must check for the threads library under a number of different
13159 # names; the ordering is very important because some systems
13160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13161 # libraries is broken (non-POSIX).
13162
13163 # Create a list of thread flags to try.  Items starting with a "-" are
13164 # C compiler flags, and other items are library names, except for "none"
13165 # which indicates that we try without any flags at all, and "pthread-config"
13166 # which is a program returning the flags for the Pth emulation library.
13167
13168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13169
13170 # The ordering *is* (sometimes) important.  Some notes on the
13171 # individual items follow:
13172
13173 # pthreads: AIX (must check this before -lpthread)
13174 # none: in case threads are in libc; should be tried before -Kthread and
13175 #       other compiler flags to prevent continual compiler warnings
13176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13180 # -pthreads: Solaris/gcc
13181 # -mthreads: Mingw32/gcc, Lynx/gcc
13182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13183 #      doesn't hurt to check since this sometimes defines pthreads too;
13184 #      also defines -D_REENTRANT)
13185 # pthread: Linux, etcetera
13186 # --thread-safe: KAI C++
13187 # pthread-config: use pthread-config program (for GNU Pth library)
13188
13189 case "${host_cpu}-${host_os}" in
13190         *solaris*)
13191
13192         # On Solaris (at least, for some versions), libc contains stubbed
13193         # (non-functional) versions of the pthreads routines, so link-based
13194         # tests will erroneously succeed.  (We need to link with -pthread or
13195         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
13196         # a function called by this macro, so we could check for that, but
13197         # who knows whether they'll stub that too in a future libc.)  So,
13198         # we'll just look for -pthreads and -lpthread first:
13199
13200         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13201         ;;
13202 esac
13203
13204 if test x"$acx_pthread_ok" = xno; then
13205 for flag in $acx_pthread_flags; do
13206
13207         case $flag in
13208                 none)
13209                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13210 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13211                 ;;
13212
13213                 -*)
13214                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13215 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13216                 tryPTHREAD_CFLAGS="$flag"
13217                 ;;
13218
13219                 pthread-config)
13220                 # skip this if we already have flags defined, for PostgreSQL
13221                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13222                 # Extract the first word of "pthread-config", so it can be a program name with args.
13223 set dummy pthread-config; ac_word=$2
13224 echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13226 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229   if test -n "$acx_pthread_config"; then
13230   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235   IFS=$as_save_IFS
13236   test -z "$as_dir" && as_dir=.
13237   for ac_exec_ext in '' $ac_executable_extensions; do
13238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239     ac_cv_prog_acx_pthread_config="yes"
13240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13241     break 2
13242   fi
13243 done
13244 done
13245
13246   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13247 fi
13248 fi
13249 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13250 if test -n "$acx_pthread_config"; then
13251   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13252 echo "${ECHO_T}$acx_pthread_config" >&6
13253 else
13254   echo "$as_me:$LINENO: result: no" >&5
13255 echo "${ECHO_T}no" >&6
13256 fi
13257
13258                 if test x"$acx_pthread_config" = xno; then continue; fi
13259                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13260                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13261                 ;;
13262
13263                 *)
13264                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13265 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13266                 tryPTHREAD_LIBS="-l$flag"
13267                 ;;
13268         esac
13269
13270         save_LIBS="$LIBS"
13271         save_CFLAGS="$CFLAGS"
13272         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13273         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13274
13275         # Check for various functions.  We must include pthread.h,
13276         # since some functions may be macros.  (On the Sequent, we
13277         # need a special flag -Kthread to make this header compile.)
13278         # We check for pthread_join because it is in -lpthread on IRIX
13279         # while pthread_create is in libc.  We check for pthread_attr_init
13280         # due to DEC craziness with -lpthreads.  We check for
13281         # pthread_cleanup_push because it is one of the few pthread
13282         # functions on Solaris that doesn't have a non-functional libc stub.
13283         # We try pthread_create on general principles.
13284         cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <pthread.h>
13288 #ifdef F77_DUMMY_MAIN
13289 #  ifdef __cplusplus
13290      extern "C"
13291 #  endif
13292    int F77_DUMMY_MAIN() { return 1; }
13293 #endif
13294 int
13295 main ()
13296 {
13297 pthread_t th; pthread_join(th, 0);
13298                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
13299                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306   (eval $ac_link) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } &&
13310          { ac_try='test -s conftest$ac_exeext'
13311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312   (eval $ac_try) 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }; }; then
13316   acx_pthread_ok=yes
13317 else
13318   echo "$as_me: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 fi
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322
13323         LIBS="$save_LIBS"
13324         CFLAGS="$save_CFLAGS"
13325
13326         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13327 echo "${ECHO_T}$acx_pthread_ok" >&6
13328         if test "x$acx_pthread_ok" = xyes; then
13329             # we continue with more flags because Linux needs -lpthread
13330             # for libpq builds on PostgreSQL.  The test above only
13331             # tests for building binaries, not shared libraries.
13332             PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13333             PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13334         fi
13335
13336 done
13337 fi
13338
13339 # Various other checks:
13340 if test "x$acx_pthread_ok" = xyes; then
13341         save_LIBS="$LIBS"
13342         LIBS="$PTHREAD_LIBS $LIBS"
13343         save_CFLAGS="$CFLAGS"
13344         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13345
13346         # Detect AIX lossage: threads are created detached by default
13347         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13348         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13349 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13350         cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 #include "confdefs.h"
13353 #include <pthread.h>
13354 #ifdef F77_DUMMY_MAIN
13355 #  ifdef __cplusplus
13356      extern "C"
13357 #  endif
13358    int F77_DUMMY_MAIN() { return 1; }
13359 #endif
13360 int
13361 main ()
13362 {
13363 int attr=PTHREAD_CREATE_JOINABLE;
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370   (eval $ac_link) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } &&
13374          { ac_try='test -s conftest$ac_exeext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ok=PTHREAD_CREATE_JOINABLE
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ok=unknown
13385 fi
13386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13387         if test x"$ok" = xunknown; then
13388                 cat >conftest.$ac_ext <<_ACEOF
13389 #line $LINENO "configure"
13390 #include "confdefs.h"
13391 #include <pthread.h>
13392 #ifdef F77_DUMMY_MAIN
13393 #  ifdef __cplusplus
13394      extern "C"
13395 #  endif
13396    int F77_DUMMY_MAIN() { return 1; }
13397 #endif
13398 int
13399 main ()
13400 {
13401 int attr=PTHREAD_CREATE_UNDETACHED;
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408   (eval $ac_link) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -s conftest$ac_exeext'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; }; then
13418   ok=PTHREAD_CREATE_UNDETACHED
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13422 ok=unknown
13423 fi
13424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13425         fi
13426         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13427
13428 cat >>confdefs.h <<\_ACEOF
13429 #define PTHREAD_CREATE_JOINABLE $ok
13430 _ACEOF
13431
13432         fi
13433         echo "$as_me:$LINENO: result: ${ok}" >&5
13434 echo "${ECHO_T}${ok}" >&6
13435         if test x"$ok" = xunknown; then
13436                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13437 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13438         fi
13439
13440         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13441 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13442         flag=no
13443 # We always add these in PostgreSQL
13444 #       case "${host_cpu}-${host_os}" in
13445 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13446 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13447 #       esac
13448         echo "$as_me:$LINENO: result: ${flag}" >&5
13449 echo "${ECHO_T}${flag}" >&6
13450         if test "x$flag" != xno; then
13451                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13452         fi
13453
13454         LIBS="$save_LIBS"
13455         CFLAGS="$save_CFLAGS"
13456
13457         # More AIX lossage: must compile with cc_r
13458         # Extract the first word of "cc_r", so it can be a program name with args.
13459 set dummy cc_r; ac_word=$2
13460 echo "$as_me:$LINENO: checking for $ac_word" >&5
13461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13462 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 else
13465   if test -n "$PTHREAD_CC"; then
13466   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471   IFS=$as_save_IFS
13472   test -z "$as_dir" && as_dir=.
13473   for ac_exec_ext in '' $ac_executable_extensions; do
13474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475     ac_cv_prog_PTHREAD_CC="cc_r"
13476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13477     break 2
13478   fi
13479 done
13480 done
13481
13482   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13483 fi
13484 fi
13485 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13486 if test -n "$PTHREAD_CC"; then
13487   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13488 echo "${ECHO_T}$PTHREAD_CC" >&6
13489 else
13490   echo "$as_me:$LINENO: result: no" >&5
13491 echo "${ECHO_T}no" >&6
13492 fi
13493
13494 else
13495         PTHREAD_CC="$CC"
13496 fi
13497
13498
13499
13500
13501
13502 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13503 if test x"$acx_pthread_ok" = xyes; then
13504
13505 cat >>confdefs.h <<\_ACEOF
13506 #define HAVE_PTHREAD 1
13507 _ACEOF
13508
13509         :
13510 else
13511         acx_pthread_ok=no
13512
13513 fi
13514 ac_ext=c
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13519
13520         # set thread flags
13521
13522 # Some platforms use these, so just defineed them.  They can't hurt if they
13523 # are not supported.
13524 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13525
13526
13527 # At this point, we don't want to muck with the compiler name for threading.
13528 # Let's see who fails, perhaps AIX.  2004-04-23
13529 if test "$PTHREAD_CC" != "$CC"; then
13530 { { echo "$as_me:$LINENO: error:
13531 PostgreSQL does not support platforms that require a special
13532 compiler binary for thread-safety.
13533 " >&5
13534 echo "$as_me: error:
13535 PostgreSQL does not support platforms that require a special
13536 compiler binary for thread-safety.
13537 " >&2;}
13538    { (exit 1); exit 1; }; }
13539 fi
13540
13541 if test "$THREAD_SUPPORT" = no; then
13542 { { echo "$as_me:$LINENO: error:
13543 Cannot enable threads on your platform.
13544 Your platform is known to not support thread-safe programs.
13545 For details, compile and run src/bin/pg_thread_test.
13546 " >&5
13547 echo "$as_me: error:
13548 Cannot enable threads on your platform.
13549 Your platform is known to not support thread-safe programs.
13550 For details, compile and run src/bin/pg_thread_test.
13551 " >&2;}
13552    { (exit 1); exit 1; }; }
13553 fi
13554
13555 if test "${ac_cv_header_pthread_h+set}" = set; then
13556   echo "$as_me:$LINENO: checking for pthread.h" >&5
13557 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13558 if test "${ac_cv_header_pthread_h+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 fi
13561 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13563 else
13564   # Is the header compilable?
13565 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13566 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13567 cat >conftest.$ac_ext <<_ACEOF
13568 #line $LINENO "configure"
13569 #include "confdefs.h"
13570 $ac_includes_default
13571 #include <pthread.h>
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575   (eval $ac_compile) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); } &&
13579          { ac_try='test -s conftest.$ac_objext'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; }; then
13585   ac_header_compiler=yes
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 ac_header_compiler=no
13590 fi
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 echo "${ECHO_T}$ac_header_compiler" >&6
13594
13595 # Is the header present?
13596 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13597 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 #include <pthread.h>
13602 _ACEOF
13603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13605   ac_status=$?
13606   egrep -v '^ *\+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } >/dev/null; then
13611   if test -s conftest.err; then
13612     ac_cpp_err=$ac_c_preproc_warn_flag
13613   else
13614     ac_cpp_err=
13615   fi
13616 else
13617   ac_cpp_err=yes
13618 fi
13619 if test -z "$ac_cpp_err"; then
13620   ac_header_preproc=yes
13621 else
13622   echo "$as_me: failed program was:" >&5
13623   cat conftest.$ac_ext >&5
13624   ac_header_preproc=no
13625 fi
13626 rm -f conftest.err conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13628 echo "${ECHO_T}$ac_header_preproc" >&6
13629
13630 # So?  What about this header?
13631 case $ac_header_compiler:$ac_header_preproc in
13632   yes:no )
13633     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13634 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13635     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13636 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13637   no:yes )
13638     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13639 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13640     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13641 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13642     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13643 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13644 esac
13645 echo "$as_me:$LINENO: checking for pthread.h" >&5
13646 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_pthread_h+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   ac_cv_header_pthread_h=$ac_header_preproc
13651 fi
13652 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13653 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13654
13655 fi
13656 if test $ac_cv_header_pthread_h = yes; then
13657   :
13658 else
13659   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13660 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13661    { (exit 1); exit 1; }; }
13662 fi
13663
13664
13665
13666 # Check for *_r functions
13667 _CFLAGS="$CFLAGS"
13668 _LIBS="$LIBS"
13669 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13670 LIBS="$LIBS $PTHREAD_LIBS"
13671
13672
13673
13674 for ac_func in strerror_r getpwuid_r gethostbyname_r
13675 do
13676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13677 echo "$as_me:$LINENO: checking for $ac_func" >&5
13678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13679 if eval "test \"\${$as_ac_var+set}\" = set"; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 #include "confdefs.h"
13685 /* System header to define __stub macros and hopefully few prototypes,
13686     which can conflict with char $ac_func (); below.  */
13687 #include <assert.h>
13688 /* Override any gcc2 internal prototype to avoid an error.  */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 /* We use char because int might match the return type of a gcc2
13693    builtin and then its argument prototype would still apply.  */
13694 char $ac_func ();
13695 char (*f) ();
13696
13697 #ifdef F77_DUMMY_MAIN
13698 #  ifdef __cplusplus
13699      extern "C"
13700 #  endif
13701    int F77_DUMMY_MAIN() { return 1; }
13702 #endif
13703 int
13704 main ()
13705 {
13706 /* The GNU C library defines this for functions which it implements
13707     to always fail with ENOSYS.  Some functions are actually named
13708     something starting with __ and the normal name is an alias.  */
13709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13710 choke me
13711 #else
13712 f = $ac_func;
13713 #endif
13714
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721   (eval $ac_link) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -s conftest$ac_exeext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   eval "$as_ac_var=yes"
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 eval "$as_ac_var=no"
13736 fi
13737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13738 fi
13739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13741 if test `eval echo '${'$as_ac_var'}'` = yes; then
13742   cat >>confdefs.h <<_ACEOF
13743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13744 _ACEOF
13745
13746 fi
13747 done
13748
13749
13750 # Do test here with the proper thread flags
13751 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13752 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13753 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 #include "confdefs.h"
13759 #include <sys/types.h>
13760 #include <pwd.h>
13761 #ifdef F77_DUMMY_MAIN
13762 #  ifdef __cplusplus
13763      extern "C"
13764 #  endif
13765    int F77_DUMMY_MAIN() { return 1; }
13766 #endif
13767 int
13768 main ()
13769 {
13770 uid_t uid;
13771 struct passwd *space;
13772 char *buf;
13773 size_t bufsize;
13774 struct passwd **result;
13775 getpwuid_r(uid, space, buf, bufsize, result);
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782   (eval $ac_compile) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -s conftest.$ac_objext'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; }; then
13792   pgac_func_getpwuid_r_5arg=yes
13793 else
13794   echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 pgac_func_getpwuid_r_5arg=no
13797 fi
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13799 fi
13800 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13801 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13802 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define GETPWUID_R_5ARG
13806 _ACEOF
13807
13808 fi
13809
13810 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
13811 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
13812 if test "${pgac_func_strerror_r_int+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 #include "confdefs.h"
13818 #include <string.h>
13819 #ifdef F77_DUMMY_MAIN
13820 #  ifdef __cplusplus
13821      extern "C"
13822 #  endif
13823    int F77_DUMMY_MAIN() { return 1; }
13824 #endif
13825 int
13826 main ()
13827 {
13828 int strerror_r(int, char *, size_t);
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -s conftest.$ac_objext'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   pgac_func_strerror_r_int=yes
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 pgac_func_strerror_r_int=no
13850 fi
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
13854 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
13855 if test x"$pgac_func_strerror_r_int" = xyes ; then
13856
13857 cat >>confdefs.h <<\_ACEOF
13858 #define STRERROR_R_INT
13859 _ACEOF
13860
13861 fi
13862
13863
13864 CFLAGS="$_CFLAGS"
13865 LIBS="$_LIBS"
13866
13867 else
13868 # do not use values from template file
13869 PTHREAD_CFLAGS=
13870 PTHREAD_LIBS=
13871 fi
13872
13873
13874
13875
13876
13877 # This test makes sure that run tests work at all.  Sometimes a shared
13878 # library is found by the linker, but the runtime linker can't find it.
13879 # This check should come after all modifications of compiler or linker
13880 # variables, and before any other run tests.
13881 echo "$as_me:$LINENO: checking test program" >&5
13882 echo $ECHO_N "checking test program... $ECHO_C" >&6
13883 if test "$cross_compiling" = yes; then
13884   echo "$as_me:$LINENO: result: cross-compiling" >&5
13885 echo "${ECHO_T}cross-compiling" >&6
13886 else
13887   cat >conftest.$ac_ext <<_ACEOF
13888 #line $LINENO "configure"
13889 #include "confdefs.h"
13890 int main() { return 0; }
13891 _ACEOF
13892 rm -f conftest$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894   (eval $ac_link) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   echo "$as_me:$LINENO: result: ok" >&5
13904 echo "${ECHO_T}ok" >&6
13905 else
13906   echo "$as_me: program exited with status $ac_status" >&5
13907 echo "$as_me: failed program was:" >&5
13908 cat conftest.$ac_ext >&5
13909 ( exit $ac_status )
13910 echo "$as_me:$LINENO: result: failed" >&5
13911 echo "${ECHO_T}failed" >&6
13912 { { echo "$as_me:$LINENO: error:
13913 *** Could not execute a simple test program.  This may be a problem
13914 *** related to locating shared libraries.  Check the file 'config.log'
13915 *** for the exact reason." >&5
13916 echo "$as_me: error:
13917 *** Could not execute a simple test program.  This may be a problem
13918 *** related to locating shared libraries.  Check the file 'config.log'
13919 *** for the exact reason." >&2;}
13920    { (exit 1); exit 1; }; }
13921 fi
13922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13923 fi
13924
13925
13926
13927 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13928 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13929 if test "${pgac_cv_type_long_int_64+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   if test "$cross_compiling" = yes; then
13933   # If cross-compiling, check the size reported by the compiler and
13934 # trust that the arithmetic works.
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13937 #include "confdefs.h"
13938
13939 #ifdef F77_DUMMY_MAIN
13940 #  ifdef __cplusplus
13941      extern "C"
13942 #  endif
13943    int F77_DUMMY_MAIN() { return 1; }
13944 #endif
13945 int
13946 main ()
13947 {
13948 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13949 test_array [0] = 0
13950
13951   ;
13952   return 0;
13953 }
13954 _ACEOF
13955 rm -f conftest.$ac_objext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957   (eval $ac_compile) 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } &&
13961          { ac_try='test -s conftest.$ac_objext'
13962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963   (eval $ac_try) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; }; then
13967   pgac_cv_type_long_int_64=yes
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 cat conftest.$ac_ext >&5
13971 pgac_cv_type_long_int_64=no
13972 fi
13973 rm -f conftest.$ac_objext conftest.$ac_ext
13974 else
13975   cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 #include "confdefs.h"
13978 typedef long int int64;
13979
13980 /*
13981  * These are globals to discourage the compiler from folding all the
13982  * arithmetic tests down to compile-time constants.
13983  */
13984 int64 a = 20000001;
13985 int64 b = 40000005;
13986
13987 int does_int64_work()
13988 {
13989   int64 c,d;
13990
13991   if (sizeof(int64) != 8)
13992     return 0;                   /* definitely not the right size */
13993
13994   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13995   c = a * b;
13996   d = (c + b) / b;
13997   if (d != a+1)
13998     return 0;
13999   return 1;
14000 }
14001 main() {
14002   exit(! does_int64_work());
14003 }
14004 _ACEOF
14005 rm -f conftest$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007   (eval $ac_link) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   pgac_cv_type_long_int_64=yes
14017 else
14018   echo "$as_me: program exited with status $ac_status" >&5
14019 echo "$as_me: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14021 ( exit $ac_status )
14022 pgac_cv_type_long_int_64=no
14023 fi
14024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14025 fi
14026 fi
14027 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14028 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14029
14030 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14031 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_LONG_INT_64
14035 _ACEOF
14036
14037 fi
14038
14039
14040 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14041   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14042 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14043 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   if test "$cross_compiling" = yes; then
14047   # If cross-compiling, check the size reported by the compiler and
14048 # trust that the arithmetic works.
14049 cat >conftest.$ac_ext <<_ACEOF
14050 #line $LINENO "configure"
14051 #include "confdefs.h"
14052
14053 #ifdef F77_DUMMY_MAIN
14054 #  ifdef __cplusplus
14055      extern "C"
14056 #  endif
14057    int F77_DUMMY_MAIN() { return 1; }
14058 #endif
14059 int
14060 main ()
14061 {
14062 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14063 test_array [0] = 0
14064
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071   (eval $ac_compile) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } &&
14075          { ac_try='test -s conftest.$ac_objext'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }; then
14081   pgac_cv_type_long_long_int_64=yes
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 cat conftest.$ac_ext >&5
14085 pgac_cv_type_long_long_int_64=no
14086 fi
14087 rm -f conftest.$ac_objext conftest.$ac_ext
14088 else
14089   cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14092 typedef long long int int64;
14093
14094 /*
14095  * These are globals to discourage the compiler from folding all the
14096  * arithmetic tests down to compile-time constants.
14097  */
14098 int64 a = 20000001;
14099 int64 b = 40000005;
14100
14101 int does_int64_work()
14102 {
14103   int64 c,d;
14104
14105   if (sizeof(int64) != 8)
14106     return 0;                   /* definitely not the right size */
14107
14108   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14109   c = a * b;
14110   d = (c + b) / b;
14111   if (d != a+1)
14112     return 0;
14113   return 1;
14114 }
14115 main() {
14116   exit(! does_int64_work());
14117 }
14118 _ACEOF
14119 rm -f conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121   (eval $ac_link) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   pgac_cv_type_long_long_int_64=yes
14131 else
14132   echo "$as_me: program exited with status $ac_status" >&5
14133 echo "$as_me: failed program was:" >&5
14134 cat conftest.$ac_ext >&5
14135 ( exit $ac_status )
14136 pgac_cv_type_long_long_int_64=no
14137 fi
14138 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14139 fi
14140 fi
14141 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14142 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14143
14144 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14145 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14146
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_LONG_LONG_INT_64
14149 _ACEOF
14150
14151 fi
14152
14153 fi
14154
14155
14156
14157 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14158   cat >conftest.$ac_ext <<_ACEOF
14159 #line $LINENO "configure"
14160 #include "confdefs.h"
14161
14162 #define INT64CONST(x)  x##LL
14163 long long int foo = INT64CONST(0x1234567890123456);
14164
14165 #ifdef F77_DUMMY_MAIN
14166 #  ifdef __cplusplus
14167      extern "C"
14168 #  endif
14169    int F77_DUMMY_MAIN() { return 1; }
14170 #endif
14171 int
14172 main ()
14173 {
14174
14175   ;
14176   return 0;
14177 }
14178 _ACEOF
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181   (eval $ac_compile) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191
14192 cat >>confdefs.h <<\_ACEOF
14193 #define HAVE_LL_CONSTANTS 1
14194 _ACEOF
14195
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 fi
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14201 fi
14202
14203
14204 # If we found "long int" is 64 bits, assume snprintf handles it.  If
14205 # we found we need to use "long long int", better check.  We cope with
14206 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
14207 # work, fall back to our own snprintf emulation (which we know uses %lld).
14208
14209 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14210   if test $pgac_need_repl_snprintf = no; then
14211     echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14212 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14213 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   for pgac_format in '%lld' '%qd' '%I64d'; do
14217 if test "$cross_compiling" = yes; then
14218   pgac_cv_snprintf_long_long_int_format=cross; break
14219 else
14220   cat >conftest.$ac_ext <<_ACEOF
14221 #line $LINENO "configure"
14222 #include "confdefs.h"
14223 #include <stdio.h>
14224 typedef long long int int64;
14225 #define INT64_FORMAT "$pgac_format"
14226
14227 int64 a = 20000001;
14228 int64 b = 40000005;
14229
14230 int does_int64_snprintf_work()
14231 {
14232   int64 c;
14233   char buf[100];
14234
14235   if (sizeof(int64) != 8)
14236     return 0;                   /* doesn't look like the right size */
14237
14238   c = a * b;
14239   snprintf(buf, 100, INT64_FORMAT, c);
14240   if (strcmp(buf, "800000140000005") != 0)
14241     return 0;                   /* either multiply or snprintf is busted */
14242   return 1;
14243 }
14244 main() {
14245   exit(! does_int64_snprintf_work());
14246 }
14247 _ACEOF
14248 rm -f conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250   (eval $ac_link) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14260 else
14261   echo "$as_me: program exited with status $ac_status" >&5
14262 echo "$as_me: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14264 fi
14265 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14266 fi
14267 done
14268 fi
14269
14270 LONG_LONG_INT_FORMAT=''
14271
14272 case $pgac_cv_snprintf_long_long_int_format in
14273   cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14274 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14275   ?*)    echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14276 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14277          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14278   *)     echo "$as_me:$LINENO: result: none" >&5
14279 echo "${ECHO_T}none" >&6;;
14280 esac
14281     if test "$LONG_LONG_INT_FORMAT" = ""; then
14282       # Force usage of our own snprintf, since system snprintf is broken
14283       pgac_need_repl_snprintf=yes
14284       LONG_LONG_INT_FORMAT='%lld'
14285     fi
14286   else
14287     # Here if we previously decided we needed to use our own snprintf
14288     LONG_LONG_INT_FORMAT='%lld'
14289   fi
14290   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14291   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14292   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14293 else
14294   # Here if we are not using 'long long int' at all
14295   INT64_FORMAT='"%ld"'
14296   UINT64_FORMAT='"%lu"'
14297 fi
14298
14299
14300 cat >>confdefs.h <<_ACEOF
14301 #define INT64_FORMAT $INT64_FORMAT
14302 _ACEOF
14303
14304
14305
14306 cat >>confdefs.h <<_ACEOF
14307 #define UINT64_FORMAT $UINT64_FORMAT
14308 _ACEOF
14309
14310
14311 if test $pgac_need_repl_snprintf = yes; then
14312   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14313 fi
14314
14315 # Need a #define for the size of Datum (unsigned long)
14316 echo "$as_me:$LINENO: checking for unsigned long" >&5
14317 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14318 if test "${ac_cv_type_unsigned_long+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 #line $LINENO "configure"
14323 #include "confdefs.h"
14324 $ac_includes_default
14325 #ifdef F77_DUMMY_MAIN
14326 #  ifdef __cplusplus
14327      extern "C"
14328 #  endif
14329    int F77_DUMMY_MAIN() { return 1; }
14330 #endif
14331 int
14332 main ()
14333 {
14334 if ((unsigned long *) 0)
14335   return 0;
14336 if (sizeof (unsigned long))
14337   return 0;
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344   (eval $ac_compile) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -s conftest.$ac_objext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   ac_cv_type_unsigned_long=yes
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 ac_cv_type_unsigned_long=no
14359 fi
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14363 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14364
14365 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14366 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14367 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   if test "$ac_cv_type_unsigned_long" = yes; then
14371   # The cast to unsigned long works around a bug in the HP C Compiler
14372   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14373   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14374   # This bug is HP SR number 8606223364.
14375   if test "$cross_compiling" = yes; then
14376   # Depending upon the size, compute the lo and hi bounds.
14377 cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 #include "confdefs.h"
14380 $ac_includes_default
14381 #ifdef F77_DUMMY_MAIN
14382 #  ifdef __cplusplus
14383      extern "C"
14384 #  endif
14385    int F77_DUMMY_MAIN() { return 1; }
14386 #endif
14387 int
14388 main ()
14389 {
14390 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14391 test_array [0] = 0
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399   (eval $ac_compile) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   ac_lo=0 ac_mid=0
14410   while :; do
14411     cat >conftest.$ac_ext <<_ACEOF
14412 #line $LINENO "configure"
14413 #include "confdefs.h"
14414 $ac_includes_default
14415 #ifdef F77_DUMMY_MAIN
14416 #  ifdef __cplusplus
14417      extern "C"
14418 #  endif
14419    int F77_DUMMY_MAIN() { return 1; }
14420 #endif
14421 int
14422 main ()
14423 {
14424 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14425 test_array [0] = 0
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443   ac_hi=$ac_mid; break
14444 else
14445   echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_lo=`expr $ac_mid + 1`
14448                     if test $ac_lo -le $ac_mid; then
14449                       ac_lo= ac_hi=
14450                       break
14451                     fi
14452                     ac_mid=`expr 2 '*' $ac_mid + 1`
14453 fi
14454 rm -f conftest.$ac_objext conftest.$ac_ext
14455   done
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 #include "confdefs.h"
14462 $ac_includes_default
14463 #ifdef F77_DUMMY_MAIN
14464 #  ifdef __cplusplus
14465      extern "C"
14466 #  endif
14467    int F77_DUMMY_MAIN() { return 1; }
14468 #endif
14469 int
14470 main ()
14471 {
14472 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14473 test_array [0] = 0
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481   (eval $ac_compile) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -s conftest.$ac_objext'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   ac_hi=-1 ac_mid=-1
14492   while :; do
14493     cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 #include "confdefs.h"
14496 $ac_includes_default
14497 #ifdef F77_DUMMY_MAIN
14498 #  ifdef __cplusplus
14499      extern "C"
14500 #  endif
14501    int F77_DUMMY_MAIN() { return 1; }
14502 #endif
14503 int
14504 main ()
14505 {
14506 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14507 test_array [0] = 0
14508
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515   (eval $ac_compile) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   ac_lo=$ac_mid; break
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 ac_hi=`expr '(' $ac_mid ')' - 1`
14530                        if test $ac_mid -le $ac_hi; then
14531                          ac_lo= ac_hi=
14532                          break
14533                        fi
14534                        ac_mid=`expr 2 '*' $ac_mid`
14535 fi
14536 rm -f conftest.$ac_objext conftest.$ac_ext
14537   done
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 cat conftest.$ac_ext >&5
14541 ac_lo= ac_hi=
14542 fi
14543 rm -f conftest.$ac_objext conftest.$ac_ext
14544 fi
14545 rm -f conftest.$ac_objext conftest.$ac_ext
14546 # Binary search between lo and hi bounds.
14547 while test "x$ac_lo" != "x$ac_hi"; do
14548   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14549   cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14551 #include "confdefs.h"
14552 $ac_includes_default
14553 #ifdef F77_DUMMY_MAIN
14554 #  ifdef __cplusplus
14555      extern "C"
14556 #  endif
14557    int F77_DUMMY_MAIN() { return 1; }
14558 #endif
14559 int
14560 main ()
14561 {
14562 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14563 test_array [0] = 0
14564
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ac_hi=$ac_mid
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 ac_lo=`expr '(' $ac_mid ')' + 1`
14586 fi
14587 rm -f conftest.$ac_objext conftest.$ac_ext
14588 done
14589 case $ac_lo in
14590 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14592 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14593    { (exit 1); exit 1; }; } ;;
14594 esac
14595 else
14596   if test "$cross_compiling" = yes; then
14597   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14598 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14599    { (exit 1); exit 1; }; }
14600 else
14601   cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14603 #include "confdefs.h"
14604 $ac_includes_default
14605 long longval () { return (long) (sizeof (unsigned long)); }
14606 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14607 #include <stdio.h>
14608 #include <stdlib.h>
14609 #ifdef F77_DUMMY_MAIN
14610 #  ifdef __cplusplus
14611      extern "C"
14612 #  endif
14613    int F77_DUMMY_MAIN() { return 1; }
14614 #endif
14615 int
14616 main ()
14617 {
14618
14619   FILE *f = fopen ("conftest.val", "w");
14620   if (! f)
14621     exit (1);
14622   if (((long) (sizeof (unsigned long))) < 0)
14623     {
14624       long i = longval ();
14625       if (i != ((long) (sizeof (unsigned long))))
14626         exit (1);
14627       fprintf (f, "%ld\n", i);
14628     }
14629   else
14630     {
14631       unsigned long i = ulongval ();
14632       if (i != ((long) (sizeof (unsigned long))))
14633         exit (1);
14634       fprintf (f, "%lu\n", i);
14635     }
14636   exit (ferror (f) || fclose (f) != 0);
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644   (eval $ac_link) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649   (eval $ac_try) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); }; }; then
14653   ac_cv_sizeof_unsigned_long=`cat conftest.val`
14654 else
14655   echo "$as_me: program exited with status $ac_status" >&5
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 ( exit $ac_status )
14659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14660 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14661    { (exit 1); exit 1; }; }
14662 fi
14663 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14664 fi
14665 fi
14666 rm -f conftest.val
14667 else
14668   ac_cv_sizeof_unsigned_long=0
14669 fi
14670 fi
14671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14672 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14673 cat >>confdefs.h <<_ACEOF
14674 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14675 _ACEOF
14676
14677
14678
14679 # Determine memory alignment requirements for the basic C data types.
14680
14681 echo "$as_me:$LINENO: checking for short" >&5
14682 echo $ECHO_N "checking for short... $ECHO_C" >&6
14683 if test "${ac_cv_type_short+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 #include "confdefs.h"
14689 $ac_includes_default
14690 #ifdef F77_DUMMY_MAIN
14691 #  ifdef __cplusplus
14692      extern "C"
14693 #  endif
14694    int F77_DUMMY_MAIN() { return 1; }
14695 #endif
14696 int
14697 main ()
14698 {
14699 if ((short *) 0)
14700   return 0;
14701 if (sizeof (short))
14702   return 0;
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709   (eval $ac_compile) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -s conftest.$ac_objext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719   ac_cv_type_short=yes
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 ac_cv_type_short=no
14724 fi
14725 rm -f conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14728 echo "${ECHO_T}$ac_cv_type_short" >&6
14729
14730 echo "$as_me:$LINENO: checking alignment of short" >&5
14731 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14732 if test "${pgac_cv_alignof_short+set}" = set; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735   if test "$ac_cv_type_short" = yes; then
14736   if test "$cross_compiling" = yes; then
14737   # Depending upon the size, compute the lo and hi bounds.
14738 cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14740 #include "confdefs.h"
14741 $ac_includes_default
14742 struct { char filler; short field; } pgac_struct;
14743 #ifdef F77_DUMMY_MAIN
14744 #  ifdef __cplusplus
14745      extern "C"
14746 #  endif
14747    int F77_DUMMY_MAIN() { return 1; }
14748 #endif
14749 int
14750 main ()
14751 {
14752 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14753 test_array [0] = 0
14754
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761   (eval $ac_compile) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -s conftest.$ac_objext'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; }; then
14771   ac_lo=0 ac_mid=0
14772   while :; do
14773     cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14776 $ac_includes_default
14777 struct { char filler; short field; } pgac_struct;
14778 #ifdef F77_DUMMY_MAIN
14779 #  ifdef __cplusplus
14780      extern "C"
14781 #  endif
14782    int F77_DUMMY_MAIN() { return 1; }
14783 #endif
14784 int
14785 main ()
14786 {
14787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14788 test_array [0] = 0
14789
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } &&
14800          { ac_try='test -s conftest.$ac_objext'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }; then
14806   ac_hi=$ac_mid; break
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14810 ac_lo=`expr $ac_mid + 1`
14811                     if test $ac_lo -le $ac_mid; then
14812                       ac_lo= ac_hi=
14813                       break
14814                     fi
14815                     ac_mid=`expr 2 '*' $ac_mid + 1`
14816 fi
14817 rm -f conftest.$ac_objext conftest.$ac_ext
14818   done
14819 else
14820   echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 cat >conftest.$ac_ext <<_ACEOF
14823 #line $LINENO "configure"
14824 #include "confdefs.h"
14825 $ac_includes_default
14826 struct { char filler; short field; } pgac_struct;
14827 #ifdef F77_DUMMY_MAIN
14828 #  ifdef __cplusplus
14829      extern "C"
14830 #  endif
14831    int F77_DUMMY_MAIN() { return 1; }
14832 #endif
14833 int
14834 main ()
14835 {
14836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14837 test_array [0] = 0
14838
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845   (eval $ac_compile) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); } &&
14849          { ac_try='test -s conftest.$ac_objext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_hi=-1 ac_mid=-1
14856   while :; do
14857     cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 #include "confdefs.h"
14860 $ac_includes_default
14861 struct { char filler; short field; } pgac_struct;
14862 #ifdef F77_DUMMY_MAIN
14863 #  ifdef __cplusplus
14864      extern "C"
14865 #  endif
14866    int F77_DUMMY_MAIN() { return 1; }
14867 #endif
14868 int
14869 main ()
14870 {
14871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14872 test_array [0] = 0
14873
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14880   (eval $ac_compile) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } &&
14884          { ac_try='test -s conftest.$ac_objext'
14885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886   (eval $ac_try) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }; then
14890   ac_lo=$ac_mid; break
14891 else
14892   echo "$as_me: failed program was:" >&5
14893 cat conftest.$ac_ext >&5
14894 ac_hi=`expr '(' $ac_mid ')' - 1`
14895                        if test $ac_mid -le $ac_hi; then
14896                          ac_lo= ac_hi=
14897                          break
14898                        fi
14899                        ac_mid=`expr 2 '*' $ac_mid`
14900 fi
14901 rm -f conftest.$ac_objext conftest.$ac_ext
14902   done
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_lo= ac_hi=
14907 fi
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14909 fi
14910 rm -f conftest.$ac_objext conftest.$ac_ext
14911 # Binary search between lo and hi bounds.
14912 while test "x$ac_lo" != "x$ac_hi"; do
14913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14914   cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 $ac_includes_default
14918 struct { char filler; short field; } pgac_struct;
14919 #ifdef F77_DUMMY_MAIN
14920 #  ifdef __cplusplus
14921      extern "C"
14922 #  endif
14923    int F77_DUMMY_MAIN() { return 1; }
14924 #endif
14925 int
14926 main ()
14927 {
14928 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14929 test_array [0] = 0
14930
14931   ;
14932   return 0;
14933 }
14934 _ACEOF
14935 rm -f conftest.$ac_objext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14937   (eval $ac_compile) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } &&
14941          { ac_try='test -s conftest.$ac_objext'
14942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943   (eval $ac_try) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); }; }; then
14947   ac_hi=$ac_mid
14948 else
14949   echo "$as_me: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 ac_lo=`expr '(' $ac_mid ')' + 1`
14952 fi
14953 rm -f conftest.$ac_objext conftest.$ac_ext
14954 done
14955 case $ac_lo in
14956 ?*) pgac_cv_alignof_short=$ac_lo;;
14957 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14958 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14959    { (exit 1); exit 1; }; } ;;
14960 esac
14961 else
14962   if test "$cross_compiling" = yes; then
14963   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14964 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14965    { (exit 1); exit 1; }; }
14966 else
14967   cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 #include "confdefs.h"
14970 $ac_includes_default
14971 struct { char filler; short field; } pgac_struct;
14972 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14973 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14974 #include <stdio.h>
14975 #include <stdlib.h>
14976 #ifdef F77_DUMMY_MAIN
14977 #  ifdef __cplusplus
14978      extern "C"
14979 #  endif
14980    int F77_DUMMY_MAIN() { return 1; }
14981 #endif
14982 int
14983 main ()
14984 {
14985
14986   FILE *f = fopen ("conftest.val", "w");
14987   if (! f)
14988     exit (1);
14989   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14990     {
14991       long i = longval ();
14992       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14993         exit (1);
14994       fprintf (f, "%ld\n", i);
14995     }
14996   else
14997     {
14998       unsigned long i = ulongval ();
14999       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15000         exit (1);
15001       fprintf (f, "%lu\n", i);
15002     }
15003   exit (ferror (f) || fclose (f) != 0);
15004
15005   ;
15006   return 0;
15007 }
15008 _ACEOF
15009 rm -f conftest$ac_exeext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15011   (eval $ac_link) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   pgac_cv_alignof_short=`cat conftest.val`
15021 else
15022   echo "$as_me: program exited with status $ac_status" >&5
15023 echo "$as_me: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15025 ( exit $ac_status )
15026 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15027 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15028    { (exit 1); exit 1; }; }
15029 fi
15030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15031 fi
15032 fi
15033 rm -f conftest.val
15034 else
15035   pgac_cv_alignof_short=0
15036 fi
15037 fi
15038 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15039 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15040 cat >>confdefs.h <<_ACEOF
15041 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15042 _ACEOF
15043
15044
15045 echo "$as_me:$LINENO: checking for int" >&5
15046 echo $ECHO_N "checking for int... $ECHO_C" >&6
15047 if test "${ac_cv_type_int+set}" = set; then
15048   echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050   cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15052 #include "confdefs.h"
15053 $ac_includes_default
15054 #ifdef F77_DUMMY_MAIN
15055 #  ifdef __cplusplus
15056      extern "C"
15057 #  endif
15058    int F77_DUMMY_MAIN() { return 1; }
15059 #endif
15060 int
15061 main ()
15062 {
15063 if ((int *) 0)
15064   return 0;
15065 if (sizeof (int))
15066   return 0;
15067   ;
15068   return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073   (eval $ac_compile) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } &&
15077          { ac_try='test -s conftest.$ac_objext'
15078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079   (eval $ac_try) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); }; }; then
15083   ac_cv_type_int=yes
15084 else
15085   echo "$as_me: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15087 ac_cv_type_int=no
15088 fi
15089 rm -f conftest.$ac_objext conftest.$ac_ext
15090 fi
15091 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15092 echo "${ECHO_T}$ac_cv_type_int" >&6
15093
15094 echo "$as_me:$LINENO: checking alignment of int" >&5
15095 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15096 if test "${pgac_cv_alignof_int+set}" = set; then
15097   echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099   if test "$ac_cv_type_int" = yes; then
15100   if test "$cross_compiling" = yes; then
15101   # Depending upon the size, compute the lo and hi bounds.
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15104 #include "confdefs.h"
15105 $ac_includes_default
15106 struct { char filler; int field; } pgac_struct;
15107 #ifdef F77_DUMMY_MAIN
15108 #  ifdef __cplusplus
15109      extern "C"
15110 #  endif
15111    int F77_DUMMY_MAIN() { return 1; }
15112 #endif
15113 int
15114 main ()
15115 {
15116 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15117 test_array [0] = 0
15118
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125   (eval $ac_compile) 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); } &&
15129          { ac_try='test -s conftest.$ac_objext'
15130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131   (eval $ac_try) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; }; then
15135   ac_lo=0 ac_mid=0
15136   while :; do
15137     cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 #include "confdefs.h"
15140 $ac_includes_default
15141 struct { char filler; int field; } pgac_struct;
15142 #ifdef F77_DUMMY_MAIN
15143 #  ifdef __cplusplus
15144      extern "C"
15145 #  endif
15146    int F77_DUMMY_MAIN() { return 1; }
15147 #endif
15148 int
15149 main ()
15150 {
15151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15152 test_array [0] = 0
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160   (eval $ac_compile) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -s conftest.$ac_objext'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; }; then
15170   ac_hi=$ac_mid; break
15171 else
15172   echo "$as_me: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15174 ac_lo=`expr $ac_mid + 1`
15175                     if test $ac_lo -le $ac_mid; then
15176                       ac_lo= ac_hi=
15177                       break
15178                     fi
15179                     ac_mid=`expr 2 '*' $ac_mid + 1`
15180 fi
15181 rm -f conftest.$ac_objext conftest.$ac_ext
15182   done
15183 else
15184   echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 cat >conftest.$ac_ext <<_ACEOF
15187 #line $LINENO "configure"
15188 #include "confdefs.h"
15189 $ac_includes_default
15190 struct { char filler; int field; } pgac_struct;
15191 #ifdef F77_DUMMY_MAIN
15192 #  ifdef __cplusplus
15193      extern "C"
15194 #  endif
15195    int F77_DUMMY_MAIN() { return 1; }
15196 #endif
15197 int
15198 main ()
15199 {
15200 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15201 test_array [0] = 0
15202
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209   (eval $ac_compile) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -s conftest.$ac_objext'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219   ac_hi=-1 ac_mid=-1
15220   while :; do
15221     cat >conftest.$ac_ext <<_ACEOF
15222 #line $LINENO "configure"
15223 #include "confdefs.h"
15224 $ac_includes_default
15225 struct { char filler; int field; } pgac_struct;
15226 #ifdef F77_DUMMY_MAIN
15227 #  ifdef __cplusplus
15228      extern "C"
15229 #  endif
15230    int F77_DUMMY_MAIN() { return 1; }
15231 #endif
15232 int
15233 main ()
15234 {
15235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15236 test_array [0] = 0
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244   (eval $ac_compile) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250   (eval $ac_try) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   ac_lo=$ac_mid; break
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 ac_hi=`expr '(' $ac_mid ')' - 1`
15259                        if test $ac_mid -le $ac_hi; then
15260                          ac_lo= ac_hi=
15261                          break
15262                        fi
15263                        ac_mid=`expr 2 '*' $ac_mid`
15264 fi
15265 rm -f conftest.$ac_objext conftest.$ac_ext
15266   done
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_lo= ac_hi=
15271 fi
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15273 fi
15274 rm -f conftest.$ac_objext conftest.$ac_ext
15275 # Binary search between lo and hi bounds.
15276 while test "x$ac_lo" != "x$ac_hi"; do
15277   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15278   cat >conftest.$ac_ext <<_ACEOF
15279 #line $LINENO "configure"
15280 #include "confdefs.h"
15281 $ac_includes_default
15282 struct { char filler; int field; } pgac_struct;
15283 #ifdef F77_DUMMY_MAIN
15284 #  ifdef __cplusplus
15285      extern "C"
15286 #  endif
15287    int F77_DUMMY_MAIN() { return 1; }
15288 #endif
15289 int
15290 main ()
15291 {
15292 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15293 test_array [0] = 0
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   ac_hi=$ac_mid
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 ac_lo=`expr '(' $ac_mid ')' + 1`
15316 fi
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15318 done
15319 case $ac_lo in
15320 ?*) pgac_cv_alignof_int=$ac_lo;;
15321 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15322 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15323    { (exit 1); exit 1; }; } ;;
15324 esac
15325 else
15326   if test "$cross_compiling" = yes; then
15327   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15328 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15329    { (exit 1); exit 1; }; }
15330 else
15331   cat >conftest.$ac_ext <<_ACEOF
15332 #line $LINENO "configure"
15333 #include "confdefs.h"
15334 $ac_includes_default
15335 struct { char filler; int field; } pgac_struct;
15336 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15337 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15338 #include <stdio.h>
15339 #include <stdlib.h>
15340 #ifdef F77_DUMMY_MAIN
15341 #  ifdef __cplusplus
15342      extern "C"
15343 #  endif
15344    int F77_DUMMY_MAIN() { return 1; }
15345 #endif
15346 int
15347 main ()
15348 {
15349
15350   FILE *f = fopen ("conftest.val", "w");
15351   if (! f)
15352     exit (1);
15353   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15354     {
15355       long i = longval ();
15356       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15357         exit (1);
15358       fprintf (f, "%ld\n", i);
15359     }
15360   else
15361     {
15362       unsigned long i = ulongval ();
15363       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15364         exit (1);
15365       fprintf (f, "%lu\n", i);
15366     }
15367   exit (ferror (f) || fclose (f) != 0);
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   pgac_cv_alignof_int=`cat conftest.val`
15385 else
15386   echo "$as_me: program exited with status $ac_status" >&5
15387 echo "$as_me: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 ( exit $ac_status )
15390 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15391 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15392    { (exit 1); exit 1; }; }
15393 fi
15394 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15395 fi
15396 fi
15397 rm -f conftest.val
15398 else
15399   pgac_cv_alignof_int=0
15400 fi
15401 fi
15402 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15403 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15404 cat >>confdefs.h <<_ACEOF
15405 #define ALIGNOF_INT $pgac_cv_alignof_int
15406 _ACEOF
15407
15408
15409 echo "$as_me:$LINENO: checking for long" >&5
15410 echo $ECHO_N "checking for long... $ECHO_C" >&6
15411 if test "${ac_cv_type_long+set}" = set; then
15412   echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414   cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 #include "confdefs.h"
15417 $ac_includes_default
15418 #ifdef F77_DUMMY_MAIN
15419 #  ifdef __cplusplus
15420      extern "C"
15421 #  endif
15422    int F77_DUMMY_MAIN() { return 1; }
15423 #endif
15424 int
15425 main ()
15426 {
15427 if ((long *) 0)
15428   return 0;
15429 if (sizeof (long))
15430   return 0;
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437   (eval $ac_compile) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -s conftest.$ac_objext'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   ac_cv_type_long=yes
15448 else
15449   echo "$as_me: failed program was:" >&5
15450 cat conftest.$ac_ext >&5
15451 ac_cv_type_long=no
15452 fi
15453 rm -f conftest.$ac_objext conftest.$ac_ext
15454 fi
15455 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15456 echo "${ECHO_T}$ac_cv_type_long" >&6
15457
15458 echo "$as_me:$LINENO: checking alignment of long" >&5
15459 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15460 if test "${pgac_cv_alignof_long+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463   if test "$ac_cv_type_long" = yes; then
15464   if test "$cross_compiling" = yes; then
15465   # Depending upon the size, compute the lo and hi bounds.
15466 cat >conftest.$ac_ext <<_ACEOF
15467 #line $LINENO "configure"
15468 #include "confdefs.h"
15469 $ac_includes_default
15470 struct { char filler; long field; } pgac_struct;
15471 #ifdef F77_DUMMY_MAIN
15472 #  ifdef __cplusplus
15473      extern "C"
15474 #  endif
15475    int F77_DUMMY_MAIN() { return 1; }
15476 #endif
15477 int
15478 main ()
15479 {
15480 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15481 test_array [0] = 0
15482
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489   (eval $ac_compile) 2>&5
15490   ac_status=$?
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } &&
15493          { ac_try='test -s conftest.$ac_objext'
15494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495   (eval $ac_try) 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; }; then
15499   ac_lo=0 ac_mid=0
15500   while :; do
15501     cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15503 #include "confdefs.h"
15504 $ac_includes_default
15505 struct { char filler; long field; } pgac_struct;
15506 #ifdef F77_DUMMY_MAIN
15507 #  ifdef __cplusplus
15508      extern "C"
15509 #  endif
15510    int F77_DUMMY_MAIN() { return 1; }
15511 #endif
15512 int
15513 main ()
15514 {
15515 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15516 test_array [0] = 0
15517
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_hi=$ac_mid; break
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 ac_lo=`expr $ac_mid + 1`
15539                     if test $ac_lo -le $ac_mid; then
15540                       ac_lo= ac_hi=
15541                       break
15542                     fi
15543                     ac_mid=`expr 2 '*' $ac_mid + 1`
15544 fi
15545 rm -f conftest.$ac_objext conftest.$ac_ext
15546   done
15547 else
15548   echo "$as_me: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15552 #include "confdefs.h"
15553 $ac_includes_default
15554 struct { char filler; long field; } pgac_struct;
15555 #ifdef F77_DUMMY_MAIN
15556 #  ifdef __cplusplus
15557      extern "C"
15558 #  endif
15559    int F77_DUMMY_MAIN() { return 1; }
15560 #endif
15561 int
15562 main ()
15563 {
15564 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15565 test_array [0] = 0
15566
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15573   (eval $ac_compile) 2>&5
15574   ac_status=$?
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); } &&
15577          { ac_try='test -s conftest.$ac_objext'
15578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579   (eval $ac_try) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); }; }; then
15583   ac_hi=-1 ac_mid=-1
15584   while :; do
15585     cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15587 #include "confdefs.h"
15588 $ac_includes_default
15589 struct { char filler; long field; } pgac_struct;
15590 #ifdef F77_DUMMY_MAIN
15591 #  ifdef __cplusplus
15592      extern "C"
15593 #  endif
15594    int F77_DUMMY_MAIN() { return 1; }
15595 #endif
15596 int
15597 main ()
15598 {
15599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15600 test_array [0] = 0
15601
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608   (eval $ac_compile) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } &&
15612          { ac_try='test -s conftest.$ac_objext'
15613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614   (eval $ac_try) 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_lo=$ac_mid; break
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 ac_hi=`expr '(' $ac_mid ')' - 1`
15623                        if test $ac_mid -le $ac_hi; then
15624                          ac_lo= ac_hi=
15625                          break
15626                        fi
15627                        ac_mid=`expr 2 '*' $ac_mid`
15628 fi
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15630   done
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15634 ac_lo= ac_hi=
15635 fi
15636 rm -f conftest.$ac_objext conftest.$ac_ext
15637 fi
15638 rm -f conftest.$ac_objext conftest.$ac_ext
15639 # Binary search between lo and hi bounds.
15640 while test "x$ac_lo" != "x$ac_hi"; do
15641   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15642   cat >conftest.$ac_ext <<_ACEOF
15643 #line $LINENO "configure"
15644 #include "confdefs.h"
15645 $ac_includes_default
15646 struct { char filler; long field; } pgac_struct;
15647 #ifdef F77_DUMMY_MAIN
15648 #  ifdef __cplusplus
15649      extern "C"
15650 #  endif
15651    int F77_DUMMY_MAIN() { return 1; }
15652 #endif
15653 int
15654 main ()
15655 {
15656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15657 test_array [0] = 0
15658
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665   (eval $ac_compile) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_hi=$ac_mid
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 ac_lo=`expr '(' $ac_mid ')' + 1`
15680 fi
15681 rm -f conftest.$ac_objext conftest.$ac_ext
15682 done
15683 case $ac_lo in
15684 ?*) pgac_cv_alignof_long=$ac_lo;;
15685 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15686 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15687    { (exit 1); exit 1; }; } ;;
15688 esac
15689 else
15690   if test "$cross_compiling" = yes; then
15691   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15692 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15693    { (exit 1); exit 1; }; }
15694 else
15695   cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15697 #include "confdefs.h"
15698 $ac_includes_default
15699 struct { char filler; long field; } pgac_struct;
15700 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15701 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15702 #include <stdio.h>
15703 #include <stdlib.h>
15704 #ifdef F77_DUMMY_MAIN
15705 #  ifdef __cplusplus
15706      extern "C"
15707 #  endif
15708    int F77_DUMMY_MAIN() { return 1; }
15709 #endif
15710 int
15711 main ()
15712 {
15713
15714   FILE *f = fopen ("conftest.val", "w");
15715   if (! f)
15716     exit (1);
15717   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15718     {
15719       long i = longval ();
15720       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15721         exit (1);
15722       fprintf (f, "%ld\n", i);
15723     }
15724   else
15725     {
15726       unsigned long i = ulongval ();
15727       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15728         exit (1);
15729       fprintf (f, "%lu\n", i);
15730     }
15731   exit (ferror (f) || fclose (f) != 0);
15732
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744   (eval $ac_try) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; }; then
15748   pgac_cv_alignof_long=`cat conftest.val`
15749 else
15750   echo "$as_me: program exited with status $ac_status" >&5
15751 echo "$as_me: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15753 ( exit $ac_status )
15754 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15755 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15756    { (exit 1); exit 1; }; }
15757 fi
15758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 fi
15761 rm -f conftest.val
15762 else
15763   pgac_cv_alignof_long=0
15764 fi
15765 fi
15766 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15767 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15768 cat >>confdefs.h <<_ACEOF
15769 #define ALIGNOF_LONG $pgac_cv_alignof_long
15770 _ACEOF
15771
15772
15773 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15774   echo "$as_me:$LINENO: checking for long long int" >&5
15775 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15776 if test "${ac_cv_type_long_long_int+set}" = set; then
15777   echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15781 #include "confdefs.h"
15782 $ac_includes_default
15783 #ifdef F77_DUMMY_MAIN
15784 #  ifdef __cplusplus
15785      extern "C"
15786 #  endif
15787    int F77_DUMMY_MAIN() { return 1; }
15788 #endif
15789 int
15790 main ()
15791 {
15792 if ((long long int *) 0)
15793   return 0;
15794 if (sizeof (long long int))
15795   return 0;
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802   (eval $ac_compile) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -s conftest.$ac_objext'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; }; then
15812   ac_cv_type_long_long_int=yes
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15816 ac_cv_type_long_long_int=no
15817 fi
15818 rm -f conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15821 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15822
15823 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15824 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15825 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   if test "$ac_cv_type_long_long_int" = yes; then
15829   if test "$cross_compiling" = yes; then
15830   # Depending upon the size, compute the lo and hi bounds.
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 #include "confdefs.h"
15834 $ac_includes_default
15835 struct { char filler; long long int field; } pgac_struct;
15836 #ifdef F77_DUMMY_MAIN
15837 #  ifdef __cplusplus
15838      extern "C"
15839 #  endif
15840    int F77_DUMMY_MAIN() { return 1; }
15841 #endif
15842 int
15843 main ()
15844 {
15845 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15846 test_array [0] = 0
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854   (eval $ac_compile) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); } &&
15858          { ac_try='test -s conftest.$ac_objext'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   ac_lo=0 ac_mid=0
15865   while :; do
15866     cat >conftest.$ac_ext <<_ACEOF
15867 #line $LINENO "configure"
15868 #include "confdefs.h"
15869 $ac_includes_default
15870 struct { char filler; long long int field; } pgac_struct;
15871 #ifdef F77_DUMMY_MAIN
15872 #  ifdef __cplusplus
15873      extern "C"
15874 #  endif
15875    int F77_DUMMY_MAIN() { return 1; }
15876 #endif
15877 int
15878 main ()
15879 {
15880 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15881 test_array [0] = 0
15882
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889   (eval $ac_compile) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_hi=$ac_mid; break
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 ac_lo=`expr $ac_mid + 1`
15904                     if test $ac_lo -le $ac_mid; then
15905                       ac_lo= ac_hi=
15906                       break
15907                     fi
15908                     ac_mid=`expr 2 '*' $ac_mid + 1`
15909 fi
15910 rm -f conftest.$ac_objext conftest.$ac_ext
15911   done
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 cat conftest.$ac_ext >&5
15915 cat >conftest.$ac_ext <<_ACEOF
15916 #line $LINENO "configure"
15917 #include "confdefs.h"
15918 $ac_includes_default
15919 struct { char filler; long long int field; } pgac_struct;
15920 #ifdef F77_DUMMY_MAIN
15921 #  ifdef __cplusplus
15922      extern "C"
15923 #  endif
15924    int F77_DUMMY_MAIN() { return 1; }
15925 #endif
15926 int
15927 main ()
15928 {
15929 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15930 test_array [0] = 0
15931
15932   ;
15933   return 0;
15934 }
15935 _ACEOF
15936 rm -f conftest.$ac_objext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938   (eval $ac_compile) 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } &&
15942          { ac_try='test -s conftest.$ac_objext'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }; then
15948   ac_hi=-1 ac_mid=-1
15949   while :; do
15950     cat >conftest.$ac_ext <<_ACEOF
15951 #line $LINENO "configure"
15952 #include "confdefs.h"
15953 $ac_includes_default
15954 struct { char filler; long long int field; } pgac_struct;
15955 #ifdef F77_DUMMY_MAIN
15956 #  ifdef __cplusplus
15957      extern "C"
15958 #  endif
15959    int F77_DUMMY_MAIN() { return 1; }
15960 #endif
15961 int
15962 main ()
15963 {
15964 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15965 test_array [0] = 0
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973   (eval $ac_compile) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } &&
15977          { ac_try='test -s conftest.$ac_objext'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983   ac_lo=$ac_mid; break
15984 else
15985   echo "$as_me: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 ac_hi=`expr '(' $ac_mid ')' - 1`
15988                        if test $ac_mid -le $ac_hi; then
15989                          ac_lo= ac_hi=
15990                          break
15991                        fi
15992                        ac_mid=`expr 2 '*' $ac_mid`
15993 fi
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15995   done
15996 else
15997   echo "$as_me: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
15999 ac_lo= ac_hi=
16000 fi
16001 rm -f conftest.$ac_objext conftest.$ac_ext
16002 fi
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 # Binary search between lo and hi bounds.
16005 while test "x$ac_lo" != "x$ac_hi"; do
16006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16007   cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16009 #include "confdefs.h"
16010 $ac_includes_default
16011 struct { char filler; long long int field; } pgac_struct;
16012 #ifdef F77_DUMMY_MAIN
16013 #  ifdef __cplusplus
16014      extern "C"
16015 #  endif
16016    int F77_DUMMY_MAIN() { return 1; }
16017 #endif
16018 int
16019 main ()
16020 {
16021 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16022 test_array [0] = 0
16023
16024   ;
16025   return 0;
16026 }
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16030   (eval $ac_compile) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   ac_hi=$ac_mid
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16044 ac_lo=`expr '(' $ac_mid ')' + 1`
16045 fi
16046 rm -f conftest.$ac_objext conftest.$ac_ext
16047 done
16048 case $ac_lo in
16049 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16050 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16051 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16052    { (exit 1); exit 1; }; } ;;
16053 esac
16054 else
16055   if test "$cross_compiling" = yes; then
16056   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16057 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16058    { (exit 1); exit 1; }; }
16059 else
16060   cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 $ac_includes_default
16064 struct { char filler; long long int field; } pgac_struct;
16065 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16066 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16067 #include <stdio.h>
16068 #include <stdlib.h>
16069 #ifdef F77_DUMMY_MAIN
16070 #  ifdef __cplusplus
16071      extern "C"
16072 #  endif
16073    int F77_DUMMY_MAIN() { return 1; }
16074 #endif
16075 int
16076 main ()
16077 {
16078
16079   FILE *f = fopen ("conftest.val", "w");
16080   if (! f)
16081     exit (1);
16082   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16083     {
16084       long i = longval ();
16085       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16086         exit (1);
16087       fprintf (f, "%ld\n", i);
16088     }
16089   else
16090     {
16091       unsigned long i = ulongval ();
16092       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16093         exit (1);
16094       fprintf (f, "%lu\n", i);
16095     }
16096   exit (ferror (f) || fclose (f) != 0);
16097
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104   (eval $ac_link) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; }; then
16113   pgac_cv_alignof_long_long_int=`cat conftest.val`
16114 else
16115   echo "$as_me: program exited with status $ac_status" >&5
16116 echo "$as_me: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 ( exit $ac_status )
16119 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16120 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16121    { (exit 1); exit 1; }; }
16122 fi
16123 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16124 fi
16125 fi
16126 rm -f conftest.val
16127 else
16128   pgac_cv_alignof_long_long_int=0
16129 fi
16130 fi
16131 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16132 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16133 cat >>confdefs.h <<_ACEOF
16134 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16135 _ACEOF
16136
16137
16138 fi
16139 echo "$as_me:$LINENO: checking for double" >&5
16140 echo $ECHO_N "checking for double... $ECHO_C" >&6
16141 if test "${ac_cv_type_double+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   cat >conftest.$ac_ext <<_ACEOF
16145 #line $LINENO "configure"
16146 #include "confdefs.h"
16147 $ac_includes_default
16148 #ifdef F77_DUMMY_MAIN
16149 #  ifdef __cplusplus
16150      extern "C"
16151 #  endif
16152    int F77_DUMMY_MAIN() { return 1; }
16153 #endif
16154 int
16155 main ()
16156 {
16157 if ((double *) 0)
16158   return 0;
16159 if (sizeof (double))
16160   return 0;
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167   (eval $ac_compile) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -s conftest.$ac_objext'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; }; then
16177   ac_cv_type_double=yes
16178 else
16179   echo "$as_me: failed program was:" >&5
16180 cat conftest.$ac_ext >&5
16181 ac_cv_type_double=no
16182 fi
16183 rm -f conftest.$ac_objext conftest.$ac_ext
16184 fi
16185 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16186 echo "${ECHO_T}$ac_cv_type_double" >&6
16187
16188 echo "$as_me:$LINENO: checking alignment of double" >&5
16189 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16190 if test "${pgac_cv_alignof_double+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   if test "$ac_cv_type_double" = yes; then
16194   if test "$cross_compiling" = yes; then
16195   # Depending upon the size, compute the lo and hi bounds.
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16198 #include "confdefs.h"
16199 $ac_includes_default
16200 struct { char filler; double field; } pgac_struct;
16201 #ifdef F77_DUMMY_MAIN
16202 #  ifdef __cplusplus
16203      extern "C"
16204 #  endif
16205    int F77_DUMMY_MAIN() { return 1; }
16206 #endif
16207 int
16208 main ()
16209 {
16210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16211 test_array [0] = 0
16212
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 rm -f conftest.$ac_objext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219   (eval $ac_compile) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } &&
16223          { ac_try='test -s conftest.$ac_objext'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229   ac_lo=0 ac_mid=0
16230   while :; do
16231     cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16234 $ac_includes_default
16235 struct { char filler; double field; } pgac_struct;
16236 #ifdef F77_DUMMY_MAIN
16237 #  ifdef __cplusplus
16238      extern "C"
16239 #  endif
16240    int F77_DUMMY_MAIN() { return 1; }
16241 #endif
16242 int
16243 main ()
16244 {
16245 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16246 test_array [0] = 0
16247
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254   (eval $ac_compile) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -s conftest.$ac_objext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_hi=$ac_mid; break
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16268 ac_lo=`expr $ac_mid + 1`
16269                     if test $ac_lo -le $ac_mid; then
16270                       ac_lo= ac_hi=
16271                       break
16272                     fi
16273                     ac_mid=`expr 2 '*' $ac_mid + 1`
16274 fi
16275 rm -f conftest.$ac_objext conftest.$ac_ext
16276   done
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 cat >conftest.$ac_ext <<_ACEOF
16281 #line $LINENO "configure"
16282 #include "confdefs.h"
16283 $ac_includes_default
16284 struct { char filler; double field; } pgac_struct;
16285 #ifdef F77_DUMMY_MAIN
16286 #  ifdef __cplusplus
16287      extern "C"
16288 #  endif
16289    int F77_DUMMY_MAIN() { return 1; }
16290 #endif
16291 int
16292 main ()
16293 {
16294 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16295 test_array [0] = 0
16296
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303   (eval $ac_compile) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -s conftest.$ac_objext'
16308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309   (eval $ac_try) 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_hi=-1 ac_mid=-1
16314   while :; do
16315     cat >conftest.$ac_ext <<_ACEOF
16316 #line $LINENO "configure"
16317 #include "confdefs.h"
16318 $ac_includes_default
16319 struct { char filler; double field; } pgac_struct;
16320 #ifdef F77_DUMMY_MAIN
16321 #  ifdef __cplusplus
16322      extern "C"
16323 #  endif
16324    int F77_DUMMY_MAIN() { return 1; }
16325 #endif
16326 int
16327 main ()
16328 {
16329 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16330 test_array [0] = 0
16331
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338   (eval $ac_compile) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -s conftest.$ac_objext'
16343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344   (eval $ac_try) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   ac_lo=$ac_mid; break
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 cat conftest.$ac_ext >&5
16352 ac_hi=`expr '(' $ac_mid ')' - 1`
16353                        if test $ac_mid -le $ac_hi; then
16354                          ac_lo= ac_hi=
16355                          break
16356                        fi
16357                        ac_mid=`expr 2 '*' $ac_mid`
16358 fi
16359 rm -f conftest.$ac_objext conftest.$ac_ext
16360   done
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 cat conftest.$ac_ext >&5
16364 ac_lo= ac_hi=
16365 fi
16366 rm -f conftest.$ac_objext conftest.$ac_ext
16367 fi
16368 rm -f conftest.$ac_objext conftest.$ac_ext
16369 # Binary search between lo and hi bounds.
16370 while test "x$ac_lo" != "x$ac_hi"; do
16371   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16372   cat >conftest.$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16374 #include "confdefs.h"
16375 $ac_includes_default
16376 struct { char filler; double field; } pgac_struct;
16377 #ifdef F77_DUMMY_MAIN
16378 #  ifdef __cplusplus
16379      extern "C"
16380 #  endif
16381    int F77_DUMMY_MAIN() { return 1; }
16382 #endif
16383 int
16384 main ()
16385 {
16386 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16387 test_array [0] = 0
16388
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395   (eval $ac_compile) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -s conftest.$ac_objext'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   ac_hi=$ac_mid
16406 else
16407   echo "$as_me: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 ac_lo=`expr '(' $ac_mid ')' + 1`
16410 fi
16411 rm -f conftest.$ac_objext conftest.$ac_ext
16412 done
16413 case $ac_lo in
16414 ?*) pgac_cv_alignof_double=$ac_lo;;
16415 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16416 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16417    { (exit 1); exit 1; }; } ;;
16418 esac
16419 else
16420   if test "$cross_compiling" = yes; then
16421   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16422 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16423    { (exit 1); exit 1; }; }
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16427 #include "confdefs.h"
16428 $ac_includes_default
16429 struct { char filler; double field; } pgac_struct;
16430 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16431 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16432 #include <stdio.h>
16433 #include <stdlib.h>
16434 #ifdef F77_DUMMY_MAIN
16435 #  ifdef __cplusplus
16436      extern "C"
16437 #  endif
16438    int F77_DUMMY_MAIN() { return 1; }
16439 #endif
16440 int
16441 main ()
16442 {
16443
16444   FILE *f = fopen ("conftest.val", "w");
16445   if (! f)
16446     exit (1);
16447   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16448     {
16449       long i = longval ();
16450       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16451         exit (1);
16452       fprintf (f, "%ld\n", i);
16453     }
16454   else
16455     {
16456       unsigned long i = ulongval ();
16457       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16458         exit (1);
16459       fprintf (f, "%lu\n", i);
16460     }
16461   exit (ferror (f) || fclose (f) != 0);
16462
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest$ac_exeext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16469   (eval $ac_link) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   pgac_cv_alignof_double=`cat conftest.val`
16479 else
16480   echo "$as_me: program exited with status $ac_status" >&5
16481 echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 ( exit $ac_status )
16484 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16485 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16486    { (exit 1); exit 1; }; }
16487 fi
16488 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 fi
16490 fi
16491 rm -f conftest.val
16492 else
16493   pgac_cv_alignof_double=0
16494 fi
16495 fi
16496 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16497 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16498 cat >>confdefs.h <<_ACEOF
16499 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16500 _ACEOF
16501
16502
16503
16504 # Compute maximum alignment of any basic type.
16505 # We assume long's alignment is at least as strong as char, short, or int;
16506 # but we must check long long (if it exists) and double.
16507
16508 MAX_ALIGNOF=$pgac_cv_alignof_long
16509 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16510   MAX_ALIGNOF=$pgac_cv_alignof_double
16511 fi
16512 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16513   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16514 fi
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16518 _ACEOF
16519
16520
16521
16522 # Some platforms predefine the types int8, int16, etc.  Only check
16523 # a (hopefully) representative subset.
16524 echo "$as_me:$LINENO: checking for int8" >&5
16525 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16526 if test "${ac_cv_type_int8+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16531 #include "confdefs.h"
16532 #include <stdio.h>
16533 #ifdef HAVE_SUPPORTDEFS_H
16534 #include <SupportDefs.h>
16535 #endif
16536
16537 #ifdef F77_DUMMY_MAIN
16538 #  ifdef __cplusplus
16539      extern "C"
16540 #  endif
16541    int F77_DUMMY_MAIN() { return 1; }
16542 #endif
16543 int
16544 main ()
16545 {
16546 if ((int8 *) 0)
16547   return 0;
16548 if (sizeof (int8))
16549   return 0;
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556   (eval $ac_compile) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_type_int8=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 cat conftest.$ac_ext >&5
16570 ac_cv_type_int8=no
16571 fi
16572 rm -f conftest.$ac_objext conftest.$ac_ext
16573 fi
16574 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16575 echo "${ECHO_T}$ac_cv_type_int8" >&6
16576 if test $ac_cv_type_int8 = yes; then
16577
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_INT8 1
16580 _ACEOF
16581
16582
16583 fi
16584 echo "$as_me:$LINENO: checking for uint8" >&5
16585 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16586 if test "${ac_cv_type_uint8+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   cat >conftest.$ac_ext <<_ACEOF
16590 #line $LINENO "configure"
16591 #include "confdefs.h"
16592 #include <stdio.h>
16593 #ifdef HAVE_SUPPORTDEFS_H
16594 #include <SupportDefs.h>
16595 #endif
16596
16597 #ifdef F77_DUMMY_MAIN
16598 #  ifdef __cplusplus
16599      extern "C"
16600 #  endif
16601    int F77_DUMMY_MAIN() { return 1; }
16602 #endif
16603 int
16604 main ()
16605 {
16606 if ((uint8 *) 0)
16607   return 0;
16608 if (sizeof (uint8))
16609   return 0;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16616   (eval $ac_compile) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } &&
16620          { ac_try='test -s conftest.$ac_objext'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_type_uint8=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 ac_cv_type_uint8=no
16631 fi
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16635 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16636 if test $ac_cv_type_uint8 = yes; then
16637
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_UINT8 1
16640 _ACEOF
16641
16642
16643 fi
16644 echo "$as_me:$LINENO: checking for int64" >&5
16645 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16646 if test "${ac_cv_type_int64+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 #include "confdefs.h"
16652 #include <stdio.h>
16653 #ifdef HAVE_SUPPORTDEFS_H
16654 #include <SupportDefs.h>
16655 #endif
16656
16657 #ifdef F77_DUMMY_MAIN
16658 #  ifdef __cplusplus
16659      extern "C"
16660 #  endif
16661    int F77_DUMMY_MAIN() { return 1; }
16662 #endif
16663 int
16664 main ()
16665 {
16666 if ((int64 *) 0)
16667   return 0;
16668 if (sizeof (int64))
16669   return 0;
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676   (eval $ac_compile) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } &&
16680          { ac_try='test -s conftest.$ac_objext'
16681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682   (eval $ac_try) 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; }; then
16686   ac_cv_type_int64=yes
16687 else
16688   echo "$as_me: failed program was:" >&5
16689 cat conftest.$ac_ext >&5
16690 ac_cv_type_int64=no
16691 fi
16692 rm -f conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16695 echo "${ECHO_T}$ac_cv_type_int64" >&6
16696 if test $ac_cv_type_int64 = yes; then
16697
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_INT64 1
16700 _ACEOF
16701
16702
16703 fi
16704 echo "$as_me:$LINENO: checking for uint64" >&5
16705 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16706 if test "${ac_cv_type_uint64+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16711 #include "confdefs.h"
16712 #include <stdio.h>
16713 #ifdef HAVE_SUPPORTDEFS_H
16714 #include <SupportDefs.h>
16715 #endif
16716
16717 #ifdef F77_DUMMY_MAIN
16718 #  ifdef __cplusplus
16719      extern "C"
16720 #  endif
16721    int F77_DUMMY_MAIN() { return 1; }
16722 #endif
16723 int
16724 main ()
16725 {
16726 if ((uint64 *) 0)
16727   return 0;
16728 if (sizeof (uint64))
16729   return 0;
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736   (eval $ac_compile) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742   (eval $ac_try) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_type_uint64=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 ac_cv_type_uint64=no
16751 fi
16752 rm -f conftest.$ac_objext conftest.$ac_ext
16753 fi
16754 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16755 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16756 if test $ac_cv_type_uint64 = yes; then
16757
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_UINT64 1
16760 _ACEOF
16761
16762
16763 fi
16764
16765
16766 # We also check for sig_atomic_t, which *should* be defined per ANSI
16767 # C, but is missing on some old platforms.
16768 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16769 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16770 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16775 #include "confdefs.h"
16776 #include <signal.h>
16777
16778 #ifdef F77_DUMMY_MAIN
16779 #  ifdef __cplusplus
16780      extern "C"
16781 #  endif
16782    int F77_DUMMY_MAIN() { return 1; }
16783 #endif
16784 int
16785 main ()
16786 {
16787 if ((sig_atomic_t *) 0)
16788   return 0;
16789 if (sizeof (sig_atomic_t))
16790   return 0;
16791   ;
16792   return 0;
16793 }
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797   (eval $ac_compile) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } &&
16801          { ac_try='test -s conftest.$ac_objext'
16802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803   (eval $ac_try) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807   ac_cv_type_sig_atomic_t=yes
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 ac_cv_type_sig_atomic_t=no
16812 fi
16813 rm -f conftest.$ac_objext conftest.$ac_ext
16814 fi
16815 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16816 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16817 if test $ac_cv_type_sig_atomic_t = yes; then
16818
16819 cat >>confdefs.h <<_ACEOF
16820 #define HAVE_SIG_ATOMIC_T 1
16821 _ACEOF
16822
16823
16824 fi
16825
16826
16827
16828 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16829 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16830 if test "${pgac_cv_func_posix_signals+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16835 #include "confdefs.h"
16836 #include <signal.h>
16837
16838 #ifdef F77_DUMMY_MAIN
16839 #  ifdef __cplusplus
16840      extern "C"
16841 #  endif
16842    int F77_DUMMY_MAIN() { return 1; }
16843 #endif
16844 int
16845 main ()
16846 {
16847 struct sigaction act, oact;
16848 sigemptyset(&act.sa_mask);
16849 act.sa_flags = SA_RESTART;
16850 sigaction(0, &act, &oact);
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857   (eval $ac_link) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); } &&
16861          { ac_try='test -s conftest$ac_exeext'
16862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863   (eval $ac_try) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); }; }; then
16867   pgac_cv_func_posix_signals=yes
16868 else
16869   echo "$as_me: failed program was:" >&5
16870 cat conftest.$ac_ext >&5
16871 pgac_cv_func_posix_signals=no
16872 fi
16873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16874 fi
16875 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16876 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16877 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16878
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_POSIX_SIGNALS
16881 _ACEOF
16882
16883 fi
16884 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16885
16886 if test $ac_cv_func_fseeko = yes; then
16887 # Check whether --enable-largefile or --disable-largefile was given.
16888 if test "${enable_largefile+set}" = set; then
16889   enableval="$enable_largefile"
16890
16891 fi;
16892 if test "$enable_largefile" != no; then
16893
16894   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16895 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16896 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   ac_cv_sys_largefile_CC=no
16900      if test "$GCC" != yes; then
16901        ac_save_CC=$CC
16902        while :; do
16903          # IRIX 6.2 and later do not support large files by default,
16904          # so use the C compiler's -n32 option if that helps.
16905          cat >conftest.$ac_ext <<_ACEOF
16906 #line $LINENO "configure"
16907 #include "confdefs.h"
16908 #include <sys/types.h>
16909  /* Check that off_t can represent 2**63 - 1 correctly.
16910     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16911     since some C++ compilers masquerading as C compilers
16912     incorrectly reject 9223372036854775807.  */
16913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16914   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16915                        && LARGE_OFF_T % 2147483647 == 1)
16916                       ? 1 : -1];
16917 #ifdef F77_DUMMY_MAIN
16918 #  ifdef __cplusplus
16919      extern "C"
16920 #  endif
16921    int F77_DUMMY_MAIN() { return 1; }
16922 #endif
16923 int
16924 main ()
16925 {
16926
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931          rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933   (eval $ac_compile) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -s conftest.$ac_objext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   break
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16947 fi
16948 rm -f conftest.$ac_objext
16949          CC="$CC -n32"
16950          rm -f conftest.$ac_objext
16951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16952   (eval $ac_compile) 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -s conftest.$ac_objext'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; }; then
16962   ac_cv_sys_largefile_CC=' -n32'; break
16963 else
16964   echo "$as_me: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16966 fi
16967 rm -f conftest.$ac_objext
16968          break
16969        done
16970        CC=$ac_save_CC
16971        rm -f conftest.$ac_ext
16972     fi
16973 fi
16974 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16975 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16976   if test "$ac_cv_sys_largefile_CC" != no; then
16977     CC=$CC$ac_cv_sys_largefile_CC
16978   fi
16979
16980   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16981 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16982 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16983   echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985   while :; do
16986   ac_cv_sys_file_offset_bits=no
16987   cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <sys/types.h>
16991  /* Check that off_t can represent 2**63 - 1 correctly.
16992     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16993     since some C++ compilers masquerading as C compilers
16994     incorrectly reject 9223372036854775807.  */
16995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16996   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16997                        && LARGE_OFF_T % 2147483647 == 1)
16998                       ? 1 : -1];
16999 #ifdef F77_DUMMY_MAIN
17000 #  ifdef __cplusplus
17001      extern "C"
17002 #  endif
17003    int F77_DUMMY_MAIN() { return 1; }
17004 #endif
17005 int
17006 main ()
17007 {
17008
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015   (eval $ac_compile) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } &&
17019          { ac_try='test -s conftest.$ac_objext'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   break
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 cat conftest.$ac_ext >&5
17029 fi
17030 rm -f conftest.$ac_objext conftest.$ac_ext
17031   cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 #include "confdefs.h"
17034 #define _FILE_OFFSET_BITS 64
17035 #include <sys/types.h>
17036  /* Check that off_t can represent 2**63 - 1 correctly.
17037     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17038     since some C++ compilers masquerading as C compilers
17039     incorrectly reject 9223372036854775807.  */
17040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17041   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17042                        && LARGE_OFF_T % 2147483647 == 1)
17043                       ? 1 : -1];
17044 #ifdef F77_DUMMY_MAIN
17045 #  ifdef __cplusplus
17046      extern "C"
17047 #  endif
17048    int F77_DUMMY_MAIN() { return 1; }
17049 #endif
17050 int
17051 main ()
17052 {
17053
17054   ;
17055   return 0;
17056 }
17057 _ACEOF
17058 rm -f conftest.$ac_objext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060   (eval $ac_compile) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); } &&
17064          { ac_try='test -s conftest.$ac_objext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_sys_file_offset_bits=64; break
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17074 fi
17075 rm -f conftest.$ac_objext conftest.$ac_ext
17076   break
17077 done
17078 fi
17079 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17080 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17081 if test "$ac_cv_sys_file_offset_bits" != no; then
17082
17083 cat >>confdefs.h <<_ACEOF
17084 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17085 _ACEOF
17086
17087 fi
17088 rm -f conftest*
17089   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17090 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17091 if test "${ac_cv_sys_large_files+set}" = set; then
17092   echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094   while :; do
17095   ac_cv_sys_large_files=no
17096   cat >conftest.$ac_ext <<_ACEOF
17097 #line $LINENO "configure"
17098 #include "confdefs.h"
17099 #include <sys/types.h>
17100  /* Check that off_t can represent 2**63 - 1 correctly.
17101     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17102     since some C++ compilers masquerading as C compilers
17103     incorrectly reject 9223372036854775807.  */
17104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17105   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17106                        && LARGE_OFF_T % 2147483647 == 1)
17107                       ? 1 : -1];
17108 #ifdef F77_DUMMY_MAIN
17109 #  ifdef __cplusplus
17110      extern "C"
17111 #  endif
17112    int F77_DUMMY_MAIN() { return 1; }
17113 #endif
17114 int
17115 main ()
17116 {
17117
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124   (eval $ac_compile) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -s conftest.$ac_objext'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; }; then
17134   break
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17138 fi
17139 rm -f conftest.$ac_objext conftest.$ac_ext
17140   cat >conftest.$ac_ext <<_ACEOF
17141 #line $LINENO "configure"
17142 #include "confdefs.h"
17143 #define _LARGE_FILES 1
17144 #include <sys/types.h>
17145  /* Check that off_t can represent 2**63 - 1 correctly.
17146     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17147     since some C++ compilers masquerading as C compilers
17148     incorrectly reject 9223372036854775807.  */
17149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17150   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17151                        && LARGE_OFF_T % 2147483647 == 1)
17152                       ? 1 : -1];
17153 #ifdef F77_DUMMY_MAIN
17154 #  ifdef __cplusplus
17155      extern "C"
17156 #  endif
17157    int F77_DUMMY_MAIN() { return 1; }
17158 #endif
17159 int
17160 main ()
17161 {
17162
17163   ;
17164   return 0;
17165 }
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169   (eval $ac_compile) 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } &&
17173          { ac_try='test -s conftest.$ac_objext'
17174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175   (eval $ac_try) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; }; then
17179   ac_cv_sys_large_files=1; break
17180 else
17181   echo "$as_me: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17183 fi
17184 rm -f conftest.$ac_objext conftest.$ac_ext
17185   break
17186 done
17187 fi
17188 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17189 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17190 if test "$ac_cv_sys_large_files" != no; then
17191
17192 cat >>confdefs.h <<_ACEOF
17193 #define _LARGE_FILES $ac_cv_sys_large_files
17194 _ACEOF
17195
17196 fi
17197 rm -f conftest*
17198 fi
17199
17200 fi
17201
17202
17203 # Select semaphore implementation type.
17204 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17205
17206 cat >>confdefs.h <<\_ACEOF
17207 #define USE_NAMED_POSIX_SEMAPHORES 1
17208 _ACEOF
17209
17210   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17211 else
17212   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17213
17214 cat >>confdefs.h <<\_ACEOF
17215 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17216 _ACEOF
17217
17218     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17219   else
17220
17221 cat >>confdefs.h <<\_ACEOF
17222 #define USE_SYSV_SEMAPHORES 1
17223 _ACEOF
17224
17225     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17226   fi
17227 fi
17228
17229
17230 # Select shared-memory implementation type.
17231
17232 cat >>confdefs.h <<\_ACEOF
17233 #define USE_SYSV_SHARED_MEMORY 1
17234 _ACEOF
17235
17236 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17237
17238
17239 if test "$enable_nls" = yes ; then
17240
17241   echo "$as_me:$LINENO: checking for library containing gettext" >&5
17242 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17243 if test "${ac_cv_search_gettext+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   ac_func_search_save_LIBS=$LIBS
17247 ac_cv_search_gettext=no
17248 cat >conftest.$ac_ext <<_ACEOF
17249 #line $LINENO "configure"
17250 #include "confdefs.h"
17251
17252 /* Override any gcc2 internal prototype to avoid an error.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 /* We use char because int might match the return type of a gcc2
17257    builtin and then its argument prototype would still apply.  */
17258 char gettext ();
17259 #ifdef F77_DUMMY_MAIN
17260 #  ifdef __cplusplus
17261      extern "C"
17262 #  endif
17263    int F77_DUMMY_MAIN() { return 1; }
17264 #endif
17265 int
17266 main ()
17267 {
17268 gettext ();
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17275   (eval $ac_link) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); } &&
17279          { ac_try='test -s conftest$ac_exeext'
17280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281   (eval $ac_try) 2>&5
17282   ac_status=$?
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); }; }; then
17285   ac_cv_search_gettext="none required"
17286 else
17287   echo "$as_me: failed program was:" >&5
17288 cat conftest.$ac_ext >&5
17289 fi
17290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291 if test "$ac_cv_search_gettext" = no; then
17292   for ac_lib in intl; do
17293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17294     cat >conftest.$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17296 #include "confdefs.h"
17297
17298 /* Override any gcc2 internal prototype to avoid an error.  */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 /* We use char because int might match the return type of a gcc2
17303    builtin and then its argument prototype would still apply.  */
17304 char gettext ();
17305 #ifdef F77_DUMMY_MAIN
17306 #  ifdef __cplusplus
17307      extern "C"
17308 #  endif
17309    int F77_DUMMY_MAIN() { return 1; }
17310 #endif
17311 int
17312 main ()
17313 {
17314 gettext ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321   (eval $ac_link) 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } &&
17325          { ac_try='test -s conftest$ac_exeext'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; }; then
17331   ac_cv_search_gettext="-l$ac_lib"
17332 break
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 cat conftest.$ac_ext >&5
17336 fi
17337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17338   done
17339 fi
17340 LIBS=$ac_func_search_save_LIBS
17341 fi
17342 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17343 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17344 if test "$ac_cv_search_gettext" != no; then
17345   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17346
17347 else
17348   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17349 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17350    { (exit 1); exit 1; }; }
17351 fi
17352
17353   if test "${ac_cv_header_libintl_h+set}" = set; then
17354   echo "$as_me:$LINENO: checking for libintl.h" >&5
17355 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17356 if test "${ac_cv_header_libintl_h+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 fi
17359 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17360 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17361 else
17362   # Is the header compilable?
17363 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17364 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17365 cat >conftest.$ac_ext <<_ACEOF
17366 #line $LINENO "configure"
17367 #include "confdefs.h"
17368 $ac_includes_default
17369 #include <libintl.h>
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373   (eval $ac_compile) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -s conftest.$ac_objext'
17378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379   (eval $ac_try) 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); }; }; then
17383   ac_header_compiler=yes
17384 else
17385   echo "$as_me: failed program was:" >&5
17386 cat conftest.$ac_ext >&5
17387 ac_header_compiler=no
17388 fi
17389 rm -f conftest.$ac_objext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17391 echo "${ECHO_T}$ac_header_compiler" >&6
17392
17393 # Is the header present?
17394 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17395 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17397 #line $LINENO "configure"
17398 #include "confdefs.h"
17399 #include <libintl.h>
17400 _ACEOF
17401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17403   ac_status=$?
17404   egrep -v '^ *\+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } >/dev/null; then
17409   if test -s conftest.err; then
17410     ac_cpp_err=$ac_c_preproc_warn_flag
17411   else
17412     ac_cpp_err=
17413   fi
17414 else
17415   ac_cpp_err=yes
17416 fi
17417 if test -z "$ac_cpp_err"; then
17418   ac_header_preproc=yes
17419 else
17420   echo "$as_me: failed program was:" >&5
17421   cat conftest.$ac_ext >&5
17422   ac_header_preproc=no
17423 fi
17424 rm -f conftest.err conftest.$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17427
17428 # So?  What about this header?
17429 case $ac_header_compiler:$ac_header_preproc in
17430   yes:no )
17431     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17434 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17435   no:yes )
17436     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17437 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17438     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17439 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17440     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17441 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17442 esac
17443 echo "$as_me:$LINENO: checking for libintl.h" >&5
17444 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17445 if test "${ac_cv_header_libintl_h+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   ac_cv_header_libintl_h=$ac_header_preproc
17449 fi
17450 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17452
17453 fi
17454 if test $ac_cv_header_libintl_h = yes; then
17455   :
17456 else
17457   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17458 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17459    { (exit 1); exit 1; }; }
17460 fi
17461
17462
17463   for ac_prog in msgfmt
17464 do
17465   # Extract the first word of "$ac_prog", so it can be a program name with args.
17466 set dummy $ac_prog; ac_word=$2
17467 echo "$as_me:$LINENO: checking for $ac_word" >&5
17468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17469 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   if test -n "$MSGFMT"; then
17473   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17474 else
17475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17476 for as_dir in $PATH
17477 do
17478   IFS=$as_save_IFS
17479   test -z "$as_dir" && as_dir=.
17480   for ac_exec_ext in '' $ac_executable_extensions; do
17481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17482     ac_cv_prog_MSGFMT="$ac_prog"
17483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17484     break 2
17485   fi
17486 done
17487 done
17488
17489 fi
17490 fi
17491 MSGFMT=$ac_cv_prog_MSGFMT
17492 if test -n "$MSGFMT"; then
17493   echo "$as_me:$LINENO: result: $MSGFMT" >&5
17494 echo "${ECHO_T}$MSGFMT" >&6
17495 else
17496   echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6
17498 fi
17499
17500   test -n "$MSGFMT" && break
17501 done
17502
17503   if test -z "$MSGFMT"; then
17504     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17505 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17506    { (exit 1); exit 1; }; }
17507   fi
17508   for ac_prog in msgmerge
17509 do
17510   # Extract the first word of "$ac_prog", so it can be a program name with args.
17511 set dummy $ac_prog; ac_word=$2
17512 echo "$as_me:$LINENO: checking for $ac_word" >&5
17513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17514 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   if test -n "$MSGMERGE"; then
17518   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17519 else
17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521 for as_dir in $PATH
17522 do
17523   IFS=$as_save_IFS
17524   test -z "$as_dir" && as_dir=.
17525   for ac_exec_ext in '' $ac_executable_extensions; do
17526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17527     ac_cv_prog_MSGMERGE="$ac_prog"
17528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17529     break 2
17530   fi
17531 done
17532 done
17533
17534 fi
17535 fi
17536 MSGMERGE=$ac_cv_prog_MSGMERGE
17537 if test -n "$MSGMERGE"; then
17538   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17539 echo "${ECHO_T}$MSGMERGE" >&6
17540 else
17541   echo "$as_me:$LINENO: result: no" >&5
17542 echo "${ECHO_T}no" >&6
17543 fi
17544
17545   test -n "$MSGMERGE" && break
17546 done
17547
17548   for ac_prog in xgettext
17549 do
17550   # Extract the first word of "$ac_prog", so it can be a program name with args.
17551 set dummy $ac_prog; ac_word=$2
17552 echo "$as_me:$LINENO: checking for $ac_word" >&5
17553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17554 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557   if test -n "$XGETTEXT"; then
17558   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17559 else
17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561 for as_dir in $PATH
17562 do
17563   IFS=$as_save_IFS
17564   test -z "$as_dir" && as_dir=.
17565   for ac_exec_ext in '' $ac_executable_extensions; do
17566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567     ac_cv_prog_XGETTEXT="$ac_prog"
17568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17569     break 2
17570   fi
17571 done
17572 done
17573
17574 fi
17575 fi
17576 XGETTEXT=$ac_cv_prog_XGETTEXT
17577 if test -n "$XGETTEXT"; then
17578   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17579 echo "${ECHO_T}$XGETTEXT" >&6
17580 else
17581   echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6
17583 fi
17584
17585   test -n "$XGETTEXT" && break
17586 done
17587
17588
17589   # Note: share/locale is always the default, independent of $datadir
17590   localedir='${prefix}/share/locale'
17591   if test x"$prefix" = x"NONE"; then
17592     exp_localedir="$ac_default_prefix/share/locale"
17593   else
17594     exp_localedir="$prefix/share/locale"
17595   fi
17596
17597
17598
17599 cat >>confdefs.h <<_ACEOF
17600 #define LOCALEDIR "$exp_localedir"
17601 _ACEOF
17602
17603
17604 fi
17605
17606 # Check for Tcl configuration script tclConfig.sh
17607 if test "$with_tcl" = yes; then
17608     for ac_prog in tclsh tcl
17609 do
17610   # Extract the first word of "$ac_prog", so it can be a program name with args.
17611 set dummy $ac_prog; ac_word=$2
17612 echo "$as_me:$LINENO: checking for $ac_word" >&5
17613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17614 if test "${ac_cv_path_TCLSH+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   case $TCLSH in
17618   [\\/]* | ?:[\\/]*)
17619   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17620   ;;
17621   *)
17622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17624 do
17625   IFS=$as_save_IFS
17626   test -z "$as_dir" && as_dir=.
17627   for ac_exec_ext in '' $ac_executable_extensions; do
17628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17631     break 2
17632   fi
17633 done
17634 done
17635
17636   ;;
17637 esac
17638 fi
17639 TCLSH=$ac_cv_path_TCLSH
17640
17641 if test -n "$TCLSH"; then
17642   echo "$as_me:$LINENO: result: $TCLSH" >&5
17643 echo "${ECHO_T}$TCLSH" >&6
17644 else
17645   echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17647 fi
17648
17649   test -n "$TCLSH" && break
17650 done
17651
17652 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17653 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17654 # Let user override test
17655 if test -z "$TCL_CONFIG_SH"; then
17656     pgac_test_dirs="$with_tclconfig"
17657
17658     set X $pgac_test_dirs; shift
17659     if test $# -eq 0; then
17660         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17661 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17662    { (exit 1); exit 1; }; }
17663         set X `echo 'puts $auto_path' | $TCLSH`; shift
17664     fi
17665
17666     for pgac_dir do
17667         if test -r "$pgac_dir/tclConfig.sh"; then
17668             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17669             break
17670         fi
17671     done
17672 fi
17673
17674 if test -z "$TCL_CONFIG_SH"; then
17675     echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17677     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17678 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17679    { (exit 1); exit 1; }; }
17680 else
17681     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17682 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17683 fi
17684
17685
17686
17687     . "$TCL_CONFIG_SH"
17688 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17689 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17690 eval TCL_LIBS=\"$TCL_LIBS\"
17691 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17692 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17693
17694     fi
17695
17696 #
17697 # Check for DocBook and tools
17698 #
17699 for ac_prog in onsgmls nsgmls
17700 do
17701   # Extract the first word of "$ac_prog", so it can be a program name with args.
17702 set dummy $ac_prog; ac_word=$2
17703 echo "$as_me:$LINENO: checking for $ac_word" >&5
17704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17705 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   if test -n "$NSGMLS"; then
17709   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17710 else
17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712 for as_dir in $PATH
17713 do
17714   IFS=$as_save_IFS
17715   test -z "$as_dir" && as_dir=.
17716   for ac_exec_ext in '' $ac_executable_extensions; do
17717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17718     ac_cv_prog_NSGMLS="$ac_prog"
17719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17720     break 2
17721   fi
17722 done
17723 done
17724
17725 fi
17726 fi
17727 NSGMLS=$ac_cv_prog_NSGMLS
17728 if test -n "$NSGMLS"; then
17729   echo "$as_me:$LINENO: result: $NSGMLS" >&5
17730 echo "${ECHO_T}$NSGMLS" >&6
17731 else
17732   echo "$as_me:$LINENO: result: no" >&5
17733 echo "${ECHO_T}no" >&6
17734 fi
17735
17736   test -n "$NSGMLS" && break
17737 done
17738
17739 for ac_prog in openjade jade
17740 do
17741   # Extract the first word of "$ac_prog", so it can be a program name with args.
17742 set dummy $ac_prog; ac_word=$2
17743 echo "$as_me:$LINENO: checking for $ac_word" >&5
17744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17745 if test "${ac_cv_prog_JADE+set}" = set; then
17746   echo $ECHO_N "(cached) $ECHO_C" >&6
17747 else
17748   if test -n "$JADE"; then
17749   ac_cv_prog_JADE="$JADE" # Let the user override the test.
17750 else
17751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17752 for as_dir in $PATH
17753 do
17754   IFS=$as_save_IFS
17755   test -z "$as_dir" && as_dir=.
17756   for ac_exec_ext in '' $ac_executable_extensions; do
17757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17758     ac_cv_prog_JADE="$ac_prog"
17759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17760     break 2
17761   fi
17762 done
17763 done
17764
17765 fi
17766 fi
17767 JADE=$ac_cv_prog_JADE
17768 if test -n "$JADE"; then
17769   echo "$as_me:$LINENO: result: $JADE" >&5
17770 echo "${ECHO_T}$JADE" >&6
17771 else
17772   echo "$as_me:$LINENO: result: no" >&5
17773 echo "${ECHO_T}no" >&6
17774 fi
17775
17776   test -n "$JADE" && break
17777 done
17778
17779
17780 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17781 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17782 if test "${pgac_cv_check_docbook+set}" = set; then
17783   echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785   cat >conftest.sgml <<EOF
17786 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17787 <book>
17788  <title>test</title>
17789  <chapter>
17790   <title>random</title>
17791    <sect1>
17792     <title>testsect</title>
17793     <para>text</para>
17794   </sect1>
17795  </chapter>
17796 </book>
17797 EOF
17798
17799 pgac_cv_check_docbook=no
17800
17801 if test -n "$NSGMLS"; then
17802   $NSGMLS -s conftest.sgml 1>&5 2>&1
17803   if test $? -eq 0; then
17804     pgac_cv_check_docbook=yes
17805   fi
17806 fi
17807 rm -f conftest.sgml
17808 fi
17809 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17810 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17811
17812 have_docbook=$pgac_cv_check_docbook
17813
17814
17815 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17816 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17817 if test "${pgac_cv_path_stylesheets+set}" = set; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   if test -n "$DOCBOOKSTYLE"; then
17821   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17822 else
17823   for pgac_prefix in /usr /usr/local /opt; do
17824     for pgac_infix in share lib; do
17825       for pgac_postfix in \
17826         sgml/stylesheets/nwalsh-modular \
17827         sgml/stylesheets/docbook \
17828                 sgml/docbook-dsssl \
17829         sgml/docbook/dsssl/modular \
17830         sgml/docbook/stylesheet/dsssl/modular \
17831         sgml/docbook/dsssl-stylesheets
17832       do
17833         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17834         if test -r "$pgac_candidate/html/docbook.dsl" \
17835            && test -r "$pgac_candidate/print/docbook.dsl"
17836         then
17837           pgac_cv_path_stylesheets=$pgac_candidate
17838           break 3
17839         fi
17840       done
17841     done
17842   done
17843 fi
17844 fi
17845
17846 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17847
17848 if test -n "$DOCBOOKSTYLE"; then
17849   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17850 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17851 else
17852   echo "$as_me:$LINENO: result: no" >&5
17853 echo "${ECHO_T}no" >&6
17854 fi
17855 if test -n "$DOCBOOKSTYLE"; then
17856   for ac_prog in collateindex.pl
17857 do
17858   # Extract the first word of "$ac_prog", so it can be a program name with args.
17859 set dummy $ac_prog; ac_word=$2
17860 echo "$as_me:$LINENO: checking for $ac_word" >&5
17861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17862 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865   case $COLLATEINDEX in
17866   [\\/]* | ?:[\\/]*)
17867   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17868   ;;
17869   *)
17870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $DOCBOOKSTYLE/bin $PATH
17872 do
17873   IFS=$as_save_IFS
17874   test -z "$as_dir" && as_dir=.
17875   for ac_exec_ext in '' $ac_executable_extensions; do
17876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17877     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17879     break 2
17880   fi
17881 done
17882 done
17883
17884   ;;
17885 esac
17886 fi
17887 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17888
17889 if test -n "$COLLATEINDEX"; then
17890   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17891 echo "${ECHO_T}$COLLATEINDEX" >&6
17892 else
17893   echo "$as_me:$LINENO: result: no" >&5
17894 echo "${ECHO_T}no" >&6
17895 fi
17896
17897   test -n "$COLLATEINDEX" && break
17898 done
17899
17900 else
17901   for ac_prog in collateindex.pl
17902 do
17903   # Extract the first word of "$ac_prog", so it can be a program name with args.
17904 set dummy $ac_prog; ac_word=$2
17905 echo "$as_me:$LINENO: checking for $ac_word" >&5
17906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17907 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   case $COLLATEINDEX in
17911   [\\/]* | ?:[\\/]*)
17912   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17913   ;;
17914   *)
17915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17916 for as_dir in $PATH
17917 do
17918   IFS=$as_save_IFS
17919   test -z "$as_dir" && as_dir=.
17920   for ac_exec_ext in '' $ac_executable_extensions; do
17921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17922     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17924     break 2
17925   fi
17926 done
17927 done
17928
17929   ;;
17930 esac
17931 fi
17932 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17933
17934 if test -n "$COLLATEINDEX"; then
17935   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17936 echo "${ECHO_T}$COLLATEINDEX" >&6
17937 else
17938   echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6
17940 fi
17941
17942   test -n "$COLLATEINDEX" && break
17943 done
17944
17945 fi
17946 for ac_prog in sgmlspl
17947 do
17948   # Extract the first word of "$ac_prog", so it can be a program name with args.
17949 set dummy $ac_prog; ac_word=$2
17950 echo "$as_me:$LINENO: checking for $ac_word" >&5
17951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17952 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   if test -n "$SGMLSPL"; then
17956   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17957 else
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17960 do
17961   IFS=$as_save_IFS
17962   test -z "$as_dir" && as_dir=.
17963   for ac_exec_ext in '' $ac_executable_extensions; do
17964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965     ac_cv_prog_SGMLSPL="$ac_prog"
17966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17967     break 2
17968   fi
17969 done
17970 done
17971
17972 fi
17973 fi
17974 SGMLSPL=$ac_cv_prog_SGMLSPL
17975 if test -n "$SGMLSPL"; then
17976   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17977 echo "${ECHO_T}$SGMLSPL" >&6
17978 else
17979   echo "$as_me:$LINENO: result: no" >&5
17980 echo "${ECHO_T}no" >&6
17981 fi
17982
17983   test -n "$SGMLSPL" && break
17984 done
17985
17986
17987 # Thread testing
17988
17989 # We have to run the thread test near the end so we have all our symbols
17990 # defined.  Cross compiling throws a warning.
17991 #
17992 if test "$enable_thread_safety_force" = yes; then
17993   { echo "$as_me:$LINENO: WARNING:
17994 *** Skipping thread test program.  --enable-thread-safety-force was used.
17995 *** Run the program in src/tools/thread on the your machine and add
17996 proper locking function calls to your applications to guarantee thread
17997 safety.
17998 " >&5
17999 echo "$as_me: WARNING:
18000 *** Skipping thread test program.  --enable-thread-safety-force was used.
18001 *** Run the program in src/tools/thread on the your machine and add
18002 proper locking function calls to your applications to guarantee thread
18003 safety.
18004 " >&2;}
18005 elif test "$enable_thread_safety" = yes; then
18006 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18007 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18008
18009 _CFLAGS="$CFLAGS"
18010 _LIBS="$LIBS"
18011 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18012 LIBS="$LIBS $PTHREAD_LIBS"
18013 if test "$cross_compiling" = yes; then
18014   echo "$as_me:$LINENO: result: maybe" >&5
18015 echo "${ECHO_T}maybe" >&6
18016   { echo "$as_me:$LINENO: WARNING:
18017 *** Skipping thread test program because of cross-compile build.
18018 *** Run the program in src/tools/thread on the target machine.
18019 " >&5
18020 echo "$as_me: WARNING:
18021 *** Skipping thread test program because of cross-compile build.
18022 *** Run the program in src/tools/thread on the target machine.
18023 " >&2;}
18024 else
18025   cat >conftest.$ac_ext <<_ACEOF
18026 #line $LINENO "configure"
18027 #include "confdefs.h"
18028 #include "$srcdir/src/tools/thread/thread_test.c"
18029 _ACEOF
18030 rm -f conftest$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032   (eval $ac_link) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037   (eval $ac_try) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041   echo "$as_me:$LINENO: result: yes" >&5
18042 echo "${ECHO_T}yes" >&6
18043 else
18044   echo "$as_me: program exited with status $ac_status" >&5
18045 echo "$as_me: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18047 ( exit $ac_status )
18048 echo "$as_me:$LINENO: result: no" >&5
18049 echo "${ECHO_T}no" >&6
18050   { { echo "$as_me:$LINENO: error:
18051 *** Thread test program failed.  Your platform is not thread-safe.
18052 *** Check the file 'config.log'for the exact reason.
18053 ***
18054 *** You can use the configure option --enable-thread-safety-force
18055 *** to force threads to be enabled.  However, you must then run
18056 *** the program in src/tools/thread and add locking function calls
18057 *** to your applications to guarantee thread safety.
18058 " >&5
18059 echo "$as_me: error:
18060 *** Thread test program failed.  Your platform is not thread-safe.
18061 *** Check the file 'config.log'for the exact reason.
18062 ***
18063 *** You can use the configure option --enable-thread-safety-force
18064 *** to force threads to be enabled.  However, you must then run
18065 *** the program in src/tools/thread and add locking function calls
18066 *** to your applications to guarantee thread safety.
18067 " >&2;}
18068    { (exit 1); exit 1; }; }
18069 fi
18070 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18071 fi
18072 CFLAGS="$_CFLAGS"
18073 LIBS="$_LIBS"
18074 fi
18075
18076 # prepare build tree if outside source tree
18077 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18078 # Note 2: /bin/pwd might be better than shell's built-in at getting
18079 #         a symlink-free name.
18080 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18081   vpath_build=no
18082 else
18083   vpath_build=yes
18084   if test "$no_create" != yes; then
18085     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18086     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18087     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18088       || { { echo "$as_me:$LINENO: error: failed" >&5
18089 echo "$as_me: error: failed" >&2;}
18090    { (exit 1); exit 1; }; }
18091     echo "$as_me:$LINENO: result: done" >&5
18092 echo "${ECHO_T}done" >&6
18093   fi
18094 fi
18095
18096
18097
18098 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18099
18100
18101 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}"
18102
18103
18104 case $host_os in mingw*)
18105 ac_config_commands="$ac_config_commands check_win32_symlinks"
18106
18107         ;;
18108 esac
18109
18110 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18111
18112
18113 cat >confcache <<\_ACEOF
18114 # This file is a shell script that caches the results of configure
18115 # tests run on this system so they can be shared between configure
18116 # scripts and configure runs, see configure's option --config-cache.
18117 # It is not useful on other systems.  If it contains results you don't
18118 # want to keep, you may remove or edit it.
18119 #
18120 # config.status only pays attention to the cache file if you give it
18121 # the --recheck option to rerun configure.
18122 #
18123 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18125 # following values.
18126
18127 _ACEOF
18128
18129 # The following way of writing the cache mishandles newlines in values,
18130 # but we know of no workaround that is simple, portable, and efficient.
18131 # So, don't put newlines in cache variables' values.
18132 # Ultrix sh set writes to stderr and can't be redirected directly,
18133 # and sets the high bit in the cache file unless we assign to the vars.
18134 {
18135   (set) 2>&1 |
18136     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18137     *ac_space=\ *)
18138       # `set' does not quote correctly, so add quotes (double-quote
18139       # substitution turns \\\\ into \\, and sed turns \\ into \).
18140       sed -n \
18141         "s/'/'\\\\''/g;
18142           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18143       ;;
18144     *)
18145       # `set' quotes correctly as required by POSIX, so do not add quotes.
18146       sed -n \
18147         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18148       ;;
18149     esac;
18150 } |
18151   sed '
18152      t clear
18153      : clear
18154      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18155      t end
18156      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18157      : end' >>confcache
18158 if cmp -s $cache_file confcache; then :; else
18159   if test -w $cache_file; then
18160     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18161     cat confcache >$cache_file
18162   else
18163     echo "not updating unwritable cache $cache_file"
18164   fi
18165 fi
18166 rm -f confcache
18167
18168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18169 # Let make expand exec_prefix.
18170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18171
18172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18174 # trailing colons and then remove the whole line if VPATH becomes empty
18175 # (actually we leave an empty line to preserve line numbers).
18176 if test "x$srcdir" = x.; then
18177   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18178 s/:*\$(srcdir):*/:/;
18179 s/:*\${srcdir}:*/:/;
18180 s/:*@srcdir@:*/:/;
18181 s/^\([^=]*=[    ]*\):*/\1/;
18182 s/:*$//;
18183 s/^[^=]*=[      ]*$//;
18184 }'
18185 fi
18186
18187 DEFS=-DHAVE_CONFIG_H
18188
18189
18190 : ${CONFIG_STATUS=./config.status}
18191 ac_clean_files_save=$ac_clean_files
18192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18195 cat >$CONFIG_STATUS <<_ACEOF
18196 #! $SHELL
18197 # Generated by $as_me.
18198 # Run this file to recreate the current configuration.
18199 # Compiler output produced by configure, useful for debugging
18200 # configure, is in config.log if it exists.
18201
18202 debug=false
18203 SHELL=\${CONFIG_SHELL-$SHELL}
18204 _ACEOF
18205
18206 cat >>$CONFIG_STATUS <<\_ACEOF
18207
18208 ## --------------------- ##
18209 ## M4sh Initialization.  ##
18210 ## --------------------- ##
18211
18212 # Be Bourne compatible
18213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18214   emulate sh
18215   NULLCMD=:
18216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18217   set -o posix
18218 fi
18219
18220 # NLS nuisances.
18221 # Support unset when possible.
18222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18223   as_unset=unset
18224 else
18225   as_unset=false
18226 fi
18227
18228 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18229     { $as_unset LANG || test "${LANG+set}" != set; } ||
18230       { LANG=C; export LANG; }
18231 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18232     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18233       { LC_ALL=C; export LC_ALL; }
18234 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18235     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18236       { LC_TIME=C; export LC_TIME; }
18237 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18238     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18239       { LC_CTYPE=C; export LC_CTYPE; }
18240 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18241     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18242       { LANGUAGE=C; export LANGUAGE; }
18243 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18244     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18245       { LC_COLLATE=C; export LC_COLLATE; }
18246 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18247     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18248       { LC_NUMERIC=C; export LC_NUMERIC; }
18249 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18250     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18251       { LC_MESSAGES=C; export LC_MESSAGES; }
18252
18253
18254 # Name of the executable.
18255 as_me=`(basename "$0") 2>/dev/null ||
18256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18257          X"$0" : 'X\(//\)$' \| \
18258          X"$0" : 'X\(/\)$' \| \
18259          .     : '\(.\)' 2>/dev/null ||
18260 echo X/"$0" |
18261     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18262           /^X\/\(\/\/\)$/{ s//\1/; q; }
18263           /^X\/\(\/\).*/{ s//\1/; q; }
18264           s/.*/./; q'`
18265
18266 # PATH needs CR, and LINENO needs CR and PATH.
18267 # Avoid depending upon Character Ranges.
18268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18271 as_cr_digits='0123456789'
18272 as_cr_alnum=$as_cr_Letters$as_cr_digits
18273
18274 # The user is always right.
18275 if test "${PATH_SEPARATOR+set}" != set; then
18276   echo "#! /bin/sh" >conftest.sh
18277   echo  "exit 0"   >>conftest.sh
18278   chmod +x conftest.sh
18279   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18280     PATH_SEPARATOR=';'
18281   else
18282     PATH_SEPARATOR=:
18283   fi
18284   rm -f conftest.sh
18285 fi
18286
18287
18288   as_lineno_1=$LINENO
18289   as_lineno_2=$LINENO
18290   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291   test "x$as_lineno_1" != "x$as_lineno_2" &&
18292   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18293   # Find who we are.  Look in the path if we contain no path at all
18294   # relative or not.
18295   case $0 in
18296     *[\\/]* ) as_myself=$0 ;;
18297     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18303 done
18304
18305        ;;
18306   esac
18307   # We did not find ourselves, most probably we were run as `sh COMMAND'
18308   # in which case we are not to be found in the path.
18309   if test "x$as_myself" = x; then
18310     as_myself=$0
18311   fi
18312   if test ! -f "$as_myself"; then
18313     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18315    { (exit 1); exit 1; }; }
18316   fi
18317   case $CONFIG_SHELL in
18318   '')
18319     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18321 do
18322   IFS=$as_save_IFS
18323   test -z "$as_dir" && as_dir=.
18324   for as_base in sh bash ksh sh5; do
18325          case $as_dir in
18326          /*)
18327            if ("$as_dir/$as_base" -c '
18328   as_lineno_1=$LINENO
18329   as_lineno_2=$LINENO
18330   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18331   test "x$as_lineno_1" != "x$as_lineno_2" &&
18332   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18333              CONFIG_SHELL=$as_dir/$as_base
18334              export CONFIG_SHELL
18335              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18336            fi;;
18337          esac
18338        done
18339 done
18340 ;;
18341   esac
18342
18343   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18344   # uniformly replaced by the line number.  The first 'sed' inserts a
18345   # line-number line before each line; the second 'sed' does the real
18346   # work.  The second script uses 'N' to pair each line-number line
18347   # with the numbered line, and appends trailing '-' during
18348   # substitution so that $LINENO is not a special case at line end.
18349   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18350   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18351   sed '=' <$as_myself |
18352     sed '
18353       N
18354       s,$,-,
18355       : loop
18356       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18357       t loop
18358       s,-$,,
18359       s,^['$as_cr_digits']*\n,,
18360     ' >$as_me.lineno &&
18361   chmod +x $as_me.lineno ||
18362     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18363 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18364    { (exit 1); exit 1; }; }
18365
18366   # Don't try to exec as it changes $[0], causing all sort of problems
18367   # (the dirname of $[0] is not the place where we might find the
18368   # original and so on.  Autoconf is especially sensible to this).
18369   . ./$as_me.lineno
18370   # Exit status is that of the last command.
18371   exit
18372 }
18373
18374
18375 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18376   *c*,-n*) ECHO_N= ECHO_C='
18377 ' ECHO_T='      ' ;;
18378   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18379   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18380 esac
18381
18382 if expr a : '\(a\)' >/dev/null 2>&1; then
18383   as_expr=expr
18384 else
18385   as_expr=false
18386 fi
18387
18388 rm -f conf$$ conf$$.exe conf$$.file
18389 echo >conf$$.file
18390 if ln -s conf$$.file conf$$ 2>/dev/null; then
18391   # We could just check for DJGPP; but this test a) works b) is more generic
18392   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18393   if test -f conf$$.exe; then
18394     # Don't use ln at all; we don't have any links
18395     as_ln_s='cp -p'
18396   else
18397     as_ln_s='ln -s'
18398   fi
18399 elif ln conf$$.file conf$$ 2>/dev/null; then
18400   as_ln_s=ln
18401 else
18402   as_ln_s='cp -p'
18403 fi
18404 rm -f conf$$ conf$$.exe conf$$.file
18405
18406 as_executable_p="test -f"
18407
18408 # Sed expression to map a string onto a valid CPP name.
18409 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18410
18411 # Sed expression to map a string onto a valid variable name.
18412 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18413
18414
18415 # IFS
18416 # We need space, tab and new line, in precisely that order.
18417 as_nl='
18418 '
18419 IFS="   $as_nl"
18420
18421 # CDPATH.
18422 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18423
18424 exec 6>&1
18425
18426 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18427 # report actual input values of CONFIG_FILES etc. instead of their
18428 # values after options handling.  Logging --version etc. is OK.
18429 exec 5>>config.log
18430 {
18431   echo
18432   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18433 ## Running $as_me. ##
18434 _ASBOX
18435 } >&5
18436 cat >&5 <<_CSEOF
18437
18438 This file was extended by PostgreSQL $as_me 8.0.0beta1, which was
18439 generated by GNU Autoconf 2.53.  Invocation command line was
18440
18441   CONFIG_FILES    = $CONFIG_FILES
18442   CONFIG_HEADERS  = $CONFIG_HEADERS
18443   CONFIG_LINKS    = $CONFIG_LINKS
18444   CONFIG_COMMANDS = $CONFIG_COMMANDS
18445   $ $0 $@
18446
18447 _CSEOF
18448 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18449 echo >&5
18450 _ACEOF
18451
18452 # Files that config.status was made for.
18453 if test -n "$ac_config_files"; then
18454   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18455 fi
18456
18457 if test -n "$ac_config_headers"; then
18458   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18459 fi
18460
18461 if test -n "$ac_config_links"; then
18462   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18463 fi
18464
18465 if test -n "$ac_config_commands"; then
18466   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18467 fi
18468
18469 cat >>$CONFIG_STATUS <<\_ACEOF
18470
18471 ac_cs_usage="\
18472 \`$as_me' instantiates files from templates according to the
18473 current configuration.
18474
18475 Usage: $0 [OPTIONS] [FILE]...
18476
18477   -h, --help       print this help, then exit
18478   -V, --version    print version number, then exit
18479   -d, --debug      don't remove temporary files
18480       --recheck    update $as_me by reconfiguring in the same conditions
18481   --file=FILE[:TEMPLATE]
18482                    instantiate the configuration file FILE
18483   --header=FILE[:TEMPLATE]
18484                    instantiate the configuration header FILE
18485
18486 Configuration files:
18487 $config_files
18488
18489 Configuration headers:
18490 $config_headers
18491
18492 Configuration links:
18493 $config_links
18494
18495 Configuration commands:
18496 $config_commands
18497
18498 Report bugs to <bug-autoconf@gnu.org>."
18499 _ACEOF
18500
18501 cat >>$CONFIG_STATUS <<_ACEOF
18502 ac_cs_version="\\
18503 PostgreSQL config.status 8.0.0beta1
18504 configured by $0, generated by GNU Autoconf 2.53,
18505   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18506
18507 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18508 Free Software Foundation, Inc.
18509 This config.status script is free software; the Free Software Foundation
18510 gives unlimited permission to copy, distribute and modify it."
18511 srcdir=$srcdir
18512 _ACEOF
18513
18514 cat >>$CONFIG_STATUS <<\_ACEOF
18515 # If no file are specified by the user, then we need to provide default
18516 # value.  By we need to know if files were specified by the user.
18517 ac_need_defaults=:
18518 while test $# != 0
18519 do
18520   case $1 in
18521   --*=*)
18522     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18523     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18524     shift
18525     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18526     shift
18527     ;;
18528   -*);;
18529   *) # This is not an option, so the user has probably given explicit
18530      # arguments.
18531      ac_need_defaults=false;;
18532   esac
18533
18534   case $1 in
18535   # Handling of the options.
18536 _ACEOF
18537 cat >>$CONFIG_STATUS <<_ACEOF
18538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18539     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18540     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18541 _ACEOF
18542 cat >>$CONFIG_STATUS <<\_ACEOF
18543   --version | --vers* | -V )
18544     echo "$ac_cs_version"; exit 0 ;;
18545   --he | --h)
18546     # Conflict between --help and --header
18547     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18548 Try \`$0 --help' for more information." >&5
18549 echo "$as_me: error: ambiguous option: $1
18550 Try \`$0 --help' for more information." >&2;}
18551    { (exit 1); exit 1; }; };;
18552   --help | --hel | -h )
18553     echo "$ac_cs_usage"; exit 0 ;;
18554   --debug | --d* | -d )
18555     debug=: ;;
18556   --file | --fil | --fi | --f )
18557     shift
18558     CONFIG_FILES="$CONFIG_FILES $1"
18559     ac_need_defaults=false;;
18560   --header | --heade | --head | --hea )
18561     shift
18562     CONFIG_HEADERS="$CONFIG_HEADERS $1"
18563     ac_need_defaults=false;;
18564
18565   # This is an error.
18566   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18567 Try \`$0 --help' for more information." >&5
18568 echo "$as_me: error: unrecognized option: $1
18569 Try \`$0 --help' for more information." >&2;}
18570    { (exit 1); exit 1; }; } ;;
18571
18572   *) ac_config_targets="$ac_config_targets $1" ;;
18573
18574   esac
18575   shift
18576 done
18577
18578 _ACEOF
18579
18580
18581
18582
18583
18584 cat >>$CONFIG_STATUS <<\_ACEOF
18585 for ac_config_target in $ac_config_targets
18586 do
18587   case "$ac_config_target" in
18588   # Handling of arguments.
18589   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18590   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18591   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18592   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18593   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18594   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18595   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18596   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18597   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18598   "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18599   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18600   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18601 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18602    { (exit 1); exit 1; }; };;
18603   esac
18604 done
18605
18606 # If the user did not use the arguments to specify the items to instantiate,
18607 # then the envvar interface is used.  Set only those that are not.
18608 # We use the long form for the default assignment because of an extremely
18609 # bizarre bug on SunOS 4.1.3.
18610 if $ac_need_defaults; then
18611   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18612   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18613   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18614   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18615 fi
18616
18617 # Create a temporary directory, and hook for its removal unless debugging.
18618 $debug ||
18619 {
18620   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18621   trap '{ (exit 1); exit 1; }' 1 2 13 15
18622 }
18623
18624 # Create a (secure) tmp directory for tmp files.
18625 : ${TMPDIR=/tmp}
18626 {
18627   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18628   test -n "$tmp" && test -d "$tmp"
18629 }  ||
18630 {
18631   tmp=$TMPDIR/cs$$-$RANDOM
18632   (umask 077 && mkdir $tmp)
18633 } ||
18634 {
18635    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18636    { (exit 1); exit 1; }
18637 }
18638
18639 _ACEOF
18640
18641 cat >>$CONFIG_STATUS <<_ACEOF
18642
18643 #
18644 # CONFIG_FILES section.
18645 #
18646
18647 # No need to generate the scripts if there are no CONFIG_FILES.
18648 # This happens for instance when ./config.status config.h
18649 if test -n "\$CONFIG_FILES"; then
18650   # Protect against being on the right side of a sed subst in config.status.
18651   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18652    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18653 s,@SHELL@,$SHELL,;t t
18654 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18655 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18656 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18657 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18658 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18659 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18660 s,@exec_prefix@,$exec_prefix,;t t
18661 s,@prefix@,$prefix,;t t
18662 s,@program_transform_name@,$program_transform_name,;t t
18663 s,@bindir@,$bindir,;t t
18664 s,@sbindir@,$sbindir,;t t
18665 s,@libexecdir@,$libexecdir,;t t
18666 s,@datadir@,$datadir,;t t
18667 s,@sysconfdir@,$sysconfdir,;t t
18668 s,@sharedstatedir@,$sharedstatedir,;t t
18669 s,@localstatedir@,$localstatedir,;t t
18670 s,@libdir@,$libdir,;t t
18671 s,@includedir@,$includedir,;t t
18672 s,@oldincludedir@,$oldincludedir,;t t
18673 s,@infodir@,$infodir,;t t
18674 s,@mandir@,$mandir,;t t
18675 s,@build_alias@,$build_alias,;t t
18676 s,@host_alias@,$host_alias,;t t
18677 s,@target_alias@,$target_alias,;t t
18678 s,@DEFS@,$DEFS,;t t
18679 s,@ECHO_C@,$ECHO_C,;t t
18680 s,@ECHO_N@,$ECHO_N,;t t
18681 s,@ECHO_T@,$ECHO_T,;t t
18682 s,@LIBS@,$LIBS,;t t
18683 s,@configure_args@,$configure_args,;t t
18684 s,@build@,$build,;t t
18685 s,@build_cpu@,$build_cpu,;t t
18686 s,@build_vendor@,$build_vendor,;t t
18687 s,@build_os@,$build_os,;t t
18688 s,@host@,$host,;t t
18689 s,@host_cpu@,$host_cpu,;t t
18690 s,@host_vendor@,$host_vendor,;t t
18691 s,@host_os@,$host_os,;t t
18692 s,@PORTNAME@,$PORTNAME,;t t
18693 s,@docdir@,$docdir,;t t
18694 s,@enable_nls@,$enable_nls,;t t
18695 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18696 s,@default_port@,$default_port,;t t
18697 s,@enable_shared@,$enable_shared,;t t
18698 s,@enable_rpath@,$enable_rpath,;t t
18699 s,@enable_debug@,$enable_debug,;t t
18700 s,@CC@,$CC,;t t
18701 s,@CFLAGS@,$CFLAGS,;t t
18702 s,@LDFLAGS@,$LDFLAGS,;t t
18703 s,@CPPFLAGS@,$CPPFLAGS,;t t
18704 s,@ac_ct_CC@,$ac_ct_CC,;t t
18705 s,@EXEEXT@,$EXEEXT,;t t
18706 s,@OBJEXT@,$OBJEXT,;t t
18707 s,@CPP@,$CPP,;t t
18708 s,@GCC@,$GCC,;t t
18709 s,@TAS@,$TAS,;t t
18710 s,@autodepend@,$autodepend,;t t
18711 s,@INCLUDES@,$INCLUDES,;t t
18712 s,@enable_thread_safety@,$enable_thread_safety,;t t
18713 s,@with_tcl@,$with_tcl,;t t
18714 s,@with_perl@,$with_perl,;t t
18715 s,@with_python@,$with_python,;t t
18716 s,@with_krb4@,$with_krb4,;t t
18717 s,@with_krb5@,$with_krb5,;t t
18718 s,@krb_srvtab@,$krb_srvtab,;t t
18719 s,@with_pam@,$with_pam,;t t
18720 s,@with_rendezvous@,$with_rendezvous,;t t
18721 s,@with_openssl@,$with_openssl,;t t
18722 s,@ELF_SYS@,$ELF_SYS,;t t
18723 s,@AWK@,$AWK,;t t
18724 s,@FLEX@,$FLEX,;t t
18725 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18726 s,@LN_S@,$LN_S,;t t
18727 s,@LD@,$LD,;t t
18728 s,@with_gnu_ld@,$with_gnu_ld,;t t
18729 s,@ld_R_works@,$ld_R_works,;t t
18730 s,@RANLIB@,$RANLIB,;t t
18731 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18732 s,@LORDER@,$LORDER,;t t
18733 s,@TAR@,$TAR,;t t
18734 s,@STRIP@,$STRIP,;t t
18735 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18736 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18737 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18738 s,@YACC@,$YACC,;t t
18739 s,@YFLAGS@,$YFLAGS,;t t
18740 s,@PERL@,$PERL,;t t
18741 s,@perl_archlibexp@,$perl_archlibexp,;t t
18742 s,@perl_privlibexp@,$perl_privlibexp,;t t
18743 s,@perl_useshrplib@,$perl_useshrplib,;t t
18744 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18745 s,@PYTHON@,$PYTHON,;t t
18746 s,@python_prefix@,$python_prefix,;t t
18747 s,@python_execprefix@,$python_execprefix,;t t
18748 s,@python_configdir@,$python_configdir,;t t
18749 s,@python_includespec@,$python_includespec,;t t
18750 s,@python_libspec@,$python_libspec,;t t
18751 s,@LIBOBJS@,$LIBOBJS,;t t
18752 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18753 s,@acx_pthread_config@,$acx_pthread_config,;t t
18754 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18755 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18756 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18757 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18758 s,@MSGFMT@,$MSGFMT,;t t
18759 s,@MSGMERGE@,$MSGMERGE,;t t
18760 s,@XGETTEXT@,$XGETTEXT,;t t
18761 s,@localedir@,$localedir,;t t
18762 s,@TCLSH@,$TCLSH,;t t
18763 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18764 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18765 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18766 s,@TCL_LIBS@,$TCL_LIBS,;t t
18767 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18768 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18769 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18770 s,@NSGMLS@,$NSGMLS,;t t
18771 s,@JADE@,$JADE,;t t
18772 s,@have_docbook@,$have_docbook,;t t
18773 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18774 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18775 s,@SGMLSPL@,$SGMLSPL,;t t
18776 s,@vpath_build@,$vpath_build,;t t
18777 CEOF
18778
18779 _ACEOF
18780
18781   cat >>$CONFIG_STATUS <<\_ACEOF
18782   # Split the substitutions into bite-sized pieces for seds with
18783   # small command number limits, like on Digital OSF/1 and HP-UX.
18784   ac_max_sed_lines=48
18785   ac_sed_frag=1 # Number of current file.
18786   ac_beg=1 # First line for current file.
18787   ac_end=$ac_max_sed_lines # Line after last line for current file.
18788   ac_more_lines=:
18789   ac_sed_cmds=
18790   while $ac_more_lines; do
18791     if test $ac_beg -gt 1; then
18792       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18793     else
18794       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18795     fi
18796     if test ! -s $tmp/subs.frag; then
18797       ac_more_lines=false
18798     else
18799       # The purpose of the label and of the branching condition is to
18800       # speed up the sed processing (if there are no `@' at all, there
18801       # is no need to browse any of the substitutions).
18802       # These are the two extra sed commands mentioned above.
18803       (echo ':t
18804   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18805       if test -z "$ac_sed_cmds"; then
18806         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18807       else
18808         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18809       fi
18810       ac_sed_frag=`expr $ac_sed_frag + 1`
18811       ac_beg=$ac_end
18812       ac_end=`expr $ac_end + $ac_max_sed_lines`
18813     fi
18814   done
18815   if test -z "$ac_sed_cmds"; then
18816     ac_sed_cmds=cat
18817   fi
18818 fi # test -n "$CONFIG_FILES"
18819
18820 _ACEOF
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18823   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18824   case $ac_file in
18825   - | *:- | *:-:* ) # input from stdin
18826         cat >$tmp/stdin
18827         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18828         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18829   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18830         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18831   * )   ac_file_in=$ac_file.in ;;
18832   esac
18833
18834   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18835   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837          X"$ac_file" : 'X\(//\)[^/]' \| \
18838          X"$ac_file" : 'X\(//\)$' \| \
18839          X"$ac_file" : 'X\(/\)' \| \
18840          .     : '\(.\)' 2>/dev/null ||
18841 echo X"$ac_file" |
18842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18844           /^X\(\/\/\)$/{ s//\1/; q; }
18845           /^X\(\/\).*/{ s//\1/; q; }
18846           s/.*/./; q'`
18847   { case "$ac_dir" in
18848   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18849   *)                      as_incr_dir=.;;
18850 esac
18851 as_dummy="$ac_dir"
18852 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18853   case $as_mkdir_dir in
18854     # Skip DOS drivespec
18855     ?:) as_incr_dir=$as_mkdir_dir ;;
18856     *)
18857       as_incr_dir=$as_incr_dir/$as_mkdir_dir
18858       test -d "$as_incr_dir" ||
18859         mkdir "$as_incr_dir" ||
18860         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18861 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18862    { (exit 1); exit 1; }; }
18863     ;;
18864   esac
18865 done; }
18866
18867   ac_builddir=.
18868
18869 if test "$ac_dir" != .; then
18870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18871   # A "../" for each directory in $ac_dir_suffix.
18872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18873 else
18874   ac_dir_suffix= ac_top_builddir=
18875 fi
18876
18877 case $srcdir in
18878   .)  # No --srcdir option.  We are building in place.
18879     ac_srcdir=.
18880     if test -z "$ac_top_builddir"; then
18881        ac_top_srcdir=.
18882     else
18883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18884     fi ;;
18885   [\\/]* | ?:[\\/]* )  # Absolute path.
18886     ac_srcdir=$srcdir$ac_dir_suffix;
18887     ac_top_srcdir=$srcdir ;;
18888   *) # Relative path.
18889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18891 esac
18892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18893 # absolute.
18894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18898
18899
18900
18901   if test x"$ac_file" != x-; then
18902     { echo "$as_me:$LINENO: creating $ac_file" >&5
18903 echo "$as_me: creating $ac_file" >&6;}
18904     rm -f "$ac_file"
18905   fi
18906   # Let's still pretend it is `configure' which instantiates (i.e., don't
18907   # use $as_me), people would be surprised to read:
18908   #    /* config.h.  Generated by config.status.  */
18909   if test x"$ac_file" = x-; then
18910     configure_input=
18911   else
18912     configure_input="$ac_file.  "
18913   fi
18914   configure_input=$configure_input"Generated from `echo $ac_file_in |
18915                                      sed 's,.*/,,'` by configure."
18916
18917   # First look for the input files in the build tree, otherwise in the
18918   # src tree.
18919   ac_file_inputs=`IFS=:
18920     for f in $ac_file_in; do
18921       case $f in
18922       -) echo $tmp/stdin ;;
18923       [\\/$]*)
18924          # Absolute (can't be DOS-style, as IFS=:)
18925          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18926 echo "$as_me: error: cannot find input file: $f" >&2;}
18927    { (exit 1); exit 1; }; }
18928          echo $f;;
18929       *) # Relative
18930          if test -f "$f"; then
18931            # Build tree
18932            echo $f
18933          elif test -f "$srcdir/$f"; then
18934            # Source tree
18935            echo $srcdir/$f
18936          else
18937            # /dev/null tree
18938            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18939 echo "$as_me: error: cannot find input file: $f" >&2;}
18940    { (exit 1); exit 1; }; }
18941          fi;;
18942       esac
18943     done` || { (exit 1); exit 1; }
18944 _ACEOF
18945 cat >>$CONFIG_STATUS <<_ACEOF
18946   sed "$ac_vpsub
18947 $extrasub
18948 _ACEOF
18949 cat >>$CONFIG_STATUS <<\_ACEOF
18950 :t
18951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18952 s,@configure_input@,$configure_input,;t t
18953 s,@srcdir@,$ac_srcdir,;t t
18954 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18955 s,@top_srcdir@,$ac_top_srcdir,;t t
18956 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18957 s,@builddir@,$ac_builddir,;t t
18958 s,@abs_builddir@,$ac_abs_builddir,;t t
18959 s,@top_builddir@,$ac_top_builddir,;t t
18960 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18961 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18962   rm -f $tmp/stdin
18963   if test x"$ac_file" != x-; then
18964     mv $tmp/out $ac_file
18965   else
18966     cat $tmp/out
18967     rm -f $tmp/out
18968   fi
18969
18970 done
18971 _ACEOF
18972 cat >>$CONFIG_STATUS <<\_ACEOF
18973
18974 #
18975 # CONFIG_HEADER section.
18976 #
18977
18978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18980 #
18981 # ac_d sets the value in "#define NAME VALUE" lines.
18982 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18983 ac_dB='[        ].*$,\1#\2'
18984 ac_dC=' '
18985 ac_dD=',;t'
18986 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18987 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18988 ac_uB='$,\1#\2define\3'
18989 ac_uC=' '
18990 ac_uD=',;t'
18991
18992 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18993   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18994   case $ac_file in
18995   - | *:- | *:-:* ) # input from stdin
18996         cat >$tmp/stdin
18997         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18998         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18999   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19001   * )   ac_file_in=$ac_file.in ;;
19002   esac
19003
19004   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19005 echo "$as_me: creating $ac_file" >&6;}
19006
19007   # First look for the input files in the build tree, otherwise in the
19008   # src tree.
19009   ac_file_inputs=`IFS=:
19010     for f in $ac_file_in; do
19011       case $f in
19012       -) echo $tmp/stdin ;;
19013       [\\/$]*)
19014          # Absolute (can't be DOS-style, as IFS=:)
19015          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19016 echo "$as_me: error: cannot find input file: $f" >&2;}
19017    { (exit 1); exit 1; }; }
19018          echo $f;;
19019       *) # Relative
19020          if test -f "$f"; then
19021            # Build tree
19022            echo $f
19023          elif test -f "$srcdir/$f"; then
19024            # Source tree
19025            echo $srcdir/$f
19026          else
19027            # /dev/null tree
19028            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19029 echo "$as_me: error: cannot find input file: $f" >&2;}
19030    { (exit 1); exit 1; }; }
19031          fi;;
19032       esac
19033     done` || { (exit 1); exit 1; }
19034   # Remove the trailing spaces.
19035   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19036
19037 _ACEOF
19038
19039 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19040 # `conftest.undefs', that substitutes the proper values into
19041 # config.h.in to produce config.h.  The first handles `#define'
19042 # templates, and the second `#undef' templates.
19043 # And first: Protect against being on the right side of a sed subst in
19044 # config.status.  Protect against being in an unquoted here document
19045 # in config.status.
19046 rm -f conftest.defines conftest.undefs
19047 # Using a here document instead of a string reduces the quoting nightmare.
19048 # Putting comments in sed scripts is not portable.
19049 #
19050 # `end' is used to avoid that the second main sed command (meant for
19051 # 0-ary CPP macros) applies to n-ary macro definitions.
19052 # See the Autoconf documentation for `clear'.
19053 cat >confdef2sed.sed <<\_ACEOF
19054 s/[\\&,]/\\&/g
19055 s,[\\$`],\\&,g
19056 t clear
19057 : clear
19058 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19059 t end
19060 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19061 : end
19062 _ACEOF
19063 # If some macros were called several times there might be several times
19064 # the same #defines, which is useless.  Nevertheless, we may not want to
19065 # sort them, since we want the *last* AC-DEFINE to be honored.
19066 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19067 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19068 rm -f confdef2sed.sed
19069
19070 # This sed command replaces #undef with comments.  This is necessary, for
19071 # example, in the case of _POSIX_SOURCE, which is predefined and required
19072 # on some systems where configure will not decide to define it.
19073 cat >>conftest.undefs <<\_ACEOF
19074 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19075 _ACEOF
19076
19077 # Break up conftest.defines because some shells have a limit on the size
19078 # of here documents, and old seds have small limits too (100 cmds).
19079 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19080 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19081 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19082 echo '  :' >>$CONFIG_STATUS
19083 rm -f conftest.tail
19084 while grep . conftest.defines >/dev/null
19085 do
19086   # Write a limited-size here document to $tmp/defines.sed.
19087   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19088   # Speed up: don't consider the non `#define' lines.
19089   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19090   # Work around the forget-to-reset-the-flag bug.
19091   echo 't clr' >>$CONFIG_STATUS
19092   echo ': clr' >>$CONFIG_STATUS
19093   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19094   echo 'CEOF
19095   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19096   rm -f $tmp/in
19097   mv $tmp/out $tmp/in
19098 ' >>$CONFIG_STATUS
19099   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19100   rm -f conftest.defines
19101   mv conftest.tail conftest.defines
19102 done
19103 rm -f conftest.defines
19104 echo '  fi # egrep' >>$CONFIG_STATUS
19105 echo >>$CONFIG_STATUS
19106
19107 # Break up conftest.undefs because some shells have a limit on the size
19108 # of here documents, and old seds have small limits too (100 cmds).
19109 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19110 rm -f conftest.tail
19111 while grep . conftest.undefs >/dev/null
19112 do
19113   # Write a limited-size here document to $tmp/undefs.sed.
19114   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19115   # Speed up: don't consider the non `#undef'
19116   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19117   # Work around the forget-to-reset-the-flag bug.
19118   echo 't clr' >>$CONFIG_STATUS
19119   echo ': clr' >>$CONFIG_STATUS
19120   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19121   echo 'CEOF
19122   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19123   rm -f $tmp/in
19124   mv $tmp/out $tmp/in
19125 ' >>$CONFIG_STATUS
19126   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19127   rm -f conftest.undefs
19128   mv conftest.tail conftest.undefs
19129 done
19130 rm -f conftest.undefs
19131
19132 cat >>$CONFIG_STATUS <<\_ACEOF
19133   # Let's still pretend it is `configure' which instantiates (i.e., don't
19134   # use $as_me), people would be surprised to read:
19135   #    /* config.h.  Generated by config.status.  */
19136   if test x"$ac_file" = x-; then
19137     echo "/* Generated by configure.  */" >$tmp/config.h
19138   else
19139     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19140   fi
19141   cat $tmp/in >>$tmp/config.h
19142   rm -f $tmp/in
19143   if test x"$ac_file" != x-; then
19144     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19145       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19146 echo "$as_me: $ac_file is unchanged" >&6;}
19147     else
19148       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19150          X"$ac_file" : 'X\(//\)[^/]' \| \
19151          X"$ac_file" : 'X\(//\)$' \| \
19152          X"$ac_file" : 'X\(/\)' \| \
19153          .     : '\(.\)' 2>/dev/null ||
19154 echo X"$ac_file" |
19155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19156           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19157           /^X\(\/\/\)$/{ s//\1/; q; }
19158           /^X\(\/\).*/{ s//\1/; q; }
19159           s/.*/./; q'`
19160       { case "$ac_dir" in
19161   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19162   *)                      as_incr_dir=.;;
19163 esac
19164 as_dummy="$ac_dir"
19165 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19166   case $as_mkdir_dir in
19167     # Skip DOS drivespec
19168     ?:) as_incr_dir=$as_mkdir_dir ;;
19169     *)
19170       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19171       test -d "$as_incr_dir" ||
19172         mkdir "$as_incr_dir" ||
19173         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19174 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19175    { (exit 1); exit 1; }; }
19176     ;;
19177   esac
19178 done; }
19179
19180       rm -f $ac_file
19181       mv $tmp/config.h $ac_file
19182     fi
19183   else
19184     cat $tmp/config.h
19185     rm -f $tmp/config.h
19186   fi
19187   # Run the commands associated with the file.
19188   case $ac_file in
19189     src/include/pg_config.h )
19190 # Update timestamp for pg_config.h (see Makefile.global)
19191 echo >src/include/stamp-h
19192  ;;
19193   esac
19194 done
19195 _ACEOF
19196 cat >>$CONFIG_STATUS <<\_ACEOF
19197
19198 #
19199 # CONFIG_LINKS section.
19200 #
19201
19202 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19203   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19204   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19205
19206   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19207 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19208
19209   if test ! -r $srcdir/$ac_source; then
19210     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19211 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19212    { (exit 1); exit 1; }; }
19213   fi
19214   rm -f $ac_dest
19215
19216   # Make relative symlinks.
19217   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19219          X"$ac_dest" : 'X\(//\)[^/]' \| \
19220          X"$ac_dest" : 'X\(//\)$' \| \
19221          X"$ac_dest" : 'X\(/\)' \| \
19222          .     : '\(.\)' 2>/dev/null ||
19223 echo X"$ac_dest" |
19224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19225           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19226           /^X\(\/\/\)$/{ s//\1/; q; }
19227           /^X\(\/\).*/{ s//\1/; q; }
19228           s/.*/./; q'`
19229   { case "$ac_dest_dir" in
19230   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19231   *)                      as_incr_dir=.;;
19232 esac
19233 as_dummy="$ac_dest_dir"
19234 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19235   case $as_mkdir_dir in
19236     # Skip DOS drivespec
19237     ?:) as_incr_dir=$as_mkdir_dir ;;
19238     *)
19239       as_incr_dir=$as_incr_dir/$as_mkdir_dir
19240       test -d "$as_incr_dir" ||
19241         mkdir "$as_incr_dir" ||
19242         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19243 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19244    { (exit 1); exit 1; }; }
19245     ;;
19246   esac
19247 done; }
19248
19249   ac_builddir=.
19250
19251 if test "$ac_dest_dir" != .; then
19252   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19253   # A "../" for each directory in $ac_dir_suffix.
19254   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19255 else
19256   ac_dir_suffix= ac_top_builddir=
19257 fi
19258
19259 case $srcdir in
19260   .)  # No --srcdir option.  We are building in place.
19261     ac_srcdir=.
19262     if test -z "$ac_top_builddir"; then
19263        ac_top_srcdir=.
19264     else
19265        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19266     fi ;;
19267   [\\/]* | ?:[\\/]* )  # Absolute path.
19268     ac_srcdir=$srcdir$ac_dir_suffix;
19269     ac_top_srcdir=$srcdir ;;
19270   *) # Relative path.
19271     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19272     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19273 esac
19274 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19275 # absolute.
19276 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19277 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19278 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19279 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19280
19281
19282   case $srcdir in
19283   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19284       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19285   esac
19286
19287   # Make a symlink if possible; otherwise try a hard link.
19288   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19289     ln $srcdir/$ac_source $ac_dest ||
19290     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19291 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19292    { (exit 1); exit 1; }; }
19293 done
19294 _ACEOF
19295 cat >>$CONFIG_STATUS <<\_ACEOF
19296
19297 #
19298 # CONFIG_COMMANDS section.
19299 #
19300 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19301   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19302   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19303   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19304 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305          X"$ac_dest" : 'X\(//\)[^/]' \| \
19306          X"$ac_dest" : 'X\(//\)$' \| \
19307          X"$ac_dest" : 'X\(/\)' \| \
19308          .     : '\(.\)' 2>/dev/null ||
19309 echo X"$ac_dest" |
19310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19312           /^X\(\/\/\)$/{ s//\1/; q; }
19313           /^X\(\/\).*/{ s//\1/; q; }
19314           s/.*/./; q'`
19315   ac_builddir=.
19316
19317 if test "$ac_dir" != .; then
19318   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19319   # A "../" for each directory in $ac_dir_suffix.
19320   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19321 else
19322   ac_dir_suffix= ac_top_builddir=
19323 fi
19324
19325 case $srcdir in
19326   .)  # No --srcdir option.  We are building in place.
19327     ac_srcdir=.
19328     if test -z "$ac_top_builddir"; then
19329        ac_top_srcdir=.
19330     else
19331        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19332     fi ;;
19333   [\\/]* | ?:[\\/]* )  # Absolute path.
19334     ac_srcdir=$srcdir$ac_dir_suffix;
19335     ac_top_srcdir=$srcdir ;;
19336   *) # Relative path.
19337     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19338     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19339 esac
19340 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19341 # absolute.
19342 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19343 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19344 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19345 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19346
19347
19348   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19349 echo "$as_me: executing $ac_dest commands" >&6;}
19350   case $ac_dest in
19351     check_win32_symlinks )
19352 # Links sometimes fail undetected on Mingw -
19353 # so here we detect it and warn the user
19354 for FILE in $CONFIG_LINKS
19355  do
19356         # test -e works for symlinks in the MinGW console
19357         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19358 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19359  done
19360  ;;
19361   esac
19362 done
19363 _ACEOF
19364
19365 cat >>$CONFIG_STATUS <<\_ACEOF
19366
19367 { (exit 0); exit 0; }
19368 _ACEOF
19369 chmod +x $CONFIG_STATUS
19370 ac_clean_files=$ac_clean_files_save
19371
19372
19373 # configure is writing to config.log, and then calls config.status.
19374 # config.status does its own redirection, appending to config.log.
19375 # Unfortunately, on DOS this fails, as config.log is still kept open
19376 # by configure, so config.status won't be able to write to it; its
19377 # output is simply discarded.  So we exec the FD to /dev/null,
19378 # effectively closing config.log, so it can be properly (re)opened and
19379 # appended to by config.status.  When coming back to configure, we
19380 # need to make the FD available again.
19381 if test "$no_create" != yes; then
19382   ac_cs_success=:
19383   exec 5>/dev/null
19384   $SHELL $CONFIG_STATUS || ac_cs_success=false
19385   exec 5>>config.log
19386   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19387   # would make configure fail if this is the last instruction.
19388   $ac_cs_success || { (exit 1); exit 1; }
19389 fi
19390
19391