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