John Criswell | 02af846 | 2003-11-25 19:59:59 +0000 | [diff] [blame^] | 1 | dnl ************************************************************************** |
| 2 | dnl * Initialize |
| 3 | dnl ************************************************************************** |
| 4 | AC_INIT([[[ModuleMaker]]],[[[x.xx]]],[bugs@yourdomain]) |
| 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 exists within your source tree |
| 13 | |
| 14 | AC_CONFIG_MAKEFILE(Makefile) |
| 15 | |
| 16 | dnl ************************************************************************** |
| 17 | dnl * Determine which system we are building on |
| 18 | dnl ************************************************************************** |
| 19 | |
| 20 | dnl ************************************************************************** |
| 21 | dnl * Check for programs. |
| 22 | dnl ************************************************************************** |
| 23 | |
| 24 | dnl Verify that the source directory is valid |
| 25 | AC_CONFIG_SRCDIR(["Makefile.common.in"]) |
| 26 | |
| 27 | dnl ************************************************************************** |
| 28 | dnl * Check for libraries. |
| 29 | dnl ************************************************************************** |
| 30 | |
| 31 | dnl ************************************************************************** |
| 32 | dnl * Checks for header files. |
| 33 | dnl ************************************************************************** |
| 34 | |
| 35 | dnl ************************************************************************** |
| 36 | dnl * Checks for typedefs, structures, and compiler characteristics. |
| 37 | dnl ************************************************************************** |
| 38 | |
| 39 | dnl ************************************************************************** |
| 40 | dnl * Checks for library functions. |
| 41 | dnl ************************************************************************** |
| 42 | |
| 43 | dnl ************************************************************************** |
| 44 | dnl * Enable various compile-time options |
| 45 | dnl ************************************************************************** |
| 46 | |
| 47 | dnl ************************************************************************** |
| 48 | dnl * Set the location of various third-party software packages |
| 49 | dnl ************************************************************************** |
| 50 | |
| 51 | dnl Location of LLVM source code |
| 52 | 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`])) |
| 53 | |
| 54 | dnl Location of LLVM object code |
| 55 | 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`])) |
| 56 | |
| 57 | dnl ************************************************************************** |
| 58 | dnl * Create the output files |
| 59 | dnl ************************************************************************** |
| 60 | AC_OUTPUT(Makefile.common) |