[ROOT] m4 macros and sample files for Autoconf/Automake/Libtool users

From: Matthew D. Langston (langston@SLAC.stanford.edu)
Date: Tue Jan 02 2001 - 23:21:59 MET


All of my ROOT projects are built using Autoconf, Automake and Libtool.  To
accomplish this I've written several Autoconf feature detection macros and
"make snippets" over the years to help make creating ROOT projects easier,
and I am occasionally asked for them by users.

I thought I would post these macros to the list for current and future
Autoconf/Automake users.  In case it isn't obvious, the three m4 files
should be placed where Autoconf can find them.  I've also attached a sample
configure.in and Makefile.am file that shows how to use everything, which
come from an old project.

The configure.in file shows how to use the main Autoconf macro,
MDL_HAVE_ROOT, to set up all of the compiler and linker flags properly.
This is the only macro you should ever have to use (the others are used
internally by MDL_HAVE_ROOT).  The sample Makefile.am file shows how to use
the information that was auto-detected by MDL_HAVE_ROOT, and how to get
Automake to automatically generate ROOT dictionaries, etc.

I hope this may be helpful to some of you.

Regards, Matt
--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU









This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:33 MET