summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac47
1 files changed, 46 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7c59171..32a55f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,24 @@ AC_FUNC_MALLOC
46AC_FUNC_REALLOC 46AC_FUNC_REALLOC
47AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) 47AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
48 48
49python_bindings=yes
50AC_ARG_WITH([swig],
51 [AS_HELP_STRING([--without-swig],
52 [build Python bindings using swig (default is yes)])],
53 [build_swig=false],
54 [build_swig=true])
55if test "$build_swig" = "true" -a "$SWIG" != "false" ; then
56 SWIG_SUB=swig
57else
58 SWIG_SUB=
59 python_bindings=no
60fi
61
62AM_CONDITIONAL([HAVE_SWIG],[test "x$SWIG_SUB" = "xswig"])
63
64AC_SUBST([DEV_SUB])
65
66
49AC_ARG_ENABLE([dev-tools], 67AC_ARG_ENABLE([dev-tools],
50 [AS_HELP_STRING([--enable-dev-tools], 68 [AS_HELP_STRING([--enable-dev-tools],
51 [build development helper tools (default is no)])], 69 [build development helper tools (default is no)])],
@@ -57,8 +75,10 @@ if test "$build_dev_tools" = true; then
57 [], 75 [],
58 [AC_MSG_ERROR([Please install readline development headers])] 76 [AC_MSG_ERROR([Please install readline development headers])]
59 ) 77 )
78 building_dev_tools=yes
60else 79else
61 DEV_SUB= 80 DEV_SUB=
81 building_dev_tools=no
62fi 82fi
63 83
64AM_CONDITIONAL([ENABLE_DEVTOOLS],[test "x$DEV_SUB" = "xdev"]) 84AM_CONDITIONAL([ENABLE_DEVTOOLS],[test "x$DEV_SUB" = "xdev"])
@@ -71,7 +91,10 @@ AC_ARG_ENABLE([debug-code],
71 [no_debug_code=false], 91 [no_debug_code=false],
72 [no_debug_code=true]) 92 [no_debug_code=true])
73if test "$no_debug_code" = true; then 93if test "$no_debug_code" = true; then
94 building_debug_code=no
74 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code]) 95 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code])
96else
97 building_debug_code=yes
75fi 98fi
76 99
77AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter") 100AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter")
@@ -106,4 +129,26 @@ AC_SUBST(LFS_CFLAGS)
106 129
107m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) 130m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
108 131
109AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile tools/Makefile swig/Makefile libiphone-1.0.pc) 132AC_OUTPUT([
133Makefile
134src/Makefile
135include/Makefile
136fdi/Makefile
137dev/Makefile
138tools/Makefile
139swig/Makefile
140libiphone-1.0.pc
141])
142
143echo "
144Configuration for $PACKAGE $VERSION:
145-------------------------------------------
146
147 Install prefix: .........: $prefix
148 Debug code ..............: $building_debug_code
149 Dev tools ...............: $building_dev_tools
150 Python bindings .........: $python_bindings
151
152 Now type 'make' to build $PACKAGE $VERSION,
153 and then 'make install' for installation.
154"