Annotation of pkgsrc/pkgtools/pkg_install/files/configure, Revision 1.17
1.1 schmonz 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.17 ! dmcmahil 3: # Generated by GNU Autoconf 2.59 for pkg_install 20050607.
1.3 jlam 4: #
5: # Report bugs to <grant@NetBSD.org>.
1.1 schmonz 6: #
1.9 grant 7: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 schmonz 8: # This configure script is free software; the Free Software Foundation
9: # gives unlimited permission to copy, distribute and modify it.
1.3 jlam 10: ## --------------------- ##
11: ## M4sh Initialization. ##
12: ## --------------------- ##
13:
14: # Be Bourne compatible
15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
21: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22: set -o posix
23: fi
1.9 grant 24: DUALCASE=1; export DUALCASE # for MKS sh
1.3 jlam 25:
26: # Support unset when possible.
1.9 grant 27: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.3 jlam 28: as_unset=unset
29: else
30: as_unset=false
31: fi
32:
33:
34: # Work around bugs in pre-3.0 UWIN ksh.
35: $as_unset ENV MAIL MAILPATH
36: PS1='$ '
37: PS2='> '
38: PS4='+ '
39:
40: # NLS nuisances.
41: for as_var in \
42: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44: LC_TELEPHONE LC_TIME
45: do
1.9 grant 46: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.3 jlam 47: eval $as_var=C; export $as_var
48: else
49: $as_unset $as_var
50: fi
51: done
52:
53: # Required to use basename.
54: if expr a : '\(a\)' >/dev/null 2>&1; then
55: as_expr=expr
56: else
57: as_expr=false
58: fi
59:
60: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61: as_basename=basename
62: else
63: as_basename=false
64: fi
65:
66:
67: # Name of the executable.
68: as_me=`$as_basename "$0" ||
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:
80: # PATH needs CR, and LINENO needs CR and PATH.
81: # Avoid depending upon Character Ranges.
82: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85: as_cr_digits='0123456789'
86: as_cr_alnum=$as_cr_Letters$as_cr_digits
87:
88: # The user is always right.
89: if test "${PATH_SEPARATOR+set}" != set; then
90: echo "#! /bin/sh" >conf$$.sh
91: echo "exit 0" >>conf$$.sh
92: chmod +x conf$$.sh
93: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94: PATH_SEPARATOR=';'
95: else
96: PATH_SEPARATOR=:
97: fi
98: rm -f conf$$.sh
99: fi
100:
101:
102: as_lineno_1=$LINENO
103: as_lineno_2=$LINENO
104: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105: test "x$as_lineno_1" != "x$as_lineno_2" &&
106: test "x$as_lineno_3" = "x$as_lineno_2" || {
107: # Find who we are. Look in the path if we contain no path at all
108: # relative or not.
109: case $0 in
110: *[\\/]* ) as_myself=$0 ;;
111: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112: for as_dir in $PATH
113: do
114: IFS=$as_save_IFS
115: test -z "$as_dir" && as_dir=.
116: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117: done
118:
119: ;;
120: esac
121: # We did not find ourselves, most probably we were run as `sh COMMAND'
122: # in which case we are not to be found in the path.
123: if test "x$as_myself" = x; then
124: as_myself=$0
125: fi
126: if test ! -f "$as_myself"; then
127: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128: { (exit 1); exit 1; }; }
129: fi
130: case $CONFIG_SHELL in
131: '')
132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134: do
135: IFS=$as_save_IFS
136: test -z "$as_dir" && as_dir=.
137: for as_base in sh bash ksh sh5; do
138: case $as_dir in
139: /*)
140: if ("$as_dir/$as_base" -c '
141: as_lineno_1=$LINENO
142: as_lineno_2=$LINENO
143: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144: test "x$as_lineno_1" != "x$as_lineno_2" &&
145: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148: CONFIG_SHELL=$as_dir/$as_base
149: export CONFIG_SHELL
150: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151: fi;;
152: esac
153: done
154: done
155: ;;
156: esac
157:
158: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159: # uniformly replaced by the line number. The first 'sed' inserts a
160: # line-number line before each line; the second 'sed' does the real
161: # work. The second script uses 'N' to pair each line-number line
162: # with the numbered line, and appends trailing '-' during
163: # substitution so that $LINENO is not a special case at line end.
164: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166: sed '=' <$as_myself |
167: sed '
168: N
169: s,$,-,
170: : loop
171: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172: t loop
173: s,-$,,
174: s,^['$as_cr_digits']*\n,,
175: ' >$as_me.lineno &&
176: chmod +x $as_me.lineno ||
177: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178: { (exit 1); exit 1; }; }
179:
180: # Don't try to exec as it changes $[0], causing all sort of problems
181: # (the dirname of $[0] is not the place where we might find the
182: # original and so on. Autoconf is especially sensible to this).
183: . ./$as_me.lineno
184: # Exit status is that of the last command.
185: exit
186: }
187:
1.1 schmonz 188:
1.3 jlam 189: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190: *c*,-n*) ECHO_N= ECHO_C='
191: ' ECHO_T=' ' ;;
192: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194: esac
195:
196: if expr a : '\(a\)' >/dev/null 2>&1; then
197: as_expr=expr
198: else
199: as_expr=false
200: fi
201:
202: rm -f conf$$ conf$$.exe conf$$.file
203: echo >conf$$.file
204: if ln -s conf$$.file conf$$ 2>/dev/null; then
205: # We could just check for DJGPP; but this test a) works b) is more generic
206: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207: if test -f conf$$.exe; then
208: # Don't use ln at all; we don't have any links
209: as_ln_s='cp -p'
210: else
211: as_ln_s='ln -s'
212: fi
213: elif ln conf$$.file conf$$ 2>/dev/null; then
214: as_ln_s=ln
215: else
216: as_ln_s='cp -p'
217: fi
218: rm -f conf$$ conf$$.exe conf$$.file
219:
220: if mkdir -p . 2>/dev/null; then
221: as_mkdir_p=:
222: else
1.9 grant 223: test -d ./-p && rmdir ./-p
1.3 jlam 224: as_mkdir_p=false
225: fi
226:
227: as_executable_p="test -f"
228:
229: # Sed expression to map a string onto a valid CPP name.
1.9 grant 230: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.3 jlam 231:
232: # Sed expression to map a string onto a valid variable name.
1.9 grant 233: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.3 jlam 234:
235:
236: # IFS
237: # We need space, tab and new line, in precisely that order.
238: as_nl='
239: '
240: IFS=" $as_nl"
241:
242: # CDPATH.
243: $as_unset CDPATH
244:
245:
246: # Name of the host.
247: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248: # so uname gets run too.
249: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250:
251: exec 6>&1
252:
253: #
254: # Initializations.
255: #
1.1 schmonz 256: ac_default_prefix=/usr/local
1.3 jlam 257: ac_config_libobj_dir=.
258: cross_compiling=no
259: subdirs=
260: MFLAGS=
261: MAKEFLAGS=
262: SHELL=${CONFIG_SHELL-/bin/sh}
263:
264: # Maximum number of lines to put in a shell here document.
265: # This variable seems obsolete. It should probably be removed, and
266: # only ac_max_sed_lines should be used.
267: : ${ac_max_here_lines=38}
268:
269: # Identity of this package.
270: PACKAGE_NAME='pkg_install'
271: PACKAGE_TARNAME='pkg_install'
1.17 ! dmcmahil 272: PACKAGE_VERSION='20050607'
! 273: PACKAGE_STRING='pkg_install 20050607'
1.3 jlam 274: PACKAGE_BUGREPORT='grant@NetBSD.org'
275:
276: ac_unique_file="lib/plist.c"
277: # Factoring default headers for most tests.
278: ac_includes_default="\
279: #include <stdio.h>
280: #if HAVE_SYS_TYPES_H
281: # include <sys/types.h>
282: #endif
283: #if HAVE_SYS_STAT_H
284: # include <sys/stat.h>
285: #endif
286: #if STDC_HEADERS
287: # include <stdlib.h>
288: # include <stddef.h>
289: #else
290: # if HAVE_STDLIB_H
291: # include <stdlib.h>
292: # endif
293: #endif
294: #if HAVE_STRING_H
295: # if !STDC_HEADERS && HAVE_MEMORY_H
296: # include <memory.h>
297: # endif
298: # include <string.h>
299: #endif
300: #if HAVE_STRINGS_H
301: # include <strings.h>
302: #endif
303: #if HAVE_INTTYPES_H
304: # include <inttypes.h>
305: #else
306: # if HAVE_STDINT_H
307: # include <stdint.h>
308: # endif
309: #endif
310: #if HAVE_UNISTD_H
311: # include <unistd.h>
312: #endif"
313:
1.6 grant 314: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST INCLUDES SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR CHMOD CMP CP ENV FIND GREP LN MKDIR RMDIR RM SED SORT TOUCH AUTOCONF AUTOHEADER pkgdbdir ftp tar pax mtree CPP EGREP LIBOBJS LTLIBOBJS'
1.3 jlam 315: ac_subst_files=''
1.1 schmonz 316:
317: # Initialize some variables set by options.
1.3 jlam 318: ac_init_help=
319: ac_init_version=false
1.1 schmonz 320: # The variables have the same names as the options, with
321: # dashes changed to underlines.
1.3 jlam 322: cache_file=/dev/null
1.1 schmonz 323: exec_prefix=NONE
324: no_create=
325: no_recursion=
326: prefix=NONE
327: program_prefix=NONE
328: program_suffix=NONE
329: program_transform_name=s,x,x,
330: silent=
331: site=
332: srcdir=
333: verbose=
334: x_includes=NONE
335: x_libraries=NONE
1.3 jlam 336:
337: # Installation directory options.
338: # These are left unexpanded so users can "make install exec_prefix=/foo"
339: # and all the variables that are supposed to be based on exec_prefix
340: # by default will actually change.
341: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 schmonz 342: bindir='${exec_prefix}/bin'
343: sbindir='${exec_prefix}/sbin'
344: libexecdir='${exec_prefix}/libexec'
345: datadir='${prefix}/share'
346: sysconfdir='${prefix}/etc'
347: sharedstatedir='${prefix}/com'
348: localstatedir='${prefix}/var'
349: libdir='${exec_prefix}/lib'
350: includedir='${prefix}/include'
351: oldincludedir='/usr/include'
352: infodir='${prefix}/info'
353: mandir='${prefix}/man'
354:
355: ac_prev=
356: for ac_option
357: do
358: # If the previous option needs an argument, assign it.
359: if test -n "$ac_prev"; then
360: eval "$ac_prev=\$ac_option"
361: ac_prev=
362: continue
363: fi
364:
1.3 jlam 365: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 schmonz 366:
367: # Accept the important Cygnus configure options, so we can diagnose typos.
368:
1.3 jlam 369: case $ac_option in
1.1 schmonz 370:
371: -bindir | --bindir | --bindi | --bind | --bin | --bi)
372: ac_prev=bindir ;;
373: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.3 jlam 374: bindir=$ac_optarg ;;
1.1 schmonz 375:
376: -build | --build | --buil | --bui | --bu)
1.3 jlam 377: ac_prev=build_alias ;;
1.1 schmonz 378: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.3 jlam 379: build_alias=$ac_optarg ;;
1.1 schmonz 380:
381: -cache-file | --cache-file | --cache-fil | --cache-fi \
382: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383: ac_prev=cache_file ;;
384: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.3 jlam 386: cache_file=$ac_optarg ;;
387:
388: --config-cache | -C)
389: cache_file=config.cache ;;
1.1 schmonz 390:
391: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392: ac_prev=datadir ;;
393: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394: | --da=*)
1.3 jlam 395: datadir=$ac_optarg ;;
1.1 schmonz 396:
397: -disable-* | --disable-*)
1.3 jlam 398: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 schmonz 399: # Reject names that are not valid shell variable names.
1.3 jlam 400: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402: { (exit 1); exit 1; }; }
403: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404: eval "enable_$ac_feature=no" ;;
1.1 schmonz 405:
406: -enable-* | --enable-*)
1.3 jlam 407: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 schmonz 408: # Reject names that are not valid shell variable names.
1.3 jlam 409: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411: { (exit 1); exit 1; }; }
412: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413: case $ac_option in
414: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 schmonz 415: *) ac_optarg=yes ;;
416: esac
1.3 jlam 417: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 schmonz 418:
419: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421: | --exec | --exe | --ex)
422: ac_prev=exec_prefix ;;
423: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425: | --exec=* | --exe=* | --ex=*)
1.3 jlam 426: exec_prefix=$ac_optarg ;;
1.1 schmonz 427:
428: -gas | --gas | --ga | --g)
429: # Obsolete; use --with-gas.
430: with_gas=yes ;;
431:
1.3 jlam 432: -help | --help | --hel | --he | -h)
433: ac_init_help=long ;;
434: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435: ac_init_help=recursive ;;
436: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437: ac_init_help=short ;;
1.1 schmonz 438:
439: -host | --host | --hos | --ho)
1.3 jlam 440: ac_prev=host_alias ;;
1.1 schmonz 441: -host=* | --host=* | --hos=* | --ho=*)
1.3 jlam 442: host_alias=$ac_optarg ;;
1.1 schmonz 443:
444: -includedir | --includedir | --includedi | --included | --include \
445: | --includ | --inclu | --incl | --inc)
446: ac_prev=includedir ;;
447: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.3 jlam 449: includedir=$ac_optarg ;;
1.1 schmonz 450:
451: -infodir | --infodir | --infodi | --infod | --info | --inf)
452: ac_prev=infodir ;;
453: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.3 jlam 454: infodir=$ac_optarg ;;
1.1 schmonz 455:
456: -libdir | --libdir | --libdi | --libd)
457: ac_prev=libdir ;;
458: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.3 jlam 459: libdir=$ac_optarg ;;
1.1 schmonz 460:
461: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462: | --libexe | --libex | --libe)
463: ac_prev=libexecdir ;;
464: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465: | --libexe=* | --libex=* | --libe=*)
1.3 jlam 466: libexecdir=$ac_optarg ;;
1.1 schmonz 467:
468: -localstatedir | --localstatedir | --localstatedi | --localstated \
469: | --localstate | --localstat | --localsta | --localst \
470: | --locals | --local | --loca | --loc | --lo)
471: ac_prev=localstatedir ;;
472: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.3 jlam 475: localstatedir=$ac_optarg ;;
1.1 schmonz 476:
477: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478: ac_prev=mandir ;;
479: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.3 jlam 480: mandir=$ac_optarg ;;
1.1 schmonz 481:
482: -nfp | --nfp | --nf)
483: # Obsolete; use --without-fp.
484: with_fp=no ;;
485:
486: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.3 jlam 487: | --no-cr | --no-c | -n)
1.1 schmonz 488: no_create=yes ;;
489:
490: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492: no_recursion=yes ;;
493:
494: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496: | --oldin | --oldi | --old | --ol | --o)
497: ac_prev=oldincludedir ;;
498: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.3 jlam 501: oldincludedir=$ac_optarg ;;
1.1 schmonz 502:
503: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504: ac_prev=prefix ;;
505: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.3 jlam 506: prefix=$ac_optarg ;;
1.1 schmonz 507:
508: -program-prefix | --program-prefix | --program-prefi | --program-pref \
509: | --program-pre | --program-pr | --program-p)
510: ac_prev=program_prefix ;;
511: -program-prefix=* | --program-prefix=* | --program-prefi=* \
512: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.3 jlam 513: program_prefix=$ac_optarg ;;
1.1 schmonz 514:
515: -program-suffix | --program-suffix | --program-suffi | --program-suff \
516: | --program-suf | --program-su | --program-s)
517: ac_prev=program_suffix ;;
518: -program-suffix=* | --program-suffix=* | --program-suffi=* \
519: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.3 jlam 520: program_suffix=$ac_optarg ;;
1.1 schmonz 521:
522: -program-transform-name | --program-transform-name \
523: | --program-transform-nam | --program-transform-na \
524: | --program-transform-n | --program-transform- \
525: | --program-transform | --program-transfor \
526: | --program-transfo | --program-transf \
527: | --program-trans | --program-tran \
528: | --progr-tra | --program-tr | --program-t)
529: ac_prev=program_transform_name ;;
530: -program-transform-name=* | --program-transform-name=* \
531: | --program-transform-nam=* | --program-transform-na=* \
532: | --program-transform-n=* | --program-transform-=* \
533: | --program-transform=* | --program-transfor=* \
534: | --program-transfo=* | --program-transf=* \
535: | --program-trans=* | --program-tran=* \
536: | --progr-tra=* | --program-tr=* | --program-t=*)
1.3 jlam 537: program_transform_name=$ac_optarg ;;
1.1 schmonz 538:
539: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540: | -silent | --silent | --silen | --sile | --sil)
541: silent=yes ;;
542:
543: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544: ac_prev=sbindir ;;
545: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546: | --sbi=* | --sb=*)
1.3 jlam 547: sbindir=$ac_optarg ;;
1.1 schmonz 548:
549: -sharedstatedir | --sharedstatedir | --sharedstatedi \
550: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551: | --sharedst | --shareds | --shared | --share | --shar \
552: | --sha | --sh)
553: ac_prev=sharedstatedir ;;
554: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557: | --sha=* | --sh=*)
1.3 jlam 558: sharedstatedir=$ac_optarg ;;
1.1 schmonz 559:
560: -site | --site | --sit)
561: ac_prev=site ;;
562: -site=* | --site=* | --sit=*)
1.3 jlam 563: site=$ac_optarg ;;
1.1 schmonz 564:
565: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566: ac_prev=srcdir ;;
567: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.3 jlam 568: srcdir=$ac_optarg ;;
1.1 schmonz 569:
570: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571: | --syscon | --sysco | --sysc | --sys | --sy)
572: ac_prev=sysconfdir ;;
573: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.3 jlam 575: sysconfdir=$ac_optarg ;;
1.1 schmonz 576:
577: -target | --target | --targe | --targ | --tar | --ta | --t)
1.3 jlam 578: ac_prev=target_alias ;;
1.1 schmonz 579: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.3 jlam 580: target_alias=$ac_optarg ;;
1.1 schmonz 581:
582: -v | -verbose | --verbose | --verbos | --verbo | --verb)
583: verbose=yes ;;
584:
1.3 jlam 585: -version | --version | --versio | --versi | --vers | -V)
586: ac_init_version=: ;;
1.1 schmonz 587:
588: -with-* | --with-*)
1.3 jlam 589: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 schmonz 590: # Reject names that are not valid shell variable names.
1.3 jlam 591: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592: { echo "$as_me: error: invalid package name: $ac_package" >&2
593: { (exit 1); exit 1; }; }
1.1 schmonz 594: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.3 jlam 595: case $ac_option in
596: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 schmonz 597: *) ac_optarg=yes ;;
598: esac
1.3 jlam 599: eval "with_$ac_package='$ac_optarg'" ;;
1.1 schmonz 600:
601: -without-* | --without-*)
1.3 jlam 602: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 schmonz 603: # Reject names that are not valid shell variable names.
1.3 jlam 604: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605: { echo "$as_me: error: invalid package name: $ac_package" >&2
606: { (exit 1); exit 1; }; }
607: ac_package=`echo $ac_package | sed 's/-/_/g'`
608: eval "with_$ac_package=no" ;;
1.1 schmonz 609:
610: --x)
611: # Obsolete; use --with-x.
612: with_x=yes ;;
613:
614: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615: | --x-incl | --x-inc | --x-in | --x-i)
616: ac_prev=x_includes ;;
617: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.3 jlam 619: x_includes=$ac_optarg ;;
1.1 schmonz 620:
621: -x-libraries | --x-libraries | --x-librarie | --x-librari \
622: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623: ac_prev=x_libraries ;;
624: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.3 jlam 626: x_libraries=$ac_optarg ;;
1.1 schmonz 627:
1.3 jlam 628: -*) { echo "$as_me: error: unrecognized option: $ac_option
629: Try \`$0 --help' for more information." >&2
630: { (exit 1); exit 1; }; }
1.1 schmonz 631: ;;
632:
1.3 jlam 633: *=*)
634: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635: # Reject names that are not valid shell variable names.
636: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638: { (exit 1); exit 1; }; }
639: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640: eval "$ac_envvar='$ac_optarg'"
641: export $ac_envvar ;;
642:
1.1 schmonz 643: *)
1.3 jlam 644: # FIXME: should be removed in autoconf 3.0.
645: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 schmonz 649: ;;
650:
651: esac
652: done
653:
654: if test -n "$ac_prev"; then
1.3 jlam 655: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656: { echo "$as_me: error: missing argument to $ac_option" >&2
657: { (exit 1); exit 1; }; }
1.1 schmonz 658: fi
659:
1.3 jlam 660: # Be sure to have absolute paths.
661: for ac_var in exec_prefix prefix
662: do
663: eval ac_val=$`echo $ac_var`
664: case $ac_val in
665: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667: { (exit 1); exit 1; }; };;
668: esac
669: done
1.1 schmonz 670:
1.3 jlam 671: # Be sure to have absolute paths.
672: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.9 grant 673: localstatedir libdir includedir oldincludedir infodir mandir
1.1 schmonz 674: do
1.3 jlam 675: eval ac_val=$`echo $ac_var`
676: case $ac_val in
677: [\\/$]* | ?:[\\/]* ) ;;
678: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679: { (exit 1); exit 1; }; };;
1.1 schmonz 680: esac
681: done
682:
1.3 jlam 683: # There might be people who depend on the old broken behavior: `$host'
684: # used to hold the argument of --host etc.
685: # FIXME: To remove some day.
686: build=$build_alias
687: host=$host_alias
688: target=$target_alias
689:
690: # FIXME: To remove some day.
691: if test "x$host_alias" != x; then
692: if test "x$build_alias" = x; then
693: cross_compiling=maybe
694: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695: If a cross compiler is detected then cross compile mode will be used." >&2
696: elif test "x$build_alias" != "x$host_alias"; then
697: cross_compiling=yes
698: fi
699: fi
700:
701: ac_tool_prefix=
702: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 schmonz 703:
1.3 jlam 704: test "$silent" = yes && exec 6>/dev/null
1.1 schmonz 705:
706:
707: # Find the source files, if location was not specified.
708: if test -z "$srcdir"; then
709: ac_srcdir_defaulted=yes
710: # Try the directory containing this script, then its parent.
1.3 jlam 711: ac_confdir=`(dirname "$0") 2>/dev/null ||
712: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 grant 713: X"$0" : 'X\(//\)[^/]' \| \
714: X"$0" : 'X\(//\)$' \| \
715: X"$0" : 'X\(/\)' \| \
716: . : '\(.\)' 2>/dev/null ||
1.3 jlam 717: echo X"$0" |
718: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720: /^X\(\/\/\)$/{ s//\1/; q; }
721: /^X\(\/\).*/{ s//\1/; q; }
722: s/.*/./; q'`
1.1 schmonz 723: srcdir=$ac_confdir
724: if test ! -r $srcdir/$ac_unique_file; then
725: srcdir=..
726: fi
727: else
728: ac_srcdir_defaulted=no
729: fi
730: if test ! -r $srcdir/$ac_unique_file; then
731: if test "$ac_srcdir_defaulted" = yes; then
1.3 jlam 732: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733: { (exit 1); exit 1; }; }
1.1 schmonz 734: else
1.3 jlam 735: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736: { (exit 1); exit 1; }; }
1.1 schmonz 737: fi
738: fi
1.3 jlam 739: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741: { (exit 1); exit 1; }; }
742: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743: ac_env_build_alias_set=${build_alias+set}
744: ac_env_build_alias_value=$build_alias
745: ac_cv_env_build_alias_set=${build_alias+set}
746: ac_cv_env_build_alias_value=$build_alias
747: ac_env_host_alias_set=${host_alias+set}
748: ac_env_host_alias_value=$host_alias
749: ac_cv_env_host_alias_set=${host_alias+set}
750: ac_cv_env_host_alias_value=$host_alias
751: ac_env_target_alias_set=${target_alias+set}
752: ac_env_target_alias_value=$target_alias
753: ac_cv_env_target_alias_set=${target_alias+set}
754: ac_cv_env_target_alias_value=$target_alias
755: ac_env_CC_set=${CC+set}
756: ac_env_CC_value=$CC
757: ac_cv_env_CC_set=${CC+set}
758: ac_cv_env_CC_value=$CC
759: ac_env_CFLAGS_set=${CFLAGS+set}
760: ac_env_CFLAGS_value=$CFLAGS
761: ac_cv_env_CFLAGS_set=${CFLAGS+set}
762: ac_cv_env_CFLAGS_value=$CFLAGS
763: ac_env_LDFLAGS_set=${LDFLAGS+set}
764: ac_env_LDFLAGS_value=$LDFLAGS
765: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766: ac_cv_env_LDFLAGS_value=$LDFLAGS
767: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768: ac_env_CPPFLAGS_value=$CPPFLAGS
769: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771: ac_env_CPP_set=${CPP+set}
772: ac_env_CPP_value=$CPP
773: ac_cv_env_CPP_set=${CPP+set}
774: ac_cv_env_CPP_value=$CPP
775:
776: #
777: # Report the --help message.
778: #
779: if test "$ac_init_help" = "long"; then
780: # Omit some internal or obsolete options to make the list less imposing.
781: # This message is too long to be a string in the A/UX 3.1 sh.
782: cat <<_ACEOF
1.17 ! dmcmahil 783: \`configure' configures pkg_install 20050607 to adapt to many kinds of systems.
1.3 jlam 784:
785: Usage: $0 [OPTION]... [VAR=VALUE]...
786:
787: To assign environment variables (e.g., CC, CFLAGS...), specify them as
788: VAR=VALUE. See below for descriptions of some of the useful variables.
789:
790: Defaults for the options are specified in brackets.
791:
792: Configuration:
793: -h, --help display this help and exit
794: --help=short display options specific to this package
795: --help=recursive display the short help of all the included packages
796: -V, --version display version information and exit
797: -q, --quiet, --silent do not print \`checking...' messages
798: --cache-file=FILE cache test results in FILE [disabled]
799: -C, --config-cache alias for \`--cache-file=config.cache'
800: -n, --no-create do not create output files
801: --srcdir=DIR find the sources in DIR [configure dir or \`..']
802:
803: _ACEOF
804:
805: cat <<_ACEOF
806: Installation directories:
807: --prefix=PREFIX install architecture-independent files in PREFIX
1.9 grant 808: [$ac_default_prefix]
1.3 jlam 809: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.9 grant 810: [PREFIX]
1.3 jlam 811:
812: By default, \`make install' will install all the files in
813: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815: for instance \`--prefix=\$HOME'.
816:
817: For better control, use the options below.
818:
819: Fine tuning of the installation directories:
820: --bindir=DIR user executables [EPREFIX/bin]
821: --sbindir=DIR system admin executables [EPREFIX/sbin]
822: --libexecdir=DIR program executables [EPREFIX/libexec]
823: --datadir=DIR read-only architecture-independent data [PREFIX/share]
824: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827: --libdir=DIR object code libraries [EPREFIX/lib]
828: --includedir=DIR C header files [PREFIX/include]
829: --oldincludedir=DIR C header files for non-gcc [/usr/include]
830: --infodir=DIR info documentation [PREFIX/info]
831: --mandir=DIR man documentation [PREFIX/man]
832: _ACEOF
833:
834: cat <<\_ACEOF
835:
836: System types:
837: --build=BUILD configure for building on BUILD [guessed]
838: --host=HOST cross-compile to build programs to run on HOST [BUILD]
839: _ACEOF
840: fi
841:
842: if test -n "$ac_init_help"; then
843: case $ac_init_help in
1.17 ! dmcmahil 844: short | recursive ) echo "Configuration of pkg_install 20050607:";;
1.3 jlam 845: esac
846: cat <<\_ACEOF
847:
848: Optional Packages:
849: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
850: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.6 grant 851: --with-pkgdbdir=DIR Where to put the pkg database (/var/db/pkg)
852: --with-ftp=path Path to tnftp (PREFIX/bin/ftp)
853: --with-tar=path Path to pax-as-tar (PREFIX/bin/tar)
854: --with-pax=path Path to pax (PREFIX/bin/pax)
855: --with-mtree=path Path to mtree (PREFIX/sbin/mtree)
1.3 jlam 856:
857: Some influential environment variables:
858: CC C compiler command
859: CFLAGS C compiler flags
860: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
861: nonstandard directory <lib dir>
862: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
863: headers in a nonstandard directory <include dir>
864: CPP C preprocessor
865:
866: Use these variables to override the choices made by `configure' or to help
867: it to find libraries and programs with nonstandard names/locations.
868:
869: Report bugs to <grant@NetBSD.org>.
870: _ACEOF
871: fi
872:
873: if test "$ac_init_help" = "recursive"; then
874: # If there are subdirs, report their specific --help.
875: ac_popdir=`pwd`
876: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877: test -d $ac_dir || continue
878: ac_builddir=.
879:
880: if test "$ac_dir" != .; then
881: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882: # A "../" for each directory in $ac_dir_suffix.
883: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884: else
885: ac_dir_suffix= ac_top_builddir=
886: fi
887:
888: case $srcdir in
889: .) # No --srcdir option. We are building in place.
890: ac_srcdir=.
891: if test -z "$ac_top_builddir"; then
892: ac_top_srcdir=.
893: else
894: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895: fi ;;
896: [\\/]* | ?:[\\/]* ) # Absolute path.
897: ac_srcdir=$srcdir$ac_dir_suffix;
898: ac_top_srcdir=$srcdir ;;
899: *) # Relative path.
900: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901: ac_top_srcdir=$ac_top_builddir$srcdir ;;
902: esac
1.9 grant 903:
904: # Do not use `cd foo && pwd` to compute absolute paths, because
905: # the directories may not exist.
906: case `pwd` in
907: .) ac_abs_builddir="$ac_dir";;
908: *)
909: case "$ac_dir" in
910: .) ac_abs_builddir=`pwd`;;
911: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912: *) ac_abs_builddir=`pwd`/"$ac_dir";;
913: esac;;
914: esac
915: case $ac_abs_builddir in
916: .) ac_abs_top_builddir=${ac_top_builddir}.;;
917: *)
918: case ${ac_top_builddir}. in
919: .) ac_abs_top_builddir=$ac_abs_builddir;;
920: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922: esac;;
923: esac
924: case $ac_abs_builddir in
925: .) ac_abs_srcdir=$ac_srcdir;;
926: *)
927: case $ac_srcdir in
928: .) ac_abs_srcdir=$ac_abs_builddir;;
929: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931: esac;;
932: esac
933: case $ac_abs_builddir in
934: .) ac_abs_top_srcdir=$ac_top_srcdir;;
935: *)
936: case $ac_top_srcdir in
937: .) ac_abs_top_srcdir=$ac_abs_builddir;;
938: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940: esac;;
941: esac
1.3 jlam 942:
943: cd $ac_dir
944: # Check for guested configure; otherwise get Cygnus style configure.
945: if test -f $ac_srcdir/configure.gnu; then
946: echo
947: $SHELL $ac_srcdir/configure.gnu --help=recursive
948: elif test -f $ac_srcdir/configure; then
949: echo
950: $SHELL $ac_srcdir/configure --help=recursive
951: elif test -f $ac_srcdir/configure.ac ||
1.9 grant 952: test -f $ac_srcdir/configure.in; then
1.3 jlam 953: echo
954: $ac_configure --help
955: else
956: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957: fi
958: cd $ac_popdir
959: done
960: fi
961:
962: test -n "$ac_init_help" && exit 0
963: if $ac_init_version; then
964: cat <<\_ACEOF
1.17 ! dmcmahil 965: pkg_install configure 20050607
1.9 grant 966: generated by GNU Autoconf 2.59
1.3 jlam 967:
1.9 grant 968: Copyright (C) 2003 Free Software Foundation, Inc.
1.3 jlam 969: This configure script is free software; the Free Software Foundation
970: gives unlimited permission to copy, distribute and modify it.
971: _ACEOF
972: exit 0
973: fi
974: exec 5>config.log
975: cat >&5 <<_ACEOF
976: This file contains any messages produced by compilers while
977: running configure, to aid debugging if configure makes a mistake.
978:
1.17 ! dmcmahil 979: It was created by pkg_install $as_me 20050607, which was
1.9 grant 980: generated by GNU Autoconf 2.59. Invocation command line was
1.3 jlam 981:
982: $ $0 $@
983:
984: _ACEOF
985: {
986: cat <<_ASUNAME
987: ## --------- ##
988: ## Platform. ##
989: ## --------- ##
990:
991: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992: uname -m = `(uname -m) 2>/dev/null || echo unknown`
993: uname -r = `(uname -r) 2>/dev/null || echo unknown`
994: uname -s = `(uname -s) 2>/dev/null || echo unknown`
995: uname -v = `(uname -v) 2>/dev/null || echo unknown`
996:
997: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
999:
1000: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1007:
1008: _ASUNAME
1009:
1010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011: for as_dir in $PATH
1012: do
1013: IFS=$as_save_IFS
1014: test -z "$as_dir" && as_dir=.
1015: echo "PATH: $as_dir"
1016: done
1017:
1018: } >&5
1019:
1020: cat >&5 <<_ACEOF
1021:
1022:
1023: ## ----------- ##
1024: ## Core tests. ##
1025: ## ----------- ##
1026:
1027: _ACEOF
1028:
1029:
1030: # Keep a trace of the command line.
1031: # Strip out --no-create and --no-recursion so they do not pile up.
1032: # Strip out --silent because we don't want to record it for future runs.
1033: # Also quote any args containing shell meta-characters.
1034: # Make two passes to allow for proper duplicate-argument suppression.
1035: ac_configure_args=
1036: ac_configure_args0=
1037: ac_configure_args1=
1038: ac_sep=
1039: ac_must_keep_next=false
1040: for ac_pass in 1 2
1041: do
1042: for ac_arg
1043: do
1044: case $ac_arg in
1045: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047: | -silent | --silent | --silen | --sile | --sil)
1048: continue ;;
1049: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051: esac
1052: case $ac_pass in
1053: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054: 2)
1055: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056: if test $ac_must_keep_next = true; then
1.9 grant 1057: ac_must_keep_next=false # Got value, back to normal.
1.3 jlam 1058: else
1.9 grant 1059: case $ac_arg in
1060: *=* | --config-cache | -C | -disable-* | --disable-* \
1061: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063: | -with-* | --with-* | -without-* | --without-* | --x)
1064: case "$ac_configure_args0 " in
1065: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066: esac
1067: ;;
1068: -* ) ac_must_keep_next=true ;;
1069: esac
1.3 jlam 1070: fi
1071: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072: # Get rid of the leading space.
1073: ac_sep=" "
1074: ;;
1075: esac
1076: done
1077: done
1078: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080:
1081: # When interrupted or exit'd, cleanup temporary files, and complete
1082: # config.log. We remove comments because anyway the quotes in there
1083: # would cause problems or look ugly.
1084: # WARNING: Be sure not to use single quotes in there, as some shells,
1085: # such as our DU 5.0 friend, will then `close' the trap.
1086: trap 'exit_status=$?
1087: # Save into config.log some information that might help in debugging.
1088: {
1089: echo
1090:
1091: cat <<\_ASBOX
1092: ## ---------------- ##
1093: ## Cache variables. ##
1094: ## ---------------- ##
1095: _ASBOX
1096: echo
1097: # The following way of writing the cache mishandles newlines in values,
1098: {
1099: (set) 2>&1 |
1100: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101: *ac_space=\ *)
1102: sed -n \
1.9 grant 1103: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.3 jlam 1105: ;;
1106: *)
1107: sed -n \
1.9 grant 1108: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.3 jlam 1109: ;;
1110: esac;
1111: }
1112: echo
1113:
1114: cat <<\_ASBOX
1115: ## ----------------- ##
1116: ## Output variables. ##
1117: ## ----------------- ##
1118: _ASBOX
1119: echo
1120: for ac_var in $ac_subst_vars
1121: do
1122: eval ac_val=$`echo $ac_var`
1123: echo "$ac_var='"'"'$ac_val'"'"'"
1124: done | sort
1125: echo
1126:
1127: if test -n "$ac_subst_files"; then
1128: cat <<\_ASBOX
1129: ## ------------- ##
1130: ## Output files. ##
1131: ## ------------- ##
1132: _ASBOX
1133: echo
1134: for ac_var in $ac_subst_files
1135: do
1136: eval ac_val=$`echo $ac_var`
1.9 grant 1137: echo "$ac_var='"'"'$ac_val'"'"'"
1.3 jlam 1138: done | sort
1139: echo
1140: fi
1141:
1142: if test -s confdefs.h; then
1143: cat <<\_ASBOX
1144: ## ----------- ##
1145: ## confdefs.h. ##
1146: ## ----------- ##
1147: _ASBOX
1148: echo
1149: sed "/^$/d" confdefs.h | sort
1150: echo
1151: fi
1152: test "$ac_signal" != 0 &&
1153: echo "$as_me: caught signal $ac_signal"
1154: echo "$as_me: exit $exit_status"
1155: } >&5
1.9 grant 1156: rm -f core *.core &&
1.3 jlam 1157: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158: exit $exit_status
1159: ' 0
1160: for ac_signal in 1 2 13 15; do
1161: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162: done
1163: ac_signal=0
1164:
1165: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166: rm -rf conftest* confdefs.h
1167: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168: echo >confdefs.h
1169:
1170: # Predefined preprocessor variables.
1171:
1172: cat >>confdefs.h <<_ACEOF
1173: #define PACKAGE_NAME "$PACKAGE_NAME"
1174: _ACEOF
1175:
1176:
1177: cat >>confdefs.h <<_ACEOF
1178: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179: _ACEOF
1180:
1181:
1182: cat >>confdefs.h <<_ACEOF
1183: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184: _ACEOF
1185:
1186:
1187: cat >>confdefs.h <<_ACEOF
1188: #define PACKAGE_STRING "$PACKAGE_STRING"
1189: _ACEOF
1190:
1.1 schmonz 1191:
1.3 jlam 1192: cat >>confdefs.h <<_ACEOF
1193: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194: _ACEOF
1195:
1196:
1197: # Let the site file select an alternate cache file if it wants to.
1.1 schmonz 1198: # Prefer explicitly selected file to automatically selected ones.
1199: if test -z "$CONFIG_SITE"; then
1200: if test "x$prefix" != xNONE; then
1201: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202: else
1203: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204: fi
1205: fi
1206: for ac_site_file in $CONFIG_SITE; do
1207: if test -r "$ac_site_file"; then
1.3 jlam 1208: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209: echo "$as_me: loading site script $ac_site_file" >&6;}
1210: sed 's/^/| /' "$ac_site_file" >&5
1.1 schmonz 1211: . "$ac_site_file"
1212: fi
1213: done
1214:
1215: if test -r "$cache_file"; then
1.3 jlam 1216: # Some versions of bash will fail to source /dev/null (special
1217: # files actually), so we avoid doing that.
1218: if test -f "$cache_file"; then
1219: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220: echo "$as_me: loading cache $cache_file" >&6;}
1221: case $cache_file in
1222: [\\/]* | ?:[\\/]* ) . $cache_file;;
1223: *) . ./$cache_file;;
1224: esac
1225: fi
1.1 schmonz 1226: else
1.3 jlam 1227: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228: echo "$as_me: creating cache $cache_file" >&6;}
1229: >$cache_file
1230: fi
1231:
1232: # Check that the precious variables saved in the cache have kept the same
1233: # value.
1234: ac_cache_corrupted=false
1235: for ac_var in `(set) 2>&1 |
1.9 grant 1236: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.3 jlam 1237: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238: eval ac_new_set=\$ac_env_${ac_var}_set
1239: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240: eval ac_new_val="\$ac_env_${ac_var}_value"
1241: case $ac_old_set,$ac_new_set in
1242: set,)
1243: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245: ac_cache_corrupted=: ;;
1246: ,set)
1247: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249: ac_cache_corrupted=: ;;
1250: ,);;
1251: *)
1252: if test "x$ac_old_val" != "x$ac_new_val"; then
1.9 grant 1253: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.3 jlam 1254: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.9 grant 1255: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.3 jlam 1256: echo "$as_me: former value: $ac_old_val" >&2;}
1.9 grant 1257: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.3 jlam 1258: echo "$as_me: current value: $ac_new_val" >&2;}
1.9 grant 1259: ac_cache_corrupted=:
1.3 jlam 1260: fi;;
1261: esac
1262: # Pass precious variables to config.status.
1263: if test "$ac_new_set" = set; then
1264: case $ac_new_val in
1265: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267: *) ac_arg=$ac_var=$ac_new_val ;;
1268: esac
1269: case " $ac_configure_args " in
1270: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272: esac
1273: fi
1274: done
1275: if $ac_cache_corrupted; then
1276: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280: { (exit 1); exit 1; }; }
1.1 schmonz 1281: fi
1282:
1283: ac_ext=c
1284: ac_cpp='$CPP $CPPFLAGS'
1.3 jlam 1285: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288:
1289:
1290:
1291:
1292:
1293:
1294:
1295:
1296:
1297:
1298:
1299:
1300:
1301:
1302:
1303:
1304:
1305:
1306:
1307:
1308:
1.1 schmonz 1309:
1310:
1311:
1312:
1313:
1314:
1315:
1.3 jlam 1316: ac_config_headers="$ac_config_headers lib/config.h"
1.1 schmonz 1317:
1318:
1319: ac_aux_dir=
1320: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321: if test -f $ac_dir/install-sh; then
1322: ac_aux_dir=$ac_dir
1323: ac_install_sh="$ac_aux_dir/install-sh -c"
1324: break
1325: elif test -f $ac_dir/install.sh; then
1326: ac_aux_dir=$ac_dir
1327: ac_install_sh="$ac_aux_dir/install.sh -c"
1328: break
1.3 jlam 1329: elif test -f $ac_dir/shtool; then
1330: ac_aux_dir=$ac_dir
1331: ac_install_sh="$ac_aux_dir/shtool install -c"
1332: break
1.1 schmonz 1333: fi
1334: done
1335: if test -z "$ac_aux_dir"; then
1.3 jlam 1336: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338: { (exit 1); exit 1; }; }
1339: fi
1340: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343:
1344: # Make sure we can run config.sub.
1345: $ac_config_sub sun4 >/dev/null 2>&1 ||
1346: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1347: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1348: { (exit 1); exit 1; }; }
1349:
1350: echo "$as_me:$LINENO: checking build system type" >&5
1351: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1352: if test "${ac_cv_build+set}" = set; then
1353: echo $ECHO_N "(cached) $ECHO_C" >&6
1354: else
1355: ac_cv_build_alias=$build_alias
1356: test -z "$ac_cv_build_alias" &&
1357: ac_cv_build_alias=`$ac_config_guess`
1358: test -z "$ac_cv_build_alias" &&
1359: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1360: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1361: { (exit 1); exit 1; }; }
1362: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1363: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1364: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1365: { (exit 1); exit 1; }; }
1366:
1367: fi
1368: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1369: echo "${ECHO_T}$ac_cv_build" >&6
1370: build=$ac_cv_build
1371: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374:
1375:
1376: echo "$as_me:$LINENO: checking host system type" >&5
1377: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1378: if test "${ac_cv_host+set}" = set; then
1379: echo $ECHO_N "(cached) $ECHO_C" >&6
1380: else
1381: ac_cv_host_alias=$host_alias
1382: test -z "$ac_cv_host_alias" &&
1383: ac_cv_host_alias=$ac_cv_build_alias
1384: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1385: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1386: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1387: { (exit 1); exit 1; }; }
1388:
1389: fi
1390: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1391: echo "${ECHO_T}$ac_cv_host" >&6
1392: host=$ac_cv_host
1393: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396:
1397:
1398: CANONICAL_HOST=$host
1399:
1400:
1401:
1402: # Checks for programs.
1403: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1404: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.9 grant 1405: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.3 jlam 1406: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407: echo $ECHO_N "(cached) $ECHO_C" >&6
1408: else
1409: cat >conftest.make <<\_ACEOF
1410: all:
1411: @echo 'ac_maketemp="$(MAKE)"'
1412: _ACEOF
1413: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415: if test -n "$ac_maketemp"; then
1416: eval ac_cv_prog_make_${ac_make}_set=yes
1417: else
1418: eval ac_cv_prog_make_${ac_make}_set=no
1419: fi
1420: rm -f conftest.make
1421: fi
1422: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423: echo "$as_me:$LINENO: result: yes" >&5
1424: echo "${ECHO_T}yes" >&6
1425: SET_MAKE=
1426: else
1427: echo "$as_me:$LINENO: result: no" >&5
1428: echo "${ECHO_T}no" >&6
1429: SET_MAKE="MAKE=${MAKE-make}"
1.1 schmonz 1430: fi
1431:
1.3 jlam 1432: ac_ext=c
1433: ac_cpp='$CPP $CPPFLAGS'
1434: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437: if test -n "$ac_tool_prefix"; then
1438: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440: echo "$as_me:$LINENO: checking for $ac_word" >&5
1441: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442: if test "${ac_cv_prog_CC+set}" = set; then
1443: echo $ECHO_N "(cached) $ECHO_C" >&6
1444: else
1445: if test -n "$CC"; then
1446: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 schmonz 1447: else
1.3 jlam 1448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449: for as_dir in $PATH
1450: do
1451: IFS=$as_save_IFS
1452: test -z "$as_dir" && as_dir=.
1453: for ac_exec_ext in '' $ac_executable_extensions; do
1454: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457: break 2
1458: fi
1459: done
1460: done
1461:
1462: fi
1463: fi
1464: CC=$ac_cv_prog_CC
1465: if test -n "$CC"; then
1466: echo "$as_me:$LINENO: result: $CC" >&5
1467: echo "${ECHO_T}$CC" >&6
1468: else
1469: echo "$as_me:$LINENO: result: no" >&5
1470: echo "${ECHO_T}no" >&6
1471: fi
1.1 schmonz 1472:
1473: fi
1.3 jlam 1474: if test -z "$ac_cv_prog_CC"; then
1475: ac_ct_CC=$CC
1476: # Extract the first word of "gcc", so it can be a program name with args.
1477: set dummy gcc; ac_word=$2
1478: echo "$as_me:$LINENO: checking for $ac_word" >&5
1479: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481: echo $ECHO_N "(cached) $ECHO_C" >&6
1482: else
1483: if test -n "$ac_ct_CC"; then
1484: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485: else
1486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487: for as_dir in $PATH
1488: do
1489: IFS=$as_save_IFS
1490: test -z "$as_dir" && as_dir=.
1491: for ac_exec_ext in '' $ac_executable_extensions; do
1492: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493: ac_cv_prog_ac_ct_CC="gcc"
1494: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495: break 2
1.1 schmonz 1496: fi
1.3 jlam 1497: done
1498: done
1499:
1500: fi
1501: fi
1502: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503: if test -n "$ac_ct_CC"; then
1504: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505: echo "${ECHO_T}$ac_ct_CC" >&6
1506: else
1507: echo "$as_me:$LINENO: result: no" >&5
1508: echo "${ECHO_T}no" >&6
1.1 schmonz 1509: fi
1510:
1.3 jlam 1511: CC=$ac_ct_CC
1512: else
1513: CC="$ac_cv_prog_CC"
1514: fi
1.1 schmonz 1515:
1.3 jlam 1516: if test -z "$CC"; then
1517: if test -n "$ac_tool_prefix"; then
1518: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519: set dummy ${ac_tool_prefix}cc; ac_word=$2
1520: echo "$as_me:$LINENO: checking for $ac_word" >&5
1521: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522: if test "${ac_cv_prog_CC+set}" = set; then
1523: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 1524: else
1525: if test -n "$CC"; then
1526: ac_cv_prog_CC="$CC" # Let the user override the test.
1527: else
1.3 jlam 1528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529: for as_dir in $PATH
1530: do
1531: IFS=$as_save_IFS
1532: test -z "$as_dir" && as_dir=.
1533: for ac_exec_ext in '' $ac_executable_extensions; do
1534: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535: ac_cv_prog_CC="${ac_tool_prefix}cc"
1536: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537: break 2
1538: fi
1539: done
1540: done
1541:
1.1 schmonz 1542: fi
1543: fi
1.3 jlam 1544: CC=$ac_cv_prog_CC
1.1 schmonz 1545: if test -n "$CC"; then
1.3 jlam 1546: echo "$as_me:$LINENO: result: $CC" >&5
1547: echo "${ECHO_T}$CC" >&6
1548: else
1549: echo "$as_me:$LINENO: result: no" >&5
1550: echo "${ECHO_T}no" >&6
1551: fi
1552:
1553: fi
1554: if test -z "$ac_cv_prog_CC"; then
1555: ac_ct_CC=$CC
1556: # Extract the first word of "cc", so it can be a program name with args.
1557: set dummy cc; ac_word=$2
1558: echo "$as_me:$LINENO: checking for $ac_word" >&5
1559: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561: echo $ECHO_N "(cached) $ECHO_C" >&6
1562: else
1563: if test -n "$ac_ct_CC"; then
1564: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565: else
1566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567: for as_dir in $PATH
1568: do
1569: IFS=$as_save_IFS
1570: test -z "$as_dir" && as_dir=.
1571: for ac_exec_ext in '' $ac_executable_extensions; do
1572: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573: ac_cv_prog_ac_ct_CC="cc"
1574: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575: break 2
1576: fi
1577: done
1578: done
1579:
1580: fi
1581: fi
1582: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583: if test -n "$ac_ct_CC"; then
1584: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585: echo "${ECHO_T}$ac_ct_CC" >&6
1586: else
1587: echo "$as_me:$LINENO: result: no" >&5
1588: echo "${ECHO_T}no" >&6
1589: fi
1590:
1591: CC=$ac_ct_CC
1.1 schmonz 1592: else
1.3 jlam 1593: CC="$ac_cv_prog_CC"
1.1 schmonz 1594: fi
1595:
1.3 jlam 1596: fi
1.1 schmonz 1597: if test -z "$CC"; then
1598: # Extract the first word of "cc", so it can be a program name with args.
1599: set dummy cc; ac_word=$2
1.3 jlam 1600: echo "$as_me:$LINENO: checking for $ac_word" >&5
1601: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602: if test "${ac_cv_prog_CC+set}" = set; then
1603: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 1604: else
1605: if test -n "$CC"; then
1606: ac_cv_prog_CC="$CC" # Let the user override the test.
1607: else
1608: ac_prog_rejected=no
1.3 jlam 1609: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610: for as_dir in $PATH
1611: do
1612: IFS=$as_save_IFS
1613: test -z "$as_dir" && as_dir=.
1614: for ac_exec_ext in '' $ac_executable_extensions; do
1615: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617: ac_prog_rejected=yes
1618: continue
1619: fi
1620: ac_cv_prog_CC="cc"
1621: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622: break 2
1623: fi
1624: done
1625: done
1626:
1.1 schmonz 1627: if test $ac_prog_rejected = yes; then
1628: # We found a bogon in the path, so make sure we never use it.
1629: set dummy $ac_cv_prog_CC
1630: shift
1.3 jlam 1631: if test $# != 0; then
1.1 schmonz 1632: # We chose a different compiler from the bogus one.
1633: # However, it has the same basename, so the bogon will be chosen
1634: # first if we set CC to just the basename; use the full file name.
1635: shift
1.3 jlam 1636: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 schmonz 1637: fi
1638: fi
1639: fi
1640: fi
1.3 jlam 1641: CC=$ac_cv_prog_CC
1.1 schmonz 1642: if test -n "$CC"; then
1.3 jlam 1643: echo "$as_me:$LINENO: result: $CC" >&5
1644: echo "${ECHO_T}$CC" >&6
1.1 schmonz 1645: else
1.3 jlam 1646: echo "$as_me:$LINENO: result: no" >&5
1647: echo "${ECHO_T}no" >&6
1.1 schmonz 1648: fi
1649:
1.3 jlam 1650: fi
1651: if test -z "$CC"; then
1652: if test -n "$ac_tool_prefix"; then
1653: for ac_prog in cl
1654: do
1655: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657: echo "$as_me:$LINENO: checking for $ac_word" >&5
1658: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659: if test "${ac_cv_prog_CC+set}" = set; then
1660: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 1661: else
1662: if test -n "$CC"; then
1663: ac_cv_prog_CC="$CC" # Let the user override the test.
1664: else
1.3 jlam 1665: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666: for as_dir in $PATH
1667: do
1668: IFS=$as_save_IFS
1669: test -z "$as_dir" && as_dir=.
1670: for ac_exec_ext in '' $ac_executable_extensions; do
1671: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674: break 2
1675: fi
1676: done
1677: done
1678:
1.1 schmonz 1679: fi
1680: fi
1.3 jlam 1681: CC=$ac_cv_prog_CC
1.1 schmonz 1682: if test -n "$CC"; then
1.3 jlam 1683: echo "$as_me:$LINENO: result: $CC" >&5
1684: echo "${ECHO_T}$CC" >&6
1.1 schmonz 1685: else
1.3 jlam 1686: echo "$as_me:$LINENO: result: no" >&5
1687: echo "${ECHO_T}no" >&6
1.1 schmonz 1688: fi
1.3 jlam 1689:
1690: test -n "$CC" && break
1691: done
1692: fi
1693: if test -z "$CC"; then
1694: ac_ct_CC=$CC
1695: for ac_prog in cl
1696: do
1697: # Extract the first word of "$ac_prog", so it can be a program name with args.
1698: set dummy $ac_prog; ac_word=$2
1699: echo "$as_me:$LINENO: checking for $ac_word" >&5
1700: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702: echo $ECHO_N "(cached) $ECHO_C" >&6
1703: else
1704: if test -n "$ac_ct_CC"; then
1705: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706: else
1707: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708: for as_dir in $PATH
1709: do
1710: IFS=$as_save_IFS
1711: test -z "$as_dir" && as_dir=.
1712: for ac_exec_ext in '' $ac_executable_extensions; do
1713: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714: ac_cv_prog_ac_ct_CC="$ac_prog"
1715: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716: break 2
1.1 schmonz 1717: fi
1.3 jlam 1718: done
1719: done
1720:
1721: fi
1722: fi
1723: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724: if test -n "$ac_ct_CC"; then
1725: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726: echo "${ECHO_T}$ac_ct_CC" >&6
1727: else
1728: echo "$as_me:$LINENO: result: no" >&5
1729: echo "${ECHO_T}no" >&6
1730: fi
1731:
1732: test -n "$ac_ct_CC" && break
1733: done
1734:
1735: CC=$ac_ct_CC
1736: fi
1737:
1.1 schmonz 1738: fi
1739:
1740:
1.3 jlam 1741: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742: See \`config.log' for more details." >&5
1743: echo "$as_me: error: no acceptable C compiler found in \$PATH
1744: See \`config.log' for more details." >&2;}
1745: { (exit 1); exit 1; }; }
1746:
1747: # Provide some information about the compiler.
1748: echo "$as_me:$LINENO:" \
1749: "checking for C compiler version" >&5
1750: ac_compiler=`set X $ac_compile; echo $2`
1751: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752: (eval $ac_compiler --version </dev/null >&5) 2>&5
1753: ac_status=$?
1754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755: (exit $ac_status); }
1756: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757: (eval $ac_compiler -v </dev/null >&5) 2>&5
1758: ac_status=$?
1759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760: (exit $ac_status); }
1761: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762: (eval $ac_compiler -V </dev/null >&5) 2>&5
1763: ac_status=$?
1764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765: (exit $ac_status); }
1766:
1767: cat >conftest.$ac_ext <<_ACEOF
1768: /* confdefs.h. */
1769: _ACEOF
1770: cat confdefs.h >>conftest.$ac_ext
1771: cat >>conftest.$ac_ext <<_ACEOF
1772: /* end confdefs.h. */
1.1 schmonz 1773:
1.3 jlam 1774: int
1775: main ()
1776: {
1.1 schmonz 1777:
1.3 jlam 1778: ;
1779: return 0;
1780: }
1781: _ACEOF
1782: ac_clean_files_save=$ac_clean_files
1783: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784: # Try to create an executable without -o first, disregard a.out.
1785: # It will help us diagnose broken compilers, and finding out an intuition
1786: # of exeext.
1.9 grant 1787: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.3 jlam 1789: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791: (eval $ac_link_default) 2>&5
1792: ac_status=$?
1793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794: (exit $ac_status); }; then
1795: # Find the output, starting from the most likely. This scheme is
1796: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797: # resort.
1798:
1799: # Be careful to initialize this variable, since it used to be cached.
1800: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801: ac_cv_exeext=
1802: # b.out is created by i960 compilers.
1803: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804: do
1805: test -f "$ac_file" || continue
1806: case $ac_file in
1807: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.9 grant 1808: ;;
1.3 jlam 1809: conftest.$ac_ext )
1.9 grant 1810: # This is the source file.
1811: ;;
1.3 jlam 1812: [ab].out )
1.9 grant 1813: # We found the default executable, but exeext='' is most
1814: # certainly right.
1815: break;;
1.3 jlam 1816: *.* )
1.9 grant 1817: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818: # FIXME: I believe we export ac_cv_exeext for Libtool,
1819: # but it would be cool to find out if it's true. Does anybody
1820: # maintain Libtool? --akim.
1821: export ac_cv_exeext
1822: break;;
1.3 jlam 1823: * )
1.9 grant 1824: break;;
1.3 jlam 1825: esac
1826: done
1827: else
1828: echo "$as_me: failed program was:" >&5
1829: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 1830:
1.3 jlam 1831: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832: See \`config.log' for more details." >&5
1833: echo "$as_me: error: C compiler cannot create executables
1834: See \`config.log' for more details." >&2;}
1835: { (exit 77); exit 77; }; }
1836: fi
1837:
1838: ac_exeext=$ac_cv_exeext
1839: echo "$as_me:$LINENO: result: $ac_file" >&5
1840: echo "${ECHO_T}$ac_file" >&6
1841:
1842: # Check the compiler produces executables we can run. If not, either
1843: # the compiler is broken, or we cross compile.
1844: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847: # If not cross compiling, check that we can run a simple program.
1848: if test "$cross_compiling" != yes; then
1849: if { ac_try='./$ac_file'
1850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851: (eval $ac_try) 2>&5
1852: ac_status=$?
1853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854: (exit $ac_status); }; }; then
1855: cross_compiling=no
1.1 schmonz 1856: else
1.3 jlam 1857: if test "$cross_compiling" = maybe; then
1858: cross_compiling=yes
1859: else
1860: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861: If you meant to cross compile, use \`--host'.
1862: See \`config.log' for more details." >&5
1863: echo "$as_me: error: cannot run C compiled programs.
1864: If you meant to cross compile, use \`--host'.
1865: See \`config.log' for more details." >&2;}
1866: { (exit 1); exit 1; }; }
1867: fi
1.1 schmonz 1868: fi
1.3 jlam 1869: fi
1870: echo "$as_me:$LINENO: result: yes" >&5
1871: echo "${ECHO_T}yes" >&6
1872:
1873: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874: ac_clean_files=$ac_clean_files_save
1875: # Check the compiler produces executables we can run. If not, either
1876: # the compiler is broken, or we cross compile.
1877: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880: echo "${ECHO_T}$cross_compiling" >&6
1881:
1882: echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885: (eval $ac_link) 2>&5
1886: ac_status=$?
1887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888: (exit $ac_status); }; then
1889: # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891: # work properly (i.e., refer to `conftest.exe'), while it won't with
1892: # `rm'.
1893: for ac_file in conftest.exe conftest conftest.*; do
1894: test -f "$ac_file" || continue
1895: case $ac_file in
1896: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.9 grant 1898: export ac_cv_exeext
1899: break;;
1.3 jlam 1900: * ) break;;
1901: esac
1902: done
1.1 schmonz 1903: else
1.3 jlam 1904: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905: See \`config.log' for more details." >&5
1906: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907: See \`config.log' for more details." >&2;}
1908: { (exit 1); exit 1; }; }
1909: fi
1910:
1911: rm -f conftest$ac_cv_exeext
1912: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913: echo "${ECHO_T}$ac_cv_exeext" >&6
1914:
1915: rm -f conftest.$ac_ext
1916: EXEEXT=$ac_cv_exeext
1917: ac_exeext=$EXEEXT
1918: echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920: if test "${ac_cv_objext+set}" = set; then
1921: echo $ECHO_N "(cached) $ECHO_C" >&6
1922: else
1923: cat >conftest.$ac_ext <<_ACEOF
1924: /* confdefs.h. */
1925: _ACEOF
1926: cat confdefs.h >>conftest.$ac_ext
1927: cat >>conftest.$ac_ext <<_ACEOF
1928: /* end confdefs.h. */
1.1 schmonz 1929:
1.3 jlam 1930: int
1931: main ()
1932: {
1.1 schmonz 1933:
1.3 jlam 1934: ;
1935: return 0;
1936: }
1937: _ACEOF
1938: rm -f conftest.o conftest.obj
1939: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940: (eval $ac_compile) 2>&5
1941: ac_status=$?
1942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943: (exit $ac_status); }; then
1944: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945: case $ac_file in
1946: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948: break;;
1949: esac
1950: done
1.1 schmonz 1951: else
1.3 jlam 1952: echo "$as_me: failed program was:" >&5
1953: sed 's/^/| /' conftest.$ac_ext >&5
1954:
1955: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956: See \`config.log' for more details." >&5
1957: echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958: See \`config.log' for more details." >&2;}
1959: { (exit 1); exit 1; }; }
1960: fi
1961:
1962: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963: fi
1964: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965: echo "${ECHO_T}$ac_cv_objext" >&6
1966: OBJEXT=$ac_cv_objext
1967: ac_objext=$OBJEXT
1968: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971: echo $ECHO_N "(cached) $ECHO_C" >&6
1972: else
1973: cat >conftest.$ac_ext <<_ACEOF
1974: /* confdefs.h. */
1975: _ACEOF
1976: cat confdefs.h >>conftest.$ac_ext
1977: cat >>conftest.$ac_ext <<_ACEOF
1978: /* end confdefs.h. */
1979:
1980: int
1981: main ()
1982: {
1983: #ifndef __GNUC__
1984: choke me
1.1 schmonz 1985: #endif
1986:
1.3 jlam 1987: ;
1988: return 0;
1989: }
1990: _ACEOF
1991: rm -f conftest.$ac_objext
1992: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 1993: (eval $ac_compile) 2>conftest.er1
1.3 jlam 1994: ac_status=$?
1.9 grant 1995: grep -v '^ *+' conftest.er1 >conftest.err
1996: rm -f conftest.er1
1997: cat conftest.err >&5
1.3 jlam 1998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999: (exit $ac_status); } &&
1.9 grant 2000: { ac_try='test -z "$ac_c_werror_flag"
2001: || test ! -s conftest.err'
2002: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003: (eval $ac_try) 2>&5
2004: ac_status=$?
2005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006: (exit $ac_status); }; } &&
2007: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2008: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009: (eval $ac_try) 2>&5
2010: ac_status=$?
2011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012: (exit $ac_status); }; }; then
2013: ac_compiler_gnu=yes
2014: else
2015: echo "$as_me: failed program was:" >&5
2016: sed 's/^/| /' conftest.$ac_ext >&5
2017:
2018: ac_compiler_gnu=no
2019: fi
1.9 grant 2020: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 2021: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022:
2023: fi
2024: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026: GCC=`test $ac_compiler_gnu = yes && echo yes`
2027: ac_test_CFLAGS=${CFLAGS+set}
2028: ac_save_CFLAGS=$CFLAGS
2029: CFLAGS="-g"
2030: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032: if test "${ac_cv_prog_cc_g+set}" = set; then
2033: echo $ECHO_N "(cached) $ECHO_C" >&6
2034: else
2035: cat >conftest.$ac_ext <<_ACEOF
2036: /* confdefs.h. */
2037: _ACEOF
2038: cat confdefs.h >>conftest.$ac_ext
2039: cat >>conftest.$ac_ext <<_ACEOF
2040: /* end confdefs.h. */
1.1 schmonz 2041:
1.3 jlam 2042: int
2043: main ()
2044: {
1.1 schmonz 2045:
1.3 jlam 2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: rm -f conftest.$ac_objext
2051: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 2052: (eval $ac_compile) 2>conftest.er1
1.3 jlam 2053: ac_status=$?
1.9 grant 2054: grep -v '^ *+' conftest.er1 >conftest.err
2055: rm -f conftest.er1
2056: cat conftest.err >&5
1.3 jlam 2057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058: (exit $ac_status); } &&
1.9 grant 2059: { ac_try='test -z "$ac_c_werror_flag"
2060: || test ! -s conftest.err'
2061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062: (eval $ac_try) 2>&5
2063: ac_status=$?
2064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065: (exit $ac_status); }; } &&
2066: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068: (eval $ac_try) 2>&5
2069: ac_status=$?
2070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071: (exit $ac_status); }; }; then
1.1 schmonz 2072: ac_cv_prog_cc_g=yes
2073: else
1.3 jlam 2074: echo "$as_me: failed program was:" >&5
2075: sed 's/^/| /' conftest.$ac_ext >&5
2076:
2077: ac_cv_prog_cc_g=no
1.1 schmonz 2078: fi
1.9 grant 2079: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 schmonz 2080: fi
1.3 jlam 2081: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 schmonz 2083: if test "$ac_test_CFLAGS" = set; then
1.3 jlam 2084: CFLAGS=$ac_save_CFLAGS
1.1 schmonz 2085: elif test $ac_cv_prog_cc_g = yes; then
2086: if test "$GCC" = yes; then
2087: CFLAGS="-g -O2"
2088: else
2089: CFLAGS="-g"
2090: fi
2091: else
2092: if test "$GCC" = yes; then
2093: CFLAGS="-O2"
2094: else
2095: CFLAGS=
2096: fi
2097: fi
1.3 jlam 2098: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101: echo $ECHO_N "(cached) $ECHO_C" >&6
2102: else
2103: ac_cv_prog_cc_stdc=no
2104: ac_save_CC=$CC
2105: cat >conftest.$ac_ext <<_ACEOF
2106: /* confdefs.h. */
2107: _ACEOF
2108: cat confdefs.h >>conftest.$ac_ext
2109: cat >>conftest.$ac_ext <<_ACEOF
2110: /* end confdefs.h. */
2111: #include <stdarg.h>
2112: #include <stdio.h>
2113: #include <sys/types.h>
2114: #include <sys/stat.h>
2115: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116: struct buf { int x; };
2117: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118: static char *e (p, i)
2119: char **p;
2120: int i;
2121: {
2122: return p[i];
2123: }
2124: static char *f (char * (*g) (char **, int), char **p, ...)
2125: {
2126: char *s;
2127: va_list v;
2128: va_start (v,p);
2129: s = g (p, va_arg (v,int));
2130: va_end (v);
2131: return s;
2132: }
1.9 grant 2133:
2134: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135: function prototypes and stuff, but not '\xHH' hex character constants.
2136: These don't provoke an error unfortunately, instead are silently treated
2137: as 'x'. The following induces an error, until -std1 is added to get
2138: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139: array size at least. It's necessary to write '\x00'==0 to get something
2140: that's true only with -std1. */
2141: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142:
1.3 jlam 2143: int test (int i, double x);
2144: struct s1 {int (*f) (int a);};
2145: struct s2 {int (*f) (double a);};
2146: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147: int argc;
2148: char **argv;
2149: int
2150: main ()
2151: {
2152: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153: ;
2154: return 0;
2155: }
2156: _ACEOF
2157: # Don't try gcc -ansi; that turns off useful extensions and
2158: # breaks some systems' header files.
2159: # AIX -qlanglvl=ansi
2160: # Ultrix and OSF/1 -std1
2161: # HP-UX 10.20 and later -Ae
2162: # HP-UX older versions -Aa -D_HPUX_SOURCE
2163: # SVR4 -Xc -D__EXTENSIONS__
2164: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165: do
2166: CC="$ac_save_CC $ac_arg"
2167: rm -f conftest.$ac_objext
2168: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 2169: (eval $ac_compile) 2>conftest.er1
1.3 jlam 2170: ac_status=$?
1.9 grant 2171: grep -v '^ *+' conftest.er1 >conftest.err
2172: rm -f conftest.er1
2173: cat conftest.err >&5
1.3 jlam 2174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175: (exit $ac_status); } &&
1.9 grant 2176: { ac_try='test -z "$ac_c_werror_flag"
2177: || test ! -s conftest.err'
2178: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179: (eval $ac_try) 2>&5
2180: ac_status=$?
2181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182: (exit $ac_status); }; } &&
2183: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2184: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185: (eval $ac_try) 2>&5
2186: ac_status=$?
2187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188: (exit $ac_status); }; }; then
2189: ac_cv_prog_cc_stdc=$ac_arg
2190: break
2191: else
2192: echo "$as_me: failed program was:" >&5
2193: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 2194:
2195: fi
1.9 grant 2196: rm -f conftest.err conftest.$ac_objext
1.3 jlam 2197: done
2198: rm -f conftest.$ac_ext conftest.$ac_objext
2199: CC=$ac_save_CC
2200:
1.1 schmonz 2201: fi
2202:
1.3 jlam 2203: case "x$ac_cv_prog_cc_stdc" in
2204: x|xno)
2205: echo "$as_me:$LINENO: result: none needed" >&5
2206: echo "${ECHO_T}none needed" >&6 ;;
2207: *)
2208: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210: CC="$CC $ac_cv_prog_cc_stdc" ;;
2211: esac
2212:
2213: # Some people use a C++ compiler to compile C. Since we use `exit',
2214: # in C++ we need to declare it. In case someone uses the same compiler
2215: # for both compiling C and C++ we need to have the C++ compiler decide
2216: # the declaration of exit, since it's the most demanding environment.
2217: cat >conftest.$ac_ext <<_ACEOF
2218: #ifndef __cplusplus
2219: choke me
2220: #endif
2221: _ACEOF
2222: rm -f conftest.$ac_objext
2223: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 2224: (eval $ac_compile) 2>conftest.er1
1.3 jlam 2225: ac_status=$?
1.9 grant 2226: grep -v '^ *+' conftest.er1 >conftest.err
2227: rm -f conftest.er1
2228: cat conftest.err >&5
1.3 jlam 2229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230: (exit $ac_status); } &&
1.9 grant 2231: { ac_try='test -z "$ac_c_werror_flag"
2232: || test ! -s conftest.err'
2233: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234: (eval $ac_try) 2>&5
2235: ac_status=$?
2236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237: (exit $ac_status); }; } &&
2238: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2239: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240: (eval $ac_try) 2>&5
2241: ac_status=$?
2242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243: (exit $ac_status); }; }; then
2244: for ac_declaration in \
1.9 grant 2245: '' \
1.3 jlam 2246: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247: 'extern "C" void std::exit (int); using std::exit;' \
2248: 'extern "C" void exit (int) throw ();' \
2249: 'extern "C" void exit (int);' \
2250: 'void exit (int);'
1.1 schmonz 2251: do
1.3 jlam 2252: cat >conftest.$ac_ext <<_ACEOF
2253: /* confdefs.h. */
2254: _ACEOF
2255: cat confdefs.h >>conftest.$ac_ext
2256: cat >>conftest.$ac_ext <<_ACEOF
2257: /* end confdefs.h. */
1.9 grant 2258: $ac_declaration
1.3 jlam 2259: #include <stdlib.h>
2260: int
2261: main ()
2262: {
2263: exit (42);
2264: ;
2265: return 0;
2266: }
2267: _ACEOF
2268: rm -f conftest.$ac_objext
2269: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 2270: (eval $ac_compile) 2>conftest.er1
1.3 jlam 2271: ac_status=$?
1.9 grant 2272: grep -v '^ *+' conftest.er1 >conftest.err
2273: rm -f conftest.er1
2274: cat conftest.err >&5
1.3 jlam 2275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276: (exit $ac_status); } &&
1.9 grant 2277: { ac_try='test -z "$ac_c_werror_flag"
2278: || test ! -s conftest.err'
2279: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280: (eval $ac_try) 2>&5
2281: ac_status=$?
2282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283: (exit $ac_status); }; } &&
2284: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286: (eval $ac_try) 2>&5
2287: ac_status=$?
2288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289: (exit $ac_status); }; }; then
2290: :
1.1 schmonz 2291: else
1.3 jlam 2292: echo "$as_me: failed program was:" >&5
2293: sed 's/^/| /' conftest.$ac_ext >&5
2294:
2295: continue
2296: fi
1.9 grant 2297: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 2298: cat >conftest.$ac_ext <<_ACEOF
2299: /* confdefs.h. */
2300: _ACEOF
2301: cat confdefs.h >>conftest.$ac_ext
2302: cat >>conftest.$ac_ext <<_ACEOF
2303: /* end confdefs.h. */
2304: $ac_declaration
2305: int
2306: main ()
2307: {
2308: exit (42);
2309: ;
2310: return 0;
2311: }
2312: _ACEOF
2313: rm -f conftest.$ac_objext
2314: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 2315: (eval $ac_compile) 2>conftest.er1
1.3 jlam 2316: ac_status=$?
1.9 grant 2317: grep -v '^ *+' conftest.er1 >conftest.err
2318: rm -f conftest.er1
2319: cat conftest.err >&5
1.3 jlam 2320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321: (exit $ac_status); } &&
1.9 grant 2322: { ac_try='test -z "$ac_c_werror_flag"
2323: || test ! -s conftest.err'
2324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325: (eval $ac_try) 2>&5
2326: ac_status=$?
2327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328: (exit $ac_status); }; } &&
2329: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 2330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331: (eval $ac_try) 2>&5
2332: ac_status=$?
2333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334: (exit $ac_status); }; }; then
2335: break
1.1 schmonz 2336: else
1.3 jlam 2337: echo "$as_me: failed program was:" >&5
2338: sed 's/^/| /' conftest.$ac_ext >&5
2339:
1.1 schmonz 2340: fi
1.9 grant 2341: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 2342: done
2343: rm -f conftest*
2344: if test -n "$ac_declaration"; then
2345: echo '#ifdef __cplusplus' >>confdefs.h
2346: echo $ac_declaration >>confdefs.h
2347: echo '#endif' >>confdefs.h
1.1 schmonz 2348: fi
1.3 jlam 2349:
1.1 schmonz 2350: else
1.3 jlam 2351: echo "$as_me: failed program was:" >&5
2352: sed 's/^/| /' conftest.$ac_ext >&5
2353:
1.1 schmonz 2354: fi
1.9 grant 2355: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 2356: ac_ext=c
2357: ac_cpp='$CPP $CPPFLAGS'
2358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 schmonz 2361:
1.3 jlam 2362: # Find a good install program. We prefer a C program (faster),
2363: # so one script is as good as another. But avoid the broken or
2364: # incompatible versions:
2365: # SysV /etc/install, /usr/sbin/install
2366: # SunOS /usr/etc/install
2367: # IRIX /sbin/install
2368: # AIX /bin/install
2369: # AmigaOS /C/install, which installs bootblocks on floppy discs
2370: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.9 grant 2373: # OS/2's system install, which has a completely different semantic
1.3 jlam 2374: # ./install, which can be erroneously created by make from ./install.sh.
2375: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2376: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2377: if test -z "$INSTALL"; then
2378: if test "${ac_cv_path_install+set}" = set; then
2379: echo $ECHO_N "(cached) $ECHO_C" >&6
2380: else
2381: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382: for as_dir in $PATH
1.1 schmonz 2383: do
1.3 jlam 2384: IFS=$as_save_IFS
2385: test -z "$as_dir" && as_dir=.
2386: # Account for people who put trailing slashes in PATH elements.
2387: case $as_dir/ in
2388: ./ | .// | /cC/* | \
2389: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.9 grant 2390: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.3 jlam 2391: /usr/ucb/* ) ;;
1.1 schmonz 2392: *)
1.3 jlam 2393: # OSF1 and SCO ODT 3.0 have their own names for install.
2394: # Don't use installbsd from OSF since it installs stuff as root
2395: # by default.
2396: for ac_prog in ginstall scoinst install; do
2397: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 grant 2398: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2399: if test $ac_prog = install &&
2400: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401: # AIX install. It has an incompatible calling convention.
2402: :
2403: elif test $ac_prog = install &&
2404: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2405: # program-specific install script used by HP pwplus--don't use.
2406: :
2407: else
2408: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2409: break 3
2410: fi
2411: fi
1.3 jlam 2412: done
2413: done
2414: ;;
1.1 schmonz 2415: esac
1.3 jlam 2416: done
2417:
2418:
1.1 schmonz 2419: fi
1.3 jlam 2420: if test "${ac_cv_path_install+set}" = set; then
2421: INSTALL=$ac_cv_path_install
2422: else
2423: # As a last resort, use the slow shell script. We don't cache a
2424: # path for INSTALL within a source directory, because that will
2425: # break other packages using the cache if that directory is
2426: # removed, or if the path is relative.
2427: INSTALL=$ac_install_sh
2428: fi
1.1 schmonz 2429: fi
1.3 jlam 2430: echo "$as_me:$LINENO: result: $INSTALL" >&5
2431: echo "${ECHO_T}$INSTALL" >&6
2432:
2433: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434: # It thinks the first close brace ends the variable substitution.
2435: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2436:
2437: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2438:
2439: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 schmonz 2440:
1.3 jlam 2441: echo "$as_me:$LINENO: checking whether ln -s works" >&5
2442: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2443: LN_S=$as_ln_s
2444: if test "$LN_S" = "ln -s"; then
2445: echo "$as_me:$LINENO: result: yes" >&5
2446: echo "${ECHO_T}yes" >&6
2447: else
2448: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2449: echo "${ECHO_T}no, using $LN_S" >&6
2450: fi
2451:
2452: if test -n "$ac_tool_prefix"; then
2453: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2454: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2455: echo "$as_me:$LINENO: checking for $ac_word" >&5
2456: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457: if test "${ac_cv_prog_RANLIB+set}" = set; then
2458: echo $ECHO_N "(cached) $ECHO_C" >&6
2459: else
2460: if test -n "$RANLIB"; then
2461: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2462: else
2463: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464: for as_dir in $PATH
2465: do
2466: IFS=$as_save_IFS
2467: test -z "$as_dir" && as_dir=.
2468: for ac_exec_ext in '' $ac_executable_extensions; do
2469: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2471: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472: break 2
2473: fi
2474: done
1.1 schmonz 2475: done
2476:
2477: fi
1.3 jlam 2478: fi
2479: RANLIB=$ac_cv_prog_RANLIB
2480: if test -n "$RANLIB"; then
2481: echo "$as_me:$LINENO: result: $RANLIB" >&5
2482: echo "${ECHO_T}$RANLIB" >&6
1.1 schmonz 2483: else
1.3 jlam 2484: echo "$as_me:$LINENO: result: no" >&5
2485: echo "${ECHO_T}no" >&6
1.1 schmonz 2486: fi
2487:
1.3 jlam 2488: fi
2489: if test -z "$ac_cv_prog_RANLIB"; then
2490: ac_ct_RANLIB=$RANLIB
2491: # Extract the first word of "ranlib", so it can be a program name with args.
2492: set dummy ranlib; ac_word=$2
2493: echo "$as_me:$LINENO: checking for $ac_word" >&5
2494: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2496: echo $ECHO_N "(cached) $ECHO_C" >&6
2497: else
2498: if test -n "$ac_ct_RANLIB"; then
2499: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2500: else
2501: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502: for as_dir in $PATH
2503: do
2504: IFS=$as_save_IFS
2505: test -z "$as_dir" && as_dir=.
2506: for ac_exec_ext in '' $ac_executable_extensions; do
2507: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508: ac_cv_prog_ac_ct_RANLIB="ranlib"
2509: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510: break 2
2511: fi
2512: done
1.1 schmonz 2513: done
2514:
1.3 jlam 2515: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2516: fi
1.1 schmonz 2517: fi
1.3 jlam 2518: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2519: if test -n "$ac_ct_RANLIB"; then
2520: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2521: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 schmonz 2522: else
1.3 jlam 2523: echo "$as_me:$LINENO: result: no" >&5
2524: echo "${ECHO_T}no" >&6
1.1 schmonz 2525: fi
2526:
1.3 jlam 2527: RANLIB=$ac_ct_RANLIB
2528: else
2529: RANLIB="$ac_cv_prog_RANLIB"
2530: fi
2531:
2532: # Extract the first word of "ar", so it can be a program name with args.
2533: set dummy ar; ac_word=$2
2534: echo "$as_me:$LINENO: checking for $ac_word" >&5
2535: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536: if test "${ac_cv_prog_AR+set}" = set; then
2537: echo $ECHO_N "(cached) $ECHO_C" >&6
2538: else
2539: if test -n "$AR"; then
2540: ac_cv_prog_AR="$AR" # Let the user override the test.
2541: else
2542: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543: for as_dir in $PATH
2544: do
2545: IFS=$as_save_IFS
2546: test -z "$as_dir" && as_dir=.
2547: for ac_exec_ext in '' $ac_executable_extensions; do
2548: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549: ac_cv_prog_AR="ar"
2550: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551: break 2
2552: fi
2553: done
1.1 schmonz 2554: done
2555:
2556: fi
1.3 jlam 2557: fi
2558: AR=$ac_cv_prog_AR
2559: if test -n "$AR"; then
2560: echo "$as_me:$LINENO: result: $AR" >&5
2561: echo "${ECHO_T}$AR" >&6
1.1 schmonz 2562: else
1.3 jlam 2563: echo "$as_me:$LINENO: result: no" >&5
2564: echo "${ECHO_T}no" >&6
1.1 schmonz 2565: fi
2566:
2567:
1.5 jlam 2568: # Extract the first word of "chmod", so it can be a program name with args.
2569: set dummy chmod; ac_word=$2
2570: echo "$as_me:$LINENO: checking for $ac_word" >&5
2571: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572: if test "${ac_cv_path_CHMOD+set}" = set; then
2573: echo $ECHO_N "(cached) $ECHO_C" >&6
2574: else
2575: case $CHMOD in
2576: [\\/]* | ?:[\\/]*)
2577: ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
2578: ;;
2579: *)
2580: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581: for as_dir in $PATH
2582: do
2583: IFS=$as_save_IFS
2584: test -z "$as_dir" && as_dir=.
2585: for ac_exec_ext in '' $ac_executable_extensions; do
2586: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587: ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
2588: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589: break 2
2590: fi
2591: done
2592: done
2593:
2594: ;;
2595: esac
2596: fi
2597: CHMOD=$ac_cv_path_CHMOD
2598:
2599: if test -n "$CHMOD"; then
2600: echo "$as_me:$LINENO: result: $CHMOD" >&5
2601: echo "${ECHO_T}$CHMOD" >&6
2602: else
2603: echo "$as_me:$LINENO: result: no" >&5
2604: echo "${ECHO_T}no" >&6
2605: fi
2606:
2607: # Extract the first word of "cmp", so it can be a program name with args.
2608: set dummy cmp; ac_word=$2
2609: echo "$as_me:$LINENO: checking for $ac_word" >&5
2610: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2611: if test "${ac_cv_path_CMP+set}" = set; then
2612: echo $ECHO_N "(cached) $ECHO_C" >&6
2613: else
2614: case $CMP in
2615: [\\/]* | ?:[\\/]*)
2616: ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
2617: ;;
2618: *)
2619: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620: for as_dir in $PATH
2621: do
2622: IFS=$as_save_IFS
2623: test -z "$as_dir" && as_dir=.
2624: for ac_exec_ext in '' $ac_executable_extensions; do
2625: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626: ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
2627: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628: break 2
2629: fi
2630: done
2631: done
2632:
2633: ;;
2634: esac
2635: fi
2636: CMP=$ac_cv_path_CMP
2637:
2638: if test -n "$CMP"; then
2639: echo "$as_me:$LINENO: result: $CMP" >&5
2640: echo "${ECHO_T}$CMP" >&6
2641: else
2642: echo "$as_me:$LINENO: result: no" >&5
2643: echo "${ECHO_T}no" >&6
2644: fi
2645:
2646: # Extract the first word of "cp", so it can be a program name with args.
2647: set dummy cp; ac_word=$2
2648: echo "$as_me:$LINENO: checking for $ac_word" >&5
2649: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650: if test "${ac_cv_path_CP+set}" = set; then
2651: echo $ECHO_N "(cached) $ECHO_C" >&6
2652: else
2653: case $CP in
2654: [\\/]* | ?:[\\/]*)
2655: ac_cv_path_CP="$CP" # Let the user override the test with a path.
2656: ;;
2657: *)
2658: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659: for as_dir in $PATH
2660: do
2661: IFS=$as_save_IFS
2662: test -z "$as_dir" && as_dir=.
2663: for ac_exec_ext in '' $ac_executable_extensions; do
2664: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665: ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2666: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667: break 2
2668: fi
2669: done
2670: done
2671:
2672: ;;
2673: esac
2674: fi
2675: CP=$ac_cv_path_CP
2676:
2677: if test -n "$CP"; then
2678: echo "$as_me:$LINENO: result: $CP" >&5
2679: echo "${ECHO_T}$CP" >&6
2680: else
2681: echo "$as_me:$LINENO: result: no" >&5
2682: echo "${ECHO_T}no" >&6
2683: fi
2684:
2685: # Extract the first word of "env", so it can be a program name with args.
2686: set dummy env; ac_word=$2
2687: echo "$as_me:$LINENO: checking for $ac_word" >&5
2688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2689: if test "${ac_cv_path_ENV+set}" = set; then
2690: echo $ECHO_N "(cached) $ECHO_C" >&6
2691: else
2692: case $ENV in
2693: [\\/]* | ?:[\\/]*)
2694: ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
2695: ;;
2696: *)
2697: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698: for as_dir in $PATH
2699: do
2700: IFS=$as_save_IFS
2701: test -z "$as_dir" && as_dir=.
2702: for ac_exec_ext in '' $ac_executable_extensions; do
2703: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704: ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
2705: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706: break 2
2707: fi
2708: done
2709: done
2710:
2711: ;;
2712: esac
2713: fi
2714: ENV=$ac_cv_path_ENV
2715:
2716: if test -n "$ENV"; then
2717: echo "$as_me:$LINENO: result: $ENV" >&5
2718: echo "${ECHO_T}$ENV" >&6
2719: else
2720: echo "$as_me:$LINENO: result: no" >&5
2721: echo "${ECHO_T}no" >&6
2722: fi
2723:
2724: # Extract the first word of "find", so it can be a program name with args.
2725: set dummy find; ac_word=$2
2726: echo "$as_me:$LINENO: checking for $ac_word" >&5
2727: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728: if test "${ac_cv_path_FIND+set}" = set; then
2729: echo $ECHO_N "(cached) $ECHO_C" >&6
2730: else
2731: case $FIND in
2732: [\\/]* | ?:[\\/]*)
2733: ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2734: ;;
2735: *)
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: for ac_exec_ext in '' $ac_executable_extensions; do
2742: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743: ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
2744: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745: break 2
2746: fi
2747: done
2748: done
2749:
2750: ;;
2751: esac
2752: fi
2753: FIND=$ac_cv_path_FIND
2754:
2755: if test -n "$FIND"; then
2756: echo "$as_me:$LINENO: result: $FIND" >&5
2757: echo "${ECHO_T}$FIND" >&6
2758: else
2759: echo "$as_me:$LINENO: result: no" >&5
2760: echo "${ECHO_T}no" >&6
2761: fi
2762:
2763: # Extract the first word of "grep", so it can be a program name with args.
2764: set dummy grep; ac_word=$2
2765: echo "$as_me:$LINENO: checking for $ac_word" >&5
2766: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767: if test "${ac_cv_path_GREP+set}" = set; then
2768: echo $ECHO_N "(cached) $ECHO_C" >&6
2769: else
2770: case $GREP in
2771: [\\/]* | ?:[\\/]*)
2772: ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2773: ;;
2774: *)
2775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776: for as_dir in $PATH
2777: do
2778: IFS=$as_save_IFS
2779: test -z "$as_dir" && as_dir=.
2780: for ac_exec_ext in '' $ac_executable_extensions; do
2781: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782: ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2783: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784: break 2
2785: fi
2786: done
2787: done
2788:
2789: ;;
2790: esac
2791: fi
2792: GREP=$ac_cv_path_GREP
2793:
2794: if test -n "$GREP"; then
2795: echo "$as_me:$LINENO: result: $GREP" >&5
2796: echo "${ECHO_T}$GREP" >&6
2797: else
2798: echo "$as_me:$LINENO: result: no" >&5
2799: echo "${ECHO_T}no" >&6
2800: fi
2801:
2802: # Extract the first word of "ln", so it can be a program name with args.
2803: set dummy ln; ac_word=$2
2804: echo "$as_me:$LINENO: checking for $ac_word" >&5
2805: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806: if test "${ac_cv_path_LN+set}" = set; then
2807: echo $ECHO_N "(cached) $ECHO_C" >&6
2808: else
2809: case $LN in
2810: [\\/]* | ?:[\\/]*)
2811: ac_cv_path_LN="$LN" # Let the user override the test with a path.
2812: ;;
2813: *)
2814: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815: for as_dir in $PATH
2816: do
2817: IFS=$as_save_IFS
2818: test -z "$as_dir" && as_dir=.
2819: for ac_exec_ext in '' $ac_executable_extensions; do
2820: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821: ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
2822: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823: break 2
2824: fi
2825: done
2826: done
2827:
2828: ;;
2829: esac
2830: fi
2831: LN=$ac_cv_path_LN
2832:
2833: if test -n "$LN"; then
2834: echo "$as_me:$LINENO: result: $LN" >&5
2835: echo "${ECHO_T}$LN" >&6
2836: else
2837: echo "$as_me:$LINENO: result: no" >&5
2838: echo "${ECHO_T}no" >&6
2839: fi
2840:
2841: # Extract the first word of "mkdir", so it can be a program name with args.
2842: set dummy mkdir; ac_word=$2
2843: echo "$as_me:$LINENO: checking for $ac_word" >&5
2844: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845: if test "${ac_cv_path_MKDIR+set}" = set; then
2846: echo $ECHO_N "(cached) $ECHO_C" >&6
2847: else
2848: case $MKDIR in
2849: [\\/]* | ?:[\\/]*)
2850: ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
2851: ;;
2852: *)
2853: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854: for as_dir in $PATH
2855: do
2856: IFS=$as_save_IFS
2857: test -z "$as_dir" && as_dir=.
2858: for ac_exec_ext in '' $ac_executable_extensions; do
2859: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860: ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
2861: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862: break 2
2863: fi
2864: done
2865: done
2866:
2867: ;;
2868: esac
2869: fi
2870: MKDIR=$ac_cv_path_MKDIR
2871:
2872: if test -n "$MKDIR"; then
2873: echo "$as_me:$LINENO: result: $MKDIR" >&5
2874: echo "${ECHO_T}$MKDIR" >&6
2875: else
2876: echo "$as_me:$LINENO: result: no" >&5
2877: echo "${ECHO_T}no" >&6
2878: fi
2879:
2880: # Extract the first word of "rmdir", so it can be a program name with args.
2881: set dummy rmdir; ac_word=$2
2882: echo "$as_me:$LINENO: checking for $ac_word" >&5
2883: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884: if test "${ac_cv_path_RMDIR+set}" = set; then
2885: echo $ECHO_N "(cached) $ECHO_C" >&6
2886: else
2887: case $RMDIR in
2888: [\\/]* | ?:[\\/]*)
2889: ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
2890: ;;
2891: *)
2892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893: for as_dir in $PATH
2894: do
2895: IFS=$as_save_IFS
2896: test -z "$as_dir" && as_dir=.
2897: for ac_exec_ext in '' $ac_executable_extensions; do
2898: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899: ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
2900: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901: break 2
2902: fi
2903: done
2904: done
2905:
2906: ;;
2907: esac
2908: fi
2909: RMDIR=$ac_cv_path_RMDIR
2910:
2911: if test -n "$RMDIR"; then
2912: echo "$as_me:$LINENO: result: $RMDIR" >&5
2913: echo "${ECHO_T}$RMDIR" >&6
2914: else
2915: echo "$as_me:$LINENO: result: no" >&5
2916: echo "${ECHO_T}no" >&6
2917: fi
2918:
2919: # Extract the first word of "rm", so it can be a program name with args.
2920: set dummy rm; ac_word=$2
2921: echo "$as_me:$LINENO: checking for $ac_word" >&5
2922: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923: if test "${ac_cv_path_RM+set}" = set; then
2924: echo $ECHO_N "(cached) $ECHO_C" >&6
2925: else
2926: case $RM in
2927: [\\/]* | ?:[\\/]*)
2928: ac_cv_path_RM="$RM" # Let the user override the test with a path.
2929: ;;
2930: *)
2931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932: for as_dir in $PATH
2933: do
2934: IFS=$as_save_IFS
2935: test -z "$as_dir" && as_dir=.
2936: for ac_exec_ext in '' $ac_executable_extensions; do
2937: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938: ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2939: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940: break 2
2941: fi
2942: done
2943: done
2944:
2945: ;;
2946: esac
2947: fi
2948: RM=$ac_cv_path_RM
2949:
2950: if test -n "$RM"; then
2951: echo "$as_me:$LINENO: result: $RM" >&5
2952: echo "${ECHO_T}$RM" >&6
2953: else
2954: echo "$as_me:$LINENO: result: no" >&5
2955: echo "${ECHO_T}no" >&6
2956: fi
2957:
2958: # Extract the first word of "sed", so it can be a program name with args.
2959: set dummy sed; ac_word=$2
2960: echo "$as_me:$LINENO: checking for $ac_word" >&5
2961: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962: if test "${ac_cv_path_SED+set}" = set; then
2963: echo $ECHO_N "(cached) $ECHO_C" >&6
2964: else
2965: case $SED in
2966: [\\/]* | ?:[\\/]*)
2967: ac_cv_path_SED="$SED" # Let the user override the test with a path.
2968: ;;
2969: *)
2970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971: for as_dir in $PATH
2972: do
2973: IFS=$as_save_IFS
2974: test -z "$as_dir" && as_dir=.
2975: for ac_exec_ext in '' $ac_executable_extensions; do
2976: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977: ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2978: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979: break 2
2980: fi
2981: done
2982: done
2983:
2984: ;;
2985: esac
2986: fi
2987: SED=$ac_cv_path_SED
2988:
2989: if test -n "$SED"; then
2990: echo "$as_me:$LINENO: result: $SED" >&5
2991: echo "${ECHO_T}$SED" >&6
2992: else
2993: echo "$as_me:$LINENO: result: no" >&5
2994: echo "${ECHO_T}no" >&6
2995: fi
2996:
2997: # Extract the first word of "sort", so it can be a program name with args.
2998: set dummy sort; ac_word=$2
2999: echo "$as_me:$LINENO: checking for $ac_word" >&5
3000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001: if test "${ac_cv_path_SORT+set}" = set; then
3002: echo $ECHO_N "(cached) $ECHO_C" >&6
3003: else
3004: case $SORT in
3005: [\\/]* | ?:[\\/]*)
3006: ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
3007: ;;
3008: *)
3009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010: for as_dir in $PATH
3011: do
3012: IFS=$as_save_IFS
3013: test -z "$as_dir" && as_dir=.
3014: for ac_exec_ext in '' $ac_executable_extensions; do
3015: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016: ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
3017: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018: break 2
3019: fi
3020: done
3021: done
3022:
3023: ;;
3024: esac
3025: fi
3026: SORT=$ac_cv_path_SORT
3027:
3028: if test -n "$SORT"; then
3029: echo "$as_me:$LINENO: result: $SORT" >&5
3030: echo "${ECHO_T}$SORT" >&6
3031: else
3032: echo "$as_me:$LINENO: result: no" >&5
3033: echo "${ECHO_T}no" >&6
3034: fi
3035:
3036: # Extract the first word of "touch", so it can be a program name with args.
3037: set dummy touch; ac_word=$2
3038: echo "$as_me:$LINENO: checking for $ac_word" >&5
3039: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040: if test "${ac_cv_path_TOUCH+set}" = set; then
3041: echo $ECHO_N "(cached) $ECHO_C" >&6
3042: else
3043: case $TOUCH in
3044: [\\/]* | ?:[\\/]*)
3045: ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
3046: ;;
3047: *)
3048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049: for as_dir in $PATH
3050: do
3051: IFS=$as_save_IFS
3052: test -z "$as_dir" && as_dir=.
3053: for ac_exec_ext in '' $ac_executable_extensions; do
3054: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055: ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
3056: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057: break 2
3058: fi
3059: done
3060: done
3061:
3062: ;;
3063: esac
3064: fi
3065: TOUCH=$ac_cv_path_TOUCH
3066:
3067: if test -n "$TOUCH"; then
3068: echo "$as_me:$LINENO: result: $TOUCH" >&5
3069: echo "${ECHO_T}$TOUCH" >&6
3070: else
3071: echo "$as_me:$LINENO: result: no" >&5
3072: echo "${ECHO_T}no" >&6
3073: fi
3074:
3075:
1.3 jlam 3076: AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
3077:
3078: AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
3079:
3080:
3081:
3082: # Check whether --with-pkgdbdir or --without-pkgdbdir was given.
3083: if test "${with_pkgdbdir+set}" = set; then
3084: withval="$with_pkgdbdir"
3085: pkgdbdir="$with_pkgdbdir"
1.1 schmonz 3086: else
1.3 jlam 3087: pkgdbdir="/var/db/pkg"
3088: fi;
3089:
3090:
1.1 schmonz 3091:
1.6 grant 3092: # Check whether --with-ftp or --without-ftp was given.
3093: if test "${with_ftp+set}" = set; then
3094: withval="$with_ftp"
3095: ftp="$with_ftp"
3096: else
3097: ftp='$(prefix)/bin/ftp'
3098: fi;
3099:
3100:
3101:
3102: # Check whether --with-tar or --without-tar was given.
3103: if test "${with_tar+set}" = set; then
3104: withval="$with_tar"
3105: tar="$with_tar"
3106: else
3107: tar='$(prefix)/bin/tar'
3108: fi;
3109:
3110:
3111:
3112: # Check whether --with-pax or --without-pax was given.
3113: if test "${with_pax+set}" = set; then
3114: withval="$with_pax"
3115: pax="$with_pax"
3116: else
3117: pax='$(prefix)/bin/pax'
3118: fi;
3119:
3120:
3121:
3122: # Check whether --with-mtree or --without-mtree was given.
3123: if test "${with_mtree+set}" = set; then
3124: withval="$with_mtree"
3125: mtree="$with_mtree"
3126: else
3127: mtree='$(sbindir)/mtree'
3128: fi;
3129:
3130:
3131:
1.1 schmonz 3132:
1.3 jlam 3133: echo "$as_me:$LINENO: checking for dbopen in -ldb1" >&5
3134: echo $ECHO_N "checking for dbopen in -ldb1... $ECHO_C" >&6
3135: if test "${ac_cv_lib_db1_dbopen+set}" = set; then
3136: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 3137: else
1.3 jlam 3138: ac_check_lib_save_LIBS=$LIBS
3139: LIBS="-ldb1 $LIBS"
3140: cat >conftest.$ac_ext <<_ACEOF
3141: /* confdefs.h. */
3142: _ACEOF
3143: cat confdefs.h >>conftest.$ac_ext
3144: cat >>conftest.$ac_ext <<_ACEOF
3145: /* end confdefs.h. */
3146:
3147: /* Override any gcc2 internal prototype to avoid an error. */
3148: #ifdef __cplusplus
3149: extern "C"
3150: #endif
3151: /* We use char because int might match the return type of a gcc2
3152: builtin and then its argument prototype would still apply. */
3153: char dbopen ();
3154: int
3155: main ()
3156: {
3157: dbopen ();
3158: ;
3159: return 0;
3160: }
3161: _ACEOF
3162: rm -f conftest.$ac_objext conftest$ac_exeext
3163: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 grant 3164: (eval $ac_link) 2>conftest.er1
1.3 jlam 3165: ac_status=$?
1.9 grant 3166: grep -v '^ *+' conftest.er1 >conftest.err
3167: rm -f conftest.er1
3168: cat conftest.err >&5
1.3 jlam 3169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170: (exit $ac_status); } &&
1.9 grant 3171: { ac_try='test -z "$ac_c_werror_flag"
3172: || test ! -s conftest.err'
3173: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174: (eval $ac_try) 2>&5
3175: ac_status=$?
3176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177: (exit $ac_status); }; } &&
3178: { ac_try='test -s conftest$ac_exeext'
1.3 jlam 3179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180: (eval $ac_try) 2>&5
3181: ac_status=$?
3182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183: (exit $ac_status); }; }; then
3184: ac_cv_lib_db1_dbopen=yes
3185: else
3186: echo "$as_me: failed program was:" >&5
3187: sed 's/^/| /' conftest.$ac_ext >&5
3188:
3189: ac_cv_lib_db1_dbopen=no
3190: fi
1.9 grant 3191: rm -f conftest.err conftest.$ac_objext \
3192: conftest$ac_exeext conftest.$ac_ext
1.3 jlam 3193: LIBS=$ac_check_lib_save_LIBS
3194: fi
3195: echo "$as_me:$LINENO: result: $ac_cv_lib_db1_dbopen" >&5
3196: echo "${ECHO_T}$ac_cv_lib_db1_dbopen" >&6
3197: if test $ac_cv_lib_db1_dbopen = yes; then
3198: cat >>confdefs.h <<_ACEOF
3199: #define HAVE_LIBDB1 1
3200: _ACEOF
3201:
3202: LIBS="-ldb1 $LIBS"
3203:
1.1 schmonz 3204: fi
3205:
1.3 jlam 3206: echo "$as_me:$LINENO: checking for library containing tgetent" >&5
3207: echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
3208: if test "${ac_cv_search_tgetent+set}" = set; then
3209: echo $ECHO_N "(cached) $ECHO_C" >&6
3210: else
3211: ac_func_search_save_LIBS=$LIBS
3212: ac_cv_search_tgetent=no
3213: cat >conftest.$ac_ext <<_ACEOF
3214: /* confdefs.h. */
3215: _ACEOF
3216: cat confdefs.h >>conftest.$ac_ext
3217: cat >>conftest.$ac_ext <<_ACEOF
3218: /* end confdefs.h. */
3219:
3220: /* Override any gcc2 internal prototype to avoid an error. */
3221: #ifdef __cplusplus
3222: extern "C"
3223: #endif
3224: /* We use char because int might match the return type of a gcc2
3225: builtin and then its argument prototype would still apply. */
3226: char tgetent ();
3227: int
3228: main ()
3229: {
3230: tgetent ();
3231: ;
3232: return 0;
3233: }
3234: _ACEOF
3235: rm -f conftest.$ac_objext conftest$ac_exeext
3236: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 grant 3237: (eval $ac_link) 2>conftest.er1
1.3 jlam 3238: ac_status=$?
1.9 grant 3239: grep -v '^ *+' conftest.er1 >conftest.err
3240: rm -f conftest.er1
3241: cat conftest.err >&5
1.3 jlam 3242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243: (exit $ac_status); } &&
1.9 grant 3244: { ac_try='test -z "$ac_c_werror_flag"
3245: || test ! -s conftest.err'
3246: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247: (eval $ac_try) 2>&5
3248: ac_status=$?
3249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250: (exit $ac_status); }; } &&
3251: { ac_try='test -s conftest$ac_exeext'
1.3 jlam 3252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253: (eval $ac_try) 2>&5
3254: ac_status=$?
3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); }; }; then
3257: ac_cv_search_tgetent="none required"
3258: else
3259: echo "$as_me: failed program was:" >&5
3260: sed 's/^/| /' conftest.$ac_ext >&5
3261:
3262: fi
1.9 grant 3263: rm -f conftest.err conftest.$ac_objext \
3264: conftest$ac_exeext conftest.$ac_ext
1.3 jlam 3265: if test "$ac_cv_search_tgetent" = no; then
3266: for ac_lib in termcap termlib curses ncurses; do
3267: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3268: cat >conftest.$ac_ext <<_ACEOF
3269: /* confdefs.h. */
3270: _ACEOF
3271: cat confdefs.h >>conftest.$ac_ext
3272: cat >>conftest.$ac_ext <<_ACEOF
3273: /* end confdefs.h. */
3274:
3275: /* Override any gcc2 internal prototype to avoid an error. */
3276: #ifdef __cplusplus
3277: extern "C"
3278: #endif
3279: /* We use char because int might match the return type of a gcc2
3280: builtin and then its argument prototype would still apply. */
3281: char tgetent ();
3282: int
3283: main ()
3284: {
3285: tgetent ();
3286: ;
3287: return 0;
3288: }
3289: _ACEOF
3290: rm -f conftest.$ac_objext conftest$ac_exeext
3291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 grant 3292: (eval $ac_link) 2>conftest.er1
1.3 jlam 3293: ac_status=$?
1.9 grant 3294: grep -v '^ *+' conftest.er1 >conftest.err
3295: rm -f conftest.er1
3296: cat conftest.err >&5
1.3 jlam 3297: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298: (exit $ac_status); } &&
1.9 grant 3299: { ac_try='test -z "$ac_c_werror_flag"
3300: || test ! -s conftest.err'
3301: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302: (eval $ac_try) 2>&5
3303: ac_status=$?
3304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305: (exit $ac_status); }; } &&
3306: { ac_try='test -s conftest$ac_exeext'
1.3 jlam 3307: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308: (eval $ac_try) 2>&5
3309: ac_status=$?
3310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311: (exit $ac_status); }; }; then
3312: ac_cv_search_tgetent="-l$ac_lib"
3313: break
3314: else
3315: echo "$as_me: failed program was:" >&5
3316: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 3317:
1.3 jlam 3318: fi
1.9 grant 3319: rm -f conftest.err conftest.$ac_objext \
3320: conftest$ac_exeext conftest.$ac_ext
1.1 schmonz 3321: done
3322: fi
1.3 jlam 3323: LIBS=$ac_func_search_save_LIBS
3324: fi
3325: echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
3326: echo "${ECHO_T}$ac_cv_search_tgetent" >&6
3327: if test "$ac_cv_search_tgetent" != no; then
3328: test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
3329:
1.1 schmonz 3330: fi
3331:
3332:
1.3 jlam 3333: ac_ext=c
3334: ac_cpp='$CPP $CPPFLAGS'
3335: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3339: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3340: # On Suns, sometimes $CPP names a directory.
3341: if test -n "$CPP" && test -d "$CPP"; then
3342: CPP=
3343: fi
3344: if test -z "$CPP"; then
3345: if test "${ac_cv_prog_CPP+set}" = set; then
3346: echo $ECHO_N "(cached) $ECHO_C" >&6
3347: else
3348: # Double quotes because CPP needs to be expanded
3349: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3350: do
3351: ac_preproc_ok=false
3352: for ac_c_preproc_warn_flag in '' yes
1.1 schmonz 3353: do
1.3 jlam 3354: # Use a header file that comes with gcc, so configuring glibc
3355: # with a fresh cross-compiler works.
3356: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3357: # <limits.h> exists even on freestanding compilers.
3358: # On the NeXT, cc -E runs the code through the compiler's parser,
3359: # not just through cpp. "Syntax error" is here to catch this case.
3360: cat >conftest.$ac_ext <<_ACEOF
3361: /* confdefs.h. */
3362: _ACEOF
3363: cat confdefs.h >>conftest.$ac_ext
3364: cat >>conftest.$ac_ext <<_ACEOF
3365: /* end confdefs.h. */
3366: #ifdef __STDC__
3367: # include <limits.h>
3368: #else
3369: # include <assert.h>
3370: #endif
1.9 grant 3371: Syntax error
1.3 jlam 3372: _ACEOF
3373: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375: ac_status=$?
3376: grep -v '^ *+' conftest.er1 >conftest.err
3377: rm -f conftest.er1
3378: cat conftest.err >&5
3379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380: (exit $ac_status); } >/dev/null; then
3381: if test -s conftest.err; then
3382: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 3383: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 3384: else
3385: ac_cpp_err=
3386: fi
3387: else
3388: ac_cpp_err=yes
1.1 schmonz 3389: fi
1.3 jlam 3390: if test -z "$ac_cpp_err"; then
3391: :
1.1 schmonz 3392: else
1.3 jlam 3393: echo "$as_me: failed program was:" >&5
3394: sed 's/^/| /' conftest.$ac_ext >&5
3395:
3396: # Broken: fails on valid input.
3397: continue
1.1 schmonz 3398: fi
1.3 jlam 3399: rm -f conftest.err conftest.$ac_ext
1.1 schmonz 3400:
1.3 jlam 3401: # OK, works on sane cases. Now check whether non-existent headers
3402: # can be detected and how.
3403: cat >conftest.$ac_ext <<_ACEOF
3404: /* confdefs.h. */
3405: _ACEOF
3406: cat confdefs.h >>conftest.$ac_ext
3407: cat >>conftest.$ac_ext <<_ACEOF
3408: /* end confdefs.h. */
3409: #include <ac_nonexistent.h>
3410: _ACEOF
3411: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413: ac_status=$?
3414: grep -v '^ *+' conftest.er1 >conftest.err
3415: rm -f conftest.er1
3416: cat conftest.err >&5
3417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418: (exit $ac_status); } >/dev/null; then
3419: if test -s conftest.err; then
3420: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 3421: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 3422: else
3423: ac_cpp_err=
3424: fi
3425: else
3426: ac_cpp_err=yes
1.1 schmonz 3427: fi
1.3 jlam 3428: if test -z "$ac_cpp_err"; then
3429: # Broken: success on invalid input.
3430: continue
1.1 schmonz 3431: else
1.3 jlam 3432: echo "$as_me: failed program was:" >&5
3433: sed 's/^/| /' conftest.$ac_ext >&5
3434:
3435: # Passes both tests.
3436: ac_preproc_ok=:
3437: break
1.1 schmonz 3438: fi
1.3 jlam 3439: rm -f conftest.err conftest.$ac_ext
1.1 schmonz 3440:
3441: done
1.3 jlam 3442: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443: rm -f conftest.err conftest.$ac_ext
3444: if $ac_preproc_ok; then
3445: break
3446: fi
1.1 schmonz 3447:
1.3 jlam 3448: done
3449: ac_cv_prog_CPP=$CPP
1.1 schmonz 3450:
3451: fi
1.3 jlam 3452: CPP=$ac_cv_prog_CPP
1.1 schmonz 3453: else
1.3 jlam 3454: ac_cv_prog_CPP=$CPP
3455: fi
3456: echo "$as_me:$LINENO: result: $CPP" >&5
3457: echo "${ECHO_T}$CPP" >&6
3458: ac_preproc_ok=false
3459: for ac_c_preproc_warn_flag in '' yes
3460: do
3461: # Use a header file that comes with gcc, so configuring glibc
3462: # with a fresh cross-compiler works.
3463: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464: # <limits.h> exists even on freestanding compilers.
1.1 schmonz 3465: # On the NeXT, cc -E runs the code through the compiler's parser,
1.3 jlam 3466: # not just through cpp. "Syntax error" is here to catch this case.
3467: cat >conftest.$ac_ext <<_ACEOF
3468: /* confdefs.h. */
3469: _ACEOF
3470: cat confdefs.h >>conftest.$ac_ext
3471: cat >>conftest.$ac_ext <<_ACEOF
3472: /* end confdefs.h. */
3473: #ifdef __STDC__
3474: # include <limits.h>
3475: #else
3476: # include <assert.h>
3477: #endif
1.9 grant 3478: Syntax error
1.3 jlam 3479: _ACEOF
3480: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3481: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3482: ac_status=$?
3483: grep -v '^ *+' conftest.er1 >conftest.err
3484: rm -f conftest.er1
3485: cat conftest.err >&5
3486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487: (exit $ac_status); } >/dev/null; then
3488: if test -s conftest.err; then
3489: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 3490: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 3491: else
3492: ac_cpp_err=
3493: fi
1.1 schmonz 3494: else
1.3 jlam 3495: ac_cpp_err=yes
3496: fi
3497: if test -z "$ac_cpp_err"; then
1.1 schmonz 3498: :
3499: else
1.3 jlam 3500: echo "$as_me: failed program was:" >&5
3501: sed 's/^/| /' conftest.$ac_ext >&5
3502:
3503: # Broken: fails on valid input.
3504: continue
3505: fi
3506: rm -f conftest.err conftest.$ac_ext
3507:
3508: # OK, works on sane cases. Now check whether non-existent headers
3509: # can be detected and how.
3510: cat >conftest.$ac_ext <<_ACEOF
3511: /* confdefs.h. */
3512: _ACEOF
3513: cat confdefs.h >>conftest.$ac_ext
3514: cat >>conftest.$ac_ext <<_ACEOF
3515: /* end confdefs.h. */
3516: #include <ac_nonexistent.h>
3517: _ACEOF
3518: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520: ac_status=$?
3521: grep -v '^ *+' conftest.er1 >conftest.err
3522: rm -f conftest.er1
3523: cat conftest.err >&5
3524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525: (exit $ac_status); } >/dev/null; then
3526: if test -s conftest.err; then
3527: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 3528: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 3529: else
3530: ac_cpp_err=
3531: fi
1.1 schmonz 3532: else
1.3 jlam 3533: ac_cpp_err=yes
1.1 schmonz 3534: fi
1.3 jlam 3535: if test -z "$ac_cpp_err"; then
3536: # Broken: success on invalid input.
3537: continue
3538: else
3539: echo "$as_me: failed program was:" >&5
3540: sed 's/^/| /' conftest.$ac_ext >&5
3541:
3542: # Passes both tests.
3543: ac_preproc_ok=:
3544: break
1.1 schmonz 3545: fi
1.3 jlam 3546: rm -f conftest.err conftest.$ac_ext
3547:
3548: done
3549: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550: rm -f conftest.err conftest.$ac_ext
3551: if $ac_preproc_ok; then
3552: :
1.1 schmonz 3553: else
1.3 jlam 3554: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3555: See \`config.log' for more details." >&5
3556: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3557: See \`config.log' for more details." >&2;}
3558: { (exit 1); exit 1; }; }
1.1 schmonz 3559: fi
3560:
1.3 jlam 3561: ac_ext=c
3562: ac_cpp='$CPP $CPPFLAGS'
3563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566:
3567:
3568: echo "$as_me:$LINENO: checking for egrep" >&5
3569: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3570: if test "${ac_cv_prog_egrep+set}" = set; then
3571: echo $ECHO_N "(cached) $ECHO_C" >&6
3572: else
3573: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3574: then ac_cv_prog_egrep='grep -E'
3575: else ac_cv_prog_egrep='egrep'
3576: fi
3577: fi
3578: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3579: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3580: EGREP=$ac_cv_prog_egrep
3581:
3582:
3583: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3584: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3585: if test "${ac_cv_header_stdc+set}" = set; then
3586: echo $ECHO_N "(cached) $ECHO_C" >&6
3587: else
3588: cat >conftest.$ac_ext <<_ACEOF
3589: /* confdefs.h. */
3590: _ACEOF
3591: cat confdefs.h >>conftest.$ac_ext
3592: cat >>conftest.$ac_ext <<_ACEOF
3593: /* end confdefs.h. */
1.1 schmonz 3594: #include <stdlib.h>
3595: #include <stdarg.h>
3596: #include <string.h>
3597: #include <float.h>
1.3 jlam 3598:
3599: int
3600: main ()
3601: {
3602:
3603: ;
3604: return 0;
3605: }
3606: _ACEOF
3607: rm -f conftest.$ac_objext
3608: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 3609: (eval $ac_compile) 2>conftest.er1
1.3 jlam 3610: ac_status=$?
1.9 grant 3611: grep -v '^ *+' conftest.er1 >conftest.err
3612: rm -f conftest.er1
3613: cat conftest.err >&5
1.3 jlam 3614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615: (exit $ac_status); } &&
1.9 grant 3616: { ac_try='test -z "$ac_c_werror_flag"
3617: || test ! -s conftest.err'
3618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619: (eval $ac_try) 2>&5
3620: ac_status=$?
3621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622: (exit $ac_status); }; } &&
3623: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 3624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625: (eval $ac_try) 2>&5
3626: ac_status=$?
3627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628: (exit $ac_status); }; }; then
1.1 schmonz 3629: ac_cv_header_stdc=yes
3630: else
1.3 jlam 3631: echo "$as_me: failed program was:" >&5
3632: sed 's/^/| /' conftest.$ac_ext >&5
3633:
3634: ac_cv_header_stdc=no
1.1 schmonz 3635: fi
1.9 grant 3636: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 schmonz 3637:
3638: if test $ac_cv_header_stdc = yes; then
3639: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.3 jlam 3640: cat >conftest.$ac_ext <<_ACEOF
3641: /* confdefs.h. */
3642: _ACEOF
3643: cat confdefs.h >>conftest.$ac_ext
3644: cat >>conftest.$ac_ext <<_ACEOF
3645: /* end confdefs.h. */
1.1 schmonz 3646: #include <string.h>
1.3 jlam 3647:
3648: _ACEOF
1.1 schmonz 3649: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.3 jlam 3650: $EGREP "memchr" >/dev/null 2>&1; then
1.1 schmonz 3651: :
3652: else
3653: ac_cv_header_stdc=no
3654: fi
3655: rm -f conftest*
3656:
3657: fi
3658:
3659: if test $ac_cv_header_stdc = yes; then
3660: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.3 jlam 3661: cat >conftest.$ac_ext <<_ACEOF
3662: /* confdefs.h. */
3663: _ACEOF
3664: cat confdefs.h >>conftest.$ac_ext
3665: cat >>conftest.$ac_ext <<_ACEOF
3666: /* end confdefs.h. */
1.1 schmonz 3667: #include <stdlib.h>
1.3 jlam 3668:
3669: _ACEOF
1.1 schmonz 3670: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.3 jlam 3671: $EGREP "free" >/dev/null 2>&1; then
1.1 schmonz 3672: :
3673: else
3674: ac_cv_header_stdc=no
3675: fi
3676: rm -f conftest*
3677:
3678: fi
3679:
3680: if test $ac_cv_header_stdc = yes; then
3681: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.3 jlam 3682: if test "$cross_compiling" = yes; then
1.1 schmonz 3683: :
3684: else
1.3 jlam 3685: cat >conftest.$ac_ext <<_ACEOF
3686: /* confdefs.h. */
3687: _ACEOF
3688: cat confdefs.h >>conftest.$ac_ext
3689: cat >>conftest.$ac_ext <<_ACEOF
3690: /* end confdefs.h. */
1.1 schmonz 3691: #include <ctype.h>
1.3 jlam 3692: #if ((' ' & 0x0FF) == 0x020)
3693: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3694: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3695: #else
3696: # define ISLOWER(c) \
1.9 grant 3697: (('a' <= (c) && (c) <= 'i') \
3698: || ('j' <= (c) && (c) <= 'r') \
3699: || ('s' <= (c) && (c) <= 'z'))
1.3 jlam 3700: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3701: #endif
3702:
1.1 schmonz 3703: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.3 jlam 3704: int
3705: main ()
3706: {
3707: int i;
3708: for (i = 0; i < 256; i++)
3709: if (XOR (islower (i), ISLOWER (i))
1.9 grant 3710: || toupper (i) != TOUPPER (i))
1.3 jlam 3711: exit(2);
3712: exit (0);
3713: }
3714: _ACEOF
3715: rm -f conftest$ac_exeext
3716: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3717: (eval $ac_link) 2>&5
3718: ac_status=$?
3719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3721: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722: (eval $ac_try) 2>&5
3723: ac_status=$?
3724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725: (exit $ac_status); }; }; then
1.1 schmonz 3726: :
3727: else
1.3 jlam 3728: echo "$as_me: program exited with status $ac_status" >&5
3729: echo "$as_me: failed program was:" >&5
3730: sed 's/^/| /' conftest.$ac_ext >&5
3731:
3732: ( exit $ac_status )
3733: ac_cv_header_stdc=no
1.1 schmonz 3734: fi
1.9 grant 3735: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 schmonz 3736: fi
3737: fi
3738: fi
1.3 jlam 3739: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3740: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3741: if test $ac_cv_header_stdc = yes; then
1.1 schmonz 3742:
1.3 jlam 3743: cat >>confdefs.h <<\_ACEOF
1.1 schmonz 3744: #define STDC_HEADERS 1
1.3 jlam 3745: _ACEOF
1.1 schmonz 3746:
3747: fi
3748:
1.3 jlam 3749: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 schmonz 3750:
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
1.3 jlam 3759: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.9 grant 3760: inttypes.h stdint.h unistd.h
1.1 schmonz 3761: do
1.3 jlam 3762: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763: echo "$as_me:$LINENO: checking for $ac_header" >&5
3764: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3765: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766: echo $ECHO_N "(cached) $ECHO_C" >&6
3767: else
3768: cat >conftest.$ac_ext <<_ACEOF
3769: /* confdefs.h. */
3770: _ACEOF
3771: cat confdefs.h >>conftest.$ac_ext
3772: cat >>conftest.$ac_ext <<_ACEOF
3773: /* end confdefs.h. */
3774: $ac_includes_default
3775:
3776: #include <$ac_header>
3777: _ACEOF
3778: rm -f conftest.$ac_objext
3779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 3780: (eval $ac_compile) 2>conftest.er1
1.3 jlam 3781: ac_status=$?
1.9 grant 3782: grep -v '^ *+' conftest.er1 >conftest.err
3783: rm -f conftest.er1
3784: cat conftest.err >&5
1.3 jlam 3785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786: (exit $ac_status); } &&
1.9 grant 3787: { ac_try='test -z "$ac_c_werror_flag"
3788: || test ! -s conftest.err'
3789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790: (eval $ac_try) 2>&5
3791: ac_status=$?
3792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793: (exit $ac_status); }; } &&
3794: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 3795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796: (eval $ac_try) 2>&5
3797: ac_status=$?
3798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799: (exit $ac_status); }; }; then
3800: eval "$as_ac_Header=yes"
3801: else
3802: echo "$as_me: failed program was:" >&5
3803: sed 's/^/| /' conftest.$ac_ext >&5
3804:
3805: eval "$as_ac_Header=no"
3806: fi
1.9 grant 3807: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 3808: fi
3809: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3810: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3811: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3812: cat >>confdefs.h <<_ACEOF
3813: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3814: _ACEOF
1.1 schmonz 3815:
3816: fi
3817:
3818: done
3819:
3820:
3821:
3822:
1.12 jlam 3823:
3824:
3825:
3826:
3827:
3828:
3829:
3830:
3831:
3832:
3833:
3834:
3835:
3836:
3837:
3838:
3839:
3840:
3841:
3842:
3843:
1.16 dmcmahil 3844:
1.14 jlam 3845: for ac_header in assert.h ctype.h dirent.h err.h errno.h fnctl.h fnmatch.h \
1.16 dmcmahil 3846: glob.h inttypes.h limits.h md5.h netdb.h pwd.h regex.h signal.h stdarg.h \
1.12 jlam 3847: stdio.h stdlib.h string.h termcap.h termios.h time.h unistd.h vis.h
1.1 schmonz 3848: do
1.3 jlam 3849: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3850: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851: echo "$as_me:$LINENO: checking for $ac_header" >&5
3852: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854: echo $ECHO_N "(cached) $ECHO_C" >&6
3855: fi
3856: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3857: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3858: else
3859: # Is the header compilable?
3860: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3861: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3862: cat >conftest.$ac_ext <<_ACEOF
3863: /* confdefs.h. */
3864: _ACEOF
3865: cat confdefs.h >>conftest.$ac_ext
3866: cat >>conftest.$ac_ext <<_ACEOF
3867: /* end confdefs.h. */
3868: $ac_includes_default
3869: #include <$ac_header>
3870: _ACEOF
3871: rm -f conftest.$ac_objext
3872: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 3873: (eval $ac_compile) 2>conftest.er1
1.3 jlam 3874: ac_status=$?
1.9 grant 3875: grep -v '^ *+' conftest.er1 >conftest.err
3876: rm -f conftest.er1
3877: cat conftest.err >&5
1.3 jlam 3878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879: (exit $ac_status); } &&
1.9 grant 3880: { ac_try='test -z "$ac_c_werror_flag"
3881: || test ! -s conftest.err'
3882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883: (eval $ac_try) 2>&5
3884: ac_status=$?
3885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886: (exit $ac_status); }; } &&
3887: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 3888: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889: (eval $ac_try) 2>&5
3890: ac_status=$?
3891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892: (exit $ac_status); }; }; then
3893: ac_header_compiler=yes
3894: else
3895: echo "$as_me: failed program was:" >&5
3896: sed 's/^/| /' conftest.$ac_ext >&5
3897:
3898: ac_header_compiler=no
3899: fi
1.9 grant 3900: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 3901: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3902: echo "${ECHO_T}$ac_header_compiler" >&6
3903:
3904: # Is the header present?
3905: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3906: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3907: cat >conftest.$ac_ext <<_ACEOF
3908: /* confdefs.h. */
3909: _ACEOF
3910: cat confdefs.h >>conftest.$ac_ext
3911: cat >>conftest.$ac_ext <<_ACEOF
3912: /* end confdefs.h. */
3913: #include <$ac_header>
3914: _ACEOF
3915: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917: ac_status=$?
3918: grep -v '^ *+' conftest.er1 >conftest.err
3919: rm -f conftest.er1
3920: cat conftest.err >&5
3921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922: (exit $ac_status); } >/dev/null; then
3923: if test -s conftest.err; then
3924: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 3925: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 3926: else
3927: ac_cpp_err=
3928: fi
1.1 schmonz 3929: else
1.3 jlam 3930: ac_cpp_err=yes
1.1 schmonz 3931: fi
1.3 jlam 3932: if test -z "$ac_cpp_err"; then
3933: ac_header_preproc=yes
1.1 schmonz 3934: else
1.3 jlam 3935: echo "$as_me: failed program was:" >&5
3936: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 3937:
1.3 jlam 3938: ac_header_preproc=no
3939: fi
3940: rm -f conftest.err conftest.$ac_ext
3941: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3942: echo "${ECHO_T}$ac_header_preproc" >&6
3943:
3944: # So? What about this header?
1.9 grant 3945: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3946: yes:no: )
1.3 jlam 3947: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3948: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9 grant 3949: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3950: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3951: ac_header_preproc=yes
1.3 jlam 3952: ;;
1.9 grant 3953: no:yes:* )
1.3 jlam 3954: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3955: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9 grant 3956: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3957: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3958: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3959: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3960: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3961: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.3 jlam 3962: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3963: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9 grant 3964: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3965: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3 jlam 3966: (
3967: cat <<\_ASBOX
1.9 grant 3968: ## ------------------------------- ##
3969: ## Report this to grant@NetBSD.org ##
3970: ## ------------------------------- ##
1.3 jlam 3971: _ASBOX
3972: ) |
3973: sed "s/^/$as_me: WARNING: /" >&2
3974: ;;
3975: esac
3976: echo "$as_me:$LINENO: checking for $ac_header" >&5
3977: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 3980: else
1.9 grant 3981: eval "$as_ac_Header=\$ac_header_preproc"
1.1 schmonz 3982: fi
1.3 jlam 3983: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3984: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 schmonz 3985:
3986: fi
1.3 jlam 3987: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3988: cat >>confdefs.h <<_ACEOF
3989: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3990: _ACEOF
1.1 schmonz 3991:
3992: fi
3993:
3994: done
3995:
3996:
3997:
1.12 jlam 3998: for ac_header in db1/db.h db.h
1.1 schmonz 3999: do
1.3 jlam 4000: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002: echo "$as_me:$LINENO: checking for $ac_header" >&5
4003: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4004: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4005: echo $ECHO_N "(cached) $ECHO_C" >&6
4006: fi
4007: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4008: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4009: else
4010: # Is the header compilable?
4011: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4012: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4013: cat >conftest.$ac_ext <<_ACEOF
4014: /* confdefs.h. */
4015: _ACEOF
4016: cat confdefs.h >>conftest.$ac_ext
4017: cat >>conftest.$ac_ext <<_ACEOF
4018: /* end confdefs.h. */
4019: $ac_includes_default
4020: #include <$ac_header>
4021: _ACEOF
4022: rm -f conftest.$ac_objext
4023: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 4024: (eval $ac_compile) 2>conftest.er1
1.3 jlam 4025: ac_status=$?
1.9 grant 4026: grep -v '^ *+' conftest.er1 >conftest.err
4027: rm -f conftest.er1
4028: cat conftest.err >&5
1.3 jlam 4029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030: (exit $ac_status); } &&
1.9 grant 4031: { ac_try='test -z "$ac_c_werror_flag"
4032: || test ! -s conftest.err'
4033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034: (eval $ac_try) 2>&5
4035: ac_status=$?
4036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037: (exit $ac_status); }; } &&
4038: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 4039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040: (eval $ac_try) 2>&5
4041: ac_status=$?
4042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043: (exit $ac_status); }; }; then
4044: ac_header_compiler=yes
4045: else
4046: echo "$as_me: failed program was:" >&5
4047: sed 's/^/| /' conftest.$ac_ext >&5
4048:
4049: ac_header_compiler=no
4050: fi
1.9 grant 4051: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 4052: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4053: echo "${ECHO_T}$ac_header_compiler" >&6
4054:
4055: # Is the header present?
4056: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4057: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4058: cat >conftest.$ac_ext <<_ACEOF
4059: /* confdefs.h. */
4060: _ACEOF
4061: cat confdefs.h >>conftest.$ac_ext
4062: cat >>conftest.$ac_ext <<_ACEOF
4063: /* end confdefs.h. */
4064: #include <$ac_header>
4065: _ACEOF
4066: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068: ac_status=$?
4069: grep -v '^ *+' conftest.er1 >conftest.err
4070: rm -f conftest.er1
4071: cat conftest.err >&5
4072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073: (exit $ac_status); } >/dev/null; then
4074: if test -s conftest.err; then
4075: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 4076: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 4077: else
4078: ac_cpp_err=
4079: fi
1.1 schmonz 4080: else
1.3 jlam 4081: ac_cpp_err=yes
1.1 schmonz 4082: fi
1.3 jlam 4083: if test -z "$ac_cpp_err"; then
4084: ac_header_preproc=yes
1.1 schmonz 4085: else
1.3 jlam 4086: echo "$as_me: failed program was:" >&5
4087: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 4088:
1.3 jlam 4089: ac_header_preproc=no
4090: fi
4091: rm -f conftest.err conftest.$ac_ext
4092: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4093: echo "${ECHO_T}$ac_header_preproc" >&6
4094:
4095: # So? What about this header?
1.9 grant 4096: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4097: yes:no: )
1.3 jlam 4098: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4099: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9 grant 4100: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4101: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4102: ac_header_preproc=yes
1.3 jlam 4103: ;;
1.9 grant 4104: no:yes:* )
1.3 jlam 4105: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4106: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9 grant 4107: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4108: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4109: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4110: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4111: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4112: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.3 jlam 4113: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4114: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9 grant 4115: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4116: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3 jlam 4117: (
4118: cat <<\_ASBOX
1.9 grant 4119: ## ------------------------------- ##
4120: ## Report this to grant@NetBSD.org ##
4121: ## ------------------------------- ##
1.3 jlam 4122: _ASBOX
4123: ) |
4124: sed "s/^/$as_me: WARNING: /" >&2
4125: ;;
4126: esac
4127: echo "$as_me:$LINENO: checking for $ac_header" >&5
4128: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4129: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4130: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 4131: else
1.9 grant 4132: eval "$as_ac_Header=\$ac_header_preproc"
1.1 schmonz 4133: fi
1.3 jlam 4134: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4135: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 schmonz 4136:
4137: fi
1.3 jlam 4138: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4139: cat >>confdefs.h <<_ACEOF
4140: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141: _ACEOF
1.1 schmonz 4142:
4143: fi
4144:
4145: done
4146:
4147:
4148:
4149:
1.8 grant 4150:
1.12 jlam 4151:
4152:
4153:
4154:
4155:
4156:
4157:
4158:
4159:
4160:
4161:
4162:
4163: for ac_header in sys/cdefs.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h \
1.14 jlam 4164: sys/poll.h sys/queue.h sys/resource.h sys/signal.h sys/stat.h \
4165: sys/statvfs.h sys/time.h sys/types.h sys/utsname.h sys/vfs.h \
4166: sys/wait.h
1.1 schmonz 4167: do
1.3 jlam 4168: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4169: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170: echo "$as_me:$LINENO: checking for $ac_header" >&5
4171: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4172: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4173: echo $ECHO_N "(cached) $ECHO_C" >&6
4174: fi
4175: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4176: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4177: else
4178: # Is the header compilable?
4179: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4180: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4181: cat >conftest.$ac_ext <<_ACEOF
4182: /* confdefs.h. */
4183: _ACEOF
4184: cat confdefs.h >>conftest.$ac_ext
4185: cat >>conftest.$ac_ext <<_ACEOF
4186: /* end confdefs.h. */
4187: $ac_includes_default
4188: #include <$ac_header>
4189: _ACEOF
4190: rm -f conftest.$ac_objext
4191: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 grant 4192: (eval $ac_compile) 2>conftest.er1
1.3 jlam 4193: ac_status=$?
1.9 grant 4194: grep -v '^ *+' conftest.er1 >conftest.err
4195: rm -f conftest.er1
4196: cat conftest.err >&5
1.3 jlam 4197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198: (exit $ac_status); } &&
1.9 grant 4199: { ac_try='test -z "$ac_c_werror_flag"
4200: || test ! -s conftest.err'
4201: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202: (eval $ac_try) 2>&5
4203: ac_status=$?
4204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205: (exit $ac_status); }; } &&
4206: { ac_try='test -s conftest.$ac_objext'
1.3 jlam 4207: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208: (eval $ac_try) 2>&5
4209: ac_status=$?
4210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211: (exit $ac_status); }; }; then
4212: ac_header_compiler=yes
4213: else
4214: echo "$as_me: failed program was:" >&5
4215: sed 's/^/| /' conftest.$ac_ext >&5
4216:
4217: ac_header_compiler=no
4218: fi
1.9 grant 4219: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3 jlam 4220: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4221: echo "${ECHO_T}$ac_header_compiler" >&6
4222:
4223: # Is the header present?
4224: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4225: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4226: cat >conftest.$ac_ext <<_ACEOF
4227: /* confdefs.h. */
4228: _ACEOF
4229: cat confdefs.h >>conftest.$ac_ext
4230: cat >>conftest.$ac_ext <<_ACEOF
4231: /* end confdefs.h. */
4232: #include <$ac_header>
4233: _ACEOF
4234: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4235: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4236: ac_status=$?
4237: grep -v '^ *+' conftest.er1 >conftest.err
4238: rm -f conftest.er1
4239: cat conftest.err >&5
4240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241: (exit $ac_status); } >/dev/null; then
4242: if test -s conftest.err; then
4243: ac_cpp_err=$ac_c_preproc_warn_flag
1.9 grant 4244: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3 jlam 4245: else
4246: ac_cpp_err=
4247: fi
1.1 schmonz 4248: else
1.3 jlam 4249: ac_cpp_err=yes
1.1 schmonz 4250: fi
1.3 jlam 4251: if test -z "$ac_cpp_err"; then
4252: ac_header_preproc=yes
1.1 schmonz 4253: else
1.3 jlam 4254: echo "$as_me: failed program was:" >&5
4255: sed 's/^/| /' conftest.$ac_ext >&5
1.1 schmonz 4256:
1.3 jlam 4257: ac_header_preproc=no
4258: fi
4259: rm -f conftest.err conftest.$ac_ext
4260: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4261: echo "${ECHO_T}$ac_header_preproc" >&6
4262:
4263: # So? What about this header?
1.9 grant 4264: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4265: yes:no: )
1.3 jlam 4266: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4267: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9 grant 4268: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4269: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4270: ac_header_preproc=yes
1.3 jlam 4271: ;;
1.9 grant 4272: no:yes:* )
1.3 jlam 4273: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4274: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9 grant 4275: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4276: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4277: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4278: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4279: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4280: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.3 jlam 4281: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4282: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9 grant 4283: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4284: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3 jlam 4285: (
4286: cat <<\_ASBOX
1.9 grant 4287: ## ------------------------------- ##
4288: ## Report this to grant@NetBSD.org ##
4289: ## ------------------------------- ##
1.3 jlam 4290: _ASBOX
4291: ) |
4292: sed "s/^/$as_me: WARNING: /" >&2
4293: ;;
4294: esac
4295: echo "$as_me:$LINENO: checking for $ac_header" >&5
4296: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4297: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 schmonz 4299: else
1.9 grant 4300: eval "$as_ac_Header=\$ac_header_preproc"
1.1 schmonz 4301: fi
1.3 jlam 4302: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4303: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 schmonz 4304:
4305: fi
1.3 jlam 4306: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307: cat >>confdefs.h <<_ACEOF
4308: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309: _ACEOF
4310:
1.1 schmonz 4311: fi
4312:
4313: done
4314:
1.3 jlam 4315:
4316: # Checks for library functions.
4317:
4318:
4319:
1.4 jlam 4320:
4321: for ac_func in chflags dbopen tgetent vfork
1.1 schmonz 4322: do
1.3 jlam 4323: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4324: echo "$as_me:$LINENO: checking for $ac_func" >&5
4325: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4326: if eval "test \"\${$as_ac_var+set}\" = set"; then
4327: echo $ECHO_N "(cached) $ECHO_C" >&6
4328: else
4329: cat >conftest.$ac_ext <<_ACEOF
4330: /* confdefs.h. */
4331: _ACEOF
4332: cat confdefs.h >>conftest.$ac_ext
4333: cat >>conftest.$ac_ext <<_ACEOF
4334: /* end confdefs.h. */
1.9 grant 4335: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4336: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4337: #define $ac_func innocuous_$ac_func
4338:
1.1 schmonz 4339: /* System header to define __stub macros and hopefully few prototypes,
1.3 jlam 4340: which can conflict with char $ac_func (); below.
4341: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342: <limits.h> exists even on freestanding compilers. */
1.9 grant 4343:
1.3 jlam 4344: #ifdef __STDC__
4345: # include <limits.h>
4346: #else
4347: # include <assert.h>
4348: #endif
1.9 grant 4349:
4350: #undef $ac_func
4351:
1.1 schmonz 4352: /* Override any gcc2 internal prototype to avoid an error. */
1.3 jlam 4353: #ifdef __cplusplus
4354: extern "C"
4355: {
4356: #endif
1.1 schmonz 4357: /* We use char because int might match the return type of a gcc2
1.3 jlam 4358: builtin and then its argument prototype would still apply. */
4359: char $ac_func ();
1.1 schmonz 4360: /* The GNU C library defines this for functions which it implements
4361: to always fail with ENOSYS. Some functions are actually named
4362: something starting with __ and the normal name is an alias. */
4363: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4364: choke me
4365: #else
1.3 jlam 4366: char (*f) () = $ac_func;
4367: #endif
4368: #ifdef __cplusplus
4369: }
1.1 schmonz 4370: #endif
4371:
1.3 jlam 4372: int
4373: main ()
4374: {
4375: return f != $ac_func;
4376: ;
4377: return 0;
4378: }
4379: _ACEOF
4380: rm -f conftest.$ac_objext conftest$ac_exeext
4381: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 grant 4382: (eval $ac_link) 2>conftest.er1
1.3 jlam 4383: ac_status=$?
1.9 grant 4384: grep -v '^ *+' conftest.er1 >conftest.err
4385: rm -f conftest.er1
4386: cat conftest.err >&5
1.3 jlam 4387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388: (exit $ac_status); } &&
1.9 grant 4389: { ac_try='test -z "$ac_c_werror_flag"
4390: || test ! -s conftest.err'
4391: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392: (eval $ac_try) 2>&5
4393: ac_status=$?
4394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395: (exit $ac_status); }; } &&
4396: { ac_try='test -s conftest$ac_exeext'
1.3 jlam 4397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398: (eval $ac_try) 2>&5
4399: ac_status=$?
4400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401: (exit $ac_status); }; }; then
4402: eval "$as_ac_var=yes"
4403: else
4404: echo "$as_me: failed program was:" >&5
4405: sed 's/^/| /' conftest.$ac_ext >&5
4406:
4407: eval "$as_ac_var=no"
4408: fi
1.9 grant 4409: rm -f conftest.err conftest.$ac_objext \
4410: conftest$ac_exeext conftest.$ac_ext
1.3 jlam 4411: fi
4412: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4413: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4414: if test `eval echo '${'$as_ac_var'}'` = yes; then
4415: cat >>confdefs.h <<_ACEOF
4416: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4417: _ACEOF
1.1 schmonz 4418:
4419: fi
4420: done
4421:
1.3 jlam 4422:
4423:
4424: for ac_func in getrlimit setrlimit
1.1 schmonz 4425: do
1.3 jlam 4426: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4427: echo "$as_me:$LINENO: checking for $ac_func" >&5
4428: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4429: if eval "test \"\${$as_ac_var+set}\" = set"; then
4430: echo $ECHO_N "(cached) $ECHO_C" >&6
4431: else
4432: cat >conftest.$ac_ext <<_ACEOF
4433: /* confdefs.h. */
4434: _ACEOF
4435: cat confdefs.h >>conftest.$ac_ext
4436: cat >>conftest.$ac_ext <<_ACEOF
4437: /* end confdefs.h. */
1.9 grant 4438: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4439: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4440: #define $ac_func innocuous_$ac_func
4441:
1.1 schmonz 4442: /* System header to define __stub macros and hopefully few prototypes,
1.3 jlam 4443: which can conflict with char $ac_func (); below.
4444: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445: <limits.h> exists even on freestanding compilers. */
1.9 grant 4446:
1.3 jlam 4447: #ifdef __STDC__
4448: # include <limits.h>
4449: #else
4450: # include <assert.h>
4451: #endif
1.9 grant 4452:
4453: #undef $ac_func
4454:
1.1 schmonz 4455: /* Override any gcc2 internal prototype to avoid an error. */
1.3 jlam 4456: #ifdef __cplusplus
4457: extern "C"
4458: {
4459: #endif
1.1 schmonz 4460: /* We use char because int might match the return type of a gcc2
1.3 jlam 4461: builtin and then its argument prototype would still apply. */
4462: char $ac_func ();
1.1 schmonz 4463: /* The GNU C library defines this for functions which it implements
4464: to always fail with ENOSYS. Some functions are actually named
4465: something starting with __ and the normal name is an alias. */
4466: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467: choke me
4468: #else
1.3 jlam 4469: char (*f) () = $ac_func;
4470: #endif
4471: #ifdef __cplusplus
4472: }
1.1 schmonz 4473: #endif
4474:
1.3 jlam 4475: int
4476: main ()
4477: {
4478: return f != $ac_func;
4479: ;
4480: return 0;
4481: }
4482: _ACEOF
4483: rm -f conftest.$ac_objext conftest$ac_exeext
4484: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 grant 4485: (eval $ac_link) 2>conftest.er1
1.3 jlam 4486: ac_status=$?
1.9 grant 4487: grep -v '^ *+' conftest.er1 >conftest.err
4488: rm -f conftest.er1
4489: cat conftest.err >&5
1.3 jlam 4490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491: (exit $ac_status); } &&
1.9 grant 4492: { ac_try='test -z "$ac_c_werror_flag"
4493: || test ! -s conftest.err'
4494: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495: (eval $ac_try) 2>&5
4496: ac_status=$?
4497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498: (exit $ac_status); }; } &&
4499: { ac_try='test -s conftest$ac_exeext'
1.3 jlam 4500: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501: (eval $ac_try) 2>&5
4502: ac_status=$?
4503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504: (exit $ac_status); }; }; then
4505: eval "$as_ac_var=yes"
4506: else
4507: echo "$as_me: failed program was:" >&5
4508: sed 's/^/| /' conftest.$ac_ext >&5
4509:
4510: eval "$as_ac_var=no"
4511: fi
1.9 grant 4512: rm -f conftest.err conftest.$ac_objext \
4513: conftest$ac_exeext conftest.$ac_ext
1.3 jlam 4514: fi
4515: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4516: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4517: if test `eval echo '${'$as_ac_var'}'` = yes; then
4518: cat >>confdefs.h <<_ACEOF
4519: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4520: _ACEOF
1.1 schmonz 4521:
4522: fi
4523: done
1.4 jlam 4524:
4525:
1.17 ! dmcmahil 4526: need_priu64=no
! 4527: echo "$as_me:$LINENO: checking for a working PRIu64" >&5
! 4528: echo $ECHO_N "checking for a working PRIu64... $ECHO_C" >&6
! 4529: ac_ext=c
! 4530: ac_cpp='$CPP $CPPFLAGS'
! 4531: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4532: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4533: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4534:
! 4535: if test "$cross_compiling" = yes; then
! 4536:
! 4537: # we are cross compiling
! 4538: echo "$as_me:$LINENO: result: unable to check when crosscompiling" >&5
! 4539: echo "${ECHO_T}unable to check when crosscompiling" >&6
! 4540:
! 4541: cat >>confdefs.h <<\_ACEOF
! 4542: #define NEED_PRI_MACRO 1
! 4543: _ACEOF
! 4544:
! 4545: need_priu64=yes
! 4546:
! 4547: else
! 4548: cat >conftest.$ac_ext <<_ACEOF
! 4549: /* confdefs.h. */
! 4550: _ACEOF
! 4551: cat confdefs.h >>conftest.$ac_ext
! 4552: cat >>conftest.$ac_ext <<_ACEOF
! 4553: /* end confdefs.h. */
! 4554:
! 4555: #include <stdio.h>
! 4556: #ifdef HAVE_INTTYPES_H
! 4557: #include <inttypes.h>
! 4558: #endif
! 4559:
! 4560: int
! 4561: main ()
! 4562: {
! 4563:
! 4564: char *x;
! 4565: #if !defined(PRIu64)
! 4566: return -1;
! 4567: #else
! 4568: x = PRIu64;
! 4569: if( x[0] == '%' ) {
! 4570: return -1;
! 4571: } else {
! 4572: return 0;
! 4573: }
! 4574: #endif
! 4575:
! 4576: ;
! 4577: return 0;
! 4578: }
! 4579: _ACEOF
! 4580: rm -f conftest$ac_exeext
! 4581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4582: (eval $ac_link) 2>&5
! 4583: ac_status=$?
! 4584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4585: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 4586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4587: (eval $ac_try) 2>&5
! 4588: ac_status=$?
! 4589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4590: (exit $ac_status); }; }; then
! 4591:
! 4592: # program worked correctly
! 4593: echo "$as_me:$LINENO: result: yes" >&5
! 4594: echo "${ECHO_T}yes" >&6
! 4595:
! 4596: else
! 4597: echo "$as_me: program exited with status $ac_status" >&5
! 4598: echo "$as_me: failed program was:" >&5
! 4599: sed 's/^/| /' conftest.$ac_ext >&5
! 4600:
! 4601: ( exit $ac_status )
! 4602:
! 4603: # program failed
! 4604: echo "$as_me:$LINENO: result: no" >&5
! 4605: echo "${ECHO_T}no" >&6
! 4606:
! 4607: cat >>confdefs.h <<\_ACEOF
! 4608: #define NEED_PRI_MACRO 1
! 4609: _ACEOF
! 4610:
! 4611: need_priu64=yes
! 4612:
! 4613: fi
! 4614: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 4615: fi
! 4616: ac_ext=c
! 4617: ac_cpp='$CPP $CPPFLAGS'
! 4618: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4619: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4620: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4621:
! 4622: echo "$as_me:$LINENO: checking for int" >&5
! 4623: echo $ECHO_N "checking for int... $ECHO_C" >&6
! 4624: if test "${ac_cv_type_int+set}" = set; then
! 4625: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4626: else
! 4627: cat >conftest.$ac_ext <<_ACEOF
! 4628: /* confdefs.h. */
! 4629: _ACEOF
! 4630: cat confdefs.h >>conftest.$ac_ext
! 4631: cat >>conftest.$ac_ext <<_ACEOF
! 4632: /* end confdefs.h. */
! 4633: $ac_includes_default
! 4634: int
! 4635: main ()
! 4636: {
! 4637: if ((int *) 0)
! 4638: return 0;
! 4639: if (sizeof (int))
! 4640: return 0;
! 4641: ;
! 4642: return 0;
! 4643: }
! 4644: _ACEOF
! 4645: rm -f conftest.$ac_objext
! 4646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4647: (eval $ac_compile) 2>conftest.er1
! 4648: ac_status=$?
! 4649: grep -v '^ *+' conftest.er1 >conftest.err
! 4650: rm -f conftest.er1
! 4651: cat conftest.err >&5
! 4652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4653: (exit $ac_status); } &&
! 4654: { ac_try='test -z "$ac_c_werror_flag"
! 4655: || test ! -s conftest.err'
! 4656: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4657: (eval $ac_try) 2>&5
! 4658: ac_status=$?
! 4659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4660: (exit $ac_status); }; } &&
! 4661: { ac_try='test -s conftest.$ac_objext'
! 4662: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4663: (eval $ac_try) 2>&5
! 4664: ac_status=$?
! 4665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4666: (exit $ac_status); }; }; then
! 4667: ac_cv_type_int=yes
! 4668: else
! 4669: echo "$as_me: failed program was:" >&5
! 4670: sed 's/^/| /' conftest.$ac_ext >&5
! 4671:
! 4672: ac_cv_type_int=no
! 4673: fi
! 4674: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4675: fi
! 4676: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 4677: echo "${ECHO_T}$ac_cv_type_int" >&6
! 4678:
! 4679: echo "$as_me:$LINENO: checking size of int" >&5
! 4680: echo $ECHO_N "checking size of int... $ECHO_C" >&6
! 4681: if test "${ac_cv_sizeof_int+set}" = set; then
! 4682: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4683: else
! 4684: if test "$ac_cv_type_int" = yes; then
! 4685: # The cast to unsigned long works around a bug in the HP C Compiler
! 4686: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 4687: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 4688: # This bug is HP SR number 8606223364.
! 4689: if test "$cross_compiling" = yes; then
! 4690: # Depending upon the size, compute the lo and hi bounds.
! 4691: cat >conftest.$ac_ext <<_ACEOF
! 4692: /* confdefs.h. */
! 4693: _ACEOF
! 4694: cat confdefs.h >>conftest.$ac_ext
! 4695: cat >>conftest.$ac_ext <<_ACEOF
! 4696: /* end confdefs.h. */
! 4697: $ac_includes_default
! 4698: int
! 4699: main ()
! 4700: {
! 4701: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
! 4702: test_array [0] = 0
! 4703:
! 4704: ;
! 4705: return 0;
! 4706: }
! 4707: _ACEOF
! 4708: rm -f conftest.$ac_objext
! 4709: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4710: (eval $ac_compile) 2>conftest.er1
! 4711: ac_status=$?
! 4712: grep -v '^ *+' conftest.er1 >conftest.err
! 4713: rm -f conftest.er1
! 4714: cat conftest.err >&5
! 4715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4716: (exit $ac_status); } &&
! 4717: { ac_try='test -z "$ac_c_werror_flag"
! 4718: || test ! -s conftest.err'
! 4719: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4720: (eval $ac_try) 2>&5
! 4721: ac_status=$?
! 4722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4723: (exit $ac_status); }; } &&
! 4724: { ac_try='test -s conftest.$ac_objext'
! 4725: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4726: (eval $ac_try) 2>&5
! 4727: ac_status=$?
! 4728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4729: (exit $ac_status); }; }; then
! 4730: ac_lo=0 ac_mid=0
! 4731: while :; do
! 4732: cat >conftest.$ac_ext <<_ACEOF
! 4733: /* confdefs.h. */
! 4734: _ACEOF
! 4735: cat confdefs.h >>conftest.$ac_ext
! 4736: cat >>conftest.$ac_ext <<_ACEOF
! 4737: /* end confdefs.h. */
! 4738: $ac_includes_default
! 4739: int
! 4740: main ()
! 4741: {
! 4742: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
! 4743: test_array [0] = 0
! 4744:
! 4745: ;
! 4746: return 0;
! 4747: }
! 4748: _ACEOF
! 4749: rm -f conftest.$ac_objext
! 4750: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4751: (eval $ac_compile) 2>conftest.er1
! 4752: ac_status=$?
! 4753: grep -v '^ *+' conftest.er1 >conftest.err
! 4754: rm -f conftest.er1
! 4755: cat conftest.err >&5
! 4756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4757: (exit $ac_status); } &&
! 4758: { ac_try='test -z "$ac_c_werror_flag"
! 4759: || test ! -s conftest.err'
! 4760: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4761: (eval $ac_try) 2>&5
! 4762: ac_status=$?
! 4763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4764: (exit $ac_status); }; } &&
! 4765: { ac_try='test -s conftest.$ac_objext'
! 4766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4767: (eval $ac_try) 2>&5
! 4768: ac_status=$?
! 4769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4770: (exit $ac_status); }; }; then
! 4771: ac_hi=$ac_mid; break
! 4772: else
! 4773: echo "$as_me: failed program was:" >&5
! 4774: sed 's/^/| /' conftest.$ac_ext >&5
! 4775:
! 4776: ac_lo=`expr $ac_mid + 1`
! 4777: if test $ac_lo -le $ac_mid; then
! 4778: ac_lo= ac_hi=
! 4779: break
! 4780: fi
! 4781: ac_mid=`expr 2 '*' $ac_mid + 1`
! 4782: fi
! 4783: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4784: done
! 4785: else
! 4786: echo "$as_me: failed program was:" >&5
! 4787: sed 's/^/| /' conftest.$ac_ext >&5
! 4788:
! 4789: cat >conftest.$ac_ext <<_ACEOF
! 4790: /* confdefs.h. */
! 4791: _ACEOF
! 4792: cat confdefs.h >>conftest.$ac_ext
! 4793: cat >>conftest.$ac_ext <<_ACEOF
! 4794: /* end confdefs.h. */
! 4795: $ac_includes_default
! 4796: int
! 4797: main ()
! 4798: {
! 4799: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
! 4800: test_array [0] = 0
! 4801:
! 4802: ;
! 4803: return 0;
! 4804: }
! 4805: _ACEOF
! 4806: rm -f conftest.$ac_objext
! 4807: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4808: (eval $ac_compile) 2>conftest.er1
! 4809: ac_status=$?
! 4810: grep -v '^ *+' conftest.er1 >conftest.err
! 4811: rm -f conftest.er1
! 4812: cat conftest.err >&5
! 4813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4814: (exit $ac_status); } &&
! 4815: { ac_try='test -z "$ac_c_werror_flag"
! 4816: || test ! -s conftest.err'
! 4817: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4818: (eval $ac_try) 2>&5
! 4819: ac_status=$?
! 4820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4821: (exit $ac_status); }; } &&
! 4822: { ac_try='test -s conftest.$ac_objext'
! 4823: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4824: (eval $ac_try) 2>&5
! 4825: ac_status=$?
! 4826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4827: (exit $ac_status); }; }; then
! 4828: ac_hi=-1 ac_mid=-1
! 4829: while :; do
! 4830: cat >conftest.$ac_ext <<_ACEOF
! 4831: /* confdefs.h. */
! 4832: _ACEOF
! 4833: cat confdefs.h >>conftest.$ac_ext
! 4834: cat >>conftest.$ac_ext <<_ACEOF
! 4835: /* end confdefs.h. */
! 4836: $ac_includes_default
! 4837: int
! 4838: main ()
! 4839: {
! 4840: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
! 4841: test_array [0] = 0
! 4842:
! 4843: ;
! 4844: return 0;
! 4845: }
! 4846: _ACEOF
! 4847: rm -f conftest.$ac_objext
! 4848: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4849: (eval $ac_compile) 2>conftest.er1
! 4850: ac_status=$?
! 4851: grep -v '^ *+' conftest.er1 >conftest.err
! 4852: rm -f conftest.er1
! 4853: cat conftest.err >&5
! 4854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4855: (exit $ac_status); } &&
! 4856: { ac_try='test -z "$ac_c_werror_flag"
! 4857: || test ! -s conftest.err'
! 4858: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4859: (eval $ac_try) 2>&5
! 4860: ac_status=$?
! 4861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4862: (exit $ac_status); }; } &&
! 4863: { ac_try='test -s conftest.$ac_objext'
! 4864: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4865: (eval $ac_try) 2>&5
! 4866: ac_status=$?
! 4867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4868: (exit $ac_status); }; }; then
! 4869: ac_lo=$ac_mid; break
! 4870: else
! 4871: echo "$as_me: failed program was:" >&5
! 4872: sed 's/^/| /' conftest.$ac_ext >&5
! 4873:
! 4874: ac_hi=`expr '(' $ac_mid ')' - 1`
! 4875: if test $ac_mid -le $ac_hi; then
! 4876: ac_lo= ac_hi=
! 4877: break
! 4878: fi
! 4879: ac_mid=`expr 2 '*' $ac_mid`
! 4880: fi
! 4881: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4882: done
! 4883: else
! 4884: echo "$as_me: failed program was:" >&5
! 4885: sed 's/^/| /' conftest.$ac_ext >&5
! 4886:
! 4887: ac_lo= ac_hi=
! 4888: fi
! 4889: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4890: fi
! 4891: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4892: # Binary search between lo and hi bounds.
! 4893: while test "x$ac_lo" != "x$ac_hi"; do
! 4894: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 4895: cat >conftest.$ac_ext <<_ACEOF
! 4896: /* confdefs.h. */
! 4897: _ACEOF
! 4898: cat confdefs.h >>conftest.$ac_ext
! 4899: cat >>conftest.$ac_ext <<_ACEOF
! 4900: /* end confdefs.h. */
! 4901: $ac_includes_default
! 4902: int
! 4903: main ()
! 4904: {
! 4905: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
! 4906: test_array [0] = 0
! 4907:
! 4908: ;
! 4909: return 0;
! 4910: }
! 4911: _ACEOF
! 4912: rm -f conftest.$ac_objext
! 4913: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4914: (eval $ac_compile) 2>conftest.er1
! 4915: ac_status=$?
! 4916: grep -v '^ *+' conftest.er1 >conftest.err
! 4917: rm -f conftest.er1
! 4918: cat conftest.err >&5
! 4919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4920: (exit $ac_status); } &&
! 4921: { ac_try='test -z "$ac_c_werror_flag"
! 4922: || test ! -s conftest.err'
! 4923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4924: (eval $ac_try) 2>&5
! 4925: ac_status=$?
! 4926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4927: (exit $ac_status); }; } &&
! 4928: { ac_try='test -s conftest.$ac_objext'
! 4929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4930: (eval $ac_try) 2>&5
! 4931: ac_status=$?
! 4932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4933: (exit $ac_status); }; }; then
! 4934: ac_hi=$ac_mid
! 4935: else
! 4936: echo "$as_me: failed program was:" >&5
! 4937: sed 's/^/| /' conftest.$ac_ext >&5
! 4938:
! 4939: ac_lo=`expr '(' $ac_mid ')' + 1`
! 4940: fi
! 4941: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 4942: done
! 4943: case $ac_lo in
! 4944: ?*) ac_cv_sizeof_int=$ac_lo;;
! 4945: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
! 4946: See \`config.log' for more details." >&5
! 4947: echo "$as_me: error: cannot compute sizeof (int), 77
! 4948: See \`config.log' for more details." >&2;}
! 4949: { (exit 1); exit 1; }; } ;;
! 4950: esac
! 4951: else
! 4952: if test "$cross_compiling" = yes; then
! 4953: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 4954: See \`config.log' for more details." >&5
! 4955: echo "$as_me: error: cannot run test program while cross compiling
! 4956: See \`config.log' for more details." >&2;}
! 4957: { (exit 1); exit 1; }; }
! 4958: else
! 4959: cat >conftest.$ac_ext <<_ACEOF
! 4960: /* confdefs.h. */
! 4961: _ACEOF
! 4962: cat confdefs.h >>conftest.$ac_ext
! 4963: cat >>conftest.$ac_ext <<_ACEOF
! 4964: /* end confdefs.h. */
! 4965: $ac_includes_default
! 4966: long longval () { return (long) (sizeof (int)); }
! 4967: unsigned long ulongval () { return (long) (sizeof (int)); }
! 4968: #include <stdio.h>
! 4969: #include <stdlib.h>
! 4970: int
! 4971: main ()
! 4972: {
! 4973:
! 4974: FILE *f = fopen ("conftest.val", "w");
! 4975: if (! f)
! 4976: exit (1);
! 4977: if (((long) (sizeof (int))) < 0)
! 4978: {
! 4979: long i = longval ();
! 4980: if (i != ((long) (sizeof (int))))
! 4981: exit (1);
! 4982: fprintf (f, "%ld\n", i);
! 4983: }
! 4984: else
! 4985: {
! 4986: unsigned long i = ulongval ();
! 4987: if (i != ((long) (sizeof (int))))
! 4988: exit (1);
! 4989: fprintf (f, "%lu\n", i);
! 4990: }
! 4991: exit (ferror (f) || fclose (f) != 0);
! 4992:
! 4993: ;
! 4994: return 0;
! 4995: }
! 4996: _ACEOF
! 4997: rm -f conftest$ac_exeext
! 4998: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4999: (eval $ac_link) 2>&5
! 5000: ac_status=$?
! 5001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5002: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5004: (eval $ac_try) 2>&5
! 5005: ac_status=$?
! 5006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5007: (exit $ac_status); }; }; then
! 5008: ac_cv_sizeof_int=`cat conftest.val`
! 5009: else
! 5010: echo "$as_me: program exited with status $ac_status" >&5
! 5011: echo "$as_me: failed program was:" >&5
! 5012: sed 's/^/| /' conftest.$ac_ext >&5
! 5013:
! 5014: ( exit $ac_status )
! 5015: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
! 5016: See \`config.log' for more details." >&5
! 5017: echo "$as_me: error: cannot compute sizeof (int), 77
! 5018: See \`config.log' for more details." >&2;}
! 5019: { (exit 1); exit 1; }; }
! 5020: fi
! 5021: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5022: fi
! 5023: fi
! 5024: rm -f conftest.val
! 5025: else
! 5026: ac_cv_sizeof_int=0
! 5027: fi
! 5028: fi
! 5029: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 5030: echo "${ECHO_T}$ac_cv_sizeof_int" >&6
! 5031: cat >>confdefs.h <<_ACEOF
! 5032: #define SIZEOF_INT $ac_cv_sizeof_int
! 5033: _ACEOF
! 5034:
! 5035:
! 5036: echo "$as_me:$LINENO: checking for long" >&5
! 5037: echo $ECHO_N "checking for long... $ECHO_C" >&6
! 5038: if test "${ac_cv_type_long+set}" = set; then
! 5039: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5040: else
! 5041: cat >conftest.$ac_ext <<_ACEOF
! 5042: /* confdefs.h. */
! 5043: _ACEOF
! 5044: cat confdefs.h >>conftest.$ac_ext
! 5045: cat >>conftest.$ac_ext <<_ACEOF
! 5046: /* end confdefs.h. */
! 5047: $ac_includes_default
! 5048: int
! 5049: main ()
! 5050: {
! 5051: if ((long *) 0)
! 5052: return 0;
! 5053: if (sizeof (long))
! 5054: return 0;
! 5055: ;
! 5056: return 0;
! 5057: }
! 5058: _ACEOF
! 5059: rm -f conftest.$ac_objext
! 5060: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5061: (eval $ac_compile) 2>conftest.er1
! 5062: ac_status=$?
! 5063: grep -v '^ *+' conftest.er1 >conftest.err
! 5064: rm -f conftest.er1
! 5065: cat conftest.err >&5
! 5066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5067: (exit $ac_status); } &&
! 5068: { ac_try='test -z "$ac_c_werror_flag"
! 5069: || test ! -s conftest.err'
! 5070: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5071: (eval $ac_try) 2>&5
! 5072: ac_status=$?
! 5073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5074: (exit $ac_status); }; } &&
! 5075: { ac_try='test -s conftest.$ac_objext'
! 5076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5077: (eval $ac_try) 2>&5
! 5078: ac_status=$?
! 5079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5080: (exit $ac_status); }; }; then
! 5081: ac_cv_type_long=yes
! 5082: else
! 5083: echo "$as_me: failed program was:" >&5
! 5084: sed 's/^/| /' conftest.$ac_ext >&5
! 5085:
! 5086: ac_cv_type_long=no
! 5087: fi
! 5088: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5089: fi
! 5090: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 5091: echo "${ECHO_T}$ac_cv_type_long" >&6
! 5092:
! 5093: echo "$as_me:$LINENO: checking size of long" >&5
! 5094: echo $ECHO_N "checking size of long... $ECHO_C" >&6
! 5095: if test "${ac_cv_sizeof_long+set}" = set; then
! 5096: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5097: else
! 5098: if test "$ac_cv_type_long" = yes; then
! 5099: # The cast to unsigned long works around a bug in the HP C Compiler
! 5100: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 5101: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 5102: # This bug is HP SR number 8606223364.
! 5103: if test "$cross_compiling" = yes; then
! 5104: # Depending upon the size, compute the lo and hi bounds.
! 5105: cat >conftest.$ac_ext <<_ACEOF
! 5106: /* confdefs.h. */
! 5107: _ACEOF
! 5108: cat confdefs.h >>conftest.$ac_ext
! 5109: cat >>conftest.$ac_ext <<_ACEOF
! 5110: /* end confdefs.h. */
! 5111: $ac_includes_default
! 5112: int
! 5113: main ()
! 5114: {
! 5115: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
! 5116: test_array [0] = 0
! 5117:
! 5118: ;
! 5119: return 0;
! 5120: }
! 5121: _ACEOF
! 5122: rm -f conftest.$ac_objext
! 5123: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5124: (eval $ac_compile) 2>conftest.er1
! 5125: ac_status=$?
! 5126: grep -v '^ *+' conftest.er1 >conftest.err
! 5127: rm -f conftest.er1
! 5128: cat conftest.err >&5
! 5129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5130: (exit $ac_status); } &&
! 5131: { ac_try='test -z "$ac_c_werror_flag"
! 5132: || test ! -s conftest.err'
! 5133: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5134: (eval $ac_try) 2>&5
! 5135: ac_status=$?
! 5136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5137: (exit $ac_status); }; } &&
! 5138: { ac_try='test -s conftest.$ac_objext'
! 5139: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5140: (eval $ac_try) 2>&5
! 5141: ac_status=$?
! 5142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5143: (exit $ac_status); }; }; then
! 5144: ac_lo=0 ac_mid=0
! 5145: while :; do
! 5146: cat >conftest.$ac_ext <<_ACEOF
! 5147: /* confdefs.h. */
! 5148: _ACEOF
! 5149: cat confdefs.h >>conftest.$ac_ext
! 5150: cat >>conftest.$ac_ext <<_ACEOF
! 5151: /* end confdefs.h. */
! 5152: $ac_includes_default
! 5153: int
! 5154: main ()
! 5155: {
! 5156: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
! 5157: test_array [0] = 0
! 5158:
! 5159: ;
! 5160: return 0;
! 5161: }
! 5162: _ACEOF
! 5163: rm -f conftest.$ac_objext
! 5164: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5165: (eval $ac_compile) 2>conftest.er1
! 5166: ac_status=$?
! 5167: grep -v '^ *+' conftest.er1 >conftest.err
! 5168: rm -f conftest.er1
! 5169: cat conftest.err >&5
! 5170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5171: (exit $ac_status); } &&
! 5172: { ac_try='test -z "$ac_c_werror_flag"
! 5173: || test ! -s conftest.err'
! 5174: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5175: (eval $ac_try) 2>&5
! 5176: ac_status=$?
! 5177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5178: (exit $ac_status); }; } &&
! 5179: { ac_try='test -s conftest.$ac_objext'
! 5180: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5181: (eval $ac_try) 2>&5
! 5182: ac_status=$?
! 5183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5184: (exit $ac_status); }; }; then
! 5185: ac_hi=$ac_mid; break
! 5186: else
! 5187: echo "$as_me: failed program was:" >&5
! 5188: sed 's/^/| /' conftest.$ac_ext >&5
! 5189:
! 5190: ac_lo=`expr $ac_mid + 1`
! 5191: if test $ac_lo -le $ac_mid; then
! 5192: ac_lo= ac_hi=
! 5193: break
! 5194: fi
! 5195: ac_mid=`expr 2 '*' $ac_mid + 1`
! 5196: fi
! 5197: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5198: done
! 5199: else
! 5200: echo "$as_me: failed program was:" >&5
! 5201: sed 's/^/| /' conftest.$ac_ext >&5
! 5202:
! 5203: cat >conftest.$ac_ext <<_ACEOF
! 5204: /* confdefs.h. */
! 5205: _ACEOF
! 5206: cat confdefs.h >>conftest.$ac_ext
! 5207: cat >>conftest.$ac_ext <<_ACEOF
! 5208: /* end confdefs.h. */
! 5209: $ac_includes_default
! 5210: int
! 5211: main ()
! 5212: {
! 5213: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
! 5214: test_array [0] = 0
! 5215:
! 5216: ;
! 5217: return 0;
! 5218: }
! 5219: _ACEOF
! 5220: rm -f conftest.$ac_objext
! 5221: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5222: (eval $ac_compile) 2>conftest.er1
! 5223: ac_status=$?
! 5224: grep -v '^ *+' conftest.er1 >conftest.err
! 5225: rm -f conftest.er1
! 5226: cat conftest.err >&5
! 5227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5228: (exit $ac_status); } &&
! 5229: { ac_try='test -z "$ac_c_werror_flag"
! 5230: || test ! -s conftest.err'
! 5231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5232: (eval $ac_try) 2>&5
! 5233: ac_status=$?
! 5234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5235: (exit $ac_status); }; } &&
! 5236: { ac_try='test -s conftest.$ac_objext'
! 5237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5238: (eval $ac_try) 2>&5
! 5239: ac_status=$?
! 5240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5241: (exit $ac_status); }; }; then
! 5242: ac_hi=-1 ac_mid=-1
! 5243: while :; do
! 5244: cat >conftest.$ac_ext <<_ACEOF
! 5245: /* confdefs.h. */
! 5246: _ACEOF
! 5247: cat confdefs.h >>conftest.$ac_ext
! 5248: cat >>conftest.$ac_ext <<_ACEOF
! 5249: /* end confdefs.h. */
! 5250: $ac_includes_default
! 5251: int
! 5252: main ()
! 5253: {
! 5254: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
! 5255: test_array [0] = 0
! 5256:
! 5257: ;
! 5258: return 0;
! 5259: }
! 5260: _ACEOF
! 5261: rm -f conftest.$ac_objext
! 5262: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5263: (eval $ac_compile) 2>conftest.er1
! 5264: ac_status=$?
! 5265: grep -v '^ *+' conftest.er1 >conftest.err
! 5266: rm -f conftest.er1
! 5267: cat conftest.err >&5
! 5268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5269: (exit $ac_status); } &&
! 5270: { ac_try='test -z "$ac_c_werror_flag"
! 5271: || test ! -s conftest.err'
! 5272: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5273: (eval $ac_try) 2>&5
! 5274: ac_status=$?
! 5275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5276: (exit $ac_status); }; } &&
! 5277: { ac_try='test -s conftest.$ac_objext'
! 5278: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5279: (eval $ac_try) 2>&5
! 5280: ac_status=$?
! 5281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5282: (exit $ac_status); }; }; then
! 5283: ac_lo=$ac_mid; break
! 5284: else
! 5285: echo "$as_me: failed program was:" >&5
! 5286: sed 's/^/| /' conftest.$ac_ext >&5
! 5287:
! 5288: ac_hi=`expr '(' $ac_mid ')' - 1`
! 5289: if test $ac_mid -le $ac_hi; then
! 5290: ac_lo= ac_hi=
! 5291: break
! 5292: fi
! 5293: ac_mid=`expr 2 '*' $ac_mid`
! 5294: fi
! 5295: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5296: done
! 5297: else
! 5298: echo "$as_me: failed program was:" >&5
! 5299: sed 's/^/| /' conftest.$ac_ext >&5
! 5300:
! 5301: ac_lo= ac_hi=
! 5302: fi
! 5303: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5304: fi
! 5305: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5306: # Binary search between lo and hi bounds.
! 5307: while test "x$ac_lo" != "x$ac_hi"; do
! 5308: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 5309: cat >conftest.$ac_ext <<_ACEOF
! 5310: /* confdefs.h. */
! 5311: _ACEOF
! 5312: cat confdefs.h >>conftest.$ac_ext
! 5313: cat >>conftest.$ac_ext <<_ACEOF
! 5314: /* end confdefs.h. */
! 5315: $ac_includes_default
! 5316: int
! 5317: main ()
! 5318: {
! 5319: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
! 5320: test_array [0] = 0
! 5321:
! 5322: ;
! 5323: return 0;
! 5324: }
! 5325: _ACEOF
! 5326: rm -f conftest.$ac_objext
! 5327: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5328: (eval $ac_compile) 2>conftest.er1
! 5329: ac_status=$?
! 5330: grep -v '^ *+' conftest.er1 >conftest.err
! 5331: rm -f conftest.er1
! 5332: cat conftest.err >&5
! 5333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5334: (exit $ac_status); } &&
! 5335: { ac_try='test -z "$ac_c_werror_flag"
! 5336: || test ! -s conftest.err'
! 5337: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5338: (eval $ac_try) 2>&5
! 5339: ac_status=$?
! 5340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5341: (exit $ac_status); }; } &&
! 5342: { ac_try='test -s conftest.$ac_objext'
! 5343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5344: (eval $ac_try) 2>&5
! 5345: ac_status=$?
! 5346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5347: (exit $ac_status); }; }; then
! 5348: ac_hi=$ac_mid
! 5349: else
! 5350: echo "$as_me: failed program was:" >&5
! 5351: sed 's/^/| /' conftest.$ac_ext >&5
! 5352:
! 5353: ac_lo=`expr '(' $ac_mid ')' + 1`
! 5354: fi
! 5355: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5356: done
! 5357: case $ac_lo in
! 5358: ?*) ac_cv_sizeof_long=$ac_lo;;
! 5359: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
! 5360: See \`config.log' for more details." >&5
! 5361: echo "$as_me: error: cannot compute sizeof (long), 77
! 5362: See \`config.log' for more details." >&2;}
! 5363: { (exit 1); exit 1; }; } ;;
! 5364: esac
! 5365: else
! 5366: if test "$cross_compiling" = yes; then
! 5367: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 5368: See \`config.log' for more details." >&5
! 5369: echo "$as_me: error: cannot run test program while cross compiling
! 5370: See \`config.log' for more details." >&2;}
! 5371: { (exit 1); exit 1; }; }
! 5372: else
! 5373: cat >conftest.$ac_ext <<_ACEOF
! 5374: /* confdefs.h. */
! 5375: _ACEOF
! 5376: cat confdefs.h >>conftest.$ac_ext
! 5377: cat >>conftest.$ac_ext <<_ACEOF
! 5378: /* end confdefs.h. */
! 5379: $ac_includes_default
! 5380: long longval () { return (long) (sizeof (long)); }
! 5381: unsigned long ulongval () { return (long) (sizeof (long)); }
! 5382: #include <stdio.h>
! 5383: #include <stdlib.h>
! 5384: int
! 5385: main ()
! 5386: {
! 5387:
! 5388: FILE *f = fopen ("conftest.val", "w");
! 5389: if (! f)
! 5390: exit (1);
! 5391: if (((long) (sizeof (long))) < 0)
! 5392: {
! 5393: long i = longval ();
! 5394: if (i != ((long) (sizeof (long))))
! 5395: exit (1);
! 5396: fprintf (f, "%ld\n", i);
! 5397: }
! 5398: else
! 5399: {
! 5400: unsigned long i = ulongval ();
! 5401: if (i != ((long) (sizeof (long))))
! 5402: exit (1);
! 5403: fprintf (f, "%lu\n", i);
! 5404: }
! 5405: exit (ferror (f) || fclose (f) != 0);
! 5406:
! 5407: ;
! 5408: return 0;
! 5409: }
! 5410: _ACEOF
! 5411: rm -f conftest$ac_exeext
! 5412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5413: (eval $ac_link) 2>&5
! 5414: ac_status=$?
! 5415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5416: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5418: (eval $ac_try) 2>&5
! 5419: ac_status=$?
! 5420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5421: (exit $ac_status); }; }; then
! 5422: ac_cv_sizeof_long=`cat conftest.val`
! 5423: else
! 5424: echo "$as_me: program exited with status $ac_status" >&5
! 5425: echo "$as_me: failed program was:" >&5
! 5426: sed 's/^/| /' conftest.$ac_ext >&5
! 5427:
! 5428: ( exit $ac_status )
! 5429: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
! 5430: See \`config.log' for more details." >&5
! 5431: echo "$as_me: error: cannot compute sizeof (long), 77
! 5432: See \`config.log' for more details." >&2;}
! 5433: { (exit 1); exit 1; }; }
! 5434: fi
! 5435: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5436: fi
! 5437: fi
! 5438: rm -f conftest.val
! 5439: else
! 5440: ac_cv_sizeof_long=0
! 5441: fi
! 5442: fi
! 5443: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 5444: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
! 5445: cat >>confdefs.h <<_ACEOF
! 5446: #define SIZEOF_LONG $ac_cv_sizeof_long
! 5447: _ACEOF
! 5448:
! 5449:
! 5450: echo "$as_me:$LINENO: checking for long long" >&5
! 5451: echo $ECHO_N "checking for long long... $ECHO_C" >&6
! 5452: if test "${ac_cv_type_long_long+set}" = set; then
! 5453: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5454: else
! 5455: cat >conftest.$ac_ext <<_ACEOF
! 5456: /* confdefs.h. */
! 5457: _ACEOF
! 5458: cat confdefs.h >>conftest.$ac_ext
! 5459: cat >>conftest.$ac_ext <<_ACEOF
! 5460: /* end confdefs.h. */
! 5461: $ac_includes_default
! 5462: int
! 5463: main ()
! 5464: {
! 5465: if ((long long *) 0)
! 5466: return 0;
! 5467: if (sizeof (long long))
! 5468: return 0;
! 5469: ;
! 5470: return 0;
! 5471: }
! 5472: _ACEOF
! 5473: rm -f conftest.$ac_objext
! 5474: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5475: (eval $ac_compile) 2>conftest.er1
! 5476: ac_status=$?
! 5477: grep -v '^ *+' conftest.er1 >conftest.err
! 5478: rm -f conftest.er1
! 5479: cat conftest.err >&5
! 5480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5481: (exit $ac_status); } &&
! 5482: { ac_try='test -z "$ac_c_werror_flag"
! 5483: || test ! -s conftest.err'
! 5484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5485: (eval $ac_try) 2>&5
! 5486: ac_status=$?
! 5487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5488: (exit $ac_status); }; } &&
! 5489: { ac_try='test -s conftest.$ac_objext'
! 5490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5491: (eval $ac_try) 2>&5
! 5492: ac_status=$?
! 5493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5494: (exit $ac_status); }; }; then
! 5495: ac_cv_type_long_long=yes
! 5496: else
! 5497: echo "$as_me: failed program was:" >&5
! 5498: sed 's/^/| /' conftest.$ac_ext >&5
! 5499:
! 5500: ac_cv_type_long_long=no
! 5501: fi
! 5502: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5503: fi
! 5504: echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 5505: echo "${ECHO_T}$ac_cv_type_long_long" >&6
! 5506:
! 5507: echo "$as_me:$LINENO: checking size of long long" >&5
! 5508: echo $ECHO_N "checking size of long long... $ECHO_C" >&6
! 5509: if test "${ac_cv_sizeof_long_long+set}" = set; then
! 5510: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5511: else
! 5512: if test "$ac_cv_type_long_long" = yes; then
! 5513: # The cast to unsigned long works around a bug in the HP C Compiler
! 5514: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 5515: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 5516: # This bug is HP SR number 8606223364.
! 5517: if test "$cross_compiling" = yes; then
! 5518: # Depending upon the size, compute the lo and hi bounds.
! 5519: cat >conftest.$ac_ext <<_ACEOF
! 5520: /* confdefs.h. */
! 5521: _ACEOF
! 5522: cat confdefs.h >>conftest.$ac_ext
! 5523: cat >>conftest.$ac_ext <<_ACEOF
! 5524: /* end confdefs.h. */
! 5525: $ac_includes_default
! 5526: int
! 5527: main ()
! 5528: {
! 5529: static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
! 5530: test_array [0] = 0
! 5531:
! 5532: ;
! 5533: return 0;
! 5534: }
! 5535: _ACEOF
! 5536: rm -f conftest.$ac_objext
! 5537: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5538: (eval $ac_compile) 2>conftest.er1
! 5539: ac_status=$?
! 5540: grep -v '^ *+' conftest.er1 >conftest.err
! 5541: rm -f conftest.er1
! 5542: cat conftest.err >&5
! 5543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5544: (exit $ac_status); } &&
! 5545: { ac_try='test -z "$ac_c_werror_flag"
! 5546: || test ! -s conftest.err'
! 5547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5548: (eval $ac_try) 2>&5
! 5549: ac_status=$?
! 5550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5551: (exit $ac_status); }; } &&
! 5552: { ac_try='test -s conftest.$ac_objext'
! 5553: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5554: (eval $ac_try) 2>&5
! 5555: ac_status=$?
! 5556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5557: (exit $ac_status); }; }; then
! 5558: ac_lo=0 ac_mid=0
! 5559: while :; do
! 5560: cat >conftest.$ac_ext <<_ACEOF
! 5561: /* confdefs.h. */
! 5562: _ACEOF
! 5563: cat confdefs.h >>conftest.$ac_ext
! 5564: cat >>conftest.$ac_ext <<_ACEOF
! 5565: /* end confdefs.h. */
! 5566: $ac_includes_default
! 5567: int
! 5568: main ()
! 5569: {
! 5570: static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
! 5571: test_array [0] = 0
! 5572:
! 5573: ;
! 5574: return 0;
! 5575: }
! 5576: _ACEOF
! 5577: rm -f conftest.$ac_objext
! 5578: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5579: (eval $ac_compile) 2>conftest.er1
! 5580: ac_status=$?
! 5581: grep -v '^ *+' conftest.er1 >conftest.err
! 5582: rm -f conftest.er1
! 5583: cat conftest.err >&5
! 5584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5585: (exit $ac_status); } &&
! 5586: { ac_try='test -z "$ac_c_werror_flag"
! 5587: || test ! -s conftest.err'
! 5588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5589: (eval $ac_try) 2>&5
! 5590: ac_status=$?
! 5591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5592: (exit $ac_status); }; } &&
! 5593: { ac_try='test -s conftest.$ac_objext'
! 5594: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5595: (eval $ac_try) 2>&5
! 5596: ac_status=$?
! 5597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5598: (exit $ac_status); }; }; then
! 5599: ac_hi=$ac_mid; break
! 5600: else
! 5601: echo "$as_me: failed program was:" >&5
! 5602: sed 's/^/| /' conftest.$ac_ext >&5
! 5603:
! 5604: ac_lo=`expr $ac_mid + 1`
! 5605: if test $ac_lo -le $ac_mid; then
! 5606: ac_lo= ac_hi=
! 5607: break
! 5608: fi
! 5609: ac_mid=`expr 2 '*' $ac_mid + 1`
! 5610: fi
! 5611: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5612: done
! 5613: else
! 5614: echo "$as_me: failed program was:" >&5
! 5615: sed 's/^/| /' conftest.$ac_ext >&5
! 5616:
! 5617: cat >conftest.$ac_ext <<_ACEOF
! 5618: /* confdefs.h. */
! 5619: _ACEOF
! 5620: cat confdefs.h >>conftest.$ac_ext
! 5621: cat >>conftest.$ac_ext <<_ACEOF
! 5622: /* end confdefs.h. */
! 5623: $ac_includes_default
! 5624: int
! 5625: main ()
! 5626: {
! 5627: static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
! 5628: test_array [0] = 0
! 5629:
! 5630: ;
! 5631: return 0;
! 5632: }
! 5633: _ACEOF
! 5634: rm -f conftest.$ac_objext
! 5635: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5636: (eval $ac_compile) 2>conftest.er1
! 5637: ac_status=$?
! 5638: grep -v '^ *+' conftest.er1 >conftest.err
! 5639: rm -f conftest.er1
! 5640: cat conftest.err >&5
! 5641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5642: (exit $ac_status); } &&
! 5643: { ac_try='test -z "$ac_c_werror_flag"
! 5644: || test ! -s conftest.err'
! 5645: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5646: (eval $ac_try) 2>&5
! 5647: ac_status=$?
! 5648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5649: (exit $ac_status); }; } &&
! 5650: { ac_try='test -s conftest.$ac_objext'
! 5651: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5652: (eval $ac_try) 2>&5
! 5653: ac_status=$?
! 5654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5655: (exit $ac_status); }; }; then
! 5656: ac_hi=-1 ac_mid=-1
! 5657: while :; do
! 5658: cat >conftest.$ac_ext <<_ACEOF
! 5659: /* confdefs.h. */
! 5660: _ACEOF
! 5661: cat confdefs.h >>conftest.$ac_ext
! 5662: cat >>conftest.$ac_ext <<_ACEOF
! 5663: /* end confdefs.h. */
! 5664: $ac_includes_default
! 5665: int
! 5666: main ()
! 5667: {
! 5668: static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
! 5669: test_array [0] = 0
! 5670:
! 5671: ;
! 5672: return 0;
! 5673: }
! 5674: _ACEOF
! 5675: rm -f conftest.$ac_objext
! 5676: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5677: (eval $ac_compile) 2>conftest.er1
! 5678: ac_status=$?
! 5679: grep -v '^ *+' conftest.er1 >conftest.err
! 5680: rm -f conftest.er1
! 5681: cat conftest.err >&5
! 5682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5683: (exit $ac_status); } &&
! 5684: { ac_try='test -z "$ac_c_werror_flag"
! 5685: || test ! -s conftest.err'
! 5686: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5687: (eval $ac_try) 2>&5
! 5688: ac_status=$?
! 5689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5690: (exit $ac_status); }; } &&
! 5691: { ac_try='test -s conftest.$ac_objext'
! 5692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5693: (eval $ac_try) 2>&5
! 5694: ac_status=$?
! 5695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5696: (exit $ac_status); }; }; then
! 5697: ac_lo=$ac_mid; break
! 5698: else
! 5699: echo "$as_me: failed program was:" >&5
! 5700: sed 's/^/| /' conftest.$ac_ext >&5
! 5701:
! 5702: ac_hi=`expr '(' $ac_mid ')' - 1`
! 5703: if test $ac_mid -le $ac_hi; then
! 5704: ac_lo= ac_hi=
! 5705: break
! 5706: fi
! 5707: ac_mid=`expr 2 '*' $ac_mid`
! 5708: fi
! 5709: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5710: done
! 5711: else
! 5712: echo "$as_me: failed program was:" >&5
! 5713: sed 's/^/| /' conftest.$ac_ext >&5
! 5714:
! 5715: ac_lo= ac_hi=
! 5716: fi
! 5717: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5718: fi
! 5719: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5720: # Binary search between lo and hi bounds.
! 5721: while test "x$ac_lo" != "x$ac_hi"; do
! 5722: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
! 5723: cat >conftest.$ac_ext <<_ACEOF
! 5724: /* confdefs.h. */
! 5725: _ACEOF
! 5726: cat confdefs.h >>conftest.$ac_ext
! 5727: cat >>conftest.$ac_ext <<_ACEOF
! 5728: /* end confdefs.h. */
! 5729: $ac_includes_default
! 5730: int
! 5731: main ()
! 5732: {
! 5733: static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
! 5734: test_array [0] = 0
! 5735:
! 5736: ;
! 5737: return 0;
! 5738: }
! 5739: _ACEOF
! 5740: rm -f conftest.$ac_objext
! 5741: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5742: (eval $ac_compile) 2>conftest.er1
! 5743: ac_status=$?
! 5744: grep -v '^ *+' conftest.er1 >conftest.err
! 5745: rm -f conftest.er1
! 5746: cat conftest.err >&5
! 5747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5748: (exit $ac_status); } &&
! 5749: { ac_try='test -z "$ac_c_werror_flag"
! 5750: || test ! -s conftest.err'
! 5751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5752: (eval $ac_try) 2>&5
! 5753: ac_status=$?
! 5754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5755: (exit $ac_status); }; } &&
! 5756: { ac_try='test -s conftest.$ac_objext'
! 5757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5758: (eval $ac_try) 2>&5
! 5759: ac_status=$?
! 5760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5761: (exit $ac_status); }; }; then
! 5762: ac_hi=$ac_mid
! 5763: else
! 5764: echo "$as_me: failed program was:" >&5
! 5765: sed 's/^/| /' conftest.$ac_ext >&5
! 5766:
! 5767: ac_lo=`expr '(' $ac_mid ')' + 1`
! 5768: fi
! 5769: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 5770: done
! 5771: case $ac_lo in
! 5772: ?*) ac_cv_sizeof_long_long=$ac_lo;;
! 5773: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
! 5774: See \`config.log' for more details." >&5
! 5775: echo "$as_me: error: cannot compute sizeof (long long), 77
! 5776: See \`config.log' for more details." >&2;}
! 5777: { (exit 1); exit 1; }; } ;;
! 5778: esac
! 5779: else
! 5780: if test "$cross_compiling" = yes; then
! 5781: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 5782: See \`config.log' for more details." >&5
! 5783: echo "$as_me: error: cannot run test program while cross compiling
! 5784: See \`config.log' for more details." >&2;}
! 5785: { (exit 1); exit 1; }; }
! 5786: else
! 5787: cat >conftest.$ac_ext <<_ACEOF
! 5788: /* confdefs.h. */
! 5789: _ACEOF
! 5790: cat confdefs.h >>conftest.$ac_ext
! 5791: cat >>conftest.$ac_ext <<_ACEOF
! 5792: /* end confdefs.h. */
! 5793: $ac_includes_default
! 5794: long longval () { return (long) (sizeof (long long)); }
! 5795: unsigned long ulongval () { return (long) (sizeof (long long)); }
! 5796: #include <stdio.h>
! 5797: #include <stdlib.h>
! 5798: int
! 5799: main ()
! 5800: {
! 5801:
! 5802: FILE *f = fopen ("conftest.val", "w");
! 5803: if (! f)
! 5804: exit (1);
! 5805: if (((long) (sizeof (long long))) < 0)
! 5806: {
! 5807: long i = longval ();
! 5808: if (i != ((long) (sizeof (long long))))
! 5809: exit (1);
! 5810: fprintf (f, "%ld\n", i);
! 5811: }
! 5812: else
! 5813: {
! 5814: unsigned long i = ulongval ();
! 5815: if (i != ((long) (sizeof (long long))))
! 5816: exit (1);
! 5817: fprintf (f, "%lu\n", i);
! 5818: }
! 5819: exit (ferror (f) || fclose (f) != 0);
! 5820:
! 5821: ;
! 5822: return 0;
! 5823: }
! 5824: _ACEOF
! 5825: rm -f conftest$ac_exeext
! 5826: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5827: (eval $ac_link) 2>&5
! 5828: ac_status=$?
! 5829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5830: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5832: (eval $ac_try) 2>&5
! 5833: ac_status=$?
! 5834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5835: (exit $ac_status); }; }; then
! 5836: ac_cv_sizeof_long_long=`cat conftest.val`
! 5837: else
! 5838: echo "$as_me: program exited with status $ac_status" >&5
! 5839: echo "$as_me: failed program was:" >&5
! 5840: sed 's/^/| /' conftest.$ac_ext >&5
! 5841:
! 5842: ( exit $ac_status )
! 5843: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
! 5844: See \`config.log' for more details." >&5
! 5845: echo "$as_me: error: cannot compute sizeof (long long), 77
! 5846: See \`config.log' for more details." >&2;}
! 5847: { (exit 1); exit 1; }; }
! 5848: fi
! 5849: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5850: fi
! 5851: fi
! 5852: rm -f conftest.val
! 5853: else
! 5854: ac_cv_sizeof_long_long=0
! 5855: fi
! 5856: fi
! 5857: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
! 5858: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
! 5859: cat >>confdefs.h <<_ACEOF
! 5860: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
! 5861: _ACEOF
! 5862:
! 5863:
! 5864:
1.4 jlam 5865:
1.1 schmonz 5866:
5867:
1.11 jlam 5868: ac_config_files="$ac_config_files Makefile add/Makefile admin/Makefile bpm/bpm.sh create/Makefile delete/Makefile info/Makefile lib/Makefile view/Makefile view/linkfarm.sh view/pkg_view.sh"
1.3 jlam 5869:
5870: cat >confcache <<\_ACEOF
5871: # This file is a shell script that caches the results of configure
5872: # tests run on this system so they can be shared between configure
5873: # scripts and configure runs, see configure's option --config-cache.
5874: # It is not useful on other systems. If it contains results you don't
5875: # want to keep, you may remove or edit it.
5876: #
5877: # config.status only pays attention to the cache file if you give it
5878: # the --recheck option to rerun configure.
5879: #
5880: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5881: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5882: # following values.
1.1 schmonz 5883:
1.3 jlam 5884: _ACEOF
1.1 schmonz 5885:
1.3 jlam 5886: # The following way of writing the cache mishandles newlines in values,
5887: # but we know of no workaround that is simple, portable, and efficient.
5888: # So, don't put newlines in cache variables' values.
5889: # Ultrix sh set writes to stderr and can't be redirected directly,
5890: # and sets the high bit in the cache file unless we assign to the vars.
5891: {
5892: (set) 2>&1 |
5893: case `(ac_space=' '; set | grep ac_space) 2>&1` in
5894: *ac_space=\ *)
5895: # `set' does not quote correctly, so add quotes (double-quote
5896: # substitution turns \\\\ into \\, and sed turns \\ into \).
5897: sed -n \
1.9 grant 5898: "s/'/'\\\\''/g;
5899: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.3 jlam 5900: ;;
5901: *)
5902: # `set' quotes correctly as required by POSIX, so do not add quotes.
5903: sed -n \
1.9 grant 5904: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.3 jlam 5905: ;;
5906: esac;
5907: } |
5908: sed '
5909: t clear
5910: : clear
5911: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5912: t end
5913: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5914: : end' >>confcache
5915: if diff $cache_file confcache >/dev/null 2>&1; then :; else
5916: if test -w $cache_file; then
5917: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5918: cat confcache >$cache_file
5919: else
5920: echo "not updating unwritable cache $cache_file"
5921: fi
1.1 schmonz 5922: fi
1.3 jlam 5923: rm -f confcache
5924:
5925: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5926: # Let make expand exec_prefix.
5927: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5928:
5929: # VPATH may cause trouble with some makes, so we remove $(srcdir),
5930: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5931: # trailing colons and then remove the whole line if VPATH becomes empty
5932: # (actually we leave an empty line to preserve line numbers).
5933: if test "x$srcdir" = x.; then
1.9 grant 5934: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.3 jlam 5935: s/:*\$(srcdir):*/:/;
5936: s/:*\${srcdir}:*/:/;
5937: s/:*@srcdir@:*/:/;
1.9 grant 5938: s/^\([^=]*=[ ]*\):*/\1/;
1.3 jlam 5939: s/:*$//;
1.9 grant 5940: s/^[^=]*=[ ]*$//;
1.3 jlam 5941: }'
1.1 schmonz 5942: fi
5943:
1.3 jlam 5944: DEFS=-DHAVE_CONFIG_H
5945:
5946: ac_libobjs=
5947: ac_ltlibobjs=
5948: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5949: # 1. Remove the extension, and $U if already installed.
5950: ac_i=`echo "$ac_i" |
1.9 grant 5951: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.3 jlam 5952: # 2. Add them.
5953: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5954: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.1 schmonz 5955: done
1.3 jlam 5956: LIBOBJS=$ac_libobjs
5957:
5958: LTLIBOBJS=$ac_ltlibobjs
1.1 schmonz 5959:
5960:
5961:
1.3 jlam 5962: : ${CONFIG_STATUS=./config.status}
5963: ac_clean_files_save=$ac_clean_files
5964: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5965: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5966: echo "$as_me: creating $CONFIG_STATUS" >&6;}
5967: cat >$CONFIG_STATUS <<_ACEOF
5968: #! $SHELL
5969: # Generated by $as_me.
5970: # Run this file to recreate the current configuration.
5971: # Compiler output produced by configure, useful for debugging
5972: # configure, is in config.log if it exists.
1.1 schmonz 5973:
1.3 jlam 5974: debug=false
5975: ac_cs_recheck=false
5976: ac_cs_silent=false
5977: SHELL=\${CONFIG_SHELL-$SHELL}
5978: _ACEOF
5979:
5980: cat >>$CONFIG_STATUS <<\_ACEOF
5981: ## --------------------- ##
5982: ## M4sh Initialization. ##
5983: ## --------------------- ##
5984:
5985: # Be Bourne compatible
5986: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5987: emulate sh
5988: NULLCMD=:
5989: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5990: # is contrary to our usage. Disable this feature.
5991: alias -g '${1+"$@"}'='"$@"'
5992: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5993: set -o posix
5994: fi
1.9 grant 5995: DUALCASE=1; export DUALCASE # for MKS sh
1.3 jlam 5996:
5997: # Support unset when possible.
1.9 grant 5998: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.3 jlam 5999: as_unset=unset
6000: else
6001: as_unset=false
1.1 schmonz 6002: fi
6003:
1.3 jlam 6004:
6005: # Work around bugs in pre-3.0 UWIN ksh.
6006: $as_unset ENV MAIL MAILPATH
6007: PS1='$ '
6008: PS2='> '
6009: PS4='+ '
6010:
6011: # NLS nuisances.
6012: for as_var in \
6013: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6014: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6015: LC_TELEPHONE LC_TIME
6016: do
1.9 grant 6017: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.3 jlam 6018: eval $as_var=C; export $as_var
6019: else
6020: $as_unset $as_var
6021: fi
1.1 schmonz 6022: done
6023:
1.3 jlam 6024: # Required to use basename.
6025: if expr a : '\(a\)' >/dev/null 2>&1; then
6026: as_expr=expr
6027: else
6028: as_expr=false
6029: fi
6030:
6031: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6032: as_basename=basename
6033: else
6034: as_basename=false
6035: fi
1.1 schmonz 6036:
1.2 grant 6037:
1.3 jlam 6038: # Name of the executable.
6039: as_me=`$as_basename "$0" ||
6040: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6041: X"$0" : 'X\(//\)$' \| \
6042: X"$0" : 'X\(/\)$' \| \
6043: . : '\(.\)' 2>/dev/null ||
6044: echo X/"$0" |
6045: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6046: /^X\/\(\/\/\)$/{ s//\1/; q; }
6047: /^X\/\(\/\).*/{ s//\1/; q; }
6048: s/.*/./; q'`
6049:
6050:
6051: # PATH needs CR, and LINENO needs CR and PATH.
6052: # Avoid depending upon Character Ranges.
6053: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6054: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6055: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6056: as_cr_digits='0123456789'
6057: as_cr_alnum=$as_cr_Letters$as_cr_digits
6058:
6059: # The user is always right.
6060: if test "${PATH_SEPARATOR+set}" != set; then
6061: echo "#! /bin/sh" >conf$$.sh
6062: echo "exit 0" >>conf$$.sh
6063: chmod +x conf$$.sh
6064: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6065: PATH_SEPARATOR=';'
6066: else
6067: PATH_SEPARATOR=:
6068: fi
6069: rm -f conf$$.sh
6070: fi
1.2 grant 6071:
6072:
1.3 jlam 6073: as_lineno_1=$LINENO
6074: as_lineno_2=$LINENO
6075: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6076: test "x$as_lineno_1" != "x$as_lineno_2" &&
6077: test "x$as_lineno_3" = "x$as_lineno_2" || {
6078: # Find who we are. Look in the path if we contain no path at all
6079: # relative or not.
6080: case $0 in
6081: *[\\/]* ) as_myself=$0 ;;
6082: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083: for as_dir in $PATH
6084: do
6085: IFS=$as_save_IFS
6086: test -z "$as_dir" && as_dir=.
6087: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6088: done
1.2 grant 6089:
1.3 jlam 6090: ;;
6091: esac
6092: # We did not find ourselves, most probably we were run as `sh COMMAND'
6093: # in which case we are not to be found in the path.
6094: if test "x$as_myself" = x; then
6095: as_myself=$0
6096: fi
6097: if test ! -f "$as_myself"; then
6098: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6099: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6100: { (exit 1); exit 1; }; }
6101: fi
6102: case $CONFIG_SHELL in
6103: '')
6104: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6106: do
6107: IFS=$as_save_IFS
6108: test -z "$as_dir" && as_dir=.
6109: for as_base in sh bash ksh sh5; do
6110: case $as_dir in
6111: /*)
6112: if ("$as_dir/$as_base" -c '
6113: as_lineno_1=$LINENO
6114: as_lineno_2=$LINENO
6115: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6116: test "x$as_lineno_1" != "x$as_lineno_2" &&
6117: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6118: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6119: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6120: CONFIG_SHELL=$as_dir/$as_base
6121: export CONFIG_SHELL
6122: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6123: fi;;
6124: esac
6125: done
6126: done
6127: ;;
6128: esac
1.2 grant 6129:
1.3 jlam 6130: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6131: # uniformly replaced by the line number. The first 'sed' inserts a
6132: # line-number line before each line; the second 'sed' does the real
6133: # work. The second script uses 'N' to pair each line-number line
6134: # with the numbered line, and appends trailing '-' during
6135: # substitution so that $LINENO is not a special case at line end.
6136: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6137: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6138: sed '=' <$as_myself |
6139: sed '
6140: N
6141: s,$,-,
6142: : loop
6143: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6144: t loop
6145: s,-$,,
6146: s,^['$as_cr_digits']*\n,,
6147: ' >$as_me.lineno &&
6148: chmod +x $as_me.lineno ||
6149: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6150: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6151: { (exit 1); exit 1; }; }
6152:
6153: # Don't try to exec as it changes $[0], causing all sort of problems
6154: # (the dirname of $[0] is not the place where we might find the
6155: # original and so on. Autoconf is especially sensible to this).
6156: . ./$as_me.lineno
6157: # Exit status is that of the last command.
6158: exit
1.2 grant 6159: }
6160:
1.3 jlam 6161:
6162: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6163: *c*,-n*) ECHO_N= ECHO_C='
6164: ' ECHO_T=' ' ;;
6165: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6166: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6167: esac
6168:
6169: if expr a : '\(a\)' >/dev/null 2>&1; then
6170: as_expr=expr
1.2 grant 6171: else
1.3 jlam 6172: as_expr=false
1.2 grant 6173: fi
1.3 jlam 6174:
6175: rm -f conf$$ conf$$.exe conf$$.file
6176: echo >conf$$.file
6177: if ln -s conf$$.file conf$$ 2>/dev/null; then
6178: # We could just check for DJGPP; but this test a) works b) is more generic
6179: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6180: if test -f conf$$.exe; then
6181: # Don't use ln at all; we don't have any links
6182: as_ln_s='cp -p'
6183: else
6184: as_ln_s='ln -s'
6185: fi
6186: elif ln conf$$.file conf$$ 2>/dev/null; then
6187: as_ln_s=ln
6188: else
6189: as_ln_s='cp -p'
1.2 grant 6190: fi
1.3 jlam 6191: rm -f conf$$ conf$$.exe conf$$.file
1.2 grant 6192:
1.3 jlam 6193: if mkdir -p . 2>/dev/null; then
6194: as_mkdir_p=:
6195: else
1.9 grant 6196: test -d ./-p && rmdir ./-p
1.3 jlam 6197: as_mkdir_p=false
1.1 schmonz 6198: fi
6199:
1.3 jlam 6200: as_executable_p="test -f"
6201:
6202: # Sed expression to map a string onto a valid CPP name.
1.9 grant 6203: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 schmonz 6204:
1.3 jlam 6205: # Sed expression to map a string onto a valid variable name.
1.9 grant 6206: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 schmonz 6207:
6208:
1.3 jlam 6209: # IFS
6210: # We need space, tab and new line, in precisely that order.
6211: as_nl='
6212: '
6213: IFS=" $as_nl"
1.1 schmonz 6214:
1.3 jlam 6215: # CDPATH.
6216: $as_unset CDPATH
1.1 schmonz 6217:
1.3 jlam 6218: exec 6>&1
1.1 schmonz 6219:
1.3 jlam 6220: # Open the log real soon, to keep \$[0] and so on meaningful, and to
6221: # report actual input values of CONFIG_FILES etc. instead of their
6222: # values after options handling. Logging --version etc. is OK.
6223: exec 5>>config.log
6224: {
6225: echo
6226: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6227: ## Running $as_me. ##
6228: _ASBOX
6229: } >&5
6230: cat >&5 <<_CSEOF
6231:
1.17 ! dmcmahil 6232: This file was extended by pkg_install $as_me 20050607, which was
1.9 grant 6233: generated by GNU Autoconf 2.59. Invocation command line was
1.3 jlam 6234:
6235: CONFIG_FILES = $CONFIG_FILES
6236: CONFIG_HEADERS = $CONFIG_HEADERS
6237: CONFIG_LINKS = $CONFIG_LINKS
6238: CONFIG_COMMANDS = $CONFIG_COMMANDS
6239: $ $0 $@
6240:
6241: _CSEOF
6242: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6243: echo >&5
6244: _ACEOF
6245:
6246: # Files that config.status was made for.
6247: if test -n "$ac_config_files"; then
6248: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6249: fi
6250:
6251: if test -n "$ac_config_headers"; then
6252: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6253: fi
6254:
6255: if test -n "$ac_config_links"; then
6256: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6257: fi
6258:
6259: if test -n "$ac_config_commands"; then
6260: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6261: fi
6262:
6263: cat >>$CONFIG_STATUS <<\_ACEOF
6264:
6265: ac_cs_usage="\
6266: \`$as_me' instantiates files from templates according to the
6267: current configuration.
6268:
6269: Usage: $0 [OPTIONS] [FILE]...
6270:
6271: -h, --help print this help, then exit
6272: -V, --version print version number, then exit
6273: -q, --quiet do not print progress messages
6274: -d, --debug don't remove temporary files
6275: --recheck update $as_me by reconfiguring in the same conditions
6276: --file=FILE[:TEMPLATE]
1.9 grant 6277: instantiate the configuration file FILE
1.3 jlam 6278: --header=FILE[:TEMPLATE]
1.9 grant 6279: instantiate the configuration header FILE
1.3 jlam 6280:
6281: Configuration files:
6282: $config_files
6283:
6284: Configuration headers:
6285: $config_headers
6286:
6287: Report bugs to <bug-autoconf@gnu.org>."
6288: _ACEOF
6289:
6290: cat >>$CONFIG_STATUS <<_ACEOF
6291: ac_cs_version="\\
1.17 ! dmcmahil 6292: pkg_install config.status 20050607
1.9 grant 6293: configured by $0, generated by GNU Autoconf 2.59,
1.3 jlam 6294: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6295:
1.9 grant 6296: Copyright (C) 2003 Free Software Foundation, Inc.
1.3 jlam 6297: This config.status script is free software; the Free Software Foundation
6298: gives unlimited permission to copy, distribute and modify it."
6299: srcdir=$srcdir
6300: INSTALL="$INSTALL"
6301: _ACEOF
6302:
6303: cat >>$CONFIG_STATUS <<\_ACEOF
6304: # If no file are specified by the user, then we need to provide default
6305: # value. By we need to know if files were specified by the user.
6306: ac_need_defaults=:
6307: while test $# != 0
6308: do
6309: case $1 in
6310: --*=*)
6311: ac_option=`expr "x$1" : 'x\([^=]*\)='`
6312: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6313: ac_shift=:
1.1 schmonz 6314: ;;
1.3 jlam 6315: -*)
6316: ac_option=$1
6317: ac_optarg=$2
6318: ac_shift=shift
1.1 schmonz 6319: ;;
1.3 jlam 6320: *) # This is not an option, so the user has probably given explicit
6321: # arguments.
6322: ac_option=$1
6323: ac_need_defaults=false;;
6324: esac
6325:
6326: case $ac_option in
6327: # Handling of the options.
6328: _ACEOF
6329: cat >>$CONFIG_STATUS <<\_ACEOF
6330: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6331: ac_cs_recheck=: ;;
6332: --version | --vers* | -V )
6333: echo "$ac_cs_version"; exit 0 ;;
6334: --he | --h)
6335: # Conflict between --help and --header
6336: { { echo "$as_me:$LINENO: error: ambiguous option: $1
6337: Try \`$0 --help' for more information." >&5
6338: echo "$as_me: error: ambiguous option: $1
6339: Try \`$0 --help' for more information." >&2;}
6340: { (exit 1); exit 1; }; };;
6341: --help | --hel | -h )
6342: echo "$ac_cs_usage"; exit 0 ;;
6343: --debug | --d* | -d )
6344: debug=: ;;
6345: --file | --fil | --fi | --f )
6346: $ac_shift
6347: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6348: ac_need_defaults=false;;
6349: --header | --heade | --head | --hea )
6350: $ac_shift
6351: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6352: ac_need_defaults=false;;
6353: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6354: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6355: ac_cs_silent=: ;;
6356:
6357: # This is an error.
6358: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6359: Try \`$0 --help' for more information." >&5
6360: echo "$as_me: error: unrecognized option: $1
6361: Try \`$0 --help' for more information." >&2;}
6362: { (exit 1); exit 1; }; } ;;
6363:
6364: *) ac_config_targets="$ac_config_targets $1" ;;
6365:
6366: esac
6367: shift
6368: done
1.1 schmonz 6369:
1.3 jlam 6370: ac_configure_extra_args=
1.1 schmonz 6371:
1.3 jlam 6372: if $ac_cs_silent; then
6373: exec 6>/dev/null
6374: ac_configure_extra_args="$ac_configure_extra_args --silent"
6375: fi
1.1 schmonz 6376:
1.3 jlam 6377: _ACEOF
6378: cat >>$CONFIG_STATUS <<_ACEOF
6379: if \$ac_cs_recheck; then
6380: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6381: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 schmonz 6382: fi
6383:
1.3 jlam 6384: _ACEOF
6385:
1.1 schmonz 6386:
6387:
6388:
6389:
1.3 jlam 6390: cat >>$CONFIG_STATUS <<\_ACEOF
6391: for ac_config_target in $ac_config_targets
1.1 schmonz 6392: do
1.3 jlam 6393: case "$ac_config_target" in
6394: # Handling of arguments.
6395: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6396: "add/Makefile" ) CONFIG_FILES="$CONFIG_FILES add/Makefile" ;;
6397: "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
1.11 jlam 6398: "bpm/bpm.sh" ) CONFIG_FILES="$CONFIG_FILES bpm/bpm.sh" ;;
1.3 jlam 6399: "create/Makefile" ) CONFIG_FILES="$CONFIG_FILES create/Makefile" ;;
6400: "delete/Makefile" ) CONFIG_FILES="$CONFIG_FILES delete/Makefile" ;;
6401: "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
6402: "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6403: "view/Makefile" ) CONFIG_FILES="$CONFIG_FILES view/Makefile" ;;
1.5 jlam 6404: "view/linkfarm.sh" ) CONFIG_FILES="$CONFIG_FILES view/linkfarm.sh" ;;
6405: "view/pkg_view.sh" ) CONFIG_FILES="$CONFIG_FILES view/pkg_view.sh" ;;
1.3 jlam 6406: "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
6407: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6408: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6409: { (exit 1); exit 1; }; };;
1.1 schmonz 6410: esac
6411: done
6412:
1.3 jlam 6413: # If the user did not use the arguments to specify the items to instantiate,
6414: # then the envvar interface is used. Set only those that are not.
6415: # We use the long form for the default assignment because of an extremely
6416: # bizarre bug on SunOS 4.1.3.
6417: if $ac_need_defaults; then
6418: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6419: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6420: fi
6421:
6422: # Have a temporary directory for convenience. Make it in the build tree
6423: # simply because there is no reason to put it here, and in addition,
6424: # creating and moving files from /tmp can sometimes cause problems.
6425: # Create a temporary directory, and hook for its removal unless debugging.
6426: $debug ||
6427: {
6428: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6429: trap '{ (exit 1); exit 1; }' 1 2 13 15
6430: }
6431:
6432: # Create a (secure) tmp directory for tmp files.
6433:
6434: {
6435: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6436: test -n "$tmp" && test -d "$tmp"
6437: } ||
6438: {
6439: tmp=./confstat$$-$RANDOM
6440: (umask 077 && mkdir $tmp)
6441: } ||
6442: {
6443: echo "$me: cannot create a temporary directory in ." >&2
6444: { (exit 1); exit 1; }
6445: }
6446:
6447: _ACEOF
1.1 schmonz 6448:
1.3 jlam 6449: cat >>$CONFIG_STATUS <<_ACEOF
6450:
6451: #
6452: # CONFIG_FILES section.
6453: #
1.1 schmonz 6454:
1.3 jlam 6455: # No need to generate the scripts if there are no CONFIG_FILES.
6456: # This happens for instance when ./config.status config.h
6457: if test -n "\$CONFIG_FILES"; then
6458: # Protect against being on the right side of a sed subst in config.status.
6459: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6460: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6461: s,@SHELL@,$SHELL,;t t
6462: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6463: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6464: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6465: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6466: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6467: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6468: s,@exec_prefix@,$exec_prefix,;t t
6469: s,@prefix@,$prefix,;t t
6470: s,@program_transform_name@,$program_transform_name,;t t
6471: s,@bindir@,$bindir,;t t
6472: s,@sbindir@,$sbindir,;t t
6473: s,@libexecdir@,$libexecdir,;t t
6474: s,@datadir@,$datadir,;t t
6475: s,@sysconfdir@,$sysconfdir,;t t
6476: s,@sharedstatedir@,$sharedstatedir,;t t
6477: s,@localstatedir@,$localstatedir,;t t
6478: s,@libdir@,$libdir,;t t
6479: s,@includedir@,$includedir,;t t
6480: s,@oldincludedir@,$oldincludedir,;t t
6481: s,@infodir@,$infodir,;t t
6482: s,@mandir@,$mandir,;t t
6483: s,@build_alias@,$build_alias,;t t
6484: s,@host_alias@,$host_alias,;t t
6485: s,@target_alias@,$target_alias,;t t
6486: s,@DEFS@,$DEFS,;t t
6487: s,@ECHO_C@,$ECHO_C,;t t
6488: s,@ECHO_N@,$ECHO_N,;t t
6489: s,@ECHO_T@,$ECHO_T,;t t
6490: s,@LIBS@,$LIBS,;t t
6491: s,@build@,$build,;t t
6492: s,@build_cpu@,$build_cpu,;t t
6493: s,@build_vendor@,$build_vendor,;t t
6494: s,@build_os@,$build_os,;t t
6495: s,@host@,$host,;t t
6496: s,@host_cpu@,$host_cpu,;t t
6497: s,@host_vendor@,$host_vendor,;t t
6498: s,@host_os@,$host_os,;t t
6499: s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
6500: s,@INCLUDES@,$INCLUDES,;t t
6501: s,@SET_MAKE@,$SET_MAKE,;t t
6502: s,@CC@,$CC,;t t
6503: s,@CFLAGS@,$CFLAGS,;t t
6504: s,@LDFLAGS@,$LDFLAGS,;t t
6505: s,@CPPFLAGS@,$CPPFLAGS,;t t
6506: s,@ac_ct_CC@,$ac_ct_CC,;t t
6507: s,@EXEEXT@,$EXEEXT,;t t
6508: s,@OBJEXT@,$OBJEXT,;t t
6509: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6510: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6511: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6512: s,@LN_S@,$LN_S,;t t
6513: s,@RANLIB@,$RANLIB,;t t
6514: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6515: s,@AR@,$AR,;t t
1.5 jlam 6516: s,@CHMOD@,$CHMOD,;t t
6517: s,@CMP@,$CMP,;t t
6518: s,@CP@,$CP,;t t
6519: s,@ENV@,$ENV,;t t
6520: s,@FIND@,$FIND,;t t
6521: s,@GREP@,$GREP,;t t
6522: s,@LN@,$LN,;t t
6523: s,@MKDIR@,$MKDIR,;t t
6524: s,@RMDIR@,$RMDIR,;t t
6525: s,@RM@,$RM,;t t
6526: s,@SED@,$SED,;t t
6527: s,@SORT@,$SORT,;t t
6528: s,@TOUCH@,$TOUCH,;t t
1.3 jlam 6529: s,@AUTOCONF@,$AUTOCONF,;t t
6530: s,@AUTOHEADER@,$AUTOHEADER,;t t
6531: s,@pkgdbdir@,$pkgdbdir,;t t
1.6 grant 6532: s,@ftp@,$ftp,;t t
6533: s,@tar@,$tar,;t t
6534: s,@pax@,$pax,;t t
6535: s,@mtree@,$mtree,;t t
1.3 jlam 6536: s,@CPP@,$CPP,;t t
6537: s,@EGREP@,$EGREP,;t t
6538: s,@LIBOBJS@,$LIBOBJS,;t t
6539: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 schmonz 6540: CEOF
6541:
1.3 jlam 6542: _ACEOF
1.1 schmonz 6543:
1.3 jlam 6544: cat >>$CONFIG_STATUS <<\_ACEOF
6545: # Split the substitutions into bite-sized pieces for seds with
6546: # small command number limits, like on Digital OSF/1 and HP-UX.
6547: ac_max_sed_lines=48
6548: ac_sed_frag=1 # Number of current file.
6549: ac_beg=1 # First line for current file.
6550: ac_end=$ac_max_sed_lines # Line after last line for current file.
6551: ac_more_lines=:
6552: ac_sed_cmds=
6553: while $ac_more_lines; do
6554: if test $ac_beg -gt 1; then
6555: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6556: else
6557: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6558: fi
6559: if test ! -s $tmp/subs.frag; then
6560: ac_more_lines=false
1.1 schmonz 6561: else
1.3 jlam 6562: # The purpose of the label and of the branching condition is to
6563: # speed up the sed processing (if there are no `@' at all, there
6564: # is no need to browse any of the substitutions).
6565: # These are the two extra sed commands mentioned above.
6566: (echo ':t
6567: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6568: if test -z "$ac_sed_cmds"; then
1.9 grant 6569: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.3 jlam 6570: else
1.9 grant 6571: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.3 jlam 6572: fi
6573: ac_sed_frag=`expr $ac_sed_frag + 1`
6574: ac_beg=$ac_end
6575: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 schmonz 6576: fi
1.3 jlam 6577: done
6578: if test -z "$ac_sed_cmds"; then
6579: ac_sed_cmds=cat
1.1 schmonz 6580: fi
1.3 jlam 6581: fi # test -n "$CONFIG_FILES"
1.1 schmonz 6582:
1.3 jlam 6583: _ACEOF
6584: cat >>$CONFIG_STATUS <<\_ACEOF
6585: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 schmonz 6586: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.3 jlam 6587: case $ac_file in
6588: - | *:- | *:-:* ) # input from stdin
1.9 grant 6589: cat >$tmp/stdin
6590: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6591: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3 jlam 6592: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.9 grant 6593: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3 jlam 6594: * ) ac_file_in=$ac_file.in ;;
1.1 schmonz 6595: esac
6596:
1.3 jlam 6597: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6598: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6599: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 grant 6600: X"$ac_file" : 'X\(//\)[^/]' \| \
6601: X"$ac_file" : 'X\(//\)$' \| \
6602: X"$ac_file" : 'X\(/\)' \| \
6603: . : '\(.\)' 2>/dev/null ||
1.3 jlam 6604: echo X"$ac_file" |
6605: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6606: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6607: /^X\(\/\/\)$/{ s//\1/; q; }
6608: /^X\(\/\).*/{ s//\1/; q; }
6609: s/.*/./; q'`
6610: { if $as_mkdir_p; then
6611: mkdir -p "$ac_dir"
6612: else
6613: as_dir="$ac_dir"
6614: as_dirs=
6615: while test ! -d "$as_dir"; do
6616: as_dirs="$as_dir $as_dirs"
6617: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6618: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 grant 6619: X"$as_dir" : 'X\(//\)[^/]' \| \
6620: X"$as_dir" : 'X\(//\)$' \| \
6621: X"$as_dir" : 'X\(/\)' \| \
6622: . : '\(.\)' 2>/dev/null ||
1.3 jlam 6623: echo X"$as_dir" |
6624: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6625: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6626: /^X\(\/\/\)$/{ s//\1/; q; }
6627: /^X\(\/\).*/{ s//\1/; q; }
6628: s/.*/./; q'`
6629: done
6630: test ! -n "$as_dirs" || mkdir $as_dirs
6631: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6632: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6633: { (exit 1); exit 1; }; }; }
6634:
6635: ac_builddir=.
6636:
6637: if test "$ac_dir" != .; then
6638: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6639: # A "../" for each directory in $ac_dir_suffix.
6640: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6641: else
6642: ac_dir_suffix= ac_top_builddir=
6643: fi
6644:
6645: case $srcdir in
6646: .) # No --srcdir option. We are building in place.
6647: ac_srcdir=.
6648: if test -z "$ac_top_builddir"; then
6649: ac_top_srcdir=.
6650: else
6651: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6652: fi ;;
6653: [\\/]* | ?:[\\/]* ) # Absolute path.
6654: ac_srcdir=$srcdir$ac_dir_suffix;
6655: ac_top_srcdir=$srcdir ;;
6656: *) # Relative path.
6657: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6658: ac_top_srcdir=$ac_top_builddir$srcdir ;;
6659: esac
1.9 grant 6660:
6661: # Do not use `cd foo && pwd` to compute absolute paths, because
6662: # the directories may not exist.
6663: case `pwd` in
6664: .) ac_abs_builddir="$ac_dir";;
6665: *)
6666: case "$ac_dir" in
6667: .) ac_abs_builddir=`pwd`;;
6668: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6669: *) ac_abs_builddir=`pwd`/"$ac_dir";;
6670: esac;;
6671: esac
6672: case $ac_abs_builddir in
6673: .) ac_abs_top_builddir=${ac_top_builddir}.;;
6674: *)
6675: case ${ac_top_builddir}. in
6676: .) ac_abs_top_builddir=$ac_abs_builddir;;
6677: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6678: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6679: esac;;
6680: esac
6681: case $ac_abs_builddir in
6682: .) ac_abs_srcdir=$ac_srcdir;;
6683: *)
6684: case $ac_srcdir in
6685: .) ac_abs_srcdir=$ac_abs_builddir;;
6686: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6687: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6688: esac;;
6689: esac
6690: case $ac_abs_builddir in
6691: .) ac_abs_top_srcdir=$ac_top_srcdir;;
6692: *)
6693: case $ac_top_srcdir in
6694: .) ac_abs_top_srcdir=$ac_abs_builddir;;
6695: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6696: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6697: esac;;
6698: esac
1.1 schmonz 6699:
1.3 jlam 6700:
6701: case $INSTALL in
6702: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6703: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 schmonz 6704: esac
6705:
1.3 jlam 6706: if test x"$ac_file" != x-; then
6707: { echo "$as_me:$LINENO: creating $ac_file" >&5
6708: echo "$as_me: creating $ac_file" >&6;}
6709: rm -f "$ac_file"
6710: fi
6711: # Let's still pretend it is `configure' which instantiates (i.e., don't
6712: # use $as_me), people would be surprised to read:
6713: # /* config.h. Generated by config.status. */
6714: if test x"$ac_file" = x-; then
6715: configure_input=
6716: else
6717: configure_input="$ac_file. "
6718: fi
6719: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.9 grant 6720: sed 's,.*/,,'` by configure."
1.3 jlam 6721:
6722: # First look for the input files in the build tree, otherwise in the
6723: # src tree.
6724: ac_file_inputs=`IFS=:
6725: for f in $ac_file_in; do
6726: case $f in
6727: -) echo $tmp/stdin ;;
6728: [\\/$]*)
1.9 grant 6729: # Absolute (can't be DOS-style, as IFS=:)
6730: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3 jlam 6731: echo "$as_me: error: cannot find input file: $f" >&2;}
6732: { (exit 1); exit 1; }; }
1.9 grant 6733: echo "$f";;
1.3 jlam 6734: *) # Relative
1.9 grant 6735: if test -f "$f"; then
6736: # Build tree
6737: echo "$f"
6738: elif test -f "$srcdir/$f"; then
6739: # Source tree
6740: echo "$srcdir/$f"
6741: else
6742: # /dev/null tree
6743: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3 jlam 6744: echo "$as_me: error: cannot find input file: $f" >&2;}
6745: { (exit 1); exit 1; }; }
1.9 grant 6746: fi;;
1.3 jlam 6747: esac
6748: done` || { (exit 1); exit 1; }
6749: _ACEOF
6750: cat >>$CONFIG_STATUS <<_ACEOF
6751: sed "$ac_vpsub
6752: $extrasub
6753: _ACEOF
6754: cat >>$CONFIG_STATUS <<\_ACEOF
6755: :t
6756: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6757: s,@configure_input@,$configure_input,;t t
6758: s,@srcdir@,$ac_srcdir,;t t
6759: s,@abs_srcdir@,$ac_abs_srcdir,;t t
6760: s,@top_srcdir@,$ac_top_srcdir,;t t
6761: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6762: s,@builddir@,$ac_builddir,;t t
6763: s,@abs_builddir@,$ac_abs_builddir,;t t
6764: s,@top_builddir@,$ac_top_builddir,;t t
6765: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6766: s,@INSTALL@,$ac_INSTALL,;t t
6767: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6768: rm -f $tmp/stdin
6769: if test x"$ac_file" != x-; then
6770: mv $tmp/out $ac_file
6771: else
6772: cat $tmp/out
6773: rm -f $tmp/out
6774: fi
1.1 schmonz 6775:
1.3 jlam 6776: done
6777: _ACEOF
6778: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 schmonz 6779:
1.3 jlam 6780: #
6781: # CONFIG_HEADER section.
6782: #
1.1 schmonz 6783:
6784: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6785: # NAME is the cpp macro being defined and VALUE is the value it is being given.
6786: #
6787: # ac_d sets the value in "#define NAME VALUE" lines.
1.9 grant 6788: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6789: ac_dB='[ ].*$,\1#\2'
1.3 jlam 6790: ac_dC=' '
6791: ac_dD=',;t'
6792: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.9 grant 6793: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.3 jlam 6794: ac_uB='$,\1#\2define\3'
1.1 schmonz 6795: ac_uC=' '
1.3 jlam 6796: ac_uD=',;t'
6797:
6798: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 schmonz 6799: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.3 jlam 6800: case $ac_file in
6801: - | *:- | *:-:* ) # input from stdin
1.9 grant 6802: cat >$tmp/stdin
6803: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6804: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3 jlam 6805: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.9 grant 6806: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3 jlam 6807: * ) ac_file_in=$ac_file.in ;;
1.1 schmonz 6808: esac
6809:
1.3 jlam 6810: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6811: echo "$as_me: creating $ac_file" >&6;}
1.1 schmonz 6812:
1.3 jlam 6813: # First look for the input files in the build tree, otherwise in the
6814: # src tree.
6815: ac_file_inputs=`IFS=:
6816: for f in $ac_file_in; do
6817: case $f in
6818: -) echo $tmp/stdin ;;
6819: [\\/$]*)
1.9 grant 6820: # Absolute (can't be DOS-style, as IFS=:)
6821: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3 jlam 6822: echo "$as_me: error: cannot find input file: $f" >&2;}
6823: { (exit 1); exit 1; }; }
1.9 grant 6824: # Do quote $f, to prevent DOS paths from being IFS'd.
6825: echo "$f";;
1.3 jlam 6826: *) # Relative
1.9 grant 6827: if test -f "$f"; then
6828: # Build tree
6829: echo "$f"
6830: elif test -f "$srcdir/$f"; then
6831: # Source tree
6832: echo "$srcdir/$f"
6833: else
6834: # /dev/null tree
6835: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3 jlam 6836: echo "$as_me: error: cannot find input file: $f" >&2;}
6837: { (exit 1); exit 1; }; }
1.9 grant 6838: fi;;
1.3 jlam 6839: esac
6840: done` || { (exit 1); exit 1; }
6841: # Remove the trailing spaces.
1.9 grant 6842: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.3 jlam 6843:
6844: _ACEOF
6845:
6846: # Transform confdefs.h into two sed scripts, `conftest.defines' and
6847: # `conftest.undefs', that substitutes the proper values into
6848: # config.h.in to produce config.h. The first handles `#define'
6849: # templates, and the second `#undef' templates.
6850: # And first: Protect against being on the right side of a sed subst in
6851: # config.status. Protect against being in an unquoted here document
6852: # in config.status.
6853: rm -f conftest.defines conftest.undefs
6854: # Using a here document instead of a string reduces the quoting nightmare.
6855: # Putting comments in sed scripts is not portable.
6856: #
6857: # `end' is used to avoid that the second main sed command (meant for
6858: # 0-ary CPP macros) applies to n-ary macro definitions.
6859: # See the Autoconf documentation for `clear'.
6860: cat >confdef2sed.sed <<\_ACEOF
6861: s/[\\&,]/\\&/g
6862: s,[\\$`],\\&,g
6863: t clear
6864: : clear
1.9 grant 6865: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.3 jlam 6866: t end
1.9 grant 6867: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.3 jlam 6868: : end
6869: _ACEOF
6870: # If some macros were called several times there might be several times
6871: # the same #defines, which is useless. Nevertheless, we may not want to
6872: # sort them, since we want the *last* AC-DEFINE to be honored.
6873: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6874: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6875: rm -f confdef2sed.sed
1.1 schmonz 6876:
6877: # This sed command replaces #undef with comments. This is necessary, for
6878: # example, in the case of _POSIX_SOURCE, which is predefined and required
6879: # on some systems where configure will not decide to define it.
1.3 jlam 6880: cat >>conftest.undefs <<\_ACEOF
1.9 grant 6881: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.3 jlam 6882: _ACEOF
6883:
6884: # Break up conftest.defines because some shells have a limit on the size
6885: # of here documents, and old seds have small limits too (100 cmds).
6886: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.9 grant 6887: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.3 jlam 6888: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6889: echo ' :' >>$CONFIG_STATUS
6890: rm -f conftest.tail
6891: while grep . conftest.defines >/dev/null
6892: do
6893: # Write a limited-size here document to $tmp/defines.sed.
6894: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6895: # Speed up: don't consider the non `#define' lines.
1.9 grant 6896: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.3 jlam 6897: # Work around the forget-to-reset-the-flag bug.
6898: echo 't clr' >>$CONFIG_STATUS
6899: echo ': clr' >>$CONFIG_STATUS
6900: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6901: echo 'CEOF
6902: sed -f $tmp/defines.sed $tmp/in >$tmp/out
6903: rm -f $tmp/in
6904: mv $tmp/out $tmp/in
6905: ' >>$CONFIG_STATUS
6906: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6907: rm -f conftest.defines
6908: mv conftest.tail conftest.defines
6909: done
6910: rm -f conftest.defines
6911: echo ' fi # grep' >>$CONFIG_STATUS
6912: echo >>$CONFIG_STATUS
6913:
6914: # Break up conftest.undefs because some shells have a limit on the size
6915: # of here documents, and old seds have small limits too (100 cmds).
6916: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 schmonz 6917: rm -f conftest.tail
1.3 jlam 6918: while grep . conftest.undefs >/dev/null
1.1 schmonz 6919: do
1.3 jlam 6920: # Write a limited-size here document to $tmp/undefs.sed.
6921: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6922: # Speed up: don't consider the non `#undef'
1.9 grant 6923: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.3 jlam 6924: # Work around the forget-to-reset-the-flag bug.
6925: echo 't clr' >>$CONFIG_STATUS
6926: echo ': clr' >>$CONFIG_STATUS
6927: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 schmonz 6928: echo 'CEOF
1.3 jlam 6929: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6930: rm -f $tmp/in
6931: mv $tmp/out $tmp/in
6932: ' >>$CONFIG_STATUS
6933: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6934: rm -f conftest.undefs
6935: mv conftest.tail conftest.undefs
6936: done
6937: rm -f conftest.undefs
6938:
6939: cat >>$CONFIG_STATUS <<\_ACEOF
6940: # Let's still pretend it is `configure' which instantiates (i.e., don't
6941: # use $as_me), people would be surprised to read:
6942: # /* config.h. Generated by config.status. */
6943: if test x"$ac_file" = x-; then
6944: echo "/* Generated by configure. */" >$tmp/config.h
6945: else
6946: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6947: fi
6948: cat $tmp/in >>$tmp/config.h
6949: rm -f $tmp/in
6950: if test x"$ac_file" != x-; then
6951: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6952: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6953: echo "$as_me: $ac_file is unchanged" >&6;}
6954: else
6955: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6956: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 grant 6957: X"$ac_file" : 'X\(//\)[^/]' \| \
6958: X"$ac_file" : 'X\(//\)$' \| \
6959: X"$ac_file" : 'X\(/\)' \| \
6960: . : '\(.\)' 2>/dev/null ||
1.3 jlam 6961: echo X"$ac_file" |
6962: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6963: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6964: /^X\(\/\/\)$/{ s//\1/; q; }
6965: /^X\(\/\).*/{ s//\1/; q; }
6966: s/.*/./; q'`
6967: { if $as_mkdir_p; then
6968: mkdir -p "$ac_dir"
6969: else
6970: as_dir="$ac_dir"
6971: as_dirs=
6972: while test ! -d "$as_dir"; do
6973: as_dirs="$as_dir $as_dirs"
6974: as_dir=`(dirname "$as_dir") 2>/dev/null ||
6975: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 grant 6976: X"$as_dir" : 'X\(//\)[^/]' \| \
6977: X"$as_dir" : 'X\(//\)$' \| \
6978: X"$as_dir" : 'X\(/\)' \| \
6979: . : '\(.\)' 2>/dev/null ||
1.3 jlam 6980: echo X"$as_dir" |
6981: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6982: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6983: /^X\(\/\/\)$/{ s//\1/; q; }
6984: /^X\(\/\).*/{ s//\1/; q; }
6985: s/.*/./; q'`
6986: done
6987: test ! -n "$as_dirs" || mkdir $as_dirs
6988: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6989: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6990: { (exit 1); exit 1; }; }; }
6991:
6992: rm -f $ac_file
6993: mv $tmp/config.h $ac_file
1.1 schmonz 6994: fi
1.3 jlam 6995: else
6996: cat $tmp/config.h
6997: rm -f $tmp/config.h
1.1 schmonz 6998: fi
1.3 jlam 6999: done
7000: _ACEOF
1.1 schmonz 7001:
1.3 jlam 7002: cat >>$CONFIG_STATUS <<\_ACEOF
7003:
7004: { (exit 0); exit 0; }
7005: _ACEOF
7006: chmod +x $CONFIG_STATUS
7007: ac_clean_files=$ac_clean_files_save
1.1 schmonz 7008:
7009:
1.3 jlam 7010: # configure is writing to config.log, and then calls config.status.
7011: # config.status does its own redirection, appending to config.log.
7012: # Unfortunately, on DOS this fails, as config.log is still kept open
7013: # by configure, so config.status won't be able to write to it; its
7014: # output is simply discarded. So we exec the FD to /dev/null,
7015: # effectively closing config.log, so it can be properly (re)opened and
7016: # appended to by config.status. When coming back to configure, we
7017: # need to make the FD available again.
7018: if test "$no_create" != yes; then
7019: ac_cs_success=:
7020: ac_config_status_args=
7021: test "$silent" = yes &&
7022: ac_config_status_args="$ac_config_status_args --quiet"
7023: exec 5>/dev/null
7024: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7025: exec 5>>config.log
7026: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7027: # would make configure fail if this is the last instruction.
7028: $ac_cs_success || { (exit 1); exit 1; }
7029: fi
1.1 schmonz 7030:
CVSweb <webmaster@jp.NetBSD.org>