source: trunk/third/zenity/configure.in @ 21554

Revision 21554, 3.4 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21553, which included commits to RCS files with non-trunk default branches.
Line 
1AC_PREREQ(2.53)
2AC_INIT(src)
3AM_CONFIG_HEADER(config.h)
4AM_INIT_AUTOMAKE(zenity, 2.8.2)
5
6AM_MAINTAINER_MODE
7
8AC_PROG_INTLTOOL([0.29])
9
10AC_PROG_CC
11
12GTK_REQUIRED=2.3.1
13
14PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0)
15AC_SUBST(ZENITY_CFLAGS)
16AC_SUBST(ZENITY_LIBS)
17
18AC_CHECK_LIB(popt, poptHelpOptions,, AC_MSG_ERROR([popt is required to build script.]))
19
20dnl ***********************************************
21dnl scrollkeeper checks
22dnl ***********************************************
23
24AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
25if test x$SCROLLKEEPER_CONFIG = xno; then
26        AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
27fi
28
29dnl ***********************************************
30dnl X development libraries check
31dnl ***********************************************
32                                                                                                                                                             
33#
34# If Pango included the shared library dependencies from X11 in
35# the pkg-config output, then we use that (to avoid duplicates).
36# but if they were omitted to avoid binary compatibility problems
37# then we need to repeat the checks.
38#
39if $PKG_CONFIG --exists pangoxft ; then
40  PANGO_PACKAGES="pangox pangoxft"
41else
42  PANGO_PACKAGES="pangox"
43fi
44                                                                                                                                                             
45x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
46case x_libs in
47  *-lX11*) pango_omitted_x_deps=no ;;
48  *)       pango_omitted_x_deps=yes ;;
49esac
50                                                                                                                                                             
51if test $pango_omitted_x_deps = yes ; then
52  AC_PATH_XTRA
53                                                                                                                                                             
54  if test x$no_x = xyes ; then
55    AC_MSG_ERROR([X development libraries not found])
56  else
57    X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
58  fi
59fi
60                                                                                                                                                             
61AC_SUBST(X_LIBS)
62
63dnl *******************************
64dnl perl check
65dnl *******************************
66
67AC_PATH_PROG(PERL,perl,)
68
69dnl *******************************
70dnl Internationalization
71dnl *******************************
72
73ALL_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 gl gu hi hr hu id is it ja kn ko lt mi mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi zh_CN zh_TW"
74GETTEXT_PACKAGE=zenity-0.1
75AC_SUBST(GETTEXT_PACKAGE)
76AM_GLIB_GNU_GETTEXT
77
78dnl **************************************************************
79dnl AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
80dnl this is the directory where the *.{mo,gmo} files are installed
81dnl **************************************************************
82
83zenitylocaledir='${prefix}/${DATADIRNAME}/locale'
84AC_SUBST(zenitylocaledir)
85
86AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Finding gettext package])
87
88AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [Determining icon location])
89
90AC_OUTPUT([
91Makefile
92zenity.spec
93po/Makefile.in
94src/Makefile
95src/gdialog
96data/Makefile
97help/Makefile
98help/C/Makefile
99help/sr/Makefile
100])
Note: See TracBrowser for help on using the repository browser.