]> Dogcows Code - chaz/openbox/blob - configure.ac
engine builds
[chaz/openbox] / configure.ac
1 AC_PREREQ([2.50])
2 AC_INIT([openbox], [2.90.0cvs], [http://bugzilla.icculus.org])
3 # AC_CONFIG_HEADERS(config.h)
4 AC_LANG([C])
5 AC_ENABLE_STATIC([no])
6 AC_ENABLE_SHARED([yes])
7
8 AC_PREFIX_DEFAULT([/usr/local])
9 test "$prefix" = "NONE" && prefix=$ac_default_prefix
10
11 ##AM_INIT_AUTOMAKE([openbox], [2.90.0cvs])
12
13 AC_PATH_PROG([SED], [sed])
14 test "$SED" || AC_MSG_ERROR([sed not found])
15
16 ##AM_MAINTAINER_MODE
17 # Determine build target
18 OB_DEBUG
19 # Pick compiler specific/build target flags, and set $CVS
20 OB_COMPILER_FLAGS
21 AC_C_CONST
22 AC_C_INLINE
23
24 PKG_CHECK_MODULES([GLIB], [glib-2.0])
25 AC_SUBST(GLIB_CFLAGS)
26 AC_SUBST(GLIB_LIBS)
27
28 PKG_CHECK_MODULES([GMODULE], [gmodule-2.0])
29 AC_SUBST(GMODULE_CFLAGS)
30 AC_SUBST(GMODULE_LIBS)
31
32 AC_PATH_PROG([FLEX], [flex])
33 test "$FLEX" || AC_MSG_ERROR([flex not found])
34
35 AC_PATH_PROG([BISON], [bison])
36 test "BISON" || AC_MSG_ERROR([bison not found])
37
38 AC_PROG_LIBTOOL
39 LIBTOOL="$LIBTOOL --silent"
40 AC_PROG_INSTALL
41
42 ##ALL_LINGUAS=""
43 ##AM_GNU_GETTEXT_VERSION(0.11.5)
44 ##AM_GNU_GETTEXT([external])
45
46 AC_CHECK_HEADERS(ctype.h fcntl.h locale.h signal.h string.h stdio.h stdlib.h)
47 AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
48 # AC_HEADER_TIME
49 # AC_TYPE_SIGNAL
50
51 PKG_CHECK_MODULES(XFT, xft)
52 AC_SUBST(XFT_CFLAGS)
53 AC_SUBST(XFT_LIBS)
54
55 # Check for X11 extensions
56 X11_EXT_XKB
57 X11_EXT_SHAPE
58 X11_EXT_XINERAMA
59
60 AC_CONFIG_FILES([build/Makefile.incl])
61 # po/Makefile.in
62 # kernel/Makefile
63 # render/Makefile
64 # engines/Makefile
65 # engines/openbox/Makefile
66 # plugins/Makefile
67 # plugins/keyboard/Makefile
68 # plugins/mouse/Makefile
69 # plugins/placement/Makefile
70 # doc/Makefile
71 # doc/doxygen/Makefile
72 # data/Makefile
73 # data/buttons/Makefile
74 # themes/Makefile
75 # themes/openbox/Makefile])
76 AC_OUTPUT
77
78 AC_MSG_RESULT
79 AC_MSG_RESULT([$PACKAGE_NAME version $PACKAGE_VERSION configured successfully.])
80
81 AC_MSG_RESULT
82 if test "$DEBUG" = "yes"; then
83 AC_MSG_RESULT([Creating a DEBUG build.])
84 else
85 AC_MSG_RESULT([Creating a RELEASE build.])
86 fi
87 AC_MSG_RESULT
88 AC_MSG_RESULT([configure complete, now type \"make\"])
This page took 0.034446 seconds and 4 git commands to generate.