]> icculus.org git repositories - mikachu/openbox.git/blob - configure.ac
use the user friendly desktop number
[mikachu/openbox.git] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([kernel/openbox.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 AC_PATH_PROG([SED], [sed])
10 test "$SED" || AC_MSG_ERROR([sed not found])
11
12 # Determine build target
13 OB_DEBUG
14 # Pick compiler specific/build target flags, and set $CVS
15 OB_COMPILER_FLAGS
16 AC_C_CONST
17 AC_C_INLINE
18
19 if test "$CVS" = "yes"; then
20     AC_PATH_PROG([FLEX], [flex])
21     test "$FLEX" || AC_MSG_ERROR([flex not found])
22
23     AC_PATH_PROG([BISON], [bison])
24     test "BISON" || AC_MSG_ERROR([bison not found])
25 fi
26
27 AC_DISABLE_STATIC
28 AC_LIBTOOL_DLOPEN
29 AC_PROG_LIBTOOL
30 AC_SUBST(LIBTOOL_DEPS)
31 LIBTOOL="$LIBTOOL --silent"
32
33 AC_PROG_INSTALL
34
35 ALL_LINGUAS=""
36 AM_GNU_GETTEXT_VERSION(0.11.5)
37 AM_GNU_GETTEXT([external])
38
39 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
40 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
41 # AC_HEADER_TIME
42 # AC_TYPE_SIGNAL
43
44 PKG_CHECK_MODULES([GLIB], [glib-2.0])
45 AC_SUBST(GLIB_CFLAGS)
46 AC_SUBST(GLIB_LIBS)
47         
48 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
49 AC_SUBST(GMODULE_CFLAGS)
50 AC_SUBST(GMODULE_LIBS)
51
52 PKG_CHECK_MODULES(XFT, [xft])
53 AC_SUBST(XFT_CFLAGS)
54 AC_SUBST(XFT_LIBS)
55
56 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
57   [
58     AC_DEFINE(USE_LIBSN)
59     AC_SUBST(LIBSN_CFLAGS)
60     AC_SUBST(LIBSN_LIBS)
61   ],
62   [
63     no_such_luck=yes
64   ]
65 )
66
67 # Check for X11 extensions
68 X11_EXT_XKB
69 X11_EXT_XRANDR
70 X11_EXT_VIDMODE
71 X11_EXT_SHAPE
72 X11_EXT_XINERAMA
73
74 GL_OPTION
75
76 AC_CONFIG_FILES([Makefile
77                  po/Makefile.in
78                  themes/Makefile
79                  data/Makefile
80                  render/Makefile
81                  kernel/Makefile
82                  plugins/Makefile
83                  plugins/placement/Makefile
84                  plugins/mouse/Makefile
85                  plugins/keyboard/Makefile
86                  plugins/menu/Makefile])
87 AC_OUTPUT
88
89 AC_MSG_RESULT
90 if test "$DEBUG" = "yes"; then
91   AC_MSG_RESULT([Creating a DEBUG build.])
92 else
93   AC_MSG_RESULT([Creating a RELEASE build.])
94 fi
95 AC_MSG_RESULT
96 AC_MSG_RESULT([configure complete, now type \"make\"])