-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
44 lines (36 loc) · 1.24 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
# [Required] Program name + version.
AC_INIT(zed, 1.00)
AC_PREREQ([2.62])
AC_CONFIG_MACRO_DIRS([m4])
# Don't trigger errors/warning because of the 'AUTHORS,...etc' package files.
AM_INIT_AUTOMAKE([foreign tar-ustar])
# [ Required ] C++/C compilers will be used.
AC_PROG_CXX
AC_PROG_CC
AC_C_INLINE # compilers will understand the "inline" keyword in C/C++ Code.
# Warning "Flags" for the Compilers.
WFLAGS= -Wall -Wextra \
-Wno-missing-field-initializers \
-Wno-sign-compare \
-Wno-unused-parameter \
-Werror=pointer-to-int-cast \
-Wdeclaration-after-statement \
-Werror-implicit-function-declaration \
-Wformat-nonliteral \
-Wformat-security \
-Winit-self \
-Wmissing-declarations \
-Wmissing-include-dirs \
-Wnested-externs \
-Wpointer-arith \
-Wwrite-strings
# Broadcast the variable "WFLAGS" to all Makefile listedd in "AC_CONFIG_FILES".
AC_SUBST(WFLAGS, [$WFLAGS])
# Use the "libtoolize" command.
LT_INIT
# Needed to build a "Shared/Dynamic" libraries.
AC_ENABLE_SHARED
AC_DISABLE_STATIC
# [ Required ] Creating Output files (list all "Makefile" locations)
AC_CONFIG_FILES(Makefile iMath/Makefile src/Makefile)
AC_OUTPUT