forked from vinzenz/libpypa
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
39 lines (31 loc) · 947 Bytes
/
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
AC_INIT([A python 2 parser],
[0.1],
[pypa],
[http://github.com/vinzenz/pypa])
AC_PREREQ([2.59])
AC_CONFIG_MACRO_DIR([m4])
m4_pattern_allow([AM_PROG_AR])
AM_INIT_AUTOMAKE([1.10 -Wall no-define subdir-objects])
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11
AM_PROG_AR
AC_PROG_LIBTOOL
# check for extra compiler flags
AX_ADD_CXXFLAGS([-Werror]) # must be called first to trigger an error for the other unsupported options
AX_ADD_CXXFLAGS([-W])
AX_ADD_CXXFLAGS([-Wall])
AX_ADD_CXXFLAGS([-pedantic])
AX_ADD_CXXFLAGS([-Wno-unused-parameter])
AX_ADD_CXXFLAGS([-Wno-unused-local-typedefs])
# check for cpython sources
AC_ARG_WITH([cpython-src],
[AS_HELP_STRING([--with-cpython-src],
[path to cpython sources, to feed the test suite])])
AC_SUBST([CPYTHON_SRC], [$with_cpython_src])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT