2 AC_INIT([openbox], [3.999.0], [http://bugzilla.icculus.org])
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
7 dnl RR_MICRO_VERSION += 1;
8 dnl RR_INTERFACE_AGE += 1;
10 dnl if any functions have been added, set RR_INTERFACE_AGE to 0.
11 dnl if backwards compatibility has been broken,
12 dnl set RR_BINARY_AGE and RR_INTERFACE_AGE to 0.
14 dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
21 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
28 OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
30 AC_SUBST(RR_MAJOR_VERSION)
31 AC_SUBST(RR_MINOR_VERSION)
32 AC_SUBST(RR_MICRO_VERSION)
33 AC_SUBST(RR_INTERFACE_AGE)
34 AC_SUBST(RR_BINARY_AGE)
36 AC_SUBST(OBT_MAJOR_VERSION)
37 AC_SUBST(OBT_MINOR_VERSION)
38 AC_SUBST(OBT_MICRO_VERSION)
39 AC_SUBST(OBT_INTERFACE_AGE)
40 AC_SUBST(OBT_BINARY_AGE)
43 dnl Libtool versioning
44 RR_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION
45 RR_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE`
46 RR_REVISION=$RR_INTERFACE_AGE
47 RR_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE`
48 RR_CURRENT_MINUS_AGE=`expr $RR_CURRENT - $RR_AGE`
50 OBT_RELEASE=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION
51 OBT_CURRENT=`expr $OBT_MICRO_VERSION - $OBT_INTERFACE_AGE`
52 OBT_REVISION=$OBT_INTERFACE_AGE
53 OBT_AGE=`expr $OBT_BINARY_AGE - $OBT_INTERFACE_AGE`
54 OBT_CURRENT_MINUS_AGE=`expr $OBT_CURRENT - $OBT_AGE`
60 AC_SUBST(RR_CURRENT_MINUS_AGE)
63 AC_SUBST(OBT_REVISION)
65 AC_SUBST(OBT_CURRENT_MINUS_AGE)
67 AC_PREFIX_DEFAULT([/usr/local])
68 test "$prefix" = "NONE" && prefix=$ac_default_prefix
70 dnl Determine build target
72 dnl Pick compiler specific/build target flags, and set $CVS
79 AC_SUBST(LIBTOOL_DEPS)
80 LIBTOOL="$LIBTOOL --silent"
84 AM_GNU_GETTEXT_VERSION(0.15)
85 AM_GNU_GETTEXT([external])
87 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
88 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
92 AC_PATH_PROG([SED], [sed], [no])
93 if test "$SED" = "no"; then
94 AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.])
97 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.14.0])
101 PKG_CHECK_MODULES(PANGO, [pango >= 1.8.0 pangoxft >= 1.8.0])
102 AC_SUBST(PANGO_CFLAGS)
105 PKG_CHECK_MODULES(XML, [libxml-2.0 >= 2.6.0])
109 AC_ARG_ENABLE(startup-notification,
111 [--disable-startup-notification],
112 [disable the startup notification library. [[default=enabled]]]
114 [enable_sn=$enableval],
118 if test "$enable_sn" = yes; then
119 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0 >= 0.8],
121 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
122 AC_SUBST(LIBSN_CFLAGS)
134 AC_ARG_ENABLE(xcursor,
137 [disable use of the X Cursor library. [[default=enabled]]]
139 [enable_xcursor=$enableval],
143 if test "$enable_xcursor" = yes; then
144 PKG_CHECK_MODULES(XCURSOR, [xcursor],
146 AC_DEFINE(USE_XCURSOR, [1], [Use X Cursor library])
147 AC_SUBST(XCURSOR_CFLAGS)
148 AC_SUBST(XCURSOR_LIBS)
159 dnl Check for session management
162 #EFENCE_LIBS=-lefence
164 AC_SUBST(EFENCE_LIBS)
166 dnl Check for X11 extensions
177 render/obrender-4.0.pc
182 AC_CONFIG_COMMANDS([doc],
183 [test -d doc || mkdir doc])
184 AC_CONFIG_COMMANDS([data],
185 [test -d data || mkdir data])
186 AC_CONFIG_COMMANDS([data/xsession],
187 [test -d data/xsession || mkdir data/xsession])
191 AC_MSG_RESULT([Compiling with these options:
192 Startup Notification... $sn_found
193 X Cursor Library... $xcursor_found
194 Session Management... $SM
196 AC_MSG_RESULT([configure complete, now type "make"])