ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/configure.ac
(Generate patch)

Comparing trunk/OOPSE_old/configure.ac (file contents):
Revision 272 by mmeineke, Fri Feb 14 21:54:05 2003 UTC vs.
Revision 275 by mmeineke, Tue Feb 18 21:06:36 2003 UTC

# Line 10 | Line 10 | AC_PROG_INSTALL
10   AC_PROG_YACC
11   AC_PROG_RANLIB
12   AC_PROG_INSTALL
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)' ;;
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 + dnl check for libs and headers
26 + dnl ******************************************************
27 +
28 +
29 + 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   AC_OUTPUT([Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines