From 9cfe55b1422fae21a7764b15ef622628c9fbee84 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Tue, 22 Jun 2004 00:21:51 +0000 Subject: configure.ac: Add objective-c support if running in Darwin/Mac OS X Original commit message from CVS: 2004-06-22 Zaheer Abbas Merali * configure.ac: Add objective-c support if running in Darwin/Mac OS X * sys/Makefile.am: * sys/osxvideo: * sys/osxvideo/Makefile.am: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: Add osxvideosink, a cocoa-based osx video sink --- configure.ac | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e5bab84e..8560dec2 100644 --- a/configure.ac +++ b/configure.ac @@ -43,7 +43,17 @@ AC_PROG_CC AM_PROG_CC_STDC AM_PROG_AS AS="${CC}" - +dnl objective-c for OSX (should check if os is darwin) +case "$host" in + *-*darwin*) + AM_CONDITIONAL([am__fastdepOBJC], false) + OBJC="${CC}" + AC_SUBST(OBJC) + OBJCFLAGS="${CFLAGS}" + AC_SUBST(OBJCFLAGS) + _AM_DEPENDENCIES(OBJC) + ;; +esac dnl the gettext stuff needed AM_GNU_GETTEXT_VERSION(0.11.5) AM_GNU_GETTEXT([external]) @@ -476,6 +486,17 @@ GST_CHECK_FEATURE(OSX_AUDIO, [OSX audio], osxaudiosrc osxaudiosink, [ AC_CHECK_HEADER(CoreAudio/CoreAudio.h, HAVE_OSX_AUDIO="yes", HAVE_OSX_AUDIO="no") ]) +dnl *** OS X video *** +translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_VIDEO, true) +HAVE_OSX_VIDEO="no" +case "$host" in + *-*darwin*) + GST_CHECK_FEATURE(OSX_VIDEO, [OSX video], osxvideosink, [ + AC_CHECK_HEADER(OpenGL/gl.h, HAVE_OSX_VIDEO="yes", HAVE_OSX_VIDEO="no") + ]) + ;; +esac + dnl *** QuickCam *** translit(dnm, m, l) AM_CONDITIONAL(USE_QCAM, true) GST_CHECK_FEATURE(QCAM, [QuickCam], qcamsrc, [ @@ -1856,6 +1877,7 @@ sys/dxr3/Makefile sys/glsink/Makefile sys/oss/Makefile sys/osxaudio/Makefile +sys/osxvideo/Makefile sys/qcam/Makefile sys/sunaudio/Makefile sys/v4l/Makefile -- cgit v1.2.1