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 | |
Reid Spencer | 30ea478 | 2006-04-18 06:27:47 +0000 | [diff] [blame] | 6 | dnl Identify where LLVM source tree is |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 7 | LLVM_SRC_ROOT="../../" |
| 8 | LLVM_OBJ_ROOT="../../" |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 9 | |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 10 | dnl Tell autoconf that this is an LLVM project being configured |
| 11 | dnl This provides the --with-llvmsrc and --with-llvmobj options |
Reid Spencer | 30ea478 | 2006-04-18 06:27:47 +0000 | [diff] [blame] | 12 | LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT) |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 13 | |
Eric Christopher | 1f10929 | 2010-01-25 04:10:28 +0000 | [diff] [blame^] | 14 | dnl Tell autoconf that the auxilliary files are actually located in |
| 15 | dnl the LLVM autoconf directory, not here. |
| 16 | AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf) |
| 17 | |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 18 | dnl Verify that the source directory is valid |
| 19 | AC_CONFIG_SRCDIR(["Makefile.common.in"]) |
| 20 | |
| 21 | dnl Configure a common Makefile |
Reid Spencer | 38fd88a | 2005-01-05 06:41:10 +0000 | [diff] [blame] | 22 | AC_CONFIG_FILES(Makefile.common) |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 23 | |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 24 | dnl Configure project makefiles |
| 25 | dnl List every Makefile that exists within your source tree |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 26 | AC_CONFIG_MAKEFILE(Makefile) |
| 27 | AC_CONFIG_MAKEFILE(lib/Makefile) |
| 28 | AC_CONFIG_MAKEFILE(lib/sample/Makefile) |
| 29 | AC_CONFIG_MAKEFILE(tools/Makefile) |
| 30 | AC_CONFIG_MAKEFILE(tools/sample/Makefile) |
| 31 | |
| 32 | dnl ************************************************************************** |
| 33 | dnl * Determine which system we are building on |
| 34 | dnl ************************************************************************** |
| 35 | |
| 36 | dnl ************************************************************************** |
| 37 | dnl * Check for programs. |
| 38 | dnl ************************************************************************** |
| 39 | |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 40 | dnl ************************************************************************** |
| 41 | dnl * Check for libraries. |
| 42 | dnl ************************************************************************** |
| 43 | |
| 44 | dnl ************************************************************************** |
| 45 | dnl * Checks for header files. |
| 46 | dnl ************************************************************************** |
| 47 | |
| 48 | dnl ************************************************************************** |
| 49 | dnl * Checks for typedefs, structures, and compiler characteristics. |
| 50 | dnl ************************************************************************** |
| 51 | |
| 52 | dnl ************************************************************************** |
| 53 | dnl * Checks for library functions. |
| 54 | dnl ************************************************************************** |
| 55 | |
| 56 | dnl ************************************************************************** |
| 57 | dnl * Enable various compile-time options |
| 58 | dnl ************************************************************************** |
| 59 | |
| 60 | dnl ************************************************************************** |
| 61 | dnl * Set the location of various third-party software packages |
| 62 | dnl ************************************************************************** |
| 63 | |
John Criswell | 607b1ea | 2003-10-16 01:44:20 +0000 | [diff] [blame] | 64 | dnl ************************************************************************** |
| 65 | dnl * Create the output files |
| 66 | dnl ************************************************************************** |
Reid Spencer | 1a87ddc | 2005-02-24 18:50:53 +0000 | [diff] [blame] | 67 | |
| 68 | dnl This must be last |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 69 | AC_OUTPUT |