Carlo Marcelo Arenas Belon wrote:
On Thu, Nov 29, 2007 at 09:56:14AM -0500, Jesse Becker wrote:
I'm no expert on autoconf, but I think that this small patch fixes this problem on OpenBSD:--- configure.in.orig Wed Nov 28 16:34:39 2007 +++ configure.in Wed Nov 28 16:53:16 2007
we are going to have to probably put that conditionally for OpenBSD to avoid pulling extra dependencies for other platforms that might not need it.
I did a little digging, and I think that both FreeBSD and NetBSD have similar dependencies on libintl and libiconv. With that in mind, here's an updated patch:
--- configure.in (revision 894)
+++ configure.in (working copy)
@@ -339,9 +339,17 @@
echo Checking for confuse
if test x"$libconfusepath" != x && test x"$libconfusepath" != xyes ; then
CFLAGS="$CFLAGS -I$libconfusepath/include"
- LDFLAGS="$LDFLAGS -L$libconfusepath/lib"
echo "Added -I$libconfusepath/include to CFLAGS"
- echo "Added -L$libconfusepath/lib to LDLAGS"
+
+ case "$host" in
+ *bsd*) LDFLAGS="$LDFLAGS -L$libconfusepath/lib -lintl -liconv"
+ echo "Added -L$libconfusepath/lib -lintl -liconv to
LDLAGS"
+ ;;
+ *) LDFLAGS="$LDFLAGS -L$libconfusepath/lib"
+ echo "Added -L$libconfusepath/lib -lintl -liconv to
LDLAGS"
+ ;;
+ esac
+
fi
AC_CHECK_LIB(confuse, cfg_parse)
if test $ac_cv_lib_confuse_cfg_parse = yes; then
--
Jesse Becker
NHGRI Linux support (Digicon Contractor)
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ Ganglia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-developers
