source: trunk/third/gnome-desktop/configure.in @ 18801

Revision 18801, 4.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18800, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(libgnome-desktop)
2AM_CONFIG_HEADER(config.h)
3AM_INIT_AUTOMAKE(gnome-desktop, 2.2.0.1)
4
5# Before making a release, the LT_VERSION string should be modified.
6# The string is of the form C:R:A.
7# - If interfaces have been changed or added, but binary compatibility has
8#   been preserved, change to C+1:0:A+1
9# - If binary compatibility has been broken (eg removed or changed interfaces)
10#   change to C+1:0:0
11# - If the interface is the same as the previous version, change to C:R+1:A
12
13LT_VERSION=3:4:1
14AC_SUBST(LT_VERSION)
15
16AM_MAINTAINER_MODE
17
18AC_PROG_INTLTOOL
19
20AC_ISC_POSIX
21AC_PROG_CC
22AC_STDC_HEADERS
23AC_ARG_PROGRAM
24AM_PROG_LIBTOOL
25AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
26
27GNOME_COMPILE_WARNINGS(yes)
28
29GNOME_PLATFORM=2
30GNOME_MINOR=2
31GNOME_MICRO=0
32GNOME_VENDOR="Gnome.Org"
33GNOME_DATE="Tuesday, February 4th 2003"
34
35AC_SUBST(GNOME_PLATFORM)
36AC_SUBST(GNOME_MINOR)
37AC_SUBST(GNOME_MICRO)
38AC_SUBST(GNOME_VENDOR)
39AC_SUBST(GNOME_DATE)
40
41dnl If you add a version number here, you *must* add an AC_SUBST line for
42dnl it too, or it will never make it into the spec file!
43
44GDK_PIXBUF_REQUIRED=2.0.3
45GTK_REQUIRED=2.1.2
46LIBGNOMECANVAS_REQUIRED=2.0.0
47LIBGNOMEUI_REQUIRED=2.1.0
48GNOME_VFS_REQUIRED=2.0.0
49STARTUP_NOTIFICATION_REQUIRED=0.5
50
51AC_SUBST(GTK_REQUIRED)
52AC_SUBST(GDK_PIXBUF_REQUIRED)
53AC_SUBST(LIBGNOMEUI_REQUIRED)
54AC_SUBST(LIBGNOMECANVAS_REQUIRED)
55AC_SUBST(GNOME_VFS_REQUIRED)
56AC_SUBST(STARTUP_NOTIFICATION_REQUIRED)
57
58if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then
59  echo "Building with libstartup-notification"
60  AC_DEFINE(HAVE_STARTUP_NOTIFICATION)
61  with_startup_notification=yes
62  STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
63else
64  echo "***** WARNING: Building without libstartup-notification"
65  with_startup_notification=no
66  STARTUP_NOTIFICATION_PACKAGE=
67fi
68
69AC_SUBST(STARTUP_NOTIFICATION_PACKAGE)
70
71dnl pkg-config dependency checks
72
73PKG_CHECK_MODULES(GNOME_DESKTOP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED $STARTUP_NOTIFICATION_PACKAGE)
74AC_SUBST(GNOME_DESKTOP_CFLAGS)
75AC_SUBST(GNOME_DESKTOP_LIBS)
76
77PKG_CHECK_MODULES(GNOME_ABOUT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED)
78AC_SUBST(GNOME_ABOUT_CFLAGS)
79AC_SUBST(GNOME_ABOUT_LIBS)
80
81
82dnl Language Support
83
84GETTEXT_PACKAGE=gnome-desktop-2.0
85AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
86AC_SUBST(GETTEXT_PACKAGE)
87
88ALL_LINGUAS="ar az be bg bs ca cs da de el en_GB es et eu fi fr ga gl he hi hu it ja ko lt lv mk mn ms nl nn no pl pt pt_BR ro ru sk sl sp sq sr sv ta th tr uk vi wa zh_CN zh_TW"
89AM_GLIB_GNU_GETTEXT
90
91
92dnl Place to look for KDE menus
93
94AC_ARG_WITH(kde-datadir, [  --with-kde-datadir=DIR  Location of KDE data])
95
96if test "x$with_kde_datadir" = x ; then
97  kde_datadir=/usr/share
98else
99  kde_datadir=$with_kde_datadir
100fi
101
102AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk")
103AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons")
104AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini")
105
106
107ICONDIR=`eval echo "${datadir}/pixmaps"`
108AC_DEFINE_UNQUOTED(GNOME_ICONDIR,"${ICONDIR}")
109
110dnl Build Flags
111
112AC_SUBST(CFLAGS)
113AC_SUBST(CPPFLAGS)
114AC_SUBST(LDFLAGS)
115
116dnl Don't use AC_PROG_AWK since we need the full pathname.
117AC_PATH_PROGS(AWK, mawk gawk nawk awk, )
118AC_PATH_PROGS(PERL, perl5 perl)
119
120dnl define a MAINT-like variable REBUILD which is set if Perl
121dnl and awk are found, so autogenerated sources can be rebuilt
122AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)
123REBUILD=\#
124if test "x$enable_rebuilds" = "xyes" && \
125     test -n "$PERL" && \
126     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
127     test -n "$AWK" ; then
128  REBUILD=
129fi
130AC_SUBST(REBUILD)
131
132AC_OUTPUT([
133Makefile
134gnome-desktop.spec
135desktop-links/Makefile
136gnome-about/Makefile
137libgnome-desktop/Makefile
138libgnome-desktop/gnome-desktop-2.0.pc
139gnome-version.xml
140po/Makefile.in
141pixmaps/Makefile
142desktop-docs/Makefile
143desktop-docs/fdl/Makefile
144desktop-docs/fdl/C/Makefile
145desktop-docs/gpl/Makefile
146desktop-docs/gpl/C/Makefile
147desktop-docs/lgpl/Makefile
148desktop-docs/lgpl/C/Makefile
149desktop-docs/gnome-feedback/Makefile
150desktop-docs/gnome-feedback/C/Makefile
151man/Makefile
152])
Note: See TracBrowser for help on using the repository browser.