X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fconfigure;fp=cinelerra-5.0%2Fconfigure;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=701faf420d33ff35ef180c79e2c0eec6a376cc5a;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/configure b/cinelerra-5.0/configure deleted file mode 100755 index 701faf42..00000000 --- a/cinelerra-5.0/configure +++ /dev/null @@ -1,175 +0,0 @@ -#!/bin/sh - -if [ $# -gt 0 ]; then - if [ "$1" = "static" ]; then - STATIC_LIBRARIES=1 - elif [ "$1" = "shared" ]; then - STATIC_LIBRARIES=0 - else - echo usage: "./configure " - exit 1 - fi -fi - -ERROR=0 -if [ -z "$STATIC_LIBRARIES" ]; then -STATIC_LIBRARIES=0 -fi - -# test for nasm -OBJDIR=`uname -m` -TOPDIR=`pwd` - -if [ $OBJDIR = i686 ]; then - if [ ! -x /usr/bin/nasm -a ! -x /usr/local/bin/nasm ]; then - echo " *** Nasm is required."; - exit 1 - fi - -fi - -if [ ! -x /usr/bin/yasm -a ! -x /usr/local/bin/yasm ]; then - echo " *** Yasm is required."; - exit 1 -fi - - -# test for videodev2.h - -rm -f a.out -cat > conftest.c << EOF -#include -#include -#include -int main() -{ - return 0; -} -EOF - -gcc conftest.c > /dev/null 2>&1 - -if [ -x a.out ]; then HAVE_VIDEO4LINUX2=y; else HAVE_VIDEO4LINUX2=n; fi - - -# test for dvb - -rm -f a.out -cat > conftest.c << EOF -#include -#include -#include -int main() -{ - return 0; -} -EOF - -gcc conftest.c > /dev/null 2>&1 - -if [ -x a.out ]; then HAVE_DVB=y; else HAVE_DVB=n; fi - -rm -f a.out conftest.c - - -# test for -msse support - -rm -f a.out -cat > conftest.c << EOF -int main() -{ - return 0; -} -EOF - -gcc -msse conftest.c > /dev/null 2>&1 - -if [ -x a.out ]; then HAVE_GCC=y; else HAVE_GCC=n; fi - -rm -f a.out conftest.c - -if [ $HAVE_GCC = n ]; then - echo " *** GCC 3.2.2 or greater is required. Download it from gcc.gnu.org"; - exit 1 -fi - - -# test for OpenGL 2.0 - -rm -f a.out -cat > conftest.c << EOF -#include -#include -#include -int main() -{ - glUseProgram(0); - return 0; -} -EOF - -gcc conftest.c -lGL -lGLU > /dev/null 2>&1 - -if [ -x a.out ]; then HAVE_GL=y; else HAVE_GL=n; fi - -rm -f a.out conftest.c - - -# write configuration header -echo "Writing hvirtual_config.h" -cat > hvirtual_config.h << EOF -// Configuration file made by configure. Don't edit. -EOF - -if [ "$HAVE_VIDEO4LINUX2" = "y" ]; then - echo "#define HAVE_VIDEO4LINUX2" >> hvirtual_config.h - echo "Have Video4Linux 2" -else - echo "Don't have Video4Linux 2" -fi - -if [ "$HAVE_DVB" = "y" ]; then - echo "#define HAVE_DVB" >> hvirtual_config.h - echo "Have DVB" -else - echo "Don't have DVB" -fi - - -if [ "$HAVE_GL" = "y" ]; then -cat >> hvirtual_config.h << EOF -#ifndef HAVE_GL -#define HAVE_GL -#endif -EOF - echo "Have OpenGL 2.0" -else - echo "Don't have OpenGL 2.0" -fi - -# probe for libraries -if [ $STATIC_LIBRARIES = 0 ]; then - sed -e "s/^STATIC_LIBRARIES := .*/STATIC_LIBRARIES := n/" -i global_config - cd thirdparty && ./configure shared && cd .. -else - sed -e "s/^STATIC_LIBRARIES := .*/STATIC_LIBRARIES := y/" -i global_config - cd thirdparty && ./configure static && cd .. -fi -if [ $? -ne 0 ]; then - echo "Error in thirdparty configuration." - exit 1 -fi - -echo CONFIGURING LIBZMPEG3 -cd libzmpeg3* && ./configure && cd .. -if [ $? -ne 0 ]; then - echo "Error in libzmpeg3 configuration." - exit 1 -fi - - -# success -echo "Configured successfully." -echo "Type 'make' to build me." -echo "If all ok, 'make install'"; -