diff options
| -rw-r--r-- | Makefile.am | 5 | ||||
| -rw-r--r-- | configure.ac | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 8ac4acf..670e7a5 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | AUTOMAKE_OPTIONS = foreign | 1 | AUTOMAKE_OPTIONS = foreign |
| 2 | ACLOCAL_AMFLAGS = -I m4 | 2 | ACLOCAL_AMFLAGS = -I m4 |
| 3 | SUBDIRS = libcnary src include tools $(CYTHON_SUB) test | 3 | SUBDIRS = libcnary src include tools test |
| 4 | if HAVE_CYTHON | ||
| 5 | SUBDIRS += cython | ||
| 6 | endif | ||
| 4 | 7 | ||
| 5 | docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/include/plist/*.h | 8 | docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/include/plist/*.h |
| 6 | rm -rf docs | 9 | rm -rf docs |
diff --git a/configure.ac b/configure.ac index ddd5b81..61eb8ef 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -117,21 +117,17 @@ if [test "x$CYTHON" != "xfalse"]; then | |||
| 117 | CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython | 117 | CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython |
| 118 | if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then | 118 | if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then |
| 119 | CYTHON_PLIST_INCLUDE_DIR=. | 119 | CYTHON_PLIST_INCLUDE_DIR=. |
| 120 | CYTHON_SUB=cython | ||
| 121 | cython_python_bindings=yes | 120 | cython_python_bindings=yes |
| 122 | AC_MSG_RESULT([Using built-in libplist Cython bindings (assuming this is a first build)]) | 121 | AC_MSG_RESULT([Using built-in libplist Cython bindings (assuming this is a first build)]) |
| 123 | else | 122 | else |
| 124 | AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) | 123 | AC_SUBST([CYTHON_PLIST_INCLUDE_DIR]) |
| 125 | AC_MSG_RESULT([$CYTHON_PLIST_INCLUDE_DIR]) | 124 | AC_MSG_RESULT([$CYTHON_PLIST_INCLUDE_DIR]) |
| 126 | CYTHON_SUB=cython | ||
| 127 | cython_python_bindings=yes | 125 | cython_python_bindings=yes |
| 128 | fi | 126 | fi |
| 129 | else | 127 | else |
| 130 | CYTHON_SUB= | ||
| 131 | cython_python_bindings=no | 128 | cython_python_bindings=no |
| 132 | fi | 129 | fi |
| 133 | AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"]) | 130 | AM_CONDITIONAL([HAVE_CYTHON],[test "x$cython_python_bindings" = "xyes"]) |
| 134 | AC_SUBST([CYTHON_SUB]) | ||
| 135 | 131 | ||
| 136 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing -fvisibility=hidden $PTHREAD_CFLAGS") | 132 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Wno-strict-aliasing -fvisibility=hidden $PTHREAD_CFLAGS") |
| 137 | GLOBAL_LDFLAGS="$PTHREAD_LIBS" | 133 | GLOBAL_LDFLAGS="$PTHREAD_LIBS" |
