X-Git-Url: https://scm.cri.mines-paristech.fr/git/Faustine.git/blobdiff_plain/e8ece9554da2a7b920ae69961aa6828a90c20fd6..8abe2ee3f9b99450a1097204076770fc1c29b75a:/configure?ds=inline diff --git a/configure b/configure index 7eb8e79..ebb3976 100755 --- a/configure +++ b/configure @@ -1,40 +1,12 @@ -#!/bin/bash +#! /bin/bash -prefix="${PWD}" -INTERPRETOR_PATH="$prefix/interpretor" -PREPROCESSOR_PATH="$INTERPRETOR_PATH/preprocessor/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/interpretor/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"