]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Add a check for libosl to configure.ac.
authorAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 19:45:48 +0000 (21:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Jul 2009 19:45:48 +0000 (21:45 +0200)
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

index f3d5732554556dba2709e83f26554e7e1366de37..fdc0b7ce5f286f9a6b976334a2589d5fe7613b18 100644 (file)
@@ -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