Commit 7f867fdd authored by Lynn Garren's avatar Lynn Garren

updating proceedures

parent fef5ef28
Thu Apr 7 2005 Lynn Garren <garren@fnal.gov>
* configure.in: set AR and ARFLAGS
2005-03-15 Lynn Garren <garren@fnal.gov>
* examples are now installed
2005-03-15 Mark Fischler <mf@fnal.gov>
* engineIDulong.cc, engineIDulong.h
DoubConv.cc, DoubConv.h
EngineFactory.cc, ranRestoreTest.cc
all Random Engine classes
Add put() and get() methods to every engine transfering state to a
vector of unsigned longs.
Thu Mar 10 2005 Andreas Pfeiffer <andreas.pfeiffer@cern.ch>
* Geometry/BasicVector3D.h : added operator to convert to Hep3Vector
for backward compatibility (savannah bug id 6740)
* Geometry/config.in, Geometry/test/testBug6740.cc, Geometry/test/testBug6740.sh,
Geometry/test/testBug6740.output, Geometry/test/Makefile.am: added test for bug ID 6740
2005-02-14 Mark Fischler <mf@fnal.gov>
* JamesRandom.cc
Check that seed is non-negative.
Negative seeds give terrible sequences.
2005-02-11 Mark Fischler <mf@fnal.gov>
* RandPoissonQ.cc RandPoissonT.cc RandomEngine.cc
Added missing implementations, per bug # 1806
(FireArray(), shootArray(), getTableSeeds)
2005-03-15 Mark Fischler <mf@fnal.gov>
* SymMatrix.cc, testBug7328.cc
Repair of bug 7328, a memory leak encountered when inverting symmetric
matrices above the size of 6x6.
2005-02-25 Mark Fischler <mf@fnal.gov>
* Matrix.cc, testBug6181.cc
Repair of bug 6181, a serious error in inverting matrices above the
size of 6x6.
2005-02-18 Lynn Garren <garren@fnal.gov>
* configure.in, Makefile.am: Stop using libtool.
The newer releases of libtool seem to have dropped support for
Windows Visual C++.
2005-02-14 Lynn Garren <garren@fnal.gov>
* */configure.in: Visual C++ flags are now "-EHsc -nologo -GR -GX -MD"
2005-02-03 Lynn Garren <garren@fnal.gov>
* configure.in: install step creates libCLHEP.a, libCLHEP.so,
and/or libCLHEP.dylib by adding a symbolic link.
* HepMC/GenParticle.h: define HepMC::GenParticle::setParticleID
* HepPDT: define HepPDT::QQDecayTable::writeTable,
HepPDT::QQChannel::write, and HepPDT::QQDecay::write
2005-02-02 Andreas PFEIFFER <andreas.pfeiffer@cern.ch>
* */configure.in: modified compiler flags for windows:
added "-O -GR -GX -MD" as this is needed for the multi-thread
environments used.
2005-02-01 Lynn Garren <garren@fnal.gov>
* config: remove HEP_CC_NEED_SUB_WITHOUT_CONST from config/CLHEP.h.
HEP_CC_NEED_SUB_WITHOUT_CONST has been defined to 1 in all cases for
a long time.
* Matrix: remove HEP_CC_NEED_SUB_WITHOUT_CONST ifdefs
2005-02-01 Andreas PFEIFFER <andreas.pfeiffer@cern.ch>
* Geometry/Geometry/BasicVector3D.h : changed template specialisations for
multiplication of vector<float> with scalar and division of vector<float>
by scalar to use float scalars instead of double (savannah bug id 6523)
2005-01-31 Andreas PFEIFFER <andreas.pfeiffer@cern.ch>
* Matrix/src/Matrix.h: fixed error in sub(int, int, int, int), savannah
bug id 6176, added corresponding files (testBug6176*) in test/,
updated Makefile.am accordingly to generate tests.
Mon Dec 27 2004 Mark Fischler <mf@fnal.gov>
* *.cc and .h for all the engine classes.
* Random.cc EngineFactory.cc StaticRandomStates.cc
Ability to restore engines and distributions without knowing in
the restoring program which type of engine was used in the saving
program.
Wed Dec 22 2004 Mark Fischler <mf@fnal.gov>
* Random.h StaticRandomState.h Random.cc StaticRandomState.cc
Added HepRandom::saveStaticRandomState(ostream) and restore to istream.
Mon Dec 20 2004 Mark Fischler <mf@fnal.gov>
* Random.h RandGauss.h RandFlat.h RandFlat.icc RandBit.h
Random.cc RandGauss.cc RandFlat.cc
Added static methods for save/restore to streams.
Thu Dec 16 2004 Mark Fischler <mf@fnal.gov>
* Random/*.cc for all engines and distributions.
* Random/test/ranRestoreTest.cc
Added put and get methods, as well as ostream operations, so that
engine and distribution instances can be saved and restored to/from
streams.
Thu Dec 16
Wed Dec 15 2004 Mark Fischler <mf@fnal.gov>
* RandPoissonQ.cc (RandPoissonT.cc)
RandPoissonQ has a path, potentially taken when mean is more
than 100, where an additional gaussian random number is needed.
Instead we use the engine owned by the RandPoissonQ instance.
This will affect in rare cases the values of random variates
delivered by **instances** (not the shoot() methods) of RandPoissonQ
and RandPoissonT.
Thu Dec 16
Tue Dec 14 2004 Mark Fischler <mf@fnal.gov>
* RandGeneral.cc
Modify local variable theIntegralPdf, using a std::vector instead
of a double* pointing to a new-ed array. No behavioral change.
Thu Dec 16
Fri Dec 3 2004 Mark Fischler <mf@fnal.gov>
* Random/*.cc for all engines
* Random/test/ranRestoreTest.cc
Modified engines and additional-state distributions so that
restoreENgineState behaves better (error message and return
instead of hang up) when file requested is not found.
==============================
30.11.04 Release CLHEP-2.0.1.2
==============================
Tue Nov 30 2004 Andreas Pfeiffer <andreas.pfeiffer@cern.ch>
* Geometry/Plane3D.h: replaced wrong <float> by <T> in
Point3D<T> point(const Point3D<float> & p) const {
Mon Nov 29 2004 Mark Fischler <mf@fnal.gov>
* In LorentzVectorC.cc, in deltaR, fixed to use pp.deltaRPhi(w.getV())
Mon Nov 29 2004 Lynn Garren <garren@fnal.gov>
* Vector/src: add missing implemetations
Fri Nov 26 2004 Andreas Pfeiffer <andreas.pfeiffer@cern.ch>
* HepMC/doc/Makefile.in: add -o option to dvips, otherwise it
prints on some systems
==============================
27.10.04 Release CLHEP-2.0.1.1
==============================
Wed Oct 27 2004 Andreas Pfeiffer <andreas.pfeiffer@cern.ch>
* Geometry/BasicVector3D.h: made dtor virtual as this is a base class
* Geometry/Transform3D.h: added virtual dtor for persistency. This may go away in later releases.
Fri Sep 24 2004 Lynn Garren <garren@fnal.gov>
* use AM_CXXFLAGS
* require autoconf 2.59, automake 1.9.1, and libtool 1.9b
* Matrix: remove unnecessary copy and disable allocator
Tue Aug 31 2004 Lynn Garren <garren@fnal.gov>
* change Solaris CC compile flags from "-O -mt" to "-O"
* libtools 1.9b or later is required for Solaris CC
==============================
23.07.04 Release CLHEP-2.0.1.0
==============================
Fri Jul 23 2004 Lynn Garren <garren@fnal.gov>
* remove obsolete Utilities from 2.0 to avoid confusion
* more changes for Solaris tests
* HepPDT version is 1.01.00
* HepPDT: access ParticleData information by name (std::string)
Wed May 19 2004 Lynn Garren <garren@fnal.gov>
* HepPDT: fix bugs in translation
* HepPDT: add translation tests
* a couple of miscellaneous changes for Solaris
==============================
11.05.04 Release CLHEP-2.0.0.2
==============================
......
......@@ -5,6 +5,19 @@
You may build CLHEP as a complete package, starting from this
top level directory, or you may build any package separately.
#-------------------------------------------------------------
# platform specific issues
#-------------------------------------------------------------
This package requires autoconf 2.59 or later and automake 1.9.1 or later.
If you bootstrap, you will probably have to build these yourself.
See "building autotools" below.
The new libtool no longer properly supports shared libraries for gcc 2.95.2.
If you build CLHEP with gcc 2.95.2, you must configure --disable-shared.
To build for Solaris CC, configure with CXX=CC CC=cc and use gmake.
#-------------------------------------------------------------
# about linking
#-------------------------------------------------------------
......@@ -85,11 +98,13 @@ Now continue with directions as if you unpacked a source code tarball.
# building autotools
#-------------------------------------------------------------
If you do not have at least autoconf 2.57 and automake 1.6, you will
If you do not have at least autoconf 2.59 and automake 1.9.1, you will
need to build autoconf, automake, and libtool. On some platforms,
you may also need to build m4 and texinfo.
Download the relevant tarballs from gnu.org.
Download the relevant tarballs from gnu.org
(http://www.gnu.org/software/autoconf/, http://www.gnu.org/software/automake/,
and http://www.gnu.org/software/libtool/)
Untar them in a common source code tree.
Decide whether you want to install them in /usr/local or your own
install directory. If you use your own install directory, use
......
## Process this file with automake to produce Makefile.in
if USE_GMAKE
MAKE = gmake
endif
includedir = $(prefix)/include/CLHEP
SUBDIRS = Units Vector Evaluator GenericFunctions Geometry \
Random Matrix RandomObjects Fields HepPDT HepMC StdHep \
RefCount Cast Exceptions
bin_SCRIPTS = clheplib
CLEANFILES = clheplib library-list $(LTCLHEPLIB)
bin_SCRIPTS = clheplib clhep-config
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CXXFLAGS = @CXXFLAGS@
LTCLHEPLIB = libCLHEP-@VERSION@.la
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
# these if/else blocks will be parsed by automake and translated
if BUILD_SHARED
shareddir = shared
lib_shared = libCLHEP-@VERSION@.$(SHEXT)
SHFLAGS = @MY_SHFLAGS@
SHLINK = @MY_SHLINK@
SHNAME = @MY_SHNAME@
endif
if BUILD_STATIC
CLHEPLIB = libCLHEP-@VERSION@.a
endif
CLEANFILES = clheplib library-list $(CLHEPLIB) $(lib_shared)
all-local: $(LTCLHEPLIB)
all-local: $(CLHEPLIB) $(lib_shared)
$(LTCLHEPLIB):
liblist=`$(srcdir)/getObjectList $(SUBDIRS)`; \
$(CXXLINK) -rpath $(libdir) $$liblist $(LIBS)
$(CLHEPLIB):
-rm -f $@
liblist=`$(top_builddir)/getObjectList -static $(SUBDIRS)`; \
$(AR) $(ARFLAGS) $@ $$liblist; $(RANLIB) $@
$(lib_shared):
-rm -f $@
liblist=`$(top_builddir)/getObjectList -shared $(SUBDIRS)`; \
$(CXXLINK) $(SHLINK) $(SHNAME)$@ $$liblist -o $@
docs:
list='$(SUBDIRS)'; for subdir in $$list; do \
......@@ -37,16 +57,40 @@ install-docs:
clheplib: build-clheplib
./build-clheplib $(SUBDIRS)
install-exec-local: install-LTCLHEPLIB
install-exec-local: install-CLHEPLIB
install-LTCLHEPLIB: $(LTCLHEPLIB)
install-CLHEPLIB: $(CLHEPLIB) $(lib_shared)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(libdir)
@list='$(LTCLHEPLIB)'; for p in $$list; do \
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
@list='$(CLHEPLIB)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_DATA) '$$p' '$(DESTDIR)$(libdir)/$$p'"; \
$(INSTALL_DATA) "$$p" "$(DESTDIR)$(libdir)/$$p"; \
else :; fi; \
done
@$(POST_INSTALL)
@list='$(CLHEPLIB)'; for p in $$list; do \
if test -f $$p; then \
echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
$(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
if test -f $(DESTDIR)$(libdir)/libCLHEP.a; then \
(rm -f $(DESTDIR)$(libdir)/libCLHEP.a); fi; \
(cd $(DESTDIR)$(libdir) && $(LN_S) libCLHEP-@VERSION@.a libCLHEP.a ); \
else :; fi; \
done
@$(NORMAL_INSTALL)
@list='$(lib_shared)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$p'"; \
$(INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
else :; fi; \
done
@$(POST_INSTALL)
@list='$(lib_shared)'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
$(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
if test -f $(DESTDIR)$(libdir)/libCLHEP.a; then \
(rm -f $(DESTDIR)$(libdir)/libCLHEP.$(SHEXT)); fi; \
(cd $(DESTDIR)$(libdir) && $(LN_S) libCLHEP-@VERSION@.$(SHEXT) libCLHEP.$(SHEXT) ); \
else :; fi; \
done
......
2005-04-07 Lynn Garren <garren@fnal.gov>
* configure.in: set AR and ARFLAGS
2005-02-18 Lynn Garren <garren@fnal.gov>
* configure.in, Makefile.am: Stop using libtool.
The newer releases of libtool seem to have dropped support for
Windows Visual C++.
2005-02-14 Lynn Garren <garren@fnal.gov>
* configure.in: Visual C++ flags are now "-EHsc -nologo -GR -GX -MD"
2005-02-03 Lynn Garren <garren@fnal.gov>
* configure.in: install step creates libCLHEP.a, libCLHEP.so,
and/or libCLHEP.dylib by adding a symbolic link.
2005-02-02 Andreas PFEIFFER <andreas.pfeiffer@cern.ch>
* configure.in: modified compiler flags for windows:
added "-O -GR -GX -MD" as this is needed for the multi-thread
environments used.
==============================
30.11.04 Release CLHEP-2.0.1.2
==============================
==============================
27.10.04 Release CLHEP-2.0.1.1
==============================
Fri Sep 24 2004 Lynn Garren <garren@fnal.gov>
* use AM_CXXFLAGS
* require autoconf 2.59, automake 1.9.1, and libtool 1.9b
Tue Aug 31 2004 Lynn Garren <garren@fnal.gov>
* change Solaris CC compile flags from "-O -mt" to "-O"
* libtools 1.9b or later is required for Solaris CC
==============================
23.07.04 Release CLHEP-2.0.1.0
==============================
==============================
11.05.04 Release CLHEP-2.0.0.2
==============================
......
#-------------------------------------------------------------
# platform specific issues
#-------------------------------------------------------------
This package requires autoconf 2.59 or later and automake 1.9.1 or later.
If you bootstrap, you will probably have to build these yourself.
See "building autotools" below.
The new libtool no longer properly supports shared libraries for gcc 2.95.2.
If you build CLHEP with gcc 2.95.2, you must configure --disable-shared.
To build for Solaris CC, configure with CXX=CC CC=cc and use gmake.
#-------------------------------------------------------------
# installing from a source code tar ball
#-------------------------------------------------------------
......@@ -65,11 +78,13 @@ Now continue with directions as if you unpacked a source code tarball.
# building autotools
#-------------------------------------------------------------
If you do not have at least autoconf 2.57 and automake 1.6, you will
If you do not have at least autoconf 2.59 and automake 1.9.1, you will
need to build autoconf, automake, and libtool. On some platforms,
you may also need to build m4 and texinfo.
Download the relevant tarballs from gnu.org.
Download the relevant tarballs from gnu.org
(http://www.gnu.org/software/autoconf/, http://www.gnu.org/software/automake/,
and http://www.gnu.org/software/libtool/)
Untar them in a common source code tree.
Decide whether you want to install them in /usr/local or your own
install directory. If you use your own install directory, use
......
## Process this file with automake to produce Makefile.in
if USE_GMAKE
MAKE = gmake
endif
includedir = $(prefix)/include/CLHEP
# put . first so that CLHEP directory is built before anything else
SUBDIRS = RandomObjects . src test
# list all subdirectories - for distribution and cleaning
DIST_SUBDIRS = RandomObjects . src test
bin_SCRIPTS = RandomObjects-config
all-local: $(top_builddir)/CLHEP
......
#! /bin/sh
# @configure_input@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
usage()
{
cat <<EOF
Usage: RandomObjects-config [OPTION]
Known values for OPTION are:
--prefix show installation prefix
--cxx print compilation command
--cppflags print pre-processor flags
--cxxflags print C++ compiler flags
--ldflags print linker flags
--libs print libraries to link against
--help display this help and exit
--version output version information
EOF
exit $1
}
if test $# -eq 0; then
usage 1
fi
while test $# -gt 0; do
case "$1" in
-*=*)
optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
;;
*)
optarg=
;;
esac
case "$1" in
--prefix=*)
prefix="$optarg"
;;
--prefix)
echo "$prefix"
;;
--version)
echo @PACKAGE@ @VERSION@
exit 0
;;
--help)
usage 0
;;
--cxx)
echo "CXX: " @CXX@
echo "CC: " @CC@
echo "CPP: " @CPP@
echo "CXXCPP: " @CXXCPP@
;;
--cppflags)
echo @CPPFLAGS@ @RandomObjects_CPPFLAGS@
;;
--cxxflags)
echo @AM_CXXFLAGS@ @CXXFLAGS@
;;
--ldflags)
echo @LDFLAGS@ @RandomObjects_LDFLAGS@
;;
--libs)
echo @LIBS@ @RandomObjects_LIBS@ -lm
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0
## Process this file with automake to produce Makefile.in
if USE_GMAKE
MAKE = gmake
endif
includedir = $(prefix)/include/CLHEP
tempincludedir = $(TEMPDIR)/CLHEP/@PACKAGE@
COPY_P = @COPY_P@
......
This diff is collapsed.
#! /bin/sh
# run autotool commands
set -x
# cleanup should not be necessary
# however, in some cases strange results are found if you do not start clean
rm -rf autom4te.cache
rm -f aclocal.m4
rm -f Makefile.in */Makefile.in */defs.h.in
rm -f autotools/config* autotools/depcomp autotools/install-sh autotools/m*
rm -f configure config.*
# run autotool commands
aclocal -I autotools
autoheader
automake --add-missing --copy
......
......@@ -8,16 +8,46 @@
# Identify the package and initialize the autotools:
# ----------------------------------------------------------------------
AC_PREREQ(2.57)
AC_INIT(CLHEP RandomObjects, 2.1.0.0, CLHEP@cern.ch, RandomObjects)
AC_PREREQ(2.59)
AC_INIT(CLHEP RandomObjects, 2.1.0.0, http://savannah.cern.ch/projects/clhep/, RandomObjects)
AC_CONFIG_AUX_DIR(autotools)
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR([src/RandMultiGauss.cc])
AM_INIT_AUTOMAKE(1.6 foreign)
AC_PROG_LIBTOOL
AC_PROG_LN_S
AM_INIT_AUTOMAKE(1.9 foreign)
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
# ----------------------------------------------------------------------
# --enable-shared and --enable-static
# both shared and static libraries are built by default
# ----------------------------------------------------------------------
AC_ARG_ENABLE(shared,
AC_HELP_STRING([--disable-shared],[do not build shared libraries]),
[case "${enableval}" in
yes) build_shared="yes";;
no) build_shared="no";;
*) build_shared="yes";;
esac],
[build_shared="yes"])
AC_ARG_ENABLE(static,
AC_HELP_STRING([--disable-static],[do not build static libraries]),
[case "${enableval}" in
yes) build_static="yes";;
no) build_static="no";;
*) build_static="yes";;
esac],
[build_static="yes"])
AC_ARG_ENABLE(gmake,
AC_HELP_STRING([--enable-gmake],[use gmake (default is make)]),
[case "${enableval}" in
yes) use_gmake="yes";;
no) use_gmake="no";;
*) use_gmake="no";;
esac],
[use_gmake="no"])