-if test "$ethereal" = true; then
- AC_CACHE_CHECK([whether the Ethereal headers are broken],
- [mdw_cv_ethereal_buggered], [
- CFLAGS="$GLIB_CFLAGS $i"
- AC_TRY_COMPILE([
-#include <netinet/in.h>
-#include <glib.h>
-#include <epan/packet.h>
-#include <plugins/plugin_api.h>
-], [
- G_MODULE_EXPORT void plugin_init(plugin_address_table_t *pat)
- {
- plugin_address_table_init(pat);
- }
- ], [mdw_cv_ethereal_buggered=no], [mdw_cv_ethereal_buggered=yes])
- CFLAGS=$mdw_CFLAGS
- ])
- if test $mdw_cv_ethereal_buggered = yes; then
- AC_DEFINE(ETHEREAL_BUGGERED)
- fi
-
- ETHEREAL_CFLAGS="$CFLAGS $GLIB_CFLAGS $mdw_cv_ethereal_includes"
- AC_SUBST(ETHEREAL_CFLAGS)
- AC_SUBST(ETHEREAL_PLUGIN_DIR)
- DIRS="$DIRS ethereal"
+if test "$wireshark" = true; then
+ WIRESHARK_CFLAGS="$CFLAGS $GLIB_CFLAGS $mdw_cv_wireshark_includes"
+ AC_SUBST(WIRESHARK_CFLAGS)
+ AC_SUBST(WIRESHARK_PLUGIN_DIR)
+ DIRS="$DIRS wireshark"