[MPlayer-cvslog] r20171 - trunk/configure

diego subversion at mplayerhq.hu
Thu Oct 12 10:23:17 CEST 2006


Author: diego
Date: Thu Oct 12 10:23:17 2006
New Revision: 20171

Modified:
   trunk/configure

Log:
Check for maeomo-specific libraries (Nokia 770).
patch by Siarhei Siamashka, siarhei.siamashka gmail com


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Thu Oct 12 10:23:17 2006
@@ -248,6 +248,7 @@
   --enable-fribidi       Enable using the FriBiDi libs [autodetect]
   --disable-enca         Disable using ENCA charset oracle library [autodetect]
   --disable-macosx       Disable Mac OS X specific features [autodetect]
+  --disable-maemo        Disable maemo specific features [autodetect]
   --enable-macosx-finder-support  Enable Mac OS X Finder invocation parameter parsing [disabled]
   --enable-macosx-bundle Enable Mac OS X bundle file locations [autodetect]
   --disable-inet6        Disable IPv6 support [autodetect]
@@ -1731,6 +1732,7 @@
 _menu=no
 _qtx=auto
 _macosx=auto
+_maemo=auto
 _macosx_finder_support=no
 _macosx_bundle=auto
 _sortsub=yes
@@ -2088,6 +2090,9 @@
   --enable-macosx-bundle) _macosx_bundle=yes;;
   --disable-macosx-bundle) _macosx_bundle=no;;  
 
+  --enable-maemo) _maemo=yes ;;
+  --disable-maemo) _maemo=no ;;
+
   --enable-sortsub) _sortsub=yes ;;
   --disable-sortsub) _sortsub=no ;;
 
@@ -7421,6 +7426,28 @@
 fi
 echores "$_lircc"
 
+if arm; then
+# Detect maemo development platform libraries availability (http://www.maemo.org),
+# they are used when run on Nokia 770
+echocheck "maemo (Nokia 770)"
+if test "$_maemo" = auto ; then
+  _maemo=no
+  cat > $TMPC << EOF
+#include <libosso.h>
+int main(void) { (void) osso_initialize("", "", 0, NULL); return 0; }
+EOF
+  cc_check `pkg-config --cflags --libs libosso 2>/dev/null` && _maemo=yes
+fi
+if test "$_maemo" = yes ; then
+  _def_maemo='#define HAVE_MAEMO 1'
+  _inc_extra="$_inc_extra `pkg-config --cflags libosso`"
+  _ld_extra="$_ld_extra `pkg-config --libs libosso` -lXsp"
+else
+  _def_maemo='#undef HAVE_MAEMO'
+fi
+echores "$_maemo"
+fi
+
 #############################################################################
 echo "Creating config.mak"
 cat > config.mak << EOF
@@ -7937,6 +7964,9 @@
 /* LIRC (remote control, see www.lirc.org) support: */
 $_def_lirc
 
+/* Support for maemo (http://www.maemo.org) */
+$_def_maemo
+
 /*
  * LIRCCD (LIRC client daemon)
  * See http://www.dolda2000.cjb.net/~fredrik/lirccd/



More information about the MPlayer-cvslog mailing list