]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - configure.ac
Add a check for libosl to configure.ac.
[paraslash.git] / configure.ac
index fde72f2aa795676691f741392bfba87569458944..fdc0b7ce5f286f9a6b976334a2589d5fe7613b18 100644 (file)
@@ -125,7 +125,7 @@ afh_ldflags=""
 
 server_cmdline_objs="server.cmdline server_command_list afs_command_list"
 server_errlist_objs="server afh_common mp3_afh vss command net string signal
-       time daemon stat crypt http_send close_on_fork
+       time daemon crypt http_send close_on_fork
        ipc dccp_send fd user_list chunk_queue afs aft mood score attribute
        blob playlist sha1 sched acl send_common udp_send color fec"
 server_ldflags="-losl"
@@ -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