aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
blob: 43849f05e83fa3198fd500b4563bb8ebb3f3602d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
dnl Process this file with autoconf to produce a configure script.

AC_INIT(dtr, 1.0.6, taw27@cam.ac.uk)
VERSION=AC_PACKAGE_VERSION

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(dtr, "$VERSION")

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_FUNC_FORK
AC_HEADER_SYS_WAIT
AC_TYPE_SIGNAL
AC_TYPE_PID_T
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([floor])
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([rint])
AC_CHECK_FUNCS([sqrt])

AM_PATH_GTK_2_0(2.6.0,,AC_MSG_ERROR([
*** GTK+ 2.6.0 or above is required by dtr.  Please make sure you have the GTK+
*** development files installed. The latest version of GTK+ is
*** always available at http://www.gtk.org/.]))

dnl AC_CHECK_LIB([fftw3], [fftw_execute])
AC_CHECK_LIB(m,main)
AC_CHECK_LIB(gsl,main)
AC_CHECK_LIB(gslcblas,main)

AM_PATH_GTKGLEXT_1_0(1.0.0,[echo "$GTKGLEXT_LIBS"],AC_MSG_ERROR([
 	*** gtkglext is required to build dtr; please make sure you have the
 	*** gtkglext development headers installed.]))

AC_OUTPUT(Makefile src/Makefile data/Makefile)