Annotation of OSKit-Mach/configure.in, revision 1.1.1.1

1.1       root        1: dnl Configure script for GNU Mach.
                      2: dnl Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
                      3: 
                      4: dnl Permission to use, copy, modify and distribute this software and its
                      5: dnl documentation is hereby granted, provided that both the copyright
                      6: dnl notice and this permission notice appear in all copies of the
                      7: dnl software, derivative works or modified versions, and any portions
                      8: dnl thereof, and that both notices appear in supporting documentation.
                      9: dnl
                     10: dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
                     11: dnl "AS IS" CONDITION.  THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
                     12: dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
                     13: dnl USE OF THIS SOFTWARE.
                     14: 
                     15: AC_INIT([GNU Mach], [1.91], [[email protected]], [gnumach])
                     16: AC_CONFIG_SRCDIR([kern/ipc_kobject.c])
                     17: AC_PREREQ(2.54)
                     18: AC_CONFIG_HEADER(config.h)
                     19: 
                     20: #
                     21: # Deduce output var `systype' from configuration parms.
                     22: #
                     23: AC_CANONICAL_HOST
                     24: 
                     25: case "$host_cpu" in
                     26: alpha*) systype=alpha ;;
                     27: i[[3456]]86) systype=i386 ;;
                     28: *) AC_MSG_ERROR([unsupported CPU type]) ;;
                     29: esac
                     30: 
                     31: AC_SUBST(systype)
                     32: AC_SUBST(cross_compiling)
                     33: 
                     34: # Default prefix is / for the kernel.
                     35: AC_PREFIX_DEFAULT()
                     36: 
                     37: #
                     38: # Options
                     39: #
                     40: AC_ARG_ENABLE(force-install,
                     41: [  --enable-force-install  force installation of files from this package,
                     42:                           even if they are older than the installed files],
                     43:              force_install=$enableval, force_install=no)
                     44: AC_SUBST(force_install)
                     45: 
                     46: AC_ARG_ENABLE(smp,
                     47: [  --enable-smp=MAXCPUS    enable SMP with up to MAXCPUS processors])
                     48: case "x${enable_smp-no}" in
                     49: xno) MAXCPUS=1 ;;
                     50: xyes) AC_MSG_WARN([defaulting to max 4 CPUs; use --enable-smp=MAXCPUS])
                     51:       MAXCPUS=4 ;;
                     52: x[[1-9]]*) MAXCPUS="${enable_smp}" ;;
                     53: *) AC_MSG_ERROR([must give a numeric argument to --enable-smp]) ;;
                     54: esac
                     55: AC_DEFINE_UNQUOTED(NCPUS, $MAXCPUS,
                     56:                   [Define this to the maximum number of CPUs to support,
                     57:                    i.e. 1 for uniprocessor or 2 or more for SMP.])
                     58: 
                     59: AC_ARG_ENABLE(fpe,
                     60: [  --enable-fpe                  enable FPU emulator for machines with no FPU],
                     61: [test "x$enableval" = xno ||
                     62:   AC_DEFINE(FPE, 1, [Enable software FPU emulator for machines with no FPU.])])
                     63: 
                     64: #
                     65: # Programs
                     66: #
                     67: 
                     68: AC_PROG_INSTALL
                     69: AC_PROG_AWK
                     70: AC_PROG_CC
                     71: 
                     72: AC_CHECK_TOOL(LD, ld)AC_SUBST(LDFLAGS)
                     73: AC_CHECK_TOOL(NM, nm)
                     74: 
                     75: AC_CHECK_TOOL(MIG, mig, mig)
                     76: 
                     77: AC_CHECK_PROG(MBCHK, mbchk, mbchk, :)
                     78: 
                     79: # Check oskit version.
                     80: NEEDED_OSKIT_VERSION=19991121
                     81: AC_REQUIRE_CPP()
                     82: AC_MSG_CHECKING([for oskit version >= ${NEEDED_OSKIT_VERSION}])
                     83: AC_CACHE_VAL(gnumach_cv_oskit_version_${NEEDED_OSKIT_VERSION}, [
                     84: AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <oskit/version.h>
                     85: #if _OSKIT_VERSION < ${NEEDED_OSKIT_VERSION}
                     86:  #error _OSKIT_VERSION < ${NEEDED_OSKIT_VERSION}
                     87: #endif]])],
                     88:                   [eval gnumach_cv_oskit_version_${NEEDED_OSKIT_VERSION}=yes],
                     89:                  [eval gnumach_cv_oskit_version_${NEEDED_OSKIT_VERSION}=no])])
                     90: if eval test \$gnumach_cv_oskit_version_${NEEDED_OSKIT_VERSION} != yes; then
                     91:   AC_MSG_RESULT([no, too old!])
                     92:   AC_MSG_ERROR([version in <oskit/version.h> less than required ${NEEDED_OSKIT_VERSION}])
                     93: else
                     94:   AC_MSG_RESULT([yes, ok])
                     95: fi
                     96: 
                     97: AC_CHECK_HEADERS(oskit/dev/stream.h)
                     98: 
                     99: AC_CHECK_LIB(oskit_dev, oskit_dev_init_i8042,
                    100:             [AC_DEFINE(HAVE_I8042, 1,
                    101:                        [Define if -loskit_dev has the i8042 driver.])], [],
                    102:             [-loskit_lmm -loskit_clientos -loskit_c -loskit_kern -loskit_com])
                    103: 
                    104: AC_SUBST(SMP_LIBS)SMP_LIBS=
                    105: if test $MAXCPUS -gt 1; then
                    106:   AC_CHECK_LIB(oskit_smp, smp_init, [SMP_LIBS=-loskit_smp], [
                    107:     AC_MSG_ERROR([need -loskit_smp library to build multiprocessor kernel])
                    108:   ])
                    109: fi
                    110: 
                    111: # Set up `machine' link in build directory for easier header file location.
                    112: AC_CONFIG_LINKS(machine:${systype}/${systype})
                    113: 
                    114: test "x${OSKIT_LIBDIR+set}" = xset ||
                    115:   OSKIT_LIBDIR=`${CC} -print-file-name=oskit`
                    116: AC_SUBST(OSKIT_LIBDIR)
                    117: 
                    118: AC_CONFIG_FILES([Makefile version.c doc/Makefile])
                    119: AC_OUTPUT

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.