40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
|
AC_DEFUN([_MOO_AC_LIB],[
|
||
|
AC_ARG_ENABLE(libmoo,
|
||
|
AC_HELP_STRING([--enable-libmoo], [build and install libmoo library (default = NO)]),
|
||
|
[MOO_INSTALL_LIB="$enableval"],[
|
||
|
if test x$MOO_OS_UNIX != xyes; then
|
||
|
MOO_INSTALL_LIB="yes"
|
||
|
else
|
||
|
MOO_INSTALL_LIB="no"
|
||
|
fi
|
||
|
])
|
||
|
|
||
|
AC_ARG_ENABLE(libmoo-headers,
|
||
|
AC_HELP_STRING([--enable-libmoo-headers], [install libmoo library headers (default = NO)]),
|
||
|
[MOO_INSTALL_HEADERS="$enableval"],[MOO_INSTALL_HEADERS="no"]
|
||
|
)
|
||
|
|
||
|
AC_ARG_ENABLE(moo-module,
|
||
|
AC_HELP_STRING([--enable-moo-module], [install python module (default = NO)]),
|
||
|
[MOO_BUILD_PYTHON_MODULE="$enableval"],[
|
||
|
if test "x$MOO_OS_UNIX" != "xyes"; then
|
||
|
MOO_BUILD_PYTHON_MODULE="yes"
|
||
|
else
|
||
|
MOO_BUILD_PYTHON_MODULE="no"
|
||
|
fi
|
||
|
])
|
||
|
|
||
|
AC_ARG_ENABLE(medit,
|
||
|
AC_HELP_STRING([--disable-medit], [do not build medit (default = NO)]),
|
||
|
[MOO_BUILD_MEDIT="$enableval"],[MOO_BUILD_MEDIT="yes"])
|
||
|
|
||
|
AM_CONDITIONAL(MOO_INSTALL_LIB, test "x$MOO_INSTALL_LIB" = "xyes")
|
||
|
AM_CONDITIONAL(MOO_INSTALL_HEADERS, test "x$MOO_INSTALL_HEADERS" = "xyes")
|
||
|
AM_CONDITIONAL(MOO_BUILD_PYTHON_MODULE, test "x$MOO_BUILD_PYTHON_MODULE" = "xyes")
|
||
|
AM_CONDITIONAL(MOO_BUILD_MEDIT, test "x$MOO_BUILD_MEDIT" = "xyes")
|
||
|
|
||
|
if test "x$MOO_BUILD_PYTHON_MODULE" = "xyes"; then
|
||
|
AC_DEFINE(MOO_BUILD_PYTHON_MODULE, 1, [build python module])
|
||
|
fi
|
||
|
])
|