diff options
| author | 2016-10-22 04:39:47 +0200 | |
|---|---|---|
| committer | 2016-10-22 04:39:47 +0200 | |
| commit | 392135c7db4d9cb4a14ff5935d7c4c6e21363847 (patch) | |
| tree | 0e19125ed99b6b2ced754d1b9b3f4bc5245f8c39 /configure.ac | |
| parent | a3263ad344ff315ac1cba96f0b84b9afff6da787 (diff) | |
| download | libplist-392135c7db4d9cb4a14ff5935d7c4c6e21363847.tar.gz libplist-392135c7db4d9cb4a14ff5935d7c4c6e21363847.tar.bz2 | |
Remove libxml2 dependency in favor of custom XML parsing
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 5f99d95..10c7f9d 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -19,11 +19,6 @@ LIBPLIST_SO_VERSION=3:0:0 | |||
| 19 | 19 | ||
| 20 | AC_SUBST(LIBPLIST_SO_VERSION) | 20 | AC_SUBST(LIBPLIST_SO_VERSION) |
| 21 | 21 | ||
| 22 | dnl Minimum package versions | ||
| 23 | LIBXML2_VERSION=2.7.8 | ||
| 24 | |||
| 25 | AC_SUBST(LIBXML2_VERSION) | ||
| 26 | |||
| 27 | # Checks for programs. | 22 | # Checks for programs. |
| 28 | AC_PROG_CC | 23 | AC_PROG_CC |
| 29 | AC_PROG_CXX | 24 | AC_PROG_CXX |
| @@ -40,9 +35,6 @@ AC_LANG_POP | |||
| 40 | AM_PROG_CC_C_O | 35 | AM_PROG_CC_C_O |
| 41 | AC_PROG_LIBTOOL | 36 | AC_PROG_LIBTOOL |
| 42 | 37 | ||
| 43 | # Checks for libraries. | ||
| 44 | PKG_CHECK_MODULES(libxml2, libxml-2.0 >= $LIBXML2_VERSION) | ||
| 45 | |||
| 46 | # Checks for header files. | 38 | # Checks for header files. |
| 47 | AC_HEADER_STDC | 39 | AC_HEADER_STDC |
| 48 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) | 40 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) |
| @@ -139,6 +131,22 @@ AM_CONDITIONAL([HAVE_CYTHON],[test "x$CYTHON_SUB" = "xcython"]) | |||
| 139 | AC_SUBST([CYTHON_SUB]) | 131 | AC_SUBST([CYTHON_SUB]) |
| 140 | 132 | ||
| 141 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden") | 133 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden") |
| 134 | |||
| 135 | AC_ARG_ENABLE(debug, | ||
| 136 | AS_HELP_STRING([--enable-debug], | ||
| 137 | [enable debugging, default: no]), | ||
| 138 | [case "${enableval}" in | ||
| 139 | yes) debug=yes ;; | ||
| 140 | no) debug=no ;; | ||
| 141 | *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; | ||
| 142 | esac], | ||
| 143 | [debug=no]) | ||
| 144 | |||
| 145 | if (test "x$debug" = "xyes"); then | ||
| 146 | AC_DEFINE(DEBUG, 1, [Define if debug code should be enabled.]) | ||
| 147 | GLOBAL_CFLAGS+=" -g" | ||
| 148 | fi | ||
| 149 | |||
| 142 | AC_SUBST(GLOBAL_CFLAGS) | 150 | AC_SUBST(GLOBAL_CFLAGS) |
| 143 | 151 | ||
| 144 | case "$GLOBAL_CFLAGS" in | 152 | case "$GLOBAL_CFLAGS" in |
| @@ -165,7 +173,8 @@ echo " | |||
| 165 | Configuration for $PACKAGE $VERSION: | 173 | Configuration for $PACKAGE $VERSION: |
| 166 | ------------------------------------------- | 174 | ------------------------------------------- |
| 167 | 175 | ||
| 168 | Install prefix: .........: $prefix | 176 | Install prefix ..........: $prefix |
| 177 | Debug code ..............: $debug | ||
| 169 | Python bindings .........: $cython_python_bindings | 178 | Python bindings .........: $cython_python_bindings |
| 170 | 179 | ||
| 171 | Now type 'make' to build $PACKAGE $VERSION, | 180 | Now type 'make' to build $PACKAGE $VERSION, |
