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