Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame^] | 1 | dnl ************************************************************************** |
| 2 | dnl * Initialize |
| 3 | dnl ************************************************************************** |
| 4 | AC_INIT([[[Stacker]]],[[[1.0]]],[rspencer@x10sys.com]) |
| 5 | |
| 6 | dnl Place all of the extra autoconf files into the config subdirectory |
| 7 | AC_CONFIG_AUX_DIR([autoconf]) |
| 8 | |
| 9 | dnl Configure a header file |
| 10 | |
| 11 | dnl Configure Makefiles |
| 12 | dnl List every Makefile that ecists within your source tree |
| 13 | |
| 14 | AC_CONFIG_MAKEFILE(Makefile) |
| 15 | AC_CONFIG_MAKEFILE(lib/Makefile) |
| 16 | AC_CONFIG_MAKEFILE(lib/compiler/Makefile) |
| 17 | AC_CONFIG_MAKEFILE(lib/runtime/Makefile) |
| 18 | AC_CONFIG_MAKEFILE(tools/Makefile) |
| 19 | AC_CONFIG_MAKEFILE(tools/stkrc/Makefile) |
| 20 | |
| 21 | dnl ************************************************************************** |
| 22 | dnl * Determine which system we are building on |
| 23 | dnl ************************************************************************** |
| 24 | |
| 25 | dnl ************************************************************************** |
| 26 | dnl * Check for programs. |
| 27 | dnl ************************************************************************** |
| 28 | |
| 29 | dnl Verify that the source directory is valid |
| 30 | AC_CONFIG_SRCDIR([Makefile.common.in]) |
| 31 | |
| 32 | dnl ************************************************************************** |
| 33 | dnl * Check for libraries. |
| 34 | dnl ************************************************************************** |
| 35 | |
| 36 | dnl ************************************************************************** |
| 37 | dnl * Checks for header files. |
| 38 | dnl ************************************************************************** |
| 39 | |
| 40 | dnl ************************************************************************** |
| 41 | dnl * Checks for typedefs, structures, and compiler characteristics. |
| 42 | dnl ************************************************************************** |
| 43 | |
| 44 | dnl ************************************************************************** |
| 45 | dnl * Checks for library functions. |
| 46 | dnl ************************************************************************** |
| 47 | |
| 48 | dnl ************************************************************************** |
| 49 | dnl * Enable various compile-time options |
| 50 | dnl ************************************************************************** |
| 51 | |
| 52 | dnl ************************************************************************** |
| 53 | dnl * Set the location of various third-party software packages |
| 54 | dnl ************************************************************************** |
| 55 | |
| 56 | dnl Location of LLVM source code |
| 57 | AC_ARG_WITH(llvmsrc,AC_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),AC_SUBST(LLVM_SRC,[$withval]),AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`])) |
| 58 | |
| 59 | dnl Location of LLVM object code |
| 60 | AC_ARG_WITH(llvmobj,AC_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`])) |
| 61 | |
| 62 | dnl ************************************************************************** |
| 63 | dnl * Create the output files |
| 64 | dnl ************************************************************************** |
| 65 | AC_OUTPUT(Makefile.common) |