diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-29 04:56:35 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-29 04:56:35 +0000 |
commit | 1f31942b12e948a42122febfb5d1fbca01bc9dd8 (patch) | |
tree | eead8b355863353a6e097ec30839ed8af251a1d0 /autoconf | |
parent | e1200219ec6f4d6ff7f54933ccad462c8dfdbb70 (diff) | |
download | external_llvm-1f31942b12e948a42122febfb5d1fbca01bc9dd8.zip external_llvm-1f31942b12e948a42122febfb5d1fbca01bc9dd8.tar.gz external_llvm-1f31942b12e948a42122febfb5d1fbca01bc9dd8.tar.bz2 |
* allow doxygen documentation to be enabled/disabled (default off)
* organize programs we test for properly
* add new programs needed for documentation generation
* Adjust install paths so llvm stuff doesn't muck up /usr/local or /usr if
$prefix is set to those.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index e7614d1..6a3b992 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -187,6 +187,18 @@ else esac fi +dnl Allow enablement of doxygen generated documentation +AC_ARG_ENABLE(doxygen, + AS_HELP_STRING([--enable-doxygen], + [Build doxygen documentation (default is NO)]),, + enableval=default) +case "$enableval" in + yes) AC_SUBST(ENABLE_DOXYGEN,[1]) ;; + no) AC_SUBST(ENABLE_DOXYGEN,[0]) ;; + default) AC_SUBST(ENABLE_DOXYGEN,[0]) ;; + *) AC_MSG_ERROR([Invalid setting for --enable-doxygen. Use "yes" or "no"]) ;; +esac + dnl Find the LLVM GCC-based C/C++ front end AC_ARG_WITH(llvmgccdir, AS_HELP_STRING(--with-llvmgccdir,[Location of LLVM GCC front-end]), @@ -230,26 +242,36 @@ AC_PROG_LIBTOOL dnl Check for the tools that the makefiles require AC_CHECK_GNU_MAKE AC_PROG_LN_S +AC_PATH_PROG(DATE, [date], [date]) AC_PATH_PROG(FIND, [find], [find]) AC_PATH_PROG(GREP, [grep], [grep]) AC_PATH_PROG(MKDIR,[mkdir],[mkdir]) -AC_PATH_PROG(MV, [mv], [mv]) +AC_PATH_PROG(MV, [mv], [mv]) +AC_PATH_PROG(PAX, [pax], [pax]) AC_PROG_RANLIB -AC_PATH_PROG(RM, [rm], [rm]) -AC_PATH_PROG(SED, [sed], [sed]) -AC_PATH_PROG(TAR, [tar],[gtar]) +AC_PATH_PROG(RM, [rm], [rm]) +AC_PATH_PROG(SED, [sed], [sed]) +AC_PATH_PROG(TAR, [tar], [gtar]) dnl Find the install program AC_PROG_INSTALL -dnl Checks for tools we can get away with not having: +dnl Checks for documentation and testing tools that we can do without. If these +dnl are not found then they are set to "true" which always succeeds but does +dnl nothing. This just lets the build output show that we could have done +dnl something if the tool was available. +AC_PATH_PROG(BZIP2,[bzip2],[true bzip2]) AC_PATH_PROG(DOT,[dot],[true dot]) +AC_PATH_PROG(DOXYGEN,[doxygen],[true doxygen]) AC_PATH_PROG(ETAGS,[etags],[true etags]) - -dnl Check for optional testing tools +AC_PATH_PROG(GROFF,[groff],[true groff]) +AC_PATH_PROG(GZIP,[gzip],[true gzip]) +AC_PATH_PROG(POD2HTML,[pod2html],[true pod2html]) +AC_PATH_PROG(POD2MAN,[pod2man],[true pod2man]) AC_PATH_PROG(PYTHON,[python],[true python]) AC_PATH_PROG(QMTEST,[qmtest],[true qmtest]) AC_PATH_PROG(RUNTEST,[runtest],[true runtest]) +AC_PATH_PROG(ZIP,[zip],[true zip]) dnl Determine if the linker supports the -R option. AC_LINK_USE_R @@ -476,9 +498,9 @@ AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", eval LLVM_PREFIX="${prefix}"; eval LLVM_BINDIR="${prefix}/bin"; eval LLVM_LIBDIR="${prefix}/lib"; -eval LLVM_DATADIR="${prefix}/data"; -eval LLVM_DOCSDIR="${prefix}/docs"; -eval LLVM_ETCDIR="${prefix}/etc"; +eval LLVM_DATADIR="${prefix}/share/llvm"; +eval LLVM_DOCSDIR="${prefix}/docs/llvm"; +eval LLVM_ETCDIR="${prefix}/etc/llvm"; eval LLVM_INCLUDEDIR="${prefix}/include"; eval LLVM_INFODIR="${prefix}/info"; eval LLVM_MANDIR="${prefix}/man"; @@ -538,6 +560,9 @@ AC_CONFIG_FILES([Makefile.config]) dnl Configure llvmc's configuration files AC_CONFIG_FILES([tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c]) +dnl Configure doxygen's configuration file +AC_CONFIG_FILES([docs/doxygen.cfg]) + dnl Do special configuration of Makefiles AC_CONFIG_MAKEFILE(Makefile) AC_CONFIG_MAKEFILE(Makefile.common) |