summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac56
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
4AC_PREREQ(2.61)
5AC_INIT(libplist, 0.1.0, nospam@nowhere.com)
6AM_INIT_AUTOMAKE(libplist, 0.1.0)
7AC_CONFIG_SRCDIR([src/])
8AC_CONFIG_HEADER([config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11AC_PROG_LIBTOOL
12
13AM_PATH_PYTHON(2.3)
14AC_PROG_SWIG(1.3.21)
15SWIG_PYTHON
16
17
18# Checks for programs.
19AC_PROG_CC
20AM_PROG_CC_C_O
21
22# Checks for libraries.
23PKG_CHECK_MODULES(libxml2, libxml-2.0 >= 2.6.30)
24PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1)
25
26# Checks for header files.
27AC_HEADER_STDC
28AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
29
30# Checks for typedefs, structures, and compiler characteristics.
31AC_C_CONST
32AC_TYPE_SIZE_T
33AC_TYPE_SSIZE_T
34AC_TYPE_UINT16_T
35AC_TYPE_UINT32_T
36AC_TYPE_UINT64_T
37AC_TYPE_UINT8_T
38
39# Checks for library functions.
40AC_FUNC_MALLOC
41AC_FUNC_REALLOC
42AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
43
44AC_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])
49if test "$no_debug_code" = true; then
50 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code])
51fi
52
53AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter")
54AC_SUBST(GLOBAL_CFLAGS)
55
56AC_OUTPUT(Makefile src/Makefile include/Makefile plutil/Makefile swig/Makefile libplist.pc)