ndt-dev - [ndt-dev] [ndt] r1177 committed - Change how the "test for I2util" happens to avoid an AMDEP error
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r1177 committed - Change how the "test for I2util" happens to avoid an AMDEP error
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r1177 committed - Change how the "test for I2util" happens to avoid an AMDEP error
- Date: Fri, 09 Jan 2015 16:35:53 +0000
Revision: 1177
Author:
Date: Fri Jan 9 16:35:41 2015 UTC
Log: Change how the "test for I2util" happens to avoid an AMDEP error
https://code.google.com/p/ndt/source/detail?r=1177
Modified:
/trunk/configure.ac
=======================================
--- /trunk/configure.ac Fri Jan 9 15:47:26 2015 UTC
+++ /trunk/configure.ac Fri Jan 9 16:35:41 2015 UTC
@@ -213,7 +213,7 @@
I2UTILINCS="-I$I2util_dir $I2UTILINCS"
I2UTILLDFLAGS="-L$I2util_dir/I2util $I2UTILLDFLAGS"
I2UTILLIBDEPS="$I2util_dir/I2util/libI2util.a"
- I2UTILLIBMAKE="cd $I2util_dir; make"
+ I2UTILLIBMAKE="cd $I2util_dir; make"
# now, check for installed I2util
elif test -d /usr/local/I2util; then
@@ -221,11 +221,21 @@
I2UTILLDFLAGS="-L/usr/local/I2util/lib $I2UTILLDFLAGS"
I2UTILLIBDEPS="/usr/local/I2util/lib/libI2util.a"
- else
- AC_SEARCH_LIBS([I2AddrByNode],I2util, ,AC_MSG_ERROR([Couldn't find I2util library]))
- AC_CHECK_HEADERS([I2util/util.h I2util/conf.h], ,AC_MSG_ERROR([Couldn't find I2util header files]), [AC_INCLUDES_DEFAULT])
fi
+ # Save the old CFLAGS and LDFLAGS
+ OLD_LDFLAGS="$LDFLAGS"
+ OLD_CFLAGS="$CFLAGS"
+
+ CFLAGS="$CFLAGS $I2UTILINCS"
+ LDFLAGS="$CFLAGS $I2UTILLDFLAGS"
+
+ AC_SEARCH_LIBS([I2AddrByNode],I2util, ,AC_MSG_ERROR([Couldn't find I2util library]))
+ AC_CHECK_HEADERS([I2util/util.h I2util/conf.h], ,AC_MSG_ERROR([Couldn't find I2util header files]), [AC_INCLUDES_DEFAULT])
+
+ LDFLAGS="$OLD_LDFLAGS"
+ CFLAGS="$OLD_CFLAGS"
+
I2UTILLIBS="$I2UTILLDFLAGS -lI2util"
fi
- [ndt-dev] [ndt] r1177 committed - Change how the "test for I2util" happens to avoid an AMDEP error, ndt, 01/09/2015
Archive powered by MHonArc 2.6.16.