forked from sphde/sphde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
73 lines (56 loc) · 1.55 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(libsphde, 0.0.1, munroesj@us.ibm.com)
AC_CONFIG_SRCDIR([src/sassim.cpp])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.10 no-define foreign])
# Debug option
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Enable debugging information])],
[],
[enable_debug=no])
DEBUG=0
AS_IF([test "x$enable_debug" != xno],
[AC_SUBST([DEBUG], [1])])
if test "x$enable_debug" = "xyes" ; then
CFLAGS="$CFLAGS -D__SOMDebugPrint__ -Dmylockdebug -DcoherenceCheck -D__SASDebugPrint__"
CXXFLAGS="$CXXFLAGS -D__SOMDebugPrint__ -Dmylockdebug -DcoherenceCheck -D__SASDebugPrint__"
fi
# This directive is to avoid buggy libtool that don't add the -Wl,--no-as-needed
# directive in the correct position of LDFLAGS
LDFLAGS="-Wl,--no-as-needed -lrt"
# Check for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_LN_S
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_LIBTOOL
# Tools flags
AC_SUBST([AM_LIBTOOLFLAGS], [--silent])
# Defines host_cpu, host_vendor, and host_os variables.
AC_CANONICAL_HOST
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_VOLATILE
# Checks for library functions.
AC_FUNC_MALLOC
# Pthread check (on m4/acx_pthread.m4)
ACX_PTHREAD
# Doxygen support
DX_HTML_FEATURE(ON)
DX_MAN_FEATURE(ON)
DX_PDF_FEATURE(OFF)
DX_INIT_DOXYGEN($PACKAGE_NAME, [ \
doc/libsphde-doxygen-sasutil.doxy \
doc/libsphde-doxygen-sph.doxy
])
AC_CONFIG_FILES([
Makefile
src/Makefile
examples/Makefile
])
AC_OUTPUT