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

Revision 18594, 2.8 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18593, 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.2.0)
6AM_MAINTAINER_MODE
7
8dnl libtool versioning for libwnck
9
10dnl increment if the interface has additions, changes, removals.
11LIBWNCK_CURRENT=9
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=5
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
30AM_PROG_LIBTOOL
31
32changequote(,)dnl
33if test "x$GCC" = "xyes"; then
34  case " $CFLAGS " in
35  *[\ \ ]-Wall[\ \      ]*) ;;
36  *) CFLAGS="$CFLAGS -Wall" ;;
37  esac
38
39  if test "x$enable_ansi" = "xyes"; then
40    case " $CFLAGS " in
41    *[\ \       ]-ansi[\ \      ]*) ;;
42    *) CFLAGS="$CFLAGS -ansi" ;;
43    esac
44
45    case " $CFLAGS " in
46    *[\ \       ]-pedantic[\ \  ]*) ;;
47    *) CFLAGS="$CFLAGS -pedantic" ;;
48    esac
49  fi
50fi
51changequote([,])dnl
52
53
54GETTEXT_PACKAGE=libwnck
55AC_SUBST(GETTEXT_PACKAGE)
56AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
57
58ALL_LINGUAS="am ar az be bg ca cs da de el es et fa fi fr gl he hi hu it ja ko lv mk ms nl nn no pl pt pt_BR ru sk sl sq sv tr uk vi wa zh_CN zh_TW"
59AM_GLIB_GNU_GETTEXT
60
61# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
62# this is the directory where the *.{mo,gmo} files are installed
63wncklocaledir='${prefix}/${DATADIRNAME}/locale'
64AC_SUBST(wncklocaledir)
65
66AC_PATH_PROG(PKG_CONFIG, pkg-config)
67
68STARTUP_NOTIFICATION_REQUIRED=0.4
69if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then
70  echo "Building with libstartup-notification"
71  AC_DEFINE(HAVE_STARTUP_NOTIFICATION)
72  with_startup_notification=yes
73  STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
74else
75  echo "Building without libstartup-notification"
76  with_startup_notification=no
77  STARTUP_NOTIFICATION_PACKAGE=
78fi
79
80AC_SUBST(STARTUP_NOTIFICATION_PACKAGE)
81
82PKG_CHECK_MODULES(LIBWNCK, gtk+-2.0 >= 2.1.0 $STARTUP_NOTIFICATION_PACKAGE)
83AC_SUBST(LIBWNCK_LIBS)
84AC_SUBST(LIBWNCK_CFLAGS)
85
86GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 
87AC_SUBST(GLIB_GENMARSHAL)
88
89AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
90
91if test x"$GDK_PIXBUF_CSOURCE" = xno; then
92  AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK])
93fi
94
95AC_SUBST(GDK_PIXBUF_CSOURCE)
96
97## hack to work with old GTK versions for now
98save_LDFLAGS=$LDFLAGS
99LDFLAGS="$LIBWNCK_LIBS $LDFLAGS"
100AC_CHECK_FUNCS(gdk_pixbuf_new_from_stream)
101LDFLAGS=$save_LDFLAGS
102
103dnl Honor ACLOCAL_FLAGS for --enable-maintainer-mode
104ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
105
106AC_OUTPUT([
107Makefile
108po/Makefile.in
109libwnck/Makefile
110libwnck-1.0.pc
111])
112
113
Note: See TracBrowser for help on using the repository browser.