diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-01-01 20:47:26 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-01-02 00:07:00 +0100 |
commit | 53ade4da49f02bedf5c0e7e0b82d961b3e78cb4d (patch) | |
tree | 4ba68c78843cb47e102b7c988cb17a96ff8c2438 /configure.ac | |
parent | 72f28cc2cb57bbcc4e773069dad6cf75343fb396 (diff) | |
download | systemtap-steved-53ade4da49f02bedf5c0e7e0b82d961b3e78cb4d.tar.gz systemtap-steved-53ade4da49f02bedf5c0e7e0b82d961b3e78cb4d.tar.xz systemtap-steved-53ade4da49f02bedf5c0e7e0b82d961b3e78cb4d.zip |
Add SystemTap_Beginners_Guide to build.
* configure.ac: Add --enable-publican and --with-publican-brand.
Setup "shadow" directory doc/beginners.
* Makefile.in: Regenerated.
* configure: Regenerated.
* doc/Makefile.am (SUBDIRS): Add beginners.
* doc/Makefile.in: Regenerated.
* doc/SystemTap_Beginners_Guide/en-US/Book_Info.xml (productname):
Set to Systemtap.
(productnumber): Set to 1.0.
* SystemTap_Beginners_Guide/en-US/*.xml: Replace includes from
extras/testsuite to ../testsuite,
* doc/SystemTap_Beginners_Guide/publican.cfg: Moved to ...
* doc/SystemTap_Beginners_Guide/publican.cfg.in: ... here.
* doc/SystemTap_Beginners_Guide/Makefile: Removed.
* doc/SystemTap_Beginners_Guide/old-syncandbuild.sh: Removed.
* doc/SystemTap_Beginners_Guide/syncandbuild.sh: Removed.
* doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated.
* doc/beginners/Makefile.am: New makefile.
* doc/beginners/Makefile.in: New generated file.
* grapher/Makefile.in: Regenerated.
* systemtap.spec: Add with_publican and publican_brand.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f14fdc91..2c1cfa2e 100644 --- a/configure.ac +++ b/configure.ac @@ -187,6 +187,35 @@ if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesye fi AM_CONDITIONAL([BUILD_DOCS], [test "$building_docs" == "yes"]) +dnl Handle the options to build the publican options +building_publican="no" +AC_ARG_ENABLE([publican], + AS_HELP_STRING([--enable-publican], + [enable building publican documentation guides (default on if publican found and other documentation built).]), + [enable_publican=$enableval], + [enable_publican="check"]) +if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then + AC_MSG_ERROR([must use --enable-docs with --enable-publican]) +fi +AC_CHECK_PROG(have_publican, publican, yes, no) +if test "$enable_publican" == "yes"; then + if test "x${have_publican}" != "xyes"; then + AC_MSG_ERROR([cannot find publican for building publican guides]) + fi +fi +if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then + building_publican="yes" +fi +AM_CONDITIONAL([BUILD_PUBLICAN], [test "$building_publican" == "yes"]) +publican_brand="fedora" +AC_ARG_WITH([publican-brand], + AS_HELP_STRING([--with-publican-brand=BRAND], + [building publican documentation guides using given brand (defaults to "fedora").]), + [publican_brand=$withval], + [publican_brand="fedora"]) +PUBLICAN_BRAND=$publican_brand +AC_SUBST(PUBLICAN_BRAND) + dnl Handle the option to build the reference documentation building_refdocs="no" AC_ARG_ENABLE([refdocs], @@ -646,13 +675,22 @@ dnl Don't use this directly (when not given it is set to NONE). AC_DEFINE_UNQUOTED(STAP_PREFIX, "$prefix", [configure prefix location]) AC_CONFIG_HEADERS([config.h:config.in]) -AC_CONFIG_FILES(Makefile doc/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-client.8 stap-server.8 stap-authorize-server-cert.8 stap-authorize-signing-cert.8 man/stapprobes.iosched.3stap man/stapprobes.irq.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.kprocess.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap man/stapprobes.snmp.3stap initscript/systemtap initscript/stap-server) +AC_CONFIG_FILES(Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stap.1 stapprobes.3stap stapfuncs.3stap stapvars.3stap stapex.3stap staprun.8 stap-client.8 stap-server.8 stap-authorize-server-cert.8 stap-authorize-signing-cert.8 man/stapprobes.iosched.3stap man/stapprobes.irq.3stap man/stapprobes.netdev.3stap man/stapprobes.nfs.3stap man/stapprobes.nfsd.3stap man/stapprobes.pagefault.3stap man/stapprobes.kprocess.3stap man/stapprobes.rpc.3stap man/stapprobes.scsi.3stap man/stapprobes.signal.3stap man/stapprobes.socket.3stap man/stapprobes.tcp.3stap man/stapprobes.udp.3stap man/stapprobes.snmp.3stap initscript/systemtap initscript/stap-server) AC_CONFIG_SUBDIRS(testsuite) if test $enable_translator == "yes"; then AC_CONFIG_FILES([run-stap], [chmod +x run-stap]) fi AC_CONFIG_FILES([run-staprun], [chmod +x run-staprun]) AC_CONFIG_FILES([dtrace], [chmod +x dtrace]) + +# Setup "shadow" directory doc/beginners that has everything setup for +# publican in one directory (through directory links if necessary). +# It would be nice to use AC_CONFIG_LINKS, but automake complains when +# the src is a directory and not a file. +AC_CONFIG_FILES([doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in]) +AC_CONFIG_COMMANDS([doc/beginners], + [rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite]) + AC_OUTPUT if test "${prefix}" = "/usr/local"; then |