/[PAMELA software]/yoda/configure.in
ViewVC logotype

Annotation of /yoda/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.3 - (hide annotations) (download)
Mon May 16 15:29:28 2005 UTC (19 years, 6 months ago) by kusanagi
Branch: MAIN
CVS Tags: YODA4_3/02, YODA4_3/00, YODA4_3/01
Changes since 4.2: +17 -1 lines
Fixed some lacks on the definition of the log4cxx parameters
LOG4CXX_LIBRARY, LOG4CXX_LDFLAGS and LOG4CXX_INCLUDES

1 kusanagi 1.1 dnl Process this file with autoconf to produce a configure script.
2    
3     dnl Define the reference directory checking if the file exist there
4     dnl Any file argument can be passed to AC_INIT but, on the same time,
5     dnl changing all the relative path for all the files involved in the code!
6     dnl this will be called in the all the other MAKEFILEs as "@top_srcdir@"
7     AC_INIT(event/PamelaRun.h)
8    
9     dnl Adds several standard checks. It takes the program name and version number as arguments.
10 kusanagi 4.3 AM_INIT_AUTOMAKE([yoda],[4.2.4])
11 kusanagi 1.1
12     dnl Indicates that you will be using a config.h file
13     dnl config.h will be generated by AUTOCONF using a confing.h.in file
14     dnl config.h.in can be generated automatically using AUTOHEADER
15     dnl However, you need a stamp-h file in your project to ensure that
16     dnl AUTOMAKE regenerates config.h from config.h.in.
17     dnl Type 'touch stamp-h' to add this file to your project
18     AM_CONFIG_HEADER(config.h)
19    
20     AC_LIBTOOL_DLOPEN
21    
22     dnl The following macros make the system type available to configure scripts
23     AC_CANONICAL_HOST
24    
25     dnl Indicates that the source code may be in C
26     AC_PROG_CC
27    
28     dnl ------------------Fortran support----------------------------------
29     dnl Determine a Fortran 77 compiler to use. If F77 is not already set in the environment,
30     dnl then check for g77 and f77, and then some other names.
31     dnl Set the output variable F77 to the name of the compiler found
32     AC_PROG_F77(f77 fort77 g77)
33    
34     dnl Determine the linker flags (e.g., `-L' and `-l') for the Fortran 77
35     dnl intrinsic and run-time libraries that are required to successfully
36     dnl link a Fortran 77 program or shared library.
37     dnl The output variable FLIBS is set to these flags
38     AC_F77_LIBRARY_LDFLAGS
39     dnl ------------------Fortran support----------------------------------
40    
41    
42     dnl Indicates that the source code may be in C++
43     AC_PROG_CXX
44     AC_PROG_LIBTOOL
45    
46     dnl Will generate an install target so that users may just type 'make install' to install the software
47     dnl Set output variable INSTALL to the path of a BSD compatible install program,
48     dnl if one is found in the current PATH.
49     dnl Otherwise, set INSTALL to `dir/install-sh -c', checking the directories specified to
50     dnl AC_CONFIG_AUX_DIR (or its default directories) to determine dir
51     AC_PROG_INSTALL
52    
53     dnl This will allow you to build code in sub-directories into temporary libraries,
54     dnl which MAKE will then link in with the rest of the code
55 kusanagi 2.5 dnl AC_PROG_RANLIB
56 kusanagi 1.1
57    
58     AC_PROG_MAKE_SET
59     AC_CHECK_PROG(HAS_DOXYFILE, doxygen, yes)
60    
61     missing_dir=`cd $ac_aux_dir && pwd`
62     AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
63     AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
64     AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
65     AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
66     AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
67    
68 kusanagi 2.2
69 kusanagi 1.1 dnl Process the different options
70     AC_ARG_WITH(root,
71     [--with-root=path Use the specified ROOT directory],
72     ROOTSYS=$with_root,)
73    
74     ROOT_LIBRARY="${ROOTSYS}/lib"
75 kusanagi 2.2
76 kusanagi 2.4 ROOT_LDFLAGS=" \
77 kusanagi 2.2 ${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \
78     ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libHist.so \
79     ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libGraf.so \
80     ${ROOT_LIBRARY}/libGraf3d.so ${ROOT_LIBRARY}/libGpad.so \
81     ${ROOT_LIBRARY}/libGui.so ${ROOT_LIBRARY}/libMinuit.so \
82     ${ROOT_LIBRARY}/libHistPainter.so ${ROOT_LIBRARY}/libTreePlayer.so \
83     ${ROOT_LIBRARY}/libTreeViewer.so ${ROOT_LIBRARY}/libProof.so \
84     ${ROOT_LIBRARY}/libProofGui.so ${ROOT_LIBRARY}/libPhysics.so \
85     ${ROOT_LIBRARY}/libRint.so ${ROOT_LIBRARY}/libHtml.so \
86     ${ROOT_LIBRARY}/libEG.so ${ROOT_LIBRARY}/libGeom.so \
87     ${ROOT_LIBRARY}/libGeomPainter.so ${ROOT_LIBRARY}/libVMC.so \
88     ${ROOT_LIBRARY}/libFumili.so ${ROOT_LIBRARY}/libMLP.so \
89     ${ROOT_LIBRARY}/libGedOld.so ${ROOT_LIBRARY}/libGed.so \
90 kusanagi 2.3 ${ROOT_LIBRARY}/libQuadp.so \
91 kusanagi 2.2 ${ROOT_LIBRARY}/libGX11.so ${ROOT_LIBRARY}/libGX11TTF.so \
92 kusanagi 2.3 ${ROOT_LIBRARY}/libX3d.so \
93 kusanagi 2.6 ${ROOT_LIBRARY}/libASImage.so \
94 kusanagi 4.1 ${ROOT_LIBRARY}/libThread.so \
95 kusanagi 2.3 -ldl"
96 kusanagi 2.2
97 kusanagi 1.1
98     ROOT_INCLUDES="-I${ROOTSYS}/include"
99     AC_SUBST(ROOT_INCLUDES)
100     AC_SUBST(ROOT_LDFLAGS)
101     ROOTCINT=${ROOTSYS}/bin/rootcint
102     AC_SUBST(ROOTCINT)
103    
104 kusanagi 1.7 AC_MSG_CHECKING(for gprof)
105     AC_ARG_ENABLE(gprof,
106     [--enable-gprof enable memory profiling with gprof],
107     gprof=$enableval,gprof=no)
108     if test "$gprof" != no
109     then
110 kusanagi 2.1 CXXFLAGS="-pg $CXXFLAGS"
111 kusanagi 1.7 AC_MSG_RESULT(enabled)
112     else
113     AC_MSG_RESULT(no)
114     fi
115    
116     AC_ARG_WITH(log4cxx,
117     [--with-log4cxx=path Use the specified directroy for log4cxx],
118     LOG4CXX=$with_log4cxx,)
119     LOG4CXX_INCLUDES="-I${LOG4CXX}/include"
120 kusanagi 4.3 AC_SUBST(LOG4CXX_INCLUDES)
121     #------------------------------------------------------------
122     AC_ARG_WITH(log4cxx,
123     [--with-log4cxx=path Use the specified directroy for log4cxx],
124     LOG4CXX=$with_log4cxx,)
125    
126     LOG4CXX_LIBRARY="${LOG4CXX}/lib"
127     LOG4CXX_INCLUDES="-I${LOG4CXX}/include"
128     LOG4CXX_LDFLAGS=" ${LOG4CXX_LIBRARY}/liblog4cxx.so "
129    
130     AC_SUBST(LOG4CXX_INCLUDES)
131     AC_SUBST(LOG4CXX_LDFLAGS)
132     AC_SUBST(LOG4CXX_LIBRARY)
133     #------------------------------------------------------------
134    
135    
136 kusanagi 1.1
137     dnl Checks for header files.
138     AC_HEADER_STDC
139    
140    
141     dnl Indicates the name of the Makefile which will be generated
142     dnl and the various subDirs where it will be generated one
143     dnl Add your own Makefiles to create here.
144 kusanagi 2.4 AC_OUTPUT(Makefile Doxyfile \
145     event/Makefile \
146    
147 kusanagi 1.1 dnl ------------------makes for Packets and SubPackets----------------
148 kusanagi 2.4 event/mcmd/Makefile \
149     event/tmtc/Makefile \
150     event/log/Makefile \
151     event/arrDump/Makefile \
152     event/tabDump/Makefile \
153     event/varDump/Makefile \
154 kusanagi 2.8 event/tsbt/Makefile \
155     event/tsbb/Makefile \
156     event/endrun/Makefile \
157 kusanagi 2.4 event/physics/Makefile \
158     event/physics/tracker/Makefile \
159     event/physics/anticounter/Makefile \
160     event/physics/calorimeter/Makefile \
161 kusanagi 1.6 event/physics/neutronDetector/Makefile \
162 kusanagi 2.4 event/physics/trigger/Makefile \
163     event/physics/tof/Makefile \
164     event/physics/S4/Makefile \
165 kusanagi 1.1 dnl ------------------makes for Packets and SubPackets----------------
166    
167    
168     dnl ------------------makes for Techmodel Data----------------
169 kusanagi 2.4 techmodel/Makefile \
170     techmodel/forroutines/tracker/Makefile \
171 kusanagi 1.1 techmodel/forroutines/tracker/readraw/Makefile \
172 kusanagi 2.4 techmodel/forroutines/anticounter/Makefile \
173     techmodel/forroutines/calorimeter/Makefile \
174     techmodel/forroutines/tof/Makefile \
175     techmodel/forroutines/trigger/Makefile \
176     techmodel/forroutines/Makefile \
177     techmodel/physics/Makefile \
178 kusanagi 1.1 dnl ------------------makes for Techmodel Data----------------
179     )
180    
181    

  ViewVC Help
Powered by ViewVC 1.1.23