OSDN Git Service

Create/drop cast now requires ownership of at least one of the types.
[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-integer-datetimes  enable 64-bit integer date/time support
853   --enable-recode         enable character set recode 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 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 #
1582 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1583 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584
1585
1586 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1587 if test "${enable_integer_datetimes+set}" = set; then
1588   enableval="$enable_integer_datetimes"
1589
1590   case $enableval in
1591     yes)
1592
1593 cat >>confdefs.h <<\_ACEOF
1594 #define USE_INTEGER_DATETIMES 1
1595 _ACEOF
1596
1597       ;;
1598     no)
1599       :
1600       ;;
1601     *)
1602       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1603 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1604    { (exit 1); exit 1; }; }
1605       ;;
1606   esac
1607
1608 else
1609   enable_integer_datetimes=no
1610
1611 fi;
1612
1613 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1614 echo "${ECHO_T}$enable_integer_datetimes" >&6
1615
1616
1617 # Character set recode (--enable-recode)
1618 #
1619 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1620 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1621
1622
1623 # Check whether --enable-recode or --disable-recode was given.
1624 if test "${enable_recode+set}" = set; then
1625   enableval="$enable_recode"
1626
1627   case $enableval in
1628     yes)
1629
1630 cat >>confdefs.h <<\_ACEOF
1631 #define CYR_RECODE 1
1632 _ACEOF
1633
1634       ;;
1635     no)
1636       :
1637       ;;
1638     *)
1639       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1640 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1641    { (exit 1); exit 1; }; }
1642       ;;
1643   esac
1644
1645 else
1646   enable_recode=no
1647
1648 fi;
1649
1650 echo "$as_me:$LINENO: result: $enable_recode" >&5
1651 echo "${ECHO_T}$enable_recode" >&6
1652
1653
1654 #
1655 # Multibyte support
1656 #
1657 MULTIBYTE=SQL_ASCII
1658
1659 cat >>confdefs.h <<\_ACEOF
1660 #define MULTIBYTE 1
1661 _ACEOF
1662
1663
1664
1665 #
1666 # NLS
1667 #
1668 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1669 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1670
1671
1672 # Check whether --enable-nls or --disable-nls was given.
1673 if test "${enable_nls+set}" = set; then
1674   enableval="$enable_nls"
1675
1676   case $enableval in
1677     yes)
1678       :
1679       ;;
1680     no)
1681       :
1682       ;;
1683     *)
1684       enable_nls=yes
1685 WANTED_LANGUAGES=$enableval
1686       ;;
1687   esac
1688
1689 else
1690   enable_nls=no
1691 fi;
1692
1693
1694 if test "$enable_nls" = yes; then
1695
1696 cat >>confdefs.h <<\_ACEOF
1697 #define ENABLE_NLS 1
1698 _ACEOF
1699
1700 fi
1701
1702 echo "$as_me:$LINENO: result: $enable_nls" >&5
1703 echo "${ECHO_T}$enable_nls" >&6
1704
1705
1706
1707 #
1708 # Default port number (--with-pgport), default 5432
1709 #
1710 echo "$as_me:$LINENO: checking for default port number" >&5
1711 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1712
1713
1714
1715 # Check whether --with-pgport or --without-pgport was given.
1716 if test "${with_pgport+set}" = set; then
1717   withval="$with_pgport"
1718
1719   case $withval in
1720     yes)
1721       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1722 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1723    { (exit 1); exit 1; }; }
1724       ;;
1725     no)
1726       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1727 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1728    { (exit 1); exit 1; }; }
1729       ;;
1730     *)
1731       default_port=$withval
1732       ;;
1733   esac
1734
1735 else
1736   default_port=5432
1737 fi;
1738
1739 echo "$as_me:$LINENO: result: $default_port" >&5
1740 echo "${ECHO_T}$default_port" >&6
1741 # Need both of these because some places want an integer and some a string
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define DEF_PGPORT ${default_port}
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define DEF_PGPORT_STR "${default_port}"
1750 _ACEOF
1751
1752
1753
1754 #
1755 # Maximum number of allowed connections (--with-maxbackends), default 32
1756 #
1757 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1758 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1759
1760
1761
1762 # Check whether --with-maxbackends or --without-maxbackends was given.
1763 if test "${with_maxbackends+set}" = set; then
1764   withval="$with_maxbackends"
1765
1766   case $withval in
1767     yes)
1768       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1769 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1770    { (exit 1); exit 1; }; }
1771       ;;
1772     no)
1773       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1774 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1775    { (exit 1); exit 1; }; }
1776       ;;
1777     *)
1778
1779       ;;
1780   esac
1781
1782 else
1783   with_maxbackends=32
1784 fi;
1785
1786 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1787 echo "${ECHO_T}$with_maxbackends" >&6
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define DEF_MAXBACKENDS $with_maxbackends
1791 _ACEOF
1792
1793
1794
1795 #
1796 # Option to disable shared libraries
1797 #
1798
1799
1800 # Check whether --enable-shared or --disable-shared was given.
1801 if test "${enable_shared+set}" = set; then
1802   enableval="$enable_shared"
1803
1804   case $enableval in
1805     yes)
1806       :
1807       ;;
1808     no)
1809       :
1810       ;;
1811     *)
1812       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1813 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1814    { (exit 1); exit 1; }; }
1815       ;;
1816   esac
1817
1818 else
1819   enable_shared=yes
1820
1821 fi;
1822
1823
1824
1825 #
1826 # '-rpath'-like feature can be disabled
1827 #
1828
1829
1830 # Check whether --enable-rpath or --disable-rpath was given.
1831 if test "${enable_rpath+set}" = set; then
1832   enableval="$enable_rpath"
1833
1834   case $enableval in
1835     yes)
1836       :
1837       ;;
1838     no)
1839       :
1840       ;;
1841     *)
1842       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1843 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1844    { (exit 1); exit 1; }; }
1845       ;;
1846   esac
1847
1848 else
1849   enable_rpath=yes
1850
1851 fi;
1852
1853
1854
1855
1856 #
1857 # --enable-debug adds -g to compiler flags
1858 #
1859
1860
1861 # Check whether --enable-debug or --disable-debug was given.
1862 if test "${enable_debug+set}" = set; then
1863   enableval="$enable_debug"
1864
1865   case $enableval in
1866     yes)
1867       :
1868       ;;
1869     no)
1870       :
1871       ;;
1872     *)
1873       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1874 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1875    { (exit 1); exit 1; }; }
1876       ;;
1877   esac
1878
1879 else
1880   enable_debug=no
1881
1882 fi;
1883
1884
1885
1886 #
1887 # C compiler
1888 #
1889
1890 # For historical reasons you can also use --with-CC to specify the C compiler
1891 # to use, although the standard way to do this is to set the CC environment
1892 # variable.
1893
1894
1895
1896 # Check whether --with-CC or --without-CC was given.
1897 if test "${with_CC+set}" = set; then
1898   withval="$with_CC"
1899
1900   case $withval in
1901     yes)
1902       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1903 echo "$as_me: error: argument required for --with-CC option" >&2;}
1904    { (exit 1); exit 1; }; }
1905       ;;
1906     no)
1907       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1908 echo "$as_me: error: argument required for --with-CC option" >&2;}
1909    { (exit 1); exit 1; }; }
1910       ;;
1911     *)
1912       CC=$with_CC
1913       ;;
1914   esac
1915
1916 fi;
1917
1918
1919 # Set here so it can be over-ridden in the template file
1920 GCC_CXXFLAGS="-O2"
1921 VENDOR_CXXFLAGS=""
1922
1923 case $template in
1924   aix) pgac_cc_list="gcc xlc";;
1925  irix) pgac_cc_list="cc";; # no gcc
1926     *) pgac_cc_list="gcc cc";;
1927 esac
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 if test -n "$ac_tool_prefix"; then
1935   for ac_prog in $pgac_cc_list
1936   do
1937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$CC"; then
1945   ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965   echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972     test -n "$CC" && break
1973   done
1974 fi
1975 if test -z "$CC"; then
1976   ac_ct_CC=$CC
1977   for ac_prog in $pgac_cc_list
1978 do
1979   # Extract the first word of "$ac_prog", so it can be a program name with args.
1980 set dummy $ac_prog; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984   echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986   if test -n "$ac_ct_CC"; then
1987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992   IFS=$as_save_IFS
1993   test -z "$as_dir" && as_dir=.
1994   for ac_exec_ext in '' $ac_executable_extensions; do
1995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996     ac_cv_prog_ac_ct_CC="$ac_prog"
1997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998     break 2
1999   fi
2000 done
2001 done
2002
2003 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6
2009 else
2010   echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6
2012 fi
2013
2014   test -n "$ac_ct_CC" && break
2015 done
2016
2017   CC=$ac_ct_CC
2018 fi
2019
2020
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2022 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027      "checking for C compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030   (eval $ac_compiler --version </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035   (eval $ac_compiler -v </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040   (eval $ac_compiler -V </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2048
2049 #ifdef F77_DUMMY_MAIN
2050 #  ifdef __cplusplus
2051      extern "C"
2052 #  endif
2053    int F77_DUMMY_MAIN() { return 1; }
2054 #endif
2055 int
2056 main ()
2057 {
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2067 # of exeext.
2068 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2069 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2072   (eval $ac_link_default) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; then
2076   # Find the output, starting from the most likely.  This scheme is
2077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2078 # resort.
2079
2080 # Be careful to initialize this variable, since it used to be cached.
2081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2082 ac_cv_exeext=
2083 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2084                 ls a.out conftest 2>/dev/null;
2085                 ls a.* conftest.* 2>/dev/null`; do
2086   case $ac_file in
2087     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2088     a.out ) # We found the default executable, but exeext='' is most
2089             # certainly right.
2090             break;;
2091     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2093           export ac_cv_exeext
2094           break;;
2095     * ) break;;
2096   esac
2097 done
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2102 echo "$as_me: error: C compiler cannot create executables" >&2;}
2103    { (exit 77); exit 77; }; }
2104 fi
2105
2106 ac_exeext=$ac_cv_exeext
2107 echo "$as_me:$LINENO: result: $ac_file" >&5
2108 echo "${ECHO_T}$ac_file" >&6
2109
2110 # Check the compiler produces executables we can run.  If not, either
2111 # the compiler is broken, or we cross compile.
2112 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2113 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2114 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2115 # If not cross compiling, check that we can run a simple program.
2116 if test "$cross_compiling" != yes; then
2117   if { ac_try='./$ac_file'
2118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119   (eval $ac_try) 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }; }; then
2123     cross_compiling=no
2124   else
2125     if test "$cross_compiling" = maybe; then
2126         cross_compiling=yes
2127     else
2128         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'." >&5
2130 echo "$as_me: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'." >&2;}
2132    { (exit 1); exit 1; }; }
2133     fi
2134   fi
2135 fi
2136 echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6
2138
2139 rm -f a.out a.exe conftest$ac_cv_exeext
2140 ac_clean_files=$ac_clean_files_save
2141 # Check the compiler produces executables we can run.  If not, either
2142 # the compiler is broken, or we cross compile.
2143 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146 echo "${ECHO_T}$cross_compiling" >&6
2147
2148 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151   (eval $ac_link) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2158 # `rm'.
2159 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2160   case $ac_file in
2161     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2163           export ac_cv_exeext
2164           break;;
2165     * ) break;;
2166   esac
2167 done
2168 else
2169   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2171    { (exit 1); exit 1; }; }
2172 fi
2173
2174 rm -f conftest$ac_cv_exeext
2175 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176 echo "${ECHO_T}$ac_cv_exeext" >&6
2177
2178 rm -f conftest.$ac_ext
2179 EXEEXT=$ac_cv_exeext
2180 ac_exeext=$EXEEXT
2181 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2183 if test "${ac_cv_objext+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line $LINENO "configure"
2188 #include "confdefs.h"
2189
2190 #ifdef F77_DUMMY_MAIN
2191 #  ifdef __cplusplus
2192      extern "C"
2193 #  endif
2194    int F77_DUMMY_MAIN() { return 1; }
2195 #endif
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 rm -f conftest.o conftest.obj
2205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206   (eval $ac_compile) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; then
2210   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211   case $ac_file in
2212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2213     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214        break;;
2215   esac
2216 done
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2221 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2224
2225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2226 fi
2227 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2228 echo "${ECHO_T}$ac_cv_objext" >&6
2229 OBJEXT=$ac_cv_objext
2230 ac_objext=$OBJEXT
2231 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2232 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2233 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 #include "confdefs.h"
2239
2240 #ifdef F77_DUMMY_MAIN
2241 #  ifdef __cplusplus
2242      extern "C"
2243 #  endif
2244    int F77_DUMMY_MAIN() { return 1; }
2245 #endif
2246 int
2247 main ()
2248 {
2249 #ifndef __GNUC__
2250        choke me
2251 #endif
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_compiler_gnu=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2273 ac_compiler_gnu=no
2274 fi
2275 rm -f conftest.$ac_objext conftest.$ac_ext
2276 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2277
2278 fi
2279 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2280 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281 GCC=`test $ac_compiler_gnu = yes && echo yes`
2282 ac_test_CFLAGS=${CFLAGS+set}
2283 ac_save_CFLAGS=$CFLAGS
2284 CFLAGS="-g"
2285 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2286 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_g+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2293
2294 #ifdef F77_DUMMY_MAIN
2295 #  ifdef __cplusplus
2296      extern "C"
2297 #  endif
2298    int F77_DUMMY_MAIN() { return 1; }
2299 #endif
2300 int
2301 main ()
2302 {
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310   (eval $ac_compile) 2>&5
2311   ac_status=$?
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -s conftest.$ac_objext'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; }; then
2320   ac_cv_prog_cc_g=yes
2321 else
2322   echo "$as_me: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 ac_cv_prog_cc_g=no
2325 fi
2326 rm -f conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2330 if test "$ac_test_CFLAGS" = set; then
2331   CFLAGS=$ac_save_CFLAGS
2332 elif test $ac_cv_prog_cc_g = yes; then
2333   if test "$GCC" = yes; then
2334     CFLAGS="-g -O2"
2335   else
2336     CFLAGS="-g"
2337   fi
2338 else
2339   if test "$GCC" = yes; then
2340     CFLAGS="-O2"
2341   else
2342     CFLAGS=
2343   fi
2344 fi
2345 # Some people use a C++ compiler to compile C.  Since we use `exit',
2346 # in C++ we need to declare it.  In case someone uses the same compiler
2347 # for both compiling C and C++ we need to have the C++ compiler decide
2348 # the declaration of exit, since it's the most demanding environment.
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #ifndef __cplusplus
2351   choke me
2352 #endif
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); } &&
2360          { ac_try='test -s conftest.$ac_objext'
2361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362   (eval $ac_try) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366   for ac_declaration in \
2367    ''\
2368    '#include <stdlib.h>' \
2369    'extern "C" void std::exit (int) throw (); using std::exit;' \
2370    'extern "C" void std::exit (int); using std::exit;' \
2371    'extern "C" void exit (int) throw ();' \
2372    'extern "C" void exit (int);' \
2373    'void exit (int);'
2374 do
2375   cat >conftest.$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378 #include <stdlib.h>
2379 $ac_declaration
2380 #ifdef F77_DUMMY_MAIN
2381 #  ifdef __cplusplus
2382      extern "C"
2383 #  endif
2384    int F77_DUMMY_MAIN() { return 1; }
2385 #endif
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   :
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 continue
2411 fi
2412 rm -f conftest.$ac_objext conftest.$ac_ext
2413   cat >conftest.$ac_ext <<_ACEOF
2414 #line $LINENO "configure"
2415 #include "confdefs.h"
2416 $ac_declaration
2417 #ifdef F77_DUMMY_MAIN
2418 #  ifdef __cplusplus
2419      extern "C"
2420 #  endif
2421    int F77_DUMMY_MAIN() { return 1; }
2422 #endif
2423 int
2424 main ()
2425 {
2426 exit (42);
2427   ;
2428   return 0;
2429 }
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433   (eval $ac_compile) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 fi
2448 rm -f conftest.$ac_objext conftest.$ac_ext
2449 done
2450 rm -f conftest*
2451 if test -n "$ac_declaration"; then
2452   echo '#ifdef __cplusplus' >>confdefs.h
2453   echo $ac_declaration      >>confdefs.h
2454   echo '#endif'             >>confdefs.h
2455 fi
2456
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 fi
2461 rm -f conftest.$ac_objext conftest.$ac_ext
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467
2468 # Read the template
2469 . "$srcdir/src/template/$template" || exit
2470
2471 if test "$ac_env_CFLAGS_set" = set; then
2472   CFLAGS=$ac_env_CFLAGS_value
2473 fi
2474 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2475   CFLAGS="$CFLAGS -g"
2476 fi
2477 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2478 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2479 # Check if the compiler still works with the template settings
2480 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2481 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2482
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #line $LINENO "configure"
2485 #include "confdefs.h"
2486
2487 #ifdef F77_DUMMY_MAIN
2488 #  ifdef __cplusplus
2489      extern "C"
2490 #  endif
2491    int F77_DUMMY_MAIN() { return 1; }
2492 #endif
2493 int
2494 main ()
2495 {
2496 return 0;
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext conftest$ac_exeext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2503   (eval $ac_link) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); } &&
2507          { ac_try='test -s conftest$ac_exeext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6
2520    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2521 echo "$as_me: error: cannot proceed" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2532 # On Suns, sometimes $CPP names a directory.
2533 if test -n "$CPP" && test -d "$CPP"; then
2534   CPP=
2535 fi
2536 if test -z "$CPP"; then
2537   if test "${ac_cv_prog_CPP+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540       # Double quotes because CPP needs to be expanded
2541     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2542     do
2543       ac_preproc_ok=false
2544 for ac_c_preproc_warn_flag in '' yes
2545 do
2546   # Use a header file that comes with gcc, so configuring glibc
2547   # with a fresh cross-compiler works.
2548   # On the NeXT, cc -E runs the code through the compiler's parser,
2549   # not just through cpp. "Syntax error" is here to catch this case.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2553 #include <assert.h>
2554                      Syntax error
2555 _ACEOF
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2558   ac_status=$?
2559   egrep -v '^ *\+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } >/dev/null; then
2564   if test -s conftest.err; then
2565     ac_cpp_err=$ac_c_preproc_warn_flag
2566   else
2567     ac_cpp_err=
2568   fi
2569 else
2570   ac_cpp_err=yes
2571 fi
2572 if test -z "$ac_cpp_err"; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576   cat conftest.$ac_ext >&5
2577   # Broken: fails on valid input.
2578 continue
2579 fi
2580 rm -f conftest.err conftest.$ac_ext
2581
2582   # OK, works on sane cases.  Now check whether non-existent headers
2583   # can be detected and how.
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 #include <ac_nonexistent.h>
2588 _ACEOF
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591   ac_status=$?
2592   egrep -v '^ *\+' conftest.er1 >conftest.err
2593   rm -f conftest.er1
2594   cat conftest.err >&5
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } >/dev/null; then
2597   if test -s conftest.err; then
2598     ac_cpp_err=$ac_c_preproc_warn_flag
2599   else
2600     ac_cpp_err=
2601   fi
2602 else
2603   ac_cpp_err=yes
2604 fi
2605 if test -z "$ac_cpp_err"; then
2606   # Broken: success on invalid input.
2607 continue
2608 else
2609   echo "$as_me: failed program was:" >&5
2610   cat conftest.$ac_ext >&5
2611   # Passes both tests.
2612 ac_preproc_ok=:
2613 break
2614 fi
2615 rm -f conftest.err conftest.$ac_ext
2616
2617 done
2618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2619 rm -f conftest.err conftest.$ac_ext
2620 if $ac_preproc_ok; then
2621   break
2622 fi
2623
2624     done
2625     ac_cv_prog_CPP=$CPP
2626
2627 fi
2628   CPP=$ac_cv_prog_CPP
2629 else
2630   ac_cv_prog_CPP=$CPP
2631 fi
2632 echo "$as_me:$LINENO: result: $CPP" >&5
2633 echo "${ECHO_T}$CPP" >&6
2634 ac_preproc_ok=false
2635 for ac_c_preproc_warn_flag in '' yes
2636 do
2637   # Use a header file that comes with gcc, so configuring glibc
2638   # with a fresh cross-compiler works.
2639   # On the NeXT, cc -E runs the code through the compiler's parser,
2640   # not just through cpp. "Syntax error" is here to catch this case.
2641   cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <assert.h>
2645                      Syntax error
2646 _ACEOF
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2649   ac_status=$?
2650   egrep -v '^ *\+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } >/dev/null; then
2655   if test -s conftest.err; then
2656     ac_cpp_err=$ac_c_preproc_warn_flag
2657   else
2658     ac_cpp_err=
2659   fi
2660 else
2661   ac_cpp_err=yes
2662 fi
2663 if test -z "$ac_cpp_err"; then
2664   :
2665 else
2666   echo "$as_me: failed program was:" >&5
2667   cat conftest.$ac_ext >&5
2668   # Broken: fails on valid input.
2669 continue
2670 fi
2671 rm -f conftest.err conftest.$ac_ext
2672
2673   # OK, works on sane cases.  Now check whether non-existent headers
2674   # can be detected and how.
2675   cat >conftest.$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <ac_nonexistent.h>
2679 _ACEOF
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2682   ac_status=$?
2683   egrep -v '^ *\+' conftest.er1 >conftest.err
2684   rm -f conftest.er1
2685   cat conftest.err >&5
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); } >/dev/null; then
2688   if test -s conftest.err; then
2689     ac_cpp_err=$ac_c_preproc_warn_flag
2690   else
2691     ac_cpp_err=
2692   fi
2693 else
2694   ac_cpp_err=yes
2695 fi
2696 if test -z "$ac_cpp_err"; then
2697   # Broken: success on invalid input.
2698 continue
2699 else
2700   echo "$as_me: failed program was:" >&5
2701   cat conftest.$ac_ext >&5
2702   # Passes both tests.
2703 ac_preproc_ok=:
2704 break
2705 fi
2706 rm -f conftest.err conftest.$ac_ext
2707
2708 done
2709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710 rm -f conftest.err conftest.$ac_ext
2711 if $ac_preproc_ok; then
2712   :
2713 else
2714   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2716    { (exit 1); exit 1; }; }
2717 fi
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727 # Create compiler version string
2728 if test x"$GCC" = x"yes" ; then
2729   cc_string="GCC `${CC} --version | sed q`"
2730 else
2731   cc_string=$CC
2732 fi
2733
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2736 _ACEOF
2737
2738
2739
2740 #
2741 # Automatic dependency tracking
2742 #
2743
2744
2745 # Check whether --enable-depend or --disable-depend was given.
2746 if test "${enable_depend+set}" = set; then
2747   enableval="$enable_depend"
2748
2749   case $enableval in
2750     yes)
2751       autodepend=yes
2752       ;;
2753     no)
2754       :
2755       ;;
2756     *)
2757       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2758 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2759    { (exit 1); exit 1; }; }
2760       ;;
2761   esac
2762
2763 else
2764   enable_depend=no
2765
2766 fi;
2767
2768
2769
2770
2771 #
2772 # Enable assert checks
2773 #
2774
2775
2776 # Check whether --enable-cassert or --disable-cassert was given.
2777 if test "${enable_cassert+set}" = set; then
2778   enableval="$enable_cassert"
2779
2780   case $enableval in
2781     yes)
2782
2783 cat >>confdefs.h <<\_ACEOF
2784 #define USE_ASSERT_CHECKING 1
2785 _ACEOF
2786
2787       ;;
2788     no)
2789       :
2790       ;;
2791     *)
2792       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2793 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2794    { (exit 1); exit 1; }; }
2795       ;;
2796   esac
2797
2798 else
2799   enable_cassert=no
2800
2801 fi;
2802
2803
2804
2805 #
2806 # Include directories
2807 #
2808 ac_save_IFS=$IFS
2809 IFS="${IFS}:"
2810 # SRCH_INC comes from the template file
2811 for dir in $with_includes $SRCH_INC; do
2812   if test -d "$dir"; then
2813     INCLUDES="$INCLUDES -I$dir"
2814   else
2815     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2816 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2817   fi
2818 done
2819 IFS=$ac_save_IFS
2820
2821
2822
2823 #
2824 # Library directories
2825 #
2826 ac_save_IFS=$IFS
2827 IFS="${IFS}:"
2828 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2829 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2830   if test -d "$dir"; then
2831     LIBDIRS="$LIBDIRS -L$dir"
2832   else
2833     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2834 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2835   fi
2836 done
2837 IFS=$ac_save_IFS
2838
2839
2840 #
2841 # Tcl/Tk
2842 #
2843 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2844 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2845
2846
2847
2848 # Check whether --with-tcl or --without-tcl was given.
2849 if test "${with_tcl+set}" = set; then
2850   withval="$with_tcl"
2851
2852   case $withval in
2853     yes)
2854       :
2855       ;;
2856     no)
2857       :
2858       ;;
2859     *)
2860       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2861 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2862    { (exit 1); exit 1; }; }
2863       ;;
2864   esac
2865
2866 else
2867   with_tcl=no
2868
2869 fi;
2870
2871 echo "$as_me:$LINENO: result: $with_tcl" >&5
2872 echo "${ECHO_T}$with_tcl" >&6
2873
2874
2875 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2876 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2877 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2878 if test "$with_tcl" = yes; then
2879
2880
2881
2882 # Check whether --with-tk or --without-tk was given.
2883 if test "${with_tk+set}" = set; then
2884   withval="$with_tk"
2885
2886   case $withval in
2887     yes)
2888       :
2889       ;;
2890     no)
2891       :
2892       ;;
2893     *)
2894       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2895 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2896    { (exit 1); exit 1; }; }
2897       ;;
2898   esac
2899
2900 else
2901   with_tk=yes
2902
2903 fi;
2904
2905 else
2906   with_tk=no
2907 fi
2908 echo "$as_me:$LINENO: result: $with_tk" >&5
2909 echo "${ECHO_T}$with_tk" >&6
2910
2911
2912
2913 # We see if the path to the Tcl/Tk configuration scripts is specified.
2914 # This will override the use of tclsh to find the paths to search.
2915
2916
2917
2918
2919 # Check whether --with-tclconfig or --without-tclconfig was given.
2920 if test "${with_tclconfig+set}" = set; then
2921   withval="$with_tclconfig"
2922
2923   case $withval in
2924     yes)
2925       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2926 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2927    { (exit 1); exit 1; }; }
2928       ;;
2929     no)
2930       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2931 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2932    { (exit 1); exit 1; }; }
2933       ;;
2934     *)
2935
2936       ;;
2937   esac
2938
2939 fi;
2940
2941
2942 # We see if the path to the Tk configuration scripts is specified.
2943 # This will override the use of tclsh to find the paths to search.
2944
2945
2946
2947
2948 # Check whether --with-tkconfig or --without-tkconfig was given.
2949 if test "${with_tkconfig+set}" = set; then
2950   withval="$with_tkconfig"
2951
2952   case $withval in
2953     yes)
2954       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2955 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2956    { (exit 1); exit 1; }; }
2957       ;;
2958     no)
2959       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2960 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2961    { (exit 1); exit 1; }; }
2962       ;;
2963     *)
2964
2965       ;;
2966   esac
2967
2968 fi;
2969
2970
2971 #
2972 # Optionally build Perl modules (Pg.pm and PL/Perl)
2973 #
2974 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2975 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2976
2977
2978
2979 # Check whether --with-perl or --without-perl was given.
2980 if test "${with_perl+set}" = set; then
2981   withval="$with_perl"
2982
2983   case $withval in
2984     yes)
2985       :
2986       ;;
2987     no)
2988       :
2989       ;;
2990     *)
2991       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2992 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2993    { (exit 1); exit 1; }; }
2994       ;;
2995   esac
2996
2997 else
2998   with_perl=no
2999
3000 fi;
3001
3002 echo "$as_me:$LINENO: result: $with_perl" >&5
3003 echo "${ECHO_T}$with_perl" >&6
3004
3005
3006 #
3007 # Optionally build Python interface module
3008 #
3009 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3010 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3011
3012
3013
3014 # Check whether --with-python or --without-python was given.
3015 if test "${with_python+set}" = set; then
3016   withval="$with_python"
3017
3018   case $withval in
3019     yes)
3020       :
3021       ;;
3022     no)
3023       :
3024       ;;
3025     *)
3026       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3027 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3028    { (exit 1); exit 1; }; }
3029       ;;
3030   esac
3031
3032 else
3033   with_python=no
3034
3035 fi;
3036
3037 echo "$as_me:$LINENO: result: $with_python" >&5
3038 echo "${ECHO_T}$with_python" >&6
3039
3040
3041 #
3042 # Optionally build the Java/JDBC tools
3043 #
3044 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3045 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3046
3047
3048
3049 # Check whether --with-java or --without-java was given.
3050 if test "${with_java+set}" = set; then
3051   withval="$with_java"
3052
3053   case $withval in
3054     yes)
3055       echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3057
3058   for ac_prog in jakarta-ant ant ant.sh ant.bat
3059 do
3060   # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_path_ANT+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   case $ANT in
3068   [\\/]* | ?:[\\/]*)
3069   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3070   ;;
3071   *)
3072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075   IFS=$as_save_IFS
3076   test -z "$as_dir" && as_dir=.
3077   for ac_exec_ext in '' $ac_executable_extensions; do
3078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081     break 2
3082   fi
3083 done
3084 done
3085
3086   ;;
3087 esac
3088 fi
3089 ANT=$ac_cv_path_ANT
3090
3091 if test -n "$ANT"; then
3092   echo "$as_me:$LINENO: result: $ANT" >&5
3093 echo "${ECHO_T}$ANT" >&6
3094 else
3095   echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 fi
3098
3099   test -n "$ANT" && break
3100 done
3101
3102
3103   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3104 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3105 if test "${pgac_cv_prog_ant_works+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108
3109     cat > conftest.java << EOF
3110 public class conftest {
3111     int testmethod(int a, int b) {
3112         return a + b;
3113     }
3114 }
3115 EOF
3116
3117     cat > conftest.xml << EOF
3118 <project name="conftest" default="conftest">
3119  <target name="conftest">
3120   <javac srcdir="." includes="conftest.java">
3121   </javac>
3122  </target>
3123 </project>
3124 EOF
3125
3126     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3127     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3128   (eval $pgac_cmd) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132     pgac_save_status=$?
3133     if test $? = 0 && test -f ./conftest.class ; then
3134       pgac_cv_prog_ant_works=yes
3135     else
3136       echo "configure: failed java program was:" >&5
3137       cat conftest.java >&5
3138       echo "configure: failed build file was:" >&5
3139       cat conftest.xml >&5
3140       pgac_cv_prog_ant_works=no
3141     fi
3142
3143     rm -f conftest* core core.* *.core
3144
3145 fi
3146 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3147 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3148
3149   if test "$pgac_cv_prog_ant_works" != yes; then
3150     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3151 echo "$as_me: error: ant does not work" >&2;}
3152    { (exit 1); exit 1; }; }
3153   fi
3154
3155
3156 if test -z "$ANT"; then
3157   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3158 echo "$as_me: error: Ant is required to build Java components" >&2;}
3159    { (exit 1); exit 1; }; }
3160 fi
3161       ;;
3162     no)
3163       echo "$as_me:$LINENO: result: no" >&5
3164 echo "${ECHO_T}no" >&6
3165       ;;
3166     *)
3167       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3168 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3169    { (exit 1); exit 1; }; }
3170       ;;
3171   esac
3172
3173 else
3174   with_java=no
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi;
3178
3179
3180
3181
3182 #
3183 # Kerberos 4
3184 #
3185 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3186 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3187
3188
3189
3190 # Check whether --with-krb4 or --without-krb4 was given.
3191 if test "${with_krb4+set}" = set; then
3192   withval="$with_krb4"
3193
3194   case $withval in
3195     yes)
3196       krb4_prefix=/usr/athena
3197       ;;
3198     no)
3199       :
3200       ;;
3201     *)
3202       with_krb4=yes
3203 krb4_prefix=$withval
3204       ;;
3205   esac
3206
3207 else
3208   with_krb4=no
3209 fi;
3210
3211
3212 if test "$with_krb4" = yes; then
3213
3214   echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6
3216
3217 cat >>confdefs.h <<\_ACEOF
3218 #define KRB4 1
3219 _ACEOF
3220
3221
3222   if test -d "$krb4_prefix/include"; then
3223     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3224   fi
3225   if test -d "$krb4_prefix/lib"; then
3226     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3227   fi
3228
3229   krb_srvtab="/etc/srvtab"
3230
3231 else
3232   echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236
3237
3238
3239
3240 #
3241 # Kerberos 5
3242 #
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3245
3246
3247
3248 # Check whether --with-krb5 or --without-krb5 was given.
3249 if test "${with_krb5+set}" = set; then
3250   withval="$with_krb5"
3251
3252   case $withval in
3253     yes)
3254       krb5_prefix=/usr/athena
3255       ;;
3256     no)
3257       :
3258       ;;
3259     *)
3260       with_krb5=yes
3261 krb5_prefix=$withval
3262       ;;
3263   esac
3264
3265 else
3266   with_krb5=no
3267 fi;
3268
3269
3270 if test "$with_krb5" = yes; then
3271
3272   echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define KRB5 1
3277 _ACEOF
3278
3279
3280   if test -d "$krb5_prefix/include"; then
3281     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3282   fi
3283   if test -d "$krb5_prefix/lib"; then
3284     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3285   fi
3286
3287   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3288
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294
3295
3296
3297
3298 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3299 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3300   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3301 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3302    { (exit 1); exit 1; }; }
3303 fi
3304
3305
3306
3307
3308 #
3309 # Kerberos configuration parameters
3310 #
3311
3312
3313
3314 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3315 if test "${with_krb_srvnam+set}" = set; then
3316   withval="$with_krb_srvnam"
3317
3318   case $withval in
3319     yes)
3320       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3321 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3322    { (exit 1); exit 1; }; }
3323       ;;
3324     no)
3325       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3326 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3327    { (exit 1); exit 1; }; }
3328       ;;
3329     *)
3330
3331       ;;
3332   esac
3333
3334 else
3335   with_krb_srvnam="postgres"
3336 fi;
3337
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3341 _ACEOF
3342
3343
3344
3345 #
3346 # PAM
3347 #
3348 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3349 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3350
3351
3352
3353 # Check whether --with-pam or --without-pam was given.
3354 if test "${with_pam+set}" = set; then
3355   withval="$with_pam"
3356
3357   case $withval in
3358     yes)
3359
3360 cat >>confdefs.h <<\_ACEOF
3361 #define USE_PAM 1
3362 _ACEOF
3363
3364       ;;
3365     no)
3366       :
3367       ;;
3368     *)
3369       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3370 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3371    { (exit 1); exit 1; }; }
3372       ;;
3373   esac
3374
3375 else
3376   with_pam=no
3377
3378 fi;
3379
3380 echo "$as_me:$LINENO: result: $with_pam" >&5
3381 echo "${ECHO_T}$with_pam" >&6
3382
3383
3384
3385 #
3386 # OpenSSL
3387 #
3388
3389
3390
3391 # Check whether --with-openssl or --without-openssl was given.
3392 if test "${with_openssl+set}" = set; then
3393   withval="$with_openssl"
3394
3395   case $withval in
3396     yes)
3397       openssl_prefix=/usr/local/ssl
3398       ;;
3399     no)
3400       :
3401       ;;
3402     *)
3403       with_openssl=yes
3404 openssl_prefix=$withval
3405       ;;
3406   esac
3407
3408 else
3409   with_openssl=no
3410 fi;
3411
3412
3413 if test "$with_openssl" = yes; then
3414
3415   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3416 echo "${ECHO_T}building with OpenSSL support" >&6
3417
3418 cat >>confdefs.h <<\_ACEOF
3419 #define USE_SSL 1
3420 _ACEOF
3421
3422
3423   if test -d "${openssl_prefix}/include" ; then
3424     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3425   fi
3426   if test -d "${openssl_prefix}/lib" ; then
3427     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3428   fi
3429
3430 fi
3431
3432
3433
3434
3435
3436 #
3437 # Readline
3438 #
3439
3440
3441
3442 # Check whether --with-readline or --without-readline was given.
3443 if test "${with_readline+set}" = set; then
3444   withval="$with_readline"
3445
3446   case $withval in
3447     yes)
3448       :
3449       ;;
3450     no)
3451       :
3452       ;;
3453     *)
3454       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3455 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3456    { (exit 1); exit 1; }; }
3457       ;;
3458   esac
3459
3460 else
3461   with_readline=yes
3462
3463 fi;
3464
3465
3466 #
3467 # Zlib
3468 #
3469
3470
3471
3472 # Check whether --with-zlib or --without-zlib was given.
3473 if test "${with_zlib+set}" = set; then
3474   withval="$with_zlib"
3475
3476   case $withval in
3477     yes)
3478       :
3479       ;;
3480     no)
3481       :
3482       ;;
3483     *)
3484       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3485 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3486    { (exit 1); exit 1; }; }
3487       ;;
3488   esac
3489
3490 else
3491   with_zlib=yes
3492
3493 fi;
3494
3495
3496
3497
3498 #
3499 # Optionally enable the building of the ODBC driver
3500 #
3501
3502 # Old option name
3503 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3504   enable_odbc=$with_odbc
3505 fi
3506
3507 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3508 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3509
3510
3511 # Check whether --enable-odbc or --disable-odbc was given.
3512 if test "${enable_odbc+set}" = set; then
3513   enableval="$enable_odbc"
3514
3515   case $enableval in
3516     yes)
3517       :
3518       ;;
3519     no)
3520       :
3521       ;;
3522     *)
3523       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3524 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3525    { (exit 1); exit 1; }; }
3526       ;;
3527   esac
3528
3529 else
3530   enable_odbc=no
3531
3532 fi;
3533
3534
3535
3536
3537 # Check whether --with-unixodbc or --without-unixodbc was given.
3538 if test "${with_unixodbc+set}" = set; then
3539   withval="$with_unixodbc"
3540
3541   case $withval in
3542     yes)
3543       :
3544       ;;
3545     no)
3546       :
3547       ;;
3548     *)
3549       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3550 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3551    { (exit 1); exit 1; }; }
3552       ;;
3553   esac
3554
3555 else
3556   with_unixodbc=no
3557
3558 fi;
3559
3560
3561
3562
3563 # Check whether --with-iodbc or --without-iodbc was given.
3564 if test "${with_iodbc+set}" = set; then
3565   withval="$with_iodbc"
3566
3567   case $withval in
3568     yes)
3569       :
3570       ;;
3571     no)
3572       :
3573       ;;
3574     *)
3575       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3576 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3577    { (exit 1); exit 1; }; }
3578       ;;
3579   esac
3580
3581 else
3582   with_iodbc=no
3583
3584 fi;
3585
3586 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3587   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3588 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3592   enable_odbc=yes
3593 fi
3594 case $enable_odbc:$with_unixodbc:$with_iodbc in
3595   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3596 echo "${ECHO_T}yes (stand-alone)" >&6;;
3597   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3598 echo "${ECHO_T}yes (unixODBC)" >&6
3599
3600 cat >>confdefs.h <<\_ACEOF
3601 #define WITH_UNIXODBC 1
3602 _ACEOF
3603
3604                 ;;
3605   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3606 echo "${ECHO_T}yes (iODBC)" >&6
3607
3608 cat >>confdefs.h <<\_ACEOF
3609 #define WITH_IODBC 1
3610 _ACEOF
3611
3612                 ;;
3613   no:*)         echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6;;
3615 esac
3616
3617
3618
3619
3620
3621 # Allow for overriding the default location of the odbcinst.ini
3622 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3623
3624
3625
3626 # Check whether --with-odbcinst or --without-odbcinst was given.
3627 if test "${with_odbcinst+set}" = set; then
3628   withval="$with_odbcinst"
3629
3630   case $withval in
3631     yes)
3632       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3633 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3634    { (exit 1); exit 1; }; }
3635       ;;
3636     no)
3637       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3638 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3639    { (exit 1); exit 1; }; }
3640       ;;
3641     *)
3642       odbcinst_ini_dir=$withval
3643       ;;
3644   esac
3645
3646 else
3647   odbcinst_ini_dir="\${sysconfdir}"
3648 fi;
3649
3650
3651
3652
3653
3654 # Assume system is ELF if it predefines __ELF__ as 1,
3655 # otherwise believe host_os based default.
3656 case $host_os in
3657     freebsd1*|freebsd2*) elf=no;;
3658     freebsd3*|freebsd4*) elf=yes;;
3659 esac
3660
3661
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line $LINENO "configure"
3664 #include "confdefs.h"
3665 #if __ELF__
3666   yes
3667 #endif
3668
3669 _ACEOF
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671   egrep "yes" >/dev/null 2>&1; then
3672   ELF_SYS=true
3673 else
3674   if test "X$elf" = "Xyes" ; then
3675   ELF_SYS=true
3676 else
3677   ELF_SYS=
3678 fi
3679 fi
3680 rm -f conftest*
3681
3682
3683
3684
3685
3686 #
3687 # Optionally build C++ code (i.e., libpq++)
3688 #
3689 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3690 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3691
3692
3693
3694 # Check whether --with-CXX or --without-CXX was given.
3695 if test "${with_CXX+set}" = set; then
3696   withval="$with_CXX"
3697
3698   case $withval in
3699     yes)
3700       :
3701       ;;
3702     no)
3703       :
3704       ;;
3705     *)
3706       with_CXX=yes
3707 CXX=$withval
3708       ;;
3709   esac
3710
3711 else
3712   with_CXX=no
3713 fi;
3714
3715
3716 if test "$with_CXX" = yes; then
3717
3718   echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6
3720
3721   # If the user has specified CXXFLAGS in the environment, leave it
3722   # alone, else use a default.
3723
3724   ac_ext=cc
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729 if test -n "$ac_tool_prefix"; then
3730   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3731   do
3732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_CXX+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test -n "$CXX"; then
3740   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751     break 2
3752   fi
3753 done
3754 done
3755
3756 fi
3757 fi
3758 CXX=$ac_cv_prog_CXX
3759 if test -n "$CXX"; then
3760   echo "$as_me:$LINENO: result: $CXX" >&5
3761 echo "${ECHO_T}$CXX" >&6
3762 else
3763   echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766
3767     test -n "$CXX" && break
3768   done
3769 fi
3770 if test -z "$CXX"; then
3771   ac_ct_CXX=$CXX
3772   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774   # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$ac_ct_CXX"; then
3782   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791     ac_cv_prog_ac_ct_CXX="$ac_prog"
3792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796 done
3797
3798 fi
3799 fi
3800 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3801 if test -n "$ac_ct_CXX"; then
3802   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3803 echo "${ECHO_T}$ac_ct_CXX" >&6
3804 else
3805   echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808
3809   test -n "$ac_ct_CXX" && break
3810 done
3811 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3812
3813   CXX=$ac_ct_CXX
3814 fi
3815
3816
3817 # Provide some information about the compiler.
3818 echo "$as_me:$LINENO:" \
3819      "checking for C++ compiler version" >&5
3820 ac_compiler=`set X $ac_compile; echo $2`
3821 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3822   (eval $ac_compiler --version </dev/null >&5) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }
3826 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3827   (eval $ac_compiler -v </dev/null >&5) 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); }
3831 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3832   (eval $ac_compiler -V </dev/null >&5) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }
3836
3837 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3845
3846 #ifdef F77_DUMMY_MAIN
3847 #  ifdef __cplusplus
3848      extern "C"
3849 #  endif
3850    int F77_DUMMY_MAIN() { return 1; }
3851 #endif
3852 int
3853 main ()
3854 {
3855 #ifndef __GNUC__
3856        choke me
3857 #endif
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865   (eval $ac_compile) 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -s conftest.$ac_objext'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   ac_compiler_gnu=yes
3876 else
3877   echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 ac_compiler_gnu=no
3880 fi
3881 rm -f conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3887 GXX=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CXXFLAGS=${CXXFLAGS+set}
3889 ac_save_CXXFLAGS=$CXXFLAGS
3890 CXXFLAGS="-g"
3891 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3892 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cxx_g+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   cat >conftest.$ac_ext <<_ACEOF
3897 #line $LINENO "configure"
3898 #include "confdefs.h"
3899
3900 #ifdef F77_DUMMY_MAIN
3901 #  ifdef __cplusplus
3902      extern "C"
3903 #  endif
3904    int F77_DUMMY_MAIN() { return 1; }
3905 #endif
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916   (eval $ac_compile) 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920          { ac_try='test -s conftest.$ac_objext'
3921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922   (eval $ac_try) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; }; then
3926   ac_cv_prog_cxx_g=yes
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 ac_cv_prog_cxx_g=no
3931 fi
3932 rm -f conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3935 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3936 if test "$ac_test_CXXFLAGS" = set; then
3937   CXXFLAGS=$ac_save_CXXFLAGS
3938 elif test $ac_cv_prog_cxx_g = yes; then
3939   if test "$GXX" = yes; then
3940     CXXFLAGS="-g -O2"
3941   else
3942     CXXFLAGS="-g"
3943   fi
3944 else
3945   if test "$GXX" = yes; then
3946     CXXFLAGS="-O2"
3947   else
3948     CXXFLAGS=
3949   fi
3950 fi
3951 for ac_declaration in \
3952    ''\
3953    '#include <stdlib.h>' \
3954    'extern "C" void std::exit (int) throw (); using std::exit;' \
3955    'extern "C" void std::exit (int); using std::exit;' \
3956    'extern "C" void exit (int) throw ();' \
3957    'extern "C" void exit (int);' \
3958    'void exit (int);'
3959 do
3960   cat >conftest.$ac_ext <<_ACEOF
3961 #line $LINENO "configure"
3962 #include "confdefs.h"
3963 #include <stdlib.h>
3964 $ac_declaration
3965 #ifdef F77_DUMMY_MAIN
3966 #  ifdef __cplusplus
3967      extern "C"
3968 #  endif
3969    int F77_DUMMY_MAIN() { return 1; }
3970 #endif
3971 int
3972 main ()
3973 {
3974 exit (42);
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981   (eval $ac_compile) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } &&
3985          { ac_try='test -s conftest.$ac_objext'
3986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987   (eval $ac_try) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }; }; then
3991   :
3992 else
3993   echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 continue
3996 fi
3997 rm -f conftest.$ac_objext conftest.$ac_ext
3998   cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 $ac_declaration
4002 #ifdef F77_DUMMY_MAIN
4003 #  ifdef __cplusplus
4004      extern "C"
4005 #  endif
4006    int F77_DUMMY_MAIN() { return 1; }
4007 #endif
4008 int
4009 main ()
4010 {
4011 exit (42);
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018   (eval $ac_compile) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 fi
4033 rm -f conftest.$ac_objext conftest.$ac_ext
4034 done
4035 rm -f conftest*
4036 if test -n "$ac_declaration"; then
4037   echo '#ifdef __cplusplus' >>confdefs.h
4038   echo $ac_declaration      >>confdefs.h
4039   echo '#endif'             >>confdefs.h
4040 fi
4041
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048   if test "$ac_env_CXXFLAGS" != set; then
4049     if test "$GXX" = yes; then
4050       CXXFLAGS="$GCC_CXXFLAGS"
4051     else
4052       CXXFLAGS="$VENDOR_CXXFLAGS"
4053     fi
4054   fi
4055   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4056     CXXFLAGS="$CXXFLAGS -g"
4057   fi
4058   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4059 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4060
4061   ac_ext=cc
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4066 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4067 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4068 if test -z "$CXXCPP"; then
4069   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072       # Double quotes because CXXCPP needs to be expanded
4073     for CXXCPP in "$CXX -E" "/lib/cpp"
4074     do
4075       ac_preproc_ok=false
4076 for ac_cxx_preproc_warn_flag in '' yes
4077 do
4078   # Use a header file that comes with gcc, so configuring glibc
4079   # with a fresh cross-compiler works.
4080   # On the NeXT, cc -E runs the code through the compiler's parser,
4081   # not just through cpp. "Syntax error" is here to catch this case.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 #include <assert.h>
4086                      Syntax error
4087 _ACEOF
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090   ac_status=$?
4091   egrep -v '^ *\+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } >/dev/null; then
4096   if test -s conftest.err; then
4097     ac_cpp_err=$ac_cxx_preproc_warn_flag
4098   else
4099     ac_cpp_err=
4100   fi
4101 else
4102   ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105   :
4106 else
4107   echo "$as_me: failed program was:" >&5
4108   cat conftest.$ac_ext >&5
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 #line $LINENO "configure"
4118 #include "confdefs.h"
4119 #include <ac_nonexistent.h>
4120 _ACEOF
4121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4123   ac_status=$?
4124   egrep -v '^ *\+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null; then
4129   if test -s conftest.err; then
4130     ac_cpp_err=$ac_cxx_preproc_warn_flag
4131   else
4132     ac_cpp_err=
4133   fi
4134 else
4135   ac_cpp_err=yes
4136 fi
4137 if test -z "$ac_cpp_err"; then
4138   # Broken: success on invalid input.
4139 continue
4140 else
4141   echo "$as_me: failed program was:" >&5
4142   cat conftest.$ac_ext >&5
4143   # Passes both tests.
4144 ac_preproc_ok=:
4145 break
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 done
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.err conftest.$ac_ext
4152 if $ac_preproc_ok; then
4153   break
4154 fi
4155
4156     done
4157     ac_cv_prog_CXXCPP=$CXXCPP
4158
4159 fi
4160   CXXCPP=$ac_cv_prog_CXXCPP
4161 else
4162   ac_cv_prog_CXXCPP=$CXXCPP
4163 fi
4164 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4165 echo "${ECHO_T}$CXXCPP" >&6
4166 ac_preproc_ok=false
4167 for ac_cxx_preproc_warn_flag in '' yes
4168 do
4169   # Use a header file that comes with gcc, so configuring glibc
4170   # with a fresh cross-compiler works.
4171   # On the NeXT, cc -E runs the code through the compiler's parser,
4172   # not just through cpp. "Syntax error" is here to catch this case.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4176 #include <assert.h>
4177                      Syntax error
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_cxx_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   :
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   # Broken: fails on valid input.
4201 continue
4202 fi
4203 rm -f conftest.err conftest.$ac_ext
4204
4205   # OK, works on sane cases.  Now check whether non-existent headers
4206   # can be detected and how.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 #line $LINENO "configure"
4209 #include "confdefs.h"
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214   ac_status=$?
4215   egrep -v '^ *\+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } >/dev/null; then
4220   if test -s conftest.err; then
4221     ac_cpp_err=$ac_cxx_preproc_warn_flag
4222   else
4223     ac_cpp_err=
4224   fi
4225 else
4226   ac_cpp_err=yes
4227 fi
4228 if test -z "$ac_cpp_err"; then
4229   # Broken: success on invalid input.
4230 continue
4231 else
4232   echo "$as_me: failed program was:" >&5
4233   cat conftest.$ac_ext >&5
4234   # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4237 fi
4238 rm -f conftest.err conftest.$ac_ext
4239
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then
4244   :
4245 else
4246   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4247 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4248    { (exit 1); exit 1; }; }
4249 fi
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264
4265
4266 CPPFLAGS="$CPPFLAGS $INCLUDES"
4267 LDFLAGS="$LDFLAGS $LIBDIRS"
4268
4269 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4270 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4271 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4272 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4273
4274
4275 for ac_prog in gawk mawk nawk awk
4276 do
4277   # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_AWK+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$AWK"; then
4285   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_AWK="$ac_prog"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 AWK=$ac_cv_prog_AWK
4304 if test -n "$AWK"; then
4305   echo "$as_me:$LINENO: result: $AWK" >&5
4306 echo "${ECHO_T}$AWK" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312   test -n "$AWK" && break
4313 done
4314
4315 echo "$as_me:$LINENO: checking for flex" >&5
4316 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4317 if test "${pgac_cv_path_flex+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   # Let the user override the test
4321 if test -n "$FLEX"; then
4322   pgac_cv_path_flex=$FLEX
4323 else
4324   pgac_save_IFS=$IFS
4325   IFS=:
4326   for pgac_dir in $PATH; do
4327     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4328       pgac_dir=`pwd`
4329     fi
4330     for pgac_prog in flex lex; do
4331       pgac_candidate="$pgac_dir/$pgac_prog"
4332       if test -f "$pgac_candidate" \
4333         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4334       then
4335         echo '%%'  > conftest.l
4336         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4337           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4338             pgac_broken_flex=$pgac_candidate
4339             continue
4340           fi
4341
4342           pgac_cv_path_flex=$pgac_candidate
4343           break 2
4344         fi
4345       fi
4346     done
4347   done
4348   IFS=$pgac_save_IFS
4349   rm -f conftest.l
4350   : ${pgac_cv_path_flex=no}
4351 fi
4352
4353 fi
4354 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4355 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4356 if test x"$pgac_cv_path_flex" = x"no"; then
4357   if test -n "$pgac_broken_flex"; then
4358     { echo "$as_me:$LINENO: WARNING:
4359 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4360 *** should get version 2.5.4 or later." >&5
4361 echo "$as_me: WARNING:
4362 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4363 *** should get version 2.5.4 or later." >&2;}
4364   fi
4365
4366   { echo "$as_me:$LINENO: WARNING:
4367 *** Without Flex you will not be able to build PostgreSQL from CVS or
4368 *** change any of the scanner definition files.  You can obtain Flex from
4369 *** a GNU mirror site.  (If you are using the official distribution of
4370 *** PostgreSQL then you do not need to worry about this because the Flex
4371 *** output is pre-generated.)" >&5
4372 echo "$as_me: WARNING:
4373 *** Without Flex you will not be able to build PostgreSQL from CVS or
4374 *** change any of the scanner definition files.  You can obtain Flex from
4375 *** a GNU mirror site.  (If you are using the official distribution of
4376 *** PostgreSQL then you do not need to worry about this because the Flex
4377 *** output is pre-generated.)" >&2;}
4378 fi
4379
4380 if test x"$pgac_cv_path_flex" = x"no"; then
4381   FLEX=
4382 else
4383   FLEX=$pgac_cv_path_flex
4384 fi
4385
4386
4387
4388
4389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4391 LN_S=$as_ln_s
4392 if test "$LN_S" = "ln -s"; then
4393   echo "$as_me:$LINENO: result: yes" >&5
4394 echo "${ECHO_T}yes" >&6
4395 else
4396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4397 echo "${ECHO_T}no, using $LN_S" >&6
4398 fi
4399
4400
4401 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4402 if test "${with_gnu_ld+set}" = set; then
4403   withval="$with_gnu_ld"
4404   test "$withval" = no || with_gnu_ld=yes
4405 else
4406   with_gnu_ld=no
4407 fi;
4408 ac_prog=ld
4409 if test "$GCC" = yes; then
4410   # Check if gcc -print-prog-name=ld gives a path.
4411   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4412 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4413   case $host in
4414   *-*-mingw*)
4415     # gcc leaves a trailing carriage return which upsets mingw
4416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417   *)
4418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419   esac
4420   case "$ac_prog" in
4421     # Accept absolute paths.
4422     [\\/]* | [A-Za-z]:[\\/]*)
4423       re_direlt='/[^/][^/]*/\.\./'
4424       # Canonicalize the path of ld
4425       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4427         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4428       done
4429       test -z "$LD" && LD="$ac_prog"
4430       ;;
4431   "")
4432     # If it fails, then pretend we aren't using GCC.
4433     ac_prog=ld
4434     ;;
4435   *)
4436     # If it is relative, then search for the first ld in PATH.
4437     with_gnu_ld=unknown
4438     ;;
4439   esac
4440 elif test "$with_gnu_ld" = yes; then
4441   echo "$as_me:$LINENO: checking for GNU ld" >&5
4442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4443 else
4444   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4446 fi
4447 if test "${ac_cv_path_LD+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -z "$LD"; then
4451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4452   for ac_dir in $PATH; do
4453     test -z "$ac_dir" && ac_dir=.
4454     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455       ac_cv_path_LD="$ac_dir/$ac_prog"
4456       # Check to see if the program is GNU ld.  I'd rather use --version,
4457       # but apparently some GNU ld's only accept -v.
4458       # Break only if it was the GNU/non-GNU ld that we prefer.
4459       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4460         test "$with_gnu_ld" != no && break
4461       else
4462         test "$with_gnu_ld" != yes && break
4463       fi
4464     fi
4465   done
4466   IFS="$ac_save_ifs"
4467 else
4468   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4469 fi
4470 fi
4471
4472 LD="$ac_cv_path_LD"
4473 if test -n "$LD"; then
4474   echo "$as_me:$LINENO: result: $LD" >&5
4475 echo "${ECHO_T}$LD" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4482    { (exit 1); exit 1; }; }
4483 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4485 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4489 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4490   ac_cv_prog_gnu_ld=yes
4491 else
4492   ac_cv_prog_gnu_ld=no
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4496 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4497 with_gnu_ld=$ac_cv_prog_gnu_ld
4498
4499
4500
4501
4502 case $host_os in sysv5*)
4503   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4504 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4505 if test "${pgac_cv_prog_ld_R+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508
4509     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4510     cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 #include "confdefs.h"
4513
4514 #ifdef F77_DUMMY_MAIN
4515 #  ifdef __cplusplus
4516      extern "C"
4517 #  endif
4518    int F77_DUMMY_MAIN() { return 1; }
4519 #endif
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530   (eval $ac_link) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -s conftest$ac_exeext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   pgac_cv_prog_ld_R=yes
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 pgac_cv_prog_ld_R=no
4545 fi
4546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4547     LDFLAGS=$pgac_save_LDFLAGS
4548
4549 fi
4550 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4551 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4552   ld_R_works=$pgac_cv_prog_ld_R
4553
4554 esac
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 for ac_prog in lorder
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_LORDER+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   if test -n "$LORDER"; then
4645   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654     ac_cv_prog_LORDER="$ac_prog"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660
4661 fi
4662 fi
4663 LORDER=$ac_cv_prog_LORDER
4664 if test -n "$LORDER"; then
4665   echo "$as_me:$LINENO: result: $LORDER" >&5
4666 echo "${ECHO_T}$LORDER" >&6
4667 else
4668   echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670 fi
4671
4672   test -n "$LORDER" && break
4673 done
4674
4675 # Extract the first word of "tar", so it can be a program name with args.
4676 set dummy tar; ac_word=$2
4677 echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4679 if test "${ac_cv_path_TAR+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   case $TAR in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692   for ac_exec_ext in '' $ac_executable_extensions; do
4693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699 done
4700
4701   ;;
4702 esac
4703 fi
4704 TAR=$ac_cv_path_TAR
4705
4706 if test -n "$TAR"; then
4707   echo "$as_me:$LINENO: result: $TAR" >&5
4708 echo "${ECHO_T}$TAR" >&6
4709 else
4710   echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 fi
4713
4714
4715   if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$STRIP"; then
4724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744   echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_STRIP"; then
4753   ac_ct_STRIP=$STRIP
4754   # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_STRIP"; then
4762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_STRIP="strip"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779 fi
4780 fi
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   STRIP=$ac_ct_STRIP
4791 else
4792   STRIP="$ac_cv_prog_STRIP"
4793 fi
4794
4795
4796   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4797 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4798   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4799     STRIP_STATIC_LIB="$STRIP -x"
4800     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4801     echo "$as_me:$LINENO: result: yes" >&5
4802 echo "${ECHO_T}yes" >&6
4803   else
4804     STRIP_STATIC_LIB=:
4805     STRIP_SHARED_LIB=:
4806     echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808   fi
4809
4810
4811
4812
4813 for ac_prog in 'bison -y'
4814 do
4815   # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_YACC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$YACC"; then
4823   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_YACC="$ac_prog"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 YACC=$ac_cv_prog_YACC
4842 if test -n "$YACC"; then
4843   echo "$as_me:$LINENO: result: $YACC" >&5
4844 echo "${ECHO_T}$YACC" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850   test -n "$YACC" && break
4851 done
4852
4853 if test -z "$YACC"; then
4854   { echo "$as_me:$LINENO: WARNING:
4855 *** Without Bison you will not be able to build PostgreSQL from CVS or
4856 *** change any of the parser definition files.  You can obtain Bison from
4857 *** a GNU mirror site.  (If you are using the official distribution of
4858 *** PostgreSQL then you do not need to worry about this because the Bison
4859 *** output is pre-generated.)  To use a different yacc program (possible,
4860 *** but not recommended), set the environment variable YACC before running
4861 *** 'configure'." >&5
4862 echo "$as_me: WARNING:
4863 *** Without Bison you will not be able to build PostgreSQL from CVS or
4864 *** change any of the parser definition files.  You can obtain Bison from
4865 *** a GNU mirror site.  (If you are using the official distribution of
4866 *** PostgreSQL then you do not need to worry about this because the Bison
4867 *** output is pre-generated.)  To use a different yacc program (possible,
4868 *** but not recommended), set the environment variable YACC before running
4869 *** 'configure'." >&2;}
4870 fi
4871
4872
4873 if test "$with_tk" = yes; then
4874     # Extract the first word of "wish", so it can be a program name with args.
4875 set dummy wish; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_WISH+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   case $WISH in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899
4900   ;;
4901 esac
4902 fi
4903 WISH=$ac_cv_path_WISH
4904
4905 if test -n "$WISH"; then
4906   echo "$as_me:$LINENO: result: $WISH" >&5
4907 echo "${ECHO_T}$WISH" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4914 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4915    { (exit 1); exit 1; }; }
4916 fi
4917
4918 # Extract the first word of "perl", so it can be a program name with args.
4919 set dummy perl; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_path_PERL+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   case $PERL in
4926   [\\/]* | ?:[\\/]*)
4927   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4928   ;;
4929   *)
4930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944   ;;
4945 esac
4946 fi
4947 PERL=$ac_cv_path_PERL
4948
4949 if test -n "$PERL"; then
4950   echo "$as_me:$LINENO: result: $PERL" >&5
4951 echo "${ECHO_T}$PERL" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957 if test "$with_perl" = yes; then
4958
4959 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4960 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4961 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4962 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4963 echo "${ECHO_T}$perl_installsitearch" >&6
4964 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4965 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4966 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4967 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4968 echo "${ECHO_T}$perl_installman3dir" >&6
4969 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4970 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4971 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4972 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4973 echo "${ECHO_T}$perl_archlibexp" >&6
4974 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4975 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4976 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4977 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4978 echo "${ECHO_T}$perl_privlibexp" >&6
4979 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4980 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4981 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4982 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4983 echo "${ECHO_T}$perl_useshrplib" >&6
4984 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4985 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4986 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4987 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4988 echo "${ECHO_T}$perl_man3ext" >&6
4989
4990 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4991 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4992 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4993 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4994 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4995 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4996 echo "${ECHO_T}$perl_embed_ldflags" >&6
4997 fi
4998
4999 if test "$with_python" = yes; then
5000   # Extract the first word of "python", so it can be a program name with args.
5001 set dummy python; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_PYTHON+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case $PYTHON in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025
5026   ;;
5027 esac
5028 fi
5029 PYTHON=$ac_cv_path_PYTHON
5030
5031 if test -n "$PYTHON"; then
5032   echo "$as_me:$LINENO: result: $PYTHON" >&5
5033 echo "${ECHO_T}$PYTHON" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039 if test x"$PYTHON" = x""; then
5040   { { echo "$as_me:$LINENO: error: Python not found" >&5
5041 echo "$as_me: error: Python not found" >&2;}
5042    { (exit 1); exit 1; }; }
5043 fi
5044
5045
5046 echo "$as_me:$LINENO: checking Python installation directories" >&5
5047 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5048 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5049 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5050 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5051 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5052 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5053 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5054 python_includespec="-I${python_prefix}/include/python${python_version}"
5055 if test "$python_prefix" != "$python_execprefix"; then
5056   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5057 fi
5058
5059 # This should be enough of a message.
5060 if test "$python_prefix" != "$python_execprefix"; then
5061   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5062 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5063 else
5064   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5065 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5066 fi
5067
5068
5069
5070
5071
5072 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5073 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5074
5075 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5076 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080
5081 pgac_tab="      " # tab character
5082 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"`
5083
5084 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5085 echo "${ECHO_T}${python_libspec}" >&6
5086
5087
5088 fi
5089
5090
5091 ##
5092 ## Libraries
5093 ##
5094
5095 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5096 then
5097
5098 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5099 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5100 if test "${ac_cv_lib_bsd_main+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103   ac_check_lib_save_LIBS=$LIBS
5104 LIBS="-lbsd  $LIBS"
5105 cat >conftest.$ac_ext <<_ACEOF
5106 #line $LINENO "configure"
5107 #include "confdefs.h"
5108
5109
5110 #ifdef F77_DUMMY_MAIN
5111 #  ifdef __cplusplus
5112      extern "C"
5113 #  endif
5114    int F77_DUMMY_MAIN() { return 1; }
5115 #endif
5116 int
5117 main ()
5118 {
5119 main ();
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126   (eval $ac_link) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); } &&
5130          { ac_try='test -s conftest$ac_exeext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_lib_bsd_main=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 ac_cv_lib_bsd_main=no
5141 fi
5142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5146 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5147 if test $ac_cv_lib_bsd_main = yes; then
5148   cat >>confdefs.h <<_ACEOF
5149 #define HAVE_LIBBSD 1
5150 _ACEOF
5151
5152   LIBS="-lbsd $LIBS"
5153
5154 fi
5155
5156 fi
5157
5158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   ac_check_lib_save_LIBS=$LIBS
5164 LIBS="-lutil  $LIBS"
5165 cat >conftest.$ac_ext <<_ACEOF
5166 #line $LINENO "configure"
5167 #include "confdefs.h"
5168
5169 /* Override any gcc2 internal prototype to avoid an error.  */
5170 #ifdef __cplusplus
5171 extern "C"
5172 #endif
5173 /* We use char because int might match the return type of a gcc2
5174    builtin and then its argument prototype would still apply.  */
5175 char setproctitle ();
5176 #ifdef F77_DUMMY_MAIN
5177 #  ifdef __cplusplus
5178      extern "C"
5179 #  endif
5180    int F77_DUMMY_MAIN() { return 1; }
5181 #endif
5182 int
5183 main ()
5184 {
5185 setproctitle ();
5186   ;
5187   return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192   (eval $ac_link) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } &&
5196          { ac_try='test -s conftest$ac_exeext'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   ac_cv_lib_util_setproctitle=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_util_setproctitle=no
5207 fi
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5210 fi
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5212 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5213 if test $ac_cv_lib_util_setproctitle = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBUTIL 1
5216 _ACEOF
5217
5218   LIBS="-lutil $LIBS"
5219
5220 fi
5221
5222
5223 echo "$as_me:$LINENO: checking for main in -lm" >&5
5224 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5225 if test "${ac_cv_lib_m_main+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lm  $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5233
5234
5235 #ifdef F77_DUMMY_MAIN
5236 #  ifdef __cplusplus
5237      extern "C"
5238 #  endif
5239    int F77_DUMMY_MAIN() { return 1; }
5240 #endif
5241 int
5242 main ()
5243 {
5244 main ();
5245   ;
5246   return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251   (eval $ac_link) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } &&
5255          { ac_try='test -s conftest$ac_exeext'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; }; then
5261   ac_cv_lib_m_main=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_lib_m_main=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5272 if test $ac_cv_lib_m_main = yes; then
5273   cat >>confdefs.h <<_ACEOF
5274 #define HAVE_LIBM 1
5275 _ACEOF
5276
5277   LIBS="-lm $LIBS"
5278
5279 fi
5280
5281
5282 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5283 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5284 if test "${ac_cv_lib_dl_main+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-ldl  $LIBS"
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292
5293
5294 #ifdef F77_DUMMY_MAIN
5295 #  ifdef __cplusplus
5296      extern "C"
5297 #  endif
5298    int F77_DUMMY_MAIN() { return 1; }
5299 #endif
5300 int
5301 main ()
5302 {
5303 main ();
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310   (eval $ac_link) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } &&
5314          { ac_try='test -s conftest$ac_exeext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_cv_lib_dl_main=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_lib_dl_main=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5330 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5331 if test $ac_cv_lib_dl_main = yes; then
5332   cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBDL 1
5334 _ACEOF
5335
5336   LIBS="-ldl $LIBS"
5337
5338 fi
5339
5340
5341 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5342 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5343 if test "${ac_cv_lib_nsl_main+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lnsl  $LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line $LINENO "configure"
5350 #include "confdefs.h"
5351
5352
5353 #ifdef F77_DUMMY_MAIN
5354 #  ifdef __cplusplus
5355      extern "C"
5356 #  endif
5357    int F77_DUMMY_MAIN() { return 1; }
5358 #endif
5359 int
5360 main ()
5361 {
5362 main ();
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369   (eval $ac_link) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_lib_nsl_main=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 ac_cv_lib_nsl_main=no
5384 fi
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5386 LIBS=$ac_check_lib_save_LIBS
5387 fi
5388 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5389 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5390 if test $ac_cv_lib_nsl_main = yes; then
5391   cat >>confdefs.h <<_ACEOF
5392 #define HAVE_LIBNSL 1
5393 _ACEOF
5394
5395   LIBS="-lnsl $LIBS"
5396
5397 fi
5398
5399
5400 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5401 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5402 if test "${ac_cv_lib_socket_main+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   ac_check_lib_save_LIBS=$LIBS
5406 LIBS="-lsocket  $LIBS"
5407 cat >conftest.$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410
5411
5412 #ifdef F77_DUMMY_MAIN
5413 #  ifdef __cplusplus
5414      extern "C"
5415 #  endif
5416    int F77_DUMMY_MAIN() { return 1; }
5417 #endif
5418 int
5419 main ()
5420 {
5421 main ();
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5428   (eval $ac_link) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } &&
5432          { ac_try='test -s conftest$ac_exeext'
5433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434   (eval $ac_try) 2>&5
5435   ac_status=$?
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); }; }; then
5438   ac_cv_lib_socket_main=yes
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 ac_cv_lib_socket_main=no
5443 fi
5444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5446 fi
5447 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5448 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5449 if test $ac_cv_lib_socket_main = yes; then
5450   cat >>confdefs.h <<_ACEOF
5451 #define HAVE_LIBSOCKET 1
5452 _ACEOF
5453
5454   LIBS="-lsocket $LIBS"
5455
5456 fi
5457
5458
5459 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5460 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5461 if test "${ac_cv_lib_ipc_main+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   ac_check_lib_save_LIBS=$LIBS
5465 LIBS="-lipc  $LIBS"
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 #include "confdefs.h"
5469
5470
5471 #ifdef F77_DUMMY_MAIN
5472 #  ifdef __cplusplus
5473      extern "C"
5474 #  endif
5475    int F77_DUMMY_MAIN() { return 1; }
5476 #endif
5477 int
5478 main ()
5479 {
5480 main ();
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487   (eval $ac_link) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } &&
5491          { ac_try='test -s conftest$ac_exeext'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; }; then
5497   ac_cv_lib_ipc_main=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 ac_cv_lib_ipc_main=no
5502 fi
5503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5504 LIBS=$ac_check_lib_save_LIBS
5505 fi
5506 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5507 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5508 if test $ac_cv_lib_ipc_main = yes; then
5509   cat >>confdefs.h <<_ACEOF
5510 #define HAVE_LIBIPC 1
5511 _ACEOF
5512
5513   LIBS="-lipc $LIBS"
5514
5515 fi
5516
5517
5518 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5519 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5520 if test "${ac_cv_lib_IPC_main+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523   ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-lIPC  $LIBS"
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line $LINENO "configure"
5527 #include "confdefs.h"
5528
5529
5530 #ifdef F77_DUMMY_MAIN
5531 #  ifdef __cplusplus
5532      extern "C"
5533 #  endif
5534    int F77_DUMMY_MAIN() { return 1; }
5535 #endif
5536 int
5537 main ()
5538 {
5539 main ();
5540   ;
5541   return 0;
5542 }
5543 _ACEOF
5544 rm -f conftest.$ac_objext conftest$ac_exeext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5546   (eval $ac_link) 2>&5
5547   ac_status=$?
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } &&
5550          { ac_try='test -s conftest$ac_exeext'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; }; then
5556   ac_cv_lib_IPC_main=yes
5557 else
5558   echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 ac_cv_lib_IPC_main=no
5561 fi
5562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5564 fi
5565 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5566 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5567 if test $ac_cv_lib_IPC_main = yes; then
5568   cat >>confdefs.h <<_ACEOF
5569 #define HAVE_LIBIPC 1
5570 _ACEOF
5571
5572   LIBS="-lIPC $LIBS"
5573
5574 fi
5575
5576
5577 echo "$as_me:$LINENO: checking for main in -llc" >&5
5578 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5579 if test "${ac_cv_lib_lc_main+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-llc  $LIBS"
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line $LINENO "configure"
5586 #include "confdefs.h"
5587
5588
5589 #ifdef F77_DUMMY_MAIN
5590 #  ifdef __cplusplus
5591      extern "C"
5592 #  endif
5593    int F77_DUMMY_MAIN() { return 1; }
5594 #endif
5595 int
5596 main ()
5597 {
5598 main ();
5599   ;
5600   return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605   (eval $ac_link) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -s conftest$ac_exeext'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   ac_cv_lib_lc_main=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 ac_cv_lib_lc_main=no
5620 fi
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 LIBS=$ac_check_lib_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5625 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5626 if test $ac_cv_lib_lc_main = yes; then
5627   cat >>confdefs.h <<_ACEOF
5628 #define HAVE_LIBLC 1
5629 _ACEOF
5630
5631   LIBS="-llc $LIBS"
5632
5633 fi
5634
5635
5636 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5637 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5638 if test "${ac_cv_lib_dld_main+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   ac_check_lib_save_LIBS=$LIBS
5642 LIBS="-ldld  $LIBS"
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5646
5647
5648 #ifdef F77_DUMMY_MAIN
5649 #  ifdef __cplusplus
5650      extern "C"
5651 #  endif
5652    int F77_DUMMY_MAIN() { return 1; }
5653 #endif
5654 int
5655 main ()
5656 {
5657 main ();
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664   (eval $ac_link) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } &&
5668          { ac_try='test -s conftest$ac_exeext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_lib_dld_main=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5678 ac_cv_lib_dld_main=no
5679 fi
5680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5681 LIBS=$ac_check_lib_save_LIBS
5682 fi
5683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5684 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5685 if test $ac_cv_lib_dld_main = yes; then
5686   cat >>confdefs.h <<_ACEOF
5687 #define HAVE_LIBDLD 1
5688 _ACEOF
5689
5690   LIBS="-ldld $LIBS"
5691
5692 fi
5693
5694
5695 echo "$as_me:$LINENO: checking for main in -lld" >&5
5696 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5697 if test "${ac_cv_lib_ld_main+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   ac_check_lib_save_LIBS=$LIBS
5701 LIBS="-lld  $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5705
5706
5707 #ifdef F77_DUMMY_MAIN
5708 #  ifdef __cplusplus
5709      extern "C"
5710 #  endif
5711    int F77_DUMMY_MAIN() { return 1; }
5712 #endif
5713 int
5714 main ()
5715 {
5716 main ();
5717   ;
5718   return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723   (eval $ac_link) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -s conftest$ac_exeext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_lib_ld_main=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_ld_main=no
5738 fi
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5743 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5744 if test $ac_cv_lib_ld_main = yes; then
5745   cat >>confdefs.h <<_ACEOF
5746 #define HAVE_LIBLD 1
5747 _ACEOF
5748
5749   LIBS="-lld $LIBS"
5750
5751 fi
5752
5753
5754 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5755 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5756 if test "${ac_cv_lib_compat_main+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-lcompat  $LIBS"
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764
5765
5766 #ifdef F77_DUMMY_MAIN
5767 #  ifdef __cplusplus
5768      extern "C"
5769 #  endif
5770    int F77_DUMMY_MAIN() { return 1; }
5771 #endif
5772 int
5773 main ()
5774 {
5775 main ();
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782   (eval $ac_link) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest$ac_exeext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   ac_cv_lib_compat_main=yes
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 ac_cv_lib_compat_main=no
5797 fi
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 LIBS=$ac_check_lib_save_LIBS
5800 fi
5801 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5802 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5803 if test $ac_cv_lib_compat_main = yes; then
5804   cat >>confdefs.h <<_ACEOF
5805 #define HAVE_LIBCOMPAT 1
5806 _ACEOF
5807
5808   LIBS="-lcompat $LIBS"
5809
5810 fi
5811
5812
5813 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5814 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5815 if test "${ac_cv_lib_BSD_main+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   ac_check_lib_save_LIBS=$LIBS
5819 LIBS="-lBSD  $LIBS"
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5823
5824
5825 #ifdef F77_DUMMY_MAIN
5826 #  ifdef __cplusplus
5827      extern "C"
5828 #  endif
5829    int F77_DUMMY_MAIN() { return 1; }
5830 #endif
5831 int
5832 main ()
5833 {
5834 main ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_lib_BSD_main=yes
5852 else
5853   echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_cv_lib_BSD_main=no
5856 fi
5857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858 LIBS=$ac_check_lib_save_LIBS
5859 fi
5860 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5861 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5862 if test $ac_cv_lib_BSD_main = yes; then
5863   cat >>confdefs.h <<_ACEOF
5864 #define HAVE_LIBBSD 1
5865 _ACEOF
5866
5867   LIBS="-lBSD $LIBS"
5868
5869 fi
5870
5871
5872 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5873 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5874 if test "${ac_cv_lib_gen_main+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   ac_check_lib_save_LIBS=$LIBS
5878 LIBS="-lgen  $LIBS"
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882
5883
5884 #ifdef F77_DUMMY_MAIN
5885 #  ifdef __cplusplus
5886      extern "C"
5887 #  endif
5888    int F77_DUMMY_MAIN() { return 1; }
5889 #endif
5890 int
5891 main ()
5892 {
5893 main ();
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -s conftest$ac_exeext'
5905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906   (eval $ac_try) 2>&5
5907   ac_status=$?
5908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); }; }; then
5910   ac_cv_lib_gen_main=yes
5911 else
5912   echo "$as_me: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 ac_cv_lib_gen_main=no
5915 fi
5916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_check_lib_save_LIBS
5918 fi
5919 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5920 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5921 if test $ac_cv_lib_gen_main = yes; then
5922   cat >>confdefs.h <<_ACEOF
5923 #define HAVE_LIBGEN 1
5924 _ACEOF
5925
5926   LIBS="-lgen $LIBS"
5927
5928 fi
5929
5930
5931 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5932 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5933 if test "${ac_cv_lib_PW_main+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   ac_check_lib_save_LIBS=$LIBS
5937 LIBS="-lPW  $LIBS"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 #include "confdefs.h"
5941
5942
5943 #ifdef F77_DUMMY_MAIN
5944 #  ifdef __cplusplus
5945      extern "C"
5946 #  endif
5947    int F77_DUMMY_MAIN() { return 1; }
5948 #endif
5949 int
5950 main ()
5951 {
5952 main ();
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 rm -f conftest.$ac_objext conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959   (eval $ac_link) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } &&
5963          { ac_try='test -s conftest$ac_exeext'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; }; then
5969   ac_cv_lib_PW_main=yes
5970 else
5971   echo "$as_me: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 ac_cv_lib_PW_main=no
5974 fi
5975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5977 fi
5978 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5979 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5980 if test $ac_cv_lib_PW_main = yes; then
5981   cat >>confdefs.h <<_ACEOF
5982 #define HAVE_LIBPW 1
5983 _ACEOF
5984
5985   LIBS="-lPW $LIBS"
5986
5987 fi
5988
5989
5990 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5991 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5992 if test "${ac_cv_lib_resolv_main+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   ac_check_lib_save_LIBS=$LIBS
5996 LIBS="-lresolv  $LIBS"
5997 cat >conftest.$ac_ext <<_ACEOF
5998 #line $LINENO "configure"
5999 #include "confdefs.h"
6000
6001
6002 #ifdef F77_DUMMY_MAIN
6003 #  ifdef __cplusplus
6004      extern "C"
6005 #  endif
6006    int F77_DUMMY_MAIN() { return 1; }
6007 #endif
6008 int
6009 main ()
6010 {
6011 main ();
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -s conftest$ac_exeext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_lib_resolv_main=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_lib_resolv_main=no
6033 fi
6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6039 if test $ac_cv_lib_resolv_main = yes; then
6040   cat >>confdefs.h <<_ACEOF
6041 #define HAVE_LIBRESOLV 1
6042 _ACEOF
6043
6044   LIBS="-lresolv $LIBS"
6045
6046 fi
6047
6048 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6049 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6050 if test "${ac_cv_search_getopt_long+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_getopt_long=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char getopt_long ();
6066 #ifdef F77_DUMMY_MAIN
6067 #  ifdef __cplusplus
6068      extern "C"
6069 #  endif
6070    int F77_DUMMY_MAIN() { return 1; }
6071 #endif
6072 int
6073 main ()
6074 {
6075 getopt_long ();
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082   (eval $ac_link) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -s conftest$ac_exeext'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   ac_cv_search_getopt_long="none required"
6093 else
6094   echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 fi
6097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6098 if test "$ac_cv_search_getopt_long" = no; then
6099   for ac_lib in getopt; do
6100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6101     cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6104
6105 /* Override any gcc2 internal prototype to avoid an error.  */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 /* We use char because int might match the return type of a gcc2
6110    builtin and then its argument prototype would still apply.  */
6111 char getopt_long ();
6112 #ifdef F77_DUMMY_MAIN
6113 #  ifdef __cplusplus
6114      extern "C"
6115 #  endif
6116    int F77_DUMMY_MAIN() { return 1; }
6117 #endif
6118 int
6119 main ()
6120 {
6121 getopt_long ();
6122   ;
6123   return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128   (eval $ac_link) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } &&
6132          { ac_try='test -s conftest$ac_exeext'
6133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134   (eval $ac_try) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; }; then
6138   ac_cv_search_getopt_long="-l$ac_lib"
6139 break
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 fi
6144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145   done
6146 fi
6147 LIBS=$ac_func_search_save_LIBS
6148 fi
6149 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6150 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6151 if test "$ac_cv_search_getopt_long" != no; then
6152   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6153
6154 fi
6155
6156 # QNX:
6157
6158 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6159 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6160 if test "${ac_cv_lib_unix_main+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lunix  $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line $LINENO "configure"
6167 #include "confdefs.h"
6168
6169
6170 #ifdef F77_DUMMY_MAIN
6171 #  ifdef __cplusplus
6172      extern "C"
6173 #  endif
6174    int F77_DUMMY_MAIN() { return 1; }
6175 #endif
6176 int
6177 main ()
6178 {
6179 main ();
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186   (eval $ac_link) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } &&
6190          { ac_try='test -s conftest$ac_exeext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_lib_unix_main=yes
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 ac_cv_lib_unix_main=no
6201 fi
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6204 fi
6205 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6206 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6207 if test $ac_cv_lib_unix_main = yes; then
6208   cat >>confdefs.h <<_ACEOF
6209 #define HAVE_LIBUNIX 1
6210 _ACEOF
6211
6212   LIBS="-lunix $LIBS"
6213
6214 fi
6215
6216 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6217 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6218 if test "${ac_cv_search_crypt+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   ac_func_search_save_LIBS=$LIBS
6222 ac_cv_search_crypt=no
6223 cat >conftest.$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6226
6227 /* Override any gcc2 internal prototype to avoid an error.  */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 /* We use char because int might match the return type of a gcc2
6232    builtin and then its argument prototype would still apply.  */
6233 char crypt ();
6234 #ifdef F77_DUMMY_MAIN
6235 #  ifdef __cplusplus
6236      extern "C"
6237 #  endif
6238    int F77_DUMMY_MAIN() { return 1; }
6239 #endif
6240 int
6241 main ()
6242 {
6243 crypt ();
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250   (eval $ac_link) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest$ac_exeext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_cv_search_crypt="none required"
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 fi
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 if test "$ac_cv_search_crypt" = no; then
6267   for ac_lib in crypt; do
6268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6269     cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 #include "confdefs.h"
6272
6273 /* Override any gcc2 internal prototype to avoid an error.  */
6274 #ifdef __cplusplus
6275 extern "C"
6276 #endif
6277 /* We use char because int might match the return type of a gcc2
6278    builtin and then its argument prototype would still apply.  */
6279 char crypt ();
6280 #ifdef F77_DUMMY_MAIN
6281 #  ifdef __cplusplus
6282      extern "C"
6283 #  endif
6284    int F77_DUMMY_MAIN() { return 1; }
6285 #endif
6286 int
6287 main ()
6288 {
6289 crypt ();
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext conftest$ac_exeext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6296   (eval $ac_link) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } &&
6300          { ac_try='test -s conftest$ac_exeext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_cv_search_crypt="-l$ac_lib"
6307 break
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6311 fi
6312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6313   done
6314 fi
6315 LIBS=$ac_func_search_save_LIBS
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6318 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6319 if test "$ac_cv_search_crypt" != no; then
6320   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6321
6322 fi
6323
6324 # BeOS:
6325
6326 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6327 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6328 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331   ac_check_lib_save_LIBS=$LIBS
6332 LIBS="-lbind  $LIBS"
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6336
6337 /* Override any gcc2 internal prototype to avoid an error.  */
6338 #ifdef __cplusplus
6339 extern "C"
6340 #endif
6341 /* We use char because int might match the return type of a gcc2
6342    builtin and then its argument prototype would still apply.  */
6343 char __inet_ntoa ();
6344 #ifdef F77_DUMMY_MAIN
6345 #  ifdef __cplusplus
6346      extern "C"
6347 #  endif
6348    int F77_DUMMY_MAIN() { return 1; }
6349 #endif
6350 int
6351 main ()
6352 {
6353 __inet_ntoa ();
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   ac_cv_lib_bind___inet_ntoa=yes
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 ac_cv_lib_bind___inet_ntoa=no
6375 fi
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6378 fi
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6380 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6381 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6382   cat >>confdefs.h <<_ACEOF
6383 #define HAVE_LIBBIND 1
6384 _ACEOF
6385
6386   LIBS="-lbind $LIBS"
6387
6388 fi
6389
6390 # Solaris:
6391 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6392 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6393 if test "${ac_cv_search_fdatasync+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   ac_func_search_save_LIBS=$LIBS
6397 ac_cv_search_fdatasync=no
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401
6402 /* Override any gcc2 internal prototype to avoid an error.  */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407    builtin and then its argument prototype would still apply.  */
6408 char fdatasync ();
6409 #ifdef F77_DUMMY_MAIN
6410 #  ifdef __cplusplus
6411      extern "C"
6412 #  endif
6413    int F77_DUMMY_MAIN() { return 1; }
6414 #endif
6415 int
6416 main ()
6417 {
6418 fdatasync ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest$ac_exeext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_search_fdatasync="none required"
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 fi
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 if test "$ac_cv_search_fdatasync" = no; then
6442   for ac_lib in rt posix4; do
6443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6444     cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447
6448 /* Override any gcc2 internal prototype to avoid an error.  */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 /* We use char because int might match the return type of a gcc2
6453    builtin and then its argument prototype would still apply.  */
6454 char fdatasync ();
6455 #ifdef F77_DUMMY_MAIN
6456 #  ifdef __cplusplus
6457      extern "C"
6458 #  endif
6459    int F77_DUMMY_MAIN() { return 1; }
6460 #endif
6461 int
6462 main ()
6463 {
6464 fdatasync ();
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471   (eval $ac_link) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } &&
6475          { ac_try='test -s conftest$ac_exeext'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; }; then
6481   ac_cv_search_fdatasync="-l$ac_lib"
6482 break
6483 else
6484   echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488   done
6489 fi
6490 LIBS=$ac_func_search_save_LIBS
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6493 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6494 if test "$ac_cv_search_fdatasync" != no; then
6495   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6496
6497 fi
6498
6499
6500 if test "$with_readline" = yes; then
6501
6502 echo "$as_me:$LINENO: checking for readline" >&5
6503 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6504
6505 if test "${pgac_cv_check_readline+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   pgac_cv_check_readline=no
6509 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6510   for pgac_rllib in -lreadline -ledit ; do
6511     pgac_save_LIBS=$LIBS
6512     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6513     cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6515 #include "confdefs.h"
6516
6517 /* Override any gcc2 internal prototype to avoid an error.  */
6518 #ifdef __cplusplus
6519 extern "C"
6520 #endif
6521 /* We use char because int might match the return type of a gcc2
6522    builtin and then its argument prototype would still apply.  */
6523 char readline ();
6524 #ifdef F77_DUMMY_MAIN
6525 #  ifdef __cplusplus
6526      extern "C"
6527 #  endif
6528    int F77_DUMMY_MAIN() { return 1; }
6529 #endif
6530 int
6531 main ()
6532 {
6533 readline ();
6534   ;
6535   return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540   (eval $ac_link) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } &&
6544          { ac_try='test -s conftest$ac_exeext'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; }; then
6550
6551       # NetBSD and OpenBSD have a broken linker that does not
6552       # recognize dependent libraries
6553       case $host_os in netbsd* | openbsd* )
6554         case $pgac_lib in
6555           *curses*) ;;
6556           *) pgac_lib=" -lcurses" ;;
6557         esac
6558       esac
6559
6560       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6561       break 2
6562
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568     LIBS=$pgac_save_LIBS
6569   done
6570 done
6571 LIBS=$pgac_save_LIBS
6572
6573 fi
6574
6575 if test "$pgac_cv_check_readline" != no ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_LIBREADLINE 1
6579 _ACEOF
6580
6581   LIBS="$pgac_cv_check_readline $LIBS"
6582   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6583 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6584 else
6585   echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6587 fi
6588   if test x"$pgac_cv_check_readline" = x"no"; then
6589     { { echo "$as_me:$LINENO: error: readline library not found
6590 Use --without-readline to disable readline support." >&5
6591 echo "$as_me: error: readline library not found
6592 Use --without-readline to disable readline support." >&2;}
6593    { (exit 1); exit 1; }; }
6594   fi
6595 fi
6596
6597 if test "$with_zlib" = yes; then
6598
6599 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6600 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6601 if test "${ac_cv_lib_z_inflate+set}" = set; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-lz  $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6609
6610 /* Override any gcc2 internal prototype to avoid an error.  */
6611 #ifdef __cplusplus
6612 extern "C"
6613 #endif
6614 /* We use char because int might match the return type of a gcc2
6615    builtin and then its argument prototype would still apply.  */
6616 char inflate ();
6617 #ifdef F77_DUMMY_MAIN
6618 #  ifdef __cplusplus
6619      extern "C"
6620 #  endif
6621    int F77_DUMMY_MAIN() { return 1; }
6622 #endif
6623 int
6624 main ()
6625 {
6626 inflate ();
6627   ;
6628   return 0;
6629 }
6630 _ACEOF
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633   (eval $ac_link) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -s conftest$ac_exeext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   ac_cv_lib_z_inflate=yes
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 ac_cv_lib_z_inflate=no
6648 fi
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6650 LIBS=$ac_check_lib_save_LIBS
6651 fi
6652 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6653 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6654 if test $ac_cv_lib_z_inflate = yes; then
6655   cat >>confdefs.h <<_ACEOF
6656 #define HAVE_LIBZ 1
6657 _ACEOF
6658
6659   LIBS="-lz $LIBS"
6660
6661 else
6662   { { echo "$as_me:$LINENO: error: zlib library not found
6663 Use --without-zlib to disable zlib support." >&5
6664 echo "$as_me: error: zlib library not found
6665 Use --without-zlib to disable zlib support." >&2;}
6666    { (exit 1); exit 1; }; }
6667 fi
6668
6669 fi
6670
6671 if test "$with_krb4" = yes ; then
6672
6673 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6674 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6675 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   ac_check_lib_save_LIBS=$LIBS
6679 LIBS="-ldes  $LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line $LINENO "configure"
6682 #include "confdefs.h"
6683
6684 /* Override any gcc2 internal prototype to avoid an error.  */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 /* We use char because int might match the return type of a gcc2
6689    builtin and then its argument prototype would still apply.  */
6690 char des_encrypt ();
6691 #ifdef F77_DUMMY_MAIN
6692 #  ifdef __cplusplus
6693      extern "C"
6694 #  endif
6695    int F77_DUMMY_MAIN() { return 1; }
6696 #endif
6697 int
6698 main ()
6699 {
6700 des_encrypt ();
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707   (eval $ac_link) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -s conftest$ac_exeext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   ac_cv_lib_des_des_encrypt=yes
6718 else
6719   echo "$as_me: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6721 ac_cv_lib_des_des_encrypt=no
6722 fi
6723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_check_lib_save_LIBS
6725 fi
6726 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6727 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6728 if test $ac_cv_lib_des_des_encrypt = yes; then
6729   cat >>confdefs.h <<_ACEOF
6730 #define HAVE_LIBDES 1
6731 _ACEOF
6732
6733   LIBS="-ldes $LIBS"
6734
6735 else
6736   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6737 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6738    { (exit 1); exit 1; }; }
6739 fi
6740
6741
6742 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6743 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6744 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   ac_check_lib_save_LIBS=$LIBS
6748 LIBS="-lkrb  $LIBS"
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752
6753 /* Override any gcc2 internal prototype to avoid an error.  */
6754 #ifdef __cplusplus
6755 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758    builtin and then its argument prototype would still apply.  */
6759 char krb_sendauth ();
6760 #ifdef F77_DUMMY_MAIN
6761 #  ifdef __cplusplus
6762      extern "C"
6763 #  endif
6764    int F77_DUMMY_MAIN() { return 1; }
6765 #endif
6766 int
6767 main ()
6768 {
6769 krb_sendauth ();
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776   (eval $ac_link) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_lib_krb_krb_sendauth=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 ac_cv_lib_krb_krb_sendauth=no
6791 fi
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6794 fi
6795 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6796 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6797 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6798   cat >>confdefs.h <<_ACEOF
6799 #define HAVE_LIBKRB 1
6800 _ACEOF
6801
6802   LIBS="-lkrb $LIBS"
6803
6804 else
6805   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6806 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6807    { (exit 1); exit 1; }; }
6808 fi
6809
6810 fi
6811
6812 if test "$with_krb5" = yes ; then
6813   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6814 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6815 if test "${ac_cv_search_com_err+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   ac_func_search_save_LIBS=$LIBS
6819 ac_cv_search_com_err=no
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6823
6824 /* Override any gcc2 internal prototype to avoid an error.  */
6825 #ifdef __cplusplus
6826 extern "C"
6827 #endif
6828 /* We use char because int might match the return type of a gcc2
6829    builtin and then its argument prototype would still apply.  */
6830 char com_err ();
6831 #ifdef F77_DUMMY_MAIN
6832 #  ifdef __cplusplus
6833      extern "C"
6834 #  endif
6835    int F77_DUMMY_MAIN() { return 1; }
6836 #endif
6837 int
6838 main ()
6839 {
6840 com_err ();
6841   ;
6842   return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847   (eval $ac_link) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } &&
6851          { ac_try='test -s conftest$ac_exeext'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; }; then
6857   ac_cv_search_com_err="none required"
6858 else
6859   echo "$as_me: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 fi
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6863 if test "$ac_cv_search_com_err" = no; then
6864   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6866     cat >conftest.$ac_ext <<_ACEOF
6867 #line $LINENO "configure"
6868 #include "confdefs.h"
6869
6870 /* Override any gcc2 internal prototype to avoid an error.  */
6871 #ifdef __cplusplus
6872 extern "C"
6873 #endif
6874 /* We use char because int might match the return type of a gcc2
6875    builtin and then its argument prototype would still apply.  */
6876 char com_err ();
6877 #ifdef F77_DUMMY_MAIN
6878 #  ifdef __cplusplus
6879      extern "C"
6880 #  endif
6881    int F77_DUMMY_MAIN() { return 1; }
6882 #endif
6883 int
6884 main ()
6885 {
6886 com_err ();
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893   (eval $ac_link) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -s conftest$ac_exeext'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   ac_cv_search_com_err="-l$ac_lib"
6904 break
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 fi
6909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6910   done
6911 fi
6912 LIBS=$ac_func_search_save_LIBS
6913 fi
6914 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6915 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6916 if test "$ac_cv_search_com_err" != no; then
6917   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6918
6919 else
6920   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6921 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6922    { (exit 1); exit 1; }; }
6923 fi
6924
6925   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6926 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6927 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   ac_func_search_save_LIBS=$LIBS
6931 ac_cv_search_krb5_encrypt=no
6932 cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 #include "confdefs.h"
6935
6936 /* Override any gcc2 internal prototype to avoid an error.  */
6937 #ifdef __cplusplus
6938 extern "C"
6939 #endif
6940 /* We use char because int might match the return type of a gcc2
6941    builtin and then its argument prototype would still apply.  */
6942 char krb5_encrypt ();
6943 #ifdef F77_DUMMY_MAIN
6944 #  ifdef __cplusplus
6945      extern "C"
6946 #  endif
6947    int F77_DUMMY_MAIN() { return 1; }
6948 #endif
6949 int
6950 main ()
6951 {
6952 krb5_encrypt ();
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959   (eval $ac_link) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } &&
6963          { ac_try='test -s conftest$ac_exeext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_cv_search_krb5_encrypt="none required"
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 if test "$ac_cv_search_krb5_encrypt" = no; then
6976   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6978     cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 #include "confdefs.h"
6981
6982 /* Override any gcc2 internal prototype to avoid an error.  */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 /* We use char because int might match the return type of a gcc2
6987    builtin and then its argument prototype would still apply.  */
6988 char krb5_encrypt ();
6989 #ifdef F77_DUMMY_MAIN
6990 #  ifdef __cplusplus
6991      extern "C"
6992 #  endif
6993    int F77_DUMMY_MAIN() { return 1; }
6994 #endif
6995 int
6996 main ()
6997 {
6998 krb5_encrypt ();
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005   (eval $ac_link) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_cv_search_krb5_encrypt="-l$ac_lib"
7016 break
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7020 fi
7021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7022   done
7023 fi
7024 LIBS=$ac_func_search_save_LIBS
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
7027 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
7028 if test "$ac_cv_search_krb5_encrypt" != no; then
7029   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
7030
7031 else
7032   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7033 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7034    { (exit 1); exit 1; }; }
7035 fi
7036
7037   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7038 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7039 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   ac_func_search_save_LIBS=$LIBS
7043 ac_cv_search_krb5_sendauth=no
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7046 #include "confdefs.h"
7047
7048 /* Override any gcc2 internal prototype to avoid an error.  */
7049 #ifdef __cplusplus
7050 extern "C"
7051 #endif
7052 /* We use char because int might match the return type of a gcc2
7053    builtin and then its argument prototype would still apply.  */
7054 char krb5_sendauth ();
7055 #ifdef F77_DUMMY_MAIN
7056 #  ifdef __cplusplus
7057      extern "C"
7058 #  endif
7059    int F77_DUMMY_MAIN() { return 1; }
7060 #endif
7061 int
7062 main ()
7063 {
7064 krb5_sendauth ();
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071   (eval $ac_link) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -s conftest$ac_exeext'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081   ac_cv_search_krb5_sendauth="none required"
7082 else
7083   echo "$as_me: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 fi
7086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 if test "$ac_cv_search_krb5_sendauth" = no; then
7088   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7090     cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7093
7094 /* Override any gcc2 internal prototype to avoid an error.  */
7095 #ifdef __cplusplus
7096 extern "C"
7097 #endif
7098 /* We use char because int might match the return type of a gcc2
7099    builtin and then its argument prototype would still apply.  */
7100 char krb5_sendauth ();
7101 #ifdef F77_DUMMY_MAIN
7102 #  ifdef __cplusplus
7103      extern "C"
7104 #  endif
7105    int F77_DUMMY_MAIN() { return 1; }
7106 #endif
7107 int
7108 main ()
7109 {
7110 krb5_sendauth ();
7111   ;
7112   return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117   (eval $ac_link) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } &&
7121          { ac_try='test -s conftest$ac_exeext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_search_krb5_sendauth="-l$ac_lib"
7128 break
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 fi
7133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7134   done
7135 fi
7136 LIBS=$ac_func_search_save_LIBS
7137 fi
7138 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7139 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7140 if test "$ac_cv_search_krb5_sendauth" != no; then
7141   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7142
7143 else
7144   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7145 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7146    { (exit 1); exit 1; }; }
7147 fi
7148
7149 fi
7150
7151 if test "$with_openssl" = yes ; then
7152
7153 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7154 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7155 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lcrypto  $LIBS"
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163
7164 /* Override any gcc2 internal prototype to avoid an error.  */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 /* We use char because int might match the return type of a gcc2
7169    builtin and then its argument prototype would still apply.  */
7170 char CRYPTO_new_ex_data ();
7171 #ifdef F77_DUMMY_MAIN
7172 #  ifdef __cplusplus
7173      extern "C"
7174 #  endif
7175    int F77_DUMMY_MAIN() { return 1; }
7176 #endif
7177 int
7178 main ()
7179 {
7180 CRYPTO_new_ex_data ();
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187   (eval $ac_link) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); } &&
7191          { ac_try='test -s conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7202 fi
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7207 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7208 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7209   cat >>confdefs.h <<_ACEOF
7210 #define HAVE_LIBCRYPTO 1
7211 _ACEOF
7212
7213   LIBS="-lcrypto $LIBS"
7214
7215 else
7216   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7217 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7218    { (exit 1); exit 1; }; }
7219 fi
7220
7221
7222 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7223 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7224 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   ac_check_lib_save_LIBS=$LIBS
7228 LIBS="-lssl  $LIBS"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 #line $LINENO "configure"
7231 #include "confdefs.h"
7232
7233 /* Override any gcc2 internal prototype to avoid an error.  */
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 /* We use char because int might match the return type of a gcc2
7238    builtin and then its argument prototype would still apply.  */
7239 char SSL_library_init ();
7240 #ifdef F77_DUMMY_MAIN
7241 #  ifdef __cplusplus
7242      extern "C"
7243 #  endif
7244    int F77_DUMMY_MAIN() { return 1; }
7245 #endif
7246 int
7247 main ()
7248 {
7249 SSL_library_init ();
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7256   (eval $ac_link) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -s conftest$ac_exeext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_cv_lib_ssl_SSL_library_init=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 ac_cv_lib_ssl_SSL_library_init=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7276 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7277 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7278   cat >>confdefs.h <<_ACEOF
7279 #define HAVE_LIBSSL 1
7280 _ACEOF
7281
7282   LIBS="-lssl $LIBS"
7283
7284 else
7285   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7286 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7287    { (exit 1); exit 1; }; }
7288 fi
7289
7290 fi
7291
7292 if test "$with_pam" = yes ; then
7293
7294 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7295 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7296 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   ac_check_lib_save_LIBS=$LIBS
7300 LIBS="-lpam  $LIBS"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304
7305 /* Override any gcc2 internal prototype to avoid an error.  */
7306 #ifdef __cplusplus
7307 extern "C"
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310    builtin and then its argument prototype would still apply.  */
7311 char pam_start ();
7312 #ifdef F77_DUMMY_MAIN
7313 #  ifdef __cplusplus
7314      extern "C"
7315 #  endif
7316    int F77_DUMMY_MAIN() { return 1; }
7317 #endif
7318 int
7319 main ()
7320 {
7321 pam_start ();
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328   (eval $ac_link) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -s conftest$ac_exeext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   ac_cv_lib_pam_pam_start=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_cv_lib_pam_pam_start=no
7343 fi
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7348 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7349 if test $ac_cv_lib_pam_pam_start = yes; then
7350   cat >>confdefs.h <<_ACEOF
7351 #define HAVE_LIBPAM 1
7352 _ACEOF
7353
7354   LIBS="-lpam $LIBS"
7355
7356 else
7357   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7358 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7359    { (exit 1); exit 1; }; }
7360 fi
7361
7362 fi
7363
7364
7365 ##
7366 ## Header files
7367 ##
7368
7369 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7371 if test "${ac_cv_header_stdc+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   cat >conftest.$ac_ext <<_ACEOF
7375 #line $LINENO "configure"
7376 #include "confdefs.h"
7377 #include <stdlib.h>
7378 #include <stdarg.h>
7379 #include <string.h>
7380 #include <float.h>
7381
7382 _ACEOF
7383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385   ac_status=$?
7386   egrep -v '^ *\+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } >/dev/null; then
7391   if test -s conftest.err; then
7392     ac_cpp_err=$ac_c_preproc_warn_flag
7393   else
7394     ac_cpp_err=
7395   fi
7396 else
7397   ac_cpp_err=yes
7398 fi
7399 if test -z "$ac_cpp_err"; then
7400   ac_cv_header_stdc=yes
7401 else
7402   echo "$as_me: failed program was:" >&5
7403   cat conftest.$ac_ext >&5
7404   ac_cv_header_stdc=no
7405 fi
7406 rm -f conftest.err conftest.$ac_ext
7407
7408 if test $ac_cv_header_stdc = yes; then
7409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410   cat >conftest.$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7413 #include <string.h>
7414
7415 _ACEOF
7416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7417   egrep "memchr" >/dev/null 2>&1; then
7418   :
7419 else
7420   ac_cv_header_stdc=no
7421 fi
7422 rm -f conftest*
7423
7424 fi
7425
7426 if test $ac_cv_header_stdc = yes; then
7427   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7428   cat >conftest.$ac_ext <<_ACEOF
7429 #line $LINENO "configure"
7430 #include "confdefs.h"
7431 #include <stdlib.h>
7432
7433 _ACEOF
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435   egrep "free" >/dev/null 2>&1; then
7436   :
7437 else
7438   ac_cv_header_stdc=no
7439 fi
7440 rm -f conftest*
7441
7442 fi
7443
7444 if test $ac_cv_header_stdc = yes; then
7445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7446   if test "$cross_compiling" = yes; then
7447   :
7448 else
7449   cat >conftest.$ac_ext <<_ACEOF
7450 #line $LINENO "configure"
7451 #include "confdefs.h"
7452 #include <ctype.h>
7453 #if ((' ' & 0x0FF) == 0x020)
7454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7456 #else
7457 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7458                      || ('j' <= (c) && (c) <= 'r') \
7459                      || ('s' <= (c) && (c) <= 'z'))
7460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7461 #endif
7462
7463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7464 int
7465 main ()
7466 {
7467   int i;
7468   for (i = 0; i < 256; i++)
7469     if (XOR (islower (i), ISLOWER (i))
7470         || toupper (i) != TOUPPER (i))
7471       exit(2);
7472   exit (0);
7473 }
7474 _ACEOF
7475 rm -f conftest$ac_exeext
7476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7477   (eval $ac_link) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482   (eval $ac_try) 2>&5
7483   ac_status=$?
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); }; }; then
7486   :
7487 else
7488   echo "$as_me: program exited with status $ac_status" >&5
7489 echo "$as_me: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 ( exit $ac_status )
7492 ac_cv_header_stdc=no
7493 fi
7494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 fi
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7500 if test $ac_cv_header_stdc = yes; then
7501
7502 cat >>confdefs.h <<\_ACEOF
7503 #define STDC_HEADERS 1
7504 _ACEOF
7505
7506 fi
7507
7508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7519                   inttypes.h stdint.h unistd.h
7520 do
7521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7522 echo "$as_me:$LINENO: checking for $ac_header" >&5
7523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527   cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 #include "confdefs.h"
7530 $ac_includes_default
7531
7532 #include <$ac_header>
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536   (eval $ac_compile) 2>&5
7537   ac_status=$?
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } &&
7540          { ac_try='test -s conftest.$ac_objext'
7541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542   (eval $ac_try) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; }; then
7546   eval "$as_ac_Header=yes"
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7550 eval "$as_ac_Header=no"
7551 fi
7552 rm -f conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7557   cat >>confdefs.h <<_ACEOF
7558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7559 _ACEOF
7560
7561 fi
7562
7563 done
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 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
7585 do
7586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7588   echo "$as_me:$LINENO: checking for $ac_header" >&5
7589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 fi
7593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595 else
7596   # Is the header compilable?
7597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7601 #include "confdefs.h"
7602 $ac_includes_default
7603 #include <$ac_header>
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7607   (eval $ac_compile) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); } &&
7611          { ac_try='test -s conftest.$ac_objext'
7612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613   (eval $ac_try) 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }; }; then
7617   ac_header_compiler=yes
7618 else
7619   echo "$as_me: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7621 ac_header_compiler=no
7622 fi
7623 rm -f conftest.$ac_objext conftest.$ac_ext
7624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7625 echo "${ECHO_T}$ac_header_compiler" >&6
7626
7627 # Is the header present?
7628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line $LINENO "configure"
7632 #include "confdefs.h"
7633 #include <$ac_header>
7634 _ACEOF
7635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7637   ac_status=$?
7638   egrep -v '^ *\+' conftest.er1 >conftest.err
7639   rm -f conftest.er1
7640   cat conftest.err >&5
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); } >/dev/null; then
7643   if test -s conftest.err; then
7644     ac_cpp_err=$ac_c_preproc_warn_flag
7645   else
7646     ac_cpp_err=
7647   fi
7648 else
7649   ac_cpp_err=yes
7650 fi
7651 if test -z "$ac_cpp_err"; then
7652   ac_header_preproc=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655   cat conftest.$ac_ext >&5
7656   ac_header_preproc=no
7657 fi
7658 rm -f conftest.err conftest.$ac_ext
7659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7660 echo "${ECHO_T}$ac_header_preproc" >&6
7661
7662 # So?  What about this header?
7663 case $ac_header_compiler:$ac_header_preproc in
7664   yes:no )
7665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7669   no:yes )
7670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 esac
7677 echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   eval "$as_ac_Header=$ac_header_preproc"
7683 fi
7684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686
7687 fi
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689   cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691 _ACEOF
7692
7693 fi
7694
7695 done
7696
7697
7698 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7699 # netinet/in.h is included first.
7700
7701 for ac_header in netinet/in.h
7702 do
7703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705   echo "$as_me:$LINENO: checking for $ac_header" >&5
7706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712 else
7713   # Is the header compilable?
7714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7716 cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 #include "confdefs.h"
7719 $ac_includes_default
7720 #include <$ac_header>
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724   (eval $ac_compile) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -s conftest.$ac_objext'
7729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730   (eval $ac_try) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); }; }; then
7734   ac_header_compiler=yes
7735 else
7736   echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 ac_header_compiler=no
7739 fi
7740 rm -f conftest.$ac_objext conftest.$ac_ext
7741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7742 echo "${ECHO_T}$ac_header_compiler" >&6
7743
7744 # Is the header present?
7745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 #include "confdefs.h"
7750 #include <$ac_header>
7751 _ACEOF
7752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7754   ac_status=$?
7755   egrep -v '^ *\+' conftest.er1 >conftest.err
7756   rm -f conftest.er1
7757   cat conftest.err >&5
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } >/dev/null; then
7760   if test -s conftest.err; then
7761     ac_cpp_err=$ac_c_preproc_warn_flag
7762   else
7763     ac_cpp_err=
7764   fi
7765 else
7766   ac_cpp_err=yes
7767 fi
7768 if test -z "$ac_cpp_err"; then
7769   ac_header_preproc=yes
7770 else
7771   echo "$as_me: failed program was:" >&5
7772   cat conftest.$ac_ext >&5
7773   ac_header_preproc=no
7774 fi
7775 rm -f conftest.err conftest.$ac_ext
7776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7777 echo "${ECHO_T}$ac_header_preproc" >&6
7778
7779 # So?  What about this header?
7780 case $ac_header_compiler:$ac_header_preproc in
7781   yes:no )
7782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7786   no:yes )
7787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7789     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7793 esac
7794 echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   eval "$as_ac_Header=$ac_header_preproc"
7800 fi
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7803
7804 fi
7805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7806   cat >>confdefs.h <<_ACEOF
7807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7808 _ACEOF
7809
7810 fi
7811
7812 done
7813
7814
7815 for ac_header in netinet/tcp.h
7816 do
7817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7818 echo "$as_me:$LINENO: checking for $ac_header" >&5
7819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #ifdef HAVE_NETINET_IN_H
7828 #include <netinet/in.h>
7829 #endif
7830
7831
7832 #include <$ac_header>
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   eval "$as_ac_Header=yes"
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 eval "$as_ac_Header=no"
7851 fi
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7857   cat >>confdefs.h <<_ACEOF
7858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7859 _ACEOF
7860
7861 fi
7862
7863 done
7864
7865
7866 if test "$with_readline" = yes; then
7867
7868 for ac_header in readline/readline.h
7869 do
7870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872   echo "$as_me:$LINENO: checking for $ac_header" >&5
7873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 fi
7877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7879 else
7880   # Is the header compilable?
7881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 $ac_includes_default
7887 #include <$ac_header>
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891   (eval $ac_compile) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -s conftest.$ac_objext'
7896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897   (eval $ac_try) 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }; }; then
7901   ac_header_compiler=yes
7902 else
7903   echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 ac_header_compiler=no
7906 fi
7907 rm -f conftest.$ac_objext conftest.$ac_ext
7908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7909 echo "${ECHO_T}$ac_header_compiler" >&6
7910
7911 # Is the header present?
7912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7917 #include <$ac_header>
7918 _ACEOF
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7921   ac_status=$?
7922   egrep -v '^ *\+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } >/dev/null; then
7927   if test -s conftest.err; then
7928     ac_cpp_err=$ac_c_preproc_warn_flag
7929   else
7930     ac_cpp_err=
7931   fi
7932 else
7933   ac_cpp_err=yes
7934 fi
7935 if test -z "$ac_cpp_err"; then
7936   ac_header_preproc=yes
7937 else
7938   echo "$as_me: failed program was:" >&5
7939   cat conftest.$ac_ext >&5
7940   ac_header_preproc=no
7941 fi
7942 rm -f conftest.err conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7944 echo "${ECHO_T}$ac_header_preproc" >&6
7945
7946 # So?  What about this header?
7947 case $ac_header_compiler:$ac_header_preproc in
7948   yes:no )
7949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7953   no:yes )
7954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7956     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7960 esac
7961 echo "$as_me:$LINENO: checking for $ac_header" >&5
7962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   eval "$as_ac_Header=$ac_header_preproc"
7967 fi
7968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7970
7971 fi
7972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7973   cat >>confdefs.h <<_ACEOF
7974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975 _ACEOF
7976
7977 else
7978
7979 for ac_header in readline.h
7980 do
7981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7983   echo "$as_me:$LINENO: checking for $ac_header" >&5
7984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 fi
7988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7990 else
7991   # Is the header compilable?
7992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7995 #line $LINENO "configure"
7996 #include "confdefs.h"
7997 $ac_includes_default
7998 #include <$ac_header>
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002   (eval $ac_compile) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -s conftest.$ac_objext'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; }; then
8012   ac_header_compiler=yes
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 ac_header_compiler=no
8017 fi
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8020 echo "${ECHO_T}$ac_header_compiler" >&6
8021
8022 # Is the header present?
8023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8025 cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 #include "confdefs.h"
8028 #include <$ac_header>
8029 _ACEOF
8030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8032   ac_status=$?
8033   egrep -v '^ *\+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } >/dev/null; then
8038   if test -s conftest.err; then
8039     ac_cpp_err=$ac_c_preproc_warn_flag
8040   else
8041     ac_cpp_err=
8042   fi
8043 else
8044   ac_cpp_err=yes
8045 fi
8046 if test -z "$ac_cpp_err"; then
8047   ac_header_preproc=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050   cat conftest.$ac_ext >&5
8051   ac_header_preproc=no
8052 fi
8053 rm -f conftest.err conftest.$ac_ext
8054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8055 echo "${ECHO_T}$ac_header_preproc" >&6
8056
8057 # So?  What about this header?
8058 case $ac_header_compiler:$ac_header_preproc in
8059   yes:no )
8060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8064   no:yes )
8065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8067     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8071 esac
8072 echo "$as_me:$LINENO: checking for $ac_header" >&5
8073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   eval "$as_ac_Header=$ac_header_preproc"
8078 fi
8079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8081
8082 fi
8083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8084   cat >>confdefs.h <<_ACEOF
8085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 _ACEOF
8087
8088 else
8089   { { echo "$as_me:$LINENO: error: readline header not found
8090 Use --without-readline to disable readline support." >&5
8091 echo "$as_me: error: readline header not found
8092 Use --without-readline to disable readline support." >&2;}
8093    { (exit 1); exit 1; }; }
8094 fi
8095
8096 done
8097
8098 fi
8099
8100 done
8101
8102
8103 for ac_header in readline/history.h
8104 do
8105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107   echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 fi
8112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8114 else
8115   # Is the header compilable?
8116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8118 cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 #include "confdefs.h"
8121 $ac_includes_default
8122 #include <$ac_header>
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126   (eval $ac_compile) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_header_compiler=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_compiler=no
8141 fi
8142 rm -f conftest.$ac_objext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8144 echo "${ECHO_T}$ac_header_compiler" >&6
8145
8146 # Is the header present?
8147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 #include <$ac_header>
8153 _ACEOF
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156   ac_status=$?
8157   egrep -v '^ *\+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } >/dev/null; then
8162   if test -s conftest.err; then
8163     ac_cpp_err=$ac_c_preproc_warn_flag
8164   else
8165     ac_cpp_err=
8166   fi
8167 else
8168   ac_cpp_err=yes
8169 fi
8170 if test -z "$ac_cpp_err"; then
8171   ac_header_preproc=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174   cat conftest.$ac_ext >&5
8175   ac_header_preproc=no
8176 fi
8177 rm -f conftest.err conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6
8180
8181 # So?  What about this header?
8182 case $ac_header_compiler:$ac_header_preproc in
8183   yes:no )
8184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8188   no:yes )
8189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8191     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8195 esac
8196 echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8199   echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201   eval "$as_ac_Header=$ac_header_preproc"
8202 fi
8203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8205
8206 fi
8207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8208   cat >>confdefs.h <<_ACEOF
8209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8210 _ACEOF
8211
8212 else
8213
8214 for ac_header in history.h
8215 do
8216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218   echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 fi
8223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8225 else
8226   # Is the header compilable?
8227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 #include "confdefs.h"
8232 $ac_includes_default
8233 #include <$ac_header>
8234 _ACEOF
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237   (eval $ac_compile) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } &&
8241          { ac_try='test -s conftest.$ac_objext'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; }; then
8247   ac_header_compiler=yes
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8251 ac_header_compiler=no
8252 fi
8253 rm -f conftest.$ac_objext conftest.$ac_ext
8254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8255 echo "${ECHO_T}$ac_header_compiler" >&6
8256
8257 # Is the header present?
8258 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 #include "confdefs.h"
8263 #include <$ac_header>
8264 _ACEOF
8265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8267   ac_status=$?
8268   egrep -v '^ *\+' conftest.er1 >conftest.err
8269   rm -f conftest.er1
8270   cat conftest.err >&5
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); } >/dev/null; then
8273   if test -s conftest.err; then
8274     ac_cpp_err=$ac_c_preproc_warn_flag
8275   else
8276     ac_cpp_err=
8277   fi
8278 else
8279   ac_cpp_err=yes
8280 fi
8281 if test -z "$ac_cpp_err"; then
8282   ac_header_preproc=yes
8283 else
8284   echo "$as_me: failed program was:" >&5
8285   cat conftest.$ac_ext >&5
8286   ac_header_preproc=no
8287 fi
8288 rm -f conftest.err conftest.$ac_ext
8289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8290 echo "${ECHO_T}$ac_header_preproc" >&6
8291
8292 # So?  What about this header?
8293 case $ac_header_compiler:$ac_header_preproc in
8294   yes:no )
8295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8299   no:yes )
8300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8302     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8306 esac
8307 echo "$as_me:$LINENO: checking for $ac_header" >&5
8308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   eval "$as_ac_Header=$ac_header_preproc"
8313 fi
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8316
8317 fi
8318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8319   cat >>confdefs.h <<_ACEOF
8320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8321 _ACEOF
8322
8323 else
8324   { { echo "$as_me:$LINENO: error: history header not found
8325 Use --without-readline to disable readline support." >&5
8326 echo "$as_me: error: history header not found
8327 Use --without-readline to disable readline support." >&2;}
8328    { (exit 1); exit 1; }; }
8329 fi
8330
8331 done
8332
8333 fi
8334
8335 done
8336
8337 fi
8338
8339 if test "$with_zlib" = yes; then
8340   if test "${ac_cv_header_zlib_h+set}" = set; then
8341   echo "$as_me:$LINENO: checking for zlib.h" >&5
8342 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_zlib_h+set}" = set; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8348 else
8349   # Is the header compilable?
8350 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8351 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <zlib.h>
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest.$ac_objext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_header_compiler=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8375 fi
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8379
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8382 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <zlib.h>
8387 _ACEOF
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390   ac_status=$?
8391   egrep -v '^ *\+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } >/dev/null; then
8396   if test -s conftest.err; then
8397     ac_cpp_err=$ac_c_preproc_warn_flag
8398   else
8399     ac_cpp_err=
8400   fi
8401 else
8402   ac_cpp_err=yes
8403 fi
8404 if test -z "$ac_cpp_err"; then
8405   ac_header_preproc=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408   cat conftest.$ac_ext >&5
8409   ac_header_preproc=no
8410 fi
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8414
8415 # So?  What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8417   yes:no )
8418     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8422   no:yes )
8423     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8425     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8429 esac
8430 echo "$as_me:$LINENO: checking for zlib.h" >&5
8431 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_zlib_h+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_cv_header_zlib_h=$ac_header_preproc
8436 fi
8437 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8439
8440 fi
8441 if test $ac_cv_header_zlib_h = yes; then
8442   :
8443 else
8444   { { echo "$as_me:$LINENO: error: zlib header not found
8445 Use --without-zlib to disable zlib support." >&5
8446 echo "$as_me: error: zlib header not found
8447 Use --without-zlib to disable zlib support." >&2;}
8448    { (exit 1); exit 1; }; }
8449 fi
8450
8451
8452 fi
8453
8454 if test "$with_krb4" = yes ; then
8455   if test "${ac_cv_header_krb_h+set}" = set; then
8456   echo "$as_me:$LINENO: checking for krb.h" >&5
8457 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8458 if test "${ac_cv_header_krb_h+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 fi
8461 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8462 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8463 else
8464   # Is the header compilable?
8465 echo "$as_me:$LINENO: checking krb.h usability" >&5
8466 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8470 $ac_includes_default
8471 #include <krb.h>
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475   (eval $ac_compile) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } &&
8479          { ac_try='test -s conftest.$ac_objext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_header_compiler=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 ac_header_compiler=no
8490 fi
8491 rm -f conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6
8494
8495 # Is the header present?
8496 echo "$as_me:$LINENO: checking krb.h presence" >&5
8497 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8498 cat >conftest.$ac_ext <<_ACEOF
8499 #line $LINENO "configure"
8500 #include "confdefs.h"
8501 #include <krb.h>
8502 _ACEOF
8503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8505   ac_status=$?
8506   egrep -v '^ *\+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } >/dev/null; then
8511   if test -s conftest.err; then
8512     ac_cpp_err=$ac_c_preproc_warn_flag
8513   else
8514     ac_cpp_err=
8515   fi
8516 else
8517   ac_cpp_err=yes
8518 fi
8519 if test -z "$ac_cpp_err"; then
8520   ac_header_preproc=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523   cat conftest.$ac_ext >&5
8524   ac_header_preproc=no
8525 fi
8526 rm -f conftest.err conftest.$ac_ext
8527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8528 echo "${ECHO_T}$ac_header_preproc" >&6
8529
8530 # So?  What about this header?
8531 case $ac_header_compiler:$ac_header_preproc in
8532   yes:no )
8533     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8534 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8535     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8536 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8537   no:yes )
8538     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8539 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8540     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8541 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8542     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8544 esac
8545 echo "$as_me:$LINENO: checking for krb.h" >&5
8546 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8547 if test "${ac_cv_header_krb_h+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   ac_cv_header_krb_h=$ac_header_preproc
8551 fi
8552 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8553 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8554
8555 fi
8556 if test $ac_cv_header_krb_h = yes; then
8557   :
8558 else
8559   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8560 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8561    { (exit 1); exit 1; }; }
8562 fi
8563
8564
8565 fi
8566
8567 if test "$with_krb5" = yes ; then
8568   if test "${ac_cv_header_krb5_h+set}" = set; then
8569   echo "$as_me:$LINENO: checking for krb5.h" >&5
8570 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8571 if test "${ac_cv_header_krb5_h+set}" = set; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8575 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8576 else
8577   # Is the header compilable?
8578 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8579 echo $ECHO_N "checking krb5.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 <krb5.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 krb5.h presence" >&5
8610 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8612 #line $LINENO "configure"
8613 #include "confdefs.h"
8614 #include <krb5.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: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8650   no:yes )
8651     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8652 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8653     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8654 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8657 esac
8658 echo "$as_me:$LINENO: checking for krb5.h" >&5
8659 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8660 if test "${ac_cv_header_krb5_h+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   ac_cv_header_krb5_h=$ac_header_preproc
8664 fi
8665 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8666 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8667
8668 fi
8669 if test $ac_cv_header_krb5_h = yes; then
8670   :
8671 else
8672   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8673 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8674    { (exit 1); exit 1; }; }
8675 fi
8676
8677
8678   if test "${ac_cv_header_com_err_h+set}" = set; then
8679   echo "$as_me:$LINENO: checking for com_err.h" >&5
8680 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8681 if test "${ac_cv_header_com_err_h+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 fi
8684 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8685 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8686 else
8687   # Is the header compilable?
8688 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8689 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 #include "confdefs.h"
8693 $ac_includes_default
8694 #include <com_err.h>
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698   (eval $ac_compile) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } &&
8702          { ac_try='test -s conftest.$ac_objext'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; }; then
8708   ac_header_compiler=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8712 ac_header_compiler=no
8713 fi
8714 rm -f conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716 echo "${ECHO_T}$ac_header_compiler" >&6
8717
8718 # Is the header present?
8719 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8720 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line $LINENO "configure"
8723 #include "confdefs.h"
8724 #include <com_err.h>
8725 _ACEOF
8726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8728   ac_status=$?
8729   egrep -v '^ *\+' conftest.er1 >conftest.err
8730   rm -f conftest.er1
8731   cat conftest.err >&5
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } >/dev/null; then
8734   if test -s conftest.err; then
8735     ac_cpp_err=$ac_c_preproc_warn_flag
8736   else
8737     ac_cpp_err=
8738   fi
8739 else
8740   ac_cpp_err=yes
8741 fi
8742 if test -z "$ac_cpp_err"; then
8743   ac_header_preproc=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746   cat conftest.$ac_ext >&5
8747   ac_header_preproc=no
8748 fi
8749 rm -f conftest.err conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6
8752
8753 # So?  What about this header?
8754 case $ac_header_compiler:$ac_header_preproc in
8755   yes:no )
8756     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8759 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8760   no:yes )
8761     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8762 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8763     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8764 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8766 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8767 esac
8768 echo "$as_me:$LINENO: checking for com_err.h" >&5
8769 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8770 if test "${ac_cv_header_com_err_h+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773   ac_cv_header_com_err_h=$ac_header_preproc
8774 fi
8775 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8776 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8777
8778 fi
8779 if test $ac_cv_header_com_err_h = yes; then
8780   :
8781 else
8782   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8783 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8784    { (exit 1); exit 1; }; }
8785 fi
8786
8787
8788 fi
8789
8790 if test "$with_openssl" = yes ; then
8791   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8792   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8793 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 fi
8797 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8799 else
8800   # Is the header compilable?
8801 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8802 echo $ECHO_N "checking openssl/ssl.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/ssl.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/ssl.h presence" >&5
8833 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <openssl/ssl.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/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8873   no:yes )
8874     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8880 esac
8881 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8882 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8887 fi
8888 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8889 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8890
8891 fi
8892 if test $ac_cv_header_openssl_ssl_h = yes; then
8893   :
8894 else
8895   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8896 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8897    { (exit 1); exit 1; }; }
8898 fi
8899
8900
8901   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8902   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8903 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8904 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8905   echo $ECHO_N "(cached) $ECHO_C" >&6
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8908 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8909 else
8910   # Is the header compilable?
8911 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8912 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8916 $ac_includes_default
8917 #include <openssl/err.h>
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921   (eval $ac_compile) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -s conftest.$ac_objext'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   ac_header_compiler=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 ac_header_compiler=no
8936 fi
8937 rm -f conftest.$ac_objext conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8939 echo "${ECHO_T}$ac_header_compiler" >&6
8940
8941 # Is the header present?
8942 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8943 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8946 #include "confdefs.h"
8947 #include <openssl/err.h>
8948 _ACEOF
8949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8951   ac_status=$?
8952   egrep -v '^ *\+' conftest.er1 >conftest.err
8953   rm -f conftest.er1
8954   cat conftest.err >&5
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); } >/dev/null; then
8957   if test -s conftest.err; then
8958     ac_cpp_err=$ac_c_preproc_warn_flag
8959   else
8960     ac_cpp_err=
8961   fi
8962 else
8963   ac_cpp_err=yes
8964 fi
8965 if test -z "$ac_cpp_err"; then
8966   ac_header_preproc=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969   cat conftest.$ac_ext >&5
8970   ac_header_preproc=no
8971 fi
8972 rm -f conftest.err conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8974 echo "${ECHO_T}$ac_header_preproc" >&6
8975
8976 # So?  What about this header?
8977 case $ac_header_compiler:$ac_header_preproc in
8978   yes:no )
8979     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8980 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8981     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8982 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8983   no:yes )
8984     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8985 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8986     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8987 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8988     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8989 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8990 esac
8991 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8992 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8993 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8994   echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996   ac_cv_header_openssl_err_h=$ac_header_preproc
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8999 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9000
9001 fi
9002 if test $ac_cv_header_openssl_err_h = yes; then
9003   :
9004 else
9005   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9006 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9007    { (exit 1); exit 1; }; }
9008 fi
9009
9010
9011 fi
9012
9013 if test "$with_pam" = yes ; then
9014   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9015   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9016 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9017 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9018   echo $ECHO_N "(cached) $ECHO_C" >&6
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9021 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9022 else
9023   # Is the header compilable?
9024 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9025 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 #include "confdefs.h"
9029 $ac_includes_default
9030 #include <security/pam_appl.h>
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034   (eval $ac_compile) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); } &&
9038          { ac_try='test -s conftest.$ac_objext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   ac_header_compiler=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9048 ac_header_compiler=no
9049 fi
9050 rm -f conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9052 echo "${ECHO_T}$ac_header_compiler" >&6
9053
9054 # Is the header present?
9055 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9056 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9059 #include "confdefs.h"
9060 #include <security/pam_appl.h>
9061 _ACEOF
9062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9064   ac_status=$?
9065   egrep -v '^ *\+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } >/dev/null; then
9070   if test -s conftest.err; then
9071     ac_cpp_err=$ac_c_preproc_warn_flag
9072   else
9073     ac_cpp_err=
9074   fi
9075 else
9076   ac_cpp_err=yes
9077 fi
9078 if test -z "$ac_cpp_err"; then
9079   ac_header_preproc=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082   cat conftest.$ac_ext >&5
9083   ac_header_preproc=no
9084 fi
9085 rm -f conftest.err conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9087 echo "${ECHO_T}$ac_header_preproc" >&6
9088
9089 # So?  What about this header?
9090 case $ac_header_compiler:$ac_header_preproc in
9091   yes:no )
9092     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9093 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9095 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9096   no:yes )
9097     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9098 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9099     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9100 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9101     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9102 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9103 esac
9104 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9105 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9106 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9112 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9113
9114 fi
9115 if test $ac_cv_header_security_pam_appl_h = yes; then
9116   :
9117 else
9118   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9119 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9120    { (exit 1); exit 1; }; }
9121 fi
9122
9123
9124 fi
9125
9126
9127 ##
9128 ## Types, structures, compiler characteristics
9129 ##
9130
9131
9132 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9133 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9134 if test "${ac_cv_c_const+set}" = set; then
9135   echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137   cat >conftest.$ac_ext <<_ACEOF
9138 #line $LINENO "configure"
9139 #include "confdefs.h"
9140
9141 #ifdef F77_DUMMY_MAIN
9142 #  ifdef __cplusplus
9143      extern "C"
9144 #  endif
9145    int F77_DUMMY_MAIN() { return 1; }
9146 #endif
9147 int
9148 main ()
9149 {
9150 /* FIXME: Include the comments suggested by Paul. */
9151 #ifndef __cplusplus
9152   /* Ultrix mips cc rejects this.  */
9153   typedef int charset[2];
9154   const charset x;
9155   /* SunOS 4.1.1 cc rejects this.  */
9156   char const *const *ccp;
9157   char **p;
9158   /* NEC SVR4.0.2 mips cc rejects this.  */
9159   struct point {int x, y;};
9160   static struct point const zero = {0,0};
9161   /* AIX XL C 1.02.0.0 rejects this.
9162      It does not let you subtract one const X* pointer from another in
9163      an arm of an if-expression whose if-part is not a constant
9164      expression */
9165   const char *g = "string";
9166   ccp = &g + (g ? g-g : 0);
9167   /* HPUX 7.0 cc rejects these. */
9168   ++ccp;
9169   p = (char**) ccp;
9170   ccp = (char const *const *) p;
9171   { /* SCO 3.2v4 cc rejects this.  */
9172     char *t;
9173     char const *s = 0 ? (char *) 0 : (char const *) 0;
9174
9175     *t++ = 0;
9176   }
9177   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9178     int x[] = {25, 17};
9179     const int *foo = &x[0];
9180     ++foo;
9181   }
9182   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9183     typedef const int *iptr;
9184     iptr p = 0;
9185     ++p;
9186   }
9187   { /* AIX XL C 1.02.0.0 rejects this saying
9188        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9189     struct s { int j; const int *ap[3]; };
9190     struct s *b; b->j = 5;
9191   }
9192   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9193     const int foo = 10;
9194   }
9195 #endif
9196
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203   (eval $ac_compile) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } &&
9207          { ac_try='test -s conftest.$ac_objext'
9208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209   (eval $ac_try) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; }; then
9213   ac_cv_c_const=yes
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9217 ac_cv_c_const=no
9218 fi
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9222 echo "${ECHO_T}$ac_cv_c_const" >&6
9223 if test $ac_cv_c_const = no; then
9224
9225 cat >>confdefs.h <<\_ACEOF
9226 #define const
9227 _ACEOF
9228
9229 fi
9230
9231 echo "$as_me:$LINENO: checking for inline" >&5
9232 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9233 if test "${ac_cv_c_inline+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   ac_cv_c_inline=no
9237 for ac_kw in inline __inline__ __inline; do
9238   cat >conftest.$ac_ext <<_ACEOF
9239 #line $LINENO "configure"
9240 #include "confdefs.h"
9241 #ifndef __cplusplus
9242 static $ac_kw int static_foo () {return 0; }
9243 $ac_kw int foo () {return 0; }
9244 #endif
9245
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249   (eval $ac_compile) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } &&
9253          { ac_try='test -s conftest.$ac_objext'
9254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255   (eval $ac_try) 2>&5
9256   ac_status=$?
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); }; }; then
9259   ac_cv_c_inline=$ac_kw; break
9260 else
9261   echo "$as_me: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 fi
9264 rm -f conftest.$ac_objext conftest.$ac_ext
9265 done
9266
9267 fi
9268 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9269 echo "${ECHO_T}$ac_cv_c_inline" >&6
9270 case $ac_cv_c_inline in
9271   inline | yes) ;;
9272   no)
9273 cat >>confdefs.h <<\_ACEOF
9274 #define inline
9275 _ACEOF
9276  ;;
9277   *)  cat >>confdefs.h <<_ACEOF
9278 #define inline $ac_cv_c_inline
9279 _ACEOF
9280  ;;
9281 esac
9282
9283 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9284 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9285 if test "${ac_cv_c_stringize+set}" = set; then
9286   echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288   cat >conftest.$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 #include "confdefs.h"
9291 #define x(y) #y
9292
9293 char *s = x(teststring);
9294 _ACEOF
9295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9296   egrep "#teststring" >/dev/null 2>&1; then
9297   ac_cv_c_stringize=no
9298 else
9299   ac_cv_c_stringize=yes
9300 fi
9301 rm -f conftest*
9302
9303 fi
9304 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9305 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9306 if test $ac_cv_c_stringize = yes; then
9307
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_STRINGIZE 1
9310 _ACEOF
9311
9312 fi
9313
9314 echo "$as_me:$LINENO: checking for signed types" >&5
9315 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9316 if test "${pgac_cv_c_signed+set}" = set; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9321 #include "confdefs.h"
9322
9323 #ifdef F77_DUMMY_MAIN
9324 #  ifdef __cplusplus
9325      extern "C"
9326 #  endif
9327    int F77_DUMMY_MAIN() { return 1; }
9328 #endif
9329 int
9330 main ()
9331 {
9332 signed char c; signed short s; signed int i;
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339   (eval $ac_compile) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   pgac_cv_c_signed=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 pgac_cv_c_signed=no
9354 fi
9355 rm -f conftest.$ac_objext conftest.$ac_ext
9356 fi
9357 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9358 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9359 if test x"$pgac_cv_c_signed" = xno ; then
9360
9361 cat >>confdefs.h <<\_ACEOF
9362 #define signed
9363 _ACEOF
9364
9365 fi
9366 echo "$as_me:$LINENO: checking for working volatile" >&5
9367 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9368 if test "${ac_cv_c_volatile+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9374
9375 #ifdef F77_DUMMY_MAIN
9376 #  ifdef __cplusplus
9377      extern "C"
9378 #  endif
9379    int F77_DUMMY_MAIN() { return 1; }
9380 #endif
9381 int
9382 main ()
9383 {
9384
9385 volatile int x;
9386 int * volatile y;
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9393   (eval $ac_compile) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest.$ac_objext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_c_volatile=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 ac_cv_c_volatile=no
9408 fi
9409 rm -f conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9412 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9413 if test $ac_cv_c_volatile = no; then
9414
9415 cat >>confdefs.h <<\_ACEOF
9416 #define volatile
9417 _ACEOF
9418
9419 fi
9420
9421 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9422 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9423 if test "${ac_cv_struct_tm+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9429 #include <sys/types.h>
9430 #include <time.h>
9431
9432 #ifdef F77_DUMMY_MAIN
9433 #  ifdef __cplusplus
9434      extern "C"
9435 #  endif
9436    int F77_DUMMY_MAIN() { return 1; }
9437 #endif
9438 int
9439 main ()
9440 {
9441 struct tm *tp; tp->tm_sec;
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448   (eval $ac_compile) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } &&
9452          { ac_try='test -s conftest.$ac_objext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   ac_cv_struct_tm=time.h
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9462 ac_cv_struct_tm=sys/time.h
9463 fi
9464 rm -f conftest.$ac_objext conftest.$ac_ext
9465 fi
9466 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9467 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9468 if test $ac_cv_struct_tm = sys/time.h; then
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define TM_IN_SYS_TIME 1
9472 _ACEOF
9473
9474 fi
9475
9476 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9477 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9478 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 #include "confdefs.h"
9484 #include <sys/types.h>
9485 #include <$ac_cv_struct_tm>
9486
9487
9488 #ifdef F77_DUMMY_MAIN
9489 #  ifdef __cplusplus
9490      extern "C"
9491 #  endif
9492    int F77_DUMMY_MAIN() { return 1; }
9493 #endif
9494 int
9495 main ()
9496 {
9497 static struct tm ac_aggr;
9498 if (ac_aggr.tm_zone)
9499 return 0;
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506   (eval $ac_compile) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -s conftest.$ac_objext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_member_struct_tm_tm_zone=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 ac_cv_member_struct_tm_tm_zone=no
9521 fi
9522 rm -f conftest.$ac_objext conftest.$ac_ext
9523 fi
9524 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9527
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_STRUCT_TM_TM_ZONE 1
9530 _ACEOF
9531
9532
9533 fi
9534
9535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9536
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_TM_ZONE 1
9539 _ACEOF
9540
9541 else
9542   echo "$as_me:$LINENO: checking for tzname" >&5
9543 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9544 if test "${ac_cv_var_tzname+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 #line $LINENO "configure"
9549 #include "confdefs.h"
9550 #include <time.h>
9551 #ifndef tzname /* For SGI.  */
9552 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9553 #endif
9554
9555 #ifdef F77_DUMMY_MAIN
9556 #  ifdef __cplusplus
9557      extern "C"
9558 #  endif
9559    int F77_DUMMY_MAIN() { return 1; }
9560 #endif
9561 int
9562 main ()
9563 {
9564 atoi(*tzname);
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571   (eval $ac_link) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -s conftest$ac_exeext'
9576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577   (eval $ac_try) 2>&5
9578   ac_status=$?
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); }; }; then
9581   ac_cv_var_tzname=yes
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9585 ac_cv_var_tzname=no
9586 fi
9587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9588 fi
9589 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9590 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9591   if test $ac_cv_var_tzname = yes; then
9592
9593 cat >>confdefs.h <<\_ACEOF
9594 #define HAVE_TZNAME 1
9595 _ACEOF
9596
9597   fi
9598 fi
9599
9600 echo "$as_me:$LINENO: checking for union semun" >&5
9601 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9602 if test "${ac_cv_type_union_semun+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   cat >conftest.$ac_ext <<_ACEOF
9606 #line $LINENO "configure"
9607 #include "confdefs.h"
9608 #include <sys/types.h>
9609 #include <sys/ipc.h>
9610 #include <sys/sem.h>
9611
9612 #ifdef F77_DUMMY_MAIN
9613 #  ifdef __cplusplus
9614      extern "C"
9615 #  endif
9616    int F77_DUMMY_MAIN() { return 1; }
9617 #endif
9618 int
9619 main ()
9620 {
9621 if ((union semun *) 0)
9622   return 0;
9623 if (sizeof (union semun))
9624   return 0;
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest.$ac_objext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_type_union_semun=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 ac_cv_type_union_semun=no
9646 fi
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9648 fi
9649 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9650 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9651 if test $ac_cv_type_union_semun = yes; then
9652
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_UNION_SEMUN 1
9655 _ACEOF
9656
9657
9658 fi
9659
9660 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9661 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9662 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9663   echo $ECHO_N "(cached) $ECHO_C" >&6
9664 else
9665   cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9668 #include <sys/types.h>
9669 #ifdef HAVE_SYS_UN_H
9670 #include <sys/un.h>
9671 #endif
9672
9673
9674 #ifdef F77_DUMMY_MAIN
9675 #  ifdef __cplusplus
9676      extern "C"
9677 #  endif
9678    int F77_DUMMY_MAIN() { return 1; }
9679 #endif
9680 int
9681 main ()
9682 {
9683 if ((struct sockaddr_un *) 0)
9684   return 0;
9685 if (sizeof (struct sockaddr_un))
9686   return 0;
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693   (eval $ac_compile) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -s conftest.$ac_objext'
9698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699   (eval $ac_try) 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   ac_cv_type_struct_sockaddr_un=yes
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 ac_cv_type_struct_sockaddr_un=no
9708 fi
9709 rm -f conftest.$ac_objext conftest.$ac_ext
9710 fi
9711 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9712 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9713 if test $ac_cv_type_struct_sockaddr_un = yes; then
9714
9715 cat >>confdefs.h <<_ACEOF
9716 #define HAVE_STRUCT_SOCKADDR_UN 1
9717 _ACEOF
9718
9719
9720 fi
9721
9722
9723 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9724 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9725 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 #include "confdefs.h"
9731 #include <sys/param.h>
9732 #include <sys/socket.h>
9733 #include <sys/ucred.h>
9734
9735 #ifdef F77_DUMMY_MAIN
9736 #  ifdef __cplusplus
9737      extern "C"
9738 #  endif
9739    int F77_DUMMY_MAIN() { return 1; }
9740 #endif
9741 int
9742 main ()
9743 {
9744 if ((struct cmsgcred *) 0)
9745   return 0;
9746 if (sizeof (struct cmsgcred))
9747   return 0;
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754   (eval $ac_compile) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } &&
9758          { ac_try='test -s conftest.$ac_objext'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   ac_cv_type_struct_cmsgcred=yes
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 ac_cv_type_struct_cmsgcred=no
9769 fi
9770 rm -f conftest.$ac_objext conftest.$ac_ext
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9773 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9774 if test $ac_cv_type_struct_cmsgcred = yes; then
9775
9776 cat >>confdefs.h <<_ACEOF
9777 #define HAVE_STRUCT_CMSGCRED 1
9778 _ACEOF
9779
9780
9781 fi
9782 echo "$as_me:$LINENO: checking for struct fcred" >&5
9783 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9784 if test "${ac_cv_type_struct_fcred+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 #include "confdefs.h"
9790 #include <sys/param.h>
9791 #include <sys/socket.h>
9792 #include <sys/ucred.h>
9793
9794 #ifdef F77_DUMMY_MAIN
9795 #  ifdef __cplusplus
9796      extern "C"
9797 #  endif
9798    int F77_DUMMY_MAIN() { return 1; }
9799 #endif
9800 int
9801 main ()
9802 {
9803 if ((struct fcred *) 0)
9804   return 0;
9805 if (sizeof (struct fcred))
9806   return 0;
9807   ;
9808   return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813   (eval $ac_compile) 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -s conftest.$ac_objext'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; }; then
9823   ac_cv_type_struct_fcred=yes
9824 else
9825   echo "$as_me: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9827 ac_cv_type_struct_fcred=no
9828 fi
9829 rm -f conftest.$ac_objext conftest.$ac_ext
9830 fi
9831 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9832 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9833 if test $ac_cv_type_struct_fcred = yes; then
9834
9835 cat >>confdefs.h <<_ACEOF
9836 #define HAVE_STRUCT_FCRED 1
9837 _ACEOF
9838
9839
9840 fi
9841 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9842 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9843 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9844   echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846   cat >conftest.$ac_ext <<_ACEOF
9847 #line $LINENO "configure"
9848 #include "confdefs.h"
9849 #include <sys/param.h>
9850 #include <sys/socket.h>
9851 #include <sys/ucred.h>
9852
9853 #ifdef F77_DUMMY_MAIN
9854 #  ifdef __cplusplus
9855      extern "C"
9856 #  endif
9857    int F77_DUMMY_MAIN() { return 1; }
9858 #endif
9859 int
9860 main ()
9861 {
9862 if ((struct sockcred *) 0)
9863   return 0;
9864 if (sizeof (struct sockcred))
9865   return 0;
9866   ;
9867   return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872   (eval $ac_compile) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -s conftest.$ac_objext'
9877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878   (eval $ac_try) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_cv_type_struct_sockcred=yes
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_cv_type_struct_sockcred=no
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9891 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9892 if test $ac_cv_type_struct_sockcred = yes; then
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_STRUCT_SOCKCRED 1
9896 _ACEOF
9897
9898
9899 fi
9900
9901
9902 if test "$with_zlib" = yes; then
9903   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9904   # did not).  While we could work around the lack of z_streamp, it
9905   # seems unwise to encourage people to use such old zlib versions...
9906   echo "$as_me:$LINENO: checking for z_streamp" >&5
9907 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9908 if test "${ac_cv_type_z_streamp+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 #include "confdefs.h"
9914 #include <zlib.h>
9915
9916 #ifdef F77_DUMMY_MAIN
9917 #  ifdef __cplusplus
9918      extern "C"
9919 #  endif
9920    int F77_DUMMY_MAIN() { return 1; }
9921 #endif
9922 int
9923 main ()
9924 {
9925 if ((z_streamp *) 0)
9926   return 0;
9927 if (sizeof (z_streamp))
9928   return 0;
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935   (eval $ac_compile) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } &&
9939          { ac_try='test -s conftest.$ac_objext'
9940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941   (eval $ac_try) 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; }; then
9945   ac_cv_type_z_streamp=yes
9946 else
9947   echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 ac_cv_type_z_streamp=no
9950 fi
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9954 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9955 if test $ac_cv_type_z_streamp = yes; then
9956   :
9957 else
9958   { { echo "$as_me:$LINENO: error: zlib version is too old
9959 Use --without-zlib to disable zlib support." >&5
9960 echo "$as_me: error: zlib version is too old
9961 Use --without-zlib to disable zlib support." >&2;}
9962    { (exit 1); exit 1; }; }
9963 fi
9964
9965 fi
9966
9967 if test "$with_krb5" = yes; then
9968 # Check for differences between MIT and Heimdal (KTH) releases
9969   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9970 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9971 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   cat >conftest.$ac_ext <<_ACEOF
9975 #line $LINENO "configure"
9976 #include "confdefs.h"
9977 #include <krb5.h>
9978
9979 #ifdef F77_DUMMY_MAIN
9980 #  ifdef __cplusplus
9981      extern "C"
9982 #  endif
9983    int F77_DUMMY_MAIN() { return 1; }
9984 #endif
9985 int
9986 main ()
9987 {
9988 static krb5_ticket ac_aggr;
9989 if (ac_aggr.enc_part2)
9990 return 0;
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997   (eval $ac_compile) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } &&
10001          { ac_try='test -s conftest.$ac_objext'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; }; then
10007   ac_cv_member_krb5_ticket_enc_part2=yes
10008 else
10009   echo "$as_me: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 ac_cv_member_krb5_ticket_enc_part2=no
10012 fi
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10016 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10017 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_KRB5_TICKET_ENC_PART2 1
10021 _ACEOF
10022
10023
10024 else
10025   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10026 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10027 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10028   echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030   cat >conftest.$ac_ext <<_ACEOF
10031 #line $LINENO "configure"
10032 #include "confdefs.h"
10033 #include <krb5.h>
10034
10035 #ifdef F77_DUMMY_MAIN
10036 #  ifdef __cplusplus
10037      extern "C"
10038 #  endif
10039    int F77_DUMMY_MAIN() { return 1; }
10040 #endif
10041 int
10042 main ()
10043 {
10044 static krb5_ticket ac_aggr;
10045 if (ac_aggr.client)
10046 return 0;
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053   (eval $ac_compile) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } &&
10057          { ac_try='test -s conftest.$ac_objext'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   ac_cv_member_krb5_ticket_client=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 ac_cv_member_krb5_ticket_client=no
10068 fi
10069 rm -f conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10072 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10073 if test $ac_cv_member_krb5_ticket_client = yes; then
10074
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_KRB5_TICKET_CLIENT 1
10077 _ACEOF
10078
10079
10080 else
10081   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10082 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10083    { (exit 1); exit 1; }; }
10084 fi
10085
10086 fi
10087
10088   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10089 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10090 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 #include "confdefs.h"
10096 #include <krb5.h>
10097
10098 #ifdef F77_DUMMY_MAIN
10099 #  ifdef __cplusplus
10100      extern "C"
10101 #  endif
10102    int F77_DUMMY_MAIN() { return 1; }
10103 #endif
10104 int
10105 main ()
10106 {
10107 static krb5_error ac_aggr;
10108 if (ac_aggr.text.data)
10109 return 0;
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116   (eval $ac_compile) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -s conftest.$ac_objext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_member_krb5_error_text_data=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 ac_cv_member_krb5_error_text_data=no
10131 fi
10132 rm -f conftest.$ac_objext conftest.$ac_ext
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10135 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10136 if test $ac_cv_member_krb5_error_text_data = yes; then
10137
10138 cat >>confdefs.h <<_ACEOF
10139 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10140 _ACEOF
10141
10142
10143 else
10144   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10145 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10146 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 #include "confdefs.h"
10152 #include <krb5.h>
10153
10154 #ifdef F77_DUMMY_MAIN
10155 #  ifdef __cplusplus
10156      extern "C"
10157 #  endif
10158    int F77_DUMMY_MAIN() { return 1; }
10159 #endif
10160 int
10161 main ()
10162 {
10163 static krb5_error ac_aggr;
10164 if (ac_aggr.e_data)
10165 return 0;
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172   (eval $ac_compile) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -s conftest.$ac_objext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   ac_cv_member_krb5_error_e_data=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 ac_cv_member_krb5_error_e_data=no
10187 fi
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10191 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10192 if test $ac_cv_member_krb5_error_e_data = yes; then
10193   :
10194 else
10195   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10196 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10197    { (exit 1); exit 1; }; }
10198 fi
10199
10200 fi
10201
10202 fi
10203
10204
10205 ##
10206 ## Functions, global variables
10207 ##
10208
10209 echo "$as_me:$LINENO: checking for int timezone" >&5
10210 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10211 if test "${pgac_cv_var_int_timezone+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   cat >conftest.$ac_ext <<_ACEOF
10215 #line $LINENO "configure"
10216 #include "confdefs.h"
10217 #include <time.h>
10218 int res;
10219 #ifdef F77_DUMMY_MAIN
10220 #  ifdef __cplusplus
10221      extern "C"
10222 #  endif
10223    int F77_DUMMY_MAIN() { return 1; }
10224 #endif
10225 int
10226 main ()
10227 {
10228 res = timezone / 60;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -s conftest$ac_exeext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   pgac_cv_var_int_timezone=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 pgac_cv_var_int_timezone=no
10250 fi
10251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252 fi
10253 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10254 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10255 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10256
10257 cat >>confdefs.h <<\_ACEOF
10258 #define HAVE_INT_TIMEZONE
10259 _ACEOF
10260
10261 fi
10262 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10263 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10264  if test "${ac_cv_func_accept_arg1+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267    if test "${ac_cv_func_accept_arg2+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270     if test "${ac_cv_func_accept_arg3+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10274      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10275       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10276        cat >conftest.$ac_ext <<_ACEOF
10277 #line $LINENO "configure"
10278 #include "confdefs.h"
10279 #ifdef HAVE_SYS_TYPES_H
10280 #include <sys/types.h>
10281 #endif
10282 #ifdef HAVE_SYS_SOCKET_H
10283 #include <sys/socket.h>
10284 #endif
10285 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10286 #ifdef F77_DUMMY_MAIN
10287 #  ifdef __cplusplus
10288      extern "C"
10289 #  endif
10290    int F77_DUMMY_MAIN() { return 1; }
10291 #endif
10292 int
10293 main ()
10294 {
10295
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302   (eval $ac_compile) 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -s conftest.$ac_objext'
10307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308   (eval $ac_try) 2>&5
10309   ac_status=$?
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); }; }; then
10312   ac_not_found=no; break 3
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10316 ac_not_found=yes
10317 fi
10318 rm -f conftest.$ac_objext conftest.$ac_ext
10319       done
10320      done
10321     done
10322     if test "$ac_not_found" = yes; then
10323       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10324 echo "$as_me: error: could not determine argument types" >&2;}
10325    { (exit 1); exit 1; }; }
10326     fi
10327     if test "$ac_cv_func_accept_arg3" = "void"; then
10328       ac_cv_func_accept_arg3=int
10329     fi
10330
10331 fi
10332
10333 fi
10334
10335 fi
10336  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10337 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10338
10339 cat >>confdefs.h <<_ACEOF
10340 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10341 _ACEOF
10342
10343
10344 cat >>confdefs.h <<_ACEOF
10345 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10346 _ACEOF
10347
10348
10349 cat >>confdefs.h <<_ACEOF
10350 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10351 _ACEOF
10352
10353
10354 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10355 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10356 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   cat >conftest.$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10361 #include "confdefs.h"
10362 #include <sys/time.h>
10363 #ifdef F77_DUMMY_MAIN
10364 #  ifdef __cplusplus
10365      extern "C"
10366 #  endif
10367    int F77_DUMMY_MAIN() { return 1; }
10368 #endif
10369 int
10370 main ()
10371 {
10372 struct timeval *tp;
10373 struct timezone *tzp;
10374 gettimeofday(tp,tzp);
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest.$ac_objext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10381   (eval $ac_compile) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } &&
10385          { ac_try='test -s conftest.$ac_objext'
10386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387   (eval $ac_try) 2>&5
10388   ac_status=$?
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); }; }; then
10391   pgac_cv_func_gettimeofday_1arg=no
10392 else
10393   echo "$as_me: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10395 pgac_cv_func_gettimeofday_1arg=yes
10396 fi
10397 rm -f conftest.$ac_objext conftest.$ac_ext
10398 fi
10399 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10400 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10401 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10402
10403 cat >>confdefs.h <<\_ACEOF
10404 #define GETTIMEOFDAY_1ARG
10405 _ACEOF
10406
10407 fi
10408
10409 # SunOS doesn't handle negative byte comparisons properly with +/- return
10410 echo "$as_me:$LINENO: checking for working memcmp" >&5
10411 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10412 if test "${ac_cv_func_memcmp_working+set}" = set; then
10413   echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415   if test "$cross_compiling" = yes; then
10416   ac_cv_func_memcmp_working=no
10417 else
10418   cat >conftest.$ac_ext <<_ACEOF
10419 #line $LINENO "configure"
10420 #include "confdefs.h"
10421
10422 #ifdef F77_DUMMY_MAIN
10423 #  ifdef __cplusplus
10424      extern "C"
10425 #  endif
10426    int F77_DUMMY_MAIN() { return 1; }
10427 #endif
10428 int
10429 main ()
10430 {
10431
10432   /* Some versions of memcmp are not 8-bit clean.  */
10433   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10434   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10435     exit (1);
10436
10437   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10438      or more and with at least one buffer not starting on a 4-byte boundary.
10439      William Lewis provided this test program.   */
10440   {
10441     char foo[21];
10442     char bar[21];
10443     int i;
10444     for (i = 0; i < 4; i++)
10445       {
10446         char *a = foo + i;
10447         char *b = bar + i;
10448         strcpy (a, "--------01111111");
10449         strcpy (b, "--------10000000");
10450         if (memcmp (a, b, 16) >= 0)
10451           exit (1);
10452       }
10453     exit (0);
10454   }
10455
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462   (eval $ac_link) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; }; then
10471   ac_cv_func_memcmp_working=yes
10472 else
10473   echo "$as_me: program exited with status $ac_status" >&5
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ( exit $ac_status )
10477 ac_cv_func_memcmp_working=no
10478 fi
10479 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10480 fi
10481 fi
10482 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10483 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10484 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10500 do
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10504 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
10511     which can conflict with char $ac_func (); below.  */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518    builtin and then its argument prototype would still apply.  */
10519 char $ac_func ();
10520 char (*f) ();
10521
10522 #ifdef F77_DUMMY_MAIN
10523 #  ifdef __cplusplus
10524      extern "C"
10525 #  endif
10526    int F77_DUMMY_MAIN() { return 1; }
10527 #endif
10528 int
10529 main ()
10530 {
10531 /* The GNU C library defines this for functions which it implements
10532     to always fail with ENOSYS.  Some functions are actually named
10533     something starting with __ and the normal name is an alias.  */
10534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10535 choke me
10536 #else
10537 f = $ac_func;
10538 #endif
10539
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546   (eval $ac_link) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -s conftest$ac_exeext'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   eval "$as_ac_var=yes"
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 eval "$as_ac_var=no"
10561 fi
10562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10563 fi
10564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566 if test `eval echo '${'$as_ac_var'}'` = yes; then
10567   cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10569 _ACEOF
10570
10571 fi
10572 done
10573
10574
10575 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10576 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10577 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 #include "confdefs.h"
10583 #include <unistd.h>
10584
10585 #ifdef F77_DUMMY_MAIN
10586 #  ifdef __cplusplus
10587      extern "C"
10588 #  endif
10589    int F77_DUMMY_MAIN() { return 1; }
10590 #endif
10591 int
10592 main ()
10593 {
10594 #ifndef fdatasync
10595   char *p = (char *) fdatasync;
10596 #endif
10597
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604   (eval $ac_compile) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -s conftest.$ac_objext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_have_decl_fdatasync=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 ac_cv_have_decl_fdatasync=no
10619 fi
10620 rm -f conftest.$ac_objext conftest.$ac_ext
10621 fi
10622 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10623 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10624 if test $ac_cv_have_decl_fdatasync = yes; then
10625
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_DECL_FDATASYNC 1
10628 _ACEOF
10629
10630
10631 else
10632   cat >>confdefs.h <<_ACEOF
10633 #define HAVE_DECL_FDATASYNC 0
10634 _ACEOF
10635
10636
10637 fi
10638
10639
10640
10641 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10642 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10643 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 #include "confdefs.h"
10649 #include <machine/vmparam.h>
10650 #include <sys/exec.h>
10651
10652 #ifdef F77_DUMMY_MAIN
10653 #  ifdef __cplusplus
10654      extern "C"
10655 #  endif
10656    int F77_DUMMY_MAIN() { return 1; }
10657 #endif
10658 int
10659 main ()
10660 {
10661 PS_STRINGS->ps_nargvstr = 1;
10662 PS_STRINGS->ps_argvstr = "foo";
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669   (eval $ac_link) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -s conftest$ac_exeext'
10674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675   (eval $ac_try) 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; }; then
10679   pgac_cv_var_PS_STRINGS=yes
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10683 pgac_cv_var_PS_STRINGS=no
10684 fi
10685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10686 fi
10687 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10688 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10689 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_PS_STRINGS
10693 _ACEOF
10694
10695 fi
10696
10697
10698 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10699 # is missing.  Yes, there are machines that have only one.  We may
10700 # also decide to use snprintf.c if snprintf() is present but does not
10701 # have working "long long int" support -- see below.
10702
10703 pgac_need_repl_snprintf=no
10704
10705 for ac_func in snprintf
10706 do
10707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_var+set}\" = set"; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   cat >conftest.$ac_ext <<_ACEOF
10714 #line $LINENO "configure"
10715 #include "confdefs.h"
10716 /* System header to define __stub macros and hopefully few prototypes,
10717     which can conflict with char $ac_func (); below.  */
10718 #include <assert.h>
10719 /* Override any gcc2 internal prototype to avoid an error.  */
10720 #ifdef __cplusplus
10721 extern "C"
10722 #endif
10723 /* We use char because int might match the return type of a gcc2
10724    builtin and then its argument prototype would still apply.  */
10725 char $ac_func ();
10726 char (*f) ();
10727
10728 #ifdef F77_DUMMY_MAIN
10729 #  ifdef __cplusplus
10730      extern "C"
10731 #  endif
10732    int F77_DUMMY_MAIN() { return 1; }
10733 #endif
10734 int
10735 main ()
10736 {
10737 /* The GNU C library defines this for functions which it implements
10738     to always fail with ENOSYS.  Some functions are actually named
10739     something starting with __ and the normal name is an alias.  */
10740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10741 choke me
10742 #else
10743 f = $ac_func;
10744 #endif
10745
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752   (eval $ac_link) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -s conftest$ac_exeext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   eval "$as_ac_var=yes"
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 eval "$as_ac_var=no"
10767 fi
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769 fi
10770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10772 if test `eval echo '${'$as_ac_var'}'` = yes; then
10773   cat >>confdefs.h <<_ACEOF
10774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 _ACEOF
10776
10777 else
10778   pgac_need_repl_snprintf=yes
10779 fi
10780 done
10781
10782
10783 for ac_func in vsnprintf
10784 do
10785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 echo "$as_me:$LINENO: checking for $ac_func" >&5
10787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_var+set}\" = set"; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 #include "confdefs.h"
10794 /* System header to define __stub macros and hopefully few prototypes,
10795     which can conflict with char $ac_func (); below.  */
10796 #include <assert.h>
10797 /* Override any gcc2 internal prototype to avoid an error.  */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 /* We use char because int might match the return type of a gcc2
10802    builtin and then its argument prototype would still apply.  */
10803 char $ac_func ();
10804 char (*f) ();
10805
10806 #ifdef F77_DUMMY_MAIN
10807 #  ifdef __cplusplus
10808      extern "C"
10809 #  endif
10810    int F77_DUMMY_MAIN() { return 1; }
10811 #endif
10812 int
10813 main ()
10814 {
10815 /* The GNU C library defines this for functions which it implements
10816     to always fail with ENOSYS.  Some functions are actually named
10817     something starting with __ and the normal name is an alias.  */
10818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10819 choke me
10820 #else
10821 f = $ac_func;
10822 #endif
10823
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830   (eval $ac_link) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -s conftest$ac_exeext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   eval "$as_ac_var=yes"
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 eval "$as_ac_var=no"
10845 fi
10846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10847 fi
10848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10850 if test `eval echo '${'$as_ac_var'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 else
10856   pgac_need_repl_snprintf=yes
10857 fi
10858 done
10859
10860
10861
10862 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10863 # include/c.h will provide declarations.  Note this is a separate test
10864 # from whether the functions exist in the C library --- there are
10865 # systems that have the functions but don't bother to declare them :-(
10866
10867 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10868 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10869 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 #include "confdefs.h"
10875 $ac_includes_default
10876 #ifdef F77_DUMMY_MAIN
10877 #  ifdef __cplusplus
10878      extern "C"
10879 #  endif
10880    int F77_DUMMY_MAIN() { return 1; }
10881 #endif
10882 int
10883 main ()
10884 {
10885 #ifndef snprintf
10886   char *p = (char *) snprintf;
10887 #endif
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895   (eval $ac_compile) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } &&
10899          { ac_try='test -s conftest.$ac_objext'
10900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901   (eval $ac_try) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_cv_have_decl_snprintf=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10909 ac_cv_have_decl_snprintf=no
10910 fi
10911 rm -f conftest.$ac_objext conftest.$ac_ext
10912 fi
10913 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10914 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10915 if test $ac_cv_have_decl_snprintf = yes; then
10916
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_DECL_SNPRINTF 1
10919 _ACEOF
10920
10921
10922 else
10923   cat >>confdefs.h <<_ACEOF
10924 #define HAVE_DECL_SNPRINTF 0
10925 _ACEOF
10926
10927
10928 fi
10929 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10930 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10931 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   cat >conftest.$ac_ext <<_ACEOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10937 $ac_includes_default
10938 #ifdef F77_DUMMY_MAIN
10939 #  ifdef __cplusplus
10940      extern "C"
10941 #  endif
10942    int F77_DUMMY_MAIN() { return 1; }
10943 #endif
10944 int
10945 main ()
10946 {
10947 #ifndef vsnprintf
10948   char *p = (char *) vsnprintf;
10949 #endif
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957   (eval $ac_compile) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -s conftest.$ac_objext'
10962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963   (eval $ac_try) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   ac_cv_have_decl_vsnprintf=yes
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 ac_cv_have_decl_vsnprintf=no
10972 fi
10973 rm -f conftest.$ac_objext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10976 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10977 if test $ac_cv_have_decl_vsnprintf = yes; then
10978
10979 cat >>confdefs.h <<_ACEOF
10980 #define HAVE_DECL_VSNPRINTF 1
10981 _ACEOF
10982
10983
10984 else
10985   cat >>confdefs.h <<_ACEOF
10986 #define HAVE_DECL_VSNPRINTF 0
10987 _ACEOF
10988
10989
10990 fi
10991
10992
10993
10994
10995 # do this one the hard way in case isinf() is a macro
10996 echo "$as_me:$LINENO: checking for isinf" >&5
10997 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10998 if test "${ac_cv_func_isinf+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11003 #include "confdefs.h"
11004 #include <math.h>
11005
11006 #ifdef F77_DUMMY_MAIN
11007 #  ifdef __cplusplus
11008      extern "C"
11009 #  endif
11010    int F77_DUMMY_MAIN() { return 1; }
11011 #endif
11012 int
11013 main ()
11014 {
11015 double x = 0.0; int res = isinf(x);
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022   (eval $ac_link) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -s conftest$ac_exeext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_cv_func_isinf=yes
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 ac_cv_func_isinf=no
11037 fi
11038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11039 fi
11040 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11041 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11042
11043 if test $ac_cv_func_isinf = yes ; then
11044
11045 cat >>confdefs.h <<\_ACEOF
11046 #define HAVE_ISINF 1
11047 _ACEOF
11048
11049 else
11050   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11051   # Look for a way to implement a substitute for isinf()
11052
11053
11054
11055
11056 for ac_func in fpclass fp_class fp_class_d class
11057 do
11058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11059 echo "$as_me:$LINENO: checking for $ac_func" >&5
11060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11061 if eval "test \"\${$as_ac_var+set}\" = set"; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   cat >conftest.$ac_ext <<_ACEOF
11065 #line $LINENO "configure"
11066 #include "confdefs.h"
11067 /* System header to define __stub macros and hopefully few prototypes,
11068     which can conflict with char $ac_func (); below.  */
11069 #include <assert.h>
11070 /* Override any gcc2 internal prototype to avoid an error.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 /* We use char because int might match the return type of a gcc2
11075    builtin and then its argument prototype would still apply.  */
11076 char $ac_func ();
11077 char (*f) ();
11078
11079 #ifdef F77_DUMMY_MAIN
11080 #  ifdef __cplusplus
11081      extern "C"
11082 #  endif
11083    int F77_DUMMY_MAIN() { return 1; }
11084 #endif
11085 int
11086 main ()
11087 {
11088 /* The GNU C library defines this for functions which it implements
11089     to always fail with ENOSYS.  Some functions are actually named
11090     something starting with __ and the normal name is an alias.  */
11091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11092 choke me
11093 #else
11094 f = $ac_func;
11095 #endif
11096
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103   (eval $ac_link) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); } &&
11107          { ac_try='test -s conftest$ac_exeext'
11108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109   (eval $ac_try) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113   eval "$as_ac_var=yes"
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11118 fi
11119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11120 fi
11121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11123 if test `eval echo '${'$as_ac_var'}'` = yes; then
11124   cat >>confdefs.h <<_ACEOF
11125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11126 _ACEOF
11127  break
11128 fi
11129 done
11130
11131 fi
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11144 do
11145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11146 echo "$as_me:$LINENO: checking for $ac_func" >&5
11147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11148 if eval "test \"\${$as_ac_var+set}\" = set"; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11153 #include "confdefs.h"
11154 /* System header to define __stub macros and hopefully few prototypes,
11155     which can conflict with char $ac_func (); below.  */
11156 #include <assert.h>
11157 /* Override any gcc2 internal prototype to avoid an error.  */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 /* We use char because int might match the return type of a gcc2
11162    builtin and then its argument prototype would still apply.  */
11163 char $ac_func ();
11164 char (*f) ();
11165
11166 #ifdef F77_DUMMY_MAIN
11167 #  ifdef __cplusplus
11168      extern "C"
11169 #  endif
11170    int F77_DUMMY_MAIN() { return 1; }
11171 #endif
11172 int
11173 main ()
11174 {
11175 /* The GNU C library defines this for functions which it implements
11176     to always fail with ENOSYS.  Some functions are actually named
11177     something starting with __ and the normal name is an alias.  */
11178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11179 choke me
11180 #else
11181 f = $ac_func;
11182 #endif
11183
11184   ;
11185   return 0;
11186 }
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190   (eval $ac_link) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); } &&
11194          { ac_try='test -s conftest$ac_exeext'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   eval "$as_ac_var=yes"
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 eval "$as_ac_var=no"
11205 fi
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11207 fi
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211   cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11214
11215 else
11216   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11217 fi
11218 done
11219
11220
11221
11222 # Solaris has a very slow qsort in certain cases.
11223 case $host_os in
11224   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11225 esac
11226
11227 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11228 # this hackery with HPUXMATHLIB allows us to cope.
11229 HPUXMATHLIB=""
11230 case $host_cpu in
11231   hppa1.1)
11232         if [ -r /lib/pa1.1/libm.a ] ; then
11233             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11234         fi ;;
11235 esac
11236
11237
11238
11239 for ac_func in rint
11240 do
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251     which can conflict with char $ac_func (); below.  */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error.  */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 /* We use char because int might match the return type of a gcc2
11258    builtin and then its argument prototype would still apply.  */
11259 char $ac_func ();
11260 char (*f) ();
11261
11262 #ifdef F77_DUMMY_MAIN
11263 #  ifdef __cplusplus
11264      extern "C"
11265 #  endif
11266    int F77_DUMMY_MAIN() { return 1; }
11267 #endif
11268 int
11269 main ()
11270 {
11271 /* The GNU C library defines this for functions which it implements
11272     to always fail with ENOSYS.  Some functions are actually named
11273     something starting with __ and the normal name is an alias.  */
11274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11275 choke me
11276 #else
11277 f = $ac_func;
11278 #endif
11279
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286   (eval $ac_link) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -s conftest$ac_exeext'
11291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292   (eval $ac_try) 2>&5
11293   ac_status=$?
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); }; }; then
11296   eval "$as_ac_var=yes"
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 eval "$as_ac_var=no"
11301 fi
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11303 fi
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307   cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11310
11311 else
11312   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11313 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11314 if test "${ac_cv_lib_m_rint+set}" = set; then
11315   echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317   ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lm $HPUXMATHLIB $LIBS"
11319 cat >conftest.$ac_ext <<_ACEOF
11320 #line $LINENO "configure"
11321 #include "confdefs.h"
11322
11323 /* Override any gcc2 internal prototype to avoid an error.  */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 /* We use char because int might match the return type of a gcc2
11328    builtin and then its argument prototype would still apply.  */
11329 char rint ();
11330 #ifdef F77_DUMMY_MAIN
11331 #  ifdef __cplusplus
11332      extern "C"
11333 #  endif
11334    int F77_DUMMY_MAIN() { return 1; }
11335 #endif
11336 int
11337 main ()
11338 {
11339 rint ();
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346   (eval $ac_link) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -s conftest$ac_exeext'
11351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352   (eval $ac_try) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }; then
11356   ac_cv_lib_m_rint=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 ac_cv_lib_m_rint=no
11361 fi
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11364 fi
11365 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11366 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11367 if test $ac_cv_lib_m_rint = yes; then
11368   cat >>confdefs.h <<\_ACEOF
11369 #define HAVE_RINT 1
11370 _ACEOF
11371
11372 fi
11373
11374 fi
11375 done
11376
11377
11378
11379 if test "$with_readline" = yes; then
11380   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11381 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11385 #include <stdio.h>
11386 #ifdef HAVE_READLINE_READLINE_H
11387 # include <readline/readline.h>
11388 #elif defined(HAVE_READLINE_H)
11389 # include <readline.h>
11390 #endif
11391
11392 #ifdef F77_DUMMY_MAIN
11393 #  ifdef __cplusplus
11394      extern "C"
11395 #  endif
11396    int F77_DUMMY_MAIN() { return 1; }
11397 #endif
11398 int
11399 main ()
11400 {
11401 rl_completion_append_character = 'x';
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408   (eval $ac_link) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } &&
11412          { ac_try='test -s conftest$ac_exeext'
11413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414   (eval $ac_try) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; }; then
11418   echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6
11420
11421 cat >>confdefs.h <<\_ACEOF
11422 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11423 _ACEOF
11424
11425 else
11426   echo "$as_me: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6
11430 fi
11431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11432
11433
11434 for ac_func in rl_completion_matches rl_filename_completion_function
11435 do
11436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437 echo "$as_me:$LINENO: checking for $ac_func" >&5
11438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11439 if eval "test \"\${$as_ac_var+set}\" = set"; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11444 #include "confdefs.h"
11445 /* System header to define __stub macros and hopefully few prototypes,
11446     which can conflict with char $ac_func (); below.  */
11447 #include <assert.h>
11448 /* Override any gcc2 internal prototype to avoid an error.  */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 /* We use char because int might match the return type of a gcc2
11453    builtin and then its argument prototype would still apply.  */
11454 char $ac_func ();
11455 char (*f) ();
11456
11457 #ifdef F77_DUMMY_MAIN
11458 #  ifdef __cplusplus
11459      extern "C"
11460 #  endif
11461    int F77_DUMMY_MAIN() { return 1; }
11462 #endif
11463 int
11464 main ()
11465 {
11466 /* The GNU C library defines this for functions which it implements
11467     to always fail with ENOSYS.  Some functions are actually named
11468     something starting with __ and the normal name is an alias.  */
11469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11470 choke me
11471 #else
11472 f = $ac_func;
11473 #endif
11474
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext conftest$ac_exeext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11481   (eval $ac_link) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -s conftest$ac_exeext'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   eval "$as_ac_var=yes"
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 eval "$as_ac_var=no"
11496 fi
11497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11498 fi
11499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11501 if test `eval echo '${'$as_ac_var'}'` = yes; then
11502   cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11504 _ACEOF
11505
11506 fi
11507 done
11508
11509 fi
11510
11511
11512 echo "$as_me:$LINENO: checking for finite" >&5
11513 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11515 #line $LINENO "configure"
11516 #include "confdefs.h"
11517 #include <math.h>
11518 #ifdef F77_DUMMY_MAIN
11519 #  ifdef __cplusplus
11520      extern "C"
11521 #  endif
11522    int F77_DUMMY_MAIN() { return 1; }
11523 #endif
11524 int
11525 main ()
11526 {
11527 int dummy=finite(1.0);
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534   (eval $ac_link) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } &&
11538          { ac_try='test -s conftest$ac_exeext'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_FINITE 1
11547 _ACEOF
11548
11549 echo "$as_me:$LINENO: result: yes" >&5
11550 echo "${ECHO_T}yes" >&6
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 cat conftest.$ac_ext >&5
11554 echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11556 fi
11557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11558
11559 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11560 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11561 cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 #include "confdefs.h"
11564 #include <setjmp.h>
11565 #ifdef F77_DUMMY_MAIN
11566 #  ifdef __cplusplus
11567      extern "C"
11568 #  endif
11569    int F77_DUMMY_MAIN() { return 1; }
11570 #endif
11571 int
11572 main ()
11573 {
11574 sigjmp_buf x; sigsetjmp(x, 1);
11575   ;
11576   return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581   (eval $ac_link) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); } &&
11585          { ac_try='test -s conftest$ac_exeext'
11586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587   (eval $ac_try) 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_SIGSETJMP 1
11594 _ACEOF
11595
11596 echo "$as_me:$LINENO: result: yes" >&5
11597 echo "${ECHO_T}yes" >&6
11598 else
11599   echo "$as_me: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11601 echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11603 fi
11604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11605
11606 echo "$as_me:$LINENO: checking for syslog" >&5
11607 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11608 if test "${ac_cv_func_syslog+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   cat >conftest.$ac_ext <<_ACEOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11614 /* System header to define __stub macros and hopefully few prototypes,
11615     which can conflict with char syslog (); below.  */
11616 #include <assert.h>
11617 /* Override any gcc2 internal prototype to avoid an error.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 /* We use char because int might match the return type of a gcc2
11622    builtin and then its argument prototype would still apply.  */
11623 char syslog ();
11624 char (*f) ();
11625
11626 #ifdef F77_DUMMY_MAIN
11627 #  ifdef __cplusplus
11628      extern "C"
11629 #  endif
11630    int F77_DUMMY_MAIN() { return 1; }
11631 #endif
11632 int
11633 main ()
11634 {
11635 /* The GNU C library defines this for functions which it implements
11636     to always fail with ENOSYS.  Some functions are actually named
11637     something starting with __ and the normal name is an alias.  */
11638 #if defined (__stub_syslog) || defined (__stub___syslog)
11639 choke me
11640 #else
11641 f = syslog;
11642 #endif
11643
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650   (eval $ac_link) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -s conftest$ac_exeext'
11655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656   (eval $ac_try) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; }; then
11660   ac_cv_func_syslog=yes
11661 else
11662   echo "$as_me: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 ac_cv_func_syslog=no
11665 fi
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667 fi
11668 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11669 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11670 if test $ac_cv_func_syslog = yes; then
11671   if test "${ac_cv_header_syslog_h+set}" = set; then
11672   echo "$as_me:$LINENO: checking for syslog.h" >&5
11673 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11674 if test "${ac_cv_header_syslog_h+set}" = set; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 fi
11677 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11678 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11679 else
11680   # Is the header compilable?
11681 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11682 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 $ac_includes_default
11687 #include <syslog.h>
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691   (eval $ac_compile) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   ac_header_compiler=yes
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 ac_header_compiler=no
11706 fi
11707 rm -f conftest.$ac_objext conftest.$ac_ext
11708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11709 echo "${ECHO_T}$ac_header_compiler" >&6
11710
11711 # Is the header present?
11712 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11713 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 #include "confdefs.h"
11717 #include <syslog.h>
11718 _ACEOF
11719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721   ac_status=$?
11722   egrep -v '^ *\+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } >/dev/null; then
11727   if test -s conftest.err; then
11728     ac_cpp_err=$ac_c_preproc_warn_flag
11729   else
11730     ac_cpp_err=
11731   fi
11732 else
11733   ac_cpp_err=yes
11734 fi
11735 if test -z "$ac_cpp_err"; then
11736   ac_header_preproc=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739   cat conftest.$ac_ext >&5
11740   ac_header_preproc=no
11741 fi
11742 rm -f conftest.err conftest.$ac_ext
11743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11744 echo "${ECHO_T}$ac_header_preproc" >&6
11745
11746 # So?  What about this header?
11747 case $ac_header_compiler:$ac_header_preproc in
11748   yes:no )
11749     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11750 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11751     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11753   no:yes )
11754     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11756     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11758     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11759 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11760 esac
11761 echo "$as_me:$LINENO: checking for syslog.h" >&5
11762 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11763 if test "${ac_cv_header_syslog_h+set}" = set; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   ac_cv_header_syslog_h=$ac_header_preproc
11767 fi
11768 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11770
11771 fi
11772 if test $ac_cv_header_syslog_h = yes; then
11773   cat >>confdefs.h <<\_ACEOF
11774 #define HAVE_SYSLOG 1
11775 _ACEOF
11776
11777 fi
11778
11779
11780 fi
11781
11782
11783 echo "$as_me:$LINENO: checking for optreset" >&5
11784 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11785 if test "${pgac_cv_var_int_optreset+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   cat >conftest.$ac_ext <<_ACEOF
11789 #line $LINENO "configure"
11790 #include "confdefs.h"
11791 #include <unistd.h>
11792 #ifdef F77_DUMMY_MAIN
11793 #  ifdef __cplusplus
11794      extern "C"
11795 #  endif
11796    int F77_DUMMY_MAIN() { return 1; }
11797 #endif
11798 int
11799 main ()
11800 {
11801 extern int optreset; optreset = 1;
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808   (eval $ac_link) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   pgac_cv_var_int_optreset=yes
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 cat conftest.$ac_ext >&5
11822 pgac_cv_var_int_optreset=no
11823 fi
11824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11825 fi
11826 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11827 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11828 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11829
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_INT_OPTRESET 1
11832 _ACEOF
11833
11834 fi
11835
11836
11837
11838 for ac_func in strtoll strtoq
11839 do
11840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11841 echo "$as_me:$LINENO: checking for $ac_func" >&5
11842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11843 if eval "test \"\${$as_ac_var+set}\" = set"; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 #include "confdefs.h"
11849 /* System header to define __stub macros and hopefully few prototypes,
11850     which can conflict with char $ac_func (); below.  */
11851 #include <assert.h>
11852 /* Override any gcc2 internal prototype to avoid an error.  */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 /* We use char because int might match the return type of a gcc2
11857    builtin and then its argument prototype would still apply.  */
11858 char $ac_func ();
11859 char (*f) ();
11860
11861 #ifdef F77_DUMMY_MAIN
11862 #  ifdef __cplusplus
11863      extern "C"
11864 #  endif
11865    int F77_DUMMY_MAIN() { return 1; }
11866 #endif
11867 int
11868 main ()
11869 {
11870 /* The GNU C library defines this for functions which it implements
11871     to always fail with ENOSYS.  Some functions are actually named
11872     something starting with __ and the normal name is an alias.  */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11874 choke me
11875 #else
11876 f = $ac_func;
11877 #endif
11878
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885   (eval $ac_link) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -s conftest$ac_exeext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   eval "$as_ac_var=yes"
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 eval "$as_ac_var=no"
11900 fi
11901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11902 fi
11903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11905 if test `eval echo '${'$as_ac_var'}'` = yes; then
11906   cat >>confdefs.h <<_ACEOF
11907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908 _ACEOF
11909  break
11910 fi
11911 done
11912
11913
11914
11915 for ac_func in strtoull strtouq
11916 do
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_var+set}\" = set"; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927     which can conflict with char $ac_func (); below.  */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 /* We use char because int might match the return type of a gcc2
11934    builtin and then its argument prototype would still apply.  */
11935 char $ac_func ();
11936 char (*f) ();
11937
11938 #ifdef F77_DUMMY_MAIN
11939 #  ifdef __cplusplus
11940      extern "C"
11941 #  endif
11942    int F77_DUMMY_MAIN() { return 1; }
11943 #endif
11944 int
11945 main ()
11946 {
11947 /* The GNU C library defines this for functions which it implements
11948     to always fail with ENOSYS.  Some functions are actually named
11949     something starting with __ and the normal name is an alias.  */
11950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11951 choke me
11952 #else
11953 f = $ac_func;
11954 #endif
11955
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962   (eval $ac_link) 2>&5
11963   ac_status=$?
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } &&
11966          { ac_try='test -s conftest$ac_exeext'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; }; then
11972   eval "$as_ac_var=yes"
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11977 fi
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 fi
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983   cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 _ACEOF
11986  break
11987 fi
11988 done
11989
11990
11991 # Check for one of atexit() or on_exit()
11992
11993 for ac_func in atexit
11994 do
11995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11996 echo "$as_me:$LINENO: checking for $ac_func" >&5
11997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11998 if eval "test \"\${$as_ac_var+set}\" = set"; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 #include "confdefs.h"
12004 /* System header to define __stub macros and hopefully few prototypes,
12005     which can conflict with char $ac_func (); below.  */
12006 #include <assert.h>
12007 /* Override any gcc2 internal prototype to avoid an error.  */
12008 #ifdef __cplusplus
12009 extern "C"
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012    builtin and then its argument prototype would still apply.  */
12013 char $ac_func ();
12014 char (*f) ();
12015
12016 #ifdef F77_DUMMY_MAIN
12017 #  ifdef __cplusplus
12018      extern "C"
12019 #  endif
12020    int F77_DUMMY_MAIN() { return 1; }
12021 #endif
12022 int
12023 main ()
12024 {
12025 /* The GNU C library defines this for functions which it implements
12026     to always fail with ENOSYS.  Some functions are actually named
12027     something starting with __ and the normal name is an alias.  */
12028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12029 choke me
12030 #else
12031 f = $ac_func;
12032 #endif
12033
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040   (eval $ac_link) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   eval "$as_ac_var=yes"
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 eval "$as_ac_var=no"
12055 fi
12056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12057 fi
12058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12060 if test `eval echo '${'$as_ac_var'}'` = yes; then
12061   cat >>confdefs.h <<_ACEOF
12062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12063 _ACEOF
12064
12065 else
12066
12067 for ac_func in on_exit
12068 do
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12078 /* System header to define __stub macros and hopefully few prototypes,
12079     which can conflict with char $ac_func (); below.  */
12080 #include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error.  */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 /* We use char because int might match the return type of a gcc2
12086    builtin and then its argument prototype would still apply.  */
12087 char $ac_func ();
12088 char (*f) ();
12089
12090 #ifdef F77_DUMMY_MAIN
12091 #  ifdef __cplusplus
12092      extern "C"
12093 #  endif
12094    int F77_DUMMY_MAIN() { return 1; }
12095 #endif
12096 int
12097 main ()
12098 {
12099 /* The GNU C library defines this for functions which it implements
12100     to always fail with ENOSYS.  Some functions are actually named
12101     something starting with __ and the normal name is an alias.  */
12102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12103 choke me
12104 #else
12105 f = $ac_func;
12106 #endif
12107
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   eval "$as_ac_var=yes"
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 eval "$as_ac_var=no"
12129 fi
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 fi
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135   cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137 _ACEOF
12138
12139 else
12140   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12141 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12142    { (exit 1); exit 1; }; }
12143 fi
12144 done
12145
12146 fi
12147 done
12148
12149
12150
12151 # This test makes sure that run tests work at all.  Sometimes a shared
12152 # library is found by the linker, but the runtime linker can't find it.
12153 # This check should come after all modifications of compiler or linker
12154 # variables, and before any other run tests.
12155 echo "$as_me:$LINENO: checking test program" >&5
12156 echo $ECHO_N "checking test program... $ECHO_C" >&6
12157 if test "$cross_compiling" = yes; then
12158   echo "$as_me:$LINENO: result: cross-compiling" >&5
12159 echo "${ECHO_T}cross-compiling" >&6
12160 else
12161   cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164 int main() { return 0; }
12165 _ACEOF
12166 rm -f conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168   (eval $ac_link) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   echo "$as_me:$LINENO: result: ok" >&5
12178 echo "${ECHO_T}ok" >&6
12179 else
12180   echo "$as_me: program exited with status $ac_status" >&5
12181 echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 ( exit $ac_status )
12184 echo "$as_me:$LINENO: result: failed" >&5
12185 echo "${ECHO_T}failed" >&6
12186 { { echo "$as_me:$LINENO: error:
12187 *** Could not execute a simple test program.  This may be a problem
12188 *** related to locating shared libraries.  Check the file 'config.log'
12189 *** for the exact reason." >&5
12190 echo "$as_me: error:
12191 *** Could not execute a simple test program.  This may be a problem
12192 *** related to locating shared libraries.  Check the file 'config.log'
12193 *** for the exact reason." >&2;}
12194    { (exit 1); exit 1; }; }
12195 fi
12196 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12197 fi
12198
12199
12200
12201 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12202 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12203 if test "${pgac_cv_type_long_int_64+set}" = set; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   if test "$cross_compiling" = yes; then
12207   pgac_cv_type_long_int_64=no
12208 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12209 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 typedef long int int64;
12215
12216 /*
12217  * These are globals to discourage the compiler from folding all the
12218  * arithmetic tests down to compile-time constants.
12219  */
12220 int64 a = 20000001;
12221 int64 b = 40000005;
12222
12223 int does_int64_work()
12224 {
12225   int64 c,d;
12226
12227   if (sizeof(int64) != 8)
12228     return 0;                   /* definitely not the right size */
12229
12230   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12231   c = a * b;
12232   d = (c + b) / b;
12233   if (d != a+1)
12234     return 0;
12235   return 1;
12236 }
12237 main() {
12238   exit(! does_int64_work());
12239 }
12240 _ACEOF
12241 rm -f conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   pgac_cv_type_long_int_64=yes
12253 else
12254   echo "$as_me: program exited with status $ac_status" >&5
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 ( exit $ac_status )
12258 pgac_cv_type_long_int_64=no
12259 fi
12260 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12261 fi
12262 fi
12263 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12264 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12265
12266 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12267 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12268
12269 cat >>confdefs.h <<\_ACEOF
12270 #define HAVE_LONG_INT_64
12271 _ACEOF
12272
12273 fi
12274
12275
12276 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12277   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12278 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12279 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12280   echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282   if test "$cross_compiling" = yes; then
12283   pgac_cv_type_long_long_int_64=no
12284 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12285 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 #include "confdefs.h"
12290 typedef long long int int64;
12291
12292 /*
12293  * These are globals to discourage the compiler from folding all the
12294  * arithmetic tests down to compile-time constants.
12295  */
12296 int64 a = 20000001;
12297 int64 b = 40000005;
12298
12299 int does_int64_work()
12300 {
12301   int64 c,d;
12302
12303   if (sizeof(int64) != 8)
12304     return 0;                   /* definitely not the right size */
12305
12306   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12307   c = a * b;
12308   d = (c + b) / b;
12309   if (d != a+1)
12310     return 0;
12311   return 1;
12312 }
12313 main() {
12314   exit(! does_int64_work());
12315 }
12316 _ACEOF
12317 rm -f conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324   (eval $ac_try) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; }; then
12328   pgac_cv_type_long_long_int_64=yes
12329 else
12330   echo "$as_me: program exited with status $ac_status" >&5
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 ( exit $ac_status )
12334 pgac_cv_type_long_long_int_64=no
12335 fi
12336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12337 fi
12338 fi
12339 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12340 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12341
12342 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12343 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12344
12345 cat >>confdefs.h <<\_ACEOF
12346 #define HAVE_LONG_LONG_INT_64
12347 _ACEOF
12348
12349 fi
12350
12351 fi
12352
12353
12354
12355 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12356   cat >conftest.$ac_ext <<_ACEOF
12357 #line $LINENO "configure"
12358 #include "confdefs.h"
12359
12360 #define INT64CONST(x)  x##LL
12361 long long int foo = INT64CONST(0x1234567890123456);
12362
12363 #ifdef F77_DUMMY_MAIN
12364 #  ifdef __cplusplus
12365      extern "C"
12366 #  endif
12367    int F77_DUMMY_MAIN() { return 1; }
12368 #endif
12369 int
12370 main ()
12371 {
12372
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379   (eval $ac_compile) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } &&
12383          { ac_try='test -s conftest.$ac_objext'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; }; then
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_LL_CONSTANTS 1
12392 _ACEOF
12393
12394 else
12395   echo "$as_me: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 fi
12398 rm -f conftest.$ac_objext conftest.$ac_ext
12399 fi
12400
12401
12402
12403 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12404   if test $pgac_need_repl_snprintf = no; then
12405     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12406 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12407     if test "$cross_compiling" = yes; then
12408    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12409 echo "${ECHO_T}cannot test (not on host machine)" >&6
12410         # Force usage of our own snprintf, since we cannot test foreign snprintf
12411         pgac_need_repl_snprintf=yes
12412         INT64_FORMAT='"%lld"'
12413
12414 else
12415   cat >conftest.$ac_ext <<_ACEOF
12416 #line $LINENO "configure"
12417 #include "confdefs.h"
12418 #include <stdio.h>
12419 typedef long long int int64;
12420 #define INT64_FORMAT "%lld"
12421
12422 int64 a = 20000001;
12423 int64 b = 40000005;
12424
12425 int does_int64_snprintf_work()
12426 {
12427   int64 c;
12428   char buf[100];
12429
12430   if (sizeof(int64) != 8)
12431     return 0;                   /* doesn't look like the right size */
12432
12433   c = a * b;
12434   snprintf(buf, 100, INT64_FORMAT, c);
12435   if (strcmp(buf, "800000140000005") != 0)
12436     return 0;                   /* either multiply or snprintf is busted */
12437   return 1;
12438 }
12439 main() {
12440   exit(! does_int64_snprintf_work());
12441 }
12442 _ACEOF
12443 rm -f conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445   (eval $ac_link) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450   (eval $ac_try) 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454    echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6
12456           INT64_FORMAT='"%lld"'
12457
12458 else
12459   echo "$as_me: program exited with status $ac_status" >&5
12460 echo "$as_me: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12462 ( exit $ac_status )
12463  echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6
12465     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12466 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12467     if test "$cross_compiling" = yes; then
12468    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12469 echo "${ECHO_T}cannot test (not on host machine)" >&6
12470         # Force usage of our own snprintf, since we cannot test foreign snprintf
12471         pgac_need_repl_snprintf=yes
12472         INT64_FORMAT='"%lld"'
12473
12474 else
12475   cat >conftest.$ac_ext <<_ACEOF
12476 #line $LINENO "configure"
12477 #include "confdefs.h"
12478 #include <stdio.h>
12479 typedef long long int int64;
12480 #define INT64_FORMAT "%qd"
12481
12482 int64 a = 20000001;
12483 int64 b = 40000005;
12484
12485 int does_int64_snprintf_work()
12486 {
12487   int64 c;
12488   char buf[100];
12489
12490   if (sizeof(int64) != 8)
12491     return 0;     /* doesn't look like the right size */
12492
12493   c = a * b;
12494   snprintf(buf, 100, INT64_FORMAT, c);
12495   if (strcmp(buf, "800000140000005") != 0)
12496     return 0;     /* either multiply or snprintf is busted */
12497   return 1;
12498 }
12499 main() {
12500   exit(! does_int64_snprintf_work());
12501 }
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505   (eval $ac_link) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514    echo "$as_me:$LINENO: result: yes" >&5
12515 echo "${ECHO_T}yes" >&6
12516     INT64_FORMAT='"%qd"'
12517
12518 else
12519   echo "$as_me: program exited with status $ac_status" >&5
12520 echo "$as_me: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 ( exit $ac_status )
12523  echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12525         # Force usage of our own snprintf, since system snprintf is broken
12526         pgac_need_repl_snprintf=yes
12527         INT64_FORMAT='"%lld"'
12528
12529 fi
12530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12531 fi
12532 fi
12533 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12534 fi
12535   else
12536     # here if we previously decided we needed to use our own snprintf
12537     INT64_FORMAT='"%lld"'
12538   fi
12539 else
12540   # Here if we are not using 'long long int' at all
12541   INT64_FORMAT='"%ld"'
12542 fi
12543
12544
12545 cat >>confdefs.h <<_ACEOF
12546 #define INT64_FORMAT $INT64_FORMAT
12547 _ACEOF
12548
12549
12550 if test $pgac_need_repl_snprintf = yes; then
12551   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12552 fi
12553
12554
12555 echo "$as_me:$LINENO: checking for unsigned long" >&5
12556 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12557 if test "${ac_cv_type_unsigned_long+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 #include "confdefs.h"
12563 $ac_includes_default
12564 #ifdef F77_DUMMY_MAIN
12565 #  ifdef __cplusplus
12566      extern "C"
12567 #  endif
12568    int F77_DUMMY_MAIN() { return 1; }
12569 #endif
12570 int
12571 main ()
12572 {
12573 if ((unsigned long *) 0)
12574   return 0;
12575 if (sizeof (unsigned long))
12576   return 0;
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583   (eval $ac_compile) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }; then
12593   ac_cv_type_unsigned_long=yes
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ac_cv_type_unsigned_long=no
12598 fi
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12600 fi
12601 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12602 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12603
12604 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12605 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12606 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   if test "$ac_cv_type_unsigned_long" = yes; then
12610   # The cast to unsigned long works around a bug in the HP C Compiler
12611   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613   # This bug is HP SR number 8606223364.
12614   if test "$cross_compiling" = yes; then
12615   # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 $ac_includes_default
12620 #ifdef F77_DUMMY_MAIN
12621 #  ifdef __cplusplus
12622      extern "C"
12623 #  endif
12624    int F77_DUMMY_MAIN() { return 1; }
12625 #endif
12626 int
12627 main ()
12628 {
12629 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12630 test_array [0] = 0
12631
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638   (eval $ac_compile) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -s conftest.$ac_objext'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   ac_lo=0 ac_mid=0
12649   while :; do
12650     cat >conftest.$ac_ext <<_ACEOF
12651 #line $LINENO "configure"
12652 #include "confdefs.h"
12653 $ac_includes_default
12654 #ifdef F77_DUMMY_MAIN
12655 #  ifdef __cplusplus
12656      extern "C"
12657 #  endif
12658    int F77_DUMMY_MAIN() { return 1; }
12659 #endif
12660 int
12661 main ()
12662 {
12663 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12664 test_array [0] = 0
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672   (eval $ac_compile) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); } &&
12676          { ac_try='test -s conftest.$ac_objext'
12677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678   (eval $ac_try) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; }; then
12682   ac_hi=$ac_mid; break
12683 else
12684   echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 ac_lo=`expr $ac_mid + 1`
12687                     if test $ac_lo -le $ac_mid; then
12688                       ac_lo= ac_hi=
12689                       break
12690                     fi
12691                     ac_mid=`expr 2 '*' $ac_mid + 1`
12692 fi
12693 rm -f conftest.$ac_objext conftest.$ac_ext
12694   done
12695 else
12696   echo "$as_me: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12698 cat >conftest.$ac_ext <<_ACEOF
12699 #line $LINENO "configure"
12700 #include "confdefs.h"
12701 $ac_includes_default
12702 #ifdef F77_DUMMY_MAIN
12703 #  ifdef __cplusplus
12704      extern "C"
12705 #  endif
12706    int F77_DUMMY_MAIN() { return 1; }
12707 #endif
12708 int
12709 main ()
12710 {
12711 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12712 test_array [0] = 0
12713
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720   (eval $ac_compile) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -s conftest.$ac_objext'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_hi=-1 ac_mid=-1
12731   while :; do
12732     cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735 $ac_includes_default
12736 #ifdef F77_DUMMY_MAIN
12737 #  ifdef __cplusplus
12738      extern "C"
12739 #  endif
12740    int F77_DUMMY_MAIN() { return 1; }
12741 #endif
12742 int
12743 main ()
12744 {
12745 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12746 test_array [0] = 0
12747
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754   (eval $ac_compile) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); } &&
12758          { ac_try='test -s conftest.$ac_objext'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764   ac_lo=$ac_mid; break
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 ac_hi=`expr '(' $ac_mid ')' - 1`
12769                        if test $ac_mid -le $ac_hi; then
12770                          ac_lo= ac_hi=
12771                          break
12772                        fi
12773                        ac_mid=`expr 2 '*' $ac_mid`
12774 fi
12775 rm -f conftest.$ac_objext conftest.$ac_ext
12776   done
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 ac_lo= ac_hi=
12781 fi
12782 rm -f conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 rm -f conftest.$ac_objext conftest.$ac_ext
12785 # Binary search between lo and hi bounds.
12786 while test "x$ac_lo" != "x$ac_hi"; do
12787   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12788   cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12790 #include "confdefs.h"
12791 $ac_includes_default
12792 #ifdef F77_DUMMY_MAIN
12793 #  ifdef __cplusplus
12794      extern "C"
12795 #  endif
12796    int F77_DUMMY_MAIN() { return 1; }
12797 #endif
12798 int
12799 main ()
12800 {
12801 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12802 test_array [0] = 0
12803
12804   ;
12805   return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810   (eval $ac_compile) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } &&
12814          { ac_try='test -s conftest.$ac_objext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   ac_hi=$ac_mid
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 ac_lo=`expr '(' $ac_mid ')' + 1`
12825 fi
12826 rm -f conftest.$ac_objext conftest.$ac_ext
12827 done
12828 case $ac_lo in
12829 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12831 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12832    { (exit 1); exit 1; }; } ;;
12833 esac
12834 else
12835   if test "$cross_compiling" = yes; then
12836   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12837 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12838    { (exit 1); exit 1; }; }
12839 else
12840   cat >conftest.$ac_ext <<_ACEOF
12841 #line $LINENO "configure"
12842 #include "confdefs.h"
12843 $ac_includes_default
12844 long longval () { return (long) (sizeof (unsigned long)); }
12845 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12846 #include <stdio.h>
12847 #include <stdlib.h>
12848 #ifdef F77_DUMMY_MAIN
12849 #  ifdef __cplusplus
12850      extern "C"
12851 #  endif
12852    int F77_DUMMY_MAIN() { return 1; }
12853 #endif
12854 int
12855 main ()
12856 {
12857
12858   FILE *f = fopen ("conftest.val", "w");
12859   if (! f)
12860     exit (1);
12861   if (((long) (sizeof (unsigned long))) < 0)
12862     {
12863       long i = longval ();
12864       if (i != ((long) (sizeof (unsigned long))))
12865         exit (1);
12866       fprintf (f, "%ld\n", i);
12867     }
12868   else
12869     {
12870       unsigned long i = ulongval ();
12871       if (i != ((long) (sizeof (unsigned long))))
12872         exit (1);
12873       fprintf (f, "%lu\n", i);
12874     }
12875   exit (ferror (f) || fclose (f) != 0);
12876
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 rm -f conftest$ac_exeext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12883   (eval $ac_link) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888   (eval $ac_try) 2>&5
12889   ac_status=$?
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); }; }; then
12892   ac_cv_sizeof_unsigned_long=`cat conftest.val`
12893 else
12894   echo "$as_me: program exited with status $ac_status" >&5
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ( exit $ac_status )
12898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12899 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12900    { (exit 1); exit 1; }; }
12901 fi
12902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 fi
12905 rm -f conftest.val
12906 else
12907   ac_cv_sizeof_unsigned_long=0
12908 fi
12909 fi
12910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12911 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12914 _ACEOF
12915
12916
12917
12918 cat >>confdefs.h <<_ACEOF
12919 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12920 _ACEOF
12921
12922
12923 # Determine memory alignment requirements for the basic C data types.
12924
12925 echo "$as_me:$LINENO: checking for short" >&5
12926 echo $ECHO_N "checking for short... $ECHO_C" >&6
12927 if test "${ac_cv_type_short+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   cat >conftest.$ac_ext <<_ACEOF
12931 #line $LINENO "configure"
12932 #include "confdefs.h"
12933 $ac_includes_default
12934 #ifdef F77_DUMMY_MAIN
12935 #  ifdef __cplusplus
12936      extern "C"
12937 #  endif
12938    int F77_DUMMY_MAIN() { return 1; }
12939 #endif
12940 int
12941 main ()
12942 {
12943 if ((short *) 0)
12944   return 0;
12945 if (sizeof (short))
12946   return 0;
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953   (eval $ac_compile) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } &&
12957          { ac_try='test -s conftest.$ac_objext'
12958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959   (eval $ac_try) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; }; then
12963   ac_cv_type_short=yes
12964 else
12965   echo "$as_me: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 ac_cv_type_short=no
12968 fi
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12970 fi
12971 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12972 echo "${ECHO_T}$ac_cv_type_short" >&6
12973
12974 echo "$as_me:$LINENO: checking alignment of short" >&5
12975 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12976 if test "${pgac_cv_alignof_short+set}" = set; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   if test "$ac_cv_type_short" = yes; then
12980   if test "$cross_compiling" = yes; then
12981   # Depending upon the size, compute the lo and hi bounds.
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 #include "confdefs.h"
12985 $ac_includes_default
12986 struct { char filler; short field; } pgac_struct;
12987 #ifdef F77_DUMMY_MAIN
12988 #  ifdef __cplusplus
12989      extern "C"
12990 #  endif
12991    int F77_DUMMY_MAIN() { return 1; }
12992 #endif
12993 int
12994 main ()
12995 {
12996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12997 test_array [0] = 0
12998
12999   ;
13000   return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005   (eval $ac_compile) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -s conftest.$ac_objext'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }; then
13015   ac_lo=0 ac_mid=0
13016   while :; do
13017     cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 #include "confdefs.h"
13020 $ac_includes_default
13021 struct { char filler; short field; } pgac_struct;
13022 #ifdef F77_DUMMY_MAIN
13023 #  ifdef __cplusplus
13024      extern "C"
13025 #  endif
13026    int F77_DUMMY_MAIN() { return 1; }
13027 #endif
13028 int
13029 main ()
13030 {
13031 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13032 test_array [0] = 0
13033
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040   (eval $ac_compile) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); } &&
13044          { ac_try='test -s conftest.$ac_objext'
13045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046   (eval $ac_try) 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; }; then
13050   ac_hi=$ac_mid; break
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 ac_lo=`expr $ac_mid + 1`
13055                     if test $ac_lo -le $ac_mid; then
13056                       ac_lo= ac_hi=
13057                       break
13058                     fi
13059                     ac_mid=`expr 2 '*' $ac_mid + 1`
13060 fi
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13062   done
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 cat >conftest.$ac_ext <<_ACEOF
13067 #line $LINENO "configure"
13068 #include "confdefs.h"
13069 $ac_includes_default
13070 struct { char filler; short field; } pgac_struct;
13071 #ifdef F77_DUMMY_MAIN
13072 #  ifdef __cplusplus
13073      extern "C"
13074 #  endif
13075    int F77_DUMMY_MAIN() { return 1; }
13076 #endif
13077 int
13078 main ()
13079 {
13080 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13081 test_array [0] = 0
13082
13083   ;
13084   return 0;
13085 }
13086 _ACEOF
13087 rm -f conftest.$ac_objext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13089   (eval $ac_compile) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); } &&
13093          { ac_try='test -s conftest.$ac_objext'
13094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095   (eval $ac_try) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099   ac_hi=-1 ac_mid=-1
13100   while :; do
13101     cat >conftest.$ac_ext <<_ACEOF
13102 #line $LINENO "configure"
13103 #include "confdefs.h"
13104 $ac_includes_default
13105 struct { char filler; short field; } pgac_struct;
13106 #ifdef F77_DUMMY_MAIN
13107 #  ifdef __cplusplus
13108      extern "C"
13109 #  endif
13110    int F77_DUMMY_MAIN() { return 1; }
13111 #endif
13112 int
13113 main ()
13114 {
13115 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13116 test_array [0] = 0
13117
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 rm -f conftest.$ac_objext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124   (eval $ac_compile) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } &&
13128          { ac_try='test -s conftest.$ac_objext'
13129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130   (eval $ac_try) 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); }; }; then
13134   ac_lo=$ac_mid; break
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13138 ac_hi=`expr '(' $ac_mid ')' - 1`
13139                        if test $ac_mid -le $ac_hi; then
13140                          ac_lo= ac_hi=
13141                          break
13142                        fi
13143                        ac_mid=`expr 2 '*' $ac_mid`
13144 fi
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13146   done
13147 else
13148   echo "$as_me: failed program was:" >&5
13149 cat conftest.$ac_ext >&5
13150 ac_lo= ac_hi=
13151 fi
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13153 fi
13154 rm -f conftest.$ac_objext conftest.$ac_ext
13155 # Binary search between lo and hi bounds.
13156 while test "x$ac_lo" != "x$ac_hi"; do
13157   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13158   cat >conftest.$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13160 #include "confdefs.h"
13161 $ac_includes_default
13162 struct { char filler; short field; } pgac_struct;
13163 #ifdef F77_DUMMY_MAIN
13164 #  ifdef __cplusplus
13165      extern "C"
13166 #  endif
13167    int F77_DUMMY_MAIN() { return 1; }
13168 #endif
13169 int
13170 main ()
13171 {
13172 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13173 test_array [0] = 0
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } &&
13185          { ac_try='test -s conftest.$ac_objext'
13186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187   (eval $ac_try) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   ac_hi=$ac_mid
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 ac_lo=`expr '(' $ac_mid ')' + 1`
13196 fi
13197 rm -f conftest.$ac_objext conftest.$ac_ext
13198 done
13199 case $ac_lo in
13200 ?*) pgac_cv_alignof_short=$ac_lo;;
13201 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13202 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13203    { (exit 1); exit 1; }; } ;;
13204 esac
13205 else
13206   if test "$cross_compiling" = yes; then
13207   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13208 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13209    { (exit 1); exit 1; }; }
13210 else
13211   cat >conftest.$ac_ext <<_ACEOF
13212 #line $LINENO "configure"
13213 #include "confdefs.h"
13214 $ac_includes_default
13215 struct { char filler; short field; } pgac_struct;
13216 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13217 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13218 #include <stdio.h>
13219 #include <stdlib.h>
13220 #ifdef F77_DUMMY_MAIN
13221 #  ifdef __cplusplus
13222      extern "C"
13223 #  endif
13224    int F77_DUMMY_MAIN() { return 1; }
13225 #endif
13226 int
13227 main ()
13228 {
13229
13230   FILE *f = fopen ("conftest.val", "w");
13231   if (! f)
13232     exit (1);
13233   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13234     {
13235       long i = longval ();
13236       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13237         exit (1);
13238       fprintf (f, "%ld\n", i);
13239     }
13240   else
13241     {
13242       unsigned long i = ulongval ();
13243       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13244         exit (1);
13245       fprintf (f, "%lu\n", i);
13246     }
13247   exit (ferror (f) || fclose (f) != 0);
13248
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 rm -f conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255   (eval $ac_link) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260   (eval $ac_try) 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   pgac_cv_alignof_short=`cat conftest.val`
13265 else
13266   echo "$as_me: program exited with status $ac_status" >&5
13267 echo "$as_me: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 ( exit $ac_status )
13270 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13271 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13272    { (exit 1); exit 1; }; }
13273 fi
13274 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13275 fi
13276 fi
13277 rm -f conftest.val
13278 else
13279   pgac_cv_alignof_short=0
13280 fi
13281 fi
13282 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13283 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13284 cat >>confdefs.h <<_ACEOF
13285 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13286 _ACEOF
13287
13288
13289 echo "$as_me:$LINENO: checking for int" >&5
13290 echo $ECHO_N "checking for int... $ECHO_C" >&6
13291 if test "${ac_cv_type_int+set}" = set; then
13292   echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294   cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 #include "confdefs.h"
13297 $ac_includes_default
13298 #ifdef F77_DUMMY_MAIN
13299 #  ifdef __cplusplus
13300      extern "C"
13301 #  endif
13302    int F77_DUMMY_MAIN() { return 1; }
13303 #endif
13304 int
13305 main ()
13306 {
13307 if ((int *) 0)
13308   return 0;
13309 if (sizeof (int))
13310   return 0;
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317   (eval $ac_compile) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -s conftest.$ac_objext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_type_int=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 ac_cv_type_int=no
13332 fi
13333 rm -f conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13336 echo "${ECHO_T}$ac_cv_type_int" >&6
13337
13338 echo "$as_me:$LINENO: checking alignment of int" >&5
13339 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13340 if test "${pgac_cv_alignof_int+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   if test "$ac_cv_type_int" = yes; then
13344   if test "$cross_compiling" = yes; then
13345   # Depending upon the size, compute the lo and hi bounds.
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 $ac_includes_default
13350 struct { char filler; int field; } pgac_struct;
13351 #ifdef F77_DUMMY_MAIN
13352 #  ifdef __cplusplus
13353      extern "C"
13354 #  endif
13355    int F77_DUMMY_MAIN() { return 1; }
13356 #endif
13357 int
13358 main ()
13359 {
13360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13361 test_array [0] = 0
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369   (eval $ac_compile) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -s conftest.$ac_objext'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; }; then
13379   ac_lo=0 ac_mid=0
13380   while :; do
13381     cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13384 $ac_includes_default
13385 struct { char filler; int field; } pgac_struct;
13386 #ifdef F77_DUMMY_MAIN
13387 #  ifdef __cplusplus
13388      extern "C"
13389 #  endif
13390    int F77_DUMMY_MAIN() { return 1; }
13391 #endif
13392 int
13393 main ()
13394 {
13395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13396 test_array [0] = 0
13397
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404   (eval $ac_compile) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } &&
13408          { ac_try='test -s conftest.$ac_objext'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   ac_hi=$ac_mid; break
13415 else
13416   echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 ac_lo=`expr $ac_mid + 1`
13419                     if test $ac_lo -le $ac_mid; then
13420                       ac_lo= ac_hi=
13421                       break
13422                     fi
13423                     ac_mid=`expr 2 '*' $ac_mid + 1`
13424 fi
13425 rm -f conftest.$ac_objext conftest.$ac_ext
13426   done
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13430 cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 $ac_includes_default
13434 struct { char filler; int field; } pgac_struct;
13435 #ifdef F77_DUMMY_MAIN
13436 #  ifdef __cplusplus
13437      extern "C"
13438 #  endif
13439    int F77_DUMMY_MAIN() { return 1; }
13440 #endif
13441 int
13442 main ()
13443 {
13444 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13445 test_array [0] = 0
13446
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 rm -f conftest.$ac_objext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13453   (eval $ac_compile) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } &&
13457          { ac_try='test -s conftest.$ac_objext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_hi=-1 ac_mid=-1
13464   while :; do
13465     cat >conftest.$ac_ext <<_ACEOF
13466 #line $LINENO "configure"
13467 #include "confdefs.h"
13468 $ac_includes_default
13469 struct { char filler; int field; } pgac_struct;
13470 #ifdef F77_DUMMY_MAIN
13471 #  ifdef __cplusplus
13472      extern "C"
13473 #  endif
13474    int F77_DUMMY_MAIN() { return 1; }
13475 #endif
13476 int
13477 main ()
13478 {
13479 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13480 test_array [0] = 0
13481
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488   (eval $ac_compile) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -s conftest.$ac_objext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_lo=$ac_mid; break
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 ac_hi=`expr '(' $ac_mid ')' - 1`
13503                        if test $ac_mid -le $ac_hi; then
13504                          ac_lo= ac_hi=
13505                          break
13506                        fi
13507                        ac_mid=`expr 2 '*' $ac_mid`
13508 fi
13509 rm -f conftest.$ac_objext conftest.$ac_ext
13510   done
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13514 ac_lo= ac_hi=
13515 fi
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 rm -f conftest.$ac_objext conftest.$ac_ext
13519 # Binary search between lo and hi bounds.
13520 while test "x$ac_lo" != "x$ac_hi"; do
13521   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13522   cat >conftest.$ac_ext <<_ACEOF
13523 #line $LINENO "configure"
13524 #include "confdefs.h"
13525 $ac_includes_default
13526 struct { char filler; int field; } pgac_struct;
13527 #ifdef F77_DUMMY_MAIN
13528 #  ifdef __cplusplus
13529      extern "C"
13530 #  endif
13531    int F77_DUMMY_MAIN() { return 1; }
13532 #endif
13533 int
13534 main ()
13535 {
13536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13537 test_array [0] = 0
13538
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545   (eval $ac_compile) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } &&
13549          { ac_try='test -s conftest.$ac_objext'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555   ac_hi=$ac_mid
13556 else
13557   echo "$as_me: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559 ac_lo=`expr '(' $ac_mid ')' + 1`
13560 fi
13561 rm -f conftest.$ac_objext conftest.$ac_ext
13562 done
13563 case $ac_lo in
13564 ?*) pgac_cv_alignof_int=$ac_lo;;
13565 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13566 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13567    { (exit 1); exit 1; }; } ;;
13568 esac
13569 else
13570   if test "$cross_compiling" = yes; then
13571   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13572 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13573    { (exit 1); exit 1; }; }
13574 else
13575   cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 $ac_includes_default
13579 struct { char filler; int field; } pgac_struct;
13580 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13581 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13582 #include <stdio.h>
13583 #include <stdlib.h>
13584 #ifdef F77_DUMMY_MAIN
13585 #  ifdef __cplusplus
13586      extern "C"
13587 #  endif
13588    int F77_DUMMY_MAIN() { return 1; }
13589 #endif
13590 int
13591 main ()
13592 {
13593
13594   FILE *f = fopen ("conftest.val", "w");
13595   if (! f)
13596     exit (1);
13597   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13598     {
13599       long i = longval ();
13600       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13601         exit (1);
13602       fprintf (f, "%ld\n", i);
13603     }
13604   else
13605     {
13606       unsigned long i = ulongval ();
13607       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13608         exit (1);
13609       fprintf (f, "%lu\n", i);
13610     }
13611   exit (ferror (f) || fclose (f) != 0);
13612
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619   (eval $ac_link) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; }; then
13628   pgac_cv_alignof_int=`cat conftest.val`
13629 else
13630   echo "$as_me: program exited with status $ac_status" >&5
13631 echo "$as_me: failed program was:" >&5
13632 cat conftest.$ac_ext >&5
13633 ( exit $ac_status )
13634 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13635 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13636    { (exit 1); exit 1; }; }
13637 fi
13638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 fi
13641 rm -f conftest.val
13642 else
13643   pgac_cv_alignof_int=0
13644 fi
13645 fi
13646 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13647 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13648 cat >>confdefs.h <<_ACEOF
13649 #define ALIGNOF_INT $pgac_cv_alignof_int
13650 _ACEOF
13651
13652
13653 echo "$as_me:$LINENO: checking for long" >&5
13654 echo $ECHO_N "checking for long... $ECHO_C" >&6
13655 if test "${ac_cv_type_long+set}" = set; then
13656   echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658   cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 #include "confdefs.h"
13661 $ac_includes_default
13662 #ifdef F77_DUMMY_MAIN
13663 #  ifdef __cplusplus
13664      extern "C"
13665 #  endif
13666    int F77_DUMMY_MAIN() { return 1; }
13667 #endif
13668 int
13669 main ()
13670 {
13671 if ((long *) 0)
13672   return 0;
13673 if (sizeof (long))
13674   return 0;
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681   (eval $ac_compile) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); } &&
13685          { ac_try='test -s conftest.$ac_objext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_cv_type_long=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 ac_cv_type_long=no
13696 fi
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 fi
13699 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13700 echo "${ECHO_T}$ac_cv_type_long" >&6
13701
13702 echo "$as_me:$LINENO: checking alignment of long" >&5
13703 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13704 if test "${pgac_cv_alignof_long+set}" = set; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707   if test "$ac_cv_type_long" = yes; then
13708   if test "$cross_compiling" = yes; then
13709   # Depending upon the size, compute the lo and hi bounds.
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 #include "confdefs.h"
13713 $ac_includes_default
13714 struct { char filler; long field; } pgac_struct;
13715 #ifdef F77_DUMMY_MAIN
13716 #  ifdef __cplusplus
13717      extern "C"
13718 #  endif
13719    int F77_DUMMY_MAIN() { return 1; }
13720 #endif
13721 int
13722 main ()
13723 {
13724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13725 test_array [0] = 0
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -s conftest.$ac_objext'
13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739   (eval $ac_try) 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; }; then
13743   ac_lo=0 ac_mid=0
13744   while :; do
13745     cat >conftest.$ac_ext <<_ACEOF
13746 #line $LINENO "configure"
13747 #include "confdefs.h"
13748 $ac_includes_default
13749 struct { char filler; long field; } pgac_struct;
13750 #ifdef F77_DUMMY_MAIN
13751 #  ifdef __cplusplus
13752      extern "C"
13753 #  endif
13754    int F77_DUMMY_MAIN() { return 1; }
13755 #endif
13756 int
13757 main ()
13758 {
13759 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13760 test_array [0] = 0
13761
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 rm -f conftest.$ac_objext
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768   (eval $ac_compile) 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -s conftest.$ac_objext'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; }; then
13778   ac_hi=$ac_mid; break
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 ac_lo=`expr $ac_mid + 1`
13783                     if test $ac_lo -le $ac_mid; then
13784                       ac_lo= ac_hi=
13785                       break
13786                     fi
13787                     ac_mid=`expr 2 '*' $ac_mid + 1`
13788 fi
13789 rm -f conftest.$ac_objext conftest.$ac_ext
13790   done
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 #include "confdefs.h"
13797 $ac_includes_default
13798 struct { char filler; long field; } pgac_struct;
13799 #ifdef F77_DUMMY_MAIN
13800 #  ifdef __cplusplus
13801      extern "C"
13802 #  endif
13803    int F77_DUMMY_MAIN() { return 1; }
13804 #endif
13805 int
13806 main ()
13807 {
13808 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13809 test_array [0] = 0
13810
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_hi=-1 ac_mid=-1
13828   while :; do
13829     cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 #include "confdefs.h"
13832 $ac_includes_default
13833 struct { char filler; long field; } pgac_struct;
13834 #ifdef F77_DUMMY_MAIN
13835 #  ifdef __cplusplus
13836      extern "C"
13837 #  endif
13838    int F77_DUMMY_MAIN() { return 1; }
13839 #endif
13840 int
13841 main ()
13842 {
13843 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13844 test_array [0] = 0
13845
13846   ;
13847   return 0;
13848 }
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852   (eval $ac_compile) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -s conftest.$ac_objext'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_lo=$ac_mid; break
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 ac_hi=`expr '(' $ac_mid ')' - 1`
13867                        if test $ac_mid -le $ac_hi; then
13868                          ac_lo= ac_hi=
13869                          break
13870                        fi
13871                        ac_mid=`expr 2 '*' $ac_mid`
13872 fi
13873 rm -f conftest.$ac_objext conftest.$ac_ext
13874   done
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 ac_lo= ac_hi=
13879 fi
13880 rm -f conftest.$ac_objext conftest.$ac_ext
13881 fi
13882 rm -f conftest.$ac_objext conftest.$ac_ext
13883 # Binary search between lo and hi bounds.
13884 while test "x$ac_lo" != "x$ac_hi"; do
13885   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13886   cat >conftest.$ac_ext <<_ACEOF
13887 #line $LINENO "configure"
13888 #include "confdefs.h"
13889 $ac_includes_default
13890 struct { char filler; long field; } pgac_struct;
13891 #ifdef F77_DUMMY_MAIN
13892 #  ifdef __cplusplus
13893      extern "C"
13894 #  endif
13895    int F77_DUMMY_MAIN() { return 1; }
13896 #endif
13897 int
13898 main ()
13899 {
13900 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13901 test_array [0] = 0
13902
13903   ;
13904   return 0;
13905 }
13906 _ACEOF
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909   (eval $ac_compile) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } &&
13913          { ac_try='test -s conftest.$ac_objext'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_hi=$ac_mid
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 ac_lo=`expr '(' $ac_mid ')' + 1`
13924 fi
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13926 done
13927 case $ac_lo in
13928 ?*) pgac_cv_alignof_long=$ac_lo;;
13929 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13930 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13931    { (exit 1); exit 1; }; } ;;
13932 esac
13933 else
13934   if test "$cross_compiling" = yes; then
13935   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13936 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13937    { (exit 1); exit 1; }; }
13938 else
13939   cat >conftest.$ac_ext <<_ACEOF
13940 #line $LINENO "configure"
13941 #include "confdefs.h"
13942 $ac_includes_default
13943 struct { char filler; long field; } pgac_struct;
13944 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13945 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13946 #include <stdio.h>
13947 #include <stdlib.h>
13948 #ifdef F77_DUMMY_MAIN
13949 #  ifdef __cplusplus
13950      extern "C"
13951 #  endif
13952    int F77_DUMMY_MAIN() { return 1; }
13953 #endif
13954 int
13955 main ()
13956 {
13957
13958   FILE *f = fopen ("conftest.val", "w");
13959   if (! f)
13960     exit (1);
13961   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13962     {
13963       long i = longval ();
13964       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13965         exit (1);
13966       fprintf (f, "%ld\n", i);
13967     }
13968   else
13969     {
13970       unsigned long i = ulongval ();
13971       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13972         exit (1);
13973       fprintf (f, "%lu\n", i);
13974     }
13975   exit (ferror (f) || fclose (f) != 0);
13976
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983   (eval $ac_link) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988   (eval $ac_try) 2>&5
13989   ac_status=$?
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); }; }; then
13992   pgac_cv_alignof_long=`cat conftest.val`
13993 else
13994   echo "$as_me: program exited with status $ac_status" >&5
13995 echo "$as_me: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 ( exit $ac_status )
13998 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13999 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14000    { (exit 1); exit 1; }; }
14001 fi
14002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14003 fi
14004 fi
14005 rm -f conftest.val
14006 else
14007   pgac_cv_alignof_long=0
14008 fi
14009 fi
14010 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14011 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14012 cat >>confdefs.h <<_ACEOF
14013 #define ALIGNOF_LONG $pgac_cv_alignof_long
14014 _ACEOF
14015
14016
14017 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14018   echo "$as_me:$LINENO: checking for long long int" >&5
14019 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14020 if test "${ac_cv_type_long_long_int+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 $ac_includes_default
14027 #ifdef F77_DUMMY_MAIN
14028 #  ifdef __cplusplus
14029      extern "C"
14030 #  endif
14031    int F77_DUMMY_MAIN() { return 1; }
14032 #endif
14033 int
14034 main ()
14035 {
14036 if ((long long int *) 0)
14037   return 0;
14038 if (sizeof (long long int))
14039   return 0;
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046   (eval $ac_compile) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } &&
14050          { ac_try='test -s conftest.$ac_objext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_cv_type_long_long_int=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_cv_type_long_long_int=no
14061 fi
14062 rm -f conftest.$ac_objext conftest.$ac_ext
14063 fi
14064 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14065 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14066
14067 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14068 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14069 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 else
14072   if test "$ac_cv_type_long_long_int" = yes; then
14073   if test "$cross_compiling" = yes; then
14074   # Depending upon the size, compute the lo and hi bounds.
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 #include "confdefs.h"
14078 $ac_includes_default
14079 struct { char filler; long long int field; } pgac_struct;
14080 #ifdef F77_DUMMY_MAIN
14081 #  ifdef __cplusplus
14082      extern "C"
14083 #  endif
14084    int F77_DUMMY_MAIN() { return 1; }
14085 #endif
14086 int
14087 main ()
14088 {
14089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14090 test_array [0] = 0
14091
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 rm -f conftest.$ac_objext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14098   (eval $ac_compile) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } &&
14102          { ac_try='test -s conftest.$ac_objext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_lo=0 ac_mid=0
14109   while :; do
14110     cat >conftest.$ac_ext <<_ACEOF
14111 #line $LINENO "configure"
14112 #include "confdefs.h"
14113 $ac_includes_default
14114 struct { char filler; long long int field; } pgac_struct;
14115 #ifdef F77_DUMMY_MAIN
14116 #  ifdef __cplusplus
14117      extern "C"
14118 #  endif
14119    int F77_DUMMY_MAIN() { return 1; }
14120 #endif
14121 int
14122 main ()
14123 {
14124 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14125 test_array [0] = 0
14126
14127   ;
14128   return 0;
14129 }
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133   (eval $ac_compile) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } &&
14137          { ac_try='test -s conftest.$ac_objext'
14138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139   (eval $ac_try) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; }; then
14143   ac_hi=$ac_mid; break
14144 else
14145   echo "$as_me: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 ac_lo=`expr $ac_mid + 1`
14148                     if test $ac_lo -le $ac_mid; then
14149                       ac_lo= ac_hi=
14150                       break
14151                     fi
14152                     ac_mid=`expr 2 '*' $ac_mid + 1`
14153 fi
14154 rm -f conftest.$ac_objext conftest.$ac_ext
14155   done
14156 else
14157   echo "$as_me: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14162 $ac_includes_default
14163 struct { char filler; long long int field; } pgac_struct;
14164 #ifdef F77_DUMMY_MAIN
14165 #  ifdef __cplusplus
14166      extern "C"
14167 #  endif
14168    int F77_DUMMY_MAIN() { return 1; }
14169 #endif
14170 int
14171 main ()
14172 {
14173 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14174 test_array [0] = 0
14175
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182   (eval $ac_compile) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } &&
14186          { ac_try='test -s conftest.$ac_objext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_hi=-1 ac_mid=-1
14193   while :; do
14194     cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197 $ac_includes_default
14198 struct { char filler; long long int field; } pgac_struct;
14199 #ifdef F77_DUMMY_MAIN
14200 #  ifdef __cplusplus
14201      extern "C"
14202 #  endif
14203    int F77_DUMMY_MAIN() { return 1; }
14204 #endif
14205 int
14206 main ()
14207 {
14208 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14209 test_array [0] = 0
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217   (eval $ac_compile) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_lo=$ac_mid; break
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 ac_hi=`expr '(' $ac_mid ')' - 1`
14232                        if test $ac_mid -le $ac_hi; then
14233                          ac_lo= ac_hi=
14234                          break
14235                        fi
14236                        ac_mid=`expr 2 '*' $ac_mid`
14237 fi
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14239   done
14240 else
14241   echo "$as_me: failed program was:" >&5
14242 cat conftest.$ac_ext >&5
14243 ac_lo= ac_hi=
14244 fi
14245 rm -f conftest.$ac_objext conftest.$ac_ext
14246 fi
14247 rm -f conftest.$ac_objext conftest.$ac_ext
14248 # Binary search between lo and hi bounds.
14249 while test "x$ac_lo" != "x$ac_hi"; do
14250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14251   cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 #include "confdefs.h"
14254 $ac_includes_default
14255 struct { char filler; long long int field; } pgac_struct;
14256 #ifdef F77_DUMMY_MAIN
14257 #  ifdef __cplusplus
14258      extern "C"
14259 #  endif
14260    int F77_DUMMY_MAIN() { return 1; }
14261 #endif
14262 int
14263 main ()
14264 {
14265 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14266 test_array [0] = 0
14267
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274   (eval $ac_compile) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); } &&
14278          { ac_try='test -s conftest.$ac_objext'
14279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280   (eval $ac_try) 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; }; then
14284   ac_hi=$ac_mid
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 ac_lo=`expr '(' $ac_mid ')' + 1`
14289 fi
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14291 done
14292 case $ac_lo in
14293 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14294 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14295 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14296    { (exit 1); exit 1; }; } ;;
14297 esac
14298 else
14299   if test "$cross_compiling" = yes; then
14300   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14301 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14302    { (exit 1); exit 1; }; }
14303 else
14304   cat >conftest.$ac_ext <<_ACEOF
14305 #line $LINENO "configure"
14306 #include "confdefs.h"
14307 $ac_includes_default
14308 struct { char filler; long long int field; } pgac_struct;
14309 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14310 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14311 #include <stdio.h>
14312 #include <stdlib.h>
14313 #ifdef F77_DUMMY_MAIN
14314 #  ifdef __cplusplus
14315      extern "C"
14316 #  endif
14317    int F77_DUMMY_MAIN() { return 1; }
14318 #endif
14319 int
14320 main ()
14321 {
14322
14323   FILE *f = fopen ("conftest.val", "w");
14324   if (! f)
14325     exit (1);
14326   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14327     {
14328       long i = longval ();
14329       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14330         exit (1);
14331       fprintf (f, "%ld\n", i);
14332     }
14333   else
14334     {
14335       unsigned long i = ulongval ();
14336       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14337         exit (1);
14338       fprintf (f, "%lu\n", i);
14339     }
14340   exit (ferror (f) || fclose (f) != 0);
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest$ac_exeext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348   (eval $ac_link) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   pgac_cv_alignof_long_long_int=`cat conftest.val`
14358 else
14359   echo "$as_me: program exited with status $ac_status" >&5
14360 echo "$as_me: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 ( exit $ac_status )
14363 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14364 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14365    { (exit 1); exit 1; }; }
14366 fi
14367 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14368 fi
14369 fi
14370 rm -f conftest.val
14371 else
14372   pgac_cv_alignof_long_long_int=0
14373 fi
14374 fi
14375 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14376 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14377 cat >>confdefs.h <<_ACEOF
14378 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14379 _ACEOF
14380
14381
14382 fi
14383 echo "$as_me:$LINENO: checking for double" >&5
14384 echo $ECHO_N "checking for double... $ECHO_C" >&6
14385 if test "${ac_cv_type_double+set}" = set; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 #include "confdefs.h"
14391 $ac_includes_default
14392 #ifdef F77_DUMMY_MAIN
14393 #  ifdef __cplusplus
14394      extern "C"
14395 #  endif
14396    int F77_DUMMY_MAIN() { return 1; }
14397 #endif
14398 int
14399 main ()
14400 {
14401 if ((double *) 0)
14402   return 0;
14403 if (sizeof (double))
14404   return 0;
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411   (eval $ac_compile) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_cv_type_double=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 ac_cv_type_double=no
14426 fi
14427 rm -f conftest.$ac_objext conftest.$ac_ext
14428 fi
14429 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14430 echo "${ECHO_T}$ac_cv_type_double" >&6
14431
14432 echo "$as_me:$LINENO: checking alignment of double" >&5
14433 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14434 if test "${pgac_cv_alignof_double+set}" = set; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   if test "$ac_cv_type_double" = yes; then
14438   if test "$cross_compiling" = yes; then
14439   # Depending upon the size, compute the lo and hi bounds.
14440 cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 #include "confdefs.h"
14443 $ac_includes_default
14444 struct { char filler; double field; } pgac_struct;
14445 #ifdef F77_DUMMY_MAIN
14446 #  ifdef __cplusplus
14447      extern "C"
14448 #  endif
14449    int F77_DUMMY_MAIN() { return 1; }
14450 #endif
14451 int
14452 main ()
14453 {
14454 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14455 test_array [0] = 0
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463   (eval $ac_compile) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } &&
14467          { ac_try='test -s conftest.$ac_objext'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; }; then
14473   ac_lo=0 ac_mid=0
14474   while :; do
14475     cat >conftest.$ac_ext <<_ACEOF
14476 #line $LINENO "configure"
14477 #include "confdefs.h"
14478 $ac_includes_default
14479 struct { char filler; double field; } pgac_struct;
14480 #ifdef F77_DUMMY_MAIN
14481 #  ifdef __cplusplus
14482      extern "C"
14483 #  endif
14484    int F77_DUMMY_MAIN() { return 1; }
14485 #endif
14486 int
14487 main ()
14488 {
14489 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14490 test_array [0] = 0
14491
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498   (eval $ac_compile) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } &&
14502          { ac_try='test -s conftest.$ac_objext'
14503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504   (eval $ac_try) 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   ac_hi=$ac_mid; break
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 cat conftest.$ac_ext >&5
14512 ac_lo=`expr $ac_mid + 1`
14513                     if test $ac_lo -le $ac_mid; then
14514                       ac_lo= ac_hi=
14515                       break
14516                     fi
14517                     ac_mid=`expr 2 '*' $ac_mid + 1`
14518 fi
14519 rm -f conftest.$ac_objext conftest.$ac_ext
14520   done
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14526 #include "confdefs.h"
14527 $ac_includes_default
14528 struct { char filler; double field; } pgac_struct;
14529 #ifdef F77_DUMMY_MAIN
14530 #  ifdef __cplusplus
14531      extern "C"
14532 #  endif
14533    int F77_DUMMY_MAIN() { return 1; }
14534 #endif
14535 int
14536 main ()
14537 {
14538 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14539 test_array [0] = 0
14540
14541   ;
14542   return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14547   (eval $ac_compile) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); } &&
14551          { ac_try='test -s conftest.$ac_objext'
14552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; }; then
14557   ac_hi=-1 ac_mid=-1
14558   while :; do
14559     cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 #include "confdefs.h"
14562 $ac_includes_default
14563 struct { char filler; double field; } pgac_struct;
14564 #ifdef F77_DUMMY_MAIN
14565 #  ifdef __cplusplus
14566      extern "C"
14567 #  endif
14568    int F77_DUMMY_MAIN() { return 1; }
14569 #endif
14570 int
14571 main ()
14572 {
14573 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14574 test_array [0] = 0
14575
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582   (eval $ac_compile) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_lo=$ac_mid; break
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 cat conftest.$ac_ext >&5
14596 ac_hi=`expr '(' $ac_mid ')' - 1`
14597                        if test $ac_mid -le $ac_hi; then
14598                          ac_lo= ac_hi=
14599                          break
14600                        fi
14601                        ac_mid=`expr 2 '*' $ac_mid`
14602 fi
14603 rm -f conftest.$ac_objext conftest.$ac_ext
14604   done
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 ac_lo= ac_hi=
14609 fi
14610 rm -f conftest.$ac_objext conftest.$ac_ext
14611 fi
14612 rm -f conftest.$ac_objext conftest.$ac_ext
14613 # Binary search between lo and hi bounds.
14614 while test "x$ac_lo" != "x$ac_hi"; do
14615   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14616   cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 #include "confdefs.h"
14619 $ac_includes_default
14620 struct { char filler; double field; } pgac_struct;
14621 #ifdef F77_DUMMY_MAIN
14622 #  ifdef __cplusplus
14623      extern "C"
14624 #  endif
14625    int F77_DUMMY_MAIN() { return 1; }
14626 #endif
14627 int
14628 main ()
14629 {
14630 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14631 test_array [0] = 0
14632
14633   ;
14634   return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639   (eval $ac_compile) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_hi=$ac_mid
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 ac_lo=`expr '(' $ac_mid ')' + 1`
14654 fi
14655 rm -f conftest.$ac_objext conftest.$ac_ext
14656 done
14657 case $ac_lo in
14658 ?*) pgac_cv_alignof_double=$ac_lo;;
14659 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14660 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14661    { (exit 1); exit 1; }; } ;;
14662 esac
14663 else
14664   if test "$cross_compiling" = yes; then
14665   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14666 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14667    { (exit 1); exit 1; }; }
14668 else
14669   cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14671 #include "confdefs.h"
14672 $ac_includes_default
14673 struct { char filler; double field; } pgac_struct;
14674 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14675 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14676 #include <stdio.h>
14677 #include <stdlib.h>
14678 #ifdef F77_DUMMY_MAIN
14679 #  ifdef __cplusplus
14680      extern "C"
14681 #  endif
14682    int F77_DUMMY_MAIN() { return 1; }
14683 #endif
14684 int
14685 main ()
14686 {
14687
14688   FILE *f = fopen ("conftest.val", "w");
14689   if (! f)
14690     exit (1);
14691   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14692     {
14693       long i = longval ();
14694       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14695         exit (1);
14696       fprintf (f, "%ld\n", i);
14697     }
14698   else
14699     {
14700       unsigned long i = ulongval ();
14701       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14702         exit (1);
14703       fprintf (f, "%lu\n", i);
14704     }
14705   exit (ferror (f) || fclose (f) != 0);
14706
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest$ac_exeext
14712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14713   (eval $ac_link) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   pgac_cv_alignof_double=`cat conftest.val`
14723 else
14724   echo "$as_me: program exited with status $ac_status" >&5
14725 echo "$as_me: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 ( exit $ac_status )
14728 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14729 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14730    { (exit 1); exit 1; }; }
14731 fi
14732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14733 fi
14734 fi
14735 rm -f conftest.val
14736 else
14737   pgac_cv_alignof_double=0
14738 fi
14739 fi
14740 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14741 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14742 cat >>confdefs.h <<_ACEOF
14743 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14744 _ACEOF
14745
14746
14747
14748 # Compute maximum alignment of any basic type.
14749 # We assume long's alignment is at least as strong as char, short, or int;
14750 # but we must check long long (if it exists) and double.
14751
14752 MAX_ALIGNOF=$pgac_cv_alignof_long
14753 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14754   MAX_ALIGNOF=$pgac_cv_alignof_double
14755 fi
14756 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14757   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14758 fi
14759
14760 cat >>confdefs.h <<_ACEOF
14761 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14762 _ACEOF
14763
14764
14765
14766 # Some platforms predefine the types int8, int16, etc.  Only check
14767 # a (hopefully) representative subset.
14768 echo "$as_me:$LINENO: checking for int8" >&5
14769 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14770 if test "${ac_cv_type_int8+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14776 #include <stdio.h>
14777 #ifdef HAVE_SUPPORTDEFS_H
14778 #include <SupportDefs.h>
14779 #endif
14780
14781 #ifdef F77_DUMMY_MAIN
14782 #  ifdef __cplusplus
14783      extern "C"
14784 #  endif
14785    int F77_DUMMY_MAIN() { return 1; }
14786 #endif
14787 int
14788 main ()
14789 {
14790 if ((int8 *) 0)
14791   return 0;
14792 if (sizeof (int8))
14793   return 0;
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800   (eval $ac_compile) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_cv_type_int8=yes
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 ac_cv_type_int8=no
14815 fi
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14819 echo "${ECHO_T}$ac_cv_type_int8" >&6
14820 if test $ac_cv_type_int8 = yes; then
14821
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_INT8 1
14824 _ACEOF
14825
14826
14827 fi
14828 echo "$as_me:$LINENO: checking for uint8" >&5
14829 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14830 if test "${ac_cv_type_uint8+set}" = set; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833   cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14836 #include <stdio.h>
14837 #ifdef HAVE_SUPPORTDEFS_H
14838 #include <SupportDefs.h>
14839 #endif
14840
14841 #ifdef F77_DUMMY_MAIN
14842 #  ifdef __cplusplus
14843      extern "C"
14844 #  endif
14845    int F77_DUMMY_MAIN() { return 1; }
14846 #endif
14847 int
14848 main ()
14849 {
14850 if ((uint8 *) 0)
14851   return 0;
14852 if (sizeof (uint8))
14853   return 0;
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860   (eval $ac_compile) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } &&
14864          { ac_try='test -s conftest.$ac_objext'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870   ac_cv_type_uint8=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 cat conftest.$ac_ext >&5
14874 ac_cv_type_uint8=no
14875 fi
14876 rm -f conftest.$ac_objext conftest.$ac_ext
14877 fi
14878 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14879 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14880 if test $ac_cv_type_uint8 = yes; then
14881
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_UINT8 1
14884 _ACEOF
14885
14886
14887 fi
14888 echo "$as_me:$LINENO: checking for int64" >&5
14889 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14890 if test "${ac_cv_type_int64+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893   cat >conftest.$ac_ext <<_ACEOF
14894 #line $LINENO "configure"
14895 #include "confdefs.h"
14896 #include <stdio.h>
14897 #ifdef HAVE_SUPPORTDEFS_H
14898 #include <SupportDefs.h>
14899 #endif
14900
14901 #ifdef F77_DUMMY_MAIN
14902 #  ifdef __cplusplus
14903      extern "C"
14904 #  endif
14905    int F77_DUMMY_MAIN() { return 1; }
14906 #endif
14907 int
14908 main ()
14909 {
14910 if ((int64 *) 0)
14911   return 0;
14912 if (sizeof (int64))
14913   return 0;
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920   (eval $ac_compile) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } &&
14924          { ac_try='test -s conftest.$ac_objext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_cv_type_int64=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 ac_cv_type_int64=no
14935 fi
14936 rm -f conftest.$ac_objext conftest.$ac_ext
14937 fi
14938 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14939 echo "${ECHO_T}$ac_cv_type_int64" >&6
14940 if test $ac_cv_type_int64 = yes; then
14941
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_INT64 1
14944 _ACEOF
14945
14946
14947 fi
14948 echo "$as_me:$LINENO: checking for uint64" >&5
14949 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14950 if test "${ac_cv_type_uint64+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 #include "confdefs.h"
14956 #include <stdio.h>
14957 #ifdef HAVE_SUPPORTDEFS_H
14958 #include <SupportDefs.h>
14959 #endif
14960
14961 #ifdef F77_DUMMY_MAIN
14962 #  ifdef __cplusplus
14963      extern "C"
14964 #  endif
14965    int F77_DUMMY_MAIN() { return 1; }
14966 #endif
14967 int
14968 main ()
14969 {
14970 if ((uint64 *) 0)
14971   return 0;
14972 if (sizeof (uint64))
14973   return 0;
14974   ;
14975   return 0;
14976 }
14977 _ACEOF
14978 rm -f conftest.$ac_objext
14979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14980   (eval $ac_compile) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } &&
14984          { ac_try='test -s conftest.$ac_objext'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; }; then
14990   ac_cv_type_uint64=yes
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 ac_cv_type_uint64=no
14995 fi
14996 rm -f conftest.$ac_objext conftest.$ac_ext
14997 fi
14998 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14999 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15000 if test $ac_cv_type_uint64 = yes; then
15001
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_UINT64 1
15004 _ACEOF
15005
15006
15007 fi
15008
15009
15010 # We also check for sig_atomic_t, which *should* be defined per ANSI
15011 # C, but is missing on some old platforms.
15012 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15013 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15014 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017   cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 #include "confdefs.h"
15020 #include <signal.h>
15021
15022 #ifdef F77_DUMMY_MAIN
15023 #  ifdef __cplusplus
15024      extern "C"
15025 #  endif
15026    int F77_DUMMY_MAIN() { return 1; }
15027 #endif
15028 int
15029 main ()
15030 {
15031 if ((sig_atomic_t *) 0)
15032   return 0;
15033 if (sizeof (sig_atomic_t))
15034   return 0;
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_cv_type_sig_atomic_t=yes
15052 else
15053   echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ac_cv_type_sig_atomic_t=no
15056 fi
15057 rm -f conftest.$ac_objext conftest.$ac_ext
15058 fi
15059 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15060 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15061 if test $ac_cv_type_sig_atomic_t = yes; then
15062
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_SIG_ATOMIC_T 1
15065 _ACEOF
15066
15067
15068 fi
15069
15070
15071
15072 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15073 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15074 if test "${pgac_cv_func_posix_signals+set}" = set; then
15075   echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077   cat >conftest.$ac_ext <<_ACEOF
15078 #line $LINENO "configure"
15079 #include "confdefs.h"
15080 #include <signal.h>
15081
15082 #ifdef F77_DUMMY_MAIN
15083 #  ifdef __cplusplus
15084      extern "C"
15085 #  endif
15086    int F77_DUMMY_MAIN() { return 1; }
15087 #endif
15088 int
15089 main ()
15090 {
15091 struct sigaction act, oact;
15092 sigemptyset(&act.sa_mask);
15093 act.sa_flags = SA_RESTART;
15094 sigaction(0, &act, &oact);
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101   (eval $ac_link) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -s conftest$ac_exeext'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111   pgac_cv_func_posix_signals=yes
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15115 pgac_cv_func_posix_signals=no
15116 fi
15117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15118 fi
15119 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15120 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15121 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15122
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_POSIX_SIGNALS
15125 _ACEOF
15126
15127 fi
15128 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15129
15130
15131
15132 # Select semaphore implementation type.
15133 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15134
15135 cat >>confdefs.h <<\_ACEOF
15136 #define USE_NAMED_POSIX_SEMAPHORES 1
15137 _ACEOF
15138
15139   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15140 else
15141   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15142
15143 cat >>confdefs.h <<\_ACEOF
15144 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15145 _ACEOF
15146
15147     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15148   else
15149
15150 cat >>confdefs.h <<\_ACEOF
15151 #define USE_SYSV_SEMAPHORES 1
15152 _ACEOF
15153
15154     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15155   fi
15156 fi
15157
15158
15159 # Select shared-memory implementation type.
15160
15161 cat >>confdefs.h <<\_ACEOF
15162 #define USE_SYSV_SHARED_MEMORY 1
15163 _ACEOF
15164
15165 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15166
15167
15168 if test "$enable_nls" = yes ; then
15169
15170   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15171 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15172 if test "${ac_cv_search_gettext+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_func_search_save_LIBS=$LIBS
15176 ac_cv_search_gettext=no
15177 cat >conftest.$ac_ext <<_ACEOF
15178 #line $LINENO "configure"
15179 #include "confdefs.h"
15180
15181 /* Override any gcc2 internal prototype to avoid an error.  */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 /* We use char because int might match the return type of a gcc2
15186    builtin and then its argument prototype would still apply.  */
15187 char gettext ();
15188 #ifdef F77_DUMMY_MAIN
15189 #  ifdef __cplusplus
15190      extern "C"
15191 #  endif
15192    int F77_DUMMY_MAIN() { return 1; }
15193 #endif
15194 int
15195 main ()
15196 {
15197 gettext ();
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204   (eval $ac_link) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -s conftest$ac_exeext'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   ac_cv_search_gettext="none required"
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 fi
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15220 if test "$ac_cv_search_gettext" = no; then
15221   for ac_lib in intl; do
15222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15223     cat >conftest.$ac_ext <<_ACEOF
15224 #line $LINENO "configure"
15225 #include "confdefs.h"
15226
15227 /* Override any gcc2 internal prototype to avoid an error.  */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 /* We use char because int might match the return type of a gcc2
15232    builtin and then its argument prototype would still apply.  */
15233 char gettext ();
15234 #ifdef F77_DUMMY_MAIN
15235 #  ifdef __cplusplus
15236      extern "C"
15237 #  endif
15238    int F77_DUMMY_MAIN() { return 1; }
15239 #endif
15240 int
15241 main ()
15242 {
15243 gettext ();
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250   (eval $ac_link) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -s conftest$ac_exeext'
15255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256   (eval $ac_try) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }; }; then
15260   ac_cv_search_gettext="-l$ac_lib"
15261 break
15262 else
15263   echo "$as_me: failed program was:" >&5
15264 cat conftest.$ac_ext >&5
15265 fi
15266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15267   done
15268 fi
15269 LIBS=$ac_func_search_save_LIBS
15270 fi
15271 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15272 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15273 if test "$ac_cv_search_gettext" != no; then
15274   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15275
15276 else
15277   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15278 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15279    { (exit 1); exit 1; }; }
15280 fi
15281
15282   if test "${ac_cv_header_libintl_h+set}" = set; then
15283   echo "$as_me:$LINENO: checking for libintl.h" >&5
15284 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15285 if test "${ac_cv_header_libintl_h+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 fi
15288 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15289 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15290 else
15291   # Is the header compilable?
15292 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15293 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 $ac_includes_default
15298 #include <libintl.h>
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } &&
15306          { ac_try='test -s conftest.$ac_objext'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312   ac_header_compiler=yes
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 cat conftest.$ac_ext >&5
15316 ac_header_compiler=no
15317 fi
15318 rm -f conftest.$ac_objext conftest.$ac_ext
15319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15320 echo "${ECHO_T}$ac_header_compiler" >&6
15321
15322 # Is the header present?
15323 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15324 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15325 cat >conftest.$ac_ext <<_ACEOF
15326 #line $LINENO "configure"
15327 #include "confdefs.h"
15328 #include <libintl.h>
15329 _ACEOF
15330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15332   ac_status=$?
15333   egrep -v '^ *\+' conftest.er1 >conftest.err
15334   rm -f conftest.er1
15335   cat conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } >/dev/null; then
15338   if test -s conftest.err; then
15339     ac_cpp_err=$ac_c_preproc_warn_flag
15340   else
15341     ac_cpp_err=
15342   fi
15343 else
15344   ac_cpp_err=yes
15345 fi
15346 if test -z "$ac_cpp_err"; then
15347   ac_header_preproc=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350   cat conftest.$ac_ext >&5
15351   ac_header_preproc=no
15352 fi
15353 rm -f conftest.err conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6
15356
15357 # So?  What about this header?
15358 case $ac_header_compiler:$ac_header_preproc in
15359   yes:no )
15360     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15363 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15364   no:yes )
15365     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15366 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15367     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15368 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15369     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15370 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15371 esac
15372 echo "$as_me:$LINENO: checking for libintl.h" >&5
15373 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15374 if test "${ac_cv_header_libintl_h+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   ac_cv_header_libintl_h=$ac_header_preproc
15378 fi
15379 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15380 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15381
15382 fi
15383 if test $ac_cv_header_libintl_h = yes; then
15384   :
15385 else
15386   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15387 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15388    { (exit 1); exit 1; }; }
15389 fi
15390
15391
15392   for ac_prog in msgfmt
15393 do
15394   # Extract the first word of "$ac_prog", so it can be a program name with args.
15395 set dummy $ac_prog; ac_word=$2
15396 echo "$as_me:$LINENO: checking for $ac_word" >&5
15397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15398 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   if test -n "$MSGFMT"; then
15402   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15403 else
15404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405 for as_dir in $PATH
15406 do
15407   IFS=$as_save_IFS
15408   test -z "$as_dir" && as_dir=.
15409   for ac_exec_ext in '' $ac_executable_extensions; do
15410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15411     ac_cv_prog_MSGFMT="$ac_prog"
15412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15413     break 2
15414   fi
15415 done
15416 done
15417
15418 fi
15419 fi
15420 MSGFMT=$ac_cv_prog_MSGFMT
15421 if test -n "$MSGFMT"; then
15422   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15423 echo "${ECHO_T}$MSGFMT" >&6
15424 else
15425   echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6
15427 fi
15428
15429   test -n "$MSGFMT" && break
15430 done
15431
15432   if test -z "$MSGFMT"; then
15433     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15434 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15435    { (exit 1); exit 1; }; }
15436   fi
15437   for ac_prog in msgmerge
15438 do
15439   # Extract the first word of "$ac_prog", so it can be a program name with args.
15440 set dummy $ac_prog; ac_word=$2
15441 echo "$as_me:$LINENO: checking for $ac_word" >&5
15442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15443 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   if test -n "$MSGMERGE"; then
15447   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15448 else
15449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450 for as_dir in $PATH
15451 do
15452   IFS=$as_save_IFS
15453   test -z "$as_dir" && as_dir=.
15454   for ac_exec_ext in '' $ac_executable_extensions; do
15455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456     ac_cv_prog_MSGMERGE="$ac_prog"
15457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15458     break 2
15459   fi
15460 done
15461 done
15462
15463 fi
15464 fi
15465 MSGMERGE=$ac_cv_prog_MSGMERGE
15466 if test -n "$MSGMERGE"; then
15467   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15468 echo "${ECHO_T}$MSGMERGE" >&6
15469 else
15470   echo "$as_me:$LINENO: result: no" >&5
15471 echo "${ECHO_T}no" >&6
15472 fi
15473
15474   test -n "$MSGMERGE" && break
15475 done
15476
15477   for ac_prog in xgettext
15478 do
15479   # Extract the first word of "$ac_prog", so it can be a program name with args.
15480 set dummy $ac_prog; ac_word=$2
15481 echo "$as_me:$LINENO: checking for $ac_word" >&5
15482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15483 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486   if test -n "$XGETTEXT"; then
15487   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15488 else
15489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490 for as_dir in $PATH
15491 do
15492   IFS=$as_save_IFS
15493   test -z "$as_dir" && as_dir=.
15494   for ac_exec_ext in '' $ac_executable_extensions; do
15495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15496     ac_cv_prog_XGETTEXT="$ac_prog"
15497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15498     break 2
15499   fi
15500 done
15501 done
15502
15503 fi
15504 fi
15505 XGETTEXT=$ac_cv_prog_XGETTEXT
15506 if test -n "$XGETTEXT"; then
15507   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15508 echo "${ECHO_T}$XGETTEXT" >&6
15509 else
15510   echo "$as_me:$LINENO: result: no" >&5
15511 echo "${ECHO_T}no" >&6
15512 fi
15513
15514   test -n "$XGETTEXT" && break
15515 done
15516
15517
15518   # Note: share/locale is always the default, independent of $datadir
15519   localedir='${prefix}/share/locale'
15520   if test x"$prefix" = x"NONE"; then
15521     exp_localedir="$ac_default_prefix/share/locale"
15522   else
15523     exp_localedir="$prefix/share/locale"
15524   fi
15525
15526
15527
15528 cat >>confdefs.h <<_ACEOF
15529 #define LOCALEDIR "$exp_localedir"
15530 _ACEOF
15531
15532
15533 fi
15534
15535 if test "$with_CXX" = yes; then
15536
15537
15538 ac_ext=cc
15539 ac_cpp='$CXXCPP $CPPFLAGS'
15540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15543
15544 if test "${ac_cv_header_string+set}" = set; then
15545   echo "$as_me:$LINENO: checking for string" >&5
15546 echo $ECHO_N "checking for string... $ECHO_C" >&6
15547 if test "${ac_cv_header_string+set}" = set; then
15548   echo $ECHO_N "(cached) $ECHO_C" >&6
15549 fi
15550 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15551 echo "${ECHO_T}$ac_cv_header_string" >&6
15552 else
15553   # Is the header compilable?
15554 echo "$as_me:$LINENO: checking string usability" >&5
15555 echo $ECHO_N "checking string usability... $ECHO_C" >&6
15556 cat >conftest.$ac_ext <<_ACEOF
15557 #line $LINENO "configure"
15558 #include "confdefs.h"
15559 $ac_includes_default
15560 #include <string>
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } &&
15568          { ac_try='test -s conftest.$ac_objext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_header_compiler=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_header_compiler=no
15579 fi
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6
15583
15584 # Is the header present?
15585 echo "$as_me:$LINENO: checking string presence" >&5
15586 echo $ECHO_N "checking string presence... $ECHO_C" >&6
15587 cat >conftest.$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15589 #include "confdefs.h"
15590 #include <string>
15591 _ACEOF
15592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15594   ac_status=$?
15595   egrep -v '^ *\+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } >/dev/null; then
15600   if test -s conftest.err; then
15601     ac_cpp_err=$ac_cxx_preproc_warn_flag
15602   else
15603     ac_cpp_err=
15604   fi
15605 else
15606   ac_cpp_err=yes
15607 fi
15608 if test -z "$ac_cpp_err"; then
15609   ac_header_preproc=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612   cat conftest.$ac_ext >&5
15613   ac_header_preproc=no
15614 fi
15615 rm -f conftest.err conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 echo "${ECHO_T}$ac_header_preproc" >&6
15618
15619 # So?  What about this header?
15620 case $ac_header_compiler:$ac_header_preproc in
15621   yes:no )
15622     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
15623 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15625 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15626   no:yes )
15627     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
15628 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
15630 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
15632 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
15633 esac
15634 echo "$as_me:$LINENO: checking for string" >&5
15635 echo $ECHO_N "checking for string... $ECHO_C" >&6
15636 if test "${ac_cv_header_string+set}" = set; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   ac_cv_header_string=$ac_header_preproc
15640 fi
15641 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
15642 echo "${ECHO_T}$ac_cv_header_string" >&6
15643
15644 fi
15645 if test $ac_cv_header_string = yes; then
15646
15647 cat >>confdefs.h <<\_ACEOF
15648 #define HAVE_CXX_STRING_HEADER 1
15649 _ACEOF
15650
15651 else
15652   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
15653 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
15654 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657   cat >conftest.$ac_ext <<_ACEOF
15658 #line $LINENO "configure"
15659 #include "confdefs.h"
15660 #include <stdio.h>
15661 #include <stdlib.h>
15662 #include <string.h>
15663
15664 #ifdef F77_DUMMY_MAIN
15665 #  ifdef __cplusplus
15666      extern "C"
15667 #  endif
15668    int F77_DUMMY_MAIN() { return 1; }
15669 #endif
15670 int
15671 main ()
15672 {
15673 string foo = "test"
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680   (eval $ac_compile) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -s conftest.$ac_objext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   pgac_cv_class_string_in_string_h=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15694 pgac_cv_class_string_in_string_h=no
15695 fi
15696 rm -f conftest.$ac_objext conftest.$ac_ext
15697 fi
15698 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
15699 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
15700
15701   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
15702     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
15703 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
15704    { (exit 1); exit 1; }; }
15705   fi
15706
15707 fi
15708
15709
15710 ac_ext=c
15711 ac_cpp='$CPP $CPPFLAGS'
15712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15715
15716
15717 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
15718 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
15719 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722
15723 ac_ext=cc
15724 ac_cpp='$CXXCPP $CPPFLAGS'
15725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15728
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 #include "confdefs.h"
15732 #include <stdio.h>
15733 #include <stdlib.h>
15734 #ifdef HAVE_CXX_STRING_HEADER
15735 #include <string>
15736 #endif
15737 using namespace std;
15738
15739 #ifdef F77_DUMMY_MAIN
15740 #  ifdef __cplusplus
15741      extern "C"
15742 #  endif
15743    int F77_DUMMY_MAIN() { return 1; }
15744 #endif
15745 int
15746 main ()
15747 {
15748
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755   (eval $ac_compile) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } &&
15759          { ac_try='test -s conftest.$ac_objext'
15760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761   (eval $ac_try) 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765   pgac_cv_cxx_namespace_std=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 cat conftest.$ac_ext >&5
15769 pgac_cv_cxx_namespace_std=no
15770 fi
15771 rm -f conftest.$ac_objext conftest.$ac_ext
15772 ac_ext=c
15773 ac_cpp='$CPP $CPPFLAGS'
15774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15777
15778 fi
15779 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
15780 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
15781
15782 if test $pgac_cv_cxx_namespace_std = yes ; then
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_NAMESPACE_STD 1
15786 _ACEOF
15787
15788 fi
15789 fi
15790
15791
15792 # Check for Tcl configuration script tclConfig.sh
15793 if test "$with_tcl" = yes; then
15794     for ac_prog in tclsh tcl
15795 do
15796   # Extract the first word of "$ac_prog", so it can be a program name with args.
15797 set dummy $ac_prog; ac_word=$2
15798 echo "$as_me:$LINENO: checking for $ac_word" >&5
15799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15800 if test "${ac_cv_path_TCLSH+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   case $TCLSH in
15804   [\\/]* | ?:[\\/]*)
15805   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15806   ;;
15807   *)
15808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15810 do
15811   IFS=$as_save_IFS
15812   test -z "$as_dir" && as_dir=.
15813   for ac_exec_ext in '' $ac_executable_extensions; do
15814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15815     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15817     break 2
15818   fi
15819 done
15820 done
15821
15822   ;;
15823 esac
15824 fi
15825 TCLSH=$ac_cv_path_TCLSH
15826
15827 if test -n "$TCLSH"; then
15828   echo "$as_me:$LINENO: result: $TCLSH" >&5
15829 echo "${ECHO_T}$TCLSH" >&6
15830 else
15831   echo "$as_me:$LINENO: result: no" >&5
15832 echo "${ECHO_T}no" >&6
15833 fi
15834
15835   test -n "$TCLSH" && break
15836 done
15837
15838 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15839 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15840 # Let user override test
15841 if test -z "$TCL_CONFIG_SH"; then
15842     pgac_test_dirs="$with_tclconfig"
15843
15844     set X $pgac_test_dirs; shift
15845     if test $# -eq 0; then
15846         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15847 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15848    { (exit 1); exit 1; }; }
15849         set X `echo 'puts $auto_path' | $TCLSH`; shift
15850     fi
15851
15852     for pgac_dir do
15853         if test -r "$pgac_dir/tclConfig.sh"; then
15854             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15855             break
15856         fi
15857     done
15858 fi
15859
15860 if test -z "$TCL_CONFIG_SH"; then
15861     echo "$as_me:$LINENO: result: no" >&5
15862 echo "${ECHO_T}no" >&6
15863     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15864 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15865    { (exit 1); exit 1; }; }
15866 else
15867     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15868 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15869 fi
15870
15871
15872
15873     . "$TCL_CONFIG_SH"
15874 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15875 eval TCL_LIBS=\"$TCL_LIBS\"
15876 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15877 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15878
15879     fi
15880
15881 # Check for Tk configuration script tkConfig.sh
15882 if test "$with_tk" = yes; then
15883     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15884 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15885 # Let user override test
15886 if test -z "$TK_CONFIG_SH"; then
15887     pgac_test_dirs="$with_tkconfig $with_tclconfig"
15888
15889     set X $pgac_test_dirs; shift
15890     if test $# -eq 0; then
15891         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15892 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15893    { (exit 1); exit 1; }; }
15894         set X `echo 'puts $auto_path' | $TCLSH`; shift
15895     fi
15896
15897     for pgac_dir do
15898         if test -r "$pgac_dir/tkConfig.sh"; then
15899             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15900             break
15901         fi
15902     done
15903 fi
15904
15905 if test -z "$TK_CONFIG_SH"; then
15906     echo "$as_me:$LINENO: result: no" >&5
15907 echo "${ECHO_T}no" >&6
15908     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15909 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15910    { (exit 1); exit 1; }; }
15911 else
15912     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15913 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15914 fi
15915
15916
15917
15918     . "$TK_CONFIG_SH"
15919 eval TK_LIBS=\"$TK_LIBS\"
15920 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15921 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15922
15923 fi
15924
15925
15926 #
15927 # Check for DocBook and tools
15928 #
15929 for ac_prog in onsgmls nsgmls
15930 do
15931   # Extract the first word of "$ac_prog", so it can be a program name with args.
15932 set dummy $ac_prog; ac_word=$2
15933 echo "$as_me:$LINENO: checking for $ac_word" >&5
15934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15935 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15936   echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938   if test -n "$NSGMLS"; then
15939   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15940 else
15941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942 for as_dir in $PATH
15943 do
15944   IFS=$as_save_IFS
15945   test -z "$as_dir" && as_dir=.
15946   for ac_exec_ext in '' $ac_executable_extensions; do
15947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15948     ac_cv_prog_NSGMLS="$ac_prog"
15949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15950     break 2
15951   fi
15952 done
15953 done
15954
15955 fi
15956 fi
15957 NSGMLS=$ac_cv_prog_NSGMLS
15958 if test -n "$NSGMLS"; then
15959   echo "$as_me:$LINENO: result: $NSGMLS" >&5
15960 echo "${ECHO_T}$NSGMLS" >&6
15961 else
15962   echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6
15964 fi
15965
15966   test -n "$NSGMLS" && break
15967 done
15968
15969 for ac_prog in openjade jade
15970 do
15971   # Extract the first word of "$ac_prog", so it can be a program name with args.
15972 set dummy $ac_prog; ac_word=$2
15973 echo "$as_me:$LINENO: checking for $ac_word" >&5
15974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15975 if test "${ac_cv_prog_JADE+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   if test -n "$JADE"; then
15979   ac_cv_prog_JADE="$JADE" # Let the user override the test.
15980 else
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $PATH
15983 do
15984   IFS=$as_save_IFS
15985   test -z "$as_dir" && as_dir=.
15986   for ac_exec_ext in '' $ac_executable_extensions; do
15987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988     ac_cv_prog_JADE="$ac_prog"
15989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15990     break 2
15991   fi
15992 done
15993 done
15994
15995 fi
15996 fi
15997 JADE=$ac_cv_prog_JADE
15998 if test -n "$JADE"; then
15999   echo "$as_me:$LINENO: result: $JADE" >&5
16000 echo "${ECHO_T}$JADE" >&6
16001 else
16002   echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6
16004 fi
16005
16006   test -n "$JADE" && break
16007 done
16008
16009
16010 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16011 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16012 if test "${pgac_cv_check_docbook+set}" = set; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015   cat >conftest.sgml <<EOF
16016 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16017 <book>
16018  <title>test</title>
16019  <chapter>
16020   <title>random</title>
16021    <sect1>
16022     <title>testsect</title>
16023     <para>text</para>
16024   </sect1>
16025  </chapter>
16026 </book>
16027 EOF
16028
16029 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16030 if test $? -eq 0; then
16031   pgac_cv_check_docbook=yes
16032 else
16033   pgac_cv_check_docbook=no
16034 fi
16035 rm -f conftest.sgml
16036 fi
16037 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16038 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16039
16040 have_docbook=$pgac_cv_check_docbook
16041
16042
16043 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16044 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16045 if test "${pgac_cv_path_stylesheets+set}" = set; then
16046   echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048   if test -n "$DOCBOOKSTYLE"; then
16049   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16050 else
16051   for pgac_prefix in /usr /usr/local /opt; do
16052     for pgac_infix in share lib; do
16053       for pgac_postfix in \
16054         sgml/stylesheets/nwalsh-modular \
16055         sgml/stylesheets/docbook \
16056         sgml/docbook/dsssl/modular \
16057         sgml/docbook/stylesheet/dsssl/modular \
16058         sgml/docbook/dsssl-stylesheets
16059       do
16060         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16061         if test -r "$pgac_candidate/html/docbook.dsl" \
16062            && test -r "$pgac_candidate/print/docbook.dsl"
16063         then
16064           pgac_cv_path_stylesheets=$pgac_candidate
16065           break 3
16066         fi
16067       done
16068     done
16069   done
16070 fi
16071 fi
16072
16073 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16074
16075 if test -n "$DOCBOOKSTYLE"; then
16076   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16077 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16078 else
16079   echo "$as_me:$LINENO: result: no" >&5
16080 echo "${ECHO_T}no" >&6
16081 fi
16082 if test -n "$DOCBOOKSTYLE"; then
16083   for ac_prog in collateindex.pl
16084 do
16085   # Extract the first word of "$ac_prog", so it can be a program name with args.
16086 set dummy $ac_prog; ac_word=$2
16087 echo "$as_me:$LINENO: checking for $ac_word" >&5
16088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16089 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   case $COLLATEINDEX in
16093   [\\/]* | ?:[\\/]*)
16094   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16095   ;;
16096   *)
16097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $DOCBOOKSTYLE/bin $PATH
16099 do
16100   IFS=$as_save_IFS
16101   test -z "$as_dir" && as_dir=.
16102   for ac_exec_ext in '' $ac_executable_extensions; do
16103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16106     break 2
16107   fi
16108 done
16109 done
16110
16111   ;;
16112 esac
16113 fi
16114 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16115
16116 if test -n "$COLLATEINDEX"; then
16117   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16118 echo "${ECHO_T}$COLLATEINDEX" >&6
16119 else
16120   echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6
16122 fi
16123
16124   test -n "$COLLATEINDEX" && break
16125 done
16126
16127 else
16128   for ac_prog in collateindex.pl
16129 do
16130   # Extract the first word of "$ac_prog", so it can be a program name with args.
16131 set dummy $ac_prog; ac_word=$2
16132 echo "$as_me:$LINENO: checking for $ac_word" >&5
16133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16134 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137   case $COLLATEINDEX in
16138   [\\/]* | ?:[\\/]*)
16139   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16140   ;;
16141   *)
16142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16143 for as_dir in $PATH
16144 do
16145   IFS=$as_save_IFS
16146   test -z "$as_dir" && as_dir=.
16147   for ac_exec_ext in '' $ac_executable_extensions; do
16148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16149     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16151     break 2
16152   fi
16153 done
16154 done
16155
16156   ;;
16157 esac
16158 fi
16159 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16160
16161 if test -n "$COLLATEINDEX"; then
16162   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16163 echo "${ECHO_T}$COLLATEINDEX" >&6
16164 else
16165   echo "$as_me:$LINENO: result: no" >&5
16166 echo "${ECHO_T}no" >&6
16167 fi
16168
16169   test -n "$COLLATEINDEX" && break
16170 done
16171
16172 fi
16173 for ac_prog in sgmlspl
16174 do
16175   # Extract the first word of "$ac_prog", so it can be a program name with args.
16176 set dummy $ac_prog; ac_word=$2
16177 echo "$as_me:$LINENO: checking for $ac_word" >&5
16178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16179 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   if test -n "$SGMLSPL"; then
16183   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16184 else
16185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16186 for as_dir in $PATH
16187 do
16188   IFS=$as_save_IFS
16189   test -z "$as_dir" && as_dir=.
16190   for ac_exec_ext in '' $ac_executable_extensions; do
16191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16192     ac_cv_prog_SGMLSPL="$ac_prog"
16193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16194     break 2
16195   fi
16196 done
16197 done
16198
16199 fi
16200 fi
16201 SGMLSPL=$ac_cv_prog_SGMLSPL
16202 if test -n "$SGMLSPL"; then
16203   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16204 echo "${ECHO_T}$SGMLSPL" >&6
16205 else
16206   echo "$as_me:$LINENO: result: no" >&5
16207 echo "${ECHO_T}no" >&6
16208 fi
16209
16210   test -n "$SGMLSPL" && break
16211 done
16212
16213
16214
16215 # prepare build tree if outside source tree
16216 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16217 # Note 2: /bin/pwd might be better than shell's built-in at getting
16218 #         a symlink-free name.
16219 if test "$no_create" != yes; then
16220   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16221     :
16222   else
16223     vpath_build=yes
16224
16225     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16226     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16227     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16228       || { { echo "$as_me:$LINENO: error: failed" >&5
16229 echo "$as_me: error: failed" >&2;}
16230    { (exit 1); exit 1; }; }
16231     echo "$as_me:$LINENO: result: done" >&5
16232 echo "${ECHO_T}done" >&6
16233   fi
16234 fi
16235
16236
16237 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16238
16239
16240 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
16241
16242
16243 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16244
16245
16246 cat >confcache <<\_ACEOF
16247 # This file is a shell script that caches the results of configure
16248 # tests run on this system so they can be shared between configure
16249 # scripts and configure runs, see configure's option --config-cache.
16250 # It is not useful on other systems.  If it contains results you don't
16251 # want to keep, you may remove or edit it.
16252 #
16253 # config.status only pays attention to the cache file if you give it
16254 # the --recheck option to rerun configure.
16255 #
16256 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16258 # following values.
16259
16260 _ACEOF
16261
16262 # The following way of writing the cache mishandles newlines in values,
16263 # but we know of no workaround that is simple, portable, and efficient.
16264 # So, don't put newlines in cache variables' values.
16265 # Ultrix sh set writes to stderr and can't be redirected directly,
16266 # and sets the high bit in the cache file unless we assign to the vars.
16267 {
16268   (set) 2>&1 |
16269     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16270     *ac_space=\ *)
16271       # `set' does not quote correctly, so add quotes (double-quote
16272       # substitution turns \\\\ into \\, and sed turns \\ into \).
16273       sed -n \
16274         "s/'/'\\\\''/g;
16275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16276       ;;
16277     *)
16278       # `set' quotes correctly as required by POSIX, so do not add quotes.
16279       sed -n \
16280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16281       ;;
16282     esac;
16283 } |
16284   sed '
16285      t clear
16286      : clear
16287      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16288      t end
16289      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16290      : end' >>confcache
16291 if cmp -s $cache_file confcache; then :; else
16292   if test -w $cache_file; then
16293     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16294     cat confcache >$cache_file
16295   else
16296     echo "not updating unwritable cache $cache_file"
16297   fi
16298 fi
16299 rm -f confcache
16300
16301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16302 # Let make expand exec_prefix.
16303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16304
16305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16307 # trailing colons and then remove the whole line if VPATH becomes empty
16308 # (actually we leave an empty line to preserve line numbers).
16309 if test "x$srcdir" = x.; then
16310   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16311 s/:*\$(srcdir):*/:/;
16312 s/:*\${srcdir}:*/:/;
16313 s/:*@srcdir@:*/:/;
16314 s/^\([^=]*=[    ]*\):*/\1/;
16315 s/:*$//;
16316 s/^[^=]*=[      ]*$//;
16317 }'
16318 fi
16319
16320 DEFS=-DHAVE_CONFIG_H
16321
16322
16323 : ${CONFIG_STATUS=./config.status}
16324 ac_clean_files_save=$ac_clean_files
16325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16326 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16328 cat >$CONFIG_STATUS <<_ACEOF
16329 #! $SHELL
16330 # Generated by $as_me.
16331 # Run this file to recreate the current configuration.
16332 # Compiler output produced by configure, useful for debugging
16333 # configure, is in config.log if it exists.
16334
16335 debug=false
16336 SHELL=\${CONFIG_SHELL-$SHELL}
16337 _ACEOF
16338
16339 cat >>$CONFIG_STATUS <<\_ACEOF
16340
16341 ## --------------------- ##
16342 ## M4sh Initialization.  ##
16343 ## --------------------- ##
16344
16345 # Be Bourne compatible
16346 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16347   emulate sh
16348   NULLCMD=:
16349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16350   set -o posix
16351 fi
16352
16353 # NLS nuisances.
16354 # Support unset when possible.
16355 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16356   as_unset=unset
16357 else
16358   as_unset=false
16359 fi
16360
16361 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16362     { $as_unset LANG || test "${LANG+set}" != set; } ||
16363       { LANG=C; export LANG; }
16364 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16365     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16366       { LC_ALL=C; export LC_ALL; }
16367 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16368     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16369       { LC_TIME=C; export LC_TIME; }
16370 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16371     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16372       { LC_CTYPE=C; export LC_CTYPE; }
16373 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16374     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16375       { LANGUAGE=C; export LANGUAGE; }
16376 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16377     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16378       { LC_COLLATE=C; export LC_COLLATE; }
16379 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16380     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16381       { LC_NUMERIC=C; export LC_NUMERIC; }
16382 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16383     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16384       { LC_MESSAGES=C; export LC_MESSAGES; }
16385
16386
16387 # Name of the executable.
16388 as_me=`(basename "$0") 2>/dev/null ||
16389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16390          X"$0" : 'X\(//\)$' \| \
16391          X"$0" : 'X\(/\)$' \| \
16392          .     : '\(.\)' 2>/dev/null ||
16393 echo X/"$0" |
16394     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16395           /^X\/\(\/\/\)$/{ s//\1/; q; }
16396           /^X\/\(\/\).*/{ s//\1/; q; }
16397           s/.*/./; q'`
16398
16399 # PATH needs CR, and LINENO needs CR and PATH.
16400 # Avoid depending upon Character Ranges.
16401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16404 as_cr_digits='0123456789'
16405 as_cr_alnum=$as_cr_Letters$as_cr_digits
16406
16407 # The user is always right.
16408 if test "${PATH_SEPARATOR+set}" != set; then
16409   echo "#! /bin/sh" >conftest.sh
16410   echo  "exit 0"   >>conftest.sh
16411   chmod +x conftest.sh
16412   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16413     PATH_SEPARATOR=';'
16414   else
16415     PATH_SEPARATOR=:
16416   fi
16417   rm -f conftest.sh
16418 fi
16419
16420
16421   as_lineno_1=$LINENO
16422   as_lineno_2=$LINENO
16423   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16424   test "x$as_lineno_1" != "x$as_lineno_2" &&
16425   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16426   # Find who we are.  Look in the path if we contain no path at all
16427   # relative or not.
16428   case $0 in
16429     *[\\/]* ) as_myself=$0 ;;
16430     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16431 for as_dir in $PATH
16432 do
16433   IFS=$as_save_IFS
16434   test -z "$as_dir" && as_dir=.
16435   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16436 done
16437
16438        ;;
16439   esac
16440   # We did not find ourselves, most probably we were run as `sh COMMAND'
16441   # in which case we are not to be found in the path.
16442   if test "x$as_myself" = x; then
16443     as_myself=$0
16444   fi
16445   if test ! -f "$as_myself"; then
16446     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16447 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16448    { (exit 1); exit 1; }; }
16449   fi
16450   case $CONFIG_SHELL in
16451   '')
16452     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16453 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16454 do
16455   IFS=$as_save_IFS
16456   test -z "$as_dir" && as_dir=.
16457   for as_base in sh bash ksh sh5; do
16458          case $as_dir in
16459          /*)
16460            if ("$as_dir/$as_base" -c '
16461   as_lineno_1=$LINENO
16462   as_lineno_2=$LINENO
16463   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16464   test "x$as_lineno_1" != "x$as_lineno_2" &&
16465   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16466              CONFIG_SHELL=$as_dir/$as_base
16467              export CONFIG_SHELL
16468              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16469            fi;;
16470          esac
16471        done
16472 done
16473 ;;
16474   esac
16475
16476   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16477   # uniformly replaced by the line number.  The first 'sed' inserts a
16478   # line-number line before each line; the second 'sed' does the real
16479   # work.  The second script uses 'N' to pair each line-number line
16480   # with the numbered line, and appends trailing '-' during
16481   # substitution so that $LINENO is not a special case at line end.
16482   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16483   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16484   sed '=' <$as_myself |
16485     sed '
16486       N
16487       s,$,-,
16488       : loop
16489       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16490       t loop
16491       s,-$,,
16492       s,^['$as_cr_digits']*\n,,
16493     ' >$as_me.lineno &&
16494   chmod +x $as_me.lineno ||
16495     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16496 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16497    { (exit 1); exit 1; }; }
16498
16499   # Don't try to exec as it changes $[0], causing all sort of problems
16500   # (the dirname of $[0] is not the place where we might find the
16501   # original and so on.  Autoconf is especially sensible to this).
16502   . ./$as_me.lineno
16503   # Exit status is that of the last command.
16504   exit
16505 }
16506
16507
16508 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16509   *c*,-n*) ECHO_N= ECHO_C='
16510 ' ECHO_T='      ' ;;
16511   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16512   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16513 esac
16514
16515 if expr a : '\(a\)' >/dev/null 2>&1; then
16516   as_expr=expr
16517 else
16518   as_expr=false
16519 fi
16520
16521 rm -f conf$$ conf$$.exe conf$$.file
16522 echo >conf$$.file
16523 if ln -s conf$$.file conf$$ 2>/dev/null; then
16524   # We could just check for DJGPP; but this test a) works b) is more generic
16525   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16526   if test -f conf$$.exe; then
16527     # Don't use ln at all; we don't have any links
16528     as_ln_s='cp -p'
16529   else
16530     as_ln_s='ln -s'
16531   fi
16532 elif ln conf$$.file conf$$ 2>/dev/null; then
16533   as_ln_s=ln
16534 else
16535   as_ln_s='cp -p'
16536 fi
16537 rm -f conf$$ conf$$.exe conf$$.file
16538
16539 as_executable_p="test -f"
16540
16541 # Sed expression to map a string onto a valid CPP name.
16542 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16543
16544 # Sed expression to map a string onto a valid variable name.
16545 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16546
16547
16548 # IFS
16549 # We need space, tab and new line, in precisely that order.
16550 as_nl='
16551 '
16552 IFS="   $as_nl"
16553
16554 # CDPATH.
16555 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16556
16557 exec 6>&1
16558
16559 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16560 # report actual input values of CONFIG_FILES etc. instead of their
16561 # values after options handling.  Logging --version etc. is OK.
16562 exec 5>>config.log
16563 {
16564   echo
16565   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16566 ## Running $as_me. ##
16567 _ASBOX
16568 } >&5
16569 cat >&5 <<_CSEOF
16570
16571 This file was extended by PostgreSQL $as_me 7.3devel, which was
16572 generated by GNU Autoconf 2.53.  Invocation command line was
16573
16574   CONFIG_FILES    = $CONFIG_FILES
16575   CONFIG_HEADERS  = $CONFIG_HEADERS
16576   CONFIG_LINKS    = $CONFIG_LINKS
16577   CONFIG_COMMANDS = $CONFIG_COMMANDS
16578   $ $0 $@
16579
16580 _CSEOF
16581 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16582 echo >&5
16583 _ACEOF
16584
16585 # Files that config.status was made for.
16586 if test -n "$ac_config_files"; then
16587   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16588 fi
16589
16590 if test -n "$ac_config_headers"; then
16591   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16592 fi
16593
16594 if test -n "$ac_config_links"; then
16595   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16596 fi
16597
16598 if test -n "$ac_config_commands"; then
16599   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16600 fi
16601
16602 cat >>$CONFIG_STATUS <<\_ACEOF
16603
16604 ac_cs_usage="\
16605 \`$as_me' instantiates files from templates according to the
16606 current configuration.
16607
16608 Usage: $0 [OPTIONS] [FILE]...
16609
16610   -h, --help       print this help, then exit
16611   -V, --version    print version number, then exit
16612   -d, --debug      don't remove temporary files
16613       --recheck    update $as_me by reconfiguring in the same conditions
16614   --file=FILE[:TEMPLATE]
16615                    instantiate the configuration file FILE
16616   --header=FILE[:TEMPLATE]
16617                    instantiate the configuration header FILE
16618
16619 Configuration files:
16620 $config_files
16621
16622 Configuration headers:
16623 $config_headers
16624
16625 Configuration links:
16626 $config_links
16627
16628 Report bugs to <bug-autoconf@gnu.org>."
16629 _ACEOF
16630
16631 cat >>$CONFIG_STATUS <<_ACEOF
16632 ac_cs_version="\\
16633 PostgreSQL config.status 7.3devel
16634 configured by $0, generated by GNU Autoconf 2.53,
16635   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16636
16637 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16638 Free Software Foundation, Inc.
16639 This config.status script is free software; the Free Software Foundation
16640 gives unlimited permission to copy, distribute and modify it."
16641 srcdir=$srcdir
16642 _ACEOF
16643
16644 cat >>$CONFIG_STATUS <<\_ACEOF
16645 # If no file are specified by the user, then we need to provide default
16646 # value.  By we need to know if files were specified by the user.
16647 ac_need_defaults=:
16648 while test $# != 0
16649 do
16650   case $1 in
16651   --*=*)
16652     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16653     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16654     shift
16655     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16656     shift
16657     ;;
16658   -*);;
16659   *) # This is not an option, so the user has probably given explicit
16660      # arguments.
16661      ac_need_defaults=false;;
16662   esac
16663
16664   case $1 in
16665   # Handling of the options.
16666 _ACEOF
16667 cat >>$CONFIG_STATUS <<_ACEOF
16668   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16669     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16670     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16671 _ACEOF
16672 cat >>$CONFIG_STATUS <<\_ACEOF
16673   --version | --vers* | -V )
16674     echo "$ac_cs_version"; exit 0 ;;
16675   --he | --h)
16676     # Conflict between --help and --header
16677     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16678 Try \`$0 --help' for more information." >&5
16679 echo "$as_me: error: ambiguous option: $1
16680 Try \`$0 --help' for more information." >&2;}
16681    { (exit 1); exit 1; }; };;
16682   --help | --hel | -h )
16683     echo "$ac_cs_usage"; exit 0 ;;
16684   --debug | --d* | -d )
16685     debug=: ;;
16686   --file | --fil | --fi | --f )
16687     shift
16688     CONFIG_FILES="$CONFIG_FILES $1"
16689     ac_need_defaults=false;;
16690   --header | --heade | --head | --hea )
16691     shift
16692     CONFIG_HEADERS="$CONFIG_HEADERS $1"
16693     ac_need_defaults=false;;
16694
16695   # This is an error.
16696   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16697 Try \`$0 --help' for more information." >&5
16698 echo "$as_me: error: unrecognized option: $1
16699 Try \`$0 --help' for more information." >&2;}
16700    { (exit 1); exit 1; }; } ;;
16701
16702   *) ac_config_targets="$ac_config_targets $1" ;;
16703
16704   esac
16705   shift
16706 done
16707
16708 _ACEOF
16709
16710
16711
16712
16713
16714 cat >>$CONFIG_STATUS <<\_ACEOF
16715 for ac_config_target in $ac_config_targets
16716 do
16717   case "$ac_config_target" in
16718   # Handling of arguments.
16719   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16720   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16721   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16722   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16723   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16724   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16725   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16726   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16727   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16728   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16729   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16730 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16731    { (exit 1); exit 1; }; };;
16732   esac
16733 done
16734
16735 # If the user did not use the arguments to specify the items to instantiate,
16736 # then the envvar interface is used.  Set only those that are not.
16737 # We use the long form for the default assignment because of an extremely
16738 # bizarre bug on SunOS 4.1.3.
16739 if $ac_need_defaults; then
16740   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16741   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16742   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16743 fi
16744
16745 # Create a temporary directory, and hook for its removal unless debugging.
16746 $debug ||
16747 {
16748   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16749   trap '{ (exit 1); exit 1; }' 1 2 13 15
16750 }
16751
16752 # Create a (secure) tmp directory for tmp files.
16753 : ${TMPDIR=/tmp}
16754 {
16755   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16756   test -n "$tmp" && test -d "$tmp"
16757 }  ||
16758 {
16759   tmp=$TMPDIR/cs$$-$RANDOM
16760   (umask 077 && mkdir $tmp)
16761 } ||
16762 {
16763    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16764    { (exit 1); exit 1; }
16765 }
16766
16767 _ACEOF
16768
16769 cat >>$CONFIG_STATUS <<_ACEOF
16770
16771 #
16772 # CONFIG_FILES section.
16773 #
16774
16775 # No need to generate the scripts if there are no CONFIG_FILES.
16776 # This happens for instance when ./config.status config.h
16777 if test -n "\$CONFIG_FILES"; then
16778   # Protect against being on the right side of a sed subst in config.status.
16779   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16780    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16781 s,@SHELL@,$SHELL,;t t
16782 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16783 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16784 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16785 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16786 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16787 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16788 s,@exec_prefix@,$exec_prefix,;t t
16789 s,@prefix@,$prefix,;t t
16790 s,@program_transform_name@,$program_transform_name,;t t
16791 s,@bindir@,$bindir,;t t
16792 s,@sbindir@,$sbindir,;t t
16793 s,@libexecdir@,$libexecdir,;t t
16794 s,@datadir@,$datadir,;t t
16795 s,@sysconfdir@,$sysconfdir,;t t
16796 s,@sharedstatedir@,$sharedstatedir,;t t
16797 s,@localstatedir@,$localstatedir,;t t
16798 s,@libdir@,$libdir,;t t
16799 s,@includedir@,$includedir,;t t
16800 s,@oldincludedir@,$oldincludedir,;t t
16801 s,@infodir@,$infodir,;t t
16802 s,@mandir@,$mandir,;t t
16803 s,@build_alias@,$build_alias,;t t
16804 s,@host_alias@,$host_alias,;t t
16805 s,@target_alias@,$target_alias,;t t
16806 s,@DEFS@,$DEFS,;t t
16807 s,@ECHO_C@,$ECHO_C,;t t
16808 s,@ECHO_N@,$ECHO_N,;t t
16809 s,@ECHO_T@,$ECHO_T,;t t
16810 s,@LIBS@,$LIBS,;t t
16811 s,@docdir@,$docdir,;t t
16812 s,@configure_args@,$configure_args,;t t
16813 s,@build@,$build,;t t
16814 s,@build_cpu@,$build_cpu,;t t
16815 s,@build_vendor@,$build_vendor,;t t
16816 s,@build_os@,$build_os,;t t
16817 s,@host@,$host,;t t
16818 s,@host_cpu@,$host_cpu,;t t
16819 s,@host_vendor@,$host_vendor,;t t
16820 s,@host_os@,$host_os,;t t
16821 s,@PORTNAME@,$PORTNAME,;t t
16822 s,@TAS@,$TAS,;t t
16823 s,@MULTIBYTE@,$MULTIBYTE,;t t
16824 s,@enable_nls@,$enable_nls,;t t
16825 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16826 s,@default_port@,$default_port,;t t
16827 s,@enable_shared@,$enable_shared,;t t
16828 s,@enable_rpath@,$enable_rpath,;t t
16829 s,@enable_debug@,$enable_debug,;t t
16830 s,@CC@,$CC,;t t
16831 s,@CFLAGS@,$CFLAGS,;t t
16832 s,@LDFLAGS@,$LDFLAGS,;t t
16833 s,@CPPFLAGS@,$CPPFLAGS,;t t
16834 s,@ac_ct_CC@,$ac_ct_CC,;t t
16835 s,@EXEEXT@,$EXEEXT,;t t
16836 s,@OBJEXT@,$OBJEXT,;t t
16837 s,@CPP@,$CPP,;t t
16838 s,@GCC@,$GCC,;t t
16839 s,@autodepend@,$autodepend,;t t
16840 s,@INCLUDES@,$INCLUDES,;t t
16841 s,@with_tcl@,$with_tcl,;t t
16842 s,@with_tk@,$with_tk,;t t
16843 s,@with_perl@,$with_perl,;t t
16844 s,@with_python@,$with_python,;t t
16845 s,@ANT@,$ANT,;t t
16846 s,@with_java@,$with_java,;t t
16847 s,@with_krb4@,$with_krb4,;t t
16848 s,@with_krb5@,$with_krb5,;t t
16849 s,@krb_srvtab@,$krb_srvtab,;t t
16850 s,@with_pam@,$with_pam,;t t
16851 s,@with_openssl@,$with_openssl,;t t
16852 s,@enable_odbc@,$enable_odbc,;t t
16853 s,@with_unixodbc@,$with_unixodbc,;t t
16854 s,@with_iodbc@,$with_iodbc,;t t
16855 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
16856 s,@ELF_SYS@,$ELF_SYS,;t t
16857 s,@CXX@,$CXX,;t t
16858 s,@CXXFLAGS@,$CXXFLAGS,;t t
16859 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16860 s,@CXXCPP@,$CXXCPP,;t t
16861 s,@with_CXX@,$with_CXX,;t t
16862 s,@GXX@,$GXX,;t t
16863 s,@AWK@,$AWK,;t t
16864 s,@FLEX@,$FLEX,;t t
16865 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16866 s,@LN_S@,$LN_S,;t t
16867 s,@LD@,$LD,;t t
16868 s,@with_gnu_ld@,$with_gnu_ld,;t t
16869 s,@ld_R_works@,$ld_R_works,;t t
16870 s,@RANLIB@,$RANLIB,;t t
16871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16872 s,@LORDER@,$LORDER,;t t
16873 s,@TAR@,$TAR,;t t
16874 s,@STRIP@,$STRIP,;t t
16875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16876 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16877 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16878 s,@YACC@,$YACC,;t t
16879 s,@YFLAGS@,$YFLAGS,;t t
16880 s,@WISH@,$WISH,;t t
16881 s,@PERL@,$PERL,;t t
16882 s,@perl_installsitearch@,$perl_installsitearch,;t t
16883 s,@perl_installman3dir@,$perl_installman3dir,;t t
16884 s,@perl_archlibexp@,$perl_archlibexp,;t t
16885 s,@perl_privlibexp@,$perl_privlibexp,;t t
16886 s,@perl_useshrplib@,$perl_useshrplib,;t t
16887 s,@perl_man3ext@,$perl_man3ext,;t t
16888 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16889 s,@PYTHON@,$PYTHON,;t t
16890 s,@python_version@,$python_version,;t t
16891 s,@python_prefix@,$python_prefix,;t t
16892 s,@python_execprefix@,$python_execprefix,;t t
16893 s,@python_configdir@,$python_configdir,;t t
16894 s,@python_moduledir@,$python_moduledir,;t t
16895 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16896 s,@python_includespec@,$python_includespec,;t t
16897 s,@python_libspec@,$python_libspec,;t t
16898 s,@LIBOBJS@,$LIBOBJS,;t t
16899 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16900 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16901 s,@MSGFMT@,$MSGFMT,;t t
16902 s,@MSGMERGE@,$MSGMERGE,;t t
16903 s,@XGETTEXT@,$XGETTEXT,;t t
16904 s,@localedir@,$localedir,;t t
16905 s,@TCLSH@,$TCLSH,;t t
16906 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16907 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16908 s,@TCL_LIBS@,$TCL_LIBS,;t t
16909 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16910 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16911 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16912 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16913 s,@TK_LIBS@,$TK_LIBS,;t t
16914 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16915 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16916 s,@NSGMLS@,$NSGMLS,;t t
16917 s,@JADE@,$JADE,;t t
16918 s,@have_docbook@,$have_docbook,;t t
16919 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16920 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16921 s,@SGMLSPL@,$SGMLSPL,;t t
16922 s,@vpath_build@,$vpath_build,;t t
16923 CEOF
16924
16925 _ACEOF
16926
16927   cat >>$CONFIG_STATUS <<\_ACEOF
16928   # Split the substitutions into bite-sized pieces for seds with
16929   # small command number limits, like on Digital OSF/1 and HP-UX.
16930   ac_max_sed_lines=48
16931   ac_sed_frag=1 # Number of current file.
16932   ac_beg=1 # First line for current file.
16933   ac_end=$ac_max_sed_lines # Line after last line for current file.
16934   ac_more_lines=:
16935   ac_sed_cmds=
16936   while $ac_more_lines; do
16937     if test $ac_beg -gt 1; then
16938       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16939     else
16940       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16941     fi
16942     if test ! -s $tmp/subs.frag; then
16943       ac_more_lines=false
16944     else
16945       # The purpose of the label and of the branching condition is to
16946       # speed up the sed processing (if there are no `@' at all, there
16947       # is no need to browse any of the substitutions).
16948       # These are the two extra sed commands mentioned above.
16949       (echo ':t
16950   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16951       if test -z "$ac_sed_cmds"; then
16952         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16953       else
16954         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16955       fi
16956       ac_sed_frag=`expr $ac_sed_frag + 1`
16957       ac_beg=$ac_end
16958       ac_end=`expr $ac_end + $ac_max_sed_lines`
16959     fi
16960   done
16961   if test -z "$ac_sed_cmds"; then
16962     ac_sed_cmds=cat
16963   fi
16964 fi # test -n "$CONFIG_FILES"
16965
16966 _ACEOF
16967 cat >>$CONFIG_STATUS <<\_ACEOF
16968 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16969   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16970   case $ac_file in
16971   - | *:- | *:-:* ) # input from stdin
16972         cat >$tmp/stdin
16973         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16974         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16975   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16976         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16977   * )   ac_file_in=$ac_file.in ;;
16978   esac
16979
16980   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16981   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16983          X"$ac_file" : 'X\(//\)[^/]' \| \
16984          X"$ac_file" : 'X\(//\)$' \| \
16985          X"$ac_file" : 'X\(/\)' \| \
16986          .     : '\(.\)' 2>/dev/null ||
16987 echo X"$ac_file" |
16988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16990           /^X\(\/\/\)$/{ s//\1/; q; }
16991           /^X\(\/\).*/{ s//\1/; q; }
16992           s/.*/./; q'`
16993   { case "$ac_dir" in
16994   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16995   *)                      as_incr_dir=.;;
16996 esac
16997 as_dummy="$ac_dir"
16998 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16999   case $as_mkdir_dir in
17000     # Skip DOS drivespec
17001     ?:) as_incr_dir=$as_mkdir_dir ;;
17002     *)
17003       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17004       test -d "$as_incr_dir" ||
17005         mkdir "$as_incr_dir" ||
17006         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17007 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17008    { (exit 1); exit 1; }; }
17009     ;;
17010   esac
17011 done; }
17012
17013   ac_builddir=.
17014
17015 if test "$ac_dir" != .; then
17016   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17017   # A "../" for each directory in $ac_dir_suffix.
17018   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17019 else
17020   ac_dir_suffix= ac_top_builddir=
17021 fi
17022
17023 case $srcdir in
17024   .)  # No --srcdir option.  We are building in place.
17025     ac_srcdir=.
17026     if test -z "$ac_top_builddir"; then
17027        ac_top_srcdir=.
17028     else
17029        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17030     fi ;;
17031   [\\/]* | ?:[\\/]* )  # Absolute path.
17032     ac_srcdir=$srcdir$ac_dir_suffix;
17033     ac_top_srcdir=$srcdir ;;
17034   *) # Relative path.
17035     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17036     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17037 esac
17038 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17039 # absolute.
17040 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17041 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17042 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17043 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17044
17045
17046
17047   if test x"$ac_file" != x-; then
17048     { echo "$as_me:$LINENO: creating $ac_file" >&5
17049 echo "$as_me: creating $ac_file" >&6;}
17050     rm -f "$ac_file"
17051   fi
17052   # Let's still pretend it is `configure' which instantiates (i.e., don't
17053   # use $as_me), people would be surprised to read:
17054   #    /* config.h.  Generated by config.status.  */
17055   if test x"$ac_file" = x-; then
17056     configure_input=
17057   else
17058     configure_input="$ac_file.  "
17059   fi
17060   configure_input=$configure_input"Generated from `echo $ac_file_in |
17061                                      sed 's,.*/,,'` by configure."
17062
17063   # First look for the input files in the build tree, otherwise in the
17064   # src tree.
17065   ac_file_inputs=`IFS=:
17066     for f in $ac_file_in; do
17067       case $f in
17068       -) echo $tmp/stdin ;;
17069       [\\/$]*)
17070          # Absolute (can't be DOS-style, as IFS=:)
17071          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17072 echo "$as_me: error: cannot find input file: $f" >&2;}
17073    { (exit 1); exit 1; }; }
17074          echo $f;;
17075       *) # Relative
17076          if test -f "$f"; then
17077            # Build tree
17078            echo $f
17079          elif test -f "$srcdir/$f"; then
17080            # Source tree
17081            echo $srcdir/$f
17082          else
17083            # /dev/null tree
17084            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17085 echo "$as_me: error: cannot find input file: $f" >&2;}
17086    { (exit 1); exit 1; }; }
17087          fi;;
17088       esac
17089     done` || { (exit 1); exit 1; }
17090 _ACEOF
17091 cat >>$CONFIG_STATUS <<_ACEOF
17092   sed "$ac_vpsub
17093 $extrasub
17094 _ACEOF
17095 cat >>$CONFIG_STATUS <<\_ACEOF
17096 :t
17097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17098 s,@configure_input@,$configure_input,;t t
17099 s,@srcdir@,$ac_srcdir,;t t
17100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17101 s,@top_srcdir@,$ac_top_srcdir,;t t
17102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17103 s,@builddir@,$ac_builddir,;t t
17104 s,@abs_builddir@,$ac_abs_builddir,;t t
17105 s,@top_builddir@,$ac_top_builddir,;t t
17106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17108   rm -f $tmp/stdin
17109   if test x"$ac_file" != x-; then
17110     mv $tmp/out $ac_file
17111   else
17112     cat $tmp/out
17113     rm -f $tmp/out
17114   fi
17115
17116 done
17117 _ACEOF
17118 cat >>$CONFIG_STATUS <<\_ACEOF
17119
17120 #
17121 # CONFIG_HEADER section.
17122 #
17123
17124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17126 #
17127 # ac_d sets the value in "#define NAME VALUE" lines.
17128 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17129 ac_dB='[        ].*$,\1#\2'
17130 ac_dC=' '
17131 ac_dD=',;t'
17132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17133 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17134 ac_uB='$,\1#\2define\3'
17135 ac_uC=' '
17136 ac_uD=',;t'
17137
17138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17139   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17140   case $ac_file in
17141   - | *:- | *:-:* ) # input from stdin
17142         cat >$tmp/stdin
17143         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17144         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17145   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17146         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17147   * )   ac_file_in=$ac_file.in ;;
17148   esac
17149
17150   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17151 echo "$as_me: creating $ac_file" >&6;}
17152
17153   # First look for the input files in the build tree, otherwise in the
17154   # src tree.
17155   ac_file_inputs=`IFS=:
17156     for f in $ac_file_in; do
17157       case $f in
17158       -) echo $tmp/stdin ;;
17159       [\\/$]*)
17160          # Absolute (can't be DOS-style, as IFS=:)
17161          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17162 echo "$as_me: error: cannot find input file: $f" >&2;}
17163    { (exit 1); exit 1; }; }
17164          echo $f;;
17165       *) # Relative
17166          if test -f "$f"; then
17167            # Build tree
17168            echo $f
17169          elif test -f "$srcdir/$f"; then
17170            # Source tree
17171            echo $srcdir/$f
17172          else
17173            # /dev/null tree
17174            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17175 echo "$as_me: error: cannot find input file: $f" >&2;}
17176    { (exit 1); exit 1; }; }
17177          fi;;
17178       esac
17179     done` || { (exit 1); exit 1; }
17180   # Remove the trailing spaces.
17181   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17182
17183 _ACEOF
17184
17185 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17186 # `conftest.undefs', that substitutes the proper values into
17187 # config.h.in to produce config.h.  The first handles `#define'
17188 # templates, and the second `#undef' templates.
17189 # And first: Protect against being on the right side of a sed subst in
17190 # config.status.  Protect against being in an unquoted here document
17191 # in config.status.
17192 rm -f conftest.defines conftest.undefs
17193 # Using a here document instead of a string reduces the quoting nightmare.
17194 # Putting comments in sed scripts is not portable.
17195 #
17196 # `end' is used to avoid that the second main sed command (meant for
17197 # 0-ary CPP macros) applies to n-ary macro definitions.
17198 # See the Autoconf documentation for `clear'.
17199 cat >confdef2sed.sed <<\_ACEOF
17200 s/[\\&,]/\\&/g
17201 s,[\\$`],\\&,g
17202 t clear
17203 : clear
17204 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17205 t end
17206 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17207 : end
17208 _ACEOF
17209 # If some macros were called several times there might be several times
17210 # the same #defines, which is useless.  Nevertheless, we may not want to
17211 # sort them, since we want the *last* AC-DEFINE to be honored.
17212 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17213 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17214 rm -f confdef2sed.sed
17215
17216 # This sed command replaces #undef with comments.  This is necessary, for
17217 # example, in the case of _POSIX_SOURCE, which is predefined and required
17218 # on some systems where configure will not decide to define it.
17219 cat >>conftest.undefs <<\_ACEOF
17220 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17221 _ACEOF
17222
17223 # Break up conftest.defines because some shells have a limit on the size
17224 # of here documents, and old seds have small limits too (100 cmds).
17225 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17226 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17227 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17228 echo '  :' >>$CONFIG_STATUS
17229 rm -f conftest.tail
17230 while grep . conftest.defines >/dev/null
17231 do
17232   # Write a limited-size here document to $tmp/defines.sed.
17233   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17234   # Speed up: don't consider the non `#define' lines.
17235   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17236   # Work around the forget-to-reset-the-flag bug.
17237   echo 't clr' >>$CONFIG_STATUS
17238   echo ': clr' >>$CONFIG_STATUS
17239   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17240   echo 'CEOF
17241   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17242   rm -f $tmp/in
17243   mv $tmp/out $tmp/in
17244 ' >>$CONFIG_STATUS
17245   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17246   rm -f conftest.defines
17247   mv conftest.tail conftest.defines
17248 done
17249 rm -f conftest.defines
17250 echo '  fi # egrep' >>$CONFIG_STATUS
17251 echo >>$CONFIG_STATUS
17252
17253 # Break up conftest.undefs because some shells have a limit on the size
17254 # of here documents, and old seds have small limits too (100 cmds).
17255 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17256 rm -f conftest.tail
17257 while grep . conftest.undefs >/dev/null
17258 do
17259   # Write a limited-size here document to $tmp/undefs.sed.
17260   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17261   # Speed up: don't consider the non `#undef'
17262   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17263   # Work around the forget-to-reset-the-flag bug.
17264   echo 't clr' >>$CONFIG_STATUS
17265   echo ': clr' >>$CONFIG_STATUS
17266   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17267   echo 'CEOF
17268   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17269   rm -f $tmp/in
17270   mv $tmp/out $tmp/in
17271 ' >>$CONFIG_STATUS
17272   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17273   rm -f conftest.undefs
17274   mv conftest.tail conftest.undefs
17275 done
17276 rm -f conftest.undefs
17277
17278 cat >>$CONFIG_STATUS <<\_ACEOF
17279   # Let's still pretend it is `configure' which instantiates (i.e., don't
17280   # use $as_me), people would be surprised to read:
17281   #    /* config.h.  Generated by config.status.  */
17282   if test x"$ac_file" = x-; then
17283     echo "/* Generated by configure.  */" >$tmp/config.h
17284   else
17285     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17286   fi
17287   cat $tmp/in >>$tmp/config.h
17288   rm -f $tmp/in
17289   if test x"$ac_file" != x-; then
17290     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17291       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17292 echo "$as_me: $ac_file is unchanged" >&6;}
17293     else
17294       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17295 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17296          X"$ac_file" : 'X\(//\)[^/]' \| \
17297          X"$ac_file" : 'X\(//\)$' \| \
17298          X"$ac_file" : 'X\(/\)' \| \
17299          .     : '\(.\)' 2>/dev/null ||
17300 echo X"$ac_file" |
17301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17303           /^X\(\/\/\)$/{ s//\1/; q; }
17304           /^X\(\/\).*/{ s//\1/; q; }
17305           s/.*/./; q'`
17306       { case "$ac_dir" in
17307   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17308   *)                      as_incr_dir=.;;
17309 esac
17310 as_dummy="$ac_dir"
17311 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17312   case $as_mkdir_dir in
17313     # Skip DOS drivespec
17314     ?:) as_incr_dir=$as_mkdir_dir ;;
17315     *)
17316       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17317       test -d "$as_incr_dir" ||
17318         mkdir "$as_incr_dir" ||
17319         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17320 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17321    { (exit 1); exit 1; }; }
17322     ;;
17323   esac
17324 done; }
17325
17326       rm -f $ac_file
17327       mv $tmp/config.h $ac_file
17328     fi
17329   else
17330     cat $tmp/config.h
17331     rm -f $tmp/config.h
17332   fi
17333   # Run the commands associated with the file.
17334   case $ac_file in
17335     src/include/pg_config.h )
17336 # Update timestamp for pg_config.h (see Makefile.global)
17337 echo >src/include/stamp-h
17338  ;;
17339   esac
17340 done
17341 _ACEOF
17342 cat >>$CONFIG_STATUS <<\_ACEOF
17343
17344 #
17345 # CONFIG_LINKS section.
17346 #
17347
17348 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17349   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17350   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17351
17352   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17353 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17354
17355   if test ! -r $srcdir/$ac_source; then
17356     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17357 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17358    { (exit 1); exit 1; }; }
17359   fi
17360   rm -f $ac_dest
17361
17362   # Make relative symlinks.
17363   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17364 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17365          X"$ac_dest" : 'X\(//\)[^/]' \| \
17366          X"$ac_dest" : 'X\(//\)$' \| \
17367          X"$ac_dest" : 'X\(/\)' \| \
17368          .     : '\(.\)' 2>/dev/null ||
17369 echo X"$ac_dest" |
17370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17371           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17372           /^X\(\/\/\)$/{ s//\1/; q; }
17373           /^X\(\/\).*/{ s//\1/; q; }
17374           s/.*/./; q'`
17375   { case "$ac_dest_dir" in
17376   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17377   *)                      as_incr_dir=.;;
17378 esac
17379 as_dummy="$ac_dest_dir"
17380 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17381   case $as_mkdir_dir in
17382     # Skip DOS drivespec
17383     ?:) as_incr_dir=$as_mkdir_dir ;;
17384     *)
17385       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17386       test -d "$as_incr_dir" ||
17387         mkdir "$as_incr_dir" ||
17388         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17389 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17390    { (exit 1); exit 1; }; }
17391     ;;
17392   esac
17393 done; }
17394
17395   ac_builddir=.
17396
17397 if test "$ac_dest_dir" != .; then
17398   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17399   # A "../" for each directory in $ac_dir_suffix.
17400   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17401 else
17402   ac_dir_suffix= ac_top_builddir=
17403 fi
17404
17405 case $srcdir in
17406   .)  # No --srcdir option.  We are building in place.
17407     ac_srcdir=.
17408     if test -z "$ac_top_builddir"; then
17409        ac_top_srcdir=.
17410     else
17411        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17412     fi ;;
17413   [\\/]* | ?:[\\/]* )  # Absolute path.
17414     ac_srcdir=$srcdir$ac_dir_suffix;
17415     ac_top_srcdir=$srcdir ;;
17416   *) # Relative path.
17417     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17418     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17419 esac
17420 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17421 # absolute.
17422 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17423 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17424 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17425 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17426
17427
17428   case $srcdir in
17429   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17430       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17431   esac
17432
17433   # Make a symlink if possible; otherwise try a hard link.
17434   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17435     ln $srcdir/$ac_source $ac_dest ||
17436     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17437 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17438    { (exit 1); exit 1; }; }
17439 done
17440 _ACEOF
17441
17442 cat >>$CONFIG_STATUS <<\_ACEOF
17443
17444 { (exit 0); exit 0; }
17445 _ACEOF
17446 chmod +x $CONFIG_STATUS
17447 ac_clean_files=$ac_clean_files_save
17448
17449
17450 # configure is writing to config.log, and then calls config.status.
17451 # config.status does its own redirection, appending to config.log.
17452 # Unfortunately, on DOS this fails, as config.log is still kept open
17453 # by configure, so config.status won't be able to write to it; its
17454 # output is simply discarded.  So we exec the FD to /dev/null,
17455 # effectively closing config.log, so it can be properly (re)opened and
17456 # appended to by config.status.  When coming back to configure, we
17457 # need to make the FD available again.
17458 if test "$no_create" != yes; then
17459   ac_cs_success=:
17460   exec 5>/dev/null
17461   $SHELL $CONFIG_STATUS || ac_cs_success=false
17462   exec 5>>config.log
17463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17464   # would make configure fail if this is the last instruction.
17465   $ac_cs_success || { (exit 1); exit 1; }
17466 fi
17467