2003-10-16 01:44:20 +00:00
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Initialize
|
|
|
|
dnl **************************************************************************
|
|
|
|
AC_INIT([[[SAMPLE]]],[[[x.xx]]],[bugs@yourdomain])
|
|
|
|
|
2006-04-18 06:27:47 +00:00
|
|
|
dnl Identify where LLVM source tree is
|
2010-12-12 21:41:56 +00:00
|
|
|
LLVM_SRC_ROOT="../.."
|
|
|
|
LLVM_OBJ_ROOT="../.."
|
|
|
|
|
|
|
|
dnl Find absolute paths to LLVM source and object trees
|
|
|
|
LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
|
|
|
|
LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
|
2003-10-16 01:44:20 +00:00
|
|
|
|
2005-02-24 18:50:53 +00:00
|
|
|
dnl Tell autoconf that this is an LLVM project being configured
|
|
|
|
dnl This provides the --with-llvmsrc and --with-llvmobj options
|
2010-12-12 21:41:56 +00:00
|
|
|
LLVM_CONFIG_PROJECT($LLVM_ABS_SRC_ROOT,$LLVM_ABS_OBJ_ROOT)
|
2005-02-24 18:50:53 +00:00
|
|
|
|
2010-01-25 04:10:28 +00:00
|
|
|
dnl Tell autoconf that the auxilliary files are actually located in
|
|
|
|
dnl the LLVM autoconf directory, not here.
|
|
|
|
AC_CONFIG_AUX_DIR($LLVM_SRC/autoconf)
|
|
|
|
|
2005-02-24 18:50:53 +00:00
|
|
|
dnl Verify that the source directory is valid
|
|
|
|
AC_CONFIG_SRCDIR(["Makefile.common.in"])
|
2003-10-16 01:44:20 +00:00
|
|
|
|
2005-02-24 18:50:53 +00:00
|
|
|
dnl Configure a common Makefile
|
|
|
|
AC_CONFIG_FILES(Makefile.common)
|
2003-10-16 01:44:20 +00:00
|
|
|
|
2005-02-24 18:50:53 +00:00
|
|
|
dnl Configure project makefiles
|
|
|
|
dnl List every Makefile that exists within your source tree
|
2003-10-16 01:44:20 +00:00
|
|
|
AC_CONFIG_MAKEFILE(Makefile)
|
|
|
|
AC_CONFIG_MAKEFILE(lib/Makefile)
|
|
|
|
AC_CONFIG_MAKEFILE(lib/sample/Makefile)
|
|
|
|
AC_CONFIG_MAKEFILE(tools/Makefile)
|
|
|
|
AC_CONFIG_MAKEFILE(tools/sample/Makefile)
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Determine which system we are building on
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Check for programs.
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Check for libraries.
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Checks for header files.
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Checks for library functions.
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Enable various compile-time options
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Set the location of various third-party software packages
|
|
|
|
dnl **************************************************************************
|
|
|
|
|
|
|
|
dnl **************************************************************************
|
|
|
|
dnl * Create the output files
|
|
|
|
dnl **************************************************************************
|
2005-02-24 18:50:53 +00:00
|
|
|
|
|
|
|
dnl This must be last
|
2005-01-01 09:26:55 +00:00
|
|
|
AC_OUTPUT
|