X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/06159b51a934937f647ec7119b47cb466d8e50b1..HEAD:/configure diff --git a/configure b/configure index e2b4d2b..da51248 100755 --- a/configure +++ b/configure @@ -1,40 +1,12 @@ -#!/bin/bash +#! /bin/bash -prefix="${PWD}" -INTERPRETOR_PATH="$prefix/interpretor" -PREPROCESSOR_PATH="$INTERPRETOR_PATH/faust-0.9.47mr3" -OCAML_INCLUDE_PATH_DEFAULT="/usr/lib/ocaml" -SNDFILE_PATH_DEFAULT="~/Desktop/libsndfile-ocaml" - -cd $PREPROCESSOR_PATH -make clean -cd $INTERPRETOR_PATH -make mrproper -cd $prefix - -echo "" -echo "1. Please set ocaml include header files' path: " -echo " [default]: $OCAML_INCLUDE_PATH_DEFAULT" -read -r OCAML_INCLUDE_PATH - -if [ -z $OCAML_INCLUDE_PATH ]; then - OCAML_INCLUDE_PATH=$OCAML_INCLUDE_PATH_DEFAULT -fi -echo "Ocaml include path : $OCAML_INCLUDE_PATH" +# libsndfile configure +LIBSNDFILE_PREFIX=$PWD/interpreter/lib +LIBSNDFILE_SRCDIR=$LIBSNDFILE_PREFIX/src/libsndfile-1.0.25 +LIBSNDFILE_DESTNAME=libsndfile +DESTDIR=$LIBSNDFILE_PREFIX/$LIBSNDFILE_DESTNAME -echo "" -echo "2. Please set libsndfile-ocaml path: " -echo " [default]: $SNDFILE_PATH_DEFAULT" -read -r SNDFILE_PATH - -if [ -z $SNDFILE_PATH ]; then - SNDFILE_PATH=$SNDFILE_PATH_DEFAULT -fi -echo "libsndfile-ocaml path : $SNDFILE_PATH" - -rm -f Makefile -cp Makefile.in Makefile -echo "OCAML_INCLUDE_PATH = $OCAML_INCLUDE_PATH" >> Makefile -echo "SNDFILE_PATH = $SNDFILE_PATH" >> Makefile - +make mrproper +mkdir -p $DESTDIR +cd $LIBSNDFILE_SRCDIR && ./configure --prefix="$DESTDIR" --exec_prefix="$DESTDIR"