Cleanup configuration for Cygwin
[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 AC_CONFIG_FILES(Makefile.common)
11
12 dnl Configure Makefiles
13 dnl List every Makefile that ecists within your source tree
14
15 AC_CONFIG_MAKEFILE(Makefile)
16 AC_CONFIG_MAKEFILE(lib/Makefile)
17 AC_CONFIG_MAKEFILE(lib/sample/Makefile)
18 AC_CONFIG_MAKEFILE(tools/Makefile)
19 AC_CONFIG_MAKEFILE(tools/sample/Makefile)
20
21 dnl **************************************************************************
22 dnl * Determine which system we are building on
23 dnl **************************************************************************
24
25 dnl **************************************************************************
26 dnl * Check for programs.
27 dnl **************************************************************************
28
29 dnl Verify that the source directory is valid
30 AC_CONFIG_SRCDIR(["Makefile.common.in"])
31
32 dnl **************************************************************************
33 dnl * Check for libraries.
34 dnl **************************************************************************
35
36 dnl **************************************************************************
37 dnl * Checks for header files.
38 dnl **************************************************************************
39
40 dnl **************************************************************************
41 dnl * Checks for typedefs, structures, and compiler characteristics.
42 dnl **************************************************************************
43
44 dnl **************************************************************************
45 dnl * Checks for library functions.
46 dnl **************************************************************************
47
48 dnl **************************************************************************
49 dnl * Enable various compile-time options
50 dnl **************************************************************************
51
52 dnl **************************************************************************
53 dnl * Set the location of various third-party software packages
54 dnl **************************************************************************
55
56 dnl Location of LLVM source code
57 AC_ARG_WITH(llvmsrc,AS_HELP_STRING([--with-llvmsrc],[Location of LLVM Source Code]),AC_SUBST(LLVM_SRC,[$withval]),AC_SUBST(LLVM_SRC,[`cd ${srcdir}/../..; pwd`]))
58
59 dnl Location of LLVM object code
60 AC_ARG_WITH(llvmobj,AS_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
61
62 dnl **************************************************************************
63 dnl * Create the output files
64 dnl **************************************************************************
65 AC_OUTPUT