source: trunk/third/nautilus-media/configure.in @ 21022

Revision 21022, 4.5 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21021, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT
2
3PACKAGE=nautilus-media
4VERSION=0.8.1
5dnl RELEASE=0.`date +%Y%m%d_%H%M%S`
6RELEASE=1
7
8AC_DEFINE_UNQUOTED(RELEASE, "$RELEASE", [release of rpm package])
9AC_SUBST(PACKAGE)
10AC_SUBST(VERSION)
11AC_SUBST(RELEASE)
12
13AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
14AM_CONFIG_HEADER(config.h)
15
16AC_PROG_CC
17AM_PROG_LIBTOOL
18
19dnl let make-triggered aclocal pick up our m4 dir
20ACLOCAL_AMFLAGS="-I m4"
21AC_SUBST(ACLOCAL_AMFLAGS)
22
23dnl Check for pkgconfig first
24AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
25
26dnl Give error and exit if we don't have pkgconfig
27if test "x$HAVE_PKGCONFIG" = "xno"; then
28  AC_MSG_ERROR(you need to have pkgconfig installed !)
29fi
30
31dnl Now we're ready to ask for gstreamer libs and cflags
32dnl And we can also ask for the right version of gstreamer
33HAVE_GST=no
34
35GST_REQ=0.8.0
36dnl start with 0.8
37GST_MAJORMINOR=0.8
38PKG_CHECK_MODULES(GST, \
39  gstreamer-$GST_MAJORMINOR >= $GST_REQ \
40  gstreamer-gconf-$GST_MAJORMINOR >= $GST_REQ \
41  gstreamer-libs-$GST_MAJORMINOR >= $GST_REQ,
42  HAVE_GST=yes,HAVE_GST=no)
43
44dnl fall back to 0.7
45dnl if test "x$HAVE_GST" = "xno"; then
46dnl   GST_MAJORMINOR=0.7
47dnl   PKG_CHECK_MODULES(GST, \
48dnl     gstreamer-$GST_MAJORMINOR >= $GST_REQ \
49dnl     gstreamer-gconf-$GST_MAJORMINOR >= $GST_REQ \
50dnl     gstreamer-libs-$GST_MAJORMINOR >= $GST_REQ,
51dnl   HAVE_GST=yes,HAVE_GST=no)
52dnl fi
53
54dnl Give error and exit if we don't have gstreamer
55if test "x$HAVE_GST" = "xno"; then
56  AC_MSG_ERROR(you need gstreamer development packages installed !)
57fi
58
59dnl make GST_CFLAGS and GST_LIBS available
60AC_SUBST(GST_CFLAGS)
61AC_SUBST(GST_LIBS)
62
63dnl for test apps we want gnome stuff
64PKG_CHECK_MODULES(GNOME, libgnome-2.0 libgnomeui-2.0 eel-2.0,
65                  HAVE_GNOME=yes, HAVE_GNOME=no)
66
67dnl Give error and exit if we don't have gnome ui
68if test "x$HAVE_GNOME" = "xno"; then
69  AC_MSG_ERROR(you need libgnome pkgs installed !)
70fi
71
72dnl make GNOME_CFLAGS and GNOME_LIBS available
73AC_SUBST(GNOME_CFLAGS)
74AC_SUBST(GNOME_LIBS)
75
76dnl And we want Nautilus as well
77PKG_CHECK_MODULES(NAUTILUS,
78                  libnautilus,
79                  HAVE_NAUTILUS=yes, HAVE_NAUTILUS=no)
80
81dnl Give error and exit if we don't have nautilus
82if test "x$HAVE_NAUTILUS" = "xno"; then
83  AC_MSG_ERROR(you need nautilus development packages installed !)
84fi
85
86dnl make NAUTILUS_CFLAGS and NAUTILUS_LIBS available
87AC_SUBST(NAUTILUS_CFLAGS)
88AC_SUBST(NAUTILUS_LIBS)
89
90dnl intltool stuff
91AC_PROG_INTLTOOL(0.18)
92dnl AM_WITH_NLS
93GETTEXT_PACKAGE=nautilus-media
94AC_SUBST(GETTEXT_PACKAGE)
95AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package])
96ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gu he hi hr hu id is it ja ko li lt lv mi mk ml mn ms nb nl nn no or pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi zh_CN zh_TW"
97AM_GLIB_GNU_GETTEXT
98
99dnl get a good @LIBEXECDIR@ translation
100AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
101AC_SUBST(LIBEXECDIR)
102
103dnl get a good @BONOBODIR@ translation
104AS_AC_EXPAND(BONOBODIR, $libdir/bonobo)
105AC_SUBST(BONOBODIR)
106
107dnl uninstalled DATADIR
108AC_DEFINE_UNQUOTED(DATADIR_UNINST,"`pwd`", [path to uninstalled data dir])
109AC_SUBST(DATADIR_UNINST)
110
111dnl PIXMAPSDIR
112AS_AC_EXPAND(PIXMAPSDIR, $datadir/pixmaps/$PACKAGE)
113AC_DEFINE_UNQUOTED(PIXMAPSDIR, "$PIXMAPSDIR",
114                   [directory where pixmaps are stored])
115                                                 
116dnl FIXME: at some point we'll require autoconf 2.5x and then we can
117dnl use AC_HELP_STRING here for aesthetic pleasure
118AC_ARG_ENABLE(test-view,
119              [  --enable-test-view      build the nautilus test view],
120              enable_test_view=yes, enable_test_view=no)
121AM_CONDITIONAL(BUILD_TEST_VIEW, test x$enable_test_view = xyes)
122AC_SUBST(BUILD_TEST_VIEW)
123#if test x$enable_test_view = xyes; then
124#    AC_DEFINE(BUILD_TEST_VIEW,1,[defined if test view])
125#fi
126
127dnl where do we install our gconf thumbnailing schemas ?
128AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
129if test x$GCONFTOOL = xno; then
130  AC_MSG_ERROR([You need gconftool-2 to install the GConf schemas])
131fi
132AM_GCONF_SOURCE_2()
133
134dnl do we build with deprecation on ?
135dnl FIXME: put this into a flag depending on the nano version
136#DEPRECATE="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED"
137DEPRECATE=""
138AC_SUBST(DEPRECATE)
139
140dnl check for da man
141AC_MSG_CHECKING([for da man])
142AC_MSG_RESULT([campd])
143
144AC_OUTPUT([
145  Makefile
146  m4/Makefile
147  media-info/Makefile
148  audio-properties-view/Makefile
149  audio-properties-view/Nautilus_View_audio_properties.server.in
150  audio-view/Makefile audio-view/Nautilus_View_audio.server.in
151  test-view/Makefile test-view/Nautilus_View_test.server.in
152  thumbnail/Makefile
153  pixmaps/Makefile
154  po/Makefile.in
155  nautilus-media.spec
156])
157
Note: See TracBrowser for help on using the repository browser.