Changeset bdba3c
- Timestamp:
- May 30, 2008, 1:50:45 PM (17 years ago)
- Children:
- eefb8e
- Parents:
- ae0078
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/configure.ac
rae0078 rbdba3c 36 36 # Checks for library functions. 37 37 # check for GNU Scientific Library 38 AC_CHECK_LIB(m,main)39 38 AC_CHECK_LIB(blas,main) 40 39 AC_CHECK_LIB(gsl,main) … … 45 44 if ! test x"$enable_debug" = xno; then 46 45 if test x"${enable_debug}" = xyes; then 47 CFLAGS=" -g3"48 CXXFLAGS=" -g3"46 CFLAGS="$CFLAGS -g3" 47 CXXFLAGS="$CXXFLAGS -g3" 49 48 else 50 CFLAGS=" -g${enable_debug}"51 CXXFLAGS=" -g${enable_debug}"49 CFLAGS="$CFLAGS -g${enable_debug}" 50 CXXFLAGS="$CXXFLAGS -g${enable_debug}" 52 51 fi 52 dnl enable all warnings 53 CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 54 CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 53 55 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"]) 54 56 AC_SUBST(HAVE_DEBUG) 57 else 58 dnl even without debugging we want some minimal info of something's utterly wrong 59 CFLAGS="$CFLAGS -Wall" 60 CXXFLAGS="$CXXFLAGS -Wall" 55 61 fi 56 62 … … 61 67 if test x"$enable_debug" = xno; then 62 68 if test x"${enable_optimization}" = xyes; then 63 CFLAGS=" -O2"64 CXXFLAGS=" -O2"69 CFLAGS="$CFLAGS -O2" 70 CXXFLAGS="$CXXFLAGS -O2" 65 71 else 66 CFLAGS=" -O${enable_optimization}"67 CXXFLAGS=" -O${enable_optimization}"72 CFLAGS="$CFLAGS -O${enable_optimization}" 73 CXXFLAGS="$CXXFLAGS -O${enable_optimization}" 68 74 fi 69 75 # else -
molecuilder/src/Makefile.am
rae0078 rbdba3c 8 8 joiner_SOURCES = joiner.cpp parser.cpp helpers.cpp verbose.cpp helpers.hpp parser.hpp datacreator.cpp datacreator.hpp 9 9 analyzer_SOURCES = analyzer.cpp parser.cpp datacreator.cpp helpers.cpp verbose.cpp helpers.hpp parser.hpp datacreator.hpp 10 molecuilder_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=011 joiner_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=012 analyzer_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=013 10 14 AM_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self15 AM_CPPFLAGS = -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self16 11 17 12 #EXTRA_DIST = ${molecuilder_DATA} -
pcp/README
rae0078 rbdba3c 20 20 ================== 21 21 22 MPI 23 --- 24 25 In order to compile a parallel version an mpi package such as mpich is needed. If present there are two possibilities: 26 1. Configure finds 'mpicc' which is basically just a link to gcc with includes, library paths and needed libs. Everything easy and fine. 27 2. It does not, then you have to specify the paths by yourself by prepending the configure command as follows 28 MPICC="gcc -I/path/to/mpi/installation/include" MPILIBS="-L/path/to/mpi/installation/lib -Wl,-rpath=/path/to/mpi/installation/lib" ./configure andsoon 29 Note that MPILIBS will be suffixed to LDFLAGS and configure looks for an libmpich in the given dirs. 30 22 31 WINDOWS 23 32 ------- -
pcp/configure.ac
rae0078 rbdba3c 38 38 enable_mpi=no 39 39 fi]) 40 if test x"$enable_mpi" = xyes; then 41 AC_ARG_VAR([MPILIBS],[necessary libraries to link MPI C code]) 42 AC_ARG_VAR([MPICC],[necessary comnpiler for MPI C code]) 43 AC_ARG_VAR([MPICXX],[necessary comnpiler for MPI CPP code]) 44 #AM_CONDITIONAL([MPIVER], [test x"$enable_mpi" = xyes]) 45 AC_MSG_WARN(["MPICC: $MPICC, MPILIBS: $MPILIBS, MPIVER: $MPIVER, CC: $CC"]) 46 # if CC not set, set to MPICC 47 if ! test x"$MPICC" = x; then 48 CC="$MPICC" 49 fi 50 if ! test x"$MPICXX" = x; then 51 CXX="$MPICXX" 52 else 53 CXX="$MPICC" 54 fi 55 if ! test x"$MPILIBS" = x; then 56 LDFLAGS="$LDFLAGS $MPILIBS" 57 AC_CHECK_LIB(mpich, MPI_Allreduce, ,AC_MSG_ERROR([compatible mpich library not found])) 58 fi 59 fi 40 60 else 41 61 AC_MSG_NOTICE([$disabled_msg]) 42 62 fi 43 AC_ARG_VAR([MPILIBS],[necessary libraries to link MPI C code])44 AC_ARG_VAR([MPICC],[necessary comnpiler for MPI C code])45 AM_CONDITIONAL([MPIVER], [test x"$enable_mpi" = xyes])46 63 47 64 # Checks for typedefs, structures, and compiler characteristics. … … 81 98 if ! test x"$enable_debug" = xno; then 82 99 if test x"${enable_debug}" = xyes; then 83 CFLAGS=" -g3"84 CXXFLAGS=" -g3"100 CFLAGS="$CFLAGS -g3" 101 CXXFLAGS="$CXXFLAGS -g3" 85 102 else 86 CFLAGS=" -g${enable_debug}"87 CXXFLAGS=" -g${enable_debug}"103 CFLAGS="$CFLAGS -g${enable_debug}" 104 CXXFLAGS="$CXXFLAGS -g${enable_debug}" 88 105 fi 106 dnl enable all warnings 107 CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 108 CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 89 109 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"]) 90 110 AC_SUBST(HAVE_DEBUG) 111 else 112 dnl even without debugging we want some minimal info of something's utterly wrong 113 CFLAGS="$CFLAGS -Wall" 114 CXXFLAGS="$CXXFLAGS -Wall" 91 115 fi 92 116 … … 94 118 AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or debugging level. (default is 2)]), 95 119 [enable_optimization=$enableval], [enable_optimization=yes]) 96 if test !x"$enable_optimization" = xno; then120 if ! test x"$enable_optimization" = xno; then 97 121 if test x"$enable_debug" = xno; then 98 122 if test x"${enable_optimization}" = xyes; then 99 CFLAGS=" -O2"100 CXXFLAGS=" -O2"123 CFLAGS="$CFLAGS -O2" 124 CXXFLAGS="$CXXFLAGS -O2" 101 125 else 102 CFLAGS=" -O${enable_optimization}"103 CXXFLAGS=" -O${enable_optimization}"104 fi 105 #else106 #AC_MSG_WARN(["Already specified --enable-debug!"])126 CFLAGS="$CFLAGS -O${enable_optimization}" 127 CXXFLAGS="$CXXFLAGS -O${enable_optimization}" 128 fi 129 #else 130 #AC_MSG_WARN(["Already specified --enable-debug!"]) 107 131 fi 108 132 fi -
pcp/src/Makefile.am
rae0078 rbdba3c 5 5 pcp_SOURCES = ${SOURCE} ${HEADER} 6 6 7 AM_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self -
util/Makefile.am
rae0078 rbdba3c 37 37 bin_SCRIPTS = ${scripts} 38 38 39 AM_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self -
util/configure.ac
rae0078 rbdba3c 32 32 if ! test x"$enable_debug" = xno; then 33 33 if test x"${enable_debug}" = xyes; then 34 CFLAGS=" -g3"35 CXXFLAGS=" -g3"34 CFLAGS="$CFLAGS -g3" 35 CXXFLAGS="$CXXFLAGS -g3" 36 36 else 37 CFLAGS=" -g${enable_debug}"38 CXXFLAGS=" -g${enable_debug}"37 CFLAGS="$CFLAGS -g${enable_debug}" 38 CXXFLAGS="$CXXFLAGS -g${enable_debug}" 39 39 fi 40 dnl enable all warnings 41 CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 42 CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self" 40 43 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"]) 41 44 AC_SUBST(HAVE_DEBUG) 45 else 46 dnl even without debugging we want some minimal info of something's utterly wrong 47 CFLAGS="$CFLAGS -Wall" 48 CXXFLAGS="$CXXFLAGS -Wall" 42 49 fi 43 50
Note:
See TracChangeset
for help on using the changeset viewer.