c0715ead5cbd66ab037661eb2f6fbffefcbd6486
[oota-llvm.git] / projects / sample / autoconf / configure.ac
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
7 AC_CONFIG_AUX_DIR([autoconf])
8
9 dnl Configure a header file
10
11 dnl Configure Makefiles
12 dnl List every Makefile that ecists within your source tree
13
14 AC_CONFIG_MAKEFILE(Makefile)
15 AC_CONFIG_MAKEFILE(lib/Makefile)
16 AC_CONFIG_MAKEFILE(lib/sample/Makefile)
17 AC_CONFIG_MAKEFILE(tools/Makefile)
18 AC_CONFIG_MAKEFILE(tools/sample/Makefile)
19
20 dnl **************************************************************************
21 dnl * Determine which system we are building on
22 dnl **************************************************************************
23
24 dnl **************************************************************************
25 dnl * Check for programs.
26 dnl **************************************************************************
27
28 dnl Verify that the source directory is valid
29 AC_CONFIG_SRCDIR(["Makefile.common.in"])
30
31 dnl **************************************************************************
32 dnl * Check for libraries.
33 dnl **************************************************************************
34
35 dnl **************************************************************************
36 dnl * Checks for header files.
37 dnl **************************************************************************
38
39 dnl **************************************************************************
40 dnl * Checks for typedefs, structures, and compiler characteristics.
41 dnl **************************************************************************
42
43 dnl **************************************************************************
44 dnl * Checks for library functions.
45 dnl **************************************************************************
46
47 dnl **************************************************************************
48 dnl * Enable various compile-time options
49 dnl **************************************************************************
50
51 dnl **************************************************************************
52 dnl * Set the location of various third-party software packages
53 dnl **************************************************************************
54
55 dnl Location of LLVM source code
56 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`]))
57
58 dnl Location of LLVM object code
59 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`]))
60
61 dnl **************************************************************************
62 dnl * Create the output files
63 dnl **************************************************************************
64 AC_OUTPUT(Makefile.common)