summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbmake2
-rwxr-xr-xconfigure.ac10
2 files changed, 10 insertions, 2 deletions
diff --git a/bmake b/bmake
index 3e7eb44c3..378e99203 100755
--- a/bmake
+++ b/bmake
@@ -42,6 +42,8 @@ autoreconf -i
--enable-memdebug=no \
--with-internalguichan=yes
+#--without-librt
+
cd po
#make -j5 update-po 2>../make1.log
make -j5 update-gmo 2>../make1.log
diff --git a/configure.ac b/configure.ac
index 8141dabdb..7eeb8cf94 100755
--- a/configure.ac
+++ b/configure.ac
@@ -149,8 +149,14 @@ AM_CONDITIONAL(USE_INTERNALGUICHAN, test x$with_internalguichan = xyes)
AC_CHECK_LIB(SDL_net, SDLNet_Init, ,
AC_MSG_ERROR([ *** Unable to find SDL_net library]))
-AC_CHECK_LIB(rt, shm_open, ,
-AC_MSG_ERROR([ *** Unable to find librt library]))
+AC_ARG_WITH(librt,[ --without-librt don't link to librt ] )
+if test "x$with_librt" == "xno"; then
+ without_librt=yes
+else
+ AC_CHECK_LIB(rt, shm_open, ,
+ AC_MSG_ERROR([ *** Unable to find librt library]))
+ without_librt=no
+fi
# Enable manaserv
AC_ARG_ENABLE(manaserv,