source: trunk/third/libwnck/configure.in @ 20873

Revision 20873, 3.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20872, which included commits to RCS files with non-trunk default branches.
Line 
1AC_INIT(libwnck/window.h)
2
3AM_CONFIG_HEADER(config.h)
4
5AM_INIT_AUTOMAKE(libwnck, 2.8.0)
6AM_MAINTAINER_MODE
7
8dnl libtool versioning for libwnck
9
10dnl increment if the interface has additions, changes, removals.
11LIBWNCK_CURRENT=13
12
13dnl increment any time the source changes; set to
14dnl  0 if you increment CURRENT
15LIBWNCK_REVISION=0
16
17dnl increment if any interfaces have been added; set to 0
18dnl  if any interfaces have been removed. removal has
19dnl  precedence over adding, so set to 0 if both happened.
20LIBWNCK_AGE=9
21
22AC_SUBST(LIBWNCK_CURRENT)
23AC_SUBST(LIBWNCK_REVISION)
24AC_SUBST(LIBWNCK_AGE)
25
26AC_PROG_CC
27AC_ISC_POSIX
28AC_HEADER_STDC
29AC_ARG_PROGRAM
30AC_LIBTOOL_WIN32_DLL
31AM_PROG_LIBTOOL
32
33changequote(,)dnl
34if test "x$GCC" = "xyes"; then
35  case " $CFLAGS " in
36  *[\ \ ]-Wall[\ \      ]*) ;;
37  *) CFLAGS="$CFLAGS -Wall" ;;
38  esac
39
40  if test "x$enable_ansi" = "xyes"; then
41    case " $CFLAGS " in
42    *[\ \       ]-ansi[\ \      ]*) ;;
43    *) CFLAGS="$CFLAGS -ansi" ;;
44    esac
45
46    case " $CFLAGS " in
47    *[\ \       ]-pedantic[\ \  ]*) ;;
48    *) CFLAGS="$CFLAGS -pedantic" ;;
49    esac
50  fi
51fi
52changequote([,])dnl
53
54
55GETTEXT_PACKAGE=libwnck
56AC_SUBST(GETTEXT_PACKAGE)
57AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
58
59ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv mi mk ml mn mr ms nb nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW"
60AM_GLIB_GNU_GETTEXT
61
62# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
63# this is the directory where the *.{mo,gmo} files are installed
64wncklocaledir='${prefix}/${DATADIRNAME}/locale'
65AC_SUBST(wncklocaledir)
66
67AC_PATH_PROG(PKG_CONFIG, pkg-config)
68
69STARTUP_NOTIFICATION_REQUIRED=0.4
70if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then
71  echo "Building with libstartup-notification"
72  AC_DEFINE(HAVE_STARTUP_NOTIFICATION)
73  STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
74else
75  echo "Building without libstartup-notification"
76  STARTUP_NOTIFICATION_PACKAGE=
77fi
78
79dnl X development libraries check
80
81#
82# If Pango included the shared library dependencies from X11 in
83# the pkg-config output, then we use that (to avoid duplicates).
84# but if they were omitted to avoid binary compatibility problems
85# then we need to repeat the checks.
86#
87if $PKG_CONFIG --exists pangoxft ; then
88  PANGO_PACKAGES="pangox pangoxft"
89else
90  PANGO_PACKAGES="pangox"
91fi
92
93x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
94case x_libs in
95  *-lX11*) pango_omitted_x_deps=no ;;
96  *)       pango_omitted_x_deps=yes ;;
97esac
98
99if test $pango_omitted_x_deps = yes ; then
100  AC_PATH_XTRA
101
102  if test x$no_x = xyes ; then
103    AC_MSG_ERROR([X development libraries not found])
104  else
105    X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
106  fi
107fi
108
109## Check for XRes
110AC_CHECK_LIB(XRes, XResQueryExtension,
111             X_LIBS="$X_LIBS -lXRes -lXext" ; AC_DEFINE_UNQUOTED(HAVE_XRES, 1, [define if you have the XRes library]), ,
112             $X_LIBS -lXext)
113
114AC_SUBST(X_LIBS)
115
116AC_SUBST(STARTUP_NOTIFICATION_PACKAGE)
117
118PKG_CHECK_MODULES(LIBWNCK, gtk+-2.0 >= 2.1.0 $STARTUP_NOTIFICATION_PACKAGE)
119AC_SUBST(LIBWNCK_LIBS)
120AC_SUBST(LIBWNCK_CFLAGS)
121
122GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 
123AC_SUBST(GLIB_GENMARSHAL)
124
125AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
126
127if test x"$GDK_PIXBUF_CSOURCE" = xno; then
128  AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK])
129fi
130
131AC_SUBST(GDK_PIXBUF_CSOURCE)
132
133## hack to work with old GTK versions for now
134save_LDFLAGS=$LDFLAGS
135LDFLAGS="$LIBWNCK_LIBS $LDFLAGS"
136AC_CHECK_FUNCS(gdk_pixbuf_new_from_stream)
137LDFLAGS=$save_LDFLAGS
138
139dnl Honor ACLOCAL_FLAGS for --enable-maintainer-mode
140ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
141
142##################################################
143# Checks for gtk-doc and docbook-tools
144##################################################
145GTK_DOC_CHECK([1.0])
146
147AC_OUTPUT([
148Makefile
149doc/Makefile
150po/Makefile.in
151libwnck/Makefile
152libwnck-1.0.pc
153libwnck-1.0-uninstalled.pc
154])
Note: See TracBrowser for help on using the repository browser.