Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] bwctl mis-sets CFLAGS with --with-I2util

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] bwctl mis-sets CFLAGS with --with-I2util


Chronological Thread 
  • From: Tim Smith <>
  • To:
  • Subject: [perfsonar-user] bwctl mis-sets CFLAGS with --with-I2util
  • Date: Mon, 6 Apr 2015 16:08:24 -0700

Hi; I'm a maintainer of the Homebrew package management system for OS
X. When building bwctl 1.5.4, running

./configure --with-I2util=/usr/local/opt/i2util

mis-sets CFLAGS; -I/usr/local/opt/include is added to CFLAGS instead
of -I/usr/local/opt/i2util/include. (LDFLAGS is set correctly.)

The patch below resolves the issue.

Thanks,
Tim Smith

diff --git a/configure.ac b/configure.ac
index 0fb66a5..2de2e55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,7 +164,7 @@ else
*) I2util_dir="`pwd`/$I2util_dir" ;;
esac
LDFLAGS="-L$with_I2util/lib $LDFLAGS"
- CFLAGS="-I$I2util_dir/include $CFLAGS"
+ CFLAGS="-I$with_I2util/include $CFLAGS"
fi
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])



Archive powered by MHonArc 2.6.16.

Top of Page