diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 7c9cbab..0000000 --- a/configure.ac +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | # -*- Autoconf -*- | ||
| 2 | # Process this file with autoconf to produce a configure script. | ||
| 3 | |||
| 4 | AC_PREREQ(2.61) | ||
| 5 | AC_INIT(libplist, 0.1.0, nospam@nowhere.com) | ||
| 6 | AM_INIT_AUTOMAKE(libplist, 0.1.0) | ||
| 7 | AC_CONFIG_SRCDIR([src/]) | ||
| 8 | AC_CONFIG_HEADER([config.h]) | ||
| 9 | AC_CONFIG_MACRO_DIR([m4]) | ||
| 10 | |||
| 11 | AC_PROG_LIBTOOL | ||
| 12 | |||
| 13 | AM_PATH_PYTHON(2.3) | ||
| 14 | AC_PROG_SWIG(1.3.21) | ||
| 15 | SWIG_PYTHON | ||
| 16 | |||
| 17 | |||
| 18 | # Checks for programs. | ||
| 19 | AC_PROG_CC | ||
| 20 | AM_PROG_CC_C_O | ||
| 21 | |||
| 22 | # Checks for libraries. | ||
| 23 | PKG_CHECK_MODULES(libxml2, libxml-2.0 >= 2.6.30) | ||
| 24 | PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1) | ||
| 25 | |||
| 26 | # Checks for header files. | ||
| 27 | AC_HEADER_STDC | ||
| 28 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) | ||
| 29 | |||
| 30 | # Checks for typedefs, structures, and compiler characteristics. | ||
| 31 | AC_C_CONST | ||
| 32 | AC_TYPE_SIZE_T | ||
| 33 | AC_TYPE_SSIZE_T | ||
| 34 | AC_TYPE_UINT16_T | ||
| 35 | AC_TYPE_UINT32_T | ||
| 36 | AC_TYPE_UINT64_T | ||
| 37 | AC_TYPE_UINT8_T | ||
| 38 | |||
| 39 | # Checks for library functions. | ||
| 40 | AC_FUNC_MALLOC | ||
| 41 | AC_FUNC_REALLOC | ||
| 42 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) | ||
| 43 | |||
| 44 | AC_ARG_ENABLE([debug-code], | ||
| 45 | [AS_HELP_STRING([--disable-debug-code], | ||
| 46 | [disable debug message reporting in library (default is yes)])], | ||
| 47 | [no_debug_code=false], | ||
| 48 | [no_debug_code=true]) | ||
| 49 | if test "$no_debug_code" = true; then | ||
| 50 | AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code]) | ||
| 51 | fi | ||
| 52 | |||
| 53 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter") | ||
| 54 | AC_SUBST(GLOBAL_CFLAGS) | ||
| 55 | |||
| 56 | AC_OUTPUT(Makefile src/Makefile include/Makefile plutil/Makefile swig/Makefile libplist.pc) | ||
