blob: d94e253b561347cb40088f94295a468a03509649 [file] [log] [blame]
#!/bin/sh
# this shell script is designed to merely dump the configuration
# information about how the net-snmp package was compiled. The
# information is particularily useful for applications that need to
# link against the net-snmp libraries and hence must know about any
# other libraries that must be linked in as well.
if test "x$1" = "x"; then
usage="yes"
else
case $1 in
--cflags)
echo @CFLAGS@
;;
--agent-libs)
# should be different some day
echo @AGENTLIBS@
;;
--libs)
echo @LIBS@
;;
--version)
echo @VERSION@
;;
--help)
usage="yes"
;;
--prefix)
echo @prefix@
;;
--exec-prefix)
echo @exec-prefix@
;;
*)
echo "unknown option $1"
usage="yes"
;;
esac
fi
if test "x$usage" = "xyes"; then
echo ""
echo "Usage:"
echo " net-snmp-config [--cflags] [--agent-libs] [--libs] [--version]"
echo ""
echo "You can then compile agent subagents using something like:"
echo ' cc -o mysubagent mysubagent.c `net-snmp-config --agent-libs`'
echo ""
fi