title: FGSL configuration with local install of GSL
body: <p>I would like to use library <code>fgsl</code>, that depends on <code>gsl</code>. I have problem indicating where <code>gsl</code> is installed while configuring <code>fgsl</code>. I want to use the static version of these libraries. I can not use <code>gsl</code> library from Linux packages, these versions are not recent enough.</p>
  
  <p>First I download, configure, compile and install <code>gsl</code> locally, i.e. using the <code>--prefix</code> option. (Instructions are presented below)</p>
  
  <p>Then I download <code>fgsl</code>, configure it. This last operation fails because I do not succeed indicating where is <code>gsl</code>. I have tried to use <code>gsl_LIBS</code> unsuccessfully.</p>
  
  <pre><code>wget http://ftp.igh.cnrs.fr/pub/gnu/gsl/gsl-2.3.tar.gz -O gsl.tar.gz
  mkdir -p gsl_build &amp;&amp; cd gsl_build
  tar -xzf ../gsl.tar.gz --strip 1
  autoreconf -fi
  ./configure CFLAGS="-Wall" --prefix `pwd`/../gsl
  make
  make install
  cd ..
  rm -rf gsl_build
  </code></pre>
  
  <p>Here are the commands I run to install <code>fgsl</code> </p>
  
  <pre><code>wget https://github.com/reinh-bader/fgsl/archive/v1.2.0.tar.gz -O fgsl.tar.gz
  mkdir -p fgsl_build
  cd fgsl_build
  tar -xzf ../fgsl.tar.gz --strip 1
  autoreconf -fi
  export gsl_LIBS=`pwd`/../gsl/lib
  ./configure CFLAGS="-Wall" FCFLAGS="-Wall" --prefix `pwd`/../fgsl --libdir=`pwd`/../gsl/lib --includedir=`pwd`/../gsl/include
  make
  make check
  make install
  cd ..
  rm -rf fgsl_build
  </code></pre>
  
  <p>I try to do this for the open source project <a href="https://github.com/Gjacquenot/AcousticBEM" rel="nofollow noreferrer">AcousticBEM</a>. Here is the <a href="https://s3.amazonaws.com/archive.travis-ci.org/jobs/287213575/log.txt?X-Amz-Expires=30&amp;X-Amz-Date=20171012T200716Z&amp;X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20171012/us-east-1/s3/aws4_request&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=d7727d3dc85e31c3b223e14dccf7958f6358f187686dc6a8b7d7c8a5465fb008" rel="nofollow noreferrer">log</a> presenting the problem.</p>