ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/configure.ac
Revision: 275
Committed: Tue Feb 18 21:06:36 2003 UTC (21 years, 4 months ago) by mmeineke
File size: 2433 byte(s)
Log Message:
libmdCode builds.

File Contents

# User Rev Content
1 mmeineke 267 AC_INIT([OOPSE],0.5)
2     AC_CONFIG_SRCDIR(src/mySrc)
3     AM_CONFIG_HEADER(./config.h)
4     AM_INIT_AUTOMAKE
5     AC_PROG_CC
6     AC_PROG_CXX
7     AC_PROG_F77([ifc f90 g77])
8     AC_F77_LIBRARY_LDFLAGS
9     AM_PROG_LEX
10     AC_PROG_YACC
11     AC_PROG_RANLIB
12     AC_PROG_INSTALL
13 mmeineke 273
14 mmeineke 275 dnl *****************************************************
15     dnl set up compiler and machine dependent fortran files
16     dnl *****************************************************
17    
18     case $F77 in
19     ifc) fortran_machine_defs='Linux_ifc_machdep.$(OBJEXT)' ;;
20     *) AC_MSG_ERROR([currently only ifc is supported as the fortran compiler. See README for details]) ;;
21     esac
22     AC_SUBST([fortran_machine_defs])
23    
24     dnl *****************************************************
25 mmeineke 273 dnl check for libs and headers
26 mmeineke 275 dnl ******************************************************
27 mmeineke 273
28 mmeineke 275
29 mmeineke 273 AC_ARG_WITH(sprng_include,
30     AC_HELP_STRING([--with-sprng_include=<include dir>],
31     [specify the location of the sprng headers (default is /usr/local/include/sprng)]),
32     [sprng_include="$withval"], [sprng_include="/usr/local/include/sprng"] )
33     AC_SUBST(sprng_include)
34     AC_CHECK_HEADERS([$sprng_include/sprng.h],
35     AC_DEFINE(USE_SPRNG, 1, [define whether we have the sprng libraries]),
36     AC_MSG_ERROR(sprng header files not found.))
37    
38     AC_ARG_WITH(sprng_libdir,
39     AC_HELP_STRING([--with-sprng_libdir=<library dir>],
40     [specify the location of the sprng libraries (default is /usr/local/lib)]),
41     [sprng_libdir="$withval"], [sprng_libdir="/usr/local/lib"] )
42     AC_SUBST(sprng_libdir)
43     AC_CHECK_FILE([$sprng_libdir/libsprng.a],,
44     AC_MSG_ERROR(libsprng.a not found.))
45    
46     AC_ARG_WITH(mpich_include,
47     AC_HELP_STRING([--with-mpich_include=<include dir>],
48     [specify the location of the mpich headers (default is /usr/local/include)]),
49     [mpich_include="$withval"], [mpich_include="/usr/local/include"] )
50     AC_SUBST(mpich_include)
51     AC_CHECK_HEADERS([$mpich_include/mpi.h],
52     AC_DEFINE(HAVE_MPICH, 1, [define whether we have the mpich libraries]),
53     AC_MSG_ERROR(mpich header files not found.))
54    
55     AC_ARG_WITH(mpich_libdir,
56     AC_HELP_STRING([--with-mpich_libdir=<library dir>],
57     [specify the location of the mpuch libraries (default is /usr/local/lib)]),
58     [mpich_libdir="$withval"], [mpich_libdir="/usr/local/lib"] )
59     AC_SUBST(mpich_libdir)
60     AC_CHECK_FILE([$mpich_libdir/libmpich.a],,
61     AC_MSG_ERROR(libmpi.a not found.))
62    
63    
64 mmeineke 272 AC_OUTPUT([Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile])