3 |
|
AC_INIT(src/oopse.cpp) |
4 |
|
AC_CONFIG_AUX_DIR(ac-tools) |
5 |
|
|
6 |
– |
AC_CONFIG_HEADER(config.h:ac-tools/config.h.in) |
7 |
– |
|
6 |
|
AC_PREFIX_DEFAULT("/usr/local") |
7 |
|
|
8 |
|
builtin(include, ac-tools/aclocal.m4) |
9 |
|
|
12 |
– |
dnl Checks for C compiler |
10 |
|
AC_PROG_RANLIB |
11 |
+ |
AC_PROG_LN_S |
12 |
|
AC_PROG_YACC |
13 |
|
AC_PROG_LEX |
14 |
|
|
170 |
|
AC_F77_LIBRARY_LDFLAGS |
171 |
|
|
172 |
|
case $F77 in |
173 |
< |
ifc) fortran_machine_defs='Linux_ifc_machdep.$(O)' flibs_extra='-lPEPCF90' ;; |
173 |
> |
ifc) fortran_machine_defs='Linux_ifc_machdep$(O)' flibs_extra='-lPEPCF90' ;; |
174 |
|
*) echo $F77; AC_MSG_ERROR([currently only ifc is supported as the fortran compiler. See README for details]) ;; |
175 |
|
esac |
176 |
|
AC_SUBST([fortran_machine_defs]) |
183 |
|
[mpi_f90_mods="${withval}"], |
184 |
|
[mpi_f90_mods="/usr/local/include/f90choice"] ) |
185 |
|
AC_SUBST(mpi_f90_mods) |
186 |
< |
if test -r $mpi_f90_mods/MPI.mod; then |
186 |
> |
if test -r $mpi_f90_mods/MPI.mod || test -r $mpi_f90_mods/mpi.mod; then |
187 |
|
AC_DEFINE(USE_MPI_F90_MODS, 1, [define whether we have the MPI f90 modules]) |
188 |
|
else |
189 |
|
AC_MSG_ERROR(--> Can't find MPI f90 modules!) |
242 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
243 |
|
|
244 |
|
dnl **** Final list of subdirs |
245 |
< |
SUBDIRS="libBASS libmdtools src forceFields" |
245 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils" |
246 |
|
|
247 |
|
dnl **** Create Make.conf |
248 |
|
AC_OUTPUT(Make.conf:ac-tools/Make.conf.in) |