-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.ac
More file actions
52 lines (33 loc) · 1.19 KB
/
configure.ac
File metadata and controls
52 lines (33 loc) · 1.19 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
dnl Process this file with autoconf to produce a configure script.
dnl Initialise
AC_INIT([subs], [2.1])
AC_CONFIG_SRCDIR([src/gauss.cc])
AM_INIT_AUTOMAKE
dnl Avoid all the -D stuff
AC_CONFIG_HEADERS([config.h])
AC_PROG_MAKE_SET
dnl Compiler checks
AC_PROG_CXX
AC_PROG_CC
dnl keep correct libtool macros in tree
AC_CONFIG_MACRO_DIR([m4])
dnl Initialise libtool
AC_PROG_LIBTOOL
dnl Make C++ the default
AC_LANG_CPLUSPLUS
AC_REQUIRE_CPP
dnl headers
AC_CHECK_HEADERS([pcrecpp.h slalib.h], [], [AC_MSG_ERROR(missing header; please fix)])
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([csla], [main], [], [AC_MSG_ERROR(cannot link to the sla C library)])
AC_CHECK_LIB([pcrecpp], [main], [], [AC_MSG_ERROR(cannot link to the pcrecpp 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
dnl AC_CONFIG_FILES([Makefile src/Makefile include/Makefile doc/Makefile])
AC_CONFIG_FILES([Makefile src/Makefile include/Makefile])
AC_OUTPUT