Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / libzmpeg3 / configure
diff --git a/cinelerra-5.1/libzmpeg3/configure b/cinelerra-5.1/libzmpeg3/configure
new file mode 100755 (executable)
index 0000000..01346cf
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# configuration is being done in a script because starting with GCC-3.2
+# the compiler flags are changing too much between minor releases to detect
+# with Makefile scripts alone.  For now it just tells you if you have the
+# prerequisite compilers.
+
+ERROR=0
+
+# test for nasm
+
+if [ `uname -m` = i686 ];
+then
+
+       if [ -x /usr/bin/nasm -o -x /usr/local/bin/nasm ]; then HAVE_NASM=y; else HAVE_NASM=n; fi
+
+       if [ $HAVE_NASM = n ]; 
+       then echo " *** Nasm is required.  Download it from nasm.sourceforge.net"; 
+       ERROR=1
+       fi
+
+fi
+
+if [ $ERROR -ne 0 ]; then
+  exit 1
+fi
+