-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
57 lines (43 loc) · 1.46 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
AC_PREREQ(2.61)
AC_INIT([fstorage],[0.5.1],[[email protected]])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_CONFIG_HEADER([config.h])
AC_PREFIX_DEFAULT("/usr")
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checking header files
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_INT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memset pow strdup strerror strtol strchr])
COMMONFLAGS="-Wall -static-libgcc -Wno-format-y2k -W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wuninitialized -O2 -Wredundant-decls -Wcomment -Wformat -Wimplicit -Wlong-long -Wno-import -Wparentheses -Wpointer-arith -Wreturn-type -Wshadow -Wswitch -Wtrigraphs -Wwrite-strings -ggdb -Wunused"
CXXFLAGS="$COMMONFLAGS -Wno-variadic-macros -Wno-format -std=gnu++98"
AC_SUBST(CXXFLAGS)
CFLAGS="$COMMONFLAGS -pedantic -Waggregate-return -Wmissing-prototypes -Wbad-function-cast -Wnested-externs -Wimplicit-int -Wimplicit-function-declaration -Wmain -Wmissing-declarations -std=c99"
AC_SUBST(CFLAGS)
LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
AC_CONFIG_FILES([
Makefile
src/Makefile
src/libfstorage/Makefile
src/libfstorage++/Makefile
src/fstoraged/Makefile
src/btp/Makefile
src/common/Makefile
src/tests/Makefile
])
AC_OUTPUT