2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 AC_CONFIG_SRCDIR([kernel/openbox.c])
5 AC_PREFIX_DEFAULT([/usr/local])
6 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8 AC_PATH_PROG([SED], [sed])
9 test "$SED" || AC_MSG_ERROR([sed not found])
11 # Determine build target
13 # Pick compiler specific/build target flags, and set $CVS
20 if test "$CVS" = "yes"; then
21 AC_PATH_PROG([FLEX], [flex])
22 test "$FLEX" || AC_MSG_ERROR([flex not found])
24 AC_PATH_PROG([BISON], [bison])
25 test "BISON" || AC_MSG_ERROR([bison not found])
31 AC_SUBST(LIBTOOL_DEPS)
32 LIBTOOL="$LIBTOOL --silent"
37 ## XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ##
39 ##AM_GNU_GETTEXT_VERSION(0.11.5)
40 ##AM_GNU_GETTEXT([external])
41 ## XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ##
43 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
44 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
48 PKG_CHECK_MODULES([GLIB], [glib-2.0])
52 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
53 AC_SUBST(GMODULE_CFLAGS)
54 AC_SUBST(GMODULE_LIBS)
56 PKG_CHECK_MODULES(XFT, xft)
60 # Check for X11 extensions
65 AC_CONFIG_FILES([Makefile build/Makefile.incl])
69 if test "$DEBUG" = "yes"; then
70 AC_MSG_RESULT([Creating a DEBUG build.])
72 AC_MSG_RESULT([Creating a RELEASE build.])
75 AC_MSG_RESULT([configure complete, now type \"make\"])