source: trunk/third/ggv/configure.in @ 18824

Revision 18824, 5.4 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18823, which included commits to RCS files with non-trunk default branches.
Line 
1AC_PREREQ(2.52)
2AC_INIT(ggv, 1.99.98, http://bugzilla.gnome.org/enter_bug.cgi?product=ggv)
3AC_CONFIG_SRCDIR(src/gtkgs.c)
4AM_INIT_AUTOMAKE(ggv, 1.99.98)
5
6AM_CONFIG_HEADER(config.h)
7
8AM_MAINTAINER_MODE
9
10AC_PROG_INTLTOOL
11
12AC_ISC_POSIX
13AC_PROG_CC
14AC_STDC_HEADERS
15AM_PROG_LIBTOOL
16AC_PROG_INSTALL
17AC_PROG_LN_S
18AC_PROG_MAKE_SET
19AC_PATH_PROG(GCONFTOOL, gconftool-2)
20AM_GCONF_SOURCE_2
21
22AC_CHECK_HEADER(paths.h)
23AC_PATH_PROG(LPR_PROG, lpr)
24AC_DEFINE_UNQUOTED(LPR_PATH, "$LPR_PROG", [Path to 'lpr' executable.])
25GNOME_PLATFORM_GNOME_2(yes)
26
27dnl a switch for enabling bonobo component logging to a file
28AC_ARG_ENABLE(bonobo-debug,
29              [  --bonobo-debug      Enables logging of bonobo component to a file], AC_DEFINE(BONOBO_DEBUG, 1, [Whether to add log component output to a file.]))
30
31##################################################
32# Checks for  GhostScript package
33##################################################
34
35
36AC_ARG_WITH(gs-pkg,
37              [  --with-gs=dir       Directory Where GhostScript package is installed.])
38
39if test "x$with_gs" = "x"; then
40        AC_PATH_PROG(GS_PROG, gs)
41        if test -z "$GS_PROG"; then
42                AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run GGV)
43        fi
44else
45        GS_PROG=$with_gs
46fi
47
48AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.])
49
50
51dnl check for GS version and define appropriate alpha parameters
52AC_MSG_CHECKING(for Ghostscript version...)
53GS_VERSION=`$GS_PROG --version | head -1`
54AC_MSG_RESULT(found $GS_VERSION)
55dnl GS tends to get a lot of BadMatch errors with the *AlphaBits parameters
56dnl so I've commented their use out
57dnl if test "$GS_VERSION" -gt "5"; then
58dnl     AA_PARMS="-sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=4"
59dnl else
60dnl     AA_PARMS="-sDEVICE=x11alpha"
61dnl fi
62AA_PARMS="-sDEVICE=x11alpha"
63AC_DEFINE_UNQUOTED(ALPHA_PARAMS, "$AA_PARMS", [Anti-aliasing parameters for Ghostscript.])
64AC_MSG_RESULT(Antialiasing parameters for Ghostscript: $AA_PARMS)
65
66dnl check for popt. this is required for building on solaris
67AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"],
68AC_MSG_ERROR([popt is required to build ggv.
69You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
70AC_SUBST(POPT_LIBS)
71
72dnl check for libgstroke library
73dnl removed as we dont have a glib 2.0 based gstroke library
74dnl try_gstroke=true
75dnl gstroke=
76dnl have_gstroke=false
77dnl gstroke_CFLAGS=
78dnl gstroke_LIBS=
79dnl AC_ARG_WITH(gstroke,
80dnl     [  --{with,without}-gstroke=PFX   Compile with stroke support or without it],
81dnl     if test x$withval = xno; then
82dnl             try_gstroke=false
83dnl     elif test x$withval != xyes; then
84dnl             gstroke_CFLAGS=-I$withval/include
85dnl             gstroke_LIBS=-L$withval/lib
86dnl     fi
87dnl )
88
89dnl if $try_gstroke; then
90dnl     AC_CHECK_LIB(gstroke, gstroke_enable,
91dnl                     have_gstroke=true
92dnl                     AC_DEFINE(HAVE_GSTROKE)
93dnl                     gstroke_LIBS="$gstroke_LIBS -lgstroke", ,
94dnl                             $gstroke_LIBS $GTK_LIBS)
95dnl fi
96dnl AM_CONDITIONAL(GSTROKE, $have_gstroke)
97
98AC_PATH_XTRA
99PKG_CHECK_MODULES(GGV,
100                  libgnomeui-2.0 >= 1.96.0)
101
102GGV_LIBS="$GGV_LIBS $POPT_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
103
104dnl Check for Xinerama
105dnl have_xinerama=false
106dnl have_xinerama_h=false
107dnl AC_CHECK_HEADER(X11/extensions/Xinerama.h,
108dnl             have_xinerama_h=true,, [#include <X11/Xlib.h>] )
109dnl if test x$have_xinerama_h = xtrue; then
110dnl             AC_CHECK_LIB(Xinerama, XineramaIsActive,
111dnl                          have_xinerama=true,,
112dnl                          $GGV_LIBS)
113dnl fi
114dnl AM_CONDITIONAL(XINERAMA, $have_xinerama)
115dnl if test x$have_xinerama = xtrue; then
116dnl     AC_DEFINE(HAVE_XINERAMA)
117dnl fi
118
119dnl **************************************************
120dnl * internationalization support
121dnl **************************************************
122ALL_LINGUAS="am az be bg ca cs da de el es et eu fi fr ga gl he hr hu it ja ko lt lv mk mn ms nl nn no pl pt pt_BR ro ru sk sl sv ta tr uk vi zh_CN zh_TW"
123
124GETTEXT_PACKAGE=ggv
125AC_SUBST(GETTEXT_PACKAGE)
126AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext pacakge.])
127
128AM_GLIB_GNU_GETTEXT
129
130dnl AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
131
132AC_SUBST(GGV_CFLAGS)
133AC_SUBST(GGV_LIBS)
134
135dnl ================================
136dnl | ORBit2 |---------------------------
137dnl ================================
138
139ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
140AC_SUBST(ORBIT_IDL)
141
142BONOBO_IDLDIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
143AC_SUBST(BONOBO_IDLDIR)
144
145BONOBO_ACT_IDLDIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
146AC_SUBST(BONOBO_ACT_IDLDIR)
147     
148AC_ARG_ENABLE(install_schemas,
149        [  --disable-install-schemas        Disable installation of the gconf schemas])
150AM_CONDITIONAL(INSTALL_SCHEMAS, test x$enable_install_schemas != xno)
151
152GCONF_CONFIG_SOURCE=
153
154AC_ARG_ENABLE(gconf-source, [  --enable-gconf-source=sourceaddress Where to install schema files.], GCONF_CONFIG_SOURCE=$enable_gconf_source,)
155if test "x$GCONF_CONFIG_SOURCE" = "x"; then
156        GCONF_CONFIG_SOURCE="xml::\${sysconfdir}/gconf/gconf.xml.defaults"
157fi
158
159AC_SUBST(GCONF_CONFIG_SOURCE)
160AC_SUBST(INSTALL_GCONF_CONFIG_SOURCE)
161
162GGV_EXTRA_CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED"
163
164AC_SUBST(GGV_EXTRA_CFLAGS)
165AC_SUBST(CFLAGS)
166AC_SUBST(CPPFLAGS)
167AC_SUBST(LDFLAGS)
168
169AC_OUTPUT([
170Makefile
171ggv.spec
172po/Makefile.in
173help/Makefile
174help/C/Makefile
175src/Makefile
176src/stock/Makefile
177src/cursors/Makefile
178bonobo/Makefile
179pixmaps/Makefile
180idl/Makefile
181omf-install/Makefile
182])
Note: See TracBrowser for help on using the repository browser.