1 |
< |
AC_INIT([OOPSE],0.5) |
1 |
> |
AC_INIT([oopse],0.5) |
2 |
|
AC_CONFIG_SRCDIR(src/mySrc) |
3 |
|
AM_CONFIG_HEADER(./config.h) |
4 |
|
AM_INIT_AUTOMAKE |
10 |
|
AC_PROG_YACC |
11 |
|
AC_PROG_RANLIB |
12 |
|
AC_PROG_INSTALL |
13 |
< |
AC_OUTPUT([Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile]) |
13 |
> |
|
14 |
> |
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)' flibs_extra='-lPEPCF90' ;; |
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 |
> |
AC_SUBST([flibs_extra]) |
24 |
> |
|
25 |
> |
dnl ***************************************************** |
26 |
> |
dnl check for libs and headers |
27 |
> |
dnl ****************************************************** |
28 |
> |
|
29 |
> |
|
30 |
> |
AC_ARG_WITH(sprng_include, |
31 |
> |
AC_HELP_STRING([--with-sprng_include=<include dir>], |
32 |
> |
[specify the location of the sprng headers (default is /usr/local/include/sprng)]), |
33 |
> |
[sprng_include="$withval"], [sprng_include="/usr/local/include/sprng"] ) |
34 |
> |
AC_SUBST(sprng_include) |
35 |
> |
AC_CHECK_HEADERS([$sprng_include/sprng.h], |
36 |
> |
AC_DEFINE(USE_SPRNG, 1, [define whether we have the sprng libraries]), |
37 |
> |
AC_MSG_ERROR(sprng header files not found.)) |
38 |
> |
|
39 |
> |
AC_ARG_WITH(sprng_libdir, |
40 |
> |
AC_HELP_STRING([--with-sprng_libdir=<library dir>], |
41 |
> |
[specify the location of the sprng libraries (default is /usr/local/lib)]), |
42 |
> |
[sprng_libdir="$withval"], [sprng_libdir="/usr/local/lib"] ) |
43 |
> |
AC_SUBST(sprng_libdir) |
44 |
> |
AC_CHECK_FILE([$sprng_libdir/libsprng.a],, |
45 |
> |
AC_MSG_ERROR(libsprng.a not found.)) |
46 |
> |
|
47 |
> |
AC_ARG_WITH(mpich_include, |
48 |
> |
AC_HELP_STRING([--with-mpich_include=<include dir>], |
49 |
> |
[specify the location of the mpich headers (default is /usr/local/include)]), |
50 |
> |
[mpich_include="$withval"], [mpich_include="/usr/local/include"] ) |
51 |
> |
AC_SUBST(mpich_include) |
52 |
> |
AC_CHECK_HEADERS([$mpich_include/mpi.h], |
53 |
> |
AC_DEFINE(HAVE_MPICH, 1, [define whether we have the mpich libraries]), |
54 |
> |
AC_MSG_ERROR(mpich header files not found.)) |
55 |
> |
|
56 |
> |
AC_ARG_WITH(mpich_libdir, |
57 |
> |
AC_HELP_STRING([--with-mpich_libdir=<library dir>], |
58 |
> |
[specify the location of the mpuch libraries (default is /usr/local/lib)]), |
59 |
> |
[mpich_libdir="$withval"], [mpich_libdir="/usr/local/lib"] ) |
60 |
> |
AC_SUBST(mpich_libdir) |
61 |
> |
AC_CHECK_FILE([$mpich_libdir/libmpich.a],, |
62 |
> |
AC_MSG_ERROR(libmpi.a not found.)) |
63 |
> |
|
64 |
> |
|
65 |
> |
AC_OUTPUT([Makefile forceFields/Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile\ |
66 |
> |
src/oose/Makefile src/oopse/Makefile]) |