ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/ac-tools/configure.in
(Generate patch)

Comparing trunk/ac-tools/configure.in (file contents):
Revision 1379 by gezelter, Thu Oct 22 14:09:13 2009 UTC vs.
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC

# Line 1 | Line 1 | AC_PREREQ(2.59)
1   dnl **** Process this file with autoconf to produce a configure script.
2   AC_PREREQ(2.59)
3 < AC_INIT(OOPSE, 4.0, gezelter@nd.edu, oopse)
3 > AC_INIT(OpenMD, 1.0, gezelter@nd.edu, openmd)
4   AC_CONFIG_AUX_DIR(ac-tools)
5 < AC_CONFIG_SRCDIR([src/applications/oopse/oopse.cpp])
5 > AC_CONFIG_SRCDIR([src/applications/openmd/openmd.cpp])
6   AC_CONFIG_HEADER([src/config.h])
7  
8 < builtin(include, ac-tools/OOPSE.m4)
8 > builtin(include, ac-tools/OpenMD.m4)
9   builtin(include, ac-tools/AC_CXX_HAVE_STL.m4)
10   builtin(include, ac-tools/AC_CXX_NAMESPACES.m4)
11   builtin(include, ac-tools/AC_CXX_STD.m4)
# Line 17 | Line 17 | AC_PREFIX_DEFAULT("/usr/local")
17   AC_PREFIX_DEFAULT("/usr/local")
18  
19   # set program name
20 < PROGNAME="oopse"
20 > PROGNAME="openmd"
21   AC_SUBST(PROGNAME)
22  
23   AC_EXEEXT
24   AC_OBJEXT
25   OBJEXT=".$OBJEXT"
26  
27 < OOPSE=oopse
27 > OPENMD=openmd
28  
29 < dnl **** define home dir of oopse
29 > dnl **** define home dir of OpenMD
30   if test "x${prefix}" = "xNONE"
31   then
32 <  OOPSE_HOME=${ac_default_prefix}/oopse
32 >  OPENMD_HOME=${ac_default_prefix}/openmd
33   else
34 <  OOPSE_HOME=${prefix}/oopse
34 >  OPENMD_HOME=${prefix}/openmd
35   fi
36 < AC_ARG_ENABLE(oopse-home,
37 < [  --enable-oopse-home=DIR      define oopse home dir [PREFIX/oopse]],
38 < [OOPSE_HOME="${enableval}"])
36 > AC_ARG_ENABLE(openmd-home,
37 > [  --enable-openmd-home=DIR      define OpenMD home dir [PREFIX/openmd]],
38 > [OPENMD_HOME="${enableval}"])
39  
40   # there are two ways to do debugging.  One with the --enable-debug flag
41   # and one using the DEBUG environment variable
42  
43   debug=0
44 < AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Compile OOPSE in debug mode]), [debug=1])
44 > AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Compile OpenMD in debug mode]), [debug=1])
45   if test "${DEBUG}"; then
46          AC_DEFINE(debug, 1, [Code compiled in debug mode])
47    msg="$msg, debug mode"
48   fi
49   AC_SUBST(debug)
50  
51 < AC_ARG_ENABLE(single, [AC_HELP_STRING([--enable-single],[compile OOPSE in single precision])], ok=$enableval, ok=no)
51 > AC_ARG_ENABLE(single, [AC_HELP_STRING([--enable-single],[compile OpenMD in single precision])], ok=$enableval, ok=no)
52   AC_ARG_ENABLE(float, [AC_HELP_STRING([--enable-float],[synonym for --enable-single])], ok=$enableval)
53   if test "$ok" = "yes"; then
54          AC_DEFINE(SINGLE_PRECISION,1,[Define to compile in single precision.])
# Line 100 | Line 100 | AX_MPI([USE_MPI="yes"],
100   AC_LANG([C++])
101   AX_MPI([USE_MPI="yes"],
102         [USE_MPI="no"
103 <       AC_MSG_WARN([No suitable C++ MPI implementation found. oopse_MPI will not be built.])])
103 >       AC_MSG_WARN([No suitable C++ MPI implementation found. openmd_MPI will not be built.])])
104   AS_IF([test AS_VAR_GET([USE_MPI]) != no],[
105   AC_LANG([C])
106   AX_MPI([USE_MPI="yes"],
107         [USE_MPI="no"
108 <       AC_MSG_WARN([No suitable C MPI implementation found. oopse_MPI will not be built.])])
108 >       AC_MSG_WARN([No suitable C MPI implementation found. openmd_MPI will not be built.])])
109   ])
110   AS_IF([test AS_VAR_GET([USE_MPI]) != no],[
111   AC_LANG([Fortran])
112   AX_MPI([USE_MPI="yes"],
113         [USE_MPI="no"
114 <       AC_MSG_WARN([No suitable Fortran MPI implementation found. oopse_MPI will not be built.])])
114 >       AC_MSG_WARN([No suitable Fortran MPI implementation found. openmd_MPI will not be built.])])
115   ])
116   AS_IF([test AS_VAR_GET([USE_MPI]) != no],[
117          CXX=$MPICXX
# Line 259 | Line 259 | AC_SUBST(MKINSTALLDIRS)
259   AC_SUBST(OBJEXT)
260   AC_SUBST(BATEXT)
261   AC_SUBST(MKINSTALLDIRS)
262 < AC_SUBST(OOPSE)
263 < AC_SUBST(OOPSE_HOME)
262 > AC_SUBST(OPENMD)
263 > AC_SUBST(OPENMD_HOME)
264   AC_SUBST(SUBDIRS)
265   AC_SUBST(CFLAGS)
266   AC_SUBST(CXXFLAGS)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines