show what letters do what for the button order
[dana/obconf.git] / configure.ac
1 AC_PREREQ([2.54])
2 AC_INIT([obconf], [2.0.3], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([src/main.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 # Pick compiler specific/build target flags, and set $CVS
10 AM_PROG_CC_C_O
11 AC_C_CONST
12 AC_C_INLINE
13
14 AC_PROG_INSTALL
15
16 CHECK_EXPORT_DYNAMIC
17 LDFLAGS="$LDFLAGS $EXPORT_DYNAMIC_FLAGS"
18
19 ALL_LINGUAS=""
20 AM_GNU_GETTEXT_VERSION(0.15)
21 AM_GNU_GETTEXT([external])
22
23 PKG_CHECK_MODULES(OPENBOX, [obrender-3.0 >= 3.4.2 obparser-3.0 >= 3.4.2])
24 AC_SUBST(OPENBOX_CFLAGS)
25 AC_SUBST(OPENBOX_LIBS)
26
27 PKG_CHECK_MODULES(LIBSTARTUPNOTIFICATION, [libstartup-notification-1.0])
28 AC_SUBST(LIBSTARTUPNOTIFICATION_CFLAGS)
29 AC_SUBST(LIBSTARTUPNOTIFICATION_LIBS)
30
31 PKG_CHECK_MODULES(GTK, [gtk+-2.0])
32 AC_SUBST(GTK_CFLAGS)
33 AC_SUBST(GTK_LIBS)
34
35 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0])
36 AC_SUBST(GDK_PIXBUF_CFLAGS)
37 AC_SUBST(GDK_PIXBUF_LIBS)
38
39 PKG_CHECK_MODULES(GLADE, [libglade-2.0])
40 AC_SUBST(GLADE_CFLAGS)
41 AC_SUBST(GLADE_LIBS)
42
43 AC_CHECK_PROG(TAR, [tar], [yes], [no])
44 if test "$TAR" = "no"; then
45   AC_MSG_ERROR([Unable to find the tar command.])
46 fi
47
48 AC_CHECK_PROG(GZIP, [gzip], [yes], [no])
49 if test "$GZIP" = "no"; then
50   AC_MSG_ERROR([Unable to find the gzip command.])
51 fi
52
53 AC_CHECK_PROG(GUNZIP, [gunzip], [yes], [no])
54 if test "$GUNZIP" = "no"; then
55   AC_MSG_ERROR([Unable to find the gunzip command.])
56 fi
57
58 AC_CONFIG_FILES([
59   Makefile
60   po/Makefile.in
61 ])
62 AC_OUTPUT
63
64 AC_MSG_RESULT
65 AC_MSG_RESULT([configure complete, now type \"make\"])