]> git.sesse.net Git - vlc/commitdiff
configure: Make sure independant Mac OS X-related modules can be activated/deactivate...
authorPierre d'Herbemont <pdherbemont@free.fr>
Sat, 26 Dec 2009 15:08:54 +0000 (16:08 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sat, 26 Dec 2009 15:11:28 +0000 (16:11 +0100)
configure.ac

index 4d72dcf3112dfe0cbfc7345b134f4256feab9cc8..812fd45e490d8fd8dc123efd0443325cf8e41af1 100644 (file)
@@ -4374,11 +4374,10 @@ dnl
 dnl  MacOS X video output/gui modules
 dnl
 AC_ARG_ENABLE(macosx,
-  [  --enable-macosx         full Mac OS X support (default enabled on Mac OS X)])
+  [  --enable-macosx   Mac OS X gui support (default enabled on Mac OS X)])
 if test "x${enable_macosx}" = "xyes"
 then
-  VLC_ADD_LDFLAGS([access_eyetv],                     [-Wl,-framework,Foundation])
-  VLC_ADD_LDFLAGS([macosx minimal_macosx macosx_dialog_provider opengllayer qtcapture],[-Wl,-framework,Cocoa])
+  VLC_ADD_LDFLAGS([macosx minimal_macosx],[-Wl,-framework,Cocoa])
   VLC_ADD_LDFLAGS([macosx minimal_macosx opengllayer],[-Wl,-framework,OpenGL])
   VLC_ADD_LDFLAGS([macosx minimal_macosx],            [-Wl,-framework,Carbon])
   VLC_ADD_LDFLAGS([macosx minimal_macosx],            [-Wl,-framework,CoreServices])
@@ -4388,43 +4387,62 @@ then
   VLC_ADD_OBJCFLAGS([macosx],                         [-F${CONTRIB_DIR}/Sparkle])
   dnl For bug report
   VLC_ADD_LDFLAGS([macosx],                           [-Wl,-framework,AddressBook])
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,QTKit])
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,CoreAudio])
   VLC_ADD_LDFLAGS([macosx],                           [-Wl,-framework,WebKit])
-  VLC_ADD_LDFLAGS([opengllayer qtcapture],            [-Wl,-framework,QuartzCore])
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,CoreVideo])
-  VLC_ADD_OBJCFLAGS([macosx minimal_macosx opengllayer growl], [-fobjc-exceptions] )
+  VLC_ADD_LDFLAGS([opengllayer],            [-Wl,-framework,QuartzCore])
+  VLC_ADD_OBJCFLAGS([macosx minimal_macosx opengllayer], [-fobjc-exceptions] )
 
-  VLC_ADD_PLUGIN([access_eyetv])
-  VLC_ADD_PLUGIN([qtcapture])
   VLC_ADD_PLUGIN([macosx])
   VLC_ADD_PLUGIN([minimal_macosx])
   VLC_ADD_PLUGIN([opengllayer])
-  VLC_ADD_PLUGIN([macosx_dialog_provider])
 fi
 
 dnl
-dnl  MacOS X video output/gui modules
+dnl  MacOS X related modules
 dnl
-AC_ARG_ENABLE(macosx-minimal,
-  [  --enable-macosx-minimal minimal Mac OS X support (default disabled)])
-if test "x${enable_macosx_minimal}" = "xyes"
+
+AC_ARG_ENABLE(macosx-vout,
+  [  --enable-macosx-vout   Mac OS X video output module (default enabled on Mac OS X)])
+if test "x${enable_macosx_vout}" != "xno" &&
+  (test "${SYS}" = "darwin" || test "${enable_macosx_vout}" = "yes")
 then
-  VLC_ADD_LDFLAGS([vout_macosx qtcapture macosx_dialog_provider],[-Wl,-framework,Cocoa])
-  VLC_ADD_LDFLAGS([vout_macosx],          [-Wl,-framework,OpenGL])
+  VLC_ADD_LDFLAGS([vout_macosx],[-Wl,-framework,Cocoa])
+  VLC_ADD_LDFLAGS([vout_macosx],[-Wl,-framework,OpenGL])
+  VLC_ADD_PLUGIN([vout_macosx])
+fi
 
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,QTKit])
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,CoreAudio])
-  VLC_ADD_LDFLAGS([opengllayer qtcapture],            [-Wl,-framework,QuartzCore])
-  VLC_ADD_LDFLAGS([qtcapture],                        [-Wl,-framework,CoreVideo])
-  VLC_ADD_OBJCFLAGS([vout_macosx],                 [-fobjc-exceptions] )
+AC_ARG_ENABLE(macosx-dialog-provider,
+  [  --enable-macosx-dialog-provider   Mac OS X dialog module (default enabled on Mac OS X)])
+if test "x${enable_macosx_dialog_provider}" != "xno" &&
+  (test "${SYS}" = "darwin" || test "${enable_macosx_dialog_provider}" = "yes")
+then
+  VLC_ADD_LDFLAGS([macosx_dialog_provider],[-Wl,-framework,Cocoa])
+  VLC_ADD_PLUGIN([macosx_dialog_provider])
+fi
 
+AC_ARG_ENABLE(macosx-qtcapture,
+  [  --enable-macosx-qtcapture   Mac OS X qtcapture (iSight) module (default enabled on Mac OS X)])
+if test "x${enable_macosx_qtcapture}" != "xno" &&
+  (test "${SYS}" = "darwin" || test "${enable_macosx_qtcapture}" = "yes")
+then
+  VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,Cocoa])
+  VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,QTKit])
+  VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,CoreAudio])
+  VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,QuartzCore])
+  VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,CoreVideo])
   VLC_ADD_PLUGIN([qtcapture])
-  VLC_ADD_PLUGIN([minimal_macosx])
-  VLC_ADD_PLUGIN([opengllayer])
-  VLC_ADD_PLUGIN([macosx_dialog_provider])
 fi
 
+AC_ARG_ENABLE(macosx-eyetv,
+  [  --enable-macosx-eyetv   Mac OS X EyeTV (TNT Tuner) module (default enabled on Mac OS X)])
+if test "x${enable_macosx_eyetv}" != "xno" &&
+  (test "${SYS}" = "darwin" || test "${enable_macosx_eyetv}" = "yes")
+then
+  VLC_ADD_LDFLAGS([access_eyetv], [-Wl,-framework,Foundation])
+  VLC_ADD_PLUGIN([access_eyetv])
+fi
+
+
+
 dnl
 dnl  QNX RTOS module
 dnl