aboutsummaryrefslogtreecommitdiff
path: root/helper/m4/configure.m4
blob: 2e1076172429fa3d4619fea19c89591cd08be8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##########################################################################
# Include m4 files
##########################################################################
m4_include([helper/m4/libcli.m4])

##########################################################################
# Enable/disable test-helper
##########################################################################
AC_ARG_ENABLE([test-helper],
    [AS_HELP_STRING([--enable-test-helper],
		    [run test in helper/test [default=enabled]])],
    [test_helper=$enableval],
    [test_helper=yes])
AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ])

##########################################################################
# Enable/disable Linux helpers
##########################################################################
AC_ARG_ENABLE([helper-linux],
    [AS_HELP_STRING([--disable-helper-linux],
		   [disable Linux helpers [default=enabled]])],
    [helper_linux=$enableval],
    [helper_linux=yes])

##########################################################################
# Enable/disable ODPH_DEBUG
##########################################################################
AC_ARG_ENABLE([helper-debug],
    [AS_HELP_STRING([--enable-helper-debug],
		    [helpers include additional debugging code [default=disabled]])],
    [], [AS_IF([test "x$enable_debug" = "xfull"], [enable_helper_debug=yes],
    [enable_helper_debug=no])])
AS_IF([test "x$enable_helper_debug" != "xno"], [ODPH_DEBUG=1], [ODPH_DEBUG=0])
AC_DEFINE_UNQUOTED([ODPH_DEBUG], [$ODPH_DEBUG],
		   [Define to 1 to include additional helper debug code])

##########################################################################
# Enable/disable ODPH_DEBUG_PRINT
##########################################################################
AC_ARG_ENABLE([helper-debug-print],
    [AS_HELP_STRING([--enable-helper-debug-print],
		    [display helper debugging information [default=disabled]])],
    [], [AS_IF([test "x$enable_debug" = "xfull"], [enable_helper_debug_print=yes],
	       [enable_helper_debug_print=no])])
AS_IF([test "x$enable_helper_debug_print" != "xno"], [ODPH_DEBUG_PRINT=1],
      [ODPH_DEBUG_PRINT=0])
AC_DEFINE_UNQUOTED([ODPH_DEBUG_PRINT], [$ODPH_DEBUG_PRINT],
		   [Define to 1 to display helper debug information])

##########################################################################
# Enable/disable deprecated helper API definitions
##########################################################################
AC_ARG_ENABLE([helper-deprecated],
    [AS_HELP_STRING([--enable-helper-deprecated],
		    [enable deprecated helper API definitions [default=disabled]])],
    [], [enable_helper_deprecated=no])
AS_IF([test "x$enable_helper_deprecated" != "xno"], [ODPH_DEPRECATED_API=1],
      [ODPH_DEPRECATED_API=0])
AC_DEFINE_UNQUOTED([ODPH_DEPRECATED_API], [$ODPH_DEPRECATED_API],
		   [Define to 1 to enable deprecated helper API definitions])

AC_CONFIG_FILES([helper/libodphelper.pc
		 helper/test/Makefile])