2004-06-24 14:18:37 +00:00
AC_PREREQ(2.52)
2005-10-19 17:14:43 +00:00
AC_INIT(NetworkManager, 0.5.1, dcbw@redhat.com, NetworkManager)
2004-08-24 00:31:47 +00:00
AM_INIT_AUTOMAKE([subdir-objects])
2005-02-14 17:47:59 +00:00
AM_MAINTAINER_MODE
2004-06-24 14:18:37 +00:00
2004-08-29 05:10:16 +00:00
AM_CONFIG_HEADER(config.h)
2004-11-16 02:41:53 +00:00
dnl
dnl Require programs
dnl
2004-06-24 14:18:37 +00:00
AC_PROG_CC
2004-08-24 00:31:47 +00:00
AM_PROG_CC_C_O
2004-11-16 02:41:53 +00:00
AC_PROG_INSTALL
2004-09-29 22:22:05 +00:00
AC_PROG_LIBTOOL
2004-11-16 02:41:53 +00:00
dnl
dnl Required headers
dnl
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
dnl
dnl Checks for typedefs, structures, and compiler characteristics.
dnl
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_HEADER_TIME
dnl
dnl Checks for library functions.
dnl
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(select socket uname)
2005-06-20 17:16:51 +00:00
dnl
dnl translation support
dnl
2004-08-26 19:14:26 +00:00
GETTEXT_PACKAGE=NetworkManager
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
2005-08-27 21:50:15 +00:00
ALL_LINGUAS="bs ca cs da de el en_CA es fr gu hr hu it ja nb ne nl no pa pt_BR rw sk sq sr sr@Latn sv uk wa zh_CN zh_TW"
2005-06-20 17:16:51 +00:00
AC_PROG_INTLTOOL([0.27.2])
2004-08-26 19:14:26 +00:00
AM_GLIB_GNU_GETTEXT
2005-06-10 03:43:15 +00:00
AC_ARG_WITH(distro, AC_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, or slackware]))
2004-08-24 00:31:47 +00:00
if test "z$with_distro" = "z"; then
2004-08-25 20:52:19 +00:00
AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
2005-06-10 03:43:15 +00:00
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
2004-08-25 20:52:19 +00:00
AC_CHECK_FILE(/etc/fedora-release,with_distro="redhat")
AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
2004-09-07 17:56:53 +00:00
AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
2004-08-25 20:52:19 +00:00
fi
2004-11-12 18:49:33 +00:00
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
2004-08-25 20:52:19 +00:00
if test "z$with_distro" = "z"; then
2005-02-13 22:10:03 +00:00
echo "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO"
2004-08-24 00:31:47 +00:00
exit 1
else
case $with_distro in
2005-06-10 03:43:15 +00:00
redhat|suse|gentoo|debian|slackware) ;;
2004-08-24 00:31:47 +00:00
*)
2005-02-13 22:10:03 +00:00
echo "Your distribution (${with_distro}) is not yet supported! (patches welcome)"
2004-08-24 00:31:47 +00:00
exit 1
;;
esac
fi
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_REDHAT, test x"$with_distro" = xredhat)
2005-06-10 03:43:15 +00:00
AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
2004-06-24 14:18:37 +00:00
2005-10-19 15:16:35 +00:00
AC_MSG_CHECKING([for wireless-tools >= 28pre9])
AC_TRY_COMPILE([#include <iwlib.h>],
[#ifndef IWEVGENIE
#error "not found"
#endif],
[ac_have_iwevgenie=yes],
[ac_have_iwevgenie=no])
AC_MSG_RESULT($ac_have_iwevgenie)
if test "$ac_have_iwevgenie" = no; then
AC_MSG_ERROR(wireless-tools >= 28pre9 not installed or not functional)
fi
IWLIB=-liw
2004-06-24 14:18:37 +00:00
AC_SUBST(IWLIB)
2005-01-25 18:21:38 +00:00
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.22)
##### Find out the version of DBUS we're using
dbus_version=`pkg-config --modversion dbus-1`
DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
if test "z$DBUS_VERSION_MAJOR" = "z"; then
DBUS_VERSION_MAJOR="0"
fi
if test "z$DBUS_VERSION_MINOR" = "z"; then
DBUS_VERSION_MINOR="0"
fi
if test "z$DBUS_VERSION_MICRO" = "z"; then
DBUS_VERSION_MICRO="0"
fi
if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
echo "Error: Couldn't determine the version of your DBUS package."
echo " This is probably an error in this script, please report it"
echo " along with the following information:"
echo " Base DBUS version ='$dbus_version'"
echo " DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
echo " DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
echo " DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
exit 1
else
echo "Your dbus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
fi
2005-01-12 18:40:04 +00:00
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)
2005-06-12 14:35:59 +00:00
PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
2005-01-12 18:40:04 +00:00
PKG_CHECK_MODULES(HAL, hal >= 0.2.91)
AC_SUBST(HAL_CFLAGS)
AC_SUBST(HAL_LIBS)
2004-06-24 14:18:37 +00:00
2004-08-05 18:54:29 +00:00
PKG_CHECK_MODULES(GTK, gtk+-2.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0)
AC_SUBST(GDK_PIXBUF_CFLAGS)
AC_SUBST(GDK_PIXBUF_LIBS)
2004-07-19 Dan Williams <dcbw@redhat.com>
* Makefile.am
- Add info-daemon directory
* configure.in
- Check for glade libs and headers
- Add info-daemon directory
* src/NetworkManagerAP.c
- nm_ap_new_from_ap(): Fix bug that resulted in an APs encryption status not getting
copied over to the new AP.
* src/NetworkManagerDbus.c
src/NetworkManagerDbus.h
- Deal with nm_device_ap_list_get_ap()->nm_device_ap_list_get_ap_by_index() change
- Remove nm_dbus_signal_need_key_for_network()
- Add disabled code for asynchronous user wep key callbacks
- Add functions for getting, setting, and cancelling user key operations
- Remove "setKeyForNetwork" device dbus method call, its on NetworkManager object instead
- Add "setKeyForNetwork" dbus method call on NetworkManager object
* src/NetworkManagerDevice.c
src/NetworkManagerDevice.h
- nm_device_update_link_active(): revert changes for wireless link detection, the WEP-key-is-wrong
logic is in device activation now
- nm_device_activate(): for wireless devices, if we can't associate with access point (perhaps
key is wrong) trigger get-user-key pending action
- Implement get-user-key pending action stuff, tie to dbus messages
- Rename nm_device_ap_list_get_ap() -> nm_device_ap_list_get_ap_by_index()
- Add nm_device_ap_list_get_ap_by_essid()
- Instead of copying "best" access points, ref them instead so that the key we set
sticks around
* src/NetworkManagerPolicy.c
- Deal with wrong WEP key, but right access point (and if so, return link_active = TRUE)
- Don't cancel pending actions on a device if its the same device as last iteration
- Only promote pending_device->active_device if activation was successfull
* src/Makefile.am
- Rename nmclienttest->nmtest
* info-daemon/Makefile.am
info-daemon/NetworkManagerInfo.c
info-daemon/NetworkManagerInfo.h
info-daemon/NetworkManagerInfoDbus.c
info-daemon/NetworkManagerInfoDbus.h
info-daemon/passphrase.glade
info-daemon/NetworkManagerInfo.conf
info-daemon/keyring.png
- Import sources for info-daemon, which pops up dialog for passphrase/key when
NetworkManager asks for it, and also will (soon) provide "allowed" access point
lists to NetworkManager by proxying user's GConf
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@16 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-07-19 06:08:52 +00:00
PKG_CHECK_MODULES(GLADE, libglade-2.0)
AC_SUBST(GLADE_CFLAGS)
AC_SUBST(GLADE_LIBS)
2004-07-22 05:17:36 +00:00
PKG_CHECK_MODULES(GCONF, gconf-2.0)
AC_SUBST(GCONF_CFLAGS)
AC_SUBST(GCONF_LIBS)
2004-12-01 22:34:35 +00:00
PKG_CHECK_MODULES(GNOME_KEYRING, gnome-keyring-1)
AC_SUBST(GNOME_KEYRING_CFLAGS)
AC_SUBST(GNOME_KEYRING_LIBS)
2004-08-29 05:10:16 +00:00
2005-02-13 22:10:03 +00:00
AC_ARG_WITH(gcrypt, AC_HELP_STRING([--with-gcrypt], [Use gcrypt library]), ac_gcrypt=$withval, ac_gcrypt=auto)
2004-08-29 05:10:16 +00:00
if test x"$ac_gcrypt" != xno; then
AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
else
LIBGCRYPT_CONFIG=no
fi
if test x"$LIBGCRYPT_CONFIG" = xno; then
if test x"$ac_gcrypt" = xyes; then
AC_MSG_ERROR([gcrypt explicitly requested but not found on system])
fi
ac_gcrypt=no
else
if test x"$ac_gcrypt" != xno; then
AC_DEFINE(HAVE_GCRYPT, 1, [Define if you have libgcrypt])
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
AC_SUBST(LIBGCRYPT_CFLAGS)
AC_SUBST(LIBGCRYPT_LIBS)
fi
fi
AM_CONDITIONAL(WITH_GCRYPT, test x"$ac_gcrypt" != xno)
2004-07-28 02:49:33 +00:00
2005-01-24 19:23:04 +00:00
PKG_CHECK_MODULES(PANEL_APPLET, libpanelapplet-2.0)
AC_SUBST(PANEL_APPLET_CFLAGS)
AC_SUBST(PANEL_APPLET_LIBS)
2004-08-06 18:19:06 +00:00
2004-08-06 15:37:43 +00:00
PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
2005-02-13 22:10:03 +00:00
AC_SUBST(LIBGNOMEUI_CFLAGS) # is this even needed? it was typed incorrectly before
2004-08-06 15:37:43 +00:00
AC_SUBST(LIBGNOMEUI_LIBS)
2005-02-13 22:10:03 +00:00
AC_ARG_WITH(dbus-sys, AC_HELP_STRING([--with-dbus-sys=DIR], [where D-BUS system.d directory is]))
2004-07-28 18:04:23 +00:00
if ! test -z "$with_dbus_sys" ; then
DBUS_SYS_DIR="$with_dbus_sys"
else
2004-08-13 15:59:47 +00:00
DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
2004-07-28 18:04:23 +00:00
fi
AC_SUBST(DBUS_SYS_DIR)
AC_DEFINE_UNQUOTED(DBUS_SYSTEMD_DIR, "$DBUS_SYS_DIR", [Where system.d dir for DBUS is])
2005-08-29 17:43:31 +00:00
AC_ARG_WITH(dhcdbd, AC_HELP_STRING([--with-dhcdbd=/path/to/dhcdbd], [path to dhcdbd]))
if test "x${with_dhcdbd}" = x; then
2005-08-16 17:27:48 +00:00
AC_PATH_PROG(DHCDBD_BINARY_PATH, dhcdbd, [], $PATH:/sbin:/usr/sbin)
if ! test -x "$DHCDBD_BINARY_PATH"; then
2005-05-15 13:34:41 +00:00
AC_MSG_ERROR(dhcdbd was not installed. See http://people.redhat.com/jvdias/dhcdbd)
2005-08-16 17:27:48 +00:00
fi
2005-08-29 17:43:31 +00:00
else
DHCDBD_BINARY_PATH="$with_dhcdbd"
2005-05-15 13:34:41 +00:00
fi
2005-08-29 17:43:31 +00:00
AC_DEFINE_UNQUOTED(DHCDBD_BINARY_PATH, "$DHCDBD_BINARY_PATH", [Define to path of dhcdbd binary])
2005-05-15 13:34:41 +00:00
AC_SUBST(DHCDBD_BINARY_PATH)
2004-09-29 22:22:05 +00:00
#### find the actual value for $prefix that we'll end up with
## (I know this is broken and should be done in the Makefile, but
## that's a major pain and almost nobody actually seems to care)
REAL_PREFIX=
if test "x$prefix" = "xNONE"; then
REAL_PREFIX=$ac_default_prefix
else
REAL_PREFIX=$prefix
fi
## temporarily change prefix and exec_prefix
old_prefix=$prefix
prefix=$REAL_PREFIX
if test "x$exec_prefix" = xNONE ; then
REAL_EXEC_PREFIX=$REAL_PREFIX
else
REAL_EXEC_PREFIX=$exec_prefix
fi
old_exec_prefix=$exec_prefix
exec_prefix=$REAL_EXEC_PREFIX
BINDIR_TMP="$bindir"
EXPANDED_BINDIR=`eval echo $BINDIR_TMP`
AC_SUBST(EXPANDED_BINDIR)
AC_DEFINE_UNQUOTED(EXPANDED_BINDIR, "$EXPANDED_BINDIR", [Where the executables are installed])
## put prefix and exec_prefix back
prefix=$old_prefix
exec_prefix=$old_exec_prefix
2004-12-01 22:45:10 +00:00
AC_ARG_ENABLE(more-warnings,
2005-02-13 22:10:03 +00:00
AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]),
2004-12-01 22:45:10 +00:00
set_more_warnings="$enableval",[
if test -d "$srcdir/{arch}" || test -d "$srcdir/CVS"; then
set_more_warnings=yes
else
set_more_warnings=no
fi
])
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
CFLAGS="-Wall -Werror -std=gnu89 $CFLAGS"
2005-10-07 17:57:10 +00:00
for option in -Wno-unused -Wno-sign-compare -Wno-pointer-sign \
-Wdeclaration-after-statement -Wstrict-prototypes \
2005-10-07 19:11:55 +00:00
-Wmissing-prototypes -Wmissing-declarations \
-Wno-strict-aliasing; do
2004-12-01 22:45:10 +00:00
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
AC_TRY_COMPILE([], [],
has_option=yes,
has_option=no,)
if test $has_option = no; then
CFLAGS="$SAVE_CFLAGS"
fi
AC_MSG_RESULT($has_option)
unset has_option
unset SAVE_CFLAGS
done
unset option
else
AC_MSG_RESULT(no)
fi
2004-06-24 14:18:37 +00:00
AC_OUTPUT([
Makefile
2005-03-09 16:39:15 +00:00
utils/Makefile
2004-06-24 14:18:37 +00:00
src/Makefile
2005-04-15 15:43:42 +00:00
src/named-manager/Makefile
src/vpn-manager/Makefile
2005-05-03 Dan Williams <dcbw@redhat.com>
* Kill dhcpcd. We now use "dhcdbd", a dbus daemon that controls dhclient.
This means that NetworkManager shouldn't have DHCP issues anymore. It also
means you need dhcdbd, which you can get here (get the latest one):
http://people.redhat.com/jvdias/dhcdbd/
Technically NetworkManager can use any DHCP daemon that uses the same DBUS
interface as dhcdbd.
* Rewrite device activation to facilitate the new DHCP infrastructure and
future improvements. Its now "activation request" based, ie there is a single
activation request composed of the device, access point, and other info which
follows the entire activation process. There are 5 stages of the activation
process which correspond to:
1) Device preparation
2) Device configuration (bring it up, set ESSID/Key/etc)
3) IP Config Start (fire off DHCP if we're using it)
4) IP Config Get (grab config from DHCP or static config files)
5) IP Config Commit (set device's IP address, DNS, etc)
Note that there is no longer a "scanning" step, since the access point must
be known _before_ activation starts. If the access point drops out or does
not exist for some reason, the entire activation process fails and must be
restarted for a different access point or device.
Patch from Bill Moss:
* gnome/applet/applet.c
- Fix type of vpn_failure dialog -> vpn_banner dialog
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@597 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-03 20:41:36 +00:00
src/dhcp-manager/Makefile
2005-04-15 15:43:42 +00:00
src/backends/Makefile
2004-06-24 17:55:51 +00:00
dispatcher-daemon/Makefile
2005-04-27 18:05:16 +00:00
gnome/Makefile
gnome/applet/Makefile
gnome/applet/icons/Makefile
gnome/libnm_glib/libnm_glib.pc
gnome/libnm_glib/Makefile
2005-06-12 14:35:59 +00:00
gnome/vpn-properties/Makefile
2004-06-24 17:55:51 +00:00
test/Makefile
2004-06-24 14:18:37 +00:00
initscript/Makefile
2004-08-25 21:00:21 +00:00
initscript/RedHat/Makefile
2005-08-18 19:51:11 +00:00
initscript/RedHat/NetworkManager
initscript/RedHat/NetworkManagerDispatcher
2004-08-25 21:00:21 +00:00
initscript/Gentoo/Makefile
2005-08-18 19:51:11 +00:00
initscript/Gentoo/NetworkManager
2004-09-07 17:22:04 +00:00
initscript/Debian/Makefile
2004-09-07 17:56:53 +00:00
initscript/Slackware/Makefile
2005-06-15 11:59:43 +00:00
initscript/SUSE/Makefile
2005-08-18 19:51:11 +00:00
initscript/SUSE/networkmanager
2004-08-26 19:14:26 +00:00
po/Makefile.in
2004-09-02 02:30:03 +00:00
NetworkManager.pc
2004-06-24 14:18:37 +00:00
])
2004-08-25 20:52:19 +00:00
echo
2004-11-12 18:49:33 +00:00
echo Distribution targeting: ${with_distro}
2005-02-13 22:10:03 +00:00
echo 'if this is not correct, please specifiy your distro with --with-distro=DISTRO'