Skip to content
Snippets Groups Projects
Commit 1c37197b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

autotools: cleanup nodejs

Change-Id: Ie5c67deace0664c2d8d9664ecb0f722fce13a57e
parent 8b09cd89
Branches
Tags
No related merge requests found
...@@ -400,33 +400,25 @@ AS_IF([test "x$with_dbus" = "xyes"], ...@@ -400,33 +400,25 @@ AS_IF([test "x$with_dbus" = "xyes"],
dnl name service is default-enabled dnl name service is default-enabled
AC_ARG_ENABLE([ringns], AS_HELP_STRING([--disable-ringns], AC_ARG_ENABLE([ringns], AS_HELP_STRING([--disable-ringns],
[Enable Name Service])) [Enable Name Service]))
AM_CONDITIONAL([RINGNS], test "x$enable_ringns" != "xno", AM_CONDITIONAL([RINGNS], test "x$enable_ringns" != "xno")
[Define if you use the Name Service])
AC_DEFINE_UNQUOTED([HAVE_RINGNS], AC_DEFINE_UNQUOTED([HAVE_RINGNS],
`if test "x$enable_ringns" != "xno"; then echo 1; else echo 0; fi`, `if test "x$enable_ringns" != "xno"; then echo 1; else echo 0; fi`,
[Define if you use the Name Service]) [Define if you use the Name Service])
AM_COND_IF([RINGNS],
[PKG_CHECK_MODULES(LIBCRYPTO, libcrypto,,
AC_MSG_ERROR([Missing libcrypto development files]))
PKG_CHECK_MODULES(LIBSSL, libssl,,
AC_MSG_ERROR([Missing libssl development files]))],
[]);
dnl nodejs module dnl nodejs module
AC_ARG_WITH([nodejs], AS_HELP_STRING([--with-nodejs], [Enable NodeJS module])) AC_ARG_WITH([nodejs], AS_HELP_STRING([--with-nodejs], [Enable NodeJS module]))
AM_CONDITIONAL([ENABLE_NODEJS], test "x$enable_nodejs" != "xno", AM_CONDITIONAL(ENABLE_NODEJS, [test "x$with_nodejs" = "xyes"])
[Define if you use the NodeJS module]) AM_COND_IF([ENABLE_NODEJS],
AC_DEFINE_UNQUOTED([HAVE_NODEJS],
`if test "x$enable_ringns" != "xno"; then echo 1; else echo 0; fi`,
[Define if you use the NodeJS module])
AS_IF([test "x$with_nodejs" = "xyes"],
[AC_PATH_PROG(SWIG, swig, "") [AC_PATH_PROG(SWIG, swig, "")
AS_AC_EXPAND(SBINDIR, $sbindir) AS_AC_EXPAND(SBINDIR, $sbindir)
AC_SUBST(SBINDIR) AC_SUBST(SBINDIR)
AC_CONFIG_FILES([bin/nodejs/Makefile]) AC_CONFIG_FILES([bin/nodejs/Makefile])])
AM_CONDITIONAL(ENABLE_NODEJS, true)],
[AM_CONDITIONAL(ENABLE_NODEJS, false)]);
AS_IF([test "x$enable_ringns" != "xno"],
[PKG_CHECK_MODULES(LIBCRYPTO, libcrypto,,
AC_MSG_ERROR([Missing libcrypto development files]))
PKG_CHECK_MODULES(LIBSSL, libssl,,
AC_MSG_ERROR([Missing libssl development files]))],
[]);
dnl Check for libav dnl Check for libav
PKG_CHECK_MODULES(LIBAVUTIL, libavutil >= 54.31.100,, PKG_CHECK_MODULES(LIBAVUTIL, libavutil >= 54.31.100,,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment