Commit f4994b21 authored by Christophe Mutricy's avatar Christophe Mutricy

configure.ac: Add a --without-contrib option

parent d52c3075
...@@ -73,12 +73,16 @@ AC_C_INLINE ...@@ -73,12 +73,16 @@ AC_C_INLINE
dnl dnl
dnl Check for the contrib directory dnl Check for the contrib directory
dnl dnl
topdir="`dirname $0`" AC_ARG_WITH(contrib,
if test "`echo \"$topdir\" | cut -c 1`" != "/"; then [ --without-contrib do not use the libraries in extras/contrib],[],[])
if test "${with_contrib}" != "no"; then
topdir="`dirname $0`"
if test "`echo \"$topdir\" | cut -c 1`" != "/"; then
topdir="`pwd`/$topdir" topdir="`pwd`/$topdir"
fi fi
if test -d ${topdir}/extras/contrib/lib; then if test -d ${topdir}/extras/contrib/lib; then
export PATH=${topdir}/extras/contrib/bin:$PATH export PATH=${topdir}/extras/contrib/bin:$PATH
CPPFLAGS="${CPPFLAGS} -I${topdir}/extras/contrib/include" CPPFLAGS="${CPPFLAGS} -I${topdir}/extras/contrib/include"
CPPFLAGS_save="${CPPFLAGS_save} -I${topdir}/extras/contrib/include" CPPFLAGS_save="${CPPFLAGS_save} -I${topdir}/extras/contrib/include"
...@@ -103,8 +107,8 @@ if test -d ${topdir}/extras/contrib/lib; then ...@@ -103,8 +107,8 @@ if test -d ${topdir}/extras/contrib/lib; then
export LIBRARY_PATH=${topdir}/extras/contrib/lib:$LIBRARY_PATH export LIBRARY_PATH=${topdir}/extras/contrib/lib:$LIBRARY_PATH
export BELIBRARIES=${topdir}/extras/contrib/lib:$BELIBRARIES export BELIBRARIES=${topdir}/extras/contrib/lib:$BELIBRARIES
fi fi
fi
fi fi
dnl dnl
dnl Set default values dnl Set default values
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment