John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 1 | dnl ************************************************************************** |
| 2 | dnl * Initialize |
| 3 | dnl ************************************************************************** |
| 4 | AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain]) |
| 5 | |
| 6 | dnl Place all of the extra autoconf files into the config subdirectory |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 7 | AC_CONFIG_AUX_DIR(autoconf) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 8 | |
| 9 | dnl Configure a header file |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 10 | AC_CONFIG_FILES(Makefile.common) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 11 | |
| 12 | dnl Configure Makefiles |
| 13 | dnl List every Makefile that ecists within your source tree |
| 14 | |
| 15 | AC_CONFIG_MAKEFILE(Makefile) |
| 16 | AC_CONFIG_MAKEFILE(lib/Makefile) |
| 17 | AC_CONFIG_MAKEFILE(lib/sample/Makefile) |
| 18 | AC_CONFIG_MAKEFILE(tools/Makefile) |
| 19 | AC_CONFIG_MAKEFILE(tools/sample/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 |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 57 | AC_ARG_WITH(llvmsrc,AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),AC_SUBST(LLVM_SRC,[$withval]),AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`])) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 58 | |
| 59 | dnl Location of LLVM object code |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 60 | AC_ARG_WITH(llvmobj,AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`])) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 61 | |
| 62 | dnl ************************************************************************** |
| 63 | dnl * Create the output files |
| 64 | dnl ************************************************************************** |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 65 | AC_OUTPUT |