[MPlayer-cvslog] r31593 - trunk/configure

diego subversion at mplayerhq.hu
Thu Jul 1 12:14:30 CEST 2010


Author: diego
Date: Thu Jul  1 12:14:30 2010
New Revision: 31593

Log:
Add convenience function to check for the availability of system functions.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Jul  1 11:00:54 2010	(r31592)
+++ trunk/configure	Thu Jul  1 12:14:30 2010	(r31593)
@@ -81,6 +81,15 @@ cxx_check() {
   compile_check $TMPCPP $@ -lstdc++
 }
 
+function_check() {
+  cat > $TMPC << EOF
+#include <$1>
+int main(void) { $2; }
+EOF
+  shift
+  compile_check $TMPC $@
+}
+
 header_check() {
   cat > $TMPC << EOF
 #include <$1>


More information about the MPlayer-cvslog mailing list