blob: c0715ead5cbd66ab037661eb2f6fbffefcbd6486 [file] [log] [blame]
John Criswell607b1ea2003-10-16 01:44:20 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
5
6dnl Place all of the extra autoconf files into the config subdirectory
7AC_CONFIG_AUX_DIR([autoconf])
8
9dnl Configure a header file
10
11dnl Configure Makefiles
12dnl List every Makefile that ecists within your source tree
13
14AC_CONFIG_MAKEFILE(Makefile)
15AC_CONFIG_MAKEFILE(lib/Makefile)
16AC_CONFIG_MAKEFILE(lib/sample/Makefile)
17AC_CONFIG_MAKEFILE(tools/Makefile)
18AC_CONFIG_MAKEFILE(tools/sample/Makefile)
19
20dnl **************************************************************************
21dnl * Determine which system we are building on
22dnl **************************************************************************
23
24dnl **************************************************************************
25dnl * Check for programs.
26dnl **************************************************************************
27
28dnl Verify that the source directory is valid
29AC_CONFIG_SRCDIR(["Makefile.common.in"])
30
31dnl **************************************************************************
32dnl * Check for libraries.
33dnl **************************************************************************
34
35dnl **************************************************************************
36dnl * Checks for header files.
37dnl **************************************************************************
38
39dnl **************************************************************************
40dnl * Checks for typedefs, structures, and compiler characteristics.
41dnl **************************************************************************
42
43dnl **************************************************************************
44dnl * Checks for library functions.
45dnl **************************************************************************
46
47dnl **************************************************************************
48dnl * Enable various compile-time options
49dnl **************************************************************************
50
51dnl **************************************************************************
52dnl * Set the location of various third-party software packages
53dnl **************************************************************************
54
55dnl Location of LLVM source code
56AC_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
58dnl Location of LLVM object code
59AC_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
61dnl **************************************************************************
62dnl * Create the output files
63dnl **************************************************************************
64AC_OUTPUT(Makefile.common)