-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
47 lines (39 loc) · 1.06 KB
/
configure.ac
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
dnl Process this file with Autoconf to produce a configure script.
AC_PREREQ[2.68])
AC_INIT([JAGS-GOMP],[1.1],[[email protected]],[JAGS-GOMP-MODULE] )
JAGS_MAJOR=4
JAGS_MINOR=3
AC_SUBST(JAGS_MAJOR)
AC_SUBST(JAGS_MINOR)
AC_CANONICAL_HOST
dnl The following lines check if the required files exist
AC_CONFIG_SRCDIR([src/distributions/DGomp.cc])
AC_CONFIG_MACRO_DIR([m4])
dnl The configure process creates a header file called config.h
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([subdir-objects])
dnl libtool and ltdl configuration
LT_PREREQ(2.2.6)
LT_CONFIG_LTDL_DIR([libltdl])
LT_INIT([dlopen disable-static win32-dll])
LTDL_INIT([recursive])
dnl Indicate C++
AC_PROG_CXX
dnl Optionally, reference the Rmath library
AC_DEFINE(MATHLIB_STANDALONE, 1, [Define if you have standalone R math library])
case "${host_os}" in
mingw*)
win=true ;;
*)
win=false ;;
esac
AM_CONDITIONAL(WINDOWS, test x$win = xtrue)
jagsmoddir=${libdir}/JAGS/modules-${JAGS_MAJOR}
AC_SUBST(jagsmoddir)
AC_CONFIG_FILES([
Makefile
libltdl/Makefile
src/Makefile
src/distributions/Makefile
])
AC_OUTPUT