-AC_ARG_ENABLE(python,
- AS_HELP_STRING([--disable-python], [Disable scripts that depends on python]),
- [case "${enableval}" in
- yes) HAVE_PYTHON=yes ;;
- no) HAVE_PYTHON=no ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;;
- esac],[HAVE_PYTHON=yes])
-
-HAVE_PYTHON_DBUS=no
-HAVE_PYGTK=no
-
-if test "x$HAVE_PYTHON" = "xyes" ; then
- AM_PATH_PYTHON([2.4])
-
- AC_ARG_ENABLE(pygtk,
- AS_HELP_STRING([--disable-pygtk],[Disable use of GTK in Python]),
- [case "${enableval}" in
- yes) HAVE_PYGTK=yes ;;
- no) HAVE_PYGTK=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-pygtk) ;;
- esac],
- [HAVE_PYGTK=yes])
-
- if test "x$HAVE_PYGTK" = "xyes" ; then
- AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module gtk)])
- fi
-
-
- AC_ARG_ENABLE(python-dbus,
- AS_HELP_STRING([--disable-python-dbus],[Disable use of D-BUS in Python]),
- [case "${enableval}" in
- yes) HAVE_PYTHON_DBUS=yes ;;
- no) HAVE_PYTHON_DBUS=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-python-dbus) ;;
- esac],
- [HAVE_PYTHON_DBUS=yes])
-
- if test "x$HAVE_PYTHON_DBUS" = "xyes"; then
- AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)])
- fi
-
- AM_CHECK_PYMOD(socket,,,[AC_MSG_ERROR(Could not find Python module socket)])
- AM_CHECK_PYMOD(gdbm,,,[AC_MSG_ERROR(Could not find Python module gdbm)])
+AC_MSG_CHECKING(for struct lifconf)
+AC_CACHE_VAL(catta_cv_has_struct_lifconf,
+[AC_TRY_COMPILE(
+[#include <sys/socket.h>
+#include <net/if.h>
+],[sizeof (struct lifconf);],
+catta_cv_has_struct_lifconf=yes,catta_cv_has_struct_lifconf=no)])
+AC_MSG_RESULT($catta_cv_has_struct_lifconf)
+if test $catta_cv_has_struct_lifconf = yes; then
+ AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.])