summaryrefslogtreecommitdiff
blob: b069959d43fed17684c18db1148c00665c7f05e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
--- dvgrab-2.0/configure.in.old	2006-12-07 19:41:05.000000000 +0100
+++ dvgrab-2.0/configure.in	2006-12-07 19:41:09.000000000 +0100
@@ -41,37 +41,46 @@
 	AC_ERROR(You need the pthread library to compile dvgrab)
 ])
 
-AC_CHECK_HEADERS(quicktime/quicktime.h,,
-[
-	AC_WARN(quicktime headers missing; install libquicktime or quicktime4linux to support Quicktime files.)
-])
+AC_ARG_WITH(libquicktime, [  --with-libquicktime  Enables Quicktime support],
+[enable_libquicktime=$withval], [enable_libquicktime=yes])
 
-# add various libs if using quicktime4linux and not libquicktime
-AC_CHECK_HEADERS(quicktime/lqt.h,
-	[AC_CHECK_LIB(quicktime, quicktime_open, ,
-		[AC_WARN(libquicktime missing; install libquicktime or quicktime4linux to support Quicktime files.)]
-	)],
-[
-	AC_CHECK_LIB(png, png_read_image)
-	AC_CHECK_LIB(ogg, ogg_stream_pagein)
-	AC_CHECK_LIB(vorbis, vorbis_info_clear)
-	AC_CHECK_LIB(vorbisenc, vorbis_encode_ctl)
-	AC_CHECK_LIB(jpeg, jpeg_read_scanlines)
-	AC_CHECK_LIB(a52, a52_init)
-	AC_CHECK_LIB(mpeg3, mpeg3demux_read_char_packet)
-	AC_CHECK_LIB(quicktime, quicktime_open, ,
-		[AC_WARN(libquicktime missing; install libquicktime or quicktime4linux to support Quicktime files.)]
-	)
-])
+if test "$enable_libquicktime" = yes; then
+	AC_CHECK_HEADERS(quicktime/quicktime.h,,
+	[
+		AC_ERROR(quicktime headers missing)
+	])
+	
+	AC_CHECK_HEADERS(quicktime/lqt.h,
+		[AC_CHECK_LIB(quicktime, quicktime_open, ,
+			[AC_ERROR(libquicktime missing)]
+		)],
+	[
+		AC_CHECK_LIB(png, png_read_image)
+		AC_CHECK_LIB(ogg, ogg_stream_pagein)
+		AC_CHECK_LIB(vorbis, vorbis_info_clear)
+		AC_CHECK_LIB(vorbisenc, vorbis_encode_ctl)
+		AC_CHECK_LIB(jpeg, jpeg_read_scanlines)
+		AC_CHECK_LIB(a52, a52_init)
+		AC_CHECK_LIB(mpeg3, mpeg3demux_read_char_packet)
+		AC_CHECK_LIB(quicktime, quicktime_open, ,
+			[AC_ERROR(libquicktime missing)]
+		)
+	])
+fi
 
-AC_CHECK_HEADERS(jpeglib.h,,
-[
-	AC_WARN(jpeglib headers missing; install jpeglib to save to JPEG files.)
-])
-AC_CHECK_LIB(jpeg, jpeg_CreateCompress,,
-[
-	AC_WARN(jpeglib missing; install jpeglib to save to JPEG files.)
-])
+AC_ARG_WITH(libjpeg, [  --with-libjpeg  Enables JPEG support],
+[enable_libjpeg=$withval], [enable_libjpeg=yes])
+
+if test "$enable_libjpeg" = yes; then
+	AC_CHECK_HEADERS(jpeglib.h,,
+	[
+		AC_WARN(jpeglib headers missing; install jpeglib to save to JPEG files.)
+	])
+	AC_CHECK_LIB(jpeg, jpeg_CreateCompress,,
+	[
+		AC_WARN(jpeglib missing; install jpeglib to save to JPEG files.)
+	])
+fi
 
 # EFENCE
 AC_ARG_WITH(efence,[  --with-efence        Use ElectricFence for debugging support.],