blob: 221dcc45edc0df7f657ce272838d896e8773104a [file] [log] [blame]
John Criswell607b1ea2003-10-16 01:44:20 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
5
Reid Spencer30ea4782006-04-18 06:27:47 +00006dnl Identify where LLVM source tree is
Dan Gohman324f6082009-03-25 00:52:11 +00007LLVM_SRC_ROOT="../../"
8LLVM_OBJ_ROOT="../../"
John Criswell607b1ea2003-10-16 01:44:20 +00009
Reid Spencer1a87ddc2005-02-24 18:50:53 +000010dnl Tell autoconf that this is an LLVM project being configured
11dnl This provides the --with-llvmsrc and --with-llvmobj options
Reid Spencer30ea4782006-04-18 06:27:47 +000012LLVM_CONFIG_PROJECT($LLVM_SRC_ROOT,$LLVM_OBJ_ROOT)
Reid Spencer1a87ddc2005-02-24 18:50:53 +000013
Eric Christopher1f109292010-01-25 04:10:28 +000014dnl Tell autoconf that the auxilliary files are actually located in
15dnl the LLVM autoconf directory, not here.
16AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf)
17
Reid Spencer1a87ddc2005-02-24 18:50:53 +000018dnl Verify that the source directory is valid
19AC_CONFIG_SRCDIR(["Makefile.common.in"])
20
21dnl Configure a common Makefile
Reid Spencer38fd88a2005-01-05 06:41:10 +000022AC_CONFIG_FILES(Makefile.common)
John Criswell607b1ea2003-10-16 01:44:20 +000023
Reid Spencer1a87ddc2005-02-24 18:50:53 +000024dnl Configure project makefiles
25dnl List every Makefile that exists within your source tree
John Criswell607b1ea2003-10-16 01:44:20 +000026AC_CONFIG_MAKEFILE(Makefile)
27AC_CONFIG_MAKEFILE(lib/Makefile)
28AC_CONFIG_MAKEFILE(lib/sample/Makefile)
29AC_CONFIG_MAKEFILE(tools/Makefile)
30AC_CONFIG_MAKEFILE(tools/sample/Makefile)
31
32dnl **************************************************************************
33dnl * Determine which system we are building on
34dnl **************************************************************************
35
36dnl **************************************************************************
37dnl * Check for programs.
38dnl **************************************************************************
39
John Criswell607b1ea2003-10-16 01:44:20 +000040dnl **************************************************************************
41dnl * Check for libraries.
42dnl **************************************************************************
43
44dnl **************************************************************************
45dnl * Checks for header files.
46dnl **************************************************************************
47
48dnl **************************************************************************
49dnl * Checks for typedefs, structures, and compiler characteristics.
50dnl **************************************************************************
51
52dnl **************************************************************************
53dnl * Checks for library functions.
54dnl **************************************************************************
55
56dnl **************************************************************************
57dnl * Enable various compile-time options
58dnl **************************************************************************
59
60dnl **************************************************************************
61dnl * Set the location of various third-party software packages
62dnl **************************************************************************
63
John Criswell607b1ea2003-10-16 01:44:20 +000064dnl **************************************************************************
65dnl * Create the output files
66dnl **************************************************************************
Reid Spencer1a87ddc2005-02-24 18:50:53 +000067
68dnl This must be last
Reid Spencer9964cd82005-01-01 09:26:55 +000069AC_OUTPUT