aboutsummaryrefslogtreecommitdiff
path: root/helper/m4/configure.m4
blob: 36629c81ec2179e97a782217881a9ef350056191 (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
##########################################################################
# 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])

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