Annotation of pgsql/configure, revision 1.235
1.1 petere 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.227 tgl 3: # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
1.179 petere 4: #
5: # Report bugs to <[email protected]>.
1.1 petere 6: #
1.179 petere 7: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8: # Free Software Foundation, Inc.
1.1 petere 9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
1.179 petere 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
1.1 petere 192:
1.179 petere 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: #
1.1 petere 246: ac_default_prefix=/usr/local
1.179 petere 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'
1.227 tgl 261: PACKAGE_VERSION='7.4devel'
262: PACKAGE_STRING='PostgreSQL 7.4devel'
1.179 petere 263: PACKAGE_BUGREPORT='[email protected]'
264:
265: ac_unique_file="src/backend/access/common/heaptuple.c"
1.1 petere 266: ac_default_prefix=/usr/local/pgsql
1.179 petere 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:
1.1 petere 304:
305: # Initialize some variables set by options.
1.179 petere 306: ac_init_help=
307: ac_init_version=false
1.1 petere 308: # The variables have the same names as the options, with
309: # dashes changed to underlines.
1.179 petere 310: cache_file=/dev/null
1.1 petere 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
1.179 petere 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.
1.1 petere 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'
1.32 petere 340: docdir='${prefix}/doc'
1.1 petere 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:
1.179 petere 353: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 petere 354:
355: # Accept the important Cygnus configure options, so we can diagnose typos.
356:
1.179 petere 357: case $ac_option in
1.1 petere 358:
359: -bindir | --bindir | --bindi | --bind | --bin | --bi)
360: ac_prev=bindir ;;
361: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.179 petere 362: bindir=$ac_optarg ;;
1.1 petere 363:
364: -build | --build | --buil | --bui | --bu)
1.179 petere 365: ac_prev=build_alias ;;
1.1 petere 366: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.179 petere 367: build_alias=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 374: cache_file=$ac_optarg ;;
375:
376: --config-cache | -C)
377: cache_file=config.cache ;;
1.1 petere 378:
379: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
380: ac_prev=datadir ;;
381: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
382: | --da=*)
1.179 petere 383: datadir=$ac_optarg ;;
1.1 petere 384:
385: -disable-* | --disable-*)
1.179 petere 386: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 petere 387: # Reject names that are not valid shell variable names.
1.179 petere 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" ;;
1.1 petere 393:
394: -enable-* | --enable-*)
1.179 petere 395: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 petere 396: # Reject names that are not valid shell variable names.
1.179 petere 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"`;;
1.1 petere 403: *) ac_optarg=yes ;;
404: esac
1.179 petere 405: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 petere 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=*)
1.179 petere 414: exec_prefix=$ac_optarg ;;
1.1 petere 415:
416: -gas | --gas | --ga | --g)
417: # Obsolete; use --with-gas.
418: with_gas=yes ;;
419:
1.179 petere 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 ;;
1.1 petere 426:
427: -host | --host | --hos | --ho)
1.179 petere 428: ac_prev=host_alias ;;
1.1 petere 429: -host=* | --host=* | --hos=* | --ho=*)
1.179 petere 430: host_alias=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 437: includedir=$ac_optarg ;;
1.1 petere 438:
1.32 petere 439: -docdir | --docdir | --infodi | --infod | --doc | --inf)
440: ac_prev=docdir ;;
441: -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
1.179 petere 442: docdir=$ac_optarg ;;
1.1 petere 443:
444: -libdir | --libdir | --libdi | --libd)
445: ac_prev=libdir ;;
446: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.179 petere 447: libdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 454: libexecdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 463: localstatedir=$ac_optarg ;;
1.1 petere 464:
465: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
466: ac_prev=mandir ;;
467: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.179 petere 468: mandir=$ac_optarg ;;
1.1 petere 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 \
1.179 petere 475: | --no-cr | --no-c | -n)
1.1 petere 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=*)
1.179 petere 489: oldincludedir=$ac_optarg ;;
1.1 petere 490:
491: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
492: ac_prev=prefix ;;
493: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.179 petere 494: prefix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 501: program_prefix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 508: program_suffix=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 525: program_transform_name=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 535: sbindir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 546: sharedstatedir=$ac_optarg ;;
1.1 petere 547:
548: -site | --site | --sit)
549: ac_prev=site ;;
550: -site=* | --site=* | --sit=*)
1.179 petere 551: site=$ac_optarg ;;
1.1 petere 552:
553: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
554: ac_prev=srcdir ;;
555: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.179 petere 556: srcdir=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 563: sysconfdir=$ac_optarg ;;
1.1 petere 564:
565: -target | --target | --targe | --targ | --tar | --ta | --t)
1.179 petere 566: ac_prev=target_alias ;;
1.1 petere 567: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.179 petere 568: target_alias=$ac_optarg ;;
1.1 petere 569:
570: -v | -verbose | --verbose | --verbos | --verbo | --verb)
571: verbose=yes ;;
572:
1.179 petere 573: -version | --version | --versio | --versi | --vers | -V)
574: ac_init_version=: ;;
1.1 petere 575:
576: -with-* | --with-*)
1.179 petere 577: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 petere 578: # Reject names that are not valid shell variable names.
1.179 petere 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; }; }
1.1 petere 582: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.179 petere 583: case $ac_option in
584: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 petere 585: *) ac_optarg=yes ;;
586: esac
1.179 petere 587: eval "with_$ac_package='$ac_optarg'" ;;
1.1 petere 588:
589: -without-* | --without-*)
1.179 petere 590: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 petere 591: # Reject names that are not valid shell variable names.
1.179 petere 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" ;;
1.1 petere 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=*)
1.179 petere 607: x_includes=$ac_optarg ;;
1.1 petere 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=*)
1.179 petere 614: x_libraries=$ac_optarg ;;
1.1 petere 615:
1.179 petere 616: -*) { echo "$as_me: error: unrecognized option: $ac_option
617: Try \`$0 --help' for more information." >&2
618: { (exit 1); exit 1; }; }
1.1 petere 619: ;;
620:
1.179 petere 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:
1.1 petere 631: *)
1.179 petere 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}
1.1 petere 637: ;;
638:
639: esac
640: done
641:
642: if test -n "$ac_prev"; then
1.179 petere 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; }; }
1.1 petere 646: fi
647:
1.179 petere 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
1.1 petere 658:
1.179 petere 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
1.1 petere 662: do
1.179 petere 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; }; };;
1.1 petere 668: esac
669: done
670:
1.179 petere 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-
1.1 petere 691:
1.179 petere 692: test "$silent" = yes && exec 6>/dev/null
1.1 petere 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.
1.179 petere 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'`
1.1 petere 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
1.179 petere 720: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721: { (exit 1); exit 1; }; }
1.1 petere 722: else
1.179 petere 723: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724: { (exit 1); exit 1; }; }
1.1 petere 725: fi
726: fi
1.179 petere 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
1.187 petere 760: ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761: ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762: ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763: ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
1.179 petere 764:
765: #
766: # Report the --help message.
767: #
768: if test "$ac_init_help" = "long"; then
769: # Omit some internal or obsolete options to make the list less imposing.
770: # This message is too long to be a string in the A/UX 3.1 sh.
771: cat <<_ACEOF
1.227 tgl 772: \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
1.179 petere 773:
774: Usage: $0 [OPTION]... [VAR=VALUE]...
775:
776: To assign environment variables (e.g., CC, CFLAGS...), specify them as
777: VAR=VALUE. See below for descriptions of some of the useful variables.
778:
779: Defaults for the options are specified in brackets.
780:
781: Configuration:
782: -h, --help display this help and exit
783: --help=short display options specific to this package
784: --help=recursive display the short help of all the included packages
785: -V, --version display version information and exit
786: -q, --quiet, --silent do not print \`checking...' messages
787: --cache-file=FILE cache test results in FILE [disabled]
788: -C, --config-cache alias for \`--cache-file=config.cache'
789: -n, --no-create do not create output files
790: --srcdir=DIR find the sources in DIR [configure dir or \`..']
791:
792: _ACEOF
793:
794: cat <<_ACEOF
795: Installation directories:
796: --prefix=PREFIX install architecture-independent files in PREFIX
797: [$ac_default_prefix]
798: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799: [PREFIX]
800:
801: By default, \`make install' will install all the files in
802: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804: for instance \`--prefix=\$HOME'.
805:
806: For better control, use the options below.
807:
808: Fine tuning of the installation directories:
809: --bindir=DIR user executables [EPREFIX/bin]
810: --sbindir=DIR system admin executables [EPREFIX/sbin]
811: --libexecdir=DIR program executables [EPREFIX/libexec]
812: --datadir=DIR read-only architecture-independent data [PREFIX/share]
813: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816: --libdir=DIR object code libraries [EPREFIX/lib]
817: --includedir=DIR C header files [PREFIX/include]
818: --oldincludedir=DIR C header files for non-gcc [/usr/include]
819: --infodir=DIR info documentation [PREFIX/info]
820: --mandir=DIR man documentation [PREFIX/man]
821: _ACEOF
822:
823: cat <<\_ACEOF
824:
825: System types:
826: --build=BUILD configure for building on BUILD [guessed]
827: --host=HOST cross-compile to build programs to run on HOST [BUILD]
828: _ACEOF
829: fi
830:
831: if test -n "$ac_init_help"; then
832: case $ac_init_help in
1.227 tgl 833: short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
1.179 petere 834: esac
835: cat <<\_ACEOF
836:
837: Optional Features:
838: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.189 thomas 840: --enable-integer-datetimes enable 64-bit integer date/time support
1.214 petere 841: --enable-recode enable single-byte recode support
1.179 petere 842: --enable-nls[=LANGUAGES] enable Native Language Support
843: --disable-shared do not build shared libraries
844: --disable-rpath do not embed shared library search path in executables
845: --enable-debug build with debugging symbols (-g)
846: --enable-depend turn on automatic dependency tracking
847: --enable-cassert enable assertion checks (for debugging)
1.204 petere 848: --disable-largefile omit support for large files
1.179 petere 849:
850: Optional Packages:
851: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853:
854: --with-includes=DIRS look for additional header files in DIRS
855: --with-libraries=DIRS look for additional libraries in DIRS
856: --with-libs=DIRS alternative spelling of --with-libraries
857: --with-pgport=PORTNUM change default port number 5432
858: --with-maxbackends=N set default maximum number of connections 32
859: --with-tcl build Tcl and Tk interfaces
860: --without-tk do not build Tk interfaces if Tcl is enabled
861: --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862: --with-tkconfig=DIR tkConfig.sh is in DIR
1.214 petere 863: --with-perl build Perl modules (PL/Perl)
1.179 petere 864: --with-python build Python interface module
865: --with-java build JDBC interface and Java tools
866: --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867: --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868: --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869: --with-pam build with PAM support
870: --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
1.186 petere 871: --without-readline do not use Readline
872: --without-zlib do not use Zlib
1.179 petere 873: --with-gnu-ld assume the C compiler uses GNU ld default=no
874:
875: Some influential environment variables:
876: CC C compiler command
877: CFLAGS C compiler flags
878: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879: nonstandard directory <lib dir>
880: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881: headers in a nonstandard directory <include dir>
882: CPP C preprocessor
1.187 petere 883: DOCBOOKSTYLE
884: location of DocBook stylesheets
1.179 petere 885:
886: Use these variables to override the choices made by `configure' or to help
887: it to find libraries and programs with nonstandard names/locations.
888:
889: Report bugs to <[email protected]>.
890: _ACEOF
891: fi
892:
893: if test "$ac_init_help" = "recursive"; then
894: # If there are subdirs, report their specific --help.
895: ac_popdir=`pwd`
896: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897: test -d $ac_dir || continue
898: ac_builddir=.
899:
900: if test "$ac_dir" != .; then
901: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902: # A "../" for each directory in $ac_dir_suffix.
903: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904: else
905: ac_dir_suffix= ac_top_builddir=
906: fi
907:
908: case $srcdir in
909: .) # No --srcdir option. We are building in place.
910: ac_srcdir=.
911: if test -z "$ac_top_builddir"; then
912: ac_top_srcdir=.
913: else
914: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915: fi ;;
916: [\\/]* | ?:[\\/]* ) # Absolute path.
917: ac_srcdir=$srcdir$ac_dir_suffix;
918: ac_top_srcdir=$srcdir ;;
919: *) # Relative path.
920: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921: ac_top_srcdir=$ac_top_builddir$srcdir ;;
922: esac
923: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924: # absolute.
925: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929:
930: cd $ac_dir
931: # Check for guested configure; otherwise get Cygnus style configure.
932: if test -f $ac_srcdir/configure.gnu; then
933: echo
934: $SHELL $ac_srcdir/configure.gnu --help=recursive
935: elif test -f $ac_srcdir/configure; then
936: echo
937: $SHELL $ac_srcdir/configure --help=recursive
938: elif test -f $ac_srcdir/configure.ac ||
939: test -f $ac_srcdir/configure.in; then
940: echo
941: $ac_configure --help
942: else
943: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944: fi
945: cd $ac_popdir
946: done
947: fi
948:
949: test -n "$ac_init_help" && exit 0
950: if $ac_init_version; then
951: cat <<\_ACEOF
1.227 tgl 952: PostgreSQL configure 7.4devel
1.179 petere 953: generated by GNU Autoconf 2.53
954:
955: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956: Free Software Foundation, Inc.
957: This configure script is free software; the Free Software Foundation
958: gives unlimited permission to copy, distribute and modify it.
959:
960: Copyright 2002 PostgreSQL Global Development Group
961: _ACEOF
962: exit 0
963: fi
964: exec 5>config.log
965: cat >&5 <<_ACEOF
966: This file contains any messages produced by compilers while
967: running configure, to aid debugging if configure makes a mistake.
968:
1.227 tgl 969: It was created by PostgreSQL $as_me 7.4devel, which was
1.179 petere 970: generated by GNU Autoconf 2.53. Invocation command line was
971:
972: $ $0 $@
973:
974: _ACEOF
975: {
976: cat <<_ASUNAME
977: ## --------- ##
978: ## Platform. ##
979: ## --------- ##
980:
981: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982: uname -m = `(uname -m) 2>/dev/null || echo unknown`
983: uname -r = `(uname -r) 2>/dev/null || echo unknown`
984: uname -s = `(uname -s) 2>/dev/null || echo unknown`
985: uname -v = `(uname -v) 2>/dev/null || echo unknown`
986:
987: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989:
990: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997:
998: _ASUNAME
999:
1000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001: for as_dir in $PATH
1002: do
1003: IFS=$as_save_IFS
1004: test -z "$as_dir" && as_dir=.
1005: echo "PATH: $as_dir"
1006: done
1007:
1008: } >&5
1009:
1010: cat >&5 <<_ACEOF
1011:
1012:
1013: ## ----------- ##
1014: ## Core tests. ##
1015: ## ----------- ##
1016:
1017: _ACEOF
1018:
1019:
1020: # Keep a trace of the command line.
1021: # Strip out --no-create and --no-recursion so they do not pile up.
1022: # Also quote any args containing shell meta-characters.
1023: ac_configure_args=
1024: ac_sep=
1025: for ac_arg
1026: do
1027: case $ac_arg in
1028: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029: | --no-cr | --no-c | -n ) continue ;;
1030: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032: continue ;;
1033: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035: esac
1036: case " $ac_configure_args " in
1037: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039: ac_sep=" " ;;
1040: esac
1041: # Get rid of the leading space.
1042: done
1043:
1044: # When interrupted or exit'd, cleanup temporary files, and complete
1045: # config.log. We remove comments because anyway the quotes in there
1046: # would cause problems or look ugly.
1047: # WARNING: Be sure not to use single quotes in there, as some shells,
1048: # such as our DU 5.0 friend, will then `close' the trap.
1049: trap 'exit_status=$?
1050: # Save into config.log some information that might help in debugging.
1051: {
1052: echo
1053: cat <<\_ASBOX
1054: ## ---------------- ##
1055: ## Cache variables. ##
1056: ## ---------------- ##
1057: _ASBOX
1058: echo
1059: # The following way of writing the cache mishandles newlines in values,
1060: {
1061: (set) 2>&1 |
1062: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063: *ac_space=\ *)
1064: sed -n \
1065: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067: ;;
1068: *)
1069: sed -n \
1070: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071: ;;
1072: esac;
1073: }
1074: echo
1075: if test -s confdefs.h; then
1076: cat <<\_ASBOX
1077: ## ----------- ##
1078: ## confdefs.h. ##
1079: ## ----------- ##
1080: _ASBOX
1081: echo
1082: sed "/^$/d" confdefs.h
1083: echo
1084: fi
1085: test "$ac_signal" != 0 &&
1086: echo "$as_me: caught signal $ac_signal"
1087: echo "$as_me: exit $exit_status"
1088: } >&5
1089: rm -f core core.* *.core &&
1090: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091: exit $exit_status
1092: ' 0
1093: for ac_signal in 1 2 13 15; do
1094: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095: done
1096: ac_signal=0
1097:
1098: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099: rm -rf conftest* confdefs.h
1100: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101: echo >confdefs.h
1102:
1103: # Predefined preprocessor variables.
1104:
1105: cat >>confdefs.h <<_ACEOF
1106: #define PACKAGE_NAME "$PACKAGE_NAME"
1107: _ACEOF
1108:
1109:
1110: cat >>confdefs.h <<_ACEOF
1111: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112: _ACEOF
1113:
1114:
1115: cat >>confdefs.h <<_ACEOF
1116: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117: _ACEOF
1.1 petere 1118:
1.179 petere 1119:
1120: cat >>confdefs.h <<_ACEOF
1121: #define PACKAGE_STRING "$PACKAGE_STRING"
1122: _ACEOF
1123:
1124:
1125: cat >>confdefs.h <<_ACEOF
1126: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127: _ACEOF
1128:
1129:
1130: # Let the site file select an alternate cache file if it wants to.
1.1 petere 1131: # Prefer explicitly selected file to automatically selected ones.
1132: if test -z "$CONFIG_SITE"; then
1133: if test "x$prefix" != xNONE; then
1134: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135: else
1136: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1137: fi
1138: fi
1139: for ac_site_file in $CONFIG_SITE; do
1140: if test -r "$ac_site_file"; then
1.179 petere 1141: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142: echo "$as_me: loading site script $ac_site_file" >&6;}
1143: sed 's/^/| /' "$ac_site_file" >&5
1.1 petere 1144: . "$ac_site_file"
1145: fi
1146: done
1147:
1148: if test -r "$cache_file"; then
1.179 petere 1149: # Some versions of bash will fail to source /dev/null (special
1150: # files actually), so we avoid doing that.
1151: if test -f "$cache_file"; then
1152: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153: echo "$as_me: loading cache $cache_file" >&6;}
1154: case $cache_file in
1155: [\\/]* | ?:[\\/]* ) . $cache_file;;
1156: *) . ./$cache_file;;
1157: esac
1158: fi
1.1 petere 1159: else
1.179 petere 1160: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161: echo "$as_me: creating cache $cache_file" >&6;}
1162: >$cache_file
1163: fi
1164:
1165: # Check that the precious variables saved in the cache have kept the same
1166: # value.
1167: ac_cache_corrupted=false
1168: for ac_var in `(set) 2>&1 |
1169: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171: eval ac_new_set=\$ac_env_${ac_var}_set
1172: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173: eval ac_new_val="\$ac_env_${ac_var}_value"
1174: case $ac_old_set,$ac_new_set in
1175: set,)
1176: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178: ac_cache_corrupted=: ;;
1179: ,set)
1180: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182: ac_cache_corrupted=: ;;
1183: ,);;
1184: *)
1185: if test "x$ac_old_val" != "x$ac_new_val"; then
1186: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189: echo "$as_me: former value: $ac_old_val" >&2;}
1190: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191: echo "$as_me: current value: $ac_new_val" >&2;}
1192: ac_cache_corrupted=:
1193: fi;;
1194: esac
1195: # Pass precious variables to config.status.
1196: if test "$ac_new_set" = set; then
1197: case $ac_new_val in
1198: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200: *) ac_arg=$ac_var=$ac_new_val ;;
1201: esac
1202: case " $ac_configure_args " in
1203: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205: esac
1206: fi
1207: done
1208: if $ac_cache_corrupted; then
1209: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213: { (exit 1); exit 1; }; }
1.1 petere 1214: fi
1215:
1216: ac_ext=c
1217: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 1218: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1221:
1222:
1223:
1224:
1225:
1226:
1227:
1228:
1229:
1230:
1231:
1232:
1233:
1234:
1235:
1236:
1237:
1238:
1239:
1240:
1241:
1242:
1243:
1244:
1.1 petere 1245:
1246:
1247:
1248:
1249:
1250:
1.32 petere 1251:
1252:
1253:
1.1 petere 1254: ac_aux_dir=
1.28 petere 1255: for ac_dir in config $srcdir/config; do
1.1 petere 1256: if test -f $ac_dir/install-sh; then
1257: ac_aux_dir=$ac_dir
1258: ac_install_sh="$ac_aux_dir/install-sh -c"
1259: break
1260: elif test -f $ac_dir/install.sh; then
1261: ac_aux_dir=$ac_dir
1262: ac_install_sh="$ac_aux_dir/install.sh -c"
1263: break
1.179 petere 1264: elif test -f $ac_dir/shtool; then
1265: ac_aux_dir=$ac_dir
1266: ac_install_sh="$ac_aux_dir/shtool install -c"
1267: break
1.1 petere 1268: fi
1269: done
1270: if test -z "$ac_aux_dir"; then
1.179 petere 1271: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272: echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273: { (exit 1); exit 1; }; }
1.1 petere 1274: fi
1.179 petere 1275: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 petere 1278:
1279:
1.179 petere 1280: configure_args=$ac_configure_args
1.24 petere 1281:
1282:
1283:
1.179 petere 1284: cat >>confdefs.h <<_ACEOF
1285: #define PG_VERSION "$PACKAGE_VERSION"
1286: _ACEOF
1.63 petere 1287:
1.1 petere 1288:
1289: # Make sure we can run config.sub.
1.179 petere 1290: $ac_config_sub sun4 >/dev/null 2>&1 ||
1291: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293: { (exit 1); exit 1; }; }
1294:
1295: echo "$as_me:$LINENO: checking build system type" >&5
1296: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297: if test "${ac_cv_build+set}" = set; then
1298: echo $ECHO_N "(cached) $ECHO_C" >&6
1299: else
1300: ac_cv_build_alias=$build_alias
1301: test -z "$ac_cv_build_alias" &&
1302: ac_cv_build_alias=`$ac_config_guess`
1303: test -z "$ac_cv_build_alias" &&
1304: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306: { (exit 1); exit 1; }; }
1307: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310: { (exit 1); exit 1; }; }
1311:
1312: fi
1313: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314: echo "${ECHO_T}$ac_cv_build" >&6
1315: build=$ac_cv_build
1316: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319:
1320:
1321: echo "$as_me:$LINENO: checking host system type" >&5
1322: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323: if test "${ac_cv_host+set}" = set; then
1324: echo $ECHO_N "(cached) $ECHO_C" >&6
1325: else
1326: ac_cv_host_alias=$host_alias
1327: test -z "$ac_cv_host_alias" &&
1328: ac_cv_host_alias=$ac_cv_build_alias
1329: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332: { (exit 1); exit 1; }; }
1333:
1334: fi
1335: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336: echo "${ECHO_T}$ac_cv_host" >&6
1337: host=$ac_cv_host
1338: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 petere 1341:
1342:
1343:
1.179 petere 1344: template=
1345: echo "$as_me:$LINENO: checking which template to use" >&5
1346: echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1.1 petere 1347:
1348:
1.46 petere 1349:
1350:
1.179 petere 1351: # Check whether --with-template or --without-template was given.
1352: if test "${with_template+set}" = set; then
1353: withval="$with_template"
1.46 petere 1354:
1.179 petere 1355: case $withval in
1.43 petere 1356: yes)
1.179 petere 1357: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358: echo "$as_me: error: argument required for --with-template option" >&2;}
1359: { (exit 1); exit 1; }; }
1.43 petere 1360: ;;
1361: no)
1.179 petere 1362: { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363: echo "$as_me: error: argument required for --with-template option" >&2;}
1364: { (exit 1); exit 1; }; }
1.43 petere 1365: ;;
1366: *)
1.179 petere 1367:
1.43 petere 1368: case $withval in
1.30 petere 1369: list) echo; ls "$srcdir/src/template"; exit;;
1370: *) if test -f "$srcdir/src/template/$with_template" ; then
1.43 petere 1371: template=$withval
1.30 petere 1372: else
1.179 petere 1373: { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374: echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375: { (exit 1); exit 1; }; }
1.30 petere 1376: fi;;
1377: esac
1378:
1.43 petere 1379: ;;
1.179 petere 1380: esac
1381:
1.43 petere 1382: else
1.179 petere 1383:
1.43 petere 1384: # --with-template not given
1.30 petere 1385:
1386: case $host_os in
1387: aix*) template=aix ;;
1.56 momjian 1388: beos*) template=beos ;;
1.30 petere 1389: bsdi*) template=bsdi ;;
1390: cygwin*) template=win ;;
1.76 petere 1391: darwin*) template=darwin ;;
1.30 petere 1392: dgux*) template=dgux ;;
1393: freebsd*) template=freebsd ;;
1394: hpux*) template=hpux ;;
1395: irix*) template=irix5 ;;
1396: linux*) template=linux ;;
1397: netbsd*) template=netbsd ;;
1398: nextstep*) template=nextstep ;;
1399: openbsd*) template=openbsd ;;
1400: osf*) template=osf ;;
1401: qnx*) template=qnx4 ;;
1402: sco*) template=sco ;;
1.60 petere 1403: solaris*) template=solaris ;;
1.30 petere 1404: sunos*) template=sunos4 ;;
1.1 petere 1405: sysv4.2*)
1.30 petere 1406: case $host_vendor in
1407: univel) template=univel ;;
1408: esac ;;
1409: sysv4*) template=svr4 ;;
1.143 petere 1410: sysv5*) template=unixware ;;
1.30 petere 1411: ultrix*) template=ultrix4 ;;
1.1 petere 1412: esac
1413:
1.30 petere 1414: if test x"$template" = x"" ; then
1.179 petere 1415: { { echo "$as_me:$LINENO: error:
1416: *******************************************************************
1417: PostgreSQL has apparently not been ported to your platform yet.
1418: To try a manual configuration, look into the src/template directory
1419: for a similar platform and use the '--with-template=' option.
1420:
1421: Please also contact <[email protected]> to see about
1422: rectifying this. Include the above 'checking host system type...'
1423: line.
1424: *******************************************************************
1425: " >&5
1426: echo "$as_me: error:
1.30 petere 1427: *******************************************************************
1428: PostgreSQL has apparently not been ported to your platform yet.
1.32 petere 1429: To try a manual configuration, look into the src/template directory
1.86 petere 1430: for a similar platform and use the '--with-template=' option.
1.1 petere 1431:
1.30 petere 1432: Please also contact <[email protected]> to see about
1.86 petere 1433: rectifying this. Include the above 'checking host system type...'
1.30 petere 1434: line.
1435: *******************************************************************
1.179 petere 1436: " >&2;}
1437: { (exit 1); exit 1; }; }
1.30 petere 1438: fi
1439:
1.43 petere 1440:
1.179 petere 1441: fi;
1442:
1.1 petere 1443:
1.179 petere 1444: echo "$as_me:$LINENO: result: $template" >&5
1445: echo "${ECHO_T}$template" >&6
1.30 petere 1446:
1447: PORTNAME=$template
1.1 petere 1448:
1449:
1.60 petere 1450: # Pick right test-and-set (TAS) code. Most platforms have inline
1451: # assembler code in src/include/storage/s_lock.h, so we just use
1452: # a dummy file here.
1453: case $host in
1454: *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1455: sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1.156 momjian 1456: i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1.65 petere 1457: *) need_tas=no; tas_file=dummy.s ;;
1.30 petere 1458: esac
1.179 petere 1459: ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1.1 petere 1460:
1.65 petere 1461:
1.30 petere 1462: if test "$need_tas" = yes ; then
1463: TAS=tas.o
1.1 petere 1464: fi
1465:
1466:
1467:
1.30 petere 1468:
1469: ##
1470: ## Command line options
1471: ##
1.1 petere 1472:
1473:
1.30 petere 1474: #
1475: # Add non-standard directories to the include path
1476: #
1.179 petere 1477:
1478:
1479:
1480: # Check whether --with-includes or --without-includes was given.
1481: if test "${with_includes+set}" = set; then
1482: withval="$with_includes"
1483:
1484: case $withval in
1.43 petere 1485: yes)
1.179 petere 1486: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487: echo "$as_me: error: argument required for --with-includes option" >&2;}
1488: { (exit 1); exit 1; }; }
1.43 petere 1489: ;;
1490: no)
1.179 petere 1491: { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492: echo "$as_me: error: argument required for --with-includes option" >&2;}
1493: { (exit 1); exit 1; }; }
1.43 petere 1494: ;;
1.179 petere 1495: *)
1496:
1497: ;;
1498: esac
1499:
1500: fi;
1501:
1.1 petere 1502:
1503:
1.30 petere 1504: #
1505: # Add non-standard directories to the library search path
1506: #
1.179 petere 1507:
1508:
1509:
1510: # Check whether --with-libraries or --without-libraries was given.
1511: if test "${with_libraries+set}" = set; then
1512: withval="$with_libraries"
1513:
1514: case $withval in
1.43 petere 1515: yes)
1.179 petere 1516: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518: { (exit 1); exit 1; }; }
1.43 petere 1519: ;;
1520: no)
1.179 petere 1521: { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522: echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523: { (exit 1); exit 1; }; }
1.43 petere 1524: ;;
1525: *)
1526: LIBRARY_DIRS=$withval
1527: ;;
1.179 petere 1528: esac
1529:
1530: fi;
1531:
1532:
1533:
1534:
1535:
1536: # Check whether --with-libs or --without-libs was given.
1537: if test "${with_libs+set}" = set; then
1538: withval="$with_libs"
1.1 petere 1539:
1.179 petere 1540: case $withval in
1.43 petere 1541: yes)
1.179 petere 1542: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543: echo "$as_me: error: argument required for --with-libs option" >&2;}
1544: { (exit 1); exit 1; }; }
1.43 petere 1545: ;;
1546: no)
1.179 petere 1547: { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548: echo "$as_me: error: argument required for --with-libs option" >&2;}
1549: { (exit 1); exit 1; }; }
1.43 petere 1550: ;;
1551: *)
1552: LIBRARY_DIRS=$withval
1553: ;;
1.179 petere 1554: esac
1555:
1556: fi;
1557:
1.1 petere 1558:
1559:
1.29 petere 1560: #
1.189 thomas 1561: # 64-bit integer date/time storage (--enable-integer-datetimes)
1562: #
1563: echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564: echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1565:
1566:
1567: # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568: if test "${enable_integer_datetimes+set}" = set; then
1569: enableval="$enable_integer_datetimes"
1570:
1571: case $enableval in
1572: yes)
1573:
1574: cat >>confdefs.h <<\_ACEOF
1575: #define USE_INTEGER_DATETIMES 1
1576: _ACEOF
1577:
1578: ;;
1579: no)
1580: :
1581: ;;
1582: *)
1583: { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584: echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585: { (exit 1); exit 1; }; }
1586: ;;
1587: esac
1588:
1589: else
1590: enable_integer_datetimes=no
1591:
1592: fi;
1593:
1594: echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595: echo "${ECHO_T}$enable_integer_datetimes" >&6
1596:
1597:
1.43 petere 1598: # Character set recode (--enable-recode)
1.29 petere 1599: #
1.179 petere 1600: echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601: echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1602:
1603:
1604: # Check whether --enable-recode or --disable-recode was given.
1605: if test "${enable_recode+set}" = set; then
1606: enableval="$enable_recode"
1607:
1608: case $enableval in
1.43 petere 1609: yes)
1.179 petere 1610:
1611: cat >>confdefs.h <<\_ACEOF
1.30 petere 1612: #define CYR_RECODE 1
1.179 petere 1613: _ACEOF
1.29 petere 1614:
1.43 petere 1615: ;;
1616: no)
1617: :
1618: ;;
1619: *)
1.179 petere 1620: { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621: echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622: { (exit 1); exit 1; }; }
1.43 petere 1623: ;;
1.179 petere 1624: esac
1625:
1.1 petere 1626: else
1.29 petere 1627: enable_recode=no
1.43 petere 1628:
1.179 petere 1629: fi;
1630:
1631: echo "$as_me:$LINENO: result: $enable_recode" >&5
1632: echo "${ECHO_T}$enable_recode" >&6
1.1 petere 1633:
1634:
1.29 petere 1635: #
1.135 petere 1636: # NLS
1637: #
1.179 petere 1638: echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1639: echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1640:
1641:
1642: # Check whether --enable-nls or --disable-nls was given.
1643: if test "${enable_nls+set}" = set; then
1644: enableval="$enable_nls"
1645:
1646: case $enableval in
1.135 petere 1647: yes)
1648: :
1649: ;;
1650: no)
1651: :
1652: ;;
1653: *)
1654: enable_nls=yes
1655: WANTED_LANGUAGES=$enableval
1656: ;;
1.179 petere 1657: esac
1658:
1.135 petere 1659: else
1660: enable_nls=no
1.179 petere 1661: fi;
1662:
1.135 petere 1663:
1664: if test "$enable_nls" = yes; then
1.179 petere 1665:
1666: cat >>confdefs.h <<\_ACEOF
1.135 petere 1667: #define ENABLE_NLS 1
1.179 petere 1668: _ACEOF
1.135 petere 1669:
1670: fi
1671:
1.179 petere 1672: echo "$as_me:$LINENO: result: $enable_nls" >&5
1673: echo "${ECHO_T}$enable_nls" >&6
1.135 petere 1674:
1675:
1676:
1677: #
1.29 petere 1678: # Default port number (--with-pgport), default 5432
1679: #
1.179 petere 1680: echo "$as_me:$LINENO: checking for default port number" >&5
1681: echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1682:
1683:
1684:
1685: # Check whether --with-pgport or --without-pgport was given.
1686: if test "${with_pgport+set}" = set; then
1687: withval="$with_pgport"
1688:
1689: case $withval in
1.43 petere 1690: yes)
1.179 petere 1691: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1692: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1693: { (exit 1); exit 1; }; }
1.43 petere 1694: ;;
1695: no)
1.179 petere 1696: { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1697: echo "$as_me: error: argument required for --with-pgport option" >&2;}
1698: { (exit 1); exit 1; }; }
1.43 petere 1699: ;;
1700: *)
1701: default_port=$withval
1702: ;;
1.179 petere 1703: esac
1704:
1.1 petere 1705: else
1706: default_port=5432
1.179 petere 1707: fi;
1708:
1709: echo "$as_me:$LINENO: result: $default_port" >&5
1710: echo "${ECHO_T}$default_port" >&6
1.104 tgl 1711: # Need both of these because some places want an integer and some a string
1.179 petere 1712:
1713: cat >>confdefs.h <<_ACEOF
1.1 petere 1714: #define DEF_PGPORT ${default_port}
1.179 petere 1715: _ACEOF
1716:
1.1 petere 1717:
1.179 petere 1718: cat >>confdefs.h <<_ACEOF
1.1 petere 1719: #define DEF_PGPORT_STR "${default_port}"
1.179 petere 1720: _ACEOF
1.1 petere 1721:
1722:
1723:
1.29 petere 1724: #
1725: # Maximum number of allowed connections (--with-maxbackends), default 32
1726: #
1.179 petere 1727: echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1728: echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1729:
1730:
1731:
1732: # Check whether --with-maxbackends or --without-maxbackends was given.
1733: if test "${with_maxbackends+set}" = set; then
1734: withval="$with_maxbackends"
1735:
1736: case $withval in
1.43 petere 1737: yes)
1.179 petere 1738: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1739: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1740: { (exit 1); exit 1; }; }
1.43 petere 1741: ;;
1742: no)
1.179 petere 1743: { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1744: echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1745: { (exit 1); exit 1; }; }
1746: ;;
1747: *)
1748:
1.43 petere 1749: ;;
1.179 petere 1750: esac
1751:
1.1 petere 1752: else
1.29 petere 1753: with_maxbackends=32
1.179 petere 1754: fi;
1755:
1756: echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1757: echo "${ECHO_T}$with_maxbackends" >&6
1758:
1759: cat >>confdefs.h <<_ACEOF
1.29 petere 1760: #define DEF_MAXBACKENDS $with_maxbackends
1.179 petere 1761: _ACEOF
1.1 petere 1762:
1763:
1764:
1.29 petere 1765: #
1.67 petere 1766: # Option to disable shared libraries
1767: #
1.179 petere 1768:
1769:
1770: # Check whether --enable-shared or --disable-shared was given.
1771: if test "${enable_shared+set}" = set; then
1772: enableval="$enable_shared"
1773:
1774: case $enableval in
1.67 petere 1775: yes)
1776: :
1777: ;;
1778: no)
1779: :
1780: ;;
1781: *)
1.179 petere 1782: { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1783: echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1784: { (exit 1); exit 1; }; }
1.67 petere 1785: ;;
1.179 petere 1786: esac
1787:
1.67 petere 1788: else
1789: enable_shared=yes
1790:
1.179 petere 1791: fi;
1792:
1.67 petere 1793:
1794:
1.73 petere 1795: #
1796: # '-rpath'-like feature can be disabled
1797: #
1.179 petere 1798:
1799:
1800: # Check whether --enable-rpath or --disable-rpath was given.
1801: if test "${enable_rpath+set}" = set; then
1802: enableval="$enable_rpath"
1803:
1804: case $enableval in
1.73 petere 1805: yes)
1806: :
1807: ;;
1808: no)
1809: :
1810: ;;
1811: *)
1.179 petere 1812: { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1813: echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1814: { (exit 1); exit 1; }; }
1.73 petere 1815: ;;
1.179 petere 1816: esac
1817:
1.73 petere 1818: else
1819: enable_rpath=yes
1820:
1.179 petere 1821: fi;
1822:
1.73 petere 1823:
1824:
1.67 petere 1825:
1826: #
1.80 petere 1827: # --enable-debug adds -g to compiler flags
1828: #
1.179 petere 1829:
1830:
1831: # Check whether --enable-debug or --disable-debug was given.
1832: if test "${enable_debug+set}" = set; then
1833: enableval="$enable_debug"
1834:
1835: case $enableval in
1.80 petere 1836: yes)
1837: :
1838: ;;
1839: no)
1840: :
1841: ;;
1842: *)
1.179 petere 1843: { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1844: echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1845: { (exit 1); exit 1; }; }
1.80 petere 1846: ;;
1.179 petere 1847: esac
1848:
1.80 petere 1849: else
1850: enable_debug=no
1851:
1.179 petere 1852: fi;
1853:
1.80 petere 1854:
1855:
1856: #
1.30 petere 1857: # C compiler
1858: #
1859:
1.29 petere 1860: # For historical reasons you can also use --with-CC to specify the C compiler
1861: # to use, although the standard way to do this is to set the CC environment
1862: # variable.
1.179 petere 1863:
1864:
1865:
1866: # Check whether --with-CC or --without-CC was given.
1867: if test "${with_CC+set}" = set; then
1868: withval="$with_CC"
1869:
1870: case $withval in
1.43 petere 1871: yes)
1.179 petere 1872: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1873: echo "$as_me: error: argument required for --with-CC option" >&2;}
1874: { (exit 1); exit 1; }; }
1.43 petere 1875: ;;
1876: no)
1.179 petere 1877: { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1878: echo "$as_me: error: argument required for --with-CC option" >&2;}
1879: { (exit 1); exit 1; }; }
1.43 petere 1880: ;;
1881: *)
1882: CC=$with_CC
1883: ;;
1.179 petere 1884: esac
1885:
1886: fi;
1887:
1.1 petere 1888:
1.179 petere 1889: case $template in
1890: aix) pgac_cc_list="gcc xlc";;
1891: irix) pgac_cc_list="cc";; # no gcc
1892: *) pgac_cc_list="gcc cc";;
1893: esac
1.1 petere 1894:
1.179 petere 1895: ac_ext=c
1896: ac_cpp='$CPP $CPPFLAGS'
1897: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900: if test -n "$ac_tool_prefix"; then
1901: for ac_prog in $pgac_cc_list
1902: do
1903: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905: echo "$as_me:$LINENO: checking for $ac_word" >&5
1906: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907: if test "${ac_cv_prog_CC+set}" = set; then
1908: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 1909: else
1910: if test -n "$CC"; then
1911: ac_cv_prog_CC="$CC" # Let the user override the test.
1912: else
1.179 petere 1913: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914: for as_dir in $PATH
1915: do
1916: IFS=$as_save_IFS
1917: test -z "$as_dir" && as_dir=.
1918: for ac_exec_ext in '' $ac_executable_extensions; do
1919: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922: break 2
1923: fi
1924: done
1925: done
1926:
1.1 petere 1927: fi
1928: fi
1.179 petere 1929: CC=$ac_cv_prog_CC
1.1 petere 1930: if test -n "$CC"; then
1.179 petere 1931: echo "$as_me:$LINENO: result: $CC" >&5
1932: echo "${ECHO_T}$CC" >&6
1.1 petere 1933: else
1.179 petere 1934: echo "$as_me:$LINENO: result: no" >&5
1935: echo "${ECHO_T}no" >&6
1.1 petere 1936: fi
1937:
1.179 petere 1938: test -n "$CC" && break
1939: done
1940: fi
1.1 petere 1941: if test -z "$CC"; then
1.179 petere 1942: ac_ct_CC=$CC
1943: for ac_prog in $pgac_cc_list
1944: do
1945: # Extract the first word of "$ac_prog", so it can be a program name with args.
1946: set dummy $ac_prog; ac_word=$2
1947: echo "$as_me:$LINENO: checking for $ac_word" >&5
1948: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1950: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 1951: else
1.179 petere 1952: if test -n "$ac_ct_CC"; then
1953: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 petere 1954: else
1.179 petere 1955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956: for as_dir in $PATH
1957: do
1958: IFS=$as_save_IFS
1959: test -z "$as_dir" && as_dir=.
1960: for ac_exec_ext in '' $ac_executable_extensions; do
1961: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962: ac_cv_prog_ac_ct_CC="$ac_prog"
1963: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964: break 2
1.1 petere 1965: fi
1.179 petere 1966: done
1967: done
1.1 petere 1968:
1969: fi
1970: fi
1.179 petere 1971: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1972: if test -n "$ac_ct_CC"; then
1973: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1974: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 petere 1975: else
1.179 petere 1976: echo "$as_me:$LINENO: result: no" >&5
1977: echo "${ECHO_T}no" >&6
1.1 petere 1978: fi
1979:
1.179 petere 1980: test -n "$ac_ct_CC" && break
1981: done
1.1 petere 1982:
1.179 petere 1983: CC=$ac_ct_CC
1984: fi
1.1 petere 1985:
1986:
1.179 petere 1987: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1988: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1989: { (exit 1); exit 1; }; }
1990:
1991: # Provide some information about the compiler.
1992: echo "$as_me:$LINENO:" \
1993: "checking for C compiler version" >&5
1994: ac_compiler=`set X $ac_compile; echo $2`
1995: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1996: (eval $ac_compiler --version </dev/null >&5) 2>&5
1997: ac_status=$?
1998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999: (exit $ac_status); }
2000: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2001: (eval $ac_compiler -v </dev/null >&5) 2>&5
2002: ac_status=$?
2003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004: (exit $ac_status); }
2005: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2006: (eval $ac_compiler -V </dev/null >&5) 2>&5
2007: ac_status=$?
2008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009: (exit $ac_status); }
2010:
2011: cat >conftest.$ac_ext <<_ACEOF
2012: #line $LINENO "configure"
2013: #include "confdefs.h"
2014:
2015: #ifdef F77_DUMMY_MAIN
2016: # ifdef __cplusplus
2017: extern "C"
2018: # endif
2019: int F77_DUMMY_MAIN() { return 1; }
2020: #endif
2021: int
2022: main ()
2023: {
1.1 petere 2024:
1.179 petere 2025: ;
2026: return 0;
2027: }
2028: _ACEOF
2029: ac_clean_files_save=$ac_clean_files
2030: ac_clean_files="$ac_clean_files a.out a.exe"
2031: # Try to create an executable without -o first, disregard a.out.
2032: # It will help us diagnose broken compilers, and finding out an intuition
2033: # of exeext.
2034: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2035: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2036: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2037: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2038: (eval $ac_link_default) 2>&5
2039: ac_status=$?
2040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041: (exit $ac_status); }; then
2042: # Find the output, starting from the most likely. This scheme is
2043: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2044: # resort.
2045:
2046: # Be careful to initialize this variable, since it used to be cached.
2047: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2048: ac_cv_exeext=
2049: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2050: ls a.out conftest 2>/dev/null;
2051: ls a.* conftest.* 2>/dev/null`; do
2052: case $ac_file in
2053: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2054: a.out ) # We found the default executable, but exeext='' is most
2055: # certainly right.
2056: break;;
2057: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2059: export ac_cv_exeext
2060: break;;
2061: * ) break;;
2062: esac
2063: done
2064: else
2065: echo "$as_me: failed program was:" >&5
2066: cat conftest.$ac_ext >&5
2067: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2068: echo "$as_me: error: C compiler cannot create executables" >&2;}
2069: { (exit 77); exit 77; }; }
2070: fi
2071:
2072: ac_exeext=$ac_cv_exeext
2073: echo "$as_me:$LINENO: result: $ac_file" >&5
2074: echo "${ECHO_T}$ac_file" >&6
2075:
2076: # Check the compiler produces executables we can run. If not, either
2077: # the compiler is broken, or we cross compile.
2078: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2079: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2080: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2081: # If not cross compiling, check that we can run a simple program.
2082: if test "$cross_compiling" != yes; then
2083: if { ac_try='./$ac_file'
2084: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085: (eval $ac_try) 2>&5
2086: ac_status=$?
2087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088: (exit $ac_status); }; }; then
2089: cross_compiling=no
1.1 petere 2090: else
1.179 petere 2091: if test "$cross_compiling" = maybe; then
2092: cross_compiling=yes
2093: else
2094: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2095: If you meant to cross compile, use \`--host'." >&5
2096: echo "$as_me: error: cannot run C compiled programs.
2097: If you meant to cross compile, use \`--host'." >&2;}
2098: { (exit 1); exit 1; }; }
2099: fi
1.1 petere 2100: fi
2101: fi
1.179 petere 2102: echo "$as_me:$LINENO: result: yes" >&5
2103: echo "${ECHO_T}yes" >&6
2104:
2105: rm -f a.out a.exe conftest$ac_cv_exeext
2106: ac_clean_files=$ac_clean_files_save
2107: # Check the compiler produces executables we can run. If not, either
2108: # the compiler is broken, or we cross compile.
2109: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112: echo "${ECHO_T}$cross_compiling" >&6
2113:
2114: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117: (eval $ac_link) 2>&5
2118: ac_status=$?
2119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120: (exit $ac_status); }; then
2121: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2123: # work properly (i.e., refer to `conftest.exe'), while it won't with
2124: # `rm'.
2125: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2126: case $ac_file in
2127: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2128: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129: export ac_cv_exeext
2130: break;;
2131: * ) break;;
2132: esac
2133: done
1.1 petere 2134: else
1.179 petere 2135: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2136: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2137: { (exit 1); exit 1; }; }
1.1 petere 2138: fi
2139:
1.179 petere 2140: rm -f conftest$ac_cv_exeext
2141: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142: echo "${ECHO_T}$ac_cv_exeext" >&6
2143:
2144: rm -f conftest.$ac_ext
2145: EXEEXT=$ac_cv_exeext
2146: ac_exeext=$EXEEXT
2147: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149: if test "${ac_cv_objext+set}" = set; then
2150: echo $ECHO_N "(cached) $ECHO_C" >&6
2151: else
2152: cat >conftest.$ac_ext <<_ACEOF
2153: #line $LINENO "configure"
2154: #include "confdefs.h"
2155:
2156: #ifdef F77_DUMMY_MAIN
2157: # ifdef __cplusplus
2158: extern "C"
2159: # endif
2160: int F77_DUMMY_MAIN() { return 1; }
2161: #endif
2162: int
2163: main ()
2164: {
1.1 petere 2165:
1.179 petere 2166: ;
2167: return 0;
2168: }
2169: _ACEOF
2170: rm -f conftest.o conftest.obj
2171: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172: (eval $ac_compile) 2>&5
2173: ac_status=$?
2174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175: (exit $ac_status); }; then
2176: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177: case $ac_file in
2178: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2179: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180: break;;
2181: esac
2182: done
1.1 petere 2183: else
1.179 petere 2184: echo "$as_me: failed program was:" >&5
2185: cat conftest.$ac_ext >&5
2186: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2187: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2188: { (exit 1); exit 1; }; }
2189: fi
2190:
2191: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192: fi
2193: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194: echo "${ECHO_T}$ac_cv_objext" >&6
2195: OBJEXT=$ac_cv_objext
2196: ac_objext=$OBJEXT
2197: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200: echo $ECHO_N "(cached) $ECHO_C" >&6
2201: else
2202: cat >conftest.$ac_ext <<_ACEOF
2203: #line $LINENO "configure"
2204: #include "confdefs.h"
2205:
2206: #ifdef F77_DUMMY_MAIN
2207: # ifdef __cplusplus
2208: extern "C"
2209: # endif
2210: int F77_DUMMY_MAIN() { return 1; }
2211: #endif
2212: int
2213: main ()
2214: {
2215: #ifndef __GNUC__
2216: choke me
2217: #endif
2218:
2219: ;
2220: return 0;
2221: }
2222: _ACEOF
2223: rm -f conftest.$ac_objext
2224: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225: (eval $ac_compile) 2>&5
2226: ac_status=$?
2227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228: (exit $ac_status); } &&
2229: { ac_try='test -s conftest.$ac_objext'
2230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231: (eval $ac_try) 2>&5
2232: ac_status=$?
2233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234: (exit $ac_status); }; }; then
2235: ac_compiler_gnu=yes
2236: else
2237: echo "$as_me: failed program was:" >&5
2238: cat conftest.$ac_ext >&5
2239: ac_compiler_gnu=no
2240: fi
2241: rm -f conftest.$ac_objext conftest.$ac_ext
2242: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2243:
2244: fi
2245: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247: GCC=`test $ac_compiler_gnu = yes && echo yes`
2248: ac_test_CFLAGS=${CFLAGS+set}
2249: ac_save_CFLAGS=$CFLAGS
2250: CFLAGS="-g"
2251: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253: if test "${ac_cv_prog_cc_g+set}" = set; then
2254: echo $ECHO_N "(cached) $ECHO_C" >&6
2255: else
2256: cat >conftest.$ac_ext <<_ACEOF
2257: #line $LINENO "configure"
2258: #include "confdefs.h"
2259:
2260: #ifdef F77_DUMMY_MAIN
2261: # ifdef __cplusplus
2262: extern "C"
2263: # endif
2264: int F77_DUMMY_MAIN() { return 1; }
2265: #endif
2266: int
2267: main ()
2268: {
1.1 petere 2269:
1.179 petere 2270: ;
2271: return 0;
2272: }
2273: _ACEOF
2274: rm -f conftest.$ac_objext
2275: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276: (eval $ac_compile) 2>&5
2277: ac_status=$?
2278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279: (exit $ac_status); } &&
2280: { ac_try='test -s conftest.$ac_objext'
2281: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282: (eval $ac_try) 2>&5
2283: ac_status=$?
2284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285: (exit $ac_status); }; }; then
1.1 petere 2286: ac_cv_prog_cc_g=yes
2287: else
1.179 petere 2288: echo "$as_me: failed program was:" >&5
2289: cat conftest.$ac_ext >&5
2290: ac_cv_prog_cc_g=no
1.1 petere 2291: fi
1.179 petere 2292: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 2293: fi
1.179 petere 2294: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2295: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 petere 2296: if test "$ac_test_CFLAGS" = set; then
1.179 petere 2297: CFLAGS=$ac_save_CFLAGS
1.1 petere 2298: elif test $ac_cv_prog_cc_g = yes; then
2299: if test "$GCC" = yes; then
2300: CFLAGS="-g -O2"
2301: else
2302: CFLAGS="-g"
2303: fi
2304: else
2305: if test "$GCC" = yes; then
2306: CFLAGS="-O2"
2307: else
2308: CFLAGS=
2309: fi
2310: fi
1.179 petere 2311: # Some people use a C++ compiler to compile C. Since we use `exit',
2312: # in C++ we need to declare it. In case someone uses the same compiler
2313: # for both compiling C and C++ we need to have the C++ compiler decide
2314: # the declaration of exit, since it's the most demanding environment.
2315: cat >conftest.$ac_ext <<_ACEOF
2316: #ifndef __cplusplus
2317: choke me
2318: #endif
2319: _ACEOF
2320: rm -f conftest.$ac_objext
2321: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322: (eval $ac_compile) 2>&5
2323: ac_status=$?
2324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325: (exit $ac_status); } &&
2326: { ac_try='test -s conftest.$ac_objext'
2327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328: (eval $ac_try) 2>&5
2329: ac_status=$?
2330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331: (exit $ac_status); }; }; then
2332: for ac_declaration in \
2333: ''\
2334: '#include <stdlib.h>' \
2335: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336: 'extern "C" void std::exit (int); using std::exit;' \
2337: 'extern "C" void exit (int) throw ();' \
2338: 'extern "C" void exit (int);' \
2339: 'void exit (int);'
2340: do
2341: cat >conftest.$ac_ext <<_ACEOF
2342: #line $LINENO "configure"
2343: #include "confdefs.h"
2344: #include <stdlib.h>
2345: $ac_declaration
2346: #ifdef F77_DUMMY_MAIN
2347: # ifdef __cplusplus
2348: extern "C"
2349: # endif
2350: int F77_DUMMY_MAIN() { return 1; }
2351: #endif
2352: int
2353: main ()
2354: {
2355: exit (42);
2356: ;
2357: return 0;
2358: }
2359: _ACEOF
2360: rm -f conftest.$ac_objext
2361: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362: (eval $ac_compile) 2>&5
2363: ac_status=$?
2364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365: (exit $ac_status); } &&
2366: { ac_try='test -s conftest.$ac_objext'
2367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368: (eval $ac_try) 2>&5
2369: ac_status=$?
2370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371: (exit $ac_status); }; }; then
2372: :
2373: else
2374: echo "$as_me: failed program was:" >&5
2375: cat conftest.$ac_ext >&5
2376: continue
2377: fi
2378: rm -f conftest.$ac_objext conftest.$ac_ext
2379: cat >conftest.$ac_ext <<_ACEOF
2380: #line $LINENO "configure"
2381: #include "confdefs.h"
2382: $ac_declaration
2383: #ifdef F77_DUMMY_MAIN
2384: # ifdef __cplusplus
2385: extern "C"
2386: # endif
2387: int F77_DUMMY_MAIN() { return 1; }
2388: #endif
2389: int
2390: main ()
2391: {
2392: exit (42);
2393: ;
2394: return 0;
2395: }
2396: _ACEOF
2397: rm -f conftest.$ac_objext
2398: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399: (eval $ac_compile) 2>&5
2400: ac_status=$?
2401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402: (exit $ac_status); } &&
2403: { ac_try='test -s conftest.$ac_objext'
2404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405: (eval $ac_try) 2>&5
2406: ac_status=$?
2407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408: (exit $ac_status); }; }; then
2409: break
2410: else
2411: echo "$as_me: failed program was:" >&5
2412: cat conftest.$ac_ext >&5
2413: fi
2414: rm -f conftest.$ac_objext conftest.$ac_ext
2415: done
2416: rm -f conftest*
2417: if test -n "$ac_declaration"; then
2418: echo '#ifdef __cplusplus' >>confdefs.h
2419: echo $ac_declaration >>confdefs.h
2420: echo '#endif' >>confdefs.h
2421: fi
2422:
2423: else
2424: echo "$as_me: failed program was:" >&5
2425: cat conftest.$ac_ext >&5
2426: fi
2427: rm -f conftest.$ac_objext conftest.$ac_ext
2428: ac_ext=c
2429: ac_cpp='$CPP $CPPFLAGS'
2430: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2433:
1.30 petere 2434: # Read the template
2435: . "$srcdir/src/template/$template" || exit
1.80 petere 2436:
1.179 petere 2437: if test "$ac_env_CFLAGS_set" = set; then
2438: CFLAGS=$ac_env_CFLAGS_value
1.80 petere 2439: fi
2440: if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2441: CFLAGS="$CFLAGS -g"
2442: fi
1.179 petere 2443: { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2444: echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
1.219 petere 2445:
1.30 petere 2446: # Check if the compiler still works with the template settings
1.179 petere 2447: echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2448: echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
1.30 petere 2449:
1.179 petere 2450: cat >conftest.$ac_ext <<_ACEOF
2451: #line $LINENO "configure"
1.30 petere 2452: #include "confdefs.h"
2453:
1.179 petere 2454: #ifdef F77_DUMMY_MAIN
2455: # ifdef __cplusplus
2456: extern "C"
2457: # endif
2458: int F77_DUMMY_MAIN() { return 1; }
2459: #endif
2460: int
2461: main ()
2462: {
2463: return 0;
2464: ;
2465: return 0;
2466: }
2467: _ACEOF
2468: rm -f conftest.$ac_objext conftest$ac_exeext
2469: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470: (eval $ac_link) 2>&5
2471: ac_status=$?
2472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473: (exit $ac_status); } &&
2474: { ac_try='test -s conftest$ac_exeext'
2475: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476: (eval $ac_try) 2>&5
2477: ac_status=$?
2478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479: (exit $ac_status); }; }; then
2480: echo "$as_me:$LINENO: result: yes" >&5
2481: echo "${ECHO_T}yes" >&6
2482: else
2483: echo "$as_me: failed program was:" >&5
2484: cat conftest.$ac_ext >&5
2485: echo "$as_me:$LINENO: result: no" >&5
2486: echo "${ECHO_T}no" >&6
2487: { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2488: echo "$as_me: error: cannot proceed" >&2;}
2489: { (exit 1); exit 1; }; }
1.30 petere 2490: fi
1.179 petere 2491: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.219 petere 2492:
2493: # Defend against gcc -ffastmath
2494: if test "$GCC" = yes; then
2495: cat >conftest.$ac_ext <<_ACEOF
2496: #line $LINENO "configure"
2497: #include "confdefs.h"
2498:
2499: #ifdef F77_DUMMY_MAIN
2500: # ifdef __cplusplus
2501: extern "C"
2502: # endif
2503: int F77_DUMMY_MAIN() { return 1; }
2504: #endif
2505: int
2506: main ()
2507: {
2508: #ifdef __FAST_MATH__
2509: choke me
2510: #endif
2511: ;
2512: return 0;
2513: }
2514: _ACEOF
2515: rm -f conftest.$ac_objext
2516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517: (eval $ac_compile) 2>&5
2518: ac_status=$?
2519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520: (exit $ac_status); } &&
2521: { ac_try='test -s conftest.$ac_objext'
2522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523: (eval $ac_try) 2>&5
2524: ac_status=$?
2525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526: (exit $ac_status); }; }; then
2527: :
2528: else
2529: echo "$as_me: failed program was:" >&5
2530: cat conftest.$ac_ext >&5
2531: { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2532: echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2533: { (exit 1); exit 1; }; }
2534: fi
2535: rm -f conftest.$ac_objext conftest.$ac_ext
2536: fi
2537:
1.30 petere 2538: ac_ext=c
2539: ac_cpp='$CPP $CPPFLAGS'
1.179 petere 2540: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2544: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2545: # On Suns, sometimes $CPP names a directory.
2546: if test -n "$CPP" && test -d "$CPP"; then
2547: CPP=
1.30 petere 2548: fi
1.179 petere 2549: if test -z "$CPP"; then
2550: if test "${ac_cv_prog_CPP+set}" = set; then
2551: echo $ECHO_N "(cached) $ECHO_C" >&6
1.45 petere 2552: else
1.179 petere 2553: # Double quotes because CPP needs to be expanded
2554: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2555: do
2556: ac_preproc_ok=false
2557: for ac_c_preproc_warn_flag in '' yes
2558: do
2559: # Use a header file that comes with gcc, so configuring glibc
2560: # with a fresh cross-compiler works.
2561: # On the NeXT, cc -E runs the code through the compiler's parser,
2562: # not just through cpp. "Syntax error" is here to catch this case.
2563: cat >conftest.$ac_ext <<_ACEOF
2564: #line $LINENO "configure"
1.45 petere 2565: #include "confdefs.h"
1.179 petere 2566: #include <assert.h>
2567: Syntax error
2568: _ACEOF
2569: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571: ac_status=$?
2572: egrep -v '^ *\+' conftest.er1 >conftest.err
2573: rm -f conftest.er1
2574: cat conftest.err >&5
2575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576: (exit $ac_status); } >/dev/null; then
2577: if test -s conftest.err; then
2578: ac_cpp_err=$ac_c_preproc_warn_flag
2579: else
2580: ac_cpp_err=
2581: fi
1.45 petere 2582: else
1.179 petere 2583: ac_cpp_err=yes
1.45 petere 2584: fi
1.179 petere 2585: if test -z "$ac_cpp_err"; then
2586: :
1.45 petere 2587: else
1.179 petere 2588: echo "$as_me: failed program was:" >&5
1.45 petere 2589: cat conftest.$ac_ext >&5
1.179 petere 2590: # Broken: fails on valid input.
2591: continue
1.45 petere 2592: fi
1.179 petere 2593: rm -f conftest.err conftest.$ac_ext
1.45 petere 2594:
1.179 petere 2595: # OK, works on sane cases. Now check whether non-existent headers
2596: # can be detected and how.
2597: cat >conftest.$ac_ext <<_ACEOF
2598: #line $LINENO "configure"
2599: #include "confdefs.h"
2600: #include <ac_nonexistent.h>
2601: _ACEOF
2602: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604: ac_status=$?
2605: egrep -v '^ *\+' conftest.er1 >conftest.err
2606: rm -f conftest.er1
2607: cat conftest.err >&5
2608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609: (exit $ac_status); } >/dev/null; then
2610: if test -s conftest.err; then
2611: ac_cpp_err=$ac_c_preproc_warn_flag
1.45 petere 2612: else
1.179 petere 2613: ac_cpp_err=
1.45 petere 2614: fi
1.179 petere 2615: else
2616: ac_cpp_err=yes
2617: fi
2618: if test -z "$ac_cpp_err"; then
2619: # Broken: success on invalid input.
2620: continue
2621: else
2622: echo "$as_me: failed program was:" >&5
2623: cat conftest.$ac_ext >&5
2624: # Passes both tests.
2625: ac_preproc_ok=:
2626: break
1.45 petere 2627: fi
1.179 petere 2628: rm -f conftest.err conftest.$ac_ext
2629:
2630: done
2631: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2632: rm -f conftest.err conftest.$ac_ext
2633: if $ac_preproc_ok; then
2634: break
1.45 petere 2635: fi
2636:
1.179 petere 2637: done
2638: ac_cv_prog_CPP=$CPP
1.45 petere 2639:
1.1 petere 2640: fi
1.179 petere 2641: CPP=$ac_cv_prog_CPP
1.1 petere 2642: else
1.179 petere 2643: ac_cv_prog_CPP=$CPP
2644: fi
2645: echo "$as_me:$LINENO: result: $CPP" >&5
2646: echo "${ECHO_T}$CPP" >&6
2647: ac_preproc_ok=false
2648: for ac_c_preproc_warn_flag in '' yes
2649: do
2650: # Use a header file that comes with gcc, so configuring glibc
2651: # with a fresh cross-compiler works.
1.1 petere 2652: # On the NeXT, cc -E runs the code through the compiler's parser,
1.179 petere 2653: # not just through cpp. "Syntax error" is here to catch this case.
2654: cat >conftest.$ac_ext <<_ACEOF
2655: #line $LINENO "configure"
1.1 petere 2656: #include "confdefs.h"
2657: #include <assert.h>
1.179 petere 2658: Syntax error
2659: _ACEOF
2660: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2661: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662: ac_status=$?
2663: egrep -v '^ *\+' conftest.er1 >conftest.err
2664: rm -f conftest.er1
2665: cat conftest.err >&5
2666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667: (exit $ac_status); } >/dev/null; then
2668: if test -s conftest.err; then
2669: ac_cpp_err=$ac_c_preproc_warn_flag
2670: else
2671: ac_cpp_err=
2672: fi
1.1 petere 2673: else
1.179 petere 2674: ac_cpp_err=yes
2675: fi
2676: if test -z "$ac_cpp_err"; then
1.1 petere 2677: :
2678: else
1.179 petere 2679: echo "$as_me: failed program was:" >&5
1.1 petere 2680: cat conftest.$ac_ext >&5
1.179 petere 2681: # Broken: fails on valid input.
2682: continue
2683: fi
2684: rm -f conftest.err conftest.$ac_ext
2685:
2686: # OK, works on sane cases. Now check whether non-existent headers
2687: # can be detected and how.
2688: cat >conftest.$ac_ext <<_ACEOF
2689: #line $LINENO "configure"
2690: #include "confdefs.h"
2691: #include <ac_nonexistent.h>
2692: _ACEOF
2693: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2694: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2695: ac_status=$?
2696: egrep -v '^ *\+' conftest.er1 >conftest.err
2697: rm -f conftest.er1
2698: cat conftest.err >&5
2699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700: (exit $ac_status); } >/dev/null; then
2701: if test -s conftest.err; then
2702: ac_cpp_err=$ac_c_preproc_warn_flag
2703: else
2704: ac_cpp_err=
2705: fi
1.1 petere 2706: else
1.179 petere 2707: ac_cpp_err=yes
1.1 petere 2708: fi
1.179 petere 2709: if test -z "$ac_cpp_err"; then
2710: # Broken: success on invalid input.
2711: continue
1.1 petere 2712: else
1.179 petere 2713: echo "$as_me: failed program was:" >&5
2714: cat conftest.$ac_ext >&5
2715: # Passes both tests.
2716: ac_preproc_ok=:
2717: break
1.1 petere 2718: fi
1.179 petere 2719: rm -f conftest.err conftest.$ac_ext
1.1 petere 2720:
1.179 petere 2721: done
2722: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2723: rm -f conftest.err conftest.$ac_ext
2724: if $ac_preproc_ok; then
2725: :
1.1 petere 2726: else
1.179 petere 2727: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2728: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2729: { (exit 1); exit 1; }; }
1.1 petere 2730: fi
2731:
1.179 petere 2732: ac_ext=c
2733: ac_cpp='$CPP $CPPFLAGS'
2734: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 petere 2737:
2738:
1.5 petere 2739:
1.29 petere 2740: # Create compiler version string
1.24 petere 2741: if test x"$GCC" = x"yes" ; then
1.177 momjian 2742: cc_string="GCC `${CC} --version | sed q`"
1.1 petere 2743: else
1.24 petere 2744: cc_string=$CC
1.1 petere 2745: fi
1.179 petere 2746:
2747: cat >>confdefs.h <<_ACEOF
1.183 tgl 2748: #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
1.179 petere 2749: _ACEOF
1.24 petere 2750:
1.1 petere 2751:
2752:
1.31 petere 2753: #
2754: # Automatic dependency tracking
2755: #
1.179 petere 2756:
2757:
2758: # Check whether --enable-depend or --disable-depend was given.
2759: if test "${enable_depend+set}" = set; then
2760: enableval="$enable_depend"
2761:
2762: case $enableval in
1.43 petere 2763: yes)
2764: autodepend=yes
2765: ;;
2766: no)
2767: :
2768: ;;
2769: *)
1.179 petere 2770: { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2771: echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2772: { (exit 1); exit 1; }; }
1.43 petere 2773: ;;
1.179 petere 2774: esac
2775:
1.43 petere 2776: else
2777: enable_depend=no
1.31 petere 2778:
1.179 petere 2779: fi;
2780:
1.31 petere 2781:
2782:
2783:
1.43 petere 2784: #
2785: # Enable assert checks
2786: #
1.179 petere 2787:
2788:
2789: # Check whether --enable-cassert or --disable-cassert was given.
2790: if test "${enable_cassert+set}" = set; then
2791: enableval="$enable_cassert"
2792:
2793: case $enableval in
1.43 petere 2794: yes)
1.179 petere 2795:
2796: cat >>confdefs.h <<\_ACEOF
1.43 petere 2797: #define USE_ASSERT_CHECKING 1
1.179 petere 2798: _ACEOF
1.30 petere 2799:
1.43 petere 2800: ;;
2801: no)
2802: :
2803: ;;
2804: *)
1.179 petere 2805: { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2806: echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2807: { (exit 1); exit 1; }; }
1.43 petere 2808: ;;
1.179 petere 2809: esac
2810:
1.30 petere 2811: else
1.43 petere 2812: enable_cassert=no
2813:
1.179 petere 2814: fi;
2815:
1.30 petere 2816:
2817:
2818: #
2819: # Include directories
2820: #
2821: ac_save_IFS=$IFS
1.86 petere 2822: IFS="${IFS}:"
1.30 petere 2823: # SRCH_INC comes from the template file
2824: for dir in $with_includes $SRCH_INC; do
2825: if test -d "$dir"; then
2826: INCLUDES="$INCLUDES -I$dir"
2827: else
1.179 petere 2828: { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2829: echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
1.30 petere 2830: fi
2831: done
2832: IFS=$ac_save_IFS
2833:
2834:
2835:
2836: #
2837: # Library directories
2838: #
2839: ac_save_IFS=$IFS
1.86 petere 2840: IFS="${IFS}:"
1.30 petere 2841: # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2842: for dir in $LIBRARY_DIRS $SRCH_LIB; do
2843: if test -d "$dir"; then
1.70 petere 2844: LIBDIRS="$LIBDIRS -L$dir"
1.30 petere 2845: else
1.179 petere 2846: { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2847: echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
1.30 petere 2848: fi
2849: done
2850: IFS=$ac_save_IFS
2851:
2852:
1.44 petere 2853: #
2854: # Tcl/Tk
2855: #
1.179 petere 2856: echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857: echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2858:
2859:
2860:
2861: # Check whether --with-tcl or --without-tcl was given.
2862: if test "${with_tcl+set}" = set; then
2863: withval="$with_tcl"
2864:
2865: case $withval in
1.43 petere 2866: yes)
1.44 petere 2867: :
1.43 petere 2868: ;;
2869: no)
1.44 petere 2870: :
1.43 petere 2871: ;;
2872: *)
1.179 petere 2873: { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874: echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875: { (exit 1); exit 1; }; }
1.43 petere 2876: ;;
1.179 petere 2877: esac
2878:
1.3 tgl 2879: else
1.43 petere 2880: with_tcl=no
1.44 petere 2881:
1.179 petere 2882: fi;
2883:
2884: echo "$as_me:$LINENO: result: $with_tcl" >&5
2885: echo "${ECHO_T}$with_tcl" >&6
1.44 petere 2886:
2887:
2888: # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1.179 petere 2889: echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890: echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
1.44 petere 2891: if test "$with_tcl" = yes; then
1.179 petere 2892:
2893:
2894:
2895: # Check whether --with-tk or --without-tk was given.
2896: if test "${with_tk+set}" = set; then
2897: withval="$with_tk"
2898:
2899: case $withval in
1.44 petere 2900: yes)
2901: :
2902: ;;
2903: no)
2904: :
2905: ;;
2906: *)
1.179 petere 2907: { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908: echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909: { (exit 1); exit 1; }; }
1.44 petere 2910: ;;
1.179 petere 2911: esac
2912:
1.44 petere 2913: else
2914: with_tk=yes
1.3 tgl 2915:
1.179 petere 2916: fi;
2917:
1.44 petere 2918: else
2919: with_tk=no
2920: fi
1.179 petere 2921: echo "$as_me:$LINENO: result: $with_tk" >&5
2922: echo "${ECHO_T}$with_tk" >&6
1.3 tgl 2923:
1.30 petere 2924:
2925:
1.179 petere 2926: # We see if the path to the Tcl/Tk configuration scripts is specified.
1.43 petere 2927: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2928:
1.179 petere 2929:
2930:
2931:
2932: # Check whether --with-tclconfig or --without-tclconfig was given.
2933: if test "${with_tclconfig+set}" = set; then
2934: withval="$with_tclconfig"
2935:
2936: case $withval in
1.43 petere 2937: yes)
1.179 petere 2938: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940: { (exit 1); exit 1; }; }
1.43 petere 2941: ;;
2942: no)
1.179 petere 2943: { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944: echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945: { (exit 1); exit 1; }; }
2946: ;;
2947: *)
2948:
1.43 petere 2949: ;;
1.179 petere 2950: esac
2951:
2952: fi;
2953:
1.3 tgl 2954:
1.179 petere 2955: # We see if the path to the Tk configuration scripts is specified.
1.43 petere 2956: # This will override the use of tclsh to find the paths to search.
1.3 tgl 2957:
1.179 petere 2958:
2959:
2960:
2961: # Check whether --with-tkconfig or --without-tkconfig was given.
2962: if test "${with_tkconfig+set}" = set; then
2963: withval="$with_tkconfig"
2964:
2965: case $withval in
1.43 petere 2966: yes)
1.179 petere 2967: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969: { (exit 1); exit 1; }; }
1.43 petere 2970: ;;
2971: no)
1.179 petere 2972: { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973: echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974: { (exit 1); exit 1; }; }
2975: ;;
2976: *)
2977:
1.43 petere 2978: ;;
1.179 petere 2979: esac
2980:
2981: fi;
2982:
1.3 tgl 2983:
1.132 petere 2984: #
1.214 petere 2985: # Optionally build Perl modules (PL/Perl)
1.208 momjian 2986: #
2987: echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988: echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2989:
2990:
2991:
2992: # Check whether --with-perl or --without-perl was given.
2993: if test "${with_perl+set}" = set; then
2994: withval="$with_perl"
2995:
2996: case $withval in
2997: yes)
2998: :
2999: ;;
3000: no)
3001: :
3002: ;;
3003: *)
3004: { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005: echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006: { (exit 1); exit 1; }; }
3007: ;;
3008: esac
3009:
3010: else
3011: with_perl=no
3012:
3013: fi;
3014:
3015: echo "$as_me:$LINENO: result: $with_perl" >&5
3016: echo "${ECHO_T}$with_perl" >&6
3017:
3018:
3019: #
1.43 petere 3020: # Optionally build Python interface module
3021: #
1.179 petere 3022: echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023: echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3024:
3025:
3026:
3027: # Check whether --with-python or --without-python was given.
3028: if test "${with_python+set}" = set; then
3029: withval="$with_python"
3030:
3031: case $withval in
1.43 petere 3032: yes)
1.133 petere 3033: :
1.43 petere 3034: ;;
3035: no)
1.133 petere 3036: :
1.43 petere 3037: ;;
3038: *)
1.179 petere 3039: { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040: echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041: { (exit 1); exit 1; }; }
1.43 petere 3042: ;;
1.179 petere 3043: esac
3044:
1.4 petere 3045: else
1.43 petere 3046: with_python=no
1.133 petere 3047:
1.179 petere 3048: fi;
3049:
3050: echo "$as_me:$LINENO: result: $with_python" >&5
3051: echo "${ECHO_T}$with_python" >&6
1.3 tgl 3052:
3053:
1.112 peter 3054: #
3055: # Optionally build the Java/JDBC tools
3056: #
1.179 petere 3057: echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058: echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3059:
3060:
3061:
3062: # Check whether --with-java or --without-java was given.
3063: if test "${with_java+set}" = set; then
3064: withval="$with_java"
3065:
3066: case $withval in
1.112 peter 3067: yes)
1.179 petere 3068: echo "$as_me:$LINENO: result: yes" >&5
3069: echo "${ECHO_T}yes" >&6
1.137 petere 3070:
3071: for ac_prog in jakarta-ant ant ant.sh ant.bat
1.112 peter 3072: do
1.179 petere 3073: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.112 peter 3074: set dummy $ac_prog; ac_word=$2
1.179 petere 3075: echo "$as_me:$LINENO: checking for $ac_word" >&5
3076: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077: if test "${ac_cv_path_ANT+set}" = set; then
3078: echo $ECHO_N "(cached) $ECHO_C" >&6
1.112 peter 3079: else
1.179 petere 3080: case $ANT in
3081: [\\/]* | ?:[\\/]*)
1.112 peter 3082: ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3083: ;;
3084: *)
1.179 petere 3085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086: for as_dir in $PATH
3087: do
3088: IFS=$as_save_IFS
3089: test -z "$as_dir" && as_dir=.
3090: for ac_exec_ext in '' $ac_executable_extensions; do
3091: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092: ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094: break 2
3095: fi
3096: done
3097: done
3098:
1.112 peter 3099: ;;
3100: esac
3101: fi
1.179 petere 3102: ANT=$ac_cv_path_ANT
3103:
1.112 peter 3104: if test -n "$ANT"; then
1.179 petere 3105: echo "$as_me:$LINENO: result: $ANT" >&5
3106: echo "${ECHO_T}$ANT" >&6
1.112 peter 3107: else
1.179 petere 3108: echo "$as_me:$LINENO: result: no" >&5
3109: echo "${ECHO_T}no" >&6
1.112 peter 3110: fi
3111:
1.179 petere 3112: test -n "$ANT" && break
1.112 peter 3113: done
3114:
1.179 petere 3115:
3116: echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117: echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118: if test "${pgac_cv_prog_ant_works+set}" = set; then
3119: echo $ECHO_N "(cached) $ECHO_C" >&6
1.137 petere 3120: else
1.179 petere 3121:
1.137 petere 3122: cat > conftest.java << EOF
3123: public class conftest {
3124: int testmethod(int a, int b) {
3125: return a + b;
3126: }
3127: }
3128: EOF
3129:
3130: cat > conftest.xml << EOF
3131: <project name="conftest" default="conftest">
3132: <target name="conftest">
3133: <javac srcdir="." includes="conftest.java">
3134: </javac>
3135: </target>
3136: </project>
3137: EOF
3138:
3139: pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1.179 petere 3140: { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141: (eval $pgac_cmd) 2>&5
3142: ac_status=$?
3143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144: (exit $ac_status); }
1.137 petere 3145: pgac_save_status=$?
3146: if test $? = 0 && test -f ./conftest.class ; then
3147: pgac_cv_prog_ant_works=yes
3148: else
3149: echo "configure: failed java program was:" >&5
3150: cat conftest.java >&5
3151: echo "configure: failed build file was:" >&5
3152: cat conftest.xml >&5
3153: pgac_cv_prog_ant_works=no
3154: fi
3155:
3156: rm -f conftest* core core.* *.core
1.179 petere 3157:
1.137 petere 3158: fi
1.179 petere 3159: echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160: echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
1.137 petere 3161:
3162: if test "$pgac_cv_prog_ant_works" != yes; then
1.179 petere 3163: { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164: echo "$as_me: error: ant does not work" >&2;}
3165: { (exit 1); exit 1; }; }
1.137 petere 3166: fi
3167:
3168:
1.115 petere 3169: if test -z "$ANT"; then
1.217 momjian 3170: { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171: If you have Ant already installed, see config.log for details on the failure." >&5
3172: echo "$as_me: error: Ant is required to build Java components
3173: If you have Ant already installed, see config.log for details on the failure." >&2;}
1.179 petere 3174: { (exit 1); exit 1; }; }
1.115 petere 3175: fi
1.210 momjian 3176: if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177: { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178: echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179: { (exit 1); exit 1; }; }
3180: fi
1.112 peter 3181: ;;
3182: no)
1.179 petere 3183: echo "$as_me:$LINENO: result: no" >&5
3184: echo "${ECHO_T}no" >&6
1.112 peter 3185: ;;
3186: *)
1.179 petere 3187: { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188: echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189: { (exit 1); exit 1; }; }
1.112 peter 3190: ;;
1.179 petere 3191: esac
3192:
1.112 peter 3193: else
3194: with_java=no
1.179 petere 3195: echo "$as_me:$LINENO: result: no" >&5
3196: echo "${ECHO_T}no" >&6
3197: fi;
3198:
1.112 peter 3199:
1.3 tgl 3200:
1.12 petere 3201:
1.28 petere 3202: #
3203: # Kerberos 4
3204: #
1.179 petere 3205: echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206: echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3207:
3208:
3209:
3210: # Check whether --with-krb4 or --without-krb4 was given.
3211: if test "${with_krb4+set}" = set; then
3212: withval="$with_krb4"
3213:
3214: case $withval in
1.43 petere 3215: yes)
3216: krb4_prefix=/usr/athena
3217: ;;
3218: no)
3219: :
3220: ;;
3221: *)
3222: with_krb4=yes
3223: krb4_prefix=$withval
3224: ;;
1.179 petere 3225: esac
3226:
1.12 petere 3227: else
1.28 petere 3228: with_krb4=no
1.179 petere 3229: fi;
3230:
1.12 petere 3231:
1.43 petere 3232: if test "$with_krb4" = yes; then
1.179 petere 3233:
3234: echo "$as_me:$LINENO: result: yes" >&5
3235: echo "${ECHO_T}yes" >&6
3236:
3237: cat >>confdefs.h <<\_ACEOF
1.43 petere 3238: #define KRB4 1
1.179 petere 3239: _ACEOF
1.12 petere 3240:
1.28 petere 3241:
1.70 petere 3242: if test -d "$krb4_prefix/include"; then
3243: INCLUDES="$INCLUDES -I$krb4_prefix/include"
3244: fi
3245: if test -d "$krb4_prefix/lib"; then
3246: LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1.28 petere 3247: fi
1.43 petere 3248:
3249: krb_srvtab="/etc/srvtab"
1.37 petere 3250:
1.179 petere 3251: else
3252: echo "$as_me:$LINENO: result: no" >&5
3253: echo "${ECHO_T}no" >&6
1.12 petere 3254: fi
3255:
3256:
1.43 petere 3257:
3258:
3259:
1.28 petere 3260: #
3261: # Kerberos 5
3262: #
1.179 petere 3263: echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264: echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3265:
3266:
3267:
3268: # Check whether --with-krb5 or --without-krb5 was given.
3269: if test "${with_krb5+set}" = set; then
3270: withval="$with_krb5"
3271:
3272: case $withval in
1.43 petere 3273: yes)
3274: krb5_prefix=/usr/athena
3275: ;;
3276: no)
3277: :
3278: ;;
3279: *)
3280: with_krb5=yes
3281: krb5_prefix=$withval
3282: ;;
1.179 petere 3283: esac
3284:
1.12 petere 3285: else
1.28 petere 3286: with_krb5=no
1.179 petere 3287: fi;
3288:
1.12 petere 3289:
1.43 petere 3290: if test "$with_krb5" = yes; then
1.179 petere 3291:
3292: echo "$as_me:$LINENO: result: yes" >&5
3293: echo "${ECHO_T}yes" >&6
3294:
3295: cat >>confdefs.h <<\_ACEOF
1.43 petere 3296: #define KRB5 1
1.179 petere 3297: _ACEOF
1.12 petere 3298:
3299:
1.70 petere 3300: if test -d "$krb5_prefix/include"; then
3301: INCLUDES="$INCLUDES -I$krb5_prefix/include"
3302: fi
3303: if test -d "$krb5_prefix/lib"; then
3304: LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1.28 petere 3305: fi
1.12 petere 3306:
1.43 petere 3307: krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1.37 petere 3308:
1.179 petere 3309: else
3310: echo "$as_me:$LINENO: result: no" >&5
3311: echo "${ECHO_T}no" >&6
1.12 petere 3312: fi
3313:
3314:
1.43 petere 3315:
3316:
3317:
1.28 petere 3318: # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319: if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1.179 petere 3320: { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321: echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322: { (exit 1); exit 1; }; }
1.12 petere 3323: fi
3324:
3325:
3326:
3327:
1.28 petere 3328: #
3329: # Kerberos configuration parameters
3330: #
1.179 petere 3331:
3332:
3333:
3334: # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335: if test "${with_krb_srvnam+set}" = set; then
3336: withval="$with_krb_srvnam"
3337:
3338: case $withval in
1.43 petere 3339: yes)
1.179 petere 3340: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342: { (exit 1); exit 1; }; }
1.43 petere 3343: ;;
3344: no)
1.179 petere 3345: { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346: echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347: { (exit 1); exit 1; }; }
3348: ;;
3349: *)
3350:
1.43 petere 3351: ;;
1.179 petere 3352: esac
3353:
1.12 petere 3354: else
1.43 petere 3355: with_krb_srvnam="postgres"
1.179 petere 3356: fi;
3357:
3358:
3359: cat >>confdefs.h <<_ACEOF
1.43 petere 3360: #define PG_KRB_SRVNAM "$with_krb_srvnam"
1.179 petere 3361: _ACEOF
1.12 petere 3362:
3363:
1.28 petere 3364:
1.146 momjian 3365: #
3366: # PAM
3367: #
1.179 petere 3368: echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369: echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3370:
3371:
3372:
3373: # Check whether --with-pam or --without-pam was given.
3374: if test "${with_pam+set}" = set; then
3375: withval="$with_pam"
3376:
3377: case $withval in
1.146 momjian 3378: yes)
1.179 petere 3379:
3380: cat >>confdefs.h <<\_ACEOF
1.166 petere 3381: #define USE_PAM 1
1.179 petere 3382: _ACEOF
1.166 petere 3383:
1.146 momjian 3384: ;;
3385: no)
3386: :
3387: ;;
3388: *)
1.179 petere 3389: { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390: echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391: { (exit 1); exit 1; }; }
1.146 momjian 3392: ;;
1.179 petere 3393: esac
3394:
1.146 momjian 3395: else
3396: with_pam=no
3397:
1.179 petere 3398: fi;
3399:
3400: echo "$as_me:$LINENO: result: $with_pam" >&5
3401: echo "${ECHO_T}$with_pam" >&6
1.146 momjian 3402:
3403:
1.28 petere 3404:
3405: #
3406: # OpenSSL
3407: #
1.179 petere 3408:
3409:
3410:
3411: # Check whether --with-openssl or --without-openssl was given.
3412: if test "${with_openssl+set}" = set; then
3413: withval="$with_openssl"
3414:
3415: case $withval in
1.43 petere 3416: yes)
3417: openssl_prefix=/usr/local/ssl
3418: ;;
3419: no)
3420: :
3421: ;;
3422: *)
3423: with_openssl=yes
3424: openssl_prefix=$withval
3425: ;;
1.179 petere 3426: esac
3427:
1.28 petere 3428: else
3429: with_openssl=no
1.179 petere 3430: fi;
3431:
1.12 petere 3432:
1.43 petere 3433: if test "$with_openssl" = yes; then
1.179 petere 3434:
3435: echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436: echo "${ECHO_T}building with OpenSSL support" >&6
3437:
3438: cat >>confdefs.h <<\_ACEOF
1.43 petere 3439: #define USE_SSL 1
1.179 petere 3440: _ACEOF
1.12 petere 3441:
3442:
1.28 petere 3443: if test -d "${openssl_prefix}/include" ; then
3444: INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3445: fi
3446: if test -d "${openssl_prefix}/lib" ; then
1.70 petere 3447: LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
1.28 petere 3448: fi
1.43 petere 3449:
1.28 petere 3450: fi
3451:
3452:
1.43 petere 3453:
3454:
3455:
1.186 petere 3456: #
3457: # Readline
3458: #
3459:
3460:
3461:
3462: # Check whether --with-readline or --without-readline was given.
3463: if test "${with_readline+set}" = set; then
3464: withval="$with_readline"
3465:
3466: case $withval in
3467: yes)
3468: :
3469: ;;
3470: no)
3471: :
3472: ;;
3473: *)
3474: { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475: echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476: { (exit 1); exit 1; }; }
3477: ;;
3478: esac
3479:
3480: else
3481: with_readline=yes
3482:
3483: fi;
3484:
3485:
3486: #
3487: # Zlib
3488: #
3489:
3490:
3491:
3492: # Check whether --with-zlib or --without-zlib was given.
3493: if test "${with_zlib+set}" = set; then
3494: withval="$with_zlib"
3495:
3496: case $withval in
3497: yes)
3498: :
3499: ;;
3500: no)
3501: :
3502: ;;
3503: *)
3504: { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505: echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506: { (exit 1); exit 1; }; }
3507: ;;
3508: esac
3509:
3510: else
3511: with_zlib=yes
3512:
3513: fi;
3514:
3515:
3516:
1.12 petere 3517:
1.30 petere 3518: # Assume system is ELF if it predefines __ELF__ as 1,
3519: # otherwise believe host_os based default.
3520: case $host_os in
1.134 momjian 3521: freebsd1*|freebsd2*) elf=no;;
3522: freebsd3*|freebsd4*) elf=yes;;
1.30 petere 3523: esac
1.1 petere 3524:
1.179 petere 3525:
1.205 scrappy 3526: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 3527: #line $LINENO "configure"
3528: #include "confdefs.h"
1.205 scrappy 3529: #if __ELF__
3530: yes
3531: #endif
3532:
1.179 petere 3533: _ACEOF
1.205 scrappy 3534: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535: egrep "yes" >/dev/null 2>&1; then
3536: ELF_SYS=true
1.179 petere 3537: else
1.205 scrappy 3538: if test "X$elf" = "Xyes" ; then
3539: ELF_SYS=true
1.5 petere 3540: else
1.205 scrappy 3541: ELF_SYS=
1.179 petere 3542: fi
1.1 petere 3543: fi
1.205 scrappy 3544: rm -f conftest*
1.179 petere 3545:
1.43 petere 3546:
1.5 petere 3547:
3548:
1.43 petere 3549:
1.30 petere 3550: CPPFLAGS="$CPPFLAGS $INCLUDES"
1.70 petere 3551: LDFLAGS="$LDFLAGS $LIBDIRS"
1.30 petere 3552:
1.179 petere 3553: { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3554: echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3555: { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3556: echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
1.30 petere 3557:
3558:
1.179 petere 3559: for ac_prog in gawk mawk nawk awk
1.2 petere 3560: do
1.179 petere 3561: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 3562: set dummy $ac_prog; ac_word=$2
1.179 petere 3563: echo "$as_me:$LINENO: checking for $ac_word" >&5
3564: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565: if test "${ac_cv_prog_AWK+set}" = set; then
3566: echo $ECHO_N "(cached) $ECHO_C" >&6
1.2 petere 3567: else
3568: if test -n "$AWK"; then
3569: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3570: else
1.179 petere 3571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572: for as_dir in $PATH
3573: do
3574: IFS=$as_save_IFS
3575: test -z "$as_dir" && as_dir=.
3576: for ac_exec_ext in '' $ac_executable_extensions; do
3577: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578: ac_cv_prog_AWK="$ac_prog"
3579: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580: break 2
3581: fi
3582: done
3583: done
3584:
3585: fi
3586: fi
3587: AWK=$ac_cv_prog_AWK
3588: if test -n "$AWK"; then
3589: echo "$as_me:$LINENO: result: $AWK" >&5
3590: echo "${ECHO_T}$AWK" >&6
1.2 petere 3591: else
1.179 petere 3592: echo "$as_me:$LINENO: result: no" >&5
3593: echo "${ECHO_T}no" >&6
1.2 petere 3594: fi
3595:
1.179 petere 3596: test -n "$AWK" && break
1.2 petere 3597: done
3598:
1.179 petere 3599: echo "$as_me:$LINENO: checking for flex" >&5
3600: echo $ECHO_N "checking for flex... $ECHO_C" >&6
3601: if test "${pgac_cv_path_flex+set}" = set; then
3602: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3603: else
1.40 petere 3604: # Let the user override the test
3605: if test -n "$FLEX"; then
3606: pgac_cv_path_flex=$FLEX
3607: else
3608: pgac_save_IFS=$IFS
3609: IFS=:
3610: for pgac_dir in $PATH; do
3611: if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3612: pgac_dir=`pwd`
1.1 petere 3613: fi
1.40 petere 3614: for pgac_prog in flex lex; do
3615: pgac_candidate="$pgac_dir/$pgac_prog"
3616: if test -f "$pgac_candidate" \
1.72 petere 3617: && $pgac_candidate --version </dev/null >/dev/null 2>&1
1.40 petere 3618: then
3619: echo '%%' > conftest.l
3620: if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3621: if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3622: pgac_broken_flex=$pgac_candidate
3623: continue
3624: fi
3625:
3626: pgac_cv_path_flex=$pgac_candidate
3627: break 2
3628: fi
3629: fi
3630: done
1.1 petere 3631: done
1.40 petere 3632: IFS=$pgac_save_IFS
3633: rm -f conftest.l
3634: : ${pgac_cv_path_flex=no}
1.1 petere 3635: fi
1.40 petere 3636:
1.1 petere 3637: fi
1.179 petere 3638: echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3639: echo "${ECHO_T}$pgac_cv_path_flex" >&6
1.40 petere 3640: if test x"$pgac_cv_path_flex" = x"no"; then
3641: if test -n "$pgac_broken_flex"; then
1.179 petere 3642: { echo "$as_me:$LINENO: WARNING:
1.105 petere 3643: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
1.179 petere 3644: *** should get version 2.5.4 or later." >&5
3645: echo "$as_me: WARNING:
3646: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3647: *** should get version 2.5.4 or later." >&2;}
1.40 petere 3648: fi
1.1 petere 3649:
1.179 petere 3650: { echo "$as_me:$LINENO: WARNING:
3651: *** Without Flex you will not be able to build PostgreSQL from CVS or
3652: *** change any of the scanner definition files. You can obtain Flex from
3653: *** a GNU mirror site. (If you are using the official distribution of
3654: *** PostgreSQL then you do not need to worry about this because the Flex
3655: *** output is pre-generated.)" >&5
3656: echo "$as_me: WARNING:
1.105 petere 3657: *** Without Flex you will not be able to build PostgreSQL from CVS or
3658: *** change any of the scanner definition files. You can obtain Flex from
3659: *** a GNU mirror site. (If you are using the official distribution of
3660: *** PostgreSQL then you do not need to worry about this because the Flex
1.179 petere 3661: *** output is pre-generated.)" >&2;}
1.1 petere 3662: fi
3663:
1.40 petere 3664: if test x"$pgac_cv_path_flex" = x"no"; then
3665: FLEX=
1.1 petere 3666: else
1.40 petere 3667: FLEX=$pgac_cv_path_flex
1.1 petere 3668: fi
3669:
3670:
1.40 petere 3671:
3672:
1.179 petere 3673: echo "$as_me:$LINENO: checking whether ln -s works" >&5
3674: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3675: LN_S=$as_ln_s
3676: if test "$LN_S" = "ln -s"; then
3677: echo "$as_me:$LINENO: result: yes" >&5
3678: echo "${ECHO_T}yes" >&6
1.1 petere 3679: else
1.179 petere 3680: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3681: echo "${ECHO_T}no, using $LN_S" >&6
1.1 petere 3682: fi
1.179 petere 3683:
1.1 petere 3684:
1.64 petere 3685: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3686: if test "${with_gnu_ld+set}" = set; then
3687: withval="$with_gnu_ld"
3688: test "$withval" = no || with_gnu_ld=yes
3689: else
3690: with_gnu_ld=no
1.179 petere 3691: fi;
1.64 petere 3692: ac_prog=ld
1.179 petere 3693: if test "$GCC" = yes; then
1.64 petere 3694: # Check if gcc -print-prog-name=ld gives a path.
1.179 petere 3695: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3696: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1.64 petere 3697: case $host in
3698: *-*-mingw*)
3699: # gcc leaves a trailing carriage return which upsets mingw
3700: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3701: *)
3702: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3703: esac
3704: case "$ac_prog" in
3705: # Accept absolute paths.
3706: [\\/]* | [A-Za-z]:[\\/]*)
3707: re_direlt='/[^/][^/]*/\.\./'
3708: # Canonicalize the path of ld
3709: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3710: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3711: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3712: done
3713: test -z "$LD" && LD="$ac_prog"
3714: ;;
3715: "")
3716: # If it fails, then pretend we aren't using GCC.
3717: ac_prog=ld
3718: ;;
3719: *)
3720: # If it is relative, then search for the first ld in PATH.
3721: with_gnu_ld=unknown
3722: ;;
3723: esac
3724: elif test "$with_gnu_ld" = yes; then
1.179 petere 3725: echo "$as_me:$LINENO: checking for GNU ld" >&5
3726: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.64 petere 3727: else
1.179 petere 3728: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3729: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.64 petere 3730: fi
1.179 petere 3731: if test "${ac_cv_path_LD+set}" = set; then
3732: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 3733: else
3734: if test -z "$LD"; then
3735: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3736: for ac_dir in $PATH; do
3737: test -z "$ac_dir" && ac_dir=.
3738: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3739: ac_cv_path_LD="$ac_dir/$ac_prog"
3740: # Check to see if the program is GNU ld. I'd rather use --version,
3741: # but apparently some GNU ld's only accept -v.
3742: # Break only if it was the GNU/non-GNU ld that we prefer.
3743: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3744: test "$with_gnu_ld" != no && break
3745: else
3746: test "$with_gnu_ld" != yes && break
3747: fi
3748: fi
3749: done
3750: IFS="$ac_save_ifs"
3751: else
3752: ac_cv_path_LD="$LD" # Let the user override the test with a path.
3753: fi
3754: fi
3755:
3756: LD="$ac_cv_path_LD"
3757: if test -n "$LD"; then
1.179 petere 3758: echo "$as_me:$LINENO: result: $LD" >&5
3759: echo "${ECHO_T}$LD" >&6
1.64 petere 3760: else
1.179 petere 3761: echo "$as_me:$LINENO: result: no" >&5
3762: echo "${ECHO_T}no" >&6
1.64 petere 3763: fi
1.179 petere 3764: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3765: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3766: { (exit 1); exit 1; }; }
3767: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3768: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3769: if test "${ac_cv_prog_gnu_ld+set}" = set; then
3770: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 petere 3771: else
3772: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3773: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3774: ac_cv_prog_gnu_ld=yes
3775: else
3776: ac_cv_prog_gnu_ld=no
3777: fi
3778: fi
1.179 petere 3779: echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3780: echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
1.64 petere 3781: with_gnu_ld=$ac_cv_prog_gnu_ld
3782:
3783:
1.69 petere 3784:
3785:
1.139 momjian 3786: case $host_os in sysv5*)
1.179 petere 3787: echo "$as_me:$LINENO: checking whether ld -R works" >&5
3788: echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3789: if test "${pgac_cv_prog_ld_R+set}" = set; then
3790: echo $ECHO_N "(cached) $ECHO_C" >&6
1.83 petere 3791: else
1.179 petere 3792:
1.83 petere 3793: pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
1.179 petere 3794: cat >conftest.$ac_ext <<_ACEOF
3795: #line $LINENO "configure"
1.83 petere 3796: #include "confdefs.h"
3797:
1.179 petere 3798: #ifdef F77_DUMMY_MAIN
3799: # ifdef __cplusplus
3800: extern "C"
3801: # endif
3802: int F77_DUMMY_MAIN() { return 1; }
3803: #endif
3804: int
3805: main ()
3806: {
1.83 petere 3807:
1.179 petere 3808: ;
3809: return 0;
3810: }
3811: _ACEOF
3812: rm -f conftest.$ac_objext conftest$ac_exeext
3813: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814: (eval $ac_link) 2>&5
3815: ac_status=$?
3816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817: (exit $ac_status); } &&
3818: { ac_try='test -s conftest$ac_exeext'
3819: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820: (eval $ac_try) 2>&5
3821: ac_status=$?
3822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823: (exit $ac_status); }; }; then
1.83 petere 3824: pgac_cv_prog_ld_R=yes
3825: else
1.179 petere 3826: echo "$as_me: failed program was:" >&5
3827: cat conftest.$ac_ext >&5
3828: pgac_cv_prog_ld_R=no
1.83 petere 3829: fi
1.179 petere 3830: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.83 petere 3831: LDFLAGS=$pgac_save_LDFLAGS
1.179 petere 3832:
1.83 petere 3833: fi
1.179 petere 3834: echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3835: echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3836: ld_R_works=$pgac_cv_prog_ld_R
1.83 petere 3837:
3838: esac
1.179 petere 3839: if test -n "$ac_tool_prefix"; then
3840: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3841: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3842: echo "$as_me:$LINENO: checking for $ac_word" >&5
3843: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3844: if test "${ac_cv_prog_RANLIB+set}" = set; then
3845: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3846: else
3847: if test -n "$RANLIB"; then
3848: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3849: else
1.179 petere 3850: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851: for as_dir in $PATH
3852: do
3853: IFS=$as_save_IFS
3854: test -z "$as_dir" && as_dir=.
3855: for ac_exec_ext in '' $ac_executable_extensions; do
3856: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3858: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859: break 2
3860: fi
3861: done
3862: done
3863:
1.1 petere 3864: fi
3865: fi
1.179 petere 3866: RANLIB=$ac_cv_prog_RANLIB
1.1 petere 3867: if test -n "$RANLIB"; then
1.179 petere 3868: echo "$as_me:$LINENO: result: $RANLIB" >&5
3869: echo "${ECHO_T}$RANLIB" >&6
3870: else
3871: echo "$as_me:$LINENO: result: no" >&5
3872: echo "${ECHO_T}no" >&6
3873: fi
3874:
3875: fi
3876: if test -z "$ac_cv_prog_RANLIB"; then
3877: ac_ct_RANLIB=$RANLIB
3878: # Extract the first word of "ranlib", so it can be a program name with args.
3879: set dummy ranlib; ac_word=$2
3880: echo "$as_me:$LINENO: checking for $ac_word" >&5
3881: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3884: else
1.179 petere 3885: if test -n "$ac_ct_RANLIB"; then
3886: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3887: else
3888: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889: for as_dir in $PATH
3890: do
3891: IFS=$as_save_IFS
3892: test -z "$as_dir" && as_dir=.
3893: for ac_exec_ext in '' $ac_executable_extensions; do
3894: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895: ac_cv_prog_ac_ct_RANLIB="ranlib"
3896: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897: break 2
3898: fi
3899: done
3900: done
3901:
3902: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3903: fi
3904: fi
3905: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3906: if test -n "$ac_ct_RANLIB"; then
3907: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3908: echo "${ECHO_T}$ac_ct_RANLIB" >&6
3909: else
3910: echo "$as_me:$LINENO: result: no" >&5
3911: echo "${ECHO_T}no" >&6
3912: fi
3913:
3914: RANLIB=$ac_ct_RANLIB
3915: else
3916: RANLIB="$ac_cv_prog_RANLIB"
1.1 petere 3917: fi
3918:
1.60 petere 3919: for ac_prog in lorder
3920: do
1.179 petere 3921: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.60 petere 3922: set dummy $ac_prog; ac_word=$2
1.179 petere 3923: echo "$as_me:$LINENO: checking for $ac_word" >&5
3924: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925: if test "${ac_cv_prog_LORDER+set}" = set; then
3926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.60 petere 3927: else
3928: if test -n "$LORDER"; then
3929: ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3930: else
1.179 petere 3931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932: for as_dir in $PATH
3933: do
3934: IFS=$as_save_IFS
3935: test -z "$as_dir" && as_dir=.
3936: for ac_exec_ext in '' $ac_executable_extensions; do
3937: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938: ac_cv_prog_LORDER="$ac_prog"
3939: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940: break 2
3941: fi
3942: done
3943: done
3944:
1.60 petere 3945: fi
3946: fi
1.179 petere 3947: LORDER=$ac_cv_prog_LORDER
1.60 petere 3948: if test -n "$LORDER"; then
1.179 petere 3949: echo "$as_me:$LINENO: result: $LORDER" >&5
3950: echo "${ECHO_T}$LORDER" >&6
1.60 petere 3951: else
1.179 petere 3952: echo "$as_me:$LINENO: result: no" >&5
3953: echo "${ECHO_T}no" >&6
1.60 petere 3954: fi
3955:
1.179 petere 3956: test -n "$LORDER" && break
1.60 petere 3957: done
3958:
1.1 petere 3959: # Extract the first word of "tar", so it can be a program name with args.
3960: set dummy tar; ac_word=$2
1.179 petere 3961: echo "$as_me:$LINENO: checking for $ac_word" >&5
3962: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963: if test "${ac_cv_path_TAR+set}" = set; then
3964: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 3965: else
1.179 petere 3966: case $TAR in
3967: [\\/]* | ?:[\\/]*)
1.58 petere 3968: ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1.1 petere 3969: ;;
3970: *)
1.179 petere 3971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972: for as_dir in $PATH
3973: do
3974: IFS=$as_save_IFS
3975: test -z "$as_dir" && as_dir=.
3976: for ac_exec_ext in '' $ac_executable_extensions; do
3977: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978: ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3979: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980: break 2
3981: fi
3982: done
3983: done
3984:
1.1 petere 3985: ;;
3986: esac
3987: fi
1.179 petere 3988: TAR=$ac_cv_path_TAR
3989:
1.58 petere 3990: if test -n "$TAR"; then
1.179 petere 3991: echo "$as_me:$LINENO: result: $TAR" >&5
3992: echo "${ECHO_T}$TAR" >&6
1.1 petere 3993: else
1.179 petere 3994: echo "$as_me:$LINENO: result: no" >&5
3995: echo "${ECHO_T}no" >&6
1.1 petere 3996: fi
3997:
1.105 petere 3998:
1.185 petere 3999: if test -n "$ac_tool_prefix"; then
4000: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4001: set dummy ${ac_tool_prefix}strip; ac_word=$2
4002: echo "$as_me:$LINENO: checking for $ac_word" >&5
4003: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004: if test "${ac_cv_prog_STRIP+set}" = set; then
4005: echo $ECHO_N "(cached) $ECHO_C" >&6
4006: else
4007: if test -n "$STRIP"; then
4008: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4009: else
4010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011: for as_dir in $PATH
4012: do
4013: IFS=$as_save_IFS
4014: test -z "$as_dir" && as_dir=.
4015: for ac_exec_ext in '' $ac_executable_extensions; do
4016: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4018: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019: break 2
4020: fi
4021: done
4022: done
4023:
4024: fi
4025: fi
4026: STRIP=$ac_cv_prog_STRIP
4027: if test -n "$STRIP"; then
4028: echo "$as_me:$LINENO: result: $STRIP" >&5
4029: echo "${ECHO_T}$STRIP" >&6
4030: else
4031: echo "$as_me:$LINENO: result: no" >&5
4032: echo "${ECHO_T}no" >&6
4033: fi
4034:
4035: fi
4036: if test -z "$ac_cv_prog_STRIP"; then
4037: ac_ct_STRIP=$STRIP
4038: # Extract the first word of "strip", so it can be a program name with args.
4039: set dummy strip; ac_word=$2
4040: echo "$as_me:$LINENO: checking for $ac_word" >&5
4041: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4043: echo $ECHO_N "(cached) $ECHO_C" >&6
4044: else
4045: if test -n "$ac_ct_STRIP"; then
4046: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4047: else
4048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049: for as_dir in $PATH
4050: do
4051: IFS=$as_save_IFS
4052: test -z "$as_dir" && as_dir=.
4053: for ac_exec_ext in '' $ac_executable_extensions; do
4054: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055: ac_cv_prog_ac_ct_STRIP="strip"
4056: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057: break 2
4058: fi
4059: done
4060: done
4061:
4062: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4063: fi
4064: fi
4065: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4066: if test -n "$ac_ct_STRIP"; then
4067: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4068: echo "${ECHO_T}$ac_ct_STRIP" >&6
4069: else
4070: echo "$as_me:$LINENO: result: no" >&5
4071: echo "${ECHO_T}no" >&6
4072: fi
4073:
4074: STRIP=$ac_ct_STRIP
4075: else
4076: STRIP="$ac_cv_prog_STRIP"
4077: fi
4078:
4079:
4080: echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4081: echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4082: if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4083: STRIP_STATIC_LIB="$STRIP -x"
4084: STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4085: echo "$as_me:$LINENO: result: yes" >&5
4086: echo "${ECHO_T}yes" >&6
4087: else
4088: STRIP_STATIC_LIB=:
4089: STRIP_SHARED_LIB=:
4090: echo "$as_me:$LINENO: result: no" >&5
4091: echo "${ECHO_T}no" >&6
4092: fi
4093:
4094:
4095:
4096:
1.105 petere 4097: for ac_prog in 'bison -y'
1.2 petere 4098: do
1.179 petere 4099: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2 petere 4100: set dummy $ac_prog; ac_word=$2
1.179 petere 4101: echo "$as_me:$LINENO: checking for $ac_word" >&5
4102: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4103: if test "${ac_cv_prog_YACC+set}" = set; then
4104: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4105: else
1.2 petere 4106: if test -n "$YACC"; then
4107: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4108: else
1.179 petere 4109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110: for as_dir in $PATH
4111: do
4112: IFS=$as_save_IFS
4113: test -z "$as_dir" && as_dir=.
4114: for ac_exec_ext in '' $ac_executable_extensions; do
4115: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116: ac_cv_prog_YACC="$ac_prog"
4117: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118: break 2
4119: fi
4120: done
4121: done
4122:
1.1 petere 4123: fi
1.2 petere 4124: fi
1.179 petere 4125: YACC=$ac_cv_prog_YACC
1.2 petere 4126: if test -n "$YACC"; then
1.179 petere 4127: echo "$as_me:$LINENO: result: $YACC" >&5
4128: echo "${ECHO_T}$YACC" >&6
1.1 petere 4129: else
1.179 petere 4130: echo "$as_me:$LINENO: result: no" >&5
4131: echo "${ECHO_T}no" >&6
1.1 petere 4132: fi
4133:
1.179 petere 4134: test -n "$YACC" && break
1.2 petere 4135: done
1.105 petere 4136:
4137: if test -z "$YACC"; then
1.179 petere 4138: { echo "$as_me:$LINENO: WARNING:
4139: *** Without Bison you will not be able to build PostgreSQL from CVS or
4140: *** change any of the parser definition files. You can obtain Bison from
4141: *** a GNU mirror site. (If you are using the official distribution of
4142: *** PostgreSQL then you do not need to worry about this because the Bison
4143: *** output is pre-generated.) To use a different yacc program (possible,
4144: *** but not recommended), set the environment variable YACC before running
4145: *** 'configure'." >&5
4146: echo "$as_me: WARNING:
1.105 petere 4147: *** Without Bison you will not be able to build PostgreSQL from CVS or
4148: *** change any of the parser definition files. You can obtain Bison from
4149: *** a GNU mirror site. (If you are using the official distribution of
4150: *** PostgreSQL then you do not need to worry about this because the Bison
4151: *** output is pre-generated.) To use a different yacc program (possible,
4152: *** but not recommended), set the environment variable YACC before running
1.179 petere 4153: *** 'configure'." >&2;}
1.105 petere 4154: fi
1.1 petere 4155:
4156:
1.208 momjian 4157: # Extract the first word of "perl", so it can be a program name with args.
4158: set dummy perl; ac_word=$2
4159: echo "$as_me:$LINENO: checking for $ac_word" >&5
4160: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161: if test "${ac_cv_path_PERL+set}" = set; then
4162: echo $ECHO_N "(cached) $ECHO_C" >&6
4163: else
4164: case $PERL in
4165: [\\/]* | ?:[\\/]*)
4166: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4167: ;;
4168: *)
4169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170: for as_dir in $PATH
4171: do
4172: IFS=$as_save_IFS
4173: test -z "$as_dir" && as_dir=.
4174: for ac_exec_ext in '' $ac_executable_extensions; do
4175: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4177: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178: break 2
4179: fi
4180: done
4181: done
4182:
4183: ;;
4184: esac
4185: fi
4186: PERL=$ac_cv_path_PERL
4187:
4188: if test -n "$PERL"; then
4189: echo "$as_me:$LINENO: result: $PERL" >&5
4190: echo "${ECHO_T}$PERL" >&6
4191: else
4192: echo "$as_me:$LINENO: result: no" >&5
4193: echo "${ECHO_T}no" >&6
4194: fi
4195:
4196: if test "$with_perl" = yes; then
4197:
4198: echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4199: echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4200: perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4201: echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4202: echo "${ECHO_T}$perl_archlibexp" >&6
4203: echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4204: echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4205: perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4206: echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4207: echo "${ECHO_T}$perl_privlibexp" >&6
4208: echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4209: echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4210: perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4211: echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4212: echo "${ECHO_T}$perl_useshrplib" >&6
4213:
4214: echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4215: echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4216: pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4217: pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4218: perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4219: echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4220: echo "${ECHO_T}$perl_embed_ldflags" >&6
4221: fi
4222:
1.133 petere 4223: if test "$with_python" = yes; then
4224: # Extract the first word of "python", so it can be a program name with args.
4225: set dummy python; ac_word=$2
1.179 petere 4226: echo "$as_me:$LINENO: checking for $ac_word" >&5
4227: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228: if test "${ac_cv_path_PYTHON+set}" = set; then
4229: echo $ECHO_N "(cached) $ECHO_C" >&6
1.133 petere 4230: else
1.179 petere 4231: case $PYTHON in
4232: [\\/]* | ?:[\\/]*)
1.133 petere 4233: ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4234: ;;
4235: *)
1.179 petere 4236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237: for as_dir in $PATH
4238: do
4239: IFS=$as_save_IFS
4240: test -z "$as_dir" && as_dir=.
4241: for ac_exec_ext in '' $ac_executable_extensions; do
4242: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243: ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4244: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245: break 2
4246: fi
4247: done
4248: done
4249:
1.133 petere 4250: ;;
4251: esac
4252: fi
1.179 petere 4253: PYTHON=$ac_cv_path_PYTHON
4254:
1.133 petere 4255: if test -n "$PYTHON"; then
1.179 petere 4256: echo "$as_me:$LINENO: result: $PYTHON" >&5
4257: echo "${ECHO_T}$PYTHON" >&6
1.133 petere 4258: else
1.179 petere 4259: echo "$as_me:$LINENO: result: no" >&5
4260: echo "${ECHO_T}no" >&6
1.133 petere 4261: fi
4262:
4263: if test x"$PYTHON" = x""; then
1.179 petere 4264: { { echo "$as_me:$LINENO: error: Python not found" >&5
4265: echo "$as_me: error: Python not found" >&2;}
4266: { (exit 1); exit 1; }; }
1.133 petere 4267: fi
4268:
1.179 petere 4269:
4270: echo "$as_me:$LINENO: checking Python installation directories" >&5
4271: echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
1.133 petere 4272: python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4273: python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4274: python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4275: python_configdir="${python_execprefix}/lib/python${python_version}/config"
1.138 petere 4276: python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4277: python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4278: python_includespec="-I${python_prefix}/include/python${python_version}"
4279: if test "$python_prefix" != "$python_execprefix"; then
4280: python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4281: fi
1.133 petere 4282:
1.138 petere 4283: # This should be enough of a message.
4284: if test "$python_prefix" != "$python_execprefix"; then
1.179 petere 4285: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4286: echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
1.133 petere 4287: else
1.179 petere 4288: echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4289: echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
1.133 petere 4290: fi
4291:
4292:
1.138 petere 4293:
1.179 petere 4294:
4295:
4296: echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4297: echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
1.133 petere 4298:
1.214 petere 4299: if test ! -f "$python_configdir/Makefile"; then
4300: echo "$as_me:$LINENO: result: no" >&5
4301: echo "${ECHO_T}no" >&6
4302: { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4303: echo "$as_me: error: Python Makefile not found" >&2;}
4304: { (exit 1); exit 1; }; }
4305: fi
4306:
1.133 petere 4307: _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4308: _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4309: _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4310: _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4311: _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4312:
4313: pgac_tab=" " # tab character
4314: 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"`
4315:
1.179 petere 4316: echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4317: echo "${ECHO_T}${python_libspec}" >&6
1.133 petere 4318:
4319:
4320: fi
4321:
1.5 petere 4322:
1.192 tgl 4323: ##
1.29 petere 4324: ## Libraries
4325: ##
4326:
1.1 petere 4327: if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4328: then
1.179 petere 4329:
4330: echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4331: echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4332: if test "${ac_cv_lib_bsd_main+set}" = set; then
4333: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4334: else
1.179 petere 4335: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4336: LIBS="-lbsd $LIBS"
1.179 petere 4337: cat >conftest.$ac_ext <<_ACEOF
4338: #line $LINENO "configure"
1.1 petere 4339: #include "confdefs.h"
4340:
4341:
1.179 petere 4342: #ifdef F77_DUMMY_MAIN
4343: # ifdef __cplusplus
4344: extern "C"
4345: # endif
4346: int F77_DUMMY_MAIN() { return 1; }
4347: #endif
4348: int
4349: main ()
4350: {
4351: main ();
4352: ;
4353: return 0;
4354: }
4355: _ACEOF
4356: rm -f conftest.$ac_objext conftest$ac_exeext
4357: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358: (eval $ac_link) 2>&5
4359: ac_status=$?
4360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361: (exit $ac_status); } &&
4362: { ac_try='test -s conftest$ac_exeext'
4363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364: (eval $ac_try) 2>&5
4365: ac_status=$?
4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367: (exit $ac_status); }; }; then
4368: ac_cv_lib_bsd_main=yes
4369: else
4370: echo "$as_me: failed program was:" >&5
4371: cat conftest.$ac_ext >&5
4372: ac_cv_lib_bsd_main=no
4373: fi
4374: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4375: LIBS=$ac_check_lib_save_LIBS
4376: fi
4377: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4378: echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4379: if test $ac_cv_lib_bsd_main = yes; then
4380: cat >>confdefs.h <<_ACEOF
4381: #define HAVE_LIBBSD 1
4382: _ACEOF
1.1 petere 4383:
4384: LIBS="-lbsd $LIBS"
4385:
4386: fi
4387:
4388: fi
1.179 petere 4389:
4390: echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4391: echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4392: if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4393: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4394: else
1.179 petere 4395: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4396: LIBS="-lutil $LIBS"
1.179 petere 4397: cat >conftest.$ac_ext <<_ACEOF
4398: #line $LINENO "configure"
1.1 petere 4399: #include "confdefs.h"
1.179 petere 4400:
1.21 petere 4401: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 4402: #ifdef __cplusplus
4403: extern "C"
4404: #endif
1.21 petere 4405: /* We use char because int might match the return type of a gcc2
1.179 petere 4406: builtin and then its argument prototype would still apply. */
4407: char setproctitle ();
4408: #ifdef F77_DUMMY_MAIN
4409: # ifdef __cplusplus
4410: extern "C"
4411: # endif
4412: int F77_DUMMY_MAIN() { return 1; }
4413: #endif
4414: int
4415: main ()
4416: {
4417: setproctitle ();
4418: ;
4419: return 0;
4420: }
4421: _ACEOF
4422: rm -f conftest.$ac_objext conftest$ac_exeext
4423: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4424: (eval $ac_link) 2>&5
4425: ac_status=$?
4426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427: (exit $ac_status); } &&
4428: { ac_try='test -s conftest$ac_exeext'
4429: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430: (eval $ac_try) 2>&5
4431: ac_status=$?
4432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433: (exit $ac_status); }; }; then
4434: ac_cv_lib_util_setproctitle=yes
4435: else
4436: echo "$as_me: failed program was:" >&5
4437: cat conftest.$ac_ext >&5
4438: ac_cv_lib_util_setproctitle=no
4439: fi
4440: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441: LIBS=$ac_check_lib_save_LIBS
4442: fi
4443: echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4444: echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4445: if test $ac_cv_lib_util_setproctitle = yes; then
4446: cat >>confdefs.h <<_ACEOF
4447: #define HAVE_LIBUTIL 1
4448: _ACEOF
1.1 petere 4449:
1.179 petere 4450: LIBS="-lutil $LIBS"
1.1 petere 4451:
4452: fi
4453:
4454:
1.179 petere 4455: echo "$as_me:$LINENO: checking for main in -lm" >&5
4456: echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4457: if test "${ac_cv_lib_m_main+set}" = set; then
4458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4459: else
1.179 petere 4460: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4461: LIBS="-lm $LIBS"
1.179 petere 4462: cat >conftest.$ac_ext <<_ACEOF
4463: #line $LINENO "configure"
1.1 petere 4464: #include "confdefs.h"
4465:
4466:
1.179 petere 4467: #ifdef F77_DUMMY_MAIN
4468: # ifdef __cplusplus
4469: extern "C"
4470: # endif
4471: int F77_DUMMY_MAIN() { return 1; }
4472: #endif
4473: int
4474: main ()
4475: {
4476: main ();
4477: ;
4478: return 0;
4479: }
4480: _ACEOF
4481: rm -f conftest.$ac_objext conftest$ac_exeext
4482: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483: (eval $ac_link) 2>&5
4484: ac_status=$?
4485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486: (exit $ac_status); } &&
4487: { ac_try='test -s conftest$ac_exeext'
4488: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489: (eval $ac_try) 2>&5
4490: ac_status=$?
4491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492: (exit $ac_status); }; }; then
4493: ac_cv_lib_m_main=yes
4494: else
4495: echo "$as_me: failed program was:" >&5
4496: cat conftest.$ac_ext >&5
4497: ac_cv_lib_m_main=no
4498: fi
4499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4500: LIBS=$ac_check_lib_save_LIBS
4501: fi
4502: echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4503: echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4504: if test $ac_cv_lib_m_main = yes; then
4505: cat >>confdefs.h <<_ACEOF
4506: #define HAVE_LIBM 1
4507: _ACEOF
1.1 petere 4508:
4509: LIBS="-lm $LIBS"
4510:
4511: fi
4512:
1.179 petere 4513:
4514: echo "$as_me:$LINENO: checking for main in -ldl" >&5
4515: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4516: if test "${ac_cv_lib_dl_main+set}" = set; then
4517: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4518: else
1.179 petere 4519: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4520: LIBS="-ldl $LIBS"
1.179 petere 4521: cat >conftest.$ac_ext <<_ACEOF
4522: #line $LINENO "configure"
1.1 petere 4523: #include "confdefs.h"
4524:
4525:
1.179 petere 4526: #ifdef F77_DUMMY_MAIN
4527: # ifdef __cplusplus
4528: extern "C"
4529: # endif
4530: int F77_DUMMY_MAIN() { return 1; }
4531: #endif
4532: int
4533: main ()
4534: {
4535: main ();
4536: ;
4537: return 0;
4538: }
4539: _ACEOF
4540: rm -f conftest.$ac_objext conftest$ac_exeext
4541: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542: (eval $ac_link) 2>&5
4543: ac_status=$?
4544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545: (exit $ac_status); } &&
4546: { ac_try='test -s conftest$ac_exeext'
4547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548: (eval $ac_try) 2>&5
4549: ac_status=$?
4550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551: (exit $ac_status); }; }; then
4552: ac_cv_lib_dl_main=yes
4553: else
4554: echo "$as_me: failed program was:" >&5
4555: cat conftest.$ac_ext >&5
4556: ac_cv_lib_dl_main=no
4557: fi
4558: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4559: LIBS=$ac_check_lib_save_LIBS
4560: fi
4561: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4562: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4563: if test $ac_cv_lib_dl_main = yes; then
4564: cat >>confdefs.h <<_ACEOF
4565: #define HAVE_LIBDL 1
4566: _ACEOF
1.1 petere 4567:
4568: LIBS="-ldl $LIBS"
4569:
4570: fi
4571:
1.179 petere 4572:
1.190 momjian 4573: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4574: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4575: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.179 petere 4576: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4577: else
1.179 petere 4578: ac_check_lib_save_LIBS=$LIBS
1.190 momjian 4579: LIBS="-lnsl $LIBS"
1.179 petere 4580: cat >conftest.$ac_ext <<_ACEOF
4581: #line $LINENO "configure"
1.1 petere 4582: #include "confdefs.h"
4583:
4584:
1.179 petere 4585: #ifdef F77_DUMMY_MAIN
4586: # ifdef __cplusplus
4587: extern "C"
4588: # endif
4589: int F77_DUMMY_MAIN() { return 1; }
4590: #endif
4591: int
4592: main ()
4593: {
4594: main ();
4595: ;
4596: return 0;
4597: }
4598: _ACEOF
4599: rm -f conftest.$ac_objext conftest$ac_exeext
4600: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601: (eval $ac_link) 2>&5
4602: ac_status=$?
4603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604: (exit $ac_status); } &&
4605: { ac_try='test -s conftest$ac_exeext'
4606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607: (eval $ac_try) 2>&5
4608: ac_status=$?
4609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610: (exit $ac_status); }; }; then
1.190 momjian 4611: ac_cv_lib_nsl_main=yes
1.179 petere 4612: else
4613: echo "$as_me: failed program was:" >&5
4614: cat conftest.$ac_ext >&5
1.190 momjian 4615: ac_cv_lib_nsl_main=no
1.179 petere 4616: fi
4617: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4618: LIBS=$ac_check_lib_save_LIBS
4619: fi
1.190 momjian 4620: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4621: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4622: if test $ac_cv_lib_nsl_main = yes; then
1.179 petere 4623: cat >>confdefs.h <<_ACEOF
1.190 momjian 4624: #define HAVE_LIBNSL 1
1.179 petere 4625: _ACEOF
1.1 petere 4626:
1.190 momjian 4627: LIBS="-lnsl $LIBS"
1.1 petere 4628:
4629: fi
4630:
1.179 petere 4631:
1.190 momjian 4632: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4633: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4634: if test "${ac_cv_lib_socket_main+set}" = set; then
1.179 petere 4635: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4636: else
1.179 petere 4637: ac_check_lib_save_LIBS=$LIBS
1.190 momjian 4638: LIBS="-lsocket $LIBS"
1.179 petere 4639: cat >conftest.$ac_ext <<_ACEOF
4640: #line $LINENO "configure"
1.1 petere 4641: #include "confdefs.h"
4642:
4643:
1.179 petere 4644: #ifdef F77_DUMMY_MAIN
4645: # ifdef __cplusplus
4646: extern "C"
4647: # endif
4648: int F77_DUMMY_MAIN() { return 1; }
4649: #endif
4650: int
4651: main ()
4652: {
4653: main ();
4654: ;
4655: return 0;
4656: }
4657: _ACEOF
4658: rm -f conftest.$ac_objext conftest$ac_exeext
4659: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660: (eval $ac_link) 2>&5
4661: ac_status=$?
4662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663: (exit $ac_status); } &&
4664: { ac_try='test -s conftest$ac_exeext'
4665: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666: (eval $ac_try) 2>&5
4667: ac_status=$?
4668: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669: (exit $ac_status); }; }; then
1.190 momjian 4670: ac_cv_lib_socket_main=yes
1.179 petere 4671: else
4672: echo "$as_me: failed program was:" >&5
4673: cat conftest.$ac_ext >&5
1.190 momjian 4674: ac_cv_lib_socket_main=no
1.179 petere 4675: fi
4676: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677: LIBS=$ac_check_lib_save_LIBS
4678: fi
1.190 momjian 4679: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4680: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4681: if test $ac_cv_lib_socket_main = yes; then
1.179 petere 4682: cat >>confdefs.h <<_ACEOF
1.190 momjian 4683: #define HAVE_LIBSOCKET 1
1.179 petere 4684: _ACEOF
1.1 petere 4685:
1.190 momjian 4686: LIBS="-lsocket $LIBS"
1.1 petere 4687:
4688: fi
4689:
1.179 petere 4690:
4691: echo "$as_me:$LINENO: checking for main in -lipc" >&5
4692: echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4693: if test "${ac_cv_lib_ipc_main+set}" = set; then
4694: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4695: else
1.179 petere 4696: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4697: LIBS="-lipc $LIBS"
1.179 petere 4698: cat >conftest.$ac_ext <<_ACEOF
4699: #line $LINENO "configure"
1.1 petere 4700: #include "confdefs.h"
4701:
4702:
1.179 petere 4703: #ifdef F77_DUMMY_MAIN
4704: # ifdef __cplusplus
4705: extern "C"
4706: # endif
4707: int F77_DUMMY_MAIN() { return 1; }
4708: #endif
4709: int
4710: main ()
4711: {
4712: main ();
4713: ;
4714: return 0;
4715: }
4716: _ACEOF
4717: rm -f conftest.$ac_objext conftest$ac_exeext
4718: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4719: (eval $ac_link) 2>&5
4720: ac_status=$?
4721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722: (exit $ac_status); } &&
4723: { ac_try='test -s conftest$ac_exeext'
4724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725: (eval $ac_try) 2>&5
4726: ac_status=$?
4727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728: (exit $ac_status); }; }; then
4729: ac_cv_lib_ipc_main=yes
4730: else
4731: echo "$as_me: failed program was:" >&5
4732: cat conftest.$ac_ext >&5
4733: ac_cv_lib_ipc_main=no
4734: fi
4735: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4736: LIBS=$ac_check_lib_save_LIBS
4737: fi
4738: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4739: echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4740: if test $ac_cv_lib_ipc_main = yes; then
4741: cat >>confdefs.h <<_ACEOF
4742: #define HAVE_LIBIPC 1
4743: _ACEOF
1.1 petere 4744:
4745: LIBS="-lipc $LIBS"
4746:
4747: fi
4748:
1.179 petere 4749:
4750: echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4751: echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4752: if test "${ac_cv_lib_IPC_main+set}" = set; then
4753: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4754: else
1.179 petere 4755: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4756: LIBS="-lIPC $LIBS"
1.179 petere 4757: cat >conftest.$ac_ext <<_ACEOF
4758: #line $LINENO "configure"
1.1 petere 4759: #include "confdefs.h"
4760:
4761:
1.179 petere 4762: #ifdef F77_DUMMY_MAIN
4763: # ifdef __cplusplus
4764: extern "C"
4765: # endif
4766: int F77_DUMMY_MAIN() { return 1; }
4767: #endif
4768: int
4769: main ()
4770: {
4771: main ();
4772: ;
4773: return 0;
4774: }
4775: _ACEOF
4776: rm -f conftest.$ac_objext conftest$ac_exeext
4777: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778: (eval $ac_link) 2>&5
4779: ac_status=$?
4780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781: (exit $ac_status); } &&
4782: { ac_try='test -s conftest$ac_exeext'
4783: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784: (eval $ac_try) 2>&5
4785: ac_status=$?
4786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787: (exit $ac_status); }; }; then
4788: ac_cv_lib_IPC_main=yes
4789: else
4790: echo "$as_me: failed program was:" >&5
4791: cat conftest.$ac_ext >&5
4792: ac_cv_lib_IPC_main=no
4793: fi
4794: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4795: LIBS=$ac_check_lib_save_LIBS
4796: fi
4797: echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4798: echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4799: if test $ac_cv_lib_IPC_main = yes; then
4800: cat >>confdefs.h <<_ACEOF
4801: #define HAVE_LIBIPC 1
4802: _ACEOF
1.1 petere 4803:
4804: LIBS="-lIPC $LIBS"
4805:
4806: fi
4807:
1.179 petere 4808:
4809: echo "$as_me:$LINENO: checking for main in -llc" >&5
4810: echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4811: if test "${ac_cv_lib_lc_main+set}" = set; then
4812: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4813: else
1.179 petere 4814: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4815: LIBS="-llc $LIBS"
1.179 petere 4816: cat >conftest.$ac_ext <<_ACEOF
4817: #line $LINENO "configure"
1.1 petere 4818: #include "confdefs.h"
4819:
4820:
1.179 petere 4821: #ifdef F77_DUMMY_MAIN
4822: # ifdef __cplusplus
4823: extern "C"
4824: # endif
4825: int F77_DUMMY_MAIN() { return 1; }
4826: #endif
4827: int
4828: main ()
4829: {
4830: main ();
4831: ;
4832: return 0;
4833: }
4834: _ACEOF
4835: rm -f conftest.$ac_objext conftest$ac_exeext
4836: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837: (eval $ac_link) 2>&5
4838: ac_status=$?
4839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840: (exit $ac_status); } &&
4841: { ac_try='test -s conftest$ac_exeext'
4842: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843: (eval $ac_try) 2>&5
4844: ac_status=$?
4845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846: (exit $ac_status); }; }; then
4847: ac_cv_lib_lc_main=yes
4848: else
4849: echo "$as_me: failed program was:" >&5
4850: cat conftest.$ac_ext >&5
4851: ac_cv_lib_lc_main=no
4852: fi
4853: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4854: LIBS=$ac_check_lib_save_LIBS
4855: fi
4856: echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4857: echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4858: if test $ac_cv_lib_lc_main = yes; then
4859: cat >>confdefs.h <<_ACEOF
4860: #define HAVE_LIBLC 1
4861: _ACEOF
1.1 petere 4862:
4863: LIBS="-llc $LIBS"
4864:
4865: fi
4866:
1.179 petere 4867:
4868: echo "$as_me:$LINENO: checking for main in -ldld" >&5
4869: echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4870: if test "${ac_cv_lib_dld_main+set}" = set; then
4871: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4872: else
1.179 petere 4873: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4874: LIBS="-ldld $LIBS"
1.179 petere 4875: cat >conftest.$ac_ext <<_ACEOF
4876: #line $LINENO "configure"
1.1 petere 4877: #include "confdefs.h"
4878:
4879:
1.179 petere 4880: #ifdef F77_DUMMY_MAIN
4881: # ifdef __cplusplus
4882: extern "C"
4883: # endif
4884: int F77_DUMMY_MAIN() { return 1; }
4885: #endif
4886: int
4887: main ()
4888: {
4889: main ();
4890: ;
4891: return 0;
4892: }
4893: _ACEOF
4894: rm -f conftest.$ac_objext conftest$ac_exeext
4895: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4896: (eval $ac_link) 2>&5
4897: ac_status=$?
4898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899: (exit $ac_status); } &&
4900: { ac_try='test -s conftest$ac_exeext'
4901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902: (eval $ac_try) 2>&5
4903: ac_status=$?
4904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905: (exit $ac_status); }; }; then
4906: ac_cv_lib_dld_main=yes
4907: else
4908: echo "$as_me: failed program was:" >&5
4909: cat conftest.$ac_ext >&5
4910: ac_cv_lib_dld_main=no
4911: fi
4912: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4913: LIBS=$ac_check_lib_save_LIBS
4914: fi
4915: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4916: echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4917: if test $ac_cv_lib_dld_main = yes; then
4918: cat >>confdefs.h <<_ACEOF
4919: #define HAVE_LIBDLD 1
4920: _ACEOF
1.1 petere 4921:
4922: LIBS="-ldld $LIBS"
4923:
4924: fi
4925:
1.179 petere 4926:
4927: echo "$as_me:$LINENO: checking for main in -lld" >&5
4928: echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4929: if test "${ac_cv_lib_ld_main+set}" = set; then
4930: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 4931: else
1.179 petere 4932: ac_check_lib_save_LIBS=$LIBS
1.1 petere 4933: LIBS="-lld $LIBS"
1.179 petere 4934: cat >conftest.$ac_ext <<_ACEOF
4935: #line $LINENO "configure"
1.1 petere 4936: #include "confdefs.h"
4937:
4938:
1.179 petere 4939: #ifdef F77_DUMMY_MAIN
4940: # ifdef __cplusplus
4941: extern "C"
4942: # endif
4943: int F77_DUMMY_MAIN() { return 1; }
4944: #endif
4945: int
4946: main ()
4947: {
4948: main ();
4949: ;
4950: return 0;
4951: }
4952: _ACEOF
4953: rm -f conftest.$ac_objext conftest$ac_exeext
4954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955: (eval $ac_link) 2>&5
4956: ac_status=$?
4957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958: (exit $ac_status); } &&
4959: { ac_try='test -s conftest$ac_exeext'
4960: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961: (eval $ac_try) 2>&5
4962: ac_status=$?
4963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964: (exit $ac_status); }; }; then
4965: ac_cv_lib_ld_main=yes
4966: else
4967: echo "$as_me: failed program was:" >&5
4968: cat conftest.$ac_ext >&5
4969: ac_cv_lib_ld_main=no
4970: fi
4971: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4972: LIBS=$ac_check_lib_save_LIBS
4973: fi
4974: echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4975: echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4976: if test $ac_cv_lib_ld_main = yes; then
4977: cat >>confdefs.h <<_ACEOF
4978: #define HAVE_LIBLD 1
4979: _ACEOF
1.1 petere 4980:
4981: LIBS="-lld $LIBS"
4982:
4983: fi
4984:
1.179 petere 4985:
4986: echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4987: echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4988: if test "${ac_cv_lib_compat_main+set}" = set; then
4989: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 4990: else
1.179 petere 4991: ac_check_lib_save_LIBS=$LIBS
1.28 petere 4992: LIBS="-lcompat $LIBS"
1.179 petere 4993: cat >conftest.$ac_ext <<_ACEOF
4994: #line $LINENO "configure"
1.28 petere 4995: #include "confdefs.h"
4996:
4997:
1.179 petere 4998: #ifdef F77_DUMMY_MAIN
4999: # ifdef __cplusplus
5000: extern "C"
5001: # endif
5002: int F77_DUMMY_MAIN() { return 1; }
5003: #endif
5004: int
5005: main ()
5006: {
5007: main ();
5008: ;
5009: return 0;
5010: }
5011: _ACEOF
5012: rm -f conftest.$ac_objext conftest$ac_exeext
5013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014: (eval $ac_link) 2>&5
5015: ac_status=$?
5016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017: (exit $ac_status); } &&
5018: { ac_try='test -s conftest$ac_exeext'
5019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020: (eval $ac_try) 2>&5
5021: ac_status=$?
5022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023: (exit $ac_status); }; }; then
5024: ac_cv_lib_compat_main=yes
5025: else
5026: echo "$as_me: failed program was:" >&5
5027: cat conftest.$ac_ext >&5
5028: ac_cv_lib_compat_main=no
5029: fi
5030: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5031: LIBS=$ac_check_lib_save_LIBS
5032: fi
5033: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5034: echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5035: if test $ac_cv_lib_compat_main = yes; then
5036: cat >>confdefs.h <<_ACEOF
5037: #define HAVE_LIBCOMPAT 1
5038: _ACEOF
1.28 petere 5039:
5040: LIBS="-lcompat $LIBS"
5041:
5042: fi
5043:
1.179 petere 5044:
5045: echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5046: echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5047: if test "${ac_cv_lib_BSD_main+set}" = set; then
5048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5049: else
1.179 petere 5050: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5051: LIBS="-lBSD $LIBS"
1.179 petere 5052: cat >conftest.$ac_ext <<_ACEOF
5053: #line $LINENO "configure"
1.28 petere 5054: #include "confdefs.h"
5055:
5056:
1.179 petere 5057: #ifdef F77_DUMMY_MAIN
5058: # ifdef __cplusplus
5059: extern "C"
5060: # endif
5061: int F77_DUMMY_MAIN() { return 1; }
5062: #endif
5063: int
5064: main ()
5065: {
5066: main ();
5067: ;
5068: return 0;
5069: }
5070: _ACEOF
5071: rm -f conftest.$ac_objext conftest$ac_exeext
5072: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073: (eval $ac_link) 2>&5
5074: ac_status=$?
5075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076: (exit $ac_status); } &&
5077: { ac_try='test -s conftest$ac_exeext'
5078: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079: (eval $ac_try) 2>&5
5080: ac_status=$?
5081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082: (exit $ac_status); }; }; then
5083: ac_cv_lib_BSD_main=yes
5084: else
5085: echo "$as_me: failed program was:" >&5
5086: cat conftest.$ac_ext >&5
5087: ac_cv_lib_BSD_main=no
5088: fi
5089: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5090: LIBS=$ac_check_lib_save_LIBS
5091: fi
5092: echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5093: echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5094: if test $ac_cv_lib_BSD_main = yes; then
5095: cat >>confdefs.h <<_ACEOF
5096: #define HAVE_LIBBSD 1
5097: _ACEOF
1.28 petere 5098:
5099: LIBS="-lBSD $LIBS"
5100:
5101: fi
5102:
1.179 petere 5103:
5104: echo "$as_me:$LINENO: checking for main in -lgen" >&5
5105: echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5106: if test "${ac_cv_lib_gen_main+set}" = set; then
5107: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5108: else
1.179 petere 5109: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5110: LIBS="-lgen $LIBS"
1.179 petere 5111: cat >conftest.$ac_ext <<_ACEOF
5112: #line $LINENO "configure"
1.28 petere 5113: #include "confdefs.h"
5114:
5115:
1.179 petere 5116: #ifdef F77_DUMMY_MAIN
5117: # ifdef __cplusplus
5118: extern "C"
5119: # endif
5120: int F77_DUMMY_MAIN() { return 1; }
5121: #endif
5122: int
5123: main ()
5124: {
5125: main ();
5126: ;
5127: return 0;
5128: }
5129: _ACEOF
5130: rm -f conftest.$ac_objext conftest$ac_exeext
5131: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132: (eval $ac_link) 2>&5
5133: ac_status=$?
5134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135: (exit $ac_status); } &&
5136: { ac_try='test -s conftest$ac_exeext'
5137: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138: (eval $ac_try) 2>&5
5139: ac_status=$?
5140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141: (exit $ac_status); }; }; then
5142: ac_cv_lib_gen_main=yes
5143: else
5144: echo "$as_me: failed program was:" >&5
5145: cat conftest.$ac_ext >&5
5146: ac_cv_lib_gen_main=no
5147: fi
5148: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5149: LIBS=$ac_check_lib_save_LIBS
5150: fi
5151: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5152: echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5153: if test $ac_cv_lib_gen_main = yes; then
5154: cat >>confdefs.h <<_ACEOF
5155: #define HAVE_LIBGEN 1
5156: _ACEOF
1.28 petere 5157:
5158: LIBS="-lgen $LIBS"
5159:
5160: fi
5161:
1.179 petere 5162:
5163: echo "$as_me:$LINENO: checking for main in -lPW" >&5
5164: echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5165: if test "${ac_cv_lib_PW_main+set}" = set; then
5166: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5167: else
1.179 petere 5168: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5169: LIBS="-lPW $LIBS"
1.179 petere 5170: cat >conftest.$ac_ext <<_ACEOF
5171: #line $LINENO "configure"
1.28 petere 5172: #include "confdefs.h"
5173:
5174:
1.179 petere 5175: #ifdef F77_DUMMY_MAIN
5176: # ifdef __cplusplus
5177: extern "C"
5178: # endif
5179: int F77_DUMMY_MAIN() { return 1; }
5180: #endif
5181: int
5182: main ()
5183: {
5184: main ();
5185: ;
5186: return 0;
5187: }
5188: _ACEOF
5189: rm -f conftest.$ac_objext conftest$ac_exeext
5190: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191: (eval $ac_link) 2>&5
5192: ac_status=$?
5193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194: (exit $ac_status); } &&
5195: { ac_try='test -s conftest$ac_exeext'
5196: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197: (eval $ac_try) 2>&5
5198: ac_status=$?
5199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200: (exit $ac_status); }; }; then
5201: ac_cv_lib_PW_main=yes
5202: else
5203: echo "$as_me: failed program was:" >&5
5204: cat conftest.$ac_ext >&5
5205: ac_cv_lib_PW_main=no
5206: fi
5207: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208: LIBS=$ac_check_lib_save_LIBS
5209: fi
5210: echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5211: echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5212: if test $ac_cv_lib_PW_main = yes; then
5213: cat >>confdefs.h <<_ACEOF
5214: #define HAVE_LIBPW 1
5215: _ACEOF
1.28 petere 5216:
5217: LIBS="-lPW $LIBS"
5218:
5219: fi
5220:
1.179 petere 5221:
5222: echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5223: echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5224: if test "${ac_cv_lib_resolv_main+set}" = set; then
5225: echo $ECHO_N "(cached) $ECHO_C" >&6
1.102 petere 5226: else
1.179 petere 5227: ac_check_lib_save_LIBS=$LIBS
1.102 petere 5228: LIBS="-lresolv $LIBS"
1.179 petere 5229: cat >conftest.$ac_ext <<_ACEOF
5230: #line $LINENO "configure"
1.102 petere 5231: #include "confdefs.h"
5232:
5233:
1.179 petere 5234: #ifdef F77_DUMMY_MAIN
5235: # ifdef __cplusplus
5236: extern "C"
5237: # endif
5238: int F77_DUMMY_MAIN() { return 1; }
5239: #endif
5240: int
5241: main ()
5242: {
5243: main ();
5244: ;
5245: return 0;
5246: }
5247: _ACEOF
5248: rm -f conftest.$ac_objext conftest$ac_exeext
5249: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250: (eval $ac_link) 2>&5
5251: ac_status=$?
5252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253: (exit $ac_status); } &&
5254: { ac_try='test -s conftest$ac_exeext'
5255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256: (eval $ac_try) 2>&5
5257: ac_status=$?
5258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259: (exit $ac_status); }; }; then
5260: ac_cv_lib_resolv_main=yes
5261: else
5262: echo "$as_me: failed program was:" >&5
5263: cat conftest.$ac_ext >&5
5264: ac_cv_lib_resolv_main=no
5265: fi
5266: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5267: LIBS=$ac_check_lib_save_LIBS
5268: fi
5269: echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5270: echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5271: if test $ac_cv_lib_resolv_main = yes; then
5272: cat >>confdefs.h <<_ACEOF
5273: #define HAVE_LIBRESOLV 1
5274: _ACEOF
1.102 petere 5275:
5276: LIBS="-lresolv $LIBS"
5277:
5278: fi
5279:
1.200 momjian 5280: echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5281: echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5282: if test "${ac_cv_search_getopt_long+set}" = set; then
1.198 momjian 5283: echo $ECHO_N "(cached) $ECHO_C" >&6
5284: else
1.200 momjian 5285: ac_func_search_save_LIBS=$LIBS
5286: ac_cv_search_getopt_long=no
1.198 momjian 5287: cat >conftest.$ac_ext <<_ACEOF
5288: #line $LINENO "configure"
5289: #include "confdefs.h"
5290:
1.200 momjian 5291: /* Override any gcc2 internal prototype to avoid an error. */
5292: #ifdef __cplusplus
5293: extern "C"
5294: #endif
5295: /* We use char because int might match the return type of a gcc2
5296: builtin and then its argument prototype would still apply. */
5297: char getopt_long ();
5298: #ifdef F77_DUMMY_MAIN
5299: # ifdef __cplusplus
5300: extern "C"
5301: # endif
5302: int F77_DUMMY_MAIN() { return 1; }
5303: #endif
5304: int
5305: main ()
5306: {
5307: getopt_long ();
5308: ;
5309: return 0;
5310: }
5311: _ACEOF
5312: rm -f conftest.$ac_objext conftest$ac_exeext
5313: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314: (eval $ac_link) 2>&5
5315: ac_status=$?
5316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317: (exit $ac_status); } &&
5318: { ac_try='test -s conftest$ac_exeext'
5319: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320: (eval $ac_try) 2>&5
5321: ac_status=$?
5322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323: (exit $ac_status); }; }; then
5324: ac_cv_search_getopt_long="none required"
5325: else
5326: echo "$as_me: failed program was:" >&5
5327: cat conftest.$ac_ext >&5
5328: fi
5329: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5330: if test "$ac_cv_search_getopt_long" = no; then
1.218 momjian 5331: for ac_lib in getopt gnugetopt; do
1.200 momjian 5332: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5333: cat >conftest.$ac_ext <<_ACEOF
5334: #line $LINENO "configure"
5335: #include "confdefs.h"
1.198 momjian 5336:
1.200 momjian 5337: /* Override any gcc2 internal prototype to avoid an error. */
5338: #ifdef __cplusplus
5339: extern "C"
5340: #endif
5341: /* We use char because int might match the return type of a gcc2
5342: builtin and then its argument prototype would still apply. */
5343: char getopt_long ();
1.198 momjian 5344: #ifdef F77_DUMMY_MAIN
5345: # ifdef __cplusplus
5346: extern "C"
5347: # endif
5348: int F77_DUMMY_MAIN() { return 1; }
5349: #endif
5350: int
5351: main ()
5352: {
1.200 momjian 5353: getopt_long ();
1.198 momjian 5354: ;
5355: return 0;
5356: }
5357: _ACEOF
5358: rm -f conftest.$ac_objext conftest$ac_exeext
5359: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360: (eval $ac_link) 2>&5
5361: ac_status=$?
5362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363: (exit $ac_status); } &&
5364: { ac_try='test -s conftest$ac_exeext'
5365: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366: (eval $ac_try) 2>&5
5367: ac_status=$?
5368: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369: (exit $ac_status); }; }; then
1.200 momjian 5370: ac_cv_search_getopt_long="-l$ac_lib"
5371: break
1.198 momjian 5372: else
5373: echo "$as_me: failed program was:" >&5
5374: cat conftest.$ac_ext >&5
5375: fi
5376: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.200 momjian 5377: done
5378: fi
5379: LIBS=$ac_func_search_save_LIBS
1.198 momjian 5380: fi
1.200 momjian 5381: echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5382: echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5383: if test "$ac_cv_search_getopt_long" != no; then
5384: test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
1.198 momjian 5385:
5386: fi
5387:
1.148 petere 5388: # QNX:
1.179 petere 5389:
5390: echo "$as_me:$LINENO: checking for main in -lunix" >&5
5391: echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5392: if test "${ac_cv_lib_unix_main+set}" = set; then
5393: echo $ECHO_N "(cached) $ECHO_C" >&6
1.111 petere 5394: else
1.179 petere 5395: ac_check_lib_save_LIBS=$LIBS
1.111 petere 5396: LIBS="-lunix $LIBS"
1.179 petere 5397: cat >conftest.$ac_ext <<_ACEOF
5398: #line $LINENO "configure"
1.111 petere 5399: #include "confdefs.h"
5400:
5401:
1.179 petere 5402: #ifdef F77_DUMMY_MAIN
5403: # ifdef __cplusplus
5404: extern "C"
5405: # endif
5406: int F77_DUMMY_MAIN() { return 1; }
5407: #endif
5408: int
5409: main ()
5410: {
5411: main ();
5412: ;
5413: return 0;
5414: }
5415: _ACEOF
5416: rm -f conftest.$ac_objext conftest$ac_exeext
5417: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5418: (eval $ac_link) 2>&5
5419: ac_status=$?
5420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421: (exit $ac_status); } &&
5422: { ac_try='test -s conftest$ac_exeext'
5423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424: (eval $ac_try) 2>&5
5425: ac_status=$?
5426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427: (exit $ac_status); }; }; then
5428: ac_cv_lib_unix_main=yes
5429: else
5430: echo "$as_me: failed program was:" >&5
5431: cat conftest.$ac_ext >&5
5432: ac_cv_lib_unix_main=no
5433: fi
5434: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5435: LIBS=$ac_check_lib_save_LIBS
5436: fi
5437: echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5438: echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5439: if test $ac_cv_lib_unix_main = yes; then
5440: cat >>confdefs.h <<_ACEOF
5441: #define HAVE_LIBUNIX 1
5442: _ACEOF
1.111 petere 5443:
5444: LIBS="-lunix $LIBS"
5445:
5446: fi
5447:
1.179 petere 5448: echo "$as_me:$LINENO: checking for library containing crypt" >&5
5449: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5450: if test "${ac_cv_search_crypt+set}" = set; then
5451: echo $ECHO_N "(cached) $ECHO_C" >&6
5452: else
5453: ac_func_search_save_LIBS=$LIBS
5454: ac_cv_search_crypt=no
5455: cat >conftest.$ac_ext <<_ACEOF
5456: #line $LINENO "configure"
5457: #include "confdefs.h"
1.28 petere 5458:
5459: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5460: #ifdef __cplusplus
5461: extern "C"
5462: #endif
1.28 petere 5463: /* We use char because int might match the return type of a gcc2
1.179 petere 5464: builtin and then its argument prototype would still apply. */
5465: char crypt ();
5466: #ifdef F77_DUMMY_MAIN
5467: # ifdef __cplusplus
5468: extern "C"
5469: # endif
5470: int F77_DUMMY_MAIN() { return 1; }
5471: #endif
5472: int
5473: main ()
5474: {
5475: crypt ();
5476: ;
5477: return 0;
5478: }
5479: _ACEOF
5480: rm -f conftest.$ac_objext conftest$ac_exeext
5481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482: (eval $ac_link) 2>&5
5483: ac_status=$?
5484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485: (exit $ac_status); } &&
5486: { ac_try='test -s conftest$ac_exeext'
5487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488: (eval $ac_try) 2>&5
5489: ac_status=$?
5490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491: (exit $ac_status); }; }; then
1.28 petere 5492: ac_cv_search_crypt="none required"
5493: else
1.179 petere 5494: echo "$as_me: failed program was:" >&5
5495: cat conftest.$ac_ext >&5
1.28 petere 5496: fi
1.179 petere 5497: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498: if test "$ac_cv_search_crypt" = no; then
5499: for ac_lib in crypt; do
5500: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5501: cat >conftest.$ac_ext <<_ACEOF
5502: #line $LINENO "configure"
1.28 petere 5503: #include "confdefs.h"
1.179 petere 5504:
1.28 petere 5505: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5506: #ifdef __cplusplus
5507: extern "C"
5508: #endif
1.28 petere 5509: /* We use char because int might match the return type of a gcc2
1.179 petere 5510: builtin and then its argument prototype would still apply. */
5511: char crypt ();
5512: #ifdef F77_DUMMY_MAIN
5513: # ifdef __cplusplus
5514: extern "C"
5515: # endif
5516: int F77_DUMMY_MAIN() { return 1; }
5517: #endif
5518: int
5519: main ()
5520: {
5521: crypt ();
5522: ;
5523: return 0;
5524: }
5525: _ACEOF
5526: rm -f conftest.$ac_objext conftest$ac_exeext
5527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528: (eval $ac_link) 2>&5
5529: ac_status=$?
5530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531: (exit $ac_status); } &&
5532: { ac_try='test -s conftest$ac_exeext'
5533: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534: (eval $ac_try) 2>&5
5535: ac_status=$?
5536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537: (exit $ac_status); }; }; then
5538: ac_cv_search_crypt="-l$ac_lib"
1.28 petere 5539: break
5540: else
1.179 petere 5541: echo "$as_me: failed program was:" >&5
5542: cat conftest.$ac_ext >&5
5543: fi
5544: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5545: done
1.28 petere 5546: fi
1.179 petere 5547: LIBS=$ac_func_search_save_LIBS
1.28 petere 5548: fi
1.179 petere 5549: echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5550: echo "${ECHO_T}$ac_cv_search_crypt" >&6
5551: if test "$ac_cv_search_crypt" != no; then
5552: test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
1.28 petere 5553:
5554: fi
1.179 petere 5555:
1.148 petere 5556: # BeOS:
1.179 petere 5557:
5558: echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5559: echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5560: if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5561: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5562: else
1.179 petere 5563: ac_check_lib_save_LIBS=$LIBS
1.92 tgl 5564: LIBS="-lbind $LIBS"
1.179 petere 5565: cat >conftest.$ac_ext <<_ACEOF
5566: #line $LINENO "configure"
1.28 petere 5567: #include "confdefs.h"
1.179 petere 5568:
1.28 petere 5569: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5570: #ifdef __cplusplus
5571: extern "C"
5572: #endif
1.28 petere 5573: /* We use char because int might match the return type of a gcc2
1.179 petere 5574: builtin and then its argument prototype would still apply. */
5575: char __inet_ntoa ();
5576: #ifdef F77_DUMMY_MAIN
5577: # ifdef __cplusplus
5578: extern "C"
5579: # endif
5580: int F77_DUMMY_MAIN() { return 1; }
5581: #endif
5582: int
5583: main ()
5584: {
5585: __inet_ntoa ();
5586: ;
5587: return 0;
5588: }
5589: _ACEOF
5590: rm -f conftest.$ac_objext conftest$ac_exeext
5591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592: (eval $ac_link) 2>&5
5593: ac_status=$?
5594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595: (exit $ac_status); } &&
5596: { ac_try='test -s conftest$ac_exeext'
5597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598: (eval $ac_try) 2>&5
5599: ac_status=$?
5600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601: (exit $ac_status); }; }; then
5602: ac_cv_lib_bind___inet_ntoa=yes
5603: else
5604: echo "$as_me: failed program was:" >&5
5605: cat conftest.$ac_ext >&5
5606: ac_cv_lib_bind___inet_ntoa=no
5607: fi
5608: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609: LIBS=$ac_check_lib_save_LIBS
5610: fi
5611: echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5612: echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5613: if test $ac_cv_lib_bind___inet_ntoa = yes; then
5614: cat >>confdefs.h <<_ACEOF
5615: #define HAVE_LIBBIND 1
5616: _ACEOF
1.28 petere 5617:
1.92 tgl 5618: LIBS="-lbind $LIBS"
1.28 petere 5619:
5620: fi
5621:
1.186 petere 5622: # Solaris:
5623: echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5624: echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5625: if test "${ac_cv_search_fdatasync+set}" = set; then
1.179 petere 5626: echo $ECHO_N "(cached) $ECHO_C" >&6
1.57 momjian 5627: else
1.186 petere 5628: ac_func_search_save_LIBS=$LIBS
5629: ac_cv_search_fdatasync=no
1.179 petere 5630: cat >conftest.$ac_ext <<_ACEOF
5631: #line $LINENO "configure"
1.57 momjian 5632: #include "confdefs.h"
1.179 petere 5633:
1.59 petere 5634: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5635: #ifdef __cplusplus
5636: extern "C"
5637: #endif
1.59 petere 5638: /* We use char because int might match the return type of a gcc2
1.179 petere 5639: builtin and then its argument prototype would still apply. */
1.186 petere 5640: char fdatasync ();
1.179 petere 5641: #ifdef F77_DUMMY_MAIN
5642: # ifdef __cplusplus
5643: extern "C"
5644: # endif
5645: int F77_DUMMY_MAIN() { return 1; }
5646: #endif
5647: int
5648: main ()
5649: {
1.186 petere 5650: fdatasync ();
1.179 petere 5651: ;
5652: return 0;
5653: }
5654: _ACEOF
5655: rm -f conftest.$ac_objext conftest$ac_exeext
5656: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5657: (eval $ac_link) 2>&5
5658: ac_status=$?
5659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660: (exit $ac_status); } &&
5661: { ac_try='test -s conftest$ac_exeext'
5662: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663: (eval $ac_try) 2>&5
5664: ac_status=$?
5665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666: (exit $ac_status); }; }; then
1.186 petere 5667: ac_cv_search_fdatasync="none required"
5668: else
5669: echo "$as_me: failed program was:" >&5
5670: cat conftest.$ac_ext >&5
5671: fi
5672: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673: if test "$ac_cv_search_fdatasync" = no; then
5674: for ac_lib in rt posix4; do
5675: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5676: cat >conftest.$ac_ext <<_ACEOF
5677: #line $LINENO "configure"
5678: #include "confdefs.h"
5679:
5680: /* Override any gcc2 internal prototype to avoid an error. */
5681: #ifdef __cplusplus
5682: extern "C"
5683: #endif
5684: /* We use char because int might match the return type of a gcc2
5685: builtin and then its argument prototype would still apply. */
5686: char fdatasync ();
5687: #ifdef F77_DUMMY_MAIN
5688: # ifdef __cplusplus
5689: extern "C"
5690: # endif
5691: int F77_DUMMY_MAIN() { return 1; }
5692: #endif
5693: int
5694: main ()
5695: {
5696: fdatasync ();
5697: ;
5698: return 0;
5699: }
5700: _ACEOF
5701: rm -f conftest.$ac_objext conftest$ac_exeext
5702: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703: (eval $ac_link) 2>&5
5704: ac_status=$?
5705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706: (exit $ac_status); } &&
5707: { ac_try='test -s conftest$ac_exeext'
5708: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709: (eval $ac_try) 2>&5
5710: ac_status=$?
5711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712: (exit $ac_status); }; }; then
5713: ac_cv_search_fdatasync="-l$ac_lib"
5714: break
1.179 petere 5715: else
5716: echo "$as_me: failed program was:" >&5
5717: cat conftest.$ac_ext >&5
5718: fi
5719: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 5720: done
5721: fi
5722: LIBS=$ac_func_search_save_LIBS
1.179 petere 5723: fi
1.186 petere 5724: echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5725: echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5726: if test "$ac_cv_search_fdatasync" != no; then
5727: test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
1.70 petere 5728:
1.186 petere 5729: fi
1.92 tgl 5730:
1.215 petere 5731: # Cygwin:
5732:
5733: echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5734: echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5735: if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5736: echo $ECHO_N "(cached) $ECHO_C" >&6
5737: else
5738: ac_check_lib_save_LIBS=$LIBS
5739: LIBS="-lcygipc $LIBS"
5740: cat >conftest.$ac_ext <<_ACEOF
5741: #line $LINENO "configure"
5742: #include "confdefs.h"
5743:
5744: /* Override any gcc2 internal prototype to avoid an error. */
5745: #ifdef __cplusplus
5746: extern "C"
5747: #endif
5748: /* We use char because int might match the return type of a gcc2
5749: builtin and then its argument prototype would still apply. */
5750: char shmget ();
5751: #ifdef F77_DUMMY_MAIN
5752: # ifdef __cplusplus
5753: extern "C"
5754: # endif
5755: int F77_DUMMY_MAIN() { return 1; }
5756: #endif
5757: int
5758: main ()
5759: {
5760: shmget ();
5761: ;
5762: return 0;
5763: }
5764: _ACEOF
5765: rm -f conftest.$ac_objext conftest$ac_exeext
5766: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5767: (eval $ac_link) 2>&5
5768: ac_status=$?
5769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770: (exit $ac_status); } &&
5771: { ac_try='test -s conftest$ac_exeext'
5772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773: (eval $ac_try) 2>&5
5774: ac_status=$?
5775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776: (exit $ac_status); }; }; then
5777: ac_cv_lib_cygipc_shmget=yes
5778: else
5779: echo "$as_me: failed program was:" >&5
5780: cat conftest.$ac_ext >&5
5781: ac_cv_lib_cygipc_shmget=no
5782: fi
5783: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5784: LIBS=$ac_check_lib_save_LIBS
5785: fi
5786: echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5787: echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5788: if test $ac_cv_lib_cygipc_shmget = yes; then
5789: cat >>confdefs.h <<_ACEOF
5790: #define HAVE_LIBCYGIPC 1
5791: _ACEOF
5792:
5793: LIBS="-lcygipc $LIBS"
5794:
5795: fi
5796:
1.92 tgl 5797:
1.186 petere 5798: if test "$with_readline" = yes; then
1.70 petere 5799:
1.186 petere 5800: echo "$as_me:$LINENO: checking for readline" >&5
5801: echo $ECHO_N "checking for readline... $ECHO_C" >&6
1.57 momjian 5802:
1.186 petere 5803: if test "${pgac_cv_check_readline+set}" = set; then
1.179 petere 5804: echo $ECHO_N "(cached) $ECHO_C" >&6
5805: else
1.186 petere 5806: pgac_cv_check_readline=no
5807: for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5808: for pgac_rllib in -lreadline -ledit ; do
5809: pgac_save_LIBS=$LIBS
5810: LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5811: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 5812: #line $LINENO "configure"
5813: #include "confdefs.h"
1.28 petere 5814:
1.148 petere 5815: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5816: #ifdef __cplusplus
5817: extern "C"
5818: #endif
1.148 petere 5819: /* We use char because int might match the return type of a gcc2
1.179 petere 5820: builtin and then its argument prototype would still apply. */
1.186 petere 5821: char readline ();
1.179 petere 5822: #ifdef F77_DUMMY_MAIN
5823: # ifdef __cplusplus
5824: extern "C"
5825: # endif
5826: int F77_DUMMY_MAIN() { return 1; }
5827: #endif
5828: int
5829: main ()
5830: {
1.186 petere 5831: readline ();
1.179 petere 5832: ;
5833: return 0;
5834: }
5835: _ACEOF
5836: rm -f conftest.$ac_objext conftest$ac_exeext
5837: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838: (eval $ac_link) 2>&5
5839: ac_status=$?
5840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841: (exit $ac_status); } &&
5842: { ac_try='test -s conftest$ac_exeext'
5843: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844: (eval $ac_try) 2>&5
5845: ac_status=$?
5846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847: (exit $ac_status); }; }; then
1.186 petere 5848:
5849: # NetBSD and OpenBSD have a broken linker that does not
5850: # recognize dependent libraries
5851: case $host_os in netbsd* | openbsd* )
5852: case $pgac_lib in
5853: *curses*) ;;
5854: *) pgac_lib=" -lcurses" ;;
5855: esac
5856: esac
5857:
5858: pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5859: break 2
5860:
1.148 petere 5861: else
1.179 petere 5862: echo "$as_me: failed program was:" >&5
5863: cat conftest.$ac_ext >&5
1.148 petere 5864: fi
1.179 petere 5865: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 5866: LIBS=$pgac_save_LIBS
5867: done
5868: done
5869: LIBS=$pgac_save_LIBS
5870:
5871: fi
5872:
5873: if test "$pgac_cv_check_readline" != no ; then
5874:
5875: cat >>confdefs.h <<\_ACEOF
5876: #define HAVE_LIBREADLINE 1
5877: _ACEOF
5878:
5879: LIBS="$pgac_cv_check_readline $LIBS"
5880: echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5881: echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5882: else
5883: echo "$as_me:$LINENO: result: no" >&5
5884: echo "${ECHO_T}no" >&6
5885: fi
5886: if test x"$pgac_cv_check_readline" = x"no"; then
5887: { { echo "$as_me:$LINENO: error: readline library not found
1.217 momjian 5888: If you have readline already installed, see config.log for details on the
5889: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 5890: Use --without-readline to disable readline support." >&5
5891: echo "$as_me: error: readline library not found
1.217 momjian 5892: If you have readline already installed, see config.log for details on the
5893: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 5894: Use --without-readline to disable readline support." >&2;}
5895: { (exit 1); exit 1; }; }
5896: fi
5897: fi
5898:
5899: if test "$with_zlib" = yes; then
5900:
5901: echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5902: echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5903: if test "${ac_cv_lib_z_inflate+set}" = set; then
5904: echo $ECHO_N "(cached) $ECHO_C" >&6
5905: else
5906: ac_check_lib_save_LIBS=$LIBS
5907: LIBS="-lz $LIBS"
5908: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 5909: #line $LINENO "configure"
1.148 petere 5910: #include "confdefs.h"
1.179 petere 5911:
1.148 petere 5912: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5913: #ifdef __cplusplus
5914: extern "C"
5915: #endif
1.148 petere 5916: /* We use char because int might match the return type of a gcc2
1.179 petere 5917: builtin and then its argument prototype would still apply. */
1.186 petere 5918: char inflate ();
1.179 petere 5919: #ifdef F77_DUMMY_MAIN
5920: # ifdef __cplusplus
5921: extern "C"
5922: # endif
5923: int F77_DUMMY_MAIN() { return 1; }
5924: #endif
5925: int
5926: main ()
5927: {
1.186 petere 5928: inflate ();
1.179 petere 5929: ;
5930: return 0;
5931: }
5932: _ACEOF
5933: rm -f conftest.$ac_objext conftest$ac_exeext
5934: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935: (eval $ac_link) 2>&5
5936: ac_status=$?
5937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938: (exit $ac_status); } &&
5939: { ac_try='test -s conftest$ac_exeext'
5940: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941: (eval $ac_try) 2>&5
5942: ac_status=$?
5943: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944: (exit $ac_status); }; }; then
1.186 petere 5945: ac_cv_lib_z_inflate=yes
1.148 petere 5946: else
1.179 petere 5947: echo "$as_me: failed program was:" >&5
5948: cat conftest.$ac_ext >&5
1.186 petere 5949: ac_cv_lib_z_inflate=no
1.179 petere 5950: fi
5951: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.186 petere 5952: LIBS=$ac_check_lib_save_LIBS
1.148 petere 5953: fi
1.186 petere 5954: echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5955: echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5956: if test $ac_cv_lib_z_inflate = yes; then
5957: cat >>confdefs.h <<_ACEOF
5958: #define HAVE_LIBZ 1
5959: _ACEOF
5960:
5961: LIBS="-lz $LIBS"
5962:
5963: else
5964: { { echo "$as_me:$LINENO: error: zlib library not found
1.217 momjian 5965: If you have zlib already installed, see config.log for details on the
5966: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 5967: Use --without-zlib to disable zlib support." >&5
5968: echo "$as_me: error: zlib library not found
1.217 momjian 5969: If you have zlib already installed, see config.log for details on the
5970: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 5971: Use --without-zlib to disable zlib support." >&2;}
5972: { (exit 1); exit 1; }; }
1.148 petere 5973: fi
5974:
5975: fi
1.62 momjian 5976:
1.28 petere 5977: if test "$with_krb4" = yes ; then
1.179 petere 5978:
5979: echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5980: echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5981: if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5982: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 5983: else
1.179 petere 5984: ac_check_lib_save_LIBS=$LIBS
1.28 petere 5985: LIBS="-ldes $LIBS"
1.179 petere 5986: cat >conftest.$ac_ext <<_ACEOF
5987: #line $LINENO "configure"
1.28 petere 5988: #include "confdefs.h"
1.179 petere 5989:
1.28 petere 5990: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 5991: #ifdef __cplusplus
5992: extern "C"
5993: #endif
1.28 petere 5994: /* We use char because int might match the return type of a gcc2
1.179 petere 5995: builtin and then its argument prototype would still apply. */
5996: char des_encrypt ();
5997: #ifdef F77_DUMMY_MAIN
5998: # ifdef __cplusplus
5999: extern "C"
6000: # endif
6001: int F77_DUMMY_MAIN() { return 1; }
6002: #endif
6003: int
6004: main ()
6005: {
6006: des_encrypt ();
6007: ;
6008: return 0;
6009: }
6010: _ACEOF
6011: rm -f conftest.$ac_objext conftest$ac_exeext
6012: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013: (eval $ac_link) 2>&5
6014: ac_status=$?
6015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016: (exit $ac_status); } &&
6017: { ac_try='test -s conftest$ac_exeext'
6018: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019: (eval $ac_try) 2>&5
6020: ac_status=$?
6021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022: (exit $ac_status); }; }; then
6023: ac_cv_lib_des_des_encrypt=yes
6024: else
6025: echo "$as_me: failed program was:" >&5
6026: cat conftest.$ac_ext >&5
6027: ac_cv_lib_des_des_encrypt=no
6028: fi
6029: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030: LIBS=$ac_check_lib_save_LIBS
6031: fi
6032: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6033: echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6034: if test $ac_cv_lib_des_des_encrypt = yes; then
6035: cat >>confdefs.h <<_ACEOF
6036: #define HAVE_LIBDES 1
6037: _ACEOF
1.28 petere 6038:
6039: LIBS="-ldes $LIBS"
6040:
6041: else
1.179 petere 6042: { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6043: echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6044: { (exit 1); exit 1; }; }
1.28 petere 6045: fi
6046:
1.179 petere 6047:
6048: echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6049: echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6050: if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6051: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 6052: else
1.179 petere 6053: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6054: LIBS="-lkrb $LIBS"
1.179 petere 6055: cat >conftest.$ac_ext <<_ACEOF
6056: #line $LINENO "configure"
1.28 petere 6057: #include "confdefs.h"
1.179 petere 6058:
1.28 petere 6059: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6060: #ifdef __cplusplus
6061: extern "C"
6062: #endif
1.28 petere 6063: /* We use char because int might match the return type of a gcc2
1.179 petere 6064: builtin and then its argument prototype would still apply. */
6065: char krb_sendauth ();
6066: #ifdef F77_DUMMY_MAIN
6067: # ifdef __cplusplus
6068: extern "C"
6069: # endif
6070: int F77_DUMMY_MAIN() { return 1; }
6071: #endif
6072: int
6073: main ()
6074: {
6075: krb_sendauth ();
6076: ;
6077: return 0;
6078: }
6079: _ACEOF
6080: rm -f conftest.$ac_objext conftest$ac_exeext
6081: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6082: (eval $ac_link) 2>&5
6083: ac_status=$?
6084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085: (exit $ac_status); } &&
6086: { ac_try='test -s conftest$ac_exeext'
6087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088: (eval $ac_try) 2>&5
6089: ac_status=$?
6090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091: (exit $ac_status); }; }; then
6092: ac_cv_lib_krb_krb_sendauth=yes
6093: else
6094: echo "$as_me: failed program was:" >&5
6095: cat conftest.$ac_ext >&5
6096: ac_cv_lib_krb_krb_sendauth=no
6097: fi
6098: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099: LIBS=$ac_check_lib_save_LIBS
6100: fi
6101: echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6102: echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6103: if test $ac_cv_lib_krb_krb_sendauth = yes; then
6104: cat >>confdefs.h <<_ACEOF
6105: #define HAVE_LIBKRB 1
6106: _ACEOF
1.28 petere 6107:
6108: LIBS="-lkrb $LIBS"
6109:
6110: else
1.179 petere 6111: { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6112: echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6113: { (exit 1); exit 1; }; }
1.28 petere 6114: fi
6115:
6116: fi
6117:
6118: if test "$with_krb5" = yes ; then
1.179 petere 6119: echo "$as_me:$LINENO: checking for library containing com_err" >&5
6120: echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6121: if test "${ac_cv_search_com_err+set}" = set; then
6122: echo $ECHO_N "(cached) $ECHO_C" >&6
6123: else
6124: ac_func_search_save_LIBS=$LIBS
6125: ac_cv_search_com_err=no
6126: cat >conftest.$ac_ext <<_ACEOF
6127: #line $LINENO "configure"
1.1 petere 6128: #include "confdefs.h"
1.179 petere 6129:
1.70 petere 6130: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6131: #ifdef __cplusplus
6132: extern "C"
6133: #endif
1.70 petere 6134: /* We use char because int might match the return type of a gcc2
1.179 petere 6135: builtin and then its argument prototype would still apply. */
6136: char com_err ();
6137: #ifdef F77_DUMMY_MAIN
6138: # ifdef __cplusplus
6139: extern "C"
6140: # endif
6141: int F77_DUMMY_MAIN() { return 1; }
6142: #endif
6143: int
6144: main ()
6145: {
6146: com_err ();
6147: ;
6148: return 0;
6149: }
6150: _ACEOF
6151: rm -f conftest.$ac_objext conftest$ac_exeext
6152: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153: (eval $ac_link) 2>&5
6154: ac_status=$?
6155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156: (exit $ac_status); } &&
6157: { ac_try='test -s conftest$ac_exeext'
6158: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159: (eval $ac_try) 2>&5
6160: ac_status=$?
6161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162: (exit $ac_status); }; }; then
1.174 petere 6163: ac_cv_search_com_err="none required"
1.1 petere 6164: else
1.179 petere 6165: echo "$as_me: failed program was:" >&5
6166: cat conftest.$ac_ext >&5
1.1 petere 6167: fi
1.179 petere 6168: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169: if test "$ac_cv_search_com_err" = no; then
6170: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6171: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172: cat >conftest.$ac_ext <<_ACEOF
6173: #line $LINENO "configure"
1.174 petere 6174: #include "confdefs.h"
1.179 petere 6175:
1.174 petere 6176: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6177: #ifdef __cplusplus
6178: extern "C"
6179: #endif
1.174 petere 6180: /* We use char because int might match the return type of a gcc2
1.179 petere 6181: builtin and then its argument prototype would still apply. */
6182: char com_err ();
6183: #ifdef F77_DUMMY_MAIN
6184: # ifdef __cplusplus
6185: extern "C"
6186: # endif
6187: int F77_DUMMY_MAIN() { return 1; }
6188: #endif
6189: int
6190: main ()
6191: {
6192: com_err ();
6193: ;
6194: return 0;
6195: }
6196: _ACEOF
6197: rm -f conftest.$ac_objext conftest$ac_exeext
6198: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199: (eval $ac_link) 2>&5
6200: ac_status=$?
6201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202: (exit $ac_status); } &&
6203: { ac_try='test -s conftest$ac_exeext'
6204: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205: (eval $ac_try) 2>&5
6206: ac_status=$?
6207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208: (exit $ac_status); }; }; then
6209: ac_cv_search_com_err="-l$ac_lib"
1.174 petere 6210: break
1.1 petere 6211: else
1.179 petere 6212: echo "$as_me: failed program was:" >&5
6213: cat conftest.$ac_ext >&5
6214: fi
6215: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216: done
1.174 petere 6217: fi
1.179 petere 6218: LIBS=$ac_func_search_save_LIBS
1.1 petere 6219: fi
1.179 petere 6220: echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6221: echo "${ECHO_T}$ac_cv_search_com_err" >&6
6222: if test "$ac_cv_search_com_err" != no; then
6223: test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
1.1 petere 6224:
1.179 petere 6225: else
6226: { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6227: echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6228: { (exit 1); exit 1; }; }
1.174 petere 6229: fi
1.179 petere 6230:
6231: echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6232: echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6233: if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6234: echo $ECHO_N "(cached) $ECHO_C" >&6
6235: else
6236: ac_func_search_save_LIBS=$LIBS
6237: ac_cv_search_krb5_encrypt=no
6238: cat >conftest.$ac_ext <<_ACEOF
6239: #line $LINENO "configure"
1.1 petere 6240: #include "confdefs.h"
1.179 petere 6241:
1.70 petere 6242: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6243: #ifdef __cplusplus
6244: extern "C"
6245: #endif
1.70 petere 6246: /* We use char because int might match the return type of a gcc2
1.179 petere 6247: builtin and then its argument prototype would still apply. */
6248: char krb5_encrypt ();
6249: #ifdef F77_DUMMY_MAIN
6250: # ifdef __cplusplus
6251: extern "C"
6252: # endif
6253: int F77_DUMMY_MAIN() { return 1; }
6254: #endif
6255: int
6256: main ()
6257: {
6258: krb5_encrypt ();
6259: ;
6260: return 0;
6261: }
6262: _ACEOF
6263: rm -f conftest.$ac_objext conftest$ac_exeext
6264: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265: (eval $ac_link) 2>&5
6266: ac_status=$?
6267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268: (exit $ac_status); } &&
6269: { ac_try='test -s conftest$ac_exeext'
6270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271: (eval $ac_try) 2>&5
6272: ac_status=$?
6273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274: (exit $ac_status); }; }; then
1.174 petere 6275: ac_cv_search_krb5_encrypt="none required"
1.1 petere 6276: else
1.179 petere 6277: echo "$as_me: failed program was:" >&5
6278: cat conftest.$ac_ext >&5
1.1 petere 6279: fi
1.179 petere 6280: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281: if test "$ac_cv_search_krb5_encrypt" = no; then
6282: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6283: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6284: cat >conftest.$ac_ext <<_ACEOF
6285: #line $LINENO "configure"
1.70 petere 6286: #include "confdefs.h"
1.179 petere 6287:
1.70 petere 6288: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6289: #ifdef __cplusplus
6290: extern "C"
6291: #endif
1.70 petere 6292: /* We use char because int might match the return type of a gcc2
1.179 petere 6293: builtin and then its argument prototype would still apply. */
6294: char krb5_encrypt ();
6295: #ifdef F77_DUMMY_MAIN
6296: # ifdef __cplusplus
6297: extern "C"
6298: # endif
6299: int F77_DUMMY_MAIN() { return 1; }
6300: #endif
6301: int
6302: main ()
6303: {
6304: krb5_encrypt ();
6305: ;
6306: return 0;
6307: }
6308: _ACEOF
6309: rm -f conftest.$ac_objext conftest$ac_exeext
6310: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311: (eval $ac_link) 2>&5
6312: ac_status=$?
6313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314: (exit $ac_status); } &&
6315: { ac_try='test -s conftest$ac_exeext'
6316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317: (eval $ac_try) 2>&5
6318: ac_status=$?
6319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320: (exit $ac_status); }; }; then
6321: ac_cv_search_krb5_encrypt="-l$ac_lib"
1.174 petere 6322: break
1.70 petere 6323: else
1.179 petere 6324: echo "$as_me: failed program was:" >&5
6325: cat conftest.$ac_ext >&5
6326: fi
6327: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328: done
1.70 petere 6329: fi
1.179 petere 6330: LIBS=$ac_func_search_save_LIBS
1.70 petere 6331: fi
1.179 petere 6332: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6333: echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6334: if test "$ac_cv_search_krb5_encrypt" != no; then
6335: test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
1.70 petere 6336:
1.179 petere 6337: else
6338: { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6339: echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6340: { (exit 1); exit 1; }; }
1.1 petere 6341: fi
1.179 petere 6342:
6343: echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6344: echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6345: if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6346: echo $ECHO_N "(cached) $ECHO_C" >&6
6347: else
6348: ac_func_search_save_LIBS=$LIBS
6349: ac_cv_search_krb5_sendauth=no
6350: cat >conftest.$ac_ext <<_ACEOF
6351: #line $LINENO "configure"
1.1 petere 6352: #include "confdefs.h"
1.179 petere 6353:
1.70 petere 6354: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6355: #ifdef __cplusplus
6356: extern "C"
6357: #endif
1.70 petere 6358: /* We use char because int might match the return type of a gcc2
1.179 petere 6359: builtin and then its argument prototype would still apply. */
6360: char krb5_sendauth ();
6361: #ifdef F77_DUMMY_MAIN
6362: # ifdef __cplusplus
6363: extern "C"
6364: # endif
6365: int F77_DUMMY_MAIN() { return 1; }
6366: #endif
6367: int
6368: main ()
6369: {
6370: krb5_sendauth ();
6371: ;
6372: return 0;
6373: }
6374: _ACEOF
6375: rm -f conftest.$ac_objext conftest$ac_exeext
6376: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377: (eval $ac_link) 2>&5
6378: ac_status=$?
6379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380: (exit $ac_status); } &&
6381: { ac_try='test -s conftest$ac_exeext'
6382: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383: (eval $ac_try) 2>&5
6384: ac_status=$?
6385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386: (exit $ac_status); }; }; then
1.174 petere 6387: ac_cv_search_krb5_sendauth="none required"
1.1 petere 6388: else
1.179 petere 6389: echo "$as_me: failed program was:" >&5
6390: cat conftest.$ac_ext >&5
1.1 petere 6391: fi
1.179 petere 6392: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6393: if test "$ac_cv_search_krb5_sendauth" = no; then
6394: for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6395: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6396: cat >conftest.$ac_ext <<_ACEOF
6397: #line $LINENO "configure"
1.174 petere 6398: #include "confdefs.h"
1.179 petere 6399:
1.174 petere 6400: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6401: #ifdef __cplusplus
6402: extern "C"
6403: #endif
1.174 petere 6404: /* We use char because int might match the return type of a gcc2
1.179 petere 6405: builtin and then its argument prototype would still apply. */
6406: char krb5_sendauth ();
6407: #ifdef F77_DUMMY_MAIN
6408: # ifdef __cplusplus
6409: extern "C"
6410: # endif
6411: int F77_DUMMY_MAIN() { return 1; }
6412: #endif
6413: int
6414: main ()
6415: {
6416: krb5_sendauth ();
6417: ;
6418: return 0;
6419: }
6420: _ACEOF
6421: rm -f conftest.$ac_objext conftest$ac_exeext
6422: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423: (eval $ac_link) 2>&5
6424: ac_status=$?
6425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426: (exit $ac_status); } &&
6427: { ac_try='test -s conftest$ac_exeext'
6428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429: (eval $ac_try) 2>&5
6430: ac_status=$?
6431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432: (exit $ac_status); }; }; then
6433: ac_cv_search_krb5_sendauth="-l$ac_lib"
1.174 petere 6434: break
1.1 petere 6435: else
1.179 petere 6436: echo "$as_me: failed program was:" >&5
6437: cat conftest.$ac_ext >&5
6438: fi
6439: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6440: done
1.174 petere 6441: fi
1.179 petere 6442: LIBS=$ac_func_search_save_LIBS
1.1 petere 6443: fi
1.179 petere 6444: echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6445: echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6446: if test "$ac_cv_search_krb5_sendauth" != no; then
6447: test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
1.1 petere 6448:
1.179 petere 6449: else
6450: { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6451: echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6452: { (exit 1); exit 1; }; }
1.174 petere 6453: fi
1.179 petere 6454:
1.28 petere 6455: fi
6456:
6457: if test "$with_openssl" = yes ; then
1.179 petere 6458:
6459: echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6460: echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6461: if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6462: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 6463: else
1.179 petere 6464: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6465: LIBS="-lcrypto $LIBS"
1.179 petere 6466: cat >conftest.$ac_ext <<_ACEOF
6467: #line $LINENO "configure"
1.1 petere 6468: #include "confdefs.h"
1.179 petere 6469:
1.28 petere 6470: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6471: #ifdef __cplusplus
6472: extern "C"
6473: #endif
1.28 petere 6474: /* We use char because int might match the return type of a gcc2
1.179 petere 6475: builtin and then its argument prototype would still apply. */
6476: char CRYPTO_new_ex_data ();
6477: #ifdef F77_DUMMY_MAIN
6478: # ifdef __cplusplus
6479: extern "C"
6480: # endif
6481: int F77_DUMMY_MAIN() { return 1; }
6482: #endif
6483: int
6484: main ()
6485: {
6486: CRYPTO_new_ex_data ();
6487: ;
6488: return 0;
6489: }
6490: _ACEOF
6491: rm -f conftest.$ac_objext conftest$ac_exeext
6492: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493: (eval $ac_link) 2>&5
6494: ac_status=$?
6495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496: (exit $ac_status); } &&
6497: { ac_try='test -s conftest$ac_exeext'
6498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499: (eval $ac_try) 2>&5
6500: ac_status=$?
6501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502: (exit $ac_status); }; }; then
6503: ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6504: else
6505: echo "$as_me: failed program was:" >&5
6506: cat conftest.$ac_ext >&5
6507: ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6508: fi
6509: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510: LIBS=$ac_check_lib_save_LIBS
6511: fi
6512: echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6513: echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6514: if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6515: cat >>confdefs.h <<_ACEOF
6516: #define HAVE_LIBCRYPTO 1
6517: _ACEOF
1.1 petere 6518:
1.28 petere 6519: LIBS="-lcrypto $LIBS"
1.1 petere 6520:
6521: else
1.179 petere 6522: { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6523: echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6524: { (exit 1); exit 1; }; }
1.1 petere 6525: fi
6526:
1.179 petere 6527:
6528: echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6529: echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6530: if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6531: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 6532: else
1.179 petere 6533: ac_check_lib_save_LIBS=$LIBS
1.28 petere 6534: LIBS="-lssl $LIBS"
1.179 petere 6535: cat >conftest.$ac_ext <<_ACEOF
6536: #line $LINENO "configure"
1.1 petere 6537: #include "confdefs.h"
1.179 petere 6538:
1.21 petere 6539: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6540: #ifdef __cplusplus
6541: extern "C"
6542: #endif
1.21 petere 6543: /* We use char because int might match the return type of a gcc2
1.179 petere 6544: builtin and then its argument prototype would still apply. */
6545: char SSL_library_init ();
6546: #ifdef F77_DUMMY_MAIN
6547: # ifdef __cplusplus
6548: extern "C"
6549: # endif
6550: int F77_DUMMY_MAIN() { return 1; }
6551: #endif
6552: int
6553: main ()
6554: {
6555: SSL_library_init ();
6556: ;
6557: return 0;
6558: }
6559: _ACEOF
6560: rm -f conftest.$ac_objext conftest$ac_exeext
6561: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562: (eval $ac_link) 2>&5
6563: ac_status=$?
6564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565: (exit $ac_status); } &&
6566: { ac_try='test -s conftest$ac_exeext'
6567: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568: (eval $ac_try) 2>&5
6569: ac_status=$?
6570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571: (exit $ac_status); }; }; then
6572: ac_cv_lib_ssl_SSL_library_init=yes
6573: else
6574: echo "$as_me: failed program was:" >&5
6575: cat conftest.$ac_ext >&5
6576: ac_cv_lib_ssl_SSL_library_init=no
6577: fi
6578: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579: LIBS=$ac_check_lib_save_LIBS
6580: fi
6581: echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6582: echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6583: if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6584: cat >>confdefs.h <<_ACEOF
6585: #define HAVE_LIBSSL 1
6586: _ACEOF
1.28 petere 6587:
6588: LIBS="-lssl $LIBS"
6589:
1.1 petere 6590: else
1.179 petere 6591: { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6592: echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6593: { (exit 1); exit 1; }; }
1.21 petere 6594: fi
1.28 petere 6595:
1.1 petere 6596: fi
6597:
1.146 momjian 6598: if test "$with_pam" = yes ; then
1.179 petere 6599:
6600: echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6601: echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6602: if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6603: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 6604: else
1.179 petere 6605: ac_check_lib_save_LIBS=$LIBS
1.146 momjian 6606: LIBS="-lpam $LIBS"
1.179 petere 6607: cat >conftest.$ac_ext <<_ACEOF
6608: #line $LINENO "configure"
1.146 momjian 6609: #include "confdefs.h"
1.179 petere 6610:
1.146 momjian 6611: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 6612: #ifdef __cplusplus
6613: extern "C"
6614: #endif
1.146 momjian 6615: /* We use char because int might match the return type of a gcc2
1.179 petere 6616: builtin and then its argument prototype would still apply. */
6617: char pam_start ();
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: pam_start ();
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_pam_pam_start=yes
6645: else
6646: echo "$as_me: failed program was:" >&5
6647: cat conftest.$ac_ext >&5
6648: ac_cv_lib_pam_pam_start=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_pam_pam_start" >&5
6654: echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6655: if test $ac_cv_lib_pam_pam_start = yes; then
6656: cat >>confdefs.h <<_ACEOF
6657: #define HAVE_LIBPAM 1
6658: _ACEOF
1.146 momjian 6659:
6660: LIBS="-lpam $LIBS"
6661:
6662: else
1.179 petere 6663: { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6664: echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6665: { (exit 1); exit 1; }; }
1.146 momjian 6666: fi
6667:
6668: fi
6669:
1.181 petere 6670:
6671: ##
6672: ## Header files
6673: ##
1.203 petere 6674:
1.181 petere 6675: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.179 petere 6676: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6677: if test "${ac_cv_header_stdc+set}" = set; then
6678: echo $ECHO_N "(cached) $ECHO_C" >&6
6679: else
6680: cat >conftest.$ac_ext <<_ACEOF
6681: #line $LINENO "configure"
1.135 petere 6682: #include "confdefs.h"
1.179 petere 6683: #include <stdlib.h>
6684: #include <stdarg.h>
6685: #include <string.h>
6686: #include <float.h>
6687:
6688: _ACEOF
6689: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691: ac_status=$?
6692: egrep -v '^ *\+' conftest.er1 >conftest.err
6693: rm -f conftest.er1
6694: cat conftest.err >&5
6695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696: (exit $ac_status); } >/dev/null; then
6697: if test -s conftest.err; then
6698: ac_cpp_err=$ac_c_preproc_warn_flag
6699: else
6700: ac_cpp_err=
6701: fi
6702: else
6703: ac_cpp_err=yes
6704: fi
6705: if test -z "$ac_cpp_err"; then
6706: ac_cv_header_stdc=yes
1.135 petere 6707: else
1.179 petere 6708: echo "$as_me: failed program was:" >&5
1.135 petere 6709: cat conftest.$ac_ext >&5
1.179 petere 6710: ac_cv_header_stdc=no
1.135 petere 6711: fi
1.179 petere 6712: rm -f conftest.err conftest.$ac_ext
6713:
6714: if test $ac_cv_header_stdc = yes; then
6715: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716: cat >conftest.$ac_ext <<_ACEOF
6717: #line $LINENO "configure"
1.135 petere 6718: #include "confdefs.h"
1.179 petere 6719: #include <string.h>
1.135 petere 6720:
1.179 petere 6721: _ACEOF
6722: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723: egrep "memchr" >/dev/null 2>&1; then
6724: :
1.135 petere 6725: else
1.179 petere 6726: ac_cv_header_stdc=no
1.135 petere 6727: fi
6728: rm -f conftest*
1.179 petere 6729:
1.135 petere 6730: fi
6731:
1.179 petere 6732: if test $ac_cv_header_stdc = yes; then
6733: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734: cat >conftest.$ac_ext <<_ACEOF
6735: #line $LINENO "configure"
1.135 petere 6736: #include "confdefs.h"
1.179 petere 6737: #include <stdlib.h>
6738:
6739: _ACEOF
6740: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741: egrep "free" >/dev/null 2>&1; then
6742: :
1.135 petere 6743: else
1.179 petere 6744: ac_cv_header_stdc=no
1.135 petere 6745: fi
6746: rm -f conftest*
1.179 petere 6747:
1.135 petere 6748: fi
1.179 petere 6749:
6750: if test $ac_cv_header_stdc = yes; then
6751: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6752: if test "$cross_compiling" = yes; then
1.135 petere 6753: :
6754: else
1.179 petere 6755: cat >conftest.$ac_ext <<_ACEOF
6756: #line $LINENO "configure"
6757: #include "confdefs.h"
6758: #include <ctype.h>
6759: #if ((' ' & 0x0FF) == 0x020)
6760: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6761: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6762: #else
6763: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6764: || ('j' <= (c) && (c) <= 'r') \
6765: || ('s' <= (c) && (c) <= 'z'))
6766: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6767: #endif
1.135 petere 6768:
1.179 petere 6769: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770: int
6771: main ()
6772: {
6773: int i;
6774: for (i = 0; i < 256; i++)
6775: if (XOR (islower (i), ISLOWER (i))
6776: || toupper (i) != TOUPPER (i))
6777: exit(2);
6778: exit (0);
6779: }
6780: _ACEOF
6781: rm -f conftest$ac_exeext
6782: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783: (eval $ac_link) 2>&5
6784: ac_status=$?
6785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6787: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788: (eval $ac_try) 2>&5
6789: ac_status=$?
6790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791: (exit $ac_status); }; }; then
6792: :
1.135 petere 6793: else
1.179 petere 6794: echo "$as_me: program exited with status $ac_status" >&5
1.186 petere 6795: echo "$as_me: failed program was:" >&5
6796: cat conftest.$ac_ext >&5
6797: ( exit $ac_status )
6798: ac_cv_header_stdc=no
6799: fi
6800: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6801: fi
6802: fi
6803: fi
6804: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6805: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6806: if test $ac_cv_header_stdc = yes; then
6807:
6808: cat >>confdefs.h <<\_ACEOF
6809: #define STDC_HEADERS 1
6810: _ACEOF
6811:
6812: fi
6813:
6814: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6815:
6816:
6817:
6818:
6819:
6820:
6821:
6822:
6823:
6824: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6825: inttypes.h stdint.h unistd.h
6826: do
6827: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828: echo "$as_me:$LINENO: checking for $ac_header" >&5
6829: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831: echo $ECHO_N "(cached) $ECHO_C" >&6
6832: else
6833: cat >conftest.$ac_ext <<_ACEOF
6834: #line $LINENO "configure"
6835: #include "confdefs.h"
6836: $ac_includes_default
6837:
6838: #include <$ac_header>
6839: _ACEOF
6840: rm -f conftest.$ac_objext
6841: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842: (eval $ac_compile) 2>&5
6843: ac_status=$?
6844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845: (exit $ac_status); } &&
6846: { ac_try='test -s conftest.$ac_objext'
6847: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848: (eval $ac_try) 2>&5
6849: ac_status=$?
6850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851: (exit $ac_status); }; }; then
6852: eval "$as_ac_Header=yes"
6853: else
6854: echo "$as_me: failed program was:" >&5
6855: cat conftest.$ac_ext >&5
6856: eval "$as_ac_Header=no"
6857: fi
6858: rm -f conftest.$ac_objext conftest.$ac_ext
6859: fi
6860: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6861: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6863: cat >>confdefs.h <<_ACEOF
6864: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6865: _ACEOF
6866:
6867: fi
6868:
6869: done
6870:
6871:
6872:
6873:
6874:
6875:
6876:
6877:
6878:
6879:
6880:
6881:
6882:
6883:
6884:
6885:
6886:
6887:
6888:
6889:
6890: 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
6891: do
6892: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894: echo "$as_me:$LINENO: checking for $ac_header" >&5
6895: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6896: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897: echo $ECHO_N "(cached) $ECHO_C" >&6
6898: fi
6899: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6901: else
6902: # Is the header compilable?
6903: echo "$as_me:$LINENO: checking $ac_header usability" >&5
6904: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6905: cat >conftest.$ac_ext <<_ACEOF
6906: #line $LINENO "configure"
6907: #include "confdefs.h"
6908: $ac_includes_default
6909: #include <$ac_header>
6910: _ACEOF
6911: rm -f conftest.$ac_objext
6912: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913: (eval $ac_compile) 2>&5
6914: ac_status=$?
6915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916: (exit $ac_status); } &&
6917: { ac_try='test -s conftest.$ac_objext'
6918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919: (eval $ac_try) 2>&5
6920: ac_status=$?
6921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922: (exit $ac_status); }; }; then
6923: ac_header_compiler=yes
6924: else
6925: echo "$as_me: failed program was:" >&5
6926: cat conftest.$ac_ext >&5
6927: ac_header_compiler=no
6928: fi
6929: rm -f conftest.$ac_objext conftest.$ac_ext
6930: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6931: echo "${ECHO_T}$ac_header_compiler" >&6
6932:
6933: # Is the header present?
6934: echo "$as_me:$LINENO: checking $ac_header presence" >&5
6935: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6936: cat >conftest.$ac_ext <<_ACEOF
6937: #line $LINENO "configure"
6938: #include "confdefs.h"
6939: #include <$ac_header>
6940: _ACEOF
6941: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6942: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6943: ac_status=$?
6944: egrep -v '^ *\+' conftest.er1 >conftest.err
6945: rm -f conftest.er1
6946: cat conftest.err >&5
6947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948: (exit $ac_status); } >/dev/null; then
6949: if test -s conftest.err; then
6950: ac_cpp_err=$ac_c_preproc_warn_flag
6951: else
6952: ac_cpp_err=
6953: fi
6954: else
6955: ac_cpp_err=yes
6956: fi
6957: if test -z "$ac_cpp_err"; then
6958: ac_header_preproc=yes
6959: else
6960: echo "$as_me: failed program was:" >&5
6961: cat conftest.$ac_ext >&5
6962: ac_header_preproc=no
6963: fi
6964: rm -f conftest.err conftest.$ac_ext
6965: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966: echo "${ECHO_T}$ac_header_preproc" >&6
6967:
6968: # So? What about this header?
6969: case $ac_header_compiler:$ac_header_preproc in
6970: yes:no )
6971: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6974: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6975: no:yes )
6976: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6977: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6978: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6979: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6980: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6981: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6982: esac
6983: echo "$as_me:$LINENO: checking for $ac_header" >&5
6984: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986: echo $ECHO_N "(cached) $ECHO_C" >&6
6987: else
6988: eval "$as_ac_Header=$ac_header_preproc"
6989: fi
6990: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992:
6993: fi
6994: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995: cat >>confdefs.h <<_ACEOF
6996: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997: _ACEOF
6998:
6999: fi
7000:
7001: done
7002:
7003:
7004: # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7005: # netinet/in.h is included first.
7006:
7007: for ac_header in netinet/in.h
7008: do
7009: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7010: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011: echo "$as_me:$LINENO: checking for $ac_header" >&5
7012: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7013: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7014: echo $ECHO_N "(cached) $ECHO_C" >&6
7015: fi
7016: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7017: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7018: else
7019: # Is the header compilable?
7020: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7021: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7022: cat >conftest.$ac_ext <<_ACEOF
7023: #line $LINENO "configure"
7024: #include "confdefs.h"
7025: $ac_includes_default
7026: #include <$ac_header>
7027: _ACEOF
7028: rm -f conftest.$ac_objext
7029: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030: (eval $ac_compile) 2>&5
7031: ac_status=$?
7032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033: (exit $ac_status); } &&
7034: { ac_try='test -s conftest.$ac_objext'
7035: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036: (eval $ac_try) 2>&5
7037: ac_status=$?
7038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039: (exit $ac_status); }; }; then
7040: ac_header_compiler=yes
7041: else
7042: echo "$as_me: failed program was:" >&5
7043: cat conftest.$ac_ext >&5
7044: ac_header_compiler=no
7045: fi
7046: rm -f conftest.$ac_objext conftest.$ac_ext
7047: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7048: echo "${ECHO_T}$ac_header_compiler" >&6
7049:
7050: # Is the header present?
7051: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7052: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7053: cat >conftest.$ac_ext <<_ACEOF
7054: #line $LINENO "configure"
7055: #include "confdefs.h"
7056: #include <$ac_header>
7057: _ACEOF
7058: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060: ac_status=$?
7061: egrep -v '^ *\+' conftest.er1 >conftest.err
7062: rm -f conftest.er1
7063: cat conftest.err >&5
7064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065: (exit $ac_status); } >/dev/null; then
7066: if test -s conftest.err; then
7067: ac_cpp_err=$ac_c_preproc_warn_flag
7068: else
7069: ac_cpp_err=
7070: fi
7071: else
7072: ac_cpp_err=yes
7073: fi
7074: if test -z "$ac_cpp_err"; then
7075: ac_header_preproc=yes
7076: else
7077: echo "$as_me: failed program was:" >&5
7078: cat conftest.$ac_ext >&5
7079: ac_header_preproc=no
7080: fi
7081: rm -f conftest.err conftest.$ac_ext
7082: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083: echo "${ECHO_T}$ac_header_preproc" >&6
7084:
7085: # So? What about this header?
7086: case $ac_header_compiler:$ac_header_preproc in
7087: yes:no )
7088: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7091: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7092: no:yes )
7093: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7096: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7097: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7098: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7099: esac
7100: echo "$as_me:$LINENO: checking for $ac_header" >&5
7101: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7102: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103: echo $ECHO_N "(cached) $ECHO_C" >&6
7104: else
7105: eval "$as_ac_Header=$ac_header_preproc"
1.179 petere 7106: fi
1.186 petere 7107: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7108: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7109:
1.135 petere 7110: fi
1.186 petere 7111: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7112: cat >>confdefs.h <<_ACEOF
7113: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.179 petere 7114: _ACEOF
1.135 petere 7115:
7116: fi
7117:
1.186 petere 7118: done
1.179 petere 7119:
7120:
1.186 petere 7121: for ac_header in netinet/tcp.h
1.179 petere 7122: do
7123: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124: echo "$as_me:$LINENO: checking for $ac_header" >&5
7125: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7126: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127: echo $ECHO_N "(cached) $ECHO_C" >&6
7128: else
7129: cat >conftest.$ac_ext <<_ACEOF
7130: #line $LINENO "configure"
7131: #include "confdefs.h"
7132: $ac_includes_default
1.186 petere 7133: #ifdef HAVE_NETINET_IN_H
7134: #include <netinet/in.h>
7135: #endif
7136:
1.179 petere 7137:
7138: #include <$ac_header>
7139: _ACEOF
7140: rm -f conftest.$ac_objext
7141: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142: (eval $ac_compile) 2>&5
7143: ac_status=$?
7144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145: (exit $ac_status); } &&
7146: { ac_try='test -s conftest.$ac_objext'
7147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148: (eval $ac_try) 2>&5
7149: ac_status=$?
7150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151: (exit $ac_status); }; }; then
7152: eval "$as_ac_Header=yes"
7153: else
7154: echo "$as_me: failed program was:" >&5
7155: cat conftest.$ac_ext >&5
7156: eval "$as_ac_Header=no"
7157: fi
7158: rm -f conftest.$ac_objext conftest.$ac_ext
7159: fi
7160: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7161: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7162: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163: cat >>confdefs.h <<_ACEOF
7164: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165: _ACEOF
1.135 petere 7166:
7167: fi
7168:
1.1 petere 7169: done
7170:
1.29 petere 7171:
1.186 petere 7172: if test "$with_readline" = yes; then
1.179 petere 7173:
1.186 petere 7174: for ac_header in readline/readline.h
1.181 petere 7175: do
7176: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178: echo "$as_me:$LINENO: checking for $ac_header" >&5
7179: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7181: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 7182: fi
7183: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7184: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7185: else
1.181 petere 7186: # Is the header compilable?
7187: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7188: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7189: cat >conftest.$ac_ext <<_ACEOF
7190: #line $LINENO "configure"
1.1 petere 7191: #include "confdefs.h"
1.181 petere 7192: $ac_includes_default
7193: #include <$ac_header>
1.179 petere 7194: _ACEOF
1.181 petere 7195: rm -f conftest.$ac_objext
7196: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197: (eval $ac_compile) 2>&5
1.179 petere 7198: ac_status=$?
7199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200: (exit $ac_status); } &&
1.181 petere 7201: { ac_try='test -s conftest.$ac_objext'
1.179 petere 7202: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203: (eval $ac_try) 2>&5
7204: ac_status=$?
7205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206: (exit $ac_status); }; }; then
1.181 petere 7207: ac_header_compiler=yes
1.1 petere 7208: else
1.179 petere 7209: echo "$as_me: failed program was:" >&5
7210: cat conftest.$ac_ext >&5
1.181 petere 7211: ac_header_compiler=no
1.68 tgl 7212: fi
1.181 petere 7213: rm -f conftest.$ac_objext conftest.$ac_ext
7214: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7215: echo "${ECHO_T}$ac_header_compiler" >&6
7216:
7217: # Is the header present?
7218: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7219: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7220: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 7221: #line $LINENO "configure"
1.68 tgl 7222: #include "confdefs.h"
1.181 petere 7223: #include <$ac_header>
1.179 petere 7224: _ACEOF
1.181 petere 7225: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7226: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.179 petere 7227: ac_status=$?
1.181 petere 7228: egrep -v '^ *\+' conftest.er1 >conftest.err
7229: rm -f conftest.er1
7230: cat conftest.err >&5
1.179 petere 7231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 7232: (exit $ac_status); } >/dev/null; then
7233: if test -s conftest.err; then
7234: ac_cpp_err=$ac_c_preproc_warn_flag
7235: else
7236: ac_cpp_err=
7237: fi
7238: else
7239: ac_cpp_err=yes
7240: fi
7241: if test -z "$ac_cpp_err"; then
7242: ac_header_preproc=yes
1.68 tgl 7243: else
1.179 petere 7244: echo "$as_me: failed program was:" >&5
1.181 petere 7245: cat conftest.$ac_ext >&5
7246: ac_header_preproc=no
1.179 petere 7247: fi
1.181 petere 7248: rm -f conftest.err conftest.$ac_ext
7249: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250: echo "${ECHO_T}$ac_header_preproc" >&6
7251:
7252: # So? What about this header?
7253: case $ac_header_compiler:$ac_header_preproc in
7254: yes:no )
7255: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7258: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7259: no:yes )
7260: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7261: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7262: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7263: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7264: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7265: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7266: esac
7267: echo "$as_me:$LINENO: checking for $ac_header" >&5
7268: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7269: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7270: echo $ECHO_N "(cached) $ECHO_C" >&6
7271: else
7272: eval "$as_ac_Header=$ac_header_preproc"
1.179 petere 7273: fi
1.181 petere 7274: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276:
1.68 tgl 7277: fi
1.181 petere 7278: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279: cat >>confdefs.h <<_ACEOF
7280: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281: _ACEOF
1.68 tgl 7282:
1.186 petere 7283: else
1.181 petere 7284:
1.186 petere 7285: for ac_header in readline.h
1.181 petere 7286: do
7287: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289: echo "$as_me:$LINENO: checking for $ac_header" >&5
7290: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7292: echo $ECHO_N "(cached) $ECHO_C" >&6
7293: fi
1.181 petere 7294: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7296: else
7297: # Is the header compilable?
1.181 petere 7298: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7300: cat >conftest.$ac_ext <<_ACEOF
7301: #line $LINENO "configure"
1.78 petere 7302: #include "confdefs.h"
1.179 petere 7303: $ac_includes_default
1.181 petere 7304: #include <$ac_header>
1.179 petere 7305: _ACEOF
7306: rm -f conftest.$ac_objext
7307: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308: (eval $ac_compile) 2>&5
7309: ac_status=$?
7310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311: (exit $ac_status); } &&
7312: { ac_try='test -s conftest.$ac_objext'
7313: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314: (eval $ac_try) 2>&5
7315: ac_status=$?
7316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317: (exit $ac_status); }; }; then
7318: ac_header_compiler=yes
7319: else
7320: echo "$as_me: failed program was:" >&5
7321: cat conftest.$ac_ext >&5
7322: ac_header_compiler=no
7323: fi
7324: rm -f conftest.$ac_objext conftest.$ac_ext
7325: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326: echo "${ECHO_T}$ac_header_compiler" >&6
7327:
7328: # Is the header present?
1.181 petere 7329: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 7331: cat >conftest.$ac_ext <<_ACEOF
7332: #line $LINENO "configure"
1.78 petere 7333: #include "confdefs.h"
1.181 petere 7334: #include <$ac_header>
1.179 petere 7335: _ACEOF
7336: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7338: ac_status=$?
7339: egrep -v '^ *\+' conftest.er1 >conftest.err
7340: rm -f conftest.er1
7341: cat conftest.err >&5
7342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343: (exit $ac_status); } >/dev/null; then
7344: if test -s conftest.err; then
7345: ac_cpp_err=$ac_c_preproc_warn_flag
7346: else
7347: ac_cpp_err=
7348: fi
1.78 petere 7349: else
1.179 petere 7350: ac_cpp_err=yes
1.78 petere 7351: fi
1.179 petere 7352: if test -z "$ac_cpp_err"; then
7353: ac_header_preproc=yes
1.78 petere 7354: else
1.179 petere 7355: echo "$as_me: failed program was:" >&5
1.78 petere 7356: cat conftest.$ac_ext >&5
1.179 petere 7357: ac_header_preproc=no
1.78 petere 7358: fi
1.179 petere 7359: rm -f conftest.err conftest.$ac_ext
7360: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361: echo "${ECHO_T}$ac_header_preproc" >&6
7362:
7363: # So? What about this header?
7364: case $ac_header_compiler:$ac_header_preproc in
7365: yes:no )
1.181 petere 7366: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7369: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7370: no:yes )
1.181 petere 7371: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7377: esac
1.181 petere 7378: echo "$as_me:$LINENO: checking for $ac_header" >&5
7379: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7381: echo $ECHO_N "(cached) $ECHO_C" >&6
7382: else
1.181 petere 7383: eval "$as_ac_Header=$ac_header_preproc"
7384: fi
7385: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387:
1.78 petere 7388: fi
1.181 petere 7389: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390: cat >>confdefs.h <<_ACEOF
7391: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392: _ACEOF
1.78 petere 7393:
1.186 petere 7394: else
7395: { { echo "$as_me:$LINENO: error: readline header not found
1.217 momjian 7396: If you have readline already installed, see config.log for details on the
7397: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7398: Use --without-readline to disable readline support." >&5
7399: echo "$as_me: error: readline header not found
1.217 momjian 7400: If you have readline already installed, see config.log for details on the
7401: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7402: Use --without-readline to disable readline support." >&2;}
7403: { (exit 1); exit 1; }; }
7404: fi
7405:
7406: done
7407:
1.179 petere 7408: fi
1.181 petere 7409:
7410: done
1.78 petere 7411:
7412:
1.186 petere 7413: for ac_header in readline/history.h
1.68 tgl 7414: do
1.181 petere 7415: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.186 petere 7416: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.181 petere 7418: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7420: echo $ECHO_N "(cached) $ECHO_C" >&6
1.186 petere 7421: fi
7422: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7423: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.68 tgl 7424: else
1.186 petere 7425: # Is the header compilable?
7426: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7427: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7428: cat >conftest.$ac_ext <<_ACEOF
1.181 petere 7429: #line $LINENO "configure"
7430: #include "confdefs.h"
1.182 petere 7431: $ac_includes_default
1.181 petere 7432: #include <$ac_header>
7433: _ACEOF
7434: rm -f conftest.$ac_objext
7435: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436: (eval $ac_compile) 2>&5
7437: ac_status=$?
7438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439: (exit $ac_status); } &&
7440: { ac_try='test -s conftest.$ac_objext'
7441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442: (eval $ac_try) 2>&5
7443: ac_status=$?
7444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445: (exit $ac_status); }; }; then
1.186 petere 7446: ac_header_compiler=yes
1.1 petere 7447: else
1.181 petere 7448: echo "$as_me: failed program was:" >&5
7449: cat conftest.$ac_ext >&5
1.186 petere 7450: ac_header_compiler=no
1.1 petere 7451: fi
1.181 petere 7452: rm -f conftest.$ac_objext conftest.$ac_ext
1.186 petere 7453: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7454: echo "${ECHO_T}$ac_header_compiler" >&6
7455:
7456: # Is the header present?
7457: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7458: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7459: cat >conftest.$ac_ext <<_ACEOF
7460: #line $LINENO "configure"
7461: #include "confdefs.h"
7462: #include <$ac_header>
7463: _ACEOF
7464: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7466: ac_status=$?
7467: egrep -v '^ *\+' conftest.er1 >conftest.err
7468: rm -f conftest.er1
7469: cat conftest.err >&5
7470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471: (exit $ac_status); } >/dev/null; then
7472: if test -s conftest.err; then
7473: ac_cpp_err=$ac_c_preproc_warn_flag
7474: else
7475: ac_cpp_err=
7476: fi
7477: else
7478: ac_cpp_err=yes
7479: fi
7480: if test -z "$ac_cpp_err"; then
7481: ac_header_preproc=yes
7482: else
7483: echo "$as_me: failed program was:" >&5
7484: cat conftest.$ac_ext >&5
7485: ac_header_preproc=no
7486: fi
7487: rm -f conftest.err conftest.$ac_ext
7488: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489: echo "${ECHO_T}$ac_header_preproc" >&6
7490:
7491: # So? What about this header?
7492: case $ac_header_compiler:$ac_header_preproc in
7493: yes:no )
7494: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7495: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7497: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7498: no:yes )
7499: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7500: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7501: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7502: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7503: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7505: esac
7506: echo "$as_me:$LINENO: checking for $ac_header" >&5
7507: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509: echo $ECHO_N "(cached) $ECHO_C" >&6
7510: else
7511: eval "$as_ac_Header=$ac_header_preproc"
1.1 petere 7512: fi
1.181 petere 7513: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.186 petere 7515:
7516: fi
1.181 petere 7517: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518: cat >>confdefs.h <<_ACEOF
7519: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520: _ACEOF
1.179 petere 7521:
1.186 petere 7522: else
1.29 petere 7523:
1.186 petere 7524: for ac_header in history.h
1.181 petere 7525: do
7526: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7528: echo "$as_me:$LINENO: checking for $ac_header" >&5
7529: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7530: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7531: echo $ECHO_N "(cached) $ECHO_C" >&6
7532: fi
1.181 petere 7533: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7534: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.179 petere 7535: else
7536: # Is the header compilable?
1.181 petere 7537: echo "$as_me:$LINENO: checking $ac_header usability" >&5
7538: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.179 petere 7539: cat >conftest.$ac_ext <<_ACEOF
7540: #line $LINENO "configure"
7541: #include "confdefs.h"
7542: $ac_includes_default
1.181 petere 7543: #include <$ac_header>
1.179 petere 7544: _ACEOF
7545: rm -f conftest.$ac_objext
7546: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547: (eval $ac_compile) 2>&5
7548: ac_status=$?
7549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550: (exit $ac_status); } &&
7551: { ac_try='test -s conftest.$ac_objext'
7552: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553: (eval $ac_try) 2>&5
7554: ac_status=$?
7555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556: (exit $ac_status); }; }; then
7557: ac_header_compiler=yes
7558: else
7559: echo "$as_me: failed program was:" >&5
7560: cat conftest.$ac_ext >&5
7561: ac_header_compiler=no
7562: fi
7563: rm -f conftest.$ac_objext conftest.$ac_ext
7564: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7565: echo "${ECHO_T}$ac_header_compiler" >&6
7566:
7567: # Is the header present?
1.181 petere 7568: echo "$as_me:$LINENO: checking $ac_header presence" >&5
7569: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.179 petere 7570: cat >conftest.$ac_ext <<_ACEOF
7571: #line $LINENO "configure"
1.1 petere 7572: #include "confdefs.h"
1.181 petere 7573: #include <$ac_header>
1.179 petere 7574: _ACEOF
7575: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7576: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7577: ac_status=$?
7578: egrep -v '^ *\+' conftest.er1 >conftest.err
7579: rm -f conftest.er1
7580: cat conftest.err >&5
7581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582: (exit $ac_status); } >/dev/null; then
7583: if test -s conftest.err; then
1.181 petere 7584: ac_cpp_err=$ac_c_preproc_warn_flag
1.179 petere 7585: else
7586: ac_cpp_err=
7587: fi
1.1 petere 7588: else
1.179 petere 7589: ac_cpp_err=yes
1.1 petere 7590: fi
1.179 petere 7591: if test -z "$ac_cpp_err"; then
7592: ac_header_preproc=yes
1.1 petere 7593: else
1.179 petere 7594: echo "$as_me: failed program was:" >&5
1.1 petere 7595: cat conftest.$ac_ext >&5
1.179 petere 7596: ac_header_preproc=no
1.1 petere 7597: fi
1.179 petere 7598: rm -f conftest.err conftest.$ac_ext
7599: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7600: echo "${ECHO_T}$ac_header_preproc" >&6
7601:
7602: # So? What about this header?
7603: case $ac_header_compiler:$ac_header_preproc in
7604: yes:no )
1.181 petere 7605: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7606: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7607: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7609: no:yes )
1.181 petere 7610: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7615: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7616: esac
1.181 petere 7617: echo "$as_me:$LINENO: checking for $ac_header" >&5
7618: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7619: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.179 petere 7620: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 7621: else
1.181 petere 7622: eval "$as_ac_Header=$ac_header_preproc"
1.29 petere 7623: fi
1.181 petere 7624: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.29 petere 7626:
1.1 petere 7627: fi
1.181 petere 7628: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7629: cat >>confdefs.h <<_ACEOF
7630: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631: _ACEOF
1.186 petere 7632:
7633: else
7634: { { echo "$as_me:$LINENO: error: history header not found
1.217 momjian 7635: If you have readline already installed, see config.log for details on the
7636: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7637: Use --without-readline to disable readline support." >&5
7638: echo "$as_me: error: history header not found
1.217 momjian 7639: If you have readline already installed, see config.log for details on the
7640: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7641: Use --without-readline to disable readline support." >&2;}
7642: { (exit 1); exit 1; }; }
1.181 petere 7643: fi
7644:
7645: done
7646:
1.186 petere 7647: fi
7648:
7649: done
1.179 petere 7650:
1.186 petere 7651: fi
1.1 petere 7652:
1.186 petere 7653: if test "$with_zlib" = yes; then
7654: if test "${ac_cv_header_zlib_h+set}" = set; then
7655: echo "$as_me:$LINENO: checking for zlib.h" >&5
7656: echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7657: if test "${ac_cv_header_zlib_h+set}" = set; then
1.179 petere 7658: echo $ECHO_N "(cached) $ECHO_C" >&6
7659: fi
1.186 petere 7660: echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7661: echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
1.179 petere 7662: else
7663: # Is the header compilable?
1.186 petere 7664: echo "$as_me:$LINENO: checking zlib.h usability" >&5
7665: echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
1.179 petere 7666: cat >conftest.$ac_ext <<_ACEOF
7667: #line $LINENO "configure"
7668: #include "confdefs.h"
7669: $ac_includes_default
1.186 petere 7670: #include <zlib.h>
1.179 petere 7671: _ACEOF
7672: rm -f conftest.$ac_objext
7673: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7674: (eval $ac_compile) 2>&5
7675: ac_status=$?
7676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677: (exit $ac_status); } &&
7678: { ac_try='test -s conftest.$ac_objext'
7679: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680: (eval $ac_try) 2>&5
7681: ac_status=$?
7682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683: (exit $ac_status); }; }; then
7684: ac_header_compiler=yes
7685: else
7686: echo "$as_me: failed program was:" >&5
7687: cat conftest.$ac_ext >&5
7688: ac_header_compiler=no
7689: fi
7690: rm -f conftest.$ac_objext conftest.$ac_ext
7691: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692: echo "${ECHO_T}$ac_header_compiler" >&6
7693:
7694: # Is the header present?
1.186 petere 7695: echo "$as_me:$LINENO: checking zlib.h presence" >&5
7696: echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
1.179 petere 7697: cat >conftest.$ac_ext <<_ACEOF
7698: #line $LINENO "configure"
7699: #include "confdefs.h"
1.186 petere 7700: #include <zlib.h>
1.179 petere 7701: _ACEOF
7702: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7703: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7704: ac_status=$?
7705: egrep -v '^ *\+' conftest.er1 >conftest.err
7706: rm -f conftest.er1
7707: cat conftest.err >&5
7708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709: (exit $ac_status); } >/dev/null; then
7710: if test -s conftest.err; then
7711: ac_cpp_err=$ac_c_preproc_warn_flag
7712: else
7713: ac_cpp_err=
7714: fi
7715: else
7716: ac_cpp_err=yes
7717: fi
7718: if test -z "$ac_cpp_err"; then
7719: ac_header_preproc=yes
1.1 petere 7720: else
1.179 petere 7721: echo "$as_me: failed program was:" >&5
1.1 petere 7722: cat conftest.$ac_ext >&5
1.179 petere 7723: ac_header_preproc=no
1.1 petere 7724: fi
1.179 petere 7725: rm -f conftest.err conftest.$ac_ext
7726: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7727: echo "${ECHO_T}$ac_header_preproc" >&6
7728:
7729: # So? What about this header?
7730: case $ac_header_compiler:$ac_header_preproc in
7731: yes:no )
1.186 petere 7732: { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7733: echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7734: { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7735: echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7736: no:yes )
1.186 petere 7737: { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7738: echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7739: { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7740: echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7741: { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7742: echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7743: esac
1.186 petere 7744: echo "$as_me:$LINENO: checking for zlib.h" >&5
7745: echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7746: if test "${ac_cv_header_zlib_h+set}" = set; then
1.179 petere 7747: echo $ECHO_N "(cached) $ECHO_C" >&6
7748: else
1.186 petere 7749: ac_cv_header_zlib_h=$ac_header_preproc
1.1 petere 7750: fi
1.186 petere 7751: echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7752: echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
1.1 petere 7753:
1.179 petere 7754: fi
1.186 petere 7755: if test $ac_cv_header_zlib_h = yes; then
7756: :
7757: else
7758: { { echo "$as_me:$LINENO: error: zlib header not found
1.217 momjian 7759: If you have readline already installed, see config.log for details on the
7760: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7761: Use --without-zlib to disable zlib support." >&5
7762: echo "$as_me: error: zlib header not found
1.217 momjian 7763: If you have readline already installed, see config.log for details on the
7764: failure. It is possible the compiler isn't looking in the proper directory.
1.186 petere 7765: Use --without-zlib to disable zlib support." >&2;}
7766: { (exit 1); exit 1; }; }
1.1 petere 7767: fi
7768:
1.179 petere 7769:
1.186 petere 7770: fi
1.179 petere 7771:
1.181 petere 7772: if test "$with_krb4" = yes ; then
7773: if test "${ac_cv_header_krb_h+set}" = set; then
7774: echo "$as_me:$LINENO: checking for krb.h" >&5
7775: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7776: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 7777: echo $ECHO_N "(cached) $ECHO_C" >&6
7778: fi
1.181 petere 7779: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7780: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.179 petere 7781: else
7782: # Is the header compilable?
1.181 petere 7783: echo "$as_me:$LINENO: checking krb.h usability" >&5
7784: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.179 petere 7785: cat >conftest.$ac_ext <<_ACEOF
7786: #line $LINENO "configure"
7787: #include "confdefs.h"
7788: $ac_includes_default
1.181 petere 7789: #include <krb.h>
1.179 petere 7790: _ACEOF
7791: rm -f conftest.$ac_objext
7792: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793: (eval $ac_compile) 2>&5
7794: ac_status=$?
7795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796: (exit $ac_status); } &&
7797: { ac_try='test -s conftest.$ac_objext'
7798: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799: (eval $ac_try) 2>&5
7800: ac_status=$?
7801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802: (exit $ac_status); }; }; then
7803: ac_header_compiler=yes
7804: else
7805: echo "$as_me: failed program was:" >&5
7806: cat conftest.$ac_ext >&5
7807: ac_header_compiler=no
7808: fi
7809: rm -f conftest.$ac_objext conftest.$ac_ext
7810: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7811: echo "${ECHO_T}$ac_header_compiler" >&6
7812:
7813: # Is the header present?
1.181 petere 7814: echo "$as_me:$LINENO: checking krb.h presence" >&5
7815: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
1.179 petere 7816: cat >conftest.$ac_ext <<_ACEOF
7817: #line $LINENO "configure"
7818: #include "confdefs.h"
1.181 petere 7819: #include <krb.h>
1.179 petere 7820: _ACEOF
7821: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7822: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7823: ac_status=$?
7824: egrep -v '^ *\+' conftest.er1 >conftest.err
7825: rm -f conftest.er1
7826: cat conftest.err >&5
7827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828: (exit $ac_status); } >/dev/null; then
7829: if test -s conftest.err; then
7830: ac_cpp_err=$ac_c_preproc_warn_flag
7831: else
7832: ac_cpp_err=
7833: fi
1.1 petere 7834: else
1.179 petere 7835: ac_cpp_err=yes
7836: fi
7837: if test -z "$ac_cpp_err"; then
7838: ac_header_preproc=yes
1.1 petere 7839: else
1.179 petere 7840: echo "$as_me: failed program was:" >&5
1.1 petere 7841: cat conftest.$ac_ext >&5
1.179 petere 7842: ac_header_preproc=no
7843: fi
7844: rm -f conftest.err conftest.$ac_ext
7845: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7846: echo "${ECHO_T}$ac_header_preproc" >&6
7847:
7848: # So? What about this header?
7849: case $ac_header_compiler:$ac_header_preproc in
7850: yes:no )
1.181 petere 7851: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7852: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7853: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7854: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7855: no:yes )
1.181 petere 7856: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7857: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7858: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7859: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7860: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7861: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7862: esac
1.181 petere 7863: echo "$as_me:$LINENO: checking for krb.h" >&5
7864: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7865: if test "${ac_cv_header_krb_h+set}" = set; then
1.179 petere 7866: echo $ECHO_N "(cached) $ECHO_C" >&6
7867: else
1.181 petere 7868: ac_cv_header_krb_h=$ac_header_preproc
1.1 petere 7869: fi
1.181 petere 7870: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7871: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.1 petere 7872:
7873: fi
1.181 petere 7874: if test $ac_cv_header_krb_h = yes; then
7875: :
7876: else
7877: { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7878: echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7879: { (exit 1); exit 1; }; }
1.179 petere 7880: fi
1.5 petere 7881:
7882:
1.181 petere 7883: fi
1.5 petere 7884:
1.181 petere 7885: if test "$with_krb5" = yes ; then
7886: if test "${ac_cv_header_krb5_h+set}" = set; then
7887: echo "$as_me:$LINENO: checking for krb5.h" >&5
7888: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7889: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 7890: echo $ECHO_N "(cached) $ECHO_C" >&6
1.181 petere 7891: fi
7892: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7893: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 7894: else
7895: # Is the header compilable?
1.181 petere 7896: echo "$as_me:$LINENO: checking krb5.h usability" >&5
7897: echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
1.179 petere 7898: cat >conftest.$ac_ext <<_ACEOF
7899: #line $LINENO "configure"
7900: #include "confdefs.h"
7901: $ac_includes_default
1.181 petere 7902: #include <krb5.h>
1.179 petere 7903: _ACEOF
7904: rm -f conftest.$ac_objext
7905: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906: (eval $ac_compile) 2>&5
7907: ac_status=$?
7908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909: (exit $ac_status); } &&
7910: { ac_try='test -s conftest.$ac_objext'
7911: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912: (eval $ac_try) 2>&5
7913: ac_status=$?
7914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915: (exit $ac_status); }; }; then
7916: ac_header_compiler=yes
7917: else
7918: echo "$as_me: failed program was:" >&5
7919: cat conftest.$ac_ext >&5
7920: ac_header_compiler=no
7921: fi
7922: rm -f conftest.$ac_objext conftest.$ac_ext
7923: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7924: echo "${ECHO_T}$ac_header_compiler" >&6
7925:
7926: # Is the header present?
1.181 petere 7927: echo "$as_me:$LINENO: checking krb5.h presence" >&5
7928: echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
1.179 petere 7929: cat >conftest.$ac_ext <<_ACEOF
7930: #line $LINENO "configure"
7931: #include "confdefs.h"
1.181 petere 7932: #include <krb5.h>
1.179 petere 7933: _ACEOF
7934: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7935: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7936: ac_status=$?
7937: egrep -v '^ *\+' conftest.er1 >conftest.err
7938: rm -f conftest.er1
7939: cat conftest.err >&5
7940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941: (exit $ac_status); } >/dev/null; then
7942: if test -s conftest.err; then
7943: ac_cpp_err=$ac_c_preproc_warn_flag
7944: else
7945: ac_cpp_err=
7946: fi
1.41 petere 7947: else
1.179 petere 7948: ac_cpp_err=yes
7949: fi
7950: if test -z "$ac_cpp_err"; then
7951: ac_header_preproc=yes
1.41 petere 7952: else
1.179 petere 7953: echo "$as_me: failed program was:" >&5
1.41 petere 7954: cat conftest.$ac_ext >&5
1.179 petere 7955: ac_header_preproc=no
7956: fi
7957: rm -f conftest.err conftest.$ac_ext
7958: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7959: echo "${ECHO_T}$ac_header_preproc" >&6
7960:
7961: # So? What about this header?
7962: case $ac_header_compiler:$ac_header_preproc in
7963: yes:no )
1.181 petere 7964: { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7965: echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7966: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7967: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7968: no:yes )
1.181 petere 7969: { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7970: echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7971: { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7972: echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7973: { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7974: echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 7975: esac
1.181 petere 7976: echo "$as_me:$LINENO: checking for krb5.h" >&5
7977: echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7978: if test "${ac_cv_header_krb5_h+set}" = set; then
1.179 petere 7979: echo $ECHO_N "(cached) $ECHO_C" >&6
7980: else
1.181 petere 7981: ac_cv_header_krb5_h=$ac_header_preproc
1.41 petere 7982: fi
1.181 petere 7983: echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7984: echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
1.179 petere 7985:
7986: fi
1.181 petere 7987: if test $ac_cv_header_krb5_h = yes; then
7988: :
7989: else
7990: { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7991: echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7992: { (exit 1); exit 1; }; }
1.41 petere 7993: fi
7994:
1.179 petere 7995:
1.181 petere 7996: if test "${ac_cv_header_com_err_h+set}" = set; then
7997: echo "$as_me:$LINENO: checking for com_err.h" >&5
7998: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7999: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8000: echo $ECHO_N "(cached) $ECHO_C" >&6
8001: fi
1.181 petere 8002: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8003: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8004: else
8005: # Is the header compilable?
1.181 petere 8006: echo "$as_me:$LINENO: checking com_err.h usability" >&5
8007: echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
1.179 petere 8008: cat >conftest.$ac_ext <<_ACEOF
8009: #line $LINENO "configure"
8010: #include "confdefs.h"
8011: $ac_includes_default
1.181 petere 8012: #include <com_err.h>
1.179 petere 8013: _ACEOF
8014: rm -f conftest.$ac_objext
8015: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016: (eval $ac_compile) 2>&5
8017: ac_status=$?
8018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019: (exit $ac_status); } &&
8020: { ac_try='test -s conftest.$ac_objext'
8021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022: (eval $ac_try) 2>&5
8023: ac_status=$?
8024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025: (exit $ac_status); }; }; then
8026: ac_header_compiler=yes
8027: else
8028: echo "$as_me: failed program was:" >&5
8029: cat conftest.$ac_ext >&5
8030: ac_header_compiler=no
8031: fi
8032: rm -f conftest.$ac_objext conftest.$ac_ext
8033: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034: echo "${ECHO_T}$ac_header_compiler" >&6
8035:
8036: # Is the header present?
1.181 petere 8037: echo "$as_me:$LINENO: checking com_err.h presence" >&5
8038: echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
1.179 petere 8039: cat >conftest.$ac_ext <<_ACEOF
8040: #line $LINENO "configure"
8041: #include "confdefs.h"
1.181 petere 8042: #include <com_err.h>
1.179 petere 8043: _ACEOF
8044: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8046: ac_status=$?
8047: egrep -v '^ *\+' conftest.er1 >conftest.err
8048: rm -f conftest.er1
8049: cat conftest.err >&5
8050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051: (exit $ac_status); } >/dev/null; then
8052: if test -s conftest.err; then
8053: ac_cpp_err=$ac_c_preproc_warn_flag
8054: else
8055: ac_cpp_err=
8056: fi
8057: else
8058: ac_cpp_err=yes
1.41 petere 8059: fi
1.179 petere 8060: if test -z "$ac_cpp_err"; then
8061: ac_header_preproc=yes
1.41 petere 8062: else
1.179 petere 8063: echo "$as_me: failed program was:" >&5
1.41 petere 8064: cat conftest.$ac_ext >&5
1.179 petere 8065: ac_header_preproc=no
1.41 petere 8066: fi
1.179 petere 8067: rm -f conftest.err conftest.$ac_ext
8068: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069: echo "${ECHO_T}$ac_header_preproc" >&6
8070:
8071: # So? What about this header?
8072: case $ac_header_compiler:$ac_header_preproc in
8073: yes:no )
1.181 petere 8074: { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8075: echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8077: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8078: no:yes )
1.181 petere 8079: { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8080: echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8081: { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8082: echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8083: { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8084: echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8085: esac
1.181 petere 8086: echo "$as_me:$LINENO: checking for com_err.h" >&5
8087: echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8088: if test "${ac_cv_header_com_err_h+set}" = set; then
1.179 petere 8089: echo $ECHO_N "(cached) $ECHO_C" >&6
8090: else
1.181 petere 8091: ac_cv_header_com_err_h=$ac_header_preproc
1.179 petere 8092: fi
1.181 petere 8093: echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8094: echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
1.179 petere 8095:
8096: fi
1.181 petere 8097: if test $ac_cv_header_com_err_h = yes; then
8098: :
8099: else
8100: { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8101: echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8102: { (exit 1); exit 1; }; }
1.41 petere 8103: fi
8104:
1.179 petere 8105:
1.181 petere 8106: fi
1.41 petere 8107:
1.181 petere 8108: if test "$with_openssl" = yes ; then
8109: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8110: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8111: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8112: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8113: echo $ECHO_N "(cached) $ECHO_C" >&6
8114: fi
1.181 petere 8115: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8116: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8117: else
8118: # Is the header compilable?
1.181 petere 8119: echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8120: echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
1.179 petere 8121: cat >conftest.$ac_ext <<_ACEOF
8122: #line $LINENO "configure"
8123: #include "confdefs.h"
8124: $ac_includes_default
1.181 petere 8125: #include <openssl/ssl.h>
1.179 petere 8126: _ACEOF
8127: rm -f conftest.$ac_objext
8128: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129: (eval $ac_compile) 2>&5
8130: ac_status=$?
8131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132: (exit $ac_status); } &&
8133: { ac_try='test -s conftest.$ac_objext'
8134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135: (eval $ac_try) 2>&5
8136: ac_status=$?
8137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138: (exit $ac_status); }; }; then
8139: ac_header_compiler=yes
8140: else
8141: echo "$as_me: failed program was:" >&5
8142: cat conftest.$ac_ext >&5
8143: ac_header_compiler=no
8144: fi
8145: rm -f conftest.$ac_objext conftest.$ac_ext
8146: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147: echo "${ECHO_T}$ac_header_compiler" >&6
8148:
8149: # Is the header present?
1.181 petere 8150: echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8151: echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
1.179 petere 8152: cat >conftest.$ac_ext <<_ACEOF
8153: #line $LINENO "configure"
8154: #include "confdefs.h"
1.181 petere 8155: #include <openssl/ssl.h>
1.179 petere 8156: _ACEOF
8157: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8158: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159: ac_status=$?
8160: egrep -v '^ *\+' conftest.er1 >conftest.err
8161: rm -f conftest.er1
8162: cat conftest.err >&5
8163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164: (exit $ac_status); } >/dev/null; then
8165: if test -s conftest.err; then
8166: ac_cpp_err=$ac_c_preproc_warn_flag
8167: else
8168: ac_cpp_err=
8169: fi
8170: else
8171: ac_cpp_err=yes
1.41 petere 8172: fi
1.179 petere 8173: if test -z "$ac_cpp_err"; then
8174: ac_header_preproc=yes
1.5 petere 8175: else
1.179 petere 8176: echo "$as_me: failed program was:" >&5
8177: cat conftest.$ac_ext >&5
8178: ac_header_preproc=no
8179: fi
8180: rm -f conftest.err conftest.$ac_ext
8181: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8182: echo "${ECHO_T}$ac_header_preproc" >&6
8183:
8184: # So? What about this header?
8185: case $ac_header_compiler:$ac_header_preproc in
8186: yes:no )
1.181 petere 8187: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8188: echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8189: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8190: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8191: no:yes )
1.181 petere 8192: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8193: echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8194: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8195: echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8196: { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8197: echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8198: esac
1.181 petere 8199: echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8200: echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8201: if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
1.179 petere 8202: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 8203: else
1.181 petere 8204: ac_cv_header_openssl_ssl_h=$ac_header_preproc
1.179 petere 8205: fi
1.181 petere 8206: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8207: echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
1.179 petere 8208:
1.1 petere 8209: fi
1.181 petere 8210: if test $ac_cv_header_openssl_ssl_h = yes; then
1.179 petere 8211: :
8212: else
1.181 petere 8213: { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8214: echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
1.179 petere 8215: { (exit 1); exit 1; }; }
1.5 petere 8216: fi
8217:
8218:
1.181 petere 8219: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8220: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8221: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8222: if test "${ac_cv_header_openssl_err_h+set}" = set; then
8223: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 petere 8224: fi
1.181 petere 8225: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8226: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8227: else
8228: # Is the header compilable?
1.181 petere 8229: echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8230: echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
1.179 petere 8231: cat >conftest.$ac_ext <<_ACEOF
8232: #line $LINENO "configure"
8233: #include "confdefs.h"
8234: $ac_includes_default
1.181 petere 8235: #include <openssl/err.h>
1.179 petere 8236: _ACEOF
8237: rm -f conftest.$ac_objext
8238: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239: (eval $ac_compile) 2>&5
8240: ac_status=$?
8241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242: (exit $ac_status); } &&
8243: { ac_try='test -s conftest.$ac_objext'
8244: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245: (eval $ac_try) 2>&5
8246: ac_status=$?
8247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248: (exit $ac_status); }; }; then
8249: ac_header_compiler=yes
8250: else
8251: echo "$as_me: failed program was:" >&5
8252: cat conftest.$ac_ext >&5
8253: ac_header_compiler=no
8254: fi
8255: rm -f conftest.$ac_objext conftest.$ac_ext
8256: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257: echo "${ECHO_T}$ac_header_compiler" >&6
8258:
8259: # Is the header present?
1.181 petere 8260: echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8261: echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
1.179 petere 8262: cat >conftest.$ac_ext <<_ACEOF
8263: #line $LINENO "configure"
8264: #include "confdefs.h"
1.181 petere 8265: #include <openssl/err.h>
1.179 petere 8266: _ACEOF
8267: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8268: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8269: ac_status=$?
8270: egrep -v '^ *\+' conftest.er1 >conftest.err
8271: rm -f conftest.er1
8272: cat conftest.err >&5
8273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274: (exit $ac_status); } >/dev/null; then
8275: if test -s conftest.err; then
8276: ac_cpp_err=$ac_c_preproc_warn_flag
8277: else
8278: ac_cpp_err=
8279: fi
1.29 petere 8280: else
1.179 petere 8281: ac_cpp_err=yes
8282: fi
8283: if test -z "$ac_cpp_err"; then
8284: ac_header_preproc=yes
1.1 petere 8285: else
1.179 petere 8286: echo "$as_me: failed program was:" >&5
1.1 petere 8287: cat conftest.$ac_ext >&5
1.179 petere 8288: ac_header_preproc=no
1.1 petere 8289: fi
1.179 petere 8290: rm -f conftest.err conftest.$ac_ext
8291: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8292: echo "${ECHO_T}$ac_header_preproc" >&6
8293:
8294: # So? What about this header?
8295: case $ac_header_compiler:$ac_header_preproc in
8296: yes:no )
1.181 petere 8297: { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8298: echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8299: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8300: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8301: no:yes )
1.181 petere 8302: { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8303: echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8304: { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8305: echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8306: { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8307: echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8308: esac
1.181 petere 8309: echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8310: echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8311: if test "${ac_cv_header_openssl_err_h+set}" = set; then
1.179 petere 8312: echo $ECHO_N "(cached) $ECHO_C" >&6
8313: else
1.181 petere 8314: ac_cv_header_openssl_err_h=$ac_header_preproc
1.179 petere 8315: fi
1.181 petere 8316: echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8317: echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
1.179 petere 8318:
8319: fi
1.181 petere 8320: if test $ac_cv_header_openssl_err_h = yes; then
1.179 petere 8321: :
8322: else
1.181 petere 8323: { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8324: echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
1.179 petere 8325: { (exit 1); exit 1; }; }
1.28 petere 8326: fi
1.1 petere 8327:
1.29 petere 8328:
1.181 petere 8329: fi
8330:
8331: if test "$with_pam" = yes ; then
8332: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8333: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8334: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8335: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8336: echo $ECHO_N "(cached) $ECHO_C" >&6
8337: fi
1.181 petere 8338: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8339: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.29 petere 8340: else
1.179 petere 8341: # Is the header compilable?
1.181 petere 8342: echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8343: echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
1.179 petere 8344: cat >conftest.$ac_ext <<_ACEOF
8345: #line $LINENO "configure"
8346: #include "confdefs.h"
8347: $ac_includes_default
1.181 petere 8348: #include <security/pam_appl.h>
1.179 petere 8349: _ACEOF
8350: rm -f conftest.$ac_objext
8351: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352: (eval $ac_compile) 2>&5
8353: ac_status=$?
8354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355: (exit $ac_status); } &&
8356: { ac_try='test -s conftest.$ac_objext'
8357: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358: (eval $ac_try) 2>&5
8359: ac_status=$?
8360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361: (exit $ac_status); }; }; then
8362: ac_header_compiler=yes
8363: else
8364: echo "$as_me: failed program was:" >&5
8365: cat conftest.$ac_ext >&5
8366: ac_header_compiler=no
8367: fi
8368: rm -f conftest.$ac_objext conftest.$ac_ext
8369: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8370: echo "${ECHO_T}$ac_header_compiler" >&6
8371:
8372: # Is the header present?
1.181 petere 8373: echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8374: echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
1.179 petere 8375: cat >conftest.$ac_ext <<_ACEOF
8376: #line $LINENO "configure"
8377: #include "confdefs.h"
1.181 petere 8378: #include <security/pam_appl.h>
1.179 petere 8379: _ACEOF
8380: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8381: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382: ac_status=$?
8383: egrep -v '^ *\+' conftest.er1 >conftest.err
8384: rm -f conftest.er1
8385: cat conftest.err >&5
8386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387: (exit $ac_status); } >/dev/null; then
8388: if test -s conftest.err; then
8389: ac_cpp_err=$ac_c_preproc_warn_flag
8390: else
8391: ac_cpp_err=
8392: fi
1.1 petere 8393: else
1.179 petere 8394: ac_cpp_err=yes
8395: fi
8396: if test -z "$ac_cpp_err"; then
8397: ac_header_preproc=yes
1.1 petere 8398: else
1.179 petere 8399: echo "$as_me: failed program was:" >&5
1.1 petere 8400: cat conftest.$ac_ext >&5
1.179 petere 8401: ac_header_preproc=no
8402: fi
8403: rm -f conftest.err conftest.$ac_ext
8404: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8405: echo "${ECHO_T}$ac_header_preproc" >&6
8406:
8407: # So? What about this header?
8408: case $ac_header_compiler:$ac_header_preproc in
8409: yes:no )
1.181 petere 8410: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8411: echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8412: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8413: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8414: no:yes )
1.181 petere 8415: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8416: echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8417: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8418: echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8419: { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8420: echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
1.179 petere 8421: esac
1.181 petere 8422: echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8423: echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8424: if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
1.179 petere 8425: echo $ECHO_N "(cached) $ECHO_C" >&6
8426: else
1.181 petere 8427: ac_cv_header_security_pam_appl_h=$ac_header_preproc
1.179 petere 8428: fi
1.181 petere 8429: echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8430: echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
1.179 petere 8431:
1.1 petere 8432: fi
1.181 petere 8433: if test $ac_cv_header_security_pam_appl_h = yes; then
1.179 petere 8434: :
8435: else
1.181 petere 8436: { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8437: echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
1.179 petere 8438: { (exit 1); exit 1; }; }
1.1 petere 8439: fi
8440:
1.29 petere 8441:
1.1 petere 8442: fi
8443:
1.181 petere 8444:
8445: ##
8446: ## Types, structures, compiler characteristics
8447: ##
8448:
1.203 petere 8449:
1.181 petere 8450: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8451: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8452: if test "${ac_cv_c_const+set}" = set; then
1.179 petere 8453: echo $ECHO_N "(cached) $ECHO_C" >&6
8454: else
1.181 petere 8455: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8456: #line $LINENO "configure"
8457: #include "confdefs.h"
1.181 petere 8458:
8459: #ifdef F77_DUMMY_MAIN
8460: # ifdef __cplusplus
8461: extern "C"
8462: # endif
8463: int F77_DUMMY_MAIN() { return 1; }
8464: #endif
8465: int
8466: main ()
8467: {
8468: /* FIXME: Include the comments suggested by Paul. */
8469: #ifndef __cplusplus
8470: /* Ultrix mips cc rejects this. */
8471: typedef int charset[2];
8472: const charset x;
8473: /* SunOS 4.1.1 cc rejects this. */
8474: char const *const *ccp;
8475: char **p;
8476: /* NEC SVR4.0.2 mips cc rejects this. */
8477: struct point {int x, y;};
8478: static struct point const zero = {0,0};
8479: /* AIX XL C 1.02.0.0 rejects this.
8480: It does not let you subtract one const X* pointer from another in
8481: an arm of an if-expression whose if-part is not a constant
8482: expression */
8483: const char *g = "string";
8484: ccp = &g + (g ? g-g : 0);
8485: /* HPUX 7.0 cc rejects these. */
8486: ++ccp;
8487: p = (char**) ccp;
8488: ccp = (char const *const *) p;
8489: { /* SCO 3.2v4 cc rejects this. */
8490: char *t;
8491: char const *s = 0 ? (char *) 0 : (char const *) 0;
8492:
8493: *t++ = 0;
8494: }
8495: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8496: int x[] = {25, 17};
8497: const int *foo = &x[0];
8498: ++foo;
8499: }
8500: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8501: typedef const int *iptr;
8502: iptr p = 0;
8503: ++p;
8504: }
8505: { /* AIX XL C 1.02.0.0 rejects this saying
8506: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8507: struct s { int j; const int *ap[3]; };
8508: struct s *b; b->j = 5;
8509: }
8510: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8511: const int foo = 10;
8512: }
8513: #endif
8514:
8515: ;
8516: return 0;
8517: }
1.179 petere 8518: _ACEOF
8519: rm -f conftest.$ac_objext
8520: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8521: (eval $ac_compile) 2>&5
8522: ac_status=$?
8523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524: (exit $ac_status); } &&
8525: { ac_try='test -s conftest.$ac_objext'
8526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527: (eval $ac_try) 2>&5
8528: ac_status=$?
8529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530: (exit $ac_status); }; }; then
1.181 petere 8531: ac_cv_c_const=yes
1.179 petere 8532: else
8533: echo "$as_me: failed program was:" >&5
8534: cat conftest.$ac_ext >&5
1.181 petere 8535: ac_cv_c_const=no
1.179 petere 8536: fi
8537: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8538: fi
8539: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8540: echo "${ECHO_T}$ac_cv_c_const" >&6
8541: if test $ac_cv_c_const = no; then
8542:
8543: cat >>confdefs.h <<\_ACEOF
8544: #define const
8545: _ACEOF
8546:
8547: fi
1.179 petere 8548:
1.181 petere 8549: echo "$as_me:$LINENO: checking for inline" >&5
8550: echo $ECHO_N "checking for inline... $ECHO_C" >&6
8551: if test "${ac_cv_c_inline+set}" = set; then
8552: echo $ECHO_N "(cached) $ECHO_C" >&6
8553: else
8554: ac_cv_c_inline=no
8555: for ac_kw in inline __inline__ __inline; do
8556: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8557: #line $LINENO "configure"
8558: #include "confdefs.h"
1.181 petere 8559: #ifndef __cplusplus
8560: static $ac_kw int static_foo () {return 0; }
8561: $ac_kw int foo () {return 0; }
8562: #endif
8563:
1.179 petere 8564: _ACEOF
1.181 petere 8565: rm -f conftest.$ac_objext
8566: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567: (eval $ac_compile) 2>&5
1.179 petere 8568: ac_status=$?
8569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.181 petere 8570: (exit $ac_status); } &&
8571: { ac_try='test -s conftest.$ac_objext'
8572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573: (eval $ac_try) 2>&5
8574: ac_status=$?
8575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576: (exit $ac_status); }; }; then
8577: ac_cv_c_inline=$ac_kw; break
1.1 petere 8578: else
1.179 petere 8579: echo "$as_me: failed program was:" >&5
1.181 petere 8580: cat conftest.$ac_ext >&5
1.1 petere 8581: fi
1.181 petere 8582: rm -f conftest.$ac_objext conftest.$ac_ext
8583: done
1.179 petere 8584:
1.181 petere 8585: fi
8586: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8587: echo "${ECHO_T}$ac_cv_c_inline" >&6
8588: case $ac_cv_c_inline in
8589: inline | yes) ;;
8590: no)
8591: cat >>confdefs.h <<\_ACEOF
8592: #define inline
8593: _ACEOF
8594: ;;
8595: *) cat >>confdefs.h <<_ACEOF
8596: #define inline $ac_cv_c_inline
8597: _ACEOF
8598: ;;
1.179 petere 8599: esac
1.181 petere 8600:
8601: echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8602: echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8603: if test "${ac_cv_c_stringize+set}" = set; then
1.179 petere 8604: echo $ECHO_N "(cached) $ECHO_C" >&6
8605: else
1.181 petere 8606: cat >conftest.$ac_ext <<_ACEOF
8607: #line $LINENO "configure"
8608: #include "confdefs.h"
8609: #define x(y) #y
8610:
8611: char *s = x(teststring);
8612: _ACEOF
8613: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614: egrep "#teststring" >/dev/null 2>&1; then
8615: ac_cv_c_stringize=no
8616: else
8617: ac_cv_c_stringize=yes
1.1 petere 8618: fi
1.181 petere 8619: rm -f conftest*
1.1 petere 8620:
1.29 petere 8621: fi
1.181 petere 8622: echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8623: echo "${ECHO_T}$ac_cv_c_stringize" >&6
8624: if test $ac_cv_c_stringize = yes; then
8625:
8626: cat >>confdefs.h <<\_ACEOF
8627: #define HAVE_STRINGIZE 1
8628: _ACEOF
8629:
1.146 momjian 8630: fi
8631:
1.181 petere 8632: echo "$as_me:$LINENO: checking for signed types" >&5
8633: echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8634: if test "${pgac_cv_c_signed+set}" = set; then
1.179 petere 8635: echo $ECHO_N "(cached) $ECHO_C" >&6
1.146 momjian 8636: else
1.181 petere 8637: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8638: #line $LINENO "configure"
1.146 momjian 8639: #include "confdefs.h"
1.181 petere 8640:
8641: #ifdef F77_DUMMY_MAIN
8642: # ifdef __cplusplus
8643: extern "C"
8644: # endif
8645: int F77_DUMMY_MAIN() { return 1; }
8646: #endif
8647: int
8648: main ()
8649: {
8650: signed char c; signed short s; signed int i;
8651: ;
8652: return 0;
8653: }
1.179 petere 8654: _ACEOF
8655: rm -f conftest.$ac_objext
8656: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657: (eval $ac_compile) 2>&5
8658: ac_status=$?
8659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660: (exit $ac_status); } &&
8661: { ac_try='test -s conftest.$ac_objext'
8662: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663: (eval $ac_try) 2>&5
8664: ac_status=$?
8665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666: (exit $ac_status); }; }; then
1.181 petere 8667: pgac_cv_c_signed=yes
1.179 petere 8668: else
8669: echo "$as_me: failed program was:" >&5
8670: cat conftest.$ac_ext >&5
1.181 petere 8671: pgac_cv_c_signed=no
1.179 petere 8672: fi
8673: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8674: fi
8675: echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8676: echo "${ECHO_T}$pgac_cv_c_signed" >&6
8677: if test x"$pgac_cv_c_signed" = xno ; then
1.179 petere 8678:
1.181 petere 8679: cat >>confdefs.h <<\_ACEOF
8680: #define signed
1.179 petere 8681: _ACEOF
8682:
1.146 momjian 8683: fi
1.181 petere 8684: echo "$as_me:$LINENO: checking for working volatile" >&5
8685: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8686: if test "${ac_cv_c_volatile+set}" = set; then
1.179 petere 8687: echo $ECHO_N "(cached) $ECHO_C" >&6
8688: else
1.181 petere 8689: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 8690: #line $LINENO "configure"
8691: #include "confdefs.h"
1.181 petere 8692:
8693: #ifdef F77_DUMMY_MAIN
8694: # ifdef __cplusplus
8695: extern "C"
8696: # endif
8697: int F77_DUMMY_MAIN() { return 1; }
8698: #endif
8699: int
8700: main ()
8701: {
8702:
8703: volatile int x;
8704: int * volatile y;
8705: ;
8706: return 0;
8707: }
1.179 petere 8708: _ACEOF
8709: rm -f conftest.$ac_objext
8710: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711: (eval $ac_compile) 2>&5
8712: ac_status=$?
8713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714: (exit $ac_status); } &&
8715: { ac_try='test -s conftest.$ac_objext'
8716: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717: (eval $ac_try) 2>&5
8718: ac_status=$?
8719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720: (exit $ac_status); }; }; then
1.181 petere 8721: ac_cv_c_volatile=yes
1.179 petere 8722: else
8723: echo "$as_me: failed program was:" >&5
8724: cat conftest.$ac_ext >&5
1.181 petere 8725: ac_cv_c_volatile=no
1.179 petere 8726: fi
8727: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8728: fi
8729: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8730: echo "${ECHO_T}$ac_cv_c_volatile" >&6
8731: if test $ac_cv_c_volatile = no; then
1.179 petere 8732:
1.181 petere 8733: cat >>confdefs.h <<\_ACEOF
8734: #define volatile
1.179 petere 8735: _ACEOF
8736:
1.181 petere 8737: fi
8738:
8739: echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8740: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8741: if test "${ac_cv_struct_tm+set}" = set; then
1.179 petere 8742: echo $ECHO_N "(cached) $ECHO_C" >&6
8743: else
8744: cat >conftest.$ac_ext <<_ACEOF
8745: #line $LINENO "configure"
1.174 petere 8746: #include "confdefs.h"
1.181 petere 8747: #include <sys/types.h>
8748: #include <time.h>
1.179 petere 8749:
8750: #ifdef F77_DUMMY_MAIN
8751: # ifdef __cplusplus
8752: extern "C"
8753: # endif
8754: int F77_DUMMY_MAIN() { return 1; }
8755: #endif
8756: int
8757: main ()
8758: {
1.181 petere 8759: struct tm *tp; tp->tm_sec;
1.179 petere 8760: ;
8761: return 0;
8762: }
8763: _ACEOF
8764: rm -f conftest.$ac_objext
8765: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766: (eval $ac_compile) 2>&5
8767: ac_status=$?
8768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769: (exit $ac_status); } &&
8770: { ac_try='test -s conftest.$ac_objext'
8771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772: (eval $ac_try) 2>&5
8773: ac_status=$?
8774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775: (exit $ac_status); }; }; then
1.181 petere 8776: ac_cv_struct_tm=time.h
1.174 petere 8777: else
1.179 petere 8778: echo "$as_me: failed program was:" >&5
8779: cat conftest.$ac_ext >&5
1.181 petere 8780: ac_cv_struct_tm=sys/time.h
1.174 petere 8781: fi
1.179 petere 8782: rm -f conftest.$ac_objext conftest.$ac_ext
1.174 petere 8783: fi
1.181 petere 8784: echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8785: echo "${ECHO_T}$ac_cv_struct_tm" >&6
8786: if test $ac_cv_struct_tm = sys/time.h; then
1.174 petere 8787:
1.179 petere 8788: cat >>confdefs.h <<\_ACEOF
1.181 petere 8789: #define TM_IN_SYS_TIME 1
1.179 petere 8790: _ACEOF
8791:
8792: fi
1.174 petere 8793:
1.181 petere 8794: echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8795: echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8796: if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
1.179 petere 8797: echo $ECHO_N "(cached) $ECHO_C" >&6
8798: else
8799: cat >conftest.$ac_ext <<_ACEOF
8800: #line $LINENO "configure"
8801: #include "confdefs.h"
1.181 petere 8802: #include <sys/types.h>
8803: #include <$ac_cv_struct_tm>
8804:
8805:
8806: #ifdef F77_DUMMY_MAIN
8807: # ifdef __cplusplus
8808: extern "C"
8809: # endif
8810: int F77_DUMMY_MAIN() { return 1; }
1.179 petere 8811: #endif
1.181 petere 8812: int
8813: main ()
8814: {
8815: static struct tm ac_aggr;
8816: if (ac_aggr.tm_zone)
8817: return 0;
8818: ;
8819: return 0;
8820: }
1.179 petere 8821: _ACEOF
8822: rm -f conftest.$ac_objext
8823: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824: (eval $ac_compile) 2>&5
8825: ac_status=$?
8826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827: (exit $ac_status); } &&
8828: { ac_try='test -s conftest.$ac_objext'
8829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830: (eval $ac_try) 2>&5
8831: ac_status=$?
8832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833: (exit $ac_status); }; }; then
1.181 petere 8834: ac_cv_member_struct_tm_tm_zone=yes
1.174 petere 8835: else
1.179 petere 8836: echo "$as_me: failed program was:" >&5
8837: cat conftest.$ac_ext >&5
1.181 petere 8838: ac_cv_member_struct_tm_tm_zone=no
1.174 petere 8839: fi
1.179 petere 8840: rm -f conftest.$ac_objext conftest.$ac_ext
1.181 petere 8841: fi
8842: echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8843: echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8844: if test $ac_cv_member_struct_tm_tm_zone = yes; then
1.174 petere 8845:
1.181 petere 8846: cat >>confdefs.h <<_ACEOF
8847: #define HAVE_STRUCT_TM_TM_ZONE 1
1.179 petere 8848: _ACEOF
1.174 petere 8849:
1.179 petere 8850:
1.174 petere 8851: fi
1.179 petere 8852:
1.181 petere 8853: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
1.174 petere 8854:
1.179 petere 8855: cat >>confdefs.h <<\_ACEOF
1.181 petere 8856: #define HAVE_TM_ZONE 1
1.179 petere 8857: _ACEOF
1.174 petere 8858:
1.181 petere 8859: else
8860: echo "$as_me:$LINENO: checking for tzname" >&5
8861: echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8862: if test "${ac_cv_var_tzname+set}" = set; then
1.179 petere 8863: echo $ECHO_N "(cached) $ECHO_C" >&6
1.174 petere 8864: else
1.179 petere 8865: cat >conftest.$ac_ext <<_ACEOF
8866: #line $LINENO "configure"
1.174 petere 8867: #include "confdefs.h"
1.181 petere 8868: #include <time.h>
8869: #ifndef tzname /* For SGI. */
8870: extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8871: #endif
1.179 petere 8872:
8873: #ifdef F77_DUMMY_MAIN
8874: # ifdef __cplusplus
8875: extern "C"
8876: # endif
8877: int F77_DUMMY_MAIN() { return 1; }
8878: #endif
8879: int
8880: main ()
8881: {
1.181 petere 8882: atoi(*tzname);
1.179 petere 8883: ;
8884: return 0;
8885: }
8886: _ACEOF
1.181 petere 8887: rm -f conftest.$ac_objext conftest$ac_exeext
8888: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889: (eval $ac_link) 2>&5
1.179 petere 8890: ac_status=$?
8891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892: (exit $ac_status); } &&
1.181 petere 8893: { ac_try='test -s conftest$ac_exeext'
1.179 petere 8894: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895: (eval $ac_try) 2>&5
8896: ac_status=$?
8897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898: (exit $ac_status); }; }; then
1.181 petere 8899: ac_cv_var_tzname=yes
1.174 petere 8900: else
1.179 petere 8901: echo "$as_me: failed program was:" >&5
8902: cat conftest.$ac_ext >&5
1.181 petere 8903: ac_cv_var_tzname=no
1.174 petere 8904: fi
1.181 petere 8905: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.174 petere 8906: fi
1.181 petere 8907: echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8908: echo "${ECHO_T}$ac_cv_var_tzname" >&6
8909: if test $ac_cv_var_tzname = yes; then
1.174 petere 8910:
1.179 petere 8911: cat >>confdefs.h <<\_ACEOF
1.181 petere 8912: #define HAVE_TZNAME 1
1.179 petere 8913: _ACEOF
1.174 petere 8914:
1.181 petere 8915: fi
1.179 petere 8916: fi
1.181 petere 8917:
8918: echo "$as_me:$LINENO: checking for union semun" >&5
8919: echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8920: if test "${ac_cv_type_union_semun+set}" = set; then
1.179 petere 8921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 8922: else
1.179 petere 8923: cat >conftest.$ac_ext <<_ACEOF
8924: #line $LINENO "configure"
8925: #include "confdefs.h"
8926: #include <sys/types.h>
8927: #include <sys/ipc.h>
8928: #include <sys/sem.h>
8929:
8930: #ifdef F77_DUMMY_MAIN
8931: # ifdef __cplusplus
8932: extern "C"
8933: # endif
8934: int F77_DUMMY_MAIN() { return 1; }
8935: #endif
8936: int
8937: main ()
8938: {
8939: if ((union semun *) 0)
8940: return 0;
8941: if (sizeof (union semun))
8942: return 0;
8943: ;
8944: return 0;
8945: }
8946: _ACEOF
8947: rm -f conftest.$ac_objext
8948: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949: (eval $ac_compile) 2>&5
8950: ac_status=$?
8951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952: (exit $ac_status); } &&
8953: { ac_try='test -s conftest.$ac_objext'
8954: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955: (eval $ac_try) 2>&5
8956: ac_status=$?
8957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958: (exit $ac_status); }; }; then
8959: ac_cv_type_union_semun=yes
8960: else
8961: echo "$as_me: failed program was:" >&5
8962: cat conftest.$ac_ext >&5
8963: ac_cv_type_union_semun=no
8964: fi
8965: rm -f conftest.$ac_objext conftest.$ac_ext
8966: fi
8967: echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8968: echo "${ECHO_T}$ac_cv_type_union_semun" >&6
1.182 petere 8969: if test $ac_cv_type_union_semun = yes; then
8970:
8971: cat >>confdefs.h <<_ACEOF
8972: #define HAVE_UNION_SEMUN 1
8973: _ACEOF
8974:
8975:
8976: fi
1.179 petere 8977:
8978: echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8979: echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8980: if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.167 momjian 8982: else
1.179 petere 8983: cat >conftest.$ac_ext <<_ACEOF
8984: #line $LINENO "configure"
1.167 momjian 8985: #include "confdefs.h"
1.179 petere 8986: #include <sys/types.h>
8987: #ifdef HAVE_SYS_UN_H
8988: #include <sys/un.h>
8989: #endif
8990:
1.167 momjian 8991:
1.179 petere 8992: #ifdef F77_DUMMY_MAIN
8993: # ifdef __cplusplus
8994: extern "C"
8995: # endif
8996: int F77_DUMMY_MAIN() { return 1; }
8997: #endif
8998: int
8999: main ()
1.167 momjian 9000: {
1.179 petere 9001: if ((struct sockaddr_un *) 0)
9002: return 0;
9003: if (sizeof (struct sockaddr_un))
9004: return 0;
9005: ;
9006: return 0;
1.167 momjian 9007: }
1.179 petere 9008: _ACEOF
9009: rm -f conftest.$ac_objext
9010: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011: (eval $ac_compile) 2>&5
9012: ac_status=$?
9013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014: (exit $ac_status); } &&
9015: { ac_try='test -s conftest.$ac_objext'
9016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017: (eval $ac_try) 2>&5
9018: ac_status=$?
9019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020: (exit $ac_status); }; }; then
9021: ac_cv_type_struct_sockaddr_un=yes
9022: else
9023: echo "$as_me: failed program was:" >&5
9024: cat conftest.$ac_ext >&5
9025: ac_cv_type_struct_sockaddr_un=no
9026: fi
9027: rm -f conftest.$ac_objext conftest.$ac_ext
9028: fi
9029: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9030: echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9031: if test $ac_cv_type_struct_sockaddr_un = yes; then
1.167 momjian 9032:
1.179 petere 9033: cat >>confdefs.h <<_ACEOF
9034: #define HAVE_STRUCT_SOCKADDR_UN 1
9035: _ACEOF
1.167 momjian 9036:
9037:
9038: fi
9039:
9040:
1.179 petere 9041: echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9042: echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9043: if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9044: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9045: else
1.179 petere 9046: cat >conftest.$ac_ext <<_ACEOF
9047: #line $LINENO "configure"
1.1 petere 9048: #include "confdefs.h"
1.179 petere 9049: #include <sys/param.h>
9050: #include <sys/socket.h>
9051: #include <sys/ucred.h>
1.1 petere 9052:
1.179 petere 9053: #ifdef F77_DUMMY_MAIN
9054: # ifdef __cplusplus
9055: extern "C"
9056: # endif
9057: int F77_DUMMY_MAIN() { return 1; }
9058: #endif
9059: int
9060: main ()
9061: {
9062: if ((struct cmsgcred *) 0)
9063: return 0;
9064: if (sizeof (struct cmsgcred))
9065: return 0;
9066: ;
9067: return 0;
9068: }
9069: _ACEOF
9070: rm -f conftest.$ac_objext
9071: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072: (eval $ac_compile) 2>&5
9073: ac_status=$?
9074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075: (exit $ac_status); } &&
9076: { ac_try='test -s conftest.$ac_objext'
9077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078: (eval $ac_try) 2>&5
9079: ac_status=$?
9080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081: (exit $ac_status); }; }; then
9082: ac_cv_type_struct_cmsgcred=yes
9083: else
9084: echo "$as_me: failed program was:" >&5
9085: cat conftest.$ac_ext >&5
9086: ac_cv_type_struct_cmsgcred=no
9087: fi
9088: rm -f conftest.$ac_objext conftest.$ac_ext
9089: fi
9090: echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9091: echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9092: if test $ac_cv_type_struct_cmsgcred = yes; then
9093:
9094: cat >>confdefs.h <<_ACEOF
9095: #define HAVE_STRUCT_CMSGCRED 1
9096: _ACEOF
9097:
9098:
9099: fi
9100: echo "$as_me:$LINENO: checking for struct fcred" >&5
9101: echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9102: if test "${ac_cv_type_struct_fcred+set}" = set; then
9103: echo $ECHO_N "(cached) $ECHO_C" >&6
9104: else
9105: cat >conftest.$ac_ext <<_ACEOF
9106: #line $LINENO "configure"
9107: #include "confdefs.h"
9108: #include <sys/param.h>
9109: #include <sys/socket.h>
9110: #include <sys/ucred.h>
1.1 petere 9111:
1.179 petere 9112: #ifdef F77_DUMMY_MAIN
9113: # ifdef __cplusplus
9114: extern "C"
9115: # endif
9116: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9117: #endif
1.179 petere 9118: int
9119: main ()
9120: {
9121: if ((struct fcred *) 0)
9122: return 0;
9123: if (sizeof (struct fcred))
9124: return 0;
9125: ;
9126: return 0;
9127: }
9128: _ACEOF
9129: rm -f conftest.$ac_objext
9130: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131: (eval $ac_compile) 2>&5
9132: ac_status=$?
9133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134: (exit $ac_status); } &&
9135: { ac_try='test -s conftest.$ac_objext'
9136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137: (eval $ac_try) 2>&5
9138: ac_status=$?
9139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140: (exit $ac_status); }; }; then
9141: ac_cv_type_struct_fcred=yes
9142: else
9143: echo "$as_me: failed program was:" >&5
9144: cat conftest.$ac_ext >&5
9145: ac_cv_type_struct_fcred=no
9146: fi
9147: rm -f conftest.$ac_objext conftest.$ac_ext
9148: fi
9149: echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9150: echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9151: if test $ac_cv_type_struct_fcred = yes; then
1.1 petere 9152:
1.179 petere 9153: cat >>confdefs.h <<_ACEOF
9154: #define HAVE_STRUCT_FCRED 1
9155: _ACEOF
9156:
9157:
9158: fi
9159: echo "$as_me:$LINENO: checking for struct sockcred" >&5
9160: echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9161: if test "${ac_cv_type_struct_sockcred+set}" = set; then
9162: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9163: else
1.179 petere 9164: cat >conftest.$ac_ext <<_ACEOF
9165: #line $LINENO "configure"
9166: #include "confdefs.h"
9167: #include <sys/param.h>
9168: #include <sys/socket.h>
9169: #include <sys/ucred.h>
1.1 petere 9170:
1.179 petere 9171: #ifdef F77_DUMMY_MAIN
9172: # ifdef __cplusplus
9173: extern "C"
9174: # endif
9175: int F77_DUMMY_MAIN() { return 1; }
9176: #endif
9177: int
9178: main ()
9179: {
9180: if ((struct sockcred *) 0)
9181: return 0;
9182: if (sizeof (struct sockcred))
9183: return 0;
9184: ;
9185: return 0;
9186: }
9187: _ACEOF
9188: rm -f conftest.$ac_objext
9189: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190: (eval $ac_compile) 2>&5
9191: ac_status=$?
9192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193: (exit $ac_status); } &&
9194: { ac_try='test -s conftest.$ac_objext'
9195: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196: (eval $ac_try) 2>&5
9197: ac_status=$?
9198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199: (exit $ac_status); }; }; then
9200: ac_cv_type_struct_sockcred=yes
9201: else
9202: echo "$as_me: failed program was:" >&5
9203: cat conftest.$ac_ext >&5
9204: ac_cv_type_struct_sockcred=no
9205: fi
9206: rm -f conftest.$ac_objext conftest.$ac_ext
9207: fi
9208: echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9209: echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9210: if test $ac_cv_type_struct_sockcred = yes; then
1.1 petere 9211:
1.179 petere 9212: cat >>confdefs.h <<_ACEOF
9213: #define HAVE_STRUCT_SOCKCRED 1
9214: _ACEOF
1.1 petere 9215:
1.106 tgl 9216:
9217: fi
9218:
9219:
1.186 petere 9220: if test "$with_zlib" = yes; then
9221: # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9222: # did not). While we could work around the lack of z_streamp, it
9223: # seems unwise to encourage people to use such old zlib versions...
9224: echo "$as_me:$LINENO: checking for z_streamp" >&5
9225: echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9226: if test "${ac_cv_type_z_streamp+set}" = set; then
9227: echo $ECHO_N "(cached) $ECHO_C" >&6
9228: else
9229: cat >conftest.$ac_ext <<_ACEOF
9230: #line $LINENO "configure"
9231: #include "confdefs.h"
9232: #include <zlib.h>
9233:
9234: #ifdef F77_DUMMY_MAIN
9235: # ifdef __cplusplus
9236: extern "C"
9237: # endif
9238: int F77_DUMMY_MAIN() { return 1; }
9239: #endif
9240: int
9241: main ()
9242: {
9243: if ((z_streamp *) 0)
9244: return 0;
9245: if (sizeof (z_streamp))
9246: return 0;
9247: ;
9248: return 0;
9249: }
9250: _ACEOF
9251: rm -f conftest.$ac_objext
9252: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253: (eval $ac_compile) 2>&5
9254: ac_status=$?
9255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256: (exit $ac_status); } &&
9257: { ac_try='test -s conftest.$ac_objext'
9258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259: (eval $ac_try) 2>&5
9260: ac_status=$?
9261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262: (exit $ac_status); }; }; then
9263: ac_cv_type_z_streamp=yes
9264: else
9265: echo "$as_me: failed program was:" >&5
9266: cat conftest.$ac_ext >&5
9267: ac_cv_type_z_streamp=no
9268: fi
9269: rm -f conftest.$ac_objext conftest.$ac_ext
9270: fi
9271: echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9272: echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9273: if test $ac_cv_type_z_streamp = yes; then
9274: :
9275: else
9276: { { echo "$as_me:$LINENO: error: zlib version is too old
9277: Use --without-zlib to disable zlib support." >&5
9278: echo "$as_me: error: zlib version is too old
9279: Use --without-zlib to disable zlib support." >&2;}
9280: { (exit 1); exit 1; }; }
9281: fi
9282:
9283: fi
9284:
1.179 petere 9285: if test "$with_krb5" = yes; then
9286: # Check for differences between MIT and Heimdal (KTH) releases
9287: echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9288: echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9289: if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9290: echo $ECHO_N "(cached) $ECHO_C" >&6
1.28 petere 9291: else
1.179 petere 9292: cat >conftest.$ac_ext <<_ACEOF
9293: #line $LINENO "configure"
1.1 petere 9294: #include "confdefs.h"
1.179 petere 9295: #include <krb5.h>
1.28 petere 9296:
1.179 petere 9297: #ifdef F77_DUMMY_MAIN
9298: # ifdef __cplusplus
9299: extern "C"
9300: # endif
9301: int F77_DUMMY_MAIN() { return 1; }
9302: #endif
9303: int
9304: main ()
9305: {
9306: static krb5_ticket ac_aggr;
9307: if (ac_aggr.enc_part2)
9308: return 0;
9309: ;
9310: return 0;
9311: }
9312: _ACEOF
9313: rm -f conftest.$ac_objext
9314: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9315: (eval $ac_compile) 2>&5
9316: ac_status=$?
9317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318: (exit $ac_status); } &&
9319: { ac_try='test -s conftest.$ac_objext'
9320: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321: (eval $ac_try) 2>&5
9322: ac_status=$?
9323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324: (exit $ac_status); }; }; then
9325: ac_cv_member_krb5_ticket_enc_part2=yes
9326: else
9327: echo "$as_me: failed program was:" >&5
9328: cat conftest.$ac_ext >&5
9329: ac_cv_member_krb5_ticket_enc_part2=no
9330: fi
9331: rm -f conftest.$ac_objext conftest.$ac_ext
9332: fi
9333: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9334: echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9335: if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
1.28 petere 9336:
1.179 petere 9337: cat >>confdefs.h <<_ACEOF
9338: #define HAVE_KRB5_TICKET_ENC_PART2 1
9339: _ACEOF
1.28 petere 9340:
1.1 petere 9341:
9342: else
1.179 petere 9343: echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9344: echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9345: if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9346: echo $ECHO_N "(cached) $ECHO_C" >&6
9347: else
9348: cat >conftest.$ac_ext <<_ACEOF
9349: #line $LINENO "configure"
1.1 petere 9350: #include "confdefs.h"
1.179 petere 9351: #include <krb5.h>
9352:
9353: #ifdef F77_DUMMY_MAIN
9354: # ifdef __cplusplus
9355: extern "C"
9356: # endif
9357: int F77_DUMMY_MAIN() { return 1; }
9358: #endif
9359: int
9360: main ()
9361: {
9362: static krb5_ticket ac_aggr;
9363: if (ac_aggr.client)
9364: return 0;
9365: ;
9366: return 0;
9367: }
9368: _ACEOF
9369: rm -f conftest.$ac_objext
9370: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371: (eval $ac_compile) 2>&5
9372: ac_status=$?
9373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374: (exit $ac_status); } &&
9375: { ac_try='test -s conftest.$ac_objext'
9376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377: (eval $ac_try) 2>&5
9378: ac_status=$?
9379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380: (exit $ac_status); }; }; then
9381: ac_cv_member_krb5_ticket_client=yes
9382: else
9383: echo "$as_me: failed program was:" >&5
9384: cat conftest.$ac_ext >&5
9385: ac_cv_member_krb5_ticket_client=no
9386: fi
9387: rm -f conftest.$ac_objext conftest.$ac_ext
9388: fi
9389: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9390: echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9391: if test $ac_cv_member_krb5_ticket_client = yes; then
1.1 petere 9392:
1.179 petere 9393: cat >>confdefs.h <<_ACEOF
9394: #define HAVE_KRB5_TICKET_CLIENT 1
9395: _ACEOF
1.1 petere 9396:
9397:
9398: else
1.179 petere 9399: { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9400: echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9401: { (exit 1); exit 1; }; }
1.1 petere 9402: fi
9403:
9404: fi
9405:
1.179 petere 9406: echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9407: echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9408: if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9409: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9410: else
1.179 petere 9411: cat >conftest.$ac_ext <<_ACEOF
9412: #line $LINENO "configure"
1.1 petere 9413: #include "confdefs.h"
1.179 petere 9414: #include <krb5.h>
1.1 petere 9415:
1.179 petere 9416: #ifdef F77_DUMMY_MAIN
9417: # ifdef __cplusplus
9418: extern "C"
9419: # endif
9420: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9421: #endif
1.179 petere 9422: int
9423: main ()
9424: {
9425: static krb5_error ac_aggr;
9426: if (ac_aggr.text.data)
9427: return 0;
9428: ;
9429: return 0;
9430: }
9431: _ACEOF
9432: rm -f conftest.$ac_objext
9433: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434: (eval $ac_compile) 2>&5
9435: ac_status=$?
9436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437: (exit $ac_status); } &&
9438: { ac_try='test -s conftest.$ac_objext'
9439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440: (eval $ac_try) 2>&5
9441: ac_status=$?
9442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443: (exit $ac_status); }; }; then
9444: ac_cv_member_krb5_error_text_data=yes
9445: else
9446: echo "$as_me: failed program was:" >&5
9447: cat conftest.$ac_ext >&5
9448: ac_cv_member_krb5_error_text_data=no
9449: fi
9450: rm -f conftest.$ac_objext conftest.$ac_ext
9451: fi
9452: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9453: echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9454: if test $ac_cv_member_krb5_error_text_data = yes; then
1.1 petere 9455:
1.179 petere 9456: cat >>confdefs.h <<_ACEOF
9457: #define HAVE_KRB5_ERROR_TEXT_DATA 1
9458: _ACEOF
1.1 petere 9459:
9460:
9461: else
1.179 petere 9462: echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9463: echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9464: if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9465: echo $ECHO_N "(cached) $ECHO_C" >&6
9466: else
9467: cat >conftest.$ac_ext <<_ACEOF
9468: #line $LINENO "configure"
1.1 petere 9469: #include "confdefs.h"
1.179 petere 9470: #include <krb5.h>
1.1 petere 9471:
1.179 petere 9472: #ifdef F77_DUMMY_MAIN
9473: # ifdef __cplusplus
9474: extern "C"
9475: # endif
9476: int F77_DUMMY_MAIN() { return 1; }
9477: #endif
9478: int
9479: main ()
9480: {
9481: static krb5_error ac_aggr;
9482: if (ac_aggr.e_data)
9483: return 0;
9484: ;
9485: return 0;
9486: }
9487: _ACEOF
9488: rm -f conftest.$ac_objext
9489: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490: (eval $ac_compile) 2>&5
9491: ac_status=$?
9492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493: (exit $ac_status); } &&
9494: { ac_try='test -s conftest.$ac_objext'
9495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496: (eval $ac_try) 2>&5
9497: ac_status=$?
9498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499: (exit $ac_status); }; }; then
9500: ac_cv_member_krb5_error_e_data=yes
9501: else
9502: echo "$as_me: failed program was:" >&5
9503: cat conftest.$ac_ext >&5
9504: ac_cv_member_krb5_error_e_data=no
9505: fi
9506: rm -f conftest.$ac_objext conftest.$ac_ext
9507: fi
9508: echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9509: echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9510: if test $ac_cv_member_krb5_error_e_data = yes; then
1.214 petere 9511:
9512: cat >>confdefs.h <<_ACEOF
9513: #define HAVE_KRB5_ERROR_E_DATA 1
9514: _ACEOF
9515:
9516:
1.179 petere 9517: else
9518: { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9519: echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9520: { (exit 1); exit 1; }; }
1.1 petere 9521: fi
9522:
1.179 petere 9523: fi
1.1 petere 9524:
9525: fi
9526:
1.29 petere 9527:
1.179 petere 9528: ##
9529: ## Functions, global variables
9530: ##
1.203 petere 9531:
1.179 petere 9532: echo "$as_me:$LINENO: checking for int timezone" >&5
9533: echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9534: if test "${pgac_cv_var_int_timezone+set}" = set; then
9535: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9536: else
1.179 petere 9537: cat >conftest.$ac_ext <<_ACEOF
9538: #line $LINENO "configure"
1.1 petere 9539: #include "confdefs.h"
1.179 petere 9540: #include <time.h>
9541: int res;
9542: #ifdef F77_DUMMY_MAIN
9543: # ifdef __cplusplus
9544: extern "C"
9545: # endif
9546: int F77_DUMMY_MAIN() { return 1; }
9547: #endif
9548: int
9549: main ()
9550: {
9551: res = timezone / 60;
9552: ;
9553: return 0;
9554: }
9555: _ACEOF
9556: rm -f conftest.$ac_objext conftest$ac_exeext
9557: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558: (eval $ac_link) 2>&5
9559: ac_status=$?
9560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561: (exit $ac_status); } &&
9562: { ac_try='test -s conftest$ac_exeext'
9563: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564: (eval $ac_try) 2>&5
9565: ac_status=$?
9566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567: (exit $ac_status); }; }; then
9568: pgac_cv_var_int_timezone=yes
1.1 petere 9569: else
1.179 petere 9570: echo "$as_me: failed program was:" >&5
9571: cat conftest.$ac_ext >&5
9572: pgac_cv_var_int_timezone=no
1.1 petere 9573: fi
1.179 petere 9574: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 9575: fi
1.179 petere 9576: echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9577: echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9578: if test x"$pgac_cv_var_int_timezone" = xyes ; then
1.1 petere 9579:
1.179 petere 9580: cat >>confdefs.h <<\_ACEOF
9581: #define HAVE_INT_TIMEZONE
9582: _ACEOF
1.29 petere 9583:
1.179 petere 9584: fi
9585: echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9586: echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9587: if test "${ac_cv_func_accept_arg1+set}" = set; then
9588: echo $ECHO_N "(cached) $ECHO_C" >&6
9589: else
9590: if test "${ac_cv_func_accept_arg2+set}" = set; then
9591: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 9592: else
1.179 petere 9593: if test "${ac_cv_func_accept_arg3+set}" = set; then
9594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.29 petere 9595: else
1.179 petere 9596: for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9597: for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9598: for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9599: cat >conftest.$ac_ext <<_ACEOF
9600: #line $LINENO "configure"
1.29 petere 9601: #include "confdefs.h"
1.179 petere 9602: #ifdef HAVE_SYS_TYPES_H
9603: #include <sys/types.h>
9604: #endif
9605: #ifdef HAVE_SYS_SOCKET_H
9606: #include <sys/socket.h>
9607: #endif
9608: extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9609: #ifdef F77_DUMMY_MAIN
9610: # ifdef __cplusplus
9611: extern "C"
9612: # endif
9613: int F77_DUMMY_MAIN() { return 1; }
1.29 petere 9614: #endif
1.179 petere 9615: int
9616: main ()
9617: {
1.29 petere 9618:
1.179 petere 9619: ;
9620: return 0;
9621: }
9622: _ACEOF
9623: rm -f conftest.$ac_objext
9624: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625: (eval $ac_compile) 2>&5
9626: ac_status=$?
9627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628: (exit $ac_status); } &&
9629: { ac_try='test -s conftest.$ac_objext'
9630: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631: (eval $ac_try) 2>&5
9632: ac_status=$?
9633: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634: (exit $ac_status); }; }; then
9635: ac_not_found=no; break 3
1.29 petere 9636: else
1.179 petere 9637: echo "$as_me: failed program was:" >&5
9638: cat conftest.$ac_ext >&5
9639: ac_not_found=yes
1.29 petere 9640: fi
1.179 petere 9641: rm -f conftest.$ac_objext conftest.$ac_ext
9642: done
9643: done
9644: done
9645: if test "$ac_not_found" = yes; then
9646: { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9647: echo "$as_me: error: could not determine argument types" >&2;}
9648: { (exit 1); exit 1; }; }
9649: fi
9650: if test "$ac_cv_func_accept_arg3" = "void"; then
9651: ac_cv_func_accept_arg3=int
9652: fi
9653:
1.29 petere 9654: fi
9655:
9656: fi
9657:
1.1 petere 9658: fi
1.179 petere 9659: echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9660: echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9661:
9662: cat >>confdefs.h <<_ACEOF
9663: #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9664: _ACEOF
9665:
9666:
9667: cat >>confdefs.h <<_ACEOF
9668: #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9669: _ACEOF
1.1 petere 9670:
1.29 petere 9671:
1.179 petere 9672: cat >>confdefs.h <<_ACEOF
9673: #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9674: _ACEOF
9675:
9676:
9677: echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9678: echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9679: if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9680: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9681: else
1.179 petere 9682: cat >conftest.$ac_ext <<_ACEOF
9683: #line $LINENO "configure"
1.1 petere 9684: #include "confdefs.h"
1.179 petere 9685: #include <sys/time.h>
9686: #ifdef F77_DUMMY_MAIN
9687: # ifdef __cplusplus
9688: extern "C"
9689: # endif
9690: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 9691: #endif
1.179 petere 9692: int
9693: main ()
9694: {
9695: struct timeval *tp;
9696: struct timezone *tzp;
9697: gettimeofday(tp,tzp);
9698: ;
9699: return 0;
9700: }
9701: _ACEOF
9702: rm -f conftest.$ac_objext
9703: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704: (eval $ac_compile) 2>&5
9705: ac_status=$?
9706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707: (exit $ac_status); } &&
9708: { ac_try='test -s conftest.$ac_objext'
9709: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710: (eval $ac_try) 2>&5
9711: ac_status=$?
9712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713: (exit $ac_status); }; }; then
9714: pgac_cv_func_gettimeofday_1arg=no
1.1 petere 9715: else
1.179 petere 9716: echo "$as_me: failed program was:" >&5
9717: cat conftest.$ac_ext >&5
9718: pgac_cv_func_gettimeofday_1arg=yes
1.1 petere 9719: fi
1.179 petere 9720: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 9721: fi
1.179 petere 9722: echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9723: echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9724: if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
1.1 petere 9725:
1.179 petere 9726: cat >>confdefs.h <<\_ACEOF
9727: #define GETTIMEOFDAY_1ARG
9728: _ACEOF
1.1 petere 9729:
1.179 petere 9730: fi
9731:
9732: # SunOS doesn't handle negative byte comparisons properly with +/- return
1.203 petere 9733: echo "$as_me:$LINENO: checking for working memcmp" >&5
9734: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9735: if test "${ac_cv_func_memcmp_working+set}" = set; then
1.179 petere 9736: echo $ECHO_N "(cached) $ECHO_C" >&6
9737: else
9738: if test "$cross_compiling" = yes; then
1.203 petere 9739: ac_cv_func_memcmp_working=no
1.179 petere 9740: else
9741: cat >conftest.$ac_ext <<_ACEOF
9742: #line $LINENO "configure"
9743: #include "confdefs.h"
9744:
1.203 petere 9745: #ifdef F77_DUMMY_MAIN
9746: # ifdef __cplusplus
9747: extern "C"
9748: # endif
9749: int F77_DUMMY_MAIN() { return 1; }
9750: #endif
9751: int
9752: main ()
1.179 petere 9753: {
1.203 petere 9754:
9755: /* Some versions of memcmp are not 8-bit clean. */
1.179 petere 9756: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1.203 petere 9757: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9758: exit (1);
9759:
9760: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9761: or more and with at least one buffer not starting on a 4-byte boundary.
9762: William Lewis provided this test program. */
9763: {
9764: char foo[21];
9765: char bar[21];
9766: int i;
9767: for (i = 0; i < 4; i++)
9768: {
9769: char *a = foo + i;
9770: char *b = bar + i;
9771: strcpy (a, "--------01111111");
9772: strcpy (b, "--------10000000");
9773: if (memcmp (a, b, 16) >= 0)
9774: exit (1);
9775: }
9776: exit (0);
9777: }
9778:
9779: ;
9780: return 0;
1.179 petere 9781: }
9782: _ACEOF
9783: rm -f conftest$ac_exeext
9784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785: (eval $ac_link) 2>&5
9786: ac_status=$?
9787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790: (eval $ac_try) 2>&5
9791: ac_status=$?
9792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793: (exit $ac_status); }; }; then
1.203 petere 9794: ac_cv_func_memcmp_working=yes
1.1 petere 9795: else
1.179 petere 9796: echo "$as_me: program exited with status $ac_status" >&5
9797: echo "$as_me: failed program was:" >&5
9798: cat conftest.$ac_ext >&5
9799: ( exit $ac_status )
1.203 petere 9800: ac_cv_func_memcmp_working=no
1.1 petere 9801: fi
1.179 petere 9802: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9803: fi
9804: fi
1.203 petere 9805: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9806: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9807: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
1.179 petere 9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
1.1 petere 9817:
9818:
1.179 petere 9819:
9820:
9821:
1.228 momjian 9822:
9823: for ac_func in cbrt fcvt getopt_long getpeereid memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
1.179 petere 9824: do
9825: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9826: echo "$as_me:$LINENO: checking for $ac_func" >&5
9827: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9828: if eval "test \"\${$as_ac_var+set}\" = set"; then
9829: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 9830: else
1.179 petere 9831: cat >conftest.$ac_ext <<_ACEOF
9832: #line $LINENO "configure"
1.1 petere 9833: #include "confdefs.h"
9834: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 9835: which can conflict with char $ac_func (); below. */
1.1 petere 9836: #include <assert.h>
9837: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 9838: #ifdef __cplusplus
9839: extern "C"
9840: #endif
1.1 petere 9841: /* We use char because int might match the return type of a gcc2
1.179 petere 9842: builtin and then its argument prototype would still apply. */
9843: char $ac_func ();
9844: char (*f) ();
9845:
9846: #ifdef F77_DUMMY_MAIN
9847: # ifdef __cplusplus
9848: extern "C"
9849: # endif
9850: int F77_DUMMY_MAIN() { return 1; }
9851: #endif
9852: int
9853: main ()
9854: {
1.1 petere 9855: /* The GNU C library defines this for functions which it implements
9856: to always fail with ENOSYS. Some functions are actually named
9857: something starting with __ and the normal name is an alias. */
1.179 petere 9858: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 9859: choke me
9860: #else
1.179 petere 9861: f = $ac_func;
9862: #endif
9863:
9864: ;
9865: return 0;
9866: }
9867: _ACEOF
9868: rm -f conftest.$ac_objext conftest$ac_exeext
9869: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870: (eval $ac_link) 2>&5
9871: ac_status=$?
9872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873: (exit $ac_status); } &&
9874: { ac_try='test -s conftest$ac_exeext'
9875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876: (eval $ac_try) 2>&5
9877: ac_status=$?
9878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879: (exit $ac_status); }; }; then
9880: eval "$as_ac_var=yes"
9881: else
9882: echo "$as_me: failed program was:" >&5
9883: cat conftest.$ac_ext >&5
9884: eval "$as_ac_var=no"
9885: fi
9886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9887: fi
9888: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9889: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9890: if test `eval echo '${'$as_ac_var'}'` = yes; then
9891: cat >>confdefs.h <<_ACEOF
9892: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9893: _ACEOF
9894:
9895: fi
9896: done
9897:
9898:
9899: echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9900: echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9901: if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9902: echo $ECHO_N "(cached) $ECHO_C" >&6
9903: else
9904: cat >conftest.$ac_ext <<_ACEOF
9905: #line $LINENO "configure"
9906: #include "confdefs.h"
9907: #include <unistd.h>
9908:
9909: #ifdef F77_DUMMY_MAIN
9910: # ifdef __cplusplus
9911: extern "C"
9912: # endif
9913: int F77_DUMMY_MAIN() { return 1; }
9914: #endif
9915: int
9916: main ()
9917: {
9918: #ifndef fdatasync
9919: char *p = (char *) fdatasync;
1.1 petere 9920: #endif
9921:
1.179 petere 9922: ;
9923: return 0;
9924: }
9925: _ACEOF
9926: rm -f conftest.$ac_objext
9927: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9928: (eval $ac_compile) 2>&5
9929: ac_status=$?
9930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931: (exit $ac_status); } &&
9932: { ac_try='test -s conftest.$ac_objext'
9933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934: (eval $ac_try) 2>&5
9935: ac_status=$?
9936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937: (exit $ac_status); }; }; then
9938: ac_cv_have_decl_fdatasync=yes
1.1 petere 9939: else
1.179 petere 9940: echo "$as_me: failed program was:" >&5
9941: cat conftest.$ac_ext >&5
9942: ac_cv_have_decl_fdatasync=no
1.1 petere 9943: fi
1.179 petere 9944: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 petere 9945: fi
1.179 petere 9946: echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9947: echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9948: if test $ac_cv_have_decl_fdatasync = yes; then
9949:
9950: cat >>confdefs.h <<_ACEOF
9951: #define HAVE_DECL_FDATASYNC 1
9952: _ACEOF
1.1 petere 9953:
9954:
9955: else
1.179 petere 9956: cat >>confdefs.h <<_ACEOF
9957: #define HAVE_DECL_FDATASYNC 0
9958: _ACEOF
9959:
9960:
1.1 petere 9961: fi
9962:
9963:
1.179 petere 9964:
1.234 momjian 9965: # This exports HAVE_IPV6 to both C files and Makefiles
9966: echo "$as_me:$LINENO: checking for getaddrinfo" >&5
9967: echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
9968: if test "${ac_cv_func_getaddrinfo+set}" = set; then
9969: echo $ECHO_N "(cached) $ECHO_C" >&6
9970: else
9971: cat >conftest.$ac_ext <<_ACEOF
9972: #line $LINENO "configure"
9973: #include "confdefs.h"
9974: /* System header to define __stub macros and hopefully few prototypes,
9975: which can conflict with char getaddrinfo (); below. */
9976: #include <assert.h>
9977: /* Override any gcc2 internal prototype to avoid an error. */
9978: #ifdef __cplusplus
9979: extern "C"
9980: #endif
9981: /* We use char because int might match the return type of a gcc2
9982: builtin and then its argument prototype would still apply. */
9983: char getaddrinfo ();
9984: char (*f) ();
9985:
9986: #ifdef F77_DUMMY_MAIN
9987: # ifdef __cplusplus
9988: extern "C"
9989: # endif
9990: int F77_DUMMY_MAIN() { return 1; }
9991: #endif
9992: int
9993: main ()
9994: {
9995: /* The GNU C library defines this for functions which it implements
9996: to always fail with ENOSYS. Some functions are actually named
9997: something starting with __ and the normal name is an alias. */
9998: #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
9999: choke me
10000: #else
10001: f = getaddrinfo;
10002: #endif
10003:
10004: ;
10005: return 0;
10006: }
10007: _ACEOF
10008: rm -f conftest.$ac_objext conftest$ac_exeext
10009: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010: (eval $ac_link) 2>&5
10011: ac_status=$?
10012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013: (exit $ac_status); } &&
10014: { ac_try='test -s conftest$ac_exeext'
10015: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016: (eval $ac_try) 2>&5
10017: ac_status=$?
10018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019: (exit $ac_status); }; }; then
10020: ac_cv_func_getaddrinfo=yes
10021: else
10022: echo "$as_me: failed program was:" >&5
10023: cat conftest.$ac_ext >&5
10024: ac_cv_func_getaddrinfo=no
10025: fi
10026: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10027: fi
10028: echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10029: echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10030: if test $ac_cv_func_getaddrinfo = yes; then
1.235 ! momjian 10031: if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
! 10032: echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
! 10033: echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6
! 10034: if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
! 10035: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10036: fi
! 10037: echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
! 10038: echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6
! 10039: else
! 10040: # Is the header compilable?
! 10041: echo "$as_me:$LINENO: checking netinet/ip6.h usability" >&5
! 10042: echo $ECHO_N "checking netinet/ip6.h usability... $ECHO_C" >&6
! 10043: cat >conftest.$ac_ext <<_ACEOF
! 10044: #line $LINENO "configure"
! 10045: #include "confdefs.h"
! 10046: $ac_includes_default
! 10047: #include <netinet/ip6.h>
! 10048: _ACEOF
! 10049: rm -f conftest.$ac_objext
! 10050: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 10051: (eval $ac_compile) 2>&5
! 10052: ac_status=$?
! 10053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10054: (exit $ac_status); } &&
! 10055: { ac_try='test -s conftest.$ac_objext'
! 10056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10057: (eval $ac_try) 2>&5
! 10058: ac_status=$?
! 10059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10060: (exit $ac_status); }; }; then
! 10061: ac_header_compiler=yes
! 10062: else
! 10063: echo "$as_me: failed program was:" >&5
! 10064: cat conftest.$ac_ext >&5
! 10065: ac_header_compiler=no
! 10066: fi
! 10067: rm -f conftest.$ac_objext conftest.$ac_ext
! 10068: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 10069: echo "${ECHO_T}$ac_header_compiler" >&6
! 10070:
! 10071: # Is the header present?
! 10072: echo "$as_me:$LINENO: checking netinet/ip6.h presence" >&5
! 10073: echo $ECHO_N "checking netinet/ip6.h presence... $ECHO_C" >&6
! 10074: cat >conftest.$ac_ext <<_ACEOF
! 10075: #line $LINENO "configure"
! 10076: #include "confdefs.h"
! 10077: #include <netinet/ip6.h>
! 10078: _ACEOF
! 10079: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 10080: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 10081: ac_status=$?
! 10082: egrep -v '^ *\+' conftest.er1 >conftest.err
! 10083: rm -f conftest.er1
! 10084: cat conftest.err >&5
! 10085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10086: (exit $ac_status); } >/dev/null; then
! 10087: if test -s conftest.err; then
! 10088: ac_cpp_err=$ac_c_preproc_warn_flag
! 10089: else
! 10090: ac_cpp_err=
! 10091: fi
! 10092: else
! 10093: ac_cpp_err=yes
! 10094: fi
! 10095: if test -z "$ac_cpp_err"; then
! 10096: ac_header_preproc=yes
! 10097: else
! 10098: echo "$as_me: failed program was:" >&5
! 10099: cat conftest.$ac_ext >&5
! 10100: ac_header_preproc=no
! 10101: fi
! 10102: rm -f conftest.err conftest.$ac_ext
! 10103: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 10104: echo "${ECHO_T}$ac_header_preproc" >&6
! 10105:
! 10106: # So? What about this header?
! 10107: case $ac_header_compiler:$ac_header_preproc in
! 10108: yes:no )
! 10109: { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 10110: echo "$as_me: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 10111: { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
! 10112: echo "$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2;};;
! 10113: no:yes )
! 10114: { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: present but cannot be compiled" >&5
! 10115: echo "$as_me: WARNING: netinet/ip6.h: present but cannot be compiled" >&2;}
! 10116: { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&5
! 10117: echo "$as_me: WARNING: netinet/ip6.h: check for missing prerequisite headers?" >&2;}
! 10118: { echo "$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&5
! 10119: echo "$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result" >&2;};;
! 10120: esac
! 10121: echo "$as_me:$LINENO: checking for netinet/ip6.h" >&5
! 10122: echo $ECHO_N "checking for netinet/ip6.h... $ECHO_C" >&6
! 10123: if test "${ac_cv_header_netinet_ip6_h+set}" = set; then
! 10124: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10125: else
! 10126: ac_cv_header_netinet_ip6_h=$ac_header_preproc
! 10127: fi
! 10128: echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip6_h" >&5
! 10129: echo "${ECHO_T}$ac_cv_header_netinet_ip6_h" >&6
! 10130:
! 10131: fi
! 10132: if test $ac_cv_header_netinet_ip6_h = yes; then
1.234 momjian 10133: HAVE_IPV6="yes"; cat >>confdefs.h <<\_ACEOF
10134: #define HAVE_IPV6 1
10135: _ACEOF
1.235 ! momjian 10136:
! 10137: fi
! 10138:
1.234 momjian 10139:
10140: fi
10141:
10142:
10143:
1.179 petere 10144: echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10145: echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10146: if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10148: else
1.179 petere 10149: cat >conftest.$ac_ext <<_ACEOF
10150: #line $LINENO "configure"
1.1 petere 10151: #include "confdefs.h"
1.179 petere 10152: #include <machine/vmparam.h>
10153: #include <sys/exec.h>
1.1 petere 10154:
1.179 petere 10155: #ifdef F77_DUMMY_MAIN
10156: # ifdef __cplusplus
10157: extern "C"
10158: # endif
10159: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10160: #endif
1.179 petere 10161: int
10162: main ()
10163: {
10164: PS_STRINGS->ps_nargvstr = 1;
10165: PS_STRINGS->ps_argvstr = "foo";
10166: ;
10167: return 0;
10168: }
10169: _ACEOF
10170: rm -f conftest.$ac_objext conftest$ac_exeext
10171: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172: (eval $ac_link) 2>&5
10173: ac_status=$?
10174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175: (exit $ac_status); } &&
10176: { ac_try='test -s conftest$ac_exeext'
10177: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178: (eval $ac_try) 2>&5
10179: ac_status=$?
10180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181: (exit $ac_status); }; }; then
10182: pgac_cv_var_PS_STRINGS=yes
1.1 petere 10183: else
1.179 petere 10184: echo "$as_me: failed program was:" >&5
10185: cat conftest.$ac_ext >&5
10186: pgac_cv_var_PS_STRINGS=no
1.1 petere 10187: fi
1.179 petere 10188: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10189: fi
1.179 petere 10190: echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10191: echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10192: if test "$pgac_cv_var_PS_STRINGS" = yes ; then
1.1 petere 10193:
1.179 petere 10194: cat >>confdefs.h <<\_ACEOF
10195: #define HAVE_PS_STRINGS
10196: _ACEOF
1.1 petere 10197:
10198: fi
10199:
10200:
1.179 petere 10201: # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10202: # is missing. Yes, there are machines that have only one. We may
10203: # also decide to use snprintf.c if snprintf() is present but does not
10204: # have working "long long int" support -- see below.
10205:
1.203 petere 10206: pgac_need_repl_snprintf=no
1.179 petere 10207:
10208: for ac_func in snprintf
10209: do
10210: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10211: echo "$as_me:$LINENO: checking for $ac_func" >&5
10212: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10213: if eval "test \"\${$as_ac_var+set}\" = set"; then
10214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10215: else
1.179 petere 10216: cat >conftest.$ac_ext <<_ACEOF
10217: #line $LINENO "configure"
1.1 petere 10218: #include "confdefs.h"
10219: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10220: which can conflict with char $ac_func (); below. */
1.1 petere 10221: #include <assert.h>
10222: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10223: #ifdef __cplusplus
10224: extern "C"
10225: #endif
1.1 petere 10226: /* We use char because int might match the return type of a gcc2
1.179 petere 10227: builtin and then its argument prototype would still apply. */
10228: char $ac_func ();
10229: char (*f) ();
10230:
10231: #ifdef F77_DUMMY_MAIN
10232: # ifdef __cplusplus
10233: extern "C"
10234: # endif
10235: int F77_DUMMY_MAIN() { return 1; }
10236: #endif
10237: int
10238: main ()
10239: {
1.1 petere 10240: /* The GNU C library defines this for functions which it implements
10241: to always fail with ENOSYS. Some functions are actually named
10242: something starting with __ and the normal name is an alias. */
1.179 petere 10243: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10244: choke me
10245: #else
1.179 petere 10246: f = $ac_func;
1.1 petere 10247: #endif
10248:
1.179 petere 10249: ;
10250: return 0;
10251: }
10252: _ACEOF
10253: rm -f conftest.$ac_objext conftest$ac_exeext
10254: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255: (eval $ac_link) 2>&5
10256: ac_status=$?
10257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258: (exit $ac_status); } &&
10259: { ac_try='test -s conftest$ac_exeext'
10260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261: (eval $ac_try) 2>&5
10262: ac_status=$?
10263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264: (exit $ac_status); }; }; then
10265: eval "$as_ac_var=yes"
10266: else
10267: echo "$as_me: failed program was:" >&5
10268: cat conftest.$ac_ext >&5
10269: eval "$as_ac_var=no"
10270: fi
10271: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10272: fi
10273: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10274: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10275: if test `eval echo '${'$as_ac_var'}'` = yes; then
10276: cat >>confdefs.h <<_ACEOF
10277: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278: _ACEOF
1.1 petere 10279:
10280: else
1.203 petere 10281: pgac_need_repl_snprintf=yes
1.1 petere 10282: fi
1.179 petere 10283: done
1.1 petere 10284:
10285:
1.179 petere 10286: for ac_func in vsnprintf
10287: do
10288: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10289: echo "$as_me:$LINENO: checking for $ac_func" >&5
10290: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10291: if eval "test \"\${$as_ac_var+set}\" = set"; then
10292: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10293: else
1.179 petere 10294: cat >conftest.$ac_ext <<_ACEOF
10295: #line $LINENO "configure"
1.1 petere 10296: #include "confdefs.h"
10297: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10298: which can conflict with char $ac_func (); below. */
1.1 petere 10299: #include <assert.h>
10300: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10301: #ifdef __cplusplus
10302: extern "C"
10303: #endif
1.1 petere 10304: /* We use char because int might match the return type of a gcc2
1.179 petere 10305: builtin and then its argument prototype would still apply. */
10306: char $ac_func ();
10307: char (*f) ();
10308:
10309: #ifdef F77_DUMMY_MAIN
10310: # ifdef __cplusplus
10311: extern "C"
10312: # endif
10313: int F77_DUMMY_MAIN() { return 1; }
10314: #endif
10315: int
10316: main ()
10317: {
1.1 petere 10318: /* The GNU C library defines this for functions which it implements
10319: to always fail with ENOSYS. Some functions are actually named
10320: something starting with __ and the normal name is an alias. */
1.179 petere 10321: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10322: choke me
10323: #else
1.179 petere 10324: f = $ac_func;
1.1 petere 10325: #endif
10326:
1.179 petere 10327: ;
10328: return 0;
10329: }
10330: _ACEOF
10331: rm -f conftest.$ac_objext conftest$ac_exeext
10332: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10333: (eval $ac_link) 2>&5
10334: ac_status=$?
10335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336: (exit $ac_status); } &&
10337: { ac_try='test -s conftest$ac_exeext'
10338: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339: (eval $ac_try) 2>&5
10340: ac_status=$?
10341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342: (exit $ac_status); }; }; then
10343: eval "$as_ac_var=yes"
10344: else
10345: echo "$as_me: failed program was:" >&5
10346: cat conftest.$ac_ext >&5
10347: eval "$as_ac_var=no"
10348: fi
10349: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10350: fi
10351: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10352: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10353: if test `eval echo '${'$as_ac_var'}'` = yes; then
10354: cat >>confdefs.h <<_ACEOF
10355: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10356: _ACEOF
10357:
1.1 petere 10358: else
1.203 petere 10359: pgac_need_repl_snprintf=yes
1.1 petere 10360: fi
1.179 petere 10361: done
10362:
10363:
10364:
10365: # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10366: # include/c.h will provide declarations. Note this is a separate test
10367: # from whether the functions exist in the C library --- there are
10368: # systems that have the functions but don't bother to declare them :-(
10369:
10370: echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10371: echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10372: if test "${ac_cv_have_decl_snprintf+set}" = set; then
10373: echo $ECHO_N "(cached) $ECHO_C" >&6
10374: else
10375: cat >conftest.$ac_ext <<_ACEOF
10376: #line $LINENO "configure"
10377: #include "confdefs.h"
10378: $ac_includes_default
10379: #ifdef F77_DUMMY_MAIN
10380: # ifdef __cplusplus
10381: extern "C"
10382: # endif
10383: int F77_DUMMY_MAIN() { return 1; }
10384: #endif
10385: int
10386: main ()
10387: {
10388: #ifndef snprintf
10389: char *p = (char *) snprintf;
10390: #endif
10391:
10392: ;
10393: return 0;
10394: }
10395: _ACEOF
10396: rm -f conftest.$ac_objext
10397: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398: (eval $ac_compile) 2>&5
10399: ac_status=$?
10400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401: (exit $ac_status); } &&
10402: { ac_try='test -s conftest.$ac_objext'
10403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404: (eval $ac_try) 2>&5
10405: ac_status=$?
10406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407: (exit $ac_status); }; }; then
10408: ac_cv_have_decl_snprintf=yes
10409: else
10410: echo "$as_me: failed program was:" >&5
10411: cat conftest.$ac_ext >&5
10412: ac_cv_have_decl_snprintf=no
10413: fi
10414: rm -f conftest.$ac_objext conftest.$ac_ext
10415: fi
10416: echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10417: echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10418: if test $ac_cv_have_decl_snprintf = yes; then
10419:
10420: cat >>confdefs.h <<_ACEOF
10421: #define HAVE_DECL_SNPRINTF 1
10422: _ACEOF
10423:
10424:
10425: else
10426: cat >>confdefs.h <<_ACEOF
10427: #define HAVE_DECL_SNPRINTF 0
10428: _ACEOF
10429:
10430:
1.1 petere 10431: fi
1.179 petere 10432: echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10433: echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10434: if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10435: echo $ECHO_N "(cached) $ECHO_C" >&6
10436: else
10437: cat >conftest.$ac_ext <<_ACEOF
10438: #line $LINENO "configure"
10439: #include "confdefs.h"
10440: $ac_includes_default
10441: #ifdef F77_DUMMY_MAIN
10442: # ifdef __cplusplus
10443: extern "C"
10444: # endif
10445: int F77_DUMMY_MAIN() { return 1; }
10446: #endif
10447: int
10448: main ()
10449: {
10450: #ifndef vsnprintf
10451: char *p = (char *) vsnprintf;
10452: #endif
10453:
10454: ;
10455: return 0;
10456: }
10457: _ACEOF
10458: rm -f conftest.$ac_objext
10459: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460: (eval $ac_compile) 2>&5
10461: ac_status=$?
10462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463: (exit $ac_status); } &&
10464: { ac_try='test -s conftest.$ac_objext'
10465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466: (eval $ac_try) 2>&5
10467: ac_status=$?
10468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469: (exit $ac_status); }; }; then
10470: ac_cv_have_decl_vsnprintf=yes
10471: else
10472: echo "$as_me: failed program was:" >&5
10473: cat conftest.$ac_ext >&5
10474: ac_cv_have_decl_vsnprintf=no
10475: fi
10476: rm -f conftest.$ac_objext conftest.$ac_ext
10477: fi
10478: echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10479: echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10480: if test $ac_cv_have_decl_vsnprintf = yes; then
10481:
10482: cat >>confdefs.h <<_ACEOF
10483: #define HAVE_DECL_VSNPRINTF 1
10484: _ACEOF
1.1 petere 10485:
10486:
10487: else
1.179 petere 10488: cat >>confdefs.h <<_ACEOF
10489: #define HAVE_DECL_VSNPRINTF 0
10490: _ACEOF
10491:
10492:
1.1 petere 10493: fi
10494:
10495:
1.179 petere 10496:
10497:
10498: # do this one the hard way in case isinf() is a macro
10499: echo "$as_me:$LINENO: checking for isinf" >&5
10500: echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10501: if test "${ac_cv_func_isinf+set}" = set; then
10502: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10503: else
1.179 petere 10504: cat >conftest.$ac_ext <<_ACEOF
10505: #line $LINENO "configure"
1.1 petere 10506: #include "confdefs.h"
1.179 petere 10507: #include <math.h>
1.1 petere 10508:
1.179 petere 10509: #ifdef F77_DUMMY_MAIN
10510: # ifdef __cplusplus
10511: extern "C"
10512: # endif
10513: int F77_DUMMY_MAIN() { return 1; }
1.1 petere 10514: #endif
1.179 petere 10515: int
10516: main ()
10517: {
10518: double x = 0.0; int res = isinf(x);
10519: ;
10520: return 0;
10521: }
10522: _ACEOF
10523: rm -f conftest.$ac_objext conftest$ac_exeext
10524: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525: (eval $ac_link) 2>&5
10526: ac_status=$?
10527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528: (exit $ac_status); } &&
10529: { ac_try='test -s conftest$ac_exeext'
10530: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531: (eval $ac_try) 2>&5
10532: ac_status=$?
10533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534: (exit $ac_status); }; }; then
10535: ac_cv_func_isinf=yes
1.1 petere 10536: else
1.179 petere 10537: echo "$as_me: failed program was:" >&5
10538: cat conftest.$ac_ext >&5
10539: ac_cv_func_isinf=no
1.1 petere 10540: fi
1.179 petere 10541: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10542: fi
1.179 petere 10543: echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10544: echo "${ECHO_T}$ac_cv_func_isinf" >&6
10545:
10546: if test $ac_cv_func_isinf = yes ; then
1.1 petere 10547:
1.179 petere 10548: cat >>confdefs.h <<\_ACEOF
10549: #define HAVE_ISINF 1
10550: _ACEOF
1.1 petere 10551:
10552: else
1.203 petere 10553: LIBOBJS="$LIBOBJS isinf.$ac_objext"
1.179 petere 10554: # Look for a way to implement a substitute for isinf()
10555:
10556:
1.1 petere 10557:
10558:
1.179 petere 10559: for ac_func in fpclass fp_class fp_class_d class
10560: do
10561: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10562: echo "$as_me:$LINENO: checking for $ac_func" >&5
10563: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10564: if eval "test \"\${$as_ac_var+set}\" = set"; then
10565: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10566: else
1.179 petere 10567: cat >conftest.$ac_ext <<_ACEOF
10568: #line $LINENO "configure"
1.1 petere 10569: #include "confdefs.h"
10570: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10571: which can conflict with char $ac_func (); below. */
1.1 petere 10572: #include <assert.h>
10573: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10574: #ifdef __cplusplus
10575: extern "C"
10576: #endif
1.1 petere 10577: /* We use char because int might match the return type of a gcc2
1.179 petere 10578: builtin and then its argument prototype would still apply. */
10579: char $ac_func ();
10580: char (*f) ();
10581:
10582: #ifdef F77_DUMMY_MAIN
10583: # ifdef __cplusplus
10584: extern "C"
10585: # endif
10586: int F77_DUMMY_MAIN() { return 1; }
10587: #endif
10588: int
10589: main ()
10590: {
1.1 petere 10591: /* The GNU C library defines this for functions which it implements
10592: to always fail with ENOSYS. Some functions are actually named
10593: something starting with __ and the normal name is an alias. */
1.179 petere 10594: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10595: choke me
10596: #else
1.179 petere 10597: f = $ac_func;
1.1 petere 10598: #endif
10599:
1.179 petere 10600: ;
10601: return 0;
10602: }
10603: _ACEOF
10604: rm -f conftest.$ac_objext conftest$ac_exeext
10605: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606: (eval $ac_link) 2>&5
10607: ac_status=$?
10608: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609: (exit $ac_status); } &&
10610: { ac_try='test -s conftest$ac_exeext'
10611: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612: (eval $ac_try) 2>&5
10613: ac_status=$?
10614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615: (exit $ac_status); }; }; then
10616: eval "$as_ac_var=yes"
10617: else
10618: echo "$as_me: failed program was:" >&5
10619: cat conftest.$ac_ext >&5
10620: eval "$as_ac_var=no"
10621: fi
10622: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623: fi
10624: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10625: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10626: if test `eval echo '${'$as_ac_var'}'` = yes; then
10627: cat >>confdefs.h <<_ACEOF
10628: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10629: _ACEOF
10630: break
1.1 petere 10631: fi
1.179 petere 10632: done
10633:
1.1 petere 10634: fi
10635:
10636:
10637:
10638:
1.203 petere 10639:
10640:
10641:
10642:
10643:
10644:
10645:
1.221 momjian 10646:
10647: for ac_func in fseeko gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
1.179 petere 10648: do
10649: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10650: echo "$as_me:$LINENO: checking for $ac_func" >&5
10651: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10652: if eval "test \"\${$as_ac_var+set}\" = set"; then
10653: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10654: else
1.179 petere 10655: cat >conftest.$ac_ext <<_ACEOF
10656: #line $LINENO "configure"
1.1 petere 10657: #include "confdefs.h"
10658: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10659: which can conflict with char $ac_func (); below. */
1.1 petere 10660: #include <assert.h>
10661: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10662: #ifdef __cplusplus
10663: extern "C"
10664: #endif
1.1 petere 10665: /* We use char because int might match the return type of a gcc2
1.179 petere 10666: builtin and then its argument prototype would still apply. */
10667: char $ac_func ();
10668: char (*f) ();
10669:
10670: #ifdef F77_DUMMY_MAIN
10671: # ifdef __cplusplus
10672: extern "C"
10673: # endif
10674: int F77_DUMMY_MAIN() { return 1; }
10675: #endif
10676: int
10677: main ()
10678: {
1.1 petere 10679: /* The GNU C library defines this for functions which it implements
10680: to always fail with ENOSYS. Some functions are actually named
10681: something starting with __ and the normal name is an alias. */
1.179 petere 10682: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10683: choke me
10684: #else
1.179 petere 10685: f = $ac_func;
1.1 petere 10686: #endif
10687:
1.179 petere 10688: ;
10689: return 0;
10690: }
10691: _ACEOF
10692: rm -f conftest.$ac_objext conftest$ac_exeext
10693: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694: (eval $ac_link) 2>&5
10695: ac_status=$?
10696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697: (exit $ac_status); } &&
10698: { ac_try='test -s conftest$ac_exeext'
10699: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700: (eval $ac_try) 2>&5
10701: ac_status=$?
10702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703: (exit $ac_status); }; }; then
10704: eval "$as_ac_var=yes"
10705: else
10706: echo "$as_me: failed program was:" >&5
10707: cat conftest.$ac_ext >&5
10708: eval "$as_ac_var=no"
10709: fi
10710: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10711: fi
10712: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10713: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10714: if test `eval echo '${'$as_ac_var'}'` = yes; then
10715: cat >>confdefs.h <<_ACEOF
10716: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10717: _ACEOF
10718:
1.1 petere 10719: else
1.203 petere 10720: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 petere 10721: fi
1.179 petere 10722: done
1.1 petere 10723:
10724:
10725:
1.225 momjian 10726: # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
1.223 momjian 10727: # We override the previous test that said fseeko/ftello didn't exist
1.225 momjian 10728: # OS tests are also done in include/c.h and port/fseeko.c
10729: case $host_os in bsdi*|netbsd*)
1.223 momjian 10730: ac_cv_func_fseeko=yes
10731: esac
10732:
1.231 momjian 10733: # Solaris has a very slow qsort in certain cases, so we replace it.
1.203 petere 10734: case $host_os in
10735: solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10736: esac
10737:
10738: # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10739: # this hackery with HPUXMATHLIB allows us to cope.
10740: HPUXMATHLIB=""
10741: case $host_cpu in
10742: hppa1.1)
1.210 momjian 10743: if test -r /lib/pa1.1/libm.a ; then
1.203 petere 10744: HPUXMATHLIB="-L /lib/pa1.1 -lm"
10745: fi ;;
10746: esac
10747:
10748:
10749:
10750: for ac_func in rint
1.179 petere 10751: do
10752: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753: echo "$as_me:$LINENO: checking for $ac_func" >&5
10754: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755: if eval "test \"\${$as_ac_var+set}\" = set"; then
10756: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10757: else
1.179 petere 10758: cat >conftest.$ac_ext <<_ACEOF
10759: #line $LINENO "configure"
1.1 petere 10760: #include "confdefs.h"
10761: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10762: which can conflict with char $ac_func (); below. */
1.1 petere 10763: #include <assert.h>
10764: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10765: #ifdef __cplusplus
10766: extern "C"
10767: #endif
1.1 petere 10768: /* We use char because int might match the return type of a gcc2
1.179 petere 10769: builtin and then its argument prototype would still apply. */
10770: char $ac_func ();
10771: char (*f) ();
10772:
10773: #ifdef F77_DUMMY_MAIN
10774: # ifdef __cplusplus
10775: extern "C"
10776: # endif
10777: int F77_DUMMY_MAIN() { return 1; }
10778: #endif
10779: int
10780: main ()
10781: {
1.1 petere 10782: /* The GNU C library defines this for functions which it implements
10783: to always fail with ENOSYS. Some functions are actually named
10784: something starting with __ and the normal name is an alias. */
1.179 petere 10785: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 10786: choke me
10787: #else
1.179 petere 10788: f = $ac_func;
1.1 petere 10789: #endif
10790:
1.179 petere 10791: ;
10792: return 0;
10793: }
10794: _ACEOF
10795: rm -f conftest.$ac_objext conftest$ac_exeext
10796: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797: (eval $ac_link) 2>&5
10798: ac_status=$?
10799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800: (exit $ac_status); } &&
10801: { ac_try='test -s conftest$ac_exeext'
10802: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803: (eval $ac_try) 2>&5
10804: ac_status=$?
10805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806: (exit $ac_status); }; }; then
10807: eval "$as_ac_var=yes"
10808: else
10809: echo "$as_me: failed program was:" >&5
10810: cat conftest.$ac_ext >&5
10811: eval "$as_ac_var=no"
10812: fi
10813: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10814: fi
10815: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10816: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10817: if test `eval echo '${'$as_ac_var'}'` = yes; then
10818: cat >>confdefs.h <<_ACEOF
10819: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10820: _ACEOF
10821:
1.1 petere 10822: else
1.203 petere 10823: echo "$as_me:$LINENO: checking for rint in -lm" >&5
10824: echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10825: if test "${ac_cv_lib_m_rint+set}" = set; then
1.179 petere 10826: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10827: else
1.203 petere 10828: ac_check_lib_save_LIBS=$LIBS
10829: LIBS="-lm $HPUXMATHLIB $LIBS"
10830: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 10831: #line $LINENO "configure"
1.1 petere 10832: #include "confdefs.h"
1.203 petere 10833:
1.1 petere 10834: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10835: #ifdef __cplusplus
10836: extern "C"
10837: #endif
1.1 petere 10838: /* We use char because int might match the return type of a gcc2
1.179 petere 10839: builtin and then its argument prototype would still apply. */
1.203 petere 10840: char rint ();
1.179 petere 10841: #ifdef F77_DUMMY_MAIN
10842: # ifdef __cplusplus
10843: extern "C"
10844: # endif
10845: int F77_DUMMY_MAIN() { return 1; }
10846: #endif
10847: int
10848: main ()
10849: {
1.203 petere 10850: rint ();
1.179 petere 10851: ;
10852: return 0;
10853: }
10854: _ACEOF
10855: rm -f conftest.$ac_objext conftest$ac_exeext
10856: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857: (eval $ac_link) 2>&5
10858: ac_status=$?
10859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860: (exit $ac_status); } &&
10861: { ac_try='test -s conftest$ac_exeext'
10862: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863: (eval $ac_try) 2>&5
10864: ac_status=$?
10865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866: (exit $ac_status); }; }; then
1.203 petere 10867: ac_cv_lib_m_rint=yes
1.179 petere 10868: else
10869: echo "$as_me: failed program was:" >&5
10870: cat conftest.$ac_ext >&5
1.203 petere 10871: ac_cv_lib_m_rint=no
1.179 petere 10872: fi
10873: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.203 petere 10874: LIBS=$ac_check_lib_save_LIBS
1.179 petere 10875: fi
1.203 petere 10876: echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10877: echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10878: if test $ac_cv_lib_m_rint = yes; then
10879: cat >>confdefs.h <<\_ACEOF
10880: #define HAVE_RINT 1
1.179 petere 10881: _ACEOF
10882:
1.203 petere 10883: fi
10884:
1.1 petere 10885: fi
1.179 petere 10886: done
1.1 petere 10887:
1.179 petere 10888:
10889:
1.203 petere 10890: if test "$with_readline" = yes; then
10891: echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10892: echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10893: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 10894: #line $LINENO "configure"
10895: #include "confdefs.h"
1.203 petere 10896: #include <stdio.h>
10897: #ifdef HAVE_READLINE_READLINE_H
10898: # include <readline/readline.h>
10899: #elif defined(HAVE_READLINE_H)
10900: # include <readline.h>
1.179 petere 10901: #endif
10902:
10903: #ifdef F77_DUMMY_MAIN
10904: # ifdef __cplusplus
10905: extern "C"
10906: # endif
10907: int F77_DUMMY_MAIN() { return 1; }
10908: #endif
10909: int
10910: main ()
10911: {
1.203 petere 10912: rl_completion_append_character = 'x';
1.179 petere 10913: ;
10914: return 0;
10915: }
10916: _ACEOF
10917: rm -f conftest.$ac_objext conftest$ac_exeext
10918: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10919: (eval $ac_link) 2>&5
10920: ac_status=$?
10921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922: (exit $ac_status); } &&
10923: { ac_try='test -s conftest$ac_exeext'
10924: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925: (eval $ac_try) 2>&5
10926: ac_status=$?
10927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928: (exit $ac_status); }; }; then
1.203 petere 10929: echo "$as_me:$LINENO: result: yes" >&5
10930: echo "${ECHO_T}yes" >&6
10931:
10932: cat >>confdefs.h <<\_ACEOF
10933: #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10934: _ACEOF
10935:
1.179 petere 10936: else
10937: echo "$as_me: failed program was:" >&5
10938: cat conftest.$ac_ext >&5
1.203 petere 10939: echo "$as_me:$LINENO: result: no" >&5
10940: echo "${ECHO_T}no" >&6
1.179 petere 10941: fi
10942: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 petere 10943:
10944:
1.203 petere 10945: for ac_func in rl_completion_matches rl_filename_completion_function
1.179 petere 10946: do
10947: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948: echo "$as_me:$LINENO: checking for $ac_func" >&5
10949: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10950: if eval "test \"\${$as_ac_var+set}\" = set"; then
10951: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 10952: else
1.179 petere 10953: cat >conftest.$ac_ext <<_ACEOF
10954: #line $LINENO "configure"
1.1 petere 10955: #include "confdefs.h"
10956: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 10957: which can conflict with char $ac_func (); below. */
1.1 petere 10958: #include <assert.h>
10959: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 10960: #ifdef __cplusplus
10961: extern "C"
10962: #endif
1.1 petere 10963: /* We use char because int might match the return type of a gcc2
1.179 petere 10964: builtin and then its argument prototype would still apply. */
10965: char $ac_func ();
10966: char (*f) ();
10967:
10968: #ifdef F77_DUMMY_MAIN
10969: # ifdef __cplusplus
10970: extern "C"
10971: # endif
10972: int F77_DUMMY_MAIN() { return 1; }
10973: #endif
10974: int
10975: main ()
10976: {
10977: /* The GNU C library defines this for functions which it implements
10978: to always fail with ENOSYS. Some functions are actually named
10979: something starting with __ and the normal name is an alias. */
10980: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10981: choke me
10982: #else
10983: f = $ac_func;
10984: #endif
10985:
10986: ;
10987: return 0;
10988: }
10989: _ACEOF
10990: rm -f conftest.$ac_objext conftest$ac_exeext
10991: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992: (eval $ac_link) 2>&5
10993: ac_status=$?
10994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995: (exit $ac_status); } &&
10996: { ac_try='test -s conftest$ac_exeext'
10997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998: (eval $ac_try) 2>&5
10999: ac_status=$?
11000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001: (exit $ac_status); }; }; then
11002: eval "$as_ac_var=yes"
11003: else
11004: echo "$as_me: failed program was:" >&5
11005: cat conftest.$ac_ext >&5
11006: eval "$as_ac_var=no"
11007: fi
11008: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11009: fi
11010: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11011: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11012: if test `eval echo '${'$as_ac_var'}'` = yes; then
11013: cat >>confdefs.h <<_ACEOF
11014: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11015: _ACEOF
11016:
11017: fi
11018: done
11019:
1.203 petere 11020: fi
1.1 petere 11021:
11022:
1.203 petere 11023: echo "$as_me:$LINENO: checking for finite" >&5
11024: echo $ECHO_N "checking for finite... $ECHO_C" >&6
11025: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 11026: #line $LINENO "configure"
11027: #include "confdefs.h"
1.203 petere 11028: #include <math.h>
1.179 petere 11029: #ifdef F77_DUMMY_MAIN
11030: # ifdef __cplusplus
11031: extern "C"
11032: # endif
11033: int F77_DUMMY_MAIN() { return 1; }
11034: #endif
11035: int
11036: main ()
11037: {
1.203 petere 11038: int dummy=finite(1.0);
1.179 petere 11039: ;
11040: return 0;
11041: }
11042: _ACEOF
11043: rm -f conftest.$ac_objext conftest$ac_exeext
11044: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045: (eval $ac_link) 2>&5
11046: ac_status=$?
11047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048: (exit $ac_status); } &&
11049: { ac_try='test -s conftest$ac_exeext'
11050: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051: (eval $ac_try) 2>&5
11052: ac_status=$?
11053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054: (exit $ac_status); }; }; then
1.203 petere 11055:
11056: cat >>confdefs.h <<\_ACEOF
11057: #define HAVE_FINITE 1
11058: _ACEOF
11059:
11060: echo "$as_me:$LINENO: result: yes" >&5
11061: echo "${ECHO_T}yes" >&6
1.179 petere 11062: else
11063: echo "$as_me: failed program was:" >&5
11064: cat conftest.$ac_ext >&5
1.203 petere 11065: echo "$as_me:$LINENO: result: no" >&5
11066: echo "${ECHO_T}no" >&6
1.179 petere 11067: fi
11068: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069:
1.203 petere 11070: echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11071: echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11072: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 11073: #line $LINENO "configure"
11074: #include "confdefs.h"
1.203 petere 11075: #include <setjmp.h>
1.179 petere 11076: #ifdef F77_DUMMY_MAIN
11077: # ifdef __cplusplus
11078: extern "C"
11079: # endif
11080: int F77_DUMMY_MAIN() { return 1; }
11081: #endif
11082: int
11083: main ()
11084: {
1.203 petere 11085: sigjmp_buf x; sigsetjmp(x, 1);
1.179 petere 11086: ;
11087: return 0;
11088: }
11089: _ACEOF
11090: rm -f conftest.$ac_objext conftest$ac_exeext
11091: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092: (eval $ac_link) 2>&5
11093: ac_status=$?
11094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095: (exit $ac_status); } &&
11096: { ac_try='test -s conftest$ac_exeext'
11097: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098: (eval $ac_try) 2>&5
11099: ac_status=$?
11100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101: (exit $ac_status); }; }; then
1.203 petere 11102:
11103: cat >>confdefs.h <<\_ACEOF
11104: #define HAVE_SIGSETJMP 1
11105: _ACEOF
11106:
11107: echo "$as_me:$LINENO: result: yes" >&5
11108: echo "${ECHO_T}yes" >&6
1.179 petere 11109: else
11110: echo "$as_me: failed program was:" >&5
11111: cat conftest.$ac_ext >&5
1.203 petere 11112: echo "$as_me:$LINENO: result: no" >&5
11113: echo "${ECHO_T}no" >&6
1.179 petere 11114: fi
11115: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11116:
1.203 petere 11117: echo "$as_me:$LINENO: checking for syslog" >&5
11118: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11119: if test "${ac_cv_func_syslog+set}" = set; then
1.179 petere 11120: echo $ECHO_N "(cached) $ECHO_C" >&6
11121: else
11122: cat >conftest.$ac_ext <<_ACEOF
11123: #line $LINENO "configure"
11124: #include "confdefs.h"
11125: /* System header to define __stub macros and hopefully few prototypes,
1.203 petere 11126: which can conflict with char syslog (); below. */
1.179 petere 11127: #include <assert.h>
11128: /* Override any gcc2 internal prototype to avoid an error. */
11129: #ifdef __cplusplus
11130: extern "C"
11131: #endif
11132: /* We use char because int might match the return type of a gcc2
11133: builtin and then its argument prototype would still apply. */
1.203 petere 11134: char syslog ();
1.179 petere 11135: char (*f) ();
11136:
11137: #ifdef F77_DUMMY_MAIN
11138: # ifdef __cplusplus
11139: extern "C"
11140: # endif
11141: int F77_DUMMY_MAIN() { return 1; }
11142: #endif
11143: int
11144: main ()
11145: {
11146: /* The GNU C library defines this for functions which it implements
11147: to always fail with ENOSYS. Some functions are actually named
11148: something starting with __ and the normal name is an alias. */
1.203 petere 11149: #if defined (__stub_syslog) || defined (__stub___syslog)
1.179 petere 11150: choke me
11151: #else
1.203 petere 11152: f = syslog;
1.179 petere 11153: #endif
1.1 petere 11154:
1.179 petere 11155: ;
11156: return 0;
11157: }
11158: _ACEOF
11159: rm -f conftest.$ac_objext conftest$ac_exeext
11160: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161: (eval $ac_link) 2>&5
11162: ac_status=$?
11163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164: (exit $ac_status); } &&
11165: { ac_try='test -s conftest$ac_exeext'
11166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167: (eval $ac_try) 2>&5
11168: ac_status=$?
11169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170: (exit $ac_status); }; }; then
1.203 petere 11171: ac_cv_func_syslog=yes
1.179 petere 11172: else
11173: echo "$as_me: failed program was:" >&5
11174: cat conftest.$ac_ext >&5
1.203 petere 11175: ac_cv_func_syslog=no
1.179 petere 11176: fi
11177: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178: fi
1.203 petere 11179: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11180: echo "${ECHO_T}$ac_cv_func_syslog" >&6
11181: if test $ac_cv_func_syslog = yes; then
11182: if test "${ac_cv_header_syslog_h+set}" = set; then
11183: echo "$as_me:$LINENO: checking for syslog.h" >&5
11184: echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11185: if test "${ac_cv_header_syslog_h+set}" = set; then
11186: echo $ECHO_N "(cached) $ECHO_C" >&6
11187: fi
11188: echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11189: echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11190: else
11191: # Is the header compilable?
11192: echo "$as_me:$LINENO: checking syslog.h usability" >&5
11193: echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11194: cat >conftest.$ac_ext <<_ACEOF
11195: #line $LINENO "configure"
11196: #include "confdefs.h"
11197: $ac_includes_default
11198: #include <syslog.h>
11199: _ACEOF
11200: rm -f conftest.$ac_objext
11201: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202: (eval $ac_compile) 2>&5
11203: ac_status=$?
11204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205: (exit $ac_status); } &&
11206: { ac_try='test -s conftest.$ac_objext'
11207: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208: (eval $ac_try) 2>&5
11209: ac_status=$?
11210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211: (exit $ac_status); }; }; then
11212: ac_header_compiler=yes
11213: else
11214: echo "$as_me: failed program was:" >&5
11215: cat conftest.$ac_ext >&5
11216: ac_header_compiler=no
11217: fi
11218: rm -f conftest.$ac_objext conftest.$ac_ext
11219: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220: echo "${ECHO_T}$ac_header_compiler" >&6
11221:
11222: # Is the header present?
11223: echo "$as_me:$LINENO: checking syslog.h presence" >&5
11224: echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11225: cat >conftest.$ac_ext <<_ACEOF
11226: #line $LINENO "configure"
11227: #include "confdefs.h"
11228: #include <syslog.h>
11229: _ACEOF
11230: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11231: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11232: ac_status=$?
11233: egrep -v '^ *\+' conftest.er1 >conftest.err
11234: rm -f conftest.er1
11235: cat conftest.err >&5
11236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237: (exit $ac_status); } >/dev/null; then
11238: if test -s conftest.err; then
11239: ac_cpp_err=$ac_c_preproc_warn_flag
11240: else
11241: ac_cpp_err=
11242: fi
11243: else
11244: ac_cpp_err=yes
11245: fi
11246: if test -z "$ac_cpp_err"; then
11247: ac_header_preproc=yes
11248: else
11249: echo "$as_me: failed program was:" >&5
11250: cat conftest.$ac_ext >&5
11251: ac_header_preproc=no
11252: fi
11253: rm -f conftest.err conftest.$ac_ext
11254: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11255: echo "${ECHO_T}$ac_header_preproc" >&6
11256:
11257: # So? What about this header?
11258: case $ac_header_compiler:$ac_header_preproc in
11259: yes:no )
11260: { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11261: echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11262: { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11263: echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11264: no:yes )
11265: { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11266: echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11267: { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11268: echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11269: { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11270: echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11271: esac
11272: echo "$as_me:$LINENO: checking for syslog.h" >&5
11273: echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11274: if test "${ac_cv_header_syslog_h+set}" = set; then
11275: echo $ECHO_N "(cached) $ECHO_C" >&6
11276: else
11277: ac_cv_header_syslog_h=$ac_header_preproc
11278: fi
11279: echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11280: echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11281:
11282: fi
11283: if test $ac_cv_header_syslog_h = yes; then
11284: cat >>confdefs.h <<\_ACEOF
11285: #define HAVE_SYSLOG 1
1.179 petere 11286: _ACEOF
1.1 petere 11287:
1.203 petere 11288: fi
11289:
11290:
11291: fi
11292:
11293:
11294: echo "$as_me:$LINENO: checking for optreset" >&5
11295: echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11296: if test "${pgac_cv_var_int_optreset+set}" = set; then
11297: echo $ECHO_N "(cached) $ECHO_C" >&6
11298: else
11299: cat >conftest.$ac_ext <<_ACEOF
11300: #line $LINENO "configure"
11301: #include "confdefs.h"
11302: #include <unistd.h>
11303: #ifdef F77_DUMMY_MAIN
11304: # ifdef __cplusplus
11305: extern "C"
11306: # endif
11307: int F77_DUMMY_MAIN() { return 1; }
11308: #endif
11309: int
11310: main ()
11311: {
11312: extern int optreset; optreset = 1;
11313: ;
11314: return 0;
11315: }
11316: _ACEOF
11317: rm -f conftest.$ac_objext conftest$ac_exeext
11318: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319: (eval $ac_link) 2>&5
11320: ac_status=$?
11321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322: (exit $ac_status); } &&
11323: { ac_try='test -s conftest$ac_exeext'
11324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325: (eval $ac_try) 2>&5
11326: ac_status=$?
11327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328: (exit $ac_status); }; }; then
11329: pgac_cv_var_int_optreset=yes
1.1 petere 11330: else
1.203 petere 11331: echo "$as_me: failed program was:" >&5
11332: cat conftest.$ac_ext >&5
11333: pgac_cv_var_int_optreset=no
11334: fi
11335: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336: fi
11337: echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11338: echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11339: if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11340:
11341: cat >>confdefs.h <<\_ACEOF
11342: #define HAVE_INT_OPTRESET 1
11343: _ACEOF
11344:
1.179 petere 11345: fi
11346:
11347:
11348:
1.203 petere 11349: for ac_func in strtoll strtoq
1.179 petere 11350: do
11351: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11352: echo "$as_me:$LINENO: checking for $ac_func" >&5
11353: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11354: if eval "test \"\${$as_ac_var+set}\" = set"; then
11355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11356: else
1.179 petere 11357: cat >conftest.$ac_ext <<_ACEOF
11358: #line $LINENO "configure"
1.1 petere 11359: #include "confdefs.h"
1.179 petere 11360: /* System header to define __stub macros and hopefully few prototypes,
11361: which can conflict with char $ac_func (); below. */
11362: #include <assert.h>
1.1 petere 11363: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11364: #ifdef __cplusplus
11365: extern "C"
11366: #endif
1.1 petere 11367: /* We use char because int might match the return type of a gcc2
1.179 petere 11368: builtin and then its argument prototype would still apply. */
11369: char $ac_func ();
11370: char (*f) ();
11371:
11372: #ifdef F77_DUMMY_MAIN
11373: # ifdef __cplusplus
11374: extern "C"
11375: # endif
11376: int F77_DUMMY_MAIN() { return 1; }
11377: #endif
11378: int
11379: main ()
11380: {
11381: /* The GNU C library defines this for functions which it implements
11382: to always fail with ENOSYS. Some functions are actually named
11383: something starting with __ and the normal name is an alias. */
11384: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11385: choke me
11386: #else
11387: f = $ac_func;
11388: #endif
11389:
11390: ;
11391: return 0;
11392: }
11393: _ACEOF
11394: rm -f conftest.$ac_objext conftest$ac_exeext
11395: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396: (eval $ac_link) 2>&5
11397: ac_status=$?
11398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399: (exit $ac_status); } &&
11400: { ac_try='test -s conftest$ac_exeext'
11401: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402: (eval $ac_try) 2>&5
11403: ac_status=$?
11404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405: (exit $ac_status); }; }; then
11406: eval "$as_ac_var=yes"
11407: else
11408: echo "$as_me: failed program was:" >&5
11409: cat conftest.$ac_ext >&5
11410: eval "$as_ac_var=no"
11411: fi
11412: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11413: fi
11414: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11415: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11416: if test `eval echo '${'$as_ac_var'}'` = yes; then
11417: cat >>confdefs.h <<_ACEOF
11418: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11419: _ACEOF
1.203 petere 11420: break
1.1 petere 11421: fi
1.179 petere 11422: done
11423:
11424:
11425:
1.203 petere 11426: for ac_func in strtoull strtouq
1.179 petere 11427: do
11428: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11429: echo "$as_me:$LINENO: checking for $ac_func" >&5
11430: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11431: if eval "test \"\${$as_ac_var+set}\" = set"; then
11432: echo $ECHO_N "(cached) $ECHO_C" >&6
11433: else
11434: cat >conftest.$ac_ext <<_ACEOF
11435: #line $LINENO "configure"
11436: #include "confdefs.h"
11437: /* System header to define __stub macros and hopefully few prototypes,
11438: which can conflict with char $ac_func (); below. */
11439: #include <assert.h>
11440: /* Override any gcc2 internal prototype to avoid an error. */
11441: #ifdef __cplusplus
11442: extern "C"
11443: #endif
11444: /* We use char because int might match the return type of a gcc2
11445: builtin and then its argument prototype would still apply. */
11446: char $ac_func ();
11447: char (*f) ();
11448:
11449: #ifdef F77_DUMMY_MAIN
11450: # ifdef __cplusplus
11451: extern "C"
11452: # endif
11453: int F77_DUMMY_MAIN() { return 1; }
11454: #endif
11455: int
11456: main ()
11457: {
11458: /* The GNU C library defines this for functions which it implements
11459: to always fail with ENOSYS. Some functions are actually named
11460: something starting with __ and the normal name is an alias. */
11461: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11462: choke me
11463: #else
11464: f = $ac_func;
11465: #endif
1.1 petere 11466:
1.179 petere 11467: ;
11468: return 0;
11469: }
11470: _ACEOF
11471: rm -f conftest.$ac_objext conftest$ac_exeext
11472: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473: (eval $ac_link) 2>&5
11474: ac_status=$?
11475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476: (exit $ac_status); } &&
11477: { ac_try='test -s conftest$ac_exeext'
11478: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479: (eval $ac_try) 2>&5
11480: ac_status=$?
11481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482: (exit $ac_status); }; }; then
11483: eval "$as_ac_var=yes"
11484: else
11485: echo "$as_me: failed program was:" >&5
11486: cat conftest.$ac_ext >&5
11487: eval "$as_ac_var=no"
11488: fi
11489: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11490: fi
11491: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11492: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11493: if test `eval echo '${'$as_ac_var'}'` = yes; then
11494: cat >>confdefs.h <<_ACEOF
11495: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11496: _ACEOF
1.203 petere 11497: break
1.1 petere 11498: fi
1.179 petere 11499: done
1.1 petere 11500:
11501:
1.203 petere 11502: # Check for one of atexit() or on_exit()
1.1 petere 11503:
1.203 petere 11504: for ac_func in atexit
1.179 petere 11505: do
11506: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11507: echo "$as_me:$LINENO: checking for $ac_func" >&5
11508: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11509: if eval "test \"\${$as_ac_var+set}\" = set"; then
11510: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11511: else
1.179 petere 11512: cat >conftest.$ac_ext <<_ACEOF
11513: #line $LINENO "configure"
1.1 petere 11514: #include "confdefs.h"
11515: /* System header to define __stub macros and hopefully few prototypes,
1.179 petere 11516: which can conflict with char $ac_func (); below. */
1.1 petere 11517: #include <assert.h>
11518: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11519: #ifdef __cplusplus
11520: extern "C"
11521: #endif
1.1 petere 11522: /* We use char because int might match the return type of a gcc2
1.179 petere 11523: builtin and then its argument prototype would still apply. */
11524: char $ac_func ();
11525: char (*f) ();
11526:
11527: #ifdef F77_DUMMY_MAIN
11528: # ifdef __cplusplus
11529: extern "C"
11530: # endif
11531: int F77_DUMMY_MAIN() { return 1; }
11532: #endif
11533: int
11534: main ()
11535: {
1.1 petere 11536: /* The GNU C library defines this for functions which it implements
11537: to always fail with ENOSYS. Some functions are actually named
11538: something starting with __ and the normal name is an alias. */
1.179 petere 11539: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 petere 11540: choke me
11541: #else
1.179 petere 11542: f = $ac_func;
1.1 petere 11543: #endif
11544:
1.179 petere 11545: ;
11546: return 0;
11547: }
11548: _ACEOF
11549: rm -f conftest.$ac_objext conftest$ac_exeext
11550: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551: (eval $ac_link) 2>&5
11552: ac_status=$?
11553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554: (exit $ac_status); } &&
11555: { ac_try='test -s conftest$ac_exeext'
11556: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557: (eval $ac_try) 2>&5
11558: ac_status=$?
11559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560: (exit $ac_status); }; }; then
11561: eval "$as_ac_var=yes"
11562: else
11563: echo "$as_me: failed program was:" >&5
11564: cat conftest.$ac_ext >&5
11565: eval "$as_ac_var=no"
11566: fi
11567: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568: fi
11569: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11570: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11571: if test `eval echo '${'$as_ac_var'}'` = yes; then
11572: cat >>confdefs.h <<_ACEOF
11573: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11574: _ACEOF
11575:
11576: else
1.203 petere 11577:
11578: for ac_func in on_exit
11579: do
11580: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11581: echo "$as_me:$LINENO: checking for $ac_func" >&5
11582: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11583: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.179 petere 11584: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11585: else
1.203 petere 11586: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 11587: #line $LINENO "configure"
1.1 petere 11588: #include "confdefs.h"
1.203 petere 11589: /* System header to define __stub macros and hopefully few prototypes,
11590: which can conflict with char $ac_func (); below. */
11591: #include <assert.h>
1.1 petere 11592: /* Override any gcc2 internal prototype to avoid an error. */
1.179 petere 11593: #ifdef __cplusplus
11594: extern "C"
11595: #endif
1.1 petere 11596: /* We use char because int might match the return type of a gcc2
1.179 petere 11597: builtin and then its argument prototype would still apply. */
1.203 petere 11598: char $ac_func ();
11599: char (*f) ();
11600:
1.179 petere 11601: #ifdef F77_DUMMY_MAIN
11602: # ifdef __cplusplus
11603: extern "C"
11604: # endif
11605: int F77_DUMMY_MAIN() { return 1; }
11606: #endif
11607: int
11608: main ()
11609: {
1.203 petere 11610: /* The GNU C library defines this for functions which it implements
11611: to always fail with ENOSYS. Some functions are actually named
11612: something starting with __ and the normal name is an alias. */
11613: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11614: choke me
11615: #else
11616: f = $ac_func;
11617: #endif
11618:
1.179 petere 11619: ;
11620: return 0;
11621: }
11622: _ACEOF
11623: rm -f conftest.$ac_objext conftest$ac_exeext
11624: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625: (eval $ac_link) 2>&5
11626: ac_status=$?
11627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628: (exit $ac_status); } &&
11629: { ac_try='test -s conftest$ac_exeext'
11630: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631: (eval $ac_try) 2>&5
11632: ac_status=$?
11633: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634: (exit $ac_status); }; }; then
1.203 petere 11635: eval "$as_ac_var=yes"
1.179 petere 11636: else
11637: echo "$as_me: failed program was:" >&5
11638: cat conftest.$ac_ext >&5
1.203 petere 11639: eval "$as_ac_var=no"
1.179 petere 11640: fi
11641: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11642: fi
1.203 petere 11643: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11644: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11645: if test `eval echo '${'$as_ac_var'}'` = yes; then
11646: cat >>confdefs.h <<_ACEOF
11647: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.179 petere 11648: _ACEOF
1.1 petere 11649:
1.203 petere 11650: else
11651: { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11652: echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11653: { (exit 1); exit 1; }; }
1.1 petere 11654: fi
1.203 petere 11655: done
1.1 petere 11656:
11657: fi
1.179 petere 11658: done
1.1 petere 11659:
1.222 momjian 11660:
1.204 petere 11661: echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11662: echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11663: if test "${ac_cv_sys_largefile_source+set}" = set; then
11664: echo $ECHO_N "(cached) $ECHO_C" >&6
11665: else
11666: while :; do
11667: ac_cv_sys_largefile_source=no
11668: cat >conftest.$ac_ext <<_ACEOF
11669: #line $LINENO "configure"
11670: #include "confdefs.h"
11671: #include <stdio.h>
11672: #ifdef F77_DUMMY_MAIN
11673: # ifdef __cplusplus
11674: extern "C"
11675: # endif
11676: int F77_DUMMY_MAIN() { return 1; }
11677: #endif
11678: int
11679: main ()
11680: {
11681: return !fseeko;
11682: ;
11683: return 0;
11684: }
11685: _ACEOF
11686: rm -f conftest.$ac_objext
11687: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688: (eval $ac_compile) 2>&5
11689: ac_status=$?
11690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691: (exit $ac_status); } &&
11692: { ac_try='test -s conftest.$ac_objext'
11693: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694: (eval $ac_try) 2>&5
11695: ac_status=$?
11696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697: (exit $ac_status); }; }; then
11698: break
11699: else
11700: echo "$as_me: failed program was:" >&5
11701: cat conftest.$ac_ext >&5
11702: fi
11703: rm -f conftest.$ac_objext conftest.$ac_ext
11704: cat >conftest.$ac_ext <<_ACEOF
11705: #line $LINENO "configure"
11706: #include "confdefs.h"
11707: #define _LARGEFILE_SOURCE 1
11708: #include <stdio.h>
11709: #ifdef F77_DUMMY_MAIN
11710: # ifdef __cplusplus
11711: extern "C"
11712: # endif
11713: int F77_DUMMY_MAIN() { return 1; }
11714: #endif
11715: int
11716: main ()
11717: {
11718: return !fseeko;
11719: ;
11720: return 0;
11721: }
11722: _ACEOF
11723: rm -f conftest.$ac_objext
11724: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725: (eval $ac_compile) 2>&5
11726: ac_status=$?
11727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728: (exit $ac_status); } &&
11729: { ac_try='test -s conftest.$ac_objext'
11730: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731: (eval $ac_try) 2>&5
11732: ac_status=$?
11733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734: (exit $ac_status); }; }; then
11735: ac_cv_sys_largefile_source=1; break
11736: else
11737: echo "$as_me: failed program was:" >&5
11738: cat conftest.$ac_ext >&5
11739: fi
11740: rm -f conftest.$ac_objext conftest.$ac_ext
11741: break
11742: done
11743: fi
11744: echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11745: echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11746: if test "$ac_cv_sys_largefile_source" != no; then
11747:
11748: cat >>confdefs.h <<_ACEOF
11749: #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11750: _ACEOF
11751:
11752: fi
11753: rm -f conftest*
11754:
11755: # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11756: # in glibc 2.1.3, but that breaks too many other things.
11757: # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11758: echo "$as_me:$LINENO: checking for fseeko" >&5
11759: echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11760: if test "${ac_cv_func_fseeko+set}" = set; then
11761: echo $ECHO_N "(cached) $ECHO_C" >&6
11762: else
11763: cat >conftest.$ac_ext <<_ACEOF
11764: #line $LINENO "configure"
11765: #include "confdefs.h"
11766: #include <stdio.h>
11767: #ifdef F77_DUMMY_MAIN
11768: # ifdef __cplusplus
11769: extern "C"
11770: # endif
11771: int F77_DUMMY_MAIN() { return 1; }
11772: #endif
11773: int
11774: main ()
11775: {
11776: return fseeko && fseeko (stdin, 0, 0);
11777: ;
11778: return 0;
11779: }
11780: _ACEOF
11781: rm -f conftest.$ac_objext conftest$ac_exeext
11782: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783: (eval $ac_link) 2>&5
11784: ac_status=$?
11785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786: (exit $ac_status); } &&
11787: { ac_try='test -s conftest$ac_exeext'
11788: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789: (eval $ac_try) 2>&5
11790: ac_status=$?
11791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792: (exit $ac_status); }; }; then
11793: ac_cv_func_fseeko=yes
11794: else
11795: echo "$as_me: failed program was:" >&5
11796: cat conftest.$ac_ext >&5
11797: ac_cv_func_fseeko=no
11798: fi
11799: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11800: fi
11801: echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11802: echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11803: if test $ac_cv_func_fseeko = yes; then
11804:
11805: cat >>confdefs.h <<\_ACEOF
11806: #define HAVE_FSEEKO 1
11807: _ACEOF
11808:
11809: fi
11810:
11811:
1.54 petere 11812:
1.203 petere 11813: # This test makes sure that run tests work at all. Sometimes a shared
11814: # library is found by the linker, but the runtime linker can't find it.
11815: # This check should come after all modifications of compiler or linker
11816: # variables, and before any other run tests.
11817: echo "$as_me:$LINENO: checking test program" >&5
11818: echo $ECHO_N "checking test program... $ECHO_C" >&6
11819: if test "$cross_compiling" = yes; then
11820: echo "$as_me:$LINENO: result: cross-compiling" >&5
11821: echo "${ECHO_T}cross-compiling" >&6
11822: else
11823: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 11824: #line $LINENO "configure"
1.1 petere 11825: #include "confdefs.h"
1.203 petere 11826: int main() { return 0; }
1.179 petere 11827: _ACEOF
1.203 petere 11828: rm -f conftest$ac_exeext
1.179 petere 11829: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830: (eval $ac_link) 2>&5
11831: ac_status=$?
11832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.203 petere 11833: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.179 petere 11834: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835: (eval $ac_try) 2>&5
11836: ac_status=$?
11837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838: (exit $ac_status); }; }; then
1.203 petere 11839: echo "$as_me:$LINENO: result: ok" >&5
11840: echo "${ECHO_T}ok" >&6
1.1 petere 11841: else
1.203 petere 11842: echo "$as_me: program exited with status $ac_status" >&5
11843: echo "$as_me: failed program was:" >&5
1.179 petere 11844: cat conftest.$ac_ext >&5
1.203 petere 11845: ( exit $ac_status )
11846: echo "$as_me:$LINENO: result: failed" >&5
11847: echo "${ECHO_T}failed" >&6
11848: { { echo "$as_me:$LINENO: error:
11849: *** Could not execute a simple test program. This may be a problem
11850: *** related to locating shared libraries. Check the file 'config.log'
11851: *** for the exact reason." >&5
11852: echo "$as_me: error:
11853: *** Could not execute a simple test program. This may be a problem
11854: *** related to locating shared libraries. Check the file 'config.log'
11855: *** for the exact reason." >&2;}
11856: { (exit 1); exit 1; }; }
11857: fi
11858: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 petere 11859: fi
1.179 petere 11860:
11861:
1.203 petere 11862:
11863: echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11864: echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11865: if test "${pgac_cv_type_long_int_64+set}" = set; then
1.179 petere 11866: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 11867: else
1.203 petere 11868: if test "$cross_compiling" = yes; then
11869: pgac_cv_type_long_int_64=no
11870: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11871: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11872: else
1.179 petere 11873: cat >conftest.$ac_ext <<_ACEOF
11874: #line $LINENO "configure"
1.1 petere 11875: #include "confdefs.h"
1.203 petere 11876: typedef long int int64;
11877:
11878: /*
11879: * These are globals to discourage the compiler from folding all the
11880: * arithmetic tests down to compile-time constants.
11881: */
11882: int64 a = 20000001;
11883: int64 b = 40000005;
1.179 petere 11884:
1.203 petere 11885: int does_int64_work()
1.179 petere 11886: {
1.203 petere 11887: int64 c,d;
11888:
11889: if (sizeof(int64) != 8)
11890: return 0; /* definitely not the right size */
1.124 petere 11891:
1.203 petere 11892: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11893: c = a * b;
11894: d = (c + b) / b;
11895: if (d != a+1)
11896: return 0;
11897: return 1;
11898: }
11899: main() {
11900: exit(! does_int64_work());
1.179 petere 11901: }
11902: _ACEOF
1.203 petere 11903: rm -f conftest$ac_exeext
1.179 petere 11904: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905: (eval $ac_link) 2>&5
11906: ac_status=$?
11907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.203 petere 11908: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.179 petere 11909: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910: (eval $ac_try) 2>&5
11911: ac_status=$?
11912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913: (exit $ac_status); }; }; then
1.203 petere 11914: pgac_cv_type_long_int_64=yes
1.179 petere 11915: else
1.203 petere 11916: echo "$as_me: program exited with status $ac_status" >&5
11917: echo "$as_me: failed program was:" >&5
1.179 petere 11918: cat conftest.$ac_ext >&5
1.203 petere 11919: ( exit $ac_status )
11920: pgac_cv_type_long_int_64=no
11921: fi
11922: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.179 petere 11923: fi
11924: fi
1.203 petere 11925: echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11926: echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11927:
11928: HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11929: if test x"$pgac_cv_type_long_int_64" = xyes ; then
11930:
11931: cat >>confdefs.h <<\_ACEOF
11932: #define HAVE_LONG_INT_64
1.179 petere 11933: _ACEOF
1.1 petere 11934:
1.124 petere 11935: fi
1.1 petere 11936:
11937:
1.203 petere 11938: if test x"$HAVE_LONG_INT_64" = x"no" ; then
11939: echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11940: echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11941: if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11942: echo $ECHO_N "(cached) $ECHO_C" >&6
11943: else
11944: if test "$cross_compiling" = yes; then
11945: pgac_cv_type_long_long_int_64=no
11946: { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11947: echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11948: else
11949: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 11950: #line $LINENO "configure"
1.1 petere 11951: #include "confdefs.h"
1.203 petere 11952: typedef long long int int64;
11953:
11954: /*
11955: * These are globals to discourage the compiler from folding all the
11956: * arithmetic tests down to compile-time constants.
11957: */
11958: int64 a = 20000001;
11959: int64 b = 40000005;
11960:
11961: int does_int64_work()
1.179 petere 11962: {
1.203 petere 11963: int64 c,d;
11964:
11965: if (sizeof(int64) != 8)
11966: return 0; /* definitely not the right size */
11967:
11968: /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11969: c = a * b;
11970: d = (c + b) / b;
11971: if (d != a+1)
11972: return 0;
11973: return 1;
11974: }
11975: main() {
11976: exit(! does_int64_work());
1.179 petere 11977: }
11978: _ACEOF
1.203 petere 11979: rm -f conftest$ac_exeext
1.179 petere 11980: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981: (eval $ac_link) 2>&5
11982: ac_status=$?
11983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.203 petere 11984: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.179 petere 11985: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986: (eval $ac_try) 2>&5
11987: ac_status=$?
11988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989: (exit $ac_status); }; }; then
1.203 petere 11990: pgac_cv_type_long_long_int_64=yes
11991: else
11992: echo "$as_me: program exited with status $ac_status" >&5
11993: echo "$as_me: failed program was:" >&5
11994: cat conftest.$ac_ext >&5
11995: ( exit $ac_status )
11996: pgac_cv_type_long_long_int_64=no
11997: fi
11998: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11999: fi
12000: fi
12001: echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12002: echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12003:
12004: HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12005: if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
1.179 petere 12006:
12007: cat >>confdefs.h <<\_ACEOF
1.203 petere 12008: #define HAVE_LONG_LONG_INT_64
1.179 petere 12009: _ACEOF
12010:
12011: fi
12012:
1.203 petere 12013: fi
12014:
12015:
12016:
1.210 momjian 12017: if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
1.203 petere 12018: cat >conftest.$ac_ext <<_ACEOF
1.179 petere 12019: #line $LINENO "configure"
1.1 petere 12020: #include "confdefs.h"
1.203 petere 12021:
12022: #define INT64CONST(x) x##LL
12023: long long int foo = INT64CONST(0x1234567890123456);
12024:
1.179 petere 12025: #ifdef F77_DUMMY_MAIN
12026: # ifdef __cplusplus
12027: extern "C"
12028: # endif
12029: int F77_DUMMY_MAIN() { return 1; }
12030: #endif
12031: int
12032: main ()
12033: {
1.203 petere 12034:
1.179 petere 12035: ;
12036: return 0;
12037: }
12038: _ACEOF
1.203 petere 12039: rm -f conftest.$ac_objext
12040: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041: (eval $ac_compile) 2>&5
1.179 petere 12042: ac_status=$?
12043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044: (exit $ac_status); } &&
1.203 petere 12045: { ac_try='test -s conftest.$ac_objext'
1.179 petere 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:
12052: cat >>confdefs.h <<\_ACEOF
1.203 petere 12053: #define HAVE_LL_CONSTANTS 1
1.179 petere 12054: _ACEOF
12055:
1.1 petere 12056: else
1.179 petere 12057: echo "$as_me: failed program was:" >&5
12058: cat conftest.$ac_ext >&5
1.1 petere 12059: fi
1.203 petere 12060: rm -f conftest.$ac_objext conftest.$ac_ext
12061: fi
12062:
12063:
12064:
12065: if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12066: if test $pgac_need_repl_snprintf = no; then
12067: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12068: echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12069: if test "$cross_compiling" = yes; then
12070: echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12071: echo "${ECHO_T}cannot test (not on host machine)" >&6
12072: # Force usage of our own snprintf, since we cannot test foreign snprintf
12073: pgac_need_repl_snprintf=yes
12074: INT64_FORMAT='"%lld"'
1.179 petere 12075:
1.1 petere 12076: else
1.179 petere 12077: cat >conftest.$ac_ext <<_ACEOF
12078: #line $LINENO "configure"
1.1 petere 12079: #include "confdefs.h"
1.203 petere 12080: #include <stdio.h>
12081: typedef long long int int64;
12082: #define INT64_FORMAT "%lld"
12083:
12084: int64 a = 20000001;
12085: int64 b = 40000005;
1.179 petere 12086:
1.203 petere 12087: int does_int64_snprintf_work()
1.179 petere 12088: {
1.203 petere 12089: int64 c;
12090: char buf[100];
12091:
12092: if (sizeof(int64) != 8)
12093: return 0; /* doesn't look like the right size */
1.1 petere 12094:
1.203 petere 12095: c = a * b;
12096: snprintf(buf, 100, INT64_FORMAT, c);
12097: if (strcmp(buf, "800000140000005") != 0)
12098: return 0; /* either multiply or snprintf is busted */
12099: return 1;
12100: }
12101: main() {
12102: exit(! does_int64_snprintf_work());
1.179 petere 12103: }
12104: _ACEOF
1.203 petere 12105: rm -f conftest$ac_exeext
1.179 petere 12106: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107: (eval $ac_link) 2>&5
12108: ac_status=$?
12109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.203 petere 12110: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.179 petere 12111: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112: (eval $ac_try) 2>&5
12113: ac_status=$?
12114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115: (exit $ac_status); }; }; then
1.203 petere 12116: echo "$as_me:$LINENO: result: yes" >&5
12117: echo "${ECHO_T}yes" >&6
12118: INT64_FORMAT='"%lld"'
12119:
1.179 petere 12120: else
1.203 petere 12121: echo "$as_me: program exited with status $ac_status" >&5
12122: echo "$as_me: failed program was:" >&5
1.179 petere 12123: cat conftest.$ac_ext >&5
1.203 petere 12124: ( exit $ac_status )
12125: echo "$as_me:$LINENO: result: no" >&5
12126: echo "${ECHO_T}no" >&6
12127: echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12128: echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12129: if test "$cross_compiling" = yes; then
12130: echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12131: echo "${ECHO_T}cannot test (not on host machine)" >&6
12132: # Force usage of our own snprintf, since we cannot test foreign snprintf
12133: pgac_need_repl_snprintf=yes
12134: INT64_FORMAT='"%lld"'
12135:
1.191 ishii 12136: else
1.203 petere 12137: cat >conftest.$ac_ext <<_ACEOF
1.191 ishii 12138: #line $LINENO "configure"
12139: #include "confdefs.h"
1.203 petere 12140: #include <stdio.h>
12141: typedef long long int int64;
12142: #define INT64_FORMAT "%qd"
12143:
12144: int64 a = 20000001;
12145: int64 b = 40000005;
12146:
12147: int does_int64_snprintf_work()
12148: {
12149: int64 c;
12150: char buf[100];
12151:
12152: if (sizeof(int64) != 8)
12153: return 0; /* doesn't look like the right size */
12154:
12155: c = a * b;
12156: snprintf(buf, 100, INT64_FORMAT, c);
12157: if (strcmp(buf, "800000140000005") != 0)
12158: return 0; /* either multiply or snprintf is busted */
12159: return 1;
12160: }
12161: main() {
12162: exit(! does_int64_snprintf_work());
12163: }
1.191 ishii 12164: _ACEOF
1.203 petere 12165: rm -f conftest$ac_exeext
12166: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167: (eval $ac_link) 2>&5
1.191 ishii 12168: ac_status=$?
12169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.203 petere 12170: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.191 ishii 12171: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172: (eval $ac_try) 2>&5
12173: ac_status=$?
12174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175: (exit $ac_status); }; }; then
1.203 petere 12176: echo "$as_me:$LINENO: result: yes" >&5
12177: echo "${ECHO_T}yes" >&6
12178: INT64_FORMAT='"%qd"'
12179:
1.191 ishii 12180: else
1.203 petere 12181: echo "$as_me: program exited with status $ac_status" >&5
12182: echo "$as_me: failed program was:" >&5
1.191 ishii 12183: cat conftest.$ac_ext >&5
1.203 petere 12184: ( exit $ac_status )
12185: echo "$as_me:$LINENO: result: no" >&5
12186: echo "${ECHO_T}no" >&6
12187: # Force usage of our own snprintf, since system snprintf is broken
12188: pgac_need_repl_snprintf=yes
12189: INT64_FORMAT='"%lld"'
12190:
12191: fi
12192: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12193: fi
12194: fi
12195: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.191 ishii 12196: fi
12197: else
1.203 petere 12198: # here if we previously decided we needed to use our own snprintf
12199: INT64_FORMAT='"%lld"'
1.191 ishii 12200: fi
12201: else
1.203 petere 12202: # Here if we are not using 'long long int' at all
12203: INT64_FORMAT='"%ld"'
1.191 ishii 12204: fi
1.179 petere 12205:
1.203 petere 12206:
12207: cat >>confdefs.h <<_ACEOF
12208: #define INT64_FORMAT $INT64_FORMAT
12209: _ACEOF
12210:
12211:
12212: if test $pgac_need_repl_snprintf = yes; then
12213: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.179 petere 12214: fi
12215:
12216:
12217: echo "$as_me:$LINENO: checking for unsigned long" >&5
12218: echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12219: if test "${ac_cv_type_unsigned_long+set}" = set; then
12220: echo $ECHO_N "(cached) $ECHO_C" >&6
12221: else
12222: cat >conftest.$ac_ext <<_ACEOF
12223: #line $LINENO "configure"
12224: #include "confdefs.h"
12225: $ac_includes_default
12226: #ifdef F77_DUMMY_MAIN
12227: # ifdef __cplusplus
12228: extern "C"
12229: # endif
12230: int F77_DUMMY_MAIN() { return 1; }
1.109 ishii 12231: #endif
1.179 petere 12232: int
12233: main ()
12234: {
12235: if ((unsigned long *) 0)
12236: return 0;
12237: if (sizeof (unsigned long))
12238: return 0;
12239: ;
12240: return 0;
12241: }
12242: _ACEOF
12243: rm -f conftest.$ac_objext
12244: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245: (eval $ac_compile) 2>&5
12246: ac_status=$?
12247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248: (exit $ac_status); } &&
12249: { ac_try='test -s conftest.$ac_objext'
12250: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251: (eval $ac_try) 2>&5
12252: ac_status=$?
12253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254: (exit $ac_status); }; }; then
12255: ac_cv_type_unsigned_long=yes
12256: else
12257: echo "$as_me: failed program was:" >&5
12258: cat conftest.$ac_ext >&5
12259: ac_cv_type_unsigned_long=no
12260: fi
12261: rm -f conftest.$ac_objext conftest.$ac_ext
12262: fi
12263: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12264: echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12265:
12266: echo "$as_me:$LINENO: checking size of unsigned long" >&5
12267: echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12268: if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12269: echo $ECHO_N "(cached) $ECHO_C" >&6
12270: else
12271: if test "$ac_cv_type_unsigned_long" = yes; then
12272: # The cast to unsigned long works around a bug in the HP C Compiler
12273: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12274: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12275: # This bug is HP SR number 8606223364.
12276: if test "$cross_compiling" = yes; then
12277: # Depending upon the size, compute the lo and hi bounds.
12278: cat >conftest.$ac_ext <<_ACEOF
12279: #line $LINENO "configure"
12280: #include "confdefs.h"
12281: $ac_includes_default
12282: #ifdef F77_DUMMY_MAIN
12283: # ifdef __cplusplus
12284: extern "C"
12285: # endif
12286: int F77_DUMMY_MAIN() { return 1; }
12287: #endif
12288: int
12289: main ()
12290: {
12291: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12292: test_array [0] = 0
1.109 ishii 12293:
1.179 petere 12294: ;
12295: return 0;
12296: }
12297: _ACEOF
12298: rm -f conftest.$ac_objext
12299: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300: (eval $ac_compile) 2>&5
12301: ac_status=$?
12302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303: (exit $ac_status); } &&
12304: { ac_try='test -s conftest.$ac_objext'
12305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306: (eval $ac_try) 2>&5
12307: ac_status=$?
12308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309: (exit $ac_status); }; }; then
12310: ac_lo=0 ac_mid=0
12311: while :; do
12312: cat >conftest.$ac_ext <<_ACEOF
12313: #line $LINENO "configure"
12314: #include "confdefs.h"
12315: $ac_includes_default
12316: #ifdef F77_DUMMY_MAIN
12317: # ifdef __cplusplus
12318: extern "C"
12319: # endif
12320: int F77_DUMMY_MAIN() { return 1; }
12321: #endif
12322: int
12323: main ()
12324: {
12325: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12326: test_array [0] = 0
12327:
12328: ;
12329: return 0;
12330: }
12331: _ACEOF
12332: rm -f conftest.$ac_objext
12333: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12334: (eval $ac_compile) 2>&5
12335: ac_status=$?
12336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337: (exit $ac_status); } &&
12338: { ac_try='test -s conftest.$ac_objext'
12339: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340: (eval $ac_try) 2>&5
12341: ac_status=$?
12342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343: (exit $ac_status); }; }; then
12344: ac_hi=$ac_mid; break
12345: else
12346: echo "$as_me: failed program was:" >&5
12347: cat conftest.$ac_ext >&5
12348: ac_lo=`expr $ac_mid + 1`
12349: if test $ac_lo -le $ac_mid; then
12350: ac_lo= ac_hi=
12351: break
12352: fi
12353: ac_mid=`expr 2 '*' $ac_mid + 1`
12354: fi
12355: rm -f conftest.$ac_objext conftest.$ac_ext
12356: done
12357: else
12358: echo "$as_me: failed program was:" >&5
12359: cat conftest.$ac_ext >&5
12360: cat >conftest.$ac_ext <<_ACEOF
12361: #line $LINENO "configure"
12362: #include "confdefs.h"
12363: $ac_includes_default
12364: #ifdef F77_DUMMY_MAIN
12365: # ifdef __cplusplus
12366: extern "C"
12367: # endif
12368: int F77_DUMMY_MAIN() { return 1; }
12369: #endif
12370: int
12371: main ()
12372: {
12373: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12374: test_array [0] = 0
12375:
12376: ;
12377: return 0;
12378: }
12379: _ACEOF
12380: rm -f conftest.$ac_objext
12381: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12382: (eval $ac_compile) 2>&5
12383: ac_status=$?
12384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385: (exit $ac_status); } &&
12386: { ac_try='test -s conftest.$ac_objext'
12387: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388: (eval $ac_try) 2>&5
12389: ac_status=$?
12390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391: (exit $ac_status); }; }; then
12392: ac_hi=-1 ac_mid=-1
12393: while :; do
12394: cat >conftest.$ac_ext <<_ACEOF
12395: #line $LINENO "configure"
12396: #include "confdefs.h"
12397: $ac_includes_default
12398: #ifdef F77_DUMMY_MAIN
12399: # ifdef __cplusplus
12400: extern "C"
12401: # endif
12402: int F77_DUMMY_MAIN() { return 1; }
12403: #endif
12404: int
12405: main ()
12406: {
12407: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12408: test_array [0] = 0
12409:
12410: ;
12411: return 0;
12412: }
12413: _ACEOF
12414: rm -f conftest.$ac_objext
12415: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416: (eval $ac_compile) 2>&5
12417: ac_status=$?
12418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419: (exit $ac_status); } &&
12420: { ac_try='test -s conftest.$ac_objext'
12421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422: (eval $ac_try) 2>&5
12423: ac_status=$?
12424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425: (exit $ac_status); }; }; then
12426: ac_lo=$ac_mid; break
12427: else
12428: echo "$as_me: failed program was:" >&5
12429: cat conftest.$ac_ext >&5
12430: ac_hi=`expr '(' $ac_mid ')' - 1`
12431: if test $ac_mid -le $ac_hi; then
12432: ac_lo= ac_hi=
12433: break
12434: fi
12435: ac_mid=`expr 2 '*' $ac_mid`
12436: fi
12437: rm -f conftest.$ac_objext conftest.$ac_ext
12438: done
12439: else
12440: echo "$as_me: failed program was:" >&5
12441: cat conftest.$ac_ext >&5
12442: ac_lo= ac_hi=
12443: fi
12444: rm -f conftest.$ac_objext conftest.$ac_ext
12445: fi
12446: rm -f conftest.$ac_objext conftest.$ac_ext
12447: # Binary search between lo and hi bounds.
12448: while test "x$ac_lo" != "x$ac_hi"; do
12449: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12450: cat >conftest.$ac_ext <<_ACEOF
12451: #line $LINENO "configure"
12452: #include "confdefs.h"
12453: $ac_includes_default
12454: #ifdef F77_DUMMY_MAIN
12455: # ifdef __cplusplus
12456: extern "C"
12457: # endif
12458: int F77_DUMMY_MAIN() { return 1; }
12459: #endif
12460: int
12461: main ()
12462: {
12463: static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12464: test_array [0] = 0
12465:
12466: ;
12467: return 0;
12468: }
12469: _ACEOF
12470: rm -f conftest.$ac_objext
12471: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472: (eval $ac_compile) 2>&5
12473: ac_status=$?
12474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475: (exit $ac_status); } &&
12476: { ac_try='test -s conftest.$ac_objext'
12477: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478: (eval $ac_try) 2>&5
12479: ac_status=$?
12480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481: (exit $ac_status); }; }; then
12482: ac_hi=$ac_mid
12483: else
12484: echo "$as_me: failed program was:" >&5
12485: cat conftest.$ac_ext >&5
12486: ac_lo=`expr '(' $ac_mid ')' + 1`
12487: fi
12488: rm -f conftest.$ac_objext conftest.$ac_ext
12489: done
12490: case $ac_lo in
12491: ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12492: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12493: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12494: { (exit 1); exit 1; }; } ;;
12495: esac
12496: else
12497: if test "$cross_compiling" = yes; then
12498: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12499: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12500: { (exit 1); exit 1; }; }
12501: else
12502: cat >conftest.$ac_ext <<_ACEOF
12503: #line $LINENO "configure"
12504: #include "confdefs.h"
12505: $ac_includes_default
12506: long longval () { return (long) (sizeof (unsigned long)); }
12507: unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12508: #include <stdio.h>
12509: #include <stdlib.h>
12510: #ifdef F77_DUMMY_MAIN
12511: # ifdef __cplusplus
12512: extern "C"
12513: # endif
12514: int F77_DUMMY_MAIN() { return 1; }
12515: #endif
12516: int
12517: main ()
12518: {
12519:
12520: FILE *f = fopen ("conftest.val", "w");
12521: if (! f)
12522: exit (1);
12523: if (((long) (sizeof (unsigned long))) < 0)
12524: {
12525: long i = longval ();
12526: if (i != ((long) (sizeof (unsigned long))))
12527: exit (1);
12528: fprintf (f, "%ld\n", i);
12529: }
12530: else
12531: {
12532: unsigned long i = ulongval ();
12533: if (i != ((long) (sizeof (unsigned long))))
12534: exit (1);
12535: fprintf (f, "%lu\n", i);
12536: }
12537: exit (ferror (f) || fclose (f) != 0);
12538:
12539: ;
12540: return 0;
12541: }
12542: _ACEOF
12543: rm -f conftest$ac_exeext
12544: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545: (eval $ac_link) 2>&5
12546: ac_status=$?
12547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12549: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550: (eval $ac_try) 2>&5
12551: ac_status=$?
12552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553: (exit $ac_status); }; }; then
12554: ac_cv_sizeof_unsigned_long=`cat conftest.val`
12555: else
12556: echo "$as_me: program exited with status $ac_status" >&5
12557: echo "$as_me: failed program was:" >&5
12558: cat conftest.$ac_ext >&5
12559: ( exit $ac_status )
12560: { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12561: echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12562: { (exit 1); exit 1; }; }
12563: fi
12564: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12565: fi
12566: fi
12567: rm -f conftest.val
1.109 ishii 12568: else
1.179 petere 12569: ac_cv_sizeof_unsigned_long=0
12570: fi
1.109 ishii 12571: fi
1.179 petere 12572: echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12573: echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12574: cat >>confdefs.h <<_ACEOF
12575: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12576: _ACEOF
12577:
12578:
12579:
12580: cat >>confdefs.h <<_ACEOF
12581: #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12582: _ACEOF
12583:
12584:
12585: # Determine memory alignment requirements for the basic C data types.
12586:
12587: echo "$as_me:$LINENO: checking for short" >&5
12588: echo $ECHO_N "checking for short... $ECHO_C" >&6
12589: if test "${ac_cv_type_short+set}" = set; then
12590: echo $ECHO_N "(cached) $ECHO_C" >&6
12591: else
12592: cat >conftest.$ac_ext <<_ACEOF
12593: #line $LINENO "configure"
12594: #include "confdefs.h"
12595: $ac_includes_default
12596: #ifdef F77_DUMMY_MAIN
12597: # ifdef __cplusplus
12598: extern "C"
12599: # endif
12600: int F77_DUMMY_MAIN() { return 1; }
12601: #endif
12602: int
12603: main ()
12604: {
12605: if ((short *) 0)
12606: return 0;
12607: if (sizeof (short))
12608: return 0;
12609: ;
12610: return 0;
12611: }
12612: _ACEOF
12613: rm -f conftest.$ac_objext
12614: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615: (eval $ac_compile) 2>&5
12616: ac_status=$?
12617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618: (exit $ac_status); } &&
12619: { ac_try='test -s conftest.$ac_objext'
12620: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621: (eval $ac_try) 2>&5
12622: ac_status=$?
12623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624: (exit $ac_status); }; }; then
12625: ac_cv_type_short=yes
12626: else
12627: echo "$as_me: failed program was:" >&5
12628: cat conftest.$ac_ext >&5
12629: ac_cv_type_short=no
12630: fi
12631: rm -f conftest.$ac_objext conftest.$ac_ext
12632: fi
12633: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12634: echo "${ECHO_T}$ac_cv_type_short" >&6
12635:
12636: echo "$as_me:$LINENO: checking alignment of short" >&5
12637: echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12638: if test "${pgac_cv_alignof_short+set}" = set; then
12639: echo $ECHO_N "(cached) $ECHO_C" >&6
12640: else
12641: if test "$ac_cv_type_short" = yes; then
12642: if test "$cross_compiling" = yes; then
12643: # Depending upon the size, compute the lo and hi bounds.
12644: cat >conftest.$ac_ext <<_ACEOF
12645: #line $LINENO "configure"
12646: #include "confdefs.h"
12647: $ac_includes_default
12648: struct { char filler; short field; } pgac_struct;
12649: #ifdef F77_DUMMY_MAIN
12650: # ifdef __cplusplus
12651: extern "C"
12652: # endif
12653: int F77_DUMMY_MAIN() { return 1; }
12654: #endif
12655: int
12656: main ()
12657: {
12658: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12659: test_array [0] = 0
12660:
12661: ;
12662: return 0;
12663: }
12664: _ACEOF
12665: rm -f conftest.$ac_objext
12666: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667: (eval $ac_compile) 2>&5
12668: ac_status=$?
12669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670: (exit $ac_status); } &&
12671: { ac_try='test -s conftest.$ac_objext'
12672: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673: (eval $ac_try) 2>&5
12674: ac_status=$?
12675: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676: (exit $ac_status); }; }; then
12677: ac_lo=0 ac_mid=0
12678: while :; do
12679: cat >conftest.$ac_ext <<_ACEOF
12680: #line $LINENO "configure"
12681: #include "confdefs.h"
12682: $ac_includes_default
12683: struct { char filler; short field; } pgac_struct;
12684: #ifdef F77_DUMMY_MAIN
12685: # ifdef __cplusplus
12686: extern "C"
12687: # endif
12688: int F77_DUMMY_MAIN() { return 1; }
12689: #endif
12690: int
12691: main ()
12692: {
12693: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12694: test_array [0] = 0
12695:
12696: ;
12697: return 0;
12698: }
12699: _ACEOF
12700: rm -f conftest.$ac_objext
12701: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702: (eval $ac_compile) 2>&5
12703: ac_status=$?
12704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705: (exit $ac_status); } &&
12706: { ac_try='test -s conftest.$ac_objext'
12707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708: (eval $ac_try) 2>&5
12709: ac_status=$?
12710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711: (exit $ac_status); }; }; then
12712: ac_hi=$ac_mid; break
12713: else
12714: echo "$as_me: failed program was:" >&5
12715: cat conftest.$ac_ext >&5
12716: ac_lo=`expr $ac_mid + 1`
12717: if test $ac_lo -le $ac_mid; then
12718: ac_lo= ac_hi=
12719: break
12720: fi
12721: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 12722: fi
1.179 petere 12723: rm -f conftest.$ac_objext conftest.$ac_ext
12724: done
12725: else
12726: echo "$as_me: failed program was:" >&5
12727: cat conftest.$ac_ext >&5
12728: cat >conftest.$ac_ext <<_ACEOF
12729: #line $LINENO "configure"
12730: #include "confdefs.h"
12731: $ac_includes_default
12732: struct { char filler; short field; } pgac_struct;
12733: #ifdef F77_DUMMY_MAIN
12734: # ifdef __cplusplus
12735: extern "C"
12736: # endif
12737: int F77_DUMMY_MAIN() { return 1; }
12738: #endif
12739: int
12740: main ()
12741: {
12742: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12743: test_array [0] = 0
1.109 ishii 12744:
1.179 petere 12745: ;
12746: return 0;
12747: }
12748: _ACEOF
12749: rm -f conftest.$ac_objext
12750: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751: (eval $ac_compile) 2>&5
12752: ac_status=$?
12753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754: (exit $ac_status); } &&
12755: { ac_try='test -s conftest.$ac_objext'
12756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757: (eval $ac_try) 2>&5
12758: ac_status=$?
12759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760: (exit $ac_status); }; }; then
12761: ac_hi=-1 ac_mid=-1
12762: while :; do
12763: cat >conftest.$ac_ext <<_ACEOF
12764: #line $LINENO "configure"
12765: #include "confdefs.h"
12766: $ac_includes_default
12767: struct { char filler; short field; } pgac_struct;
12768: #ifdef F77_DUMMY_MAIN
12769: # ifdef __cplusplus
12770: extern "C"
12771: # endif
12772: int F77_DUMMY_MAIN() { return 1; }
12773: #endif
12774: int
12775: main ()
12776: {
12777: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12778: test_array [0] = 0
1.109 ishii 12779:
1.179 petere 12780: ;
12781: return 0;
12782: }
12783: _ACEOF
12784: rm -f conftest.$ac_objext
12785: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786: (eval $ac_compile) 2>&5
12787: ac_status=$?
12788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789: (exit $ac_status); } &&
12790: { ac_try='test -s conftest.$ac_objext'
12791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792: (eval $ac_try) 2>&5
12793: ac_status=$?
12794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795: (exit $ac_status); }; }; then
12796: ac_lo=$ac_mid; break
12797: else
12798: echo "$as_me: failed program was:" >&5
12799: cat conftest.$ac_ext >&5
12800: ac_hi=`expr '(' $ac_mid ')' - 1`
12801: if test $ac_mid -le $ac_hi; then
12802: ac_lo= ac_hi=
12803: break
12804: fi
12805: ac_mid=`expr 2 '*' $ac_mid`
12806: fi
12807: rm -f conftest.$ac_objext conftest.$ac_ext
12808: done
1.109 ishii 12809: else
1.179 petere 12810: echo "$as_me: failed program was:" >&5
12811: cat conftest.$ac_ext >&5
12812: ac_lo= ac_hi=
12813: fi
12814: rm -f conftest.$ac_objext conftest.$ac_ext
12815: fi
12816: rm -f conftest.$ac_objext conftest.$ac_ext
12817: # Binary search between lo and hi bounds.
12818: while test "x$ac_lo" != "x$ac_hi"; do
12819: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12820: cat >conftest.$ac_ext <<_ACEOF
12821: #line $LINENO "configure"
12822: #include "confdefs.h"
12823: $ac_includes_default
12824: struct { char filler; short field; } pgac_struct;
12825: #ifdef F77_DUMMY_MAIN
12826: # ifdef __cplusplus
12827: extern "C"
12828: # endif
12829: int F77_DUMMY_MAIN() { return 1; }
12830: #endif
12831: int
12832: main ()
12833: {
12834: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12835: test_array [0] = 0
12836:
12837: ;
12838: return 0;
12839: }
12840: _ACEOF
12841: rm -f conftest.$ac_objext
12842: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843: (eval $ac_compile) 2>&5
12844: ac_status=$?
12845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846: (exit $ac_status); } &&
12847: { ac_try='test -s conftest.$ac_objext'
12848: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849: (eval $ac_try) 2>&5
12850: ac_status=$?
12851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852: (exit $ac_status); }; }; then
12853: ac_hi=$ac_mid
12854: else
12855: echo "$as_me: failed program was:" >&5
12856: cat conftest.$ac_ext >&5
12857: ac_lo=`expr '(' $ac_mid ')' + 1`
1.109 ishii 12858: fi
1.179 petere 12859: rm -f conftest.$ac_objext conftest.$ac_ext
1.109 ishii 12860: done
1.179 petere 12861: case $ac_lo in
12862: ?*) pgac_cv_alignof_short=$ac_lo;;
12863: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12864: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12865: { (exit 1); exit 1; }; } ;;
12866: esac
12867: else
12868: if test "$cross_compiling" = yes; then
12869: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12870: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12871: { (exit 1); exit 1; }; }
12872: else
12873: cat >conftest.$ac_ext <<_ACEOF
12874: #line $LINENO "configure"
12875: #include "confdefs.h"
12876: $ac_includes_default
12877: struct { char filler; short field; } pgac_struct;
12878: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12879: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12880: #include <stdio.h>
12881: #include <stdlib.h>
12882: #ifdef F77_DUMMY_MAIN
12883: # ifdef __cplusplus
12884: extern "C"
12885: # endif
12886: int F77_DUMMY_MAIN() { return 1; }
12887: #endif
12888: int
12889: main ()
12890: {
12891:
12892: FILE *f = fopen ("conftest.val", "w");
12893: if (! f)
12894: exit (1);
12895: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12896: {
12897: long i = longval ();
12898: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12899: exit (1);
12900: fprintf (f, "%ld\n", i);
12901: }
12902: else
12903: {
12904: unsigned long i = ulongval ();
12905: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12906: exit (1);
12907: fprintf (f, "%lu\n", i);
12908: }
12909: exit (ferror (f) || fclose (f) != 0);
12910:
12911: ;
12912: return 0;
12913: }
12914: _ACEOF
12915: rm -f conftest$ac_exeext
12916: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917: (eval $ac_link) 2>&5
12918: ac_status=$?
12919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12921: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922: (eval $ac_try) 2>&5
12923: ac_status=$?
12924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925: (exit $ac_status); }; }; then
12926: pgac_cv_alignof_short=`cat conftest.val`
12927: else
12928: echo "$as_me: program exited with status $ac_status" >&5
12929: echo "$as_me: failed program was:" >&5
12930: cat conftest.$ac_ext >&5
12931: ( exit $ac_status )
12932: { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12933: echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12934: { (exit 1); exit 1; }; }
12935: fi
12936: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12937: fi
12938: fi
12939: rm -f conftest.val
12940: else
12941: pgac_cv_alignof_short=0
12942: fi
12943: fi
12944: echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12945: echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12946: cat >>confdefs.h <<_ACEOF
12947: #define ALIGNOF_SHORT $pgac_cv_alignof_short
12948: _ACEOF
12949:
12950:
12951: echo "$as_me:$LINENO: checking for int" >&5
12952: echo $ECHO_N "checking for int... $ECHO_C" >&6
12953: if test "${ac_cv_type_int+set}" = set; then
12954: echo $ECHO_N "(cached) $ECHO_C" >&6
12955: else
12956: cat >conftest.$ac_ext <<_ACEOF
12957: #line $LINENO "configure"
12958: #include "confdefs.h"
12959: $ac_includes_default
12960: #ifdef F77_DUMMY_MAIN
12961: # ifdef __cplusplus
12962: extern "C"
12963: # endif
12964: int F77_DUMMY_MAIN() { return 1; }
12965: #endif
12966: int
12967: main ()
12968: {
12969: if ((int *) 0)
12970: return 0;
12971: if (sizeof (int))
12972: return 0;
12973: ;
12974: return 0;
12975: }
12976: _ACEOF
12977: rm -f conftest.$ac_objext
12978: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12979: (eval $ac_compile) 2>&5
12980: ac_status=$?
12981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982: (exit $ac_status); } &&
12983: { ac_try='test -s conftest.$ac_objext'
12984: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985: (eval $ac_try) 2>&5
12986: ac_status=$?
12987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988: (exit $ac_status); }; }; then
12989: ac_cv_type_int=yes
12990: else
12991: echo "$as_me: failed program was:" >&5
12992: cat conftest.$ac_ext >&5
12993: ac_cv_type_int=no
12994: fi
12995: rm -f conftest.$ac_objext conftest.$ac_ext
12996: fi
12997: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12998: echo "${ECHO_T}$ac_cv_type_int" >&6
12999:
13000: echo "$as_me:$LINENO: checking alignment of int" >&5
13001: echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13002: if test "${pgac_cv_alignof_int+set}" = set; then
13003: echo $ECHO_N "(cached) $ECHO_C" >&6
13004: else
13005: if test "$ac_cv_type_int" = yes; then
13006: if test "$cross_compiling" = yes; then
13007: # Depending upon the size, compute the lo and hi bounds.
13008: cat >conftest.$ac_ext <<_ACEOF
13009: #line $LINENO "configure"
13010: #include "confdefs.h"
13011: $ac_includes_default
13012: struct { char filler; int field; } pgac_struct;
13013: #ifdef F77_DUMMY_MAIN
13014: # ifdef __cplusplus
13015: extern "C"
13016: # endif
13017: int F77_DUMMY_MAIN() { return 1; }
13018: #endif
13019: int
13020: main ()
13021: {
13022: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13023: test_array [0] = 0
13024:
13025: ;
13026: return 0;
13027: }
13028: _ACEOF
13029: rm -f conftest.$ac_objext
13030: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031: (eval $ac_compile) 2>&5
13032: ac_status=$?
13033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034: (exit $ac_status); } &&
13035: { ac_try='test -s conftest.$ac_objext'
13036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037: (eval $ac_try) 2>&5
13038: ac_status=$?
13039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040: (exit $ac_status); }; }; then
13041: ac_lo=0 ac_mid=0
13042: while :; do
13043: cat >conftest.$ac_ext <<_ACEOF
13044: #line $LINENO "configure"
13045: #include "confdefs.h"
13046: $ac_includes_default
13047: struct { char filler; int field; } pgac_struct;
13048: #ifdef F77_DUMMY_MAIN
13049: # ifdef __cplusplus
13050: extern "C"
13051: # endif
13052: int F77_DUMMY_MAIN() { return 1; }
13053: #endif
13054: int
13055: main ()
13056: {
13057: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13058: test_array [0] = 0
1.109 ishii 13059:
1.179 petere 13060: ;
13061: return 0;
13062: }
13063: _ACEOF
13064: rm -f conftest.$ac_objext
13065: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066: (eval $ac_compile) 2>&5
13067: ac_status=$?
13068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069: (exit $ac_status); } &&
13070: { ac_try='test -s conftest.$ac_objext'
13071: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072: (eval $ac_try) 2>&5
13073: ac_status=$?
13074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075: (exit $ac_status); }; }; then
13076: ac_hi=$ac_mid; break
13077: else
13078: echo "$as_me: failed program was:" >&5
13079: cat conftest.$ac_ext >&5
13080: ac_lo=`expr $ac_mid + 1`
13081: if test $ac_lo -le $ac_mid; then
13082: ac_lo= ac_hi=
13083: break
13084: fi
13085: ac_mid=`expr 2 '*' $ac_mid + 1`
1.109 ishii 13086: fi
1.179 petere 13087: rm -f conftest.$ac_objext conftest.$ac_ext
13088: done
13089: else
13090: echo "$as_me: failed program was:" >&5
13091: cat conftest.$ac_ext >&5
13092: cat >conftest.$ac_ext <<_ACEOF
13093: #line $LINENO "configure"
13094: #include "confdefs.h"
13095: $ac_includes_default
13096: struct { char filler; int field; } pgac_struct;
13097: #ifdef F77_DUMMY_MAIN
13098: # ifdef __cplusplus
13099: extern "C"
13100: # endif
13101: int F77_DUMMY_MAIN() { return 1; }
13102: #endif
13103: int
13104: main ()
13105: {
13106: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13107: test_array [0] = 0
1.109 ishii 13108:
1.179 petere 13109: ;
13110: return 0;
13111: }
13112: _ACEOF
13113: rm -f conftest.$ac_objext
13114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115: (eval $ac_compile) 2>&5
13116: ac_status=$?
13117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118: (exit $ac_status); } &&
13119: { ac_try='test -s conftest.$ac_objext'
13120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121: (eval $ac_try) 2>&5
13122: ac_status=$?
13123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124: (exit $ac_status); }; }; then
13125: ac_hi=-1 ac_mid=-1
13126: while :; do
13127: cat >conftest.$ac_ext <<_ACEOF
13128: #line $LINENO "configure"
13129: #include "confdefs.h"
13130: $ac_includes_default
13131: struct { char filler; int field; } pgac_struct;
13132: #ifdef F77_DUMMY_MAIN
13133: # ifdef __cplusplus
13134: extern "C"
13135: # endif
13136: int F77_DUMMY_MAIN() { return 1; }
13137: #endif
13138: int
13139: main ()
13140: {
13141: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13142: test_array [0] = 0
1.84 petere 13143:
1.179 petere 13144: ;
13145: return 0;
13146: }
13147: _ACEOF
13148: rm -f conftest.$ac_objext
13149: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150: (eval $ac_compile) 2>&5
13151: ac_status=$?
13152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153: (exit $ac_status); } &&
13154: { ac_try='test -s conftest.$ac_objext'
13155: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156: (eval $ac_try) 2>&5
13157: ac_status=$?
13158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159: (exit $ac_status); }; }; then
13160: ac_lo=$ac_mid; break
13161: else
13162: echo "$as_me: failed program was:" >&5
13163: cat conftest.$ac_ext >&5
13164: ac_hi=`expr '(' $ac_mid ')' - 1`
13165: if test $ac_mid -le $ac_hi; then
13166: ac_lo= ac_hi=
13167: break
13168: fi
13169: ac_mid=`expr 2 '*' $ac_mid`
13170: fi
13171: rm -f conftest.$ac_objext conftest.$ac_ext
13172: done
13173: else
13174: echo "$as_me: failed program was:" >&5
13175: cat conftest.$ac_ext >&5
13176: ac_lo= ac_hi=
13177: fi
13178: rm -f conftest.$ac_objext conftest.$ac_ext
13179: fi
13180: rm -f conftest.$ac_objext conftest.$ac_ext
13181: # Binary search between lo and hi bounds.
13182: while test "x$ac_lo" != "x$ac_hi"; do
13183: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13184: cat >conftest.$ac_ext <<_ACEOF
13185: #line $LINENO "configure"
13186: #include "confdefs.h"
13187: $ac_includes_default
13188: struct { char filler; int field; } pgac_struct;
13189: #ifdef F77_DUMMY_MAIN
13190: # ifdef __cplusplus
13191: extern "C"
13192: # endif
13193: int F77_DUMMY_MAIN() { return 1; }
13194: #endif
13195: int
13196: main ()
13197: {
13198: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13199: test_array [0] = 0
1.1 petere 13200:
1.179 petere 13201: ;
13202: return 0;
13203: }
13204: _ACEOF
13205: rm -f conftest.$ac_objext
13206: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207: (eval $ac_compile) 2>&5
13208: ac_status=$?
13209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210: (exit $ac_status); } &&
13211: { ac_try='test -s conftest.$ac_objext'
13212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213: (eval $ac_try) 2>&5
13214: ac_status=$?
13215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216: (exit $ac_status); }; }; then
13217: ac_hi=$ac_mid
13218: else
13219: echo "$as_me: failed program was:" >&5
13220: cat conftest.$ac_ext >&5
13221: ac_lo=`expr '(' $ac_mid ')' + 1`
13222: fi
13223: rm -f conftest.$ac_objext conftest.$ac_ext
13224: done
13225: case $ac_lo in
13226: ?*) pgac_cv_alignof_int=$ac_lo;;
13227: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13228: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13229: { (exit 1); exit 1; }; } ;;
13230: esac
1.90 tgl 13231: else
13232: if test "$cross_compiling" = yes; then
1.179 petere 13233: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13234: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13235: { (exit 1); exit 1; }; }
13236: else
13237: cat >conftest.$ac_ext <<_ACEOF
13238: #line $LINENO "configure"
13239: #include "confdefs.h"
13240: $ac_includes_default
13241: struct { char filler; int field; } pgac_struct;
13242: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13243: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13244: #include <stdio.h>
13245: #include <stdlib.h>
13246: #ifdef F77_DUMMY_MAIN
13247: # ifdef __cplusplus
13248: extern "C"
13249: # endif
13250: int F77_DUMMY_MAIN() { return 1; }
13251: #endif
13252: int
13253: main ()
13254: {
13255:
13256: FILE *f = fopen ("conftest.val", "w");
13257: if (! f)
13258: exit (1);
13259: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13260: {
13261: long i = longval ();
13262: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13263: exit (1);
13264: fprintf (f, "%ld\n", i);
13265: }
13266: else
13267: {
13268: unsigned long i = ulongval ();
13269: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13270: exit (1);
13271: fprintf (f, "%lu\n", i);
13272: }
13273: exit (ferror (f) || fclose (f) != 0);
13274:
13275: ;
13276: return 0;
13277: }
13278: _ACEOF
13279: rm -f conftest$ac_exeext
13280: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281: (eval $ac_link) 2>&5
13282: ac_status=$?
13283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286: (eval $ac_try) 2>&5
13287: ac_status=$?
13288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289: (exit $ac_status); }; }; then
13290: pgac_cv_alignof_int=`cat conftest.val`
13291: else
13292: echo "$as_me: program exited with status $ac_status" >&5
13293: echo "$as_me: failed program was:" >&5
13294: cat conftest.$ac_ext >&5
13295: ( exit $ac_status )
13296: { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13297: echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13298: { (exit 1); exit 1; }; }
13299: fi
13300: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13301: fi
13302: fi
13303: rm -f conftest.val
13304: else
13305: pgac_cv_alignof_int=0
13306: fi
13307: fi
13308: echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13309: echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13310: cat >>confdefs.h <<_ACEOF
13311: #define ALIGNOF_INT $pgac_cv_alignof_int
13312: _ACEOF
13313:
13314:
13315: echo "$as_me:$LINENO: checking for long" >&5
13316: echo $ECHO_N "checking for long... $ECHO_C" >&6
13317: if test "${ac_cv_type_long+set}" = set; then
13318: echo $ECHO_N "(cached) $ECHO_C" >&6
13319: else
13320: cat >conftest.$ac_ext <<_ACEOF
13321: #line $LINENO "configure"
13322: #include "confdefs.h"
13323: $ac_includes_default
13324: #ifdef F77_DUMMY_MAIN
13325: # ifdef __cplusplus
13326: extern "C"
13327: # endif
13328: int F77_DUMMY_MAIN() { return 1; }
13329: #endif
13330: int
13331: main ()
13332: {
13333: if ((long *) 0)
13334: return 0;
13335: if (sizeof (long))
13336: return 0;
13337: ;
13338: return 0;
13339: }
13340: _ACEOF
13341: rm -f conftest.$ac_objext
13342: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343: (eval $ac_compile) 2>&5
13344: ac_status=$?
13345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346: (exit $ac_status); } &&
13347: { ac_try='test -s conftest.$ac_objext'
13348: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349: (eval $ac_try) 2>&5
13350: ac_status=$?
13351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352: (exit $ac_status); }; }; then
13353: ac_cv_type_long=yes
13354: else
13355: echo "$as_me: failed program was:" >&5
13356: cat conftest.$ac_ext >&5
13357: ac_cv_type_long=no
13358: fi
13359: rm -f conftest.$ac_objext conftest.$ac_ext
13360: fi
13361: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13362: echo "${ECHO_T}$ac_cv_type_long" >&6
13363:
13364: echo "$as_me:$LINENO: checking alignment of long" >&5
13365: echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13366: if test "${pgac_cv_alignof_long+set}" = set; then
13367: echo $ECHO_N "(cached) $ECHO_C" >&6
13368: else
13369: if test "$ac_cv_type_long" = yes; then
13370: if test "$cross_compiling" = yes; then
13371: # Depending upon the size, compute the lo and hi bounds.
13372: cat >conftest.$ac_ext <<_ACEOF
13373: #line $LINENO "configure"
13374: #include "confdefs.h"
13375: $ac_includes_default
13376: struct { char filler; long field; } pgac_struct;
13377: #ifdef F77_DUMMY_MAIN
13378: # ifdef __cplusplus
13379: extern "C"
13380: # endif
13381: int F77_DUMMY_MAIN() { return 1; }
13382: #endif
13383: int
13384: main ()
13385: {
13386: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13387: test_array [0] = 0
13388:
13389: ;
13390: return 0;
13391: }
13392: _ACEOF
13393: rm -f conftest.$ac_objext
13394: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13395: (eval $ac_compile) 2>&5
13396: ac_status=$?
13397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398: (exit $ac_status); } &&
13399: { ac_try='test -s conftest.$ac_objext'
13400: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401: (eval $ac_try) 2>&5
13402: ac_status=$?
13403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404: (exit $ac_status); }; }; then
13405: ac_lo=0 ac_mid=0
13406: while :; do
13407: cat >conftest.$ac_ext <<_ACEOF
13408: #line $LINENO "configure"
13409: #include "confdefs.h"
13410: $ac_includes_default
13411: struct { char filler; long field; } pgac_struct;
13412: #ifdef F77_DUMMY_MAIN
13413: # ifdef __cplusplus
13414: extern "C"
13415: # endif
13416: int F77_DUMMY_MAIN() { return 1; }
13417: #endif
13418: int
13419: main ()
13420: {
13421: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13422: test_array [0] = 0
13423:
13424: ;
13425: return 0;
13426: }
13427: _ACEOF
13428: rm -f conftest.$ac_objext
13429: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430: (eval $ac_compile) 2>&5
13431: ac_status=$?
13432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433: (exit $ac_status); } &&
13434: { ac_try='test -s conftest.$ac_objext'
13435: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436: (eval $ac_try) 2>&5
13437: ac_status=$?
13438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439: (exit $ac_status); }; }; then
13440: ac_hi=$ac_mid; break
13441: else
13442: echo "$as_me: failed program was:" >&5
13443: cat conftest.$ac_ext >&5
13444: ac_lo=`expr $ac_mid + 1`
13445: if test $ac_lo -le $ac_mid; then
13446: ac_lo= ac_hi=
13447: break
13448: fi
13449: ac_mid=`expr 2 '*' $ac_mid + 1`
13450: fi
13451: rm -f conftest.$ac_objext conftest.$ac_ext
13452: done
13453: else
13454: echo "$as_me: failed program was:" >&5
13455: cat conftest.$ac_ext >&5
13456: cat >conftest.$ac_ext <<_ACEOF
13457: #line $LINENO "configure"
13458: #include "confdefs.h"
13459: $ac_includes_default
13460: struct { char filler; long field; } pgac_struct;
13461: #ifdef F77_DUMMY_MAIN
13462: # ifdef __cplusplus
13463: extern "C"
13464: # endif
13465: int F77_DUMMY_MAIN() { return 1; }
13466: #endif
13467: int
13468: main ()
13469: {
13470: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13471: test_array [0] = 0
13472:
13473: ;
13474: return 0;
13475: }
13476: _ACEOF
13477: rm -f conftest.$ac_objext
13478: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479: (eval $ac_compile) 2>&5
13480: ac_status=$?
13481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482: (exit $ac_status); } &&
13483: { ac_try='test -s conftest.$ac_objext'
13484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485: (eval $ac_try) 2>&5
13486: ac_status=$?
13487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488: (exit $ac_status); }; }; then
13489: ac_hi=-1 ac_mid=-1
13490: while :; do
13491: cat >conftest.$ac_ext <<_ACEOF
13492: #line $LINENO "configure"
13493: #include "confdefs.h"
13494: $ac_includes_default
13495: struct { char filler; long field; } pgac_struct;
13496: #ifdef F77_DUMMY_MAIN
13497: # ifdef __cplusplus
13498: extern "C"
13499: # endif
13500: int F77_DUMMY_MAIN() { return 1; }
13501: #endif
13502: int
13503: main ()
13504: {
13505: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13506: test_array [0] = 0
13507:
13508: ;
13509: return 0;
13510: }
13511: _ACEOF
13512: rm -f conftest.$ac_objext
13513: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514: (eval $ac_compile) 2>&5
13515: ac_status=$?
13516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517: (exit $ac_status); } &&
13518: { ac_try='test -s conftest.$ac_objext'
13519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520: (eval $ac_try) 2>&5
13521: ac_status=$?
13522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523: (exit $ac_status); }; }; then
13524: ac_lo=$ac_mid; break
13525: else
13526: echo "$as_me: failed program was:" >&5
13527: cat conftest.$ac_ext >&5
13528: ac_hi=`expr '(' $ac_mid ')' - 1`
13529: if test $ac_mid -le $ac_hi; then
13530: ac_lo= ac_hi=
13531: break
13532: fi
13533: ac_mid=`expr 2 '*' $ac_mid`
13534: fi
13535: rm -f conftest.$ac_objext conftest.$ac_ext
13536: done
13537: else
13538: echo "$as_me: failed program was:" >&5
13539: cat conftest.$ac_ext >&5
13540: ac_lo= ac_hi=
13541: fi
13542: rm -f conftest.$ac_objext conftest.$ac_ext
13543: fi
13544: rm -f conftest.$ac_objext conftest.$ac_ext
13545: # Binary search between lo and hi bounds.
13546: while test "x$ac_lo" != "x$ac_hi"; do
13547: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13548: cat >conftest.$ac_ext <<_ACEOF
13549: #line $LINENO "configure"
13550: #include "confdefs.h"
13551: $ac_includes_default
13552: struct { char filler; long field; } pgac_struct;
13553: #ifdef F77_DUMMY_MAIN
13554: # ifdef __cplusplus
13555: extern "C"
13556: # endif
13557: int F77_DUMMY_MAIN() { return 1; }
13558: #endif
13559: int
13560: main ()
13561: {
13562: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13563: test_array [0] = 0
13564:
13565: ;
13566: return 0;
13567: }
13568: _ACEOF
13569: rm -f conftest.$ac_objext
13570: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571: (eval $ac_compile) 2>&5
13572: ac_status=$?
13573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574: (exit $ac_status); } &&
13575: { ac_try='test -s conftest.$ac_objext'
13576: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577: (eval $ac_try) 2>&5
13578: ac_status=$?
13579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580: (exit $ac_status); }; }; then
13581: ac_hi=$ac_mid
13582: else
13583: echo "$as_me: failed program was:" >&5
13584: cat conftest.$ac_ext >&5
13585: ac_lo=`expr '(' $ac_mid ')' + 1`
13586: fi
13587: rm -f conftest.$ac_objext conftest.$ac_ext
13588: done
13589: case $ac_lo in
13590: ?*) pgac_cv_alignof_long=$ac_lo;;
13591: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13592: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13593: { (exit 1); exit 1; }; } ;;
13594: esac
1.90 tgl 13595: else
1.179 petere 13596: if test "$cross_compiling" = yes; then
13597: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13598: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13599: { (exit 1); exit 1; }; }
13600: else
13601: cat >conftest.$ac_ext <<_ACEOF
13602: #line $LINENO "configure"
13603: #include "confdefs.h"
13604: $ac_includes_default
13605: struct { char filler; long field; } pgac_struct;
13606: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13607: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.90 tgl 13608: #include <stdio.h>
1.179 petere 13609: #include <stdlib.h>
13610: #ifdef F77_DUMMY_MAIN
13611: # ifdef __cplusplus
13612: extern "C"
13613: # endif
13614: int F77_DUMMY_MAIN() { return 1; }
13615: #endif
13616: int
13617: main ()
13618: {
13619:
13620: FILE *f = fopen ("conftest.val", "w");
13621: if (! f)
13622: exit (1);
13623: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13624: {
13625: long i = longval ();
13626: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13627: exit (1);
13628: fprintf (f, "%ld\n", i);
13629: }
13630: else
13631: {
13632: unsigned long i = ulongval ();
13633: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13634: exit (1);
13635: fprintf (f, "%lu\n", i);
13636: }
13637: exit (ferror (f) || fclose (f) != 0);
13638:
13639: ;
13640: return 0;
13641: }
13642: _ACEOF
13643: rm -f conftest$ac_exeext
13644: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645: (eval $ac_link) 2>&5
13646: ac_status=$?
13647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13649: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650: (eval $ac_try) 2>&5
13651: ac_status=$?
13652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653: (exit $ac_status); }; }; then
13654: pgac_cv_alignof_long=`cat conftest.val`
13655: else
13656: echo "$as_me: program exited with status $ac_status" >&5
13657: echo "$as_me: failed program was:" >&5
13658: cat conftest.$ac_ext >&5
13659: ( exit $ac_status )
13660: { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13661: echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13662: { (exit 1); exit 1; }; }
13663: fi
13664: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13665: fi
13666: fi
13667: rm -f conftest.val
13668: else
13669: pgac_cv_alignof_long=0
13670: fi
13671: fi
13672: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13673: echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13674: cat >>confdefs.h <<_ACEOF
13675: #define ALIGNOF_LONG $pgac_cv_alignof_long
13676: _ACEOF
13677:
13678:
13679: if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13680: echo "$as_me:$LINENO: checking for long long int" >&5
13681: echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13682: if test "${ac_cv_type_long_long_int+set}" = set; then
13683: echo $ECHO_N "(cached) $ECHO_C" >&6
13684: else
13685: cat >conftest.$ac_ext <<_ACEOF
13686: #line $LINENO "configure"
13687: #include "confdefs.h"
13688: $ac_includes_default
13689: #ifdef F77_DUMMY_MAIN
13690: # ifdef __cplusplus
13691: extern "C"
13692: # endif
13693: int F77_DUMMY_MAIN() { return 1; }
13694: #endif
13695: int
13696: main ()
1.90 tgl 13697: {
1.179 petere 13698: if ((long long int *) 0)
13699: return 0;
13700: if (sizeof (long long int))
13701: return 0;
13702: ;
13703: return 0;
1.90 tgl 13704: }
1.179 petere 13705: _ACEOF
13706: rm -f conftest.$ac_objext
13707: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708: (eval $ac_compile) 2>&5
13709: ac_status=$?
13710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711: (exit $ac_status); } &&
13712: { ac_try='test -s conftest.$ac_objext'
13713: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714: (eval $ac_try) 2>&5
13715: ac_status=$?
13716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717: (exit $ac_status); }; }; then
13718: ac_cv_type_long_long_int=yes
13719: else
13720: echo "$as_me: failed program was:" >&5
13721: cat conftest.$ac_ext >&5
13722: ac_cv_type_long_long_int=no
13723: fi
13724: rm -f conftest.$ac_objext conftest.$ac_ext
13725: fi
13726: echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13727: echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13728:
13729: echo "$as_me:$LINENO: checking alignment of long long int" >&5
13730: echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13731: if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13732: echo $ECHO_N "(cached) $ECHO_C" >&6
1.90 tgl 13733: else
1.179 petere 13734: if test "$ac_cv_type_long_long_int" = yes; then
13735: if test "$cross_compiling" = yes; then
13736: # Depending upon the size, compute the lo and hi bounds.
13737: cat >conftest.$ac_ext <<_ACEOF
13738: #line $LINENO "configure"
13739: #include "confdefs.h"
13740: $ac_includes_default
13741: struct { char filler; long long int field; } pgac_struct;
13742: #ifdef F77_DUMMY_MAIN
13743: # ifdef __cplusplus
13744: extern "C"
13745: # endif
13746: int F77_DUMMY_MAIN() { return 1; }
13747: #endif
13748: int
13749: main ()
13750: {
13751: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13752: test_array [0] = 0
13753:
13754: ;
13755: return 0;
13756: }
13757: _ACEOF
13758: rm -f conftest.$ac_objext
13759: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760: (eval $ac_compile) 2>&5
13761: ac_status=$?
13762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763: (exit $ac_status); } &&
13764: { ac_try='test -s conftest.$ac_objext'
13765: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766: (eval $ac_try) 2>&5
13767: ac_status=$?
13768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769: (exit $ac_status); }; }; then
13770: ac_lo=0 ac_mid=0
13771: while :; do
13772: cat >conftest.$ac_ext <<_ACEOF
13773: #line $LINENO "configure"
13774: #include "confdefs.h"
13775: $ac_includes_default
13776: struct { char filler; long long int field; } pgac_struct;
13777: #ifdef F77_DUMMY_MAIN
13778: # ifdef __cplusplus
13779: extern "C"
13780: # endif
13781: int F77_DUMMY_MAIN() { return 1; }
13782: #endif
13783: int
13784: main ()
13785: {
13786: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13787: test_array [0] = 0
13788:
13789: ;
13790: return 0;
13791: }
13792: _ACEOF
13793: rm -f conftest.$ac_objext
13794: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795: (eval $ac_compile) 2>&5
13796: ac_status=$?
13797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798: (exit $ac_status); } &&
13799: { ac_try='test -s conftest.$ac_objext'
13800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801: (eval $ac_try) 2>&5
13802: ac_status=$?
13803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804: (exit $ac_status); }; }; then
13805: ac_hi=$ac_mid; break
13806: else
13807: echo "$as_me: failed program was:" >&5
13808: cat conftest.$ac_ext >&5
13809: ac_lo=`expr $ac_mid + 1`
13810: if test $ac_lo -le $ac_mid; then
13811: ac_lo= ac_hi=
13812: break
13813: fi
13814: ac_mid=`expr 2 '*' $ac_mid + 1`
1.90 tgl 13815: fi
1.179 petere 13816: rm -f conftest.$ac_objext conftest.$ac_ext
13817: done
13818: else
13819: echo "$as_me: failed program was:" >&5
13820: cat conftest.$ac_ext >&5
13821: cat >conftest.$ac_ext <<_ACEOF
13822: #line $LINENO "configure"
13823: #include "confdefs.h"
13824: $ac_includes_default
13825: struct { char filler; long long int field; } pgac_struct;
13826: #ifdef F77_DUMMY_MAIN
13827: # ifdef __cplusplus
13828: extern "C"
13829: # endif
13830: int F77_DUMMY_MAIN() { return 1; }
13831: #endif
13832: int
13833: main ()
13834: {
13835: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13836: test_array [0] = 0
13837:
13838: ;
13839: return 0;
13840: }
13841: _ACEOF
13842: rm -f conftest.$ac_objext
13843: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844: (eval $ac_compile) 2>&5
13845: ac_status=$?
13846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847: (exit $ac_status); } &&
13848: { ac_try='test -s conftest.$ac_objext'
13849: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850: (eval $ac_try) 2>&5
13851: ac_status=$?
13852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853: (exit $ac_status); }; }; then
13854: ac_hi=-1 ac_mid=-1
13855: while :; do
13856: cat >conftest.$ac_ext <<_ACEOF
13857: #line $LINENO "configure"
13858: #include "confdefs.h"
13859: $ac_includes_default
13860: struct { char filler; long long int field; } pgac_struct;
13861: #ifdef F77_DUMMY_MAIN
13862: # ifdef __cplusplus
13863: extern "C"
13864: # endif
13865: int F77_DUMMY_MAIN() { return 1; }
13866: #endif
13867: int
13868: main ()
13869: {
13870: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13871: test_array [0] = 0
13872:
13873: ;
13874: return 0;
13875: }
13876: _ACEOF
13877: rm -f conftest.$ac_objext
13878: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879: (eval $ac_compile) 2>&5
13880: ac_status=$?
13881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882: (exit $ac_status); } &&
13883: { ac_try='test -s conftest.$ac_objext'
13884: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885: (eval $ac_try) 2>&5
13886: ac_status=$?
13887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888: (exit $ac_status); }; }; then
13889: ac_lo=$ac_mid; break
13890: else
13891: echo "$as_me: failed program was:" >&5
13892: cat conftest.$ac_ext >&5
13893: ac_hi=`expr '(' $ac_mid ')' - 1`
13894: if test $ac_mid -le $ac_hi; then
13895: ac_lo= ac_hi=
13896: break
13897: fi
13898: ac_mid=`expr 2 '*' $ac_mid`
1.90 tgl 13899: fi
1.179 petere 13900: rm -f conftest.$ac_objext conftest.$ac_ext
13901: done
13902: else
13903: echo "$as_me: failed program was:" >&5
13904: cat conftest.$ac_ext >&5
13905: ac_lo= ac_hi=
13906: fi
13907: rm -f conftest.$ac_objext conftest.$ac_ext
13908: fi
13909: rm -f conftest.$ac_objext conftest.$ac_ext
13910: # Binary search between lo and hi bounds.
13911: while test "x$ac_lo" != "x$ac_hi"; do
13912: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13913: cat >conftest.$ac_ext <<_ACEOF
13914: #line $LINENO "configure"
13915: #include "confdefs.h"
13916: $ac_includes_default
13917: struct { char filler; long long int field; } pgac_struct;
13918: #ifdef F77_DUMMY_MAIN
13919: # ifdef __cplusplus
13920: extern "C"
13921: # endif
13922: int F77_DUMMY_MAIN() { return 1; }
13923: #endif
13924: int
13925: main ()
13926: {
13927: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13928: test_array [0] = 0
1.90 tgl 13929:
1.179 petere 13930: ;
13931: return 0;
13932: }
13933: _ACEOF
13934: rm -f conftest.$ac_objext
13935: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936: (eval $ac_compile) 2>&5
13937: ac_status=$?
13938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939: (exit $ac_status); } &&
13940: { ac_try='test -s conftest.$ac_objext'
13941: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942: (eval $ac_try) 2>&5
13943: ac_status=$?
13944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945: (exit $ac_status); }; }; then
13946: ac_hi=$ac_mid
13947: else
13948: echo "$as_me: failed program was:" >&5
13949: cat conftest.$ac_ext >&5
13950: ac_lo=`expr '(' $ac_mid ')' + 1`
1.90 tgl 13951: fi
1.179 petere 13952: rm -f conftest.$ac_objext conftest.$ac_ext
13953: done
13954: case $ac_lo in
13955: ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13956: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13957: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13958: { (exit 1); exit 1; }; } ;;
13959: esac
1.1 petere 13960: else
13961: if test "$cross_compiling" = yes; then
1.179 petere 13962: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13963: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13964: { (exit 1); exit 1; }; }
13965: else
13966: cat >conftest.$ac_ext <<_ACEOF
13967: #line $LINENO "configure"
13968: #include "confdefs.h"
13969: $ac_includes_default
13970: struct { char filler; long long int field; } pgac_struct;
13971: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13972: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 13973: #include <stdio.h>
1.179 petere 13974: #include <stdlib.h>
13975: #ifdef F77_DUMMY_MAIN
13976: # ifdef __cplusplus
13977: extern "C"
13978: # endif
13979: int F77_DUMMY_MAIN() { return 1; }
13980: #endif
13981: int
13982: main ()
1.1 petere 13983: {
1.179 petere 13984:
13985: FILE *f = fopen ("conftest.val", "w");
13986: if (! f)
13987: exit (1);
13988: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13989: {
13990: long i = longval ();
13991: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13992: exit (1);
13993: fprintf (f, "%ld\n", i);
13994: }
13995: else
13996: {
13997: unsigned long i = ulongval ();
13998: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13999: exit (1);
14000: fprintf (f, "%lu\n", i);
14001: }
14002: exit (ferror (f) || fclose (f) != 0);
14003:
14004: ;
14005: return 0;
1.1 petere 14006: }
1.179 petere 14007: _ACEOF
14008: rm -f conftest$ac_exeext
14009: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14010: (eval $ac_link) 2>&5
14011: ac_status=$?
14012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015: (eval $ac_try) 2>&5
14016: ac_status=$?
14017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018: (exit $ac_status); }; }; then
14019: pgac_cv_alignof_long_long_int=`cat conftest.val`
14020: else
14021: echo "$as_me: program exited with status $ac_status" >&5
14022: echo "$as_me: failed program was:" >&5
14023: cat conftest.$ac_ext >&5
14024: ( exit $ac_status )
14025: { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14026: echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14027: { (exit 1); exit 1; }; }
14028: fi
14029: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14030: fi
14031: fi
14032: rm -f conftest.val
14033: else
14034: pgac_cv_alignof_long_long_int=0
14035: fi
14036: fi
14037: echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14038: echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14039: cat >>confdefs.h <<_ACEOF
14040: #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14041: _ACEOF
14042:
1.1 petere 14043:
14044: fi
1.179 petere 14045: echo "$as_me:$LINENO: checking for double" >&5
14046: echo $ECHO_N "checking for double... $ECHO_C" >&6
14047: if test "${ac_cv_type_double+set}" = set; then
14048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14049: else
1.179 petere 14050: cat >conftest.$ac_ext <<_ACEOF
14051: #line $LINENO "configure"
1.1 petere 14052: #include "confdefs.h"
1.179 petere 14053: $ac_includes_default
14054: #ifdef F77_DUMMY_MAIN
14055: # ifdef __cplusplus
14056: extern "C"
14057: # endif
14058: int F77_DUMMY_MAIN() { return 1; }
14059: #endif
14060: int
14061: main ()
1.1 petere 14062: {
1.179 petere 14063: if ((double *) 0)
14064: return 0;
14065: if (sizeof (double))
14066: return 0;
14067: ;
14068: return 0;
1.1 petere 14069: }
1.179 petere 14070: _ACEOF
14071: rm -f conftest.$ac_objext
14072: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073: (eval $ac_compile) 2>&5
14074: ac_status=$?
14075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076: (exit $ac_status); } &&
14077: { ac_try='test -s conftest.$ac_objext'
14078: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079: (eval $ac_try) 2>&5
14080: ac_status=$?
14081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082: (exit $ac_status); }; }; then
14083: ac_cv_type_double=yes
14084: else
14085: echo "$as_me: failed program was:" >&5
14086: cat conftest.$ac_ext >&5
14087: ac_cv_type_double=no
14088: fi
14089: rm -f conftest.$ac_objext conftest.$ac_ext
14090: fi
14091: echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14092: echo "${ECHO_T}$ac_cv_type_double" >&6
14093:
14094: echo "$as_me:$LINENO: checking alignment of double" >&5
14095: echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14096: if test "${pgac_cv_alignof_double+set}" = set; then
14097: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 14098: else
1.179 petere 14099: if test "$ac_cv_type_double" = yes; then
1.1 petere 14100: if test "$cross_compiling" = yes; then
1.179 petere 14101: # Depending upon the size, compute the lo and hi bounds.
14102: cat >conftest.$ac_ext <<_ACEOF
14103: #line $LINENO "configure"
14104: #include "confdefs.h"
14105: $ac_includes_default
14106: struct { char filler; double field; } pgac_struct;
14107: #ifdef F77_DUMMY_MAIN
14108: # ifdef __cplusplus
14109: extern "C"
14110: # endif
14111: int F77_DUMMY_MAIN() { return 1; }
14112: #endif
14113: int
14114: main ()
1.1 petere 14115: {
1.179 petere 14116: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14117: test_array [0] = 0
14118:
14119: ;
14120: return 0;
1.1 petere 14121: }
1.179 petere 14122: _ACEOF
14123: rm -f conftest.$ac_objext
14124: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125: (eval $ac_compile) 2>&5
14126: ac_status=$?
14127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128: (exit $ac_status); } &&
14129: { ac_try='test -s conftest.$ac_objext'
14130: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131: (eval $ac_try) 2>&5
14132: ac_status=$?
14133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134: (exit $ac_status); }; }; then
14135: ac_lo=0 ac_mid=0
14136: while :; do
14137: cat >conftest.$ac_ext <<_ACEOF
14138: #line $LINENO "configure"
14139: #include "confdefs.h"
14140: $ac_includes_default
14141: struct { char filler; double field; } pgac_struct;
14142: #ifdef F77_DUMMY_MAIN
14143: # ifdef __cplusplus
14144: extern "C"
14145: # endif
14146: int F77_DUMMY_MAIN() { return 1; }
14147: #endif
14148: int
14149: main ()
14150: {
14151: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14152: test_array [0] = 0
1.1 petere 14153:
1.179 petere 14154: ;
14155: return 0;
14156: }
14157: _ACEOF
14158: rm -f conftest.$ac_objext
14159: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160: (eval $ac_compile) 2>&5
14161: ac_status=$?
14162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163: (exit $ac_status); } &&
14164: { ac_try='test -s conftest.$ac_objext'
14165: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166: (eval $ac_try) 2>&5
14167: ac_status=$?
14168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169: (exit $ac_status); }; }; then
14170: ac_hi=$ac_mid; break
14171: else
14172: echo "$as_me: failed program was:" >&5
14173: cat conftest.$ac_ext >&5
14174: ac_lo=`expr $ac_mid + 1`
14175: if test $ac_lo -le $ac_mid; then
14176: ac_lo= ac_hi=
14177: break
14178: fi
14179: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1 petere 14180: fi
1.179 petere 14181: rm -f conftest.$ac_objext conftest.$ac_ext
14182: done
1.1 petere 14183: else
1.179 petere 14184: echo "$as_me: failed program was:" >&5
14185: cat conftest.$ac_ext >&5
14186: cat >conftest.$ac_ext <<_ACEOF
14187: #line $LINENO "configure"
14188: #include "confdefs.h"
14189: $ac_includes_default
14190: struct { char filler; double field; } pgac_struct;
14191: #ifdef F77_DUMMY_MAIN
14192: # ifdef __cplusplus
14193: extern "C"
14194: # endif
14195: int F77_DUMMY_MAIN() { return 1; }
14196: #endif
14197: int
14198: main ()
1.1 petere 14199: {
1.179 petere 14200: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14201: test_array [0] = 0
14202:
14203: ;
14204: return 0;
1.1 petere 14205: }
1.179 petere 14206: _ACEOF
14207: rm -f conftest.$ac_objext
14208: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209: (eval $ac_compile) 2>&5
14210: ac_status=$?
14211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212: (exit $ac_status); } &&
14213: { ac_try='test -s conftest.$ac_objext'
14214: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215: (eval $ac_try) 2>&5
14216: ac_status=$?
14217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218: (exit $ac_status); }; }; then
14219: ac_hi=-1 ac_mid=-1
14220: while :; do
14221: cat >conftest.$ac_ext <<_ACEOF
14222: #line $LINENO "configure"
14223: #include "confdefs.h"
14224: $ac_includes_default
14225: struct { char filler; double field; } pgac_struct;
14226: #ifdef F77_DUMMY_MAIN
14227: # ifdef __cplusplus
14228: extern "C"
14229: # endif
14230: int F77_DUMMY_MAIN() { return 1; }
14231: #endif
14232: int
14233: main ()
14234: {
14235: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14236: test_array [0] = 0
1.1 petere 14237:
1.179 petere 14238: ;
14239: return 0;
14240: }
14241: _ACEOF
14242: rm -f conftest.$ac_objext
14243: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244: (eval $ac_compile) 2>&5
14245: ac_status=$?
14246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247: (exit $ac_status); } &&
14248: { ac_try='test -s conftest.$ac_objext'
14249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250: (eval $ac_try) 2>&5
14251: ac_status=$?
14252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253: (exit $ac_status); }; }; then
14254: ac_lo=$ac_mid; break
14255: else
14256: echo "$as_me: failed program was:" >&5
14257: cat conftest.$ac_ext >&5
14258: ac_hi=`expr '(' $ac_mid ')' - 1`
14259: if test $ac_mid -le $ac_hi; then
14260: ac_lo= ac_hi=
14261: break
14262: fi
14263: ac_mid=`expr 2 '*' $ac_mid`
1.1 petere 14264: fi
1.179 petere 14265: rm -f conftest.$ac_objext conftest.$ac_ext
14266: done
14267: else
14268: echo "$as_me: failed program was:" >&5
14269: cat conftest.$ac_ext >&5
14270: ac_lo= ac_hi=
14271: fi
14272: rm -f conftest.$ac_objext conftest.$ac_ext
14273: fi
14274: rm -f conftest.$ac_objext conftest.$ac_ext
14275: # Binary search between lo and hi bounds.
14276: while test "x$ac_lo" != "x$ac_hi"; do
14277: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14278: cat >conftest.$ac_ext <<_ACEOF
14279: #line $LINENO "configure"
14280: #include "confdefs.h"
14281: $ac_includes_default
14282: struct { char filler; double field; } pgac_struct;
14283: #ifdef F77_DUMMY_MAIN
14284: # ifdef __cplusplus
14285: extern "C"
14286: # endif
14287: int F77_DUMMY_MAIN() { return 1; }
14288: #endif
14289: int
14290: main ()
14291: {
14292: static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14293: test_array [0] = 0
1.1 petere 14294:
1.179 petere 14295: ;
14296: return 0;
14297: }
14298: _ACEOF
14299: rm -f conftest.$ac_objext
14300: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301: (eval $ac_compile) 2>&5
14302: ac_status=$?
14303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304: (exit $ac_status); } &&
14305: { ac_try='test -s conftest.$ac_objext'
14306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307: (eval $ac_try) 2>&5
14308: ac_status=$?
14309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310: (exit $ac_status); }; }; then
14311: ac_hi=$ac_mid
14312: else
14313: echo "$as_me: failed program was:" >&5
14314: cat conftest.$ac_ext >&5
14315: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1 petere 14316: fi
1.179 petere 14317: rm -f conftest.$ac_objext conftest.$ac_ext
14318: done
14319: case $ac_lo in
14320: ?*) pgac_cv_alignof_double=$ac_lo;;
14321: '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14322: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14323: { (exit 1); exit 1; }; } ;;
14324: esac
1.1 petere 14325: else
14326: if test "$cross_compiling" = yes; then
1.179 petere 14327: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14328: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14329: { (exit 1); exit 1; }; }
14330: else
14331: cat >conftest.$ac_ext <<_ACEOF
14332: #line $LINENO "configure"
14333: #include "confdefs.h"
14334: $ac_includes_default
14335: struct { char filler; double field; } pgac_struct;
14336: long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14337: unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
1.1 petere 14338: #include <stdio.h>
1.179 petere 14339: #include <stdlib.h>
14340: #ifdef F77_DUMMY_MAIN
14341: # ifdef __cplusplus
14342: extern "C"
14343: # endif
14344: int F77_DUMMY_MAIN() { return 1; }
14345: #endif
14346: int
14347: main ()
1.1 petere 14348: {
1.179 petere 14349:
14350: FILE *f = fopen ("conftest.val", "w");
14351: if (! f)
14352: exit (1);
14353: if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14354: {
14355: long i = longval ();
14356: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14357: exit (1);
14358: fprintf (f, "%ld\n", i);
14359: }
14360: else
14361: {
14362: unsigned long i = ulongval ();
14363: if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14364: exit (1);
14365: fprintf (f, "%lu\n", i);
14366: }
14367: exit (ferror (f) || fclose (f) != 0);
14368:
14369: ;
14370: return 0;
1.1 petere 14371: }
1.179 petere 14372: _ACEOF
14373: rm -f conftest$ac_exeext
14374: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14375: (eval $ac_link) 2>&5
14376: ac_status=$?
14377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380: (eval $ac_try) 2>&5
14381: ac_status=$?
14382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383: (exit $ac_status); }; }; then
14384: pgac_cv_alignof_double=`cat conftest.val`
14385: else
14386: echo "$as_me: program exited with status $ac_status" >&5
14387: echo "$as_me: failed program was:" >&5
14388: cat conftest.$ac_ext >&5
14389: ( exit $ac_status )
14390: { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14391: echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14392: { (exit 1); exit 1; }; }
14393: fi
14394: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14395: fi
14396: fi
14397: rm -f conftest.val
14398: else
14399: pgac_cv_alignof_double=0
14400: fi
14401: fi
14402: echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14403: echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14404: cat >>confdefs.h <<_ACEOF
1.5 petere 14405: #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
1.179 petere 14406: _ACEOF
1.1 petere 14407:
14408:
14409:
1.179 petere 14410: # Compute maximum alignment of any basic type.
14411: # We assume long's alignment is at least as strong as char, short, or int;
14412: # but we must check long long (if it exists) and double.
1.1 petere 14413:
1.179 petere 14414: MAX_ALIGNOF=$pgac_cv_alignof_long
14415: if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14416: MAX_ALIGNOF=$pgac_cv_alignof_double
14417: fi
14418: if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14419: MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
1.1 petere 14420: fi
1.179 petere 14421:
14422: cat >>confdefs.h <<_ACEOF
1.1 petere 14423: #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
1.179 petere 14424: _ACEOF
1.1 petere 14425:
14426:
1.163 petere 14427:
1.161 tgl 14428: # Some platforms predefine the types int8, int16, etc. Only check
1.179 petere 14429: # a (hopefully) representative subset.
14430: echo "$as_me:$LINENO: checking for int8" >&5
14431: echo $ECHO_N "checking for int8... $ECHO_C" >&6
14432: if test "${ac_cv_type_int8+set}" = set; then
14433: echo $ECHO_N "(cached) $ECHO_C" >&6
14434: else
14435: cat >conftest.$ac_ext <<_ACEOF
14436: #line $LINENO "configure"
14437: #include "confdefs.h"
1.163 petere 14438: #include <stdio.h>
14439: #ifdef HAVE_SUPPORTDEFS_H
14440: #include <SupportDefs.h>
1.179 petere 14441: #endif
1.163 petere 14442:
1.179 petere 14443: #ifdef F77_DUMMY_MAIN
14444: # ifdef __cplusplus
14445: extern "C"
14446: # endif
14447: int F77_DUMMY_MAIN() { return 1; }
14448: #endif
14449: int
14450: main ()
14451: {
1.163 petere 14452: if ((int8 *) 0)
14453: return 0;
14454: if (sizeof (int8))
14455: return 0;
1.179 petere 14456: ;
14457: return 0;
14458: }
14459: _ACEOF
14460: rm -f conftest.$ac_objext
14461: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462: (eval $ac_compile) 2>&5
14463: ac_status=$?
14464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465: (exit $ac_status); } &&
14466: { ac_try='test -s conftest.$ac_objext'
14467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468: (eval $ac_try) 2>&5
14469: ac_status=$?
14470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471: (exit $ac_status); }; }; then
14472: ac_cv_type_int8=yes
14473: else
14474: echo "$as_me: failed program was:" >&5
14475: cat conftest.$ac_ext >&5
14476: ac_cv_type_int8=no
14477: fi
14478: rm -f conftest.$ac_objext conftest.$ac_ext
14479: fi
14480: echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14481: echo "${ECHO_T}$ac_cv_type_int8" >&6
14482: if test $ac_cv_type_int8 = yes; then
1.161 tgl 14483:
1.179 petere 14484: cat >>confdefs.h <<_ACEOF
1.163 petere 14485: #define HAVE_INT8 1
1.179 petere 14486: _ACEOF
1.161 tgl 14487:
14488:
1.179 petere 14489: fi
14490: echo "$as_me:$LINENO: checking for uint8" >&5
14491: echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14492: if test "${ac_cv_type_uint8+set}" = set; then
14493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 14494: else
1.179 petere 14495: cat >conftest.$ac_ext <<_ACEOF
14496: #line $LINENO "configure"
1.161 tgl 14497: #include "confdefs.h"
1.179 petere 14498: #include <stdio.h>
14499: #ifdef HAVE_SUPPORTDEFS_H
14500: #include <SupportDefs.h>
14501: #endif
14502:
14503: #ifdef F77_DUMMY_MAIN
14504: # ifdef __cplusplus
14505: extern "C"
14506: # endif
14507: int F77_DUMMY_MAIN() { return 1; }
14508: #endif
14509: int
14510: main ()
14511: {
1.163 petere 14512: if ((uint8 *) 0)
14513: return 0;
14514: if (sizeof (uint8))
14515: return 0;
1.179 petere 14516: ;
14517: return 0;
14518: }
14519: _ACEOF
14520: rm -f conftest.$ac_objext
14521: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522: (eval $ac_compile) 2>&5
14523: ac_status=$?
14524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525: (exit $ac_status); } &&
14526: { ac_try='test -s conftest.$ac_objext'
14527: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528: (eval $ac_try) 2>&5
14529: ac_status=$?
14530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531: (exit $ac_status); }; }; then
14532: ac_cv_type_uint8=yes
14533: else
14534: echo "$as_me: failed program was:" >&5
14535: cat conftest.$ac_ext >&5
14536: ac_cv_type_uint8=no
14537: fi
14538: rm -f conftest.$ac_objext conftest.$ac_ext
14539: fi
14540: echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14541: echo "${ECHO_T}$ac_cv_type_uint8" >&6
14542: if test $ac_cv_type_uint8 = yes; then
1.161 tgl 14543:
1.179 petere 14544: cat >>confdefs.h <<_ACEOF
1.163 petere 14545: #define HAVE_UINT8 1
1.179 petere 14546: _ACEOF
1.161 tgl 14547:
14548:
1.179 petere 14549: fi
14550: echo "$as_me:$LINENO: checking for int64" >&5
14551: echo $ECHO_N "checking for int64... $ECHO_C" >&6
14552: if test "${ac_cv_type_int64+set}" = set; then
14553: echo $ECHO_N "(cached) $ECHO_C" >&6
1.161 tgl 14554: else
1.179 petere 14555: cat >conftest.$ac_ext <<_ACEOF
14556: #line $LINENO "configure"
1.161 tgl 14557: #include "confdefs.h"
1.179 petere 14558: #include <stdio.h>
14559: #ifdef HAVE_SUPPORTDEFS_H
14560: #include <SupportDefs.h>
14561: #endif
14562:
14563: #ifdef F77_DUMMY_MAIN
14564: # ifdef __cplusplus
14565: extern "C"
14566: # endif
14567: int F77_DUMMY_MAIN() { return 1; }
14568: #endif
14569: int
14570: main ()
14571: {
1.163 petere 14572: if ((int64 *) 0)
14573: return 0;
14574: if (sizeof (int64))
14575: return 0;
1.179 petere 14576: ;
14577: return 0;
14578: }
14579: _ACEOF
14580: rm -f conftest.$ac_objext
14581: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582: (eval $ac_compile) 2>&5
14583: ac_status=$?
14584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585: (exit $ac_status); } &&
14586: { ac_try='test -s conftest.$ac_objext'
14587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588: (eval $ac_try) 2>&5
14589: ac_status=$?
14590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591: (exit $ac_status); }; }; then
14592: ac_cv_type_int64=yes
14593: else
1.181 petere 14594: echo "$as_me: failed program was:" >&5
14595: cat conftest.$ac_ext >&5
14596: ac_cv_type_int64=no
14597: fi
14598: rm -f conftest.$ac_objext conftest.$ac_ext
14599: fi
14600: echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14601: echo "${ECHO_T}$ac_cv_type_int64" >&6
14602: if test $ac_cv_type_int64 = yes; then
14603:
14604: cat >>confdefs.h <<_ACEOF
14605: #define HAVE_INT64 1
14606: _ACEOF
14607:
14608:
14609: fi
14610: echo "$as_me:$LINENO: checking for uint64" >&5
14611: echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14612: if test "${ac_cv_type_uint64+set}" = set; then
14613: echo $ECHO_N "(cached) $ECHO_C" >&6
14614: else
14615: cat >conftest.$ac_ext <<_ACEOF
14616: #line $LINENO "configure"
14617: #include "confdefs.h"
14618: #include <stdio.h>
14619: #ifdef HAVE_SUPPORTDEFS_H
14620: #include <SupportDefs.h>
14621: #endif
14622:
14623: #ifdef F77_DUMMY_MAIN
14624: # ifdef __cplusplus
14625: extern "C"
14626: # endif
14627: int F77_DUMMY_MAIN() { return 1; }
14628: #endif
14629: int
14630: main ()
14631: {
14632: if ((uint64 *) 0)
14633: return 0;
14634: if (sizeof (uint64))
14635: return 0;
14636: ;
14637: return 0;
14638: }
14639: _ACEOF
14640: rm -f conftest.$ac_objext
14641: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642: (eval $ac_compile) 2>&5
14643: ac_status=$?
14644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645: (exit $ac_status); } &&
14646: { ac_try='test -s conftest.$ac_objext'
14647: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648: (eval $ac_try) 2>&5
14649: ac_status=$?
14650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651: (exit $ac_status); }; }; then
14652: ac_cv_type_uint64=yes
14653: else
14654: echo "$as_me: failed program was:" >&5
14655: cat conftest.$ac_ext >&5
14656: ac_cv_type_uint64=no
14657: fi
14658: rm -f conftest.$ac_objext conftest.$ac_ext
14659: fi
14660: echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14661: echo "${ECHO_T}$ac_cv_type_uint64" >&6
14662: if test $ac_cv_type_uint64 = yes; then
14663:
14664: cat >>confdefs.h <<_ACEOF
14665: #define HAVE_UINT64 1
14666: _ACEOF
14667:
14668:
14669: fi
14670:
14671:
14672: # We also check for sig_atomic_t, which *should* be defined per ANSI
14673: # C, but is missing on some old platforms.
14674: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14675: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14676: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14677: echo $ECHO_N "(cached) $ECHO_C" >&6
14678: else
14679: cat >conftest.$ac_ext <<_ACEOF
14680: #line $LINENO "configure"
14681: #include "confdefs.h"
14682: #include <signal.h>
14683:
14684: #ifdef F77_DUMMY_MAIN
14685: # ifdef __cplusplus
14686: extern "C"
14687: # endif
14688: int F77_DUMMY_MAIN() { return 1; }
14689: #endif
14690: int
14691: main ()
14692: {
14693: if ((sig_atomic_t *) 0)
14694: return 0;
14695: if (sizeof (sig_atomic_t))
14696: return 0;
14697: ;
14698: return 0;
14699: }
14700: _ACEOF
14701: rm -f conftest.$ac_objext
14702: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703: (eval $ac_compile) 2>&5
14704: ac_status=$?
14705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706: (exit $ac_status); } &&
14707: { ac_try='test -s conftest.$ac_objext'
14708: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709: (eval $ac_try) 2>&5
14710: ac_status=$?
14711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712: (exit $ac_status); }; }; then
14713: ac_cv_type_sig_atomic_t=yes
14714: else
14715: echo "$as_me: failed program was:" >&5
14716: cat conftest.$ac_ext >&5
14717: ac_cv_type_sig_atomic_t=no
14718: fi
14719: rm -f conftest.$ac_objext conftest.$ac_ext
14720: fi
14721: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14722: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14723: if test $ac_cv_type_sig_atomic_t = yes; then
14724:
14725: cat >>confdefs.h <<_ACEOF
14726: #define HAVE_SIG_ATOMIC_T 1
14727: _ACEOF
14728:
14729:
14730: fi
14731:
14732:
14733:
14734: echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14735: echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14736: if test "${pgac_cv_func_posix_signals+set}" = set; then
14737: echo $ECHO_N "(cached) $ECHO_C" >&6
14738: else
14739: cat >conftest.$ac_ext <<_ACEOF
14740: #line $LINENO "configure"
14741: #include "confdefs.h"
14742: #include <signal.h>
14743:
14744: #ifdef F77_DUMMY_MAIN
14745: # ifdef __cplusplus
14746: extern "C"
14747: # endif
14748: int F77_DUMMY_MAIN() { return 1; }
14749: #endif
14750: int
14751: main ()
14752: {
14753: struct sigaction act, oact;
14754: sigemptyset(&act.sa_mask);
14755: act.sa_flags = SA_RESTART;
14756: sigaction(0, &act, &oact);
14757: ;
14758: return 0;
14759: }
14760: _ACEOF
14761: rm -f conftest.$ac_objext conftest$ac_exeext
14762: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14763: (eval $ac_link) 2>&5
14764: ac_status=$?
14765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766: (exit $ac_status); } &&
14767: { ac_try='test -s conftest$ac_exeext'
14768: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769: (eval $ac_try) 2>&5
14770: ac_status=$?
14771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772: (exit $ac_status); }; }; then
14773: pgac_cv_func_posix_signals=yes
14774: else
14775: echo "$as_me: failed program was:" >&5
14776: cat conftest.$ac_ext >&5
14777: pgac_cv_func_posix_signals=no
14778: fi
14779: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14780: fi
14781: echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14782: echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14783: if test x"$pgac_cv_func_posix_signals" = xyes ; then
14784:
14785: cat >>confdefs.h <<\_ACEOF
14786: #define HAVE_POSIX_SIGNALS
14787: _ACEOF
14788:
14789: fi
14790: HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14791:
1.204 petere 14792: if test $ac_cv_func_fseeko = yes; then
14793: # Check whether --enable-largefile or --disable-largefile was given.
14794: if test "${enable_largefile+set}" = set; then
14795: enableval="$enable_largefile"
14796:
14797: fi;
14798: if test "$enable_largefile" != no; then
14799:
14800: echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14801: echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14802: if test "${ac_cv_sys_largefile_CC+set}" = set; then
14803: echo $ECHO_N "(cached) $ECHO_C" >&6
14804: else
14805: ac_cv_sys_largefile_CC=no
14806: if test "$GCC" != yes; then
14807: ac_save_CC=$CC
14808: while :; do
14809: # IRIX 6.2 and later do not support large files by default,
14810: # so use the C compiler's -n32 option if that helps.
14811: cat >conftest.$ac_ext <<_ACEOF
14812: #line $LINENO "configure"
14813: #include "confdefs.h"
14814: #include <sys/types.h>
14815: /* Check that off_t can represent 2**63 - 1 correctly.
14816: We can't simply define LARGE_OFF_T to be 9223372036854775807,
14817: since some C++ compilers masquerading as C compilers
14818: incorrectly reject 9223372036854775807. */
14819: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14820: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14821: && LARGE_OFF_T % 2147483647 == 1)
14822: ? 1 : -1];
14823: #ifdef F77_DUMMY_MAIN
14824: # ifdef __cplusplus
14825: extern "C"
14826: # endif
14827: int F77_DUMMY_MAIN() { return 1; }
14828: #endif
14829: int
14830: main ()
14831: {
14832:
14833: ;
14834: return 0;
14835: }
14836: _ACEOF
14837: rm -f conftest.$ac_objext
14838: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839: (eval $ac_compile) 2>&5
14840: ac_status=$?
14841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842: (exit $ac_status); } &&
14843: { ac_try='test -s conftest.$ac_objext'
14844: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845: (eval $ac_try) 2>&5
14846: ac_status=$?
14847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848: (exit $ac_status); }; }; then
14849: break
14850: else
14851: echo "$as_me: failed program was:" >&5
14852: cat conftest.$ac_ext >&5
14853: fi
14854: rm -f conftest.$ac_objext
14855: CC="$CC -n32"
14856: rm -f conftest.$ac_objext
14857: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858: (eval $ac_compile) 2>&5
14859: ac_status=$?
14860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861: (exit $ac_status); } &&
14862: { ac_try='test -s conftest.$ac_objext'
14863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864: (eval $ac_try) 2>&5
14865: ac_status=$?
14866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867: (exit $ac_status); }; }; then
14868: ac_cv_sys_largefile_CC=' -n32'; break
14869: else
14870: echo "$as_me: failed program was:" >&5
14871: cat conftest.$ac_ext >&5
14872: fi
14873: rm -f conftest.$ac_objext
14874: break
14875: done
14876: CC=$ac_save_CC
14877: rm -f conftest.$ac_ext
14878: fi
14879: fi
14880: echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14881: echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14882: if test "$ac_cv_sys_largefile_CC" != no; then
14883: CC=$CC$ac_cv_sys_largefile_CC
14884: fi
14885:
14886: echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14887: echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14888: if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14889: echo $ECHO_N "(cached) $ECHO_C" >&6
14890: else
14891: while :; do
14892: ac_cv_sys_file_offset_bits=no
14893: cat >conftest.$ac_ext <<_ACEOF
14894: #line $LINENO "configure"
14895: #include "confdefs.h"
14896: #include <sys/types.h>
14897: /* Check that off_t can represent 2**63 - 1 correctly.
14898: We can't simply define LARGE_OFF_T to be 9223372036854775807,
14899: since some C++ compilers masquerading as C compilers
14900: incorrectly reject 9223372036854775807. */
14901: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14902: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14903: && LARGE_OFF_T % 2147483647 == 1)
14904: ? 1 : -1];
14905: #ifdef F77_DUMMY_MAIN
14906: # ifdef __cplusplus
14907: extern "C"
14908: # endif
14909: int F77_DUMMY_MAIN() { return 1; }
14910: #endif
14911: int
14912: main ()
14913: {
14914:
14915: ;
14916: return 0;
14917: }
14918: _ACEOF
14919: rm -f conftest.$ac_objext
14920: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921: (eval $ac_compile) 2>&5
14922: ac_status=$?
14923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924: (exit $ac_status); } &&
14925: { ac_try='test -s conftest.$ac_objext'
14926: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927: (eval $ac_try) 2>&5
14928: ac_status=$?
14929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930: (exit $ac_status); }; }; then
14931: break
14932: else
14933: echo "$as_me: failed program was:" >&5
14934: cat conftest.$ac_ext >&5
14935: fi
14936: rm -f conftest.$ac_objext conftest.$ac_ext
14937: cat >conftest.$ac_ext <<_ACEOF
14938: #line $LINENO "configure"
14939: #include "confdefs.h"
14940: #define _FILE_OFFSET_BITS 64
14941: #include <sys/types.h>
14942: /* Check that off_t can represent 2**63 - 1 correctly.
14943: We can't simply define LARGE_OFF_T to be 9223372036854775807,
14944: since some C++ compilers masquerading as C compilers
14945: incorrectly reject 9223372036854775807. */
14946: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14947: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14948: && LARGE_OFF_T % 2147483647 == 1)
14949: ? 1 : -1];
14950: #ifdef F77_DUMMY_MAIN
14951: # ifdef __cplusplus
14952: extern "C"
14953: # endif
14954: int F77_DUMMY_MAIN() { return 1; }
14955: #endif
14956: int
14957: main ()
14958: {
14959:
14960: ;
14961: return 0;
14962: }
14963: _ACEOF
14964: rm -f conftest.$ac_objext
14965: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14966: (eval $ac_compile) 2>&5
14967: ac_status=$?
14968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969: (exit $ac_status); } &&
14970: { ac_try='test -s conftest.$ac_objext'
14971: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972: (eval $ac_try) 2>&5
14973: ac_status=$?
14974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975: (exit $ac_status); }; }; then
14976: ac_cv_sys_file_offset_bits=64; break
14977: else
14978: echo "$as_me: failed program was:" >&5
14979: cat conftest.$ac_ext >&5
14980: fi
14981: rm -f conftest.$ac_objext conftest.$ac_ext
14982: break
14983: done
14984: fi
14985: echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14986: echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14987: if test "$ac_cv_sys_file_offset_bits" != no; then
14988:
14989: cat >>confdefs.h <<_ACEOF
14990: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14991: _ACEOF
14992:
14993: fi
14994: rm -f conftest*
14995: echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14996: echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14997: if test "${ac_cv_sys_large_files+set}" = set; then
14998: echo $ECHO_N "(cached) $ECHO_C" >&6
14999: else
15000: while :; do
15001: ac_cv_sys_large_files=no
15002: cat >conftest.$ac_ext <<_ACEOF
15003: #line $LINENO "configure"
15004: #include "confdefs.h"
15005: #include <sys/types.h>
15006: /* Check that off_t can represent 2**63 - 1 correctly.
15007: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15008: since some C++ compilers masquerading as C compilers
15009: incorrectly reject 9223372036854775807. */
15010: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15011: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15012: && LARGE_OFF_T % 2147483647 == 1)
15013: ? 1 : -1];
15014: #ifdef F77_DUMMY_MAIN
15015: # ifdef __cplusplus
15016: extern "C"
15017: # endif
15018: int F77_DUMMY_MAIN() { return 1; }
15019: #endif
15020: int
15021: main ()
15022: {
15023:
15024: ;
15025: return 0;
15026: }
15027: _ACEOF
15028: rm -f conftest.$ac_objext
15029: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030: (eval $ac_compile) 2>&5
15031: ac_status=$?
15032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033: (exit $ac_status); } &&
15034: { ac_try='test -s conftest.$ac_objext'
15035: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036: (eval $ac_try) 2>&5
15037: ac_status=$?
15038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039: (exit $ac_status); }; }; then
15040: break
15041: else
15042: echo "$as_me: failed program was:" >&5
15043: cat conftest.$ac_ext >&5
15044: fi
15045: rm -f conftest.$ac_objext conftest.$ac_ext
15046: cat >conftest.$ac_ext <<_ACEOF
15047: #line $LINENO "configure"
15048: #include "confdefs.h"
15049: #define _LARGE_FILES 1
15050: #include <sys/types.h>
15051: /* Check that off_t can represent 2**63 - 1 correctly.
15052: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15053: since some C++ compilers masquerading as C compilers
15054: incorrectly reject 9223372036854775807. */
15055: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15056: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15057: && LARGE_OFF_T % 2147483647 == 1)
15058: ? 1 : -1];
15059: #ifdef F77_DUMMY_MAIN
15060: # ifdef __cplusplus
15061: extern "C"
15062: # endif
15063: int F77_DUMMY_MAIN() { return 1; }
15064: #endif
15065: int
15066: main ()
15067: {
15068:
15069: ;
15070: return 0;
15071: }
15072: _ACEOF
15073: rm -f conftest.$ac_objext
15074: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075: (eval $ac_compile) 2>&5
15076: ac_status=$?
15077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078: (exit $ac_status); } &&
15079: { ac_try='test -s conftest.$ac_objext'
15080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081: (eval $ac_try) 2>&5
15082: ac_status=$?
15083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084: (exit $ac_status); }; }; then
15085: ac_cv_sys_large_files=1; break
15086: else
15087: echo "$as_me: failed program was:" >&5
15088: cat conftest.$ac_ext >&5
15089: fi
15090: rm -f conftest.$ac_objext conftest.$ac_ext
15091: break
15092: done
15093: fi
15094: echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15095: echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15096: if test "$ac_cv_sys_large_files" != no; then
15097:
15098: cat >>confdefs.h <<_ACEOF
15099: #define _LARGE_FILES $ac_cv_sys_large_files
15100: _ACEOF
15101:
15102: fi
15103: rm -f conftest*
15104: fi
15105:
15106: fi
1.181 petere 15107:
15108:
1.193 tgl 15109: # Select semaphore implementation type.
15110: if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15111:
15112: cat >>confdefs.h <<\_ACEOF
15113: #define USE_NAMED_POSIX_SEMAPHORES 1
15114: _ACEOF
15115:
15116: SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15117: else
15118: if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15119:
15120: cat >>confdefs.h <<\_ACEOF
15121: #define USE_UNNAMED_POSIX_SEMAPHORES 1
15122: _ACEOF
15123:
15124: SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15125: else
15126:
15127: cat >>confdefs.h <<\_ACEOF
15128: #define USE_SYSV_SEMAPHORES 1
15129: _ACEOF
15130:
15131: SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15132: fi
15133: fi
15134:
15135:
15136: # Select shared-memory implementation type.
15137:
15138: cat >>confdefs.h <<\_ACEOF
15139: #define USE_SYSV_SHARED_MEMORY 1
15140: _ACEOF
15141:
15142: SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15143:
15144:
1.181 petere 15145: if test "$enable_nls" = yes ; then
15146:
15147: echo "$as_me:$LINENO: checking for library containing gettext" >&5
15148: echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15149: if test "${ac_cv_search_gettext+set}" = set; then
15150: echo $ECHO_N "(cached) $ECHO_C" >&6
15151: else
15152: ac_func_search_save_LIBS=$LIBS
15153: ac_cv_search_gettext=no
15154: cat >conftest.$ac_ext <<_ACEOF
15155: #line $LINENO "configure"
15156: #include "confdefs.h"
15157:
15158: /* Override any gcc2 internal prototype to avoid an error. */
15159: #ifdef __cplusplus
15160: extern "C"
15161: #endif
15162: /* We use char because int might match the return type of a gcc2
15163: builtin and then its argument prototype would still apply. */
15164: char gettext ();
15165: #ifdef F77_DUMMY_MAIN
15166: # ifdef __cplusplus
15167: extern "C"
15168: # endif
15169: int F77_DUMMY_MAIN() { return 1; }
15170: #endif
15171: int
15172: main ()
15173: {
15174: gettext ();
15175: ;
15176: return 0;
15177: }
15178: _ACEOF
15179: rm -f conftest.$ac_objext conftest$ac_exeext
15180: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15181: (eval $ac_link) 2>&5
15182: ac_status=$?
15183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184: (exit $ac_status); } &&
15185: { ac_try='test -s conftest$ac_exeext'
15186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187: (eval $ac_try) 2>&5
15188: ac_status=$?
15189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190: (exit $ac_status); }; }; then
15191: ac_cv_search_gettext="none required"
15192: else
15193: echo "$as_me: failed program was:" >&5
15194: cat conftest.$ac_ext >&5
15195: fi
15196: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15197: if test "$ac_cv_search_gettext" = no; then
15198: for ac_lib in intl; do
15199: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15200: cat >conftest.$ac_ext <<_ACEOF
15201: #line $LINENO "configure"
15202: #include "confdefs.h"
15203:
15204: /* Override any gcc2 internal prototype to avoid an error. */
15205: #ifdef __cplusplus
15206: extern "C"
15207: #endif
15208: /* We use char because int might match the return type of a gcc2
15209: builtin and then its argument prototype would still apply. */
15210: char gettext ();
15211: #ifdef F77_DUMMY_MAIN
15212: # ifdef __cplusplus
15213: extern "C"
15214: # endif
15215: int F77_DUMMY_MAIN() { return 1; }
15216: #endif
15217: int
15218: main ()
15219: {
15220: gettext ();
15221: ;
15222: return 0;
15223: }
15224: _ACEOF
15225: rm -f conftest.$ac_objext conftest$ac_exeext
15226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227: (eval $ac_link) 2>&5
15228: ac_status=$?
15229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230: (exit $ac_status); } &&
15231: { ac_try='test -s conftest$ac_exeext'
15232: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233: (eval $ac_try) 2>&5
15234: ac_status=$?
15235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236: (exit $ac_status); }; }; then
15237: ac_cv_search_gettext="-l$ac_lib"
15238: break
15239: else
15240: echo "$as_me: failed program was:" >&5
15241: cat conftest.$ac_ext >&5
15242: fi
15243: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15244: done
15245: fi
15246: LIBS=$ac_func_search_save_LIBS
15247: fi
15248: echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15249: echo "${ECHO_T}$ac_cv_search_gettext" >&6
15250: if test "$ac_cv_search_gettext" != no; then
15251: test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15252:
15253: else
15254: { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15255: echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15256: { (exit 1); exit 1; }; }
15257: fi
15258:
15259: if test "${ac_cv_header_libintl_h+set}" = set; then
15260: echo "$as_me:$LINENO: checking for libintl.h" >&5
15261: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15262: if test "${ac_cv_header_libintl_h+set}" = set; then
15263: echo $ECHO_N "(cached) $ECHO_C" >&6
15264: fi
15265: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15266: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15267: else
15268: # Is the header compilable?
15269: echo "$as_me:$LINENO: checking libintl.h usability" >&5
15270: echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15271: cat >conftest.$ac_ext <<_ACEOF
15272: #line $LINENO "configure"
15273: #include "confdefs.h"
15274: $ac_includes_default
15275: #include <libintl.h>
15276: _ACEOF
15277: rm -f conftest.$ac_objext
15278: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279: (eval $ac_compile) 2>&5
15280: ac_status=$?
15281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282: (exit $ac_status); } &&
15283: { ac_try='test -s conftest.$ac_objext'
15284: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285: (eval $ac_try) 2>&5
15286: ac_status=$?
15287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288: (exit $ac_status); }; }; then
15289: ac_header_compiler=yes
15290: else
15291: echo "$as_me: failed program was:" >&5
15292: cat conftest.$ac_ext >&5
15293: ac_header_compiler=no
15294: fi
15295: rm -f conftest.$ac_objext conftest.$ac_ext
15296: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15297: echo "${ECHO_T}$ac_header_compiler" >&6
15298:
15299: # Is the header present?
15300: echo "$as_me:$LINENO: checking libintl.h presence" >&5
15301: echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15302: cat >conftest.$ac_ext <<_ACEOF
15303: #line $LINENO "configure"
15304: #include "confdefs.h"
15305: #include <libintl.h>
15306: _ACEOF
15307: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15308: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15309: ac_status=$?
15310: egrep -v '^ *\+' conftest.er1 >conftest.err
15311: rm -f conftest.er1
15312: cat conftest.err >&5
15313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314: (exit $ac_status); } >/dev/null; then
15315: if test -s conftest.err; then
15316: ac_cpp_err=$ac_c_preproc_warn_flag
15317: else
15318: ac_cpp_err=
15319: fi
15320: else
15321: ac_cpp_err=yes
15322: fi
15323: if test -z "$ac_cpp_err"; then
15324: ac_header_preproc=yes
15325: else
15326: echo "$as_me: failed program was:" >&5
15327: cat conftest.$ac_ext >&5
15328: ac_header_preproc=no
15329: fi
15330: rm -f conftest.err conftest.$ac_ext
15331: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15332: echo "${ECHO_T}$ac_header_preproc" >&6
15333:
15334: # So? What about this header?
15335: case $ac_header_compiler:$ac_header_preproc in
15336: yes:no )
15337: { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15338: echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15339: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15340: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15341: no:yes )
15342: { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15343: echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15344: { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15345: echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15346: { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15347: echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15348: esac
15349: echo "$as_me:$LINENO: checking for libintl.h" >&5
15350: echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15351: if test "${ac_cv_header_libintl_h+set}" = set; then
15352: echo $ECHO_N "(cached) $ECHO_C" >&6
15353: else
15354: ac_cv_header_libintl_h=$ac_header_preproc
15355: fi
15356: echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15357: echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15358:
15359: fi
15360: if test $ac_cv_header_libintl_h = yes; then
15361: :
15362: else
15363: { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15364: echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15365: { (exit 1); exit 1; }; }
15366: fi
15367:
15368:
15369: for ac_prog in msgfmt
15370: do
15371: # Extract the first word of "$ac_prog", so it can be a program name with args.
15372: set dummy $ac_prog; ac_word=$2
15373: echo "$as_me:$LINENO: checking for $ac_word" >&5
15374: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15375: if test "${ac_cv_prog_MSGFMT+set}" = set; then
15376: echo $ECHO_N "(cached) $ECHO_C" >&6
15377: else
15378: if test -n "$MSGFMT"; then
15379: ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15380: else
15381: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15382: for as_dir in $PATH
15383: do
15384: IFS=$as_save_IFS
15385: test -z "$as_dir" && as_dir=.
15386: for ac_exec_ext in '' $ac_executable_extensions; do
15387: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15388: ac_cv_prog_MSGFMT="$ac_prog"
15389: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15390: break 2
15391: fi
15392: done
15393: done
15394:
15395: fi
15396: fi
15397: MSGFMT=$ac_cv_prog_MSGFMT
15398: if test -n "$MSGFMT"; then
15399: echo "$as_me:$LINENO: result: $MSGFMT" >&5
15400: echo "${ECHO_T}$MSGFMT" >&6
15401: else
15402: echo "$as_me:$LINENO: result: no" >&5
15403: echo "${ECHO_T}no" >&6
15404: fi
15405:
15406: test -n "$MSGFMT" && break
15407: done
15408:
15409: if test -z "$MSGFMT"; then
15410: { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15411: echo "$as_me: error: msgfmt is required for NLS" >&2;}
15412: { (exit 1); exit 1; }; }
15413: fi
15414: for ac_prog in msgmerge
15415: do
15416: # Extract the first word of "$ac_prog", so it can be a program name with args.
15417: set dummy $ac_prog; ac_word=$2
15418: echo "$as_me:$LINENO: checking for $ac_word" >&5
15419: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15420: if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15421: echo $ECHO_N "(cached) $ECHO_C" >&6
15422: else
15423: if test -n "$MSGMERGE"; then
15424: ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15425: else
15426: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15427: for as_dir in $PATH
15428: do
15429: IFS=$as_save_IFS
15430: test -z "$as_dir" && as_dir=.
15431: for ac_exec_ext in '' $ac_executable_extensions; do
15432: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15433: ac_cv_prog_MSGMERGE="$ac_prog"
15434: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15435: break 2
15436: fi
15437: done
15438: done
15439:
15440: fi
15441: fi
15442: MSGMERGE=$ac_cv_prog_MSGMERGE
15443: if test -n "$MSGMERGE"; then
15444: echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15445: echo "${ECHO_T}$MSGMERGE" >&6
15446: else
15447: echo "$as_me:$LINENO: result: no" >&5
15448: echo "${ECHO_T}no" >&6
15449: fi
15450:
15451: test -n "$MSGMERGE" && break
15452: done
15453:
15454: for ac_prog in xgettext
15455: do
15456: # Extract the first word of "$ac_prog", so it can be a program name with args.
15457: set dummy $ac_prog; ac_word=$2
15458: echo "$as_me:$LINENO: checking for $ac_word" >&5
15459: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15460: if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15461: echo $ECHO_N "(cached) $ECHO_C" >&6
15462: else
15463: if test -n "$XGETTEXT"; then
15464: ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15465: else
15466: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467: for as_dir in $PATH
15468: do
15469: IFS=$as_save_IFS
15470: test -z "$as_dir" && as_dir=.
15471: for ac_exec_ext in '' $ac_executable_extensions; do
15472: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473: ac_cv_prog_XGETTEXT="$ac_prog"
15474: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15475: break 2
15476: fi
15477: done
15478: done
15479:
15480: fi
15481: fi
15482: XGETTEXT=$ac_cv_prog_XGETTEXT
15483: if test -n "$XGETTEXT"; then
15484: echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15485: echo "${ECHO_T}$XGETTEXT" >&6
15486: else
15487: echo "$as_me:$LINENO: result: no" >&5
15488: echo "${ECHO_T}no" >&6
1.179 petere 15489: fi
1.181 petere 15490:
15491: test -n "$XGETTEXT" && break
15492: done
15493:
15494:
15495: # Note: share/locale is always the default, independent of $datadir
15496: localedir='${prefix}/share/locale'
15497: if test x"$prefix" = x"NONE"; then
15498: exp_localedir="$ac_default_prefix/share/locale"
15499: else
15500: exp_localedir="$prefix/share/locale"
15501: fi
15502:
15503:
1.161 tgl 15504:
1.179 petere 15505: cat >>confdefs.h <<_ACEOF
1.181 petere 15506: #define LOCALEDIR "$exp_localedir"
1.179 petere 15507: _ACEOF
1.161 tgl 15508:
15509:
1.179 petere 15510: fi
1.181 petere 15511:
1.44 petere 15512: # Check for Tcl configuration script tclConfig.sh
15513: if test "$with_tcl" = yes; then
15514: for ac_prog in tclsh tcl
15515: do
1.179 petere 15516: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.44 petere 15517: set dummy $ac_prog; ac_word=$2
1.179 petere 15518: echo "$as_me:$LINENO: checking for $ac_word" >&5
15519: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15520: if test "${ac_cv_path_TCLSH+set}" = set; then
15521: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 petere 15522: else
1.179 petere 15523: case $TCLSH in
15524: [\\/]* | ?:[\\/]*)
1.1 petere 15525: ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15526: ;;
15527: *)
1.179 petere 15528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15529: for as_dir in $PATH
15530: do
15531: IFS=$as_save_IFS
15532: test -z "$as_dir" && as_dir=.
15533: for ac_exec_ext in '' $ac_executable_extensions; do
15534: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15535: ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15536: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15537: break 2
15538: fi
15539: done
15540: done
15541:
1.1 petere 15542: ;;
15543: esac
15544: fi
1.179 petere 15545: TCLSH=$ac_cv_path_TCLSH
15546:
1.1 petere 15547: if test -n "$TCLSH"; then
1.179 petere 15548: echo "$as_me:$LINENO: result: $TCLSH" >&5
15549: echo "${ECHO_T}$TCLSH" >&6
1.1 petere 15550: else
1.179 petere 15551: echo "$as_me:$LINENO: result: no" >&5
15552: echo "${ECHO_T}no" >&6
1.1 petere 15553: fi
15554:
1.179 petere 15555: test -n "$TCLSH" && break
1.44 petere 15556: done
15557:
1.179 petere 15558: echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15559: echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
1.44 petere 15560: # Let user override test
15561: if test -z "$TCL_CONFIG_SH"; then
15562: pgac_test_dirs="$with_tclconfig"
15563:
15564: set X $pgac_test_dirs; shift
15565: if test $# -eq 0; then
1.179 petere 15566: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15567: echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15568: { (exit 1); exit 1; }; }
1.44 petere 15569: set X `echo 'puts $auto_path' | $TCLSH`; shift
1.1 petere 15570: fi
15571:
1.48 petere 15572: for pgac_dir do
1.44 petere 15573: if test -r "$pgac_dir/tclConfig.sh"; then
15574: TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15575: break
15576: fi
15577: done
1.1 petere 15578: fi
15579:
1.44 petere 15580: if test -z "$TCL_CONFIG_SH"; then
1.179 petere 15581: echo "$as_me:$LINENO: result: no" >&5
15582: echo "${ECHO_T}no" >&6
15583: { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15584: echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15585: { (exit 1); exit 1; }; }
1.1 petere 15586: else
1.179 petere 15587: echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15588: echo "${ECHO_T}$TCL_CONFIG_SH" >&6
1.1 petere 15589: fi
15590:
15591:
1.30 petere 15592:
1.194 petere 15593: . "$TCL_CONFIG_SH"
15594: eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15595: eval TCL_LIBS=\"$TCL_LIBS\"
15596: eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15597: eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15598:
1.232 tgl 15599: # TCL_INCLUDE_SPEC is only provided in Tcl 8.4 and later
15600: if test "${TCL_INCLUDE_SPEC+set}" = set; then
15601: eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
15602: else
15603: TCL_INCLUDE_SPEC=''
15604: fi
1.194 petere 15605: fi
1.1 petere 15606:
1.44 petere 15607: # Check for Tk configuration script tkConfig.sh
15608: if test "$with_tk" = yes; then
1.179 petere 15609: echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15610: echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
1.44 petere 15611: # Let user override test
15612: if test -z "$TK_CONFIG_SH"; then
15613: pgac_test_dirs="$with_tkconfig $with_tclconfig"
1.1 petere 15614:
1.44 petere 15615: set X $pgac_test_dirs; shift
15616: if test $# -eq 0; then
1.179 petere 15617: test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15618: echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15619: { (exit 1); exit 1; }; }
1.44 petere 15620: set X `echo 'puts $auto_path' | $TCLSH`; shift
15621: fi
1.1 petere 15622:
1.48 petere 15623: for pgac_dir do
1.44 petere 15624: if test -r "$pgac_dir/tkConfig.sh"; then
15625: TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15626: break
15627: fi
15628: done
1.1 petere 15629: fi
15630:
1.44 petere 15631: if test -z "$TK_CONFIG_SH"; then
1.179 petere 15632: echo "$as_me:$LINENO: result: no" >&5
15633: echo "${ECHO_T}no" >&6
15634: { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15635: echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15636: { (exit 1); exit 1; }; }
1.1 petere 15637: else
1.179 petere 15638: echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15639: echo "${ECHO_T}$TK_CONFIG_SH" >&6
1.1 petere 15640: fi
15641:
15642:
1.44 petere 15643:
1.194 petere 15644: . "$TK_CONFIG_SH"
15645: eval TK_LIBS=\"$TK_LIBS\"
15646: eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15647: eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15648:
1.1 petere 15649: fi
15650:
15651:
1.81 petere 15652: #
15653: # Check for DocBook and tools
15654: #
15655: for ac_prog in onsgmls nsgmls
15656: do
1.179 petere 15657: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 15658: set dummy $ac_prog; ac_word=$2
1.179 petere 15659: echo "$as_me:$LINENO: checking for $ac_word" >&5
15660: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15661: if test "${ac_cv_prog_NSGMLS+set}" = set; then
15662: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15663: else
1.179 petere 15664: if test -n "$NSGMLS"; then
15665: ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15666: else
15667: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15668: for as_dir in $PATH
15669: do
15670: IFS=$as_save_IFS
15671: test -z "$as_dir" && as_dir=.
15672: for ac_exec_ext in '' $ac_executable_extensions; do
15673: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15674: ac_cv_prog_NSGMLS="$ac_prog"
15675: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15676: break 2
15677: fi
15678: done
15679: done
15680:
1.81 petere 15681: fi
15682: fi
1.179 petere 15683: NSGMLS=$ac_cv_prog_NSGMLS
1.81 petere 15684: if test -n "$NSGMLS"; then
1.179 petere 15685: echo "$as_me:$LINENO: result: $NSGMLS" >&5
15686: echo "${ECHO_T}$NSGMLS" >&6
1.81 petere 15687: else
1.179 petere 15688: echo "$as_me:$LINENO: result: no" >&5
15689: echo "${ECHO_T}no" >&6
1.81 petere 15690: fi
15691:
1.179 petere 15692: test -n "$NSGMLS" && break
1.81 petere 15693: done
15694:
1.187 petere 15695: for ac_prog in openjade jade
1.81 petere 15696: do
1.179 petere 15697: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 15698: set dummy $ac_prog; ac_word=$2
1.179 petere 15699: echo "$as_me:$LINENO: checking for $ac_word" >&5
15700: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15701: if test "${ac_cv_prog_JADE+set}" = set; then
15702: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15703: else
15704: if test -n "$JADE"; then
15705: ac_cv_prog_JADE="$JADE" # Let the user override the test.
15706: else
1.179 petere 15707: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708: for as_dir in $PATH
15709: do
15710: IFS=$as_save_IFS
15711: test -z "$as_dir" && as_dir=.
15712: for ac_exec_ext in '' $ac_executable_extensions; do
15713: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714: ac_cv_prog_JADE="$ac_prog"
15715: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15716: break 2
15717: fi
15718: done
15719: done
15720:
1.81 petere 15721: fi
15722: fi
1.179 petere 15723: JADE=$ac_cv_prog_JADE
1.81 petere 15724: if test -n "$JADE"; then
1.179 petere 15725: echo "$as_me:$LINENO: result: $JADE" >&5
15726: echo "${ECHO_T}$JADE" >&6
1.81 petere 15727: else
1.179 petere 15728: echo "$as_me:$LINENO: result: no" >&5
15729: echo "${ECHO_T}no" >&6
1.81 petere 15730: fi
15731:
1.179 petere 15732: test -n "$JADE" && break
1.81 petere 15733: done
15734:
1.179 petere 15735:
15736: echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15737: echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15738: if test "${pgac_cv_check_docbook+set}" = set; then
15739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15740: else
15741: cat >conftest.sgml <<EOF
15742: <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15743: <book>
15744: <title>test</title>
15745: <chapter>
15746: <title>random</title>
15747: <sect1>
15748: <title>testsect</title>
15749: <para>text</para>
15750: </sect1>
15751: </chapter>
15752: </book>
15753: EOF
15754:
15755: ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15756: if test $? -eq 0; then
15757: pgac_cv_check_docbook=yes
15758: else
15759: pgac_cv_check_docbook=no
15760: fi
15761: rm -f conftest.sgml
15762: fi
1.179 petere 15763: echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15764: echo "${ECHO_T}$pgac_cv_check_docbook" >&6
1.81 petere 15765:
15766: have_docbook=$pgac_cv_check_docbook
15767:
15768:
1.187 petere 15769: echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
1.179 petere 15770: echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15771: if test "${pgac_cv_path_stylesheets+set}" = set; then
15772: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15773: else
15774: if test -n "$DOCBOOKSTYLE"; then
15775: pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15776: else
15777: for pgac_prefix in /usr /usr/local /opt; do
15778: for pgac_infix in share lib; do
15779: for pgac_postfix in \
15780: sgml/stylesheets/nwalsh-modular \
15781: sgml/stylesheets/docbook \
1.187 petere 15782: sgml/docbook/dsssl/modular \
1.199 momjian 15783: sgml/docbook/stylesheet/dsssl/modular \
1.187 petere 15784: sgml/docbook/dsssl-stylesheets
1.81 petere 15785: do
15786: pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15787: if test -r "$pgac_candidate/html/docbook.dsl" \
15788: && test -r "$pgac_candidate/print/docbook.dsl"
15789: then
15790: pgac_cv_path_stylesheets=$pgac_candidate
15791: break 3
15792: fi
15793: done
15794: done
15795: done
15796: fi
15797: fi
15798:
15799: DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15800:
15801: if test -n "$DOCBOOKSTYLE"; then
1.179 petere 15802: echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15803: echo "${ECHO_T}$DOCBOOKSTYLE" >&6
1.81 petere 15804: else
1.179 petere 15805: echo "$as_me:$LINENO: result: no" >&5
15806: echo "${ECHO_T}no" >&6
1.81 petere 15807: fi
1.187 petere 15808: if test -n "$DOCBOOKSTYLE"; then
15809: for ac_prog in collateindex.pl
15810: do
15811: # Extract the first word of "$ac_prog", so it can be a program name with args.
15812: set dummy $ac_prog; ac_word=$2
15813: echo "$as_me:$LINENO: checking for $ac_word" >&5
15814: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15815: if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15816: echo $ECHO_N "(cached) $ECHO_C" >&6
15817: else
15818: case $COLLATEINDEX in
15819: [\\/]* | ?:[\\/]*)
15820: ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15821: ;;
15822: *)
15823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824: for as_dir in $DOCBOOKSTYLE/bin $PATH
15825: do
15826: IFS=$as_save_IFS
15827: test -z "$as_dir" && as_dir=.
15828: for ac_exec_ext in '' $ac_executable_extensions; do
15829: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15830: ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15831: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15832: break 2
15833: fi
15834: done
15835: done
15836:
15837: ;;
15838: esac
15839: fi
15840: COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15841:
15842: if test -n "$COLLATEINDEX"; then
15843: echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15844: echo "${ECHO_T}$COLLATEINDEX" >&6
15845: else
15846: echo "$as_me:$LINENO: result: no" >&5
15847: echo "${ECHO_T}no" >&6
15848: fi
15849:
15850: test -n "$COLLATEINDEX" && break
15851: done
15852:
15853: else
15854: for ac_prog in collateindex.pl
15855: do
15856: # Extract the first word of "$ac_prog", so it can be a program name with args.
15857: set dummy $ac_prog; ac_word=$2
15858: echo "$as_me:$LINENO: checking for $ac_word" >&5
15859: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15860: if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15861: echo $ECHO_N "(cached) $ECHO_C" >&6
15862: else
15863: case $COLLATEINDEX in
15864: [\\/]* | ?:[\\/]*)
15865: ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15866: ;;
15867: *)
15868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869: for as_dir in $PATH
15870: do
15871: IFS=$as_save_IFS
15872: test -z "$as_dir" && as_dir=.
15873: for ac_exec_ext in '' $ac_executable_extensions; do
15874: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15875: ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15876: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15877: break 2
15878: fi
15879: done
15880: done
15881:
15882: ;;
15883: esac
15884: fi
15885: COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15886:
15887: if test -n "$COLLATEINDEX"; then
15888: echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15889: echo "${ECHO_T}$COLLATEINDEX" >&6
15890: else
15891: echo "$as_me:$LINENO: result: no" >&5
15892: echo "${ECHO_T}no" >&6
15893: fi
15894:
15895: test -n "$COLLATEINDEX" && break
15896: done
15897:
15898: fi
15899: for ac_prog in sgmlspl
1.81 petere 15900: do
1.179 petere 15901: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.81 petere 15902: set dummy $ac_prog; ac_word=$2
1.179 petere 15903: echo "$as_me:$LINENO: checking for $ac_word" >&5
15904: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15905: if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.81 petere 15907: else
15908: if test -n "$SGMLSPL"; then
15909: ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15910: else
1.179 petere 15911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15912: for as_dir in $PATH
15913: do
15914: IFS=$as_save_IFS
15915: test -z "$as_dir" && as_dir=.
15916: for ac_exec_ext in '' $ac_executable_extensions; do
15917: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15918: ac_cv_prog_SGMLSPL="$ac_prog"
15919: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15920: break 2
15921: fi
15922: done
15923: done
15924:
1.81 petere 15925: fi
15926: fi
1.179 petere 15927: SGMLSPL=$ac_cv_prog_SGMLSPL
1.81 petere 15928: if test -n "$SGMLSPL"; then
1.179 petere 15929: echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15930: echo "${ECHO_T}$SGMLSPL" >&6
1.81 petere 15931: else
1.179 petere 15932: echo "$as_me:$LINENO: result: no" >&5
15933: echo "${ECHO_T}no" >&6
1.81 petere 15934: fi
15935:
1.179 petere 15936: test -n "$SGMLSPL" && break
1.81 petere 15937: done
15938:
15939:
1.1 petere 15940:
1.111 petere 15941: # prepare build tree if outside source tree
1.147 petere 15942: # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15943: # Note 2: /bin/pwd might be better than shell's built-in at getting
15944: # a symlink-free name.
1.179 petere 15945: if test "$no_create" != yes; then
15946: if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
1.147 petere 15947: :
1.179 petere 15948: else
15949: vpath_build=yes
15950:
15951: echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15952: pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15953: $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15954: || { { echo "$as_me:$LINENO: error: failed" >&5
15955: echo "$as_me: error: failed" >&2;}
15956: { (exit 1); exit 1; }; }
15957: echo "$as_me:$LINENO: result: done" >&5
15958: echo "${ECHO_T}done" >&6
15959: fi
1.63 petere 15960: fi
15961:
1.179 petere 15962:
15963: ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15964:
15965:
1.230 momjian 15966: 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}"
1.179 petere 15967:
15968:
15969: ac_config_headers="$ac_config_headers src/include/pg_config.h"
15970:
15971:
15972: cat >confcache <<\_ACEOF
1.44 petere 15973: # This file is a shell script that caches the results of configure
15974: # tests run on this system so they can be shared between configure
1.179 petere 15975: # scripts and configure runs, see configure's option --config-cache.
15976: # It is not useful on other systems. If it contains results you don't
15977: # want to keep, you may remove or edit it.
1.44 petere 15978: #
1.179 petere 15979: # config.status only pays attention to the cache file if you give it
15980: # the --recheck option to rerun configure.
1.44 petere 15981: #
1.179 petere 15982: # `ac_cv_env_foo' variables (set or unset) will be overriden when
15983: # loading this file, other *unset* `ac_cv_foo' will be assigned the
15984: # following values.
15985:
15986: _ACEOF
15987:
1.44 petere 15988: # The following way of writing the cache mishandles newlines in values,
15989: # but we know of no workaround that is simple, portable, and efficient.
15990: # So, don't put newlines in cache variables' values.
15991: # Ultrix sh set writes to stderr and can't be redirected directly,
15992: # and sets the high bit in the cache file unless we assign to the vars.
1.179 petere 15993: {
15994: (set) 2>&1 |
15995: case `(ac_space=' '; set | grep ac_space) 2>&1` in
15996: *ac_space=\ *)
15997: # `set' does not quote correctly, so add quotes (double-quote
15998: # substitution turns \\\\ into \\, and sed turns \\ into \).
15999: sed -n \
16000: "s/'/'\\\\''/g;
16001: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16002: ;;
16003: *)
16004: # `set' quotes correctly as required by POSIX, so do not add quotes.
16005: sed -n \
16006: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16007: ;;
16008: esac;
16009: } |
16010: sed '
16011: t clear
16012: : clear
16013: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16014: t end
16015: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16016: : end' >>confcache
16017: if cmp -s $cache_file confcache; then :; else
1.44 petere 16018: if test -w $cache_file; then
1.179 petere 16019: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16020: cat confcache >$cache_file
1.44 petere 16021: else
16022: echo "not updating unwritable cache $cache_file"
16023: fi
1.1 petere 16024: fi
1.44 petere 16025: rm -f confcache
16026:
16027: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16028: # Let make expand exec_prefix.
16029: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1 petere 16030:
1.179 petere 16031: # VPATH may cause trouble with some makes, so we remove $(srcdir),
16032: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16033: # trailing colons and then remove the whole line if VPATH becomes empty
16034: # (actually we leave an empty line to preserve line numbers).
1.44 petere 16035: if test "x$srcdir" = x.; then
1.179 petere 16036: ac_vpsub='/^[ ]*VPATH[ ]*=/{
16037: s/:*\$(srcdir):*/:/;
16038: s/:*\${srcdir}:*/:/;
16039: s/:*@srcdir@:*/:/;
16040: s/^\([^=]*=[ ]*\):*/\1/;
16041: s/:*$//;
16042: s/^[^=]*=[ ]*$//;
16043: }'
1.1 petere 16044: fi
16045:
1.179 petere 16046: DEFS=-DHAVE_CONFIG_H
1.1 petere 16047:
16048:
1.44 petere 16049: : ${CONFIG_STATUS=./config.status}
1.179 petere 16050: ac_clean_files_save=$ac_clean_files
16051: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16052: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16053: echo "$as_me: creating $CONFIG_STATUS" >&6;}
16054: cat >$CONFIG_STATUS <<_ACEOF
16055: #! $SHELL
16056: # Generated by $as_me.
1.1 petere 16057: # Run this file to recreate the current configuration.
16058: # Compiler output produced by configure, useful for debugging
1.179 petere 16059: # configure, is in config.log if it exists.
16060:
16061: debug=false
16062: SHELL=\${CONFIG_SHELL-$SHELL}
16063: _ACEOF
16064:
16065: cat >>$CONFIG_STATUS <<\_ACEOF
16066:
16067: ## --------------------- ##
16068: ## M4sh Initialization. ##
16069: ## --------------------- ##
16070:
16071: # Be Bourne compatible
16072: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16073: emulate sh
16074: NULLCMD=:
16075: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16076: set -o posix
16077: fi
16078:
16079: # NLS nuisances.
16080: # Support unset when possible.
16081: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16082: as_unset=unset
16083: else
16084: as_unset=false
16085: fi
16086:
16087: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16088: { $as_unset LANG || test "${LANG+set}" != set; } ||
16089: { LANG=C; export LANG; }
16090: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16091: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16092: { LC_ALL=C; export LC_ALL; }
16093: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16094: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16095: { LC_TIME=C; export LC_TIME; }
16096: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16097: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16098: { LC_CTYPE=C; export LC_CTYPE; }
16099: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16100: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16101: { LANGUAGE=C; export LANGUAGE; }
16102: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16103: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16104: { LC_COLLATE=C; export LC_COLLATE; }
16105: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16106: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16107: { LC_NUMERIC=C; export LC_NUMERIC; }
16108: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16109: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16110: { LC_MESSAGES=C; export LC_MESSAGES; }
16111:
16112:
16113: # Name of the executable.
16114: as_me=`(basename "$0") 2>/dev/null ||
16115: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16116: X"$0" : 'X\(//\)$' \| \
16117: X"$0" : 'X\(/\)$' \| \
16118: . : '\(.\)' 2>/dev/null ||
16119: echo X/"$0" |
16120: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16121: /^X\/\(\/\/\)$/{ s//\1/; q; }
16122: /^X\/\(\/\).*/{ s//\1/; q; }
16123: s/.*/./; q'`
16124:
16125: # PATH needs CR, and LINENO needs CR and PATH.
16126: # Avoid depending upon Character Ranges.
16127: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16128: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16129: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16130: as_cr_digits='0123456789'
16131: as_cr_alnum=$as_cr_Letters$as_cr_digits
16132:
16133: # The user is always right.
16134: if test "${PATH_SEPARATOR+set}" != set; then
16135: echo "#! /bin/sh" >conftest.sh
16136: echo "exit 0" >>conftest.sh
16137: chmod +x conftest.sh
16138: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16139: PATH_SEPARATOR=';'
16140: else
16141: PATH_SEPARATOR=:
16142: fi
16143: rm -f conftest.sh
16144: fi
16145:
1.1 petere 16146:
1.179 petere 16147: as_lineno_1=$LINENO
16148: as_lineno_2=$LINENO
16149: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16150: test "x$as_lineno_1" != "x$as_lineno_2" &&
16151: test "x$as_lineno_3" = "x$as_lineno_2" || {
16152: # Find who we are. Look in the path if we contain no path at all
16153: # relative or not.
16154: case $0 in
16155: *[\\/]* ) as_myself=$0 ;;
16156: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157: for as_dir in $PATH
16158: do
16159: IFS=$as_save_IFS
16160: test -z "$as_dir" && as_dir=.
16161: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16162: done
16163:
16164: ;;
16165: esac
16166: # We did not find ourselves, most probably we were run as `sh COMMAND'
16167: # in which case we are not to be found in the path.
16168: if test "x$as_myself" = x; then
16169: as_myself=$0
16170: fi
16171: if test ! -f "$as_myself"; then
16172: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16173: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16174: { (exit 1); exit 1; }; }
16175: fi
16176: case $CONFIG_SHELL in
16177: '')
16178: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16180: do
16181: IFS=$as_save_IFS
16182: test -z "$as_dir" && as_dir=.
16183: for as_base in sh bash ksh sh5; do
16184: case $as_dir in
16185: /*)
16186: if ("$as_dir/$as_base" -c '
16187: as_lineno_1=$LINENO
16188: as_lineno_2=$LINENO
16189: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16190: test "x$as_lineno_1" != "x$as_lineno_2" &&
16191: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16192: CONFIG_SHELL=$as_dir/$as_base
16193: export CONFIG_SHELL
16194: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16195: fi;;
16196: esac
16197: done
16198: done
16199: ;;
16200: esac
16201:
16202: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16203: # uniformly replaced by the line number. The first 'sed' inserts a
16204: # line-number line before each line; the second 'sed' does the real
16205: # work. The second script uses 'N' to pair each line-number line
16206: # with the numbered line, and appends trailing '-' during
16207: # substitution so that $LINENO is not a special case at line end.
16208: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16209: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16210: sed '=' <$as_myself |
16211: sed '
16212: N
16213: s,$,-,
16214: : loop
16215: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16216: t loop
16217: s,-$,,
16218: s,^['$as_cr_digits']*\n,,
16219: ' >$as_me.lineno &&
16220: chmod +x $as_me.lineno ||
16221: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16222: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16223: { (exit 1); exit 1; }; }
16224:
16225: # Don't try to exec as it changes $[0], causing all sort of problems
16226: # (the dirname of $[0] is not the place where we might find the
16227: # original and so on. Autoconf is especially sensible to this).
16228: . ./$as_me.lineno
16229: # Exit status is that of the last command.
16230: exit
16231: }
16232:
16233:
16234: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16235: *c*,-n*) ECHO_N= ECHO_C='
16236: ' ECHO_T=' ' ;;
16237: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16238: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16239: esac
16240:
16241: if expr a : '\(a\)' >/dev/null 2>&1; then
16242: as_expr=expr
16243: else
16244: as_expr=false
16245: fi
16246:
16247: rm -f conf$$ conf$$.exe conf$$.file
16248: echo >conf$$.file
16249: if ln -s conf$$.file conf$$ 2>/dev/null; then
16250: # We could just check for DJGPP; but this test a) works b) is more generic
16251: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16252: if test -f conf$$.exe; then
16253: # Don't use ln at all; we don't have any links
16254: as_ln_s='cp -p'
16255: else
16256: as_ln_s='ln -s'
16257: fi
16258: elif ln conf$$.file conf$$ 2>/dev/null; then
16259: as_ln_s=ln
16260: else
16261: as_ln_s='cp -p'
16262: fi
16263: rm -f conf$$ conf$$.exe conf$$.file
16264:
16265: as_executable_p="test -f"
16266:
16267: # Sed expression to map a string onto a valid CPP name.
16268: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16269:
16270: # Sed expression to map a string onto a valid variable name.
16271: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16272:
16273:
16274: # IFS
16275: # We need space, tab and new line, in precisely that order.
16276: as_nl='
16277: '
16278: IFS=" $as_nl"
16279:
16280: # CDPATH.
16281: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16282:
16283: exec 6>&1
16284:
16285: # Open the log real soon, to keep \$[0] and so on meaningful, and to
16286: # report actual input values of CONFIG_FILES etc. instead of their
16287: # values after options handling. Logging --version etc. is OK.
16288: exec 5>>config.log
16289: {
16290: echo
16291: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16292: ## Running $as_me. ##
16293: _ASBOX
16294: } >&5
16295: cat >&5 <<_CSEOF
16296:
1.227 tgl 16297: This file was extended by PostgreSQL $as_me 7.4devel, which was
1.179 petere 16298: generated by GNU Autoconf 2.53. Invocation command line was
16299:
16300: CONFIG_FILES = $CONFIG_FILES
16301: CONFIG_HEADERS = $CONFIG_HEADERS
16302: CONFIG_LINKS = $CONFIG_LINKS
16303: CONFIG_COMMANDS = $CONFIG_COMMANDS
16304: $ $0 $@
16305:
16306: _CSEOF
16307: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16308: echo >&5
16309: _ACEOF
16310:
16311: # Files that config.status was made for.
16312: if test -n "$ac_config_files"; then
16313: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16314: fi
16315:
16316: if test -n "$ac_config_headers"; then
16317: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16318: fi
16319:
16320: if test -n "$ac_config_links"; then
16321: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16322: fi
16323:
16324: if test -n "$ac_config_commands"; then
16325: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16326: fi
16327:
16328: cat >>$CONFIG_STATUS <<\_ACEOF
16329:
16330: ac_cs_usage="\
16331: \`$as_me' instantiates files from templates according to the
16332: current configuration.
16333:
16334: Usage: $0 [OPTIONS] [FILE]...
16335:
16336: -h, --help print this help, then exit
16337: -V, --version print version number, then exit
16338: -d, --debug don't remove temporary files
16339: --recheck update $as_me by reconfiguring in the same conditions
16340: --file=FILE[:TEMPLATE]
16341: instantiate the configuration file FILE
16342: --header=FILE[:TEMPLATE]
16343: instantiate the configuration header FILE
16344:
16345: Configuration files:
16346: $config_files
16347:
16348: Configuration headers:
16349: $config_headers
16350:
16351: Configuration links:
16352: $config_links
16353:
16354: Report bugs to <[email protected]>."
16355: _ACEOF
16356:
16357: cat >>$CONFIG_STATUS <<_ACEOF
16358: ac_cs_version="\\
1.227 tgl 16359: PostgreSQL config.status 7.4devel
1.179 petere 16360: configured by $0, generated by GNU Autoconf 2.53,
16361: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16362:
16363: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16364: Free Software Foundation, Inc.
16365: This config.status script is free software; the Free Software Foundation
16366: gives unlimited permission to copy, distribute and modify it."
16367: srcdir=$srcdir
16368: _ACEOF
16369:
16370: cat >>$CONFIG_STATUS <<\_ACEOF
16371: # If no file are specified by the user, then we need to provide default
16372: # value. By we need to know if files were specified by the user.
16373: ac_need_defaults=:
16374: while test $# != 0
1.1 petere 16375: do
1.179 petere 16376: case $1 in
16377: --*=*)
16378: ac_option=`expr "x$1" : 'x\([^=]*\)='`
16379: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16380: shift
16381: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16382: shift
16383: ;;
16384: -*);;
16385: *) # This is not an option, so the user has probably given explicit
16386: # arguments.
16387: ac_need_defaults=false;;
16388: esac
16389:
16390: case $1 in
16391: # Handling of the options.
16392: _ACEOF
16393: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 16394: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.179 petere 16395: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16396: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16397: _ACEOF
16398: cat >>$CONFIG_STATUS <<\_ACEOF
16399: --version | --vers* | -V )
16400: echo "$ac_cs_version"; exit 0 ;;
16401: --he | --h)
16402: # Conflict between --help and --header
16403: { { echo "$as_me:$LINENO: error: ambiguous option: $1
16404: Try \`$0 --help' for more information." >&5
16405: echo "$as_me: error: ambiguous option: $1
16406: Try \`$0 --help' for more information." >&2;}
16407: { (exit 1); exit 1; }; };;
16408: --help | --hel | -h )
16409: echo "$ac_cs_usage"; exit 0 ;;
16410: --debug | --d* | -d )
16411: debug=: ;;
16412: --file | --fil | --fi | --f )
16413: shift
16414: CONFIG_FILES="$CONFIG_FILES $1"
16415: ac_need_defaults=false;;
16416: --header | --heade | --head | --hea )
16417: shift
16418: CONFIG_HEADERS="$CONFIG_HEADERS $1"
16419: ac_need_defaults=false;;
16420:
16421: # This is an error.
16422: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16423: Try \`$0 --help' for more information." >&5
16424: echo "$as_me: error: unrecognized option: $1
16425: Try \`$0 --help' for more information." >&2;}
16426: { (exit 1); exit 1; }; } ;;
16427:
16428: *) ac_config_targets="$ac_config_targets $1" ;;
16429:
16430: esac
16431: shift
16432: done
16433:
16434: _ACEOF
16435:
16436:
16437:
16438:
16439:
16440: cat >>$CONFIG_STATUS <<\_ACEOF
16441: for ac_config_target in $ac_config_targets
16442: do
16443: case "$ac_config_target" in
16444: # Handling of arguments.
16445: "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16446: "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16447: "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16448: "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
1.193 tgl 16449: "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16450: "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
1.179 petere 16451: "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16452: "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16453: "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16454: "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16455: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16456: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16457: { (exit 1); exit 1; }; };;
1.1 petere 16458: esac
16459: done
16460:
1.179 petere 16461: # If the user did not use the arguments to specify the items to instantiate,
16462: # then the envvar interface is used. Set only those that are not.
16463: # We use the long form for the default assignment because of an extremely
16464: # bizarre bug on SunOS 4.1.3.
16465: if $ac_need_defaults; then
16466: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16467: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16468: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16469: fi
16470:
16471: # Create a temporary directory, and hook for its removal unless debugging.
16472: $debug ||
16473: {
16474: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16475: trap '{ (exit 1); exit 1; }' 1 2 13 15
16476: }
16477:
16478: # Create a (secure) tmp directory for tmp files.
16479: : ${TMPDIR=/tmp}
16480: {
16481: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16482: test -n "$tmp" && test -d "$tmp"
16483: } ||
16484: {
16485: tmp=$TMPDIR/cs$$-$RANDOM
16486: (umask 077 && mkdir $tmp)
16487: } ||
16488: {
16489: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16490: { (exit 1); exit 1; }
16491: }
16492:
16493: _ACEOF
16494:
16495: cat >>$CONFIG_STATUS <<_ACEOF
1.1 petere 16496:
1.179 petere 16497: #
16498: # CONFIG_FILES section.
16499: #
1.1 petere 16500:
1.179 petere 16501: # No need to generate the scripts if there are no CONFIG_FILES.
16502: # This happens for instance when ./config.status config.h
16503: if test -n "\$CONFIG_FILES"; then
16504: # Protect against being on the right side of a sed subst in config.status.
16505: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16506: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16507: s,@SHELL@,$SHELL,;t t
16508: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16509: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16510: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16511: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16512: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16513: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16514: s,@exec_prefix@,$exec_prefix,;t t
16515: s,@prefix@,$prefix,;t t
16516: s,@program_transform_name@,$program_transform_name,;t t
16517: s,@bindir@,$bindir,;t t
16518: s,@sbindir@,$sbindir,;t t
16519: s,@libexecdir@,$libexecdir,;t t
16520: s,@datadir@,$datadir,;t t
16521: s,@sysconfdir@,$sysconfdir,;t t
16522: s,@sharedstatedir@,$sharedstatedir,;t t
16523: s,@localstatedir@,$localstatedir,;t t
16524: s,@libdir@,$libdir,;t t
16525: s,@includedir@,$includedir,;t t
16526: s,@oldincludedir@,$oldincludedir,;t t
16527: s,@infodir@,$infodir,;t t
16528: s,@mandir@,$mandir,;t t
16529: s,@build_alias@,$build_alias,;t t
16530: s,@host_alias@,$host_alias,;t t
16531: s,@target_alias@,$target_alias,;t t
16532: s,@DEFS@,$DEFS,;t t
16533: s,@ECHO_C@,$ECHO_C,;t t
16534: s,@ECHO_N@,$ECHO_N,;t t
16535: s,@ECHO_T@,$ECHO_T,;t t
16536: s,@LIBS@,$LIBS,;t t
16537: s,@docdir@,$docdir,;t t
16538: s,@configure_args@,$configure_args,;t t
16539: s,@build@,$build,;t t
16540: s,@build_cpu@,$build_cpu,;t t
16541: s,@build_vendor@,$build_vendor,;t t
16542: s,@build_os@,$build_os,;t t
16543: s,@host@,$host,;t t
16544: s,@host_cpu@,$host_cpu,;t t
16545: s,@host_vendor@,$host_vendor,;t t
16546: s,@host_os@,$host_os,;t t
16547: s,@PORTNAME@,$PORTNAME,;t t
16548: s,@TAS@,$TAS,;t t
16549: s,@enable_nls@,$enable_nls,;t t
16550: s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16551: s,@default_port@,$default_port,;t t
16552: s,@enable_shared@,$enable_shared,;t t
16553: s,@enable_rpath@,$enable_rpath,;t t
16554: s,@enable_debug@,$enable_debug,;t t
16555: s,@CC@,$CC,;t t
16556: s,@CFLAGS@,$CFLAGS,;t t
16557: s,@LDFLAGS@,$LDFLAGS,;t t
16558: s,@CPPFLAGS@,$CPPFLAGS,;t t
16559: s,@ac_ct_CC@,$ac_ct_CC,;t t
16560: s,@EXEEXT@,$EXEEXT,;t t
16561: s,@OBJEXT@,$OBJEXT,;t t
16562: s,@CPP@,$CPP,;t t
16563: s,@GCC@,$GCC,;t t
16564: s,@autodepend@,$autodepend,;t t
16565: s,@INCLUDES@,$INCLUDES,;t t
16566: s,@with_tcl@,$with_tcl,;t t
16567: s,@with_tk@,$with_tk,;t t
1.208 momjian 16568: s,@with_perl@,$with_perl,;t t
1.179 petere 16569: s,@with_python@,$with_python,;t t
16570: s,@ANT@,$ANT,;t t
16571: s,@with_java@,$with_java,;t t
16572: s,@with_krb4@,$with_krb4,;t t
16573: s,@with_krb5@,$with_krb5,;t t
16574: s,@krb_srvtab@,$krb_srvtab,;t t
16575: s,@with_pam@,$with_pam,;t t
16576: s,@with_openssl@,$with_openssl,;t t
16577: s,@ELF_SYS@,$ELF_SYS,;t t
16578: s,@AWK@,$AWK,;t t
16579: s,@FLEX@,$FLEX,;t t
16580: s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16581: s,@LN_S@,$LN_S,;t t
16582: s,@LD@,$LD,;t t
16583: s,@with_gnu_ld@,$with_gnu_ld,;t t
16584: s,@ld_R_works@,$ld_R_works,;t t
16585: s,@RANLIB@,$RANLIB,;t t
16586: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16587: s,@LORDER@,$LORDER,;t t
16588: s,@TAR@,$TAR,;t t
1.185 petere 16589: s,@STRIP@,$STRIP,;t t
16590: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16591: s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16592: s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
1.179 petere 16593: s,@YACC@,$YACC,;t t
16594: s,@YFLAGS@,$YFLAGS,;t t
1.208 momjian 16595: s,@PERL@,$PERL,;t t
16596: s,@perl_archlibexp@,$perl_archlibexp,;t t
16597: s,@perl_privlibexp@,$perl_privlibexp,;t t
16598: s,@perl_useshrplib@,$perl_useshrplib,;t t
16599: s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
1.179 petere 16600: s,@PYTHON@,$PYTHON,;t t
16601: s,@python_version@,$python_version,;t t
16602: s,@python_prefix@,$python_prefix,;t t
16603: s,@python_execprefix@,$python_execprefix,;t t
16604: s,@python_configdir@,$python_configdir,;t t
16605: s,@python_moduledir@,$python_moduledir,;t t
16606: s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16607: s,@python_includespec@,$python_includespec,;t t
16608: s,@python_libspec@,$python_libspec,;t t
1.234 momjian 16609: s,@LIBOBJS@,$LIBOBJS,;t t
1.233 momjian 16610: s,@HAVE_IPV6@,$HAVE_IPV6,;t t
1.179 petere 16611: s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16612: s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
1.181 petere 16613: s,@MSGFMT@,$MSGFMT,;t t
16614: s,@MSGMERGE@,$MSGMERGE,;t t
16615: s,@XGETTEXT@,$XGETTEXT,;t t
16616: s,@localedir@,$localedir,;t t
1.179 petere 16617: s,@TCLSH@,$TCLSH,;t t
16618: s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
1.194 petere 16619: s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16620: s,@TCL_LIBS@,$TCL_LIBS,;t t
16621: s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16622: s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16623: s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
1.232 tgl 16624: s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
1.179 petere 16625: s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
1.194 petere 16626: s,@TK_LIBS@,$TK_LIBS,;t t
16627: s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16628: s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
1.179 petere 16629: s,@NSGMLS@,$NSGMLS,;t t
16630: s,@JADE@,$JADE,;t t
16631: s,@have_docbook@,$have_docbook,;t t
16632: s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
1.187 petere 16633: s,@COLLATEINDEX@,$COLLATEINDEX,;t t
1.179 petere 16634: s,@SGMLSPL@,$SGMLSPL,;t t
16635: s,@vpath_build@,$vpath_build,;t t
1.1 petere 16636: CEOF
16637:
1.179 petere 16638: _ACEOF
1.1 petere 16639:
1.179 petere 16640: cat >>$CONFIG_STATUS <<\_ACEOF
16641: # Split the substitutions into bite-sized pieces for seds with
16642: # small command number limits, like on Digital OSF/1 and HP-UX.
16643: ac_max_sed_lines=48
16644: ac_sed_frag=1 # Number of current file.
16645: ac_beg=1 # First line for current file.
16646: ac_end=$ac_max_sed_lines # Line after last line for current file.
16647: ac_more_lines=:
16648: ac_sed_cmds=
16649: while $ac_more_lines; do
16650: if test $ac_beg -gt 1; then
16651: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16652: else
16653: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16654: fi
16655: if test ! -s $tmp/subs.frag; then
16656: ac_more_lines=false
1.1 petere 16657: else
1.179 petere 16658: # The purpose of the label and of the branching condition is to
16659: # speed up the sed processing (if there are no `@' at all, there
16660: # is no need to browse any of the substitutions).
16661: # These are the two extra sed commands mentioned above.
16662: (echo ':t
16663: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16664: if test -z "$ac_sed_cmds"; then
16665: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16666: else
16667: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16668: fi
16669: ac_sed_frag=`expr $ac_sed_frag + 1`
16670: ac_beg=$ac_end
16671: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 petere 16672: fi
1.179 petere 16673: done
16674: if test -z "$ac_sed_cmds"; then
16675: ac_sed_cmds=cat
1.1 petere 16676: fi
1.179 petere 16677: fi # test -n "$CONFIG_FILES"
16678:
16679: _ACEOF
16680: cat >>$CONFIG_STATUS <<\_ACEOF
16681: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16682: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16683: case $ac_file in
16684: - | *:- | *:-:* ) # input from stdin
16685: cat >$tmp/stdin
16686: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16687: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16688: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16689: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16690: * ) ac_file_in=$ac_file.in ;;
16691: esac
16692:
16693: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16694: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16695: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16696: X"$ac_file" : 'X\(//\)[^/]' \| \
16697: X"$ac_file" : 'X\(//\)$' \| \
16698: X"$ac_file" : 'X\(/\)' \| \
16699: . : '\(.\)' 2>/dev/null ||
16700: echo X"$ac_file" |
16701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16702: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16703: /^X\(\/\/\)$/{ s//\1/; q; }
16704: /^X\(\/\).*/{ s//\1/; q; }
16705: s/.*/./; q'`
16706: { case "$ac_dir" in
16707: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16708: *) as_incr_dir=.;;
16709: esac
16710: as_dummy="$ac_dir"
16711: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16712: case $as_mkdir_dir in
16713: # Skip DOS drivespec
16714: ?:) as_incr_dir=$as_mkdir_dir ;;
16715: *)
16716: as_incr_dir=$as_incr_dir/$as_mkdir_dir
16717: test -d "$as_incr_dir" ||
16718: mkdir "$as_incr_dir" ||
16719: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16720: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16721: { (exit 1); exit 1; }; }
16722: ;;
16723: esac
16724: done; }
16725:
16726: ac_builddir=.
16727:
16728: if test "$ac_dir" != .; then
16729: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16730: # A "../" for each directory in $ac_dir_suffix.
16731: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16732: else
16733: ac_dir_suffix= ac_top_builddir=
1.1 petere 16734: fi
16735:
1.179 petere 16736: case $srcdir in
16737: .) # No --srcdir option. We are building in place.
16738: ac_srcdir=.
16739: if test -z "$ac_top_builddir"; then
16740: ac_top_srcdir=.
16741: else
16742: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16743: fi ;;
16744: [\\/]* | ?:[\\/]* ) # Absolute path.
16745: ac_srcdir=$srcdir$ac_dir_suffix;
16746: ac_top_srcdir=$srcdir ;;
16747: *) # Relative path.
16748: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16749: ac_top_srcdir=$ac_top_builddir$srcdir ;;
16750: esac
16751: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16752: # absolute.
16753: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16754: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16755: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16756: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16757:
16758:
16759:
16760: if test x"$ac_file" != x-; then
16761: { echo "$as_me:$LINENO: creating $ac_file" >&5
16762: echo "$as_me: creating $ac_file" >&6;}
16763: rm -f "$ac_file"
16764: fi
16765: # Let's still pretend it is `configure' which instantiates (i.e., don't
16766: # use $as_me), people would be surprised to read:
16767: # /* config.h. Generated by config.status. */
16768: if test x"$ac_file" = x-; then
16769: configure_input=
16770: else
16771: configure_input="$ac_file. "
16772: fi
16773: configure_input=$configure_input"Generated from `echo $ac_file_in |
16774: sed 's,.*/,,'` by configure."
1.1 petere 16775:
1.179 petere 16776: # First look for the input files in the build tree, otherwise in the
16777: # src tree.
16778: ac_file_inputs=`IFS=:
16779: for f in $ac_file_in; do
16780: case $f in
16781: -) echo $tmp/stdin ;;
16782: [\\/$]*)
16783: # Absolute (can't be DOS-style, as IFS=:)
16784: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16785: echo "$as_me: error: cannot find input file: $f" >&2;}
16786: { (exit 1); exit 1; }; }
16787: echo $f;;
16788: *) # Relative
16789: if test -f "$f"; then
16790: # Build tree
16791: echo $f
16792: elif test -f "$srcdir/$f"; then
16793: # Source tree
16794: echo $srcdir/$f
16795: else
16796: # /dev/null tree
16797: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16798: echo "$as_me: error: cannot find input file: $f" >&2;}
16799: { (exit 1); exit 1; }; }
16800: fi;;
16801: esac
16802: done` || { (exit 1); exit 1; }
16803: _ACEOF
16804: cat >>$CONFIG_STATUS <<_ACEOF
16805: sed "$ac_vpsub
16806: $extrasub
16807: _ACEOF
16808: cat >>$CONFIG_STATUS <<\_ACEOF
16809: :t
16810: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16811: s,@configure_input@,$configure_input,;t t
16812: s,@srcdir@,$ac_srcdir,;t t
16813: s,@abs_srcdir@,$ac_abs_srcdir,;t t
16814: s,@top_srcdir@,$ac_top_srcdir,;t t
16815: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16816: s,@builddir@,$ac_builddir,;t t
16817: s,@abs_builddir@,$ac_abs_builddir,;t t
16818: s,@top_builddir@,$ac_top_builddir,;t t
16819: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16820: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16821: rm -f $tmp/stdin
16822: if test x"$ac_file" != x-; then
16823: mv $tmp/out $ac_file
16824: else
16825: cat $tmp/out
16826: rm -f $tmp/out
16827: fi
1.1 petere 16828:
1.179 petere 16829: done
16830: _ACEOF
16831: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 16832:
1.179 petere 16833: #
16834: # CONFIG_HEADER section.
16835: #
1.1 petere 16836:
16837: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16838: # NAME is the cpp macro being defined and VALUE is the value it is being given.
16839: #
16840: # ac_d sets the value in "#define NAME VALUE" lines.
1.179 petere 16841: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16842: ac_dB='[ ].*$,\1#\2'
16843: ac_dC=' '
16844: ac_dD=',;t'
16845: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16846: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16847: ac_uB='$,\1#\2define\3'
1.1 petere 16848: ac_uC=' '
1.179 petere 16849: ac_uD=',;t'
1.1 petere 16850:
1.179 petere 16851: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 petere 16852: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.179 petere 16853: case $ac_file in
16854: - | *:- | *:-:* ) # input from stdin
16855: cat >$tmp/stdin
16856: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16857: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16858: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16859: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16860: * ) ac_file_in=$ac_file.in ;;
1.1 petere 16861: esac
16862:
1.179 petere 16863: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16864: echo "$as_me: creating $ac_file" >&6;}
1.1 petere 16865:
1.179 petere 16866: # First look for the input files in the build tree, otherwise in the
16867: # src tree.
16868: ac_file_inputs=`IFS=:
16869: for f in $ac_file_in; do
16870: case $f in
16871: -) echo $tmp/stdin ;;
16872: [\\/$]*)
16873: # Absolute (can't be DOS-style, as IFS=:)
16874: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16875: echo "$as_me: error: cannot find input file: $f" >&2;}
16876: { (exit 1); exit 1; }; }
16877: echo $f;;
16878: *) # Relative
16879: if test -f "$f"; then
16880: # Build tree
16881: echo $f
16882: elif test -f "$srcdir/$f"; then
16883: # Source tree
16884: echo $srcdir/$f
16885: else
16886: # /dev/null tree
16887: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16888: echo "$as_me: error: cannot find input file: $f" >&2;}
16889: { (exit 1); exit 1; }; }
16890: fi;;
16891: esac
16892: done` || { (exit 1); exit 1; }
16893: # Remove the trailing spaces.
16894: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16895:
16896: _ACEOF
16897:
16898: # Transform confdefs.h into two sed scripts, `conftest.defines' and
16899: # `conftest.undefs', that substitutes the proper values into
16900: # config.h.in to produce config.h. The first handles `#define'
16901: # templates, and the second `#undef' templates.
16902: # And first: Protect against being on the right side of a sed subst in
16903: # config.status. Protect against being in an unquoted here document
16904: # in config.status.
16905: rm -f conftest.defines conftest.undefs
16906: # Using a here document instead of a string reduces the quoting nightmare.
16907: # Putting comments in sed scripts is not portable.
16908: #
16909: # `end' is used to avoid that the second main sed command (meant for
16910: # 0-ary CPP macros) applies to n-ary macro definitions.
16911: # See the Autoconf documentation for `clear'.
16912: cat >confdef2sed.sed <<\_ACEOF
16913: s/[\\&,]/\\&/g
16914: s,[\\$`],\\&,g
16915: t clear
16916: : clear
16917: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16918: t end
16919: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16920: : end
16921: _ACEOF
16922: # If some macros were called several times there might be several times
16923: # the same #defines, which is useless. Nevertheless, we may not want to
16924: # sort them, since we want the *last* AC-DEFINE to be honored.
16925: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16926: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16927: rm -f confdef2sed.sed
1.1 petere 16928:
16929: # This sed command replaces #undef with comments. This is necessary, for
16930: # example, in the case of _POSIX_SOURCE, which is predefined and required
16931: # on some systems where configure will not decide to define it.
1.179 petere 16932: cat >>conftest.undefs <<\_ACEOF
16933: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16934: _ACEOF
16935:
16936: # Break up conftest.defines because some shells have a limit on the size
16937: # of here documents, and old seds have small limits too (100 cmds).
16938: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16939: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16940: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16941: echo ' :' >>$CONFIG_STATUS
16942: rm -f conftest.tail
16943: while grep . conftest.defines >/dev/null
16944: do
16945: # Write a limited-size here document to $tmp/defines.sed.
16946: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16947: # Speed up: don't consider the non `#define' lines.
16948: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16949: # Work around the forget-to-reset-the-flag bug.
16950: echo 't clr' >>$CONFIG_STATUS
16951: echo ': clr' >>$CONFIG_STATUS
16952: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16953: echo 'CEOF
16954: sed -f $tmp/defines.sed $tmp/in >$tmp/out
16955: rm -f $tmp/in
16956: mv $tmp/out $tmp/in
16957: ' >>$CONFIG_STATUS
16958: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16959: rm -f conftest.defines
16960: mv conftest.tail conftest.defines
16961: done
16962: rm -f conftest.defines
16963: echo ' fi # egrep' >>$CONFIG_STATUS
16964: echo >>$CONFIG_STATUS
16965:
16966: # Break up conftest.undefs because some shells have a limit on the size
16967: # of here documents, and old seds have small limits too (100 cmds).
16968: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 petere 16969: rm -f conftest.tail
1.179 petere 16970: while grep . conftest.undefs >/dev/null
1.1 petere 16971: do
1.179 petere 16972: # Write a limited-size here document to $tmp/undefs.sed.
16973: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16974: # Speed up: don't consider the non `#undef'
16975: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16976: # Work around the forget-to-reset-the-flag bug.
16977: echo 't clr' >>$CONFIG_STATUS
16978: echo ': clr' >>$CONFIG_STATUS
16979: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 petere 16980: echo 'CEOF
1.179 petere 16981: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16982: rm -f $tmp/in
16983: mv $tmp/out $tmp/in
16984: ' >>$CONFIG_STATUS
16985: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16986: rm -f conftest.undefs
16987: mv conftest.tail conftest.undefs
16988: done
16989: rm -f conftest.undefs
16990:
16991: cat >>$CONFIG_STATUS <<\_ACEOF
16992: # Let's still pretend it is `configure' which instantiates (i.e., don't
16993: # use $as_me), people would be surprised to read:
16994: # /* config.h. Generated by config.status. */
16995: if test x"$ac_file" = x-; then
16996: echo "/* Generated by configure. */" >$tmp/config.h
16997: else
16998: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16999: fi
17000: cat $tmp/in >>$tmp/config.h
17001: rm -f $tmp/in
17002: if test x"$ac_file" != x-; then
17003: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17004: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17005: echo "$as_me: $ac_file is unchanged" >&6;}
17006: else
17007: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17008: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17009: X"$ac_file" : 'X\(//\)[^/]' \| \
17010: X"$ac_file" : 'X\(//\)$' \| \
17011: X"$ac_file" : 'X\(/\)' \| \
17012: . : '\(.\)' 2>/dev/null ||
17013: echo X"$ac_file" |
17014: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17015: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17016: /^X\(\/\/\)$/{ s//\1/; q; }
17017: /^X\(\/\).*/{ s//\1/; q; }
17018: s/.*/./; q'`
17019: { case "$ac_dir" in
17020: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17021: *) as_incr_dir=.;;
17022: esac
17023: as_dummy="$ac_dir"
17024: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17025: case $as_mkdir_dir in
17026: # Skip DOS drivespec
17027: ?:) as_incr_dir=$as_mkdir_dir ;;
17028: *)
17029: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17030: test -d "$as_incr_dir" ||
17031: mkdir "$as_incr_dir" ||
17032: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17033: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17034: { (exit 1); exit 1; }; }
17035: ;;
17036: esac
17037: done; }
17038:
17039: rm -f $ac_file
17040: mv $tmp/config.h $ac_file
1.1 petere 17041: fi
1.179 petere 17042: else
17043: cat $tmp/config.h
17044: rm -f $tmp/config.h
1.1 petere 17045: fi
1.179 petere 17046: # Run the commands associated with the file.
17047: case $ac_file in
17048: src/include/pg_config.h )
17049: # Update timestamp for pg_config.h (see Makefile.global)
17050: echo >src/include/stamp-h
17051: ;;
17052: esac
17053: done
17054: _ACEOF
17055: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17056:
1.179 petere 17057: #
17058: # CONFIG_LINKS section.
17059: #
1.1 petere 17060:
1.179 petere 17061: for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17062: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17063: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.1 petere 17064:
1.179 petere 17065: { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17066: echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1.1 petere 17067:
17068: if test ! -r $srcdir/$ac_source; then
1.179 petere 17069: { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17070: echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17071: { (exit 1); exit 1; }; }
1.1 petere 17072: fi
17073: rm -f $ac_dest
17074:
17075: # Make relative symlinks.
1.179 petere 17076: ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17077: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17078: X"$ac_dest" : 'X\(//\)[^/]' \| \
17079: X"$ac_dest" : 'X\(//\)$' \| \
17080: X"$ac_dest" : 'X\(/\)' \| \
17081: . : '\(.\)' 2>/dev/null ||
17082: echo X"$ac_dest" |
17083: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17084: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17085: /^X\(\/\/\)$/{ s//\1/; q; }
17086: /^X\(\/\).*/{ s//\1/; q; }
17087: s/.*/./; q'`
17088: { case "$ac_dest_dir" in
17089: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17090: *) as_incr_dir=.;;
17091: esac
17092: as_dummy="$ac_dest_dir"
17093: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17094: case $as_mkdir_dir in
17095: # Skip DOS drivespec
17096: ?:) as_incr_dir=$as_mkdir_dir ;;
17097: *)
17098: as_incr_dir=$as_incr_dir/$as_mkdir_dir
17099: test -d "$as_incr_dir" ||
17100: mkdir "$as_incr_dir" ||
17101: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17102: echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17103: { (exit 1); exit 1; }; }
17104: ;;
17105: esac
17106: done; }
17107:
17108: ac_builddir=.
17109:
17110: if test "$ac_dest_dir" != .; then
17111: ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17112: # A "../" for each directory in $ac_dir_suffix.
17113: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17114: else
17115: ac_dir_suffix= ac_top_builddir=
17116: fi
17117:
17118: case $srcdir in
17119: .) # No --srcdir option. We are building in place.
17120: ac_srcdir=.
17121: if test -z "$ac_top_builddir"; then
17122: ac_top_srcdir=.
17123: else
17124: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17125: fi ;;
17126: [\\/]* | ?:[\\/]* ) # Absolute path.
17127: ac_srcdir=$srcdir$ac_dir_suffix;
17128: ac_top_srcdir=$srcdir ;;
17129: *) # Relative path.
17130: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17131: ac_top_srcdir=$ac_top_builddir$srcdir ;;
17132: esac
17133: # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17134: # absolute.
17135: ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17136: ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17137: ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17138: ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17139:
1.1 petere 17140:
1.179 petere 17141: case $srcdir in
17142: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17143: *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1.1 petere 17144: esac
17145:
17146: # Make a symlink if possible; otherwise try a hard link.
1.179 petere 17147: ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17148: ln $srcdir/$ac_source $ac_dest ||
17149: { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17150: echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17151: { (exit 1); exit 1; }; }
1.1 petere 17152: done
1.179 petere 17153: _ACEOF
17154:
17155: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 petere 17156:
1.179 petere 17157: { (exit 0); exit 0; }
17158: _ACEOF
17159: chmod +x $CONFIG_STATUS
17160: ac_clean_files=$ac_clean_files_save
1.91 tgl 17161:
1.1 petere 17162:
1.179 petere 17163: # configure is writing to config.log, and then calls config.status.
17164: # config.status does its own redirection, appending to config.log.
17165: # Unfortunately, on DOS this fails, as config.log is still kept open
17166: # by configure, so config.status won't be able to write to it; its
17167: # output is simply discarded. So we exec the FD to /dev/null,
17168: # effectively closing config.log, so it can be properly (re)opened and
17169: # appended to by config.status. When coming back to configure, we
17170: # need to make the FD available again.
17171: if test "$no_create" != yes; then
17172: ac_cs_success=:
17173: exec 5>/dev/null
17174: $SHELL $CONFIG_STATUS || ac_cs_success=false
17175: exec 5>>config.log
17176: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17177: # would make configure fail if this is the last instruction.
17178: $ac_cs_success || { (exit 1); exit 1; }
17179: fi
1.1 petere 17180:
PostgreSQL CVSweb <[email protected]>