Commit 46eae02d authored by Roland Levillain's avatar Roland Levillain
Browse files

m4/oln-with-lib.m4: Revert the previous changes.

parent 6b37fbf4
2010-10-20 Roland Levillain <roland@lrde.epita.fr>
* m4/oln-with-lib.m4: Revert the previous changes.
2010-10-21 Roland Levillain <roland@lrde.epita.fr>
Update HACKING.
......
# -*- Autoconf -*-
# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
# (LRDE)
# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
#
# This file is part of Olena.
#
......@@ -74,20 +73,17 @@ AC_DEFUN([_OLN_WITH_LIB],
[use $1 (DIR = prefix for $1 installation)])])
$5_CPPFLAGS=''
$5_LDFLAGS=''
base_inc_dir=''
oln_have_$4=no
if test "x$with_$4" != xno; then
if test -n "$with_$4"; then
base_inc_dir="${with_$4}/include/"
$5_CPPFLAGS="-I${base_inc_dir}"
$5_CPPFLAGS="-I${with_$4}/include"
$5_LDFLAGS="-L${with_$4}/lib"
fi
oln_save_CPPFLAGS=$CPPFLAGS
oln_save_LDFLAGS=$LDFLAGS
CPPFLAGS="$CPPFLAGS $$5_CPPFLAGS"
LDFLAGS="$LDFLAGS $$5_LDFLAGS"
header="${base_inc_dir}$2"
AC_CHECK_HEADER([$header],
oln_have_$4=no
AC_CHECK_HEADER([$2],
[AC_CHECK_LIB([$3],
[main],
[oln_have_$4=yes
......
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