[FFmpeg-devel] [PATCH]Only build ffserver if SA_RESTART is defined
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Jul 13 11:44:33 CEST 2013
On Saturday 13 July 2013 02:49:40 am Derek Buitenhuis wrote:
> On 7/12/2013 8:28 PM, Carl Eugen Hoyos wrote:
> > I am not saying the patch is correct (I don't know)
> > but I tested it before sending and now a second
> > time.
> > How does it fail for you?
>
> It's a define. You should be using check_cpp_condition to see
> if it is defined.
New patch attached.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/configure b/configure
index e6a6f57..823daf1 100755
--- a/configure
+++ b/configure
@@ -1500,6 +1500,7 @@ HAVE_LIST="
pthread_cancel
rdtsc
rsync_contimeout
+ sarestart
sched_getaffinity
sdl
SetConsoleTextAttribute
@@ -2214,7 +2215,7 @@ ffmpeg_select="aformat_filter anull_filter atrim_filter format_filter
ffplay_deps="avcodec avformat swscale swresample sdl"
ffplay_select="rdft crop_filter"
ffprobe_deps="avcodec avformat"
-ffserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer"
+ffserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer sarestart"
ffserver_extralibs='$ldl'
# documentation
@@ -4031,6 +4032,7 @@ check_builtin sync_val_compare_and_swap "" "int *ptr; int oldval, newval; __sync
check_builtin machine_rw_barrier mbarrier.h "__machine_rw_barrier()"
check_builtin atomic_cas_ptr atomic.h "void **ptr; void *oldval, *newval; atomic_cas_ptr(ptr, oldval, newval)"
check_builtin MemoryBarrier windows.h "MemoryBarrier()"
+check_cpp_condition signal.h "defined(SA_RESTART)" && enable sarestart
check_func sysconf
check_func sysctl
check_func usleep
More information about the ffmpeg-devel
mailing list