Changeset 7111
- Timestamp:
- 01/27/10 21:42:45 (7 weeks ago)
- Location:
- trunk
- Files:
-
- 15 modified
-
liquidsoap/Makefile (modified) (1 diff)
-
liquidsoap/Makefile.defs.in (modified) (1 diff)
-
liquidsoap/configure.ac (modified) (6 diffs)
-
liquidsoap/src/Makefile (modified) (1 diff)
-
liquidsoap/src/sources/playlist.ml (modified) (3 diffs)
-
liquidsoap/src/sources/request_source.ml (modified) (1 diff)
-
liquidsoap/src/tools/harbor.ml (modified) (1 diff)
-
liquidsoap/src/tools/server.ml (modified) (1 diff)
-
ocaml-dtools/CHANGES (modified) (1 diff)
-
ocaml-dtools/src/dtools.ml (modified) (3 diffs)
-
ocaml-duppy/CHANGES (modified) (1 diff)
-
ocaml-duppy/src/duppy.ml (modified) (2 diffs)
-
ocaml-taglib/CHANGES (modified) (1 diff)
-
ocaml-taglib/configure.ac (modified) (4 diffs)
-
ocaml-taglib/src/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/liquidsoap/Makefile
r6857 r7111 2 2 SUBDIRS= src examples doc gui scripts 3 3 DISTFILES = CHANGES COPYING INSTALL README \ 4 bootstrap configure.ac configure config.h.in \4 bootstrap configure.ac configure config.h.in test_os.ml \ 5 5 Makefile Makefile.defs.in Makefile.rules install-sh 6 6 -
trunk/liquidsoap/Makefile.defs.in
r7072 r7111 26 26 LIBS = @LIBS@ 27 27 LDFLAGS = @LDFLAGS@ 28 OS_EXEC_SUFFIX = @OS_EXEC_SUFFIX@ 28 29 29 30 _OCAML_CFLAGS= @ocamlcflags@ -
trunk/liquidsoap/configure.ac
r7110 r7111 60 60 if test "x$prefix" = "xNONE" ; then 61 61 prefix=/usr/local 62 default_prefix=/usr 62 63 else 63 64 # Add passed prefix to compilation variables. … … 65 66 LDFLAGS="$LDFLAGS -L$prefix/lib" 66 67 CPPFLAGS="$CPPFLAGS -I$prefix/include" 68 default_prefix=$prefix 67 69 fi 68 70 … … 97 99 big endian]),[]) 98 100 99 # opal100 101 AC_ARG_WITH([opal-include],102 AC_HELP_STRING(103 [--with-opal-include=path],104 [look for opal headers in path (defaults to /usr/include/opal)]))105 AC_ARG_ENABLE([opal],AC_HELP_STRING([--disable-opal],["don't use opal"]))106 107 W_OPAL=""108 w_OPAL=no109 if test "x$enable_opal" != "xno" ; then110 AC_MSG_CHECKING(for libopal)111 112 if test -z "$with_opal_include" ; then113 OPAL_INCLUDE=/usr/include/opal114 else115 OPAL_INCLUDE=$with_opal_include116 fi117 118 if test \! -f ${OPAL_INCLUDE}/opal.h ; then119 AC_MSG_RESULT(Header not found: ${OPAL_INCLUDE}/opal.h)120 W_OPAL=""121 w_OPAL=no122 else123 W_OPAL=yes124 w_OPAL=yes125 AC_MSG_RESULT(ok)126 fi127 else128 AC_MSG_RESULT(no)129 fi130 131 AC_SUBST(W_OPAL)132 AC_SUBST(OPAL_INCLUDE)133 134 # V4L135 136 AC_ARG_WITH([v4l-include],137 AC_HELP_STRING(138 [--with-v4l-include=path],139 [look for v4l headers in path (defaults to /usr/include/linux)]))140 AC_ARG_ENABLE([v4l],AC_HELP_STRING([--disable-v4l],["don't use v4l"]))141 142 if test "x$enable_v4l" != "xno" ; then143 AC_MSG_CHECKING(for v4l)144 145 if test -z "$with_v4l_include" ; then146 V4L_INCLUDE=/usr/include/linux147 else148 V4L_INCLUDE=$with_v4l_include149 fi150 151 if test \! -f ${V4L_INCLUDE}/videodev.h ; then152 AC_MSG_RESULT(Header not found: ${V4L_INCLUDE}/videodev.h)153 W_V4L=""154 w_V4L=no155 else156 W_V4L=yes157 w_V4L=yes158 AC_MSG_RESULT(ok)159 fi160 else161 W_V4L=""162 w_V4L=no163 fi164 165 AC_SUBST(W_V4L)166 AC_SUBST(V4L_INCLUDE)167 168 101 # 169 102 # OCaml stuff … … 211 144 fi 212 145 146 # Check for OS 147 OS_TYPE=`$OCAMLFIND ocamlc -config | grep os_type | tr -d ' ' | cut -d':' -f 2` 148 if test "$OS_TYPE" \!= "Win32" ; then 149 OS_EXEC_SUFFIX="" 150 else 151 OS_EXEC_SUFFIX=".exe" 152 fi 153 AC_SUBST(OS_EXEC_SUFFIX) 154 213 155 # Add -fPIC to CFLAGS for compatibility with x86_64 214 CFLAGS="$CFLAGS -fPIC" 156 if test "$OS_TYPE" \!= "Win32" ; then 157 CFLAGS="$CFLAGS -fPIC" 158 fi 159 215 160 # Optimize for local machine 216 161 AC_ARG_ENABLE([optimize], … … 297 242 298 243 AC_SUBST(BYTE) 244 245 # opal 246 247 AC_ARG_WITH([opal-include], 248 AC_HELP_STRING( 249 [--with-opal-include=path], 250 [look for opal headers in path (defaults to /usr/include/opal)])) 251 AC_ARG_ENABLE([opal],AC_HELP_STRING([--disable-opal],["don't use opal"])) 252 253 W_OPAL="" 254 w_OPAL=no 255 if test "x$enable_opal" != "xno" ; then 256 AC_MSG_CHECKING(for libopal) 257 258 if test -z "$with_opal_include" ; then 259 OPAL_INCLUDE=$default_prefix/include/opal 260 else 261 OPAL_INCLUDE=$with_opal_include 262 fi 263 264 if test \! -f ${OPAL_INCLUDE}/opal.h ; then 265 AC_MSG_RESULT(Header not found: ${OPAL_INCLUDE}/opal.h) 266 W_OPAL="" 267 w_OPAL=no 268 else 269 W_OPAL=yes 270 w_OPAL=yes 271 AC_MSG_RESULT(ok) 272 fi 273 else 274 AC_MSG_RESULT(no) 275 fi 276 277 AC_SUBST(W_OPAL) 278 AC_SUBST(OPAL_INCLUDE) 279 280 # V4L 281 282 AC_ARG_WITH([v4l-include], 283 AC_HELP_STRING( 284 [--with-v4l-include=path], 285 [look for v4l headers in path (defaults to /usr/include/linux)])) 286 AC_ARG_ENABLE([v4l],AC_HELP_STRING([--disable-v4l],["don't use v4l"])) 287 288 if test "x$enable_v4l" != "xno" ; then 289 AC_MSG_CHECKING(for v4l) 290 291 if test -z "$with_v4l_include" ; then 292 V4L_INCLUDE=$default_prefix/include/linux 293 else 294 V4L_INCLUDE=$with_v4l_include 295 fi 296 297 if test \! -f ${V4L_INCLUDE}/videodev.h ; then 298 AC_MSG_RESULT(Header not found: ${V4L_INCLUDE}/videodev.h) 299 W_V4L="" 300 w_V4L=no 301 else 302 W_V4L=yes 303 w_V4L=yes 304 AC_MSG_RESULT(ok) 305 fi 306 else 307 W_V4L="" 308 w_V4L=no 309 fi 310 311 AC_SUBST(W_V4L) 312 AC_SUBST(V4L_INCLUDE) 299 313 300 314 AC_ARG_ENABLE([graphics], … … 1791 1805 Compiler : $OCAMLC 1792 1806 Version : $OCAML_MAJOR.$OCAML_MINOR.$OCAML_REVISION 1807 OS : $OS_TYPE 1793 1808 OCAML_CFLAGS : $ocamlcflags 1794 1809 OCAML_LFLAGS : $ocamllflags -
trunk/liquidsoap/src/Makefile
r7110 r7111 6 6 DISTFILES = $(wildcard *.mli) Makefile $(wildcard *.ml) META.in 7 7 8 ocaml_progs= liquidsoap 8 ocaml_progs= liquidsoap$(OS_EXEC_SUFFIX) 9 9 10 10 ogg_demuxer = \ -
trunk/liquidsoap/src/sources/playlist.ml
r7057 r7111 109 109 * Must be called within mylock critical section. *) 110 110 method randomize_playlist = 111 assert (not (Mutex.try_lock mylock)) ; 111 (* This assertion does not work on 112 * win32 because a thread can double-lock 113 * the same mutex.. *) 114 if Sys.os_type <> "Win32" then 115 assert (not (Mutex.try_lock mylock)) ; 112 116 Utils.randomize !playlist 113 117 … … 231 235 232 236 method reload_playlist_internal new_playlist_uri = 233 234 assert (not (Mutex.try_lock reloading)) ; 237 238 (* This assertion does not work on 239 * win32 because a thread can double-lock 240 * the same mutex.. *) 241 if Sys.os_type <> "Win32" then 242 assert (not (Mutex.try_lock reloading)) ; 235 243 236 244 self#load_playlist ?uri:new_playlist_uri true ; … … 248 256 method reload_update round_done = 249 257 (* Must be called by somebody who owns [mylock] *) 250 assert (not (Mutex.try_lock mylock)) ; 258 (* This assertion does not work on 259 * win32 because a thread can double-lock 260 * the same mutex.. *) 261 if Sys.os_type <> "Win32" then 262 assert (not (Mutex.try_lock mylock)) ; 251 263 match reload with 252 264 | Never -> () -
trunk/liquidsoap/src/sources/request_source.ml
r7052 r7111 69 69 * when there is no ready request. *) 70 70 method private begin_track = 71 assert (not (Mutex.try_lock plock)) ; 71 (* This assertion does not work on 72 * win32 because a thread can double-lock 73 * the same mutex.. *) 74 if Sys.os_type <> "Win32" then 75 assert (not (Mutex.try_lock plock)) ; 72 76 assert (current = None) ; 73 77 match self#get_next_file with -
trunk/liquidsoap/src/tools/harbor.ml
r7110 r7111 578 578 579 579 let start () = 580 Sys.set_signal Sys.sigpipe Sys.Signal_ignore ; 580 if Sys.os_type <> "Win32" then 581 Sys.set_signal Sys.sigpipe Sys.Signal_ignore ; 581 582 if Hashtbl.length sources > 0 then begin 582 583 Tutils.need_non_blocking_queue () ; -
trunk/liquidsoap/src/tools/server.ml
r6767 r7111 336 336 337 337 let start () = 338 Sys.set_signal Sys.sigpipe Sys.Signal_ignore ; 338 if Sys.os_type <> "Win32" then 339 Sys.set_signal Sys.sigpipe Sys.Signal_ignore ; 339 340 let telnet = conf_telnet#get in 340 341 let socket = conf_socket#get in -
trunk/ocaml-dtools/CHANGES
r6632 r7111 1 0.1.7 () 2 ===== 3 * Use Thread.join instead of Thread.wait_signal 4 under Win32 (Thread.wait_signal is not implemented 5 in this case). Also do not use sigmask since it is 6 not implemented either. 7 1 8 0.1.6 (15-04-2008) 2 9 ===== -
trunk/ocaml-dtools/src/dtools.ml
r6604 r7111 502 502 let main f () = 503 503 begin try exec start with e -> raise (StartError e) end; 504 let quit pid = Unix.kill pid Sys.sigterm in 504 let quit pid = 505 if Sys.os_type <> "Win32" then 506 Unix.kill pid Sys.sigterm 507 in 505 508 let thread pid = 506 509 begin try f (); quit pid with … … 513 516 end 514 517 in 515 ignore (Thread.create thread (Unix.getpid ())); 516 wait_signal (); 518 let th = Thread.create thread (Unix.getpid ()) in 519 if Sys.os_type <> "Win32" then 520 wait_signal () 521 else 522 Thread.join th ; 517 523 begin try exec stop with e -> raise (StopError e) end 518 524 … … 606 612 Sys.set_signal Sys.sigint (Sys.Signal_handle signal_h); 607 613 (* We want to block those signals. *) 608 ignore (Unix.sigprocmask Unix.SIG_BLOCK [Sys.sigterm; Sys.sigint]); 614 if Sys.os_type <> "Win32" then 615 ignore (Unix.sigprocmask Unix.SIG_BLOCK [Sys.sigterm; Sys.sigint]); 609 616 if conf_daemon#get 610 617 then daemonize (main f) -
trunk/ocaml-duppy/CHANGES
r6822 r7111 1 0.3.2 () 2 ===== 3 * Switch from Thread.select to 4 Unix.select. They are the same on 5 POSIX and only Unix.select is available 6 on Win32.. 7 * Do not use assertions on Mutex.try_lock 8 on Win32: on this plateform, a thread can 9 double-lock a mutex, making the assertion 10 inconsistent. 11 1 12 0.3.1 (14-10-2009) 2 13 ===== -
trunk/ocaml-duppy/src/duppy.ml
r6747 r7111 160 160 (List.length e.r) (List.length e.w) (List.length e.x)) ; 161 161 let r,w,x = 162 Thread.select e.r e.w e.x timeout162 Unix.select e.r e.w e.x timeout 163 163 in 164 164 log (Printf.sprintf "Left select at %f (%d/%d/%d)." (time ()) … … 198 198 * if some task was processed. *) 199 199 let exec s (priorities:'a->bool) = 200 assert(not (Mutex.try_lock s.ready_m)) ; 200 (* This assertion does not work on 201 * win32 because a thread can double-lock 202 * the same mutex.. *) 203 if Sys.os_type <> "Win32" then 204 assert(not (Mutex.try_lock s.ready_m)) ; 201 205 try 202 206 let (_,task),remaining = -
trunk/ocaml-taglib/CHANGES
r6673 r7111 1 0.1.4 () 2 ===== 3 * Reworked build system, now using pkg-config. 4 1 5 0.1.3 (20-06-2009) 2 6 ===== -
trunk/ocaml-taglib/configure.ac
r6675 r7111 1 1 2 2 # check for one particular file of the sources 3 AC_INIT(ocaml-taglib, 0.1. 3, savonet-users@lists.sourceforge.net)3 AC_INIT(ocaml-taglib, 0.1.4, savonet-users@lists.sourceforge.net) 4 4 5 5 VERSION=$PACKAGE_VERSION … … 9 9 # if passed 10 10 if test "x$prefix" != "xNONE"; then 11 CFLAGS="$CFLAGS -I$prefix/include"12 LDFLAGS="$LDFLAGS -L$prefix/lib"13 CPPFLAGS="$CPPFLAGS -I$prefix/include"11 CFLAGS="$CFLAGS -I$prefix/include" 12 LDFLAGS="$LDFLAGS -L$prefix/lib" 13 CPPFLAGS="$CPPFLAGS -I$prefix/include" 14 14 fi 15 15 … … 109 109 110 110 AC_PROG_CC() 111 AC_CHECK_HEADER(taglib/tag_c.h, [], [AC_MSG_ERROR([taglib/tag_c.h, please 112 install the C taglib library, or put taglib/tag_c.h somewhere it can be found]);]) 113 AC_CHECK_LIB(tag_c, taglib_set_string_management_enabled, [], [AC_MSG_ERROR(Cannot find libtag_c.)]) 114 ACLIBS="-ltag_c $ACLIBS" 111 PKG_PROG_PKG_CONFIG() 112 #PKG_CHECK_MODULES(taglib, taglib_c, , [AC_MSG_ERROR(taglib not found.)]) 113 114 # PKG_CHECK_MODULES loses when you need --libs-only-[lL] 115 if ! $PKG_CONFIG --exists taglib_c; then 116 AC_MSG_ERROR([taglib not found]) 117 fi 118 taglib_CFLAGS=`$PKG_CONFIG --cflags taglib_c` 119 AC_SUBST([taglib_CFLAGS]) 120 taglib_LIBS=`$PKG_CONFIG --libs-only-l taglib_c` 121 AC_SUBST([taglib_LIBS]) 122 taglib_LDFLAGS=`$PKG_CONFIG --libs-only-L taglib_c` 123 AC_SUBST([taglib_LDFLAGS]) 115 124 116 125 if test "$OCAMLOPT" = no ; then … … 137 146 AC_SUBST(BEST) 138 147 AC_SUBST(INC) 139 AC_SUBST(ACLIBS)140 148 AC_SUBST(requires) 141 149 -
trunk/ocaml-taglib/src/Makefile.in
r6632 r7111 28 28 OCAMLDOCFLAGS = -stars 29 29 LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.cmx *.a *.so) 30 ACLIBS = @LIBS@ 31 LDFLAGS = @LDFLAGS@ 30 ACLIBS = @LIBS@ @taglib_LIBS@ 31 LDFLAGS = @LDFLAGS@ @taglib_LDFLAGS@ 32 32 CLIBS = $(ACLIBS:-l%=%) 33 33 LIBDIRS = $(LDFLAGS:-L%=%) 34 34 CC = @CC@ 35 CFLAGS = @CFLAGS@ -Wall -DCAML_NAME_SPACE35 CFLAGS = @CFLAGS@ @taglib_CFLAGS@ -Wall -DCAML_NAME_SPACE 36 36 CPPFLAGS = @CPPFLAGS@ 37 37 INCDIRS = @INC@
