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 | |
Reid Spencer | 011f5ca | 2004-09-15 06:19:53 +0000 | [diff] [blame] | 9 | dnl Verify that the source directory is valid |
Reid Spencer | bb87426 | 2004-12-27 08:51:55 +0000 | [diff] [blame] | 10 | AC_CONFIG_SRCDIR([lib/compiler/StackerParser.y]) |
| 11 | |
| 12 | AC_CONFIG_FILES([Makefile.common]) |
Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame] | 13 | |
| 14 | dnl Configure Makefiles |
Reid Spencer | bb87426 | 2004-12-27 08:51:55 +0000 | [diff] [blame] | 15 | dnl List every Makefile that exists within your source tree |
Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame] | 16 | |
| 17 | AC_CONFIG_MAKEFILE(Makefile) |
| 18 | AC_CONFIG_MAKEFILE(lib/Makefile) |
| 19 | AC_CONFIG_MAKEFILE(lib/compiler/Makefile) |
| 20 | AC_CONFIG_MAKEFILE(lib/runtime/Makefile) |
Reid Spencer | e07d9aa | 2004-09-05 16:42:30 +0000 | [diff] [blame] | 21 | AC_CONFIG_MAKEFILE(test/Makefile) |
Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame] | 22 | AC_CONFIG_MAKEFILE(tools/Makefile) |
| 23 | AC_CONFIG_MAKEFILE(tools/stkrc/Makefile) |
| 24 | |
| 25 | dnl ************************************************************************** |
| 26 | dnl * Determine which system we are building on |
| 27 | dnl ************************************************************************** |
| 28 | |
| 29 | dnl ************************************************************************** |
| 30 | dnl * Check for programs. |
| 31 | dnl ************************************************************************** |
Reid Spencer | 011f5ca | 2004-09-15 06:19:53 +0000 | [diff] [blame] | 32 | AC_PROG_LIBTOOL |
| 33 | dnl Get libtool's idea of what the shared library suffix is. |
| 34 | dnl (This is a hack; it relies on undocumented behavior.) |
| 35 | AC_MSG_CHECKING([for shared library suffix]) |
| 36 | eval "SHLIBEXT=$shrext" |
| 37 | AC_MSG_RESULT($SHLIBEXT) |
| 38 | dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint). |
| 39 | AC_SUBST(SHLIBEXT,$SHLIBEXT) |
| 40 | AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", |
| 41 | [Extension that shared libraries have, |
| 42 | e.g., ".so".]) |
| 43 | |
Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame] | 44 | |
Reid Spencer | 820dab7 | 2004-09-04 19:48:50 +0000 | [diff] [blame] | 45 | |
| 46 | dnl ************************************************************************** |
| 47 | dnl * Check for libraries. |
| 48 | dnl ************************************************************************** |
| 49 | |
| 50 | dnl ************************************************************************** |
| 51 | dnl * Checks for header files. |
| 52 | dnl ************************************************************************** |
| 53 | |
| 54 | dnl ************************************************************************** |
| 55 | dnl * Checks for typedefs, structures, and compiler characteristics. |
| 56 | dnl ************************************************************************** |
| 57 | |
| 58 | dnl ************************************************************************** |
| 59 | dnl * Checks for library functions. |
| 60 | dnl ************************************************************************** |
| 61 | |
| 62 | dnl ************************************************************************** |
| 63 | dnl * Enable various compile-time options |
| 64 | dnl ************************************************************************** |
| 65 | |
| 66 | dnl ************************************************************************** |
| 67 | dnl * Set the location of various third-party software packages |
| 68 | dnl ************************************************************************** |
| 69 | |
| 70 | dnl Location of LLVM source code |
| 71 | 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`])) |
| 72 | |
| 73 | dnl Location of LLVM object code |
| 74 | 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`])) |
| 75 | |
| 76 | dnl ************************************************************************** |
| 77 | dnl * Create the output files |
| 78 | dnl ************************************************************************** |
Reid Spencer | bb87426 | 2004-12-27 08:51:55 +0000 | [diff] [blame] | 79 | AC_OUTPUT |