]> granicus.if.org Git - postgresql/blob - configure
Enable large file support.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.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   --disable-largefile     omit support for large files
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866
867   --with-includes=DIRS    look for additional header files in DIRS
868   --with-libraries=DIRS   look for additional libraries in DIRS
869   --with-libs=DIRS        alternative spelling of --with-libraries
870   --with-pgport=PORTNUM   change default port number 5432
871   --with-maxbackends=N    set default maximum number of connections 32
872   --with-tcl              build Tcl and Tk interfaces
873   --without-tk            do not build Tk interfaces if Tcl is enabled
874   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR
875   --with-tkconfig=DIR     tkConfig.sh is in DIR
876   --with-perl             build Perl interface and PL/Perl
877   --with-python           build Python interface module
878   --with-java             build JDBC interface and Java tools
879   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]
880   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]
881   --with-krb-srvnam=NAME  name of the service principal in Kerberos postgres
882   --with-pam              build with PAM support
883   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]
884   --without-readline      do not use Readline
885   --without-zlib          do not use Zlib
886   --with-unixodbc         build ODBC driver for unixODBC
887   --with-iodbc            build ODBC driver for iODBC
888   --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
889   --with-CXX              build C++ modules (libpq++)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891
892 Some influential environment variables:
893   CC          C compiler command
894   CFLAGS      C compiler flags
895   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
896               nonstandard directory <lib dir>
897   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
898               headers in a nonstandard directory <include dir>
899   CPP         C preprocessor
900   CXX         C++ compiler command
901   CXXFLAGS    C++ compiler flags
902   CXXCPP      C++ preprocessor
903   DOCBOOKSTYLE
904               location of DocBook stylesheets
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 Report bugs to <pgsql-bugs@postgresql.org>.
910 _ACEOF
911 fi
912
913 if test "$ac_init_help" = "recursive"; then
914   # If there are subdirs, report their specific --help.
915   ac_popdir=`pwd`
916   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917     test -d $ac_dir || continue
918     ac_builddir=.
919
920 if test "$ac_dir" != .; then
921   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922   # A "../" for each directory in $ac_dir_suffix.
923   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 else
925   ac_dir_suffix= ac_top_builddir=
926 fi
927
928 case $srcdir in
929   .)  # No --srcdir option.  We are building in place.
930     ac_srcdir=.
931     if test -z "$ac_top_builddir"; then
932        ac_top_srcdir=.
933     else
934        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935     fi ;;
936   [\\/]* | ?:[\\/]* )  # Absolute path.
937     ac_srcdir=$srcdir$ac_dir_suffix;
938     ac_top_srcdir=$srcdir ;;
939   *) # Relative path.
940     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941     ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 esac
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 # absolute.
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949
950     cd $ac_dir
951     # Check for guested configure; otherwise get Cygnus style configure.
952     if test -f $ac_srcdir/configure.gnu; then
953       echo
954       $SHELL $ac_srcdir/configure.gnu  --help=recursive
955     elif test -f $ac_srcdir/configure; then
956       echo
957       $SHELL $ac_srcdir/configure  --help=recursive
958     elif test -f $ac_srcdir/configure.ac ||
959            test -f $ac_srcdir/configure.in; then
960       echo
961       $ac_configure --help
962     else
963       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964     fi
965     cd $ac_popdir
966   done
967 fi
968
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971   cat <<\_ACEOF
972 PostgreSQL configure 7.3devel
973 generated by GNU Autoconf 2.53
974
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979
980 Copyright 2002 PostgreSQL Global Development Group
981 _ACEOF
982   exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by PostgreSQL $as_me 7.3devel, which was
990 generated by GNU Autoconf 2.53.  Invocation command line was
991
992   $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1009
1010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023   IFS=$as_save_IFS
1024   test -z "$as_dir" && as_dir=.
1025   echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Also quote any args containing shell meta-characters.
1043 ac_configure_args=
1044 ac_sep=
1045 for ac_arg
1046 do
1047   case $ac_arg in
1048   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049   | --no-cr | --no-c | -n ) continue ;;
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     continue ;;
1053   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055   esac
1056   case " $ac_configure_args " in
1057     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1058     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059        ac_sep=" " ;;
1060   esac
1061   # Get rid of the leading space.
1062 done
1063
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log.  We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070   # Save into config.log some information that might help in debugging.
1071   {
1072     echo
1073     cat <<\_ASBOX
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1077 _ASBOX
1078     echo
1079     # The following way of writing the cache mishandles newlines in values,
1080 {
1081   (set) 2>&1 |
1082     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1083     *ac_space=\ *)
1084       sed -n \
1085         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1087       ;;
1088     *)
1089       sed -n \
1090         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1091       ;;
1092     esac;
1093 }
1094     echo
1095     if test -s confdefs.h; then
1096       cat <<\_ASBOX
1097 ## ----------- ##
1098 ## confdefs.h. ##
1099 ## ----------- ##
1100 _ASBOX
1101       echo
1102       sed "/^$/d" confdefs.h
1103       echo
1104     fi
1105     test "$ac_signal" != 0 &&
1106       echo "$as_me: caught signal $ac_signal"
1107     echo "$as_me: exit $exit_status"
1108   } >&5
1109   rm -f core core.* *.core &&
1110   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1111     exit $exit_status
1112      ' 0
1113 for ac_signal in 1 2 13 15; do
1114   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115 done
1116 ac_signal=0
1117
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1121 echo >confdefs.h
1122
1123 # Predefined preprocessor variables.
1124
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1127 _ACEOF
1128
1129
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132 _ACEOF
1133
1134
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1137 _ACEOF
1138
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147 _ACEOF
1148
1149
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153   if test "x$prefix" != xNONE; then
1154     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1155   else
1156     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1157   fi
1158 fi
1159 for ac_site_file in $CONFIG_SITE; do
1160   if test -r "$ac_site_file"; then
1161     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163     sed 's/^/| /' "$ac_site_file" >&5
1164     . "$ac_site_file"
1165   fi
1166 done
1167
1168 if test -r "$cache_file"; then
1169   # Some versions of bash will fail to source /dev/null (special
1170   # files actually), so we avoid doing that.
1171   if test -f "$cache_file"; then
1172     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1174     case $cache_file in
1175       [\\/]* | ?:[\\/]* ) . $cache_file;;
1176       *)                      . ./$cache_file;;
1177     esac
1178   fi
1179 else
1180   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1182   >$cache_file
1183 fi
1184
1185 # Check that the precious variables saved in the cache have kept the same
1186 # value.
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191   eval ac_new_set=\$ac_env_${ac_var}_set
1192   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193   eval ac_new_val="\$ac_env_${ac_var}_value"
1194   case $ac_old_set,$ac_new_set in
1195     set,)
1196       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198       ac_cache_corrupted=: ;;
1199     ,set)
1200       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202       ac_cache_corrupted=: ;;
1203     ,);;
1204     *)
1205       if test "x$ac_old_val" != "x$ac_new_val"; then
1206         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1209 echo "$as_me:   former value:  $ac_old_val" >&2;}
1210         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1211 echo "$as_me:   current value: $ac_new_val" >&2;}
1212         ac_cache_corrupted=:
1213       fi;;
1214   esac
1215   # Pass precious variables to config.status.
1216   if test "$ac_new_set" = set; then
1217     case $ac_new_val in
1218     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220     *) ac_arg=$ac_var=$ac_new_val ;;
1221     esac
1222     case " $ac_configure_args " in
1223       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1224       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1225     esac
1226   fi
1227 done
1228 if $ac_cache_corrupted; then
1229   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233    { (exit 1); exit 1; }; }
1234 fi
1235
1236 ac_ext=c
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1274 ac_aux_dir=
1275 for ac_dir in config $srcdir/config; do
1276   if test -f $ac_dir/install-sh; then
1277     ac_aux_dir=$ac_dir
1278     ac_install_sh="$ac_aux_dir/install-sh -c"
1279     break
1280   elif test -f $ac_dir/install.sh; then
1281     ac_aux_dir=$ac_dir
1282     ac_install_sh="$ac_aux_dir/install.sh -c"
1283     break
1284   elif test -f $ac_dir/shtool; then
1285     ac_aux_dir=$ac_dir
1286     ac_install_sh="$ac_aux_dir/shtool install -c"
1287     break
1288   fi
1289 done
1290 if test -z "$ac_aux_dir"; then
1291   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298
1299
1300 configure_args=$ac_configure_args
1301
1302
1303
1304 cat >>confdefs.h <<_ACEOF
1305 #define PG_VERSION "$PACKAGE_VERSION"
1306 _ACEOF
1307
1308
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313    { (exit 1); exit 1; }; }
1314
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318   echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320   ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322   ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326    { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330    { (exit 1); exit 1; }; }
1331
1332 fi
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1335 build=$ac_cv_build
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348   ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352    { (exit 1); exit 1; }; }
1353
1354 fi
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1357 host=$ac_cv_host
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363
1364 template=
1365 echo "$as_me:$LINENO: checking which template to use" >&5
1366 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1367
1368
1369
1370
1371 # Check whether --with-template or --without-template was given.
1372 if test "${with_template+set}" = set; then
1373   withval="$with_template"
1374
1375   case $withval in
1376     yes)
1377       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1378 echo "$as_me: error: argument required for --with-template option" >&2;}
1379    { (exit 1); exit 1; }; }
1380       ;;
1381     no)
1382       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1383 echo "$as_me: error: argument required for --with-template option" >&2;}
1384    { (exit 1); exit 1; }; }
1385       ;;
1386     *)
1387
1388   case $withval in
1389     list)   echo; ls "$srcdir/src/template"; exit;;
1390     *)      if test -f "$srcdir/src/template/$with_template" ; then
1391               template=$withval
1392             else
1393               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1394 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1395    { (exit 1); exit 1; }; }
1396             fi;;
1397   esac
1398
1399       ;;
1400   esac
1401
1402 else
1403
1404   # --with-template not given
1405
1406 case $host_os in
1407      aix*) template=aix ;;
1408     beos*) template=beos ;;
1409     bsdi*) template=bsdi ;;
1410   cygwin*) template=win ;;
1411   darwin*) template=darwin ;;
1412     dgux*) template=dgux ;;
1413  freebsd*) template=freebsd ;;
1414     hpux*) template=hpux ;;
1415     irix*) template=irix5 ;;
1416    linux*) template=linux ;;
1417   netbsd*) template=netbsd ;;
1418 nextstep*) template=nextstep ;;
1419  openbsd*) template=openbsd ;;
1420      osf*) template=osf ;;
1421      qnx*) template=qnx4 ;;
1422      sco*) template=sco ;;
1423  solaris*) template=solaris ;;
1424    sunos*) template=sunos4 ;;
1425  sysv4.2*)
1426         case $host_vendor in
1427           univel) template=univel ;;
1428         esac ;;
1429    sysv4*) template=svr4 ;;
1430    sysv5*) template=unixware ;;
1431   ultrix*) template=ultrix4 ;;
1432 esac
1433
1434   if test x"$template" = x"" ; then
1435     { { echo "$as_me:$LINENO: error:
1436 *******************************************************************
1437 PostgreSQL has apparently not been ported to your platform yet.
1438 To try a manual configuration, look into the src/template directory
1439 for a similar platform and use the '--with-template=' option.
1440
1441 Please also contact <pgsql-ports@postgresql.org> to see about
1442 rectifying this.  Include the above 'checking host system type...'
1443 line.
1444 *******************************************************************
1445 " >&5
1446 echo "$as_me: error:
1447 *******************************************************************
1448 PostgreSQL has apparently not been ported to your platform yet.
1449 To try a manual configuration, look into the src/template directory
1450 for a similar platform and use the '--with-template=' option.
1451
1452 Please also contact <pgsql-ports@postgresql.org> to see about
1453 rectifying this.  Include the above 'checking host system type...'
1454 line.
1455 *******************************************************************
1456 " >&2;}
1457    { (exit 1); exit 1; }; }
1458   fi
1459
1460
1461 fi;
1462
1463
1464 echo "$as_me:$LINENO: result: $template" >&5
1465 echo "${ECHO_T}$template" >&6
1466
1467 PORTNAME=$template
1468
1469
1470 # Pick right test-and-set (TAS) code.  Most platforms have inline
1471 # assembler code in src/include/storage/s_lock.h, so we just use
1472 # a dummy file here.
1473 case $host in
1474   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
1475   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1476   i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
1477   *)                need_tas=no;  tas_file=dummy.s ;;
1478 esac
1479 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1480
1481
1482 if test "$need_tas" = yes ; then
1483   TAS=tas.o
1484 fi
1485
1486
1487
1488
1489 ##
1490 ## Command line options
1491 ##
1492
1493
1494 #
1495 # Add non-standard directories to the include path
1496 #
1497
1498
1499
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502   withval="$with_includes"
1503
1504   case $withval in
1505     yes)
1506       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508    { (exit 1); exit 1; }; }
1509       ;;
1510     no)
1511       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513    { (exit 1); exit 1; }; }
1514       ;;
1515     *)
1516
1517       ;;
1518   esac
1519
1520 fi;
1521
1522
1523
1524 #
1525 # Add non-standard directories to the library search path
1526 #
1527
1528
1529
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532   withval="$with_libraries"
1533
1534   case $withval in
1535     yes)
1536       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538    { (exit 1); exit 1; }; }
1539       ;;
1540     no)
1541       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543    { (exit 1); exit 1; }; }
1544       ;;
1545     *)
1546       LIBRARY_DIRS=$withval
1547       ;;
1548   esac
1549
1550 fi;
1551
1552
1553
1554
1555
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558   withval="$with_libs"
1559
1560   case $withval in
1561     yes)
1562       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564    { (exit 1); exit 1; }; }
1565       ;;
1566     no)
1567       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569    { (exit 1); exit 1; }; }
1570       ;;
1571     *)
1572       LIBRARY_DIRS=$withval
1573       ;;
1574   esac
1575
1576 fi;
1577
1578
1579
1580 #
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1582 #
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1585
1586
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589   enableval="$enable_integer_datetimes"
1590
1591   case $enableval in
1592     yes)
1593
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1596 _ACEOF
1597
1598       ;;
1599     no)
1600       :
1601       ;;
1602     *)
1603       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605    { (exit 1); exit 1; }; }
1606       ;;
1607   esac
1608
1609 else
1610   enable_integer_datetimes=no
1611
1612 fi;
1613
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1616
1617
1618 # Character set recode (--enable-recode)
1619 #
1620 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1621 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1622
1623
1624 # Check whether --enable-recode or --disable-recode was given.
1625 if test "${enable_recode+set}" = set; then
1626   enableval="$enable_recode"
1627
1628   case $enableval in
1629     yes)
1630
1631 cat >>confdefs.h <<\_ACEOF
1632 #define CYR_RECODE 1
1633 _ACEOF
1634
1635       ;;
1636     no)
1637       :
1638       ;;
1639     *)
1640       { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1641 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1642    { (exit 1); exit 1; }; }
1643       ;;
1644   esac
1645
1646 else
1647   enable_recode=no
1648
1649 fi;
1650
1651 echo "$as_me:$LINENO: result: $enable_recode" >&5
1652 echo "${ECHO_T}$enable_recode" >&6
1653
1654
1655 #
1656 # Multibyte support
1657 #
1658 MULTIBYTE=SQL_ASCII
1659
1660 cat >>confdefs.h <<\_ACEOF
1661 #define MULTIBYTE 1
1662 _ACEOF
1663
1664
1665
1666 #
1667 # NLS
1668 #
1669 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1670 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1671
1672
1673 # Check whether --enable-nls or --disable-nls was given.
1674 if test "${enable_nls+set}" = set; then
1675   enableval="$enable_nls"
1676
1677   case $enableval in
1678     yes)
1679       :
1680       ;;
1681     no)
1682       :
1683       ;;
1684     *)
1685       enable_nls=yes
1686 WANTED_LANGUAGES=$enableval
1687       ;;
1688   esac
1689
1690 else
1691   enable_nls=no
1692 fi;
1693
1694
1695 if test "$enable_nls" = yes; then
1696
1697 cat >>confdefs.h <<\_ACEOF
1698 #define ENABLE_NLS 1
1699 _ACEOF
1700
1701 fi
1702
1703 echo "$as_me:$LINENO: result: $enable_nls" >&5
1704 echo "${ECHO_T}$enable_nls" >&6
1705
1706
1707
1708 #
1709 # Default port number (--with-pgport), default 5432
1710 #
1711 echo "$as_me:$LINENO: checking for default port number" >&5
1712 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1713
1714
1715
1716 # Check whether --with-pgport or --without-pgport was given.
1717 if test "${with_pgport+set}" = set; then
1718   withval="$with_pgport"
1719
1720   case $withval in
1721     yes)
1722       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1723 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1724    { (exit 1); exit 1; }; }
1725       ;;
1726     no)
1727       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1728 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1729    { (exit 1); exit 1; }; }
1730       ;;
1731     *)
1732       default_port=$withval
1733       ;;
1734   esac
1735
1736 else
1737   default_port=5432
1738 fi;
1739
1740 echo "$as_me:$LINENO: result: $default_port" >&5
1741 echo "${ECHO_T}$default_port" >&6
1742 # Need both of these because some places want an integer and some a string
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define DEF_PGPORT ${default_port}
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define DEF_PGPORT_STR "${default_port}"
1751 _ACEOF
1752
1753
1754
1755 #
1756 # Maximum number of allowed connections (--with-maxbackends), default 32
1757 #
1758 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1759 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1760
1761
1762
1763 # Check whether --with-maxbackends or --without-maxbackends was given.
1764 if test "${with_maxbackends+set}" = set; then
1765   withval="$with_maxbackends"
1766
1767   case $withval in
1768     yes)
1769       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1770 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1771    { (exit 1); exit 1; }; }
1772       ;;
1773     no)
1774       { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1775 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1776    { (exit 1); exit 1; }; }
1777       ;;
1778     *)
1779
1780       ;;
1781   esac
1782
1783 else
1784   with_maxbackends=32
1785 fi;
1786
1787 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1788 echo "${ECHO_T}$with_maxbackends" >&6
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define DEF_MAXBACKENDS $with_maxbackends
1792 _ACEOF
1793
1794
1795
1796 #
1797 # Option to disable shared libraries
1798 #
1799
1800
1801 # Check whether --enable-shared or --disable-shared was given.
1802 if test "${enable_shared+set}" = set; then
1803   enableval="$enable_shared"
1804
1805   case $enableval in
1806     yes)
1807       :
1808       ;;
1809     no)
1810       :
1811       ;;
1812     *)
1813       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1814 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1815    { (exit 1); exit 1; }; }
1816       ;;
1817   esac
1818
1819 else
1820   enable_shared=yes
1821
1822 fi;
1823
1824
1825
1826 #
1827 # '-rpath'-like feature can be disabled
1828 #
1829
1830
1831 # Check whether --enable-rpath or --disable-rpath was given.
1832 if test "${enable_rpath+set}" = set; then
1833   enableval="$enable_rpath"
1834
1835   case $enableval in
1836     yes)
1837       :
1838       ;;
1839     no)
1840       :
1841       ;;
1842     *)
1843       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1844 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1845    { (exit 1); exit 1; }; }
1846       ;;
1847   esac
1848
1849 else
1850   enable_rpath=yes
1851
1852 fi;
1853
1854
1855
1856
1857 #
1858 # --enable-debug adds -g to compiler flags
1859 #
1860
1861
1862 # Check whether --enable-debug or --disable-debug was given.
1863 if test "${enable_debug+set}" = set; then
1864   enableval="$enable_debug"
1865
1866   case $enableval in
1867     yes)
1868       :
1869       ;;
1870     no)
1871       :
1872       ;;
1873     *)
1874       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1875 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1876    { (exit 1); exit 1; }; }
1877       ;;
1878   esac
1879
1880 else
1881   enable_debug=no
1882
1883 fi;
1884
1885
1886
1887 #
1888 # C compiler
1889 #
1890
1891 # For historical reasons you can also use --with-CC to specify the C compiler
1892 # to use, although the standard way to do this is to set the CC environment
1893 # variable.
1894
1895
1896
1897 # Check whether --with-CC or --without-CC was given.
1898 if test "${with_CC+set}" = set; then
1899   withval="$with_CC"
1900
1901   case $withval in
1902     yes)
1903       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1904 echo "$as_me: error: argument required for --with-CC option" >&2;}
1905    { (exit 1); exit 1; }; }
1906       ;;
1907     no)
1908       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1909 echo "$as_me: error: argument required for --with-CC option" >&2;}
1910    { (exit 1); exit 1; }; }
1911       ;;
1912     *)
1913       CC=$with_CC
1914       ;;
1915   esac
1916
1917 fi;
1918
1919
1920 # Set here so it can be over-ridden in the template file
1921 GCC_CXXFLAGS="-O2"
1922 VENDOR_CXXFLAGS=""
1923
1924 case $template in
1925   aix) pgac_cc_list="gcc xlc";;
1926  irix) pgac_cc_list="cc";; # no gcc
1927     *) pgac_cc_list="gcc cc";;
1928 esac
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936   for ac_prog in $pgac_cc_list
1937   do
1938     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$CC"; then
1946   ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961
1962 fi
1963 fi
1964 CC=$ac_cv_prog_CC
1965 if test -n "$CC"; then
1966   echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1968 else
1969   echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1971 fi
1972
1973     test -n "$CC" && break
1974   done
1975 fi
1976 if test -z "$CC"; then
1977   ac_ct_CC=$CC
1978   for ac_prog in $pgac_cc_list
1979 do
1980   # Extract the first word of "$ac_prog", so it can be a program name with args.
1981 set dummy $ac_prog; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_CC"; then
1988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_CC="$ac_prog"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004 fi
2005 fi
2006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2010 else
2011   echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015   test -n "$ac_ct_CC" && break
2016 done
2017
2018   CC=$ac_ct_CC
2019 fi
2020
2021
2022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 # Provide some information about the compiler.
2027 echo "$as_me:$LINENO:" \
2028      "checking for C compiler version" >&5
2029 ac_compiler=`set X $ac_compile; echo $2`
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2031   (eval $ac_compiler --version </dev/null >&5) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2036   (eval $ac_compiler -v </dev/null >&5) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); }
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2041   (eval $ac_compiler -V </dev/null >&5) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }
2045
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2049
2050 #ifdef F77_DUMMY_MAIN
2051 #  ifdef __cplusplus
2052      extern "C"
2053 #  endif
2054    int F77_DUMMY_MAIN() { return 1; }
2055 #endif
2056 int
2057 main ()
2058 {
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 ac_clean_files_save=$ac_clean_files
2065 ac_clean_files="$ac_clean_files a.out a.exe"
2066 # Try to create an executable without -o first, disregard a.out.
2067 # It will help us diagnose broken compilers, and finding out an intuition
2068 # of exeext.
2069 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2073   (eval $ac_link_default) 2>&5
2074   ac_status=$?
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); }; then
2077   # Find the output, starting from the most likely.  This scheme is
2078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2079 # resort.
2080
2081 # Be careful to initialize this variable, since it used to be cached.
2082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2083 ac_cv_exeext=
2084 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2085                 ls a.out conftest 2>/dev/null;
2086                 ls a.* conftest.* 2>/dev/null`; do
2087   case $ac_file in
2088     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2089     a.out ) # We found the default executable, but exeext='' is most
2090             # certainly right.
2091             break;;
2092     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2094           export ac_cv_exeext
2095           break;;
2096     * ) break;;
2097   esac
2098 done
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2103 echo "$as_me: error: C compiler cannot create executables" >&2;}
2104    { (exit 77); exit 77; }; }
2105 fi
2106
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2110
2111 # Check the compiler produces executables we can run.  If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118   if { ac_try='./$ac_file'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124     cross_compiling=no
2125   else
2126     if test "$cross_compiling" = maybe; then
2127         cross_compiling=yes
2128     else
2129         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'." >&2;}
2133    { (exit 1); exit 1; }; }
2134     fi
2135   fi
2136 fi
2137 echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6
2139
2140 rm -f a.out a.exe conftest$ac_cv_exeext
2141 ac_clean_files=$ac_clean_files_save
2142 # Check the compiler produces executables we can run.  If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147 echo "${ECHO_T}$cross_compiling" >&6
2148
2149 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152   (eval $ac_link) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2158 # work properly (i.e., refer to `conftest.exe'), while it won't with
2159 # `rm'.
2160 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2161   case $ac_file in
2162     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164           export ac_cv_exeext
2165           break;;
2166     * ) break;;
2167   esac
2168 done
2169 else
2170   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2178
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2181 ac_exeext=$EXEEXT
2182 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2184 if test "${ac_cv_objext+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 #include "confdefs.h"
2190
2191 #ifdef F77_DUMMY_MAIN
2192 #  ifdef __cplusplus
2193      extern "C"
2194 #  endif
2195    int F77_DUMMY_MAIN() { return 1; }
2196 #endif
2197 int
2198 main ()
2199 {
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.o conftest.obj
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207   (eval $ac_compile) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; then
2211   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2214     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2215        break;;
2216   esac
2217 done
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225
2226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2227 fi
2228 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2229 echo "${ECHO_T}$ac_cv_objext" >&6
2230 OBJEXT=$ac_cv_objext
2231 ac_objext=$OBJEXT
2232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2240
2241 #ifdef F77_DUMMY_MAIN
2242 #  ifdef __cplusplus
2243      extern "C"
2244 #  endif
2245    int F77_DUMMY_MAIN() { return 1; }
2246 #endif
2247 int
2248 main ()
2249 {
2250 #ifndef __GNUC__
2251        choke me
2252 #endif
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   ac_compiler_gnu=yes
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 ac_compiler_gnu=no
2275 fi
2276 rm -f conftest.$ac_objext conftest.$ac_ext
2277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2278
2279 fi
2280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282 GCC=`test $ac_compiler_gnu = yes && echo yes`
2283 ac_test_CFLAGS=${CFLAGS+set}
2284 ac_save_CFLAGS=$CFLAGS
2285 CFLAGS="-g"
2286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288 if test "${ac_cv_prog_cc_g+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 #include "confdefs.h"
2294
2295 #ifdef F77_DUMMY_MAIN
2296 #  ifdef __cplusplus
2297      extern "C"
2298 #  endif
2299    int F77_DUMMY_MAIN() { return 1; }
2300 #endif
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -s conftest.$ac_objext'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; }; then
2321   ac_cv_prog_cc_g=yes
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 ac_cv_prog_cc_g=no
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331 if test "$ac_test_CFLAGS" = set; then
2332   CFLAGS=$ac_save_CFLAGS
2333 elif test $ac_cv_prog_cc_g = yes; then
2334   if test "$GCC" = yes; then
2335     CFLAGS="-g -O2"
2336   else
2337     CFLAGS="-g"
2338   fi
2339 else
2340   if test "$GCC" = yes; then
2341     CFLAGS="-O2"
2342   else
2343     CFLAGS=
2344   fi
2345 fi
2346 # Some people use a C++ compiler to compile C.  Since we use `exit',
2347 # in C++ we need to declare it.  In case someone uses the same compiler
2348 # for both compiling C and C++ we need to have the C++ compiler decide
2349 # the declaration of exit, since it's the most demanding environment.
2350 cat >conftest.$ac_ext <<_ACEOF
2351 #ifndef __cplusplus
2352   choke me
2353 #endif
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); } &&
2361          { ac_try='test -s conftest.$ac_objext'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; }; then
2367   for ac_declaration in \
2368    ''\
2369    '#include <stdlib.h>' \
2370    'extern "C" void std::exit (int) throw (); using std::exit;' \
2371    'extern "C" void std::exit (int); using std::exit;' \
2372    'extern "C" void exit (int) throw ();' \
2373    'extern "C" void exit (int);' \
2374    'void exit (int);'
2375 do
2376   cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 #include "confdefs.h"
2379 #include <stdlib.h>
2380 $ac_declaration
2381 #ifdef F77_DUMMY_MAIN
2382 #  ifdef __cplusplus
2383      extern "C"
2384 #  endif
2385    int F77_DUMMY_MAIN() { return 1; }
2386 #endif
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   :
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 continue
2412 fi
2413 rm -f conftest.$ac_objext conftest.$ac_ext
2414   cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2417 $ac_declaration
2418 #ifdef F77_DUMMY_MAIN
2419 #  ifdef __cplusplus
2420      extern "C"
2421 #  endif
2422    int F77_DUMMY_MAIN() { return 1; }
2423 #endif
2424 int
2425 main ()
2426 {
2427 exit (42);
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 fi
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 done
2451 rm -f conftest*
2452 if test -n "$ac_declaration"; then
2453   echo '#ifdef __cplusplus' >>confdefs.h
2454   echo $ac_declaration      >>confdefs.h
2455   echo '#endif'             >>confdefs.h
2456 fi
2457
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2461 fi
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468
2469 # Read the template
2470 . "$srcdir/src/template/$template" || exit
2471
2472 if test "$ac_env_CFLAGS_set" = set; then
2473   CFLAGS=$ac_env_CFLAGS_value
2474 fi
2475 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2476   CFLAGS="$CFLAGS -g"
2477 fi
2478 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2479 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2480 # Check if the compiler still works with the template settings
2481 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2482 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2483
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line $LINENO "configure"
2486 #include "confdefs.h"
2487
2488 #ifdef F77_DUMMY_MAIN
2489 #  ifdef __cplusplus
2490      extern "C"
2491 #  endif
2492    int F77_DUMMY_MAIN() { return 1; }
2493 #endif
2494 int
2495 main ()
2496 {
2497 return 0;
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext conftest$ac_exeext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2504   (eval $ac_link) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); } &&
2508          { ac_try='test -s conftest$ac_exeext'
2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510   (eval $ac_try) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   echo "$as_me:$LINENO: result: yes" >&5
2515 echo "${ECHO_T}yes" >&6
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2522 echo "$as_me: error: cannot proceed" >&2;}
2523    { (exit 1); exit 1; }; }
2524 fi
2525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2532 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2533 # On Suns, sometimes $CPP names a directory.
2534 if test -n "$CPP" && test -d "$CPP"; then
2535   CPP=
2536 fi
2537 if test -z "$CPP"; then
2538   if test "${ac_cv_prog_CPP+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541       # Double quotes because CPP needs to be expanded
2542     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2543     do
2544       ac_preproc_ok=false
2545 for ac_c_preproc_warn_flag in '' yes
2546 do
2547   # Use a header file that comes with gcc, so configuring glibc
2548   # with a fresh cross-compiler works.
2549   # On the NeXT, cc -E runs the code through the compiler's parser,
2550   # not just through cpp. "Syntax error" is here to catch this case.
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 #include "confdefs.h"
2554 #include <assert.h>
2555                      Syntax error
2556 _ACEOF
2557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2559   ac_status=$?
2560   egrep -v '^ *\+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } >/dev/null; then
2565   if test -s conftest.err; then
2566     ac_cpp_err=$ac_c_preproc_warn_flag
2567   else
2568     ac_cpp_err=
2569   fi
2570 else
2571   ac_cpp_err=yes
2572 fi
2573 if test -z "$ac_cpp_err"; then
2574   :
2575 else
2576   echo "$as_me: failed program was:" >&5
2577   cat conftest.$ac_ext >&5
2578   # Broken: fails on valid input.
2579 continue
2580 fi
2581 rm -f conftest.err conftest.$ac_ext
2582
2583   # OK, works on sane cases.  Now check whether non-existent headers
2584   # can be detected and how.
2585   cat >conftest.$ac_ext <<_ACEOF
2586 #line $LINENO "configure"
2587 #include "confdefs.h"
2588 #include <ac_nonexistent.h>
2589 _ACEOF
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592   ac_status=$?
2593   egrep -v '^ *\+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } >/dev/null; then
2598   if test -s conftest.err; then
2599     ac_cpp_err=$ac_c_preproc_warn_flag
2600   else
2601     ac_cpp_err=
2602   fi
2603 else
2604   ac_cpp_err=yes
2605 fi
2606 if test -z "$ac_cpp_err"; then
2607   # Broken: success on invalid input.
2608 continue
2609 else
2610   echo "$as_me: failed program was:" >&5
2611   cat conftest.$ac_ext >&5
2612   # Passes both tests.
2613 ac_preproc_ok=:
2614 break
2615 fi
2616 rm -f conftest.err conftest.$ac_ext
2617
2618 done
2619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2620 rm -f conftest.err conftest.$ac_ext
2621 if $ac_preproc_ok; then
2622   break
2623 fi
2624
2625     done
2626     ac_cv_prog_CPP=$CPP
2627
2628 fi
2629   CPP=$ac_cv_prog_CPP
2630 else
2631   ac_cv_prog_CPP=$CPP
2632 fi
2633 echo "$as_me:$LINENO: result: $CPP" >&5
2634 echo "${ECHO_T}$CPP" >&6
2635 ac_preproc_ok=false
2636 for ac_c_preproc_warn_flag in '' yes
2637 do
2638   # Use a header file that comes with gcc, so configuring glibc
2639   # with a fresh cross-compiler works.
2640   # On the NeXT, cc -E runs the code through the compiler's parser,
2641   # not just through cpp. "Syntax error" is here to catch this case.
2642   cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 #include "confdefs.h"
2645 #include <assert.h>
2646                      Syntax error
2647 _ACEOF
2648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650   ac_status=$?
2651   egrep -v '^ *\+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } >/dev/null; then
2656   if test -s conftest.err; then
2657     ac_cpp_err=$ac_c_preproc_warn_flag
2658   else
2659     ac_cpp_err=
2660   fi
2661 else
2662   ac_cpp_err=yes
2663 fi
2664 if test -z "$ac_cpp_err"; then
2665   :
2666 else
2667   echo "$as_me: failed program was:" >&5
2668   cat conftest.$ac_ext >&5
2669   # Broken: fails on valid input.
2670 continue
2671 fi
2672 rm -f conftest.err conftest.$ac_ext
2673
2674   # OK, works on sane cases.  Now check whether non-existent headers
2675   # can be detected and how.
2676   cat >conftest.$ac_ext <<_ACEOF
2677 #line $LINENO "configure"
2678 #include "confdefs.h"
2679 #include <ac_nonexistent.h>
2680 _ACEOF
2681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683   ac_status=$?
2684   egrep -v '^ *\+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } >/dev/null; then
2689   if test -s conftest.err; then
2690     ac_cpp_err=$ac_c_preproc_warn_flag
2691   else
2692     ac_cpp_err=
2693   fi
2694 else
2695   ac_cpp_err=yes
2696 fi
2697 if test -z "$ac_cpp_err"; then
2698   # Broken: success on invalid input.
2699 continue
2700 else
2701   echo "$as_me: failed program was:" >&5
2702   cat conftest.$ac_ext >&5
2703   # Passes both tests.
2704 ac_preproc_ok=:
2705 break
2706 fi
2707 rm -f conftest.err conftest.$ac_ext
2708
2709 done
2710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711 rm -f conftest.err conftest.$ac_ext
2712 if $ac_preproc_ok; then
2713   :
2714 else
2715   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2717    { (exit 1); exit 1; }; }
2718 fi
2719
2720 ac_ext=c
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726
2727
2728 # Create compiler version string
2729 if test x"$GCC" = x"yes" ; then
2730   cc_string="GCC `${CC} --version | sed q`"
2731 else
2732   cc_string=$CC
2733 fi
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2737 _ACEOF
2738
2739
2740
2741 #
2742 # Automatic dependency tracking
2743 #
2744
2745
2746 # Check whether --enable-depend or --disable-depend was given.
2747 if test "${enable_depend+set}" = set; then
2748   enableval="$enable_depend"
2749
2750   case $enableval in
2751     yes)
2752       autodepend=yes
2753       ;;
2754     no)
2755       :
2756       ;;
2757     *)
2758       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2759 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2760    { (exit 1); exit 1; }; }
2761       ;;
2762   esac
2763
2764 else
2765   enable_depend=no
2766
2767 fi;
2768
2769
2770
2771
2772 #
2773 # Enable assert checks
2774 #
2775
2776
2777 # Check whether --enable-cassert or --disable-cassert was given.
2778 if test "${enable_cassert+set}" = set; then
2779   enableval="$enable_cassert"
2780
2781   case $enableval in
2782     yes)
2783
2784 cat >>confdefs.h <<\_ACEOF
2785 #define USE_ASSERT_CHECKING 1
2786 _ACEOF
2787
2788       ;;
2789     no)
2790       :
2791       ;;
2792     *)
2793       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2794 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2795    { (exit 1); exit 1; }; }
2796       ;;
2797   esac
2798
2799 else
2800   enable_cassert=no
2801
2802 fi;
2803
2804
2805
2806 #
2807 # Include directories
2808 #
2809 ac_save_IFS=$IFS
2810 IFS="${IFS}:"
2811 # SRCH_INC comes from the template file
2812 for dir in $with_includes $SRCH_INC; do
2813   if test -d "$dir"; then
2814     INCLUDES="$INCLUDES -I$dir"
2815   else
2816     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2817 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2818   fi
2819 done
2820 IFS=$ac_save_IFS
2821
2822
2823
2824 #
2825 # Library directories
2826 #
2827 ac_save_IFS=$IFS
2828 IFS="${IFS}:"
2829 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2830 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2831   if test -d "$dir"; then
2832     LIBDIRS="$LIBDIRS -L$dir"
2833   else
2834     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2835 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2836   fi
2837 done
2838 IFS=$ac_save_IFS
2839
2840
2841 #
2842 # Tcl/Tk
2843 #
2844 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2845 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2846
2847
2848
2849 # Check whether --with-tcl or --without-tcl was given.
2850 if test "${with_tcl+set}" = set; then
2851   withval="$with_tcl"
2852
2853   case $withval in
2854     yes)
2855       :
2856       ;;
2857     no)
2858       :
2859       ;;
2860     *)
2861       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2862 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2863    { (exit 1); exit 1; }; }
2864       ;;
2865   esac
2866
2867 else
2868   with_tcl=no
2869
2870 fi;
2871
2872 echo "$as_me:$LINENO: result: $with_tcl" >&5
2873 echo "${ECHO_T}$with_tcl" >&6
2874
2875
2876 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2877 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2878 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2879 if test "$with_tcl" = yes; then
2880
2881
2882
2883 # Check whether --with-tk or --without-tk was given.
2884 if test "${with_tk+set}" = set; then
2885   withval="$with_tk"
2886
2887   case $withval in
2888     yes)
2889       :
2890       ;;
2891     no)
2892       :
2893       ;;
2894     *)
2895       { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2896 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2897    { (exit 1); exit 1; }; }
2898       ;;
2899   esac
2900
2901 else
2902   with_tk=yes
2903
2904 fi;
2905
2906 else
2907   with_tk=no
2908 fi
2909 echo "$as_me:$LINENO: result: $with_tk" >&5
2910 echo "${ECHO_T}$with_tk" >&6
2911
2912
2913
2914 # We see if the path to the Tcl/Tk configuration scripts is specified.
2915 # This will override the use of tclsh to find the paths to search.
2916
2917
2918
2919
2920 # Check whether --with-tclconfig or --without-tclconfig was given.
2921 if test "${with_tclconfig+set}" = set; then
2922   withval="$with_tclconfig"
2923
2924   case $withval in
2925     yes)
2926       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2927 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2928    { (exit 1); exit 1; }; }
2929       ;;
2930     no)
2931       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2933    { (exit 1); exit 1; }; }
2934       ;;
2935     *)
2936
2937       ;;
2938   esac
2939
2940 fi;
2941
2942
2943 # We see if the path to the Tk configuration scripts is specified.
2944 # This will override the use of tclsh to find the paths to search.
2945
2946
2947
2948
2949 # Check whether --with-tkconfig or --without-tkconfig was given.
2950 if test "${with_tkconfig+set}" = set; then
2951   withval="$with_tkconfig"
2952
2953   case $withval in
2954     yes)
2955       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2956 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2957    { (exit 1); exit 1; }; }
2958       ;;
2959     no)
2960       { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2961 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2962    { (exit 1); exit 1; }; }
2963       ;;
2964     *)
2965
2966       ;;
2967   esac
2968
2969 fi;
2970
2971
2972 #
2973 # Optionally build Perl modules (Pg.pm and PL/Perl)
2974 #
2975 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2976 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2977
2978
2979
2980 # Check whether --with-perl or --without-perl was given.
2981 if test "${with_perl+set}" = set; then
2982   withval="$with_perl"
2983
2984   case $withval in
2985     yes)
2986       :
2987       ;;
2988     no)
2989       :
2990       ;;
2991     *)
2992       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2993 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2994    { (exit 1); exit 1; }; }
2995       ;;
2996   esac
2997
2998 else
2999   with_perl=no
3000
3001 fi;
3002
3003 echo "$as_me:$LINENO: result: $with_perl" >&5
3004 echo "${ECHO_T}$with_perl" >&6
3005
3006
3007 #
3008 # Optionally build Python interface module
3009 #
3010 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3011 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3012
3013
3014
3015 # Check whether --with-python or --without-python was given.
3016 if test "${with_python+set}" = set; then
3017   withval="$with_python"
3018
3019   case $withval in
3020     yes)
3021       :
3022       ;;
3023     no)
3024       :
3025       ;;
3026     *)
3027       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3028 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3029    { (exit 1); exit 1; }; }
3030       ;;
3031   esac
3032
3033 else
3034   with_python=no
3035
3036 fi;
3037
3038 echo "$as_me:$LINENO: result: $with_python" >&5
3039 echo "${ECHO_T}$with_python" >&6
3040
3041
3042 #
3043 # Optionally build the Java/JDBC tools
3044 #
3045 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3046 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3047
3048
3049
3050 # Check whether --with-java or --without-java was given.
3051 if test "${with_java+set}" = set; then
3052   withval="$with_java"
3053
3054   case $withval in
3055     yes)
3056       echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058
3059   for ac_prog in jakarta-ant ant ant.sh ant.bat
3060 do
3061   # Extract the first word of "$ac_prog", so it can be a program name with args.
3062 set dummy $ac_prog; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_path_ANT+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   case $ANT in
3069   [\\/]* | ?:[\\/]*)
3070   ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3071   ;;
3072   *)
3073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078   for ac_exec_ext in '' $ac_executable_extensions; do
3079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080     ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085 done
3086
3087   ;;
3088 esac
3089 fi
3090 ANT=$ac_cv_path_ANT
3091
3092 if test -n "$ANT"; then
3093   echo "$as_me:$LINENO: result: $ANT" >&5
3094 echo "${ECHO_T}$ANT" >&6
3095 else
3096   echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3098 fi
3099
3100   test -n "$ANT" && break
3101 done
3102
3103
3104   echo "$as_me:$LINENO: checking whether $ANT works" >&5
3105 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3106 if test "${pgac_cv_prog_ant_works+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109
3110     cat > conftest.java << EOF
3111 public class conftest {
3112     int testmethod(int a, int b) {
3113         return a + b;
3114     }
3115 }
3116 EOF
3117
3118     cat > conftest.xml << EOF
3119 <project name="conftest" default="conftest">
3120  <target name="conftest">
3121   <javac srcdir="." includes="conftest.java">
3122   </javac>
3123  </target>
3124 </project>
3125 EOF
3126
3127     pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3128     { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3129   (eval $pgac_cmd) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }
3133     pgac_save_status=$?
3134     if test $? = 0 && test -f ./conftest.class ; then
3135       pgac_cv_prog_ant_works=yes
3136     else
3137       echo "configure: failed java program was:" >&5
3138       cat conftest.java >&5
3139       echo "configure: failed build file was:" >&5
3140       cat conftest.xml >&5
3141       pgac_cv_prog_ant_works=no
3142     fi
3143
3144     rm -f conftest* core core.* *.core
3145
3146 fi
3147 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3148 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3149
3150   if test "$pgac_cv_prog_ant_works" != yes; then
3151     { { echo "$as_me:$LINENO: error: ant does not work" >&5
3152 echo "$as_me: error: ant does not work" >&2;}
3153    { (exit 1); exit 1; }; }
3154   fi
3155
3156
3157 if test -z "$ANT"; then
3158   { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3159 echo "$as_me: error: Ant is required to build Java components" >&2;}
3160    { (exit 1); exit 1; }; }
3161 fi
3162       ;;
3163     no)
3164       echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3166       ;;
3167     *)
3168       { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3169 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3170    { (exit 1); exit 1; }; }
3171       ;;
3172   esac
3173
3174 else
3175   with_java=no
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 fi;
3179
3180
3181
3182
3183 #
3184 # Kerberos 4
3185 #
3186 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3187 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3188
3189
3190
3191 # Check whether --with-krb4 or --without-krb4 was given.
3192 if test "${with_krb4+set}" = set; then
3193   withval="$with_krb4"
3194
3195   case $withval in
3196     yes)
3197       krb4_prefix=/usr/athena
3198       ;;
3199     no)
3200       :
3201       ;;
3202     *)
3203       with_krb4=yes
3204 krb4_prefix=$withval
3205       ;;
3206   esac
3207
3208 else
3209   with_krb4=no
3210 fi;
3211
3212
3213 if test "$with_krb4" = yes; then
3214
3215   echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6
3217
3218 cat >>confdefs.h <<\_ACEOF
3219 #define KRB4 1
3220 _ACEOF
3221
3222
3223   if test -d "$krb4_prefix/include"; then
3224     INCLUDES="$INCLUDES -I$krb4_prefix/include"
3225   fi
3226   if test -d "$krb4_prefix/lib"; then
3227     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3228   fi
3229
3230   krb_srvtab="/etc/srvtab"
3231
3232 else
3233   echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 fi
3236
3237
3238
3239
3240
3241 #
3242 # Kerberos 5
3243 #
3244 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3245 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3246
3247
3248
3249 # Check whether --with-krb5 or --without-krb5 was given.
3250 if test "${with_krb5+set}" = set; then
3251   withval="$with_krb5"
3252
3253   case $withval in
3254     yes)
3255       krb5_prefix=/usr/athena
3256       ;;
3257     no)
3258       :
3259       ;;
3260     *)
3261       with_krb5=yes
3262 krb5_prefix=$withval
3263       ;;
3264   esac
3265
3266 else
3267   with_krb5=no
3268 fi;
3269
3270
3271 if test "$with_krb5" = yes; then
3272
3273   echo "$as_me:$LINENO: result: yes" >&5
3274 echo "${ECHO_T}yes" >&6
3275
3276 cat >>confdefs.h <<\_ACEOF
3277 #define KRB5 1
3278 _ACEOF
3279
3280
3281   if test -d "$krb5_prefix/include"; then
3282     INCLUDES="$INCLUDES -I$krb5_prefix/include"
3283   fi
3284   if test -d "$krb5_prefix/lib"; then
3285     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3286   fi
3287
3288   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3289
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295
3296
3297
3298
3299 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3300 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3301   { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3302 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3303    { (exit 1); exit 1; }; }
3304 fi
3305
3306
3307
3308
3309 #
3310 # Kerberos configuration parameters
3311 #
3312
3313
3314
3315 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3316 if test "${with_krb_srvnam+set}" = set; then
3317   withval="$with_krb_srvnam"
3318
3319   case $withval in
3320     yes)
3321       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3322 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3323    { (exit 1); exit 1; }; }
3324       ;;
3325     no)
3326       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3327 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3328    { (exit 1); exit 1; }; }
3329       ;;
3330     *)
3331
3332       ;;
3333   esac
3334
3335 else
3336   with_krb_srvnam="postgres"
3337 fi;
3338
3339
3340 cat >>confdefs.h <<_ACEOF
3341 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3342 _ACEOF
3343
3344
3345
3346 #
3347 # PAM
3348 #
3349 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3350 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3351
3352
3353
3354 # Check whether --with-pam or --without-pam was given.
3355 if test "${with_pam+set}" = set; then
3356   withval="$with_pam"
3357
3358   case $withval in
3359     yes)
3360
3361 cat >>confdefs.h <<\_ACEOF
3362 #define USE_PAM 1
3363 _ACEOF
3364
3365       ;;
3366     no)
3367       :
3368       ;;
3369     *)
3370       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3371 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3372    { (exit 1); exit 1; }; }
3373       ;;
3374   esac
3375
3376 else
3377   with_pam=no
3378
3379 fi;
3380
3381 echo "$as_me:$LINENO: result: $with_pam" >&5
3382 echo "${ECHO_T}$with_pam" >&6
3383
3384
3385
3386 #
3387 # OpenSSL
3388 #
3389
3390
3391
3392 # Check whether --with-openssl or --without-openssl was given.
3393 if test "${with_openssl+set}" = set; then
3394   withval="$with_openssl"
3395
3396   case $withval in
3397     yes)
3398       openssl_prefix=/usr/local/ssl
3399       ;;
3400     no)
3401       :
3402       ;;
3403     *)
3404       with_openssl=yes
3405 openssl_prefix=$withval
3406       ;;
3407   esac
3408
3409 else
3410   with_openssl=no
3411 fi;
3412
3413
3414 if test "$with_openssl" = yes; then
3415
3416   echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3417 echo "${ECHO_T}building with OpenSSL support" >&6
3418
3419 cat >>confdefs.h <<\_ACEOF
3420 #define USE_SSL 1
3421 _ACEOF
3422
3423
3424   if test -d "${openssl_prefix}/include" ; then
3425     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3426   fi
3427   if test -d "${openssl_prefix}/lib" ; then
3428     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3429   fi
3430
3431 fi
3432
3433
3434
3435
3436
3437 #
3438 # Readline
3439 #
3440
3441
3442
3443 # Check whether --with-readline or --without-readline was given.
3444 if test "${with_readline+set}" = set; then
3445   withval="$with_readline"
3446
3447   case $withval in
3448     yes)
3449       :
3450       ;;
3451     no)
3452       :
3453       ;;
3454     *)
3455       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3456 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3457    { (exit 1); exit 1; }; }
3458       ;;
3459   esac
3460
3461 else
3462   with_readline=yes
3463
3464 fi;
3465
3466
3467 #
3468 # Zlib
3469 #
3470
3471
3472
3473 # Check whether --with-zlib or --without-zlib was given.
3474 if test "${with_zlib+set}" = set; then
3475   withval="$with_zlib"
3476
3477   case $withval in
3478     yes)
3479       :
3480       ;;
3481     no)
3482       :
3483       ;;
3484     *)
3485       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3486 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3487    { (exit 1); exit 1; }; }
3488       ;;
3489   esac
3490
3491 else
3492   with_zlib=yes
3493
3494 fi;
3495
3496
3497
3498
3499 #
3500 # Optionally enable the building of the ODBC driver
3501 #
3502
3503 # Old option name
3504 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3505   enable_odbc=$with_odbc
3506 fi
3507
3508 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3509 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3510
3511
3512 # Check whether --enable-odbc or --disable-odbc was given.
3513 if test "${enable_odbc+set}" = set; then
3514   enableval="$enable_odbc"
3515
3516   case $enableval in
3517     yes)
3518       :
3519       ;;
3520     no)
3521       :
3522       ;;
3523     *)
3524       { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3525 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3526    { (exit 1); exit 1; }; }
3527       ;;
3528   esac
3529
3530 else
3531   enable_odbc=no
3532
3533 fi;
3534
3535
3536
3537
3538 # Check whether --with-unixodbc or --without-unixodbc was given.
3539 if test "${with_unixodbc+set}" = set; then
3540   withval="$with_unixodbc"
3541
3542   case $withval in
3543     yes)
3544       :
3545       ;;
3546     no)
3547       :
3548       ;;
3549     *)
3550       { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3551 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3552    { (exit 1); exit 1; }; }
3553       ;;
3554   esac
3555
3556 else
3557   with_unixodbc=no
3558
3559 fi;
3560
3561
3562
3563
3564 # Check whether --with-iodbc or --without-iodbc was given.
3565 if test "${with_iodbc+set}" = set; then
3566   withval="$with_iodbc"
3567
3568   case $withval in
3569     yes)
3570       :
3571       ;;
3572     no)
3573       :
3574       ;;
3575     *)
3576       { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3577 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3578    { (exit 1); exit 1; }; }
3579       ;;
3580   esac
3581
3582 else
3583   with_iodbc=no
3584
3585 fi;
3586
3587 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3588   { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3589 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3590    { (exit 1); exit 1; }; }
3591 fi
3592 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3593   enable_odbc=yes
3594 fi
3595 case $enable_odbc:$with_unixodbc:$with_iodbc in
3596   yes:no:no)    echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3597 echo "${ECHO_T}yes (stand-alone)" >&6;;
3598   yes:yes:no)   echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3599 echo "${ECHO_T}yes (unixODBC)" >&6
3600
3601 cat >>confdefs.h <<\_ACEOF
3602 #define WITH_UNIXODBC 1
3603 _ACEOF
3604
3605                 ;;
3606   yes:no:yes)   echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3607 echo "${ECHO_T}yes (iODBC)" >&6
3608
3609 cat >>confdefs.h <<\_ACEOF
3610 #define WITH_IODBC 1
3611 _ACEOF
3612
3613                 ;;
3614   no:*)         echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6;;
3616 esac
3617
3618
3619
3620
3621
3622 # Allow for overriding the default location of the odbcinst.ini
3623 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3624
3625
3626
3627 # Check whether --with-odbcinst or --without-odbcinst was given.
3628 if test "${with_odbcinst+set}" = set; then
3629   withval="$with_odbcinst"
3630
3631   case $withval in
3632     yes)
3633       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3634 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3635    { (exit 1); exit 1; }; }
3636       ;;
3637     no)
3638       { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3639 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3640    { (exit 1); exit 1; }; }
3641       ;;
3642     *)
3643       odbcinst_ini_dir=$withval
3644       ;;
3645   esac
3646
3647 else
3648   odbcinst_ini_dir="\${sysconfdir}"
3649 fi;
3650
3651
3652
3653
3654
3655 # Assume system is ELF if it predefines __ELF__ as 1,
3656 # otherwise believe host_os based default.
3657 case $host_os in
3658     freebsd1*|freebsd2*) elf=no;;
3659     freebsd3*|freebsd4*) elf=yes;;
3660 esac
3661
3662
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #if __ELF__
3667   yes
3668 #endif
3669
3670 _ACEOF
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672   egrep "yes" >/dev/null 2>&1; then
3673   ELF_SYS=true
3674 else
3675   if test "X$elf" = "Xyes" ; then
3676   ELF_SYS=true
3677 else
3678   ELF_SYS=
3679 fi
3680 fi
3681 rm -f conftest*
3682
3683
3684
3685
3686
3687 #
3688 # Optionally build C++ code (i.e., libpq++)
3689 #
3690 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3691 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3692
3693
3694
3695 # Check whether --with-CXX or --without-CXX was given.
3696 if test "${with_CXX+set}" = set; then
3697   withval="$with_CXX"
3698
3699   case $withval in
3700     yes)
3701       :
3702       ;;
3703     no)
3704       :
3705       ;;
3706     *)
3707       with_CXX=yes
3708 CXX=$withval
3709       ;;
3710   esac
3711
3712 else
3713   with_CXX=no
3714 fi;
3715
3716
3717 if test "$with_CXX" = yes; then
3718
3719   echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6
3721
3722   # If the user has specified CXXFLAGS in the environment, leave it
3723   # alone, else use a default.
3724
3725   ac_ext=cc
3726 ac_cpp='$CXXCPP $CPPFLAGS'
3727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3730 if test -n "$ac_tool_prefix"; then
3731   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3732   do
3733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_CXX+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if test -n "$CXX"; then
3741   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755 done
3756
3757 fi
3758 fi
3759 CXX=$ac_cv_prog_CXX
3760 if test -n "$CXX"; then
3761   echo "$as_me:$LINENO: result: $CXX" >&5
3762 echo "${ECHO_T}$CXX" >&6
3763 else
3764   echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768     test -n "$CXX" && break
3769   done
3770 fi
3771 if test -z "$CXX"; then
3772   ac_ct_CXX=$CXX
3773   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3774 do
3775   # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy $ac_prog; ac_word=$2
3777 echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   if test -n "$ac_ct_CXX"; then
3783   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788   IFS=$as_save_IFS
3789   test -z "$as_dir" && as_dir=.
3790   for ac_exec_ext in '' $ac_executable_extensions; do
3791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792     ac_cv_prog_ac_ct_CXX="$ac_prog"
3793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794     break 2
3795   fi
3796 done
3797 done
3798
3799 fi
3800 fi
3801 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3802 if test -n "$ac_ct_CXX"; then
3803   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3804 echo "${ECHO_T}$ac_ct_CXX" >&6
3805 else
3806   echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6
3808 fi
3809
3810   test -n "$ac_ct_CXX" && break
3811 done
3812 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3813
3814   CXX=$ac_ct_CXX
3815 fi
3816
3817
3818 # Provide some information about the compiler.
3819 echo "$as_me:$LINENO:" \
3820      "checking for C++ compiler version" >&5
3821 ac_compiler=`set X $ac_compile; echo $2`
3822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3823   (eval $ac_compiler --version </dev/null >&5) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }
3827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3828   (eval $ac_compiler -v </dev/null >&5) 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }
3832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3833   (eval $ac_compiler -V </dev/null >&5) 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); }
3837
3838 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3839 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3840 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3845 #include "confdefs.h"
3846
3847 #ifdef F77_DUMMY_MAIN
3848 #  ifdef __cplusplus
3849      extern "C"
3850 #  endif
3851    int F77_DUMMY_MAIN() { return 1; }
3852 #endif
3853 int
3854 main ()
3855 {
3856 #ifndef __GNUC__
3857        choke me
3858 #endif
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866   (eval $ac_compile) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -s conftest.$ac_objext'
3871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872   (eval $ac_try) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); }; }; then
3876   ac_compiler_gnu=yes
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3880 ac_compiler_gnu=no
3881 fi
3882 rm -f conftest.$ac_objext conftest.$ac_ext
3883 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3884
3885 fi
3886 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3887 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3888 GXX=`test $ac_compiler_gnu = yes && echo yes`
3889 ac_test_CXXFLAGS=${CXXFLAGS+set}
3890 ac_save_CXXFLAGS=$CXXFLAGS
3891 CXXFLAGS="-g"
3892 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3893 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3894 if test "${ac_cv_prog_cxx_g+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   cat >conftest.$ac_ext <<_ACEOF
3898 #line $LINENO "configure"
3899 #include "confdefs.h"
3900
3901 #ifdef F77_DUMMY_MAIN
3902 #  ifdef __cplusplus
3903      extern "C"
3904 #  endif
3905    int F77_DUMMY_MAIN() { return 1; }
3906 #endif
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3917   (eval $ac_compile) 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } &&
3921          { ac_try='test -s conftest.$ac_objext'
3922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923   (eval $ac_try) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); }; }; then
3927   ac_cv_prog_cxx_g=yes
3928 else
3929   echo "$as_me: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3931 ac_cv_prog_cxx_g=no
3932 fi
3933 rm -f conftest.$ac_objext conftest.$ac_ext
3934 fi
3935 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3936 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3937 if test "$ac_test_CXXFLAGS" = set; then
3938   CXXFLAGS=$ac_save_CXXFLAGS
3939 elif test $ac_cv_prog_cxx_g = yes; then
3940   if test "$GXX" = yes; then
3941     CXXFLAGS="-g -O2"
3942   else
3943     CXXFLAGS="-g"
3944   fi
3945 else
3946   if test "$GXX" = yes; then
3947     CXXFLAGS="-O2"
3948   else
3949     CXXFLAGS=
3950   fi
3951 fi
3952 for ac_declaration in \
3953    ''\
3954    '#include <stdlib.h>' \
3955    'extern "C" void std::exit (int) throw (); using std::exit;' \
3956    'extern "C" void std::exit (int); using std::exit;' \
3957    'extern "C" void exit (int) throw ();' \
3958    'extern "C" void exit (int);' \
3959    'void exit (int);'
3960 do
3961   cat >conftest.$ac_ext <<_ACEOF
3962 #line $LINENO "configure"
3963 #include "confdefs.h"
3964 #include <stdlib.h>
3965 $ac_declaration
3966 #ifdef F77_DUMMY_MAIN
3967 #  ifdef __cplusplus
3968      extern "C"
3969 #  endif
3970    int F77_DUMMY_MAIN() { return 1; }
3971 #endif
3972 int
3973 main ()
3974 {
3975 exit (42);
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982   (eval $ac_compile) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -s conftest.$ac_objext'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 continue
3997 fi
3998 rm -f conftest.$ac_objext conftest.$ac_ext
3999   cat >conftest.$ac_ext <<_ACEOF
4000 #line $LINENO "configure"
4001 #include "confdefs.h"
4002 $ac_declaration
4003 #ifdef F77_DUMMY_MAIN
4004 #  ifdef __cplusplus
4005      extern "C"
4006 #  endif
4007    int F77_DUMMY_MAIN() { return 1; }
4008 #endif
4009 int
4010 main ()
4011 {
4012 exit (42);
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); } &&
4023          { ac_try='test -s conftest.$ac_objext'
4024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025   (eval $ac_try) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); }; }; then
4029   break
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4033 fi
4034 rm -f conftest.$ac_objext conftest.$ac_ext
4035 done
4036 rm -f conftest*
4037 if test -n "$ac_declaration"; then
4038   echo '#ifdef __cplusplus' >>confdefs.h
4039   echo $ac_declaration      >>confdefs.h
4040   echo '#endif'             >>confdefs.h
4041 fi
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049   if test "$ac_env_CXXFLAGS" != set; then
4050     if test "$GXX" = yes; then
4051       CXXFLAGS="$GCC_CXXFLAGS"
4052     else
4053       CXXFLAGS="$VENDOR_CXXFLAGS"
4054     fi
4055   fi
4056   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4057     CXXFLAGS="$CXXFLAGS -g"
4058   fi
4059   { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4060 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4061
4062   ac_ext=cc
4063 ac_cpp='$CXXCPP $CPPFLAGS'
4064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4067 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4068 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4069 if test -z "$CXXCPP"; then
4070   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073       # Double quotes because CXXCPP needs to be expanded
4074     for CXXCPP in "$CXX -E" "/lib/cpp"
4075     do
4076       ac_preproc_ok=false
4077 for ac_cxx_preproc_warn_flag in '' yes
4078 do
4079   # Use a header file that comes with gcc, so configuring glibc
4080   # with a fresh cross-compiler works.
4081   # On the NeXT, cc -E runs the code through the compiler's parser,
4082   # not just through cpp. "Syntax error" is here to catch this case.
4083   cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 #include "confdefs.h"
4086 #include <assert.h>
4087                      Syntax error
4088 _ACEOF
4089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4091   ac_status=$?
4092   egrep -v '^ *\+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } >/dev/null; then
4097   if test -s conftest.err; then
4098     ac_cpp_err=$ac_cxx_preproc_warn_flag
4099   else
4100     ac_cpp_err=
4101   fi
4102 else
4103   ac_cpp_err=yes
4104 fi
4105 if test -z "$ac_cpp_err"; then
4106   :
4107 else
4108   echo "$as_me: failed program was:" >&5
4109   cat conftest.$ac_ext >&5
4110   # Broken: fails on valid input.
4111 continue
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115   # OK, works on sane cases.  Now check whether non-existent headers
4116   # can be detected and how.
4117   cat >conftest.$ac_ext <<_ACEOF
4118 #line $LINENO "configure"
4119 #include "confdefs.h"
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124   ac_status=$?
4125   egrep -v '^ *\+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } >/dev/null; then
4130   if test -s conftest.err; then
4131     ac_cpp_err=$ac_cxx_preproc_warn_flag
4132   else
4133     ac_cpp_err=
4134   fi
4135 else
4136   ac_cpp_err=yes
4137 fi
4138 if test -z "$ac_cpp_err"; then
4139   # Broken: success on invalid input.
4140 continue
4141 else
4142   echo "$as_me: failed program was:" >&5
4143   cat conftest.$ac_ext >&5
4144   # Passes both tests.
4145 ac_preproc_ok=:
4146 break
4147 fi
4148 rm -f conftest.err conftest.$ac_ext
4149
4150 done
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then
4154   break
4155 fi
4156
4157     done
4158     ac_cv_prog_CXXCPP=$CXXCPP
4159
4160 fi
4161   CXXCPP=$ac_cv_prog_CXXCPP
4162 else
4163   ac_cv_prog_CXXCPP=$CXXCPP
4164 fi
4165 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4166 echo "${ECHO_T}$CXXCPP" >&6
4167 ac_preproc_ok=false
4168 for ac_cxx_preproc_warn_flag in '' yes
4169 do
4170   # Use a header file that comes with gcc, so configuring glibc
4171   # with a fresh cross-compiler works.
4172   # On the NeXT, cc -E runs the code through the compiler's parser,
4173   # not just through cpp. "Syntax error" is here to catch this case.
4174   cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177 #include <assert.h>
4178                      Syntax error
4179 _ACEOF
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182   ac_status=$?
4183   egrep -v '^ *\+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } >/dev/null; then
4188   if test -s conftest.err; then
4189     ac_cpp_err=$ac_cxx_preproc_warn_flag
4190   else
4191     ac_cpp_err=
4192   fi
4193 else
4194   ac_cpp_err=yes
4195 fi
4196 if test -z "$ac_cpp_err"; then
4197   :
4198 else
4199   echo "$as_me: failed program was:" >&5
4200   cat conftest.$ac_ext >&5
4201   # Broken: fails on valid input.
4202 continue
4203 fi
4204 rm -f conftest.err conftest.$ac_ext
4205
4206   # OK, works on sane cases.  Now check whether non-existent headers
4207   # can be detected and how.
4208   cat >conftest.$ac_ext <<_ACEOF
4209 #line $LINENO "configure"
4210 #include "confdefs.h"
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215   ac_status=$?
4216   egrep -v '^ *\+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } >/dev/null; then
4221   if test -s conftest.err; then
4222     ac_cpp_err=$ac_cxx_preproc_warn_flag
4223   else
4224     ac_cpp_err=
4225   fi
4226 else
4227   ac_cpp_err=yes
4228 fi
4229 if test -z "$ac_cpp_err"; then
4230   # Broken: success on invalid input.
4231 continue
4232 else
4233   echo "$as_me: failed program was:" >&5
4234   cat conftest.$ac_ext >&5
4235   # Passes both tests.
4236 ac_preproc_ok=:
4237 break
4238 fi
4239 rm -f conftest.err conftest.$ac_ext
4240
4241 done
4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243 rm -f conftest.err conftest.$ac_ext
4244 if $ac_preproc_ok; then
4245   :
4246 else
4247   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4248 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4249    { (exit 1); exit 1; }; }
4250 fi
4251
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258
4259 else
4260   echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4262 fi
4263
4264
4265
4266
4267 CPPFLAGS="$CPPFLAGS $INCLUDES"
4268 LDFLAGS="$LDFLAGS $LIBDIRS"
4269
4270 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4271 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4272 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4273 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4274
4275
4276 for ac_prog in gawk mawk nawk awk
4277 do
4278   # Extract the first word of "$ac_prog", so it can be a program name with args.
4279 set dummy $ac_prog; ac_word=$2
4280 echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282 if test "${ac_cv_prog_AWK+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$AWK"; then
4286   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295     ac_cv_prog_AWK="$ac_prog"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301
4302 fi
4303 fi
4304 AWK=$ac_cv_prog_AWK
4305 if test -n "$AWK"; then
4306   echo "$as_me:$LINENO: result: $AWK" >&5
4307 echo "${ECHO_T}$AWK" >&6
4308 else
4309   echo "$as_me:$LINENO: result: no" >&5
4310 echo "${ECHO_T}no" >&6
4311 fi
4312
4313   test -n "$AWK" && break
4314 done
4315
4316 echo "$as_me:$LINENO: checking for flex" >&5
4317 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4318 if test "${pgac_cv_path_flex+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   # Let the user override the test
4322 if test -n "$FLEX"; then
4323   pgac_cv_path_flex=$FLEX
4324 else
4325   pgac_save_IFS=$IFS
4326   IFS=:
4327   for pgac_dir in $PATH; do
4328     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4329       pgac_dir=`pwd`
4330     fi
4331     for pgac_prog in flex lex; do
4332       pgac_candidate="$pgac_dir/$pgac_prog"
4333       if test -f "$pgac_candidate" \
4334         && $pgac_candidate --version </dev/null >/dev/null 2>&1
4335       then
4336         echo '%%'  > conftest.l
4337         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4338           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4339             pgac_broken_flex=$pgac_candidate
4340             continue
4341           fi
4342
4343           pgac_cv_path_flex=$pgac_candidate
4344           break 2
4345         fi
4346       fi
4347     done
4348   done
4349   IFS=$pgac_save_IFS
4350   rm -f conftest.l
4351   : ${pgac_cv_path_flex=no}
4352 fi
4353
4354 fi
4355 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4356 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4357 if test x"$pgac_cv_path_flex" = x"no"; then
4358   if test -n "$pgac_broken_flex"; then
4359     { echo "$as_me:$LINENO: WARNING:
4360 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4361 *** should get version 2.5.4 or later." >&5
4362 echo "$as_me: WARNING:
4363 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4364 *** should get version 2.5.4 or later." >&2;}
4365   fi
4366
4367   { echo "$as_me:$LINENO: WARNING:
4368 *** Without Flex you will not be able to build PostgreSQL from CVS or
4369 *** change any of the scanner definition files.  You can obtain Flex from
4370 *** a GNU mirror site.  (If you are using the official distribution of
4371 *** PostgreSQL then you do not need to worry about this because the Flex
4372 *** output is pre-generated.)" >&5
4373 echo "$as_me: WARNING:
4374 *** Without Flex you will not be able to build PostgreSQL from CVS or
4375 *** change any of the scanner definition files.  You can obtain Flex from
4376 *** a GNU mirror site.  (If you are using the official distribution of
4377 *** PostgreSQL then you do not need to worry about this because the Flex
4378 *** output is pre-generated.)" >&2;}
4379 fi
4380
4381 if test x"$pgac_cv_path_flex" = x"no"; then
4382   FLEX=
4383 else
4384   FLEX=$pgac_cv_path_flex
4385 fi
4386
4387
4388
4389
4390 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4392 LN_S=$as_ln_s
4393 if test "$LN_S" = "ln -s"; then
4394   echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6
4396 else
4397   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4398 echo "${ECHO_T}no, using $LN_S" >&6
4399 fi
4400
4401
4402 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4403 if test "${with_gnu_ld+set}" = set; then
4404   withval="$with_gnu_ld"
4405   test "$withval" = no || with_gnu_ld=yes
4406 else
4407   with_gnu_ld=no
4408 fi;
4409 ac_prog=ld
4410 if test "$GCC" = yes; then
4411   # Check if gcc -print-prog-name=ld gives a path.
4412   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4413 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4414   case $host in
4415   *-*-mingw*)
4416     # gcc leaves a trailing carriage return which upsets mingw
4417     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4418   *)
4419     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4420   esac
4421   case "$ac_prog" in
4422     # Accept absolute paths.
4423     [\\/]* | [A-Za-z]:[\\/]*)
4424       re_direlt='/[^/][^/]*/\.\./'
4425       # Canonicalize the path of ld
4426       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4427       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4428         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4429       done
4430       test -z "$LD" && LD="$ac_prog"
4431       ;;
4432   "")
4433     # If it fails, then pretend we aren't using GCC.
4434     ac_prog=ld
4435     ;;
4436   *)
4437     # If it is relative, then search for the first ld in PATH.
4438     with_gnu_ld=unknown
4439     ;;
4440   esac
4441 elif test "$with_gnu_ld" = yes; then
4442   echo "$as_me:$LINENO: checking for GNU ld" >&5
4443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4444 else
4445   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4447 fi
4448 if test "${ac_cv_path_LD+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   if test -z "$LD"; then
4452   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4453   for ac_dir in $PATH; do
4454     test -z "$ac_dir" && ac_dir=.
4455     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4456       ac_cv_path_LD="$ac_dir/$ac_prog"
4457       # Check to see if the program is GNU ld.  I'd rather use --version,
4458       # but apparently some GNU ld's only accept -v.
4459       # Break only if it was the GNU/non-GNU ld that we prefer.
4460       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4461         test "$with_gnu_ld" != no && break
4462       else
4463         test "$with_gnu_ld" != yes && break
4464       fi
4465     fi
4466   done
4467   IFS="$ac_save_ifs"
4468 else
4469   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4470 fi
4471 fi
4472
4473 LD="$ac_cv_path_LD"
4474 if test -n "$LD"; then
4475   echo "$as_me:$LINENO: result: $LD" >&5
4476 echo "${ECHO_T}$LD" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4482 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4483    { (exit 1); exit 1; }; }
4484 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4485 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4486 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4490 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4491   ac_cv_prog_gnu_ld=yes
4492 else
4493   ac_cv_prog_gnu_ld=no
4494 fi
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4497 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4498 with_gnu_ld=$ac_cv_prog_gnu_ld
4499
4500
4501
4502
4503 case $host_os in sysv5*)
4504   echo "$as_me:$LINENO: checking whether ld -R works" >&5
4505 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4506 if test "${pgac_cv_prog_ld_R+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509
4510     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4511     cat >conftest.$ac_ext <<_ACEOF
4512 #line $LINENO "configure"
4513 #include "confdefs.h"
4514
4515 #ifdef F77_DUMMY_MAIN
4516 #  ifdef __cplusplus
4517      extern "C"
4518 #  endif
4519    int F77_DUMMY_MAIN() { return 1; }
4520 #endif
4521 int
4522 main ()
4523 {
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext conftest$ac_exeext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4531   (eval $ac_link) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); } &&
4535          { ac_try='test -s conftest$ac_exeext'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   pgac_cv_prog_ld_R=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 pgac_cv_prog_ld_R=no
4546 fi
4547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4548     LDFLAGS=$pgac_save_LDFLAGS
4549
4550 fi
4551 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4552 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4553   ld_R_works=$pgac_cv_prog_ld_R
4554
4555 esac
4556 if test -n "$ac_tool_prefix"; then
4557   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_prog_RANLIB+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   if test -n "$RANLIB"; then
4565   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580
4581 fi
4582 fi
4583 RANLIB=$ac_cv_prog_RANLIB
4584 if test -n "$RANLIB"; then
4585   echo "$as_me:$LINENO: result: $RANLIB" >&5
4586 echo "${ECHO_T}$RANLIB" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592 fi
4593 if test -z "$ac_cv_prog_RANLIB"; then
4594   ac_ct_RANLIB=$RANLIB
4595   # Extract the first word of "ranlib", so it can be a program name with args.
4596 set dummy ranlib; ac_word=$2
4597 echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   if test -n "$ac_ct_RANLIB"; then
4603   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608   IFS=$as_save_IFS
4609   test -z "$as_dir" && as_dir=.
4610   for ac_exec_ext in '' $ac_executable_extensions; do
4611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612     ac_cv_prog_ac_ct_RANLIB="ranlib"
4613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614     break 2
4615   fi
4616 done
4617 done
4618
4619   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4620 fi
4621 fi
4622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4623 if test -n "$ac_ct_RANLIB"; then
4624   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4625 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4626 else
4627   echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629 fi
4630
4631   RANLIB=$ac_ct_RANLIB
4632 else
4633   RANLIB="$ac_cv_prog_RANLIB"
4634 fi
4635
4636 for ac_prog in lorder
4637 do
4638   # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_LORDER+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   if test -n "$LORDER"; then
4646   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653   for ac_exec_ext in '' $ac_executable_extensions; do
4654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655     ac_cv_prog_LORDER="$ac_prog"
4656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660 done
4661
4662 fi
4663 fi
4664 LORDER=$ac_cv_prog_LORDER
4665 if test -n "$LORDER"; then
4666   echo "$as_me:$LINENO: result: $LORDER" >&5
4667 echo "${ECHO_T}$LORDER" >&6
4668 else
4669   echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4671 fi
4672
4673   test -n "$LORDER" && break
4674 done
4675
4676 # Extract the first word of "tar", so it can be a program name with args.
4677 set dummy tar; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_path_TAR+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   case $TAR in
4684   [\\/]* | ?:[\\/]*)
4685   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4686   ;;
4687   *)
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693   for ac_exec_ext in '' $ac_executable_extensions; do
4694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697     break 2
4698   fi
4699 done
4700 done
4701
4702   ;;
4703 esac
4704 fi
4705 TAR=$ac_cv_path_TAR
4706
4707 if test -n "$TAR"; then
4708   echo "$as_me:$LINENO: result: $TAR" >&5
4709 echo "${ECHO_T}$TAR" >&6
4710 else
4711   echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6
4713 fi
4714
4715
4716   if test -n "$ac_tool_prefix"; then
4717   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}strip; ac_word=$2
4719 echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721 if test "${ac_cv_prog_STRIP+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   if test -n "$STRIP"; then
4725   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740
4741 fi
4742 fi
4743 STRIP=$ac_cv_prog_STRIP
4744 if test -n "$STRIP"; then
4745   echo "$as_me:$LINENO: result: $STRIP" >&5
4746 echo "${ECHO_T}$STRIP" >&6
4747 else
4748   echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6
4750 fi
4751
4752 fi
4753 if test -z "$ac_cv_prog_STRIP"; then
4754   ac_ct_STRIP=$STRIP
4755   # Extract the first word of "strip", so it can be a program name with args.
4756 set dummy strip; ac_word=$2
4757 echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4759 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   if test -n "$ac_ct_STRIP"; then
4763   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770   for ac_exec_ext in '' $ac_executable_extensions; do
4771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772     ac_cv_prog_ac_ct_STRIP="strip"
4773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777 done
4778
4779   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4780 fi
4781 fi
4782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4783 if test -n "$ac_ct_STRIP"; then
4784   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4785 echo "${ECHO_T}$ac_ct_STRIP" >&6
4786 else
4787   echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4789 fi
4790
4791   STRIP=$ac_ct_STRIP
4792 else
4793   STRIP="$ac_cv_prog_STRIP"
4794 fi
4795
4796
4797   echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4798 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4799   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4800     STRIP_STATIC_LIB="$STRIP -x"
4801     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4802     echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6
4804   else
4805     STRIP_STATIC_LIB=:
4806     STRIP_SHARED_LIB=:
4807     echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4809   fi
4810
4811
4812
4813
4814 for ac_prog in 'bison -y'
4815 do
4816   # Extract the first word of "$ac_prog", so it can be a program name with args.
4817 set dummy $ac_prog; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_YACC+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$YACC"; then
4824   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_prog_YACC="$ac_prog"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839
4840 fi
4841 fi
4842 YACC=$ac_cv_prog_YACC
4843 if test -n "$YACC"; then
4844   echo "$as_me:$LINENO: result: $YACC" >&5
4845 echo "${ECHO_T}$YACC" >&6
4846 else
4847   echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6
4849 fi
4850
4851   test -n "$YACC" && break
4852 done
4853
4854 if test -z "$YACC"; then
4855   { echo "$as_me:$LINENO: WARNING:
4856 *** Without Bison you will not be able to build PostgreSQL from CVS or
4857 *** change any of the parser definition files.  You can obtain Bison from
4858 *** a GNU mirror site.  (If you are using the official distribution of
4859 *** PostgreSQL then you do not need to worry about this because the Bison
4860 *** output is pre-generated.)  To use a different yacc program (possible,
4861 *** but not recommended), set the environment variable YACC before running
4862 *** 'configure'." >&5
4863 echo "$as_me: WARNING:
4864 *** Without Bison you will not be able to build PostgreSQL from CVS or
4865 *** change any of the parser definition files.  You can obtain Bison from
4866 *** a GNU mirror site.  (If you are using the official distribution of
4867 *** PostgreSQL then you do not need to worry about this because the Bison
4868 *** output is pre-generated.)  To use a different yacc program (possible,
4869 *** but not recommended), set the environment variable YACC before running
4870 *** 'configure'." >&2;}
4871 fi
4872
4873
4874 if test "$with_tk" = yes; then
4875     # Extract the first word of "wish", so it can be a program name with args.
4876 set dummy wish; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_WISH+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   case $WISH in
4883   [\\/]* | ?:[\\/]*)
4884   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892   for ac_exec_ext in '' $ac_executable_extensions; do
4893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894     ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899 done
4900
4901   ;;
4902 esac
4903 fi
4904 WISH=$ac_cv_path_WISH
4905
4906 if test -n "$WISH"; then
4907   echo "$as_me:$LINENO: result: $WISH" >&5
4908 echo "${ECHO_T}$WISH" >&6
4909 else
4910   echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4912 fi
4913
4914     test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4915 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4916    { (exit 1); exit 1; }; }
4917 fi
4918
4919 # Extract the first word of "perl", so it can be a program name with args.
4920 set dummy perl; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_path_PERL+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   case $PERL in
4927   [\\/]* | ?:[\\/]*)
4928   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4929   ;;
4930   *)
4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936   for ac_exec_ext in '' $ac_executable_extensions; do
4937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943 done
4944
4945   ;;
4946 esac
4947 fi
4948 PERL=$ac_cv_path_PERL
4949
4950 if test -n "$PERL"; then
4951   echo "$as_me:$LINENO: result: $PERL" >&5
4952 echo "${ECHO_T}$PERL" >&6
4953 else
4954   echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4956 fi
4957
4958 if test "$with_perl" = yes; then
4959
4960 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4961 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4962 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4963 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4964 echo "${ECHO_T}$perl_installsitearch" >&6
4965 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4966 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4967 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4968 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4969 echo "${ECHO_T}$perl_installman3dir" >&6
4970 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4971 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4972 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4973 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4974 echo "${ECHO_T}$perl_archlibexp" >&6
4975 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4976 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4977 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4978 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4979 echo "${ECHO_T}$perl_privlibexp" >&6
4980 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4981 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4982 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4983 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4984 echo "${ECHO_T}$perl_useshrplib" >&6
4985 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4986 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4987 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4988 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4989 echo "${ECHO_T}$perl_man3ext" >&6
4990
4991 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4992 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4993 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4994 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4995 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4996 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4997 echo "${ECHO_T}$perl_embed_ldflags" >&6
4998 fi
4999
5000 if test "$with_python" = yes; then
5001   # Extract the first word of "python", so it can be a program name with args.
5002 set dummy python; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_PYTHON+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   case $PYTHON in
5009   [\\/]* | ?:[\\/]*)
5010   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5011   ;;
5012   *)
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018   for ac_exec_ext in '' $ac_executable_extensions; do
5019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025 done
5026
5027   ;;
5028 esac
5029 fi
5030 PYTHON=$ac_cv_path_PYTHON
5031
5032 if test -n "$PYTHON"; then
5033   echo "$as_me:$LINENO: result: $PYTHON" >&5
5034 echo "${ECHO_T}$PYTHON" >&6
5035 else
5036   echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038 fi
5039
5040 if test x"$PYTHON" = x""; then
5041   { { echo "$as_me:$LINENO: error: Python not found" >&5
5042 echo "$as_me: error: Python not found" >&2;}
5043    { (exit 1); exit 1; }; }
5044 fi
5045
5046
5047 echo "$as_me:$LINENO: checking Python installation directories" >&5
5048 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5049 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5050 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5051 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5052 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5053 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5054 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5055 python_includespec="-I${python_prefix}/include/python${python_version}"
5056 if test "$python_prefix" != "$python_execprefix"; then
5057   python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5058 fi
5059
5060 # This should be enough of a message.
5061 if test "$python_prefix" != "$python_execprefix"; then
5062   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5063 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5064 else
5065   echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5066 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5067 fi
5068
5069
5070
5071
5072
5073 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5074 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5075
5076 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5077 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5078 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5079 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5080 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5081
5082 pgac_tab="      " # tab character
5083 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"`
5084
5085 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5086 echo "${ECHO_T}${python_libspec}" >&6
5087
5088
5089 fi
5090
5091
5092 ##
5093 ## Libraries
5094 ##
5095
5096 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5097 then
5098
5099 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5100 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5101 if test "${ac_cv_lib_bsd_main+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   ac_check_lib_save_LIBS=$LIBS
5105 LIBS="-lbsd  $LIBS"
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5108 #include "confdefs.h"
5109
5110
5111 #ifdef F77_DUMMY_MAIN
5112 #  ifdef __cplusplus
5113      extern "C"
5114 #  endif
5115    int F77_DUMMY_MAIN() { return 1; }
5116 #endif
5117 int
5118 main ()
5119 {
5120 main ();
5121   ;
5122   return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext conftest$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127   (eval $ac_link) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); } &&
5131          { ac_try='test -s conftest$ac_exeext'
5132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133   (eval $ac_try) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }; }; then
5137   ac_cv_lib_bsd_main=yes
5138 else
5139   echo "$as_me: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5141 ac_cv_lib_bsd_main=no
5142 fi
5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5147 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5148 if test $ac_cv_lib_bsd_main = yes; then
5149   cat >>confdefs.h <<_ACEOF
5150 #define HAVE_LIBBSD 1
5151 _ACEOF
5152
5153   LIBS="-lbsd $LIBS"
5154
5155 fi
5156
5157 fi
5158
5159 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5160 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5161 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   ac_check_lib_save_LIBS=$LIBS
5165 LIBS="-lutil  $LIBS"
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 #include "confdefs.h"
5169
5170 /* Override any gcc2 internal prototype to avoid an error.  */
5171 #ifdef __cplusplus
5172 extern "C"
5173 #endif
5174 /* We use char because int might match the return type of a gcc2
5175    builtin and then its argument prototype would still apply.  */
5176 char setproctitle ();
5177 #ifdef F77_DUMMY_MAIN
5178 #  ifdef __cplusplus
5179      extern "C"
5180 #  endif
5181    int F77_DUMMY_MAIN() { return 1; }
5182 #endif
5183 int
5184 main ()
5185 {
5186 setproctitle ();
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193   (eval $ac_link) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -s conftest$ac_exeext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_lib_util_setproctitle=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_cv_lib_util_setproctitle=no
5208 fi
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5210 LIBS=$ac_check_lib_save_LIBS
5211 fi
5212 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5213 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5214 if test $ac_cv_lib_util_setproctitle = yes; then
5215   cat >>confdefs.h <<_ACEOF
5216 #define HAVE_LIBUTIL 1
5217 _ACEOF
5218
5219   LIBS="-lutil $LIBS"
5220
5221 fi
5222
5223
5224 echo "$as_me:$LINENO: checking for main in -lm" >&5
5225 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5226 if test "${ac_cv_lib_m_main+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   ac_check_lib_save_LIBS=$LIBS
5230 LIBS="-lm  $LIBS"
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 #include "confdefs.h"
5234
5235
5236 #ifdef F77_DUMMY_MAIN
5237 #  ifdef __cplusplus
5238      extern "C"
5239 #  endif
5240    int F77_DUMMY_MAIN() { return 1; }
5241 #endif
5242 int
5243 main ()
5244 {
5245 main ();
5246   ;
5247   return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252   (eval $ac_link) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } &&
5256          { ac_try='test -s conftest$ac_exeext'
5257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258   (eval $ac_try) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }; }; then
5262   ac_cv_lib_m_main=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 ac_cv_lib_m_main=no
5267 fi
5268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5270 fi
5271 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5272 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5273 if test $ac_cv_lib_m_main = yes; then
5274   cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBM 1
5276 _ACEOF
5277
5278   LIBS="-lm $LIBS"
5279
5280 fi
5281
5282
5283 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5284 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5285 if test "${ac_cv_lib_dl_main+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-ldl  $LIBS"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293
5294
5295 #ifdef F77_DUMMY_MAIN
5296 #  ifdef __cplusplus
5297      extern "C"
5298 #  endif
5299    int F77_DUMMY_MAIN() { return 1; }
5300 #endif
5301 int
5302 main ()
5303 {
5304 main ();
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311   (eval $ac_link) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } &&
5315          { ac_try='test -s conftest$ac_exeext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_cv_lib_dl_main=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 ac_cv_lib_dl_main=no
5326 fi
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5331 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5332 if test $ac_cv_lib_dl_main = yes; then
5333   cat >>confdefs.h <<_ACEOF
5334 #define HAVE_LIBDL 1
5335 _ACEOF
5336
5337   LIBS="-ldl $LIBS"
5338
5339 fi
5340
5341
5342 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5343 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5344 if test "${ac_cv_lib_nsl_main+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lnsl  $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352
5353
5354 #ifdef F77_DUMMY_MAIN
5355 #  ifdef __cplusplus
5356      extern "C"
5357 #  endif
5358    int F77_DUMMY_MAIN() { return 1; }
5359 #endif
5360 int
5361 main ()
5362 {
5363 main ();
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370   (eval $ac_link) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } &&
5374          { ac_try='test -s conftest$ac_exeext'
5375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376   (eval $ac_try) 2>&5
5377   ac_status=$?
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   ac_cv_lib_nsl_main=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_cv_lib_nsl_main=no
5385 fi
5386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5387 LIBS=$ac_check_lib_save_LIBS
5388 fi
5389 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5390 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5391 if test $ac_cv_lib_nsl_main = yes; then
5392   cat >>confdefs.h <<_ACEOF
5393 #define HAVE_LIBNSL 1
5394 _ACEOF
5395
5396   LIBS="-lnsl $LIBS"
5397
5398 fi
5399
5400
5401 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5402 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5403 if test "${ac_cv_lib_socket_main+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   ac_check_lib_save_LIBS=$LIBS
5407 LIBS="-lsocket  $LIBS"
5408 cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5411
5412
5413 #ifdef F77_DUMMY_MAIN
5414 #  ifdef __cplusplus
5415      extern "C"
5416 #  endif
5417    int F77_DUMMY_MAIN() { return 1; }
5418 #endif
5419 int
5420 main ()
5421 {
5422 main ();
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 rm -f conftest.$ac_objext conftest$ac_exeext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5429   (eval $ac_link) 2>&5
5430   ac_status=$?
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } &&
5433          { ac_try='test -s conftest$ac_exeext'
5434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435   (eval $ac_try) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }; }; then
5439   ac_cv_lib_socket_main=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5443 ac_cv_lib_socket_main=no
5444 fi
5445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5446 LIBS=$ac_check_lib_save_LIBS
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5449 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5450 if test $ac_cv_lib_socket_main = yes; then
5451   cat >>confdefs.h <<_ACEOF
5452 #define HAVE_LIBSOCKET 1
5453 _ACEOF
5454
5455   LIBS="-lsocket $LIBS"
5456
5457 fi
5458
5459
5460 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5461 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5462 if test "${ac_cv_lib_ipc_main+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   ac_check_lib_save_LIBS=$LIBS
5466 LIBS="-lipc  $LIBS"
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5469 #include "confdefs.h"
5470
5471
5472 #ifdef F77_DUMMY_MAIN
5473 #  ifdef __cplusplus
5474      extern "C"
5475 #  endif
5476    int F77_DUMMY_MAIN() { return 1; }
5477 #endif
5478 int
5479 main ()
5480 {
5481 main ();
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488   (eval $ac_link) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest$ac_exeext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_cv_lib_ipc_main=yes
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 ac_cv_lib_ipc_main=no
5503 fi
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5506 fi
5507 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5508 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5509 if test $ac_cv_lib_ipc_main = yes; then
5510   cat >>confdefs.h <<_ACEOF
5511 #define HAVE_LIBIPC 1
5512 _ACEOF
5513
5514   LIBS="-lipc $LIBS"
5515
5516 fi
5517
5518
5519 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5520 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5521 if test "${ac_cv_lib_IPC_main+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   ac_check_lib_save_LIBS=$LIBS
5525 LIBS="-lIPC  $LIBS"
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 #include "confdefs.h"
5529
5530
5531 #ifdef F77_DUMMY_MAIN
5532 #  ifdef __cplusplus
5533      extern "C"
5534 #  endif
5535    int F77_DUMMY_MAIN() { return 1; }
5536 #endif
5537 int
5538 main ()
5539 {
5540 main ();
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5547   (eval $ac_link) 2>&5
5548   ac_status=$?
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } &&
5551          { ac_try='test -s conftest$ac_exeext'
5552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553   (eval $ac_try) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; }; then
5557   ac_cv_lib_IPC_main=yes
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 ac_cv_lib_IPC_main=no
5562 fi
5563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5567 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5568 if test $ac_cv_lib_IPC_main = yes; then
5569   cat >>confdefs.h <<_ACEOF
5570 #define HAVE_LIBIPC 1
5571 _ACEOF
5572
5573   LIBS="-lIPC $LIBS"
5574
5575 fi
5576
5577
5578 echo "$as_me:$LINENO: checking for main in -llc" >&5
5579 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5580 if test "${ac_cv_lib_lc_main+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   ac_check_lib_save_LIBS=$LIBS
5584 LIBS="-llc  $LIBS"
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 #include "confdefs.h"
5588
5589
5590 #ifdef F77_DUMMY_MAIN
5591 #  ifdef __cplusplus
5592      extern "C"
5593 #  endif
5594    int F77_DUMMY_MAIN() { return 1; }
5595 #endif
5596 int
5597 main ()
5598 {
5599 main ();
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } &&
5610          { ac_try='test -s conftest$ac_exeext'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; }; then
5616   ac_cv_lib_lc_main=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 ac_cv_lib_lc_main=no
5621 fi
5622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5623 LIBS=$ac_check_lib_save_LIBS
5624 fi
5625 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5626 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5627 if test $ac_cv_lib_lc_main = yes; then
5628   cat >>confdefs.h <<_ACEOF
5629 #define HAVE_LIBLC 1
5630 _ACEOF
5631
5632   LIBS="-llc $LIBS"
5633
5634 fi
5635
5636
5637 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5638 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5639 if test "${ac_cv_lib_dld_main+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   ac_check_lib_save_LIBS=$LIBS
5643 LIBS="-ldld  $LIBS"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 #line $LINENO "configure"
5646 #include "confdefs.h"
5647
5648
5649 #ifdef F77_DUMMY_MAIN
5650 #  ifdef __cplusplus
5651      extern "C"
5652 #  endif
5653    int F77_DUMMY_MAIN() { return 1; }
5654 #endif
5655 int
5656 main ()
5657 {
5658 main ();
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665   (eval $ac_link) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -s conftest$ac_exeext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_cv_lib_dld_main=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 ac_cv_lib_dld_main=no
5680 fi
5681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5682 LIBS=$ac_check_lib_save_LIBS
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5685 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5686 if test $ac_cv_lib_dld_main = yes; then
5687   cat >>confdefs.h <<_ACEOF
5688 #define HAVE_LIBDLD 1
5689 _ACEOF
5690
5691   LIBS="-ldld $LIBS"
5692
5693 fi
5694
5695
5696 echo "$as_me:$LINENO: checking for main in -lld" >&5
5697 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5698 if test "${ac_cv_lib_ld_main+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   ac_check_lib_save_LIBS=$LIBS
5702 LIBS="-lld  $LIBS"
5703 cat >conftest.$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5705 #include "confdefs.h"
5706
5707
5708 #ifdef F77_DUMMY_MAIN
5709 #  ifdef __cplusplus
5710      extern "C"
5711 #  endif
5712    int F77_DUMMY_MAIN() { return 1; }
5713 #endif
5714 int
5715 main ()
5716 {
5717 main ();
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724   (eval $ac_link) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } &&
5728          { ac_try='test -s conftest$ac_exeext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_lib_ld_main=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5738 ac_cv_lib_ld_main=no
5739 fi
5740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_check_lib_save_LIBS
5742 fi
5743 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5744 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5745 if test $ac_cv_lib_ld_main = yes; then
5746   cat >>confdefs.h <<_ACEOF
5747 #define HAVE_LIBLD 1
5748 _ACEOF
5749
5750   LIBS="-lld $LIBS"
5751
5752 fi
5753
5754
5755 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5756 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5757 if test "${ac_cv_lib_compat_main+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   ac_check_lib_save_LIBS=$LIBS
5761 LIBS="-lcompat  $LIBS"
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5765
5766
5767 #ifdef F77_DUMMY_MAIN
5768 #  ifdef __cplusplus
5769      extern "C"
5770 #  endif
5771    int F77_DUMMY_MAIN() { return 1; }
5772 #endif
5773 int
5774 main ()
5775 {
5776 main ();
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783   (eval $ac_link) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); } &&
5787          { ac_try='test -s conftest$ac_exeext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_cv_lib_compat_main=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 ac_cv_lib_compat_main=no
5798 fi
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5803 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5804 if test $ac_cv_lib_compat_main = yes; then
5805   cat >>confdefs.h <<_ACEOF
5806 #define HAVE_LIBCOMPAT 1
5807 _ACEOF
5808
5809   LIBS="-lcompat $LIBS"
5810
5811 fi
5812
5813
5814 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5815 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5816 if test "${ac_cv_lib_BSD_main+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-lBSD  $LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5822 #line $LINENO "configure"
5823 #include "confdefs.h"
5824
5825
5826 #ifdef F77_DUMMY_MAIN
5827 #  ifdef __cplusplus
5828      extern "C"
5829 #  endif
5830    int F77_DUMMY_MAIN() { return 1; }
5831 #endif
5832 int
5833 main ()
5834 {
5835 main ();
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842   (eval $ac_link) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } &&
5846          { ac_try='test -s conftest$ac_exeext'
5847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848   (eval $ac_try) 2>&5
5849   ac_status=$?
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); }; }; then
5852   ac_cv_lib_BSD_main=yes
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5856 ac_cv_lib_BSD_main=no
5857 fi
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859 LIBS=$ac_check_lib_save_LIBS
5860 fi
5861 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5862 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5863 if test $ac_cv_lib_BSD_main = yes; then
5864   cat >>confdefs.h <<_ACEOF
5865 #define HAVE_LIBBSD 1
5866 _ACEOF
5867
5868   LIBS="-lBSD $LIBS"
5869
5870 fi
5871
5872
5873 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5874 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5875 if test "${ac_cv_lib_gen_main+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-lgen  $LIBS"
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 #include "confdefs.h"
5883
5884
5885 #ifdef F77_DUMMY_MAIN
5886 #  ifdef __cplusplus
5887      extern "C"
5888 #  endif
5889    int F77_DUMMY_MAIN() { return 1; }
5890 #endif
5891 int
5892 main ()
5893 {
5894 main ();
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901   (eval $ac_link) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -s conftest$ac_exeext'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911   ac_cv_lib_gen_main=yes
5912 else
5913   echo "$as_me: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 ac_cv_lib_gen_main=no
5916 fi
5917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5918 LIBS=$ac_check_lib_save_LIBS
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5921 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5922 if test $ac_cv_lib_gen_main = yes; then
5923   cat >>confdefs.h <<_ACEOF
5924 #define HAVE_LIBGEN 1
5925 _ACEOF
5926
5927   LIBS="-lgen $LIBS"
5928
5929 fi
5930
5931
5932 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5933 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5934 if test "${ac_cv_lib_PW_main+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   ac_check_lib_save_LIBS=$LIBS
5938 LIBS="-lPW  $LIBS"
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5942
5943
5944 #ifdef F77_DUMMY_MAIN
5945 #  ifdef __cplusplus
5946      extern "C"
5947 #  endif
5948    int F77_DUMMY_MAIN() { return 1; }
5949 #endif
5950 int
5951 main ()
5952 {
5953 main ();
5954   ;
5955   return 0;
5956 }
5957 _ACEOF
5958 rm -f conftest.$ac_objext conftest$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960   (eval $ac_link) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } &&
5964          { ac_try='test -s conftest$ac_exeext'
5965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966   (eval $ac_try) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; }; then
5970   ac_cv_lib_PW_main=yes
5971 else
5972   echo "$as_me: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 ac_cv_lib_PW_main=no
5975 fi
5976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5977 LIBS=$ac_check_lib_save_LIBS
5978 fi
5979 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5980 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5981 if test $ac_cv_lib_PW_main = yes; then
5982   cat >>confdefs.h <<_ACEOF
5983 #define HAVE_LIBPW 1
5984 _ACEOF
5985
5986   LIBS="-lPW $LIBS"
5987
5988 fi
5989
5990
5991 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5992 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5993 if test "${ac_cv_lib_resolv_main+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   ac_check_lib_save_LIBS=$LIBS
5997 LIBS="-lresolv  $LIBS"
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 #include "confdefs.h"
6001
6002
6003 #ifdef F77_DUMMY_MAIN
6004 #  ifdef __cplusplus
6005      extern "C"
6006 #  endif
6007    int F77_DUMMY_MAIN() { return 1; }
6008 #endif
6009 int
6010 main ()
6011 {
6012 main ();
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   ac_cv_lib_resolv_main=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 ac_cv_lib_resolv_main=no
6034 fi
6035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6036 LIBS=$ac_check_lib_save_LIBS
6037 fi
6038 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6039 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6040 if test $ac_cv_lib_resolv_main = yes; then
6041   cat >>confdefs.h <<_ACEOF
6042 #define HAVE_LIBRESOLV 1
6043 _ACEOF
6044
6045   LIBS="-lresolv $LIBS"
6046
6047 fi
6048
6049 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6050 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6051 if test "${ac_cv_search_getopt_long+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   ac_func_search_save_LIBS=$LIBS
6055 ac_cv_search_getopt_long=no
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6059
6060 /* Override any gcc2 internal prototype to avoid an error.  */
6061 #ifdef __cplusplus
6062 extern "C"
6063 #endif
6064 /* We use char because int might match the return type of a gcc2
6065    builtin and then its argument prototype would still apply.  */
6066 char getopt_long ();
6067 #ifdef F77_DUMMY_MAIN
6068 #  ifdef __cplusplus
6069      extern "C"
6070 #  endif
6071    int F77_DUMMY_MAIN() { return 1; }
6072 #endif
6073 int
6074 main ()
6075 {
6076 getopt_long ();
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext conftest$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083   (eval $ac_link) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -s conftest$ac_exeext'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; }; then
6093   ac_cv_search_getopt_long="none required"
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6097 fi
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 if test "$ac_cv_search_getopt_long" = no; then
6100   for ac_lib in getopt; do
6101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6102     cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6105
6106 /* Override any gcc2 internal prototype to avoid an error.  */
6107 #ifdef __cplusplus
6108 extern "C"
6109 #endif
6110 /* We use char because int might match the return type of a gcc2
6111    builtin and then its argument prototype would still apply.  */
6112 char getopt_long ();
6113 #ifdef F77_DUMMY_MAIN
6114 #  ifdef __cplusplus
6115      extern "C"
6116 #  endif
6117    int F77_DUMMY_MAIN() { return 1; }
6118 #endif
6119 int
6120 main ()
6121 {
6122 getopt_long ();
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext conftest$ac_exeext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6129   (eval $ac_link) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -s conftest$ac_exeext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_search_getopt_long="-l$ac_lib"
6140 break
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 fi
6145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6146   done
6147 fi
6148 LIBS=$ac_func_search_save_LIBS
6149 fi
6150 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6151 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6152 if test "$ac_cv_search_getopt_long" != no; then
6153   test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6154
6155 fi
6156
6157 # QNX:
6158
6159 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6160 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6161 if test "${ac_cv_lib_unix_main+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lunix  $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169
6170
6171 #ifdef F77_DUMMY_MAIN
6172 #  ifdef __cplusplus
6173      extern "C"
6174 #  endif
6175    int F77_DUMMY_MAIN() { return 1; }
6176 #endif
6177 int
6178 main ()
6179 {
6180 main ();
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187   (eval $ac_link) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -s conftest$ac_exeext'
6192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193   (eval $ac_try) 2>&5
6194   ac_status=$?
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); }; }; then
6197   ac_cv_lib_unix_main=yes
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6201 ac_cv_lib_unix_main=no
6202 fi
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 LIBS=$ac_check_lib_save_LIBS
6205 fi
6206 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6207 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6208 if test $ac_cv_lib_unix_main = yes; then
6209   cat >>confdefs.h <<_ACEOF
6210 #define HAVE_LIBUNIX 1
6211 _ACEOF
6212
6213   LIBS="-lunix $LIBS"
6214
6215 fi
6216
6217 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6218 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6219 if test "${ac_cv_search_crypt+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   ac_func_search_save_LIBS=$LIBS
6223 ac_cv_search_crypt=no
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 #include "confdefs.h"
6227
6228 /* Override any gcc2 internal prototype to avoid an error.  */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 /* We use char because int might match the return type of a gcc2
6233    builtin and then its argument prototype would still apply.  */
6234 char crypt ();
6235 #ifdef F77_DUMMY_MAIN
6236 #  ifdef __cplusplus
6237      extern "C"
6238 #  endif
6239    int F77_DUMMY_MAIN() { return 1; }
6240 #endif
6241 int
6242 main ()
6243 {
6244 crypt ();
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251   (eval $ac_link) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } &&
6255          { ac_try='test -s conftest$ac_exeext'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   ac_cv_search_crypt="none required"
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 fi
6266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6267 if test "$ac_cv_search_crypt" = no; then
6268   for ac_lib in crypt; do
6269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6270     cat >conftest.$ac_ext <<_ACEOF
6271 #line $LINENO "configure"
6272 #include "confdefs.h"
6273
6274 /* Override any gcc2 internal prototype to avoid an error.  */
6275 #ifdef __cplusplus
6276 extern "C"
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279    builtin and then its argument prototype would still apply.  */
6280 char crypt ();
6281 #ifdef F77_DUMMY_MAIN
6282 #  ifdef __cplusplus
6283      extern "C"
6284 #  endif
6285    int F77_DUMMY_MAIN() { return 1; }
6286 #endif
6287 int
6288 main ()
6289 {
6290 crypt ();
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297   (eval $ac_link) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } &&
6301          { ac_try='test -s conftest$ac_exeext'
6302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303   (eval $ac_try) 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }; }; then
6307   ac_cv_search_crypt="-l$ac_lib"
6308 break
6309 else
6310   echo "$as_me: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 fi
6313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6314   done
6315 fi
6316 LIBS=$ac_func_search_save_LIBS
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6319 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6320 if test "$ac_cv_search_crypt" != no; then
6321   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6322
6323 fi
6324
6325 # BeOS:
6326
6327 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6328 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6329 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   ac_check_lib_save_LIBS=$LIBS
6333 LIBS="-lbind  $LIBS"
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6336 #include "confdefs.h"
6337
6338 /* Override any gcc2 internal prototype to avoid an error.  */
6339 #ifdef __cplusplus
6340 extern "C"
6341 #endif
6342 /* We use char because int might match the return type of a gcc2
6343    builtin and then its argument prototype would still apply.  */
6344 char __inet_ntoa ();
6345 #ifdef F77_DUMMY_MAIN
6346 #  ifdef __cplusplus
6347      extern "C"
6348 #  endif
6349    int F77_DUMMY_MAIN() { return 1; }
6350 #endif
6351 int
6352 main ()
6353 {
6354 __inet_ntoa ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext conftest$ac_exeext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361   (eval $ac_link) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -s conftest$ac_exeext'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   ac_cv_lib_bind___inet_ntoa=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6375 ac_cv_lib_bind___inet_ntoa=no
6376 fi
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6379 fi
6380 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6381 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6382 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6383   cat >>confdefs.h <<_ACEOF
6384 #define HAVE_LIBBIND 1
6385 _ACEOF
6386
6387   LIBS="-lbind $LIBS"
6388
6389 fi
6390
6391 # Solaris:
6392 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6393 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6394 if test "${ac_cv_search_fdatasync+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   ac_func_search_save_LIBS=$LIBS
6398 ac_cv_search_fdatasync=no
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6402
6403 /* Override any gcc2 internal prototype to avoid an error.  */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408    builtin and then its argument prototype would still apply.  */
6409 char fdatasync ();
6410 #ifdef F77_DUMMY_MAIN
6411 #  ifdef __cplusplus
6412      extern "C"
6413 #  endif
6414    int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6416 int
6417 main ()
6418 {
6419 fdatasync ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } &&
6430          { ac_try='test -s conftest$ac_exeext'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   ac_cv_search_fdatasync="none required"
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_fdatasync" = no; then
6443   for ac_lib in rt posix4; do
6444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6445     cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6448
6449 /* Override any gcc2 internal prototype to avoid an error.  */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 /* We use char because int might match the return type of a gcc2
6454    builtin and then its argument prototype would still apply.  */
6455 char fdatasync ();
6456 #ifdef F77_DUMMY_MAIN
6457 #  ifdef __cplusplus
6458      extern "C"
6459 #  endif
6460    int F77_DUMMY_MAIN() { return 1; }
6461 #endif
6462 int
6463 main ()
6464 {
6465 fdatasync ();
6466   ;
6467   return 0;
6468 }
6469 _ACEOF
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472   (eval $ac_link) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -s conftest$ac_exeext'
6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_cv_search_fdatasync="-l$ac_lib"
6483 break
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 fi
6488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489   done
6490 fi
6491 LIBS=$ac_func_search_save_LIBS
6492 fi
6493 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6494 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6495 if test "$ac_cv_search_fdatasync" != no; then
6496   test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6497
6498 fi
6499
6500
6501 if test "$with_readline" = yes; then
6502
6503 echo "$as_me:$LINENO: checking for readline" >&5
6504 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6505
6506 if test "${pgac_cv_check_readline+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   pgac_cv_check_readline=no
6510 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6511   for pgac_rllib in -lreadline -ledit ; do
6512     pgac_save_LIBS=$LIBS
6513     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6514     cat >conftest.$ac_ext <<_ACEOF
6515 #line $LINENO "configure"
6516 #include "confdefs.h"
6517
6518 /* Override any gcc2 internal prototype to avoid an error.  */
6519 #ifdef __cplusplus
6520 extern "C"
6521 #endif
6522 /* We use char because int might match the return type of a gcc2
6523    builtin and then its argument prototype would still apply.  */
6524 char readline ();
6525 #ifdef F77_DUMMY_MAIN
6526 #  ifdef __cplusplus
6527      extern "C"
6528 #  endif
6529    int F77_DUMMY_MAIN() { return 1; }
6530 #endif
6531 int
6532 main ()
6533 {
6534 readline ();
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541   (eval $ac_link) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); } &&
6545          { ac_try='test -s conftest$ac_exeext'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551
6552       # NetBSD and OpenBSD have a broken linker that does not
6553       # recognize dependent libraries
6554       case $host_os in netbsd* | openbsd* )
6555         case $pgac_lib in
6556           *curses*) ;;
6557           *) pgac_lib=" -lcurses" ;;
6558         esac
6559       esac
6560
6561       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6562       break 2
6563
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6567 fi
6568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6569     LIBS=$pgac_save_LIBS
6570   done
6571 done
6572 LIBS=$pgac_save_LIBS
6573
6574 fi
6575
6576 if test "$pgac_cv_check_readline" != no ; then
6577
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_LIBREADLINE 1
6580 _ACEOF
6581
6582   LIBS="$pgac_cv_check_readline $LIBS"
6583   echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6584 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6585 else
6586   echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6588 fi
6589   if test x"$pgac_cv_check_readline" = x"no"; then
6590     { { echo "$as_me:$LINENO: error: readline library not found
6591 Use --without-readline to disable readline support." >&5
6592 echo "$as_me: error: readline library not found
6593 Use --without-readline to disable readline support." >&2;}
6594    { (exit 1); exit 1; }; }
6595   fi
6596 fi
6597
6598 if test "$with_zlib" = yes; then
6599
6600 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6601 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6602 if test "${ac_cv_lib_z_inflate+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-lz  $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 #line $LINENO "configure"
6609 #include "confdefs.h"
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char inflate ();
6618 #ifdef F77_DUMMY_MAIN
6619 #  ifdef __cplusplus
6620      extern "C"
6621 #  endif
6622    int F77_DUMMY_MAIN() { return 1; }
6623 #endif
6624 int
6625 main ()
6626 {
6627 inflate ();
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634   (eval $ac_link) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -s conftest$ac_exeext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_cv_lib_z_inflate=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 ac_cv_lib_z_inflate=no
6649 fi
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6652 fi
6653 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6654 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6655 if test $ac_cv_lib_z_inflate = yes; then
6656   cat >>confdefs.h <<_ACEOF
6657 #define HAVE_LIBZ 1
6658 _ACEOF
6659
6660   LIBS="-lz $LIBS"
6661
6662 else
6663   { { echo "$as_me:$LINENO: error: zlib library not found
6664 Use --without-zlib to disable zlib support." >&5
6665 echo "$as_me: error: zlib library not found
6666 Use --without-zlib to disable zlib support." >&2;}
6667    { (exit 1); exit 1; }; }
6668 fi
6669
6670 fi
6671
6672 if test "$with_krb4" = yes ; then
6673
6674 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6675 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6676 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   ac_check_lib_save_LIBS=$LIBS
6680 LIBS="-ldes  $LIBS"
6681 cat >conftest.$ac_ext <<_ACEOF
6682 #line $LINENO "configure"
6683 #include "confdefs.h"
6684
6685 /* Override any gcc2 internal prototype to avoid an error.  */
6686 #ifdef __cplusplus
6687 extern "C"
6688 #endif
6689 /* We use char because int might match the return type of a gcc2
6690    builtin and then its argument prototype would still apply.  */
6691 char des_encrypt ();
6692 #ifdef F77_DUMMY_MAIN
6693 #  ifdef __cplusplus
6694      extern "C"
6695 #  endif
6696    int F77_DUMMY_MAIN() { return 1; }
6697 #endif
6698 int
6699 main ()
6700 {
6701 des_encrypt ();
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708   (eval $ac_link) 2>&5
6709   ac_status=$?
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } &&
6712          { ac_try='test -s conftest$ac_exeext'
6713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714   (eval $ac_try) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); }; }; then
6718   ac_cv_lib_des_des_encrypt=yes
6719 else
6720   echo "$as_me: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 ac_cv_lib_des_des_encrypt=no
6723 fi
6724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6726 fi
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6728 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6729 if test $ac_cv_lib_des_des_encrypt = yes; then
6730   cat >>confdefs.h <<_ACEOF
6731 #define HAVE_LIBDES 1
6732 _ACEOF
6733
6734   LIBS="-ldes $LIBS"
6735
6736 else
6737   { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6738 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6739    { (exit 1); exit 1; }; }
6740 fi
6741
6742
6743 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6744 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6745 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   ac_check_lib_save_LIBS=$LIBS
6749 LIBS="-lkrb  $LIBS"
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6753
6754 /* Override any gcc2 internal prototype to avoid an error.  */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 /* We use char because int might match the return type of a gcc2
6759    builtin and then its argument prototype would still apply.  */
6760 char krb_sendauth ();
6761 #ifdef F77_DUMMY_MAIN
6762 #  ifdef __cplusplus
6763      extern "C"
6764 #  endif
6765    int F77_DUMMY_MAIN() { return 1; }
6766 #endif
6767 int
6768 main ()
6769 {
6770 krb_sendauth ();
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777   (eval $ac_link) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -s conftest$ac_exeext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_cv_lib_krb_krb_sendauth=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 ac_cv_lib_krb_krb_sendauth=no
6792 fi
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794 LIBS=$ac_check_lib_save_LIBS
6795 fi
6796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6797 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6798 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6799   cat >>confdefs.h <<_ACEOF
6800 #define HAVE_LIBKRB 1
6801 _ACEOF
6802
6803   LIBS="-lkrb $LIBS"
6804
6805 else
6806   { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6807 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6808    { (exit 1); exit 1; }; }
6809 fi
6810
6811 fi
6812
6813 if test "$with_krb5" = yes ; then
6814   echo "$as_me:$LINENO: checking for library containing com_err" >&5
6815 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6816 if test "${ac_cv_search_com_err+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   ac_func_search_save_LIBS=$LIBS
6820 ac_cv_search_com_err=no
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 #include "confdefs.h"
6824
6825 /* Override any gcc2 internal prototype to avoid an error.  */
6826 #ifdef __cplusplus
6827 extern "C"
6828 #endif
6829 /* We use char because int might match the return type of a gcc2
6830    builtin and then its argument prototype would still apply.  */
6831 char com_err ();
6832 #ifdef F77_DUMMY_MAIN
6833 #  ifdef __cplusplus
6834      extern "C"
6835 #  endif
6836    int F77_DUMMY_MAIN() { return 1; }
6837 #endif
6838 int
6839 main ()
6840 {
6841 com_err ();
6842   ;
6843   return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest.$ac_objext conftest$ac_exeext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848   (eval $ac_link) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } &&
6852          { ac_try='test -s conftest$ac_exeext'
6853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854   (eval $ac_try) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   ac_cv_search_com_err="none required"
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 fi
6863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6864 if test "$ac_cv_search_com_err" = no; then
6865   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6867     cat >conftest.$ac_ext <<_ACEOF
6868 #line $LINENO "configure"
6869 #include "confdefs.h"
6870
6871 /* Override any gcc2 internal prototype to avoid an error.  */
6872 #ifdef __cplusplus
6873 extern "C"
6874 #endif
6875 /* We use char because int might match the return type of a gcc2
6876    builtin and then its argument prototype would still apply.  */
6877 char com_err ();
6878 #ifdef F77_DUMMY_MAIN
6879 #  ifdef __cplusplus
6880      extern "C"
6881 #  endif
6882    int F77_DUMMY_MAIN() { return 1; }
6883 #endif
6884 int
6885 main ()
6886 {
6887 com_err ();
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6894   (eval $ac_link) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } &&
6898          { ac_try='test -s conftest$ac_exeext'
6899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_search_com_err="-l$ac_lib"
6905 break
6906 else
6907   echo "$as_me: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 fi
6910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6911   done
6912 fi
6913 LIBS=$ac_func_search_save_LIBS
6914 fi
6915 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6916 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6917 if test "$ac_cv_search_com_err" != no; then
6918   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6919
6920 else
6921   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6922 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6923    { (exit 1); exit 1; }; }
6924 fi
6925
6926   echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6927 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6928 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   ac_func_search_save_LIBS=$LIBS
6932 ac_cv_search_krb5_encrypt=no
6933 cat >conftest.$ac_ext <<_ACEOF
6934 #line $LINENO "configure"
6935 #include "confdefs.h"
6936
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 #ifdef __cplusplus
6939 extern "C"
6940 #endif
6941 /* We use char because int might match the return type of a gcc2
6942    builtin and then its argument prototype would still apply.  */
6943 char krb5_encrypt ();
6944 #ifdef F77_DUMMY_MAIN
6945 #  ifdef __cplusplus
6946      extern "C"
6947 #  endif
6948    int F77_DUMMY_MAIN() { return 1; }
6949 #endif
6950 int
6951 main ()
6952 {
6953 krb5_encrypt ();
6954   ;
6955   return 0;
6956 }
6957 _ACEOF
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960   (eval $ac_link) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); } &&
6964          { ac_try='test -s conftest$ac_exeext'
6965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966   (eval $ac_try) 2>&5
6967   ac_status=$?
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); }; }; then
6970   ac_cv_search_krb5_encrypt="none required"
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 cat conftest.$ac_ext >&5
6974 fi
6975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6976 if test "$ac_cv_search_krb5_encrypt" = no; then
6977   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6979     cat >conftest.$ac_ext <<_ACEOF
6980 #line $LINENO "configure"
6981 #include "confdefs.h"
6982
6983 /* Override any gcc2 internal prototype to avoid an error.  */
6984 #ifdef __cplusplus
6985 extern "C"
6986 #endif
6987 /* We use char because int might match the return type of a gcc2
6988    builtin and then its argument prototype would still apply.  */
6989 char krb5_encrypt ();
6990 #ifdef F77_DUMMY_MAIN
6991 #  ifdef __cplusplus
6992      extern "C"
6993 #  endif
6994    int F77_DUMMY_MAIN() { return 1; }
6995 #endif
6996 int
6997 main ()
6998 {
6999 krb5_encrypt ();
7000   ;
7001   return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006   (eval $ac_link) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -s conftest$ac_exeext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_cv_search_krb5_encrypt="-l$ac_lib"
7017 break
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7021 fi
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7023   done
7024 fi
7025 LIBS=$ac_func_search_save_LIBS
7026 fi
7027 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
7028 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
7029 if test "$ac_cv_search_krb5_encrypt" != no; then
7030   test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
7031
7032 else
7033   { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7034 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7035    { (exit 1); exit 1; }; }
7036 fi
7037
7038   echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7039 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7040 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   ac_func_search_save_LIBS=$LIBS
7044 ac_cv_search_krb5_sendauth=no
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 #include "confdefs.h"
7048
7049 /* Override any gcc2 internal prototype to avoid an error.  */
7050 #ifdef __cplusplus
7051 extern "C"
7052 #endif
7053 /* We use char because int might match the return type of a gcc2
7054    builtin and then its argument prototype would still apply.  */
7055 char krb5_sendauth ();
7056 #ifdef F77_DUMMY_MAIN
7057 #  ifdef __cplusplus
7058      extern "C"
7059 #  endif
7060    int F77_DUMMY_MAIN() { return 1; }
7061 #endif
7062 int
7063 main ()
7064 {
7065 krb5_sendauth ();
7066   ;
7067   return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072   (eval $ac_link) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } &&
7076          { ac_try='test -s conftest$ac_exeext'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; }; then
7082   ac_cv_search_krb5_sendauth="none required"
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 fi
7087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7088 if test "$ac_cv_search_krb5_sendauth" = no; then
7089   for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7090     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7091     cat >conftest.$ac_ext <<_ACEOF
7092 #line $LINENO "configure"
7093 #include "confdefs.h"
7094
7095 /* Override any gcc2 internal prototype to avoid an error.  */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100    builtin and then its argument prototype would still apply.  */
7101 char krb5_sendauth ();
7102 #ifdef F77_DUMMY_MAIN
7103 #  ifdef __cplusplus
7104      extern "C"
7105 #  endif
7106    int F77_DUMMY_MAIN() { return 1; }
7107 #endif
7108 int
7109 main ()
7110 {
7111 krb5_sendauth ();
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   ac_cv_search_krb5_sendauth="-l$ac_lib"
7129 break
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 fi
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7135   done
7136 fi
7137 LIBS=$ac_func_search_save_LIBS
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7140 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7141 if test "$ac_cv_search_krb5_sendauth" != no; then
7142   test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7143
7144 else
7145   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7146 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7147    { (exit 1); exit 1; }; }
7148 fi
7149
7150 fi
7151
7152 if test "$with_openssl" = yes ; then
7153
7154 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7155 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7156 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   ac_check_lib_save_LIBS=$LIBS
7160 LIBS="-lcrypto  $LIBS"
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 #include "confdefs.h"
7164
7165 /* Override any gcc2 internal prototype to avoid an error.  */
7166 #ifdef __cplusplus
7167 extern "C"
7168 #endif
7169 /* We use char because int might match the return type of a gcc2
7170    builtin and then its argument prototype would still apply.  */
7171 char CRYPTO_new_ex_data ();
7172 #ifdef F77_DUMMY_MAIN
7173 #  ifdef __cplusplus
7174      extern "C"
7175 #  endif
7176    int F77_DUMMY_MAIN() { return 1; }
7177 #endif
7178 int
7179 main ()
7180 {
7181 CRYPTO_new_ex_data ();
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } &&
7192          { ac_try='test -s conftest$ac_exeext'
7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7203 fi
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 LIBS=$ac_check_lib_save_LIBS
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7208 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7209 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7210   cat >>confdefs.h <<_ACEOF
7211 #define HAVE_LIBCRYPTO 1
7212 _ACEOF
7213
7214   LIBS="-lcrypto $LIBS"
7215
7216 else
7217   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7218 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7219    { (exit 1); exit 1; }; }
7220 fi
7221
7222
7223 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7224 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7225 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lssl  $LIBS"
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7233
7234 /* Override any gcc2 internal prototype to avoid an error.  */
7235 #ifdef __cplusplus
7236 extern "C"
7237 #endif
7238 /* We use char because int might match the return type of a gcc2
7239    builtin and then its argument prototype would still apply.  */
7240 char SSL_library_init ();
7241 #ifdef F77_DUMMY_MAIN
7242 #  ifdef __cplusplus
7243      extern "C"
7244 #  endif
7245    int F77_DUMMY_MAIN() { return 1; }
7246 #endif
7247 int
7248 main ()
7249 {
7250 SSL_library_init ();
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257   (eval $ac_link) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -s conftest$ac_exeext'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; }; then
7267   ac_cv_lib_ssl_SSL_library_init=yes
7268 else
7269   echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_cv_lib_ssl_SSL_library_init=no
7272 fi
7273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7274 LIBS=$ac_check_lib_save_LIBS
7275 fi
7276 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7277 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7278 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7279   cat >>confdefs.h <<_ACEOF
7280 #define HAVE_LIBSSL 1
7281 _ACEOF
7282
7283   LIBS="-lssl $LIBS"
7284
7285 else
7286   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7287 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7288    { (exit 1); exit 1; }; }
7289 fi
7290
7291 fi
7292
7293 if test "$with_pam" = yes ; then
7294
7295 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7296 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7297 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   ac_check_lib_save_LIBS=$LIBS
7301 LIBS="-lpam  $LIBS"
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7305
7306 /* Override any gcc2 internal prototype to avoid an error.  */
7307 #ifdef __cplusplus
7308 extern "C"
7309 #endif
7310 /* We use char because int might match the return type of a gcc2
7311    builtin and then its argument prototype would still apply.  */
7312 char pam_start ();
7313 #ifdef F77_DUMMY_MAIN
7314 #  ifdef __cplusplus
7315      extern "C"
7316 #  endif
7317    int F77_DUMMY_MAIN() { return 1; }
7318 #endif
7319 int
7320 main ()
7321 {
7322 pam_start ();
7323   ;
7324   return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329   (eval $ac_link) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } &&
7333          { ac_try='test -s conftest$ac_exeext'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_cv_lib_pam_pam_start=yes
7340 else
7341   echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5
7343 ac_cv_lib_pam_pam_start=no
7344 fi
7345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7346 LIBS=$ac_check_lib_save_LIBS
7347 fi
7348 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7349 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7350 if test $ac_cv_lib_pam_pam_start = yes; then
7351   cat >>confdefs.h <<_ACEOF
7352 #define HAVE_LIBPAM 1
7353 _ACEOF
7354
7355   LIBS="-lpam $LIBS"
7356
7357 else
7358   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7359 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7360    { (exit 1); exit 1; }; }
7361 fi
7362
7363 fi
7364
7365
7366 ##
7367 ## Header files
7368 ##
7369
7370 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7371 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7372 if test "${ac_cv_header_stdc+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7378 #include <stdlib.h>
7379 #include <stdarg.h>
7380 #include <string.h>
7381 #include <float.h>
7382
7383 _ACEOF
7384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386   ac_status=$?
7387   egrep -v '^ *\+' conftest.er1 >conftest.err
7388   rm -f conftest.er1
7389   cat conftest.err >&5
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } >/dev/null; then
7392   if test -s conftest.err; then
7393     ac_cpp_err=$ac_c_preproc_warn_flag
7394   else
7395     ac_cpp_err=
7396   fi
7397 else
7398   ac_cpp_err=yes
7399 fi
7400 if test -z "$ac_cpp_err"; then
7401   ac_cv_header_stdc=yes
7402 else
7403   echo "$as_me: failed program was:" >&5
7404   cat conftest.$ac_ext >&5
7405   ac_cv_header_stdc=no
7406 fi
7407 rm -f conftest.err conftest.$ac_ext
7408
7409 if test $ac_cv_header_stdc = yes; then
7410   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7411   cat >conftest.$ac_ext <<_ACEOF
7412 #line $LINENO "configure"
7413 #include "confdefs.h"
7414 #include <string.h>
7415
7416 _ACEOF
7417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7418   egrep "memchr" >/dev/null 2>&1; then
7419   :
7420 else
7421   ac_cv_header_stdc=no
7422 fi
7423 rm -f conftest*
7424
7425 fi
7426
7427 if test $ac_cv_header_stdc = yes; then
7428   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7429   cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 #include <stdlib.h>
7433
7434 _ACEOF
7435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7436   egrep "free" >/dev/null 2>&1; then
7437   :
7438 else
7439   ac_cv_header_stdc=no
7440 fi
7441 rm -f conftest*
7442
7443 fi
7444
7445 if test $ac_cv_header_stdc = yes; then
7446   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7447   if test "$cross_compiling" = yes; then
7448   :
7449 else
7450   cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7452 #include "confdefs.h"
7453 #include <ctype.h>
7454 #if ((' ' & 0x0FF) == 0x020)
7455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7457 #else
7458 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7459                      || ('j' <= (c) && (c) <= 'r') \
7460                      || ('s' <= (c) && (c) <= 'z'))
7461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7462 #endif
7463
7464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7465 int
7466 main ()
7467 {
7468   int i;
7469   for (i = 0; i < 256; i++)
7470     if (XOR (islower (i), ISLOWER (i))
7471         || toupper (i) != TOUPPER (i))
7472       exit(2);
7473   exit (0);
7474 }
7475 _ACEOF
7476 rm -f conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478   (eval $ac_link) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483   (eval $ac_try) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }; }; then
7487   :
7488 else
7489   echo "$as_me: program exited with status $ac_status" >&5
7490 echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ( exit $ac_status )
7493 ac_cv_header_stdc=no
7494 fi
7495 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 fi
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7500 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7501 if test $ac_cv_header_stdc = yes; then
7502
7503 cat >>confdefs.h <<\_ACEOF
7504 #define STDC_HEADERS 1
7505 _ACEOF
7506
7507 fi
7508
7509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7520                   inttypes.h stdint.h unistd.h
7521 do
7522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   cat >conftest.$ac_ext <<_ACEOF
7529 #line $LINENO "configure"
7530 #include "confdefs.h"
7531 $ac_includes_default
7532
7533 #include <$ac_header>
7534 _ACEOF
7535 rm -f conftest.$ac_objext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537   (eval $ac_compile) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } &&
7541          { ac_try='test -s conftest.$ac_objext'
7542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543   (eval $ac_try) 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; }; then
7547   eval "$as_ac_Header=yes"
7548 else
7549   echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 eval "$as_ac_Header=no"
7552 fi
7553 rm -f conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7558   cat >>confdefs.h <<_ACEOF
7559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7560 _ACEOF
7561
7562 fi
7563
7564 done
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 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
7586 do
7587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589   echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 fi
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596 else
7597   # Is the header compilable?
7598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 #include "confdefs.h"
7603 $ac_includes_default
7604 #include <$ac_header>
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608   (eval $ac_compile) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } &&
7612          { ac_try='test -s conftest.$ac_objext'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; }; then
7618   ac_header_compiler=yes
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 ac_header_compiler=no
7623 fi
7624 rm -f conftest.$ac_objext conftest.$ac_ext
7625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7626 echo "${ECHO_T}$ac_header_compiler" >&6
7627
7628 # Is the header present?
7629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7631 cat >conftest.$ac_ext <<_ACEOF
7632 #line $LINENO "configure"
7633 #include "confdefs.h"
7634 #include <$ac_header>
7635 _ACEOF
7636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7638   ac_status=$?
7639   egrep -v '^ *\+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } >/dev/null; then
7644   if test -s conftest.err; then
7645     ac_cpp_err=$ac_c_preproc_warn_flag
7646   else
7647     ac_cpp_err=
7648   fi
7649 else
7650   ac_cpp_err=yes
7651 fi
7652 if test -z "$ac_cpp_err"; then
7653   ac_header_preproc=yes
7654 else
7655   echo "$as_me: failed program was:" >&5
7656   cat conftest.$ac_ext >&5
7657   ac_header_preproc=no
7658 fi
7659 rm -f conftest.err conftest.$ac_ext
7660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7661 echo "${ECHO_T}$ac_header_preproc" >&6
7662
7663 # So?  What about this header?
7664 case $ac_header_compiler:$ac_header_preproc in
7665   yes:no )
7666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7670   no:yes )
7671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7673     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7677 esac
7678 echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   eval "$as_ac_Header=$ac_header_preproc"
7684 fi
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7687
7688 fi
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690   cat >>confdefs.h <<_ACEOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7692 _ACEOF
7693
7694 fi
7695
7696 done
7697
7698
7699 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7700 # netinet/in.h is included first.
7701
7702 for ac_header in netinet/in.h
7703 do
7704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7706   echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 fi
7711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 else
7714   # Is the header compilable?
7715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 #include "confdefs.h"
7720 $ac_includes_default
7721 #include <$ac_header>
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725   (eval $ac_compile) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); } &&
7729          { ac_try='test -s conftest.$ac_objext'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; }; then
7735   ac_header_compiler=yes
7736 else
7737   echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 ac_header_compiler=no
7740 fi
7741 rm -f conftest.$ac_objext conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7743 echo "${ECHO_T}$ac_header_compiler" >&6
7744
7745 # Is the header present?
7746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 #include "confdefs.h"
7751 #include <$ac_header>
7752 _ACEOF
7753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7755   ac_status=$?
7756   egrep -v '^ *\+' conftest.er1 >conftest.err
7757   rm -f conftest.er1
7758   cat conftest.err >&5
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } >/dev/null; then
7761   if test -s conftest.err; then
7762     ac_cpp_err=$ac_c_preproc_warn_flag
7763   else
7764     ac_cpp_err=
7765   fi
7766 else
7767   ac_cpp_err=yes
7768 fi
7769 if test -z "$ac_cpp_err"; then
7770   ac_header_preproc=yes
7771 else
7772   echo "$as_me: failed program was:" >&5
7773   cat conftest.$ac_ext >&5
7774   ac_header_preproc=no
7775 fi
7776 rm -f conftest.err conftest.$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7778 echo "${ECHO_T}$ac_header_preproc" >&6
7779
7780 # So?  What about this header?
7781 case $ac_header_compiler:$ac_header_preproc in
7782   yes:no )
7783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7787   no:yes )
7788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7790     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7794 esac
7795 echo "$as_me:$LINENO: checking for $ac_header" >&5
7796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   eval "$as_ac_Header=$ac_header_preproc"
7801 fi
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7804
7805 fi
7806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7807   cat >>confdefs.h <<_ACEOF
7808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 _ACEOF
7810
7811 fi
7812
7813 done
7814
7815
7816 for ac_header in netinet/tcp.h
7817 do
7818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7819 echo "$as_me:$LINENO: checking for $ac_header" >&5
7820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #ifdef HAVE_NETINET_IN_H
7829 #include <netinet/in.h>
7830 #endif
7831
7832
7833 #include <$ac_header>
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837   (eval $ac_compile) 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); } &&
7841          { ac_try='test -s conftest.$ac_objext'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; }; then
7847   eval "$as_ac_Header=yes"
7848 else
7849   echo "$as_me: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 eval "$as_ac_Header=no"
7852 fi
7853 rm -f conftest.$ac_objext conftest.$ac_ext
7854 fi
7855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858   cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 fi
7863
7864 done
7865
7866
7867 if test "$with_readline" = yes; then
7868
7869 for ac_header in readline/readline.h
7870 do
7871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7873   echo "$as_me:$LINENO: checking for $ac_header" >&5
7874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 fi
7878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7880 else
7881   # Is the header compilable?
7882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 #include "confdefs.h"
7887 $ac_includes_default
7888 #include <$ac_header>
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892   (eval $ac_compile) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } &&
7896          { ac_try='test -s conftest.$ac_objext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_header_compiler=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7906 ac_header_compiler=no
7907 fi
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7910 echo "${ECHO_T}$ac_header_compiler" >&6
7911
7912 # Is the header present?
7913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7915 cat >conftest.$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 #include <$ac_header>
7919 _ACEOF
7920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922   ac_status=$?
7923   egrep -v '^ *\+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } >/dev/null; then
7928   if test -s conftest.err; then
7929     ac_cpp_err=$ac_c_preproc_warn_flag
7930   else
7931     ac_cpp_err=
7932   fi
7933 else
7934   ac_cpp_err=yes
7935 fi
7936 if test -z "$ac_cpp_err"; then
7937   ac_header_preproc=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940   cat conftest.$ac_ext >&5
7941   ac_header_preproc=no
7942 fi
7943 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7945 echo "${ECHO_T}$ac_header_preproc" >&6
7946
7947 # So?  What about this header?
7948 case $ac_header_compiler:$ac_header_preproc in
7949   yes:no )
7950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7954   no:yes )
7955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7957     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7961 esac
7962 echo "$as_me:$LINENO: checking for $ac_header" >&5
7963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   eval "$as_ac_Header=$ac_header_preproc"
7968 fi
7969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971
7972 fi
7973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7974   cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976 _ACEOF
7977
7978 else
7979
7980 for ac_header in readline.h
7981 do
7982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7984   echo "$as_me:$LINENO: checking for $ac_header" >&5
7985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 fi
7989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7991 else
7992   # Is the header compilable?
7993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
7998 $ac_includes_default
7999 #include <$ac_header>
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -s conftest.$ac_objext'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; }; then
8013   ac_header_compiler=yes
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8017 ac_header_compiler=no
8018 fi
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8021 echo "${ECHO_T}$ac_header_compiler" >&6
8022
8023 # Is the header present?
8024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8029 #include <$ac_header>
8030 _ACEOF
8031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8033   ac_status=$?
8034   egrep -v '^ *\+' conftest.er1 >conftest.err
8035   rm -f conftest.er1
8036   cat conftest.err >&5
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); } >/dev/null; then
8039   if test -s conftest.err; then
8040     ac_cpp_err=$ac_c_preproc_warn_flag
8041   else
8042     ac_cpp_err=
8043   fi
8044 else
8045   ac_cpp_err=yes
8046 fi
8047 if test -z "$ac_cpp_err"; then
8048   ac_header_preproc=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051   cat conftest.$ac_ext >&5
8052   ac_header_preproc=no
8053 fi
8054 rm -f conftest.err conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8057
8058 # So?  What about this header?
8059 case $ac_header_compiler:$ac_header_preproc in
8060   yes:no )
8061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8065   no:yes )
8066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8072 esac
8073 echo "$as_me:$LINENO: checking for $ac_header" >&5
8074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   eval "$as_ac_Header=$ac_header_preproc"
8079 fi
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082
8083 fi
8084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8085   cat >>confdefs.h <<_ACEOF
8086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8087 _ACEOF
8088
8089 else
8090   { { echo "$as_me:$LINENO: error: readline header not found
8091 Use --without-readline to disable readline support." >&5
8092 echo "$as_me: error: readline header not found
8093 Use --without-readline to disable readline support." >&2;}
8094    { (exit 1); exit 1; }; }
8095 fi
8096
8097 done
8098
8099 fi
8100
8101 done
8102
8103
8104 for ac_header in readline/history.h
8105 do
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108   echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 fi
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8115 else
8116   # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_header_compiler=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157   ac_status=$?
8158   egrep -v '^ *\+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } >/dev/null; then
8163   if test -s conftest.err; then
8164     ac_cpp_err=$ac_c_preproc_warn_flag
8165   else
8166     ac_cpp_err=
8167   fi
8168 else
8169   ac_cpp_err=yes
8170 fi
8171 if test -z "$ac_cpp_err"; then
8172   ac_header_preproc=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   ac_header_preproc=no
8177 fi
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8181
8182 # So?  What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8184   yes:no )
8185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8189   no:yes )
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8196 esac
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   eval "$as_ac_Header=$ac_header_preproc"
8203 fi
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206
8207 fi
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209   cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 _ACEOF
8212
8213 else
8214
8215 for ac_header in history.h
8216 do
8217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219   echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 fi
8224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8226 else
8227   # Is the header compilable?
8228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 #include "confdefs.h"
8233 $ac_includes_default
8234 #include <$ac_header>
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238   (eval $ac_compile) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } &&
8242          { ac_try='test -s conftest.$ac_objext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_header_compiler=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8252 ac_header_compiler=no
8253 fi
8254 rm -f conftest.$ac_objext conftest.$ac_ext
8255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8256 echo "${ECHO_T}$ac_header_compiler" >&6
8257
8258 # Is the header present?
8259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8262 #line $LINENO "configure"
8263 #include "confdefs.h"
8264 #include <$ac_header>
8265 _ACEOF
8266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8268   ac_status=$?
8269   egrep -v '^ *\+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } >/dev/null; then
8274   if test -s conftest.err; then
8275     ac_cpp_err=$ac_c_preproc_warn_flag
8276   else
8277     ac_cpp_err=
8278   fi
8279 else
8280   ac_cpp_err=yes
8281 fi
8282 if test -z "$ac_cpp_err"; then
8283   ac_header_preproc=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286   cat conftest.$ac_ext >&5
8287   ac_header_preproc=no
8288 fi
8289 rm -f conftest.err conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8291 echo "${ECHO_T}$ac_header_preproc" >&6
8292
8293 # So?  What about this header?
8294 case $ac_header_compiler:$ac_header_preproc in
8295   yes:no )
8296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8300   no:yes )
8301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8303     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8307 esac
8308 echo "$as_me:$LINENO: checking for $ac_header" >&5
8309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   eval "$as_ac_Header=$ac_header_preproc"
8314 fi
8315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8317
8318 fi
8319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8320   cat >>confdefs.h <<_ACEOF
8321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8322 _ACEOF
8323
8324 else
8325   { { echo "$as_me:$LINENO: error: history header not found
8326 Use --without-readline to disable readline support." >&5
8327 echo "$as_me: error: history header not found
8328 Use --without-readline to disable readline support." >&2;}
8329    { (exit 1); exit 1; }; }
8330 fi
8331
8332 done
8333
8334 fi
8335
8336 done
8337
8338 fi
8339
8340 if test "$with_zlib" = yes; then
8341   if test "${ac_cv_header_zlib_h+set}" = set; then
8342   echo "$as_me:$LINENO: checking for zlib.h" >&5
8343 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8344 if test "${ac_cv_header_zlib_h+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 fi
8347 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8348 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8349 else
8350   # Is the header compilable?
8351 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8352 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8355 #include "confdefs.h"
8356 $ac_includes_default
8357 #include <zlib.h>
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361   (eval $ac_compile) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -s conftest.$ac_objext'
8366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367   (eval $ac_try) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; }; then
8371   ac_header_compiler=yes
8372 else
8373   echo "$as_me: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 ac_header_compiler=no
8376 fi
8377 rm -f conftest.$ac_objext conftest.$ac_ext
8378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8379 echo "${ECHO_T}$ac_header_compiler" >&6
8380
8381 # Is the header present?
8382 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8383 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 #include "confdefs.h"
8387 #include <zlib.h>
8388 _ACEOF
8389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8390   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8391   ac_status=$?
8392   egrep -v '^ *\+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } >/dev/null; then
8397   if test -s conftest.err; then
8398     ac_cpp_err=$ac_c_preproc_warn_flag
8399   else
8400     ac_cpp_err=
8401   fi
8402 else
8403   ac_cpp_err=yes
8404 fi
8405 if test -z "$ac_cpp_err"; then
8406   ac_header_preproc=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409   cat conftest.$ac_ext >&5
8410   ac_header_preproc=no
8411 fi
8412 rm -f conftest.err conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8414 echo "${ECHO_T}$ac_header_preproc" >&6
8415
8416 # So?  What about this header?
8417 case $ac_header_compiler:$ac_header_preproc in
8418   yes:no )
8419     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8420 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8422 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8423   no:yes )
8424     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8428     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8429 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8430 esac
8431 echo "$as_me:$LINENO: checking for zlib.h" >&5
8432 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8433 if test "${ac_cv_header_zlib_h+set}" = set; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436   ac_cv_header_zlib_h=$ac_header_preproc
8437 fi
8438 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8439 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8440
8441 fi
8442 if test $ac_cv_header_zlib_h = yes; then
8443   :
8444 else
8445   { { echo "$as_me:$LINENO: error: zlib header not found
8446 Use --without-zlib to disable zlib support." >&5
8447 echo "$as_me: error: zlib header not found
8448 Use --without-zlib to disable zlib support." >&2;}
8449    { (exit 1); exit 1; }; }
8450 fi
8451
8452
8453 fi
8454
8455 if test "$with_krb4" = yes ; then
8456   if test "${ac_cv_header_krb_h+set}" = set; then
8457   echo "$as_me:$LINENO: checking for krb.h" >&5
8458 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8459 if test "${ac_cv_header_krb_h+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8463 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8464 else
8465   # Is the header compilable?
8466 echo "$as_me:$LINENO: checking krb.h usability" >&5
8467 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 $ac_includes_default
8472 #include <krb.h>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -s conftest.$ac_objext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_header_compiler=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 ac_header_compiler=no
8491 fi
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8495
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking krb.h presence" >&5
8498 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <krb.h>
8503 _ACEOF
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506   ac_status=$?
8507   egrep -v '^ *\+' conftest.er1 >conftest.err
8508   rm -f conftest.er1
8509   cat conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } >/dev/null; then
8512   if test -s conftest.err; then
8513     ac_cpp_err=$ac_c_preproc_warn_flag
8514   else
8515     ac_cpp_err=
8516   fi
8517 else
8518   ac_cpp_err=yes
8519 fi
8520 if test -z "$ac_cpp_err"; then
8521   ac_header_preproc=yes
8522 else
8523   echo "$as_me: failed program was:" >&5
8524   cat conftest.$ac_ext >&5
8525   ac_header_preproc=no
8526 fi
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8530
8531 # So?  What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8533   yes:no )
8534     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8538   no:yes )
8539     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8545 esac
8546 echo "$as_me:$LINENO: checking for krb.h" >&5
8547 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8548 if test "${ac_cv_header_krb_h+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   ac_cv_header_krb_h=$ac_header_preproc
8552 fi
8553 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8554 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8555
8556 fi
8557 if test $ac_cv_header_krb_h = yes; then
8558   :
8559 else
8560   { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8561 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8562    { (exit 1); exit 1; }; }
8563 fi
8564
8565
8566 fi
8567
8568 if test "$with_krb5" = yes ; then
8569   if test "${ac_cv_header_krb5_h+set}" = set; then
8570   echo "$as_me:$LINENO: checking for krb5.h" >&5
8571 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8572 if test "${ac_cv_header_krb5_h+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 fi
8575 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8576 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8577 else
8578   # Is the header compilable?
8579 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8580 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584 $ac_includes_default
8585 #include <krb5.h>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589   (eval $ac_compile) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -s conftest.$ac_objext'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; }; then
8599   ac_header_compiler=yes
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 ac_header_compiler=no
8604 fi
8605 rm -f conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8607 echo "${ECHO_T}$ac_header_compiler" >&6
8608
8609 # Is the header present?
8610 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8611 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8615 #include <krb5.h>
8616 _ACEOF
8617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8619   ac_status=$?
8620   egrep -v '^ *\+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } >/dev/null; then
8625   if test -s conftest.err; then
8626     ac_cpp_err=$ac_c_preproc_warn_flag
8627   else
8628     ac_cpp_err=
8629   fi
8630 else
8631   ac_cpp_err=yes
8632 fi
8633 if test -z "$ac_cpp_err"; then
8634   ac_header_preproc=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637   cat conftest.$ac_ext >&5
8638   ac_header_preproc=no
8639 fi
8640 rm -f conftest.err conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8642 echo "${ECHO_T}$ac_header_preproc" >&6
8643
8644 # So?  What about this header?
8645 case $ac_header_compiler:$ac_header_preproc in
8646   yes:no )
8647     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8648 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8651   no:yes )
8652     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8654     { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8656     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8657 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8658 esac
8659 echo "$as_me:$LINENO: checking for krb5.h" >&5
8660 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8661 if test "${ac_cv_header_krb5_h+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   ac_cv_header_krb5_h=$ac_header_preproc
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8668
8669 fi
8670 if test $ac_cv_header_krb5_h = yes; then
8671   :
8672 else
8673   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8674 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8675    { (exit 1); exit 1; }; }
8676 fi
8677
8678
8679   if test "${ac_cv_header_com_err_h+set}" = set; then
8680   echo "$as_me:$LINENO: checking for com_err.h" >&5
8681 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8682 if test "${ac_cv_header_com_err_h+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 fi
8685 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8686 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8687 else
8688   # Is the header compilable?
8689 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8690 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8694 $ac_includes_default
8695 #include <com_err.h>
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699   (eval $ac_compile) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_header_compiler=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 ac_header_compiler=no
8714 fi
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717 echo "${ECHO_T}$ac_header_compiler" >&6
8718
8719 # Is the header present?
8720 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8721 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <com_err.h>
8726 _ACEOF
8727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8729   ac_status=$?
8730   egrep -v '^ *\+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } >/dev/null; then
8735   if test -s conftest.err; then
8736     ac_cpp_err=$ac_c_preproc_warn_flag
8737   else
8738     ac_cpp_err=
8739   fi
8740 else
8741   ac_cpp_err=yes
8742 fi
8743 if test -z "$ac_cpp_err"; then
8744   ac_header_preproc=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747   cat conftest.$ac_ext >&5
8748   ac_header_preproc=no
8749 fi
8750 rm -f conftest.err conftest.$ac_ext
8751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8752 echo "${ECHO_T}$ac_header_preproc" >&6
8753
8754 # So?  What about this header?
8755 case $ac_header_compiler:$ac_header_preproc in
8756   yes:no )
8757     { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8758 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8759     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8760 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8761   no:yes )
8762     { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8768 esac
8769 echo "$as_me:$LINENO: checking for com_err.h" >&5
8770 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8771 if test "${ac_cv_header_com_err_h+set}" = set; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774   ac_cv_header_com_err_h=$ac_header_preproc
8775 fi
8776 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8777 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8778
8779 fi
8780 if test $ac_cv_header_com_err_h = yes; then
8781   :
8782 else
8783   { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8784 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8785    { (exit 1); exit 1; }; }
8786 fi
8787
8788
8789 fi
8790
8791 if test "$with_openssl" = yes ; then
8792   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8793   echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8794 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8795 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 fi
8798 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8799 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8800 else
8801   # Is the header compilable?
8802 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8803 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line $LINENO "configure"
8806 #include "confdefs.h"
8807 $ac_includes_default
8808 #include <openssl/ssl.h>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812   (eval $ac_compile) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } &&
8816          { ac_try='test -s conftest.$ac_objext'
8817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818   (eval $ac_try) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_header_compiler=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8826 ac_header_compiler=no
8827 fi
8828 rm -f conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8831
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8834 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838 #include <openssl/ssl.h>
8839 _ACEOF
8840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842   ac_status=$?
8843   egrep -v '^ *\+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } >/dev/null; then
8848   if test -s conftest.err; then
8849     ac_cpp_err=$ac_c_preproc_warn_flag
8850   else
8851     ac_cpp_err=
8852   fi
8853 else
8854   ac_cpp_err=yes
8855 fi
8856 if test -z "$ac_cpp_err"; then
8857   ac_header_preproc=yes
8858 else
8859   echo "$as_me: failed program was:" >&5
8860   cat conftest.$ac_ext >&5
8861   ac_header_preproc=no
8862 fi
8863 rm -f conftest.err conftest.$ac_ext
8864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8865 echo "${ECHO_T}$ac_header_preproc" >&6
8866
8867 # So?  What about this header?
8868 case $ac_header_compiler:$ac_header_preproc in
8869   yes:no )
8870     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8871 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8874   no:yes )
8875     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8876 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8878 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8881 esac
8882 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8883 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8884 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   ac_cv_header_openssl_ssl_h=$ac_header_preproc
8888 fi
8889 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8890 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8891
8892 fi
8893 if test $ac_cv_header_openssl_ssl_h = yes; then
8894   :
8895 else
8896   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8897 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8898    { (exit 1); exit 1; }; }
8899 fi
8900
8901
8902   if test "${ac_cv_header_openssl_err_h+set}" = set; then
8903   echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8904 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8905 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 fi
8908 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8909 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8910 else
8911   # Is the header compilable?
8912 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8913 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8916 #include "confdefs.h"
8917 $ac_includes_default
8918 #include <openssl/err.h>
8919 _ACEOF
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922   (eval $ac_compile) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   ac_header_compiler=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_header_compiler=no
8937 fi
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8941
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8944 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8947 #include "confdefs.h"
8948 #include <openssl/err.h>
8949 _ACEOF
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8952   ac_status=$?
8953   egrep -v '^ *\+' conftest.er1 >conftest.err
8954   rm -f conftest.er1
8955   cat conftest.err >&5
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); } >/dev/null; then
8958   if test -s conftest.err; then
8959     ac_cpp_err=$ac_c_preproc_warn_flag
8960   else
8961     ac_cpp_err=
8962   fi
8963 else
8964   ac_cpp_err=yes
8965 fi
8966 if test -z "$ac_cpp_err"; then
8967   ac_header_preproc=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970   cat conftest.$ac_ext >&5
8971   ac_header_preproc=no
8972 fi
8973 rm -f conftest.err conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8975 echo "${ECHO_T}$ac_header_preproc" >&6
8976
8977 # So?  What about this header?
8978 case $ac_header_compiler:$ac_header_preproc in
8979   yes:no )
8980     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8981 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8982     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8984   no:yes )
8985     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8987     { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8989     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8990 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8991 esac
8992 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8993 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8994 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   ac_cv_header_openssl_err_h=$ac_header_preproc
8998 fi
8999 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9000 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9001
9002 fi
9003 if test $ac_cv_header_openssl_err_h = yes; then
9004   :
9005 else
9006   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9007 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9008    { (exit 1); exit 1; }; }
9009 fi
9010
9011
9012 fi
9013
9014 if test "$with_pam" = yes ; then
9015   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9016   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9017 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9018 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 fi
9021 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9022 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9023 else
9024   # Is the header compilable?
9025 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9026 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9030 $ac_includes_default
9031 #include <security/pam_appl.h>
9032 _ACEOF
9033 rm -f conftest.$ac_objext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9035   (eval $ac_compile) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -s conftest.$ac_objext'
9040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041   (eval $ac_try) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; }; then
9045   ac_header_compiler=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 ac_header_compiler=no
9050 fi
9051 rm -f conftest.$ac_objext conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9053 echo "${ECHO_T}$ac_header_compiler" >&6
9054
9055 # Is the header present?
9056 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9057 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 #include "confdefs.h"
9061 #include <security/pam_appl.h>
9062 _ACEOF
9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9065   ac_status=$?
9066   egrep -v '^ *\+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } >/dev/null; then
9071   if test -s conftest.err; then
9072     ac_cpp_err=$ac_c_preproc_warn_flag
9073   else
9074     ac_cpp_err=
9075   fi
9076 else
9077   ac_cpp_err=yes
9078 fi
9079 if test -z "$ac_cpp_err"; then
9080   ac_header_preproc=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083   cat conftest.$ac_ext >&5
9084   ac_header_preproc=no
9085 fi
9086 rm -f conftest.err conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9088 echo "${ECHO_T}$ac_header_preproc" >&6
9089
9090 # So?  What about this header?
9091 case $ac_header_compiler:$ac_header_preproc in
9092   yes:no )
9093     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9094 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9095     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9096 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9097   no:yes )
9098     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9103 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9104 esac
9105 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9106 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9107 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_cv_header_security_pam_appl_h=$ac_header_preproc
9111 fi
9112 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9113 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9114
9115 fi
9116 if test $ac_cv_header_security_pam_appl_h = yes; then
9117   :
9118 else
9119   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9120 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9121    { (exit 1); exit 1; }; }
9122 fi
9123
9124
9125 fi
9126
9127
9128 ##
9129 ## Types, structures, compiler characteristics
9130 ##
9131
9132
9133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9135 if test "${ac_cv_c_const+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   cat >conftest.$ac_ext <<_ACEOF
9139 #line $LINENO "configure"
9140 #include "confdefs.h"
9141
9142 #ifdef F77_DUMMY_MAIN
9143 #  ifdef __cplusplus
9144      extern "C"
9145 #  endif
9146    int F77_DUMMY_MAIN() { return 1; }
9147 #endif
9148 int
9149 main ()
9150 {
9151 /* FIXME: Include the comments suggested by Paul. */
9152 #ifndef __cplusplus
9153   /* Ultrix mips cc rejects this.  */
9154   typedef int charset[2];
9155   const charset x;
9156   /* SunOS 4.1.1 cc rejects this.  */
9157   char const *const *ccp;
9158   char **p;
9159   /* NEC SVR4.0.2 mips cc rejects this.  */
9160   struct point {int x, y;};
9161   static struct point const zero = {0,0};
9162   /* AIX XL C 1.02.0.0 rejects this.
9163      It does not let you subtract one const X* pointer from another in
9164      an arm of an if-expression whose if-part is not a constant
9165      expression */
9166   const char *g = "string";
9167   ccp = &g + (g ? g-g : 0);
9168   /* HPUX 7.0 cc rejects these. */
9169   ++ccp;
9170   p = (char**) ccp;
9171   ccp = (char const *const *) p;
9172   { /* SCO 3.2v4 cc rejects this.  */
9173     char *t;
9174     char const *s = 0 ? (char *) 0 : (char const *) 0;
9175
9176     *t++ = 0;
9177   }
9178   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9179     int x[] = {25, 17};
9180     const int *foo = &x[0];
9181     ++foo;
9182   }
9183   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9184     typedef const int *iptr;
9185     iptr p = 0;
9186     ++p;
9187   }
9188   { /* AIX XL C 1.02.0.0 rejects this saying
9189        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9190     struct s { int j; const int *ap[3]; };
9191     struct s *b; b->j = 5;
9192   }
9193   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9194     const int foo = 10;
9195   }
9196 #endif
9197
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204   (eval $ac_compile) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -s conftest.$ac_objext'
9209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210   (eval $ac_try) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }; }; then
9214   ac_cv_c_const=yes
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 ac_cv_c_const=no
9219 fi
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9221 fi
9222 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9223 echo "${ECHO_T}$ac_cv_c_const" >&6
9224 if test $ac_cv_c_const = no; then
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define const
9228 _ACEOF
9229
9230 fi
9231
9232 echo "$as_me:$LINENO: checking for inline" >&5
9233 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9234 if test "${ac_cv_c_inline+set}" = set; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   ac_cv_c_inline=no
9238 for ac_kw in inline __inline__ __inline; do
9239   cat >conftest.$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9241 #include "confdefs.h"
9242 #ifndef __cplusplus
9243 static $ac_kw int static_foo () {return 0; }
9244 $ac_kw int foo () {return 0; }
9245 #endif
9246
9247 _ACEOF
9248 rm -f conftest.$ac_objext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9250   (eval $ac_compile) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -s conftest.$ac_objext'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   ac_cv_c_inline=$ac_kw; break
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 fi
9265 rm -f conftest.$ac_objext conftest.$ac_ext
9266 done
9267
9268 fi
9269 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9270 echo "${ECHO_T}$ac_cv_c_inline" >&6
9271 case $ac_cv_c_inline in
9272   inline | yes) ;;
9273   no)
9274 cat >>confdefs.h <<\_ACEOF
9275 #define inline
9276 _ACEOF
9277  ;;
9278   *)  cat >>confdefs.h <<_ACEOF
9279 #define inline $ac_cv_c_inline
9280 _ACEOF
9281  ;;
9282 esac
9283
9284 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9285 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9286 if test "${ac_cv_c_stringize+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 #include "confdefs.h"
9292 #define x(y) #y
9293
9294 char *s = x(teststring);
9295 _ACEOF
9296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9297   egrep "#teststring" >/dev/null 2>&1; then
9298   ac_cv_c_stringize=no
9299 else
9300   ac_cv_c_stringize=yes
9301 fi
9302 rm -f conftest*
9303
9304 fi
9305 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9306 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9307 if test $ac_cv_c_stringize = yes; then
9308
9309 cat >>confdefs.h <<\_ACEOF
9310 #define HAVE_STRINGIZE 1
9311 _ACEOF
9312
9313 fi
9314
9315 echo "$as_me:$LINENO: checking for signed types" >&5
9316 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9317 if test "${pgac_cv_c_signed+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   cat >conftest.$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9323
9324 #ifdef F77_DUMMY_MAIN
9325 #  ifdef __cplusplus
9326      extern "C"
9327 #  endif
9328    int F77_DUMMY_MAIN() { return 1; }
9329 #endif
9330 int
9331 main ()
9332 {
9333 signed char c; signed short s; signed int i;
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340   (eval $ac_compile) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } &&
9344          { ac_try='test -s conftest.$ac_objext'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; }; then
9350   pgac_cv_c_signed=yes
9351 else
9352   echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9354 pgac_cv_c_signed=no
9355 fi
9356 rm -f conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9359 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9360 if test x"$pgac_cv_c_signed" = xno ; then
9361
9362 cat >>confdefs.h <<\_ACEOF
9363 #define signed
9364 _ACEOF
9365
9366 fi
9367 echo "$as_me:$LINENO: checking for working volatile" >&5
9368 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9369 if test "${ac_cv_c_volatile+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   cat >conftest.$ac_ext <<_ACEOF
9373 #line $LINENO "configure"
9374 #include "confdefs.h"
9375
9376 #ifdef F77_DUMMY_MAIN
9377 #  ifdef __cplusplus
9378      extern "C"
9379 #  endif
9380    int F77_DUMMY_MAIN() { return 1; }
9381 #endif
9382 int
9383 main ()
9384 {
9385
9386 volatile int x;
9387 int * volatile y;
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } &&
9398          { ac_try='test -s conftest.$ac_objext'
9399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400   (eval $ac_try) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); }; }; then
9404   ac_cv_c_volatile=yes
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9408 ac_cv_c_volatile=no
9409 fi
9410 rm -f conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9413 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9414 if test $ac_cv_c_volatile = no; then
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define volatile
9418 _ACEOF
9419
9420 fi
9421
9422 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9423 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9424 if test "${ac_cv_struct_tm+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   cat >conftest.$ac_ext <<_ACEOF
9428 #line $LINENO "configure"
9429 #include "confdefs.h"
9430 #include <sys/types.h>
9431 #include <time.h>
9432
9433 #ifdef F77_DUMMY_MAIN
9434 #  ifdef __cplusplus
9435      extern "C"
9436 #  endif
9437    int F77_DUMMY_MAIN() { return 1; }
9438 #endif
9439 int
9440 main ()
9441 {
9442 struct tm *tp; tp->tm_sec;
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -s conftest.$ac_objext'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459   ac_cv_struct_tm=time.h
9460 else
9461   echo "$as_me: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 ac_cv_struct_tm=sys/time.h
9464 fi
9465 rm -f conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9468 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9469 if test $ac_cv_struct_tm = sys/time.h; then
9470
9471 cat >>confdefs.h <<\_ACEOF
9472 #define TM_IN_SYS_TIME 1
9473 _ACEOF
9474
9475 fi
9476
9477 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9478 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9479 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 #include "confdefs.h"
9485 #include <sys/types.h>
9486 #include <$ac_cv_struct_tm>
9487
9488
9489 #ifdef F77_DUMMY_MAIN
9490 #  ifdef __cplusplus
9491      extern "C"
9492 #  endif
9493    int F77_DUMMY_MAIN() { return 1; }
9494 #endif
9495 int
9496 main ()
9497 {
9498 static struct tm ac_aggr;
9499 if (ac_aggr.tm_zone)
9500 return 0;
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507   (eval $ac_compile) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -s conftest.$ac_objext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_cv_member_struct_tm_tm_zone=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 ac_cv_member_struct_tm_tm_zone=no
9522 fi
9523 rm -f conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9526 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9527 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9528
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_STRUCT_TM_TM_ZONE 1
9531 _ACEOF
9532
9533
9534 fi
9535
9536 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9537
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_TM_ZONE 1
9540 _ACEOF
9541
9542 else
9543   echo "$as_me:$LINENO: checking for tzname" >&5
9544 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9545 if test "${ac_cv_var_tzname+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 #include "confdefs.h"
9551 #include <time.h>
9552 #ifndef tzname /* For SGI.  */
9553 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9554 #endif
9555
9556 #ifdef F77_DUMMY_MAIN
9557 #  ifdef __cplusplus
9558      extern "C"
9559 #  endif
9560    int F77_DUMMY_MAIN() { return 1; }
9561 #endif
9562 int
9563 main ()
9564 {
9565 atoi(*tzname);
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572   (eval $ac_link) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -s conftest$ac_exeext'
9577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578   (eval $ac_try) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; }; then
9582   ac_cv_var_tzname=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9586 ac_cv_var_tzname=no
9587 fi
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9589 fi
9590 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9591 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9592   if test $ac_cv_var_tzname = yes; then
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_TZNAME 1
9596 _ACEOF
9597
9598   fi
9599 fi
9600
9601 echo "$as_me:$LINENO: checking for union semun" >&5
9602 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9603 if test "${ac_cv_type_union_semun+set}" = set; then
9604   echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606   cat >conftest.$ac_ext <<_ACEOF
9607 #line $LINENO "configure"
9608 #include "confdefs.h"
9609 #include <sys/types.h>
9610 #include <sys/ipc.h>
9611 #include <sys/sem.h>
9612
9613 #ifdef F77_DUMMY_MAIN
9614 #  ifdef __cplusplus
9615      extern "C"
9616 #  endif
9617    int F77_DUMMY_MAIN() { return 1; }
9618 #endif
9619 int
9620 main ()
9621 {
9622 if ((union semun *) 0)
9623   return 0;
9624 if (sizeof (union semun))
9625   return 0;
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632   (eval $ac_compile) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -s conftest.$ac_objext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   ac_cv_type_union_semun=yes
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 ac_cv_type_union_semun=no
9647 fi
9648 rm -f conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9651 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9652 if test $ac_cv_type_union_semun = yes; then
9653
9654 cat >>confdefs.h <<_ACEOF
9655 #define HAVE_UNION_SEMUN 1
9656 _ACEOF
9657
9658
9659 fi
9660
9661 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9662 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9663 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666   cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 #include "confdefs.h"
9669 #include <sys/types.h>
9670 #ifdef HAVE_SYS_UN_H
9671 #include <sys/un.h>
9672 #endif
9673
9674
9675 #ifdef F77_DUMMY_MAIN
9676 #  ifdef __cplusplus
9677      extern "C"
9678 #  endif
9679    int F77_DUMMY_MAIN() { return 1; }
9680 #endif
9681 int
9682 main ()
9683 {
9684 if ((struct sockaddr_un *) 0)
9685   return 0;
9686 if (sizeof (struct sockaddr_un))
9687   return 0;
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694   (eval $ac_compile) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -s conftest.$ac_objext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_cv_type_struct_sockaddr_un=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 ac_cv_type_struct_sockaddr_un=no
9709 fi
9710 rm -f conftest.$ac_objext conftest.$ac_ext
9711 fi
9712 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9713 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9714 if test $ac_cv_type_struct_sockaddr_un = yes; then
9715
9716 cat >>confdefs.h <<_ACEOF
9717 #define HAVE_STRUCT_SOCKADDR_UN 1
9718 _ACEOF
9719
9720
9721 fi
9722
9723
9724 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9725 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9726 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 #include <sys/param.h>
9733 #include <sys/socket.h>
9734 #include <sys/ucred.h>
9735
9736 #ifdef F77_DUMMY_MAIN
9737 #  ifdef __cplusplus
9738      extern "C"
9739 #  endif
9740    int F77_DUMMY_MAIN() { return 1; }
9741 #endif
9742 int
9743 main ()
9744 {
9745 if ((struct cmsgcred *) 0)
9746   return 0;
9747 if (sizeof (struct cmsgcred))
9748   return 0;
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755   (eval $ac_compile) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -s conftest.$ac_objext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_type_struct_cmsgcred=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 ac_cv_type_struct_cmsgcred=no
9770 fi
9771 rm -f conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9774 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9775 if test $ac_cv_type_struct_cmsgcred = yes; then
9776
9777 cat >>confdefs.h <<_ACEOF
9778 #define HAVE_STRUCT_CMSGCRED 1
9779 _ACEOF
9780
9781
9782 fi
9783 echo "$as_me:$LINENO: checking for struct fcred" >&5
9784 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9785 if test "${ac_cv_type_struct_fcred+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   cat >conftest.$ac_ext <<_ACEOF
9789 #line $LINENO "configure"
9790 #include "confdefs.h"
9791 #include <sys/param.h>
9792 #include <sys/socket.h>
9793 #include <sys/ucred.h>
9794
9795 #ifdef F77_DUMMY_MAIN
9796 #  ifdef __cplusplus
9797      extern "C"
9798 #  endif
9799    int F77_DUMMY_MAIN() { return 1; }
9800 #endif
9801 int
9802 main ()
9803 {
9804 if ((struct fcred *) 0)
9805   return 0;
9806 if (sizeof (struct fcred))
9807   return 0;
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814   (eval $ac_compile) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -s conftest.$ac_objext'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824   ac_cv_type_struct_fcred=yes
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9828 ac_cv_type_struct_fcred=no
9829 fi
9830 rm -f conftest.$ac_objext conftest.$ac_ext
9831 fi
9832 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9833 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9834 if test $ac_cv_type_struct_fcred = yes; then
9835
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_STRUCT_FCRED 1
9838 _ACEOF
9839
9840
9841 fi
9842 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9843 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9844 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 #include "confdefs.h"
9850 #include <sys/param.h>
9851 #include <sys/socket.h>
9852 #include <sys/ucred.h>
9853
9854 #ifdef F77_DUMMY_MAIN
9855 #  ifdef __cplusplus
9856      extern "C"
9857 #  endif
9858    int F77_DUMMY_MAIN() { return 1; }
9859 #endif
9860 int
9861 main ()
9862 {
9863 if ((struct sockcred *) 0)
9864   return 0;
9865 if (sizeof (struct sockcred))
9866   return 0;
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873   (eval $ac_compile) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -s conftest.$ac_objext'
9878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_type_struct_sockcred=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_struct_sockcred=no
9888 fi
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9892 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9893 if test $ac_cv_type_struct_sockcred = yes; then
9894
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_STRUCT_SOCKCRED 1
9897 _ACEOF
9898
9899
9900 fi
9901
9902
9903 if test "$with_zlib" = yes; then
9904   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9905   # did not).  While we could work around the lack of z_streamp, it
9906   # seems unwise to encourage people to use such old zlib versions...
9907   echo "$as_me:$LINENO: checking for z_streamp" >&5
9908 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9909 if test "${ac_cv_type_z_streamp+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   cat >conftest.$ac_ext <<_ACEOF
9913 #line $LINENO "configure"
9914 #include "confdefs.h"
9915 #include <zlib.h>
9916
9917 #ifdef F77_DUMMY_MAIN
9918 #  ifdef __cplusplus
9919      extern "C"
9920 #  endif
9921    int F77_DUMMY_MAIN() { return 1; }
9922 #endif
9923 int
9924 main ()
9925 {
9926 if ((z_streamp *) 0)
9927   return 0;
9928 if (sizeof (z_streamp))
9929   return 0;
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9936   (eval $ac_compile) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } &&
9940          { ac_try='test -s conftest.$ac_objext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_type_z_streamp=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 ac_cv_type_z_streamp=no
9951 fi
9952 rm -f conftest.$ac_objext conftest.$ac_ext
9953 fi
9954 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9955 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9956 if test $ac_cv_type_z_streamp = yes; then
9957   :
9958 else
9959   { { echo "$as_me:$LINENO: error: zlib version is too old
9960 Use --without-zlib to disable zlib support." >&5
9961 echo "$as_me: error: zlib version is too old
9962 Use --without-zlib to disable zlib support." >&2;}
9963    { (exit 1); exit 1; }; }
9964 fi
9965
9966 fi
9967
9968 if test "$with_krb5" = yes; then
9969 # Check for differences between MIT and Heimdal (KTH) releases
9970   echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9971 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9972 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 #include "confdefs.h"
9978 #include <krb5.h>
9979
9980 #ifdef F77_DUMMY_MAIN
9981 #  ifdef __cplusplus
9982      extern "C"
9983 #  endif
9984    int F77_DUMMY_MAIN() { return 1; }
9985 #endif
9986 int
9987 main ()
9988 {
9989 static krb5_ticket ac_aggr;
9990 if (ac_aggr.enc_part2)
9991 return 0;
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998   (eval $ac_compile) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } &&
10002          { ac_try='test -s conftest.$ac_objext'
10003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004   (eval $ac_try) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008   ac_cv_member_krb5_ticket_enc_part2=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 ac_cv_member_krb5_ticket_enc_part2=no
10013 fi
10014 rm -f conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10017 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10018 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10019
10020 cat >>confdefs.h <<_ACEOF
10021 #define HAVE_KRB5_TICKET_ENC_PART2 1
10022 _ACEOF
10023
10024
10025 else
10026   echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10027 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10028 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   cat >conftest.$ac_ext <<_ACEOF
10032 #line $LINENO "configure"
10033 #include "confdefs.h"
10034 #include <krb5.h>
10035
10036 #ifdef F77_DUMMY_MAIN
10037 #  ifdef __cplusplus
10038      extern "C"
10039 #  endif
10040    int F77_DUMMY_MAIN() { return 1; }
10041 #endif
10042 int
10043 main ()
10044 {
10045 static krb5_ticket ac_aggr;
10046 if (ac_aggr.client)
10047 return 0;
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054   (eval $ac_compile) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest.$ac_objext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_member_krb5_ticket_client=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_krb5_ticket_client=no
10069 fi
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 fi
10072 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10073 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10074 if test $ac_cv_member_krb5_ticket_client = yes; then
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_KRB5_TICKET_CLIENT 1
10078 _ACEOF
10079
10080
10081 else
10082   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10083 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10084    { (exit 1); exit 1; }; }
10085 fi
10086
10087 fi
10088
10089   echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10090 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10091 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   cat >conftest.$ac_ext <<_ACEOF
10095 #line $LINENO "configure"
10096 #include "confdefs.h"
10097 #include <krb5.h>
10098
10099 #ifdef F77_DUMMY_MAIN
10100 #  ifdef __cplusplus
10101      extern "C"
10102 #  endif
10103    int F77_DUMMY_MAIN() { return 1; }
10104 #endif
10105 int
10106 main ()
10107 {
10108 static krb5_error ac_aggr;
10109 if (ac_aggr.text.data)
10110 return 0;
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117   (eval $ac_compile) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); } &&
10121          { ac_try='test -s conftest.$ac_objext'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; }; then
10127   ac_cv_member_krb5_error_text_data=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10131 ac_cv_member_krb5_error_text_data=no
10132 fi
10133 rm -f conftest.$ac_objext conftest.$ac_ext
10134 fi
10135 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10136 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10137 if test $ac_cv_member_krb5_error_text_data = yes; then
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10141 _ACEOF
10142
10143
10144 else
10145   echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10146 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10147 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 #include "confdefs.h"
10153 #include <krb5.h>
10154
10155 #ifdef F77_DUMMY_MAIN
10156 #  ifdef __cplusplus
10157      extern "C"
10158 #  endif
10159    int F77_DUMMY_MAIN() { return 1; }
10160 #endif
10161 int
10162 main ()
10163 {
10164 static krb5_error ac_aggr;
10165 if (ac_aggr.e_data)
10166 return 0;
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173   (eval $ac_compile) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -s conftest.$ac_objext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_member_krb5_error_e_data=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 ac_cv_member_krb5_error_e_data=no
10188 fi
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10192 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10193 if test $ac_cv_member_krb5_error_e_data = yes; then
10194   :
10195 else
10196   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10197 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10198    { (exit 1); exit 1; }; }
10199 fi
10200
10201 fi
10202
10203 fi
10204
10205
10206 ##
10207 ## Functions, global variables
10208 ##
10209
10210 echo "$as_me:$LINENO: checking for int timezone" >&5
10211 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10212 if test "${pgac_cv_var_int_timezone+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   cat >conftest.$ac_ext <<_ACEOF
10216 #line $LINENO "configure"
10217 #include "confdefs.h"
10218 #include <time.h>
10219 int res;
10220 #ifdef F77_DUMMY_MAIN
10221 #  ifdef __cplusplus
10222      extern "C"
10223 #  endif
10224    int F77_DUMMY_MAIN() { return 1; }
10225 #endif
10226 int
10227 main ()
10228 {
10229 res = timezone / 60;
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236   (eval $ac_link) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } &&
10240          { ac_try='test -s conftest$ac_exeext'
10241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242   (eval $ac_try) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   pgac_cv_var_int_timezone=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10250 pgac_cv_var_int_timezone=no
10251 fi
10252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10253 fi
10254 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10255 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10256 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10257
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HAVE_INT_TIMEZONE
10260 _ACEOF
10261
10262 fi
10263 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10264 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10265  if test "${ac_cv_func_accept_arg1+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268    if test "${ac_cv_func_accept_arg2+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271     if test "${ac_cv_func_accept_arg3+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10275      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10276       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10277        cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 #ifdef HAVE_SYS_TYPES_H
10281 #include <sys/types.h>
10282 #endif
10283 #ifdef HAVE_SYS_SOCKET_H
10284 #include <sys/socket.h>
10285 #endif
10286 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10287 #ifdef F77_DUMMY_MAIN
10288 #  ifdef __cplusplus
10289      extern "C"
10290 #  endif
10291    int F77_DUMMY_MAIN() { return 1; }
10292 #endif
10293 int
10294 main ()
10295 {
10296
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10303   (eval $ac_compile) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -s conftest.$ac_objext'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   ac_not_found=no; break 3
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10317 ac_not_found=yes
10318 fi
10319 rm -f conftest.$ac_objext conftest.$ac_ext
10320       done
10321      done
10322     done
10323     if test "$ac_not_found" = yes; then
10324       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10325 echo "$as_me: error: could not determine argument types" >&2;}
10326    { (exit 1); exit 1; }; }
10327     fi
10328     if test "$ac_cv_func_accept_arg3" = "void"; then
10329       ac_cv_func_accept_arg3=int
10330     fi
10331
10332 fi
10333
10334 fi
10335
10336 fi
10337  echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10338 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10339
10340 cat >>confdefs.h <<_ACEOF
10341 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10342 _ACEOF
10343
10344
10345 cat >>confdefs.h <<_ACEOF
10346 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10347 _ACEOF
10348
10349
10350 cat >>confdefs.h <<_ACEOF
10351 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10352 _ACEOF
10353
10354
10355 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10356 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10357 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10363 #include <sys/time.h>
10364 #ifdef F77_DUMMY_MAIN
10365 #  ifdef __cplusplus
10366      extern "C"
10367 #  endif
10368    int F77_DUMMY_MAIN() { return 1; }
10369 #endif
10370 int
10371 main ()
10372 {
10373 struct timeval *tp;
10374 struct timezone *tzp;
10375 gettimeofday(tp,tzp);
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382   (eval $ac_compile) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } &&
10386          { ac_try='test -s conftest.$ac_objext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   pgac_cv_func_gettimeofday_1arg=no
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10396 pgac_cv_func_gettimeofday_1arg=yes
10397 fi
10398 rm -f conftest.$ac_objext conftest.$ac_ext
10399 fi
10400 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10401 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10402 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define GETTIMEOFDAY_1ARG
10406 _ACEOF
10407
10408 fi
10409
10410 # SunOS doesn't handle negative byte comparisons properly with +/- return
10411 echo "$as_me:$LINENO: checking for working memcmp" >&5
10412 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10413 if test "${ac_cv_func_memcmp_working+set}" = set; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   if test "$cross_compiling" = yes; then
10417   ac_cv_func_memcmp_working=no
10418 else
10419   cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10422
10423 #ifdef F77_DUMMY_MAIN
10424 #  ifdef __cplusplus
10425      extern "C"
10426 #  endif
10427    int F77_DUMMY_MAIN() { return 1; }
10428 #endif
10429 int
10430 main ()
10431 {
10432
10433   /* Some versions of memcmp are not 8-bit clean.  */
10434   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10435   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10436     exit (1);
10437
10438   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10439      or more and with at least one buffer not starting on a 4-byte boundary.
10440      William Lewis provided this test program.   */
10441   {
10442     char foo[21];
10443     char bar[21];
10444     int i;
10445     for (i = 0; i < 4; i++)
10446       {
10447         char *a = foo + i;
10448         char *b = bar + i;
10449         strcpy (a, "--------01111111");
10450         strcpy (b, "--------10000000");
10451         if (memcmp (a, b, 16) >= 0)
10452           exit (1);
10453       }
10454     exit (0);
10455   }
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463   (eval $ac_link) 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472   ac_cv_func_memcmp_working=yes
10473 else
10474   echo "$as_me: program exited with status $ac_status" >&5
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ( exit $ac_status )
10478 ac_cv_func_memcmp_working=no
10479 fi
10480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10481 fi
10482 fi
10483 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10484 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10485 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10501 do
10502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 /* System header to define __stub macros and hopefully few prototypes,
10512     which can conflict with char $ac_func (); below.  */
10513 #include <assert.h>
10514 /* Override any gcc2 internal prototype to avoid an error.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 /* We use char because int might match the return type of a gcc2
10519    builtin and then its argument prototype would still apply.  */
10520 char $ac_func ();
10521 char (*f) ();
10522
10523 #ifdef F77_DUMMY_MAIN
10524 #  ifdef __cplusplus
10525      extern "C"
10526 #  endif
10527    int F77_DUMMY_MAIN() { return 1; }
10528 #endif
10529 int
10530 main ()
10531 {
10532 /* The GNU C library defines this for functions which it implements
10533     to always fail with ENOSYS.  Some functions are actually named
10534     something starting with __ and the normal name is an alias.  */
10535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10536 choke me
10537 #else
10538 f = $ac_func;
10539 #endif
10540
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547   (eval $ac_link) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } &&
10551          { ac_try='test -s conftest$ac_exeext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   eval "$as_ac_var=yes"
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 eval "$as_ac_var=no"
10562 fi
10563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10564 fi
10565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10567 if test `eval echo '${'$as_ac_var'}'` = yes; then
10568   cat >>confdefs.h <<_ACEOF
10569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10570 _ACEOF
10571
10572 fi
10573 done
10574
10575
10576 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10577 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10578 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 #include <unistd.h>
10585
10586 #ifdef F77_DUMMY_MAIN
10587 #  ifdef __cplusplus
10588      extern "C"
10589 #  endif
10590    int F77_DUMMY_MAIN() { return 1; }
10591 #endif
10592 int
10593 main ()
10594 {
10595 #ifndef fdatasync
10596   char *p = (char *) fdatasync;
10597 #endif
10598
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605   (eval $ac_compile) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -s conftest.$ac_objext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_have_decl_fdatasync=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10619 ac_cv_have_decl_fdatasync=no
10620 fi
10621 rm -f conftest.$ac_objext conftest.$ac_ext
10622 fi
10623 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10624 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10625 if test $ac_cv_have_decl_fdatasync = yes; then
10626
10627 cat >>confdefs.h <<_ACEOF
10628 #define HAVE_DECL_FDATASYNC 1
10629 _ACEOF
10630
10631
10632 else
10633   cat >>confdefs.h <<_ACEOF
10634 #define HAVE_DECL_FDATASYNC 0
10635 _ACEOF
10636
10637
10638 fi
10639
10640
10641
10642 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10643 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10644 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   cat >conftest.$ac_ext <<_ACEOF
10648 #line $LINENO "configure"
10649 #include "confdefs.h"
10650 #include <machine/vmparam.h>
10651 #include <sys/exec.h>
10652
10653 #ifdef F77_DUMMY_MAIN
10654 #  ifdef __cplusplus
10655      extern "C"
10656 #  endif
10657    int F77_DUMMY_MAIN() { return 1; }
10658 #endif
10659 int
10660 main ()
10661 {
10662 PS_STRINGS->ps_nargvstr = 1;
10663 PS_STRINGS->ps_argvstr = "foo";
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670   (eval $ac_link) 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } &&
10674          { ac_try='test -s conftest$ac_exeext'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; }; then
10680   pgac_cv_var_PS_STRINGS=yes
10681 else
10682   echo "$as_me: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 pgac_cv_var_PS_STRINGS=no
10685 fi
10686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10687 fi
10688 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10689 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10690 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define HAVE_PS_STRINGS
10694 _ACEOF
10695
10696 fi
10697
10698
10699 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10700 # is missing.  Yes, there are machines that have only one.  We may
10701 # also decide to use snprintf.c if snprintf() is present but does not
10702 # have working "long long int" support -- see below.
10703
10704 pgac_need_repl_snprintf=no
10705
10706 for ac_func in snprintf
10707 do
10708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10709 echo "$as_me:$LINENO: checking for $ac_func" >&5
10710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_var+set}\" = set"; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10717 /* System header to define __stub macros and hopefully few prototypes,
10718     which can conflict with char $ac_func (); below.  */
10719 #include <assert.h>
10720 /* Override any gcc2 internal prototype to avoid an error.  */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 /* We use char because int might match the return type of a gcc2
10725    builtin and then its argument prototype would still apply.  */
10726 char $ac_func ();
10727 char (*f) ();
10728
10729 #ifdef F77_DUMMY_MAIN
10730 #  ifdef __cplusplus
10731      extern "C"
10732 #  endif
10733    int F77_DUMMY_MAIN() { return 1; }
10734 #endif
10735 int
10736 main ()
10737 {
10738 /* The GNU C library defines this for functions which it implements
10739     to always fail with ENOSYS.  Some functions are actually named
10740     something starting with __ and the normal name is an alias.  */
10741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10742 choke me
10743 #else
10744 f = $ac_func;
10745 #endif
10746
10747   ;
10748   return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753   (eval $ac_link) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } &&
10757          { ac_try='test -s conftest$ac_exeext'
10758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759   (eval $ac_try) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }; }; then
10763   eval "$as_ac_var=yes"
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10767 eval "$as_ac_var=no"
10768 fi
10769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10770 fi
10771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10773 if test `eval echo '${'$as_ac_var'}'` = yes; then
10774   cat >>confdefs.h <<_ACEOF
10775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10776 _ACEOF
10777
10778 else
10779   pgac_need_repl_snprintf=yes
10780 fi
10781 done
10782
10783
10784 for ac_func in vsnprintf
10785 do
10786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10789 if eval "test \"\${$as_ac_var+set}\" = set"; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 #include "confdefs.h"
10795 /* System header to define __stub macros and hopefully few prototypes,
10796     which can conflict with char $ac_func (); below.  */
10797 #include <assert.h>
10798 /* Override any gcc2 internal prototype to avoid an error.  */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 /* We use char because int might match the return type of a gcc2
10803    builtin and then its argument prototype would still apply.  */
10804 char $ac_func ();
10805 char (*f) ();
10806
10807 #ifdef F77_DUMMY_MAIN
10808 #  ifdef __cplusplus
10809      extern "C"
10810 #  endif
10811    int F77_DUMMY_MAIN() { return 1; }
10812 #endif
10813 int
10814 main ()
10815 {
10816 /* The GNU C library defines this for functions which it implements
10817     to always fail with ENOSYS.  Some functions are actually named
10818     something starting with __ and the normal name is an alias.  */
10819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10820 choke me
10821 #else
10822 f = $ac_func;
10823 #endif
10824
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831   (eval $ac_link) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   eval "$as_ac_var=yes"
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 eval "$as_ac_var=no"
10846 fi
10847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10848 fi
10849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10851 if test `eval echo '${'$as_ac_var'}'` = yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 else
10857   pgac_need_repl_snprintf=yes
10858 fi
10859 done
10860
10861
10862
10863 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10864 # include/c.h will provide declarations.  Note this is a separate test
10865 # from whether the functions exist in the C library --- there are
10866 # systems that have the functions but don't bother to declare them :-(
10867
10868 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10869 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10870 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 #include "confdefs.h"
10876 $ac_includes_default
10877 #ifdef F77_DUMMY_MAIN
10878 #  ifdef __cplusplus
10879      extern "C"
10880 #  endif
10881    int F77_DUMMY_MAIN() { return 1; }
10882 #endif
10883 int
10884 main ()
10885 {
10886 #ifndef snprintf
10887   char *p = (char *) snprintf;
10888 #endif
10889
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext
10895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10896   (eval $ac_compile) 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } &&
10900          { ac_try='test -s conftest.$ac_objext'
10901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902   (eval $ac_try) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   ac_cv_have_decl_snprintf=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 ac_cv_have_decl_snprintf=no
10911 fi
10912 rm -f conftest.$ac_objext conftest.$ac_ext
10913 fi
10914 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10915 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10916 if test $ac_cv_have_decl_snprintf = yes; then
10917
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_DECL_SNPRINTF 1
10920 _ACEOF
10921
10922
10923 else
10924   cat >>confdefs.h <<_ACEOF
10925 #define HAVE_DECL_SNPRINTF 0
10926 _ACEOF
10927
10928
10929 fi
10930 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10931 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10932 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 #include "confdefs.h"
10938 $ac_includes_default
10939 #ifdef F77_DUMMY_MAIN
10940 #  ifdef __cplusplus
10941      extern "C"
10942 #  endif
10943    int F77_DUMMY_MAIN() { return 1; }
10944 #endif
10945 int
10946 main ()
10947 {
10948 #ifndef vsnprintf
10949   char *p = (char *) vsnprintf;
10950 #endif
10951
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958   (eval $ac_compile) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } &&
10962          { ac_try='test -s conftest.$ac_objext'
10963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964   (eval $ac_try) 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; }; then
10968   ac_cv_have_decl_vsnprintf=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 ac_cv_have_decl_vsnprintf=no
10973 fi
10974 rm -f conftest.$ac_objext conftest.$ac_ext
10975 fi
10976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10977 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10978 if test $ac_cv_have_decl_vsnprintf = yes; then
10979
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_VSNPRINTF 1
10982 _ACEOF
10983
10984
10985 else
10986   cat >>confdefs.h <<_ACEOF
10987 #define HAVE_DECL_VSNPRINTF 0
10988 _ACEOF
10989
10990
10991 fi
10992
10993
10994
10995
10996 # do this one the hard way in case isinf() is a macro
10997 echo "$as_me:$LINENO: checking for isinf" >&5
10998 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10999 if test "${ac_cv_func_isinf+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   cat >conftest.$ac_ext <<_ACEOF
11003 #line $LINENO "configure"
11004 #include "confdefs.h"
11005 #include <math.h>
11006
11007 #ifdef F77_DUMMY_MAIN
11008 #  ifdef __cplusplus
11009      extern "C"
11010 #  endif
11011    int F77_DUMMY_MAIN() { return 1; }
11012 #endif
11013 int
11014 main ()
11015 {
11016 double x = 0.0; int res = isinf(x);
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023   (eval $ac_link) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } &&
11027          { ac_try='test -s conftest$ac_exeext'
11028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029   (eval $ac_try) 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_cv_func_isinf=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 ac_cv_func_isinf=no
11038 fi
11039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11042 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11043
11044 if test $ac_cv_func_isinf = yes ; then
11045
11046 cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_ISINF 1
11048 _ACEOF
11049
11050 else
11051   LIBOBJS="$LIBOBJS isinf.$ac_objext"
11052   # Look for a way to implement a substitute for isinf()
11053
11054
11055
11056
11057 for ac_func in fpclass fp_class fp_class_d class
11058 do
11059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11060 echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_var+set}\" = set"; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065   cat >conftest.$ac_ext <<_ACEOF
11066 #line $LINENO "configure"
11067 #include "confdefs.h"
11068 /* System header to define __stub macros and hopefully few prototypes,
11069     which can conflict with char $ac_func (); below.  */
11070 #include <assert.h>
11071 /* Override any gcc2 internal prototype to avoid an error.  */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 /* We use char because int might match the return type of a gcc2
11076    builtin and then its argument prototype would still apply.  */
11077 char $ac_func ();
11078 char (*f) ();
11079
11080 #ifdef F77_DUMMY_MAIN
11081 #  ifdef __cplusplus
11082      extern "C"
11083 #  endif
11084    int F77_DUMMY_MAIN() { return 1; }
11085 #endif
11086 int
11087 main ()
11088 {
11089 /* The GNU C library defines this for functions which it implements
11090     to always fail with ENOSYS.  Some functions are actually named
11091     something starting with __ and the normal name is an alias.  */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11093 choke me
11094 #else
11095 f = $ac_func;
11096 #endif
11097
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11104   (eval $ac_link) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); } &&
11108          { ac_try='test -s conftest$ac_exeext'
11109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110   (eval $ac_try) 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   eval "$as_ac_var=yes"
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 eval "$as_ac_var=no"
11119 fi
11120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125   cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 _ACEOF
11128  break
11129 fi
11130 done
11131
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
11145 do
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11149 if eval "test \"\${$as_ac_var+set}\" = set"; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 #include "confdefs.h"
11155 /* System header to define __stub macros and hopefully few prototypes,
11156     which can conflict with char $ac_func (); below.  */
11157 #include <assert.h>
11158 /* Override any gcc2 internal prototype to avoid an error.  */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 /* We use char because int might match the return type of a gcc2
11163    builtin and then its argument prototype would still apply.  */
11164 char $ac_func ();
11165 char (*f) ();
11166
11167 #ifdef F77_DUMMY_MAIN
11168 #  ifdef __cplusplus
11169      extern "C"
11170 #  endif
11171    int F77_DUMMY_MAIN() { return 1; }
11172 #endif
11173 int
11174 main ()
11175 {
11176 /* The GNU C library defines this for functions which it implements
11177     to always fail with ENOSYS.  Some functions are actually named
11178     something starting with __ and the normal name is an alias.  */
11179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11180 choke me
11181 #else
11182 f = $ac_func;
11183 #endif
11184
11185   ;
11186   return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext conftest$ac_exeext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191   (eval $ac_link) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -s conftest$ac_exeext'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   eval "$as_ac_var=yes"
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 eval "$as_ac_var=no"
11206 fi
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11208 fi
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11211 if test `eval echo '${'$as_ac_var'}'` = yes; then
11212   cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 _ACEOF
11215
11216 else
11217   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11218 fi
11219 done
11220
11221
11222
11223 # Solaris has a very slow qsort in certain cases.
11224 case $host_os in
11225   solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11226 esac
11227
11228 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11229 # this hackery with HPUXMATHLIB allows us to cope.
11230 HPUXMATHLIB=""
11231 case $host_cpu in
11232   hppa1.1)
11233         if [ -r /lib/pa1.1/libm.a ] ; then
11234             HPUXMATHLIB="-L /lib/pa1.1 -lm"
11235         fi ;;
11236 esac
11237
11238
11239
11240 for ac_func in rint
11241 do
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_var+set}\" = set"; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 #include "confdefs.h"
11251 /* System header to define __stub macros and hopefully few prototypes,
11252     which can conflict with char $ac_func (); below.  */
11253 #include <assert.h>
11254 /* Override any gcc2 internal prototype to avoid an error.  */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 /* We use char because int might match the return type of a gcc2
11259    builtin and then its argument prototype would still apply.  */
11260 char $ac_func ();
11261 char (*f) ();
11262
11263 #ifdef F77_DUMMY_MAIN
11264 #  ifdef __cplusplus
11265      extern "C"
11266 #  endif
11267    int F77_DUMMY_MAIN() { return 1; }
11268 #endif
11269 int
11270 main ()
11271 {
11272 /* The GNU C library defines this for functions which it implements
11273     to always fail with ENOSYS.  Some functions are actually named
11274     something starting with __ and the normal name is an alias.  */
11275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11276 choke me
11277 #else
11278 f = $ac_func;
11279 #endif
11280
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287   (eval $ac_link) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } &&
11291          { ac_try='test -s conftest$ac_exeext'
11292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293   (eval $ac_try) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; }; then
11297   eval "$as_ac_var=yes"
11298 else
11299   echo "$as_me: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 eval "$as_ac_var=no"
11302 fi
11303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11304 fi
11305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11307 if test `eval echo '${'$as_ac_var'}'` = yes; then
11308   cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 _ACEOF
11311
11312 else
11313   echo "$as_me:$LINENO: checking for rint in -lm" >&5
11314 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11315 if test "${ac_cv_lib_m_rint+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   ac_check_lib_save_LIBS=$LIBS
11319 LIBS="-lm $HPUXMATHLIB $LIBS"
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11322 #include "confdefs.h"
11323
11324 /* Override any gcc2 internal prototype to avoid an error.  */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 /* We use char because int might match the return type of a gcc2
11329    builtin and then its argument prototype would still apply.  */
11330 char rint ();
11331 #ifdef F77_DUMMY_MAIN
11332 #  ifdef __cplusplus
11333      extern "C"
11334 #  endif
11335    int F77_DUMMY_MAIN() { return 1; }
11336 #endif
11337 int
11338 main ()
11339 {
11340 rint ();
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347   (eval $ac_link) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -s conftest$ac_exeext'
11352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353   (eval $ac_try) 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); }; }; then
11357   ac_cv_lib_m_rint=yes
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 ac_cv_lib_m_rint=no
11362 fi
11363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11365 fi
11366 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11367 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11368 if test $ac_cv_lib_m_rint = yes; then
11369   cat >>confdefs.h <<\_ACEOF
11370 #define HAVE_RINT 1
11371 _ACEOF
11372
11373 fi
11374
11375 fi
11376 done
11377
11378
11379
11380 if test "$with_readline" = yes; then
11381   echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11382 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 #include <stdio.h>
11387 #ifdef HAVE_READLINE_READLINE_H
11388 # include <readline/readline.h>
11389 #elif defined(HAVE_READLINE_H)
11390 # include <readline.h>
11391 #endif
11392
11393 #ifdef F77_DUMMY_MAIN
11394 #  ifdef __cplusplus
11395      extern "C"
11396 #  endif
11397    int F77_DUMMY_MAIN() { return 1; }
11398 #endif
11399 int
11400 main ()
11401 {
11402 rl_completion_append_character = 'x';
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11409   (eval $ac_link) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -s conftest$ac_exeext'
11414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415   (eval $ac_try) 2>&5
11416   ac_status=$?
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); }; }; then
11419   echo "$as_me:$LINENO: result: yes" >&5
11420 echo "${ECHO_T}yes" >&6
11421
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11424 _ACEOF
11425
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11429 echo "$as_me:$LINENO: result: no" >&5
11430 echo "${ECHO_T}no" >&6
11431 fi
11432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11433
11434
11435 for ac_func in rl_completion_matches rl_filename_completion_function
11436 do
11437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11438 echo "$as_me:$LINENO: checking for $ac_func" >&5
11439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11440 if eval "test \"\${$as_ac_var+set}\" = set"; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 /* System header to define __stub macros and hopefully few prototypes,
11447     which can conflict with char $ac_func (); below.  */
11448 #include <assert.h>
11449 /* Override any gcc2 internal prototype to avoid an error.  */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 /* We use char because int might match the return type of a gcc2
11454    builtin and then its argument prototype would still apply.  */
11455 char $ac_func ();
11456 char (*f) ();
11457
11458 #ifdef F77_DUMMY_MAIN
11459 #  ifdef __cplusplus
11460      extern "C"
11461 #  endif
11462    int F77_DUMMY_MAIN() { return 1; }
11463 #endif
11464 int
11465 main ()
11466 {
11467 /* The GNU C library defines this for functions which it implements
11468     to always fail with ENOSYS.  Some functions are actually named
11469     something starting with __ and the normal name is an alias.  */
11470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11471 choke me
11472 #else
11473 f = $ac_func;
11474 #endif
11475
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11482   (eval $ac_link) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -s conftest$ac_exeext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   eval "$as_ac_var=yes"
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 eval "$as_ac_var=no"
11497 fi
11498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11499 fi
11500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11502 if test `eval echo '${'$as_ac_var'}'` = yes; then
11503   cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505 _ACEOF
11506
11507 fi
11508 done
11509
11510 fi
11511
11512
11513 echo "$as_me:$LINENO: checking for finite" >&5
11514 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518 #include <math.h>
11519 #ifdef F77_DUMMY_MAIN
11520 #  ifdef __cplusplus
11521      extern "C"
11522 #  endif
11523    int F77_DUMMY_MAIN() { return 1; }
11524 #endif
11525 int
11526 main ()
11527 {
11528 int dummy=finite(1.0);
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11535   (eval $ac_link) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -s conftest$ac_exeext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545
11546 cat >>confdefs.h <<\_ACEOF
11547 #define HAVE_FINITE 1
11548 _ACEOF
11549
11550 echo "$as_me:$LINENO: result: yes" >&5
11551 echo "${ECHO_T}yes" >&6
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6
11557 fi
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559
11560 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11561 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 #include "confdefs.h"
11565 #include <setjmp.h>
11566 #ifdef F77_DUMMY_MAIN
11567 #  ifdef __cplusplus
11568      extern "C"
11569 #  endif
11570    int F77_DUMMY_MAIN() { return 1; }
11571 #endif
11572 int
11573 main ()
11574 {
11575 sigjmp_buf x; sigsetjmp(x, 1);
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582   (eval $ac_link) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } &&
11586          { ac_try='test -s conftest$ac_exeext'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; }; then
11592
11593 cat >>confdefs.h <<\_ACEOF
11594 #define HAVE_SIGSETJMP 1
11595 _ACEOF
11596
11597 echo "$as_me:$LINENO: result: yes" >&5
11598 echo "${ECHO_T}yes" >&6
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11604 fi
11605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11606
11607 echo "$as_me:$LINENO: checking for syslog" >&5
11608 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11609 if test "${ac_cv_func_syslog+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   cat >conftest.$ac_ext <<_ACEOF
11613 #line $LINENO "configure"
11614 #include "confdefs.h"
11615 /* System header to define __stub macros and hopefully few prototypes,
11616     which can conflict with char syslog (); below.  */
11617 #include <assert.h>
11618 /* Override any gcc2 internal prototype to avoid an error.  */
11619 #ifdef __cplusplus
11620 extern "C"
11621 #endif
11622 /* We use char because int might match the return type of a gcc2
11623    builtin and then its argument prototype would still apply.  */
11624 char syslog ();
11625 char (*f) ();
11626
11627 #ifdef F77_DUMMY_MAIN
11628 #  ifdef __cplusplus
11629      extern "C"
11630 #  endif
11631    int F77_DUMMY_MAIN() { return 1; }
11632 #endif
11633 int
11634 main ()
11635 {
11636 /* The GNU C library defines this for functions which it implements
11637     to always fail with ENOSYS.  Some functions are actually named
11638     something starting with __ and the normal name is an alias.  */
11639 #if defined (__stub_syslog) || defined (__stub___syslog)
11640 choke me
11641 #else
11642 f = syslog;
11643 #endif
11644
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11651   (eval $ac_link) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); } &&
11655          { ac_try='test -s conftest$ac_exeext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   ac_cv_func_syslog=yes
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11665 ac_cv_func_syslog=no
11666 fi
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11670 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11671 if test $ac_cv_func_syslog = yes; then
11672   if test "${ac_cv_header_syslog_h+set}" = set; then
11673   echo "$as_me:$LINENO: checking for syslog.h" >&5
11674 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11675 if test "${ac_cv_header_syslog_h+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11679 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11680 else
11681   # Is the header compilable?
11682 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11683 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11685 #line $LINENO "configure"
11686 #include "confdefs.h"
11687 $ac_includes_default
11688 #include <syslog.h>
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11692   (eval $ac_compile) 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -s conftest.$ac_objext'
11697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698   (eval $ac_try) 2>&5
11699   ac_status=$?
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); }; }; then
11702   ac_header_compiler=yes
11703 else
11704   echo "$as_me: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 ac_header_compiler=no
11707 fi
11708 rm -f conftest.$ac_objext conftest.$ac_ext
11709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11710 echo "${ECHO_T}$ac_header_compiler" >&6
11711
11712 # Is the header present?
11713 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11714 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11717 #include "confdefs.h"
11718 #include <syslog.h>
11719 _ACEOF
11720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11722   ac_status=$?
11723   egrep -v '^ *\+' conftest.er1 >conftest.err
11724   rm -f conftest.er1
11725   cat conftest.err >&5
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } >/dev/null; then
11728   if test -s conftest.err; then
11729     ac_cpp_err=$ac_c_preproc_warn_flag
11730   else
11731     ac_cpp_err=
11732   fi
11733 else
11734   ac_cpp_err=yes
11735 fi
11736 if test -z "$ac_cpp_err"; then
11737   ac_header_preproc=yes
11738 else
11739   echo "$as_me: failed program was:" >&5
11740   cat conftest.$ac_ext >&5
11741   ac_header_preproc=no
11742 fi
11743 rm -f conftest.err conftest.$ac_ext
11744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11745 echo "${ECHO_T}$ac_header_preproc" >&6
11746
11747 # So?  What about this header?
11748 case $ac_header_compiler:$ac_header_preproc in
11749   yes:no )
11750     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11751 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11752     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11753 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11754   no:yes )
11755     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11760 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11761 esac
11762 echo "$as_me:$LINENO: checking for syslog.h" >&5
11763 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11764 if test "${ac_cv_header_syslog_h+set}" = set; then
11765   echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767   ac_cv_header_syslog_h=$ac_header_preproc
11768 fi
11769 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11770 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11771
11772 fi
11773 if test $ac_cv_header_syslog_h = yes; then
11774   cat >>confdefs.h <<\_ACEOF
11775 #define HAVE_SYSLOG 1
11776 _ACEOF
11777
11778 fi
11779
11780
11781 fi
11782
11783
11784 echo "$as_me:$LINENO: checking for optreset" >&5
11785 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11786 if test "${pgac_cv_var_int_optreset+set}" = set; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11791 #include "confdefs.h"
11792 #include <unistd.h>
11793 #ifdef F77_DUMMY_MAIN
11794 #  ifdef __cplusplus
11795      extern "C"
11796 #  endif
11797    int F77_DUMMY_MAIN() { return 1; }
11798 #endif
11799 int
11800 main ()
11801 {
11802 extern int optreset; optreset = 1;
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11809   (eval $ac_link) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } &&
11813          { ac_try='test -s conftest$ac_exeext'
11814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815   (eval $ac_try) 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   pgac_cv_var_int_optreset=yes
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11823 pgac_cv_var_int_optreset=no
11824 fi
11825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826 fi
11827 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11828 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11829 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11830
11831 cat >>confdefs.h <<\_ACEOF
11832 #define HAVE_INT_OPTRESET 1
11833 _ACEOF
11834
11835 fi
11836
11837
11838
11839 for ac_func in strtoll strtoq
11840 do
11841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11842 echo "$as_me:$LINENO: checking for $ac_func" >&5
11843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11844 if eval "test \"\${$as_ac_var+set}\" = set"; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 #include "confdefs.h"
11850 /* System header to define __stub macros and hopefully few prototypes,
11851     which can conflict with char $ac_func (); below.  */
11852 #include <assert.h>
11853 /* Override any gcc2 internal prototype to avoid an error.  */
11854 #ifdef __cplusplus
11855 extern "C"
11856 #endif
11857 /* We use char because int might match the return type of a gcc2
11858    builtin and then its argument prototype would still apply.  */
11859 char $ac_func ();
11860 char (*f) ();
11861
11862 #ifdef F77_DUMMY_MAIN
11863 #  ifdef __cplusplus
11864      extern "C"
11865 #  endif
11866    int F77_DUMMY_MAIN() { return 1; }
11867 #endif
11868 int
11869 main ()
11870 {
11871 /* The GNU C library defines this for functions which it implements
11872     to always fail with ENOSYS.  Some functions are actually named
11873     something starting with __ and the normal name is an alias.  */
11874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11875 choke me
11876 #else
11877 f = $ac_func;
11878 #endif
11879
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886   (eval $ac_link) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   eval "$as_ac_var=yes"
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 eval "$as_ac_var=no"
11901 fi
11902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907   cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910  break
11911 fi
11912 done
11913
11914
11915
11916 for ac_func in strtoull strtouq
11917 do
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11921 if eval "test \"\${$as_ac_var+set}\" = set"; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes,
11928     which can conflict with char $ac_func (); below.  */
11929 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error.  */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 /* We use char because int might match the return type of a gcc2
11935    builtin and then its argument prototype would still apply.  */
11936 char $ac_func ();
11937 char (*f) ();
11938
11939 #ifdef F77_DUMMY_MAIN
11940 #  ifdef __cplusplus
11941      extern "C"
11942 #  endif
11943    int F77_DUMMY_MAIN() { return 1; }
11944 #endif
11945 int
11946 main ()
11947 {
11948 /* The GNU C library defines this for functions which it implements
11949     to always fail with ENOSYS.  Some functions are actually named
11950     something starting with __ and the normal name is an alias.  */
11951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11952 choke me
11953 #else
11954 f = $ac_func;
11955 #endif
11956
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963   (eval $ac_link) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -s conftest$ac_exeext'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; }; then
11973   eval "$as_ac_var=yes"
11974 else
11975   echo "$as_me: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11977 eval "$as_ac_var=no"
11978 fi
11979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980 fi
11981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11983 if test `eval echo '${'$as_ac_var'}'` = yes; then
11984   cat >>confdefs.h <<_ACEOF
11985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11986 _ACEOF
11987  break
11988 fi
11989 done
11990
11991
11992 # Check for one of atexit() or on_exit()
11993
11994 for ac_func in atexit
11995 do
11996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11997 echo "$as_me:$LINENO: checking for $ac_func" >&5
11998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11999 if eval "test \"\${$as_ac_var+set}\" = set"; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 #line $LINENO "configure"
12004 #include "confdefs.h"
12005 /* System header to define __stub macros and hopefully few prototypes,
12006     which can conflict with char $ac_func (); below.  */
12007 #include <assert.h>
12008 /* Override any gcc2 internal prototype to avoid an error.  */
12009 #ifdef __cplusplus
12010 extern "C"
12011 #endif
12012 /* We use char because int might match the return type of a gcc2
12013    builtin and then its argument prototype would still apply.  */
12014 char $ac_func ();
12015 char (*f) ();
12016
12017 #ifdef F77_DUMMY_MAIN
12018 #  ifdef __cplusplus
12019      extern "C"
12020 #  endif
12021    int F77_DUMMY_MAIN() { return 1; }
12022 #endif
12023 int
12024 main ()
12025 {
12026 /* The GNU C library defines this for functions which it implements
12027     to always fail with ENOSYS.  Some functions are actually named
12028     something starting with __ and the normal name is an alias.  */
12029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12030 choke me
12031 #else
12032 f = $ac_func;
12033 #endif
12034
12035   ;
12036   return 0;
12037 }
12038 _ACEOF
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041   (eval $ac_link) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } &&
12045          { ac_try='test -s conftest$ac_exeext'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; }; then
12051   eval "$as_ac_var=yes"
12052 else
12053   echo "$as_me: failed program was:" >&5
12054 cat conftest.$ac_ext >&5
12055 eval "$as_ac_var=no"
12056 fi
12057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12058 fi
12059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12061 if test `eval echo '${'$as_ac_var'}'` = yes; then
12062   cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064 _ACEOF
12065
12066 else
12067
12068 for ac_func in on_exit
12069 do
12070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12073 if eval "test \"\${$as_ac_var+set}\" = set"; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080     which can conflict with char $ac_func (); below.  */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 /* We use char because int might match the return type of a gcc2
12087    builtin and then its argument prototype would still apply.  */
12088 char $ac_func ();
12089 char (*f) ();
12090
12091 #ifdef F77_DUMMY_MAIN
12092 #  ifdef __cplusplus
12093      extern "C"
12094 #  endif
12095    int F77_DUMMY_MAIN() { return 1; }
12096 #endif
12097 int
12098 main ()
12099 {
12100 /* The GNU C library defines this for functions which it implements
12101     to always fail with ENOSYS.  Some functions are actually named
12102     something starting with __ and the normal name is an alias.  */
12103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12104 choke me
12105 #else
12106 f = $ac_func;
12107 #endif
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115   (eval $ac_link) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   eval "$as_ac_var=yes"
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12130 fi
12131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132 fi
12133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138 _ACEOF
12139
12140 else
12141   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12142 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12143    { (exit 1); exit 1; }; }
12144 fi
12145 done
12146
12147 fi
12148 done
12149
12150
12151 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12152 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12153 if test "${ac_cv_sys_largefile_source+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   while :; do
12157   ac_cv_sys_largefile_source=no
12158   cat >conftest.$ac_ext <<_ACEOF
12159 #line $LINENO "configure"
12160 #include "confdefs.h"
12161 #include <stdio.h>
12162 #ifdef F77_DUMMY_MAIN
12163 #  ifdef __cplusplus
12164      extern "C"
12165 #  endif
12166    int F77_DUMMY_MAIN() { return 1; }
12167 #endif
12168 int
12169 main ()
12170 {
12171 return !fseeko;
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178   (eval $ac_compile) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -s conftest.$ac_objext'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   break
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 cat conftest.$ac_ext >&5
12192 fi
12193 rm -f conftest.$ac_objext conftest.$ac_ext
12194   cat >conftest.$ac_ext <<_ACEOF
12195 #line $LINENO "configure"
12196 #include "confdefs.h"
12197 #define _LARGEFILE_SOURCE 1
12198 #include <stdio.h>
12199 #ifdef F77_DUMMY_MAIN
12200 #  ifdef __cplusplus
12201      extern "C"
12202 #  endif
12203    int F77_DUMMY_MAIN() { return 1; }
12204 #endif
12205 int
12206 main ()
12207 {
12208 return !fseeko;
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215   (eval $ac_compile) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } &&
12219          { ac_try='test -s conftest.$ac_objext'
12220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221   (eval $ac_try) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; }; then
12225   ac_cv_sys_largefile_source=1; break
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 fi
12230 rm -f conftest.$ac_objext conftest.$ac_ext
12231   break
12232 done
12233 fi
12234 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12235 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12236 if test "$ac_cv_sys_largefile_source" != no; then
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12240 _ACEOF
12241
12242 fi
12243 rm -f conftest*
12244
12245 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12246 # in glibc 2.1.3, but that breaks too many other things.
12247 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12248 echo "$as_me:$LINENO: checking for fseeko" >&5
12249 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12250 if test "${ac_cv_func_fseeko+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 #include "confdefs.h"
12256 #include <stdio.h>
12257 #ifdef F77_DUMMY_MAIN
12258 #  ifdef __cplusplus
12259      extern "C"
12260 #  endif
12261    int F77_DUMMY_MAIN() { return 1; }
12262 #endif
12263 int
12264 main ()
12265 {
12266 return fseeko && fseeko (stdin, 0, 0);
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273   (eval $ac_link) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } &&
12277          { ac_try='test -s conftest$ac_exeext'
12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279   (eval $ac_try) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283   ac_cv_func_fseeko=yes
12284 else
12285   echo "$as_me: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12287 ac_cv_func_fseeko=no
12288 fi
12289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12290 fi
12291 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12292 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12293 if test $ac_cv_func_fseeko = yes; then
12294
12295 cat >>confdefs.h <<\_ACEOF
12296 #define HAVE_FSEEKO 1
12297 _ACEOF
12298
12299 fi
12300
12301
12302
12303 # This test makes sure that run tests work at all.  Sometimes a shared
12304 # library is found by the linker, but the runtime linker can't find it.
12305 # This check should come after all modifications of compiler or linker
12306 # variables, and before any other run tests.
12307 echo "$as_me:$LINENO: checking test program" >&5
12308 echo $ECHO_N "checking test program... $ECHO_C" >&6
12309 if test "$cross_compiling" = yes; then
12310   echo "$as_me:$LINENO: result: cross-compiling" >&5
12311 echo "${ECHO_T}cross-compiling" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 #include "confdefs.h"
12316 int main() { return 0; }
12317 _ACEOF
12318 rm -f conftest$ac_exeext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320   (eval $ac_link) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   echo "$as_me:$LINENO: result: ok" >&5
12330 echo "${ECHO_T}ok" >&6
12331 else
12332   echo "$as_me: program exited with status $ac_status" >&5
12333 echo "$as_me: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 ( exit $ac_status )
12336 echo "$as_me:$LINENO: result: failed" >&5
12337 echo "${ECHO_T}failed" >&6
12338 { { echo "$as_me:$LINENO: error:
12339 *** Could not execute a simple test program.  This may be a problem
12340 *** related to locating shared libraries.  Check the file 'config.log'
12341 *** for the exact reason." >&5
12342 echo "$as_me: error:
12343 *** Could not execute a simple test program.  This may be a problem
12344 *** related to locating shared libraries.  Check the file 'config.log'
12345 *** for the exact reason." >&2;}
12346    { (exit 1); exit 1; }; }
12347 fi
12348 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12349 fi
12350
12351
12352
12353 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12354 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12355 if test "${pgac_cv_type_long_int_64+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   if test "$cross_compiling" = yes; then
12359   pgac_cv_type_long_int_64=no
12360 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12361 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12362 else
12363   cat >conftest.$ac_ext <<_ACEOF
12364 #line $LINENO "configure"
12365 #include "confdefs.h"
12366 typedef long int int64;
12367
12368 /*
12369  * These are globals to discourage the compiler from folding all the
12370  * arithmetic tests down to compile-time constants.
12371  */
12372 int64 a = 20000001;
12373 int64 b = 40000005;
12374
12375 int does_int64_work()
12376 {
12377   int64 c,d;
12378
12379   if (sizeof(int64) != 8)
12380     return 0;                   /* definitely not the right size */
12381
12382   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12383   c = a * b;
12384   d = (c + b) / b;
12385   if (d != a+1)
12386     return 0;
12387   return 1;
12388 }
12389 main() {
12390   exit(! does_int64_work());
12391 }
12392 _ACEOF
12393 rm -f conftest$ac_exeext
12394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12395   (eval $ac_link) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   pgac_cv_type_long_int_64=yes
12405 else
12406   echo "$as_me: program exited with status $ac_status" >&5
12407 echo "$as_me: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12409 ( exit $ac_status )
12410 pgac_cv_type_long_int_64=no
12411 fi
12412 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12413 fi
12414 fi
12415 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12416 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12417
12418 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12419 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12420
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_LONG_INT_64
12423 _ACEOF
12424
12425 fi
12426
12427
12428 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12429   echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12430 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12431 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   if test "$cross_compiling" = yes; then
12435   pgac_cv_type_long_long_int_64=no
12436 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12437 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12438 else
12439   cat >conftest.$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12442 typedef long long int int64;
12443
12444 /*
12445  * These are globals to discourage the compiler from folding all the
12446  * arithmetic tests down to compile-time constants.
12447  */
12448 int64 a = 20000001;
12449 int64 b = 40000005;
12450
12451 int does_int64_work()
12452 {
12453   int64 c,d;
12454
12455   if (sizeof(int64) != 8)
12456     return 0;                   /* definitely not the right size */
12457
12458   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12459   c = a * b;
12460   d = (c + b) / b;
12461   if (d != a+1)
12462     return 0;
12463   return 1;
12464 }
12465 main() {
12466   exit(! does_int64_work());
12467 }
12468 _ACEOF
12469 rm -f conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471   (eval $ac_link) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; }; then
12480   pgac_cv_type_long_long_int_64=yes
12481 else
12482   echo "$as_me: program exited with status $ac_status" >&5
12483 echo "$as_me: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12485 ( exit $ac_status )
12486 pgac_cv_type_long_long_int_64=no
12487 fi
12488 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12489 fi
12490 fi
12491 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12492 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12493
12494 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12495 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_LONG_LONG_INT_64
12499 _ACEOF
12500
12501 fi
12502
12503 fi
12504
12505
12506
12507 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12508   cat >conftest.$ac_ext <<_ACEOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12511
12512 #define INT64CONST(x)  x##LL
12513 long long int foo = INT64CONST(0x1234567890123456);
12514
12515 #ifdef F77_DUMMY_MAIN
12516 #  ifdef __cplusplus
12517      extern "C"
12518 #  endif
12519    int F77_DUMMY_MAIN() { return 1; }
12520 #endif
12521 int
12522 main ()
12523 {
12524
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531   (eval $ac_compile) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } &&
12535          { ac_try='test -s conftest.$ac_objext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541
12542 cat >>confdefs.h <<\_ACEOF
12543 #define HAVE_LL_CONSTANTS 1
12544 _ACEOF
12545
12546 else
12547   echo "$as_me: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12549 fi
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12551 fi
12552
12553
12554
12555 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12556   if test $pgac_need_repl_snprintf = no; then
12557     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12558 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12559     if test "$cross_compiling" = yes; then
12560    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12561 echo "${ECHO_T}cannot test (not on host machine)" >&6
12562         # Force usage of our own snprintf, since we cannot test foreign snprintf
12563         pgac_need_repl_snprintf=yes
12564         INT64_FORMAT='"%lld"'
12565
12566 else
12567   cat >conftest.$ac_ext <<_ACEOF
12568 #line $LINENO "configure"
12569 #include "confdefs.h"
12570 #include <stdio.h>
12571 typedef long long int int64;
12572 #define INT64_FORMAT "%lld"
12573
12574 int64 a = 20000001;
12575 int64 b = 40000005;
12576
12577 int does_int64_snprintf_work()
12578 {
12579   int64 c;
12580   char buf[100];
12581
12582   if (sizeof(int64) != 8)
12583     return 0;                   /* doesn't look like the right size */
12584
12585   c = a * b;
12586   snprintf(buf, 100, INT64_FORMAT, c);
12587   if (strcmp(buf, "800000140000005") != 0)
12588     return 0;                   /* either multiply or snprintf is busted */
12589   return 1;
12590 }
12591 main() {
12592   exit(! does_int64_snprintf_work());
12593 }
12594 _ACEOF
12595 rm -f conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597   (eval $ac_link) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606    echo "$as_me:$LINENO: result: yes" >&5
12607 echo "${ECHO_T}yes" >&6
12608           INT64_FORMAT='"%lld"'
12609
12610 else
12611   echo "$as_me: program exited with status $ac_status" >&5
12612 echo "$as_me: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12614 ( exit $ac_status )
12615  echo "$as_me:$LINENO: result: no" >&5
12616 echo "${ECHO_T}no" >&6
12617     echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12618 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12619     if test "$cross_compiling" = yes; then
12620    echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12621 echo "${ECHO_T}cannot test (not on host machine)" >&6
12622         # Force usage of our own snprintf, since we cannot test foreign snprintf
12623         pgac_need_repl_snprintf=yes
12624         INT64_FORMAT='"%lld"'
12625
12626 else
12627   cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 #include "confdefs.h"
12630 #include <stdio.h>
12631 typedef long long int int64;
12632 #define INT64_FORMAT "%qd"
12633
12634 int64 a = 20000001;
12635 int64 b = 40000005;
12636
12637 int does_int64_snprintf_work()
12638 {
12639   int64 c;
12640   char buf[100];
12641
12642   if (sizeof(int64) != 8)
12643     return 0;     /* doesn't look like the right size */
12644
12645   c = a * b;
12646   snprintf(buf, 100, INT64_FORMAT, c);
12647   if (strcmp(buf, "800000140000005") != 0)
12648     return 0;     /* either multiply or snprintf is busted */
12649   return 1;
12650 }
12651 main() {
12652   exit(! does_int64_snprintf_work());
12653 }
12654 _ACEOF
12655 rm -f conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657   (eval $ac_link) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; }; then
12666    echo "$as_me:$LINENO: result: yes" >&5
12667 echo "${ECHO_T}yes" >&6
12668     INT64_FORMAT='"%qd"'
12669
12670 else
12671   echo "$as_me: program exited with status $ac_status" >&5
12672 echo "$as_me: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12674 ( exit $ac_status )
12675  echo "$as_me:$LINENO: result: no" >&5
12676 echo "${ECHO_T}no" >&6
12677         # Force usage of our own snprintf, since system snprintf is broken
12678         pgac_need_repl_snprintf=yes
12679         INT64_FORMAT='"%lld"'
12680
12681 fi
12682 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12683 fi
12684 fi
12685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12686 fi
12687   else
12688     # here if we previously decided we needed to use our own snprintf
12689     INT64_FORMAT='"%lld"'
12690   fi
12691 else
12692   # Here if we are not using 'long long int' at all
12693   INT64_FORMAT='"%ld"'
12694 fi
12695
12696
12697 cat >>confdefs.h <<_ACEOF
12698 #define INT64_FORMAT $INT64_FORMAT
12699 _ACEOF
12700
12701
12702 if test $pgac_need_repl_snprintf = yes; then
12703   LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12704 fi
12705
12706
12707 echo "$as_me:$LINENO: checking for unsigned long" >&5
12708 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12709 if test "${ac_cv_type_unsigned_long+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   cat >conftest.$ac_ext <<_ACEOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715 $ac_includes_default
12716 #ifdef F77_DUMMY_MAIN
12717 #  ifdef __cplusplus
12718      extern "C"
12719 #  endif
12720    int F77_DUMMY_MAIN() { return 1; }
12721 #endif
12722 int
12723 main ()
12724 {
12725 if ((unsigned long *) 0)
12726   return 0;
12727 if (sizeof (unsigned long))
12728   return 0;
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735   (eval $ac_compile) 2>&5
12736   ac_status=$?
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -s conftest.$ac_objext'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; }; then
12745   ac_cv_type_unsigned_long=yes
12746 else
12747   echo "$as_me: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 ac_cv_type_unsigned_long=no
12750 fi
12751 rm -f conftest.$ac_objext conftest.$ac_ext
12752 fi
12753 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12754 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12755
12756 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12757 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12758 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   if test "$ac_cv_type_unsigned_long" = yes; then
12762   # The cast to unsigned long works around a bug in the HP C Compiler
12763   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12764   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12765   # This bug is HP SR number 8606223364.
12766   if test "$cross_compiling" = yes; then
12767   # Depending upon the size, compute the lo and hi bounds.
12768 cat >conftest.$ac_ext <<_ACEOF
12769 #line $LINENO "configure"
12770 #include "confdefs.h"
12771 $ac_includes_default
12772 #ifdef F77_DUMMY_MAIN
12773 #  ifdef __cplusplus
12774      extern "C"
12775 #  endif
12776    int F77_DUMMY_MAIN() { return 1; }
12777 #endif
12778 int
12779 main ()
12780 {
12781 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12782 test_array [0] = 0
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12790   (eval $ac_compile) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -s conftest.$ac_objext'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   ac_lo=0 ac_mid=0
12801   while :; do
12802     cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 $ac_includes_default
12806 #ifdef F77_DUMMY_MAIN
12807 #  ifdef __cplusplus
12808      extern "C"
12809 #  endif
12810    int F77_DUMMY_MAIN() { return 1; }
12811 #endif
12812 int
12813 main ()
12814 {
12815 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12816 test_array [0] = 0
12817
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824   (eval $ac_compile) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } &&
12828          { ac_try='test -s conftest.$ac_objext'
12829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830   (eval $ac_try) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; }; then
12834   ac_hi=$ac_mid; break
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 ac_lo=`expr $ac_mid + 1`
12839                     if test $ac_lo -le $ac_mid; then
12840                       ac_lo= ac_hi=
12841                       break
12842                     fi
12843                     ac_mid=`expr 2 '*' $ac_mid + 1`
12844 fi
12845 rm -f conftest.$ac_objext conftest.$ac_ext
12846   done
12847 else
12848   echo "$as_me: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 cat >conftest.$ac_ext <<_ACEOF
12851 #line $LINENO "configure"
12852 #include "confdefs.h"
12853 $ac_includes_default
12854 #ifdef F77_DUMMY_MAIN
12855 #  ifdef __cplusplus
12856      extern "C"
12857 #  endif
12858    int F77_DUMMY_MAIN() { return 1; }
12859 #endif
12860 int
12861 main ()
12862 {
12863 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12864 test_array [0] = 0
12865
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872   (eval $ac_compile) 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); } &&
12876          { ac_try='test -s conftest.$ac_objext'
12877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878   (eval $ac_try) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); }; }; then
12882   ac_hi=-1 ac_mid=-1
12883   while :; do
12884     cat >conftest.$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12886 #include "confdefs.h"
12887 $ac_includes_default
12888 #ifdef F77_DUMMY_MAIN
12889 #  ifdef __cplusplus
12890      extern "C"
12891 #  endif
12892    int F77_DUMMY_MAIN() { return 1; }
12893 #endif
12894 int
12895 main ()
12896 {
12897 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12898 test_array [0] = 0
12899
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906   (eval $ac_compile) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } &&
12910          { ac_try='test -s conftest.$ac_objext'
12911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912   (eval $ac_try) 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   ac_lo=$ac_mid; break
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12920 ac_hi=`expr '(' $ac_mid ')' - 1`
12921                        if test $ac_mid -le $ac_hi; then
12922                          ac_lo= ac_hi=
12923                          break
12924                        fi
12925                        ac_mid=`expr 2 '*' $ac_mid`
12926 fi
12927 rm -f conftest.$ac_objext conftest.$ac_ext
12928   done
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 ac_lo= ac_hi=
12933 fi
12934 rm -f conftest.$ac_objext conftest.$ac_ext
12935 fi
12936 rm -f conftest.$ac_objext conftest.$ac_ext
12937 # Binary search between lo and hi bounds.
12938 while test "x$ac_lo" != "x$ac_hi"; do
12939   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12940   cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 $ac_includes_default
12944 #ifdef F77_DUMMY_MAIN
12945 #  ifdef __cplusplus
12946      extern "C"
12947 #  endif
12948    int F77_DUMMY_MAIN() { return 1; }
12949 #endif
12950 int
12951 main ()
12952 {
12953 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12954 test_array [0] = 0
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962   (eval $ac_compile) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); } &&
12966          { ac_try='test -s conftest.$ac_objext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_hi=$ac_mid
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12976 ac_lo=`expr '(' $ac_mid ')' + 1`
12977 fi
12978 rm -f conftest.$ac_objext conftest.$ac_ext
12979 done
12980 case $ac_lo in
12981 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12983 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12984    { (exit 1); exit 1; }; } ;;
12985 esac
12986 else
12987   if test "$cross_compiling" = yes; then
12988   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12989 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12990    { (exit 1); exit 1; }; }
12991 else
12992   cat >conftest.$ac_ext <<_ACEOF
12993 #line $LINENO "configure"
12994 #include "confdefs.h"
12995 $ac_includes_default
12996 long longval () { return (long) (sizeof (unsigned long)); }
12997 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12998 #include <stdio.h>
12999 #include <stdlib.h>
13000 #ifdef F77_DUMMY_MAIN
13001 #  ifdef __cplusplus
13002      extern "C"
13003 #  endif
13004    int F77_DUMMY_MAIN() { return 1; }
13005 #endif
13006 int
13007 main ()
13008 {
13009
13010   FILE *f = fopen ("conftest.val", "w");
13011   if (! f)
13012     exit (1);
13013   if (((long) (sizeof (unsigned long))) < 0)
13014     {
13015       long i = longval ();
13016       if (i != ((long) (sizeof (unsigned long))))
13017         exit (1);
13018       fprintf (f, "%ld\n", i);
13019     }
13020   else
13021     {
13022       unsigned long i = ulongval ();
13023       if (i != ((long) (sizeof (unsigned long))))
13024         exit (1);
13025       fprintf (f, "%lu\n", i);
13026     }
13027   exit (ferror (f) || fclose (f) != 0);
13028
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest$ac_exeext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13035   (eval $ac_link) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040   (eval $ac_try) 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; }; then
13044   ac_cv_sizeof_unsigned_long=`cat conftest.val`
13045 else
13046   echo "$as_me: program exited with status $ac_status" >&5
13047 echo "$as_me: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13049 ( exit $ac_status )
13050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13051 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13052    { (exit 1); exit 1; }; }
13053 fi
13054 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 fi
13057 rm -f conftest.val
13058 else
13059   ac_cv_sizeof_unsigned_long=0
13060 fi
13061 fi
13062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13063 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13066 _ACEOF
13067
13068
13069
13070 cat >>confdefs.h <<_ACEOF
13071 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13072 _ACEOF
13073
13074
13075 # Determine memory alignment requirements for the basic C data types.
13076
13077 echo "$as_me:$LINENO: checking for short" >&5
13078 echo $ECHO_N "checking for short... $ECHO_C" >&6
13079 if test "${ac_cv_type_short+set}" = set; then
13080   echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082   cat >conftest.$ac_ext <<_ACEOF
13083 #line $LINENO "configure"
13084 #include "confdefs.h"
13085 $ac_includes_default
13086 #ifdef F77_DUMMY_MAIN
13087 #  ifdef __cplusplus
13088      extern "C"
13089 #  endif
13090    int F77_DUMMY_MAIN() { return 1; }
13091 #endif
13092 int
13093 main ()
13094 {
13095 if ((short *) 0)
13096   return 0;
13097 if (sizeof (short))
13098   return 0;
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 rm -f conftest.$ac_objext
13104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105   (eval $ac_compile) 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -s conftest.$ac_objext'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; }; then
13115   ac_cv_type_short=yes
13116 else
13117   echo "$as_me: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13119 ac_cv_type_short=no
13120 fi
13121 rm -f conftest.$ac_objext conftest.$ac_ext
13122 fi
13123 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13124 echo "${ECHO_T}$ac_cv_type_short" >&6
13125
13126 echo "$as_me:$LINENO: checking alignment of short" >&5
13127 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13128 if test "${pgac_cv_alignof_short+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   if test "$ac_cv_type_short" = yes; then
13132   if test "$cross_compiling" = yes; then
13133   # Depending upon the size, compute the lo and hi bounds.
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13136 #include "confdefs.h"
13137 $ac_includes_default
13138 struct { char filler; short field; } pgac_struct;
13139 #ifdef F77_DUMMY_MAIN
13140 #  ifdef __cplusplus
13141      extern "C"
13142 #  endif
13143    int F77_DUMMY_MAIN() { return 1; }
13144 #endif
13145 int
13146 main ()
13147 {
13148 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13149 test_array [0] = 0
13150
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157   (eval $ac_compile) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); } &&
13161          { ac_try='test -s conftest.$ac_objext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   ac_lo=0 ac_mid=0
13168   while :; do
13169     cat >conftest.$ac_ext <<_ACEOF
13170 #line $LINENO "configure"
13171 #include "confdefs.h"
13172 $ac_includes_default
13173 struct { char filler; short field; } pgac_struct;
13174 #ifdef F77_DUMMY_MAIN
13175 #  ifdef __cplusplus
13176      extern "C"
13177 #  endif
13178    int F77_DUMMY_MAIN() { return 1; }
13179 #endif
13180 int
13181 main ()
13182 {
13183 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13184 test_array [0] = 0
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -s conftest.$ac_objext'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_hi=$ac_mid; break
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 ac_lo=`expr $ac_mid + 1`
13207                     if test $ac_lo -le $ac_mid; then
13208                       ac_lo= ac_hi=
13209                       break
13210                     fi
13211                     ac_mid=`expr 2 '*' $ac_mid + 1`
13212 fi
13213 rm -f conftest.$ac_objext conftest.$ac_ext
13214   done
13215 else
13216   echo "$as_me: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13221 $ac_includes_default
13222 struct { char filler; short field; } pgac_struct;
13223 #ifdef F77_DUMMY_MAIN
13224 #  ifdef __cplusplus
13225      extern "C"
13226 #  endif
13227    int F77_DUMMY_MAIN() { return 1; }
13228 #endif
13229 int
13230 main ()
13231 {
13232 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13233 test_array [0] = 0
13234
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241   (eval $ac_compile) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -s conftest.$ac_objext'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_hi=-1 ac_mid=-1
13252   while :; do
13253     cat >conftest.$ac_ext <<_ACEOF
13254 #line $LINENO "configure"
13255 #include "confdefs.h"
13256 $ac_includes_default
13257 struct { char filler; short field; } pgac_struct;
13258 #ifdef F77_DUMMY_MAIN
13259 #  ifdef __cplusplus
13260      extern "C"
13261 #  endif
13262    int F77_DUMMY_MAIN() { return 1; }
13263 #endif
13264 int
13265 main ()
13266 {
13267 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13268 test_array [0] = 0
13269
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276   (eval $ac_compile) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); } &&
13280          { ac_try='test -s conftest.$ac_objext'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; }; then
13286   ac_lo=$ac_mid; break
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 ac_hi=`expr '(' $ac_mid ')' - 1`
13291                        if test $ac_mid -le $ac_hi; then
13292                          ac_lo= ac_hi=
13293                          break
13294                        fi
13295                        ac_mid=`expr 2 '*' $ac_mid`
13296 fi
13297 rm -f conftest.$ac_objext conftest.$ac_ext
13298   done
13299 else
13300   echo "$as_me: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13302 ac_lo= ac_hi=
13303 fi
13304 rm -f conftest.$ac_objext conftest.$ac_ext
13305 fi
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13307 # Binary search between lo and hi bounds.
13308 while test "x$ac_lo" != "x$ac_hi"; do
13309   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13310   cat >conftest.$ac_ext <<_ACEOF
13311 #line $LINENO "configure"
13312 #include "confdefs.h"
13313 $ac_includes_default
13314 struct { char filler; short field; } pgac_struct;
13315 #ifdef F77_DUMMY_MAIN
13316 #  ifdef __cplusplus
13317      extern "C"
13318 #  endif
13319    int F77_DUMMY_MAIN() { return 1; }
13320 #endif
13321 int
13322 main ()
13323 {
13324 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13325 test_array [0] = 0
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333   (eval $ac_compile) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -s conftest.$ac_objext'
13338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339   (eval $ac_try) 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); }; }; then
13343   ac_hi=$ac_mid
13344 else
13345   echo "$as_me: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13347 ac_lo=`expr '(' $ac_mid ')' + 1`
13348 fi
13349 rm -f conftest.$ac_objext conftest.$ac_ext
13350 done
13351 case $ac_lo in
13352 ?*) pgac_cv_alignof_short=$ac_lo;;
13353 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13354 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13355    { (exit 1); exit 1; }; } ;;
13356 esac
13357 else
13358   if test "$cross_compiling" = yes; then
13359   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13360 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13361    { (exit 1); exit 1; }; }
13362 else
13363   cat >conftest.$ac_ext <<_ACEOF
13364 #line $LINENO "configure"
13365 #include "confdefs.h"
13366 $ac_includes_default
13367 struct { char filler; short field; } pgac_struct;
13368 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13369 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13370 #include <stdio.h>
13371 #include <stdlib.h>
13372 #ifdef F77_DUMMY_MAIN
13373 #  ifdef __cplusplus
13374      extern "C"
13375 #  endif
13376    int F77_DUMMY_MAIN() { return 1; }
13377 #endif
13378 int
13379 main ()
13380 {
13381
13382   FILE *f = fopen ("conftest.val", "w");
13383   if (! f)
13384     exit (1);
13385   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13386     {
13387       long i = longval ();
13388       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13389         exit (1);
13390       fprintf (f, "%ld\n", i);
13391     }
13392   else
13393     {
13394       unsigned long i = ulongval ();
13395       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13396         exit (1);
13397       fprintf (f, "%lu\n", i);
13398     }
13399   exit (ferror (f) || fclose (f) != 0);
13400
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 rm -f conftest$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407   (eval $ac_link) 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412   (eval $ac_try) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; }; then
13416   pgac_cv_alignof_short=`cat conftest.val`
13417 else
13418   echo "$as_me: program exited with status $ac_status" >&5
13419 echo "$as_me: failed program was:" >&5
13420 cat conftest.$ac_ext >&5
13421 ( exit $ac_status )
13422 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13423 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13424    { (exit 1); exit 1; }; }
13425 fi
13426 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427 fi
13428 fi
13429 rm -f conftest.val
13430 else
13431   pgac_cv_alignof_short=0
13432 fi
13433 fi
13434 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13435 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13436 cat >>confdefs.h <<_ACEOF
13437 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13438 _ACEOF
13439
13440
13441 echo "$as_me:$LINENO: checking for int" >&5
13442 echo $ECHO_N "checking for int... $ECHO_C" >&6
13443 if test "${ac_cv_type_int+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   cat >conftest.$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 #include "confdefs.h"
13449 $ac_includes_default
13450 #ifdef F77_DUMMY_MAIN
13451 #  ifdef __cplusplus
13452      extern "C"
13453 #  endif
13454    int F77_DUMMY_MAIN() { return 1; }
13455 #endif
13456 int
13457 main ()
13458 {
13459 if ((int *) 0)
13460   return 0;
13461 if (sizeof (int))
13462   return 0;
13463   ;
13464   return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469   (eval $ac_compile) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_cv_type_int=yes
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 ac_cv_type_int=no
13484 fi
13485 rm -f conftest.$ac_objext conftest.$ac_ext
13486 fi
13487 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13488 echo "${ECHO_T}$ac_cv_type_int" >&6
13489
13490 echo "$as_me:$LINENO: checking alignment of int" >&5
13491 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13492 if test "${pgac_cv_alignof_int+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495   if test "$ac_cv_type_int" = yes; then
13496   if test "$cross_compiling" = yes; then
13497   # Depending upon the size, compute the lo and hi bounds.
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13501 $ac_includes_default
13502 struct { char filler; int field; } pgac_struct;
13503 #ifdef F77_DUMMY_MAIN
13504 #  ifdef __cplusplus
13505      extern "C"
13506 #  endif
13507    int F77_DUMMY_MAIN() { return 1; }
13508 #endif
13509 int
13510 main ()
13511 {
13512 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13513 test_array [0] = 0
13514
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521   (eval $ac_compile) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_lo=0 ac_mid=0
13532   while :; do
13533     cat >conftest.$ac_ext <<_ACEOF
13534 #line $LINENO "configure"
13535 #include "confdefs.h"
13536 $ac_includes_default
13537 struct { char filler; int field; } pgac_struct;
13538 #ifdef F77_DUMMY_MAIN
13539 #  ifdef __cplusplus
13540      extern "C"
13541 #  endif
13542    int F77_DUMMY_MAIN() { return 1; }
13543 #endif
13544 int
13545 main ()
13546 {
13547 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13548 test_array [0] = 0
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -s conftest.$ac_objext'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566   ac_hi=$ac_mid; break
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 ac_lo=`expr $ac_mid + 1`
13571                     if test $ac_lo -le $ac_mid; then
13572                       ac_lo= ac_hi=
13573                       break
13574                     fi
13575                     ac_mid=`expr 2 '*' $ac_mid + 1`
13576 fi
13577 rm -f conftest.$ac_objext conftest.$ac_ext
13578   done
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 cat >conftest.$ac_ext <<_ACEOF
13583 #line $LINENO "configure"
13584 #include "confdefs.h"
13585 $ac_includes_default
13586 struct { char filler; int field; } pgac_struct;
13587 #ifdef F77_DUMMY_MAIN
13588 #  ifdef __cplusplus
13589      extern "C"
13590 #  endif
13591    int F77_DUMMY_MAIN() { return 1; }
13592 #endif
13593 int
13594 main ()
13595 {
13596 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13597 test_array [0] = 0
13598
13599   ;
13600   return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605   (eval $ac_compile) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); } &&
13609          { ac_try='test -s conftest.$ac_objext'
13610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611   (eval $ac_try) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   ac_hi=-1 ac_mid=-1
13616   while :; do
13617     cat >conftest.$ac_ext <<_ACEOF
13618 #line $LINENO "configure"
13619 #include "confdefs.h"
13620 $ac_includes_default
13621 struct { char filler; int field; } pgac_struct;
13622 #ifdef F77_DUMMY_MAIN
13623 #  ifdef __cplusplus
13624      extern "C"
13625 #  endif
13626    int F77_DUMMY_MAIN() { return 1; }
13627 #endif
13628 int
13629 main ()
13630 {
13631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13632 test_array [0] = 0
13633
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640   (eval $ac_compile) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -s conftest.$ac_objext'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650   ac_lo=$ac_mid; break
13651 else
13652   echo "$as_me: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13654 ac_hi=`expr '(' $ac_mid ')' - 1`
13655                        if test $ac_mid -le $ac_hi; then
13656                          ac_lo= ac_hi=
13657                          break
13658                        fi
13659                        ac_mid=`expr 2 '*' $ac_mid`
13660 fi
13661 rm -f conftest.$ac_objext conftest.$ac_ext
13662   done
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13666 ac_lo= ac_hi=
13667 fi
13668 rm -f conftest.$ac_objext conftest.$ac_ext
13669 fi
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13671 # Binary search between lo and hi bounds.
13672 while test "x$ac_lo" != "x$ac_hi"; do
13673   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13674   cat >conftest.$ac_ext <<_ACEOF
13675 #line $LINENO "configure"
13676 #include "confdefs.h"
13677 $ac_includes_default
13678 struct { char filler; int field; } pgac_struct;
13679 #ifdef F77_DUMMY_MAIN
13680 #  ifdef __cplusplus
13681      extern "C"
13682 #  endif
13683    int F77_DUMMY_MAIN() { return 1; }
13684 #endif
13685 int
13686 main ()
13687 {
13688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13689 test_array [0] = 0
13690
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697   (eval $ac_compile) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } &&
13701          { ac_try='test -s conftest.$ac_objext'
13702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703   (eval $ac_try) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); }; }; then
13707   ac_hi=$ac_mid
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 ac_lo=`expr '(' $ac_mid ')' + 1`
13712 fi
13713 rm -f conftest.$ac_objext conftest.$ac_ext
13714 done
13715 case $ac_lo in
13716 ?*) pgac_cv_alignof_int=$ac_lo;;
13717 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13718 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13719    { (exit 1); exit 1; }; } ;;
13720 esac
13721 else
13722   if test "$cross_compiling" = yes; then
13723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13725    { (exit 1); exit 1; }; }
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 #line $LINENO "configure"
13729 #include "confdefs.h"
13730 $ac_includes_default
13731 struct { char filler; int field; } pgac_struct;
13732 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13733 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13734 #include <stdio.h>
13735 #include <stdlib.h>
13736 #ifdef F77_DUMMY_MAIN
13737 #  ifdef __cplusplus
13738      extern "C"
13739 #  endif
13740    int F77_DUMMY_MAIN() { return 1; }
13741 #endif
13742 int
13743 main ()
13744 {
13745
13746   FILE *f = fopen ("conftest.val", "w");
13747   if (! f)
13748     exit (1);
13749   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13750     {
13751       long i = longval ();
13752       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13753         exit (1);
13754       fprintf (f, "%ld\n", i);
13755     }
13756   else
13757     {
13758       unsigned long i = ulongval ();
13759       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13760         exit (1);
13761       fprintf (f, "%lu\n", i);
13762     }
13763   exit (ferror (f) || fclose (f) != 0);
13764
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 rm -f conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771   (eval $ac_link) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   pgac_cv_alignof_int=`cat conftest.val`
13781 else
13782   echo "$as_me: program exited with status $ac_status" >&5
13783 echo "$as_me: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 ( exit $ac_status )
13786 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13787 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13788    { (exit 1); exit 1; }; }
13789 fi
13790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 fi
13793 rm -f conftest.val
13794 else
13795   pgac_cv_alignof_int=0
13796 fi
13797 fi
13798 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13799 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13800 cat >>confdefs.h <<_ACEOF
13801 #define ALIGNOF_INT $pgac_cv_alignof_int
13802 _ACEOF
13803
13804
13805 echo "$as_me:$LINENO: checking for long" >&5
13806 echo $ECHO_N "checking for long... $ECHO_C" >&6
13807 if test "${ac_cv_type_long+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   cat >conftest.$ac_ext <<_ACEOF
13811 #line $LINENO "configure"
13812 #include "confdefs.h"
13813 $ac_includes_default
13814 #ifdef F77_DUMMY_MAIN
13815 #  ifdef __cplusplus
13816      extern "C"
13817 #  endif
13818    int F77_DUMMY_MAIN() { return 1; }
13819 #endif
13820 int
13821 main ()
13822 {
13823 if ((long *) 0)
13824   return 0;
13825 if (sizeof (long))
13826   return 0;
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833   (eval $ac_compile) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } &&
13837          { ac_try='test -s conftest.$ac_objext'
13838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839   (eval $ac_try) 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; }; then
13843   ac_cv_type_long=yes
13844 else
13845   echo "$as_me: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 ac_cv_type_long=no
13848 fi
13849 rm -f conftest.$ac_objext conftest.$ac_ext
13850 fi
13851 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13852 echo "${ECHO_T}$ac_cv_type_long" >&6
13853
13854 echo "$as_me:$LINENO: checking alignment of long" >&5
13855 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13856 if test "${pgac_cv_alignof_long+set}" = set; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859   if test "$ac_cv_type_long" = yes; then
13860   if test "$cross_compiling" = yes; then
13861   # Depending upon the size, compute the lo and hi bounds.
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 #include "confdefs.h"
13865 $ac_includes_default
13866 struct { char filler; long field; } pgac_struct;
13867 #ifdef F77_DUMMY_MAIN
13868 #  ifdef __cplusplus
13869      extern "C"
13870 #  endif
13871    int F77_DUMMY_MAIN() { return 1; }
13872 #endif
13873 int
13874 main ()
13875 {
13876 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13877 test_array [0] = 0
13878
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885   (eval $ac_compile) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -s conftest.$ac_objext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_lo=0 ac_mid=0
13896   while :; do
13897     cat >conftest.$ac_ext <<_ACEOF
13898 #line $LINENO "configure"
13899 #include "confdefs.h"
13900 $ac_includes_default
13901 struct { char filler; long field; } pgac_struct;
13902 #ifdef F77_DUMMY_MAIN
13903 #  ifdef __cplusplus
13904      extern "C"
13905 #  endif
13906    int F77_DUMMY_MAIN() { return 1; }
13907 #endif
13908 int
13909 main ()
13910 {
13911 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13912 test_array [0] = 0
13913
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920   (eval $ac_compile) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_hi=$ac_mid; break
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 ac_lo=`expr $ac_mid + 1`
13935                     if test $ac_lo -le $ac_mid; then
13936                       ac_lo= ac_hi=
13937                       break
13938                     fi
13939                     ac_mid=`expr 2 '*' $ac_mid + 1`
13940 fi
13941 rm -f conftest.$ac_objext conftest.$ac_ext
13942   done
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 #include "confdefs.h"
13949 $ac_includes_default
13950 struct { char filler; long field; } pgac_struct;
13951 #ifdef F77_DUMMY_MAIN
13952 #  ifdef __cplusplus
13953      extern "C"
13954 #  endif
13955    int F77_DUMMY_MAIN() { return 1; }
13956 #endif
13957 int
13958 main ()
13959 {
13960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13961 test_array [0] = 0
13962
13963   ;
13964   return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969   (eval $ac_compile) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } &&
13973          { ac_try='test -s conftest.$ac_objext'
13974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975   (eval $ac_try) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }; }; then
13979   ac_hi=-1 ac_mid=-1
13980   while :; do
13981     cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 #include "confdefs.h"
13984 $ac_includes_default
13985 struct { char filler; long field; } pgac_struct;
13986 #ifdef F77_DUMMY_MAIN
13987 #  ifdef __cplusplus
13988      extern "C"
13989 #  endif
13990    int F77_DUMMY_MAIN() { return 1; }
13991 #endif
13992 int
13993 main ()
13994 {
13995 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13996 test_array [0] = 0
13997
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004   (eval $ac_compile) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_lo=$ac_mid; break
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 ac_hi=`expr '(' $ac_mid ')' - 1`
14019                        if test $ac_mid -le $ac_hi; then
14020                          ac_lo= ac_hi=
14021                          break
14022                        fi
14023                        ac_mid=`expr 2 '*' $ac_mid`
14024 fi
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14026   done
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14030 ac_lo= ac_hi=
14031 fi
14032 rm -f conftest.$ac_objext conftest.$ac_ext
14033 fi
14034 rm -f conftest.$ac_objext conftest.$ac_ext
14035 # Binary search between lo and hi bounds.
14036 while test "x$ac_lo" != "x$ac_hi"; do
14037   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14038   cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041 $ac_includes_default
14042 struct { char filler; long field; } pgac_struct;
14043 #ifdef F77_DUMMY_MAIN
14044 #  ifdef __cplusplus
14045      extern "C"
14046 #  endif
14047    int F77_DUMMY_MAIN() { return 1; }
14048 #endif
14049 int
14050 main ()
14051 {
14052 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14053 test_array [0] = 0
14054
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061   (eval $ac_compile) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -s conftest.$ac_objext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_hi=$ac_mid
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 cat conftest.$ac_ext >&5
14075 ac_lo=`expr '(' $ac_mid ')' + 1`
14076 fi
14077 rm -f conftest.$ac_objext conftest.$ac_ext
14078 done
14079 case $ac_lo in
14080 ?*) pgac_cv_alignof_long=$ac_lo;;
14081 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14082 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14083    { (exit 1); exit 1; }; } ;;
14084 esac
14085 else
14086   if test "$cross_compiling" = yes; then
14087   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14088 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14089    { (exit 1); exit 1; }; }
14090 else
14091   cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14093 #include "confdefs.h"
14094 $ac_includes_default
14095 struct { char filler; long field; } pgac_struct;
14096 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14097 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14098 #include <stdio.h>
14099 #include <stdlib.h>
14100 #ifdef F77_DUMMY_MAIN
14101 #  ifdef __cplusplus
14102      extern "C"
14103 #  endif
14104    int F77_DUMMY_MAIN() { return 1; }
14105 #endif
14106 int
14107 main ()
14108 {
14109
14110   FILE *f = fopen ("conftest.val", "w");
14111   if (! f)
14112     exit (1);
14113   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14114     {
14115       long i = longval ();
14116       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14117         exit (1);
14118       fprintf (f, "%ld\n", i);
14119     }
14120   else
14121     {
14122       unsigned long i = ulongval ();
14123       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14124         exit (1);
14125       fprintf (f, "%lu\n", i);
14126     }
14127   exit (ferror (f) || fclose (f) != 0);
14128
14129   ;
14130   return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest$ac_exeext
14134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14135   (eval $ac_link) 2>&5
14136   ac_status=$?
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   pgac_cv_alignof_long=`cat conftest.val`
14145 else
14146   echo "$as_me: program exited with status $ac_status" >&5
14147 echo "$as_me: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 ( exit $ac_status )
14150 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14151 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14152    { (exit 1); exit 1; }; }
14153 fi
14154 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14155 fi
14156 fi
14157 rm -f conftest.val
14158 else
14159   pgac_cv_alignof_long=0
14160 fi
14161 fi
14162 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14163 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14164 cat >>confdefs.h <<_ACEOF
14165 #define ALIGNOF_LONG $pgac_cv_alignof_long
14166 _ACEOF
14167
14168
14169 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14170   echo "$as_me:$LINENO: checking for long long int" >&5
14171 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14172 if test "${ac_cv_type_long_long_int+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   cat >conftest.$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 #include "confdefs.h"
14178 $ac_includes_default
14179 #ifdef F77_DUMMY_MAIN
14180 #  ifdef __cplusplus
14181      extern "C"
14182 #  endif
14183    int F77_DUMMY_MAIN() { return 1; }
14184 #endif
14185 int
14186 main ()
14187 {
14188 if ((long long int *) 0)
14189   return 0;
14190 if (sizeof (long long int))
14191   return 0;
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198   (eval $ac_compile) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } &&
14202          { ac_try='test -s conftest.$ac_objext'
14203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204   (eval $ac_try) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); }; }; then
14208   ac_cv_type_long_long_int=yes
14209 else
14210   echo "$as_me: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 ac_cv_type_long_long_int=no
14213 fi
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14215 fi
14216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14217 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14218
14219 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14220 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14221 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   if test "$ac_cv_type_long_long_int" = yes; then
14225   if test "$cross_compiling" = yes; then
14226   # Depending upon the size, compute the lo and hi bounds.
14227 cat >conftest.$ac_ext <<_ACEOF
14228 #line $LINENO "configure"
14229 #include "confdefs.h"
14230 $ac_includes_default
14231 struct { char filler; long long int field; } pgac_struct;
14232 #ifdef F77_DUMMY_MAIN
14233 #  ifdef __cplusplus
14234      extern "C"
14235 #  endif
14236    int F77_DUMMY_MAIN() { return 1; }
14237 #endif
14238 int
14239 main ()
14240 {
14241 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14242 test_array [0] = 0
14243
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250   (eval $ac_compile) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } &&
14254          { ac_try='test -s conftest.$ac_objext'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; }; then
14260   ac_lo=0 ac_mid=0
14261   while :; do
14262     cat >conftest.$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 #include "confdefs.h"
14265 $ac_includes_default
14266 struct { char filler; long long int field; } pgac_struct;
14267 #ifdef F77_DUMMY_MAIN
14268 #  ifdef __cplusplus
14269      extern "C"
14270 #  endif
14271    int F77_DUMMY_MAIN() { return 1; }
14272 #endif
14273 int
14274 main ()
14275 {
14276 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14277 test_array [0] = 0
14278
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285   (eval $ac_compile) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -s conftest.$ac_objext'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_hi=$ac_mid; break
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14299 ac_lo=`expr $ac_mid + 1`
14300                     if test $ac_lo -le $ac_mid; then
14301                       ac_lo= ac_hi=
14302                       break
14303                     fi
14304                     ac_mid=`expr 2 '*' $ac_mid + 1`
14305 fi
14306 rm -f conftest.$ac_objext conftest.$ac_ext
14307   done
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 cat >conftest.$ac_ext <<_ACEOF
14312 #line $LINENO "configure"
14313 #include "confdefs.h"
14314 $ac_includes_default
14315 struct { char filler; long long int field; } pgac_struct;
14316 #ifdef F77_DUMMY_MAIN
14317 #  ifdef __cplusplus
14318      extern "C"
14319 #  endif
14320    int F77_DUMMY_MAIN() { return 1; }
14321 #endif
14322 int
14323 main ()
14324 {
14325 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14326 test_array [0] = 0
14327
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334   (eval $ac_compile) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); } &&
14338          { ac_try='test -s conftest.$ac_objext'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; }; then
14344   ac_hi=-1 ac_mid=-1
14345   while :; do
14346     cat >conftest.$ac_ext <<_ACEOF
14347 #line $LINENO "configure"
14348 #include "confdefs.h"
14349 $ac_includes_default
14350 struct { char filler; long long int field; } pgac_struct;
14351 #ifdef F77_DUMMY_MAIN
14352 #  ifdef __cplusplus
14353      extern "C"
14354 #  endif
14355    int F77_DUMMY_MAIN() { return 1; }
14356 #endif
14357 int
14358 main ()
14359 {
14360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14361 test_array [0] = 0
14362
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369   (eval $ac_compile) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -s conftest.$ac_objext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   ac_lo=$ac_mid; break
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 cat conftest.$ac_ext >&5
14383 ac_hi=`expr '(' $ac_mid ')' - 1`
14384                        if test $ac_mid -le $ac_hi; then
14385                          ac_lo= ac_hi=
14386                          break
14387                        fi
14388                        ac_mid=`expr 2 '*' $ac_mid`
14389 fi
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391   done
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 cat conftest.$ac_ext >&5
14395 ac_lo= ac_hi=
14396 fi
14397 rm -f conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14400 # Binary search between lo and hi bounds.
14401 while test "x$ac_lo" != "x$ac_hi"; do
14402   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14403   cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 $ac_includes_default
14407 struct { char filler; long long int field; } pgac_struct;
14408 #ifdef F77_DUMMY_MAIN
14409 #  ifdef __cplusplus
14410      extern "C"
14411 #  endif
14412    int F77_DUMMY_MAIN() { return 1; }
14413 #endif
14414 int
14415 main ()
14416 {
14417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14418 test_array [0] = 0
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   ac_hi=$ac_mid
14437 else
14438   echo "$as_me: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 ac_lo=`expr '(' $ac_mid ')' + 1`
14441 fi
14442 rm -f conftest.$ac_objext conftest.$ac_ext
14443 done
14444 case $ac_lo in
14445 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14446 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14447 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14448    { (exit 1); exit 1; }; } ;;
14449 esac
14450 else
14451   if test "$cross_compiling" = yes; then
14452   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14453 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14454    { (exit 1); exit 1; }; }
14455 else
14456   cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14458 #include "confdefs.h"
14459 $ac_includes_default
14460 struct { char filler; long long int field; } pgac_struct;
14461 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14462 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14463 #include <stdio.h>
14464 #include <stdlib.h>
14465 #ifdef F77_DUMMY_MAIN
14466 #  ifdef __cplusplus
14467      extern "C"
14468 #  endif
14469    int F77_DUMMY_MAIN() { return 1; }
14470 #endif
14471 int
14472 main ()
14473 {
14474
14475   FILE *f = fopen ("conftest.val", "w");
14476   if (! f)
14477     exit (1);
14478   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14479     {
14480       long i = longval ();
14481       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14482         exit (1);
14483       fprintf (f, "%ld\n", i);
14484     }
14485   else
14486     {
14487       unsigned long i = ulongval ();
14488       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14489         exit (1);
14490       fprintf (f, "%lu\n", i);
14491     }
14492   exit (ferror (f) || fclose (f) != 0);
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500   (eval $ac_link) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505   (eval $ac_try) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; }; then
14509   pgac_cv_alignof_long_long_int=`cat conftest.val`
14510 else
14511   echo "$as_me: program exited with status $ac_status" >&5
14512 echo "$as_me: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 ( exit $ac_status )
14515 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14516 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14517    { (exit 1); exit 1; }; }
14518 fi
14519 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14520 fi
14521 fi
14522 rm -f conftest.val
14523 else
14524   pgac_cv_alignof_long_long_int=0
14525 fi
14526 fi
14527 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14528 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14529 cat >>confdefs.h <<_ACEOF
14530 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14531 _ACEOF
14532
14533
14534 fi
14535 echo "$as_me:$LINENO: checking for double" >&5
14536 echo $ECHO_N "checking for double... $ECHO_C" >&6
14537 if test "${ac_cv_type_double+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 #line $LINENO "configure"
14542 #include "confdefs.h"
14543 $ac_includes_default
14544 #ifdef F77_DUMMY_MAIN
14545 #  ifdef __cplusplus
14546      extern "C"
14547 #  endif
14548    int F77_DUMMY_MAIN() { return 1; }
14549 #endif
14550 int
14551 main ()
14552 {
14553 if ((double *) 0)
14554   return 0;
14555 if (sizeof (double))
14556   return 0;
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563   (eval $ac_compile) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   ac_cv_type_double=yes
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 cat conftest.$ac_ext >&5
14577 ac_cv_type_double=no
14578 fi
14579 rm -f conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14582 echo "${ECHO_T}$ac_cv_type_double" >&6
14583
14584 echo "$as_me:$LINENO: checking alignment of double" >&5
14585 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14586 if test "${pgac_cv_alignof_double+set}" = set; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589   if test "$ac_cv_type_double" = yes; then
14590   if test "$cross_compiling" = yes; then
14591   # Depending upon the size, compute the lo and hi bounds.
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 #include "confdefs.h"
14595 $ac_includes_default
14596 struct { char filler; double field; } pgac_struct;
14597 #ifdef F77_DUMMY_MAIN
14598 #  ifdef __cplusplus
14599      extern "C"
14600 #  endif
14601    int F77_DUMMY_MAIN() { return 1; }
14602 #endif
14603 int
14604 main ()
14605 {
14606 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14607 test_array [0] = 0
14608
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615   (eval $ac_compile) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); } &&
14619          { ac_try='test -s conftest.$ac_objext'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_lo=0 ac_mid=0
14626   while :; do
14627     cat >conftest.$ac_ext <<_ACEOF
14628 #line $LINENO "configure"
14629 #include "confdefs.h"
14630 $ac_includes_default
14631 struct { char filler; double field; } pgac_struct;
14632 #ifdef F77_DUMMY_MAIN
14633 #  ifdef __cplusplus
14634      extern "C"
14635 #  endif
14636    int F77_DUMMY_MAIN() { return 1; }
14637 #endif
14638 int
14639 main ()
14640 {
14641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14642 test_array [0] = 0
14643
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650   (eval $ac_compile) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } &&
14654          { ac_try='test -s conftest.$ac_objext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_hi=$ac_mid; break
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 cat conftest.$ac_ext >&5
14664 ac_lo=`expr $ac_mid + 1`
14665                     if test $ac_lo -le $ac_mid; then
14666                       ac_lo= ac_hi=
14667                       break
14668                     fi
14669                     ac_mid=`expr 2 '*' $ac_mid + 1`
14670 fi
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14672   done
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14678 #include "confdefs.h"
14679 $ac_includes_default
14680 struct { char filler; double field; } pgac_struct;
14681 #ifdef F77_DUMMY_MAIN
14682 #  ifdef __cplusplus
14683      extern "C"
14684 #  endif
14685    int F77_DUMMY_MAIN() { return 1; }
14686 #endif
14687 int
14688 main ()
14689 {
14690 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14691 test_array [0] = 0
14692
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14699   (eval $ac_compile) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } &&
14703          { ac_try='test -s conftest.$ac_objext'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; }; then
14709   ac_hi=-1 ac_mid=-1
14710   while :; do
14711     cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14713 #include "confdefs.h"
14714 $ac_includes_default
14715 struct { char filler; double field; } pgac_struct;
14716 #ifdef F77_DUMMY_MAIN
14717 #  ifdef __cplusplus
14718      extern "C"
14719 #  endif
14720    int F77_DUMMY_MAIN() { return 1; }
14721 #endif
14722 int
14723 main ()
14724 {
14725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14726 test_array [0] = 0
14727
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14734   (eval $ac_compile) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } &&
14738          { ac_try='test -s conftest.$ac_objext'
14739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740   (eval $ac_try) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); }; }; then
14744   ac_lo=$ac_mid; break
14745 else
14746   echo "$as_me: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 ac_hi=`expr '(' $ac_mid ')' - 1`
14749                        if test $ac_mid -le $ac_hi; then
14750                          ac_lo= ac_hi=
14751                          break
14752                        fi
14753                        ac_mid=`expr 2 '*' $ac_mid`
14754 fi
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14756   done
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
14760 ac_lo= ac_hi=
14761 fi
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14763 fi
14764 rm -f conftest.$ac_objext conftest.$ac_ext
14765 # Binary search between lo and hi bounds.
14766 while test "x$ac_lo" != "x$ac_hi"; do
14767   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14768   cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 $ac_includes_default
14772 struct { char filler; double field; } pgac_struct;
14773 #ifdef F77_DUMMY_MAIN
14774 #  ifdef __cplusplus
14775      extern "C"
14776 #  endif
14777    int F77_DUMMY_MAIN() { return 1; }
14778 #endif
14779 int
14780 main ()
14781 {
14782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14783 test_array [0] = 0
14784
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791   (eval $ac_compile) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); } &&
14795          { ac_try='test -s conftest.$ac_objext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ac_hi=$ac_mid
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 ac_lo=`expr '(' $ac_mid ')' + 1`
14806 fi
14807 rm -f conftest.$ac_objext conftest.$ac_ext
14808 done
14809 case $ac_lo in
14810 ?*) pgac_cv_alignof_double=$ac_lo;;
14811 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14812 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14813    { (exit 1); exit 1; }; } ;;
14814 esac
14815 else
14816   if test "$cross_compiling" = yes; then
14817   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14818 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14819    { (exit 1); exit 1; }; }
14820 else
14821   cat >conftest.$ac_ext <<_ACEOF
14822 #line $LINENO "configure"
14823 #include "confdefs.h"
14824 $ac_includes_default
14825 struct { char filler; double field; } pgac_struct;
14826 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14827 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14828 #include <stdio.h>
14829 #include <stdlib.h>
14830 #ifdef F77_DUMMY_MAIN
14831 #  ifdef __cplusplus
14832      extern "C"
14833 #  endif
14834    int F77_DUMMY_MAIN() { return 1; }
14835 #endif
14836 int
14837 main ()
14838 {
14839
14840   FILE *f = fopen ("conftest.val", "w");
14841   if (! f)
14842     exit (1);
14843   if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14844     {
14845       long i = longval ();
14846       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14847         exit (1);
14848       fprintf (f, "%ld\n", i);
14849     }
14850   else
14851     {
14852       unsigned long i = ulongval ();
14853       if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14854         exit (1);
14855       fprintf (f, "%lu\n", i);
14856     }
14857   exit (ferror (f) || fclose (f) != 0);
14858
14859   ;
14860   return 0;
14861 }
14862 _ACEOF
14863 rm -f conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865   (eval $ac_link) 2>&5
14866   ac_status=$?
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   pgac_cv_alignof_double=`cat conftest.val`
14875 else
14876   echo "$as_me: program exited with status $ac_status" >&5
14877 echo "$as_me: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14879 ( exit $ac_status )
14880 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14881 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14882    { (exit 1); exit 1; }; }
14883 fi
14884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 fi
14887 rm -f conftest.val
14888 else
14889   pgac_cv_alignof_double=0
14890 fi
14891 fi
14892 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14893 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14894 cat >>confdefs.h <<_ACEOF
14895 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14896 _ACEOF
14897
14898
14899
14900 # Compute maximum alignment of any basic type.
14901 # We assume long's alignment is at least as strong as char, short, or int;
14902 # but we must check long long (if it exists) and double.
14903
14904 MAX_ALIGNOF=$pgac_cv_alignof_long
14905 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14906   MAX_ALIGNOF=$pgac_cv_alignof_double
14907 fi
14908 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14909   MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14910 fi
14911
14912 cat >>confdefs.h <<_ACEOF
14913 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14914 _ACEOF
14915
14916
14917
14918 # Some platforms predefine the types int8, int16, etc.  Only check
14919 # a (hopefully) representative subset.
14920 echo "$as_me:$LINENO: checking for int8" >&5
14921 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14922 if test "${ac_cv_type_int8+set}" = set; then
14923   echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925   cat >conftest.$ac_ext <<_ACEOF
14926 #line $LINENO "configure"
14927 #include "confdefs.h"
14928 #include <stdio.h>
14929 #ifdef HAVE_SUPPORTDEFS_H
14930 #include <SupportDefs.h>
14931 #endif
14932
14933 #ifdef F77_DUMMY_MAIN
14934 #  ifdef __cplusplus
14935      extern "C"
14936 #  endif
14937    int F77_DUMMY_MAIN() { return 1; }
14938 #endif
14939 int
14940 main ()
14941 {
14942 if ((int8 *) 0)
14943   return 0;
14944 if (sizeof (int8))
14945   return 0;
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14952   (eval $ac_compile) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } &&
14956          { ac_try='test -s conftest.$ac_objext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962   ac_cv_type_int8=yes
14963 else
14964   echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 ac_cv_type_int8=no
14967 fi
14968 rm -f conftest.$ac_objext conftest.$ac_ext
14969 fi
14970 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14971 echo "${ECHO_T}$ac_cv_type_int8" >&6
14972 if test $ac_cv_type_int8 = yes; then
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_INT8 1
14976 _ACEOF
14977
14978
14979 fi
14980 echo "$as_me:$LINENO: checking for uint8" >&5
14981 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14982 if test "${ac_cv_type_uint8+set}" = set; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   cat >conftest.$ac_ext <<_ACEOF
14986 #line $LINENO "configure"
14987 #include "confdefs.h"
14988 #include <stdio.h>
14989 #ifdef HAVE_SUPPORTDEFS_H
14990 #include <SupportDefs.h>
14991 #endif
14992
14993 #ifdef F77_DUMMY_MAIN
14994 #  ifdef __cplusplus
14995      extern "C"
14996 #  endif
14997    int F77_DUMMY_MAIN() { return 1; }
14998 #endif
14999 int
15000 main ()
15001 {
15002 if ((uint8 *) 0)
15003   return 0;
15004 if (sizeof (uint8))
15005   return 0;
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15012   (eval $ac_compile) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } &&
15016          { ac_try='test -s conftest.$ac_objext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_cv_type_uint8=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15026 ac_cv_type_uint8=no
15027 fi
15028 rm -f conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15031 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15032 if test $ac_cv_type_uint8 = yes; then
15033
15034 cat >>confdefs.h <<_ACEOF
15035 #define HAVE_UINT8 1
15036 _ACEOF
15037
15038
15039 fi
15040 echo "$as_me:$LINENO: checking for int64" >&5
15041 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15042 if test "${ac_cv_type_int64+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   cat >conftest.$ac_ext <<_ACEOF
15046 #line $LINENO "configure"
15047 #include "confdefs.h"
15048 #include <stdio.h>
15049 #ifdef HAVE_SUPPORTDEFS_H
15050 #include <SupportDefs.h>
15051 #endif
15052
15053 #ifdef F77_DUMMY_MAIN
15054 #  ifdef __cplusplus
15055      extern "C"
15056 #  endif
15057    int F77_DUMMY_MAIN() { return 1; }
15058 #endif
15059 int
15060 main ()
15061 {
15062 if ((int64 *) 0)
15063   return 0;
15064 if (sizeof (int64))
15065   return 0;
15066   ;
15067   return 0;
15068 }
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15072   (eval $ac_compile) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); } &&
15076          { ac_try='test -s conftest.$ac_objext'
15077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078   (eval $ac_try) 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); }; }; then
15082   ac_cv_type_int64=yes
15083 else
15084   echo "$as_me: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 ac_cv_type_int64=no
15087 fi
15088 rm -f conftest.$ac_objext conftest.$ac_ext
15089 fi
15090 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15091 echo "${ECHO_T}$ac_cv_type_int64" >&6
15092 if test $ac_cv_type_int64 = yes; then
15093
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_INT64 1
15096 _ACEOF
15097
15098
15099 fi
15100 echo "$as_me:$LINENO: checking for uint64" >&5
15101 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15102 if test "${ac_cv_type_uint64+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 #include "confdefs.h"
15108 #include <stdio.h>
15109 #ifdef HAVE_SUPPORTDEFS_H
15110 #include <SupportDefs.h>
15111 #endif
15112
15113 #ifdef F77_DUMMY_MAIN
15114 #  ifdef __cplusplus
15115      extern "C"
15116 #  endif
15117    int F77_DUMMY_MAIN() { return 1; }
15118 #endif
15119 int
15120 main ()
15121 {
15122 if ((uint64 *) 0)
15123   return 0;
15124 if (sizeof (uint64))
15125   return 0;
15126   ;
15127   return 0;
15128 }
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132   (eval $ac_compile) 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } &&
15136          { ac_try='test -s conftest.$ac_objext'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; }; then
15142   ac_cv_type_uint64=yes
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15146 ac_cv_type_uint64=no
15147 fi
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15149 fi
15150 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15151 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15152 if test $ac_cv_type_uint64 = yes; then
15153
15154 cat >>confdefs.h <<_ACEOF
15155 #define HAVE_UINT64 1
15156 _ACEOF
15157
15158
15159 fi
15160
15161
15162 # We also check for sig_atomic_t, which *should* be defined per ANSI
15163 # C, but is missing on some old platforms.
15164 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15165 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15166 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169   cat >conftest.$ac_ext <<_ACEOF
15170 #line $LINENO "configure"
15171 #include "confdefs.h"
15172 #include <signal.h>
15173
15174 #ifdef F77_DUMMY_MAIN
15175 #  ifdef __cplusplus
15176      extern "C"
15177 #  endif
15178    int F77_DUMMY_MAIN() { return 1; }
15179 #endif
15180 int
15181 main ()
15182 {
15183 if ((sig_atomic_t *) 0)
15184   return 0;
15185 if (sizeof (sig_atomic_t))
15186   return 0;
15187   ;
15188   return 0;
15189 }
15190 _ACEOF
15191 rm -f conftest.$ac_objext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193   (eval $ac_compile) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } &&
15197          { ac_try='test -s conftest.$ac_objext'
15198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199   (eval $ac_try) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; }; then
15203   ac_cv_type_sig_atomic_t=yes
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 ac_cv_type_sig_atomic_t=no
15208 fi
15209 rm -f conftest.$ac_objext conftest.$ac_ext
15210 fi
15211 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15212 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15213 if test $ac_cv_type_sig_atomic_t = yes; then
15214
15215 cat >>confdefs.h <<_ACEOF
15216 #define HAVE_SIG_ATOMIC_T 1
15217 _ACEOF
15218
15219
15220 fi
15221
15222
15223
15224 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15225 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15226 if test "${pgac_cv_func_posix_signals+set}" = set; then
15227   echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229   cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 #include <signal.h>
15233
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 struct sigaction act, oact;
15244 sigemptyset(&act.sa_mask);
15245 act.sa_flags = SA_RESTART;
15246 sigaction(0, &act, &oact);
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253   (eval $ac_link) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   pgac_cv_func_posix_signals=yes
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 pgac_cv_func_posix_signals=no
15268 fi
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15270 fi
15271 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15272 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15273 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15274
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_POSIX_SIGNALS
15277 _ACEOF
15278
15279 fi
15280 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15281
15282 if test $ac_cv_func_fseeko = yes; then
15283 # Check whether --enable-largefile or --disable-largefile was given.
15284 if test "${enable_largefile+set}" = set; then
15285   enableval="$enable_largefile"
15286
15287 fi;
15288 if test "$enable_largefile" != no; then
15289
15290   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15291 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15292 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15293   echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295   ac_cv_sys_largefile_CC=no
15296      if test "$GCC" != yes; then
15297        ac_save_CC=$CC
15298        while :; do
15299          # IRIX 6.2 and later do not support large files by default,
15300          # so use the C compiler's -n32 option if that helps.
15301          cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 #include "confdefs.h"
15304 #include <sys/types.h>
15305  /* Check that off_t can represent 2**63 - 1 correctly.
15306     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15307     since some C++ compilers masquerading as C compilers
15308     incorrectly reject 9223372036854775807.  */
15309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15310   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15311                        && LARGE_OFF_T % 2147483647 == 1)
15312                       ? 1 : -1];
15313 #ifdef F77_DUMMY_MAIN
15314 #  ifdef __cplusplus
15315      extern "C"
15316 #  endif
15317    int F77_DUMMY_MAIN() { return 1; }
15318 #endif
15319 int
15320 main ()
15321 {
15322
15323   ;
15324   return 0;
15325 }
15326 _ACEOF
15327          rm -f conftest.$ac_objext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15329   (eval $ac_compile) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); } &&
15333          { ac_try='test -s conftest.$ac_objext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   break
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15343 fi
15344 rm -f conftest.$ac_objext
15345          CC="$CC -n32"
15346          rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348   (eval $ac_compile) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -s conftest.$ac_objext'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358   ac_cv_sys_largefile_CC=' -n32'; break
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15362 fi
15363 rm -f conftest.$ac_objext
15364          break
15365        done
15366        CC=$ac_save_CC
15367        rm -f conftest.$ac_ext
15368     fi
15369 fi
15370 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15371 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15372   if test "$ac_cv_sys_largefile_CC" != no; then
15373     CC=$CC$ac_cv_sys_largefile_CC
15374   fi
15375
15376   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15377 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15378 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   while :; do
15382   ac_cv_sys_file_offset_bits=no
15383   cat >conftest.$ac_ext <<_ACEOF
15384 #line $LINENO "configure"
15385 #include "confdefs.h"
15386 #include <sys/types.h>
15387  /* Check that off_t can represent 2**63 - 1 correctly.
15388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15389     since some C++ compilers masquerading as C compilers
15390     incorrectly reject 9223372036854775807.  */
15391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15393                        && LARGE_OFF_T % 2147483647 == 1)
15394                       ? 1 : -1];
15395 #ifdef F77_DUMMY_MAIN
15396 #  ifdef __cplusplus
15397      extern "C"
15398 #  endif
15399    int F77_DUMMY_MAIN() { return 1; }
15400 #endif
15401 int
15402 main ()
15403 {
15404
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411   (eval $ac_compile) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } &&
15415          { ac_try='test -s conftest.$ac_objext'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; }; then
15421   break
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 fi
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15427   cat >conftest.$ac_ext <<_ACEOF
15428 #line $LINENO "configure"
15429 #include "confdefs.h"
15430 #define _FILE_OFFSET_BITS 64
15431 #include <sys/types.h>
15432  /* Check that off_t can represent 2**63 - 1 correctly.
15433     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15434     since some C++ compilers masquerading as C compilers
15435     incorrectly reject 9223372036854775807.  */
15436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15437   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15438                        && LARGE_OFF_T % 2147483647 == 1)
15439                       ? 1 : -1];
15440 #ifdef F77_DUMMY_MAIN
15441 #  ifdef __cplusplus
15442      extern "C"
15443 #  endif
15444    int F77_DUMMY_MAIN() { return 1; }
15445 #endif
15446 int
15447 main ()
15448 {
15449
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456   (eval $ac_compile) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -s conftest.$ac_objext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_cv_sys_file_offset_bits=64; break
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15470 fi
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15472   break
15473 done
15474 fi
15475 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15477 if test "$ac_cv_sys_file_offset_bits" != no; then
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15481 _ACEOF
15482
15483 fi
15484 rm -f conftest*
15485   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15486 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15487 if test "${ac_cv_sys_large_files+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   while :; do
15491   ac_cv_sys_large_files=no
15492   cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 #include "confdefs.h"
15495 #include <sys/types.h>
15496  /* Check that off_t can represent 2**63 - 1 correctly.
15497     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15498     since some C++ compilers masquerading as C compilers
15499     incorrectly reject 9223372036854775807.  */
15500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15501   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15502                        && LARGE_OFF_T % 2147483647 == 1)
15503                       ? 1 : -1];
15504 #ifdef F77_DUMMY_MAIN
15505 #  ifdef __cplusplus
15506      extern "C"
15507 #  endif
15508    int F77_DUMMY_MAIN() { return 1; }
15509 #endif
15510 int
15511 main ()
15512 {
15513
15514   ;
15515   return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520   (eval $ac_compile) 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); } &&
15524          { ac_try='test -s conftest.$ac_objext'
15525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526   (eval $ac_try) 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); }; }; then
15530   break
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 fi
15535 rm -f conftest.$ac_objext conftest.$ac_ext
15536   cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15538 #include "confdefs.h"
15539 #define _LARGE_FILES 1
15540 #include <sys/types.h>
15541  /* Check that off_t can represent 2**63 - 1 correctly.
15542     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15543     since some C++ compilers masquerading as C compilers
15544     incorrectly reject 9223372036854775807.  */
15545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15546   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15547                        && LARGE_OFF_T % 2147483647 == 1)
15548                       ? 1 : -1];
15549 #ifdef F77_DUMMY_MAIN
15550 #  ifdef __cplusplus
15551      extern "C"
15552 #  endif
15553    int F77_DUMMY_MAIN() { return 1; }
15554 #endif
15555 int
15556 main ()
15557 {
15558
15559   ;
15560   return 0;
15561 }
15562 _ACEOF
15563 rm -f conftest.$ac_objext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565   (eval $ac_compile) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_cv_sys_large_files=1; break
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 fi
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15581   break
15582 done
15583 fi
15584 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15585 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15586 if test "$ac_cv_sys_large_files" != no; then
15587
15588 cat >>confdefs.h <<_ACEOF
15589 #define _LARGE_FILES $ac_cv_sys_large_files
15590 _ACEOF
15591
15592 fi
15593 rm -f conftest*
15594 fi
15595
15596 fi
15597
15598
15599 # Select semaphore implementation type.
15600 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15601
15602 cat >>confdefs.h <<\_ACEOF
15603 #define USE_NAMED_POSIX_SEMAPHORES 1
15604 _ACEOF
15605
15606   SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15607 else
15608   if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15612 _ACEOF
15613
15614     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15615   else
15616
15617 cat >>confdefs.h <<\_ACEOF
15618 #define USE_SYSV_SEMAPHORES 1
15619 _ACEOF
15620
15621     SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15622   fi
15623 fi
15624
15625
15626 # Select shared-memory implementation type.
15627
15628 cat >>confdefs.h <<\_ACEOF
15629 #define USE_SYSV_SHARED_MEMORY 1
15630 _ACEOF
15631
15632 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15633
15634
15635 if test "$enable_nls" = yes ; then
15636
15637   echo "$as_me:$LINENO: checking for library containing gettext" >&5
15638 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15639 if test "${ac_cv_search_gettext+set}" = set; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   ac_func_search_save_LIBS=$LIBS
15643 ac_cv_search_gettext=no
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 #include "confdefs.h"
15647
15648 /* Override any gcc2 internal prototype to avoid an error.  */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 /* We use char because int might match the return type of a gcc2
15653    builtin and then its argument prototype would still apply.  */
15654 char gettext ();
15655 #ifdef F77_DUMMY_MAIN
15656 #  ifdef __cplusplus
15657      extern "C"
15658 #  endif
15659    int F77_DUMMY_MAIN() { return 1; }
15660 #endif
15661 int
15662 main ()
15663 {
15664 gettext ();
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671   (eval $ac_link) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } &&
15675          { ac_try='test -s conftest$ac_exeext'
15676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677   (eval $ac_try) 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); }; }; then
15681   ac_cv_search_gettext="none required"
15682 else
15683   echo "$as_me: failed program was:" >&5
15684 cat conftest.$ac_ext >&5
15685 fi
15686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 if test "$ac_cv_search_gettext" = no; then
15688   for ac_lib in intl; do
15689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15690     cat >conftest.$ac_ext <<_ACEOF
15691 #line $LINENO "configure"
15692 #include "confdefs.h"
15693
15694 /* Override any gcc2 internal prototype to avoid an error.  */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 /* We use char because int might match the return type of a gcc2
15699    builtin and then its argument prototype would still apply.  */
15700 char gettext ();
15701 #ifdef F77_DUMMY_MAIN
15702 #  ifdef __cplusplus
15703      extern "C"
15704 #  endif
15705    int F77_DUMMY_MAIN() { return 1; }
15706 #endif
15707 int
15708 main ()
15709 {
15710 gettext ();
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717   (eval $ac_link) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } &&
15721          { ac_try='test -s conftest$ac_exeext'
15722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723   (eval $ac_try) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727   ac_cv_search_gettext="-l$ac_lib"
15728 break
15729 else
15730   echo "$as_me: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15732 fi
15733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15734   done
15735 fi
15736 LIBS=$ac_func_search_save_LIBS
15737 fi
15738 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15739 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15740 if test "$ac_cv_search_gettext" != no; then
15741   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15742
15743 else
15744   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15745 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15746    { (exit 1); exit 1; }; }
15747 fi
15748
15749   if test "${ac_cv_header_libintl_h+set}" = set; then
15750   echo "$as_me:$LINENO: checking for libintl.h" >&5
15751 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15752 if test "${ac_cv_header_libintl_h+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 fi
15755 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15756 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15757 else
15758   # Is the header compilable?
15759 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15760 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 #include "confdefs.h"
15764 $ac_includes_default
15765 #include <libintl.h>
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_header_compiler=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 ac_header_compiler=no
15784 fi
15785 rm -f conftest.$ac_objext conftest.$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787 echo "${ECHO_T}$ac_header_compiler" >&6
15788
15789 # Is the header present?
15790 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15791 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793 #line $LINENO "configure"
15794 #include "confdefs.h"
15795 #include <libintl.h>
15796 _ACEOF
15797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15799   ac_status=$?
15800   egrep -v '^ *\+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } >/dev/null; then
15805   if test -s conftest.err; then
15806     ac_cpp_err=$ac_c_preproc_warn_flag
15807   else
15808     ac_cpp_err=
15809   fi
15810 else
15811   ac_cpp_err=yes
15812 fi
15813 if test -z "$ac_cpp_err"; then
15814   ac_header_preproc=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817   cat conftest.$ac_ext >&5
15818   ac_header_preproc=no
15819 fi
15820 rm -f conftest.err conftest.$ac_ext
15821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6
15823
15824 # So?  What about this header?
15825 case $ac_header_compiler:$ac_header_preproc in
15826   yes:no )
15827     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15831   no:yes )
15832     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15833 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15834     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15835 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15836     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15837 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15838 esac
15839 echo "$as_me:$LINENO: checking for libintl.h" >&5
15840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15841 if test "${ac_cv_header_libintl_h+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   ac_cv_header_libintl_h=$ac_header_preproc
15845 fi
15846 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15847 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15848
15849 fi
15850 if test $ac_cv_header_libintl_h = yes; then
15851   :
15852 else
15853   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15854 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15855    { (exit 1); exit 1; }; }
15856 fi
15857
15858
15859   for ac_prog in msgfmt
15860 do
15861   # Extract the first word of "$ac_prog", so it can be a program name with args.
15862 set dummy $ac_prog; ac_word=$2
15863 echo "$as_me:$LINENO: checking for $ac_word" >&5
15864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15865 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15866   echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868   if test -n "$MSGFMT"; then
15869   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15870 else
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15873 do
15874   IFS=$as_save_IFS
15875   test -z "$as_dir" && as_dir=.
15876   for ac_exec_ext in '' $ac_executable_extensions; do
15877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878     ac_cv_prog_MSGFMT="$ac_prog"
15879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15880     break 2
15881   fi
15882 done
15883 done
15884
15885 fi
15886 fi
15887 MSGFMT=$ac_cv_prog_MSGFMT
15888 if test -n "$MSGFMT"; then
15889   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15890 echo "${ECHO_T}$MSGFMT" >&6
15891 else
15892   echo "$as_me:$LINENO: result: no" >&5
15893 echo "${ECHO_T}no" >&6
15894 fi
15895
15896   test -n "$MSGFMT" && break
15897 done
15898
15899   if test -z "$MSGFMT"; then
15900     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15901 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15902    { (exit 1); exit 1; }; }
15903   fi
15904   for ac_prog in msgmerge
15905 do
15906   # Extract the first word of "$ac_prog", so it can be a program name with args.
15907 set dummy $ac_prog; ac_word=$2
15908 echo "$as_me:$LINENO: checking for $ac_word" >&5
15909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15910 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15911   echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913   if test -n "$MSGMERGE"; then
15914   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15915 else
15916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917 for as_dir in $PATH
15918 do
15919   IFS=$as_save_IFS
15920   test -z "$as_dir" && as_dir=.
15921   for ac_exec_ext in '' $ac_executable_extensions; do
15922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15923     ac_cv_prog_MSGMERGE="$ac_prog"
15924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15925     break 2
15926   fi
15927 done
15928 done
15929
15930 fi
15931 fi
15932 MSGMERGE=$ac_cv_prog_MSGMERGE
15933 if test -n "$MSGMERGE"; then
15934   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15935 echo "${ECHO_T}$MSGMERGE" >&6
15936 else
15937   echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15939 fi
15940
15941   test -n "$MSGMERGE" && break
15942 done
15943
15944   for ac_prog in xgettext
15945 do
15946   # Extract the first word of "$ac_prog", so it can be a program name with args.
15947 set dummy $ac_prog; ac_word=$2
15948 echo "$as_me:$LINENO: checking for $ac_word" >&5
15949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15950 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953   if test -n "$XGETTEXT"; then
15954   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15955 else
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $PATH
15958 do
15959   IFS=$as_save_IFS
15960   test -z "$as_dir" && as_dir=.
15961   for ac_exec_ext in '' $ac_executable_extensions; do
15962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963     ac_cv_prog_XGETTEXT="$ac_prog"
15964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15965     break 2
15966   fi
15967 done
15968 done
15969
15970 fi
15971 fi
15972 XGETTEXT=$ac_cv_prog_XGETTEXT
15973 if test -n "$XGETTEXT"; then
15974   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15975 echo "${ECHO_T}$XGETTEXT" >&6
15976 else
15977   echo "$as_me:$LINENO: result: no" >&5
15978 echo "${ECHO_T}no" >&6
15979 fi
15980
15981   test -n "$XGETTEXT" && break
15982 done
15983
15984
15985   # Note: share/locale is always the default, independent of $datadir
15986   localedir='${prefix}/share/locale'
15987   if test x"$prefix" = x"NONE"; then
15988     exp_localedir="$ac_default_prefix/share/locale"
15989   else
15990     exp_localedir="$prefix/share/locale"
15991   fi
15992
15993
15994
15995 cat >>confdefs.h <<_ACEOF
15996 #define LOCALEDIR "$exp_localedir"
15997 _ACEOF
15998
15999
16000 fi
16001
16002 if test "$with_CXX" = yes; then
16003
16004
16005 ac_ext=cc
16006 ac_cpp='$CXXCPP $CPPFLAGS'
16007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16010
16011 if test "${ac_cv_header_string+set}" = set; then
16012   echo "$as_me:$LINENO: checking for string" >&5
16013 echo $ECHO_N "checking for string... $ECHO_C" >&6
16014 if test "${ac_cv_header_string+set}" = set; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 fi
16017 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16018 echo "${ECHO_T}$ac_cv_header_string" >&6
16019 else
16020   # Is the header compilable?
16021 echo "$as_me:$LINENO: checking string usability" >&5
16022 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 $ac_includes_default
16027 #include <string>
16028 _ACEOF
16029 rm -f conftest.$ac_objext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16031   (eval $ac_compile) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -s conftest.$ac_objext'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; }; then
16041   ac_header_compiler=yes
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16045 ac_header_compiler=no
16046 fi
16047 rm -f conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16050
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking string presence" >&5
16053 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16055 #line $LINENO "configure"
16056 #include "confdefs.h"
16057 #include <string>
16058 _ACEOF
16059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16061   ac_status=$?
16062   egrep -v '^ *\+' conftest.er1 >conftest.err
16063   rm -f conftest.er1
16064   cat conftest.err >&5
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); } >/dev/null; then
16067   if test -s conftest.err; then
16068     ac_cpp_err=$ac_cxx_preproc_warn_flag
16069   else
16070     ac_cpp_err=
16071   fi
16072 else
16073   ac_cpp_err=yes
16074 fi
16075 if test -z "$ac_cpp_err"; then
16076   ac_header_preproc=yes
16077 else
16078   echo "$as_me: failed program was:" >&5
16079   cat conftest.$ac_ext >&5
16080   ac_header_preproc=no
16081 fi
16082 rm -f conftest.err conftest.$ac_ext
16083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6
16085
16086 # So?  What about this header?
16087 case $ac_header_compiler:$ac_header_preproc in
16088   yes:no )
16089     { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16092 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16093   no:yes )
16094     { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16099 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16100 esac
16101 echo "$as_me:$LINENO: checking for string" >&5
16102 echo $ECHO_N "checking for string... $ECHO_C" >&6
16103 if test "${ac_cv_header_string+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   ac_cv_header_string=$ac_header_preproc
16107 fi
16108 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16109 echo "${ECHO_T}$ac_cv_header_string" >&6
16110
16111 fi
16112 if test $ac_cv_header_string = yes; then
16113
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_CXX_STRING_HEADER 1
16116 _ACEOF
16117
16118 else
16119   echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16120 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16121 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16122   echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124   cat >conftest.$ac_ext <<_ACEOF
16125 #line $LINENO "configure"
16126 #include "confdefs.h"
16127 #include <stdio.h>
16128 #include <stdlib.h>
16129 #include <string.h>
16130
16131 #ifdef F77_DUMMY_MAIN
16132 #  ifdef __cplusplus
16133      extern "C"
16134 #  endif
16135    int F77_DUMMY_MAIN() { return 1; }
16136 #endif
16137 int
16138 main ()
16139 {
16140 string foo = "test"
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147   (eval $ac_compile) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157   pgac_cv_class_string_in_string_h=yes
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 pgac_cv_class_string_in_string_h=no
16162 fi
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16164 fi
16165 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16166 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16167
16168   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16169     { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16170 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16171    { (exit 1); exit 1; }; }
16172   fi
16173
16174 fi
16175
16176
16177 ac_ext=c
16178 ac_cpp='$CPP $CPPFLAGS'
16179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16182
16183
16184 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16185 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16186 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189
16190 ac_ext=cc
16191 ac_cpp='$CXXCPP $CPPFLAGS'
16192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16195
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16198 #include "confdefs.h"
16199 #include <stdio.h>
16200 #include <stdlib.h>
16201 #ifdef HAVE_CXX_STRING_HEADER
16202 #include <string>
16203 #endif
16204 using namespace std;
16205
16206 #ifdef F77_DUMMY_MAIN
16207 #  ifdef __cplusplus
16208      extern "C"
16209 #  endif
16210    int F77_DUMMY_MAIN() { return 1; }
16211 #endif
16212 int
16213 main ()
16214 {
16215
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222   (eval $ac_compile) 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); } &&
16226          { ac_try='test -s conftest.$ac_objext'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }; then
16232   pgac_cv_cxx_namespace_std=yes
16233 else
16234   echo "$as_me: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16236 pgac_cv_cxx_namespace_std=no
16237 fi
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16239 ac_ext=c
16240 ac_cpp='$CPP $CPPFLAGS'
16241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16244
16245 fi
16246 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16247 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16248
16249 if test $pgac_cv_cxx_namespace_std = yes ; then
16250
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_NAMESPACE_STD 1
16253 _ACEOF
16254
16255 fi
16256 fi
16257
16258
16259 # Check for Tcl configuration script tclConfig.sh
16260 if test "$with_tcl" = yes; then
16261     for ac_prog in tclsh tcl
16262 do
16263   # Extract the first word of "$ac_prog", so it can be a program name with args.
16264 set dummy $ac_prog; ac_word=$2
16265 echo "$as_me:$LINENO: checking for $ac_word" >&5
16266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16267 if test "${ac_cv_path_TCLSH+set}" = set; then
16268   echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270   case $TCLSH in
16271   [\\/]* | ?:[\\/]*)
16272   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16273   ;;
16274   *)
16275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16276 for as_dir in $PATH
16277 do
16278   IFS=$as_save_IFS
16279   test -z "$as_dir" && as_dir=.
16280   for ac_exec_ext in '' $ac_executable_extensions; do
16281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16282     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16284     break 2
16285   fi
16286 done
16287 done
16288
16289   ;;
16290 esac
16291 fi
16292 TCLSH=$ac_cv_path_TCLSH
16293
16294 if test -n "$TCLSH"; then
16295   echo "$as_me:$LINENO: result: $TCLSH" >&5
16296 echo "${ECHO_T}$TCLSH" >&6
16297 else
16298   echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6
16300 fi
16301
16302   test -n "$TCLSH" && break
16303 done
16304
16305 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16306 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16307 # Let user override test
16308 if test -z "$TCL_CONFIG_SH"; then
16309     pgac_test_dirs="$with_tclconfig"
16310
16311     set X $pgac_test_dirs; shift
16312     if test $# -eq 0; then
16313         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16314 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16315    { (exit 1); exit 1; }; }
16316         set X `echo 'puts $auto_path' | $TCLSH`; shift
16317     fi
16318
16319     for pgac_dir do
16320         if test -r "$pgac_dir/tclConfig.sh"; then
16321             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16322             break
16323         fi
16324     done
16325 fi
16326
16327 if test -z "$TCL_CONFIG_SH"; then
16328     echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6
16330     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16331 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16332    { (exit 1); exit 1; }; }
16333 else
16334     echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16335 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16336 fi
16337
16338
16339
16340     . "$TCL_CONFIG_SH"
16341 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16342 eval TCL_LIBS=\"$TCL_LIBS\"
16343 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16344 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16345
16346     fi
16347
16348 # Check for Tk configuration script tkConfig.sh
16349 if test "$with_tk" = yes; then
16350     echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16351 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16352 # Let user override test
16353 if test -z "$TK_CONFIG_SH"; then
16354     pgac_test_dirs="$with_tkconfig $with_tclconfig"
16355
16356     set X $pgac_test_dirs; shift
16357     if test $# -eq 0; then
16358         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16359 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16360    { (exit 1); exit 1; }; }
16361         set X `echo 'puts $auto_path' | $TCLSH`; shift
16362     fi
16363
16364     for pgac_dir do
16365         if test -r "$pgac_dir/tkConfig.sh"; then
16366             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16367             break
16368         fi
16369     done
16370 fi
16371
16372 if test -z "$TK_CONFIG_SH"; then
16373     echo "$as_me:$LINENO: result: no" >&5
16374 echo "${ECHO_T}no" >&6
16375     { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16376 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16377    { (exit 1); exit 1; }; }
16378 else
16379     echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16380 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16381 fi
16382
16383
16384
16385     . "$TK_CONFIG_SH"
16386 eval TK_LIBS=\"$TK_LIBS\"
16387 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16388 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16389
16390 fi
16391
16392
16393 #
16394 # Check for DocBook and tools
16395 #
16396 for ac_prog in onsgmls nsgmls
16397 do
16398   # Extract the first word of "$ac_prog", so it can be a program name with args.
16399 set dummy $ac_prog; ac_word=$2
16400 echo "$as_me:$LINENO: checking for $ac_word" >&5
16401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16402 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   if test -n "$NSGMLS"; then
16406   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16410 do
16411   IFS=$as_save_IFS
16412   test -z "$as_dir" && as_dir=.
16413   for ac_exec_ext in '' $ac_executable_extensions; do
16414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415     ac_cv_prog_NSGMLS="$ac_prog"
16416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16417     break 2
16418   fi
16419 done
16420 done
16421
16422 fi
16423 fi
16424 NSGMLS=$ac_cv_prog_NSGMLS
16425 if test -n "$NSGMLS"; then
16426   echo "$as_me:$LINENO: result: $NSGMLS" >&5
16427 echo "${ECHO_T}$NSGMLS" >&6
16428 else
16429   echo "$as_me:$LINENO: result: no" >&5
16430 echo "${ECHO_T}no" >&6
16431 fi
16432
16433   test -n "$NSGMLS" && break
16434 done
16435
16436 for ac_prog in openjade jade
16437 do
16438   # Extract the first word of "$ac_prog", so it can be a program name with args.
16439 set dummy $ac_prog; ac_word=$2
16440 echo "$as_me:$LINENO: checking for $ac_word" >&5
16441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16442 if test "${ac_cv_prog_JADE+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   if test -n "$JADE"; then
16446   ac_cv_prog_JADE="$JADE" # Let the user override the test.
16447 else
16448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16449 for as_dir in $PATH
16450 do
16451   IFS=$as_save_IFS
16452   test -z "$as_dir" && as_dir=.
16453   for ac_exec_ext in '' $ac_executable_extensions; do
16454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16455     ac_cv_prog_JADE="$ac_prog"
16456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16457     break 2
16458   fi
16459 done
16460 done
16461
16462 fi
16463 fi
16464 JADE=$ac_cv_prog_JADE
16465 if test -n "$JADE"; then
16466   echo "$as_me:$LINENO: result: $JADE" >&5
16467 echo "${ECHO_T}$JADE" >&6
16468 else
16469   echo "$as_me:$LINENO: result: no" >&5
16470 echo "${ECHO_T}no" >&6
16471 fi
16472
16473   test -n "$JADE" && break
16474 done
16475
16476
16477 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16478 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16479 if test "${pgac_cv_check_docbook+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   cat >conftest.sgml <<EOF
16483 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16484 <book>
16485  <title>test</title>
16486  <chapter>
16487   <title>random</title>
16488    <sect1>
16489     <title>testsect</title>
16490     <para>text</para>
16491   </sect1>
16492  </chapter>
16493 </book>
16494 EOF
16495
16496 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16497 if test $? -eq 0; then
16498   pgac_cv_check_docbook=yes
16499 else
16500   pgac_cv_check_docbook=no
16501 fi
16502 rm -f conftest.sgml
16503 fi
16504 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16505 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16506
16507 have_docbook=$pgac_cv_check_docbook
16508
16509
16510 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16511 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16512 if test "${pgac_cv_path_stylesheets+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   if test -n "$DOCBOOKSTYLE"; then
16516   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16517 else
16518   for pgac_prefix in /usr /usr/local /opt; do
16519     for pgac_infix in share lib; do
16520       for pgac_postfix in \
16521         sgml/stylesheets/nwalsh-modular \
16522         sgml/stylesheets/docbook \
16523         sgml/docbook/dsssl/modular \
16524         sgml/docbook/stylesheet/dsssl/modular \
16525         sgml/docbook/dsssl-stylesheets
16526       do
16527         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16528         if test -r "$pgac_candidate/html/docbook.dsl" \
16529            && test -r "$pgac_candidate/print/docbook.dsl"
16530         then
16531           pgac_cv_path_stylesheets=$pgac_candidate
16532           break 3
16533         fi
16534       done
16535     done
16536   done
16537 fi
16538 fi
16539
16540 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16541
16542 if test -n "$DOCBOOKSTYLE"; then
16543   echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16544 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16545 else
16546   echo "$as_me:$LINENO: result: no" >&5
16547 echo "${ECHO_T}no" >&6
16548 fi
16549 if test -n "$DOCBOOKSTYLE"; then
16550   for ac_prog in collateindex.pl
16551 do
16552   # Extract the first word of "$ac_prog", so it can be a program name with args.
16553 set dummy $ac_prog; ac_word=$2
16554 echo "$as_me:$LINENO: checking for $ac_word" >&5
16555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16556 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   case $COLLATEINDEX in
16560   [\\/]* | ?:[\\/]*)
16561   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16562   ;;
16563   *)
16564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $DOCBOOKSTYLE/bin $PATH
16566 do
16567   IFS=$as_save_IFS
16568   test -z "$as_dir" && as_dir=.
16569   for ac_exec_ext in '' $ac_executable_extensions; do
16570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16573     break 2
16574   fi
16575 done
16576 done
16577
16578   ;;
16579 esac
16580 fi
16581 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16582
16583 if test -n "$COLLATEINDEX"; then
16584   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16585 echo "${ECHO_T}$COLLATEINDEX" >&6
16586 else
16587   echo "$as_me:$LINENO: result: no" >&5
16588 echo "${ECHO_T}no" >&6
16589 fi
16590
16591   test -n "$COLLATEINDEX" && break
16592 done
16593
16594 else
16595   for ac_prog in collateindex.pl
16596 do
16597   # Extract the first word of "$ac_prog", so it can be a program name with args.
16598 set dummy $ac_prog; ac_word=$2
16599 echo "$as_me:$LINENO: checking for $ac_word" >&5
16600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16601 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   case $COLLATEINDEX in
16605   [\\/]* | ?:[\\/]*)
16606   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16607   ;;
16608   *)
16609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16611 do
16612   IFS=$as_save_IFS
16613   test -z "$as_dir" && as_dir=.
16614   for ac_exec_ext in '' $ac_executable_extensions; do
16615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16618     break 2
16619   fi
16620 done
16621 done
16622
16623   ;;
16624 esac
16625 fi
16626 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16627
16628 if test -n "$COLLATEINDEX"; then
16629   echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16630 echo "${ECHO_T}$COLLATEINDEX" >&6
16631 else
16632   echo "$as_me:$LINENO: result: no" >&5
16633 echo "${ECHO_T}no" >&6
16634 fi
16635
16636   test -n "$COLLATEINDEX" && break
16637 done
16638
16639 fi
16640 for ac_prog in sgmlspl
16641 do
16642   # Extract the first word of "$ac_prog", so it can be a program name with args.
16643 set dummy $ac_prog; ac_word=$2
16644 echo "$as_me:$LINENO: checking for $ac_word" >&5
16645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16646 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   if test -n "$SGMLSPL"; then
16650   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16651 else
16652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16653 for as_dir in $PATH
16654 do
16655   IFS=$as_save_IFS
16656   test -z "$as_dir" && as_dir=.
16657   for ac_exec_ext in '' $ac_executable_extensions; do
16658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16659     ac_cv_prog_SGMLSPL="$ac_prog"
16660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16661     break 2
16662   fi
16663 done
16664 done
16665
16666 fi
16667 fi
16668 SGMLSPL=$ac_cv_prog_SGMLSPL
16669 if test -n "$SGMLSPL"; then
16670   echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16671 echo "${ECHO_T}$SGMLSPL" >&6
16672 else
16673   echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6
16675 fi
16676
16677   test -n "$SGMLSPL" && break
16678 done
16679
16680
16681
16682 # prepare build tree if outside source tree
16683 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16684 # Note 2: /bin/pwd might be better than shell's built-in at getting
16685 #         a symlink-free name.
16686 if test "$no_create" != yes; then
16687   if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16688     :
16689   else
16690     vpath_build=yes
16691
16692     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16693     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16694     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16695       || { { echo "$as_me:$LINENO: error: failed" >&5
16696 echo "$as_me: error: failed" >&2;}
16697    { (exit 1); exit 1; }; }
16698     echo "$as_me:$LINENO: result: done" >&5
16699 echo "${ECHO_T}done" >&6
16700   fi
16701 fi
16702
16703
16704 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16705
16706
16707 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}"
16708
16709
16710 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16711
16712
16713 cat >confcache <<\_ACEOF
16714 # This file is a shell script that caches the results of configure
16715 # tests run on this system so they can be shared between configure
16716 # scripts and configure runs, see configure's option --config-cache.
16717 # It is not useful on other systems.  If it contains results you don't
16718 # want to keep, you may remove or edit it.
16719 #
16720 # config.status only pays attention to the cache file if you give it
16721 # the --recheck option to rerun configure.
16722 #
16723 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16725 # following values.
16726
16727 _ACEOF
16728
16729 # The following way of writing the cache mishandles newlines in values,
16730 # but we know of no workaround that is simple, portable, and efficient.
16731 # So, don't put newlines in cache variables' values.
16732 # Ultrix sh set writes to stderr and can't be redirected directly,
16733 # and sets the high bit in the cache file unless we assign to the vars.
16734 {
16735   (set) 2>&1 |
16736     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16737     *ac_space=\ *)
16738       # `set' does not quote correctly, so add quotes (double-quote
16739       # substitution turns \\\\ into \\, and sed turns \\ into \).
16740       sed -n \
16741         "s/'/'\\\\''/g;
16742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16743       ;;
16744     *)
16745       # `set' quotes correctly as required by POSIX, so do not add quotes.
16746       sed -n \
16747         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16748       ;;
16749     esac;
16750 } |
16751   sed '
16752      t clear
16753      : clear
16754      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16755      t end
16756      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16757      : end' >>confcache
16758 if cmp -s $cache_file confcache; then :; else
16759   if test -w $cache_file; then
16760     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16761     cat confcache >$cache_file
16762   else
16763     echo "not updating unwritable cache $cache_file"
16764   fi
16765 fi
16766 rm -f confcache
16767
16768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16769 # Let make expand exec_prefix.
16770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16771
16772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16774 # trailing colons and then remove the whole line if VPATH becomes empty
16775 # (actually we leave an empty line to preserve line numbers).
16776 if test "x$srcdir" = x.; then
16777   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16778 s/:*\$(srcdir):*/:/;
16779 s/:*\${srcdir}:*/:/;
16780 s/:*@srcdir@:*/:/;
16781 s/^\([^=]*=[    ]*\):*/\1/;
16782 s/:*$//;
16783 s/^[^=]*=[      ]*$//;
16784 }'
16785 fi
16786
16787 DEFS=-DHAVE_CONFIG_H
16788
16789
16790 : ${CONFIG_STATUS=./config.status}
16791 ac_clean_files_save=$ac_clean_files
16792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16795 cat >$CONFIG_STATUS <<_ACEOF
16796 #! $SHELL
16797 # Generated by $as_me.
16798 # Run this file to recreate the current configuration.
16799 # Compiler output produced by configure, useful for debugging
16800 # configure, is in config.log if it exists.
16801
16802 debug=false
16803 SHELL=\${CONFIG_SHELL-$SHELL}
16804 _ACEOF
16805
16806 cat >>$CONFIG_STATUS <<\_ACEOF
16807
16808 ## --------------------- ##
16809 ## M4sh Initialization.  ##
16810 ## --------------------- ##
16811
16812 # Be Bourne compatible
16813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16814   emulate sh
16815   NULLCMD=:
16816 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16817   set -o posix
16818 fi
16819
16820 # NLS nuisances.
16821 # Support unset when possible.
16822 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16823   as_unset=unset
16824 else
16825   as_unset=false
16826 fi
16827
16828 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16829     { $as_unset LANG || test "${LANG+set}" != set; } ||
16830       { LANG=C; export LANG; }
16831 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16832     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16833       { LC_ALL=C; export LC_ALL; }
16834 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16835     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16836       { LC_TIME=C; export LC_TIME; }
16837 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16838     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16839       { LC_CTYPE=C; export LC_CTYPE; }
16840 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16841     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16842       { LANGUAGE=C; export LANGUAGE; }
16843 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16844     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16845       { LC_COLLATE=C; export LC_COLLATE; }
16846 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16847     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16848       { LC_NUMERIC=C; export LC_NUMERIC; }
16849 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16850     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16851       { LC_MESSAGES=C; export LC_MESSAGES; }
16852
16853
16854 # Name of the executable.
16855 as_me=`(basename "$0") 2>/dev/null ||
16856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16857          X"$0" : 'X\(//\)$' \| \
16858          X"$0" : 'X\(/\)$' \| \
16859          .     : '\(.\)' 2>/dev/null ||
16860 echo X/"$0" |
16861     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16862           /^X\/\(\/\/\)$/{ s//\1/; q; }
16863           /^X\/\(\/\).*/{ s//\1/; q; }
16864           s/.*/./; q'`
16865
16866 # PATH needs CR, and LINENO needs CR and PATH.
16867 # Avoid depending upon Character Ranges.
16868 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16871 as_cr_digits='0123456789'
16872 as_cr_alnum=$as_cr_Letters$as_cr_digits
16873
16874 # The user is always right.
16875 if test "${PATH_SEPARATOR+set}" != set; then
16876   echo "#! /bin/sh" >conftest.sh
16877   echo  "exit 0"   >>conftest.sh
16878   chmod +x conftest.sh
16879   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16880     PATH_SEPARATOR=';'
16881   else
16882     PATH_SEPARATOR=:
16883   fi
16884   rm -f conftest.sh
16885 fi
16886
16887
16888   as_lineno_1=$LINENO
16889   as_lineno_2=$LINENO
16890   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16891   test "x$as_lineno_1" != "x$as_lineno_2" &&
16892   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16893   # Find who we are.  Look in the path if we contain no path at all
16894   # relative or not.
16895   case $0 in
16896     *[\\/]* ) as_myself=$0 ;;
16897     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16899 do
16900   IFS=$as_save_IFS
16901   test -z "$as_dir" && as_dir=.
16902   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16903 done
16904
16905        ;;
16906   esac
16907   # We did not find ourselves, most probably we were run as `sh COMMAND'
16908   # in which case we are not to be found in the path.
16909   if test "x$as_myself" = x; then
16910     as_myself=$0
16911   fi
16912   if test ! -f "$as_myself"; then
16913     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16914 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16915    { (exit 1); exit 1; }; }
16916   fi
16917   case $CONFIG_SHELL in
16918   '')
16919     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16920 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16921 do
16922   IFS=$as_save_IFS
16923   test -z "$as_dir" && as_dir=.
16924   for as_base in sh bash ksh sh5; do
16925          case $as_dir in
16926          /*)
16927            if ("$as_dir/$as_base" -c '
16928   as_lineno_1=$LINENO
16929   as_lineno_2=$LINENO
16930   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16931   test "x$as_lineno_1" != "x$as_lineno_2" &&
16932   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16933              CONFIG_SHELL=$as_dir/$as_base
16934              export CONFIG_SHELL
16935              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16936            fi;;
16937          esac
16938        done
16939 done
16940 ;;
16941   esac
16942
16943   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16944   # uniformly replaced by the line number.  The first 'sed' inserts a
16945   # line-number line before each line; the second 'sed' does the real
16946   # work.  The second script uses 'N' to pair each line-number line
16947   # with the numbered line, and appends trailing '-' during
16948   # substitution so that $LINENO is not a special case at line end.
16949   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16950   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16951   sed '=' <$as_myself |
16952     sed '
16953       N
16954       s,$,-,
16955       : loop
16956       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16957       t loop
16958       s,-$,,
16959       s,^['$as_cr_digits']*\n,,
16960     ' >$as_me.lineno &&
16961   chmod +x $as_me.lineno ||
16962     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16963 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16964    { (exit 1); exit 1; }; }
16965
16966   # Don't try to exec as it changes $[0], causing all sort of problems
16967   # (the dirname of $[0] is not the place where we might find the
16968   # original and so on.  Autoconf is especially sensible to this).
16969   . ./$as_me.lineno
16970   # Exit status is that of the last command.
16971   exit
16972 }
16973
16974
16975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16976   *c*,-n*) ECHO_N= ECHO_C='
16977 ' ECHO_T='      ' ;;
16978   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16979   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16980 esac
16981
16982 if expr a : '\(a\)' >/dev/null 2>&1; then
16983   as_expr=expr
16984 else
16985   as_expr=false
16986 fi
16987
16988 rm -f conf$$ conf$$.exe conf$$.file
16989 echo >conf$$.file
16990 if ln -s conf$$.file conf$$ 2>/dev/null; then
16991   # We could just check for DJGPP; but this test a) works b) is more generic
16992   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16993   if test -f conf$$.exe; then
16994     # Don't use ln at all; we don't have any links
16995     as_ln_s='cp -p'
16996   else
16997     as_ln_s='ln -s'
16998   fi
16999 elif ln conf$$.file conf$$ 2>/dev/null; then
17000   as_ln_s=ln
17001 else
17002   as_ln_s='cp -p'
17003 fi
17004 rm -f conf$$ conf$$.exe conf$$.file
17005
17006 as_executable_p="test -f"
17007
17008 # Sed expression to map a string onto a valid CPP name.
17009 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17010
17011 # Sed expression to map a string onto a valid variable name.
17012 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17013
17014
17015 # IFS
17016 # We need space, tab and new line, in precisely that order.
17017 as_nl='
17018 '
17019 IFS="   $as_nl"
17020
17021 # CDPATH.
17022 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17023
17024 exec 6>&1
17025
17026 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17027 # report actual input values of CONFIG_FILES etc. instead of their
17028 # values after options handling.  Logging --version etc. is OK.
17029 exec 5>>config.log
17030 {
17031   echo
17032   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17033 ## Running $as_me. ##
17034 _ASBOX
17035 } >&5
17036 cat >&5 <<_CSEOF
17037
17038 This file was extended by PostgreSQL $as_me 7.3devel, which was
17039 generated by GNU Autoconf 2.53.  Invocation command line was
17040
17041   CONFIG_FILES    = $CONFIG_FILES
17042   CONFIG_HEADERS  = $CONFIG_HEADERS
17043   CONFIG_LINKS    = $CONFIG_LINKS
17044   CONFIG_COMMANDS = $CONFIG_COMMANDS
17045   $ $0 $@
17046
17047 _CSEOF
17048 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17049 echo >&5
17050 _ACEOF
17051
17052 # Files that config.status was made for.
17053 if test -n "$ac_config_files"; then
17054   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17055 fi
17056
17057 if test -n "$ac_config_headers"; then
17058   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17059 fi
17060
17061 if test -n "$ac_config_links"; then
17062   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17063 fi
17064
17065 if test -n "$ac_config_commands"; then
17066   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17067 fi
17068
17069 cat >>$CONFIG_STATUS <<\_ACEOF
17070
17071 ac_cs_usage="\
17072 \`$as_me' instantiates files from templates according to the
17073 current configuration.
17074
17075 Usage: $0 [OPTIONS] [FILE]...
17076
17077   -h, --help       print this help, then exit
17078   -V, --version    print version number, then exit
17079   -d, --debug      don't remove temporary files
17080       --recheck    update $as_me by reconfiguring in the same conditions
17081   --file=FILE[:TEMPLATE]
17082                    instantiate the configuration file FILE
17083   --header=FILE[:TEMPLATE]
17084                    instantiate the configuration header FILE
17085
17086 Configuration files:
17087 $config_files
17088
17089 Configuration headers:
17090 $config_headers
17091
17092 Configuration links:
17093 $config_links
17094
17095 Report bugs to <bug-autoconf@gnu.org>."
17096 _ACEOF
17097
17098 cat >>$CONFIG_STATUS <<_ACEOF
17099 ac_cs_version="\\
17100 PostgreSQL config.status 7.3devel
17101 configured by $0, generated by GNU Autoconf 2.53,
17102   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17103
17104 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17105 Free Software Foundation, Inc.
17106 This config.status script is free software; the Free Software Foundation
17107 gives unlimited permission to copy, distribute and modify it."
17108 srcdir=$srcdir
17109 _ACEOF
17110
17111 cat >>$CONFIG_STATUS <<\_ACEOF
17112 # If no file are specified by the user, then we need to provide default
17113 # value.  By we need to know if files were specified by the user.
17114 ac_need_defaults=:
17115 while test $# != 0
17116 do
17117   case $1 in
17118   --*=*)
17119     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17120     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17121     shift
17122     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17123     shift
17124     ;;
17125   -*);;
17126   *) # This is not an option, so the user has probably given explicit
17127      # arguments.
17128      ac_need_defaults=false;;
17129   esac
17130
17131   case $1 in
17132   # Handling of the options.
17133 _ACEOF
17134 cat >>$CONFIG_STATUS <<_ACEOF
17135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17136     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17137     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17138 _ACEOF
17139 cat >>$CONFIG_STATUS <<\_ACEOF
17140   --version | --vers* | -V )
17141     echo "$ac_cs_version"; exit 0 ;;
17142   --he | --h)
17143     # Conflict between --help and --header
17144     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17145 Try \`$0 --help' for more information." >&5
17146 echo "$as_me: error: ambiguous option: $1
17147 Try \`$0 --help' for more information." >&2;}
17148    { (exit 1); exit 1; }; };;
17149   --help | --hel | -h )
17150     echo "$ac_cs_usage"; exit 0 ;;
17151   --debug | --d* | -d )
17152     debug=: ;;
17153   --file | --fil | --fi | --f )
17154     shift
17155     CONFIG_FILES="$CONFIG_FILES $1"
17156     ac_need_defaults=false;;
17157   --header | --heade | --head | --hea )
17158     shift
17159     CONFIG_HEADERS="$CONFIG_HEADERS $1"
17160     ac_need_defaults=false;;
17161
17162   # This is an error.
17163   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17164 Try \`$0 --help' for more information." >&5
17165 echo "$as_me: error: unrecognized option: $1
17166 Try \`$0 --help' for more information." >&2;}
17167    { (exit 1); exit 1; }; } ;;
17168
17169   *) ac_config_targets="$ac_config_targets $1" ;;
17170
17171   esac
17172   shift
17173 done
17174
17175 _ACEOF
17176
17177
17178
17179
17180
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17182 for ac_config_target in $ac_config_targets
17183 do
17184   case "$ac_config_target" in
17185   # Handling of arguments.
17186   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17187   "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17188   "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17189   "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17190   "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17191   "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17192   "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17193   "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17194   "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17195   "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17196   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17197 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17198    { (exit 1); exit 1; }; };;
17199   esac
17200 done
17201
17202 # If the user did not use the arguments to specify the items to instantiate,
17203 # then the envvar interface is used.  Set only those that are not.
17204 # We use the long form for the default assignment because of an extremely
17205 # bizarre bug on SunOS 4.1.3.
17206 if $ac_need_defaults; then
17207   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17208   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17209   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17210 fi
17211
17212 # Create a temporary directory, and hook for its removal unless debugging.
17213 $debug ||
17214 {
17215   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17216   trap '{ (exit 1); exit 1; }' 1 2 13 15
17217 }
17218
17219 # Create a (secure) tmp directory for tmp files.
17220 : ${TMPDIR=/tmp}
17221 {
17222   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17223   test -n "$tmp" && test -d "$tmp"
17224 }  ||
17225 {
17226   tmp=$TMPDIR/cs$$-$RANDOM
17227   (umask 077 && mkdir $tmp)
17228 } ||
17229 {
17230    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17231    { (exit 1); exit 1; }
17232 }
17233
17234 _ACEOF
17235
17236 cat >>$CONFIG_STATUS <<_ACEOF
17237
17238 #
17239 # CONFIG_FILES section.
17240 #
17241
17242 # No need to generate the scripts if there are no CONFIG_FILES.
17243 # This happens for instance when ./config.status config.h
17244 if test -n "\$CONFIG_FILES"; then
17245   # Protect against being on the right side of a sed subst in config.status.
17246   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17247    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17248 s,@SHELL@,$SHELL,;t t
17249 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17250 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17251 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17252 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17253 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17254 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17255 s,@exec_prefix@,$exec_prefix,;t t
17256 s,@prefix@,$prefix,;t t
17257 s,@program_transform_name@,$program_transform_name,;t t
17258 s,@bindir@,$bindir,;t t
17259 s,@sbindir@,$sbindir,;t t
17260 s,@libexecdir@,$libexecdir,;t t
17261 s,@datadir@,$datadir,;t t
17262 s,@sysconfdir@,$sysconfdir,;t t
17263 s,@sharedstatedir@,$sharedstatedir,;t t
17264 s,@localstatedir@,$localstatedir,;t t
17265 s,@libdir@,$libdir,;t t
17266 s,@includedir@,$includedir,;t t
17267 s,@oldincludedir@,$oldincludedir,;t t
17268 s,@infodir@,$infodir,;t t
17269 s,@mandir@,$mandir,;t t
17270 s,@build_alias@,$build_alias,;t t
17271 s,@host_alias@,$host_alias,;t t
17272 s,@target_alias@,$target_alias,;t t
17273 s,@DEFS@,$DEFS,;t t
17274 s,@ECHO_C@,$ECHO_C,;t t
17275 s,@ECHO_N@,$ECHO_N,;t t
17276 s,@ECHO_T@,$ECHO_T,;t t
17277 s,@LIBS@,$LIBS,;t t
17278 s,@docdir@,$docdir,;t t
17279 s,@configure_args@,$configure_args,;t t
17280 s,@build@,$build,;t t
17281 s,@build_cpu@,$build_cpu,;t t
17282 s,@build_vendor@,$build_vendor,;t t
17283 s,@build_os@,$build_os,;t t
17284 s,@host@,$host,;t t
17285 s,@host_cpu@,$host_cpu,;t t
17286 s,@host_vendor@,$host_vendor,;t t
17287 s,@host_os@,$host_os,;t t
17288 s,@PORTNAME@,$PORTNAME,;t t
17289 s,@TAS@,$TAS,;t t
17290 s,@MULTIBYTE@,$MULTIBYTE,;t t
17291 s,@enable_nls@,$enable_nls,;t t
17292 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17293 s,@default_port@,$default_port,;t t
17294 s,@enable_shared@,$enable_shared,;t t
17295 s,@enable_rpath@,$enable_rpath,;t t
17296 s,@enable_debug@,$enable_debug,;t t
17297 s,@CC@,$CC,;t t
17298 s,@CFLAGS@,$CFLAGS,;t t
17299 s,@LDFLAGS@,$LDFLAGS,;t t
17300 s,@CPPFLAGS@,$CPPFLAGS,;t t
17301 s,@ac_ct_CC@,$ac_ct_CC,;t t
17302 s,@EXEEXT@,$EXEEXT,;t t
17303 s,@OBJEXT@,$OBJEXT,;t t
17304 s,@CPP@,$CPP,;t t
17305 s,@GCC@,$GCC,;t t
17306 s,@autodepend@,$autodepend,;t t
17307 s,@INCLUDES@,$INCLUDES,;t t
17308 s,@with_tcl@,$with_tcl,;t t
17309 s,@with_tk@,$with_tk,;t t
17310 s,@with_perl@,$with_perl,;t t
17311 s,@with_python@,$with_python,;t t
17312 s,@ANT@,$ANT,;t t
17313 s,@with_java@,$with_java,;t t
17314 s,@with_krb4@,$with_krb4,;t t
17315 s,@with_krb5@,$with_krb5,;t t
17316 s,@krb_srvtab@,$krb_srvtab,;t t
17317 s,@with_pam@,$with_pam,;t t
17318 s,@with_openssl@,$with_openssl,;t t
17319 s,@enable_odbc@,$enable_odbc,;t t
17320 s,@with_unixodbc@,$with_unixodbc,;t t
17321 s,@with_iodbc@,$with_iodbc,;t t
17322 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17323 s,@ELF_SYS@,$ELF_SYS,;t t
17324 s,@CXX@,$CXX,;t t
17325 s,@CXXFLAGS@,$CXXFLAGS,;t t
17326 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17327 s,@CXXCPP@,$CXXCPP,;t t
17328 s,@with_CXX@,$with_CXX,;t t
17329 s,@GXX@,$GXX,;t t
17330 s,@AWK@,$AWK,;t t
17331 s,@FLEX@,$FLEX,;t t
17332 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17333 s,@LN_S@,$LN_S,;t t
17334 s,@LD@,$LD,;t t
17335 s,@with_gnu_ld@,$with_gnu_ld,;t t
17336 s,@ld_R_works@,$ld_R_works,;t t
17337 s,@RANLIB@,$RANLIB,;t t
17338 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17339 s,@LORDER@,$LORDER,;t t
17340 s,@TAR@,$TAR,;t t
17341 s,@STRIP@,$STRIP,;t t
17342 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17343 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17344 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17345 s,@YACC@,$YACC,;t t
17346 s,@YFLAGS@,$YFLAGS,;t t
17347 s,@WISH@,$WISH,;t t
17348 s,@PERL@,$PERL,;t t
17349 s,@perl_installsitearch@,$perl_installsitearch,;t t
17350 s,@perl_installman3dir@,$perl_installman3dir,;t t
17351 s,@perl_archlibexp@,$perl_archlibexp,;t t
17352 s,@perl_privlibexp@,$perl_privlibexp,;t t
17353 s,@perl_useshrplib@,$perl_useshrplib,;t t
17354 s,@perl_man3ext@,$perl_man3ext,;t t
17355 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17356 s,@PYTHON@,$PYTHON,;t t
17357 s,@python_version@,$python_version,;t t
17358 s,@python_prefix@,$python_prefix,;t t
17359 s,@python_execprefix@,$python_execprefix,;t t
17360 s,@python_configdir@,$python_configdir,;t t
17361 s,@python_moduledir@,$python_moduledir,;t t
17362 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17363 s,@python_includespec@,$python_includespec,;t t
17364 s,@python_libspec@,$python_libspec,;t t
17365 s,@LIBOBJS@,$LIBOBJS,;t t
17366 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17367 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17368 s,@MSGFMT@,$MSGFMT,;t t
17369 s,@MSGMERGE@,$MSGMERGE,;t t
17370 s,@XGETTEXT@,$XGETTEXT,;t t
17371 s,@localedir@,$localedir,;t t
17372 s,@TCLSH@,$TCLSH,;t t
17373 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17374 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17375 s,@TCL_LIBS@,$TCL_LIBS,;t t
17376 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17377 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17378 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17379 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17380 s,@TK_LIBS@,$TK_LIBS,;t t
17381 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17382 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17383 s,@NSGMLS@,$NSGMLS,;t t
17384 s,@JADE@,$JADE,;t t
17385 s,@have_docbook@,$have_docbook,;t t
17386 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17387 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17388 s,@SGMLSPL@,$SGMLSPL,;t t
17389 s,@vpath_build@,$vpath_build,;t t
17390 CEOF
17391
17392 _ACEOF
17393
17394   cat >>$CONFIG_STATUS <<\_ACEOF
17395   # Split the substitutions into bite-sized pieces for seds with
17396   # small command number limits, like on Digital OSF/1 and HP-UX.
17397   ac_max_sed_lines=48
17398   ac_sed_frag=1 # Number of current file.
17399   ac_beg=1 # First line for current file.
17400   ac_end=$ac_max_sed_lines # Line after last line for current file.
17401   ac_more_lines=:
17402   ac_sed_cmds=
17403   while $ac_more_lines; do
17404     if test $ac_beg -gt 1; then
17405       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17406     else
17407       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17408     fi
17409     if test ! -s $tmp/subs.frag; then
17410       ac_more_lines=false
17411     else
17412       # The purpose of the label and of the branching condition is to
17413       # speed up the sed processing (if there are no `@' at all, there
17414       # is no need to browse any of the substitutions).
17415       # These are the two extra sed commands mentioned above.
17416       (echo ':t
17417   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17418       if test -z "$ac_sed_cmds"; then
17419         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17420       else
17421         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17422       fi
17423       ac_sed_frag=`expr $ac_sed_frag + 1`
17424       ac_beg=$ac_end
17425       ac_end=`expr $ac_end + $ac_max_sed_lines`
17426     fi
17427   done
17428   if test -z "$ac_sed_cmds"; then
17429     ac_sed_cmds=cat
17430   fi
17431 fi # test -n "$CONFIG_FILES"
17432
17433 _ACEOF
17434 cat >>$CONFIG_STATUS <<\_ACEOF
17435 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17436   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17437   case $ac_file in
17438   - | *:- | *:-:* ) # input from stdin
17439         cat >$tmp/stdin
17440         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17441         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17442   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17444   * )   ac_file_in=$ac_file.in ;;
17445   esac
17446
17447   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17448   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17450          X"$ac_file" : 'X\(//\)[^/]' \| \
17451          X"$ac_file" : 'X\(//\)$' \| \
17452          X"$ac_file" : 'X\(/\)' \| \
17453          .     : '\(.\)' 2>/dev/null ||
17454 echo X"$ac_file" |
17455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17457           /^X\(\/\/\)$/{ s//\1/; q; }
17458           /^X\(\/\).*/{ s//\1/; q; }
17459           s/.*/./; q'`
17460   { case "$ac_dir" in
17461   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17462   *)                      as_incr_dir=.;;
17463 esac
17464 as_dummy="$ac_dir"
17465 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17466   case $as_mkdir_dir in
17467     # Skip DOS drivespec
17468     ?:) as_incr_dir=$as_mkdir_dir ;;
17469     *)
17470       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17471       test -d "$as_incr_dir" ||
17472         mkdir "$as_incr_dir" ||
17473         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17474 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17475    { (exit 1); exit 1; }; }
17476     ;;
17477   esac
17478 done; }
17479
17480   ac_builddir=.
17481
17482 if test "$ac_dir" != .; then
17483   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17484   # A "../" for each directory in $ac_dir_suffix.
17485   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17486 else
17487   ac_dir_suffix= ac_top_builddir=
17488 fi
17489
17490 case $srcdir in
17491   .)  # No --srcdir option.  We are building in place.
17492     ac_srcdir=.
17493     if test -z "$ac_top_builddir"; then
17494        ac_top_srcdir=.
17495     else
17496        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17497     fi ;;
17498   [\\/]* | ?:[\\/]* )  # Absolute path.
17499     ac_srcdir=$srcdir$ac_dir_suffix;
17500     ac_top_srcdir=$srcdir ;;
17501   *) # Relative path.
17502     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17503     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17504 esac
17505 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17506 # absolute.
17507 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17508 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17509 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17510 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17511
17512
17513
17514   if test x"$ac_file" != x-; then
17515     { echo "$as_me:$LINENO: creating $ac_file" >&5
17516 echo "$as_me: creating $ac_file" >&6;}
17517     rm -f "$ac_file"
17518   fi
17519   # Let's still pretend it is `configure' which instantiates (i.e., don't
17520   # use $as_me), people would be surprised to read:
17521   #    /* config.h.  Generated by config.status.  */
17522   if test x"$ac_file" = x-; then
17523     configure_input=
17524   else
17525     configure_input="$ac_file.  "
17526   fi
17527   configure_input=$configure_input"Generated from `echo $ac_file_in |
17528                                      sed 's,.*/,,'` by configure."
17529
17530   # First look for the input files in the build tree, otherwise in the
17531   # src tree.
17532   ac_file_inputs=`IFS=:
17533     for f in $ac_file_in; do
17534       case $f in
17535       -) echo $tmp/stdin ;;
17536       [\\/$]*)
17537          # Absolute (can't be DOS-style, as IFS=:)
17538          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17539 echo "$as_me: error: cannot find input file: $f" >&2;}
17540    { (exit 1); exit 1; }; }
17541          echo $f;;
17542       *) # Relative
17543          if test -f "$f"; then
17544            # Build tree
17545            echo $f
17546          elif test -f "$srcdir/$f"; then
17547            # Source tree
17548            echo $srcdir/$f
17549          else
17550            # /dev/null tree
17551            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17552 echo "$as_me: error: cannot find input file: $f" >&2;}
17553    { (exit 1); exit 1; }; }
17554          fi;;
17555       esac
17556     done` || { (exit 1); exit 1; }
17557 _ACEOF
17558 cat >>$CONFIG_STATUS <<_ACEOF
17559   sed "$ac_vpsub
17560 $extrasub
17561 _ACEOF
17562 cat >>$CONFIG_STATUS <<\_ACEOF
17563 :t
17564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17565 s,@configure_input@,$configure_input,;t t
17566 s,@srcdir@,$ac_srcdir,;t t
17567 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17568 s,@top_srcdir@,$ac_top_srcdir,;t t
17569 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17570 s,@builddir@,$ac_builddir,;t t
17571 s,@abs_builddir@,$ac_abs_builddir,;t t
17572 s,@top_builddir@,$ac_top_builddir,;t t
17573 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17574 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17575   rm -f $tmp/stdin
17576   if test x"$ac_file" != x-; then
17577     mv $tmp/out $ac_file
17578   else
17579     cat $tmp/out
17580     rm -f $tmp/out
17581   fi
17582
17583 done
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17586
17587 #
17588 # CONFIG_HEADER section.
17589 #
17590
17591 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17592 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17593 #
17594 # ac_d sets the value in "#define NAME VALUE" lines.
17595 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17596 ac_dB='[        ].*$,\1#\2'
17597 ac_dC=' '
17598 ac_dD=',;t'
17599 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17600 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17601 ac_uB='$,\1#\2define\3'
17602 ac_uC=' '
17603 ac_uD=',;t'
17604
17605 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17606   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17607   case $ac_file in
17608   - | *:- | *:-:* ) # input from stdin
17609         cat >$tmp/stdin
17610         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17611         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17612   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17613         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17614   * )   ac_file_in=$ac_file.in ;;
17615   esac
17616
17617   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17618 echo "$as_me: creating $ac_file" >&6;}
17619
17620   # First look for the input files in the build tree, otherwise in the
17621   # src tree.
17622   ac_file_inputs=`IFS=:
17623     for f in $ac_file_in; do
17624       case $f in
17625       -) echo $tmp/stdin ;;
17626       [\\/$]*)
17627          # Absolute (can't be DOS-style, as IFS=:)
17628          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17629 echo "$as_me: error: cannot find input file: $f" >&2;}
17630    { (exit 1); exit 1; }; }
17631          echo $f;;
17632       *) # Relative
17633          if test -f "$f"; then
17634            # Build tree
17635            echo $f
17636          elif test -f "$srcdir/$f"; then
17637            # Source tree
17638            echo $srcdir/$f
17639          else
17640            # /dev/null tree
17641            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17642 echo "$as_me: error: cannot find input file: $f" >&2;}
17643    { (exit 1); exit 1; }; }
17644          fi;;
17645       esac
17646     done` || { (exit 1); exit 1; }
17647   # Remove the trailing spaces.
17648   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17649
17650 _ACEOF
17651
17652 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17653 # `conftest.undefs', that substitutes the proper values into
17654 # config.h.in to produce config.h.  The first handles `#define'
17655 # templates, and the second `#undef' templates.
17656 # And first: Protect against being on the right side of a sed subst in
17657 # config.status.  Protect against being in an unquoted here document
17658 # in config.status.
17659 rm -f conftest.defines conftest.undefs
17660 # Using a here document instead of a string reduces the quoting nightmare.
17661 # Putting comments in sed scripts is not portable.
17662 #
17663 # `end' is used to avoid that the second main sed command (meant for
17664 # 0-ary CPP macros) applies to n-ary macro definitions.
17665 # See the Autoconf documentation for `clear'.
17666 cat >confdef2sed.sed <<\_ACEOF
17667 s/[\\&,]/\\&/g
17668 s,[\\$`],\\&,g
17669 t clear
17670 : clear
17671 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17672 t end
17673 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17674 : end
17675 _ACEOF
17676 # If some macros were called several times there might be several times
17677 # the same #defines, which is useless.  Nevertheless, we may not want to
17678 # sort them, since we want the *last* AC-DEFINE to be honored.
17679 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17680 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17681 rm -f confdef2sed.sed
17682
17683 # This sed command replaces #undef with comments.  This is necessary, for
17684 # example, in the case of _POSIX_SOURCE, which is predefined and required
17685 # on some systems where configure will not decide to define it.
17686 cat >>conftest.undefs <<\_ACEOF
17687 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17688 _ACEOF
17689
17690 # Break up conftest.defines because some shells have a limit on the size
17691 # of here documents, and old seds have small limits too (100 cmds).
17692 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17693 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17694 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17695 echo '  :' >>$CONFIG_STATUS
17696 rm -f conftest.tail
17697 while grep . conftest.defines >/dev/null
17698 do
17699   # Write a limited-size here document to $tmp/defines.sed.
17700   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17701   # Speed up: don't consider the non `#define' lines.
17702   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17703   # Work around the forget-to-reset-the-flag bug.
17704   echo 't clr' >>$CONFIG_STATUS
17705   echo ': clr' >>$CONFIG_STATUS
17706   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17707   echo 'CEOF
17708   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17709   rm -f $tmp/in
17710   mv $tmp/out $tmp/in
17711 ' >>$CONFIG_STATUS
17712   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17713   rm -f conftest.defines
17714   mv conftest.tail conftest.defines
17715 done
17716 rm -f conftest.defines
17717 echo '  fi # egrep' >>$CONFIG_STATUS
17718 echo >>$CONFIG_STATUS
17719
17720 # Break up conftest.undefs because some shells have a limit on the size
17721 # of here documents, and old seds have small limits too (100 cmds).
17722 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17723 rm -f conftest.tail
17724 while grep . conftest.undefs >/dev/null
17725 do
17726   # Write a limited-size here document to $tmp/undefs.sed.
17727   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17728   # Speed up: don't consider the non `#undef'
17729   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17730   # Work around the forget-to-reset-the-flag bug.
17731   echo 't clr' >>$CONFIG_STATUS
17732   echo ': clr' >>$CONFIG_STATUS
17733   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17734   echo 'CEOF
17735   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17736   rm -f $tmp/in
17737   mv $tmp/out $tmp/in
17738 ' >>$CONFIG_STATUS
17739   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17740   rm -f conftest.undefs
17741   mv conftest.tail conftest.undefs
17742 done
17743 rm -f conftest.undefs
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF
17746   # Let's still pretend it is `configure' which instantiates (i.e., don't
17747   # use $as_me), people would be surprised to read:
17748   #    /* config.h.  Generated by config.status.  */
17749   if test x"$ac_file" = x-; then
17750     echo "/* Generated by configure.  */" >$tmp/config.h
17751   else
17752     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17753   fi
17754   cat $tmp/in >>$tmp/config.h
17755   rm -f $tmp/in
17756   if test x"$ac_file" != x-; then
17757     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17758       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17759 echo "$as_me: $ac_file is unchanged" >&6;}
17760     else
17761       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17763          X"$ac_file" : 'X\(//\)[^/]' \| \
17764          X"$ac_file" : 'X\(//\)$' \| \
17765          X"$ac_file" : 'X\(/\)' \| \
17766          .     : '\(.\)' 2>/dev/null ||
17767 echo X"$ac_file" |
17768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17770           /^X\(\/\/\)$/{ s//\1/; q; }
17771           /^X\(\/\).*/{ s//\1/; q; }
17772           s/.*/./; q'`
17773       { case "$ac_dir" in
17774   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17775   *)                      as_incr_dir=.;;
17776 esac
17777 as_dummy="$ac_dir"
17778 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17779   case $as_mkdir_dir in
17780     # Skip DOS drivespec
17781     ?:) as_incr_dir=$as_mkdir_dir ;;
17782     *)
17783       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17784       test -d "$as_incr_dir" ||
17785         mkdir "$as_incr_dir" ||
17786         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17787 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17788    { (exit 1); exit 1; }; }
17789     ;;
17790   esac
17791 done; }
17792
17793       rm -f $ac_file
17794       mv $tmp/config.h $ac_file
17795     fi
17796   else
17797     cat $tmp/config.h
17798     rm -f $tmp/config.h
17799   fi
17800   # Run the commands associated with the file.
17801   case $ac_file in
17802     src/include/pg_config.h )
17803 # Update timestamp for pg_config.h (see Makefile.global)
17804 echo >src/include/stamp-h
17805  ;;
17806   esac
17807 done
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<\_ACEOF
17810
17811 #
17812 # CONFIG_LINKS section.
17813 #
17814
17815 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17816   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17817   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17818
17819   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17820 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17821
17822   if test ! -r $srcdir/$ac_source; then
17823     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17824 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17825    { (exit 1); exit 1; }; }
17826   fi
17827   rm -f $ac_dest
17828
17829   # Make relative symlinks.
17830   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17831 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17832          X"$ac_dest" : 'X\(//\)[^/]' \| \
17833          X"$ac_dest" : 'X\(//\)$' \| \
17834          X"$ac_dest" : 'X\(/\)' \| \
17835          .     : '\(.\)' 2>/dev/null ||
17836 echo X"$ac_dest" |
17837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17839           /^X\(\/\/\)$/{ s//\1/; q; }
17840           /^X\(\/\).*/{ s//\1/; q; }
17841           s/.*/./; q'`
17842   { case "$ac_dest_dir" in
17843   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17844   *)                      as_incr_dir=.;;
17845 esac
17846 as_dummy="$ac_dest_dir"
17847 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17848   case $as_mkdir_dir in
17849     # Skip DOS drivespec
17850     ?:) as_incr_dir=$as_mkdir_dir ;;
17851     *)
17852       as_incr_dir=$as_incr_dir/$as_mkdir_dir
17853       test -d "$as_incr_dir" ||
17854         mkdir "$as_incr_dir" ||
17855         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17856 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17857    { (exit 1); exit 1; }; }
17858     ;;
17859   esac
17860 done; }
17861
17862   ac_builddir=.
17863
17864 if test "$ac_dest_dir" != .; then
17865   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17866   # A "../" for each directory in $ac_dir_suffix.
17867   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17868 else
17869   ac_dir_suffix= ac_top_builddir=
17870 fi
17871
17872 case $srcdir in
17873   .)  # No --srcdir option.  We are building in place.
17874     ac_srcdir=.
17875     if test -z "$ac_top_builddir"; then
17876        ac_top_srcdir=.
17877     else
17878        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17879     fi ;;
17880   [\\/]* | ?:[\\/]* )  # Absolute path.
17881     ac_srcdir=$srcdir$ac_dir_suffix;
17882     ac_top_srcdir=$srcdir ;;
17883   *) # Relative path.
17884     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17885     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17886 esac
17887 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17888 # absolute.
17889 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17890 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17891 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17892 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17893
17894
17895   case $srcdir in
17896   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17897       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17898   esac
17899
17900   # Make a symlink if possible; otherwise try a hard link.
17901   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17902     ln $srcdir/$ac_source $ac_dest ||
17903     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17904 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17905    { (exit 1); exit 1; }; }
17906 done
17907 _ACEOF
17908
17909 cat >>$CONFIG_STATUS <<\_ACEOF
17910
17911 { (exit 0); exit 0; }
17912 _ACEOF
17913 chmod +x $CONFIG_STATUS
17914 ac_clean_files=$ac_clean_files_save
17915
17916
17917 # configure is writing to config.log, and then calls config.status.
17918 # config.status does its own redirection, appending to config.log.
17919 # Unfortunately, on DOS this fails, as config.log is still kept open
17920 # by configure, so config.status won't be able to write to it; its
17921 # output is simply discarded.  So we exec the FD to /dev/null,
17922 # effectively closing config.log, so it can be properly (re)opened and
17923 # appended to by config.status.  When coming back to configure, we
17924 # need to make the FD available again.
17925 if test "$no_create" != yes; then
17926   ac_cs_success=:
17927   exec 5>/dev/null
17928   $SHELL $CONFIG_STATUS || ac_cs_success=false
17929   exec 5>>config.log
17930   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17931   # would make configure fail if this is the last instruction.
17932   $ac_cs_success || { (exit 1); exit 1; }
17933 fi
17934