summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-03-31 16:19:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-03-31 16:20:13 +0100
commit00101fa71614fb48de436d6618e26353cf44ef95 (patch)
tree232a0d1ea957e5514ea7b1b079aab6987eb7ec36 /configure.ac
parenta81d347c2484e60ceec1d9dc81e1b88724496eaf (diff)
configure: check -lrt for shm_open()
OS/X includes shm_open() in libc, and fails to link if -lrt is specified. So perform the appropriate configure time magic.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cd848c1f8..dc29cc316 100644
--- a/configure.ac
+++ b/configure.ac
@@ -718,6 +718,11 @@ AC_SUBST(glib_CFLAGS)
AC_SUBST(glib_LIBS)
AM_CONDITIONAL(BUILD_SPHINX, test "x$have_glib" = "xyes")
+save_LIBS="$LIBS"
+AC_CHECK_LIB(rt, shm_open, shm_LIBS="-lrt")
+AC_SUBST(shm_LIBS)
+LIBS="$save_LIBS"
+
dnl ===========================================================================
AC_ARG_ENABLE(some-floating-point,