Browse Source

Unconditionally build jansson statically from the cgminer source tree.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
7f653ba97c
  1. 4
      Makefile.am
  2. 6
      compat/Makefile.am
  3. 10
      configure.ac

4
Makefile.am

@ -1,11 +1,7 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
if WANT_JANSSON
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif
if WANT_USBUTILS if WANT_USBUTILS
USBUTILS_INCLUDES = -I$(top_srcdir)/compat/libusb-1.0/libusb USBUTILS_INCLUDES = -I$(top_srcdir)/compat/libusb-1.0/libusb

6
compat/Makefile.am

@ -1,9 +1,5 @@
SUBDIRS = SUBDIRS = jansson
if WANT_JANSSON
SUBDIRS += jansson
endif
if WANT_USBUTILS if WANT_USBUTILS
SUBDIRS += libusb-1.0 SUBDIRS += libusb-1.0

10
configure.ac

@ -183,8 +183,6 @@ if test "x$has_winpthread" != xtrue; then
PTHREAD_LIBS=-lpthread PTHREAD_LIBS=-lpthread
fi fi
AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)
AC_ARG_ENABLE([adl], AC_ARG_ENABLE([adl],
[AC_HELP_STRING([--disable-adl],[Override detection and disable building with adl])], [AC_HELP_STRING([--disable-adl],[Override detection and disable building with adl])],
[adl=$enableval] [adl=$enableval]
@ -319,7 +317,6 @@ fi
AM_CONDITIONAL([NEED_FPGAUTILS], [test x$modminer$ztex != xnono]) AM_CONDITIONAL([NEED_FPGAUTILS], [test x$modminer$ztex != xnono])
AM_CONDITIONAL([WANT_USBUTILS], [test x$want_usbutils != xfalse]) AM_CONDITIONAL([WANT_USBUTILS], [test x$want_usbutils != xfalse])
AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes]) AM_CONDITIONAL([HAVE_CURSES], [test x$curses = xyes])
AM_CONDITIONAL([WANT_JANSSON], [test x$request_jansson = xtrue])
AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue]) AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue]) AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
@ -334,12 +331,7 @@ else
LIBUSB_LIBS="" LIBUSB_LIBS=""
fi fi
if test x$request_jansson = xtrue JANSSON_LIBS="compat/jansson/libjansson.a"
then
JANSSON_LIBS="compat/jansson/libjansson.a"
else
JANSSON_LIBS=-ljansson
fi
PKG_PROG_PKG_CONFIG() PKG_PROG_PKG_CONFIG()

Loading…
Cancel
Save