blob: 4e61bee5e7904991a9525d30ae388aa2436dfc00 [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
Peter Collingbourne1fbf5a42010-12-12 21:41:56 +00007LLVM_SRC_ROOT="../.."
8LLVM_OBJ_ROOT="../.."
9
10dnl Find absolute paths to LLVM source and object trees
11LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
12LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
John Criswell607b1ea2003-10-16 01:44:20 +000013
Reid Spencer1a87ddc2005-02-24 18:50:53 +000014dnl Tell autoconf that this is an LLVM project being configured
15dnl This provides the --with-llvmsrc and --with-llvmobj options
Peter Collingbourne1fbf5a42010-12-12 21:41:56 +000016LLVM_CONFIG_PROJECT($LLVM_ABS_SRC_ROOT,$LLVM_ABS_OBJ_ROOT)
Reid Spencer1a87ddc2005-02-24 18:50:53 +000017
Eric Christopher1f109292010-01-25 04:10:28 +000018dnl Tell autoconf that the auxilliary files are actually located in
19dnl the LLVM autoconf directory, not here.
20AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf)
21
Reid Spencer1a87ddc2005-02-24 18:50:53 +000022dnl Verify that the source directory is valid
23AC_CONFIG_SRCDIR(["Makefile.common.in"])
24
25dnl Configure a common Makefile
Reid Spencer38fd88a2005-01-05 06:41:10 +000026AC_CONFIG_FILES(Makefile.common)
John Criswell607b1ea2003-10-16 01:44:20 +000027
Reid Spencer1a87ddc2005-02-24 18:50:53 +000028dnl Configure project makefiles
29dnl List every Makefile that exists within your source tree
John Criswell607b1ea2003-10-16 01:44:20 +000030AC_CONFIG_MAKEFILE(Makefile)
31AC_CONFIG_MAKEFILE(lib/Makefile)
32AC_CONFIG_MAKEFILE(lib/sample/Makefile)
33AC_CONFIG_MAKEFILE(tools/Makefile)
34AC_CONFIG_MAKEFILE(tools/sample/Makefile)
35
36dnl **************************************************************************
37dnl * Determine which system we are building on
38dnl **************************************************************************
39
40dnl **************************************************************************
41dnl * Check for programs.
42dnl **************************************************************************
43
John Criswell607b1ea2003-10-16 01:44:20 +000044dnl **************************************************************************
45dnl * Check for libraries.
46dnl **************************************************************************
47
48dnl **************************************************************************
49dnl * Checks for header files.
50dnl **************************************************************************
51
52dnl **************************************************************************
53dnl * Checks for typedefs, structures, and compiler characteristics.
54dnl **************************************************************************
55
56dnl **************************************************************************
57dnl * Checks for library functions.
58dnl **************************************************************************
59
60dnl **************************************************************************
61dnl * Enable various compile-time options
62dnl **************************************************************************
63
64dnl **************************************************************************
65dnl * Set the location of various third-party software packages
66dnl **************************************************************************
67
John Criswell607b1ea2003-10-16 01:44:20 +000068dnl **************************************************************************
69dnl * Create the output files
70dnl **************************************************************************
Reid Spencer1a87ddc2005-02-24 18:50:53 +000071
72dnl This must be last
Reid Spencer9964cd82005-01-01 09:26:55 +000073AC_OUTPUT