Browse Source

Fix various build and packaging issues

master
Con Kolivas 11 years ago
parent
commit
83dd204239
  1. 13
      configure.ac
  2. 6
      src/Makefile.am

13
configure.ac

@ -44,8 +44,21 @@ AC_CHECK_HEADERS(jansson.h)
PTHREAD_LIBS="-lpthread" PTHREAD_LIBS="-lpthread"
MATH_LIBS="-lm" MATH_LIBS="-lm"
RT_LIBS="-lrt"
AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_LIBS)
AC_SUBST(MATH_LIBS) AC_SUBST(MATH_LIBS)
AC_SUBST(RT_LIBS)
AC_OUTPUT([Makefile] [src/Makefile]) AC_OUTPUT([Makefile] [src/Makefile])
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
echo " LDFLAGS..............: $LDFLAGS"
echo " LDADD................: $PTHREAD_LIBS $MATH_LIBS $RT_LIBS"
echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo

6
src/Makefile.am

@ -1,9 +1,9 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libckpool.la lib_LTLIBRARIES = libckpool.la
libckpool_la_SOURCES = libckpool.c libckpool_la_SOURCES = libckpool.c libckpool.h
libckpool_la_LIBADD = @MATH_LIBS@ @PTHREAD_LIBS@ @JANSSON_LIBS@ libckpool_la_LIBADD = @PTHREAD_LIBS@ @MATH_LIBS@ @RT_LIBS@ @JANSSON_LIBS@
bin_PROGRAMS = ckpool bin_PROGRAMS = ckpool
ckpool_SOURCES = ckpool.c ckpool_SOURCES = ckpool.c ckpool.h
ckpool_LDADD = libckpool.la ckpool_LDADD = libckpool.la

Loading…
Cancel
Save