Commit c5ead2c6 authored by Seblu's avatar Seblu
Browse files

Add README into dist

Correct bug when compile with efence
Add pthread library in linking
parent c67de821
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ sls_SOURCES= src/sls.hh \

CLEANFILES= *~ '\#*'

EXTRA_DIST= LICENSE COPYING
EXTRA_DIST= COPYING README

.PHONY: tar re

+4 −4
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ AC_ARG_WITH([debug],

# with-efence arg
AC_ARG_WITH([efence],
  [AS_HELP_STRING([--with-efence], [Link with efence library])],
  [AS_HELP_STRING([--with-efence], [Link with Electric-Fence library])],
  [],
  [with_efence=no]
)
@@ -53,13 +53,13 @@ AC_PROG_MAKE_SET
# Check for libs
AC_CHECK_LIB([sqlite3], [sqlite3_open],,[AC_MSG_ERROR([Library sqlite3 not found!])])
AC_CHECK_LIB([ssl], [SSL_library_init],,[AC_MSG_ERROR([Library ssl not found!])])
AC_CHECK_LIB([pthread], [pthread_create],,[AC_MSG_ERROR([Library pthread not found!])])

# Set efence library
AS_IF([test "x$with_efence" = "xyes" ],
      [AC_CHECK_LIB([efence], [malloc],
		    [LDFLAGS="$LDFLAGS -lefence"; test -r "/usr/include/efence.h" && \
       		     CXXFLAGS="$CXXFLAGS -include stdlib.h -include efence.h"],
		    [AC_MSG_ERROR([Efence library not found!])])])
		    [],
		    [AC_MSG_ERROR([Electric-Fence library not found!])])])


AC_SUBST([CXXFLAGS])