Annotation of Gnu-Mach/configure.in, revision 1.1.1.2

1.1       root        1: dnl Configure script for GNU Mach.
                      2: dnl Copyright 1997 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: 
                     16: AC_INIT(kern/ipc_kobject.c)
1.1.1.2 ! root       17: AC_PREREQ(2.12)
1.1       root       18: 
                     19: #
                     20: # Deduce output var `systype' from configuration parms.
                     21: #
                     22: AC_CANONICAL_HOST
                     23: 
                     24: case "$host_cpu" in
1.1.1.2 ! root       25: i[[3456]]86) systype=i386 ;;
1.1       root       26: *) AC_MSG_ERROR([unsupported CPU type]) ;;
                     27: esac
                     28: 
1.1.1.2 ! root       29: case "$host_os" in 
        !            30: gnu*) ;;
        !            31: *) AC_MSG_ERROR([sorry, this is the gnu os, not $host_os]) ;;
        !            32: esac
        !            33: 
1.1       root       34: AC_SUBST(systype)
                     35: AC_SUBST(cross_compiling)
                     36: 
                     37: # Default prefix is / for the kernel.
                     38: AC_PREFIX_DEFAULT()
                     39: 
                     40: #
1.1.1.2 ! root       41: # Options
        !            42: #
        !            43: AC_ARG_ENABLE(kdb, Enable use of in-kernel debugger, AC_DEFINE(MACH_KDB))
        !            44: 
        !            45: #
1.1       root       46: # Programs
                     47: #
1.1.1.2 ! root       48: AC_PROG_CC_LOCAL
1.1       root       49: AC_PROG_AWK
                     50: AC_PROG_INSTALL
1.1.1.2 ! root       51: AC_CHECK_TOOL(MIG, mig, mig)
        !            52: 
        !            53: if test $cross_compiling = yes; then
        !            54:   AC_CHECK_PROGS(BUILD_CC, gcc cc)
        !            55:   CC=$BUILD_CC
        !            56: fi
        !            57: 
1.1       root       58: AC_PROG_LEX
                     59: AC_PROG_YACC
                     60: 
1.1.1.2 ! root       61: if test $cross_compiling = yes ; then
        !            62:   CC=$ac_cv_prog_CC
        !            63: fi
        !            64: 
        !            65: 
        !            66: usable_libc='yes'
        !            67: needed_funcs='memcpy memset bcopy bzero htonl ntohl ntohs'
        !            68: AC_CHECK_FUNCS($needed_funcs, , usable_libc=no)
        !            69: if test $usable_libc = no ; then
        !            70:   echo "Support functions not found using $CC, trying $BUILD_CC."
        !            71:   CC="$BUILD_CC"
        !            72:   for i in $needed_funcs ; do
        !            73:     unset ac_cv_func_$i
        !            74:   done
        !            75:   usable_libc=yes
        !            76:   AC_CHECK_FUNCS($needed_funcs, , usable_libc=no)
        !            77:   if test $usable_libc = no ; then
        !            78:     echo "Configuration problem:" 1>&2
        !            79:     echo "Please set installed-clib in the toplevel Makefile so the functions:"
        !            80:     echo "$needed_funcs are available."
        !            81:     exit 1
        !            82:   else
        !            83:     changequote(,)
        !            84:     set -- `$BUILD_CC -v 2>&1 | sed -n 's/.*from \(.*\)\/lib\/gcc-lib\/\([^/][^/]*\).*/\1 \2/p'`
        !            85:     changequote([,])
        !            86:     if test -f "$1/$2/lib/libc.a" ; then
        !            87:       installed_clib=$1/$2/lib/libc.a
        !            88:     else
        !            89:       installed_clib=$1/lib/libc.a
        !            90:     fi
        !            91:   fi
        !            92:   CC=$ac_cv_prog_CC
        !            93: else
        !            94:   installed_clib=$prefix/lib/libcrt.a
1.1       root       95: fi
1.1.1.2 ! root       96: AC_SUBST(installed_clib)
1.1       root       97: 
                     98: # Set up `machine' link in build directory for easier header file location.
                     99: AC_LINK_FILES(${systype}/${systype},machine)
                    100: 
                    101: # Do machine-specific configuration last so that it can override anything
                    102: # set above if necessary.
                    103: 
                    104: AC_CONFIG_SUBDIRS($systype)
                    105: 
                    106: AC_OUTPUT(Makefile)

unix.superglobalmegacorp.com

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