OSDN Git Service

Remove --enable-syslog option
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright 2002 PostgreSQL Global Development Group
13
14 if expr a : '\(a\)' >/dev/null 2>&1; then
15   as_expr=expr
16 else
17   as_expr=false
18 fi
19
20
21 ## --------------------- ##
22 ## M4sh Initialization.  ##
23 ## --------------------- ##
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # NLS nuisances.
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
36   as_unset=unset
37 else
38   as_unset=false
39 fi
40
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42     { $as_unset LANG || test "${LANG+set}" != set; } ||
43       { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46       { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49       { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52       { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55       { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58       { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61       { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64       { LC_MESSAGES=C; export LC_MESSAGES; }
65
66
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conftest.sh
90   echo  "exit 0"   >>conftest.sh
91   chmod +x conftest.sh
92   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conftest.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 as_executable_p="test -f"
218
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
221
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224
225
226 # IFS
227 # We need space, tab and new line, in precisely that order.
228 as_nl='
229 '
230 IFS="   $as_nl"
231
232 # CDPATH.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234
235
236 # Name of the host.
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
240
241 exec 6>&1
242
243 #
244 # Initializations.
245 #
246 ac_default_prefix=/usr/local
247 cross_compiling=no
248 subdirs=
249 MFLAGS=
250 MAKEFLAGS=
251 SHELL=${CONFIG_SHELL-/bin/sh}
252
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete.  It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
257
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
264
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
269 #include <stdio.h>
270 #if HAVE_SYS_TYPES_H
271 # include <sys/types.h>
272 #endif
273 #if HAVE_SYS_STAT_H
274 # include <sys/stat.h>
275 #endif
276 #if STDC_HEADERS
277 # include <stdlib.h>
278 # include <stddef.h>
279 #else
280 # if HAVE_STDLIB_H
281 #  include <stdlib.h>
282 # endif
283 #endif
284 #if HAVE_STRING_H
285 # if !STDC_HEADERS && HAVE_MEMORY_H
286 #  include <memory.h>
287 # endif
288 # include <string.h>
289 #endif
290 #if HAVE_STRINGS_H
291 # include <strings.h>
292 #endif
293 #if HAVE_INTTYPES_H
294 # include <inttypes.h>
295 #else
296 # if HAVE_STDINT_H
297 #  include <stdint.h>
298 # endif
299 #endif
300 #if HAVE_UNISTD_H
301 # include <unistd.h>
302 #endif"
303
304
305 # Initialize some variables set by options.
306 ac_init_help=
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
310 cache_file=/dev/null
311 exec_prefix=NONE
312 no_create=
313 no_recursion=
314 prefix=NONE
315 program_prefix=NONE
316 program_suffix=NONE
317 program_transform_name=s,x,x,
318 silent=
319 site=
320 srcdir=
321 verbose=
322 x_includes=NONE
323 x_libraries=NONE
324
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
342
343 ac_prev=
344 for ac_option
345 do
346   # If the previous option needs an argument, assign it.
347   if test -n "$ac_prev"; then
348     eval "$ac_prev=\$ac_option"
349     ac_prev=
350     continue
351   fi
352
353   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
354
355   # Accept the important Cygnus configure options, so we can diagnose typos.
356
357   case $ac_option in
358
359   -bindir | --bindir | --bindi | --bind | --bin | --bi)
360     ac_prev=bindir ;;
361   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
362     bindir=$ac_optarg ;;
363
364   -build | --build | --buil | --bui | --bu)
365     ac_prev=build_alias ;;
366   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367     build_alias=$ac_optarg ;;
368
369   -cache-file | --cache-file | --cache-fil | --cache-fi \
370   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371     ac_prev=cache_file ;;
372   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374     cache_file=$ac_optarg ;;
375
376   --config-cache | -C)
377     cache_file=config.cache ;;
378
379   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380     ac_prev=datadir ;;
381   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382   | --da=*)
383     datadir=$ac_optarg ;;
384
385   -disable-* | --disable-*)
386     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387     # Reject names that are not valid shell variable names.
388     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390    { (exit 1); exit 1; }; }
391     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392     eval "enable_$ac_feature=no" ;;
393
394   -enable-* | --enable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     case $ac_option in
402       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
403       *) ac_optarg=yes ;;
404     esac
405     eval "enable_$ac_feature='$ac_optarg'" ;;
406
407   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409   | --exec | --exe | --ex)
410     ac_prev=exec_prefix ;;
411   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413   | --exec=* | --exe=* | --ex=*)
414     exec_prefix=$ac_optarg ;;
415
416   -gas | --gas | --ga | --g)
417     # Obsolete; use --with-gas.
418     with_gas=yes ;;
419
420   -help | --help | --hel | --he | -h)
421     ac_init_help=long ;;
422   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423     ac_init_help=recursive ;;
424   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425     ac_init_help=short ;;
426
427   -host | --host | --hos | --ho)
428     ac_prev=host_alias ;;
429   -host=* | --host=* | --hos=* | --ho=*)
430     host_alias=$ac_optarg ;;
431
432   -includedir | --includedir | --includedi | --included | --include \
433   | --includ | --inclu | --incl | --inc)
434     ac_prev=includedir ;;
435   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436   | --includ=* | --inclu=* | --incl=* | --inc=*)
437     includedir=$ac_optarg ;;
438
439   -docdir | --docdir | --infodi | --infod | --doc | --inf)
440     ac_prev=docdir ;;
441   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
442     docdir=$ac_optarg ;;
443
444   -libdir | --libdir | --libdi | --libd)
445     ac_prev=libdir ;;
446   -libdir=* | --libdir=* | --libdi=* | --libd=*)
447     libdir=$ac_optarg ;;
448
449   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450   | --libexe | --libex | --libe)
451     ac_prev=libexecdir ;;
452   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453   | --libexe=* | --libex=* | --libe=*)
454     libexecdir=$ac_optarg ;;
455
456   -localstatedir | --localstatedir | --localstatedi | --localstated \
457   | --localstate | --localstat | --localsta | --localst \
458   | --locals | --local | --loca | --loc | --lo)
459     ac_prev=localstatedir ;;
460   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463     localstatedir=$ac_optarg ;;
464
465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466     ac_prev=mandir ;;
467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
468     mandir=$ac_optarg ;;
469
470   -nfp | --nfp | --nf)
471     # Obsolete; use --without-fp.
472     with_fp=no ;;
473
474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475   | --no-cr | --no-c | -n)
476     no_create=yes ;;
477
478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
480     no_recursion=yes ;;
481
482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484   | --oldin | --oldi | --old | --ol | --o)
485     ac_prev=oldincludedir ;;
486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489     oldincludedir=$ac_optarg ;;
490
491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492     ac_prev=prefix ;;
493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
494     prefix=$ac_optarg ;;
495
496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
497   | --program-pre | --program-pr | --program-p)
498     ac_prev=program_prefix ;;
499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501     program_prefix=$ac_optarg ;;
502
503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
504   | --program-suf | --program-su | --program-s)
505     ac_prev=program_suffix ;;
506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508     program_suffix=$ac_optarg ;;
509
510   -program-transform-name | --program-transform-name \
511   | --program-transform-nam | --program-transform-na \
512   | --program-transform-n | --program-transform- \
513   | --program-transform | --program-transfor \
514   | --program-transfo | --program-transf \
515   | --program-trans | --program-tran \
516   | --progr-tra | --program-tr | --program-t)
517     ac_prev=program_transform_name ;;
518   -program-transform-name=* | --program-transform-name=* \
519   | --program-transform-nam=* | --program-transform-na=* \
520   | --program-transform-n=* | --program-transform-=* \
521   | --program-transform=* | --program-transfor=* \
522   | --program-transfo=* | --program-transf=* \
523   | --program-trans=* | --program-tran=* \
524   | --progr-tra=* | --program-tr=* | --program-t=*)
525     program_transform_name=$ac_optarg ;;
526
527   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528   | -silent | --silent | --silen | --sile | --sil)
529     silent=yes ;;
530
531   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
532     ac_prev=sbindir ;;
533   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
534   | --sbi=* | --sb=*)
535     sbindir=$ac_optarg ;;
536
537   -sharedstatedir | --sharedstatedir | --sharedstatedi \
538   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539   | --sharedst | --shareds | --shared | --share | --shar \
540   | --sha | --sh)
541     ac_prev=sharedstatedir ;;
542   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
545   | --sha=* | --sh=*)
546     sharedstatedir=$ac_optarg ;;
547
548   -site | --site | --sit)
549     ac_prev=site ;;
550   -site=* | --site=* | --sit=*)
551     site=$ac_optarg ;;
552
553   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554     ac_prev=srcdir ;;
555   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
556     srcdir=$ac_optarg ;;
557
558   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559   | --syscon | --sysco | --sysc | --sys | --sy)
560     ac_prev=sysconfdir ;;
561   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563     sysconfdir=$ac_optarg ;;
564
565   -target | --target | --targe | --targ | --tar | --ta | --t)
566     ac_prev=target_alias ;;
567   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568     target_alias=$ac_optarg ;;
569
570   -v | -verbose | --verbose | --verbos | --verbo | --verb)
571     verbose=yes ;;
572
573   -version | --version | --versio | --versi | --vers | -V)
574     ac_init_version=: ;;
575
576   -with-* | --with-*)
577     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578     # Reject names that are not valid shell variable names.
579     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580       { echo "$as_me: error: invalid package name: $ac_package" >&2
581    { (exit 1); exit 1; }; }
582     ac_package=`echo $ac_package| sed 's/-/_/g'`
583     case $ac_option in
584       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
585       *) ac_optarg=yes ;;
586     esac
587     eval "with_$ac_package='$ac_optarg'" ;;
588
589   -without-* | --without-*)
590     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package | sed 's/-/_/g'`
596     eval "with_$ac_package=no" ;;
597
598   --x)
599     # Obsolete; use --with-x.
600     with_x=yes ;;
601
602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603   | --x-incl | --x-inc | --x-in | --x-i)
604     ac_prev=x_includes ;;
605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607     x_includes=$ac_optarg ;;
608
609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611     ac_prev=x_libraries ;;
612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614     x_libraries=$ac_optarg ;;
615
616   -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618    { (exit 1); exit 1; }; }
619     ;;
620
621   *=*)
622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623     # Reject names that are not valid shell variable names.
624     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626    { (exit 1); exit 1; }; }
627     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628     eval "$ac_envvar='$ac_optarg'"
629     export $ac_envvar ;;
630
631   *)
632     # FIXME: should be removed in autoconf 3.0.
633     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637     ;;
638
639   esac
640 done
641
642 if test -n "$ac_prev"; then
643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644   { echo "$as_me: error: missing argument to $ac_option" >&2
645    { (exit 1); exit 1; }; }
646 fi
647
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
650 do
651   eval ac_val=$`echo $ac_var`
652   case $ac_val in
653     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655    { (exit 1); exit 1; }; };;
656   esac
657 done
658
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661               localstatedir libdir includedir oldincludedir docdir mandir
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
674 build=$build_alias
675 host=$host_alias
676 target=$target_alias
677
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680   if test "x$build_alias" = x; then
681     cross_compiling=maybe
682     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683     If a cross compiler is detected then cross compile mode will be used." >&2
684   elif test "x$build_alias" != "x$host_alias"; then
685     cross_compiling=yes
686   fi
687 fi
688
689 ac_tool_prefix=
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
691
692 test "$silent" = yes && exec 6>/dev/null
693
694
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697   ac_srcdir_defaulted=yes
698   # Try the directory containing this script, then its parent.
699   ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701          X"$0" : 'X\(//\)[^/]' \| \
702          X"$0" : 'X\(//\)$' \| \
703          X"$0" : 'X\(/\)' \| \
704          .     : '\(.\)' 2>/dev/null ||
705 echo X"$0" |
706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708           /^X\(\/\/\)$/{ s//\1/; q; }
709           /^X\(\/\).*/{ s//\1/; q; }
710           s/.*/./; q'`
711   srcdir=$ac_confdir
712   if test ! -r $srcdir/$ac_unique_file; then
713     srcdir=..
714   fi
715 else
716   ac_srcdir_defaulted=no
717 fi
718 if test ! -r $srcdir/$ac_unique_file; then
719   if test "$ac_srcdir_defaulted" = yes; then
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721    { (exit 1); exit 1; }; }
722   else
723     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724    { (exit 1); exit 1; }; }
725   fi
726 fi
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
741 ac_env_CC_value=$CC
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-recode         enable character set recode support
853   --enable-multibyte      enable multibyte character support
854   --enable-nls[=LANGUAGES]  enable Native Language Support
855   --disable-shared        do not build shared libraries
856   --disable-rpath         do not embed shared library search path in executables
857   --enable-debug          build with debugging symbols (-g)
858   --enable-depend         turn on automatic dependency tracking
859   --enable-cassert        enable assertion checks (for debugging)
860   --enable-odbc           build the ODBC driver package
861
862 Optional Packages:
863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
865
866   --with-includes=DIRS    look for additional header files in DIRS
867   --with-libraries=DIRS   look for additional libraries in DIRS
868   --with-libs=DIRS        alternative spelling of --with-libraries
869   --with-pgport=PORTNUM   change default port number 5432
870   --with-maxbackends=N    set default maximum number of connections 32
871   --with-tcl              build Tcl and Tk interfaces
872   --without-tk            do not build Tk interfaces if Tcl is enabled
873   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
874   --with-tkconfig=DIR     tkConfig.sh is in DIR
875   --with-perl             build Perl interface and PL/Perl
876   --with-python           build Python interface module
877   --with-java             build JDBC interface and Java tools
878   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
879   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
880   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
881   --with-pam              build with PAM support
882   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
883   --without-readline      do not use Readline
884   --without-zlib          do not use Zlib
885   --with-unixodbc         build ODBC driver for unixODBC
886   --with-iodbc            build ODBC driver for iODBC
887   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
888   --with-CXX              build C++ modules (libpq++)
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890
891 Some influential environment variables:
892   CC          C compiler command
893   CFLAGS      C compiler flags
894   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
895               nonstandard directory <lib dir>
896   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
897               headers in a nonstandard directory <include dir>
898   CPP         C preprocessor
899   CXX         C++ compiler command
900   CXXFLAGS    C++ compiler flags
901   CXXCPP      C++ preprocessor
902   DOCBOOKSTYLE
903               location of DocBook stylesheets
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 Report bugs to <pgsql-bugs@postgresql.org>.
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971 PostgreSQL configure 7.3devel
972 generated by GNU Autoconf 2.53
973
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978
979 Copyright 2002 PostgreSQL Global Development Group
980 _ACEOF
981   exit 0
982 fi
983 exec 5>config.log
984 cat >&5 <<_ACEOF
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
987
988 It was created by PostgreSQL $as_me 7.3devel, which was
989 generated by GNU Autoconf 2.53.  Invocation command line was
990
991   $ $0 $@
992
993 _ACEOF
994 {
995 cat <<_ASUNAME
996 ## --------- ##
997 ## Platform. ##
998 ## --------- ##
999
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1008
1009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1016
1017 _ASUNAME
1018
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 for as_dir in $PATH
1021 do
1022   IFS=$as_save_IFS
1023   test -z "$as_dir" && as_dir=.
1024   echo "PATH: $as_dir"
1025 done
1026
1027 } >&5
1028
1029 cat >&5 <<_ACEOF
1030
1031
1032 ## ----------- ##
1033 ## Core tests. ##
1034 ## ----------- ##
1035
1036 _ACEOF
1037
1038
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Also quote any args containing shell meta-characters.
1042 ac_configure_args=
1043 ac_sep=
1044 for ac_arg
1045 do
1046   case $ac_arg in
1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048   | --no-cr | --no-c | -n ) continue ;;
1049   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051     continue ;;
1052   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054   esac
1055   case " $ac_configure_args " in
1056     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1057     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058        ac_sep=" " ;;
1059   esac
1060   # Get rid of the leading space.
1061 done
1062
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log.  We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close' the trap.
1068 trap 'exit_status=$?
1069   # Save into config.log some information that might help in debugging.
1070   {
1071     echo
1072     cat <<\_ASBOX
1073 ## ---------------- ##
1074 ## Cache variables. ##
1075 ## ---------------- ##
1076 _ASBOX
1077     echo
1078     # The following way of writing the cache mishandles newlines in values,
1079 {
1080   (set) 2>&1 |
1081     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082     *ac_space=\ *)
1083       sed -n \
1084         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086       ;;
1087     *)
1088       sed -n \
1089         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090       ;;
1091     esac;
1092 }
1093     echo
1094     if test -s confdefs.h; then
1095       cat <<\_ASBOX
1096 ## ----------- ##
1097 ## confdefs.h. ##
1098 ## ----------- ##
1099 _ASBOX
1100       echo
1101       sed "/^$/d" confdefs.h
1102       echo
1103     fi
1104     test "$ac_signal" != 0 &&
1105       echo "$as_me: caught signal $ac_signal"
1106     echo "$as_me: exit $exit_status"
1107   } >&5
1108   rm -f core core.* *.core &&
1109   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110     exit $exit_status
1111      ' 0
1112 for ac_signal in 1 2 13 15; do
1113   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1116
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1121
1122 # Predefined preprocessor variables.
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1142
1143
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 _ACEOF
1147
1148
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152   if test "x$prefix" != xNONE; then
1153     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154   else
1155     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156   fi
1157 fi
1158 for ac_site_file in $CONFIG_SITE; do
1159   if test -r "$ac_site_file"; then
1160     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162     sed 's/^/| /' "$ac_site_file" >&5
1163     . "$ac_site_file"
1164   fi
1165 done
1166
1167 if test -r "$cache_file"; then
1168   # Some versions of bash will fail to source /dev/null (special
1169   # files actually), so we avoid doing that.
1170   if test -f "$cache_file"; then
1171     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173     case $cache_file in
1174       [\\/]* | ?:[\\/]* ) . $cache_file;;
1175       *)                      . ./$cache_file;;
1176     esac
1177   fi
1178 else
1179   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181   >$cache_file
1182 fi
1183
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190   eval ac_new_set=\$ac_env_${ac_var}_set
1191   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192   eval ac_new_val="\$ac_env_${ac_var}_value"
1193   case $ac_old_set,$ac_new_set in
1194     set,)
1195       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197       ac_cache_corrupted=: ;;
1198     ,set)
1199       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201       ac_cache_corrupted=: ;;
1202     ,);;
1203     *)
1204       if test "x$ac_old_val" != "x$ac_new_val"; then
1205         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1208 echo "$as_me:   former value:  $ac_old_val" >&2;}
1209         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1210 echo "$as_me:   current value: $ac_new_val" >&2;}
1211         ac_cache_corrupted=:
1212       fi;;
1213   esac
1214   # Pass precious variables to config.status.
1215   if test "$ac_new_set" = set; then
1216     case $ac_new_val in
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     *) ac_arg=$ac_var=$ac_new_val ;;
1220     esac
1221     case " $ac_configure_args " in
1222       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1223       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224     esac
1225   fi
1226 done
1227 if $ac_cache_corrupted; then
1228   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232    { (exit 1); exit 1; }; }
1233 fi
1234
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273 ac_aux_dir=
1274 for ac_dir in config $srcdir/config; do
1275   if test -f $ac_dir/install-sh; then
1276     ac_aux_dir=$ac_dir
1277     ac_install_sh="$ac_aux_dir/install-sh -c"
1278     break
1279   elif test -f $ac_dir/install.sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install.sh -c"
1282     break
1283   elif test -f $ac_dir/shtool; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/shtool install -c"
1286     break
1287   fi
1288 done
1289 if test -z "$ac_aux_dir"; then
1290   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1291 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1295 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1296 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1297
1298
1299 configure_args=$ac_configure_args
1300
1301
1302
1303 cat >>confdefs.h <<_ACEOF
1304 #define PG_VERSION "$PACKAGE_VERSION"
1305 _ACEOF
1306
1307
1308 # Make sure we can run config.sub.
1309 $ac_config_sub sun4 >/dev/null 2>&1 ||
1310   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312    { (exit 1); exit 1; }; }
1313
1314 echo "$as_me:$LINENO: checking build system type" >&5
1315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316 if test "${ac_cv_build+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   ac_cv_build_alias=$build_alias
1320 test -z "$ac_cv_build_alias" &&
1321   ac_cv_build_alias=`$ac_config_guess`
1322 test -z "$ac_cv_build_alias" &&
1323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325    { (exit 1); exit 1; }; }
1326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329    { (exit 1); exit 1; }; }
1330
1331 fi
1332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333 echo "${ECHO_T}$ac_cv_build" >&6
1334 build=$ac_cv_build
1335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340 echo "$as_me:$LINENO: checking host system type" >&5
1341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342 if test "${ac_cv_host+set}" = set; then
1343   echo $ECHO_N "(cached) $ECHO_C" >&6
1344 else
1345   ac_cv_host_alias=$host_alias
1346 test -z "$ac_cv_host_alias" &&
1347   ac_cv_host_alias=$ac_cv_build_alias
1348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355 echo "${ECHO_T}$ac_cv_host" >&6
1356 host=$ac_cv_host
1357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362
1363 template=
1364 echo "$as_me:$LINENO: checking which template to use" >&5
1365 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1366
1367
1368
1369
1370 # Check whether --with-template or --without-template was given.
1371 if test "${with_template+set}" = set; then
1372   withval="$with_template"
1373
1374   case $withval in
1375     yes)
1376       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1377 echo "$as_me: error: argument required for --with-template option" >&2;}
1378    { (exit 1); exit 1; }; }
1379       ;;
1380     no)
1381       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1382 echo "$as_me: error: argument required for --with-template option" >&2;}
1383    { (exit 1); exit 1; }; }
1384       ;;
1385     *)
1386
1387   case $withval in
1388     list)   echo; ls "$srcdir/src/template"; exit;;
1389     *)      if test -f "$srcdir/src/template/$with_template" ; then
1390               template=$withval
1391             else
1392               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1393 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1394    { (exit 1); exit 1; }; }
1395             fi;;
1396   esac
1397
1398       ;;
1399   esac
1400
1401 else
1402
1403   # --with-template not given
1404
1405 case $host_os in
1406      aix*) template=aix ;;
1407     beos*) template=beos ;;
1408     bsdi*) template=bsdi ;;
1409   cygwin*) template=win ;;
1410   darwin*) template=darwin ;;
1411     dgux*) template=dgux ;;
1412  freebsd*) template=freebsd ;;
1413     hpux*) template=hpux ;;
1414     irix*) template=irix5 ;;
1415    linux*) template=linux ;;
1416   netbsd*) template=netbsd ;;
1417 nextstep*) template=nextstep ;;
1418  openbsd*) template=openbsd ;;
1419      osf*) template=osf ;;
1420      qnx*) template=qnx4 ;;
1421      sco*) template=sco ;;
1422  solaris*) template=solaris ;;
1423    sunos*) template=sunos4 ;;
1424  sysv4.2*)
1425         case $host_vendor in
1426           univel) template=univel ;;
1427         esac ;;
1428    sysv4*) template=svr4 ;;
1429    sysv5*) template=unixware ;;
1430   ultrix*) template=ultrix4 ;;
1431 esac
1432
1433   if test x"$template" = x"" ; then
1434     { { echo "$as_me:$LINENO: error:
1435 *******************************************************************
1436 PostgreSQL has apparently not been ported to your platform yet.
1437 To try a manual configuration, look into the src/template directory
1438 for a similar platform and use the '--with-template=' option.
1439
1440 Please also contact <pgsql-ports@postgresql.org> to see about
1441 rectifying this.  Include the above 'checking host system type...'
1442 line.
1443 *******************************************************************
1444 " >&5
1445 echo "$as_me: error:
1446 *******************************************************************
1447 PostgreSQL has apparently not been ported to your platform yet.
1448 To try a manual configuration, look into the src/template directory
1449 for a similar platform and use the '--with-template=' option.
1450
1451 Please also contact <pgsql-ports@postgresql.org> to see about
1452 rectifying this.  Include the above 'checking host system type...'
1453 line.
1454 *******************************************************************
1455 " >&2;}
1456    { (exit 1); exit 1; }; }
1457   fi
1458
1459
1460 fi;
1461
1462
1463 echo "$as_me:$LINENO: result: $template" >&5
1464 echo "${ECHO_T}$template" >&6
1465
1466 PORTNAME=$template
1467
1468
1469 # Pick right test-and-set (TAS) code.  Most platforms have inline
1470 # assembler code in src/include/storage/s_lock.h, so we just use
1471 # a dummy file here.
1472 case $host in
1473   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1474   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1475   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1476   *)                need_tas=no;  tas_file=dummy.s ;;
1477 esac
1478 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1479
1480
1481 if test "$need_tas" = yes ; then
1482   TAS=tas.o
1483 fi
1484
1485
1486
1487
1488 ##
1489 ## Command line options
1490 ##
1491
1492
1493 #
1494 # Add non-standard directories to the include path
1495 #
1496
1497
1498
1499 # Check whether --with-includes or --without-includes was given.
1500 if test "${with_includes+set}" = set; then
1501   withval="$with_includes"
1502
1503   case $withval in
1504     yes)
1505       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1506 echo "$as_me: error: argument required for --with-includes option" >&2;}
1507    { (exit 1); exit 1; }; }
1508       ;;
1509     no)
1510       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512    { (exit 1); exit 1; }; }
1513       ;;
1514     *)
1515
1516       ;;
1517   esac
1518
1519 fi;
1520
1521
1522
1523 #
1524 # Add non-standard directories to the library search path
1525 #
1526
1527
1528
1529 # Check whether --with-libraries or --without-libraries was given.
1530 if test "${with_libraries+set}" = set; then
1531   withval="$with_libraries"
1532
1533   case $withval in
1534     yes)
1535       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1536 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1537    { (exit 1); exit 1; }; }
1538       ;;
1539     no)
1540       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542    { (exit 1); exit 1; }; }
1543       ;;
1544     *)
1545       LIBRARY_DIRS=$withval
1546       ;;
1547   esac
1548
1549 fi;
1550
1551
1552
1553
1554
1555 # Check whether --with-libs or --without-libs was given.
1556 if test "${with_libs+set}" = set; then
1557   withval="$with_libs"
1558
1559   case $withval in
1560     yes)
1561       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1562 echo "$as_me: error: argument required for --with-libs option" >&2;}
1563    { (exit 1); exit 1; }; }
1564       ;;
1565     no)
1566       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568    { (exit 1); exit 1; }; }
1569       ;;
1570     *)
1571       LIBRARY_DIRS=$withval
1572       ;;
1573   esac
1574
1575 fi;
1576
1577
1578
1579 #
1580 # Character set recode (--enable-recode)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1583 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-recode or --disable-recode was given.
1587 if test "${enable_recode+set}" = set; then
1588   enableval="$enable_recode"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define CYR_RECODE 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1603 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_recode=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_recode" >&5
1614 echo "${ECHO_T}$enable_recode" >&6
1615
1616
1617 #
1618 # Multibyte support
1619 #
1620 MULTIBYTE=
1621 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1622 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1623
1624
1625
1626 # Check whether --enable-multibyte or --disable-multibyte was given.
1627 if test "${enable_multibyte+set}" = set; then
1628   enableval="$enable_multibyte"
1629
1630   case $enableval in
1631     yes)
1632       MULTIBYTE=SQL_ASCII
1633       ;;
1634     no)
1635       :
1636       ;;
1637     *)
1638       enable_multibyte=yes
1639
1640   case $enableval in
1641     SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
1642       MULTIBYTE=$enableval;;
1643     *)
1644       { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1645   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1646   UNICODE, MULE_INTERNAL,
1647   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1648   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1649   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1650   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1651 Or do not specify an argument to the option to use the default." >&5
1652 echo "$as_me: error: argument to --enable-multibyte must be one of:
1653   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1654   UNICODE, MULE_INTERNAL,
1655   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1656   LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1657   WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1658   ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1659 Or do not specify an argument to the option to use the default." >&2;}
1660    { (exit 1); exit 1; }; };;
1661   esac
1662
1663       ;;
1664   esac
1665
1666 else
1667   enable_multibyte=no
1668 fi;
1669
1670
1671 if test "$enable_multibyte" = yes; then
1672
1673
1674 cat >>confdefs.h <<\_ACEOF
1675 #define MULTIBYTE 1
1676 _ACEOF
1677
1678   echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1679 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1680
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686
1687
1688
1689 #
1690 # NLS
1691 #
1692 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1693 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1694
1695
1696 # Check whether --enable-nls or --disable-nls was given.
1697 if test "${enable_nls+set}" = set; then
1698   enableval="$enable_nls"
1699
1700   case $enableval in
1701     yes)
1702       :
1703       ;;
1704     no)
1705       :
1706       ;;
1707     *)
1708       enable_nls=yes
1709 WANTED_LANGUAGES=$enableval
1710       ;;
1711   esac
1712
1713 else
1714   enable_nls=no
1715 fi;
1716
1717
1718 if test "$enable_nls" = yes; then
1719
1720 cat >>confdefs.h <<\_ACEOF
1721 #define ENABLE_NLS 1
1722 _ACEOF
1723
1724 fi
1725
1726 echo "$as_me:$LINENO: result: $enable_nls" >&5
1727 echo "${ECHO_T}$enable_nls" >&6
1728
1729
1730
1731 #
1732 # Default port number (--with-pgport), default 5432
1733 #
1734 echo "$as_me:$LINENO: checking for default port number" >&5
1735 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1736
1737
1738
1739 # Check whether --with-pgport or --without-pgport was given.
1740 if test "${with_pgport+set}" = set; then
1741   withval="$with_pgport"
1742
1743   case $withval in
1744     yes)
1745       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1746 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1747    { (exit 1); exit 1; }; }
1748       ;;
1749     no)
1750       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1751 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1752    { (exit 1); exit 1; }; }
1753       ;;
1754     *)
1755       default_port=$withval
1756       ;;
1757   esac
1758
1759 else
1760   default_port=5432
1761 fi;
1762
1763 echo "$as_me:$LINENO: result: $default_port" >&5
1764 echo "${ECHO_T}$default_port" >&6
1765 # Need both of these because some places want an integer and some a string
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define DEF_PGPORT ${default_port}
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define DEF_PGPORT_STR "${default_port}"
1774 _ACEOF
1775
1776
1777
1778 #
1779 # Maximum number of allowed connections (--with-maxbackends), default 32
1780 #
1781 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1782 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1783
1784
1785
1786 # Check whether --with-maxbackends or --without-maxbackends was given.
1787 if test "${with_maxbackends+set}" = set; then
1788   withval="$with_maxbackends"
1789
1790   case $withval in
1791     yes)
1792       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1793 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1794    { (exit 1); exit 1; }; }
1795       ;;
1796     no)
1797       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1798 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1799    { (exit 1); exit 1; }; }
1800       ;;
1801     *)
1802
1803       ;;
1804   esac
1805
1806 else
1807   with_maxbackends=32
1808 fi;
1809
1810 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1811 echo "${ECHO_T}$with_maxbackends" >&6
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define DEF_MAXBACKENDS $with_maxbackends
1815 _ACEOF
1816
1817
1818
1819 #
1820 # Option to disable shared libraries
1821 #
1822
1823
1824 # Check whether --enable-shared or --disable-shared was given.
1825 if test "${enable_shared+set}" = set; then
1826   enableval="$enable_shared"
1827
1828   case $enableval in
1829     yes)
1830       :
1831       ;;
1832     no)
1833       :
1834       ;;
1835     *)
1836       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1837 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1838    { (exit 1); exit 1; }; }
1839       ;;
1840   esac
1841
1842 else
1843   enable_shared=yes
1844
1845 fi;
1846
1847
1848
1849 #
1850 # '-rpath'-like feature can be disabled
1851 #
1852
1853
1854 # Check whether --enable-rpath or --disable-rpath was given.
1855 if test "${enable_rpath+set}" = set; then
1856   enableval="$enable_rpath"
1857
1858   case $enableval in
1859     yes)
1860       :
1861       ;;
1862     no)
1863       :
1864       ;;
1865     *)
1866       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1867 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1868    { (exit 1); exit 1; }; }
1869       ;;
1870   esac
1871
1872 else
1873   enable_rpath=yes
1874
1875 fi;
1876
1877
1878
1879
1880 #
1881 # --enable-debug adds -g to compiler flags
1882 #
1883
1884
1885 # Check whether --enable-debug or --disable-debug was given.
1886 if test "${enable_debug+set}" = set; then
1887   enableval="$enable_debug"
1888
1889   case $enableval in
1890     yes)
1891       :
1892       ;;
1893     no)
1894       :
1895       ;;
1896     *)
1897       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1898 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1899    { (exit 1); exit 1; }; }
1900       ;;
1901   esac
1902
1903 else
1904   enable_debug=no
1905
1906 fi;
1907
1908
1909
1910 #
1911 # C compiler
1912 #
1913
1914 # For historical reasons you can also use --with-CC to specify the C compiler
1915 # to use, although the standard way to do this is to set the CC environment
1916 # variable.
1917
1918
1919
1920 # Check whether --with-CC or --without-CC was given.
1921 if test "${with_CC+set}" = set; then
1922   withval="$with_CC"
1923
1924   case $withval in
1925     yes)
1926       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1927 echo "$as_me: error: argument required for --with-CC option" >&2;}
1928    { (exit 1); exit 1; }; }
1929       ;;
1930     no)
1931       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1932 echo "$as_me: error: argument required for --with-CC option" >&2;}
1933    { (exit 1); exit 1; }; }
1934       ;;
1935     *)
1936       CC=$with_CC
1937       ;;
1938   esac
1939
1940 fi;
1941
1942
1943 case $template in
1944   aix) pgac_cc_list="gcc xlc";;
1945  irix) pgac_cc_list="cc";; # no gcc
1946     *) pgac_cc_list="gcc cc";;
1947 esac
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   for ac_prog in $pgac_cc_list
1956   do
1957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$CC"; then
1965   ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992     test -n "$CC" && break
1993   done
1994 fi
1995 if test -z "$CC"; then
1996   ac_ct_CC=$CC
1997   for ac_prog in $pgac_cc_list
1998 do
1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="$ac_prog"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   test -n "$ac_ct_CC" && break
2035 done
2036
2037   CC=$ac_ct_CC
2038 fi
2039
2040
2041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2043    { (exit 1); exit 1; }; }
2044
2045 # Provide some information about the compiler.
2046 echo "$as_me:$LINENO:" \
2047      "checking for C compiler version" >&5
2048 ac_compiler=`set X $ac_compile; echo $2`
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050   (eval $ac_compiler --version </dev/null >&5) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055   (eval $ac_compiler -v </dev/null >&5) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060   (eval $ac_compiler -V </dev/null >&5) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }
2064
2065 cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 #include "confdefs.h"
2068
2069 #ifdef F77_DUMMY_MAIN
2070 #  ifdef __cplusplus
2071      extern "C"
2072 #  endif
2073    int F77_DUMMY_MAIN() { return 1; }
2074 #endif
2075 int
2076 main ()
2077 {
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 ac_clean_files_save=$ac_clean_files
2084 ac_clean_files="$ac_clean_files a.out a.exe"
2085 # Try to create an executable without -o first, disregard a.out.
2086 # It will help us diagnose broken compilers, and finding out an intuition
2087 # of exeext.
2088 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2089 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2092   (eval $ac_link_default) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; then
2096   # Find the output, starting from the most likely.  This scheme is
2097 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2098 # resort.
2099
2100 # Be careful to initialize this variable, since it used to be cached.
2101 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2102 ac_cv_exeext=
2103 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2104                 ls a.out conftest 2>/dev/null;
2105                 ls a.* conftest.* 2>/dev/null`; do
2106   case $ac_file in
2107     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2108     a.out ) # We found the default executable, but exeext='' is most
2109             # certainly right.
2110             break;;
2111     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2113           export ac_cv_exeext
2114           break;;
2115     * ) break;;
2116   esac
2117 done
2118 else
2119   echo "$as_me: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2122 echo "$as_me: error: C compiler cannot create executables" >&2;}
2123    { (exit 77); exit 77; }; }
2124 fi
2125
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2129
2130 # Check the compiler produces executables we can run.  If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137   if { ac_try='./$ac_file'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143     cross_compiling=no
2144   else
2145     if test "$cross_compiling" = maybe; then
2146         cross_compiling=yes
2147     else
2148         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'." >&5
2150 echo "$as_me: error: cannot run C compiled programs.
2151 If you meant to cross compile, use \`--host'." >&2;}
2152    { (exit 1); exit 1; }; }
2153     fi
2154   fi
2155 fi
2156 echo "$as_me:$LINENO: result: yes" >&5
2157 echo "${ECHO_T}yes" >&6
2158
2159 rm -f a.out a.exe conftest$ac_cv_exeext
2160 ac_clean_files=$ac_clean_files_save
2161 # Check the compiler produces executables we can run.  If not, either
2162 # the compiler is broken, or we cross compile.
2163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2166 echo "${ECHO_T}$cross_compiling" >&6
2167
2168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2171   (eval $ac_link) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2176 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2177 # work properly (i.e., refer to `conftest.exe'), while it won't with
2178 # `rm'.
2179 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2180   case $ac_file in
2181     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2182     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183           export ac_cv_exeext
2184           break;;
2185     * ) break;;
2186   esac
2187 done
2188 else
2189   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2190 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2191    { (exit 1); exit 1; }; }
2192 fi
2193
2194 rm -f conftest$ac_cv_exeext
2195 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2196 echo "${ECHO_T}$ac_cv_exeext" >&6
2197
2198 rm -f conftest.$ac_ext
2199 EXEEXT=$ac_cv_exeext
2200 ac_exeext=$EXEEXT
2201 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2202 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2203 if test "${ac_cv_objext+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   cat >conftest.$ac_ext <<_ACEOF
2207 #line $LINENO "configure"
2208 #include "confdefs.h"
2209
2210 #ifdef F77_DUMMY_MAIN
2211 #  ifdef __cplusplus
2212      extern "C"
2213 #  endif
2214    int F77_DUMMY_MAIN() { return 1; }
2215 #endif
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 rm -f conftest.o conftest.obj
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226   (eval $ac_compile) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; then
2230   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2231   case $ac_file in
2232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2233     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2234        break;;
2235   esac
2236 done
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2241 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2242    { (exit 1); exit 1; }; }
2243 fi
2244
2245 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2246 fi
2247 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2248 echo "${ECHO_T}$ac_cv_objext" >&6
2249 OBJEXT=$ac_cv_objext
2250 ac_objext=$OBJEXT
2251 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2252 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2253 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 #include "confdefs.h"
2259
2260 #ifdef F77_DUMMY_MAIN
2261 #  ifdef __cplusplus
2262      extern "C"
2263 #  endif
2264    int F77_DUMMY_MAIN() { return 1; }
2265 #endif
2266 int
2267 main ()
2268 {
2269 #ifndef __GNUC__
2270        choke me
2271 #endif
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279   (eval $ac_compile) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   ac_compiler_gnu=yes
2290 else
2291   echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 ac_compiler_gnu=no
2294 fi
2295 rm -f conftest.$ac_objext conftest.$ac_ext
2296 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2297
2298 fi
2299 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2300 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2301 GCC=`test $ac_compiler_gnu = yes && echo yes`
2302 ac_test_CFLAGS=${CFLAGS+set}
2303 ac_save_CFLAGS=$CFLAGS
2304 CFLAGS="-g"
2305 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2306 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_g+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   cat >conftest.$ac_ext <<_ACEOF
2311 #line $LINENO "configure"
2312 #include "confdefs.h"
2313
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
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   ac_cv_prog_cc_g=yes
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 ac_cv_prog_cc_g=no
2345 fi
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2350 if test "$ac_test_CFLAGS" = set; then
2351   CFLAGS=$ac_save_CFLAGS
2352 elif test $ac_cv_prog_cc_g = yes; then
2353   if test "$GCC" = yes; then
2354     CFLAGS="-g -O2"
2355   else
2356     CFLAGS="-g"
2357   fi
2358 else
2359   if test "$GCC" = yes; then
2360     CFLAGS="-O2"
2361   else
2362     CFLAGS=
2363   fi
2364 fi
2365 # Some people use a C++ compiler to compile C.  Since we use `exit',
2366 # in C++ we need to declare it.  In case someone uses the same compiler
2367 # for both compiling C and C++ we need to have the C++ compiler decide
2368 # the declaration of exit, since it's the most demanding environment.
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #ifndef __cplusplus
2371   choke me
2372 #endif
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376   (eval $ac_compile) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   for ac_declaration in \
2387    ''\
2388    '#include <stdlib.h>' \
2389    'extern "C" void std::exit (int) throw (); using std::exit;' \
2390    'extern "C" void std::exit (int); using std::exit;' \
2391    'extern "C" void exit (int) throw ();' \
2392    'extern "C" void exit (int);' \
2393    'void exit (int);'
2394 do
2395   cat >conftest.$ac_ext <<_ACEOF
2396 #line $LINENO "configure"
2397 #include "confdefs.h"
2398 #include <stdlib.h>
2399 $ac_declaration
2400 #ifdef F77_DUMMY_MAIN
2401 #  ifdef __cplusplus
2402      extern "C"
2403 #  endif
2404    int F77_DUMMY_MAIN() { return 1; }
2405 #endif
2406 int
2407 main ()
2408 {
2409 exit (42);
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416   (eval $ac_compile) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -s conftest.$ac_objext'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426   :
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2430 continue
2431 fi
2432 rm -f conftest.$ac_objext conftest.$ac_ext
2433   cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 #include "confdefs.h"
2436 $ac_declaration
2437 #ifdef F77_DUMMY_MAIN
2438 #  ifdef __cplusplus
2439      extern "C"
2440 #  endif
2441    int F77_DUMMY_MAIN() { return 1; }
2442 #endif
2443 int
2444 main ()
2445 {
2446 exit (42);
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453   (eval $ac_compile) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -s conftest.$ac_objext'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463   break
2464 else
2465   echo "$as_me: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2467 fi
2468 rm -f conftest.$ac_objext conftest.$ac_ext
2469 done
2470 rm -f conftest*
2471 if test -n "$ac_declaration"; then
2472   echo '#ifdef __cplusplus' >>confdefs.h
2473   echo $ac_declaration      >>confdefs.h
2474   echo '#endif'             >>confdefs.h
2475 fi
2476
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 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487
2488 # Read the template
2489 . "$srcdir/src/template/$template" || exit
2490
2491 if test "$ac_env_CFLAGS_set" = set; then
2492   CFLAGS=$ac_env_CFLAGS_value
2493 fi
2494 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2495   CFLAGS="$CFLAGS -g"
2496 fi
2497 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2498 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2499 # Check if the compiler still works with the template settings
2500 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2501 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2502
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line $LINENO "configure"
2505 #include "confdefs.h"
2506
2507 #ifdef F77_DUMMY_MAIN
2508 #  ifdef __cplusplus
2509      extern "C"
2510 #  endif
2511    int F77_DUMMY_MAIN() { return 1; }
2512 #endif
2513 int
2514 main ()
2515 {
2516 return 0;
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext conftest$ac_exeext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2523   (eval $ac_link) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -s conftest$ac_exeext'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; }; then
2533   echo "$as_me:$LINENO: result: yes" >&5
2534 echo "${ECHO_T}yes" >&6
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2540    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2541 echo "$as_me: error: cannot proceed" >&2;}
2542    { (exit 1); exit 1; }; }
2543 fi
2544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2552 # On Suns, sometimes $CPP names a directory.
2553 if test -n "$CPP" && test -d "$CPP"; then
2554   CPP=
2555 fi
2556 if test -z "$CPP"; then
2557   if test "${ac_cv_prog_CPP+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560       # Double quotes because CPP needs to be expanded
2561     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2562     do
2563       ac_preproc_ok=false
2564 for ac_c_preproc_warn_flag in '' yes
2565 do
2566   # Use a header file that comes with gcc, so configuring glibc
2567   # with a fresh cross-compiler works.
2568   # On the NeXT, cc -E runs the code through the compiler's parser,
2569   # not just through cpp. "Syntax error" is here to catch this case.
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 #include "confdefs.h"
2573 #include <assert.h>
2574                      Syntax error
2575 _ACEOF
2576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2578   ac_status=$?
2579   egrep -v '^ *\+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } >/dev/null; then
2584   if test -s conftest.err; then
2585     ac_cpp_err=$ac_c_preproc_warn_flag
2586   else
2587     ac_cpp_err=
2588   fi
2589 else
2590   ac_cpp_err=yes
2591 fi
2592 if test -z "$ac_cpp_err"; then
2593   :
2594 else
2595   echo "$as_me: failed program was:" >&5
2596   cat conftest.$ac_ext >&5
2597   # Broken: fails on valid input.
2598 continue
2599 fi
2600 rm -f conftest.err conftest.$ac_ext
2601
2602   # OK, works on sane cases.  Now check whether non-existent headers
2603   # can be detected and how.
2604   cat >conftest.$ac_ext <<_ACEOF
2605 #line $LINENO "configure"
2606 #include "confdefs.h"
2607 #include <ac_nonexistent.h>
2608 _ACEOF
2609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611   ac_status=$?
2612   egrep -v '^ *\+' conftest.er1 >conftest.err
2613   rm -f conftest.er1
2614   cat conftest.err >&5
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } >/dev/null; then
2617   if test -s conftest.err; then
2618     ac_cpp_err=$ac_c_preproc_warn_flag
2619   else
2620     ac_cpp_err=
2621   fi
2622 else
2623   ac_cpp_err=yes
2624 fi
2625 if test -z "$ac_cpp_err"; then
2626   # Broken: success on invalid input.
2627 continue
2628 else
2629   echo "$as_me: failed program was:" >&5
2630   cat conftest.$ac_ext >&5
2631   # Passes both tests.
2632 ac_preproc_ok=:
2633 break
2634 fi
2635 rm -f conftest.err conftest.$ac_ext
2636
2637 done
2638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2639 rm -f conftest.err conftest.$ac_ext
2640 if $ac_preproc_ok; then
2641   break
2642 fi
2643
2644     done
2645     ac_cv_prog_CPP=$CPP
2646
2647 fi
2648   CPP=$ac_cv_prog_CPP
2649 else
2650   ac_cv_prog_CPP=$CPP
2651 fi
2652 echo "$as_me:$LINENO: result: $CPP" >&5
2653 echo "${ECHO_T}$CPP" >&6
2654 ac_preproc_ok=false
2655 for ac_c_preproc_warn_flag in '' yes
2656 do
2657   # Use a header file that comes with gcc, so configuring glibc
2658   # with a fresh cross-compiler works.
2659   # On the NeXT, cc -E runs the code through the compiler's parser,
2660   # not just through cpp. "Syntax error" is here to catch this case.
2661   cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2663 #include "confdefs.h"
2664 #include <assert.h>
2665                      Syntax error
2666 _ACEOF
2667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2669   ac_status=$?
2670   egrep -v '^ *\+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } >/dev/null; then
2675   if test -s conftest.err; then
2676     ac_cpp_err=$ac_c_preproc_warn_flag
2677   else
2678     ac_cpp_err=
2679   fi
2680 else
2681   ac_cpp_err=yes
2682 fi
2683 if test -z "$ac_cpp_err"; then
2684   :
2685 else
2686   echo "$as_me: failed program was:" >&5
2687   cat conftest.$ac_ext >&5
2688   # Broken: fails on valid input.
2689 continue
2690 fi
2691 rm -f conftest.err conftest.$ac_ext
2692
2693   # OK, works on sane cases.  Now check whether non-existent headers
2694   # can be detected and how.
2695   cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2697 #include "confdefs.h"
2698 #include <ac_nonexistent.h>
2699 _ACEOF
2700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2702   ac_status=$?
2703   egrep -v '^ *\+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } >/dev/null; then
2708   if test -s conftest.err; then
2709     ac_cpp_err=$ac_c_preproc_warn_flag
2710   else
2711     ac_cpp_err=
2712   fi
2713 else
2714   ac_cpp_err=yes
2715 fi
2716 if test -z "$ac_cpp_err"; then
2717   # Broken: success on invalid input.
2718 continue
2719 else
2720   echo "$as_me: failed program was:" >&5
2721   cat conftest.$ac_ext >&5
2722   # Passes both tests.
2723 ac_preproc_ok=:
2724 break
2725 fi
2726 rm -f conftest.err conftest.$ac_ext
2727
2728 done
2729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2730 rm -f conftest.err conftest.$ac_ext
2731 if $ac_preproc_ok; then
2732   :
2733 else
2734   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2735 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 ac_ext=c
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
2745
2746
2747 # Create compiler version string
2748 if test x"$GCC" = x"yes" ; then
2749   cc_string="GCC `${CC} --version | sed q`"
2750 else
2751   cc_string=$CC
2752 fi
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2756 _ACEOF
2757
2758
2759
2760 #
2761 # Automatic dependency tracking
2762 #
2763
2764
2765 # Check whether --enable-depend or --disable-depend was given.
2766 if test "${enable_depend+set}" = set; then
2767   enableval="$enable_depend"
2768
2769   case $enableval in
2770     yes)
2771       autodepend=yes
2772       ;;
2773     no)
2774       :
2775       ;;
2776     *)
2777       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2778 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2779    { (exit 1); exit 1; }; }
2780       ;;
2781   esac
2782
2783 else
2784   enable_depend=no
2785
2786 fi;
2787
2788
2789
2790
2791 #
2792 # Enable assert checks
2793 #
2794
2795
2796 # Check whether --enable-cassert or --disable-cassert was given.
2797 if test "${enable_cassert+set}" = set; then
2798   enableval="$enable_cassert"
2799
2800   case $enableval in
2801     yes)
2802
2803 cat >>confdefs.h <<\_ACEOF
2804 #define USE_ASSERT_CHECKING 1
2805 _ACEOF
2806
2807       ;;
2808     no)
2809       :
2810       ;;
2811     *)
2812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2813 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2814    { (exit 1); exit 1; }; }
2815       ;;
2816   esac
2817
2818 else
2819   enable_cassert=no
2820
2821 fi;
2822
2823
2824
2825 #
2826 # Include directories
2827 #
2828 ac_save_IFS=$IFS
2829 IFS="${IFS}:"
2830 # SRCH_INC comes from the template file
2831 for dir in $with_includes $SRCH_INC; do
2832   if test -d "$dir"; then
2833     INCLUDES="$INCLUDES -I$dir"
2834   else
2835     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2836 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2837   fi
2838 done
2839 IFS=$ac_save_IFS
2840
2841
2842
2843 #
2844 # Library directories
2845 #
2846 ac_save_IFS=$IFS
2847 IFS="${IFS}:"
2848 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2849 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2850   if test -d "$dir"; then
2851     LIBDIRS="$LIBDIRS -L$dir"
2852   else
2853     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2854 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2855   fi
2856 done
2857 IFS=$ac_save_IFS
2858
2859
2860 #
2861 # Tcl/Tk
2862 #
2863 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2864 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2865
2866
2867
2868 # Check whether --with-tcl or --without-tcl was given.
2869 if test "${with_tcl+set}" = set; then
2870   withval="$with_tcl"
2871
2872   case $withval in
2873     yes)
2874       :
2875       ;;
2876     no)
2877       :
2878       ;;
2879     *)
2880       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2881 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2882    { (exit 1); exit 1; }; }
2883       ;;
2884   esac
2885
2886 else
2887   with_tcl=no
2888
2889 fi;
2890
2891 echo "$as_me:$LINENO: result: $with_tcl" >&5
2892 echo "${ECHO_T}$with_tcl" >&6
2893
2894
2895 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2896 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2897 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2898 if test "$with_tcl" = yes; then
2899
2900
2901
2902 # Check whether --with-tk or --without-tk was given.
2903 if test "${with_tk+set}" = set; then
2904   withval="$with_tk"
2905
2906   case $withval in
2907     yes)
2908       :
2909       ;;
2910     no)
2911       :
2912       ;;
2913     *)
2914       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2915 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2916    { (exit 1); exit 1; }; }
2917       ;;
2918   esac
2919
2920 else
2921   with_tk=yes
2922
2923 fi;
2924
2925 else
2926   with_tk=no
2927 fi
2928 echo "$as_me:$LINENO: result: $with_tk" >&5
2929 echo "${ECHO_T}$with_tk" >&6
2930
2931
2932
2933 # We see if the path to the Tcl/Tk configuration scripts is specified.
2934 # This will override the use of tclsh to find the paths to search.
2935
2936
2937
2938
2939 # Check whether --with-tclconfig or --without-tclconfig was given.
2940 if test "${with_tclconfig+set}" = set; then
2941   withval="$with_tclconfig"
2942
2943   case $withval in
2944     yes)
2945       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2946 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2947    { (exit 1); exit 1; }; }
2948       ;;
2949     no)
2950       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2951 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2952    { (exit 1); exit 1; }; }
2953       ;;
2954     *)
2955
2956       ;;
2957   esac
2958
2959 fi;
2960
2961
2962 # We see if the path to the Tk configuration scripts is specified.
2963 # This will override the use of tclsh to find the paths to search.
2964
2965
2966
2967
2968 # Check whether --with-tkconfig or --without-tkconfig was given.
2969 if test "${with_tkconfig+set}" = set; then
2970   withval="$with_tkconfig"
2971
2972   case $withval in
2973     yes)
2974       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2975 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2976    { (exit 1); exit 1; }; }
2977       ;;
2978     no)
2979       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2980 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2981    { (exit 1); exit 1; }; }
2982       ;;
2983     *)
2984
2985       ;;
2986   esac
2987
2988 fi;
2989
2990
2991 #
2992 # Optionally build Perl modules (Pg.pm and PL/Perl)
2993 #
2994 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2995 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2996
2997
2998
2999 # Check whether --with-perl or --without-perl was given.
3000 if test "${with_perl+set}" = set; then
3001   withval="$with_perl"
3002
3003   case $withval in
3004     yes)
3005       :
3006       ;;
3007     no)
3008       :
3009       ;;
3010     *)
3011       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3012 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3013    { (exit 1); exit 1; }; }
3014       ;;
3015   esac
3016
3017 else
3018   with_perl=no
3019
3020 fi;
3021
3022 echo "$as_me:$LINENO: result: $with_perl" >&5
3023 echo "${ECHO_T}$with_perl" >&6
3024
3025
3026 #
3027 # Optionally build Python interface module
3028 #
3029 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3030 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3031
3032
3033
3034 # Check whether --with-python or --without-python was given.
3035 if test "${with_python+set}" = set; then
3036   withval="$with_python"
3037
3038   case $withval in
3039     yes)
3040       :
3041       ;;
3042     no)
3043       :
3044       ;;
3045     *)
3046       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3047 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3048    { (exit 1); exit 1; }; }
3049       ;;
3050   esac
3051
3052 else
3053   with_python=no
3054
3055 fi;
3056
3057 echo "$as_me:$LINENO: result: $with_python" >&5
3058 echo "${ECHO_T}$with_python" >&6
3059
3060
3061 #
3062 # Optionally build the Java/JDBC tools
3063 #
3064 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3065 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3066
3067
3068
3069 # Check whether --with-java or --without-java was given.
3070 if test "${with_java+set}" = set; then
3071   withval="$with_java"
3072
3073   case $withval in
3074     yes)
3075       echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077
3078   for ac_prog in jakarta-ant ant ant.sh ant.bat
3079 do
3080   # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_path_ANT+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   case $ANT in
3088   [\\/]* | ?:[\\/]*)
3089   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3090   ;;
3091   *)
3092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097   for ac_exec_ext in '' $ac_executable_extensions; do
3098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105
3106   ;;
3107 esac
3108 fi
3109 ANT=$ac_cv_path_ANT
3110
3111 if test -n "$ANT"; then
3112   echo "$as_me:$LINENO: result: $ANT" >&5
3113 echo "${ECHO_T}$ANT" >&6
3114 else
3115   echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3117 fi
3118
3119   test -n "$ANT" && break
3120 done
3121
3122
3123   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3124 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3125 if test "${pgac_cv_prog_ant_works+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128
3129     cat > conftest.java << EOF
3130 public class conftest {
3131     int testmethod(int a, int b) {
3132         return a + b;
3133     }
3134 }
3135 EOF
3136
3137     cat > conftest.xml << EOF
3138 <project name="conftest" default="conftest">
3139  <target name="conftest">
3140   <javac srcdir="." includes="conftest.java">
3141   </javac>
3142  </target>
3143 </project>
3144 EOF
3145
3146     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3147     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3148   (eval $pgac_cmd) 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }
3152     pgac_save_status=$?
3153     if test $? = 0 && test -f ./conftest.class ; then
3154       pgac_cv_prog_ant_works=yes
3155     else
3156       echo "configure: failed java program was:" >&5
3157       cat conftest.java >&5
3158       echo "configure: failed build file was:" >&5
3159       cat conftest.xml >&5
3160       pgac_cv_prog_ant_works=no
3161     fi
3162
3163     rm -f conftest* core core.* *.core
3164
3165 fi
3166 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3167 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3168
3169   if test "$pgac_cv_prog_ant_works" != yes; then
3170     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3171 echo "$as_me: error: ant does not work" >&2;}
3172    { (exit 1); exit 1; }; }
3173   fi
3174
3175
3176 if test -z "$ANT"; then
3177   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3178 echo "$as_me: error: Ant is required to build Java components" >&2;}
3179    { (exit 1); exit 1; }; }
3180 fi
3181       ;;
3182     no)
3183       echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3185       ;;
3186     *)
3187       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189    { (exit 1); exit 1; }; }
3190       ;;
3191   esac
3192
3193 else
3194   with_java=no
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi;
3198
3199
3200
3201
3202 #
3203 # Kerberos 4
3204 #
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207
3208
3209
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212   withval="$with_krb4"
3213
3214   case $withval in
3215     yes)
3216       krb4_prefix=/usr/athena
3217       ;;
3218     no)
3219       :
3220       ;;
3221     *)
3222       with_krb4=yes
3223 krb4_prefix=$withval
3224       ;;
3225   esac
3226
3227 else
3228   with_krb4=no
3229 fi;
3230
3231
3232 if test "$with_krb4" = yes; then
3233
3234   echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3236
3237 cat >>confdefs.h <<\_ACEOF
3238 #define KRB4 1
3239 _ACEOF
3240
3241
3242   if test -d "$krb4_prefix/include"; then
3243     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244   fi
3245   if test -d "$krb4_prefix/lib"; then
3246     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3247   fi
3248
3249   krb_srvtab="/etc/srvtab"
3250
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 fi
3255
3256
3257
3258
3259
3260 #
3261 # Kerberos 5
3262 #
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265
3266
3267
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270   withval="$with_krb5"
3271
3272   case $withval in
3273     yes)
3274       krb5_prefix=/usr/athena
3275       ;;
3276     no)
3277       :
3278       ;;
3279     *)
3280       with_krb5=yes
3281 krb5_prefix=$withval
3282       ;;
3283   esac
3284
3285 else
3286   with_krb5=no
3287 fi;
3288
3289
3290 if test "$with_krb5" = yes; then
3291
3292   echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define KRB5 1
3297 _ACEOF
3298
3299
3300   if test -d "$krb5_prefix/include"; then
3301     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302   fi
3303   if test -d "$krb5_prefix/lib"; then
3304     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3305   fi
3306
3307   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3308
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313
3314
3315
3316
3317
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322    { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326
3327
3328 #
3329 # Kerberos configuration parameters
3330 #
3331
3332
3333
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336   withval="$with_krb_srvnam"
3337
3338   case $withval in
3339     yes)
3340       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342    { (exit 1); exit 1; }; }
3343       ;;
3344     no)
3345       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347    { (exit 1); exit 1; }; }
3348       ;;
3349     *)
3350
3351       ;;
3352   esac
3353
3354 else
3355   with_krb_srvnam="postgres"
3356 fi;
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3361 _ACEOF
3362
3363
3364
3365 #
3366 # PAM
3367 #
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370
3371
3372
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3375   withval="$with_pam"
3376
3377   case $withval in
3378     yes)
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_PAM 1
3382 _ACEOF
3383
3384       ;;
3385     no)
3386       :
3387       ;;
3388     *)
3389       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391    { (exit 1); exit 1; }; }
3392       ;;
3393   esac
3394
3395 else
3396   with_pam=no
3397
3398 fi;
3399
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3402
3403
3404
3405 #
3406 # OpenSSL
3407 #
3408
3409
3410
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413   withval="$with_openssl"
3414
3415   case $withval in
3416     yes)
3417       openssl_prefix=/usr/local/ssl
3418       ;;
3419     no)
3420       :
3421       ;;
3422     *)
3423       with_openssl=yes
3424 openssl_prefix=$withval
3425       ;;
3426   esac
3427
3428 else
3429   with_openssl=no
3430 fi;
3431
3432
3433 if test "$with_openssl" = yes; then
3434
3435   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3437
3438 cat >>confdefs.h <<\_ACEOF
3439 #define USE_SSL 1
3440 _ACEOF
3441
3442
3443   if test -d "${openssl_prefix}/include" ; then
3444     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3445   fi
3446   if test -d "${openssl_prefix}/lib" ; then
3447     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3448   fi
3449
3450 fi
3451
3452
3453
3454
3455
3456 #
3457 # Readline
3458 #
3459
3460
3461
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464   withval="$with_readline"
3465
3466   case $withval in
3467     yes)
3468       :
3469       ;;
3470     no)
3471       :
3472       ;;
3473     *)
3474       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476    { (exit 1); exit 1; }; }
3477       ;;
3478   esac
3479
3480 else
3481   with_readline=yes
3482
3483 fi;
3484
3485
3486 #
3487 # Zlib
3488 #
3489
3490
3491
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494   withval="$with_zlib"
3495
3496   case $withval in
3497     yes)
3498       :
3499       ;;
3500     no)
3501       :
3502       ;;
3503     *)
3504       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506    { (exit 1); exit 1; }; }
3507       ;;
3508   esac
3509
3510 else
3511   with_zlib=yes
3512
3513 fi;
3514
3515
3516
3517
3518 #
3519 # Optionally enable the building of the ODBC driver
3520 #
3521
3522 # Old option name
3523 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3524   enable_odbc=$with_odbc
3525 fi
3526
3527 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3528 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3529
3530
3531 # Check whether --enable-odbc or --disable-odbc was given.
3532 if test "${enable_odbc+set}" = set; then
3533   enableval="$enable_odbc"
3534
3535   case $enableval in
3536     yes)
3537       :
3538       ;;
3539     no)
3540       :
3541       ;;
3542     *)
3543       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3544 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3545    { (exit 1); exit 1; }; }
3546       ;;
3547   esac
3548
3549 else
3550   enable_odbc=no
3551
3552 fi;
3553
3554
3555
3556
3557 # Check whether --with-unixodbc or --without-unixodbc was given.
3558 if test "${with_unixodbc+set}" = set; then
3559   withval="$with_unixodbc"
3560
3561   case $withval in
3562     yes)
3563       :
3564       ;;
3565     no)
3566       :
3567       ;;
3568     *)
3569       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3570 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3571    { (exit 1); exit 1; }; }
3572       ;;
3573   esac
3574
3575 else
3576   with_unixodbc=no
3577
3578 fi;
3579
3580
3581
3582
3583 # Check whether --with-iodbc or --without-iodbc was given.
3584 if test "${with_iodbc+set}" = set; then
3585   withval="$with_iodbc"
3586
3587   case $withval in
3588     yes)
3589       :
3590       ;;
3591     no)
3592       :
3593       ;;
3594     *)
3595       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3596 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3597    { (exit 1); exit 1; }; }
3598       ;;
3599   esac
3600
3601 else
3602   with_iodbc=no
3603
3604 fi;
3605
3606 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3607   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3608 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3609    { (exit 1); exit 1; }; }
3610 fi
3611 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3612   enable_odbc=yes
3613 fi
3614 case $enable_odbc:$with_unixodbc:$with_iodbc in
3615   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3616 echo "${ECHO_T}yes (stand-alone)" >&6;;
3617   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3618 echo "${ECHO_T}yes (unixODBC)" >&6
3619
3620 cat >>confdefs.h <<\_ACEOF
3621 #define WITH_UNIXODBC 1
3622 _ACEOF
3623
3624                 ;;
3625   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3626 echo "${ECHO_T}yes (iODBC)" >&6
3627
3628 cat >>confdefs.h <<\_ACEOF
3629 #define WITH_IODBC 1
3630 _ACEOF
3631
3632                 ;;
3633   no:*)         echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6;;
3635 esac
3636
3637
3638
3639
3640
3641 # Allow for overriding the default location of the odbcinst.ini
3642 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3643
3644
3645
3646 # Check whether --with-odbcinst or --without-odbcinst was given.
3647 if test "${with_odbcinst+set}" = set; then
3648   withval="$with_odbcinst"
3649
3650   case $withval in
3651     yes)
3652       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3653 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3654    { (exit 1); exit 1; }; }
3655       ;;
3656     no)
3657       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3658 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3659    { (exit 1); exit 1; }; }
3660       ;;
3661     *)
3662       odbcinst_ini_dir=$withval
3663       ;;
3664   esac
3665
3666 else
3667   odbcinst_ini_dir="\${sysconfdir}"
3668 fi;
3669
3670
3671
3672
3673
3674 # Assume system is ELF if it predefines __ELF__ as 1,
3675 # otherwise believe host_os based default.
3676 case $host_os in
3677     freebsd1*|freebsd2*) elf=no;;
3678     freebsd3*|freebsd4*) elf=yes;;
3679 esac
3680
3681
3682 cat >conftest.$ac_ext <<_ACEOF
3683 #line $LINENO "configure"
3684 #include "confdefs.h"
3685 #if __ELF__
3686   yes
3687 #endif
3688
3689 _ACEOF
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691   egrep "yes" >/dev/null 2>&1; then
3692   ELF_SYS=true
3693 else
3694   if test "X$elf" = "Xyes" ; then
3695   ELF_SYS=true
3696 else
3697   ELF_SYS=
3698 fi
3699 fi
3700 rm -f conftest*
3701
3702
3703
3704
3705
3706 #
3707 # Optionally build C++ code (i.e., libpq++)
3708 #
3709 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3710 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3711
3712
3713
3714 # Check whether --with-CXX or --without-CXX was given.
3715 if test "${with_CXX+set}" = set; then
3716   withval="$with_CXX"
3717
3718   case $withval in
3719     yes)
3720       :
3721       ;;
3722     no)
3723       :
3724       ;;
3725     *)
3726       with_CXX=yes
3727 CXX=$withval
3728       ;;
3729   esac
3730
3731 else
3732   with_CXX=no
3733 fi;
3734
3735
3736 if test "$with_CXX" = yes; then
3737
3738   echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6
3740
3741   # If the user has specified CXXFLAGS in the environment, leave it
3742   # alone, else use a default.
3743
3744   ac_ext=cc
3745 ac_cpp='$CXXCPP $CPPFLAGS'
3746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749 if test -n "$ac_tool_prefix"; then
3750   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751   do
3752     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_CXX+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test -n "$CXX"; then
3760   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774 done
3775
3776 fi
3777 fi
3778 CXX=$ac_cv_prog_CXX
3779 if test -n "$CXX"; then
3780   echo "$as_me:$LINENO: result: $CXX" >&5
3781 echo "${ECHO_T}$CXX" >&6
3782 else
3783   echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786
3787     test -n "$CXX" && break
3788   done
3789 fi
3790 if test -z "$CXX"; then
3791   ac_ct_CXX=$CXX
3792   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3793 do
3794   # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$ac_ct_CXX"; then
3802   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_ac_ct_CXX="$ac_prog"
3812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816 done
3817
3818 fi
3819 fi
3820 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821 if test -n "$ac_ct_CXX"; then
3822   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823 echo "${ECHO_T}$ac_ct_CXX" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829   test -n "$ac_ct_CXX" && break
3830 done
3831 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3832
3833   CXX=$ac_ct_CXX
3834 fi
3835
3836
3837 # Provide some information about the compiler.
3838 echo "$as_me:$LINENO:" \
3839      "checking for C++ compiler version" >&5
3840 ac_compiler=`set X $ac_compile; echo $2`
3841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842   (eval $ac_compiler --version </dev/null >&5) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }
3846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847   (eval $ac_compiler -v </dev/null >&5) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852   (eval $ac_compiler -V </dev/null >&5) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856
3857 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3859 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   cat >conftest.$ac_ext <<_ACEOF
3863 #line $LINENO "configure"
3864 #include "confdefs.h"
3865
3866 #ifdef F77_DUMMY_MAIN
3867 #  ifdef __cplusplus
3868      extern "C"
3869 #  endif
3870    int F77_DUMMY_MAIN() { return 1; }
3871 #endif
3872 int
3873 main ()
3874 {
3875 #ifndef __GNUC__
3876        choke me
3877 #endif
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885   (eval $ac_compile) 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } &&
3889          { ac_try='test -s conftest.$ac_objext'
3890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891   (eval $ac_try) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }; }; then
3895   ac_compiler_gnu=yes
3896 else
3897   echo "$as_me: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3899 ac_compiler_gnu=no
3900 fi
3901 rm -f conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3903
3904 fi
3905 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3906 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3907 GXX=`test $ac_compiler_gnu = yes && echo yes`
3908 ac_test_CXXFLAGS=${CXXFLAGS+set}
3909 ac_save_CXXFLAGS=$CXXFLAGS
3910 CXXFLAGS="-g"
3911 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3912 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3913 if test "${ac_cv_prog_cxx_g+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3919
3920 #ifdef F77_DUMMY_MAIN
3921 #  ifdef __cplusplus
3922      extern "C"
3923 #  endif
3924    int F77_DUMMY_MAIN() { return 1; }
3925 #endif
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936   (eval $ac_compile) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } &&
3940          { ac_try='test -s conftest.$ac_objext'
3941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942   (eval $ac_try) 2>&5
3943   ac_status=$?
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); }; }; then
3946   ac_cv_prog_cxx_g=yes
3947 else
3948   echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3950 ac_cv_prog_cxx_g=no
3951 fi
3952 rm -f conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3955 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3956 if test "$ac_test_CXXFLAGS" = set; then
3957   CXXFLAGS=$ac_save_CXXFLAGS
3958 elif test $ac_cv_prog_cxx_g = yes; then
3959   if test "$GXX" = yes; then
3960     CXXFLAGS="-g -O2"
3961   else
3962     CXXFLAGS="-g"
3963   fi
3964 else
3965   if test "$GXX" = yes; then
3966     CXXFLAGS="-O2"
3967   else
3968     CXXFLAGS=
3969   fi
3970 fi
3971 for ac_declaration in \
3972    ''\
3973    '#include <stdlib.h>' \
3974    'extern "C" void std::exit (int) throw (); using std::exit;' \
3975    'extern "C" void std::exit (int); using std::exit;' \
3976    'extern "C" void exit (int) throw ();' \
3977    'extern "C" void exit (int);' \
3978    'void exit (int);'
3979 do
3980   cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3983 #include <stdlib.h>
3984 $ac_declaration
3985 #ifdef F77_DUMMY_MAIN
3986 #  ifdef __cplusplus
3987      extern "C"
3988 #  endif
3989    int F77_DUMMY_MAIN() { return 1; }
3990 #endif
3991 int
3992 main ()
3993 {
3994 exit (42);
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001   (eval $ac_compile) 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } &&
4005          { ac_try='test -s conftest.$ac_objext'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; }; then
4011   :
4012 else
4013   echo "$as_me: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 continue
4016 fi
4017 rm -f conftest.$ac_objext conftest.$ac_ext
4018   cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 $ac_declaration
4022 #ifdef F77_DUMMY_MAIN
4023 #  ifdef __cplusplus
4024      extern "C"
4025 #  endif
4026    int F77_DUMMY_MAIN() { return 1; }
4027 #endif
4028 int
4029 main ()
4030 {
4031 exit (42);
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -s conftest.$ac_objext'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   break
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 fi
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4054 done
4055 rm -f conftest*
4056 if test -n "$ac_declaration"; then
4057   echo '#ifdef __cplusplus' >>confdefs.h
4058   echo $ac_declaration      >>confdefs.h
4059   echo '#endif'             >>confdefs.h
4060 fi
4061
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068   if test "$ac_env_CXXFLAGS" != set; then
4069     if test "$GXX" = yes; then
4070       CXXFLAGS=-O2
4071     else
4072       case $template in
4073         osf)            CXXFLAGS='-O4 -Olimit 2000' ;;
4074         unixware)       CXXFLAGS='-O' ;;
4075         *)              CXXFLAGS= ;;
4076       esac
4077     fi
4078   fi
4079   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4080     CXXFLAGS="$CXXFLAGS -g"
4081   fi
4082   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4083 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4084
4085   ac_ext=cc
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4092 if test -z "$CXXCPP"; then
4093   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096       # Double quotes because CXXCPP needs to be expanded
4097     for CXXCPP in "$CXX -E" "/lib/cpp"
4098     do
4099       ac_preproc_ok=false
4100 for ac_cxx_preproc_warn_flag in '' yes
4101 do
4102   # Use a header file that comes with gcc, so configuring glibc
4103   # with a fresh cross-compiler works.
4104   # On the NeXT, cc -E runs the code through the compiler's parser,
4105   # not just through cpp. "Syntax error" is here to catch this case.
4106   cat >conftest.$ac_ext <<_ACEOF
4107 #line $LINENO "configure"
4108 #include "confdefs.h"
4109 #include <assert.h>
4110                      Syntax error
4111 _ACEOF
4112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4114   ac_status=$?
4115   egrep -v '^ *\+' conftest.er1 >conftest.err
4116   rm -f conftest.er1
4117   cat conftest.err >&5
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } >/dev/null; then
4120   if test -s conftest.err; then
4121     ac_cpp_err=$ac_cxx_preproc_warn_flag
4122   else
4123     ac_cpp_err=
4124   fi
4125 else
4126   ac_cpp_err=yes
4127 fi
4128 if test -z "$ac_cpp_err"; then
4129   :
4130 else
4131   echo "$as_me: failed program was:" >&5
4132   cat conftest.$ac_ext >&5
4133   # Broken: fails on valid input.
4134 continue
4135 fi
4136 rm -f conftest.err conftest.$ac_ext
4137
4138   # OK, works on sane cases.  Now check whether non-existent headers
4139   # can be detected and how.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 #line $LINENO "configure"
4142 #include "confdefs.h"
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4147   ac_status=$?
4148   egrep -v '^ *\+' conftest.er1 >conftest.err
4149   rm -f conftest.er1
4150   cat conftest.err >&5
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); } >/dev/null; then
4153   if test -s conftest.err; then
4154     ac_cpp_err=$ac_cxx_preproc_warn_flag
4155   else
4156     ac_cpp_err=
4157   fi
4158 else
4159   ac_cpp_err=yes
4160 fi
4161 if test -z "$ac_cpp_err"; then
4162   # Broken: success on invalid input.
4163 continue
4164 else
4165   echo "$as_me: failed program was:" >&5
4166   cat conftest.$ac_ext >&5
4167   # Passes both tests.
4168 ac_preproc_ok=:
4169 break
4170 fi
4171 rm -f conftest.err conftest.$ac_ext
4172
4173 done
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then
4177   break
4178 fi
4179
4180     done
4181     ac_cv_prog_CXXCPP=$CXXCPP
4182
4183 fi
4184   CXXCPP=$ac_cv_prog_CXXCPP
4185 else
4186   ac_cv_prog_CXXCPP=$CXXCPP
4187 fi
4188 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4189 echo "${ECHO_T}$CXXCPP" >&6
4190 ac_preproc_ok=false
4191 for ac_cxx_preproc_warn_flag in '' yes
4192 do
4193   # Use a header file that comes with gcc, so configuring glibc
4194   # with a fresh cross-compiler works.
4195   # On the NeXT, cc -E runs the code through the compiler's parser,
4196   # not just through cpp. "Syntax error" is here to catch this case.
4197   cat >conftest.$ac_ext <<_ACEOF
4198 #line $LINENO "configure"
4199 #include "confdefs.h"
4200 #include <assert.h>
4201                      Syntax error
4202 _ACEOF
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4205   ac_status=$?
4206   egrep -v '^ *\+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } >/dev/null; then
4211   if test -s conftest.err; then
4212     ac_cpp_err=$ac_cxx_preproc_warn_flag
4213   else
4214     ac_cpp_err=
4215   fi
4216 else
4217   ac_cpp_err=yes
4218 fi
4219 if test -z "$ac_cpp_err"; then
4220   :
4221 else
4222   echo "$as_me: failed program was:" >&5
4223   cat conftest.$ac_ext >&5
4224   # Broken: fails on valid input.
4225 continue
4226 fi
4227 rm -f conftest.err conftest.$ac_ext
4228
4229   # OK, works on sane cases.  Now check whether non-existent headers
4230   # can be detected and how.
4231   cat >conftest.$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4238   ac_status=$?
4239   egrep -v '^ *\+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } >/dev/null; then
4244   if test -s conftest.err; then
4245     ac_cpp_err=$ac_cxx_preproc_warn_flag
4246   else
4247     ac_cpp_err=
4248   fi
4249 else
4250   ac_cpp_err=yes
4251 fi
4252 if test -z "$ac_cpp_err"; then
4253   # Broken: success on invalid input.
4254 continue
4255 else
4256   echo "$as_me: failed program was:" >&5
4257   cat conftest.$ac_ext >&5
4258   # Passes both tests.
4259 ac_preproc_ok=:
4260 break
4261 fi
4262 rm -f conftest.err conftest.$ac_ext
4263
4264 done
4265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4266 rm -f conftest.err conftest.$ac_ext
4267 if $ac_preproc_ok; then
4268   :
4269 else
4270   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4271 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4272    { (exit 1); exit 1; }; }
4273 fi
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281
4282 else
4283   echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288
4289
4290 CPPFLAGS="$CPPFLAGS $INCLUDES"
4291 LDFLAGS="$LDFLAGS $LIBDIRS"
4292
4293 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4294 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4295 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4296 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4297
4298
4299 for ac_prog in gawk mawk nawk awk
4300 do
4301   # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_AWK+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$AWK"; then
4309   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_AWK="$ac_prog"
4319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323 done
4324
4325 fi
4326 fi
4327 AWK=$ac_cv_prog_AWK
4328 if test -n "$AWK"; then
4329   echo "$as_me:$LINENO: result: $AWK" >&5
4330 echo "${ECHO_T}$AWK" >&6
4331 else
4332   echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4334 fi
4335
4336   test -n "$AWK" && break
4337 done
4338
4339 echo "$as_me:$LINENO: checking for flex" >&5
4340 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4341 if test "${pgac_cv_path_flex+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   # Let the user override the test
4345 if test -n "$FLEX"; then
4346   pgac_cv_path_flex=$FLEX
4347 else
4348   pgac_save_IFS=$IFS
4349   IFS=:
4350   for pgac_dir in $PATH; do
4351     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4352       pgac_dir=`pwd`
4353     fi
4354     for pgac_prog in flex lex; do
4355       pgac_candidate="$pgac_dir/$pgac_prog"
4356       if test -f "$pgac_candidate" \
4357         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4358       then
4359         echo '%%'  > conftest.l
4360         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4361           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4362             pgac_broken_flex=$pgac_candidate
4363             continue
4364           fi
4365
4366           pgac_cv_path_flex=$pgac_candidate
4367           break 2
4368         fi
4369       fi
4370     done
4371   done
4372   IFS=$pgac_save_IFS
4373   rm -f conftest.l
4374   : ${pgac_cv_path_flex=no}
4375 fi
4376
4377 fi
4378 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4379 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381   if test -n "$pgac_broken_flex"; then
4382     { echo "$as_me:$LINENO: WARNING:
4383 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4384 *** should get version 2.5.4 or later." >&5
4385 echo "$as_me: WARNING:
4386 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4387 *** should get version 2.5.4 or later." >&2;}
4388   fi
4389
4390   { echo "$as_me:$LINENO: WARNING:
4391 *** Without Flex you will not be able to build PostgreSQL from CVS or
4392 *** change any of the scanner definition files.  You can obtain Flex from
4393 *** a GNU mirror site.  (If you are using the official distribution of
4394 *** PostgreSQL then you do not need to worry about this because the Flex
4395 *** output is pre-generated.)" >&5
4396 echo "$as_me: WARNING:
4397 *** Without Flex you will not be able to build PostgreSQL from CVS or
4398 *** change any of the scanner definition files.  You can obtain Flex from
4399 *** a GNU mirror site.  (If you are using the official distribution of
4400 *** PostgreSQL then you do not need to worry about this because the Flex
4401 *** output is pre-generated.)" >&2;}
4402 fi
4403
4404 if test x"$pgac_cv_path_flex" = x"no"; then
4405   FLEX=
4406 else
4407   FLEX=$pgac_cv_path_flex
4408 fi
4409
4410
4411
4412
4413 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4414 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4415 LN_S=$as_ln_s
4416 if test "$LN_S" = "ln -s"; then
4417   echo "$as_me:$LINENO: result: yes" >&5
4418 echo "${ECHO_T}yes" >&6
4419 else
4420   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4421 echo "${ECHO_T}no, using $LN_S" >&6
4422 fi
4423
4424
4425 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4426 if test "${with_gnu_ld+set}" = set; then
4427   withval="$with_gnu_ld"
4428   test "$withval" = no || with_gnu_ld=yes
4429 else
4430   with_gnu_ld=no
4431 fi;
4432 ac_prog=ld
4433 if test "$GCC" = yes; then
4434   # Check if gcc -print-prog-name=ld gives a path.
4435   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4437   case $host in
4438   *-*-mingw*)
4439     # gcc leaves a trailing carriage return which upsets mingw
4440     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4441   *)
4442     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4443   esac
4444   case "$ac_prog" in
4445     # Accept absolute paths.
4446     [\\/]* | [A-Za-z]:[\\/]*)
4447       re_direlt='/[^/][^/]*/\.\./'
4448       # Canonicalize the path of ld
4449       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4450       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4451         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4452       done
4453       test -z "$LD" && LD="$ac_prog"
4454       ;;
4455   "")
4456     # If it fails, then pretend we aren't using GCC.
4457     ac_prog=ld
4458     ;;
4459   *)
4460     # If it is relative, then search for the first ld in PATH.
4461     with_gnu_ld=unknown
4462     ;;
4463   esac
4464 elif test "$with_gnu_ld" = yes; then
4465   echo "$as_me:$LINENO: checking for GNU ld" >&5
4466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4467 else
4468   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4470 fi
4471 if test "${ac_cv_path_LD+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -z "$LD"; then
4475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4476   for ac_dir in $PATH; do
4477     test -z "$ac_dir" && ac_dir=.
4478     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4479       ac_cv_path_LD="$ac_dir/$ac_prog"
4480       # Check to see if the program is GNU ld.  I'd rather use --version,
4481       # but apparently some GNU ld's only accept -v.
4482       # Break only if it was the GNU/non-GNU ld that we prefer.
4483       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4484         test "$with_gnu_ld" != no && break
4485       else
4486         test "$with_gnu_ld" != yes && break
4487       fi
4488     fi
4489   done
4490   IFS="$ac_save_ifs"
4491 else
4492   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4493 fi
4494 fi
4495
4496 LD="$ac_cv_path_LD"
4497 if test -n "$LD"; then
4498   echo "$as_me:$LINENO: result: $LD" >&5
4499 echo "${ECHO_T}$LD" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4506    { (exit 1); exit 1; }; }
4507 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4509 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4513 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4514   ac_cv_prog_gnu_ld=yes
4515 else
4516   ac_cv_prog_gnu_ld=no
4517 fi
4518 fi
4519 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4520 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4521 with_gnu_ld=$ac_cv_prog_gnu_ld
4522
4523
4524
4525
4526 case $host_os in sysv5*)
4527   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4528 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4529 if test "${pgac_cv_prog_ld_R+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532
4533     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4534     cat >conftest.$ac_ext <<_ACEOF
4535 #line $LINENO "configure"
4536 #include "confdefs.h"
4537
4538 #ifdef F77_DUMMY_MAIN
4539 #  ifdef __cplusplus
4540      extern "C"
4541 #  endif
4542    int F77_DUMMY_MAIN() { return 1; }
4543 #endif
4544 int
4545 main ()
4546 {
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext conftest$ac_exeext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554   (eval $ac_link) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } &&
4558          { ac_try='test -s conftest$ac_exeext'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564   pgac_cv_prog_ld_R=yes
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 pgac_cv_prog_ld_R=no
4569 fi
4570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4571     LDFLAGS=$pgac_save_LDFLAGS
4572
4573 fi
4574 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4575 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4576   ld_R_works=$pgac_cv_prog_ld_R
4577
4578 esac
4579 if test -n "$ac_tool_prefix"; then
4580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_prog_RANLIB+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   if test -n "$RANLIB"; then
4588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602 done
4603
4604 fi
4605 fi
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608   echo "$as_me:$LINENO: result: $RANLIB" >&5
4609 echo "${ECHO_T}$RANLIB" >&6
4610 else
4611   echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615 fi
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617   ac_ct_RANLIB=$RANLIB
4618   # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$ac_ct_RANLIB"; then
4626   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635     ac_cv_prog_ac_ct_RANLIB="ranlib"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641
4642   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4643 fi
4644 fi
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4649 else
4650   echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654   RANLIB=$ac_ct_RANLIB
4655 else
4656   RANLIB="$ac_cv_prog_RANLIB"
4657 fi
4658
4659 for ac_prog in lorder
4660 do
4661   # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_LORDER+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$LORDER"; then
4669   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678     ac_cv_prog_LORDER="$ac_prog"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684
4685 fi
4686 fi
4687 LORDER=$ac_cv_prog_LORDER
4688 if test -n "$LORDER"; then
4689   echo "$as_me:$LINENO: result: $LORDER" >&5
4690 echo "${ECHO_T}$LORDER" >&6
4691 else
4692   echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 fi
4695
4696   test -n "$LORDER" && break
4697 done
4698
4699 # Extract the first word of "tar", so it can be a program name with args.
4700 set dummy tar; ac_word=$2
4701 echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_path_TAR+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   case $TAR in
4707   [\\/]* | ?:[\\/]*)
4708   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4709   ;;
4710   *)
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724
4725   ;;
4726 esac
4727 fi
4728 TAR=$ac_cv_path_TAR
4729
4730 if test -n "$TAR"; then
4731   echo "$as_me:$LINENO: result: $TAR" >&5
4732 echo "${ECHO_T}$TAR" >&6
4733 else
4734   echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738
4739   if test -n "$ac_tool_prefix"; then
4740   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}strip; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_STRIP+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   if test -n "$STRIP"; then
4748   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763
4764 fi
4765 fi
4766 STRIP=$ac_cv_prog_STRIP
4767 if test -n "$STRIP"; then
4768   echo "$as_me:$LINENO: result: $STRIP" >&5
4769 echo "${ECHO_T}$STRIP" >&6
4770 else
4771   echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4773 fi
4774
4775 fi
4776 if test -z "$ac_cv_prog_STRIP"; then
4777   ac_ct_STRIP=$STRIP
4778   # Extract the first word of "strip", so it can be a program name with args.
4779 set dummy strip; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   if test -n "$ac_ct_STRIP"; then
4786   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795     ac_cv_prog_ac_ct_STRIP="strip"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801
4802   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4803 fi
4804 fi
4805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4806 if test -n "$ac_ct_STRIP"; then
4807   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4808 echo "${ECHO_T}$ac_ct_STRIP" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814   STRIP=$ac_ct_STRIP
4815 else
4816   STRIP="$ac_cv_prog_STRIP"
4817 fi
4818
4819
4820   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4821 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4822   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4823     STRIP_STATIC_LIB="$STRIP -x"
4824     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4825     echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6
4827   else
4828     STRIP_STATIC_LIB=:
4829     STRIP_SHARED_LIB=:
4830     echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6
4832   fi
4833
4834
4835
4836
4837 for ac_prog in 'bison -y'
4838 do
4839   # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_YACC+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   if test -n "$YACC"; then
4847   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854   for ac_exec_ext in '' $ac_executable_extensions; do
4855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856     ac_cv_prog_YACC="$ac_prog"
4857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861 done
4862
4863 fi
4864 fi
4865 YACC=$ac_cv_prog_YACC
4866 if test -n "$YACC"; then
4867   echo "$as_me:$LINENO: result: $YACC" >&5
4868 echo "${ECHO_T}$YACC" >&6
4869 else
4870   echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 fi
4873
4874   test -n "$YACC" && break
4875 done
4876
4877 if test -z "$YACC"; then
4878   { echo "$as_me:$LINENO: WARNING:
4879 *** Without Bison you will not be able to build PostgreSQL from CVS or
4880 *** change any of the parser definition files.  You can obtain Bison from
4881 *** a GNU mirror site.  (If you are using the official distribution of
4882 *** PostgreSQL then you do not need to worry about this because the Bison
4883 *** output is pre-generated.)  To use a different yacc program (possible,
4884 *** but not recommended), set the environment variable YACC before running
4885 *** 'configure'." >&5
4886 echo "$as_me: WARNING:
4887 *** Without Bison you will not be able to build PostgreSQL from CVS or
4888 *** change any of the parser definition files.  You can obtain Bison from
4889 *** a GNU mirror site.  (If you are using the official distribution of
4890 *** PostgreSQL then you do not need to worry about this because the Bison
4891 *** output is pre-generated.)  To use a different yacc program (possible,
4892 *** but not recommended), set the environment variable YACC before running
4893 *** 'configure'." >&2;}
4894 fi
4895
4896
4897 if test "$with_tk" = yes; then
4898     # Extract the first word of "wish", so it can be a program name with args.
4899 set dummy wish; ac_word=$2
4900 echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902 if test "${ac_cv_path_WISH+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $WISH in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923
4924   ;;
4925 esac
4926 fi
4927 WISH=$ac_cv_path_WISH
4928
4929 if test -n "$WISH"; then
4930   echo "$as_me:$LINENO: result: $WISH" >&5
4931 echo "${ECHO_T}$WISH" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4938 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4939    { (exit 1); exit 1; }; }
4940 fi
4941
4942 # Extract the first word of "perl", so it can be a program name with args.
4943 set dummy perl; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_path_PERL+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   case $PERL in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967
4968   ;;
4969 esac
4970 fi
4971 PERL=$ac_cv_path_PERL
4972
4973 if test -n "$PERL"; then
4974   echo "$as_me:$LINENO: result: $PERL" >&5
4975 echo "${ECHO_T}$PERL" >&6
4976 else
4977   echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 fi
4980
4981 if test "$with_perl" = yes; then
4982
4983
4984 echo "$as_me:$LINENO: checking Perl installation directories" >&5
4985 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
4986
4987 # These are the ones we currently need.  Others can be added easily.
4988 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4989 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
4990 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4991
4992
4993 echo "$as_me:$LINENO: result: done" >&5
4994 echo "${ECHO_T}done" >&6
4995
4996 fi
4997
4998 if test "$with_python" = yes; then
4999   # Extract the first word of "python", so it can be a program name with args.
5000 set dummy python; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_path_PYTHON+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   case $PYTHON in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016   for ac_exec_ext in '' $ac_executable_extensions; do
5017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023 done
5024
5025   ;;
5026 esac
5027 fi
5028 PYTHON=$ac_cv_path_PYTHON
5029
5030 if test -n "$PYTHON"; then
5031   echo "$as_me:$LINENO: result: $PYTHON" >&5
5032 echo "${ECHO_T}$PYTHON" >&6
5033 else
5034   echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5036 fi
5037
5038 if test x"$PYTHON" = x""; then
5039   { { echo "$as_me:$LINENO: error: Python not found" >&5
5040 echo "$as_me: error: Python not found" >&2;}
5041    { (exit 1); exit 1; }; }
5042 fi
5043
5044
5045 echo "$as_me:$LINENO: checking Python installation directories" >&5
5046 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5047 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5048 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5049 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5050 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5051 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5052 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5053 python_includespec="-I${python_prefix}/include/python${python_version}"
5054 if test "$python_prefix" != "$python_execprefix"; then
5055   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5056 fi
5057
5058 # This should be enough of a message.
5059 if test "$python_prefix" != "$python_execprefix"; then
5060   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5061 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5062 else
5063   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5064 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5065 fi
5066
5067
5068
5069
5070
5071 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5072 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5073
5074 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5075 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079
5080 pgac_tab="      " # tab character
5081 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"`
5082
5083 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5084 echo "${ECHO_T}${python_libspec}" >&6
5085
5086
5087 fi
5088
5089
5090 ##
5091 ## Libraries
5092 ##
5093
5094 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5095 then
5096
5097 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5098 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5099 if test "${ac_cv_lib_bsd_main+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   ac_check_lib_save_LIBS=$LIBS
5103 LIBS="-lbsd  $LIBS"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5107
5108
5109 #ifdef F77_DUMMY_MAIN
5110 #  ifdef __cplusplus
5111      extern "C"
5112 #  endif
5113    int F77_DUMMY_MAIN() { return 1; }
5114 #endif
5115 int
5116 main ()
5117 {
5118 main ();
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125   (eval $ac_link) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } &&
5129          { ac_try='test -s conftest$ac_exeext'
5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131   (eval $ac_try) 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }; }; then
5135   ac_cv_lib_bsd_main=yes
5136 else
5137   echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 ac_cv_lib_bsd_main=no
5140 fi
5141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5142 LIBS=$ac_check_lib_save_LIBS
5143 fi
5144 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5145 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5146 if test $ac_cv_lib_bsd_main = yes; then
5147   cat >>confdefs.h <<_ACEOF
5148 #define HAVE_LIBBSD 1
5149 _ACEOF
5150
5151   LIBS="-lbsd $LIBS"
5152
5153 fi
5154
5155 fi
5156
5157 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5158 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5159 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   ac_check_lib_save_LIBS=$LIBS
5163 LIBS="-lutil  $LIBS"
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line $LINENO "configure"
5166 #include "confdefs.h"
5167
5168 /* Override any gcc2 internal prototype to avoid an error.  */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173    builtin and then its argument prototype would still apply.  */
5174 char setproctitle ();
5175 #ifdef F77_DUMMY_MAIN
5176 #  ifdef __cplusplus
5177      extern "C"
5178 #  endif
5179    int F77_DUMMY_MAIN() { return 1; }
5180 #endif
5181 int
5182 main ()
5183 {
5184 setproctitle ();
5185   ;
5186   return 0;
5187 }
5188 _ACEOF
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191   (eval $ac_link) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } &&
5195          { ac_try='test -s conftest$ac_exeext'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; }; then
5201   ac_cv_lib_util_setproctitle=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 ac_cv_lib_util_setproctitle=no
5206 fi
5207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5211 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5212 if test $ac_cv_lib_util_setproctitle = yes; then
5213   cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBUTIL 1
5215 _ACEOF
5216
5217   LIBS="-lutil $LIBS"
5218
5219 fi
5220
5221
5222 echo "$as_me:$LINENO: checking for main in -lm" >&5
5223 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5224 if test "${ac_cv_lib_m_main+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   ac_check_lib_save_LIBS=$LIBS
5228 LIBS="-lm  $LIBS"
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5232
5233
5234 #ifdef F77_DUMMY_MAIN
5235 #  ifdef __cplusplus
5236      extern "C"
5237 #  endif
5238    int F77_DUMMY_MAIN() { return 1; }
5239 #endif
5240 int
5241 main ()
5242 {
5243 main ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -s conftest$ac_exeext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_cv_lib_m_main=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 ac_cv_lib_m_main=no
5265 fi
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5267 LIBS=$ac_check_lib_save_LIBS
5268 fi
5269 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5270 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5271 if test $ac_cv_lib_m_main = yes; then
5272   cat >>confdefs.h <<_ACEOF
5273 #define HAVE_LIBM 1
5274 _ACEOF
5275
5276   LIBS="-lm $LIBS"
5277
5278 fi
5279
5280
5281 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5282 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5283 if test "${ac_cv_lib_dl_main+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   ac_check_lib_save_LIBS=$LIBS
5287 LIBS="-ldl  $LIBS"
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5291
5292
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 main ();
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_lib_dl_main=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 ac_cv_lib_dl_main=no
5324 fi
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326 LIBS=$ac_check_lib_save_LIBS
5327 fi
5328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5329 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5330 if test $ac_cv_lib_dl_main = yes; then
5331   cat >>confdefs.h <<_ACEOF
5332 #define HAVE_LIBDL 1
5333 _ACEOF
5334
5335   LIBS="-ldl $LIBS"
5336
5337 fi
5338
5339
5340 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5341 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5342 if test "${ac_cv_lib_socket_main+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lsocket  $LIBS"
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line $LINENO "configure"
5349 #include "confdefs.h"
5350
5351
5352 #ifdef F77_DUMMY_MAIN
5353 #  ifdef __cplusplus
5354      extern "C"
5355 #  endif
5356    int F77_DUMMY_MAIN() { return 1; }
5357 #endif
5358 int
5359 main ()
5360 {
5361 main ();
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368   (eval $ac_link) 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); } &&
5372          { ac_try='test -s conftest$ac_exeext'
5373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374   (eval $ac_try) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; }; then
5378   ac_cv_lib_socket_main=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 ac_cv_lib_socket_main=no
5383 fi
5384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5385 LIBS=$ac_check_lib_save_LIBS
5386 fi
5387 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5388 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5389 if test $ac_cv_lib_socket_main = yes; then
5390   cat >>confdefs.h <<_ACEOF
5391 #define HAVE_LIBSOCKET 1
5392 _ACEOF
5393
5394   LIBS="-lsocket $LIBS"
5395
5396 fi
5397
5398
5399 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5400 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5401 if test "${ac_cv_lib_nsl_main+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   ac_check_lib_save_LIBS=$LIBS
5405 LIBS="-lnsl  $LIBS"
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 #include "confdefs.h"
5409
5410
5411 #ifdef F77_DUMMY_MAIN
5412 #  ifdef __cplusplus
5413      extern "C"
5414 #  endif
5415    int F77_DUMMY_MAIN() { return 1; }
5416 #endif
5417 int
5418 main ()
5419 {
5420 main ();
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427   (eval $ac_link) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } &&
5431          { ac_try='test -s conftest$ac_exeext'
5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433   (eval $ac_try) 2>&5
5434   ac_status=$?
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); }; }; then
5437   ac_cv_lib_nsl_main=yes
5438 else
5439   echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 ac_cv_lib_nsl_main=no
5442 fi
5443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_check_lib_save_LIBS
5445 fi
5446 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5447 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5448 if test $ac_cv_lib_nsl_main = yes; then
5449   cat >>confdefs.h <<_ACEOF
5450 #define HAVE_LIBNSL 1
5451 _ACEOF
5452
5453   LIBS="-lnsl $LIBS"
5454
5455 fi
5456
5457
5458 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5459 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5460 if test "${ac_cv_lib_ipc_main+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   ac_check_lib_save_LIBS=$LIBS
5464 LIBS="-lipc  $LIBS"
5465 cat >conftest.$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5467 #include "confdefs.h"
5468
5469
5470 #ifdef F77_DUMMY_MAIN
5471 #  ifdef __cplusplus
5472      extern "C"
5473 #  endif
5474    int F77_DUMMY_MAIN() { return 1; }
5475 #endif
5476 int
5477 main ()
5478 {
5479 main ();
5480   ;
5481   return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486   (eval $ac_link) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -s conftest$ac_exeext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_cv_lib_ipc_main=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 ac_cv_lib_ipc_main=no
5501 fi
5502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_check_lib_save_LIBS
5504 fi
5505 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5506 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5507 if test $ac_cv_lib_ipc_main = yes; then
5508   cat >>confdefs.h <<_ACEOF
5509 #define HAVE_LIBIPC 1
5510 _ACEOF
5511
5512   LIBS="-lipc $LIBS"
5513
5514 fi
5515
5516
5517 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5518 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5519 if test "${ac_cv_lib_IPC_main+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   ac_check_lib_save_LIBS=$LIBS
5523 LIBS="-lIPC  $LIBS"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line $LINENO "configure"
5526 #include "confdefs.h"
5527
5528
5529 #ifdef F77_DUMMY_MAIN
5530 #  ifdef __cplusplus
5531      extern "C"
5532 #  endif
5533    int F77_DUMMY_MAIN() { return 1; }
5534 #endif
5535 int
5536 main ()
5537 {
5538 main ();
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5545   (eval $ac_link) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -s conftest$ac_exeext'
5550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; }; then
5555   ac_cv_lib_IPC_main=yes
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_IPC_main=no
5560 fi
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5563 fi
5564 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5565 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5566 if test $ac_cv_lib_IPC_main = yes; then
5567   cat >>confdefs.h <<_ACEOF
5568 #define HAVE_LIBIPC 1
5569 _ACEOF
5570
5571   LIBS="-lIPC $LIBS"
5572
5573 fi
5574
5575
5576 echo "$as_me:$LINENO: checking for main in -llc" >&5
5577 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5578 if test "${ac_cv_lib_lc_main+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   ac_check_lib_save_LIBS=$LIBS
5582 LIBS="-llc  $LIBS"
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586
5587
5588 #ifdef F77_DUMMY_MAIN
5589 #  ifdef __cplusplus
5590      extern "C"
5591 #  endif
5592    int F77_DUMMY_MAIN() { return 1; }
5593 #endif
5594 int
5595 main ()
5596 {
5597 main ();
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604   (eval $ac_link) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } &&
5608          { ac_try='test -s conftest$ac_exeext'
5609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610   (eval $ac_try) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; }; then
5614   ac_cv_lib_lc_main=yes
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 ac_cv_lib_lc_main=no
5619 fi
5620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5622 fi
5623 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5624 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5625 if test $ac_cv_lib_lc_main = yes; then
5626   cat >>confdefs.h <<_ACEOF
5627 #define HAVE_LIBLC 1
5628 _ACEOF
5629
5630   LIBS="-llc $LIBS"
5631
5632 fi
5633
5634
5635 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5636 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5637 if test "${ac_cv_lib_dld_main+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   ac_check_lib_save_LIBS=$LIBS
5641 LIBS="-ldld  $LIBS"
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5644 #include "confdefs.h"
5645
5646
5647 #ifdef F77_DUMMY_MAIN
5648 #  ifdef __cplusplus
5649      extern "C"
5650 #  endif
5651    int F77_DUMMY_MAIN() { return 1; }
5652 #endif
5653 int
5654 main ()
5655 {
5656 main ();
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663   (eval $ac_link) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -s conftest$ac_exeext'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_lib_dld_main=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 ac_cv_lib_dld_main=no
5678 fi
5679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5683 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5684 if test $ac_cv_lib_dld_main = yes; then
5685   cat >>confdefs.h <<_ACEOF
5686 #define HAVE_LIBDLD 1
5687 _ACEOF
5688
5689   LIBS="-ldld $LIBS"
5690
5691 fi
5692
5693
5694 echo "$as_me:$LINENO: checking for main in -lld" >&5
5695 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5696 if test "${ac_cv_lib_ld_main+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   ac_check_lib_save_LIBS=$LIBS
5700 LIBS="-lld  $LIBS"
5701 cat >conftest.$ac_ext <<_ACEOF
5702 #line $LINENO "configure"
5703 #include "confdefs.h"
5704
5705
5706 #ifdef F77_DUMMY_MAIN
5707 #  ifdef __cplusplus
5708      extern "C"
5709 #  endif
5710    int F77_DUMMY_MAIN() { return 1; }
5711 #endif
5712 int
5713 main ()
5714 {
5715 main ();
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext conftest$ac_exeext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722   (eval $ac_link) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); } &&
5726          { ac_try='test -s conftest$ac_exeext'
5727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728   (eval $ac_try) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; }; then
5732   ac_cv_lib_ld_main=yes
5733 else
5734   echo "$as_me: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5736 ac_cv_lib_ld_main=no
5737 fi
5738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_check_lib_save_LIBS
5740 fi
5741 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5742 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5743 if test $ac_cv_lib_ld_main = yes; then
5744   cat >>confdefs.h <<_ACEOF
5745 #define HAVE_LIBLD 1
5746 _ACEOF
5747
5748   LIBS="-lld $LIBS"
5749
5750 fi
5751
5752
5753 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5754 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5755 if test "${ac_cv_lib_compat_main+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lcompat  $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_compat_main=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_compat_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_compat_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5802 if test $ac_cv_lib_compat_main = yes; then
5803   cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBCOMPAT 1
5805 _ACEOF
5806
5807   LIBS="-lcompat $LIBS"
5808
5809 fi
5810
5811
5812 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5813 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5814 if test "${ac_cv_lib_BSD_main+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   ac_check_lib_save_LIBS=$LIBS
5818 LIBS="-lBSD  $LIBS"
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5822
5823
5824 #ifdef F77_DUMMY_MAIN
5825 #  ifdef __cplusplus
5826      extern "C"
5827 #  endif
5828    int F77_DUMMY_MAIN() { return 1; }
5829 #endif
5830 int
5831 main ()
5832 {
5833 main ();
5834   ;
5835   return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840   (eval $ac_link) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } &&
5844          { ac_try='test -s conftest$ac_exeext'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; }; then
5850   ac_cv_lib_BSD_main=yes
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5854 ac_cv_lib_BSD_main=no
5855 fi
5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5858 fi
5859 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5860 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5861 if test $ac_cv_lib_BSD_main = yes; then
5862   cat >>confdefs.h <<_ACEOF
5863 #define HAVE_LIBBSD 1
5864 _ACEOF
5865
5866   LIBS="-lBSD $LIBS"
5867
5868 fi
5869
5870
5871 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5872 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5873 if test "${ac_cv_lib_gen_main+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   ac_check_lib_save_LIBS=$LIBS
5877 LIBS="-lgen  $LIBS"
5878 cat >conftest.$ac_ext <<_ACEOF
5879 #line $LINENO "configure"
5880 #include "confdefs.h"
5881
5882
5883 #ifdef F77_DUMMY_MAIN
5884 #  ifdef __cplusplus
5885      extern "C"
5886 #  endif
5887    int F77_DUMMY_MAIN() { return 1; }
5888 #endif
5889 int
5890 main ()
5891 {
5892 main ();
5893   ;
5894   return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext conftest$ac_exeext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5899   (eval $ac_link) 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); } &&
5903          { ac_try='test -s conftest$ac_exeext'
5904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905   (eval $ac_try) 2>&5
5906   ac_status=$?
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); }; }; then
5909   ac_cv_lib_gen_main=yes
5910 else
5911   echo "$as_me: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 ac_cv_lib_gen_main=no
5914 fi
5915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5916 LIBS=$ac_check_lib_save_LIBS
5917 fi
5918 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5919 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5920 if test $ac_cv_lib_gen_main = yes; then
5921   cat >>confdefs.h <<_ACEOF
5922 #define HAVE_LIBGEN 1
5923 _ACEOF
5924
5925   LIBS="-lgen $LIBS"
5926
5927 fi
5928
5929
5930 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5931 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5932 if test "${ac_cv_lib_PW_main+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lPW  $LIBS"
5937 cat >conftest.$ac_ext <<_ACEOF
5938 #line $LINENO "configure"
5939 #include "confdefs.h"
5940
5941
5942 #ifdef F77_DUMMY_MAIN
5943 #  ifdef __cplusplus
5944      extern "C"
5945 #  endif
5946    int F77_DUMMY_MAIN() { return 1; }
5947 #endif
5948 int
5949 main ()
5950 {
5951 main ();
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext conftest$ac_exeext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958   (eval $ac_link) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -s conftest$ac_exeext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   ac_cv_lib_PW_main=yes
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 cat conftest.$ac_ext >&5
5972 ac_cv_lib_PW_main=no
5973 fi
5974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5975 LIBS=$ac_check_lib_save_LIBS
5976 fi
5977 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5978 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5979 if test $ac_cv_lib_PW_main = yes; then
5980   cat >>confdefs.h <<_ACEOF
5981 #define HAVE_LIBPW 1
5982 _ACEOF
5983
5984   LIBS="-lPW $LIBS"
5985
5986 fi
5987
5988
5989 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5990 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5991 if test "${ac_cv_lib_resolv_main+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   ac_check_lib_save_LIBS=$LIBS
5995 LIBS="-lresolv  $LIBS"
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
5999
6000
6001 #ifdef F77_DUMMY_MAIN
6002 #  ifdef __cplusplus
6003      extern "C"
6004 #  endif
6005    int F77_DUMMY_MAIN() { return 1; }
6006 #endif
6007 int
6008 main ()
6009 {
6010 main ();
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017   (eval $ac_link) 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } &&
6021          { ac_try='test -s conftest$ac_exeext'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; }; then
6027   ac_cv_lib_resolv_main=yes
6028 else
6029   echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_resolv_main=no
6032 fi
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6035 fi
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6037 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6038 if test $ac_cv_lib_resolv_main = yes; then
6039   cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBRESOLV 1
6041 _ACEOF
6042
6043   LIBS="-lresolv $LIBS"
6044
6045 fi
6046
6047 # QNX:
6048
6049 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6050 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6051 if test "${ac_cv_lib_unix_main+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lunix  $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6059
6060
6061 #ifdef F77_DUMMY_MAIN
6062 #  ifdef __cplusplus
6063      extern "C"
6064 #  endif
6065    int F77_DUMMY_MAIN() { return 1; }
6066 #endif
6067 int
6068 main ()
6069 {
6070 main ();
6071   ;
6072   return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077   (eval $ac_link) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest$ac_exeext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_lib_unix_main=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6091 ac_cv_lib_unix_main=no
6092 fi
6093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094 LIBS=$ac_check_lib_save_LIBS
6095 fi
6096 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6097 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6098 if test $ac_cv_lib_unix_main = yes; then
6099   cat >>confdefs.h <<_ACEOF
6100 #define HAVE_LIBUNIX 1
6101 _ACEOF
6102
6103   LIBS="-lunix $LIBS"
6104
6105 fi
6106
6107 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6108 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6109 if test "${ac_cv_search_crypt+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   ac_func_search_save_LIBS=$LIBS
6113 ac_cv_search_crypt=no
6114 cat >conftest.$ac_ext <<_ACEOF
6115 #line $LINENO "configure"
6116 #include "confdefs.h"
6117
6118 /* Override any gcc2 internal prototype to avoid an error.  */
6119 #ifdef __cplusplus
6120 extern "C"
6121 #endif
6122 /* We use char because int might match the return type of a gcc2
6123    builtin and then its argument prototype would still apply.  */
6124 char crypt ();
6125 #ifdef F77_DUMMY_MAIN
6126 #  ifdef __cplusplus
6127      extern "C"
6128 #  endif
6129    int F77_DUMMY_MAIN() { return 1; }
6130 #endif
6131 int
6132 main ()
6133 {
6134 crypt ();
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141   (eval $ac_link) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -s conftest$ac_exeext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_cv_search_crypt="none required"
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 fi
6156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6157 if test "$ac_cv_search_crypt" = no; then
6158   for ac_lib in crypt; do
6159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6160     cat >conftest.$ac_ext <<_ACEOF
6161 #line $LINENO "configure"
6162 #include "confdefs.h"
6163
6164 /* Override any gcc2 internal prototype to avoid an error.  */
6165 #ifdef __cplusplus
6166 extern "C"
6167 #endif
6168 /* We use char because int might match the return type of a gcc2
6169    builtin and then its argument prototype would still apply.  */
6170 char crypt ();
6171 #ifdef F77_DUMMY_MAIN
6172 #  ifdef __cplusplus
6173      extern "C"
6174 #  endif
6175    int F77_DUMMY_MAIN() { return 1; }
6176 #endif
6177 int
6178 main ()
6179 {
6180 crypt ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187   (eval $ac_link) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -s conftest$ac_exeext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_search_crypt="-l$ac_lib"
6198 break
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 fi
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204   done
6205 fi
6206 LIBS=$ac_func_search_save_LIBS
6207 fi
6208 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6209 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6210 if test "$ac_cv_search_crypt" != no; then
6211   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6212
6213 fi
6214
6215 # BeOS:
6216
6217 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6218 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6219 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   ac_check_lib_save_LIBS=$LIBS
6223 LIBS="-lbind  $LIBS"
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 #include "confdefs.h"
6227
6228 /* Override any gcc2 internal prototype to avoid an error.  */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 /* We use char because int might match the return type of a gcc2
6233    builtin and then its argument prototype would still apply.  */
6234 char __inet_ntoa ();
6235 #ifdef F77_DUMMY_MAIN
6236 #  ifdef __cplusplus
6237      extern "C"
6238 #  endif
6239    int F77_DUMMY_MAIN() { return 1; }
6240 #endif
6241 int
6242 main ()
6243 {
6244 __inet_ntoa ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -s conftest$ac_exeext'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   ac_cv_lib_bind___inet_ntoa=yes
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 ac_cv_lib_bind___inet_ntoa=no
6266 fi
6267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6268 LIBS=$ac_check_lib_save_LIBS
6269 fi
6270 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6271 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6272 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6273   cat >>confdefs.h <<_ACEOF
6274 #define HAVE_LIBBIND 1
6275 _ACEOF
6276
6277   LIBS="-lbind $LIBS"
6278
6279 fi
6280
6281 # Solaris:
6282 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6283 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6284 if test "${ac_cv_search_fdatasync+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   ac_func_search_save_LIBS=$LIBS
6288 ac_cv_search_fdatasync=no
6289 cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6291 #include "confdefs.h"
6292
6293 /* Override any gcc2 internal prototype to avoid an error.  */
6294 #ifdef __cplusplus
6295 extern "C"
6296 #endif
6297 /* We use char because int might match the return type of a gcc2
6298    builtin and then its argument prototype would still apply.  */
6299 char fdatasync ();
6300 #ifdef F77_DUMMY_MAIN
6301 #  ifdef __cplusplus
6302      extern "C"
6303 #  endif
6304    int F77_DUMMY_MAIN() { return 1; }
6305 #endif
6306 int
6307 main ()
6308 {
6309 fdatasync ();
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316   (eval $ac_link) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } &&
6320          { ac_try='test -s conftest$ac_exeext'
6321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322   (eval $ac_try) 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); }; }; then
6326   ac_cv_search_fdatasync="none required"
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6330 fi
6331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6332 if test "$ac_cv_search_fdatasync" = no; then
6333   for ac_lib in rt posix4; do
6334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6335     cat >conftest.$ac_ext <<_ACEOF
6336 #line $LINENO "configure"
6337 #include "confdefs.h"
6338
6339 /* Override any gcc2 internal prototype to avoid an error.  */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 /* We use char because int might match the return type of a gcc2
6344    builtin and then its argument prototype would still apply.  */
6345 char fdatasync ();
6346 #ifdef F77_DUMMY_MAIN
6347 #  ifdef __cplusplus
6348      extern "C"
6349 #  endif
6350    int F77_DUMMY_MAIN() { return 1; }
6351 #endif
6352 int
6353 main ()
6354 {
6355 fdatasync ();
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362   (eval $ac_link) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -s conftest$ac_exeext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_cv_search_fdatasync="-l$ac_lib"
6373 break
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377 fi
6378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379   done
6380 fi
6381 LIBS=$ac_func_search_save_LIBS
6382 fi
6383 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6384 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6385 if test "$ac_cv_search_fdatasync" != no; then
6386   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6387
6388 fi
6389
6390
6391 if test "$with_readline" = yes; then
6392
6393 echo "$as_me:$LINENO: checking for readline" >&5
6394 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6395
6396 if test "${pgac_cv_check_readline+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   pgac_cv_check_readline=no
6400 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6401   for pgac_rllib in -lreadline -ledit ; do
6402     pgac_save_LIBS=$LIBS
6403     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6404     cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 #include "confdefs.h"
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char readline ();
6415 #ifdef F77_DUMMY_MAIN
6416 #  ifdef __cplusplus
6417      extern "C"
6418 #  endif
6419    int F77_DUMMY_MAIN() { return 1; }
6420 #endif
6421 int
6422 main ()
6423 {
6424 readline ();
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431   (eval $ac_link) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest$ac_exeext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441
6442       # NetBSD and OpenBSD have a broken linker that does not
6443       # recognize dependent libraries
6444       case $host_os in netbsd* | openbsd* )
6445         case $pgac_lib in
6446           *curses*) ;;
6447           *) pgac_lib=" -lcurses" ;;
6448         esac
6449       esac
6450
6451       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6452       break 2
6453
6454 else
6455   echo "$as_me: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 fi
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459     LIBS=$pgac_save_LIBS
6460   done
6461 done
6462 LIBS=$pgac_save_LIBS
6463
6464 fi
6465
6466 if test "$pgac_cv_check_readline" != no ; then
6467
6468 cat >>confdefs.h <<\_ACEOF
6469 #define HAVE_LIBREADLINE 1
6470 _ACEOF
6471
6472   LIBS="$pgac_cv_check_readline $LIBS"
6473   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6474 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6475 else
6476   echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6478 fi
6479   if test x"$pgac_cv_check_readline" = x"no"; then
6480     { { echo "$as_me:$LINENO: error: readline library not found
6481 Use --without-readline to disable readline support." >&5
6482 echo "$as_me: error: readline library not found
6483 Use --without-readline to disable readline support." >&2;}
6484    { (exit 1); exit 1; }; }
6485   fi
6486 fi
6487
6488 if test "$with_zlib" = yes; then
6489
6490 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6491 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6492 if test "${ac_cv_lib_z_inflate+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lz  $LIBS"
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6499 #include "confdefs.h"
6500
6501 /* Override any gcc2 internal prototype to avoid an error.  */
6502 #ifdef __cplusplus
6503 extern "C"
6504 #endif
6505 /* We use char because int might match the return type of a gcc2
6506    builtin and then its argument prototype would still apply.  */
6507 char inflate ();
6508 #ifdef F77_DUMMY_MAIN
6509 #  ifdef __cplusplus
6510      extern "C"
6511 #  endif
6512    int F77_DUMMY_MAIN() { return 1; }
6513 #endif
6514 int
6515 main ()
6516 {
6517 inflate ();
6518   ;
6519   return 0;
6520 }
6521 _ACEOF
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524   (eval $ac_link) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); } &&
6528          { ac_try='test -s conftest$ac_exeext'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; }; then
6534   ac_cv_lib_z_inflate=yes
6535 else
6536   echo "$as_me: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 ac_cv_lib_z_inflate=no
6539 fi
6540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6541 LIBS=$ac_check_lib_save_LIBS
6542 fi
6543 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6544 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6545 if test $ac_cv_lib_z_inflate = yes; then
6546   cat >>confdefs.h <<_ACEOF
6547 #define HAVE_LIBZ 1
6548 _ACEOF
6549
6550   LIBS="-lz $LIBS"
6551
6552 else
6553   { { echo "$as_me:$LINENO: error: zlib library not found
6554 Use --without-zlib to disable zlib support." >&5
6555 echo "$as_me: error: zlib library not found
6556 Use --without-zlib to disable zlib support." >&2;}
6557    { (exit 1); exit 1; }; }
6558 fi
6559
6560 fi
6561
6562 if test "$with_krb4" = yes ; then
6563
6564 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6565 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6566 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   ac_check_lib_save_LIBS=$LIBS
6570 LIBS="-ldes  $LIBS"
6571 cat >conftest.$ac_ext <<_ACEOF
6572 #line $LINENO "configure"
6573 #include "confdefs.h"
6574
6575 /* Override any gcc2 internal prototype to avoid an error.  */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 /* We use char because int might match the return type of a gcc2
6580    builtin and then its argument prototype would still apply.  */
6581 char des_encrypt ();
6582 #ifdef F77_DUMMY_MAIN
6583 #  ifdef __cplusplus
6584      extern "C"
6585 #  endif
6586    int F77_DUMMY_MAIN() { return 1; }
6587 #endif
6588 int
6589 main ()
6590 {
6591 des_encrypt ();
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598   (eval $ac_link) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -s conftest$ac_exeext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_cv_lib_des_des_encrypt=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_lib_des_des_encrypt=no
6613 fi
6614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6615 LIBS=$ac_check_lib_save_LIBS
6616 fi
6617 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6618 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6619 if test $ac_cv_lib_des_des_encrypt = yes; then
6620   cat >>confdefs.h <<_ACEOF
6621 #define HAVE_LIBDES 1
6622 _ACEOF
6623
6624   LIBS="-ldes $LIBS"
6625
6626 else
6627   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6628 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6629    { (exit 1); exit 1; }; }
6630 fi
6631
6632
6633 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6634 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6635 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-lkrb  $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 #include "confdefs.h"
6643
6644 /* Override any gcc2 internal prototype to avoid an error.  */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 /* We use char because int might match the return type of a gcc2
6649    builtin and then its argument prototype would still apply.  */
6650 char krb_sendauth ();
6651 #ifdef F77_DUMMY_MAIN
6652 #  ifdef __cplusplus
6653      extern "C"
6654 #  endif
6655    int F77_DUMMY_MAIN() { return 1; }
6656 #endif
6657 int
6658 main ()
6659 {
6660 krb_sendauth ();
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667   (eval $ac_link) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } &&
6671          { ac_try='test -s conftest$ac_exeext'
6672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673   (eval $ac_try) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; }; then
6677   ac_cv_lib_krb_krb_sendauth=yes
6678 else
6679   echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 ac_cv_lib_krb_krb_sendauth=no
6682 fi
6683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_check_lib_save_LIBS
6685 fi
6686 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6687 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6688 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6689   cat >>confdefs.h <<_ACEOF
6690 #define HAVE_LIBKRB 1
6691 _ACEOF
6692
6693   LIBS="-lkrb $LIBS"
6694
6695 else
6696   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6697 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6698    { (exit 1); exit 1; }; }
6699 fi
6700
6701 fi
6702
6703 if test "$with_krb5" = yes ; then
6704   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6705 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6706 if test "${ac_cv_search_com_err+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   ac_func_search_save_LIBS=$LIBS
6710 ac_cv_search_com_err=no
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line $LINENO "configure"
6713 #include "confdefs.h"
6714
6715 /* Override any gcc2 internal prototype to avoid an error.  */
6716 #ifdef __cplusplus
6717 extern "C"
6718 #endif
6719 /* We use char because int might match the return type of a gcc2
6720    builtin and then its argument prototype would still apply.  */
6721 char com_err ();
6722 #ifdef F77_DUMMY_MAIN
6723 #  ifdef __cplusplus
6724      extern "C"
6725 #  endif
6726    int F77_DUMMY_MAIN() { return 1; }
6727 #endif
6728 int
6729 main ()
6730 {
6731 com_err ();
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext conftest$ac_exeext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738   (eval $ac_link) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -s conftest$ac_exeext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_cv_search_com_err="none required"
6749 else
6750   echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 fi
6753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6754 if test "$ac_cv_search_com_err" = no; then
6755   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6757     cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 #include "confdefs.h"
6760
6761 /* Override any gcc2 internal prototype to avoid an error.  */
6762 #ifdef __cplusplus
6763 extern "C"
6764 #endif
6765 /* We use char because int might match the return type of a gcc2
6766    builtin and then its argument prototype would still apply.  */
6767 char com_err ();
6768 #ifdef F77_DUMMY_MAIN
6769 #  ifdef __cplusplus
6770      extern "C"
6771 #  endif
6772    int F77_DUMMY_MAIN() { return 1; }
6773 #endif
6774 int
6775 main ()
6776 {
6777 com_err ();
6778   ;
6779   return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784   (eval $ac_link) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } &&
6788          { ac_try='test -s conftest$ac_exeext'
6789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790   (eval $ac_try) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); }; }; then
6794   ac_cv_search_com_err="-l$ac_lib"
6795 break
6796 else
6797   echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 fi
6800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6801   done
6802 fi
6803 LIBS=$ac_func_search_save_LIBS
6804 fi
6805 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6806 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6807 if test "$ac_cv_search_com_err" != no; then
6808   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6809
6810 else
6811   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6812 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6813    { (exit 1); exit 1; }; }
6814 fi
6815
6816   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6817 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6818 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   ac_func_search_save_LIBS=$LIBS
6822 ac_cv_search_krb5_encrypt=no
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6826
6827 /* Override any gcc2 internal prototype to avoid an error.  */
6828 #ifdef __cplusplus
6829 extern "C"
6830 #endif
6831 /* We use char because int might match the return type of a gcc2
6832    builtin and then its argument prototype would still apply.  */
6833 char krb5_encrypt ();
6834 #ifdef F77_DUMMY_MAIN
6835 #  ifdef __cplusplus
6836      extern "C"
6837 #  endif
6838    int F77_DUMMY_MAIN() { return 1; }
6839 #endif
6840 int
6841 main ()
6842 {
6843 krb5_encrypt ();
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850   (eval $ac_link) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } &&
6854          { ac_try='test -s conftest$ac_exeext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_cv_search_krb5_encrypt="none required"
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6864 fi
6865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6866 if test "$ac_cv_search_krb5_encrypt" = no; then
6867   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6869     cat >conftest.$ac_ext <<_ACEOF
6870 #line $LINENO "configure"
6871 #include "confdefs.h"
6872
6873 /* Override any gcc2 internal prototype to avoid an error.  */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 /* We use char because int might match the return type of a gcc2
6878    builtin and then its argument prototype would still apply.  */
6879 char krb5_encrypt ();
6880 #ifdef F77_DUMMY_MAIN
6881 #  ifdef __cplusplus
6882      extern "C"
6883 #  endif
6884    int F77_DUMMY_MAIN() { return 1; }
6885 #endif
6886 int
6887 main ()
6888 {
6889 krb5_encrypt ();
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896   (eval $ac_link) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -s conftest$ac_exeext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906   ac_cv_search_krb5_encrypt="-l$ac_lib"
6907 break
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 fi
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6913   done
6914 fi
6915 LIBS=$ac_func_search_save_LIBS
6916 fi
6917 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6918 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6919 if test "$ac_cv_search_krb5_encrypt" != no; then
6920   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6921
6922 else
6923   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6924 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6925    { (exit 1); exit 1; }; }
6926 fi
6927
6928   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6929 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6930 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   ac_func_search_save_LIBS=$LIBS
6934 ac_cv_search_krb5_sendauth=no
6935 cat >conftest.$ac_ext <<_ACEOF
6936 #line $LINENO "configure"
6937 #include "confdefs.h"
6938
6939 /* Override any gcc2 internal prototype to avoid an error.  */
6940 #ifdef __cplusplus
6941 extern "C"
6942 #endif
6943 /* We use char because int might match the return type of a gcc2
6944    builtin and then its argument prototype would still apply.  */
6945 char krb5_sendauth ();
6946 #ifdef F77_DUMMY_MAIN
6947 #  ifdef __cplusplus
6948      extern "C"
6949 #  endif
6950    int F77_DUMMY_MAIN() { return 1; }
6951 #endif
6952 int
6953 main ()
6954 {
6955 krb5_sendauth ();
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962   (eval $ac_link) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } &&
6966          { ac_try='test -s conftest$ac_exeext'
6967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968   (eval $ac_try) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); }; }; then
6972   ac_cv_search_krb5_sendauth="none required"
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6976 fi
6977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 if test "$ac_cv_search_krb5_sendauth" = no; then
6979   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6981     cat >conftest.$ac_ext <<_ACEOF
6982 #line $LINENO "configure"
6983 #include "confdefs.h"
6984
6985 /* Override any gcc2 internal prototype to avoid an error.  */
6986 #ifdef __cplusplus
6987 extern "C"
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990    builtin and then its argument prototype would still apply.  */
6991 char krb5_sendauth ();
6992 #ifdef F77_DUMMY_MAIN
6993 #  ifdef __cplusplus
6994      extern "C"
6995 #  endif
6996    int F77_DUMMY_MAIN() { return 1; }
6997 #endif
6998 int
6999 main ()
7000 {
7001 krb5_sendauth ();
7002   ;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008   (eval $ac_link) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -s conftest$ac_exeext'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; }; then
7018   ac_cv_search_krb5_sendauth="-l$ac_lib"
7019 break
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 fi
7024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7025   done
7026 fi
7027 LIBS=$ac_func_search_save_LIBS
7028 fi
7029 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7030 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7031 if test "$ac_cv_search_krb5_sendauth" != no; then
7032   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7033
7034 else
7035   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7036 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7037    { (exit 1); exit 1; }; }
7038 fi
7039
7040 fi
7041
7042 if test "$with_openssl" = yes ; then
7043
7044 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7045 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7046 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   ac_check_lib_save_LIBS=$LIBS
7050 LIBS="-lcrypto  $LIBS"
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7053 #include "confdefs.h"
7054
7055 /* Override any gcc2 internal prototype to avoid an error.  */
7056 #ifdef __cplusplus
7057 extern "C"
7058 #endif
7059 /* We use char because int might match the return type of a gcc2
7060    builtin and then its argument prototype would still apply.  */
7061 char CRYPTO_new_ex_data ();
7062 #ifdef F77_DUMMY_MAIN
7063 #  ifdef __cplusplus
7064      extern "C"
7065 #  endif
7066    int F77_DUMMY_MAIN() { return 1; }
7067 #endif
7068 int
7069 main ()
7070 {
7071 CRYPTO_new_ex_data ();
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -s conftest$ac_exeext'
7083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084   (eval $ac_try) 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); }; }; then
7088   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7092 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7093 fi
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 LIBS=$ac_check_lib_save_LIBS
7096 fi
7097 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7098 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7099 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7100   cat >>confdefs.h <<_ACEOF
7101 #define HAVE_LIBCRYPTO 1
7102 _ACEOF
7103
7104   LIBS="-lcrypto $LIBS"
7105
7106 else
7107   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7108 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7109    { (exit 1); exit 1; }; }
7110 fi
7111
7112
7113 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7114 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7115 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   ac_check_lib_save_LIBS=$LIBS
7119 LIBS="-lssl  $LIBS"
7120 cat >conftest.$ac_ext <<_ACEOF
7121 #line $LINENO "configure"
7122 #include "confdefs.h"
7123
7124 /* Override any gcc2 internal prototype to avoid an error.  */
7125 #ifdef __cplusplus
7126 extern "C"
7127 #endif
7128 /* We use char because int might match the return type of a gcc2
7129    builtin and then its argument prototype would still apply.  */
7130 char SSL_library_init ();
7131 #ifdef F77_DUMMY_MAIN
7132 #  ifdef __cplusplus
7133      extern "C"
7134 #  endif
7135    int F77_DUMMY_MAIN() { return 1; }
7136 #endif
7137 int
7138 main ()
7139 {
7140 SSL_library_init ();
7141   ;
7142   return 0;
7143 }
7144 _ACEOF
7145 rm -f conftest.$ac_objext conftest$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147   (eval $ac_link) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -s conftest$ac_exeext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   ac_cv_lib_ssl_SSL_library_init=yes
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 ac_cv_lib_ssl_SSL_library_init=no
7162 fi
7163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7164 LIBS=$ac_check_lib_save_LIBS
7165 fi
7166 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7167 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7168 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7169   cat >>confdefs.h <<_ACEOF
7170 #define HAVE_LIBSSL 1
7171 _ACEOF
7172
7173   LIBS="-lssl $LIBS"
7174
7175 else
7176   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7177 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7178    { (exit 1); exit 1; }; }
7179 fi
7180
7181 fi
7182
7183 if test "$with_pam" = yes ; then
7184
7185 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7186 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7187 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   ac_check_lib_save_LIBS=$LIBS
7191 LIBS="-lpam  $LIBS"
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line $LINENO "configure"
7194 #include "confdefs.h"
7195
7196 /* Override any gcc2 internal prototype to avoid an error.  */
7197 #ifdef __cplusplus
7198 extern "C"
7199 #endif
7200 /* We use char because int might match the return type of a gcc2
7201    builtin and then its argument prototype would still apply.  */
7202 char pam_start ();
7203 #ifdef F77_DUMMY_MAIN
7204 #  ifdef __cplusplus
7205      extern "C"
7206 #  endif
7207    int F77_DUMMY_MAIN() { return 1; }
7208 #endif
7209 int
7210 main ()
7211 {
7212 pam_start ();
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219   (eval $ac_link) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -s conftest$ac_exeext'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   ac_cv_lib_pam_pam_start=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 ac_cv_lib_pam_pam_start=no
7234 fi
7235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7237 fi
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7239 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7240 if test $ac_cv_lib_pam_pam_start = yes; then
7241   cat >>confdefs.h <<_ACEOF
7242 #define HAVE_LIBPAM 1
7243 _ACEOF
7244
7245   LIBS="-lpam $LIBS"
7246
7247 else
7248   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7249 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7250    { (exit 1); exit 1; }; }
7251 fi
7252
7253 fi
7254
7255
7256 ##
7257 ## Header files
7258 ##
7259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7261 if test "${ac_cv_header_stdc+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   cat >conftest.$ac_ext <<_ACEOF
7265 #line $LINENO "configure"
7266 #include "confdefs.h"
7267 #include <stdlib.h>
7268 #include <stdarg.h>
7269 #include <string.h>
7270 #include <float.h>
7271
7272 _ACEOF
7273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7275   ac_status=$?
7276   egrep -v '^ *\+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } >/dev/null; then
7281   if test -s conftest.err; then
7282     ac_cpp_err=$ac_c_preproc_warn_flag
7283   else
7284     ac_cpp_err=
7285   fi
7286 else
7287   ac_cpp_err=yes
7288 fi
7289 if test -z "$ac_cpp_err"; then
7290   ac_cv_header_stdc=yes
7291 else
7292   echo "$as_me: failed program was:" >&5
7293   cat conftest.$ac_ext >&5
7294   ac_cv_header_stdc=no
7295 fi
7296 rm -f conftest.err conftest.$ac_ext
7297
7298 if test $ac_cv_header_stdc = yes; then
7299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7300   cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7303 #include <string.h>
7304
7305 _ACEOF
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307   egrep "memchr" >/dev/null 2>&1; then
7308   :
7309 else
7310   ac_cv_header_stdc=no
7311 fi
7312 rm -f conftest*
7313
7314 fi
7315
7316 if test $ac_cv_header_stdc = yes; then
7317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7318   cat >conftest.$ac_ext <<_ACEOF
7319 #line $LINENO "configure"
7320 #include "confdefs.h"
7321 #include <stdlib.h>
7322
7323 _ACEOF
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325   egrep "free" >/dev/null 2>&1; then
7326   :
7327 else
7328   ac_cv_header_stdc=no
7329 fi
7330 rm -f conftest*
7331
7332 fi
7333
7334 if test $ac_cv_header_stdc = yes; then
7335   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7336   if test "$cross_compiling" = yes; then
7337   :
7338 else
7339   cat >conftest.$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7342 #include <ctype.h>
7343 #if ((' ' & 0x0FF) == 0x020)
7344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7346 #else
7347 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7348                      || ('j' <= (c) && (c) <= 'r') \
7349                      || ('s' <= (c) && (c) <= 'z'))
7350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7351 #endif
7352
7353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7354 int
7355 main ()
7356 {
7357   int i;
7358   for (i = 0; i < 256; i++)
7359     if (XOR (islower (i), ISLOWER (i))
7360         || toupper (i) != TOUPPER (i))
7361       exit(2);
7362   exit (0);
7363 }
7364 _ACEOF
7365 rm -f conftest$ac_exeext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367   (eval $ac_link) 2>&5
7368   ac_status=$?
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372   (eval $ac_try) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; }; then
7376   :
7377 else
7378   echo "$as_me: program exited with status $ac_status" >&5
7379 echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 ( exit $ac_status )
7382 ac_cv_header_stdc=no
7383 fi
7384 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 fi
7386 fi
7387 fi
7388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7390 if test $ac_cv_header_stdc = yes; then
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 #define STDC_HEADERS 1
7394 _ACEOF
7395
7396 fi
7397
7398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7409                   inttypes.h stdint.h unistd.h
7410 do
7411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412 echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 #include "confdefs.h"
7420 $ac_includes_default
7421
7422 #include <$ac_header>
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426   (eval $ac_compile) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } &&
7430          { ac_try='test -s conftest.$ac_objext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   eval "$as_ac_Header=yes"
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 eval "$as_ac_Header=no"
7441 fi
7442 rm -f conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447   cat >>confdefs.h <<_ACEOF
7448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 _ACEOF
7450
7451 fi
7452
7453 done
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
7475 do
7476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7478   echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 fi
7483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7485 else
7486   # Is the header compilable?
7487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7491 #include "confdefs.h"
7492 $ac_includes_default
7493 #include <$ac_header>
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497   (eval $ac_compile) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -s conftest.$ac_objext'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; }; then
7507   ac_header_compiler=yes
7508 else
7509   echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 ac_header_compiler=no
7512 fi
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7515 echo "${ECHO_T}$ac_header_compiler" >&6
7516
7517 # Is the header present?
7518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line $LINENO "configure"
7522 #include "confdefs.h"
7523 #include <$ac_header>
7524 _ACEOF
7525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7527   ac_status=$?
7528   egrep -v '^ *\+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } >/dev/null; then
7533   if test -s conftest.err; then
7534     ac_cpp_err=$ac_c_preproc_warn_flag
7535   else
7536     ac_cpp_err=
7537   fi
7538 else
7539   ac_cpp_err=yes
7540 fi
7541 if test -z "$ac_cpp_err"; then
7542   ac_header_preproc=yes
7543 else
7544   echo "$as_me: failed program was:" >&5
7545   cat conftest.$ac_ext >&5
7546   ac_header_preproc=no
7547 fi
7548 rm -f conftest.err conftest.$ac_ext
7549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7550 echo "${ECHO_T}$ac_header_preproc" >&6
7551
7552 # So?  What about this header?
7553 case $ac_header_compiler:$ac_header_preproc in
7554   yes:no )
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7559   no:yes )
7560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7562     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7566 esac
7567 echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   eval "$as_ac_Header=$ac_header_preproc"
7573 fi
7574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576
7577 fi
7578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7579   cat >>confdefs.h <<_ACEOF
7580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7581 _ACEOF
7582
7583 fi
7584
7585 done
7586
7587
7588 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7589 # netinet/in.h is included first.
7590
7591 for ac_header in netinet/in.h
7592 do
7593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7595   echo "$as_me:$LINENO: checking for $ac_header" >&5
7596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 fi
7600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7602 else
7603   # Is the header compilable?
7604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 #include "confdefs.h"
7609 $ac_includes_default
7610 #include <$ac_header>
7611 _ACEOF
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614   (eval $ac_compile) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -s conftest.$ac_objext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   ac_header_compiler=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 ac_header_compiler=no
7629 fi
7630 rm -f conftest.$ac_objext conftest.$ac_ext
7631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7632 echo "${ECHO_T}$ac_header_compiler" >&6
7633
7634 # Is the header present?
7635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line $LINENO "configure"
7639 #include "confdefs.h"
7640 #include <$ac_header>
7641 _ACEOF
7642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7644   ac_status=$?
7645   egrep -v '^ *\+' conftest.er1 >conftest.err
7646   rm -f conftest.er1
7647   cat conftest.err >&5
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); } >/dev/null; then
7650   if test -s conftest.err; then
7651     ac_cpp_err=$ac_c_preproc_warn_flag
7652   else
7653     ac_cpp_err=
7654   fi
7655 else
7656   ac_cpp_err=yes
7657 fi
7658 if test -z "$ac_cpp_err"; then
7659   ac_header_preproc=yes
7660 else
7661   echo "$as_me: failed program was:" >&5
7662   cat conftest.$ac_ext >&5
7663   ac_header_preproc=no
7664 fi
7665 rm -f conftest.err conftest.$ac_ext
7666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7667 echo "${ECHO_T}$ac_header_preproc" >&6
7668
7669 # So?  What about this header?
7670 case $ac_header_compiler:$ac_header_preproc in
7671   yes:no )
7672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7676   no:yes )
7677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7679     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7683 esac
7684 echo "$as_me:$LINENO: checking for $ac_header" >&5
7685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   eval "$as_ac_Header=$ac_header_preproc"
7690 fi
7691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7693
7694 fi
7695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7696   cat >>confdefs.h <<_ACEOF
7697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704
7705 for ac_header in netinet/tcp.h
7706 do
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7716 $ac_includes_default
7717 #ifdef HAVE_NETINET_IN_H
7718 #include <netinet/in.h>
7719 #endif
7720
7721
7722 #include <$ac_header>
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726   (eval $ac_compile) 2>&5
7727   ac_status=$?
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -s conftest.$ac_objext'
7731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732   (eval $ac_try) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); }; }; then
7736   eval "$as_ac_Header=yes"
7737 else
7738   echo "$as_me: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 eval "$as_ac_Header=no"
7741 fi
7742 rm -f conftest.$ac_objext conftest.$ac_ext
7743 fi
7744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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 fi
7752
7753 done
7754
7755
7756 if test "$with_readline" = yes; then
7757
7758 for ac_header in readline/readline.h
7759 do
7760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7762   echo "$as_me:$LINENO: checking for $ac_header" >&5
7763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 fi
7767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769 else
7770   # Is the header compilable?
7771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line $LINENO "configure"
7775 #include "confdefs.h"
7776 $ac_includes_default
7777 #include <$ac_header>
7778 _ACEOF
7779 rm -f conftest.$ac_objext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781   (eval $ac_compile) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -s conftest.$ac_objext'
7786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787   (eval $ac_try) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; }; then
7791   ac_header_compiler=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 ac_header_compiler=no
7796 fi
7797 rm -f conftest.$ac_objext conftest.$ac_ext
7798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799 echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801 # Is the header present?
7802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 #include "confdefs.h"
7807 #include <$ac_header>
7808 _ACEOF
7809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7811   ac_status=$?
7812   egrep -v '^ *\+' conftest.er1 >conftest.err
7813   rm -f conftest.er1
7814   cat conftest.err >&5
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } >/dev/null; then
7817   if test -s conftest.err; then
7818     ac_cpp_err=$ac_c_preproc_warn_flag
7819   else
7820     ac_cpp_err=
7821   fi
7822 else
7823   ac_cpp_err=yes
7824 fi
7825 if test -z "$ac_cpp_err"; then
7826   ac_header_preproc=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829   cat conftest.$ac_ext >&5
7830   ac_header_preproc=no
7831 fi
7832 rm -f conftest.err conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7834 echo "${ECHO_T}$ac_header_preproc" >&6
7835
7836 # So?  What about this header?
7837 case $ac_header_compiler:$ac_header_preproc in
7838   yes:no )
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7843   no:yes )
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7850 esac
7851 echo "$as_me:$LINENO: checking for $ac_header" >&5
7852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   eval "$as_ac_Header=$ac_header_preproc"
7857 fi
7858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7860
7861 fi
7862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7863   cat >>confdefs.h <<_ACEOF
7864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7865 _ACEOF
7866
7867 else
7868
7869 for ac_header in readline.h
7870 do
7871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7873   echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 fi
7878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7880 else
7881   # Is the header compilable?
7882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 $ac_includes_default
7888 #include <$ac_header>
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -s conftest.$ac_objext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_header_compiler=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 ac_header_compiler=no
7907 fi
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910 echo "${ECHO_T}$ac_header_compiler" >&6
7911
7912 # Is the header present?
7913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 #include <$ac_header>
7919 _ACEOF
7920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922   ac_status=$?
7923   egrep -v '^ *\+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } >/dev/null; then
7928   if test -s conftest.err; then
7929     ac_cpp_err=$ac_c_preproc_warn_flag
7930   else
7931     ac_cpp_err=
7932   fi
7933 else
7934   ac_cpp_err=yes
7935 fi
7936 if test -z "$ac_cpp_err"; then
7937   ac_header_preproc=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940   cat conftest.$ac_ext >&5
7941   ac_header_preproc=no
7942 fi
7943 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945 echo "${ECHO_T}$ac_header_preproc" >&6
7946
7947 # So?  What about this header?
7948 case $ac_header_compiler:$ac_header_preproc in
7949   yes:no )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7954   no:yes )
7955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7957     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7961 esac
7962 echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   eval "$as_ac_Header=$ac_header_preproc"
7968 fi
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971
7972 fi
7973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974   cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976 _ACEOF
7977
7978 else
7979   { { echo "$as_me:$LINENO: error: readline header not found
7980 Use --without-readline to disable readline support." >&5
7981 echo "$as_me: error: readline header not found
7982 Use --without-readline to disable readline support." >&2;}
7983    { (exit 1); exit 1; }; }
7984 fi
7985
7986 done
7987
7988 fi
7989
7990 done
7991
7992
7993 for ac_header in readline/history.h
7994 do
7995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997   echo "$as_me:$LINENO: checking for $ac_header" >&5
7998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 fi
8002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8004 else
8005   # Is the header compilable?
8006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <$ac_header>
8013 _ACEOF
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016   (eval $ac_compile) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -s conftest.$ac_objext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_header_compiler=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8031 fi
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8035
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <$ac_header>
8043 _ACEOF
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046   ac_status=$?
8047   egrep -v '^ *\+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } >/dev/null; then
8052   if test -s conftest.err; then
8053     ac_cpp_err=$ac_c_preproc_warn_flag
8054   else
8055     ac_cpp_err=
8056   fi
8057 else
8058   ac_cpp_err=yes
8059 fi
8060 if test -z "$ac_cpp_err"; then
8061   ac_header_preproc=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064   cat conftest.$ac_ext >&5
8065   ac_header_preproc=no
8066 fi
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8070
8071 # So?  What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8073   yes:no )
8074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8078   no:yes )
8079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8085 esac
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   eval "$as_ac_Header=$ac_header_preproc"
8092 fi
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8095
8096 fi
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098   cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 else
8103
8104 for ac_header in history.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108   echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 else
8116   # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_header_compiler=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157   ac_status=$?
8158   egrep -v '^ *\+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } >/dev/null; then
8163   if test -s conftest.err; then
8164     ac_cpp_err=$ac_c_preproc_warn_flag
8165   else
8166     ac_cpp_err=
8167   fi
8168 else
8169   ac_cpp_err=yes
8170 fi
8171 if test -z "$ac_cpp_err"; then
8172   ac_header_preproc=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   ac_header_preproc=no
8177 fi
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8181
8182 # So?  What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8184   yes:no )
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189   no:yes )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 esac
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   eval "$as_ac_Header=$ac_header_preproc"
8203 fi
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206
8207 fi
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209   cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 _ACEOF
8212
8213 else
8214   { { echo "$as_me:$LINENO: error: history header not found
8215 Use --without-readline to disable readline support." >&5
8216 echo "$as_me: error: history header not found
8217 Use --without-readline to disable readline support." >&2;}
8218    { (exit 1); exit 1; }; }
8219 fi
8220
8221 done
8222
8223 fi
8224
8225 done
8226
8227 fi
8228
8229 if test "$with_zlib" = yes; then
8230   if test "${ac_cv_header_zlib_h+set}" = set; then
8231   echo "$as_me:$LINENO: checking for zlib.h" >&5
8232 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_zlib_h+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8238 else
8239   # Is the header compilable?
8240 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8241 echo $ECHO_N "checking zlib.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 <zlib.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 zlib.h presence" >&5
8272 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <zlib.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: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8312   no:yes )
8313     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8317     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8319 esac
8320 echo "$as_me:$LINENO: checking for zlib.h" >&5
8321 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_zlib_h+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   ac_cv_header_zlib_h=$ac_header_preproc
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8329
8330 fi
8331 if test $ac_cv_header_zlib_h = yes; then
8332   :
8333 else
8334   { { echo "$as_me:$LINENO: error: zlib header not found
8335 Use --without-zlib to disable zlib support." >&5
8336 echo "$as_me: error: zlib header not found
8337 Use --without-zlib to disable zlib support." >&2;}
8338    { (exit 1); exit 1; }; }
8339 fi
8340
8341
8342 fi
8343
8344 if test "$with_krb4" = yes ; then
8345   if test "${ac_cv_header_krb_h+set}" = set; then
8346   echo "$as_me:$LINENO: checking for krb.h" >&5
8347 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8348 if test "${ac_cv_header_krb_h+set}" = set; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 fi
8351 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8352 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8353 else
8354   # Is the header compilable?
8355 echo "$as_me:$LINENO: checking krb.h usability" >&5
8356 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 $ac_includes_default
8361 #include <krb.h>
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365   (eval $ac_compile) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -s conftest.$ac_objext'
8370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371   (eval $ac_try) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   ac_header_compiler=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8379 ac_header_compiler=no
8380 fi
8381 rm -f conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8383 echo "${ECHO_T}$ac_header_compiler" >&6
8384
8385 # Is the header present?
8386 echo "$as_me:$LINENO: checking krb.h presence" >&5
8387 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8390 #include "confdefs.h"
8391 #include <krb.h>
8392 _ACEOF
8393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8395   ac_status=$?
8396   egrep -v '^ *\+' conftest.er1 >conftest.err
8397   rm -f conftest.er1
8398   cat conftest.err >&5
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } >/dev/null; then
8401   if test -s conftest.err; then
8402     ac_cpp_err=$ac_c_preproc_warn_flag
8403   else
8404     ac_cpp_err=
8405   fi
8406 else
8407   ac_cpp_err=yes
8408 fi
8409 if test -z "$ac_cpp_err"; then
8410   ac_header_preproc=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413   cat conftest.$ac_ext >&5
8414   ac_header_preproc=no
8415 fi
8416 rm -f conftest.err conftest.$ac_ext
8417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8418 echo "${ECHO_T}$ac_header_preproc" >&6
8419
8420 # So?  What about this header?
8421 case $ac_header_compiler:$ac_header_preproc in
8422   yes:no )
8423     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8424 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8426 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8427   no:yes )
8428     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8432     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8434 esac
8435 echo "$as_me:$LINENO: checking for krb.h" >&5
8436 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8437 if test "${ac_cv_header_krb_h+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   ac_cv_header_krb_h=$ac_header_preproc
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8443 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8444
8445 fi
8446 if test $ac_cv_header_krb_h = yes; then
8447   :
8448 else
8449   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8450 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8451    { (exit 1); exit 1; }; }
8452 fi
8453
8454
8455 fi
8456
8457 if test "$with_krb5" = yes ; then
8458   if test "${ac_cv_header_krb5_h+set}" = set; then
8459   echo "$as_me:$LINENO: checking for krb5.h" >&5
8460 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8461 if test "${ac_cv_header_krb5_h+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 fi
8464 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8465 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8466 else
8467   # Is the header compilable?
8468 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8469 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 #include "confdefs.h"
8473 $ac_includes_default
8474 #include <krb5.h>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478   (eval $ac_compile) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -s conftest.$ac_objext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_header_compiler=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 ac_header_compiler=no
8493 fi
8494 rm -f conftest.$ac_objext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8496 echo "${ECHO_T}$ac_header_compiler" >&6
8497
8498 # Is the header present?
8499 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8500 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8502 #line $LINENO "configure"
8503 #include "confdefs.h"
8504 #include <krb5.h>
8505 _ACEOF
8506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8508   ac_status=$?
8509   egrep -v '^ *\+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } >/dev/null; then
8514   if test -s conftest.err; then
8515     ac_cpp_err=$ac_c_preproc_warn_flag
8516   else
8517     ac_cpp_err=
8518   fi
8519 else
8520   ac_cpp_err=yes
8521 fi
8522 if test -z "$ac_cpp_err"; then
8523   ac_header_preproc=yes
8524 else
8525   echo "$as_me: failed program was:" >&5
8526   cat conftest.$ac_ext >&5
8527   ac_header_preproc=no
8528 fi
8529 rm -f conftest.err conftest.$ac_ext
8530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531 echo "${ECHO_T}$ac_header_preproc" >&6
8532
8533 # So?  What about this header?
8534 case $ac_header_compiler:$ac_header_preproc in
8535   yes:no )
8536     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8537 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8540   no:yes )
8541     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8542 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8544 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8546 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8547 esac
8548 echo "$as_me:$LINENO: checking for krb5.h" >&5
8549 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8550 if test "${ac_cv_header_krb5_h+set}" = set; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553   ac_cv_header_krb5_h=$ac_header_preproc
8554 fi
8555 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8556 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8557
8558 fi
8559 if test $ac_cv_header_krb5_h = yes; then
8560   :
8561 else
8562   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8563 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8564    { (exit 1); exit 1; }; }
8565 fi
8566
8567
8568   if test "${ac_cv_header_com_err_h+set}" = set; then
8569   echo "$as_me:$LINENO: checking for com_err.h" >&5
8570 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8571 if test "${ac_cv_header_com_err_h+set}" = set; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8575 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8576 else
8577   # Is the header compilable?
8578 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8579 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 #include "confdefs.h"
8583 $ac_includes_default
8584 #include <com_err.h>
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588   (eval $ac_compile) 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -s conftest.$ac_objext'
8593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594   (eval $ac_try) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); }; }; then
8598   ac_header_compiler=yes
8599 else
8600   echo "$as_me: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8602 ac_header_compiler=no
8603 fi
8604 rm -f conftest.$ac_objext conftest.$ac_ext
8605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8606 echo "${ECHO_T}$ac_header_compiler" >&6
8607
8608 # Is the header present?
8609 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8610 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8614 #include <com_err.h>
8615 _ACEOF
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8618   ac_status=$?
8619   egrep -v '^ *\+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } >/dev/null; then
8624   if test -s conftest.err; then
8625     ac_cpp_err=$ac_c_preproc_warn_flag
8626   else
8627     ac_cpp_err=
8628   fi
8629 else
8630   ac_cpp_err=yes
8631 fi
8632 if test -z "$ac_cpp_err"; then
8633   ac_header_preproc=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636   cat conftest.$ac_ext >&5
8637   ac_header_preproc=no
8638 fi
8639 rm -f conftest.err conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641 echo "${ECHO_T}$ac_header_preproc" >&6
8642
8643 # So?  What about this header?
8644 case $ac_header_compiler:$ac_header_preproc in
8645   yes:no )
8646     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8650   no:yes )
8651     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8652 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8653     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8654 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8657 esac
8658 echo "$as_me:$LINENO: checking for com_err.h" >&5
8659 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_com_err_h+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   ac_cv_header_com_err_h=$ac_header_preproc
8664 fi
8665 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8666 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8667
8668 fi
8669 if test $ac_cv_header_com_err_h = yes; then
8670   :
8671 else
8672   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8673 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8674    { (exit 1); exit 1; }; }
8675 fi
8676
8677
8678 fi
8679
8680 if test "$with_openssl" = yes ; then
8681   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8682   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8683 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8684 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 fi
8687 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8688 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8689 else
8690   # Is the header compilable?
8691 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8692 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8694 #line $LINENO "configure"
8695 #include "confdefs.h"
8696 $ac_includes_default
8697 #include <openssl/ssl.h>
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701   (eval $ac_compile) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -s conftest.$ac_objext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_header_compiler=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_compiler=no
8716 fi
8717 rm -f conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8720
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8723 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 #include "confdefs.h"
8727 #include <openssl/ssl.h>
8728 _ACEOF
8729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731   ac_status=$?
8732   egrep -v '^ *\+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } >/dev/null; then
8737   if test -s conftest.err; then
8738     ac_cpp_err=$ac_c_preproc_warn_flag
8739   else
8740     ac_cpp_err=
8741   fi
8742 else
8743   ac_cpp_err=yes
8744 fi
8745 if test -z "$ac_cpp_err"; then
8746   ac_header_preproc=yes
8747 else
8748   echo "$as_me: failed program was:" >&5
8749   cat conftest.$ac_ext >&5
8750   ac_header_preproc=no
8751 fi
8752 rm -f conftest.err conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8754 echo "${ECHO_T}$ac_header_preproc" >&6
8755
8756 # So?  What about this header?
8757 case $ac_header_compiler:$ac_header_preproc in
8758   yes:no )
8759     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8760 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8761     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8763   no:yes )
8764     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8765 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8767 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8770 esac
8771 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8772 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8773 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8774   echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8777 fi
8778 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8779 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8780
8781 fi
8782 if test $ac_cv_header_openssl_ssl_h = yes; then
8783   :
8784 else
8785   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8786 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8787    { (exit 1); exit 1; }; }
8788 fi
8789
8790
8791   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8792   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8793 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 fi
8797 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8799 else
8800   # Is the header compilable?
8801 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8802 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <openssl/err.h>
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 openssl/err.h presence" >&5
8833 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <openssl/err.h>
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: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8873   no:yes )
8874     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8880 esac
8881 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8882 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_cv_header_openssl_err_h=$ac_header_preproc
8887 fi
8888 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8889 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8890
8891 fi
8892 if test $ac_cv_header_openssl_err_h = yes; then
8893   :
8894 else
8895   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8896 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8897    { (exit 1); exit 1; }; }
8898 fi
8899
8900
8901 fi
8902
8903 if test "$with_pam" = yes ; then
8904   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8905   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8906 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8907 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8911 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8912 else
8913   # Is the header compilable?
8914 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8915 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 #include "confdefs.h"
8919 $ac_includes_default
8920 #include <security/pam_appl.h>
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924   (eval $ac_compile) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -s conftest.$ac_objext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_header_compiler=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 ac_header_compiler=no
8939 fi
8940 rm -f conftest.$ac_objext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8942 echo "${ECHO_T}$ac_header_compiler" >&6
8943
8944 # Is the header present?
8945 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8946 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 #include "confdefs.h"
8950 #include <security/pam_appl.h>
8951 _ACEOF
8952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8954   ac_status=$?
8955   egrep -v '^ *\+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } >/dev/null; then
8960   if test -s conftest.err; then
8961     ac_cpp_err=$ac_c_preproc_warn_flag
8962   else
8963     ac_cpp_err=
8964   fi
8965 else
8966   ac_cpp_err=yes
8967 fi
8968 if test -z "$ac_cpp_err"; then
8969   ac_header_preproc=yes
8970 else
8971   echo "$as_me: failed program was:" >&5
8972   cat conftest.$ac_ext >&5
8973   ac_header_preproc=no
8974 fi
8975 rm -f conftest.err conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8977 echo "${ECHO_T}$ac_header_preproc" >&6
8978
8979 # So?  What about this header?
8980 case $ac_header_compiler:$ac_header_preproc in
8981   yes:no )
8982     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8983 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8984     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8985 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8986   no:yes )
8987     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8988 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8990 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8991     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8992 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8993 esac
8994 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8995 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8996 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8997   echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9000 fi
9001 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9003
9004 fi
9005 if test $ac_cv_header_security_pam_appl_h = yes; then
9006   :
9007 else
9008   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9009 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9010    { (exit 1); exit 1; }; }
9011 fi
9012
9013
9014 fi
9015
9016
9017 ##
9018 ## Types, structures, compiler characteristics
9019 ##
9020
9021 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9022 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9023 if test "${ac_cv_c_const+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 #include "confdefs.h"
9029
9030 #ifdef F77_DUMMY_MAIN
9031 #  ifdef __cplusplus
9032      extern "C"
9033 #  endif
9034    int F77_DUMMY_MAIN() { return 1; }
9035 #endif
9036 int
9037 main ()
9038 {
9039 /* FIXME: Include the comments suggested by Paul. */
9040 #ifndef __cplusplus
9041   /* Ultrix mips cc rejects this.  */
9042   typedef int charset[2];
9043   const charset x;
9044   /* SunOS 4.1.1 cc rejects this.  */
9045   char const *const *ccp;
9046   char **p;
9047   /* NEC SVR4.0.2 mips cc rejects this.  */
9048   struct point {int x, y;};
9049   static struct point const zero = {0,0};
9050   /* AIX XL C 1.02.0.0 rejects this.
9051      It does not let you subtract one const X* pointer from another in
9052      an arm of an if-expression whose if-part is not a constant
9053      expression */
9054   const char *g = "string";
9055   ccp = &g + (g ? g-g : 0);
9056   /* HPUX 7.0 cc rejects these. */
9057   ++ccp;
9058   p = (char**) ccp;
9059   ccp = (char const *const *) p;
9060   { /* SCO 3.2v4 cc rejects this.  */
9061     char *t;
9062     char const *s = 0 ? (char *) 0 : (char const *) 0;
9063
9064     *t++ = 0;
9065   }
9066   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9067     int x[] = {25, 17};
9068     const int *foo = &x[0];
9069     ++foo;
9070   }
9071   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9072     typedef const int *iptr;
9073     iptr p = 0;
9074     ++p;
9075   }
9076   { /* AIX XL C 1.02.0.0 rejects this saying
9077        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9078     struct s { int j; const int *ap[3]; };
9079     struct s *b; b->j = 5;
9080   }
9081   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9082     const int foo = 10;
9083   }
9084 #endif
9085
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9092   (eval $ac_compile) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); } &&
9096          { ac_try='test -s conftest.$ac_objext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_c_const=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9106 ac_cv_c_const=no
9107 fi
9108 rm -f conftest.$ac_objext conftest.$ac_ext
9109 fi
9110 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9111 echo "${ECHO_T}$ac_cv_c_const" >&6
9112 if test $ac_cv_c_const = no; then
9113
9114 cat >>confdefs.h <<\_ACEOF
9115 #define const
9116 _ACEOF
9117
9118 fi
9119
9120 echo "$as_me:$LINENO: checking for inline" >&5
9121 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9122 if test "${ac_cv_c_inline+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   ac_cv_c_inline=no
9126 for ac_kw in inline __inline__ __inline; do
9127   cat >conftest.$ac_ext <<_ACEOF
9128 #line $LINENO "configure"
9129 #include "confdefs.h"
9130 #ifndef __cplusplus
9131 static $ac_kw int static_foo () {return 0; }
9132 $ac_kw int foo () {return 0; }
9133 #endif
9134
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138   (eval $ac_compile) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } &&
9142          { ac_try='test -s conftest.$ac_objext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_c_inline=$ac_kw; break
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 fi
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9154 done
9155
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9158 echo "${ECHO_T}$ac_cv_c_inline" >&6
9159 case $ac_cv_c_inline in
9160   inline | yes) ;;
9161   no)
9162 cat >>confdefs.h <<\_ACEOF
9163 #define inline
9164 _ACEOF
9165  ;;
9166   *)  cat >>confdefs.h <<_ACEOF
9167 #define inline $ac_cv_c_inline
9168 _ACEOF
9169  ;;
9170 esac
9171
9172 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9173 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9174 if test "${ac_cv_c_stringize+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9180 #define x(y) #y
9181
9182 char *s = x(teststring);
9183 _ACEOF
9184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9185   egrep "#teststring" >/dev/null 2>&1; then
9186   ac_cv_c_stringize=no
9187 else
9188   ac_cv_c_stringize=yes
9189 fi
9190 rm -f conftest*
9191
9192 fi
9193 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9194 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9195 if test $ac_cv_c_stringize = yes; then
9196
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_STRINGIZE 1
9199 _ACEOF
9200
9201 fi
9202
9203 echo "$as_me:$LINENO: checking for signed types" >&5
9204 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9205 if test "${pgac_cv_c_signed+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   cat >conftest.$ac_ext <<_ACEOF
9209 #line $LINENO "configure"
9210 #include "confdefs.h"
9211
9212 #ifdef F77_DUMMY_MAIN
9213 #  ifdef __cplusplus
9214      extern "C"
9215 #  endif
9216    int F77_DUMMY_MAIN() { return 1; }
9217 #endif
9218 int
9219 main ()
9220 {
9221 signed char c; signed short s; signed int i;
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228   (eval $ac_compile) 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -s conftest.$ac_objext'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   pgac_cv_c_signed=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9242 pgac_cv_c_signed=no
9243 fi
9244 rm -f conftest.$ac_objext conftest.$ac_ext
9245 fi
9246 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9247 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9248 if test x"$pgac_cv_c_signed" = xno ; then
9249
9250 cat >>confdefs.h <<\_ACEOF
9251 #define signed
9252 _ACEOF
9253
9254 fi
9255 echo "$as_me:$LINENO: checking for working volatile" >&5
9256 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9257 if test "${ac_cv_c_volatile+set}" = set; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 else
9260   cat >conftest.$ac_ext <<_ACEOF
9261 #line $LINENO "configure"
9262 #include "confdefs.h"
9263
9264 #ifdef F77_DUMMY_MAIN
9265 #  ifdef __cplusplus
9266      extern "C"
9267 #  endif
9268    int F77_DUMMY_MAIN() { return 1; }
9269 #endif
9270 int
9271 main ()
9272 {
9273
9274 volatile int x;
9275 int * volatile y;
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -s conftest.$ac_objext'
9287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288   (eval $ac_try) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; }; then
9292   ac_cv_c_volatile=yes
9293 else
9294   echo "$as_me: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 ac_cv_c_volatile=no
9297 fi
9298 rm -f conftest.$ac_objext conftest.$ac_ext
9299 fi
9300 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9301 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9302 if test $ac_cv_c_volatile = no; then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define volatile
9306 _ACEOF
9307
9308 fi
9309
9310 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9311 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9312 if test "${ac_cv_struct_tm+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
9315   cat >conftest.$ac_ext <<_ACEOF
9316 #line $LINENO "configure"
9317 #include "confdefs.h"
9318 #include <sys/types.h>
9319 #include <time.h>
9320
9321 #ifdef F77_DUMMY_MAIN
9322 #  ifdef __cplusplus
9323      extern "C"
9324 #  endif
9325    int F77_DUMMY_MAIN() { return 1; }
9326 #endif
9327 int
9328 main ()
9329 {
9330 struct tm *tp; tp->tm_sec;
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337   (eval $ac_compile) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -s conftest.$ac_objext'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; }; then
9347   ac_cv_struct_tm=time.h
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 ac_cv_struct_tm=sys/time.h
9352 fi
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9354 fi
9355 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9356 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9357 if test $ac_cv_struct_tm = sys/time.h; then
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define TM_IN_SYS_TIME 1
9361 _ACEOF
9362
9363 fi
9364
9365 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9366 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9367 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   cat >conftest.$ac_ext <<_ACEOF
9371 #line $LINENO "configure"
9372 #include "confdefs.h"
9373 #include <sys/types.h>
9374 #include <$ac_cv_struct_tm>
9375
9376
9377 #ifdef F77_DUMMY_MAIN
9378 #  ifdef __cplusplus
9379      extern "C"
9380 #  endif
9381    int F77_DUMMY_MAIN() { return 1; }
9382 #endif
9383 int
9384 main ()
9385 {
9386 static struct tm ac_aggr;
9387 if (ac_aggr.tm_zone)
9388 return 0;
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395   (eval $ac_compile) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } &&
9399          { ac_try='test -s conftest.$ac_objext'
9400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401   (eval $ac_try) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; }; then
9405   ac_cv_member_struct_tm_tm_zone=yes
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_member_struct_tm_tm_zone=no
9410 fi
9411 rm -f conftest.$ac_objext conftest.$ac_ext
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9416
9417 cat >>confdefs.h <<_ACEOF
9418 #define HAVE_STRUCT_TM_TM_ZONE 1
9419 _ACEOF
9420
9421
9422 fi
9423
9424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9425
9426 cat >>confdefs.h <<\_ACEOF
9427 #define HAVE_TM_ZONE 1
9428 _ACEOF
9429
9430 else
9431   echo "$as_me:$LINENO: checking for tzname" >&5
9432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9433 if test "${ac_cv_var_tzname+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436   cat >conftest.$ac_ext <<_ACEOF
9437 #line $LINENO "configure"
9438 #include "confdefs.h"
9439 #include <time.h>
9440 #ifndef tzname /* For SGI.  */
9441 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9442 #endif
9443
9444 #ifdef F77_DUMMY_MAIN
9445 #  ifdef __cplusplus
9446      extern "C"
9447 #  endif
9448    int F77_DUMMY_MAIN() { return 1; }
9449 #endif
9450 int
9451 main ()
9452 {
9453 atoi(*tzname);
9454   ;
9455   return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460   (eval $ac_link) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } &&
9464          { ac_try='test -s conftest$ac_exeext'
9465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466   (eval $ac_try) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; }; then
9470   ac_cv_var_tzname=yes
9471 else
9472   echo "$as_me: failed program was:" >&5
9473 cat conftest.$ac_ext >&5
9474 ac_cv_var_tzname=no
9475 fi
9476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9477 fi
9478 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9479 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9480   if test $ac_cv_var_tzname = yes; then
9481
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_TZNAME 1
9484 _ACEOF
9485
9486   fi
9487 fi
9488
9489 echo "$as_me:$LINENO: checking for union semun" >&5
9490 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9491 if test "${ac_cv_type_union_semun+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497 #include <sys/types.h>
9498 #include <sys/ipc.h>
9499 #include <sys/sem.h>
9500
9501 #ifdef F77_DUMMY_MAIN
9502 #  ifdef __cplusplus
9503      extern "C"
9504 #  endif
9505    int F77_DUMMY_MAIN() { return 1; }
9506 #endif
9507 int
9508 main ()
9509 {
9510 if ((union semun *) 0)
9511   return 0;
9512 if (sizeof (union semun))
9513   return 0;
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520   (eval $ac_compile) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -s conftest.$ac_objext'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; }; then
9530   ac_cv_type_union_semun=yes
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 ac_cv_type_union_semun=no
9535 fi
9536 rm -f conftest.$ac_objext conftest.$ac_ext
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9539 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9540 if test $ac_cv_type_union_semun = yes; then
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_UNION_SEMUN 1
9544 _ACEOF
9545
9546
9547 fi
9548
9549 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9550 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9551 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   cat >conftest.$ac_ext <<_ACEOF
9555 #line $LINENO "configure"
9556 #include "confdefs.h"
9557 #include <sys/types.h>
9558 #ifdef HAVE_SYS_UN_H
9559 #include <sys/un.h>
9560 #endif
9561
9562
9563 #ifdef F77_DUMMY_MAIN
9564 #  ifdef __cplusplus
9565      extern "C"
9566 #  endif
9567    int F77_DUMMY_MAIN() { return 1; }
9568 #endif
9569 int
9570 main ()
9571 {
9572 if ((struct sockaddr_un *) 0)
9573   return 0;
9574 if (sizeof (struct sockaddr_un))
9575   return 0;
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -s conftest.$ac_objext'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_type_struct_sockaddr_un=yes
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 ac_cv_type_struct_sockaddr_un=no
9597 fi
9598 rm -f conftest.$ac_objext conftest.$ac_ext
9599 fi
9600 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9601 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9602 if test $ac_cv_type_struct_sockaddr_un = yes; then
9603
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_STRUCT_SOCKADDR_UN 1
9606 _ACEOF
9607
9608
9609 fi
9610
9611
9612 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9613 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9614 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   cat >conftest.$ac_ext <<_ACEOF
9618 #line $LINENO "configure"
9619 #include "confdefs.h"
9620 #include <sys/param.h>
9621 #include <sys/socket.h>
9622 #include <sys/ucred.h>
9623
9624 #ifdef F77_DUMMY_MAIN
9625 #  ifdef __cplusplus
9626      extern "C"
9627 #  endif
9628    int F77_DUMMY_MAIN() { return 1; }
9629 #endif
9630 int
9631 main ()
9632 {
9633 if ((struct cmsgcred *) 0)
9634   return 0;
9635 if (sizeof (struct cmsgcred))
9636   return 0;
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643   (eval $ac_compile) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); } &&
9647          { ac_try='test -s conftest.$ac_objext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   ac_cv_type_struct_cmsgcred=yes
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9657 ac_cv_type_struct_cmsgcred=no
9658 fi
9659 rm -f conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9662 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9663 if test $ac_cv_type_struct_cmsgcred = yes; then
9664
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_STRUCT_CMSGCRED 1
9667 _ACEOF
9668
9669
9670 fi
9671 echo "$as_me:$LINENO: checking for struct fcred" >&5
9672 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9673 if test "${ac_cv_type_struct_fcred+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   cat >conftest.$ac_ext <<_ACEOF
9677 #line $LINENO "configure"
9678 #include "confdefs.h"
9679 #include <sys/param.h>
9680 #include <sys/socket.h>
9681 #include <sys/ucred.h>
9682
9683 #ifdef F77_DUMMY_MAIN
9684 #  ifdef __cplusplus
9685      extern "C"
9686 #  endif
9687    int F77_DUMMY_MAIN() { return 1; }
9688 #endif
9689 int
9690 main ()
9691 {
9692 if ((struct fcred *) 0)
9693   return 0;
9694 if (sizeof (struct fcred))
9695   return 0;
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702   (eval $ac_compile) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_cv_type_struct_fcred=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 ac_cv_type_struct_fcred=no
9717 fi
9718 rm -f conftest.$ac_objext conftest.$ac_ext
9719 fi
9720 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9721 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9722 if test $ac_cv_type_struct_fcred = yes; then
9723
9724 cat >>confdefs.h <<_ACEOF
9725 #define HAVE_STRUCT_FCRED 1
9726 _ACEOF
9727
9728
9729 fi
9730 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9731 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9732 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 #line $LINENO "configure"
9737 #include "confdefs.h"
9738 #include <sys/param.h>
9739 #include <sys/socket.h>
9740 #include <sys/ucred.h>
9741
9742 #ifdef F77_DUMMY_MAIN
9743 #  ifdef __cplusplus
9744      extern "C"
9745 #  endif
9746    int F77_DUMMY_MAIN() { return 1; }
9747 #endif
9748 int
9749 main ()
9750 {
9751 if ((struct sockcred *) 0)
9752   return 0;
9753 if (sizeof (struct sockcred))
9754   return 0;
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761   (eval $ac_compile) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } &&
9765          { ac_try='test -s conftest.$ac_objext'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_type_struct_sockcred=yes
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 ac_cv_type_struct_sockcred=no
9776 fi
9777 rm -f conftest.$ac_objext conftest.$ac_ext
9778 fi
9779 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9780 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9781 if test $ac_cv_type_struct_sockcred = yes; then
9782
9783 cat >>confdefs.h <<_ACEOF
9784 #define HAVE_STRUCT_SOCKCRED 1
9785 _ACEOF
9786
9787
9788 fi
9789
9790
9791 if test "$with_zlib" = yes; then
9792   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9793   # did not).  While we could work around the lack of z_streamp, it
9794   # seems unwise to encourage people to use such old zlib versions...
9795   echo "$as_me:$LINENO: checking for z_streamp" >&5
9796 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9797 if test "${ac_cv_type_z_streamp+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   cat >conftest.$ac_ext <<_ACEOF
9801 #line $LINENO "configure"
9802 #include "confdefs.h"
9803 #include <zlib.h>
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 if ((z_streamp *) 0)
9815   return 0;
9816 if (sizeof (z_streamp))
9817   return 0;
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824   (eval $ac_compile) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } &&
9828          { ac_try='test -s conftest.$ac_objext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   ac_cv_type_z_streamp=yes
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 ac_cv_type_z_streamp=no
9839 fi
9840 rm -f conftest.$ac_objext conftest.$ac_ext
9841 fi
9842 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9843 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9844 if test $ac_cv_type_z_streamp = yes; then
9845   :
9846 else
9847   { { echo "$as_me:$LINENO: error: zlib version is too old
9848 Use --without-zlib to disable zlib support." >&5
9849 echo "$as_me: error: zlib version is too old
9850 Use --without-zlib to disable zlib support." >&2;}
9851    { (exit 1); exit 1; }; }
9852 fi
9853
9854 fi
9855
9856 if test "$with_krb5" = yes; then
9857 # Check for differences between MIT and Heimdal (KTH) releases
9858   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9859 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9860 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9866 #include <krb5.h>
9867
9868 #ifdef F77_DUMMY_MAIN
9869 #  ifdef __cplusplus
9870      extern "C"
9871 #  endif
9872    int F77_DUMMY_MAIN() { return 1; }
9873 #endif
9874 int
9875 main ()
9876 {
9877 static krb5_ticket ac_aggr;
9878 if (ac_aggr.enc_part2)
9879 return 0;
9880   ;
9881   return 0;
9882 }
9883 _ACEOF
9884 rm -f conftest.$ac_objext
9885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886   (eval $ac_compile) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } &&
9890          { ac_try='test -s conftest.$ac_objext'
9891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892   (eval $ac_try) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; }; then
9896   ac_cv_member_krb5_ticket_enc_part2=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9900 ac_cv_member_krb5_ticket_enc_part2=no
9901 fi
9902 rm -f conftest.$ac_objext conftest.$ac_ext
9903 fi
9904 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9905 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9906 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9907
9908 cat >>confdefs.h <<_ACEOF
9909 #define HAVE_KRB5_TICKET_ENC_PART2 1
9910 _ACEOF
9911
9912
9913 else
9914   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9915 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9916 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 #include "confdefs.h"
9922 #include <krb5.h>
9923
9924 #ifdef F77_DUMMY_MAIN
9925 #  ifdef __cplusplus
9926      extern "C"
9927 #  endif
9928    int F77_DUMMY_MAIN() { return 1; }
9929 #endif
9930 int
9931 main ()
9932 {
9933 static krb5_ticket ac_aggr;
9934 if (ac_aggr.client)
9935 return 0;
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942   (eval $ac_compile) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -s conftest.$ac_objext'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   ac_cv_member_krb5_ticket_client=yes
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 ac_cv_member_krb5_ticket_client=no
9957 fi
9958 rm -f conftest.$ac_objext conftest.$ac_ext
9959 fi
9960 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9961 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9962 if test $ac_cv_member_krb5_ticket_client = yes; then
9963
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_KRB5_TICKET_CLIENT 1
9966 _ACEOF
9967
9968
9969 else
9970   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9971 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9972    { (exit 1); exit 1; }; }
9973 fi
9974
9975 fi
9976
9977   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9978 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9979 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 #include "confdefs.h"
9985 #include <krb5.h>
9986
9987 #ifdef F77_DUMMY_MAIN
9988 #  ifdef __cplusplus
9989      extern "C"
9990 #  endif
9991    int F77_DUMMY_MAIN() { return 1; }
9992 #endif
9993 int
9994 main ()
9995 {
9996 static krb5_error ac_aggr;
9997 if (ac_aggr.text.data)
9998 return 0;
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005   (eval $ac_compile) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -s conftest.$ac_objext'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; }; then
10015   ac_cv_member_krb5_error_text_data=yes
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 ac_cv_member_krb5_error_text_data=no
10020 fi
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10022 fi
10023 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10024 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10025 if test $ac_cv_member_krb5_error_text_data = yes; then
10026
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10029 _ACEOF
10030
10031
10032 else
10033   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10034 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10035 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038   cat >conftest.$ac_ext <<_ACEOF
10039 #line $LINENO "configure"
10040 #include "confdefs.h"
10041 #include <krb5.h>
10042
10043 #ifdef F77_DUMMY_MAIN
10044 #  ifdef __cplusplus
10045      extern "C"
10046 #  endif
10047    int F77_DUMMY_MAIN() { return 1; }
10048 #endif
10049 int
10050 main ()
10051 {
10052 static krb5_error ac_aggr;
10053 if (ac_aggr.e_data)
10054 return 0;
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061   (eval $ac_compile) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -s conftest.$ac_objext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_member_krb5_error_e_data=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 ac_cv_member_krb5_error_e_data=no
10076 fi
10077 rm -f conftest.$ac_objext conftest.$ac_ext
10078 fi
10079 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10080 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10081 if test $ac_cv_member_krb5_error_e_data = yes; then
10082   :
10083 else
10084   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10085 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10086    { (exit 1); exit 1; }; }
10087 fi
10088
10089 fi
10090
10091 fi
10092
10093
10094 ##
10095 ## Functions, global variables
10096 ##
10097 echo "$as_me:$LINENO: checking for int timezone" >&5
10098 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10099 if test "${pgac_cv_var_int_timezone+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   cat >conftest.$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10104 #include "confdefs.h"
10105 #include <time.h>
10106 int res;
10107 #ifdef F77_DUMMY_MAIN
10108 #  ifdef __cplusplus
10109      extern "C"
10110 #  endif
10111    int F77_DUMMY_MAIN() { return 1; }
10112 #endif
10113 int
10114 main ()
10115 {
10116 res = timezone / 60;
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123   (eval $ac_link) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } &&
10127          { ac_try='test -s conftest$ac_exeext'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   pgac_cv_var_int_timezone=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 pgac_cv_var_int_timezone=no
10138 fi
10139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10140 fi
10141 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10142 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10143 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_INT_TIMEZONE
10147 _ACEOF
10148
10149 fi
10150 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10151 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10152  if test "${ac_cv_func_accept_arg1+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155    if test "${ac_cv_func_accept_arg2+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158     if test "${ac_cv_func_accept_arg3+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10162      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10163       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10164        cat >conftest.$ac_ext <<_ACEOF
10165 #line $LINENO "configure"
10166 #include "confdefs.h"
10167 #ifdef HAVE_SYS_TYPES_H
10168 #include <sys/types.h>
10169 #endif
10170 #ifdef HAVE_SYS_SOCKET_H
10171 #include <sys/socket.h>
10172 #endif
10173 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10174 #ifdef F77_DUMMY_MAIN
10175 #  ifdef __cplusplus
10176      extern "C"
10177 #  endif
10178    int F77_DUMMY_MAIN() { return 1; }
10179 #endif
10180 int
10181 main ()
10182 {
10183
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190   (eval $ac_compile) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -s conftest.$ac_objext'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; }; then
10200   ac_not_found=no; break 3
10201 else
10202   echo "$as_me: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 ac_not_found=yes
10205 fi
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10207       done
10208      done
10209     done
10210     if test "$ac_not_found" = yes; then
10211       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10212 echo "$as_me: error: could not determine argument types" >&2;}
10213    { (exit 1); exit 1; }; }
10214     fi
10215     if test "$ac_cv_func_accept_arg3" = "void"; then
10216       ac_cv_func_accept_arg3=int
10217     fi
10218
10219 fi
10220
10221 fi
10222
10223 fi
10224  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10225 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10229 _ACEOF
10230
10231
10232 cat >>confdefs.h <<_ACEOF
10233 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10234 _ACEOF
10235
10236
10237 cat >>confdefs.h <<_ACEOF
10238 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10239 _ACEOF
10240
10241
10242 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10243 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10244 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247   cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10249 #include "confdefs.h"
10250 #include <sys/time.h>
10251 #ifdef F77_DUMMY_MAIN
10252 #  ifdef __cplusplus
10253      extern "C"
10254 #  endif
10255    int F77_DUMMY_MAIN() { return 1; }
10256 #endif
10257 int
10258 main ()
10259 {
10260 struct timeval *tp;
10261 struct timezone *tzp;
10262 gettimeofday(tp,tzp);
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10269   (eval $ac_compile) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } &&
10273          { ac_try='test -s conftest.$ac_objext'
10274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275   (eval $ac_try) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; }; then
10279   pgac_cv_func_gettimeofday_1arg=no
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 pgac_cv_func_gettimeofday_1arg=yes
10284 fi
10285 rm -f conftest.$ac_objext conftest.$ac_ext
10286 fi
10287 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10288 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10289 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10290
10291 cat >>confdefs.h <<\_ACEOF
10292 #define GETTIMEOFDAY_1ARG
10293 _ACEOF
10294
10295 fi
10296
10297 # SunOS doesn't handle negative byte comparisons properly with +/- return
10298 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10299 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10300 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303   if test "$cross_compiling" = yes; then
10304   pgac_cv_func_memcmp_clean=no
10305 else
10306   cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10308 #include "confdefs.h"
10309
10310 main()
10311 {
10312   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10313   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10314 }
10315
10316 _ACEOF
10317 rm -f conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319   (eval $ac_link) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324   (eval $ac_try) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   pgac_cv_func_memcmp_clean=yes
10329 else
10330   echo "$as_me: program exited with status $ac_status" >&5
10331 echo "$as_me: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 ( exit $ac_status )
10334 pgac_cv_func_memcmp_clean=no
10335 fi
10336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 fi
10339 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10340 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10341 if test $pgac_cv_func_memcmp_clean = no ; then
10342   MEMCMP=memcmp.o
10343 else
10344   MEMCMP=
10345 fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10361 do
10362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10363 echo "$as_me:$LINENO: checking for $ac_func" >&5
10364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10365 if eval "test \"\${$as_ac_var+set}\" = set"; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 #include "confdefs.h"
10371 /* System header to define __stub macros and hopefully few prototypes,
10372     which can conflict with char $ac_func (); below.  */
10373 #include <assert.h>
10374 /* Override any gcc2 internal prototype to avoid an error.  */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 /* We use char because int might match the return type of a gcc2
10379    builtin and then its argument prototype would still apply.  */
10380 char $ac_func ();
10381 char (*f) ();
10382
10383 #ifdef F77_DUMMY_MAIN
10384 #  ifdef __cplusplus
10385      extern "C"
10386 #  endif
10387    int F77_DUMMY_MAIN() { return 1; }
10388 #endif
10389 int
10390 main ()
10391 {
10392 /* The GNU C library defines this for functions which it implements
10393     to always fail with ENOSYS.  Some functions are actually named
10394     something starting with __ and the normal name is an alias.  */
10395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10396 choke me
10397 #else
10398 f = $ac_func;
10399 #endif
10400
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407   (eval $ac_link) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } &&
10411          { ac_try='test -s conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   eval "$as_ac_var=yes"
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 eval "$as_ac_var=no"
10422 fi
10423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10427 if test `eval echo '${'$as_ac_var'}'` = yes; then
10428   cat >>confdefs.h <<_ACEOF
10429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 _ACEOF
10431
10432 fi
10433 done
10434
10435
10436 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10437 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10438 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   cat >conftest.$ac_ext <<_ACEOF
10442 #line $LINENO "configure"
10443 #include "confdefs.h"
10444 #include <unistd.h>
10445
10446 #ifdef F77_DUMMY_MAIN
10447 #  ifdef __cplusplus
10448      extern "C"
10449 #  endif
10450    int F77_DUMMY_MAIN() { return 1; }
10451 #endif
10452 int
10453 main ()
10454 {
10455 #ifndef fdatasync
10456   char *p = (char *) fdatasync;
10457 #endif
10458
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465   (eval $ac_compile) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -s conftest.$ac_objext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   ac_cv_have_decl_fdatasync=yes
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 ac_cv_have_decl_fdatasync=no
10480 fi
10481 rm -f conftest.$ac_objext conftest.$ac_ext
10482 fi
10483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10484 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10485 if test $ac_cv_have_decl_fdatasync = yes; then
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL_FDATASYNC 1
10489 _ACEOF
10490
10491
10492 else
10493   cat >>confdefs.h <<_ACEOF
10494 #define HAVE_DECL_FDATASYNC 0
10495 _ACEOF
10496
10497
10498 fi
10499
10500
10501
10502 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10503 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10504 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 #line $LINENO "configure"
10509 #include "confdefs.h"
10510 #include <machine/vmparam.h>
10511 #include <sys/exec.h>
10512
10513 #ifdef F77_DUMMY_MAIN
10514 #  ifdef __cplusplus
10515      extern "C"
10516 #  endif
10517    int F77_DUMMY_MAIN() { return 1; }
10518 #endif
10519 int
10520 main ()
10521 {
10522 PS_STRINGS->ps_nargvstr = 1;
10523 PS_STRINGS->ps_argvstr = "foo";
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536   (eval $ac_try) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; }; then
10540   pgac_cv_var_PS_STRINGS=yes
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 pgac_cv_var_PS_STRINGS=no
10545 fi
10546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10547 fi
10548 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10549 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10550 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10551
10552 cat >>confdefs.h <<\_ACEOF
10553 #define HAVE_PS_STRINGS
10554 _ACEOF
10555
10556 fi
10557
10558
10559 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10560 # is missing.  Yes, there are machines that have only one.  We may
10561 # also decide to use snprintf.c if snprintf() is present but does not
10562 # have working "long long int" support -- see below.
10563
10564 SNPRINTF=''
10565
10566 for ac_func in snprintf
10567 do
10568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10569 echo "$as_me:$LINENO: checking for $ac_func" >&5
10570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10571 if eval "test \"\${$as_ac_var+set}\" = set"; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578     which can conflict with char $ac_func (); below.  */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585    builtin and then its argument prototype would still apply.  */
10586 char $ac_func ();
10587 char (*f) ();
10588
10589 #ifdef F77_DUMMY_MAIN
10590 #  ifdef __cplusplus
10591      extern "C"
10592 #  endif
10593    int F77_DUMMY_MAIN() { return 1; }
10594 #endif
10595 int
10596 main ()
10597 {
10598 /* The GNU C library defines this for functions which it implements
10599     to always fail with ENOSYS.  Some functions are actually named
10600     something starting with __ and the normal name is an alias.  */
10601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10602 choke me
10603 #else
10604 f = $ac_func;
10605 #endif
10606
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613   (eval $ac_link) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -s conftest$ac_exeext'
10618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619   (eval $ac_try) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); }; }; then
10623   eval "$as_ac_var=yes"
10624 else
10625   echo "$as_me: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 eval "$as_ac_var=no"
10628 fi
10629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10630 fi
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634   cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10636 _ACEOF
10637
10638 else
10639   SNPRINTF='snprintf.o'
10640 fi
10641 done
10642
10643
10644 for ac_func in vsnprintf
10645 do
10646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_var+set}\" = set"; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   cat >conftest.$ac_ext <<_ACEOF
10653 #line $LINENO "configure"
10654 #include "confdefs.h"
10655 /* System header to define __stub macros and hopefully few prototypes,
10656     which can conflict with char $ac_func (); below.  */
10657 #include <assert.h>
10658 /* Override any gcc2 internal prototype to avoid an error.  */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 /* We use char because int might match the return type of a gcc2
10663    builtin and then its argument prototype would still apply.  */
10664 char $ac_func ();
10665 char (*f) ();
10666
10667 #ifdef F77_DUMMY_MAIN
10668 #  ifdef __cplusplus
10669      extern "C"
10670 #  endif
10671    int F77_DUMMY_MAIN() { return 1; }
10672 #endif
10673 int
10674 main ()
10675 {
10676 /* The GNU C library defines this for functions which it implements
10677     to always fail with ENOSYS.  Some functions are actually named
10678     something starting with __ and the normal name is an alias.  */
10679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10680 choke me
10681 #else
10682 f = $ac_func;
10683 #endif
10684
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691   (eval $ac_link) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -s conftest$ac_exeext'
10696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697   (eval $ac_try) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; }; then
10701   eval "$as_ac_var=yes"
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 eval "$as_ac_var=no"
10706 fi
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10708 fi
10709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10711 if test `eval echo '${'$as_ac_var'}'` = yes; then
10712   cat >>confdefs.h <<_ACEOF
10713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10714 _ACEOF
10715
10716 else
10717   SNPRINTF='snprintf.o'
10718 fi
10719 done
10720
10721
10722
10723
10724 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10725 # include/c.h will provide declarations.  Note this is a separate test
10726 # from whether the functions exist in the C library --- there are
10727 # systems that have the functions but don't bother to declare them :-(
10728
10729 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10730 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10731 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10736 #include "confdefs.h"
10737 $ac_includes_default
10738 #ifdef F77_DUMMY_MAIN
10739 #  ifdef __cplusplus
10740      extern "C"
10741 #  endif
10742    int F77_DUMMY_MAIN() { return 1; }
10743 #endif
10744 int
10745 main ()
10746 {
10747 #ifndef snprintf
10748   char *p = (char *) snprintf;
10749 #endif
10750
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757   (eval $ac_compile) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } &&
10761          { ac_try='test -s conftest.$ac_objext'
10762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763   (eval $ac_try) 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_have_decl_snprintf=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 ac_cv_have_decl_snprintf=no
10772 fi
10773 rm -f conftest.$ac_objext conftest.$ac_ext
10774 fi
10775 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10776 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10777 if test $ac_cv_have_decl_snprintf = yes; then
10778
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE_DECL_SNPRINTF 1
10781 _ACEOF
10782
10783
10784 else
10785   cat >>confdefs.h <<_ACEOF
10786 #define HAVE_DECL_SNPRINTF 0
10787 _ACEOF
10788
10789
10790 fi
10791 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10792 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10793 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 #include "confdefs.h"
10799 $ac_includes_default
10800 #ifdef F77_DUMMY_MAIN
10801 #  ifdef __cplusplus
10802      extern "C"
10803 #  endif
10804    int F77_DUMMY_MAIN() { return 1; }
10805 #endif
10806 int
10807 main ()
10808 {
10809 #ifndef vsnprintf
10810   char *p = (char *) vsnprintf;
10811 #endif
10812
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819   (eval $ac_compile) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } &&
10823          { ac_try='test -s conftest.$ac_objext'
10824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825   (eval $ac_try) 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); }; }; then
10829   ac_cv_have_decl_vsnprintf=yes
10830 else
10831   echo "$as_me: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 ac_cv_have_decl_vsnprintf=no
10834 fi
10835 rm -f conftest.$ac_objext conftest.$ac_ext
10836 fi
10837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10838 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10839 if test $ac_cv_have_decl_vsnprintf = yes; then
10840
10841 cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_VSNPRINTF 1
10843 _ACEOF
10844
10845
10846 else
10847   cat >>confdefs.h <<_ACEOF
10848 #define HAVE_DECL_VSNPRINTF 0
10849 _ACEOF
10850
10851
10852 fi
10853
10854
10855
10856
10857 # do this one the hard way in case isinf() is a macro
10858 echo "$as_me:$LINENO: checking for isinf" >&5
10859 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10860 if test "${ac_cv_func_isinf+set}" = set; then
10861   echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863   cat >conftest.$ac_ext <<_ACEOF
10864 #line $LINENO "configure"
10865 #include "confdefs.h"
10866 #include <math.h>
10867
10868 #ifdef F77_DUMMY_MAIN
10869 #  ifdef __cplusplus
10870      extern "C"
10871 #  endif
10872    int F77_DUMMY_MAIN() { return 1; }
10873 #endif
10874 int
10875 main ()
10876 {
10877 double x = 0.0; int res = isinf(x);
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884   (eval $ac_link) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -s conftest$ac_exeext'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   ac_cv_func_isinf=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 ac_cv_func_isinf=no
10899 fi
10900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10901 fi
10902 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10903 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10904
10905 if test $ac_cv_func_isinf = yes ; then
10906
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_ISINF 1
10909 _ACEOF
10910
10911   ISINF=
10912 else
10913   ISINF='isinf.o'
10914   # Look for a way to implement a substitute for isinf()
10915
10916
10917
10918
10919 for ac_func in fpclass fp_class fp_class_d class
10920 do
10921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10924 if eval "test \"\${$as_ac_var+set}\" = set"; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927   cat >conftest.$ac_ext <<_ACEOF
10928 #line $LINENO "configure"
10929 #include "confdefs.h"
10930 /* System header to define __stub macros and hopefully few prototypes,
10931     which can conflict with char $ac_func (); below.  */
10932 #include <assert.h>
10933 /* Override any gcc2 internal prototype to avoid an error.  */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 /* We use char because int might match the return type of a gcc2
10938    builtin and then its argument prototype would still apply.  */
10939 char $ac_func ();
10940 char (*f) ();
10941
10942 #ifdef F77_DUMMY_MAIN
10943 #  ifdef __cplusplus
10944      extern "C"
10945 #  endif
10946    int F77_DUMMY_MAIN() { return 1; }
10947 #endif
10948 int
10949 main ()
10950 {
10951 /* The GNU C library defines this for functions which it implements
10952     to always fail with ENOSYS.  Some functions are actually named
10953     something starting with __ and the normal name is an alias.  */
10954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10955 choke me
10956 #else
10957 f = $ac_func;
10958 #endif
10959
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966   (eval $ac_link) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } &&
10970          { ac_try='test -s conftest$ac_exeext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   eval "$as_ac_var=yes"
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 eval "$as_ac_var=no"
10981 fi
10982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10983 fi
10984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10986 if test `eval echo '${'$as_ac_var'}'` = yes; then
10987   cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 _ACEOF
10990  break
10991 fi
10992 done
10993
10994 fi
10995
10996
10997
10998
10999 for ac_func in getrusage
11000 do
11001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11002 echo "$as_me:$LINENO: checking for $ac_func" >&5
11003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_var+set}\" = set"; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11010 /* System header to define __stub macros and hopefully few prototypes,
11011     which can conflict with char $ac_func (); below.  */
11012 #include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error.  */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 /* We use char because int might match the return type of a gcc2
11018    builtin and then its argument prototype would still apply.  */
11019 char $ac_func ();
11020 char (*f) ();
11021
11022 #ifdef F77_DUMMY_MAIN
11023 #  ifdef __cplusplus
11024      extern "C"
11025 #  endif
11026    int F77_DUMMY_MAIN() { return 1; }
11027 #endif
11028 int
11029 main ()
11030 {
11031 /* The GNU C library defines this for functions which it implements
11032     to always fail with ENOSYS.  Some functions are actually named
11033     something starting with __ and the normal name is an alias.  */
11034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11035 choke me
11036 #else
11037 f = $ac_func;
11038 #endif
11039
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046   (eval $ac_link) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -s conftest$ac_exeext'
11051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052   (eval $ac_try) 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   eval "$as_ac_var=yes"
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 eval "$as_ac_var=no"
11061 fi
11062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11063 fi
11064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11066 if test `eval echo '${'$as_ac_var'}'` = yes; then
11067   cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11069 _ACEOF
11070
11071 else
11072   GETRUSAGE='getrusage.o'
11073 fi
11074 done
11075
11076
11077
11078 for ac_func in srandom
11079 do
11080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 echo "$as_me:$LINENO: checking for $ac_func" >&5
11082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11083 if eval "test \"\${$as_ac_var+set}\" = set"; then
11084   echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086   cat >conftest.$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11088 #include "confdefs.h"
11089 /* System header to define __stub macros and hopefully few prototypes,
11090     which can conflict with char $ac_func (); below.  */
11091 #include <assert.h>
11092 /* Override any gcc2 internal prototype to avoid an error.  */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 /* We use char because int might match the return type of a gcc2
11097    builtin and then its argument prototype would still apply.  */
11098 char $ac_func ();
11099 char (*f) ();
11100
11101 #ifdef F77_DUMMY_MAIN
11102 #  ifdef __cplusplus
11103      extern "C"
11104 #  endif
11105    int F77_DUMMY_MAIN() { return 1; }
11106 #endif
11107 int
11108 main ()
11109 {
11110 /* The GNU C library defines this for functions which it implements
11111     to always fail with ENOSYS.  Some functions are actually named
11112     something starting with __ and the normal name is an alias.  */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 choke me
11115 #else
11116 f = $ac_func;
11117 #endif
11118
11119   ;
11120   return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125   (eval $ac_link) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } &&
11129          { ac_try='test -s conftest$ac_exeext'
11130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131   (eval $ac_try) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; }; then
11135   eval "$as_ac_var=yes"
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 eval "$as_ac_var=no"
11140 fi
11141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11142 fi
11143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11145 if test `eval echo '${'$as_ac_var'}'` = yes; then
11146   cat >>confdefs.h <<_ACEOF
11147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11148 _ACEOF
11149
11150 else
11151   SRANDOM='srandom.o'
11152 fi
11153 done
11154
11155
11156
11157 for ac_func in gethostname
11158 do
11159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11160 echo "$as_me:$LINENO: checking for $ac_func" >&5
11161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_var+set}\" = set"; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165   cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11167 #include "confdefs.h"
11168 /* System header to define __stub macros and hopefully few prototypes,
11169     which can conflict with char $ac_func (); below.  */
11170 #include <assert.h>
11171 /* Override any gcc2 internal prototype to avoid an error.  */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 /* We use char because int might match the return type of a gcc2
11176    builtin and then its argument prototype would still apply.  */
11177 char $ac_func ();
11178 char (*f) ();
11179
11180 #ifdef F77_DUMMY_MAIN
11181 #  ifdef __cplusplus
11182      extern "C"
11183 #  endif
11184    int F77_DUMMY_MAIN() { return 1; }
11185 #endif
11186 int
11187 main ()
11188 {
11189 /* The GNU C library defines this for functions which it implements
11190     to always fail with ENOSYS.  Some functions are actually named
11191     something starting with __ and the normal name is an alias.  */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11193 choke me
11194 #else
11195 f = $ac_func;
11196 #endif
11197
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204   (eval $ac_link) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -s conftest$ac_exeext'
11209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210   (eval $ac_try) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   eval "$as_ac_var=yes"
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11218 eval "$as_ac_var=no"
11219 fi
11220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11221 fi
11222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11224 if test `eval echo '${'$as_ac_var'}'` = yes; then
11225   cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 _ACEOF
11228
11229 else
11230   GETHOSTNAME='gethostname.o'
11231 fi
11232 done
11233
11234
11235
11236 for ac_func in random
11237 do
11238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 echo "$as_me:$LINENO: checking for $ac_func" >&5
11240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_var+set}\" = set"; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 #line $LINENO "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248     which can conflict with char $ac_func (); below.  */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error.  */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 /* We use char because int might match the return type of a gcc2
11255    builtin and then its argument prototype would still apply.  */
11256 char $ac_func ();
11257 char (*f) ();
11258
11259 #ifdef F77_DUMMY_MAIN
11260 #  ifdef __cplusplus
11261      extern "C"
11262 #  endif
11263    int F77_DUMMY_MAIN() { return 1; }
11264 #endif
11265 int
11266 main ()
11267 {
11268 /* The GNU C library defines this for functions which it implements
11269     to always fail with ENOSYS.  Some functions are actually named
11270     something starting with __ and the normal name is an alias.  */
11271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11272 choke me
11273 #else
11274 f = $ac_func;
11275 #endif
11276
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283   (eval $ac_link) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); } &&
11287          { ac_try='test -s conftest$ac_exeext'
11288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289   (eval $ac_try) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; }; then
11293   eval "$as_ac_var=yes"
11294 else
11295   echo "$as_me: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 eval "$as_ac_var=no"
11298 fi
11299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11300 fi
11301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304   cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 _ACEOF
11307
11308 else
11309   MISSING_RANDOM='random.o'
11310 fi
11311 done
11312
11313
11314
11315 for ac_func in inet_aton
11316 do
11317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11318 echo "$as_me:$LINENO: checking for $ac_func" >&5
11319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11320 if eval "test \"\${$as_ac_var+set}\" = set"; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11325 #include "confdefs.h"
11326 /* System header to define __stub macros and hopefully few prototypes,
11327     which can conflict with char $ac_func (); below.  */
11328 #include <assert.h>
11329 /* Override any gcc2 internal prototype to avoid an error.  */
11330 #ifdef __cplusplus
11331 extern "C"
11332 #endif
11333 /* We use char because int might match the return type of a gcc2
11334    builtin and then its argument prototype would still apply.  */
11335 char $ac_func ();
11336 char (*f) ();
11337
11338 #ifdef F77_DUMMY_MAIN
11339 #  ifdef __cplusplus
11340      extern "C"
11341 #  endif
11342    int F77_DUMMY_MAIN() { return 1; }
11343 #endif
11344 int
11345 main ()
11346 {
11347 /* The GNU C library defines this for functions which it implements
11348     to always fail with ENOSYS.  Some functions are actually named
11349     something starting with __ and the normal name is an alias.  */
11350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11351 choke me
11352 #else
11353 f = $ac_func;
11354 #endif
11355
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362   (eval $ac_link) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } &&
11366          { ac_try='test -s conftest$ac_exeext'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; }; then
11372   eval "$as_ac_var=yes"
11373 else
11374   echo "$as_me: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 eval "$as_ac_var=no"
11377 fi
11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11379 fi
11380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11382 if test `eval echo '${'$as_ac_var'}'` = yes; then
11383   cat >>confdefs.h <<_ACEOF
11384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11385 _ACEOF
11386
11387 else
11388   INET_ATON='inet_aton.o'
11389 fi
11390 done
11391
11392
11393
11394 for ac_func in strerror
11395 do
11396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11397 echo "$as_me:$LINENO: checking for $ac_func" >&5
11398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11399 if eval "test \"\${$as_ac_var+set}\" = set"; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   cat >conftest.$ac_ext <<_ACEOF
11403 #line $LINENO "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406     which can conflict with char $ac_func (); below.  */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413    builtin and then its argument prototype would still apply.  */
11414 char $ac_func ();
11415 char (*f) ();
11416
11417 #ifdef F77_DUMMY_MAIN
11418 #  ifdef __cplusplus
11419      extern "C"
11420 #  endif
11421    int F77_DUMMY_MAIN() { return 1; }
11422 #endif
11423 int
11424 main ()
11425 {
11426 /* The GNU C library defines this for functions which it implements
11427     to always fail with ENOSYS.  Some functions are actually named
11428     something starting with __ and the normal name is an alias.  */
11429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11430 choke me
11431 #else
11432 f = $ac_func;
11433 #endif
11434
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441   (eval $ac_link) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -s conftest$ac_exeext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   eval "$as_ac_var=yes"
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 eval "$as_ac_var=no"
11456 fi
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11458 fi
11459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 else
11467   STRERROR='strerror.o'
11468 fi
11469 done
11470
11471
11472
11473 for ac_func in strdup
11474 do
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11478 if eval "test \"\${$as_ac_var+set}\" = set"; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11484 /* System header to define __stub macros and hopefully few prototypes,
11485     which can conflict with char $ac_func (); below.  */
11486 #include <assert.h>
11487 /* Override any gcc2 internal prototype to avoid an error.  */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 /* We use char because int might match the return type of a gcc2
11492    builtin and then its argument prototype would still apply.  */
11493 char $ac_func ();
11494 char (*f) ();
11495
11496 #ifdef F77_DUMMY_MAIN
11497 #  ifdef __cplusplus
11498      extern "C"
11499 #  endif
11500    int F77_DUMMY_MAIN() { return 1; }
11501 #endif
11502 int
11503 main ()
11504 {
11505 /* The GNU C library defines this for functions which it implements
11506     to always fail with ENOSYS.  Some functions are actually named
11507     something starting with __ and the normal name is an alias.  */
11508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11509 choke me
11510 #else
11511 f = $ac_func;
11512 #endif
11513
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520   (eval $ac_link) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } &&
11524          { ac_try='test -s conftest$ac_exeext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   eval "$as_ac_var=yes"
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 cat conftest.$ac_ext >&5
11534 eval "$as_ac_var=no"
11535 fi
11536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11537 fi
11538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541   cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11543 _ACEOF
11544
11545 else
11546   STRDUP='../../utils/strdup.o'
11547 fi
11548 done
11549
11550
11551
11552 for ac_func in strtol
11553 do
11554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11555 echo "$as_me:$LINENO: checking for $ac_func" >&5
11556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_var+set}\" = set"; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   cat >conftest.$ac_ext <<_ACEOF
11561 #line $LINENO "configure"
11562 #include "confdefs.h"
11563 /* System header to define __stub macros and hopefully few prototypes,
11564     which can conflict with char $ac_func (); below.  */
11565 #include <assert.h>
11566 /* Override any gcc2 internal prototype to avoid an error.  */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 /* We use char because int might match the return type of a gcc2
11571    builtin and then its argument prototype would still apply.  */
11572 char $ac_func ();
11573 char (*f) ();
11574
11575 #ifdef F77_DUMMY_MAIN
11576 #  ifdef __cplusplus
11577      extern "C"
11578 #  endif
11579    int F77_DUMMY_MAIN() { return 1; }
11580 #endif
11581 int
11582 main ()
11583 {
11584 /* The GNU C library defines this for functions which it implements
11585     to always fail with ENOSYS.  Some functions are actually named
11586     something starting with __ and the normal name is an alias.  */
11587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11588 choke me
11589 #else
11590 f = $ac_func;
11591 #endif
11592
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599   (eval $ac_link) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   eval "$as_ac_var=yes"
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 eval "$as_ac_var=no"
11614 fi
11615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11616 fi
11617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11619 if test `eval echo '${'$as_ac_var'}'` = yes; then
11620   cat >>confdefs.h <<_ACEOF
11621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11622 _ACEOF
11623
11624 else
11625   STRTOL='strtol.o'
11626 fi
11627 done
11628
11629
11630
11631 for ac_func in strtoul
11632 do
11633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11634 echo "$as_me:$LINENO: checking for $ac_func" >&5
11635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11636 if eval "test \"\${$as_ac_var+set}\" = set"; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11641 #include "confdefs.h"
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func (); below.  */
11644 #include <assert.h>
11645 /* Override any gcc2 internal prototype to avoid an error.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650    builtin and then its argument prototype would still apply.  */
11651 char $ac_func ();
11652 char (*f) ();
11653
11654 #ifdef F77_DUMMY_MAIN
11655 #  ifdef __cplusplus
11656      extern "C"
11657 #  endif
11658    int F77_DUMMY_MAIN() { return 1; }
11659 #endif
11660 int
11661 main ()
11662 {
11663 /* The GNU C library defines this for functions which it implements
11664     to always fail with ENOSYS.  Some functions are actually named
11665     something starting with __ and the normal name is an alias.  */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11667 choke me
11668 #else
11669 f = $ac_func;
11670 #endif
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678   (eval $ac_link) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   eval "$as_ac_var=yes"
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11693 fi
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 fi
11696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699   cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 _ACEOF
11702
11703 else
11704   STRTOUL='strtoul.o'
11705 fi
11706 done
11707
11708
11709
11710 for ac_func in strcasecmp
11711 do
11712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11713 echo "$as_me:$LINENO: checking for $ac_func" >&5
11714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11715 if eval "test \"\${$as_ac_var+set}\" = set"; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   cat >conftest.$ac_ext <<_ACEOF
11719 #line $LINENO "configure"
11720 #include "confdefs.h"
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char $ac_func (); below.  */
11723 #include <assert.h>
11724 /* Override any gcc2 internal prototype to avoid an error.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 /* We use char because int might match the return type of a gcc2
11729    builtin and then its argument prototype would still apply.  */
11730 char $ac_func ();
11731 char (*f) ();
11732
11733 #ifdef F77_DUMMY_MAIN
11734 #  ifdef __cplusplus
11735      extern "C"
11736 #  endif
11737    int F77_DUMMY_MAIN() { return 1; }
11738 #endif
11739 int
11740 main ()
11741 {
11742 /* The GNU C library defines this for functions which it implements
11743     to always fail with ENOSYS.  Some functions are actually named
11744     something starting with __ and the normal name is an alias.  */
11745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11746 choke me
11747 #else
11748 f = $ac_func;
11749 #endif
11750
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757   (eval $ac_link) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -s conftest$ac_exeext'
11762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763   (eval $ac_try) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }; }; then
11767   eval "$as_ac_var=yes"
11768 else
11769   echo "$as_me: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11771 eval "$as_ac_var=no"
11772 fi
11773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11774 fi
11775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11777 if test `eval echo '${'$as_ac_var'}'` = yes; then
11778   cat >>confdefs.h <<_ACEOF
11779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11780 _ACEOF
11781
11782 else
11783   STRCASECMP='strcasecmp.o'
11784 fi
11785 done
11786
11787
11788
11789 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11790 # this hackery with HPUXMATHLIB allows us to cope.
11791 HPUXMATHLIB=""
11792 case $host_cpu in
11793   hppa1.1)
11794         if [ -r /lib/pa1.1/libm.a ] ; then
11795             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11796         fi ;;
11797 esac
11798
11799
11800
11801 for ac_func in rint
11802 do
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 echo "$as_me:$LINENO: checking for $ac_func" >&5
11805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_var+set}\" = set"; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   cat >conftest.$ac_ext <<_ACEOF
11810 #line $LINENO "configure"
11811 #include "confdefs.h"
11812 /* System header to define __stub macros and hopefully few prototypes,
11813     which can conflict with char $ac_func (); below.  */
11814 #include <assert.h>
11815 /* Override any gcc2 internal prototype to avoid an error.  */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 /* We use char because int might match the return type of a gcc2
11820    builtin and then its argument prototype would still apply.  */
11821 char $ac_func ();
11822 char (*f) ();
11823
11824 #ifdef F77_DUMMY_MAIN
11825 #  ifdef __cplusplus
11826      extern "C"
11827 #  endif
11828    int F77_DUMMY_MAIN() { return 1; }
11829 #endif
11830 int
11831 main ()
11832 {
11833 /* The GNU C library defines this for functions which it implements
11834     to always fail with ENOSYS.  Some functions are actually named
11835     something starting with __ and the normal name is an alias.  */
11836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11837 choke me
11838 #else
11839 f = $ac_func;
11840 #endif
11841
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -s conftest$ac_exeext'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   eval "$as_ac_var=yes"
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 eval "$as_ac_var=no"
11863 fi
11864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11865 fi
11866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11868 if test `eval echo '${'$as_ac_var'}'` = yes; then
11869   cat >>confdefs.h <<_ACEOF
11870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11871 _ACEOF
11872
11873 else
11874   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11875 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11876 if test "${ac_cv_lib_m_rint+set}" = set; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lm $HPUXMATHLIB $LIBS"
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line $LINENO "configure"
11883 #include "confdefs.h"
11884
11885 /* Override any gcc2 internal prototype to avoid an error.  */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 /* We use char because int might match the return type of a gcc2
11890    builtin and then its argument prototype would still apply.  */
11891 char rint ();
11892 #ifdef F77_DUMMY_MAIN
11893 #  ifdef __cplusplus
11894      extern "C"
11895 #  endif
11896    int F77_DUMMY_MAIN() { return 1; }
11897 #endif
11898 int
11899 main ()
11900 {
11901 rint ();
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_lib_m_rint=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 ac_cv_lib_m_rint=no
11923 fi
11924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11928 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11929 if test $ac_cv_lib_m_rint = yes; then
11930   cat >>confdefs.h <<\_ACEOF
11931 #define HAVE_RINT 1
11932 _ACEOF
11933
11934 fi
11935
11936 fi
11937 done
11938
11939
11940
11941 if test "$with_readline" = yes; then
11942   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11943 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11947 #include <stdio.h>
11948 #ifdef HAVE_READLINE_READLINE_H
11949 # include <readline/readline.h>
11950 #elif defined(HAVE_READLINE_H)
11951 # include <readline.h>
11952 #endif
11953
11954 #ifdef F77_DUMMY_MAIN
11955 #  ifdef __cplusplus
11956      extern "C"
11957 #  endif
11958    int F77_DUMMY_MAIN() { return 1; }
11959 #endif
11960 int
11961 main ()
11962 {
11963 rl_completion_append_character = 'x';
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970   (eval $ac_link) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -s conftest$ac_exeext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   echo "$as_me:$LINENO: result: yes" >&5
11981 echo "${ECHO_T}yes" >&6
11982
11983 cat >>confdefs.h <<\_ACEOF
11984 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11985 _ACEOF
11986
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 cat conftest.$ac_ext >&5
11990 echo "$as_me:$LINENO: result: no" >&5
11991 echo "${ECHO_T}no" >&6
11992 fi
11993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11994
11995
11996 for ac_func in rl_completion_matches rl_filename_completion_function
11997 do
11998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 echo "$as_me:$LINENO: checking for $ac_func" >&5
12000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12001 if eval "test \"\${$as_ac_var+set}\" = set"; then
12002   echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004   cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 #include "confdefs.h"
12007 /* System header to define __stub macros and hopefully few prototypes,
12008     which can conflict with char $ac_func (); below.  */
12009 #include <assert.h>
12010 /* Override any gcc2 internal prototype to avoid an error.  */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015    builtin and then its argument prototype would still apply.  */
12016 char $ac_func ();
12017 char (*f) ();
12018
12019 #ifdef F77_DUMMY_MAIN
12020 #  ifdef __cplusplus
12021      extern "C"
12022 #  endif
12023    int F77_DUMMY_MAIN() { return 1; }
12024 #endif
12025 int
12026 main ()
12027 {
12028 /* The GNU C library defines this for functions which it implements
12029     to always fail with ENOSYS.  Some functions are actually named
12030     something starting with __ and the normal name is an alias.  */
12031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12032 choke me
12033 #else
12034 f = $ac_func;
12035 #endif
12036
12037   ;
12038   return 0;
12039 }
12040 _ACEOF
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12043   (eval $ac_link) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } &&
12047          { ac_try='test -s conftest$ac_exeext'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12057 eval "$as_ac_var=no"
12058 fi
12059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12060 fi
12061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064   cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066 _ACEOF
12067
12068 fi
12069 done
12070
12071 fi
12072
12073
12074 echo "$as_me:$LINENO: checking for finite" >&5
12075 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12079 #include <math.h>
12080 #ifdef F77_DUMMY_MAIN
12081 #  ifdef __cplusplus
12082      extern "C"
12083 #  endif
12084    int F77_DUMMY_MAIN() { return 1; }
12085 #endif
12086 int
12087 main ()
12088 {
12089 int dummy=finite(1.0);
12090   ;
12091   return 0;
12092 }
12093 _ACEOF
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096   (eval $ac_link) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -s conftest$ac_exeext'
12101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102   (eval $ac_try) 2>&5
12103   ac_status=$?
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); }; }; then
12106
12107 cat >>confdefs.h <<\_ACEOF
12108 #define HAVE_FINITE 1
12109 _ACEOF
12110
12111 echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12113 else
12114   echo "$as_me: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12118 fi
12119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12120
12121 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12122 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12124 #line $LINENO "configure"
12125 #include "confdefs.h"
12126 #include <setjmp.h>
12127 #ifdef F77_DUMMY_MAIN
12128 #  ifdef __cplusplus
12129      extern "C"
12130 #  endif
12131    int F77_DUMMY_MAIN() { return 1; }
12132 #endif
12133 int
12134 main ()
12135 {
12136 sigjmp_buf x; sigsetjmp(x, 1);
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12143   (eval $ac_link) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } &&
12147          { ac_try='test -s conftest$ac_exeext'
12148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149   (eval $ac_try) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); }; }; then
12153
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_SIGSETJMP 1
12156 _ACEOF
12157
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 echo "$as_me:$LINENO: result: no" >&5
12164 echo "${ECHO_T}no" >&6
12165 fi
12166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12167
12168
12169 for ac_func in syslog
12170 do
12171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172 echo "$as_me:$LINENO: checking for $ac_func" >&5
12173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174 if eval "test \"\${$as_ac_var+set}\" = set"; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12180 /* System header to define __stub macros and hopefully few prototypes,
12181     which can conflict with char $ac_func (); below.  */
12182 #include <assert.h>
12183 /* Override any gcc2 internal prototype to avoid an error.  */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 /* We use char because int might match the return type of a gcc2
12188    builtin and then its argument prototype would still apply.  */
12189 char $ac_func ();
12190 char (*f) ();
12191
12192 #ifdef F77_DUMMY_MAIN
12193 #  ifdef __cplusplus
12194      extern "C"
12195 #  endif
12196    int F77_DUMMY_MAIN() { return 1; }
12197 #endif
12198 int
12199 main ()
12200 {
12201 /* The GNU C library defines this for functions which it implements
12202     to always fail with ENOSYS.  Some functions are actually named
12203     something starting with __ and the normal name is an alias.  */
12204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12205 choke me
12206 #else
12207 f = $ac_func;
12208 #endif
12209
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216   (eval $ac_link) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222   (eval $ac_try) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   eval "$as_ac_var=yes"
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12230 eval "$as_ac_var=no"
12231 fi
12232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233 fi
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12236 if test `eval echo '${'$as_ac_var'}'` = yes; then
12237   cat >>confdefs.h <<_ACEOF
12238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12239 _ACEOF
12240
12241 fi
12242 done
12243
12244
12245 echo "$as_me:$LINENO: checking for optreset" >&5
12246 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12247 if test "${pgac_cv_var_int_optreset+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250   cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 #include "confdefs.h"
12253 #include <unistd.h>
12254 #ifdef F77_DUMMY_MAIN
12255 #  ifdef __cplusplus
12256      extern "C"
12257 #  endif
12258    int F77_DUMMY_MAIN() { return 1; }
12259 #endif
12260 int
12261 main ()
12262 {
12263 extern int optreset; optreset = 1;
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12270   (eval $ac_link) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -s conftest$ac_exeext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   pgac_cv_var_int_optreset=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 pgac_cv_var_int_optreset=no
12285 fi
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12289 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12290 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12291
12292 cat >>confdefs.h <<\_ACEOF
12293 #define HAVE_INT_OPTRESET 1
12294 _ACEOF
12295
12296 fi
12297
12298
12299 # This test makes sure that run tests work at all.  Sometimes a shared
12300 # library is found by the linker, but the runtime linker can't find it.
12301 # This check should come after all modifications of compiler or linker
12302 # variables, and before any other run tests.
12303 echo "$as_me:$LINENO: checking test program" >&5
12304 echo $ECHO_N "checking test program... $ECHO_C" >&6
12305 if test "$cross_compiling" = yes; then
12306   echo "$as_me:$LINENO: result: cross-compiling" >&5
12307 echo "${ECHO_T}cross-compiling" >&6
12308 else
12309   cat >conftest.$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12311 #include "confdefs.h"
12312 int main() { return 0; }
12313 _ACEOF
12314 rm -f conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316   (eval $ac_link) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   echo "$as_me:$LINENO: result: ok" >&5
12326 echo "${ECHO_T}ok" >&6
12327 else
12328   echo "$as_me: program exited with status $ac_status" >&5
12329 echo "$as_me: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12331 ( exit $ac_status )
12332 echo "$as_me:$LINENO: result: failed" >&5
12333 echo "${ECHO_T}failed" >&6
12334 { { echo "$as_me:$LINENO: error:
12335 *** Could not execute a simple test program.  This may be a problem
12336 *** related to locating shared libraries.  Check the file 'config.log'
12337 *** for the exact reason." >&5
12338 echo "$as_me: error:
12339 *** Could not execute a simple test program.  This may be a problem
12340 *** related to locating shared libraries.  Check the file 'config.log'
12341 *** for the exact reason." >&2;}
12342    { (exit 1); exit 1; }; }
12343 fi
12344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12345 fi
12346
12347
12348
12349 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12350 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12351 if test "${pgac_cv_type_long_int_64+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   if test "$cross_compiling" = yes; then
12355   pgac_cv_type_long_int_64=no
12356 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12357 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12358 else
12359   cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 typedef long int int64;
12363
12364 /*
12365  * These are globals to discourage the compiler from folding all the
12366  * arithmetic tests down to compile-time constants.
12367  */
12368 int64 a = 20000001;
12369 int64 b = 40000005;
12370
12371 int does_int64_work()
12372 {
12373   int64 c,d;
12374
12375   if (sizeof(int64) != 8)
12376     return 0;                   /* definitely not the right size */
12377
12378   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12379   c = a * b;
12380   d = (c + b) / b;
12381   if (d != a+1)
12382     return 0;
12383   return 1;
12384 }
12385 main() {
12386   exit(! does_int64_work());
12387 }
12388 _ACEOF
12389 rm -f conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391   (eval $ac_link) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; }; then
12400   pgac_cv_type_long_int_64=yes
12401 else
12402   echo "$as_me: program exited with status $ac_status" >&5
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 ( exit $ac_status )
12406 pgac_cv_type_long_int_64=no
12407 fi
12408 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 fi
12411 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12412 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12413
12414 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12415 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12416
12417 cat >>confdefs.h <<\_ACEOF
12418 #define HAVE_LONG_INT_64
12419 _ACEOF
12420
12421 fi
12422
12423
12424 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12425   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12426 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12427 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   if test "$cross_compiling" = yes; then
12431   pgac_cv_type_long_long_int_64=no
12432 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12433 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12434 else
12435   cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438 typedef long long int int64;
12439
12440 /*
12441  * These are globals to discourage the compiler from folding all the
12442  * arithmetic tests down to compile-time constants.
12443  */
12444 int64 a = 20000001;
12445 int64 b = 40000005;
12446
12447 int does_int64_work()
12448 {
12449   int64 c,d;
12450
12451   if (sizeof(int64) != 8)
12452     return 0;                   /* definitely not the right size */
12453
12454   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12455   c = a * b;
12456   d = (c + b) / b;
12457   if (d != a+1)
12458     return 0;
12459   return 1;
12460 }
12461 main() {
12462   exit(! does_int64_work());
12463 }
12464 _ACEOF
12465 rm -f conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   pgac_cv_type_long_long_int_64=yes
12477 else
12478   echo "$as_me: program exited with status $ac_status" >&5
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ( exit $ac_status )
12482 pgac_cv_type_long_long_int_64=no
12483 fi
12484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12485 fi
12486 fi
12487 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12488 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12489
12490 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12491 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12492
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_LONG_LONG_INT_64
12495 _ACEOF
12496
12497 fi
12498
12499 fi
12500
12501
12502
12503 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12504   cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12506 #include "confdefs.h"
12507
12508 #define INT64CONST(x)  x##LL
12509 long long int foo = INT64CONST(0x1234567890123456);
12510
12511 #ifdef F77_DUMMY_MAIN
12512 #  ifdef __cplusplus
12513      extern "C"
12514 #  endif
12515    int F77_DUMMY_MAIN() { return 1; }
12516 #endif
12517 int
12518 main ()
12519 {
12520
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527   (eval $ac_compile) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -s conftest.$ac_objext'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_LL_CONSTANTS 1
12540 _ACEOF
12541
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 fi
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547 fi
12548
12549
12550
12551 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12552   if [ x$SNPRINTF = x ] ; then
12553     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12554 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12555     if test "$cross_compiling" = yes; then
12556    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12557 echo "${ECHO_T}assuming not on target machine" >&6
12558         # Force usage of our own snprintf, since we cannot test foreign snprintf
12559         SNPRINTF='snprintf.o'
12560         INT64_FORMAT='"%lld"'
12561
12562 else
12563   cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12566 #include <stdio.h>
12567 typedef long long int int64;
12568 #define INT64_FORMAT "%lld"
12569
12570 int64 a = 20000001;
12571 int64 b = 40000005;
12572
12573 int does_int64_snprintf_work()
12574 {
12575   int64 c;
12576   char buf[100];
12577
12578   if (sizeof(int64) != 8)
12579     return 0;                   /* doesn't look like the right size */
12580
12581   c = a * b;
12582   snprintf(buf, 100, INT64_FORMAT, c);
12583   if (strcmp(buf, "800000140000005") != 0)
12584     return 0;                   /* either multiply or snprintf is busted */
12585   return 1;
12586 }
12587 main() {
12588   exit(! does_int64_snprintf_work());
12589 }
12590 _ACEOF
12591 rm -f conftest$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593   (eval $ac_link) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602    echo "$as_me:$LINENO: result: yes" >&5
12603 echo "${ECHO_T}yes" >&6
12604           INT64_FORMAT='"%lld"'
12605
12606 else
12607   echo "$as_me: program exited with status $ac_status" >&5
12608 echo "$as_me: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 ( exit $ac_status )
12611  echo "$as_me:$LINENO: result: no" >&5
12612 echo "${ECHO_T}no" >&6
12613     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12614 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12615     if test "$cross_compiling" = yes; then
12616    echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12617 echo "${ECHO_T}assuming not on target machine" >&6
12618         # Force usage of our own snprintf, since we cannot test foreign snprintf
12619         SNPRINTF='snprintf.o'
12620         INT64_FORMAT='"%lld"'
12621
12622 else
12623   cat >conftest.$ac_ext <<_ACEOF
12624 #line $LINENO "configure"
12625 #include "confdefs.h"
12626 #include <stdio.h>
12627 typedef long long int int64;
12628 #define INT64_FORMAT "%qd"
12629
12630 int64 a = 20000001;
12631 int64 b = 40000005;
12632
12633 int does_int64_snprintf_work()
12634 {
12635   int64 c;
12636   char buf[100];
12637
12638   if (sizeof(int64) != 8)
12639     return 0;     /* doesn't look like the right size */
12640
12641   c = a * b;
12642   snprintf(buf, 100, INT64_FORMAT, c);
12643   if (strcmp(buf, "800000140000005") != 0)
12644     return 0;     /* either multiply or snprintf is busted */
12645   return 1;
12646 }
12647 main() {
12648   exit(! does_int64_snprintf_work());
12649 }
12650 _ACEOF
12651 rm -f conftest$ac_exeext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653   (eval $ac_link) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662    echo "$as_me:$LINENO: result: yes" >&5
12663 echo "${ECHO_T}yes" >&6
12664     INT64_FORMAT='"%qd"'
12665
12666 else
12667   echo "$as_me: program exited with status $ac_status" >&5
12668 echo "$as_me: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 ( exit $ac_status )
12671  echo "$as_me:$LINENO: result: no" >&5
12672 echo "${ECHO_T}no" >&6
12673         # Force usage of our own snprintf, since system snprintf is broken
12674         SNPRINTF='snprintf.o'
12675         INT64_FORMAT='"%lld"'
12676
12677 fi
12678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12679 fi
12680 fi
12681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12682 fi
12683   else
12684     # here if we previously decided we needed to use our own snprintf
12685     INT64_FORMAT='"%lld"'
12686   fi
12687 else
12688   # Here if we are not using 'long long int' at all
12689   INT64_FORMAT='"%ld"'
12690 fi
12691
12692
12693 cat >>confdefs.h <<_ACEOF
12694 #define INT64_FORMAT $INT64_FORMAT
12695 _ACEOF
12696
12697
12698
12699
12700
12701 for ac_func in strtoll strtoq
12702 do
12703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12704 echo "$as_me:$LINENO: checking for $ac_func" >&5
12705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12706 if eval "test \"\${$as_ac_var+set}\" = set"; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 #include "confdefs.h"
12712 /* System header to define __stub macros and hopefully few prototypes,
12713     which can conflict with char $ac_func (); below.  */
12714 #include <assert.h>
12715 /* Override any gcc2 internal prototype to avoid an error.  */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 /* We use char because int might match the return type of a gcc2
12720    builtin and then its argument prototype would still apply.  */
12721 char $ac_func ();
12722 char (*f) ();
12723
12724 #ifdef F77_DUMMY_MAIN
12725 #  ifdef __cplusplus
12726      extern "C"
12727 #  endif
12728    int F77_DUMMY_MAIN() { return 1; }
12729 #endif
12730 int
12731 main ()
12732 {
12733 /* The GNU C library defines this for functions which it implements
12734     to always fail with ENOSYS.  Some functions are actually named
12735     something starting with __ and the normal name is an alias.  */
12736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12737 choke me
12738 #else
12739 f = $ac_func;
12740 #endif
12741
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -s conftest$ac_exeext'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; }; then
12758   eval "$as_ac_var=yes"
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12762 eval "$as_ac_var=no"
12763 fi
12764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12765 fi
12766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12768 if test `eval echo '${'$as_ac_var'}'` = yes; then
12769   cat >>confdefs.h <<_ACEOF
12770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12771 _ACEOF
12772  break
12773 fi
12774 done
12775
12776
12777
12778 for ac_func in strtoull strtouq
12779 do
12780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12781 echo "$as_me:$LINENO: checking for $ac_func" >&5
12782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12783 if eval "test \"\${$as_ac_var+set}\" = set"; then
12784   echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786   cat >conftest.$ac_ext <<_ACEOF
12787 #line $LINENO "configure"
12788 #include "confdefs.h"
12789 /* System header to define __stub macros and hopefully few prototypes,
12790     which can conflict with char $ac_func (); below.  */
12791 #include <assert.h>
12792 /* Override any gcc2 internal prototype to avoid an error.  */
12793 #ifdef __cplusplus
12794 extern "C"
12795 #endif
12796 /* We use char because int might match the return type of a gcc2
12797    builtin and then its argument prototype would still apply.  */
12798 char $ac_func ();
12799 char (*f) ();
12800
12801 #ifdef F77_DUMMY_MAIN
12802 #  ifdef __cplusplus
12803      extern "C"
12804 #  endif
12805    int F77_DUMMY_MAIN() { return 1; }
12806 #endif
12807 int
12808 main ()
12809 {
12810 /* The GNU C library defines this for functions which it implements
12811     to always fail with ENOSYS.  Some functions are actually named
12812     something starting with __ and the normal name is an alias.  */
12813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12814 choke me
12815 #else
12816 f = $ac_func;
12817 #endif
12818
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825   (eval $ac_link) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } &&
12829          { ac_try='test -s conftest$ac_exeext'
12830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831   (eval $ac_try) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; }; then
12835   eval "$as_ac_var=yes"
12836 else
12837   echo "$as_me: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12839 eval "$as_ac_var=no"
12840 fi
12841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12842 fi
12843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12845 if test `eval echo '${'$as_ac_var'}'` = yes; then
12846   cat >>confdefs.h <<_ACEOF
12847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12848 _ACEOF
12849  break
12850 fi
12851 done
12852
12853
12854 # Check for one of atexit() or on_exit()
12855
12856 for ac_func in atexit
12857 do
12858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12859 echo "$as_me:$LINENO: checking for $ac_func" >&5
12860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12861 if eval "test \"\${$as_ac_var+set}\" = set"; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12866 #include "confdefs.h"
12867 /* System header to define __stub macros and hopefully few prototypes,
12868     which can conflict with char $ac_func (); below.  */
12869 #include <assert.h>
12870 /* Override any gcc2 internal prototype to avoid an error.  */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 /* We use char because int might match the return type of a gcc2
12875    builtin and then its argument prototype would still apply.  */
12876 char $ac_func ();
12877 char (*f) ();
12878
12879 #ifdef F77_DUMMY_MAIN
12880 #  ifdef __cplusplus
12881      extern "C"
12882 #  endif
12883    int F77_DUMMY_MAIN() { return 1; }
12884 #endif
12885 int
12886 main ()
12887 {
12888 /* The GNU C library defines this for functions which it implements
12889     to always fail with ENOSYS.  Some functions are actually named
12890     something starting with __ and the normal name is an alias.  */
12891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12892 choke me
12893 #else
12894 f = $ac_func;
12895 #endif
12896
12897   ;
12898   return 0;
12899 }
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903   (eval $ac_link) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } &&
12907          { ac_try='test -s conftest$ac_exeext'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   eval "$as_ac_var=yes"
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 cat conftest.$ac_ext >&5
12917 eval "$as_ac_var=no"
12918 fi
12919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12920 fi
12921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12923 if test `eval echo '${'$as_ac_var'}'` = yes; then
12924   cat >>confdefs.h <<_ACEOF
12925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12926 _ACEOF
12927
12928 else
12929
12930 for ac_func in on_exit
12931 do
12932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933 echo "$as_me:$LINENO: checking for $ac_func" >&5
12934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_var+set}\" = set"; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 #line $LINENO "configure"
12940 #include "confdefs.h"
12941 /* System header to define __stub macros and hopefully few prototypes,
12942     which can conflict with char $ac_func (); below.  */
12943 #include <assert.h>
12944 /* Override any gcc2 internal prototype to avoid an error.  */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 /* We use char because int might match the return type of a gcc2
12949    builtin and then its argument prototype would still apply.  */
12950 char $ac_func ();
12951 char (*f) ();
12952
12953 #ifdef F77_DUMMY_MAIN
12954 #  ifdef __cplusplus
12955      extern "C"
12956 #  endif
12957    int F77_DUMMY_MAIN() { return 1; }
12958 #endif
12959 int
12960 main ()
12961 {
12962 /* The GNU C library defines this for functions which it implements
12963     to always fail with ENOSYS.  Some functions are actually named
12964     something starting with __ and the normal name is an alias.  */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966 choke me
12967 #else
12968 f = $ac_func;
12969 #endif
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977   (eval $ac_link) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); } &&
12981          { ac_try='test -s conftest$ac_exeext'
12982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983   (eval $ac_try) 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; }; then
12987   eval "$as_ac_var=yes"
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 eval "$as_ac_var=no"
12992 fi
12993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12994 fi
12995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998   cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 _ACEOF
13001
13002 else
13003   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13004 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13005    { (exit 1); exit 1; }; }
13006 fi
13007 done
13008
13009 fi
13010 done
13011
13012
13013
13014 echo "$as_me:$LINENO: checking for unsigned long" >&5
13015 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13016 if test "${ac_cv_type_unsigned_long+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 $ac_includes_default
13023 #ifdef F77_DUMMY_MAIN
13024 #  ifdef __cplusplus
13025      extern "C"
13026 #  endif
13027    int F77_DUMMY_MAIN() { return 1; }
13028 #endif
13029 int
13030 main ()
13031 {
13032 if ((unsigned long *) 0)
13033   return 0;
13034 if (sizeof (unsigned long))
13035   return 0;
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest.$ac_objext'
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_type_unsigned_long=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_type_unsigned_long=no
13057 fi
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13061 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13062
13063 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13064 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13065 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   if test "$ac_cv_type_unsigned_long" = yes; then
13069   # The cast to unsigned long works around a bug in the HP C Compiler
13070   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13071   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13072   # This bug is HP SR number 8606223364.
13073   if test "$cross_compiling" = yes; then
13074   # Depending upon the size, compute the lo and hi bounds.
13075 cat >conftest.$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13077 #include "confdefs.h"
13078 $ac_includes_default
13079 #ifdef F77_DUMMY_MAIN
13080 #  ifdef __cplusplus
13081      extern "C"
13082 #  endif
13083    int F77_DUMMY_MAIN() { return 1; }
13084 #endif
13085 int
13086 main ()
13087 {
13088 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13089 test_array [0] = 0
13090
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -s conftest.$ac_objext'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; }; then
13107   ac_lo=0 ac_mid=0
13108   while :; do
13109     cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 #include "confdefs.h"
13112 $ac_includes_default
13113 #ifdef F77_DUMMY_MAIN
13114 #  ifdef __cplusplus
13115      extern "C"
13116 #  endif
13117    int F77_DUMMY_MAIN() { return 1; }
13118 #endif
13119 int
13120 main ()
13121 {
13122 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13123 test_array [0] = 0
13124
13125   ;
13126   return 0;
13127 }
13128 _ACEOF
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131   (eval $ac_compile) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); } &&
13135          { ac_try='test -s conftest.$ac_objext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   ac_hi=$ac_mid; break
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 ac_lo=`expr $ac_mid + 1`
13146                     if test $ac_lo -le $ac_mid; then
13147                       ac_lo= ac_hi=
13148                       break
13149                     fi
13150                     ac_mid=`expr 2 '*' $ac_mid + 1`
13151 fi
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13153   done
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13157 cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13159 #include "confdefs.h"
13160 $ac_includes_default
13161 #ifdef F77_DUMMY_MAIN
13162 #  ifdef __cplusplus
13163      extern "C"
13164 #  endif
13165    int F77_DUMMY_MAIN() { return 1; }
13166 #endif
13167 int
13168 main ()
13169 {
13170 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13171 test_array [0] = 0
13172
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } &&
13183          { ac_try='test -s conftest.$ac_objext'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_hi=-1 ac_mid=-1
13190   while :; do
13191     cat >conftest.$ac_ext <<_ACEOF
13192 #line $LINENO "configure"
13193 #include "confdefs.h"
13194 $ac_includes_default
13195 #ifdef F77_DUMMY_MAIN
13196 #  ifdef __cplusplus
13197      extern "C"
13198 #  endif
13199    int F77_DUMMY_MAIN() { return 1; }
13200 #endif
13201 int
13202 main ()
13203 {
13204 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13205 test_array [0] = 0
13206
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; }; then
13223   ac_lo=$ac_mid; break
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13227 ac_hi=`expr '(' $ac_mid ')' - 1`
13228                        if test $ac_mid -le $ac_hi; then
13229                          ac_lo= ac_hi=
13230                          break
13231                        fi
13232                        ac_mid=`expr 2 '*' $ac_mid`
13233 fi
13234 rm -f conftest.$ac_objext conftest.$ac_ext
13235   done
13236 else
13237   echo "$as_me: failed program was:" >&5
13238 cat conftest.$ac_ext >&5
13239 ac_lo= ac_hi=
13240 fi
13241 rm -f conftest.$ac_objext conftest.$ac_ext
13242 fi
13243 rm -f conftest.$ac_objext conftest.$ac_ext
13244 # Binary search between lo and hi bounds.
13245 while test "x$ac_lo" != "x$ac_hi"; do
13246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13247   cat >conftest.$ac_ext <<_ACEOF
13248 #line $LINENO "configure"
13249 #include "confdefs.h"
13250 $ac_includes_default
13251 #ifdef F77_DUMMY_MAIN
13252 #  ifdef __cplusplus
13253      extern "C"
13254 #  endif
13255    int F77_DUMMY_MAIN() { return 1; }
13256 #endif
13257 int
13258 main ()
13259 {
13260 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13261 test_array [0] = 0
13262
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269   (eval $ac_compile) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -s conftest.$ac_objext'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   ac_hi=$ac_mid
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 ac_lo=`expr '(' $ac_mid ')' + 1`
13284 fi
13285 rm -f conftest.$ac_objext conftest.$ac_ext
13286 done
13287 case $ac_lo in
13288 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13290 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13291    { (exit 1); exit 1; }; } ;;
13292 esac
13293 else
13294   if test "$cross_compiling" = yes; then
13295   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13296 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13297    { (exit 1); exit 1; }; }
13298 else
13299   cat >conftest.$ac_ext <<_ACEOF
13300 #line $LINENO "configure"
13301 #include "confdefs.h"
13302 $ac_includes_default
13303 long longval () { return (long) (sizeof (unsigned long)); }
13304 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13305 #include <stdio.h>
13306 #include <stdlib.h>
13307 #ifdef F77_DUMMY_MAIN
13308 #  ifdef __cplusplus
13309      extern "C"
13310 #  endif
13311    int F77_DUMMY_MAIN() { return 1; }
13312 #endif
13313 int
13314 main ()
13315 {
13316
13317   FILE *f = fopen ("conftest.val", "w");
13318   if (! f)
13319     exit (1);
13320   if (((long) (sizeof (unsigned long))) < 0)
13321     {
13322       long i = longval ();
13323       if (i != ((long) (sizeof (unsigned long))))
13324         exit (1);
13325       fprintf (f, "%ld\n", i);
13326     }
13327   else
13328     {
13329       unsigned long i = ulongval ();
13330       if (i != ((long) (sizeof (unsigned long))))
13331         exit (1);
13332       fprintf (f, "%lu\n", i);
13333     }
13334   exit (ferror (f) || fclose (f) != 0);
13335
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342   (eval $ac_link) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13352 else
13353   echo "$as_me: program exited with status $ac_status" >&5
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.$ac_ext >&5
13356 ( exit $ac_status )
13357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13358 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13359    { (exit 1); exit 1; }; }
13360 fi
13361 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13362 fi
13363 fi
13364 rm -f conftest.val
13365 else
13366   ac_cv_sizeof_unsigned_long=0
13367 fi
13368 fi
13369 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13370 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13371 cat >>confdefs.h <<_ACEOF
13372 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13373 _ACEOF
13374
13375
13376
13377 cat >>confdefs.h <<_ACEOF
13378 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13379 _ACEOF
13380
13381
13382 # Determine memory alignment requirements for the basic C data types.
13383
13384 echo "$as_me:$LINENO: checking for short" >&5
13385 echo $ECHO_N "checking for short... $ECHO_C" >&6
13386 if test "${ac_cv_type_short+set}" = set; then
13387   echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389   cat >conftest.$ac_ext <<_ACEOF
13390 #line $LINENO "configure"
13391 #include "confdefs.h"
13392 $ac_includes_default
13393 #ifdef F77_DUMMY_MAIN
13394 #  ifdef __cplusplus
13395      extern "C"
13396 #  endif
13397    int F77_DUMMY_MAIN() { return 1; }
13398 #endif
13399 int
13400 main ()
13401 {
13402 if ((short *) 0)
13403   return 0;
13404 if (sizeof (short))
13405   return 0;
13406   ;
13407   return 0;
13408 }
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412   (eval $ac_compile) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } &&
13416          { ac_try='test -s conftest.$ac_objext'
13417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418   (eval $ac_try) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; }; then
13422   ac_cv_type_short=yes
13423 else
13424   echo "$as_me: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 ac_cv_type_short=no
13427 fi
13428 rm -f conftest.$ac_objext conftest.$ac_ext
13429 fi
13430 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13431 echo "${ECHO_T}$ac_cv_type_short" >&6
13432
13433 echo "$as_me:$LINENO: checking alignment of short" >&5
13434 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13435 if test "${pgac_cv_alignof_short+set}" = set; then
13436   echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438   if test "$ac_cv_type_short" = yes; then
13439   if test "$cross_compiling" = yes; then
13440   # Depending upon the size, compute the lo and hi bounds.
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 #include "confdefs.h"
13444 $ac_includes_default
13445 struct { char filler; short field; } pgac_struct;
13446 #ifdef F77_DUMMY_MAIN
13447 #  ifdef __cplusplus
13448      extern "C"
13449 #  endif
13450    int F77_DUMMY_MAIN() { return 1; }
13451 #endif
13452 int
13453 main ()
13454 {
13455 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13456 test_array [0] = 0
13457
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464   (eval $ac_compile) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -s conftest.$ac_objext'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474   ac_lo=0 ac_mid=0
13475   while :; do
13476     cat >conftest.$ac_ext <<_ACEOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479 $ac_includes_default
13480 struct { char filler; short field; } pgac_struct;
13481 #ifdef F77_DUMMY_MAIN
13482 #  ifdef __cplusplus
13483      extern "C"
13484 #  endif
13485    int F77_DUMMY_MAIN() { return 1; }
13486 #endif
13487 int
13488 main ()
13489 {
13490 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13491 test_array [0] = 0
13492
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499   (eval $ac_compile) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_hi=$ac_mid; break
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 ac_lo=`expr $ac_mid + 1`
13514                     if test $ac_lo -le $ac_mid; then
13515                       ac_lo= ac_hi=
13516                       break
13517                     fi
13518                     ac_mid=`expr 2 '*' $ac_mid + 1`
13519 fi
13520 rm -f conftest.$ac_objext conftest.$ac_ext
13521   done
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 cat conftest.$ac_ext >&5
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line $LINENO "configure"
13527 #include "confdefs.h"
13528 $ac_includes_default
13529 struct { char filler; short field; } pgac_struct;
13530 #ifdef F77_DUMMY_MAIN
13531 #  ifdef __cplusplus
13532      extern "C"
13533 #  endif
13534    int F77_DUMMY_MAIN() { return 1; }
13535 #endif
13536 int
13537 main ()
13538 {
13539 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13540 test_array [0] = 0
13541
13542   ;
13543   return 0;
13544 }
13545 _ACEOF
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548   (eval $ac_compile) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } &&
13552          { ac_try='test -s conftest.$ac_objext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   ac_hi=-1 ac_mid=-1
13559   while :; do
13560     cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 #include "confdefs.h"
13563 $ac_includes_default
13564 struct { char filler; short field; } pgac_struct;
13565 #ifdef F77_DUMMY_MAIN
13566 #  ifdef __cplusplus
13567      extern "C"
13568 #  endif
13569    int F77_DUMMY_MAIN() { return 1; }
13570 #endif
13571 int
13572 main ()
13573 {
13574 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13575 test_array [0] = 0
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583   (eval $ac_compile) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_lo=$ac_mid; break
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 cat conftest.$ac_ext >&5
13597 ac_hi=`expr '(' $ac_mid ')' - 1`
13598                        if test $ac_mid -le $ac_hi; then
13599                          ac_lo= ac_hi=
13600                          break
13601                        fi
13602                        ac_mid=`expr 2 '*' $ac_mid`
13603 fi
13604 rm -f conftest.$ac_objext conftest.$ac_ext
13605   done
13606 else
13607   echo "$as_me: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 ac_lo= ac_hi=
13610 fi
13611 rm -f conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614 # Binary search between lo and hi bounds.
13615 while test "x$ac_lo" != "x$ac_hi"; do
13616   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13617   cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 #include "confdefs.h"
13620 $ac_includes_default
13621 struct { char filler; short field; } pgac_struct;
13622 #ifdef F77_DUMMY_MAIN
13623 #  ifdef __cplusplus
13624      extern "C"
13625 #  endif
13626    int F77_DUMMY_MAIN() { return 1; }
13627 #endif
13628 int
13629 main ()
13630 {
13631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13632 test_array [0] = 0
13633
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640   (eval $ac_compile) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -s conftest.$ac_objext'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650   ac_hi=$ac_mid
13651 else
13652   echo "$as_me: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 ac_lo=`expr '(' $ac_mid ')' + 1`
13655 fi
13656 rm -f conftest.$ac_objext conftest.$ac_ext
13657 done
13658 case $ac_lo in
13659 ?*) pgac_cv_alignof_short=$ac_lo;;
13660 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13661 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13662    { (exit 1); exit 1; }; } ;;
13663 esac
13664 else
13665   if test "$cross_compiling" = yes; then
13666   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13667 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13668    { (exit 1); exit 1; }; }
13669 else
13670   cat >conftest.$ac_ext <<_ACEOF
13671 #line $LINENO "configure"
13672 #include "confdefs.h"
13673 $ac_includes_default
13674 struct { char filler; short field; } pgac_struct;
13675 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13676 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13677 #include <stdio.h>
13678 #include <stdlib.h>
13679 #ifdef F77_DUMMY_MAIN
13680 #  ifdef __cplusplus
13681      extern "C"
13682 #  endif
13683    int F77_DUMMY_MAIN() { return 1; }
13684 #endif
13685 int
13686 main ()
13687 {
13688
13689   FILE *f = fopen ("conftest.val", "w");
13690   if (! f)
13691     exit (1);
13692   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13693     {
13694       long i = longval ();
13695       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13696         exit (1);
13697       fprintf (f, "%ld\n", i);
13698     }
13699   else
13700     {
13701       unsigned long i = ulongval ();
13702       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13703         exit (1);
13704       fprintf (f, "%lu\n", i);
13705     }
13706   exit (ferror (f) || fclose (f) != 0);
13707
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714   (eval $ac_link) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719   (eval $ac_try) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; }; then
13723   pgac_cv_alignof_short=`cat conftest.val`
13724 else
13725   echo "$as_me: program exited with status $ac_status" >&5
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 ( exit $ac_status )
13729 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13730 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13731    { (exit 1); exit 1; }; }
13732 fi
13733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 fi
13736 rm -f conftest.val
13737 else
13738   pgac_cv_alignof_short=0
13739 fi
13740 fi
13741 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13742 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13743 cat >>confdefs.h <<_ACEOF
13744 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13745 _ACEOF
13746
13747
13748 echo "$as_me:$LINENO: checking for int" >&5
13749 echo $ECHO_N "checking for int... $ECHO_C" >&6
13750 if test "${ac_cv_type_int+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   cat >conftest.$ac_ext <<_ACEOF
13754 #line $LINENO "configure"
13755 #include "confdefs.h"
13756 $ac_includes_default
13757 #ifdef F77_DUMMY_MAIN
13758 #  ifdef __cplusplus
13759      extern "C"
13760 #  endif
13761    int F77_DUMMY_MAIN() { return 1; }
13762 #endif
13763 int
13764 main ()
13765 {
13766 if ((int *) 0)
13767   return 0;
13768 if (sizeof (int))
13769   return 0;
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776   (eval $ac_compile) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); } &&
13780          { ac_try='test -s conftest.$ac_objext'
13781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782   (eval $ac_try) 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }; then
13786   ac_cv_type_int=yes
13787 else
13788   echo "$as_me: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 ac_cv_type_int=no
13791 fi
13792 rm -f conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13795 echo "${ECHO_T}$ac_cv_type_int" >&6
13796
13797 echo "$as_me:$LINENO: checking alignment of int" >&5
13798 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13799 if test "${pgac_cv_alignof_int+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   if test "$ac_cv_type_int" = yes; then
13803   if test "$cross_compiling" = yes; then
13804   # Depending upon the size, compute the lo and hi bounds.
13805 cat >conftest.$ac_ext <<_ACEOF
13806 #line $LINENO "configure"
13807 #include "confdefs.h"
13808 $ac_includes_default
13809 struct { char filler; int field; } pgac_struct;
13810 #ifdef F77_DUMMY_MAIN
13811 #  ifdef __cplusplus
13812      extern "C"
13813 #  endif
13814    int F77_DUMMY_MAIN() { return 1; }
13815 #endif
13816 int
13817 main ()
13818 {
13819 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13820 test_array [0] = 0
13821
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 rm -f conftest.$ac_objext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828   (eval $ac_compile) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); } &&
13832          { ac_try='test -s conftest.$ac_objext'
13833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834   (eval $ac_try) 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_lo=0 ac_mid=0
13839   while :; do
13840     cat >conftest.$ac_ext <<_ACEOF
13841 #line $LINENO "configure"
13842 #include "confdefs.h"
13843 $ac_includes_default
13844 struct { char filler; int field; } pgac_struct;
13845 #ifdef F77_DUMMY_MAIN
13846 #  ifdef __cplusplus
13847      extern "C"
13848 #  endif
13849    int F77_DUMMY_MAIN() { return 1; }
13850 #endif
13851 int
13852 main ()
13853 {
13854 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13855 test_array [0] = 0
13856
13857   ;
13858   return 0;
13859 }
13860 _ACEOF
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863   (eval $ac_compile) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -s conftest.$ac_objext'
13868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869   (eval $ac_try) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_hi=$ac_mid; break
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13877 ac_lo=`expr $ac_mid + 1`
13878                     if test $ac_lo -le $ac_mid; then
13879                       ac_lo= ac_hi=
13880                       break
13881                     fi
13882                     ac_mid=`expr 2 '*' $ac_mid + 1`
13883 fi
13884 rm -f conftest.$ac_objext conftest.$ac_ext
13885   done
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 cat >conftest.$ac_ext <<_ACEOF
13890 #line $LINENO "configure"
13891 #include "confdefs.h"
13892 $ac_includes_default
13893 struct { char filler; int field; } pgac_struct;
13894 #ifdef F77_DUMMY_MAIN
13895 #  ifdef __cplusplus
13896      extern "C"
13897 #  endif
13898    int F77_DUMMY_MAIN() { return 1; }
13899 #endif
13900 int
13901 main ()
13902 {
13903 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13904 test_array [0] = 0
13905
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912   (eval $ac_compile) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); } &&
13916          { ac_try='test -s conftest.$ac_objext'
13917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918   (eval $ac_try) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922   ac_hi=-1 ac_mid=-1
13923   while :; do
13924     cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13926 #include "confdefs.h"
13927 $ac_includes_default
13928 struct { char filler; int field; } pgac_struct;
13929 #ifdef F77_DUMMY_MAIN
13930 #  ifdef __cplusplus
13931      extern "C"
13932 #  endif
13933    int F77_DUMMY_MAIN() { return 1; }
13934 #endif
13935 int
13936 main ()
13937 {
13938 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13939 test_array [0] = 0
13940
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947   (eval $ac_compile) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -s conftest.$ac_objext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_lo=$ac_mid; break
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13961 ac_hi=`expr '(' $ac_mid ')' - 1`
13962                        if test $ac_mid -le $ac_hi; then
13963                          ac_lo= ac_hi=
13964                          break
13965                        fi
13966                        ac_mid=`expr 2 '*' $ac_mid`
13967 fi
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13969   done
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 ac_lo= ac_hi=
13974 fi
13975 rm -f conftest.$ac_objext conftest.$ac_ext
13976 fi
13977 rm -f conftest.$ac_objext conftest.$ac_ext
13978 # Binary search between lo and hi bounds.
13979 while test "x$ac_lo" != "x$ac_hi"; do
13980   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13981   cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 #include "confdefs.h"
13984 $ac_includes_default
13985 struct { char filler; int field; } pgac_struct;
13986 #ifdef F77_DUMMY_MAIN
13987 #  ifdef __cplusplus
13988      extern "C"
13989 #  endif
13990    int F77_DUMMY_MAIN() { return 1; }
13991 #endif
13992 int
13993 main ()
13994 {
13995 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13996 test_array [0] = 0
13997
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004   (eval $ac_compile) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_hi=$ac_mid
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 ac_lo=`expr '(' $ac_mid ')' + 1`
14019 fi
14020 rm -f conftest.$ac_objext conftest.$ac_ext
14021 done
14022 case $ac_lo in
14023 ?*) pgac_cv_alignof_int=$ac_lo;;
14024 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14025 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14026    { (exit 1); exit 1; }; } ;;
14027 esac
14028 else
14029   if test "$cross_compiling" = yes; then
14030   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14031 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14032    { (exit 1); exit 1; }; }
14033 else
14034   cat >conftest.$ac_ext <<_ACEOF
14035 #line $LINENO "configure"
14036 #include "confdefs.h"
14037 $ac_includes_default
14038 struct { char filler; int field; } pgac_struct;
14039 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14040 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14041 #include <stdio.h>
14042 #include <stdlib.h>
14043 #ifdef F77_DUMMY_MAIN
14044 #  ifdef __cplusplus
14045      extern "C"
14046 #  endif
14047    int F77_DUMMY_MAIN() { return 1; }
14048 #endif
14049 int
14050 main ()
14051 {
14052
14053   FILE *f = fopen ("conftest.val", "w");
14054   if (! f)
14055     exit (1);
14056   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14057     {
14058       long i = longval ();
14059       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14060         exit (1);
14061       fprintf (f, "%ld\n", i);
14062     }
14063   else
14064     {
14065       unsigned long i = ulongval ();
14066       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14067         exit (1);
14068       fprintf (f, "%lu\n", i);
14069     }
14070   exit (ferror (f) || fclose (f) != 0);
14071
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest$ac_exeext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078   (eval $ac_link) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083   (eval $ac_try) 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }; then
14087   pgac_cv_alignof_int=`cat conftest.val`
14088 else
14089   echo "$as_me: program exited with status $ac_status" >&5
14090 echo "$as_me: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14092 ( exit $ac_status )
14093 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14094 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14095    { (exit 1); exit 1; }; }
14096 fi
14097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 fi
14100 rm -f conftest.val
14101 else
14102   pgac_cv_alignof_int=0
14103 fi
14104 fi
14105 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14106 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14107 cat >>confdefs.h <<_ACEOF
14108 #define ALIGNOF_INT $pgac_cv_alignof_int
14109 _ACEOF
14110
14111
14112 echo "$as_me:$LINENO: checking for long" >&5
14113 echo $ECHO_N "checking for long... $ECHO_C" >&6
14114 if test "${ac_cv_type_long+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 #include "confdefs.h"
14120 $ac_includes_default
14121 #ifdef F77_DUMMY_MAIN
14122 #  ifdef __cplusplus
14123      extern "C"
14124 #  endif
14125    int F77_DUMMY_MAIN() { return 1; }
14126 #endif
14127 int
14128 main ()
14129 {
14130 if ((long *) 0)
14131   return 0;
14132 if (sizeof (long))
14133   return 0;
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140   (eval $ac_compile) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } &&
14144          { ac_try='test -s conftest.$ac_objext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_cv_type_long=yes
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 ac_cv_type_long=no
14155 fi
14156 rm -f conftest.$ac_objext conftest.$ac_ext
14157 fi
14158 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14159 echo "${ECHO_T}$ac_cv_type_long" >&6
14160
14161 echo "$as_me:$LINENO: checking alignment of long" >&5
14162 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14163 if test "${pgac_cv_alignof_long+set}" = set; then
14164   echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166   if test "$ac_cv_type_long" = yes; then
14167   if test "$cross_compiling" = yes; then
14168   # Depending upon the size, compute the lo and hi bounds.
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 #include "confdefs.h"
14172 $ac_includes_default
14173 struct { char filler; long field; } pgac_struct;
14174 #ifdef F77_DUMMY_MAIN
14175 #  ifdef __cplusplus
14176      extern "C"
14177 #  endif
14178    int F77_DUMMY_MAIN() { return 1; }
14179 #endif
14180 int
14181 main ()
14182 {
14183 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14184 test_array [0] = 0
14185
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192   (eval $ac_compile) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -s conftest.$ac_objext'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }; then
14202   ac_lo=0 ac_mid=0
14203   while :; do
14204     cat >conftest.$ac_ext <<_ACEOF
14205 #line $LINENO "configure"
14206 #include "confdefs.h"
14207 $ac_includes_default
14208 struct { char filler; long field; } pgac_struct;
14209 #ifdef F77_DUMMY_MAIN
14210 #  ifdef __cplusplus
14211      extern "C"
14212 #  endif
14213    int F77_DUMMY_MAIN() { return 1; }
14214 #endif
14215 int
14216 main ()
14217 {
14218 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14219 test_array [0] = 0
14220
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227   (eval $ac_compile) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -s conftest.$ac_objext'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_hi=$ac_mid; break
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 cat conftest.$ac_ext >&5
14241 ac_lo=`expr $ac_mid + 1`
14242                     if test $ac_lo -le $ac_mid; then
14243                       ac_lo= ac_hi=
14244                       break
14245                     fi
14246                     ac_mid=`expr 2 '*' $ac_mid + 1`
14247 fi
14248 rm -f conftest.$ac_objext conftest.$ac_ext
14249   done
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14253 cat >conftest.$ac_ext <<_ACEOF
14254 #line $LINENO "configure"
14255 #include "confdefs.h"
14256 $ac_includes_default
14257 struct { char filler; long field; } pgac_struct;
14258 #ifdef F77_DUMMY_MAIN
14259 #  ifdef __cplusplus
14260      extern "C"
14261 #  endif
14262    int F77_DUMMY_MAIN() { return 1; }
14263 #endif
14264 int
14265 main ()
14266 {
14267 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14268 test_array [0] = 0
14269
14270   ;
14271   return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276   (eval $ac_compile) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   ac_hi=-1 ac_mid=-1
14287   while :; do
14288     cat >conftest.$ac_ext <<_ACEOF
14289 #line $LINENO "configure"
14290 #include "confdefs.h"
14291 $ac_includes_default
14292 struct { char filler; long field; } pgac_struct;
14293 #ifdef F77_DUMMY_MAIN
14294 #  ifdef __cplusplus
14295      extern "C"
14296 #  endif
14297    int F77_DUMMY_MAIN() { return 1; }
14298 #endif
14299 int
14300 main ()
14301 {
14302 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14303 test_array [0] = 0
14304
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   ac_lo=$ac_mid; break
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 ac_hi=`expr '(' $ac_mid ')' - 1`
14326                        if test $ac_mid -le $ac_hi; then
14327                          ac_lo= ac_hi=
14328                          break
14329                        fi
14330                        ac_mid=`expr 2 '*' $ac_mid`
14331 fi
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14333   done
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 cat conftest.$ac_ext >&5
14337 ac_lo= ac_hi=
14338 fi
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14340 fi
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14342 # Binary search between lo and hi bounds.
14343 while test "x$ac_lo" != "x$ac_hi"; do
14344   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14345   cat >conftest.$ac_ext <<_ACEOF
14346 #line $LINENO "configure"
14347 #include "confdefs.h"
14348 $ac_includes_default
14349 struct { char filler; long field; } pgac_struct;
14350 #ifdef F77_DUMMY_MAIN
14351 #  ifdef __cplusplus
14352      extern "C"
14353 #  endif
14354    int F77_DUMMY_MAIN() { return 1; }
14355 #endif
14356 int
14357 main ()
14358 {
14359 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14360 test_array [0] = 0
14361
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368   (eval $ac_compile) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -s conftest.$ac_objext'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; }; then
14378   ac_hi=$ac_mid
14379 else
14380   echo "$as_me: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14382 ac_lo=`expr '(' $ac_mid ')' + 1`
14383 fi
14384 rm -f conftest.$ac_objext conftest.$ac_ext
14385 done
14386 case $ac_lo in
14387 ?*) pgac_cv_alignof_long=$ac_lo;;
14388 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14389 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14390    { (exit 1); exit 1; }; } ;;
14391 esac
14392 else
14393   if test "$cross_compiling" = yes; then
14394   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14395 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14396    { (exit 1); exit 1; }; }
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 #line $LINENO "configure"
14400 #include "confdefs.h"
14401 $ac_includes_default
14402 struct { char filler; long field; } pgac_struct;
14403 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14404 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14405 #include <stdio.h>
14406 #include <stdlib.h>
14407 #ifdef F77_DUMMY_MAIN
14408 #  ifdef __cplusplus
14409      extern "C"
14410 #  endif
14411    int F77_DUMMY_MAIN() { return 1; }
14412 #endif
14413 int
14414 main ()
14415 {
14416
14417   FILE *f = fopen ("conftest.val", "w");
14418   if (! f)
14419     exit (1);
14420   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14421     {
14422       long i = longval ();
14423       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14424         exit (1);
14425       fprintf (f, "%ld\n", i);
14426     }
14427   else
14428     {
14429       unsigned long i = ulongval ();
14430       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14431         exit (1);
14432       fprintf (f, "%lu\n", i);
14433     }
14434   exit (ferror (f) || fclose (f) != 0);
14435
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest$ac_exeext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442   (eval $ac_link) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447   (eval $ac_try) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; }; then
14451   pgac_cv_alignof_long=`cat conftest.val`
14452 else
14453   echo "$as_me: program exited with status $ac_status" >&5
14454 echo "$as_me: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14456 ( exit $ac_status )
14457 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14458 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14459    { (exit 1); exit 1; }; }
14460 fi
14461 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 fi
14464 rm -f conftest.val
14465 else
14466   pgac_cv_alignof_long=0
14467 fi
14468 fi
14469 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14470 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14471 cat >>confdefs.h <<_ACEOF
14472 #define ALIGNOF_LONG $pgac_cv_alignof_long
14473 _ACEOF
14474
14475
14476 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14477   echo "$as_me:$LINENO: checking for long long int" >&5
14478 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14479 if test "${ac_cv_type_long_long_int+set}" = set; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 #include "confdefs.h"
14485 $ac_includes_default
14486 #ifdef F77_DUMMY_MAIN
14487 #  ifdef __cplusplus
14488      extern "C"
14489 #  endif
14490    int F77_DUMMY_MAIN() { return 1; }
14491 #endif
14492 int
14493 main ()
14494 {
14495 if ((long long int *) 0)
14496   return 0;
14497 if (sizeof (long long int))
14498   return 0;
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505   (eval $ac_compile) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } &&
14509          { ac_try='test -s conftest.$ac_objext'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; }; then
14515   ac_cv_type_long_long_int=yes
14516 else
14517   echo "$as_me: failed program was:" >&5
14518 cat conftest.$ac_ext >&5
14519 ac_cv_type_long_long_int=no
14520 fi
14521 rm -f conftest.$ac_objext conftest.$ac_ext
14522 fi
14523 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14524 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14525
14526 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14527 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14528 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   if test "$ac_cv_type_long_long_int" = yes; then
14532   if test "$cross_compiling" = yes; then
14533   # Depending upon the size, compute the lo and hi bounds.
14534 cat >conftest.$ac_ext <<_ACEOF
14535 #line $LINENO "configure"
14536 #include "confdefs.h"
14537 $ac_includes_default
14538 struct { char filler; long long int field; } pgac_struct;
14539 #ifdef F77_DUMMY_MAIN
14540 #  ifdef __cplusplus
14541      extern "C"
14542 #  endif
14543    int F77_DUMMY_MAIN() { return 1; }
14544 #endif
14545 int
14546 main ()
14547 {
14548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14549 test_array [0] = 0
14550
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557   (eval $ac_compile) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } &&
14561          { ac_try='test -s conftest.$ac_objext'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   ac_lo=0 ac_mid=0
14568   while :; do
14569     cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 $ac_includes_default
14573 struct { char filler; long long int field; } pgac_struct;
14574 #ifdef F77_DUMMY_MAIN
14575 #  ifdef __cplusplus
14576      extern "C"
14577 #  endif
14578    int F77_DUMMY_MAIN() { return 1; }
14579 #endif
14580 int
14581 main ()
14582 {
14583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14584 test_array [0] = 0
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602   ac_hi=$ac_mid; break
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 ac_lo=`expr $ac_mid + 1`
14607                     if test $ac_lo -le $ac_mid; then
14608                       ac_lo= ac_hi=
14609                       break
14610                     fi
14611                     ac_mid=`expr 2 '*' $ac_mid + 1`
14612 fi
14613 rm -f conftest.$ac_objext conftest.$ac_ext
14614   done
14615 else
14616   echo "$as_me: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 cat >conftest.$ac_ext <<_ACEOF
14619 #line $LINENO "configure"
14620 #include "confdefs.h"
14621 $ac_includes_default
14622 struct { char filler; long long int field; } pgac_struct;
14623 #ifdef F77_DUMMY_MAIN
14624 #  ifdef __cplusplus
14625      extern "C"
14626 #  endif
14627    int F77_DUMMY_MAIN() { return 1; }
14628 #endif
14629 int
14630 main ()
14631 {
14632 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14633 test_array [0] = 0
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641   (eval $ac_compile) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_hi=-1 ac_mid=-1
14652   while :; do
14653     cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14655 #include "confdefs.h"
14656 $ac_includes_default
14657 struct { char filler; long long int field; } pgac_struct;
14658 #ifdef F77_DUMMY_MAIN
14659 #  ifdef __cplusplus
14660      extern "C"
14661 #  endif
14662    int F77_DUMMY_MAIN() { return 1; }
14663 #endif
14664 int
14665 main ()
14666 {
14667 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14668 test_array [0] = 0
14669
14670   ;
14671   return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest.$ac_objext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14676   (eval $ac_compile) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } &&
14680          { ac_try='test -s conftest.$ac_objext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_lo=$ac_mid; break
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 ac_hi=`expr '(' $ac_mid ')' - 1`
14691                        if test $ac_mid -le $ac_hi; then
14692                          ac_lo= ac_hi=
14693                          break
14694                        fi
14695                        ac_mid=`expr 2 '*' $ac_mid`
14696 fi
14697 rm -f conftest.$ac_objext conftest.$ac_ext
14698   done
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 cat conftest.$ac_ext >&5
14702 ac_lo= ac_hi=
14703 fi
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14705 fi
14706 rm -f conftest.$ac_objext conftest.$ac_ext
14707 # Binary search between lo and hi bounds.
14708 while test "x$ac_lo" != "x$ac_hi"; do
14709   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14710   cat >conftest.$ac_ext <<_ACEOF
14711 #line $LINENO "configure"
14712 #include "confdefs.h"
14713 $ac_includes_default
14714 struct { char filler; long long int field; } pgac_struct;
14715 #ifdef F77_DUMMY_MAIN
14716 #  ifdef __cplusplus
14717      extern "C"
14718 #  endif
14719    int F77_DUMMY_MAIN() { return 1; }
14720 #endif
14721 int
14722 main ()
14723 {
14724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14725 test_array [0] = 0
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733   (eval $ac_compile) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } &&
14737          { ac_try='test -s conftest.$ac_objext'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   ac_hi=$ac_mid
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14747 ac_lo=`expr '(' $ac_mid ')' + 1`
14748 fi
14749 rm -f conftest.$ac_objext conftest.$ac_ext
14750 done
14751 case $ac_lo in
14752 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14753 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14754 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14755    { (exit 1); exit 1; }; } ;;
14756 esac
14757 else
14758   if test "$cross_compiling" = yes; then
14759   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14760 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14761    { (exit 1); exit 1; }; }
14762 else
14763   cat >conftest.$ac_ext <<_ACEOF
14764 #line $LINENO "configure"
14765 #include "confdefs.h"
14766 $ac_includes_default
14767 struct { char filler; long long int field; } pgac_struct;
14768 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14769 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14770 #include <stdio.h>
14771 #include <stdlib.h>
14772 #ifdef F77_DUMMY_MAIN
14773 #  ifdef __cplusplus
14774      extern "C"
14775 #  endif
14776    int F77_DUMMY_MAIN() { return 1; }
14777 #endif
14778 int
14779 main ()
14780 {
14781
14782   FILE *f = fopen ("conftest.val", "w");
14783   if (! f)
14784     exit (1);
14785   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14786     {
14787       long i = longval ();
14788       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14789         exit (1);
14790       fprintf (f, "%ld\n", i);
14791     }
14792   else
14793     {
14794       unsigned long i = ulongval ();
14795       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14796         exit (1);
14797       fprintf (f, "%lu\n", i);
14798     }
14799   exit (ferror (f) || fclose (f) != 0);
14800
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807   (eval $ac_link) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; }; then
14816   pgac_cv_alignof_long_long_int=`cat conftest.val`
14817 else
14818   echo "$as_me: program exited with status $ac_status" >&5
14819 echo "$as_me: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14821 ( exit $ac_status )
14822 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14823 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14824    { (exit 1); exit 1; }; }
14825 fi
14826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14827 fi
14828 fi
14829 rm -f conftest.val
14830 else
14831   pgac_cv_alignof_long_long_int=0
14832 fi
14833 fi
14834 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14835 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14836 cat >>confdefs.h <<_ACEOF
14837 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14838 _ACEOF
14839
14840
14841 fi
14842 echo "$as_me:$LINENO: checking for double" >&5
14843 echo $ECHO_N "checking for double... $ECHO_C" >&6
14844 if test "${ac_cv_type_double+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   cat >conftest.$ac_ext <<_ACEOF
14848 #line $LINENO "configure"
14849 #include "confdefs.h"
14850 $ac_includes_default
14851 #ifdef F77_DUMMY_MAIN
14852 #  ifdef __cplusplus
14853      extern "C"
14854 #  endif
14855    int F77_DUMMY_MAIN() { return 1; }
14856 #endif
14857 int
14858 main ()
14859 {
14860 if ((double *) 0)
14861   return 0;
14862 if (sizeof (double))
14863   return 0;
14864   ;
14865   return 0;
14866 }
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870   (eval $ac_compile) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   ac_cv_type_double=yes
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 ac_cv_type_double=no
14885 fi
14886 rm -f conftest.$ac_objext conftest.$ac_ext
14887 fi
14888 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14889 echo "${ECHO_T}$ac_cv_type_double" >&6
14890
14891 echo "$as_me:$LINENO: checking alignment of double" >&5
14892 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14893 if test "${pgac_cv_alignof_double+set}" = set; then
14894   echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896   if test "$ac_cv_type_double" = yes; then
14897   if test "$cross_compiling" = yes; then
14898   # Depending upon the size, compute the lo and hi bounds.
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 #include "confdefs.h"
14902 $ac_includes_default
14903 struct { char filler; double field; } pgac_struct;
14904 #ifdef F77_DUMMY_MAIN
14905 #  ifdef __cplusplus
14906      extern "C"
14907 #  endif
14908    int F77_DUMMY_MAIN() { return 1; }
14909 #endif
14910 int
14911 main ()
14912 {
14913 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14914 test_array [0] = 0
14915
14916   ;
14917   return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14922   (eval $ac_compile) 2>&5
14923   ac_status=$?
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -s conftest.$ac_objext'
14927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); }; }; then
14932   ac_lo=0 ac_mid=0
14933   while :; do
14934     cat >conftest.$ac_ext <<_ACEOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14937 $ac_includes_default
14938 struct { char filler; double field; } pgac_struct;
14939 #ifdef F77_DUMMY_MAIN
14940 #  ifdef __cplusplus
14941      extern "C"
14942 #  endif
14943    int F77_DUMMY_MAIN() { return 1; }
14944 #endif
14945 int
14946 main ()
14947 {
14948 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14949 test_array [0] = 0
14950
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957   (eval $ac_compile) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); } &&
14961          { ac_try='test -s conftest.$ac_objext'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; }; then
14967   ac_hi=$ac_mid; break
14968 else
14969   echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 ac_lo=`expr $ac_mid + 1`
14972                     if test $ac_lo -le $ac_mid; then
14973                       ac_lo= ac_hi=
14974                       break
14975                     fi
14976                     ac_mid=`expr 2 '*' $ac_mid + 1`
14977 fi
14978 rm -f conftest.$ac_objext conftest.$ac_ext
14979   done
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 cat conftest.$ac_ext >&5
14983 cat >conftest.$ac_ext <<_ACEOF
14984 #line $LINENO "configure"
14985 #include "confdefs.h"
14986 $ac_includes_default
14987 struct { char filler; double field; } pgac_struct;
14988 #ifdef F77_DUMMY_MAIN
14989 #  ifdef __cplusplus
14990      extern "C"
14991 #  endif
14992    int F77_DUMMY_MAIN() { return 1; }
14993 #endif
14994 int
14995 main ()
14996 {
14997 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14998 test_array [0] = 0
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   ac_hi=-1 ac_mid=-1
15017   while :; do
15018     cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 #include "confdefs.h"
15021 $ac_includes_default
15022 struct { char filler; double field; } pgac_struct;
15023 #ifdef F77_DUMMY_MAIN
15024 #  ifdef __cplusplus
15025      extern "C"
15026 #  endif
15027    int F77_DUMMY_MAIN() { return 1; }
15028 #endif
15029 int
15030 main ()
15031 {
15032 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15033 test_array [0] = 0
15034
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041   (eval $ac_compile) 2>&5
15042   ac_status=$?
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -s conftest.$ac_objext'
15046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047   (eval $ac_try) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); }; }; then
15051   ac_lo=$ac_mid; break
15052 else
15053   echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ac_hi=`expr '(' $ac_mid ')' - 1`
15056                        if test $ac_mid -le $ac_hi; then
15057                          ac_lo= ac_hi=
15058                          break
15059                        fi
15060                        ac_mid=`expr 2 '*' $ac_mid`
15061 fi
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15063   done
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 ac_lo= ac_hi=
15068 fi
15069 rm -f conftest.$ac_objext conftest.$ac_ext
15070 fi
15071 rm -f conftest.$ac_objext conftest.$ac_ext
15072 # Binary search between lo and hi bounds.
15073 while test "x$ac_lo" != "x$ac_hi"; do
15074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15075   cat >conftest.$ac_ext <<_ACEOF
15076 #line $LINENO "configure"
15077 #include "confdefs.h"
15078 $ac_includes_default
15079 struct { char filler; double field; } pgac_struct;
15080 #ifdef F77_DUMMY_MAIN
15081 #  ifdef __cplusplus
15082      extern "C"
15083 #  endif
15084    int F77_DUMMY_MAIN() { return 1; }
15085 #endif
15086 int
15087 main ()
15088 {
15089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15090 test_array [0] = 0
15091
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   ac_hi=$ac_mid
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 ac_lo=`expr '(' $ac_mid ')' + 1`
15113 fi
15114 rm -f conftest.$ac_objext conftest.$ac_ext
15115 done
15116 case $ac_lo in
15117 ?*) pgac_cv_alignof_double=$ac_lo;;
15118 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15119 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15120    { (exit 1); exit 1; }; } ;;
15121 esac
15122 else
15123   if test "$cross_compiling" = yes; then
15124   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15125 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15126    { (exit 1); exit 1; }; }
15127 else
15128   cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 #include "confdefs.h"
15131 $ac_includes_default
15132 struct { char filler; double field; } pgac_struct;
15133 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15134 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15135 #include <stdio.h>
15136 #include <stdlib.h>
15137 #ifdef F77_DUMMY_MAIN
15138 #  ifdef __cplusplus
15139      extern "C"
15140 #  endif
15141    int F77_DUMMY_MAIN() { return 1; }
15142 #endif
15143 int
15144 main ()
15145 {
15146
15147   FILE *f = fopen ("conftest.val", "w");
15148   if (! f)
15149     exit (1);
15150   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15151     {
15152       long i = longval ();
15153       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15154         exit (1);
15155       fprintf (f, "%ld\n", i);
15156     }
15157   else
15158     {
15159       unsigned long i = ulongval ();
15160       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15161         exit (1);
15162       fprintf (f, "%lu\n", i);
15163     }
15164   exit (ferror (f) || fclose (f) != 0);
15165
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 rm -f conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172   (eval $ac_link) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; }; then
15181   pgac_cv_alignof_double=`cat conftest.val`
15182 else
15183   echo "$as_me: program exited with status $ac_status" >&5
15184 echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 ( exit $ac_status )
15187 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15188 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15189    { (exit 1); exit 1; }; }
15190 fi
15191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 fi
15194 rm -f conftest.val
15195 else
15196   pgac_cv_alignof_double=0
15197 fi
15198 fi
15199 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15200 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15201 cat >>confdefs.h <<_ACEOF
15202 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15203 _ACEOF
15204
15205
15206
15207 # Compute maximum alignment of any basic type.
15208 # We assume long's alignment is at least as strong as char, short, or int;
15209 # but we must check long long (if it exists) and double.
15210
15211 MAX_ALIGNOF=$pgac_cv_alignof_long
15212 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15213   MAX_ALIGNOF=$pgac_cv_alignof_double
15214 fi
15215 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15216   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15217 fi
15218
15219 cat >>confdefs.h <<_ACEOF
15220 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15221 _ACEOF
15222
15223
15224
15225 # Some platforms predefine the types int8, int16, etc.  Only check
15226 # a (hopefully) representative subset.
15227 echo "$as_me:$LINENO: checking for int8" >&5
15228 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15229 if test "${ac_cv_type_int8+set}" = set; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 #include "confdefs.h"
15235 #include <stdio.h>
15236 #ifdef HAVE_SUPPORTDEFS_H
15237 #include <SupportDefs.h>
15238 #endif
15239
15240 #ifdef F77_DUMMY_MAIN
15241 #  ifdef __cplusplus
15242      extern "C"
15243 #  endif
15244    int F77_DUMMY_MAIN() { return 1; }
15245 #endif
15246 int
15247 main ()
15248 {
15249 if ((int8 *) 0)
15250   return 0;
15251 if (sizeof (int8))
15252   return 0;
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259   (eval $ac_compile) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } &&
15263          { ac_try='test -s conftest.$ac_objext'
15264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265   (eval $ac_try) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   ac_cv_type_int8=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15273 ac_cv_type_int8=no
15274 fi
15275 rm -f conftest.$ac_objext conftest.$ac_ext
15276 fi
15277 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15278 echo "${ECHO_T}$ac_cv_type_int8" >&6
15279 if test $ac_cv_type_int8 = yes; then
15280
15281 cat >>confdefs.h <<_ACEOF
15282 #define HAVE_INT8 1
15283 _ACEOF
15284
15285
15286 fi
15287 echo "$as_me:$LINENO: checking for uint8" >&5
15288 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15289 if test "${ac_cv_type_uint8+set}" = set; then
15290   echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292   cat >conftest.$ac_ext <<_ACEOF
15293 #line $LINENO "configure"
15294 #include "confdefs.h"
15295 #include <stdio.h>
15296 #ifdef HAVE_SUPPORTDEFS_H
15297 #include <SupportDefs.h>
15298 #endif
15299
15300 #ifdef F77_DUMMY_MAIN
15301 #  ifdef __cplusplus
15302      extern "C"
15303 #  endif
15304    int F77_DUMMY_MAIN() { return 1; }
15305 #endif
15306 int
15307 main ()
15308 {
15309 if ((uint8 *) 0)
15310   return 0;
15311 if (sizeof (uint8))
15312   return 0;
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319   (eval $ac_compile) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_cv_type_uint8=yes
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15333 ac_cv_type_uint8=no
15334 fi
15335 rm -f conftest.$ac_objext conftest.$ac_ext
15336 fi
15337 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15338 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15339 if test $ac_cv_type_uint8 = yes; then
15340
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_UINT8 1
15343 _ACEOF
15344
15345
15346 fi
15347 echo "$as_me:$LINENO: checking for int64" >&5
15348 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15349 if test "${ac_cv_type_int64+set}" = set; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 else
15352   cat >conftest.$ac_ext <<_ACEOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15355 #include <stdio.h>
15356 #ifdef HAVE_SUPPORTDEFS_H
15357 #include <SupportDefs.h>
15358 #endif
15359
15360 #ifdef F77_DUMMY_MAIN
15361 #  ifdef __cplusplus
15362      extern "C"
15363 #  endif
15364    int F77_DUMMY_MAIN() { return 1; }
15365 #endif
15366 int
15367 main ()
15368 {
15369 if ((int64 *) 0)
15370   return 0;
15371 if (sizeof (int64))
15372   return 0;
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15379   (eval $ac_compile) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } &&
15383          { ac_try='test -s conftest.$ac_objext'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; }; then
15389   ac_cv_type_int64=yes
15390 else
15391   echo "$as_me: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15393 ac_cv_type_int64=no
15394 fi
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15398 echo "${ECHO_T}$ac_cv_type_int64" >&6
15399 if test $ac_cv_type_int64 = yes; then
15400
15401 cat >>confdefs.h <<_ACEOF
15402 #define HAVE_INT64 1
15403 _ACEOF
15404
15405
15406 fi
15407 echo "$as_me:$LINENO: checking for uint64" >&5
15408 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15409 if test "${ac_cv_type_uint64+set}" = set; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 #include "confdefs.h"
15415 #include <stdio.h>
15416 #ifdef HAVE_SUPPORTDEFS_H
15417 #include <SupportDefs.h>
15418 #endif
15419
15420 #ifdef F77_DUMMY_MAIN
15421 #  ifdef __cplusplus
15422      extern "C"
15423 #  endif
15424    int F77_DUMMY_MAIN() { return 1; }
15425 #endif
15426 int
15427 main ()
15428 {
15429 if ((uint64 *) 0)
15430   return 0;
15431 if (sizeof (uint64))
15432   return 0;
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439   (eval $ac_compile) 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } &&
15443          { ac_try='test -s conftest.$ac_objext'
15444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445   (eval $ac_try) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); }; }; then
15449   ac_cv_type_uint64=yes
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 ac_cv_type_uint64=no
15454 fi
15455 rm -f conftest.$ac_objext conftest.$ac_ext
15456 fi
15457 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15458 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15459 if test $ac_cv_type_uint64 = yes; then
15460
15461 cat >>confdefs.h <<_ACEOF
15462 #define HAVE_UINT64 1
15463 _ACEOF
15464
15465
15466 fi
15467
15468
15469 # We also check for sig_atomic_t, which *should* be defined per ANSI
15470 # C, but is missing on some old platforms.
15471 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15472 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15473 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   cat >conftest.$ac_ext <<_ACEOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15479 #include <signal.h>
15480
15481 #ifdef F77_DUMMY_MAIN
15482 #  ifdef __cplusplus
15483      extern "C"
15484 #  endif
15485    int F77_DUMMY_MAIN() { return 1; }
15486 #endif
15487 int
15488 main ()
15489 {
15490 if ((sig_atomic_t *) 0)
15491   return 0;
15492 if (sizeof (sig_atomic_t))
15493   return 0;
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500   (eval $ac_compile) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -s conftest.$ac_objext'
15505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506   (eval $ac_try) 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_cv_type_sig_atomic_t=yes
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15514 ac_cv_type_sig_atomic_t=no
15515 fi
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15517 fi
15518 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15519 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15520 if test $ac_cv_type_sig_atomic_t = yes; then
15521
15522 cat >>confdefs.h <<_ACEOF
15523 #define HAVE_SIG_ATOMIC_T 1
15524 _ACEOF
15525
15526
15527 fi
15528
15529
15530
15531 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15532 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15533 if test "${pgac_cv_func_posix_signals+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15538 #include "confdefs.h"
15539 #include <signal.h>
15540
15541 #ifdef F77_DUMMY_MAIN
15542 #  ifdef __cplusplus
15543      extern "C"
15544 #  endif
15545    int F77_DUMMY_MAIN() { return 1; }
15546 #endif
15547 int
15548 main ()
15549 {
15550 struct sigaction act, oact;
15551 sigemptyset(&act.sa_mask);
15552 act.sa_flags = SA_RESTART;
15553 sigaction(0, &act, &oact);
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560   (eval $ac_link) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } &&
15564          { ac_try='test -s conftest$ac_exeext'
15565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566   (eval $ac_try) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   pgac_cv_func_posix_signals=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 pgac_cv_func_posix_signals=no
15575 fi
15576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15577 fi
15578 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15579 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15580 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15581
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_POSIX_SIGNALS
15584 _ACEOF
15585
15586 fi
15587 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15588
15589
15590
15591 if test "$enable_nls" = yes ; then
15592
15593   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15594 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15595 if test "${ac_cv_search_gettext+set}" = set; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   ac_func_search_save_LIBS=$LIBS
15599 ac_cv_search_gettext=no
15600 cat >conftest.$ac_ext <<_ACEOF
15601 #line $LINENO "configure"
15602 #include "confdefs.h"
15603
15604 /* Override any gcc2 internal prototype to avoid an error.  */
15605 #ifdef __cplusplus
15606 extern "C"
15607 #endif
15608 /* We use char because int might match the return type of a gcc2
15609    builtin and then its argument prototype would still apply.  */
15610 char gettext ();
15611 #ifdef F77_DUMMY_MAIN
15612 #  ifdef __cplusplus
15613      extern "C"
15614 #  endif
15615    int F77_DUMMY_MAIN() { return 1; }
15616 #endif
15617 int
15618 main ()
15619 {
15620 gettext ();
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627   (eval $ac_link) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } &&
15631          { ac_try='test -s conftest$ac_exeext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   ac_cv_search_gettext="none required"
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 cat conftest.$ac_ext >&5
15641 fi
15642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643 if test "$ac_cv_search_gettext" = no; then
15644   for ac_lib in intl; do
15645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15646     cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 #include "confdefs.h"
15649
15650 /* Override any gcc2 internal prototype to avoid an error.  */
15651 #ifdef __cplusplus
15652 extern "C"
15653 #endif
15654 /* We use char because int might match the return type of a gcc2
15655    builtin and then its argument prototype would still apply.  */
15656 char gettext ();
15657 #ifdef F77_DUMMY_MAIN
15658 #  ifdef __cplusplus
15659      extern "C"
15660 #  endif
15661    int F77_DUMMY_MAIN() { return 1; }
15662 #endif
15663 int
15664 main ()
15665 {
15666 gettext ();
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673   (eval $ac_link) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -s conftest$ac_exeext'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_search_gettext="-l$ac_lib"
15684 break
15685 else
15686   echo "$as_me: failed program was:" >&5
15687 cat conftest.$ac_ext >&5
15688 fi
15689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15690   done
15691 fi
15692 LIBS=$ac_func_search_save_LIBS
15693 fi
15694 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15695 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15696 if test "$ac_cv_search_gettext" != no; then
15697   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15698
15699 else
15700   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15701 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15702    { (exit 1); exit 1; }; }
15703 fi
15704
15705   if test "${ac_cv_header_libintl_h+set}" = set; then
15706   echo "$as_me:$LINENO: checking for libintl.h" >&5
15707 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15708 if test "${ac_cv_header_libintl_h+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 fi
15711 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15713 else
15714   # Is the header compilable?
15715 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15716 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15719 #include "confdefs.h"
15720 $ac_includes_default
15721 #include <libintl.h>
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } &&
15729          { ac_try='test -s conftest.$ac_objext'
15730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731   (eval $ac_try) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; }; then
15735   ac_header_compiler=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ac_header_compiler=no
15740 fi
15741 rm -f conftest.$ac_objext conftest.$ac_ext
15742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15743 echo "${ECHO_T}$ac_header_compiler" >&6
15744
15745 # Is the header present?
15746 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15747 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15749 #line $LINENO "configure"
15750 #include "confdefs.h"
15751 #include <libintl.h>
15752 _ACEOF
15753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15755   ac_status=$?
15756   egrep -v '^ *\+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } >/dev/null; then
15761   if test -s conftest.err; then
15762     ac_cpp_err=$ac_c_preproc_warn_flag
15763   else
15764     ac_cpp_err=
15765   fi
15766 else
15767   ac_cpp_err=yes
15768 fi
15769 if test -z "$ac_cpp_err"; then
15770   ac_header_preproc=yes
15771 else
15772   echo "$as_me: failed program was:" >&5
15773   cat conftest.$ac_ext >&5
15774   ac_header_preproc=no
15775 fi
15776 rm -f conftest.err conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6
15779
15780 # So?  What about this header?
15781 case $ac_header_compiler:$ac_header_preproc in
15782   yes:no )
15783     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15786 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15787   no:yes )
15788     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15793 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15794 esac
15795 echo "$as_me:$LINENO: checking for libintl.h" >&5
15796 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15797 if test "${ac_cv_header_libintl_h+set}" = set; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   ac_cv_header_libintl_h=$ac_header_preproc
15801 fi
15802 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15803 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15804
15805 fi
15806 if test $ac_cv_header_libintl_h = yes; then
15807   :
15808 else
15809   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15810 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15811    { (exit 1); exit 1; }; }
15812 fi
15813
15814
15815   for ac_prog in msgfmt
15816 do
15817   # Extract the first word of "$ac_prog", so it can be a program name with args.
15818 set dummy $ac_prog; ac_word=$2
15819 echo "$as_me:$LINENO: checking for $ac_word" >&5
15820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15821 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   if test -n "$MSGFMT"; then
15825   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15826 else
15827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15828 for as_dir in $PATH
15829 do
15830   IFS=$as_save_IFS
15831   test -z "$as_dir" && as_dir=.
15832   for ac_exec_ext in '' $ac_executable_extensions; do
15833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15834     ac_cv_prog_MSGFMT="$ac_prog"
15835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15836     break 2
15837   fi
15838 done
15839 done
15840
15841 fi
15842 fi
15843 MSGFMT=$ac_cv_prog_MSGFMT
15844 if test -n "$MSGFMT"; then
15845   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15846 echo "${ECHO_T}$MSGFMT" >&6
15847 else
15848   echo "$as_me:$LINENO: result: no" >&5
15849 echo "${ECHO_T}no" >&6
15850 fi
15851
15852   test -n "$MSGFMT" && break
15853 done
15854
15855   if test -z "$MSGFMT"; then
15856     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15857 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15858    { (exit 1); exit 1; }; }
15859   fi
15860   for ac_prog in msgmerge
15861 do
15862   # Extract the first word of "$ac_prog", so it can be a program name with args.
15863 set dummy $ac_prog; ac_word=$2
15864 echo "$as_me:$LINENO: checking for $ac_word" >&5
15865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15866 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   if test -n "$MSGMERGE"; then
15870   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15871 else
15872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15873 for as_dir in $PATH
15874 do
15875   IFS=$as_save_IFS
15876   test -z "$as_dir" && as_dir=.
15877   for ac_exec_ext in '' $ac_executable_extensions; do
15878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15879     ac_cv_prog_MSGMERGE="$ac_prog"
15880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15881     break 2
15882   fi
15883 done
15884 done
15885
15886 fi
15887 fi
15888 MSGMERGE=$ac_cv_prog_MSGMERGE
15889 if test -n "$MSGMERGE"; then
15890   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15891 echo "${ECHO_T}$MSGMERGE" >&6
15892 else
15893   echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15895 fi
15896
15897   test -n "$MSGMERGE" && break
15898 done
15899
15900   for ac_prog in xgettext
15901 do
15902   # Extract the first word of "$ac_prog", so it can be a program name with args.
15903 set dummy $ac_prog; ac_word=$2
15904 echo "$as_me:$LINENO: checking for $ac_word" >&5
15905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15906 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15907   echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909   if test -n "$XGETTEXT"; then
15910   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15911 else
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15914 do
15915   IFS=$as_save_IFS
15916   test -z "$as_dir" && as_dir=.
15917   for ac_exec_ext in '' $ac_executable_extensions; do
15918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919     ac_cv_prog_XGETTEXT="$ac_prog"
15920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15921     break 2
15922   fi
15923 done
15924 done
15925
15926 fi
15927 fi
15928 XGETTEXT=$ac_cv_prog_XGETTEXT
15929 if test -n "$XGETTEXT"; then
15930   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15931 echo "${ECHO_T}$XGETTEXT" >&6
15932 else
15933   echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6
15935 fi
15936
15937   test -n "$XGETTEXT" && break
15938 done
15939
15940
15941   # Note: share/locale is always the default, independent of $datadir
15942   localedir='${prefix}/share/locale'
15943   if test x"$prefix" = x"NONE"; then
15944     exp_localedir="$ac_default_prefix/share/locale"
15945   else
15946     exp_localedir="$prefix/share/locale"
15947   fi
15948
15949
15950
15951 cat >>confdefs.h <<_ACEOF
15952 #define LOCALEDIR "$exp_localedir"
15953 _ACEOF
15954
15955
15956 fi
15957
15958 if test "$with_CXX" = yes; then
15959
15960
15961 ac_ext=cc
15962 ac_cpp='$CXXCPP $CPPFLAGS'
15963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15966
15967 if test "${ac_cv_header_string+set}" = set; then
15968   echo "$as_me:$LINENO: checking for string" >&5
15969 echo $ECHO_N "checking for string... $ECHO_C" >&6
15970 if test "${ac_cv_header_string+set}" = set; then
15971   echo $ECHO_N "(cached) $ECHO_C" >&6
15972 fi
15973 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15974 echo "${ECHO_T}$ac_cv_header_string" >&6
15975 else
15976   # Is the header compilable?
15977 echo "$as_me:$LINENO: checking string usability" >&5
15978 echo $ECHO_N "checking string usability... $ECHO_C" >&6
15979 cat >conftest.$ac_ext <<_ACEOF
15980 #line $LINENO "configure"
15981 #include "confdefs.h"
15982 $ac_includes_default
15983 #include <string>
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987   (eval $ac_compile) 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -s conftest.$ac_objext'
15992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993   (eval $ac_try) 2>&5
15994   ac_status=$?
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); }; }; then
15997   ac_header_compiler=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 ac_header_compiler=no
16002 fi
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16005 echo "${ECHO_T}$ac_header_compiler" >&6
16006
16007 # Is the header present?
16008 echo "$as_me:$LINENO: checking string presence" >&5
16009 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16011 #line $LINENO "configure"
16012 #include "confdefs.h"
16013 #include <string>
16014 _ACEOF
16015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16017   ac_status=$?
16018   egrep -v '^ *\+' conftest.er1 >conftest.err
16019   rm -f conftest.er1
16020   cat conftest.err >&5
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } >/dev/null; then
16023   if test -s conftest.err; then
16024     ac_cpp_err=$ac_cxx_preproc_warn_flag
16025   else
16026     ac_cpp_err=
16027   fi
16028 else
16029   ac_cpp_err=yes
16030 fi
16031 if test -z "$ac_cpp_err"; then
16032   ac_header_preproc=yes
16033 else
16034   echo "$as_me: failed program was:" >&5
16035   cat conftest.$ac_ext >&5
16036   ac_header_preproc=no
16037 fi
16038 rm -f conftest.err conftest.$ac_ext
16039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 echo "${ECHO_T}$ac_header_preproc" >&6
16041
16042 # So?  What about this header?
16043 case $ac_header_compiler:$ac_header_preproc in
16044   yes:no )
16045     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16046 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16048 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16049   no:yes )
16050     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16051 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16052     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16053 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16054     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16056 esac
16057 echo "$as_me:$LINENO: checking for string" >&5
16058 echo $ECHO_N "checking for string... $ECHO_C" >&6
16059 if test "${ac_cv_header_string+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   ac_cv_header_string=$ac_header_preproc
16063 fi
16064 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16065 echo "${ECHO_T}$ac_cv_header_string" >&6
16066
16067 fi
16068 if test $ac_cv_header_string = yes; then
16069
16070 cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_CXX_STRING_HEADER 1
16072 _ACEOF
16073
16074 else
16075   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16076 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16077 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16078   echo $ECHO_N "(cached) $ECHO_C" >&6
16079 else
16080   cat >conftest.$ac_ext <<_ACEOF
16081 #line $LINENO "configure"
16082 #include "confdefs.h"
16083 #include <stdio.h>
16084 #include <stdlib.h>
16085 #include <string.h>
16086
16087 #ifdef F77_DUMMY_MAIN
16088 #  ifdef __cplusplus
16089      extern "C"
16090 #  endif
16091    int F77_DUMMY_MAIN() { return 1; }
16092 #endif
16093 int
16094 main ()
16095 {
16096 string foo = "test"
16097   ;
16098   return 0;
16099 }
16100 _ACEOF
16101 rm -f conftest.$ac_objext
16102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16103   (eval $ac_compile) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } &&
16107          { ac_try='test -s conftest.$ac_objext'
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_class_string_in_string_h=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 pgac_cv_class_string_in_string_h=no
16118 fi
16119 rm -f conftest.$ac_objext conftest.$ac_ext
16120 fi
16121 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16122 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16123
16124   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16125     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16126 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16127    { (exit 1); exit 1; }; }
16128   fi
16129
16130 fi
16131
16132
16133 ac_ext=c
16134 ac_cpp='$CPP $CPPFLAGS'
16135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16138
16139
16140 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16141 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16142 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145
16146 ac_ext=cc
16147 ac_cpp='$CXXCPP $CPPFLAGS'
16148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16151
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16154 #include "confdefs.h"
16155 #include <stdio.h>
16156 #include <stdlib.h>
16157 #ifdef HAVE_CXX_STRING_HEADER
16158 #include <string>
16159 #endif
16160 using namespace std;
16161
16162 #ifdef F77_DUMMY_MAIN
16163 #  ifdef __cplusplus
16164      extern "C"
16165 #  endif
16166    int F77_DUMMY_MAIN() { return 1; }
16167 #endif
16168 int
16169 main ()
16170 {
16171
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16178   (eval $ac_compile) 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } &&
16182          { ac_try='test -s conftest.$ac_objext'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; }; then
16188   pgac_cv_cxx_namespace_std=yes
16189 else
16190   echo "$as_me: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16192 pgac_cv_cxx_namespace_std=no
16193 fi
16194 rm -f conftest.$ac_objext conftest.$ac_ext
16195 ac_ext=c
16196 ac_cpp='$CPP $CPPFLAGS'
16197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16200
16201 fi
16202 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16203 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16204
16205 if test $pgac_cv_cxx_namespace_std = yes ; then
16206
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE_NAMESPACE_STD 1
16209 _ACEOF
16210
16211 fi
16212 fi
16213
16214
16215 # Check for Tcl configuration script tclConfig.sh
16216 if test "$with_tcl" = yes; then
16217     for ac_prog in tclsh tcl
16218 do
16219   # Extract the first word of "$ac_prog", so it can be a program name with args.
16220 set dummy $ac_prog; ac_word=$2
16221 echo "$as_me:$LINENO: checking for $ac_word" >&5
16222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16223 if test "${ac_cv_path_TCLSH+set}" = set; then
16224   echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226   case $TCLSH in
16227   [\\/]* | ?:[\\/]*)
16228   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16229   ;;
16230   *)
16231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $PATH
16233 do
16234   IFS=$as_save_IFS
16235   test -z "$as_dir" && as_dir=.
16236   for ac_exec_ext in '' $ac_executable_extensions; do
16237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16240     break 2
16241   fi
16242 done
16243 done
16244
16245   ;;
16246 esac
16247 fi
16248 TCLSH=$ac_cv_path_TCLSH
16249
16250 if test -n "$TCLSH"; then
16251   echo "$as_me:$LINENO: result: $TCLSH" >&5
16252 echo "${ECHO_T}$TCLSH" >&6
16253 else
16254   echo "$as_me:$LINENO: result: no" >&5
16255 echo "${ECHO_T}no" >&6
16256 fi
16257
16258   test -n "$TCLSH" && break
16259 done
16260
16261 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16262 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16263 # Let user override test
16264 if test -z "$TCL_CONFIG_SH"; then
16265     pgac_test_dirs="$with_tclconfig"
16266
16267     set X $pgac_test_dirs; shift
16268     if test $# -eq 0; then
16269         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16270 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16271    { (exit 1); exit 1; }; }
16272         set X `echo 'puts $auto_path' | $TCLSH`; shift
16273     fi
16274
16275     for pgac_dir do
16276         if test -r "$pgac_dir/tclConfig.sh"; then
16277             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16278             break
16279         fi
16280     done
16281 fi
16282
16283 if test -z "$TCL_CONFIG_SH"; then
16284     echo "$as_me:$LINENO: result: no" >&5
16285 echo "${ECHO_T}no" >&6
16286     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16287 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16288    { (exit 1); exit 1; }; }
16289 else
16290     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16291 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16292 fi
16293
16294
16295
16296 fi
16297
16298 # Check for Tk configuration script tkConfig.sh
16299 if test "$with_tk" = yes; then
16300     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16301 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16302 # Let user override test
16303 if test -z "$TK_CONFIG_SH"; then
16304     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16305
16306     set X $pgac_test_dirs; shift
16307     if test $# -eq 0; then
16308         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16309 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16310    { (exit 1); exit 1; }; }
16311         set X `echo 'puts $auto_path' | $TCLSH`; shift
16312     fi
16313
16314     for pgac_dir do
16315         if test -r "$pgac_dir/tkConfig.sh"; then
16316             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16317             break
16318         fi
16319     done
16320 fi
16321
16322 if test -z "$TK_CONFIG_SH"; then
16323     echo "$as_me:$LINENO: result: no" >&5
16324 echo "${ECHO_T}no" >&6
16325     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16326 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16327    { (exit 1); exit 1; }; }
16328 else
16329     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16330 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16331 fi
16332
16333
16334
16335 fi
16336
16337
16338 #
16339 # Check for DocBook and tools
16340 #
16341 for ac_prog in onsgmls nsgmls
16342 do
16343   # Extract the first word of "$ac_prog", so it can be a program name with args.
16344 set dummy $ac_prog; ac_word=$2
16345 echo "$as_me:$LINENO: checking for $ac_word" >&5
16346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16347 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   if test -n "$NSGMLS"; then
16351   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16352 else
16353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354 for as_dir in $PATH
16355 do
16356   IFS=$as_save_IFS
16357   test -z "$as_dir" && as_dir=.
16358   for ac_exec_ext in '' $ac_executable_extensions; do
16359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16360     ac_cv_prog_NSGMLS="$ac_prog"
16361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16362     break 2
16363   fi
16364 done
16365 done
16366
16367 fi
16368 fi
16369 NSGMLS=$ac_cv_prog_NSGMLS
16370 if test -n "$NSGMLS"; then
16371   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16372 echo "${ECHO_T}$NSGMLS" >&6
16373 else
16374   echo "$as_me:$LINENO: result: no" >&5
16375 echo "${ECHO_T}no" >&6
16376 fi
16377
16378   test -n "$NSGMLS" && break
16379 done
16380
16381 for ac_prog in openjade jade
16382 do
16383   # Extract the first word of "$ac_prog", so it can be a program name with args.
16384 set dummy $ac_prog; ac_word=$2
16385 echo "$as_me:$LINENO: checking for $ac_word" >&5
16386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16387 if test "${ac_cv_prog_JADE+set}" = set; then
16388   echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390   if test -n "$JADE"; then
16391   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16392 else
16393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16394 for as_dir in $PATH
16395 do
16396   IFS=$as_save_IFS
16397   test -z "$as_dir" && as_dir=.
16398   for ac_exec_ext in '' $ac_executable_extensions; do
16399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16400     ac_cv_prog_JADE="$ac_prog"
16401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16402     break 2
16403   fi
16404 done
16405 done
16406
16407 fi
16408 fi
16409 JADE=$ac_cv_prog_JADE
16410 if test -n "$JADE"; then
16411   echo "$as_me:$LINENO: result: $JADE" >&5
16412 echo "${ECHO_T}$JADE" >&6
16413 else
16414   echo "$as_me:$LINENO: result: no" >&5
16415 echo "${ECHO_T}no" >&6
16416 fi
16417
16418   test -n "$JADE" && break
16419 done
16420
16421
16422 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16423 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16424 if test "${pgac_cv_check_docbook+set}" = set; then
16425   echo $ECHO_N "(cached) $ECHO_C" >&6
16426 else
16427   cat >conftest.sgml <<EOF
16428 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16429 <book>
16430  <title>test</title>
16431  <chapter>
16432   <title>random</title>
16433    <sect1>
16434     <title>testsect</title>
16435     <para>text</para>
16436   </sect1>
16437  </chapter>
16438 </book>
16439 EOF
16440
16441 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16442 if test $? -eq 0; then
16443   pgac_cv_check_docbook=yes
16444 else
16445   pgac_cv_check_docbook=no
16446 fi
16447 rm -f conftest.sgml
16448 fi
16449 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16450 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16451
16452 have_docbook=$pgac_cv_check_docbook
16453
16454
16455 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16456 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16457 if test "${pgac_cv_path_stylesheets+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   if test -n "$DOCBOOKSTYLE"; then
16461   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16462 else
16463   for pgac_prefix in /usr /usr/local /opt; do
16464     for pgac_infix in share lib; do
16465       for pgac_postfix in \
16466         sgml/stylesheets/nwalsh-modular \
16467         sgml/stylesheets/docbook \
16468         sgml/docbook/dsssl/modular \
16469         sgml/docbook/dsssl-stylesheets
16470       do
16471         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16472         if test -r "$pgac_candidate/html/docbook.dsl" \
16473            && test -r "$pgac_candidate/print/docbook.dsl"
16474         then
16475           pgac_cv_path_stylesheets=$pgac_candidate
16476           break 3
16477         fi
16478       done
16479     done
16480   done
16481 fi
16482 fi
16483
16484 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16485
16486 if test -n "$DOCBOOKSTYLE"; then
16487   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16488 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16489 else
16490   echo "$as_me:$LINENO: result: no" >&5
16491 echo "${ECHO_T}no" >&6
16492 fi
16493 if test -n "$DOCBOOKSTYLE"; then
16494   for ac_prog in collateindex.pl
16495 do
16496   # Extract the first word of "$ac_prog", so it can be a program name with args.
16497 set dummy $ac_prog; ac_word=$2
16498 echo "$as_me:$LINENO: checking for $ac_word" >&5
16499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16500 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   case $COLLATEINDEX in
16504   [\\/]* | ?:[\\/]*)
16505   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16506   ;;
16507   *)
16508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $DOCBOOKSTYLE/bin $PATH
16510 do
16511   IFS=$as_save_IFS
16512   test -z "$as_dir" && as_dir=.
16513   for ac_exec_ext in '' $ac_executable_extensions; do
16514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16517     break 2
16518   fi
16519 done
16520 done
16521
16522   ;;
16523 esac
16524 fi
16525 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16526
16527 if test -n "$COLLATEINDEX"; then
16528   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16529 echo "${ECHO_T}$COLLATEINDEX" >&6
16530 else
16531   echo "$as_me:$LINENO: result: no" >&5
16532 echo "${ECHO_T}no" >&6
16533 fi
16534
16535   test -n "$COLLATEINDEX" && break
16536 done
16537
16538 else
16539   for ac_prog in collateindex.pl
16540 do
16541   # Extract the first word of "$ac_prog", so it can be a program name with args.
16542 set dummy $ac_prog; ac_word=$2
16543 echo "$as_me:$LINENO: checking for $ac_word" >&5
16544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16545 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   case $COLLATEINDEX in
16549   [\\/]* | ?:[\\/]*)
16550   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16551   ;;
16552   *)
16553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16555 do
16556   IFS=$as_save_IFS
16557   test -z "$as_dir" && as_dir=.
16558   for ac_exec_ext in '' $ac_executable_extensions; do
16559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16560     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16562     break 2
16563   fi
16564 done
16565 done
16566
16567   ;;
16568 esac
16569 fi
16570 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16571
16572 if test -n "$COLLATEINDEX"; then
16573   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16574 echo "${ECHO_T}$COLLATEINDEX" >&6
16575 else
16576   echo "$as_me:$LINENO: result: no" >&5
16577 echo "${ECHO_T}no" >&6
16578 fi
16579
16580   test -n "$COLLATEINDEX" && break
16581 done
16582
16583 fi
16584 for ac_prog in sgmlspl
16585 do
16586   # Extract the first word of "$ac_prog", so it can be a program name with args.
16587 set dummy $ac_prog; ac_word=$2
16588 echo "$as_me:$LINENO: checking for $ac_word" >&5
16589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16590 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   if test -n "$SGMLSPL"; then
16594   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16595 else
16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16598 do
16599   IFS=$as_save_IFS
16600   test -z "$as_dir" && as_dir=.
16601   for ac_exec_ext in '' $ac_executable_extensions; do
16602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603     ac_cv_prog_SGMLSPL="$ac_prog"
16604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16605     break 2
16606   fi
16607 done
16608 done
16609
16610 fi
16611 fi
16612 SGMLSPL=$ac_cv_prog_SGMLSPL
16613 if test -n "$SGMLSPL"; then
16614   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16615 echo "${ECHO_T}$SGMLSPL" >&6
16616 else
16617   echo "$as_me:$LINENO: result: no" >&5
16618 echo "${ECHO_T}no" >&6
16619 fi
16620
16621   test -n "$SGMLSPL" && break
16622 done
16623
16624
16625
16626 # prepare build tree if outside source tree
16627 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16628 # Note 2: /bin/pwd might be better than shell's built-in at getting
16629 #         a symlink-free name.
16630 if test "$no_create" != yes; then
16631   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16632     :
16633   else
16634     vpath_build=yes
16635
16636     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16637     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16638     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16639       || { { echo "$as_me:$LINENO: error: failed" >&5
16640 echo "$as_me: error: failed" >&2;}
16641    { (exit 1); exit 1; }; }
16642     echo "$as_me:$LINENO: result: done" >&5
16643 echo "${ECHO_T}done" >&6
16644   fi
16645 fi
16646
16647
16648 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16649
16650
16651 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c 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}"
16652
16653
16654 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16655
16656
16657 cat >confcache <<\_ACEOF
16658 # This file is a shell script that caches the results of configure
16659 # tests run on this system so they can be shared between configure
16660 # scripts and configure runs, see configure's option --config-cache.
16661 # It is not useful on other systems.  If it contains results you don't
16662 # want to keep, you may remove or edit it.
16663 #
16664 # config.status only pays attention to the cache file if you give it
16665 # the --recheck option to rerun configure.
16666 #
16667 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16669 # following values.
16670
16671 _ACEOF
16672
16673 # The following way of writing the cache mishandles newlines in values,
16674 # but we know of no workaround that is simple, portable, and efficient.
16675 # So, don't put newlines in cache variables' values.
16676 # Ultrix sh set writes to stderr and can't be redirected directly,
16677 # and sets the high bit in the cache file unless we assign to the vars.
16678 {
16679   (set) 2>&1 |
16680     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16681     *ac_space=\ *)
16682       # `set' does not quote correctly, so add quotes (double-quote
16683       # substitution turns \\\\ into \\, and sed turns \\ into \).
16684       sed -n \
16685         "s/'/'\\\\''/g;
16686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16687       ;;
16688     *)
16689       # `set' quotes correctly as required by POSIX, so do not add quotes.
16690       sed -n \
16691         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16692       ;;
16693     esac;
16694 } |
16695   sed '
16696      t clear
16697      : clear
16698      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16699      t end
16700      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16701      : end' >>confcache
16702 if cmp -s $cache_file confcache; then :; else
16703   if test -w $cache_file; then
16704     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16705     cat confcache >$cache_file
16706   else
16707     echo "not updating unwritable cache $cache_file"
16708   fi
16709 fi
16710 rm -f confcache
16711
16712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16713 # Let make expand exec_prefix.
16714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16715
16716 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16717 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16718 # trailing colons and then remove the whole line if VPATH becomes empty
16719 # (actually we leave an empty line to preserve line numbers).
16720 if test "x$srcdir" = x.; then
16721   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16722 s/:*\$(srcdir):*/:/;
16723 s/:*\${srcdir}:*/:/;
16724 s/:*@srcdir@:*/:/;
16725 s/^\([^=]*=[    ]*\):*/\1/;
16726 s/:*$//;
16727 s/^[^=]*=[      ]*$//;
16728 }'
16729 fi
16730
16731 DEFS=-DHAVE_CONFIG_H
16732
16733
16734 : ${CONFIG_STATUS=./config.status}
16735 ac_clean_files_save=$ac_clean_files
16736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16739 cat >$CONFIG_STATUS <<_ACEOF
16740 #! $SHELL
16741 # Generated by $as_me.
16742 # Run this file to recreate the current configuration.
16743 # Compiler output produced by configure, useful for debugging
16744 # configure, is in config.log if it exists.
16745
16746 debug=false
16747 SHELL=\${CONFIG_SHELL-$SHELL}
16748 _ACEOF
16749
16750 cat >>$CONFIG_STATUS <<\_ACEOF
16751
16752 ## --------------------- ##
16753 ## M4sh Initialization.  ##
16754 ## --------------------- ##
16755
16756 # Be Bourne compatible
16757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16758   emulate sh
16759   NULLCMD=:
16760 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16761   set -o posix
16762 fi
16763
16764 # NLS nuisances.
16765 # Support unset when possible.
16766 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16767   as_unset=unset
16768 else
16769   as_unset=false
16770 fi
16771
16772 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16773     { $as_unset LANG || test "${LANG+set}" != set; } ||
16774       { LANG=C; export LANG; }
16775 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16776     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16777       { LC_ALL=C; export LC_ALL; }
16778 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16779     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16780       { LC_TIME=C; export LC_TIME; }
16781 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16782     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16783       { LC_CTYPE=C; export LC_CTYPE; }
16784 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16785     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16786       { LANGUAGE=C; export LANGUAGE; }
16787 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16788     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16789       { LC_COLLATE=C; export LC_COLLATE; }
16790 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16791     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16792       { LC_NUMERIC=C; export LC_NUMERIC; }
16793 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16794     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16795       { LC_MESSAGES=C; export LC_MESSAGES; }
16796
16797
16798 # Name of the executable.
16799 as_me=`(basename "$0") 2>/dev/null ||
16800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16801          X"$0" : 'X\(//\)$' \| \
16802          X"$0" : 'X\(/\)$' \| \
16803          .     : '\(.\)' 2>/dev/null ||
16804 echo X/"$0" |
16805     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16806           /^X\/\(\/\/\)$/{ s//\1/; q; }
16807           /^X\/\(\/\).*/{ s//\1/; q; }
16808           s/.*/./; q'`
16809
16810 # PATH needs CR, and LINENO needs CR and PATH.
16811 # Avoid depending upon Character Ranges.
16812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16815 as_cr_digits='0123456789'
16816 as_cr_alnum=$as_cr_Letters$as_cr_digits
16817
16818 # The user is always right.
16819 if test "${PATH_SEPARATOR+set}" != set; then
16820   echo "#! /bin/sh" >conftest.sh
16821   echo  "exit 0"   >>conftest.sh
16822   chmod +x conftest.sh
16823   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16824     PATH_SEPARATOR=';'
16825   else
16826     PATH_SEPARATOR=:
16827   fi
16828   rm -f conftest.sh
16829 fi
16830
16831
16832   as_lineno_1=$LINENO
16833   as_lineno_2=$LINENO
16834   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16835   test "x$as_lineno_1" != "x$as_lineno_2" &&
16836   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16837   # Find who we are.  Look in the path if we contain no path at all
16838   # relative or not.
16839   case $0 in
16840     *[\\/]* ) as_myself=$0 ;;
16841     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in $PATH
16843 do
16844   IFS=$as_save_IFS
16845   test -z "$as_dir" && as_dir=.
16846   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16847 done
16848
16849        ;;
16850   esac
16851   # We did not find ourselves, most probably we were run as `sh COMMAND'
16852   # in which case we are not to be found in the path.
16853   if test "x$as_myself" = x; then
16854     as_myself=$0
16855   fi
16856   if test ! -f "$as_myself"; then
16857     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16858 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16859    { (exit 1); exit 1; }; }
16860   fi
16861   case $CONFIG_SHELL in
16862   '')
16863     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16865 do
16866   IFS=$as_save_IFS
16867   test -z "$as_dir" && as_dir=.
16868   for as_base in sh bash ksh sh5; do
16869          case $as_dir in
16870          /*)
16871            if ("$as_dir/$as_base" -c '
16872   as_lineno_1=$LINENO
16873   as_lineno_2=$LINENO
16874   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16875   test "x$as_lineno_1" != "x$as_lineno_2" &&
16876   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16877              CONFIG_SHELL=$as_dir/$as_base
16878              export CONFIG_SHELL
16879              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16880            fi;;
16881          esac
16882        done
16883 done
16884 ;;
16885   esac
16886
16887   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16888   # uniformly replaced by the line number.  The first 'sed' inserts a
16889   # line-number line before each line; the second 'sed' does the real
16890   # work.  The second script uses 'N' to pair each line-number line
16891   # with the numbered line, and appends trailing '-' during
16892   # substitution so that $LINENO is not a special case at line end.
16893   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16894   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16895   sed '=' <$as_myself |
16896     sed '
16897       N
16898       s,$,-,
16899       : loop
16900       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16901       t loop
16902       s,-$,,
16903       s,^['$as_cr_digits']*\n,,
16904     ' >$as_me.lineno &&
16905   chmod +x $as_me.lineno ||
16906     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16907 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16908    { (exit 1); exit 1; }; }
16909
16910   # Don't try to exec as it changes $[0], causing all sort of problems
16911   # (the dirname of $[0] is not the place where we might find the
16912   # original and so on.  Autoconf is especially sensible to this).
16913   . ./$as_me.lineno
16914   # Exit status is that of the last command.
16915   exit
16916 }
16917
16918
16919 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16920   *c*,-n*) ECHO_N= ECHO_C='
16921 ' ECHO_T='      ' ;;
16922   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16923   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16924 esac
16925
16926 if expr a : '\(a\)' >/dev/null 2>&1; then
16927   as_expr=expr
16928 else
16929   as_expr=false
16930 fi
16931
16932 rm -f conf$$ conf$$.exe conf$$.file
16933 echo >conf$$.file
16934 if ln -s conf$$.file conf$$ 2>/dev/null; then
16935   # We could just check for DJGPP; but this test a) works b) is more generic
16936   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16937   if test -f conf$$.exe; then
16938     # Don't use ln at all; we don't have any links
16939     as_ln_s='cp -p'
16940   else
16941     as_ln_s='ln -s'
16942   fi
16943 elif ln conf$$.file conf$$ 2>/dev/null; then
16944   as_ln_s=ln
16945 else
16946   as_ln_s='cp -p'
16947 fi
16948 rm -f conf$$ conf$$.exe conf$$.file
16949
16950 as_executable_p="test -f"
16951
16952 # Sed expression to map a string onto a valid CPP name.
16953 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16954
16955 # Sed expression to map a string onto a valid variable name.
16956 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16957
16958
16959 # IFS
16960 # We need space, tab and new line, in precisely that order.
16961 as_nl='
16962 '
16963 IFS="   $as_nl"
16964
16965 # CDPATH.
16966 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16967
16968 exec 6>&1
16969
16970 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16971 # report actual input values of CONFIG_FILES etc. instead of their
16972 # values after options handling.  Logging --version etc. is OK.
16973 exec 5>>config.log
16974 {
16975   echo
16976   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16977 ## Running $as_me. ##
16978 _ASBOX
16979 } >&5
16980 cat >&5 <<_CSEOF
16981
16982 This file was extended by PostgreSQL $as_me 7.3devel, which was
16983 generated by GNU Autoconf 2.53.  Invocation command line was
16984
16985   CONFIG_FILES    = $CONFIG_FILES
16986   CONFIG_HEADERS  = $CONFIG_HEADERS
16987   CONFIG_LINKS    = $CONFIG_LINKS
16988   CONFIG_COMMANDS = $CONFIG_COMMANDS
16989   $ $0 $@
16990
16991 _CSEOF
16992 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16993 echo >&5
16994 _ACEOF
16995
16996 # Files that config.status was made for.
16997 if test -n "$ac_config_files"; then
16998   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16999 fi
17000
17001 if test -n "$ac_config_headers"; then
17002   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17003 fi
17004
17005 if test -n "$ac_config_links"; then
17006   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17007 fi
17008
17009 if test -n "$ac_config_commands"; then
17010   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17011 fi
17012
17013 cat >>$CONFIG_STATUS <<\_ACEOF
17014
17015 ac_cs_usage="\
17016 \`$as_me' instantiates files from templates according to the
17017 current configuration.
17018
17019 Usage: $0 [OPTIONS] [FILE]...
17020
17021   -h, --help       print this help, then exit
17022   -V, --version    print version number, then exit
17023   -d, --debug      don't remove temporary files
17024       --recheck    update $as_me by reconfiguring in the same conditions
17025   --file=FILE[:TEMPLATE]
17026                    instantiate the configuration file FILE
17027   --header=FILE[:TEMPLATE]
17028                    instantiate the configuration header FILE
17029
17030 Configuration files:
17031 $config_files
17032
17033 Configuration headers:
17034 $config_headers
17035
17036 Configuration links:
17037 $config_links
17038
17039 Report bugs to <bug-autoconf@gnu.org>."
17040 _ACEOF
17041
17042 cat >>$CONFIG_STATUS <<_ACEOF
17043 ac_cs_version="\\
17044 PostgreSQL config.status 7.3devel
17045 configured by $0, generated by GNU Autoconf 2.53,
17046   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17047
17048 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17049 Free Software Foundation, Inc.
17050 This config.status script is free software; the Free Software Foundation
17051 gives unlimited permission to copy, distribute and modify it."
17052 srcdir=$srcdir
17053 _ACEOF
17054
17055 cat >>$CONFIG_STATUS <<\_ACEOF
17056 # If no file are specified by the user, then we need to provide default
17057 # value.  By we need to know if files were specified by the user.
17058 ac_need_defaults=:
17059 while test $# != 0
17060 do
17061   case $1 in
17062   --*=*)
17063     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17064     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17065     shift
17066     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17067     shift
17068     ;;
17069   -*);;
17070   *) # This is not an option, so the user has probably given explicit
17071      # arguments.
17072      ac_need_defaults=false;;
17073   esac
17074
17075   case $1 in
17076   # Handling of the options.
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<_ACEOF
17079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17080     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17081     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17082 _ACEOF
17083 cat >>$CONFIG_STATUS <<\_ACEOF
17084   --version | --vers* | -V )
17085     echo "$ac_cs_version"; exit 0 ;;
17086   --he | --h)
17087     # Conflict between --help and --header
17088     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17089 Try \`$0 --help' for more information." >&5
17090 echo "$as_me: error: ambiguous option: $1
17091 Try \`$0 --help' for more information." >&2;}
17092    { (exit 1); exit 1; }; };;
17093   --help | --hel | -h )
17094     echo "$ac_cs_usage"; exit 0 ;;
17095   --debug | --d* | -d )
17096     debug=: ;;
17097   --file | --fil | --fi | --f )
17098     shift
17099     CONFIG_FILES="$CONFIG_FILES $1"
17100     ac_need_defaults=false;;
17101   --header | --heade | --head | --hea )
17102     shift
17103     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17104     ac_need_defaults=false;;
17105
17106   # This is an error.
17107   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17108 Try \`$0 --help' for more information." >&5
17109 echo "$as_me: error: unrecognized option: $1
17110 Try \`$0 --help' for more information." >&2;}
17111    { (exit 1); exit 1; }; } ;;
17112
17113   *) ac_config_targets="$ac_config_targets $1" ;;
17114
17115   esac
17116   shift
17117 done
17118
17119 _ACEOF
17120
17121
17122
17123
17124
17125 cat >>$CONFIG_STATUS <<\_ACEOF
17126 for ac_config_target in $ac_config_targets
17127 do
17128   case "$ac_config_target" in
17129   # Handling of arguments.
17130   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17131   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17132   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17133   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17134   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17135   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17136   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17137   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17138   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17140    { (exit 1); exit 1; }; };;
17141   esac
17142 done
17143
17144 # If the user did not use the arguments to specify the items to instantiate,
17145 # then the envvar interface is used.  Set only those that are not.
17146 # We use the long form for the default assignment because of an extremely
17147 # bizarre bug on SunOS 4.1.3.
17148 if $ac_need_defaults; then
17149   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17150   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17151   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17152 fi
17153
17154 # Create a temporary directory, and hook for its removal unless debugging.
17155 $debug ||
17156 {
17157   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17158   trap '{ (exit 1); exit 1; }' 1 2 13 15
17159 }
17160
17161 # Create a (secure) tmp directory for tmp files.
17162 : ${TMPDIR=/tmp}
17163 {
17164   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17165   test -n "$tmp" && test -d "$tmp"
17166 }  ||
17167 {
17168   tmp=$TMPDIR/cs$$-$RANDOM
17169   (umask 077 && mkdir $tmp)
17170 } ||
17171 {
17172    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17173    { (exit 1); exit 1; }
17174 }
17175
17176 _ACEOF
17177
17178 cat >>$CONFIG_STATUS <<_ACEOF
17179
17180 #
17181 # CONFIG_FILES section.
17182 #
17183
17184 # No need to generate the scripts if there are no CONFIG_FILES.
17185 # This happens for instance when ./config.status config.h
17186 if test -n "\$CONFIG_FILES"; then
17187   # Protect against being on the right side of a sed subst in config.status.
17188   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17189    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17190 s,@SHELL@,$SHELL,;t t
17191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17197 s,@exec_prefix@,$exec_prefix,;t t
17198 s,@prefix@,$prefix,;t t
17199 s,@program_transform_name@,$program_transform_name,;t t
17200 s,@bindir@,$bindir,;t t
17201 s,@sbindir@,$sbindir,;t t
17202 s,@libexecdir@,$libexecdir,;t t
17203 s,@datadir@,$datadir,;t t
17204 s,@sysconfdir@,$sysconfdir,;t t
17205 s,@sharedstatedir@,$sharedstatedir,;t t
17206 s,@localstatedir@,$localstatedir,;t t
17207 s,@libdir@,$libdir,;t t
17208 s,@includedir@,$includedir,;t t
17209 s,@oldincludedir@,$oldincludedir,;t t
17210 s,@infodir@,$infodir,;t t
17211 s,@mandir@,$mandir,;t t
17212 s,@build_alias@,$build_alias,;t t
17213 s,@host_alias@,$host_alias,;t t
17214 s,@target_alias@,$target_alias,;t t
17215 s,@DEFS@,$DEFS,;t t
17216 s,@ECHO_C@,$ECHO_C,;t t
17217 s,@ECHO_N@,$ECHO_N,;t t
17218 s,@ECHO_T@,$ECHO_T,;t t
17219 s,@LIBS@,$LIBS,;t t
17220 s,@docdir@,$docdir,;t t
17221 s,@configure_args@,$configure_args,;t t
17222 s,@build@,$build,;t t
17223 s,@build_cpu@,$build_cpu,;t t
17224 s,@build_vendor@,$build_vendor,;t t
17225 s,@build_os@,$build_os,;t t
17226 s,@host@,$host,;t t
17227 s,@host_cpu@,$host_cpu,;t t
17228 s,@host_vendor@,$host_vendor,;t t
17229 s,@host_os@,$host_os,;t t
17230 s,@PORTNAME@,$PORTNAME,;t t
17231 s,@TAS@,$TAS,;t t
17232 s,@MULTIBYTE@,$MULTIBYTE,;t t
17233 s,@enable_nls@,$enable_nls,;t t
17234 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17235 s,@default_port@,$default_port,;t t
17236 s,@enable_shared@,$enable_shared,;t t
17237 s,@enable_rpath@,$enable_rpath,;t t
17238 s,@enable_debug@,$enable_debug,;t t
17239 s,@CC@,$CC,;t t
17240 s,@CFLAGS@,$CFLAGS,;t t
17241 s,@LDFLAGS@,$LDFLAGS,;t t
17242 s,@CPPFLAGS@,$CPPFLAGS,;t t
17243 s,@ac_ct_CC@,$ac_ct_CC,;t t
17244 s,@EXEEXT@,$EXEEXT,;t t
17245 s,@OBJEXT@,$OBJEXT,;t t
17246 s,@CPP@,$CPP,;t t
17247 s,@GCC@,$GCC,;t t
17248 s,@autodepend@,$autodepend,;t t
17249 s,@INCLUDES@,$INCLUDES,;t t
17250 s,@with_tcl@,$with_tcl,;t t
17251 s,@with_tk@,$with_tk,;t t
17252 s,@with_perl@,$with_perl,;t t
17253 s,@with_python@,$with_python,;t t
17254 s,@ANT@,$ANT,;t t
17255 s,@with_java@,$with_java,;t t
17256 s,@with_krb4@,$with_krb4,;t t
17257 s,@with_krb5@,$with_krb5,;t t
17258 s,@krb_srvtab@,$krb_srvtab,;t t
17259 s,@with_pam@,$with_pam,;t t
17260 s,@with_openssl@,$with_openssl,;t t
17261 s,@enable_odbc@,$enable_odbc,;t t
17262 s,@with_unixodbc@,$with_unixodbc,;t t
17263 s,@with_iodbc@,$with_iodbc,;t t
17264 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17265 s,@ELF_SYS@,$ELF_SYS,;t t
17266 s,@CXX@,$CXX,;t t
17267 s,@CXXFLAGS@,$CXXFLAGS,;t t
17268 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17269 s,@CXXCPP@,$CXXCPP,;t t
17270 s,@with_CXX@,$with_CXX,;t t
17271 s,@GXX@,$GXX,;t t
17272 s,@AWK@,$AWK,;t t
17273 s,@FLEX@,$FLEX,;t t
17274 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17275 s,@LN_S@,$LN_S,;t t
17276 s,@LD@,$LD,;t t
17277 s,@with_gnu_ld@,$with_gnu_ld,;t t
17278 s,@ld_R_works@,$ld_R_works,;t t
17279 s,@RANLIB@,$RANLIB,;t t
17280 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17281 s,@LORDER@,$LORDER,;t t
17282 s,@TAR@,$TAR,;t t
17283 s,@STRIP@,$STRIP,;t t
17284 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17285 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17286 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17287 s,@YACC@,$YACC,;t t
17288 s,@YFLAGS@,$YFLAGS,;t t
17289 s,@WISH@,$WISH,;t t
17290 s,@PERL@,$PERL,;t t
17291 s,@perl_installsitearch@,$perl_installsitearch,;t t
17292 s,@perl_installsitelib@,$perl_installsitelib,;t t
17293 s,@perl_installman3dir@,$perl_installman3dir,;t t
17294 s,@PYTHON@,$PYTHON,;t t
17295 s,@python_version@,$python_version,;t t
17296 s,@python_prefix@,$python_prefix,;t t
17297 s,@python_execprefix@,$python_execprefix,;t t
17298 s,@python_configdir@,$python_configdir,;t t
17299 s,@python_moduledir@,$python_moduledir,;t t
17300 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17301 s,@python_includespec@,$python_includespec,;t t
17302 s,@python_libspec@,$python_libspec,;t t
17303 s,@MEMCMP@,$MEMCMP,;t t
17304 s,@SNPRINTF@,$SNPRINTF,;t t
17305 s,@ISINF@,$ISINF,;t t
17306 s,@GETRUSAGE@,$GETRUSAGE,;t t
17307 s,@SRANDOM@,$SRANDOM,;t t
17308 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17309 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17310 s,@INET_ATON@,$INET_ATON,;t t
17311 s,@STRERROR@,$STRERROR,;t t
17312 s,@STRDUP@,$STRDUP,;t t
17313 s,@STRTOL@,$STRTOL,;t t
17314 s,@STRTOUL@,$STRTOUL,;t t
17315 s,@STRCASECMP@,$STRCASECMP,;t t
17316 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17317 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17318 s,@MSGFMT@,$MSGFMT,;t t
17319 s,@MSGMERGE@,$MSGMERGE,;t t
17320 s,@XGETTEXT@,$XGETTEXT,;t t
17321 s,@localedir@,$localedir,;t t
17322 s,@TCLSH@,$TCLSH,;t t
17323 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17324 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17325 s,@NSGMLS@,$NSGMLS,;t t
17326 s,@JADE@,$JADE,;t t
17327 s,@have_docbook@,$have_docbook,;t t
17328 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17329 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17330 s,@SGMLSPL@,$SGMLSPL,;t t
17331 s,@vpath_build@,$vpath_build,;t t
17332 CEOF
17333
17334 _ACEOF
17335
17336   cat >>$CONFIG_STATUS <<\_ACEOF
17337   # Split the substitutions into bite-sized pieces for seds with
17338   # small command number limits, like on Digital OSF/1 and HP-UX.
17339   ac_max_sed_lines=48
17340   ac_sed_frag=1 # Number of current file.
17341   ac_beg=1 # First line for current file.
17342   ac_end=$ac_max_sed_lines # Line after last line for current file.
17343   ac_more_lines=:
17344   ac_sed_cmds=
17345   while $ac_more_lines; do
17346     if test $ac_beg -gt 1; then
17347       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17348     else
17349       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17350     fi
17351     if test ! -s $tmp/subs.frag; then
17352       ac_more_lines=false
17353     else
17354       # The purpose of the label and of the branching condition is to
17355       # speed up the sed processing (if there are no `@' at all, there
17356       # is no need to browse any of the substitutions).
17357       # These are the two extra sed commands mentioned above.
17358       (echo ':t
17359   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17360       if test -z "$ac_sed_cmds"; then
17361         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17362       else
17363         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17364       fi
17365       ac_sed_frag=`expr $ac_sed_frag + 1`
17366       ac_beg=$ac_end
17367       ac_end=`expr $ac_end + $ac_max_sed_lines`
17368     fi
17369   done
17370   if test -z "$ac_sed_cmds"; then
17371     ac_sed_cmds=cat
17372   fi
17373 fi # test -n "$CONFIG_FILES"
17374
17375 _ACEOF
17376 cat >>$CONFIG_STATUS <<\_ACEOF
17377 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17378   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17379   case $ac_file in
17380   - | *:- | *:-:* ) # input from stdin
17381         cat >$tmp/stdin
17382         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17383         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17384   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17385         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17386   * )   ac_file_in=$ac_file.in ;;
17387   esac
17388
17389   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17390   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17392          X"$ac_file" : 'X\(//\)[^/]' \| \
17393          X"$ac_file" : 'X\(//\)$' \| \
17394          X"$ac_file" : 'X\(/\)' \| \
17395          .     : '\(.\)' 2>/dev/null ||
17396 echo X"$ac_file" |
17397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17398           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17399           /^X\(\/\/\)$/{ s//\1/; q; }
17400           /^X\(\/\).*/{ s//\1/; q; }
17401           s/.*/./; q'`
17402   { case "$ac_dir" in
17403   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17404   *)                      as_incr_dir=.;;
17405 esac
17406 as_dummy="$ac_dir"
17407 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17408   case $as_mkdir_dir in
17409     # Skip DOS drivespec
17410     ?:) as_incr_dir=$as_mkdir_dir ;;
17411     *)
17412       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17413       test -d "$as_incr_dir" ||
17414         mkdir "$as_incr_dir" ||
17415         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17416 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17417    { (exit 1); exit 1; }; }
17418     ;;
17419   esac
17420 done; }
17421
17422   ac_builddir=.
17423
17424 if test "$ac_dir" != .; then
17425   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17426   # A "../" for each directory in $ac_dir_suffix.
17427   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17428 else
17429   ac_dir_suffix= ac_top_builddir=
17430 fi
17431
17432 case $srcdir in
17433   .)  # No --srcdir option.  We are building in place.
17434     ac_srcdir=.
17435     if test -z "$ac_top_builddir"; then
17436        ac_top_srcdir=.
17437     else
17438        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17439     fi ;;
17440   [\\/]* | ?:[\\/]* )  # Absolute path.
17441     ac_srcdir=$srcdir$ac_dir_suffix;
17442     ac_top_srcdir=$srcdir ;;
17443   *) # Relative path.
17444     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17445     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17446 esac
17447 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17448 # absolute.
17449 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17450 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17451 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17452 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17453
17454
17455
17456   if test x"$ac_file" != x-; then
17457     { echo "$as_me:$LINENO: creating $ac_file" >&5
17458 echo "$as_me: creating $ac_file" >&6;}
17459     rm -f "$ac_file"
17460   fi
17461   # Let's still pretend it is `configure' which instantiates (i.e., don't
17462   # use $as_me), people would be surprised to read:
17463   #    /* config.h.  Generated by config.status.  */
17464   if test x"$ac_file" = x-; then
17465     configure_input=
17466   else
17467     configure_input="$ac_file.  "
17468   fi
17469   configure_input=$configure_input"Generated from `echo $ac_file_in |
17470                                      sed 's,.*/,,'` by configure."
17471
17472   # First look for the input files in the build tree, otherwise in the
17473   # src tree.
17474   ac_file_inputs=`IFS=:
17475     for f in $ac_file_in; do
17476       case $f in
17477       -) echo $tmp/stdin ;;
17478       [\\/$]*)
17479          # Absolute (can't be DOS-style, as IFS=:)
17480          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17481 echo "$as_me: error: cannot find input file: $f" >&2;}
17482    { (exit 1); exit 1; }; }
17483          echo $f;;
17484       *) # Relative
17485          if test -f "$f"; then
17486            # Build tree
17487            echo $f
17488          elif test -f "$srcdir/$f"; then
17489            # Source tree
17490            echo $srcdir/$f
17491          else
17492            # /dev/null tree
17493            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17494 echo "$as_me: error: cannot find input file: $f" >&2;}
17495    { (exit 1); exit 1; }; }
17496          fi;;
17497       esac
17498     done` || { (exit 1); exit 1; }
17499 _ACEOF
17500 cat >>$CONFIG_STATUS <<_ACEOF
17501   sed "$ac_vpsub
17502 $extrasub
17503 _ACEOF
17504 cat >>$CONFIG_STATUS <<\_ACEOF
17505 :t
17506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17507 s,@configure_input@,$configure_input,;t t
17508 s,@srcdir@,$ac_srcdir,;t t
17509 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17510 s,@top_srcdir@,$ac_top_srcdir,;t t
17511 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17512 s,@builddir@,$ac_builddir,;t t
17513 s,@abs_builddir@,$ac_abs_builddir,;t t
17514 s,@top_builddir@,$ac_top_builddir,;t t
17515 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17516 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17517   rm -f $tmp/stdin
17518   if test x"$ac_file" != x-; then
17519     mv $tmp/out $ac_file
17520   else
17521     cat $tmp/out
17522     rm -f $tmp/out
17523   fi
17524
17525 done
17526 _ACEOF
17527 cat >>$CONFIG_STATUS <<\_ACEOF
17528
17529 #
17530 # CONFIG_HEADER section.
17531 #
17532
17533 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17534 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17535 #
17536 # ac_d sets the value in "#define NAME VALUE" lines.
17537 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17538 ac_dB='[        ].*$,\1#\2'
17539 ac_dC=' '
17540 ac_dD=',;t'
17541 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17542 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17543 ac_uB='$,\1#\2define\3'
17544 ac_uC=' '
17545 ac_uD=',;t'
17546
17547 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17548   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17549   case $ac_file in
17550   - | *:- | *:-:* ) # input from stdin
17551         cat >$tmp/stdin
17552         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17553         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17554   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17555         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17556   * )   ac_file_in=$ac_file.in ;;
17557   esac
17558
17559   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17560 echo "$as_me: creating $ac_file" >&6;}
17561
17562   # First look for the input files in the build tree, otherwise in the
17563   # src tree.
17564   ac_file_inputs=`IFS=:
17565     for f in $ac_file_in; do
17566       case $f in
17567       -) echo $tmp/stdin ;;
17568       [\\/$]*)
17569          # Absolute (can't be DOS-style, as IFS=:)
17570          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17571 echo "$as_me: error: cannot find input file: $f" >&2;}
17572    { (exit 1); exit 1; }; }
17573          echo $f;;
17574       *) # Relative
17575          if test -f "$f"; then
17576            # Build tree
17577            echo $f
17578          elif test -f "$srcdir/$f"; then
17579            # Source tree
17580            echo $srcdir/$f
17581          else
17582            # /dev/null tree
17583            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17584 echo "$as_me: error: cannot find input file: $f" >&2;}
17585    { (exit 1); exit 1; }; }
17586          fi;;
17587       esac
17588     done` || { (exit 1); exit 1; }
17589   # Remove the trailing spaces.
17590   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17591
17592 _ACEOF
17593
17594 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17595 # `conftest.undefs', that substitutes the proper values into
17596 # config.h.in to produce config.h.  The first handles `#define'
17597 # templates, and the second `#undef' templates.
17598 # And first: Protect against being on the right side of a sed subst in
17599 # config.status.  Protect against being in an unquoted here document
17600 # in config.status.
17601 rm -f conftest.defines conftest.undefs
17602 # Using a here document instead of a string reduces the quoting nightmare.
17603 # Putting comments in sed scripts is not portable.
17604 #
17605 # `end' is used to avoid that the second main sed command (meant for
17606 # 0-ary CPP macros) applies to n-ary macro definitions.
17607 # See the Autoconf documentation for `clear'.
17608 cat >confdef2sed.sed <<\_ACEOF
17609 s/[\\&,]/\\&/g
17610 s,[\\$`],\\&,g
17611 t clear
17612 : clear
17613 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17614 t end
17615 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17616 : end
17617 _ACEOF
17618 # If some macros were called several times there might be several times
17619 # the same #defines, which is useless.  Nevertheless, we may not want to
17620 # sort them, since we want the *last* AC-DEFINE to be honored.
17621 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17622 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17623 rm -f confdef2sed.sed
17624
17625 # This sed command replaces #undef with comments.  This is necessary, for
17626 # example, in the case of _POSIX_SOURCE, which is predefined and required
17627 # on some systems where configure will not decide to define it.
17628 cat >>conftest.undefs <<\_ACEOF
17629 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17630 _ACEOF
17631
17632 # Break up conftest.defines because some shells have a limit on the size
17633 # of here documents, and old seds have small limits too (100 cmds).
17634 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17635 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17636 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17637 echo '  :' >>$CONFIG_STATUS
17638 rm -f conftest.tail
17639 while grep . conftest.defines >/dev/null
17640 do
17641   # Write a limited-size here document to $tmp/defines.sed.
17642   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17643   # Speed up: don't consider the non `#define' lines.
17644   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17645   # Work around the forget-to-reset-the-flag bug.
17646   echo 't clr' >>$CONFIG_STATUS
17647   echo ': clr' >>$CONFIG_STATUS
17648   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17649   echo 'CEOF
17650   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17651   rm -f $tmp/in
17652   mv $tmp/out $tmp/in
17653 ' >>$CONFIG_STATUS
17654   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17655   rm -f conftest.defines
17656   mv conftest.tail conftest.defines
17657 done
17658 rm -f conftest.defines
17659 echo '  fi # egrep' >>$CONFIG_STATUS
17660 echo >>$CONFIG_STATUS
17661
17662 # Break up conftest.undefs because some shells have a limit on the size
17663 # of here documents, and old seds have small limits too (100 cmds).
17664 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17665 rm -f conftest.tail
17666 while grep . conftest.undefs >/dev/null
17667 do
17668   # Write a limited-size here document to $tmp/undefs.sed.
17669   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17670   # Speed up: don't consider the non `#undef'
17671   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17672   # Work around the forget-to-reset-the-flag bug.
17673   echo 't clr' >>$CONFIG_STATUS
17674   echo ': clr' >>$CONFIG_STATUS
17675   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17676   echo 'CEOF
17677   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17678   rm -f $tmp/in
17679   mv $tmp/out $tmp/in
17680 ' >>$CONFIG_STATUS
17681   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17682   rm -f conftest.undefs
17683   mv conftest.tail conftest.undefs
17684 done
17685 rm -f conftest.undefs
17686
17687 cat >>$CONFIG_STATUS <<\_ACEOF
17688   # Let's still pretend it is `configure' which instantiates (i.e., don't
17689   # use $as_me), people would be surprised to read:
17690   #    /* config.h.  Generated by config.status.  */
17691   if test x"$ac_file" = x-; then
17692     echo "/* Generated by configure.  */" >$tmp/config.h
17693   else
17694     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17695   fi
17696   cat $tmp/in >>$tmp/config.h
17697   rm -f $tmp/in
17698   if test x"$ac_file" != x-; then
17699     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17700       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17701 echo "$as_me: $ac_file is unchanged" >&6;}
17702     else
17703       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17704 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705          X"$ac_file" : 'X\(//\)[^/]' \| \
17706          X"$ac_file" : 'X\(//\)$' \| \
17707          X"$ac_file" : 'X\(/\)' \| \
17708          .     : '\(.\)' 2>/dev/null ||
17709 echo X"$ac_file" |
17710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712           /^X\(\/\/\)$/{ s//\1/; q; }
17713           /^X\(\/\).*/{ s//\1/; q; }
17714           s/.*/./; q'`
17715       { case "$ac_dir" in
17716   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17717   *)                      as_incr_dir=.;;
17718 esac
17719 as_dummy="$ac_dir"
17720 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17721   case $as_mkdir_dir in
17722     # Skip DOS drivespec
17723     ?:) as_incr_dir=$as_mkdir_dir ;;
17724     *)
17725       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17726       test -d "$as_incr_dir" ||
17727         mkdir "$as_incr_dir" ||
17728         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17729 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17730    { (exit 1); exit 1; }; }
17731     ;;
17732   esac
17733 done; }
17734
17735       rm -f $ac_file
17736       mv $tmp/config.h $ac_file
17737     fi
17738   else
17739     cat $tmp/config.h
17740     rm -f $tmp/config.h
17741   fi
17742   # Run the commands associated with the file.
17743   case $ac_file in
17744     src/include/pg_config.h )
17745 # Update timestamp for pg_config.h (see Makefile.global)
17746 echo >src/include/stamp-h
17747  ;;
17748   esac
17749 done
17750 _ACEOF
17751 cat >>$CONFIG_STATUS <<\_ACEOF
17752
17753 #
17754 # CONFIG_LINKS section.
17755 #
17756
17757 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17758   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17759   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17760
17761   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17762 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17763
17764   if test ! -r $srcdir/$ac_source; then
17765     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17766 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17767    { (exit 1); exit 1; }; }
17768   fi
17769   rm -f $ac_dest
17770
17771   # Make relative symlinks.
17772   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17773 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17774          X"$ac_dest" : 'X\(//\)[^/]' \| \
17775          X"$ac_dest" : 'X\(//\)$' \| \
17776          X"$ac_dest" : 'X\(/\)' \| \
17777          .     : '\(.\)' 2>/dev/null ||
17778 echo X"$ac_dest" |
17779     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17780           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17781           /^X\(\/\/\)$/{ s//\1/; q; }
17782           /^X\(\/\).*/{ s//\1/; q; }
17783           s/.*/./; q'`
17784   { case "$ac_dest_dir" in
17785   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17786   *)                      as_incr_dir=.;;
17787 esac
17788 as_dummy="$ac_dest_dir"
17789 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17790   case $as_mkdir_dir in
17791     # Skip DOS drivespec
17792     ?:) as_incr_dir=$as_mkdir_dir ;;
17793     *)
17794       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17795       test -d "$as_incr_dir" ||
17796         mkdir "$as_incr_dir" ||
17797         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17798 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17799    { (exit 1); exit 1; }; }
17800     ;;
17801   esac
17802 done; }
17803
17804   ac_builddir=.
17805
17806 if test "$ac_dest_dir" != .; then
17807   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17808   # A "../" for each directory in $ac_dir_suffix.
17809   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17810 else
17811   ac_dir_suffix= ac_top_builddir=
17812 fi
17813
17814 case $srcdir in
17815   .)  # No --srcdir option.  We are building in place.
17816     ac_srcdir=.
17817     if test -z "$ac_top_builddir"; then
17818        ac_top_srcdir=.
17819     else
17820        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17821     fi ;;
17822   [\\/]* | ?:[\\/]* )  # Absolute path.
17823     ac_srcdir=$srcdir$ac_dir_suffix;
17824     ac_top_srcdir=$srcdir ;;
17825   *) # Relative path.
17826     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17827     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17828 esac
17829 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17830 # absolute.
17831 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17832 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17833 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17834 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17835
17836
17837   case $srcdir in
17838   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17839       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17840   esac
17841
17842   # Make a symlink if possible; otherwise try a hard link.
17843   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17844     ln $srcdir/$ac_source $ac_dest ||
17845     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17846 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17847    { (exit 1); exit 1; }; }
17848 done
17849 _ACEOF
17850
17851 cat >>$CONFIG_STATUS <<\_ACEOF
17852
17853 { (exit 0); exit 0; }
17854 _ACEOF
17855 chmod +x $CONFIG_STATUS
17856 ac_clean_files=$ac_clean_files_save
17857
17858
17859 # configure is writing to config.log, and then calls config.status.
17860 # config.status does its own redirection, appending to config.log.
17861 # Unfortunately, on DOS this fails, as config.log is still kept open
17862 # by configure, so config.status won't be able to write to it; its
17863 # output is simply discarded.  So we exec the FD to /dev/null,
17864 # effectively closing config.log, so it can be properly (re)opened and
17865 # appended to by config.status.  When coming back to configure, we
17866 # need to make the FD available again.
17867 if test "$no_create" != yes; then
17868   ac_cs_success=:
17869   exec 5>/dev/null
17870   $SHELL $CONFIG_STATUS || ac_cs_success=false
17871   exec 5>>config.log
17872   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17873   # would make configure fail if this is the last instruction.
17874   $ac_cs_success || { (exit 1); exit 1; }
17875 fi
17876