138 |
|
dnl Checks for libraries. |
139 |
|
AC_CHECK_LIB(m, asin, , exit) |
140 |
|
ACX_CHECK_ZLIB |
141 |
+ |
AC_ARG_WITH(fftw, |
142 |
+ |
[ --without-fftw if you turn this off you cannot compute undulation spectra],, with_fftw=yes) |
143 |
+ |
if test "$with_fftw" = "no"; then |
144 |
+ |
AC_DEFINE(WITHOUT_FFTW,,[Disable all FFTW (and thus undulation spectrum) support]) |
145 |
+ |
fi |
146 |
+ |
if test "$with_fftw" = "yes"; then |
147 |
+ |
sizeof_real=8 |
148 |
|
|
149 |
+ |
ACX_CHECK_FFTW(fftw3,$sizeof_real) |
150 |
+ |
|
151 |
+ |
if test "$with_mpi" = "yes"; then |
152 |
+ |
ACX_CHECK_FFTW(fftw3_mpi,$sizeof_real) |
153 |
+ |
fi |
154 |
+ |
|
155 |
+ |
case ${ac_fftw_savedprefix} in |
156 |
+ |
d) AC_DEFINE(FFTW_NAME_DFFTW,,[Use the d prefix on fftw includes]) ;; |
157 |
+ |
*) AC_DEFINE(FFTW_NAME_FFTW,,[Dont use any prefix on fftw includes]) ;; |
158 |
+ |
esac |
159 |
+ |
else |
160 |
+ |
echo "*******************************************************************" |
161 |
+ |
echo "* FFTW libraries and include files are required for computing *" |
162 |
+ |
echo "* undulation spectra with the staticProps program. If you don't *" |
163 |
+ |
echo "* fftw turned on, OOPSE will still work, but you won't be able to *" |
164 |
+ |
echo "* analyze your trajectories for this property. *" |
165 |
+ |
echo "*******************************************************************" |
166 |
+ |
fi # end of fftw check |
167 |
+ |
|
168 |
|
# Checks for header files. |
169 |
|
AC_HEADER_STDC |
170 |
|
AC_CHECK_HEADERS([conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h]) |
271 |
|
fi |
272 |
|
AC_SUBST(USE_MPI) |
273 |
|
|
274 |
+ |
|
275 |
|
dnl ######################################## |
276 |
|
dnl # Check for CGAL headers and libraries # |
277 |
|
dnl ######################################## |