summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e147003)
raw | patch | inline | side by side (parent: e147003)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:29:45 +0000 (05:29 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:29:45 +0000 (05:29 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@625 a5681a0c-68f1-0310-ab6d-d61299d08faa
acinclude.m4 | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/acinclude.m4 b/acinclude.m4
index 3cff28226989e6287a97b19fe7ec74249b6a7767..9e02d6d922ca24d65225018f111eacaad9acc766 100644 (file)
--- a/acinclude.m4
+++ b/acinclude.m4
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
*solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
+ *-linux*)
+ if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
+ # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
+ # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
+ PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
+ fi;;
esac
AC_MSG_RESULT(${x_rflag})
if test "x$x_rflag" != xno; then
diff --git a/configure.ac b/configure.ac
index bf2ae7ebc52fdb9dc6b2e46d1f370e6f1b154fb2..3ebfa156fc8b859336e5be919b45444851e4286d 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[[#include <time.h>]],
[[ctime_r(NULL,NULL)]]
),
- [AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)],
[AC_MSG_ERROR([Can't figure how to compile ctime_r])]
)
]