-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.ac
More file actions
58 lines (37 loc) · 1.3 KB
/
configure.ac
File metadata and controls
58 lines (37 loc) · 1.3 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
dnl Process this file with autoconf to produce a configure script.
AC_INIT([binary], [1.0.5])
AC_CONFIG_SRCDIR([src/gyrate.cc])
AM_INIT_AUTOMAKE
dnl Get rid of all the -D stuff
AM_CONFIG_HEADER(config.h)
AC_PROG_MAKE_SET
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
dnl Make C++ the default
AC_LANG_CPLUSPLUS
AC_REQUIRE_CPP
dnl Initialise libtool
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_LIBTOOL
dnl headers
AC_CHECK_HEADERS([trm/subs.h trm/position.h trm/constants.h trm/array1d.h],[],
[AC_MSG_ERROR(cannot find 'subs' headers)])
AC_CHECK_HEADERS([stdlib.h float.h math.h sstream string fstream iostream], [],
[AC_MSG_ERROR(missing header; please fix)])
AC_CHECK_HEADERS([pcrecpp.h slalib.h], [],
[AC_MSG_ERROR(missing header; please fix)])
dnl libraries
AC_CHECK_LIB([subs], [main], [],
[AC_MSG_ERROR(cannot link to the subs library)])
AC_CHECK_LIB([pcrecpp], [main], [],
[AC_MSG_ERROR(cannot link to the pcrecpp library)])
AC_CHECK_LIB([csla], [main], [],
[AC_MSG_ERROR(cannot link to the sla C library)])
dnl PGPLOT has its own macro 'cos its a pain
TRM_LIB_PGPLOT
dnl Installation program
AC_PROG_INSTALL
dnl The Makefiles to create
AC_CONFIG_FILES([Makefile include/Makefile src/Makefile doc/Makefile])
AC_OUTPUT