hepmc - Blame information for rev 520
Subversion Repositories:
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 285 | garren | 1 | # ---------------------------------------------------------------------- |
| 2 | # This is the HepMC configuration input file | ||
| 3 | # Process this file with autoconf to produce a configure script. | ||
| 4 | # ---------------------------------------------------------------------- | ||
| 5 | |||
| 6 | AC_PREREQ(2.59) | ||
| 469 | garren | 7 | AC_INIT([HepMC],[2.07.00.a01],[https://savannah.cern.ch/projects/hepmc/],[HepMC]) |
| 285 | garren | 8 | AC_CANONICAL_TARGET |
| 9 | AM_INIT_AUTOMAKE(1.9 foreign) | ||
| 390 | garren | 10 | AC_CONFIG_SRCDIR([src/GenEvent.cc]) |
| 285 | garren | 11 | AC_CONFIG_HEADER([HepMC/defs.h]) |
| 12 | |||
| 13 | # ---------------------------------------------------------------------- | ||
| 350 | garren | 14 | # shared library versioning |
| 15 | # for various reasons, this cannot match the HepMC version | ||
| 16 | # ---------------------------------------------------------------------- | ||
| 17 | |||
| 434 | garren | 18 | LIBRARY_VERSION="-version-info 4:0:0" |
| 350 | garren | 19 | AC_SUBST(LIBRARY_VERSION) |
| 20 | |||
| 21 | # ---------------------------------------------------------------------- | ||
| 285 | garren | 22 | # define --enable-visual |
| 23 | # ---------------------------------------------------------------------- | ||
| 24 | AC_ARG_ENABLE(visual, | ||
| 25 | AC_HELP_STRING([--enable-visual],[on by default when using Visual C++]), | ||
| 26 | [case "${enableval}" in | ||
| 27 | yes) build_visual="yes";; | ||
| 28 | no) build_visual="no";; | ||
| 29 | *) build_visual="no";; | ||
| 30 | esac], | ||
| 31 | [build_visual="no"]) | ||
| 32 | |||
| 33 | # ---------------------------------------------------------------------- | ||
| 335 | garren | 34 | # define the default momentum and length (position) units |
| 35 | # these MUST be declared | ||
| 36 | # ---------------------------------------------------------------------- | ||
| 37 | |||
| 337 | garren | 38 | AC_ARG_WITH(momentum, |
| 39 | AC_HELP_STRING([--with-momentum], | ||
| 40 | [--with-momentum=MEV or GEV, no other values allowed]), | ||
| 335 | garren | 41 | [HEPMC_DEFAULT_MOM_UNIT=${withval}], |
| 346 | garren | 42 | [AC_MSG_ERROR([You MUST configure --with-momentum=XX, where XX is MEV or GEV])]) |
| 335 | garren | 43 | AC_SUBST(HEPMC_DEFAULT_MOM_UNIT) |
| 44 | |||
| 337 | garren | 45 | AC_ARG_WITH(length, |
| 46 | AC_HELP_STRING([--with-length], | ||
| 47 | [--with-length=MM or CM, no other values allowed]), | ||
| 335 | garren | 48 | [HEPMC_DEFAULT_LEN_UNIT=${withval}], |
| 346 | garren | 49 | [AC_MSG_ERROR([You MUST configure --with-length=YY, where YY is MM or CM])]) |
| 335 | garren | 50 | AC_SUBST(HEPMC_DEFAULT_LEN_UNIT) |
| 51 | |||
| 52 | # ---------------------------------------------------------------------- | ||
| 285 | garren | 53 | # find CLHEP and/or GENSER: |
| 54 | # these are used ONLY in the examples | ||
| 55 | # ---------------------------------------------------------------------- | ||
| 56 | |||
| 57 | AC_ARG_WITH(CLHEP, | ||
| 58 | AC_HELP_STRING([--with-CLHEP],[--with-CLHEP=$CLHEP_DIR: CLHEP is used in the examples]), | ||
| 59 | [CLHEPdir=${withval}],[CLHEPdir=" "]) | ||
| 60 | AC_SUBST(CLHEPdir) | ||
| 61 | |||
| 62 | AC_ARG_WITH(GENSER, | ||
| 63 | AC_HELP_STRING([--with-GENSER],[--with-GENSER=$GENSER_DIR: GENSER is used in the examples]), | ||
| 64 | [GENSERdir=${withval}],[GENSERdir=" "]) | ||
| 65 | AC_SUBST(GENSERdir) | ||
| 66 | |||
| 67 | # ---------------------------------------------------------------------- | ||
| 68 | # Checks for programs. | ||
| 69 | # ---------------------------------------------------------------------- | ||
| 70 | AC_PROG_CXX | ||
| 71 | AC_PROG_CC | ||
| 72 | AC_PROG_MAKE_SET | ||
| 73 | |||
| 318 | garren | 74 | # special libtool rules for Windows - work with gcc and cygwin |
| 75 | AC_LIBTOOL_WIN32_DLL | ||
| 285 | garren | 76 | AC_PROG_LIBTOOL |
| 77 | |||
| 78 | # ---------------------------------------------------------------------- | ||
| 79 | # Checks for libraries. | ||
| 80 | # ---------------------------------------------------------------------- | ||
| 81 | |||
| 82 | # ---------------------------------------------------------------------- | ||
| 83 | # Checks for header files. | ||
| 84 | # ---------------------------------------------------------------------- | ||
| 85 | AC_CHECK_HEADERS([stdint.h]) | ||
| 86 | |||
| 87 | # ---------------------------------------------------------------------- | ||
| 88 | # Checks for typedefs, structures, and compiler characteristics. | ||
| 89 | # ---------------------------------------------------------------------- | ||
| 90 | AC_HEADER_STDBOOL | ||
| 91 | AC_C_CONST | ||
| 92 | AC_C_INLINE | ||
| 93 | AC_CHECK_TYPES([ptrdiff_t]) | ||
| 94 | |||
| 95 | # ---------------------------------------------------------------------- | ||
| 96 | # Checks for library functions. | ||
| 97 | # ---------------------------------------------------------------------- | ||
| 98 | AC_HEADER_STDC | ||
| 99 | |||
| 100 | # ---------------------------------------------------------------------- | ||
| 101 | # OS dependent differences: | ||
| 102 | # ---------------------------------------------------------------------- | ||
| 103 | |||
| 104 | # copy | ||
| 105 | case "$target" in | ||
| 106 | *-*-win32*) | ||
| 107 | COPY_P="copy -p" | ||
| 108 | ;; | ||
| 109 | *) | ||
| 110 | COPY_P="cp -p" | ||
| 111 | esac | ||
| 112 | |||
| 113 | # diff | ||
| 114 | DIFF_Q="diff -q -b" | ||
| 115 | |||
| 116 | AC_SUBST(COPY_P) | ||
| 117 | AC_SUBST(DIFF_Q) | ||
| 118 | |||
| 119 | # ---------------------------------------------------------------------- | ||
| 120 | # compiler dependent differences | ||
| 502 | garren | 121 | # support for cl (Visual C++) has been dropped |
| 285 | garren | 122 | # notice that the default is presumed to be some flavor of g++ |
| 123 | # ---------------------------------------------------------------------- | ||
| 124 | case "$CXX" in | ||
| 125 | cl) | ||
| 126 | AM_CXXFLAGS="-EHsc -nologo -GR -MD" | ||
| 320 | garren | 127 | CXXFLAGS=" " |
| 128 | AC_SUBST(CXXFLAGS) | ||
| 285 | garren | 129 | build_visual="yes" |
| 130 | ;; | ||
| 131 | *) | ||
| 132 | AM_CXXFLAGS="-ansi -pedantic -Wall" | ||
| 133 | esac | ||
| 134 | |||
| 135 | AC_SUBST(AM_CXXFLAGS) | ||
| 136 | |||
| 137 | AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes) | ||
| 138 | |||
| 139 | # ---------------------------------------------------------------------- | ||
| 140 | # process Makefile.in and other *.in files | ||
| 141 | # ---------------------------------------------------------------------- | ||
| 142 | AC_CONFIG_FILES([Makefile | ||
| 143 | HepMC/Makefile | ||
| 144 | doc/Makefile | ||
| 145 | examples/Makefile | ||
| 500 | garren | 146 | examples/fio/Makefile |
| 520 | garren | 147 | examples/pythia8/Makefile |
| 285 | garren | 148 | fio/Makefile |
| 149 | src/Makefile | ||
| 335 | garren | 150 | src/Units.cc |
| 285 | garren | 151 | test/Makefile |
| 152 | test/testHepMC.cc | ||
| 153 | test/testMass.cc | ||
| 154 | test/testHepMCIteration.cc | ||
| 155 | test/testMultipleCopies.cc | ||
| 500 | garren | 156 | test/testStreamIO.cc |
| 503 | garren | 157 | examples/root/testMockRoot.cc |
| 500 | garren | 158 | examples/GNUmakefile.example |
| 520 | garren | 159 | examples/fio/GNUmakefile.example |
| 160 | examples/pythia8/config.csh | ||
| 161 | examples/pythia8/config.sh | ||
| 162 | examples/pythia8/GNUmakefile.example]) | ||
| 163 | examples/root/testMockRoot.cc | ||
| 164 | examples/root/GNUmakefile.example]) | ||
| 285 | garren | 165 | |
| 166 | AC_CONFIG_FILES([test/testHepMC.sh], [chmod +x test/testHepMC.sh]) | ||
| 418 | garren | 167 | AC_CONFIG_FILES([test/testFlow.sh], [chmod +x test/testFlow.sh]) |
| 285 | garren | 168 | AC_CONFIG_FILES([test/testMass.sh], [chmod +x test/testMass.sh]) |
| 169 | AC_CONFIG_FILES([test/testHepMCIteration.sh], [chmod +x test/testHepMCIteration.sh]) | ||
| 450 | garren | 170 | AC_CONFIG_FILES([test/testPolarization.sh], [chmod +x test/testPolarization.sh]) |
| 285 | garren | 171 | AC_CONFIG_FILES([test/testPrintBug.sh], [chmod +x test/testPrintBug.sh]) |
| 390 | garren | 172 | AC_CONFIG_FILES([test/testStreamIO.sh], [chmod +x test/testStreamIO.sh]) |
| 285 | garren | 173 | |
| 174 | # ---------------------------------------------------------------------- | ||
| 175 | # Finish up: | ||
| 176 | # ---------------------------------------------------------------------- | ||
| 177 | AC_OUTPUT |
