1dnl ************************************************************************** 2dnl * Initialize 3dnl ************************************************************************** 4AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain]) 5 6dnl Identify where LLVM source tree is 7LLVM_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`" 13 14dnl Tell autoconf that this is an LLVM project being configured 15dnl This provides the --with-llvmsrc and --with-llvmobj options 16LLVM_CONFIG_PROJECT($LLVM_ABS_SRC_ROOT,$LLVM_ABS_OBJ_ROOT) 17 18dnl Tell autoconf that the auxiliary files are actually located in 19dnl the LLVM autoconf directory, not here. 20AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf) 21 22dnl Verify that the source directory is valid 23AC_CONFIG_SRCDIR(["Makefile.common.in"]) 24 25dnl Configure a common Makefile 26AC_CONFIG_FILES(Makefile.common) 27 28dnl Configure project makefiles 29dnl List every Makefile that exists within your source tree 30AC_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 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 ************************************************************************** 69dnl * Create the output files 70dnl ************************************************************************** 71 72dnl This must be last 73AC_OUTPUT 74