]> Dogcows Code - chaz/openbox/blob - configure.ac
well, i pinpointed the problem code that causes the fonts to be cut off, but this...
[chaz/openbox] / configure.ac
1 AC_PREREQ([2.54])
2 AC_INIT([openbox], [3.2], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([openbox/openbox.c])
5
6 dnl Making releases:
7 dnl OB_MICRO_VERSION += 1;
8 dnl OB_INTERFACE_AGE += 1;
9 dnl OB_BINARY_AGE += 1;
10 dnl if any functions have been added, set OB_INTERFACE_AGE to 0.
11 dnl if backwards compatibility has been broken,
12 dnl set OB_BINARY_AGE and OB_INTERFACE_AGE to 0.
13 dnl
14 dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match
15 dnl
16 OB_MAJOR_VERSION=3
17 OB_MINOR_VERSION=0
18 OB_MICRO_VERSION=2
19 OB_INTERFACE_AGE=0
20 OB_BINARY_AGE=1
21 OB_VERSION=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
22
23 AC_SUBST(OB_MAJOR_VERSION)
24 AC_SUBST(OB_MINOR_VERSION)
25 AC_SUBST(OB_MICRO_VERSION)
26 AC_SUBST(OB_INTERFACE_AGE)
27 AC_SUBST(OB_BINARY_AGE)
28 AC_SUBST(OB_VERSION)
29
30 dnl Libtool versioning
31 LT_RELEASE=$OB_MAJOR_VERSION.$OB_MINOR_VERSION
32 LT_CURRENT=`expr $OB_MICRO_VERSION - $OB_INTERFACE_AGE`
33 LT_REVISION=$OB_INTERFACE_AGE
34 LT_AGE=`expr $OB_BINARY_AGE - $OB_INTERFACE_AGE`
35 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
36
37 AC_SUBST(LT_RELEASE)
38 AC_SUBST(LT_CURRENT)
39 AC_SUBST(LT_REVISION)
40 AC_SUBST(LT_AGE)
41 AC_SUBST(LT_CURRENT_MINUS_AGE)
42
43 AC_PREFIX_DEFAULT([/usr/local])
44 test "$prefix" = "NONE" && prefix=$ac_default_prefix
45
46 dnl Determine build target
47 OB_DEBUG
48 dnl Pick compiler specific/build target flags, and set $CVS
49 AM_PROG_CC_C_O
50 OB_COMPILER_FLAGS
51 AC_C_CONST
52 AC_C_INLINE
53
54 AC_PROG_LIBTOOL
55 AC_SUBST(LIBTOOL_DEPS)
56 LIBTOOL="$LIBTOOL --silent"
57
58 AC_PROG_INSTALL
59
60 AM_GNU_GETTEXT_VERSION(0.12.1)
61 AM_GNU_GETTEXT([external])
62
63 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
64 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
65 # AC_HEADER_TIME
66 # AC_TYPE_SIGNAL
67
68 AC_PATH_PROG([SED], [sed], [no])
69 if test "$SED" = "no"; then
70 AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.])
71 fi
72
73 PKG_CHECK_MODULES([GLIB], [glib-2.0])
74 AC_SUBST(GLIB_CFLAGS)
75 AC_SUBST(GLIB_LIBS)
76
77 AC_ARG_ENABLE(pango,
78 AC_HELP_STRING(
79 [--enable-pango],
80 [enable the pango library for better display of international fonts. [[default=no]]]
81 ),
82 [enable_pango=yes],
83 [enable_pango=no]
84 )
85
86 if test "$enable_pango" = yes; then
87 PKG_CHECK_MODULES([PANGO], [pango pangoxft],
88 [
89 AC_DEFINE(USE_PANGO, [1], [Use Pango])
90 AC_SUBST(PANGO_CFLAGS)
91 AC_SUBST(PANGO_LIBS)
92 pango_found=yes
93 ],
94 pango_found=no
95 )
96 else
97 pango_found=no
98 fi
99
100 PKG_CHECK_MODULES(XFT, [xft])
101 AC_SUBST(XFT_CFLAGS)
102 AC_SUBST(XFT_LIBS)
103
104 PKG_CHECK_MODULES(XML, [libxml-2.0])
105 AC_SUBST(XML_CFLAGS)
106 AC_SUBST(XML_LIBS)
107
108 AC_ARG_ENABLE(startup-notification,
109 AC_HELP_STRING(
110 [--disable-startup-notification],
111 [disable the startup notification library. [[default=yes]]]
112 ),
113 [enable_sn=no],
114 [enable_sn=yes]
115 )
116
117 if test "$enable_sn" = yes; then
118 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
119 [
120 AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
121 AC_SUBST(LIBSN_CFLAGS)
122 AC_SUBST(LIBSN_LIBS)
123 sn_found=yes
124 ],
125 [
126 sn_found=no
127 ]
128 )
129 else
130 sn_found=no
131 fi
132
133 dnl Check for session management
134 X11_SM
135
136 #EFENCE_LIBS=-lefence
137 EFENCE_LIBS=""
138 AC_SUBST(EFENCE_LIBS)
139
140 dnl Check for X11 extensions
141 X11_EXT_XKB
142 X11_EXT_XRANDR
143 X11_EXT_VIDMODE
144 X11_EXT_SHAPE
145 X11_EXT_XINERAMA
146
147 AC_CONFIG_FILES([
148 Makefile
149 m4/Makefile
150 po/Makefile.in
151 render/obrender-3.0.pc
152 parser/obparser-3.0.pc
153 version.h
154 ])
155 AC_OUTPUT
156
157 AC_MSG_RESULT
158 AC_MSG_RESULT([Compiling with these options:
159 Pango... $pango_found
160 Startup Notification... $sn_found
161 Session Management... $SM
162 ])
163 AC_MSG_RESULT([configure complete, now type "make"])
This page took 0.040352 seconds and 4 git commands to generate.