AC_CHECK_LIB(gnugetopt, getopt_long) dnl -lgnugetopt ( if available )
AC_MSG_CHECKING(which glib config exists)
if test "X${GLIBCONFIG}" = "X"; then
AC_MSG_ERROR(You need the glib development package to continue.
You can get the source from ftp://ftp.gtk.org/pub/gtk/v1.2/
or you can locate it via http://www.gtk.org/download/)
else
AC_MSG_RESULT("using $GLIBCONFIG")
fi
if test x"${LIBNETCONFIG}" = x""; then
dnl The old version of the API REQUIRES $LIBNETCONFIG
dnl so we can only deal with new API unless we have it.
AC_CHECK_LIB(net, libnet_get_hwaddr, [],
[AC_MSG_ERROR(You need libnet to continue. You can get libnet from http://www.packetfactory.net/libnet Note that some RPMs split libnet up into libnet and libnet-devel. In this case you have to install libnet-devel)])