[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Check for boost_graph library
From: |
Johan Oudinet |
Subject: |
Check for boost_graph library |
Date: |
Wed, 28 May 2008 17:34:54 +0200 |
Hello,
I use the Boost Graph Library (BGL) for my software, and I link to the
boost_graph library.
I already use a m4 macro - from autoconf-archive - to check if the BGL
headers are present, but this macro doesn't link to libboost_graph.a
I tried this:
# Boost headers (from autoconf-archive)
AX_BOOST_BASE([1.33])
# Boost graph library
AC_LANG_PUSH(C++)
AC_CHECK_LIB([boost_graph], [read_graphviz], , AC_MSG_ERROR([This
package needs libboost_graph]))
AC_LANG_POP
Unfortunately, the generated code is wrong (since it doesn't use the
right signature for read_graphviz).
Any idea ?
Regards,
--
Johan
- Check for boost_graph library,
Johan Oudinet <=