hepmc - Blame information for rev 361
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) | ||
| 355 | garren | 7 | AC_INIT([HepMC],[2.04.00],[https://savannah.cern.ch/projects/hepmc/],[HepMC]) |
| 285 | garren | 8 | AC_CANONICAL_TARGET |
| 9 | AM_INIT_AUTOMAKE(1.9 foreign) | ||
| 10 | AC_CONFIG_SRCDIR([src/CommonIO.cc]) | ||
| 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 | |||
| 18 | LIBRARY_VERSION="-version-info 2:0:0" | ||
| 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 | ||
| 121 | # notice that the default is presumed to be some flavor of g++ | ||
| 122 | # ---------------------------------------------------------------------- | ||
| 123 | case "$CXX" in | ||
| 124 | cl) | ||
| 125 | AM_CXXFLAGS="-EHsc -nologo -GR -MD" | ||
| 320 | garren | 126 | AM_MAKEFLAGS="-f VCMakefile" |
| 127 | AC_SUBST(AM_MAKEFLAGS) | ||
| 128 | CXXFLAGS=" " | ||
| 129 | AC_SUBST(CXXFLAGS) | ||
| 285 | garren | 130 | build_visual="yes" |
| 131 | ;; | ||
| 132 | *) | ||
| 133 | AM_CXXFLAGS="-ansi -pedantic -Wall" | ||
| 134 | esac | ||
| 135 | |||
| 136 | AC_SUBST(AM_CXXFLAGS) | ||
| 137 | |||
| 138 | AM_CONDITIONAL(BUILD_VISUAL, test x$build_visual = xyes) | ||
| 139 | |||
| 140 | # ---------------------------------------------------------------------- | ||
| 141 | # process Makefile.in and other *.in files | ||
| 142 | # ---------------------------------------------------------------------- | ||
| 143 | AC_CONFIG_FILES([Makefile | ||
| 320 | garren | 144 | VCMakefile |
| 285 | garren | 145 | HepMC/Makefile |
| 320 | garren | 146 | HepMC/VCMakefile |
| 285 | garren | 147 | doc/Makefile |
| 320 | garren | 148 | doc/VCMakefile |
| 285 | garren | 149 | examples/Makefile |
| 320 | garren | 150 | examples/VCMakefile |
| 285 | garren | 151 | fio/Makefile |
| 320 | garren | 152 | fio/VCMakefile |
| 285 | garren | 153 | src/Makefile |
| 320 | garren | 154 | src/VCMakefile |
| 335 | garren | 155 | src/Units.cc |
| 285 | garren | 156 | test/Makefile |
| 320 | garren | 157 | test/VCMakefile |
| 285 | garren | 158 | test/testHepMC.cc |
| 159 | test/testMass.cc | ||
| 160 | test/testHepMCIteration.cc | ||
| 161 | test/testMultipleCopies.cc | ||
| 162 | test/testDeprecated.cc | ||
| 163 | examples/GNUmakefile.example]) | ||
| 164 | |||
| 165 | AC_CONFIG_FILES([test/testHepMC.sh], [chmod +x test/testHepMC.sh]) | ||
| 166 | AC_CONFIG_FILES([test/testMass.sh], [chmod +x test/testMass.sh]) | ||
| 167 | AC_CONFIG_FILES([test/testHepMCIteration.sh], [chmod +x test/testHepMCIteration.sh]) | ||
| 168 | AC_CONFIG_FILES([test/testPrintBug.sh], [chmod +x test/testPrintBug.sh]) | ||
| 169 | AC_CONFIG_FILES([test/testDeprecated.sh], [chmod +x test/testDeprecated.sh]) | ||
| 170 | |||
| 171 | # ---------------------------------------------------------------------- | ||
| 172 | # Finish up: | ||
| 173 | # ---------------------------------------------------------------------- | ||
| 174 | AC_OUTPUT |
