|
|
@ -79,27 +79,29 @@ AC_ARG_WITH([ckdb], |
|
|
|
[ckdb=$withval] |
|
|
|
[ckdb=$withval] |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
#AC_SEARCH_LIBS(whatgoeshere?, rt, , echo "Error: Required library realtime not found." && exit 1) |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(exp, m, , echo "Error: Required library math not found." && exit 1) |
|
|
|
AC_SEARCH_LIBS(exp, m, , echo "Error: Required library math not found." && exit 1) |
|
|
|
AC_SEARCH_LIBS(pthread_mutex_trylock, pthread, , "Error: Required library pthreads not found." && exit 1) |
|
|
|
AC_SEARCH_LIBS(pthread_mutex_trylock, pthread, , "Error: Required library pthreads not found." && exit 1) |
|
|
|
|
|
|
|
|
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
AC_CHECK_LIB([pq], [main],[PQ=-lpq],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 postgresql support with --without-ckdb" && exit 1) |
|
|
|
AC_CHECK_LIB([gsl], [main],[GSL=-lgsl],echo "Error: Required libraries gsl and gslcblas |
|
|
|
AC_SEARCH_LIBS(BN_init, crypto, , echo "Error: Required library crypto |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1,[-lgslcblas]) |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
AC_CHECK_LIB([ssl], [main],[SSL=-lssl],echo "Error: Required libraries ssl and crypto |
|
|
|
AC_SEARCH_LIBS(SSL_accept, ssl, , echo "Error: Required libraries ssl |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1,[-lcrypto]) |
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(cblas_dgemm, gslcblas, ,echo "Error: Required library gslcblas |
|
|
|
|
|
|
|
not found. Install them or disable support with --without-ckdb" && exit 1) |
|
|
|
|
|
|
|
AC_SEARCH_LIBS(gsl_blas_dgemm, gsl, , echo "Error: Required library gsl |
|
|
|
|
|
|
|
not found. Install them or disable support with --without-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]) |
|
|
|
DB_LIBS="-lpq -lgsl -lgslcblas -lssl -lcrypto" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
DB_LIBS="" |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|
AM_CONDITIONAL([WANT_CKDB], [test "x$ckdb" != "xno"]) |
|
|
|
AC_SUBST(DB_LIBS) |
|
|
|
AC_SUBST(DB_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile] [src/Makefile]) |
|
|
|
AC_OUTPUT([Makefile] [src/Makefile]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LDFLAGS="${LDFLAGS} -Wl,--as-needed" |
|
|
|
|
|
|
|
|
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "Compilation............: make (or gmake)" |
|
|
|
echo "Compilation............: make (or gmake)" |
|
|
|
echo " YASM (Intel ASM).....: $YASM" |
|
|
|
echo " YASM (Intel ASM).....: $YASM" |
|
|
@ -107,9 +109,6 @@ echo " CPPFLAGS.............: $CPPFLAGS" |
|
|
|
echo " CFLAGS...............: $CFLAGS" |
|
|
|
echo " CFLAGS...............: $CFLAGS" |
|
|
|
echo " LDFLAGS..............: $LDFLAGS" |
|
|
|
echo " LDFLAGS..............: $LDFLAGS" |
|
|
|
echo " LDADD................: $LIBS $JANSSON_LIBS" |
|
|
|
echo " LDADD................: $LIBS $JANSSON_LIBS" |
|
|
|
if test "x$ckdb" != "xno"; then |
|
|
|
|
|
|
|
echo " db LDADD.............: $LIBS $DB_LIBS $JANSSON_LIBS" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" |
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" |
|
|
|
echo " prefix...............: $prefix" |
|
|
|
echo " prefix...............: $prefix" |
|
|
|