blob: 757c8d0aa14a746b470db55ddf278fa5e10e2f77 [file] [log] [blame]
Reid Spencer820dab72004-09-04 19:48:50 +00001dnl **************************************************************************
2dnl * Initialize
3dnl **************************************************************************
4AC_INIT([[[Stacker]]],[[[1.0]]],[rspencer@x10sys.com])
5
6dnl Place all of the extra autoconf files into the config subdirectory
7AC_CONFIG_AUX_DIR([autoconf])
8
Reid Spencer011f5ca2004-09-15 06:19:53 +00009dnl Verify that the source directory is valid
10AC_CONFIG_SRCDIR([Makefile.common.in])
Reid Spencer820dab72004-09-04 19:48:50 +000011
12dnl Configure Makefiles
13dnl List every Makefile that ecists within your source tree
14
15AC_CONFIG_MAKEFILE(Makefile)
16AC_CONFIG_MAKEFILE(lib/Makefile)
17AC_CONFIG_MAKEFILE(lib/compiler/Makefile)
18AC_CONFIG_MAKEFILE(lib/runtime/Makefile)
Reid Spencere07d9aa2004-09-05 16:42:30 +000019AC_CONFIG_MAKEFILE(test/Makefile)
Reid Spencer820dab72004-09-04 19:48:50 +000020AC_CONFIG_MAKEFILE(tools/Makefile)
21AC_CONFIG_MAKEFILE(tools/stkrc/Makefile)
22
23dnl **************************************************************************
24dnl * Determine which system we are building on
25dnl **************************************************************************
26
27dnl **************************************************************************
28dnl * Check for programs.
29dnl **************************************************************************
Reid Spencer011f5ca2004-09-15 06:19:53 +000030AC_PROG_LIBTOOL
31dnl Get libtool's idea of what the shared library suffix is.
32dnl (This is a hack; it relies on undocumented behavior.)
33AC_MSG_CHECKING([for shared library suffix])
34eval "SHLIBEXT=$shrext"
35AC_MSG_RESULT($SHLIBEXT)
36dnl Propagate it to the Makefiles and config.h (for gccld & bugpoint).
37AC_SUBST(SHLIBEXT,$SHLIBEXT)
38AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT",
39 [Extension that shared libraries have,
40 e.g., ".so".])
41
Reid Spencer820dab72004-09-04 19:48:50 +000042
Reid Spencer820dab72004-09-04 19:48:50 +000043
44dnl **************************************************************************
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
68dnl Location of LLVM source code
69AC_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`]))
70
71dnl Location of LLVM object code
72AC_ARG_WITH(llvmobj,AC_HELP_STRING([--with-llvmobj],[Location of LLVM Object Code]),AC_SUBST(LLVM_OBJ,[$withval]),AC_SUBST(LLVM_OBJ,[`cd ../..; pwd`]))
73
74dnl **************************************************************************
75dnl * Create the output files
76dnl **************************************************************************
77AC_OUTPUT(Makefile.common)