2 AC_INIT([openbox], [3.0-alpha4], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([kernel/openbox.c])
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
9 AC_PATH_PROG([SED], [sed])
10 test "$SED" || AC_MSG_ERROR([sed not found])
12 # Determine build target
14 # Pick compiler specific/build target flags, and set $CVS
23 AC_SUBST(LIBTOOL_DEPS)
24 LIBTOOL="$LIBTOOL --silent"
29 AM_GNU_GETTEXT_VERSION(0.12.1)
30 AM_GNU_GETTEXT([external])
32 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
33 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
37 PKG_CHECK_MODULES([GLIB], [glib-2.0])
41 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
42 AC_SUBST(GMODULE_CFLAGS)
43 AC_SUBST(GMODULE_LIBS)
45 PKG_CHECK_MODULES(XFT, [xft])
49 PKG_CHECK_MODULES(XML, [libxml-2.0])
53 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
55 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
56 AC_SUBST(LIBSN_CFLAGS)
64 PKG_CHECK_MODULES(GTK, [gtk+-2.0],
70 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0],
72 AC_SUBST(GDK_PIXBUF_CFLAGS)
73 AC_SUBST(GDK_PIXBUF_LIBS)
78 AC_MSG_WARN([disabling build of the configuration tool])
84 AC_MSG_WARN([disabling build of the configuration tool])
87 AM_CONDITIONAL(OBCONF,
88 [test "$use_gtk" = "yes" && test "$use_gdk_pixbuf" = "yes"])
90 # Check for session management
97 # Check for X11 extensions
112 AC_MSG_RESULT([configure complete, now type \"make\"])