configure.ac 678 Bytes
Newer Older
1
2
dnl Process this file with autoconf to produce a configure script.

3
AC_INIT(pattern_sim, 0.1.0, thomas.white@desy.de)
4
5
6
VERSION=AC_PACKAGE_VERSION

AM_CONFIG_HEADER(config.h)
7
AM_INIT_AUTOMAKE(pattern_sim, "$VERSION")
8
9
10
11
12
13
14
15
16
17
18
19
20

AC_PROG_CC
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S

AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
AC_C_CONST
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([strdup])

Thomas White's avatar
Thomas White committed
21
22
23
24
25
26
27
28
AC_ARG_WITH(hdf5,
[AS_HELP_STRING([--with-hdf5], [specify location of HDF5 library])],
[HDF5_CFLAGS="-I$withval/include"
 HDF5_LIBS="-L$withval/lib -lhdf5"],
[])

CFLAGS="$CFLAGS $HDF5_CFLAGS"
LIBS="$LIBS $HDF5_LIBS -lm -lgsl -lgslcblas"
Thomas White's avatar
Thomas White committed
29

30
AC_OUTPUT(Makefile src/Makefile)