source: trunk/third/acme/configure.in @ 18822

Revision 18822, 2.6 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18821, which included commits to RCS files with non-trunk default branches.
Line 
1AC_PREREQ(2.52)
2AC_INIT(acme, 2.0.2, http://bugzilla.gnome.org/enter_bug.cgi?product=acme)
3AC_CONFIG_SRCDIR(src/acme.c)
4AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
5AM_CONFIG_HEADER(config.h)
6
7AC_DEFINE(PACKAGE, AC_PACKAGE_NAME, [package name])
8AC_DEFINE(VERSION, AC_PACKAGE_VERSION, [package version])
9AC_DEFINE(GETTEXT_PACKAGE, "AC_PACKAGE_NAME", [foo])
10GETTEXT_PACKAGE=AC_PACKAGE_NAME
11AC_SUBST(GETTEXT_PACKAGE)
12
13AC_PROG_INTLTOOL([0.20])
14
15GOB2_CHECK()
16
17PKG_CHECK_MODULES(EXTRA_GNOME, libgnomeui-2.0 libglade-2.0 libwnck-1.0 >= 2.1.5)
18AC_SUBST(EXTRA_GNOME_CFLAGS)
19AC_SUBST(EXTRA_GNOME_LIBS)
20
21AC_MSG_CHECKING(for l33tness)
22if test "`uname -n`x" = "dozox" ; then
23        AC_MSG_RESULT(l33t like h4d3zZ)
24else
25        AC_MSG_RESULT(l4m3)
26fi
27
28AC_PATH_PROG(GCONFTOOL, gconftool-2)
29AM_GCONF_SOURCE_2
30
31dnl
32dnl Test for Audio interfaces and FB-Level compatibility
33dnl
34have_oss=no
35AC_TRY_COMPILE([
36        #ifdef __NetBSD__
37        #include <soundcard.h>
38        #else
39        #include <sys/soundcard.h>
40        #endif
41        ],[
42        int arg = SNDCTL_DSP_SETFRAGMENT;
43        ],[
44        have_oss=yes
45])
46AC_MSG_CHECKING(for OSS audio support)
47AC_MSG_RESULT($have_oss)
48AM_CONDITIONAL(HAVE_OSS, test x"$have_oss" = "xyes")
49
50have_alsa=no
51PKG_CHECK_MODULES(ALSA, alsa >= 0.9.0,
52        have_alsa=yes,
53        AC_MSG_RESULT(*** All of ALSA dependent parts will be disabled ***))
54AM_CONDITIONAL(HAVE_ALSA, test x"$have_alsa" = "xyes")
55AC_SUBST(ALSA_LIBS)
56AC_SUBST(ALSA_CFLAGS)
57
58have_fb=no
59AC_TRY_COMPILE([
60        #include <linux/fb.h>
61        #include <linux/pmu.h>
62        ],[
63        int arg = 0;
64        ],[
65        have_fb=yes
66])
67AC_MSG_CHECKING(for Brightness control support)
68AC_MSG_RESULT($have_fb)
69AM_CONDITIONAL(HAVE_FB, test x"$have_fb" = "xyes")
70
71
72dnl Multimedia keys
73have_xfree=no
74AC_TRY_COMPILE([
75        #include <X11/XF86keysym.h>
76        ],[
77        int arg = 0;
78        ],[
79        have_xfree=yes
80])
81AC_MSG_CHECKING(for X11 XFree86 headers)
82AC_MSG_RESULT($have_xfree)
83AM_CONDITIONAL(HAVE_XFREE, test x"$have_xfree" = "xyes")
84
85have_xsun=no
86AC_TRY_COMPILE([
87        #include <X11/Sunkeysym.h>
88        ],[
89        int arg = 0;
90        ],[
91        have_xsun=yes
92])
93AC_MSG_CHECKING(for X11 Sun headers)
94AC_MSG_RESULT($have_xsun)
95AM_CONDITIONAL(HAVE_XSUN, test x"$have_xsun" = "xyes")
96
97if test x"$have_xsun" = "xno" && test x"$have_xfree" = "xno" ; then
98        AC_MSG_ERROR(Your system doesn't have any headers for multimedia buttons)
99fi
100
101dnl Add the languages which your application supports here.
102ALL_LINGUAS="am bg ca cs da de el es fi fr he hu it ja ko lv mk mn ms nl no pl pt pt_BR ro ru sl sk sq sv uk vi zh_CN zh_TW"
103AM_GLIB_GNU_GETTEXT
104
105AC_OUTPUT([
106Makefile
107acme.spec
108src/Makefile
109po/Makefile.in
110])
111
112dnl Summary
113echo
114echo "Summary"
115echo
116echo "alsa          : "$have_alsa
117echo "oss           : "$have_oss
118echo "brightness    : "$have_fb
119echo
Note: See TracBrowser for help on using the repository browser.