From ca659e6bf0d7f783849244105a077e79fcf741ad Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 4 Jul 2009 21:45:48 +0200 Subject: [PATCH] Add a check for libosl to configure.ac. If libosl is not found, configure will exit with an error message describing how to download and install libosl. We could make it optional and build only the client side of paraslash if libosl is not available, but that seems not be worth the trouble as everyone likely wants to build para_server anyway. --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f3d57325..fdc0b7ce 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,17 @@ fade_cmdline_objs="fade.cmdline" fade_errlist_objs="fade exec string fd" - +########################################################################### osl +have_osl=yes +AC_CHECK_HEADER(osl.h, [], have_osl=no) +AC_CHECK_LIB([osl], [osl_open_table], [], have_osl=no) +if test "$have_osl" = "no"; then + AC_MSG_ERROR([libosl not found, type the following to download: + git clone git://git.tuebingen.mpg.de/osl +Install the library with + (cd osl && make && sudo make install) + ]) +fi ########################################################################### ssl dnl @synopsis CHECK_SSL dnl -- 2.39.5