|
|
@ -75,8 +75,8 @@ JANSSON_LIBS="jansson-2.10/src/.libs/libjansson.a" |
|
|
|
AC_SUBST(JANSSON_LIBS) |
|
|
|
AC_SUBST(JANSSON_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_WITH([ckdb], |
|
|
|
AC_ARG_WITH([ckdb], |
|
|
|
[AC_HELP_STRING([--without-ckdb],[Compile ckpool without postgresql database support (default enabled)])], |
|
|
|
[AC_HELP_STRING([--with-ckdb],[Compile ckpool with ckdb database support (default disabled)])], |
|
|
|
[ckdb=$withval] |
|
|
|
[ckdb=$withval],[ckdb=no] |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
AC_SEARCH_LIBS(clock_nanosleep, rt, , "Error: Required library rt not found." && exit 1) |
|
|
|
AC_SEARCH_LIBS(clock_nanosleep, rt, , "Error: Required library rt not found." && exit 1) |
|
|
@ -85,15 +85,15 @@ AC_SEARCH_LIBS(pthread_mutex_trylock, pthread, , "Error: Required library pthrea |
|
|
|
|
|
|
|
|
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
AC_SEARCH_LIBS(PQdb, pq, , echo "Error: Required library pq |
|
|
|
AC_SEARCH_LIBS(PQdb, pq, , echo "Error: Required library pq |
|
|
|
not found. Install it or disable postgresql support with --without-ckdb" && exit 1) |
|
|
|
not found. Install it or disable support by removing --with-ckdb" && exit 1) |
|
|
|
AC_SEARCH_LIBS(BN_init, crypto, , echo "Error: Required library crypto |
|
|
|
AC_SEARCH_LIBS(BN_init, crypto, , echo "Error: Required library crypto |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
not found. Install them or disable support by removing --with-ckdb" && exit 1) |
|
|
|
AC_SEARCH_LIBS(SSL_accept, ssl, , echo "Error: Required libraries ssl |
|
|
|
AC_SEARCH_LIBS(SSL_accept, ssl, , echo "Error: Required libraries ssl |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
not found. Install them or disable support by removing --with-ckdb" && exit 1) |
|
|
|
AC_SEARCH_LIBS(cblas_dgemm, gslcblas, ,echo "Error: Required library gslcblas |
|
|
|
AC_SEARCH_LIBS(cblas_dgemm, gslcblas, ,echo "Error: Required library gslcblas |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
not found. Install them or disable support by removing --with-ckdb" && exit 1) |
|
|
|
AC_SEARCH_LIBS(gsl_blas_dgemm, gsl, , echo "Error: Required library gsl |
|
|
|
AC_SEARCH_LIBS(gsl_blas_dgemm, gsl, , echo "Error: Required library gsl |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
not found. Install them or disable support by removing --with-ckdb" && exit 1) |
|
|
|
AC_DEFINE([USE_CKDB], [1], [Defined to 1 if ckdb support required]) |
|
|
|
AC_DEFINE([USE_CKDB], [1], [Defined to 1 if ckdb support required]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|