summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-05-16 18:38:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-05-16 18:38:30 +0000
commite6858b1b195339b72f61f6818657bd6b24a2cfc6 (patch)
tree0d35c4f619bf0fc97aa1f948872d1eb179d23677
parent6aeaa59a980fa68e2bbbd28cbe026919642a7fa9 (diff)
downloadpango-e6858b1b195339b72f61f6818657bd6b24a2cfc6.tar.gz
Require libtool 1.4 when build out of CVS.
Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com> * autogen.sh (libtool_version): Require libtool 1.4 when build out of CVS. * **/Makefile.am: Add inter-library dependencies, especially for the modules. Many cleanups to the module makefiles. * configure.in modules/indic/Makefile.am: Remove INCLUDE_ANY_INDIC conditional which doesn't seem to have any point and was definitely suspect as done. * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix to be _pango_tamil instead of _pango_basic. * Makefile.am: Build modules/ after pango/ so we can make the modules depend on libpango/libpangox. * examples/Makefile.am: Remove spurious rule to rebuild makefile.mingw.
-rw-r--r--ChangeLog22
-rw-r--r--ChangeLog.pre-1-022
-rw-r--r--ChangeLog.pre-1-1022
-rw-r--r--ChangeLog.pre-1-222
-rw-r--r--ChangeLog.pre-1-422
-rw-r--r--ChangeLog.pre-1-622
-rw-r--r--ChangeLog.pre-1-822
-rw-r--r--Makefile.am2
-rwxr-xr-xautogen.sh38
-rw-r--r--configure.in14
-rw-r--r--examples/Makefile.am5
-rw-r--r--modules/Makefile.am8
-rw-r--r--modules/arabic/Makefile.am20
-rw-r--r--modules/basic/Makefile.am24
-rw-r--r--modules/hangul/Makefile.am14
-rw-r--r--modules/hebrew/Makefile.am14
-rw-r--r--modules/indic/Makefile.am37
-rw-r--r--modules/tamil/Makefile.am22
-rw-r--r--modules/tamil/tamil-xft.c2
-rw-r--r--modules/thai/Makefile.am14
-rw-r--r--pango/Makefile.am21
21 files changed, 324 insertions, 65 deletions
diff --git a/ChangeLog b/ChangeLog
index 16e3d605..9108bd77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-0
+++ b/ChangeLog.pre-1-0
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-2
+++ b/ChangeLog.pre-1-2
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 16e3d605..9108bd77 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,25 @@
+Tue May 1 16:03:48 2001 Owen Taylor <otaylor@redhat.com>
+
+ * autogen.sh (libtool_version): Require libtool 1.4 when
+ build out of CVS.
+
+ * **/Makefile.am: Add inter-library dependencies,
+ especially for the modules. Many cleanups to the
+ module makefiles.
+
+ * configure.in modules/indic/Makefile.am: Remove
+ INCLUDE_ANY_INDIC conditional which doesn't seem to have
+ any point and was definitely suspect as done.
+
+ * modules/tamil/tamil-xft.c (MODULE_ENTRY): Fix prefix
+ to be _pango_tamil instead of _pango_basic.
+
+ * Makefile.am: Build modules/ after pango/ so we can
+ make the modules depend on libpango/libpangox.
+
+ * examples/Makefile.am: Remove spurious rule to rebuild
+ makefile.mingw.
+
Mon May 14 19:10:11 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c: Fix to correspond to extremely
diff --git a/Makefile.am b/Makefile.am
index 026c7f04..b77503ef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to create Makefile.in.
-SUBDIRS=modules pango examples docs tools tests
+SUBDIRS= pango modules examples docs tools tests
EXTRA_DIST = \
pango.spec.in \
diff --git a/autogen.sh b/autogen.sh
index 6412d864..0014fb01 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -12,21 +12,49 @@ FILE=pango/pango.h
DIE=0
+have_libtool=false
+if libtool --version < /dev/null > /dev/null 2>&1 ; then
+ libtool_version=`libtoolize --version | libtoolize --version | sed 's/^[^0-9]*\([0-9.]\+\).*/\1/'`
+ case $libtool_version in
+ 1.4*)
+ have_libtool=true
+ ;;
+ esac
+fi
+if $have_libtool ; then : ; else
+ echo
+ echo "You must have libtool 1.4 installed to compile $PROJECT."
+ echo "Install the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+fi
+
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
- echo "Download the appropriate package for your distribution,"
+ echo "libtool the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
-(automake --version) < /dev/null > /dev/null 2>&1 || {
+have_automake=false
+if automake --version < /dev/null > /dev/null 2>&1 ; then
+ automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
+ case $automake_version in
+ 1.2*|1.3*|1.4)
+ ;;
+ *)
+ have_automake=true
+ ;;
+ esac
+fi
+if $have_automake ; then : ; else
echo
- echo "You must have automake installed to compile $PROJECT."
- echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
+ echo "You must have automake 1.4-p1 installed to compile $PROJECT."
+ echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
-}
+fi
if test "$DIE" -eq 1; then
exit 1
diff --git a/configure.in b/configure.in
index 3648276e..e3a68239 100644
--- a/configure.in
+++ b/configure.in
@@ -213,6 +213,7 @@ if test "x$with_included_modules" != xno || test "x$with_included_modules" = x ;
fi
AC_MSG_RESULT($included_modules)
+AM_CONDITIONAL(HAVE_INCLUDED_MODULES, test "x$included_modules" != x)
INCLUDED_X_MODULES=
INCLUDED_XFT_MODULES=
@@ -224,7 +225,7 @@ for module in $included_modules; do
else
dir=`echo $module | sed "s/-.*//"`
fi
-
+
if echo $module | grep -- "-xft\($\|,\)" > /dev/null; then
INCLUDED_XFT_MODULES="$INCLUDED_XFT_MODULES \$(top_builddir)/modules/$dir/libpango-$module.la"
elif echo $module | grep -- "-ft2\($\|,\)" > /dev/null; then
@@ -258,17 +259,6 @@ AM_CONDITIONAL(INCLUDE_BENGALI_X,echo $included_modules | grep '\(^\|,\)bengali-
AM_CONDITIONAL(INCLUDE_GUJARATI_X,echo $included_modules | grep '\(^\|,\)gujarati-x\($\|,\)' > /dev/null)
AM_CONDITIONAL(INCLUDE_DEVANAGARI_X,echo $included_modules | grep '\(^\|,\)devanagari-x\($\|,\)' > /dev/null)
-have_indic_modules="no"
-IFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","
-for module in $indic_modules; do
- if echo $included_modules | grep "\(^\| \)$module\(\$\| \)" > /dev/null; then
- have_indic_modules="yes"
- fi
-done
-IFS="$pango_save_ifs"
-
-AM_CONDITIONAL(INCLUDE_ANY_INDIC,test $have_indic_modules = yes)
-
#
# We use flockfile to implement pango_getline() - should be moved to GLib
#
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 65b5eaac..c06c9f77 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -56,8 +56,3 @@ EXTRA_DIST= \
if HAVE_X
alias_DATA = pangox.aliases
endif
-
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/examples/makefile.mingw.in
- cd $(top_builddir) && CONFIG_FILES=examples/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
-
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 3a04076b..999912f7 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -11,3 +11,11 @@ SUBDIRS = \
EXTRA_DIST = \
module.def
+
+included-modules:
+ @for d in $(SUBDIRS) ; do \
+ ( cd $$d && $(MAKE) $(AM_MAKEFLAGS) included-modules ) ; \
+ done
+
+.PHONY: included-modules
+
diff --git a/modules/arabic/Makefile.am b/modules/arabic/Makefile.am
index 4516fa99..9f431a27 100644
--- a/modules/arabic/Makefile.am
+++ b/modules/arabic/Makefile.am
@@ -1,13 +1,20 @@
## Process this file with automake to create Makefile.in.
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_XFT
-XFT_MODULES=pango-arabic-xft.la
if INCLUDE_ARABIC_XFT
+XFT_MODULES=
XFT_INCLUDED=libpango-arabic-xft.la
XFT_PREFIX=-DXFT_MODULE_PREFIX
else
+XFT_MODULES=pango-arabic-xft.la
XFT_INCLUDED=
XFT_PREFIX=
+arabic_xft_libadd=$(pangoxftlibs)
endif
else
XFT_MODULES=
@@ -40,6 +47,7 @@ else
X_MODULES=pango-arabic-x.la
X_INCLUDED=
X_PREFIX=
+arabic_x_libadd=$(pangoxlibs)
endif
else
X_MODULES=
@@ -51,19 +59,21 @@ noinst_LTLIBRARIES = $(X_INCLUDED) $(XFT_INCLUDED)
module_LTLIBRARIES = $(X_MODULES) $(XFT_MODULES)
moddefine = $(X_PREFIX) $(XFT_PREFIX)
moduledir = $(libdir)/pango/modules
-moduleflags=-rpath $(libdir)
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS)
-pango_arabic_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
+pango_arabic_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_arabic_x_la_LIBADD = $(arabic_x_libadd)
pango_arabic_x_la_SOURCES = $(x_sources)
libpango_arabic_x_la_SOURCES = $(x_sources)
-pango_arabic_xft_la_LDFLAGS = -rpath $(libdir) -export-dynamic -avoid-version -module
-pango_arabic_xft_la_LIBADD =
+pango_arabic_xft_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_arabic_xft_la_LIBADD = $(arabic_xft_libadd)
pango_arabic_xft_la_SOURCES = $(xft_sources)
libpango_arabic_xft_la_SOURCES = $(xft_sources)
+included-modules: $(noinst_LTLIBRARIES)
+.PHONY: included-modules
diff --git a/modules/basic/Makefile.am b/modules/basic/Makefile.am
index 07001520..f8fe78c5 100644
--- a/modules/basic/Makefile.am
+++ b/modules/basic/Makefile.am
@@ -2,6 +2,11 @@
basic_sources = basic-x.c
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_XFT
if INCLUDE_BASIC_XFT
XFT_INCLUDED=libpango-basic-xft.la
@@ -11,6 +16,7 @@ else
XFT_INCLUDED=
XFT_MODULES=pango-basic-xft.la
XFT_PREFIX=
+basic_xft_libadd=$(pangoxlibs)
endif
else
XFT_MODULES=
@@ -27,6 +33,7 @@ else
FT2_INCLUDED=
FT2_MODULES=pango-basic-ft2.la
FT2_PREFIX=
+basic_ft2_libadd=$(pangoft2libs)
endif
else
FT2_MODULES=
@@ -43,6 +50,7 @@ else
X_INCLUDED=
X_MODULES=pango-basic-x.la
X_PREFIX=
+basic_x_libadd=$(pangoxlibs)
endif
else
X_INCLUDED=
@@ -54,7 +62,6 @@ noinst_LTLIBRARIES = $(X_INCLUDED) $(XFT_INCLUDED) $(FT2_INCLUDED)
module_LTLIBRARIES = $(X_MODULES) $(XFT_MODULES) $(FT2_MODULES)
moddefine = $(X_PREFIX) $(XFT_PREFIX) $(FT2_PREFIX)
moduledir = $(libdir)/pango/modules
-moduleflags=-rpath $(libdir)
INCLUDES = \
-I$(top_srcdir) \
@@ -63,18 +70,18 @@ INCLUDES = \
$(FREETYPE_CFLAGS) \
$(moddefine)
-pango_basic_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
-pango_basic_x_la_LIBADD =
+pango_basic_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_basic_x_la_LIBADD = $(basic_x_libadd)
pango_basic_x_la_SOURCES = $(basic_sources)
libpango_basic_x_la_SOURCES = $(basic_sources)
-pango_basic_xft_la_LDFLAGS = -rpath $(libdir) -export-dynamic -avoid-version -module
-pango_basic_xft_la_LIBADD =
+pango_basic_xft_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_basic_xft_la_LIBADD = $(basic_xft_libadd)
pango_basic_xft_la_SOURCES = basic-xft.c
libpango_basic_xft_la_SOURCES = basic-xft.c
-pango_basic_ft2_la_LDFLAGS = -rpath $(libdir) -export-dynamic -avoid-version -module
-pango_basic_ft2_la_LIBADD = $(FREETYPE_LIBS)
+pango_basic_ft2_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_basic_ft2_la_LIBADD = $(basic_ft2_libadd)
pango_basic_ft2_la_SOURCES = basic-ft2.c
libpango_basic_ft2_la_SOURCES = basic-ft2.c
@@ -85,3 +92,6 @@ EXTRA_DIST = \
makefile.mingw \
makefile.mingw.in
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/modules/hangul/Makefile.am b/modules/hangul/Makefile.am
index e82c1a17..9f8e2752 100644
--- a/modules/hangul/Makefile.am
+++ b/modules/hangul/Makefile.am
@@ -2,6 +2,11 @@
sources = hangul-x.c
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_X
if INCLUDE_HANGUL_X
noinst_LTLIBRARIES = libpango-hangul-x.la
@@ -9,17 +14,22 @@ moddefine = -DX_MODULE_PREFIX
else
moduledir = $(libdir)/pango/modules
module_LTLIBRARIES = pango-hangul-x.la
-moduleflags= -rpath $(libdir)
+hangul_x_libadd = $(pangoxlibs)
endif
endif
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS)
-pango_hangul_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
+pango_hangul_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_hangul_x_la_SOURCES = $(sources)
+pango_hangul_x_la_LIBADD = $(hangul_x_libadd)
libpango_hangul_x_la_SOURCES = $(sources)
EXTRA_DIST = \
tables-ksc5601.i \
tables-johabfont.i
+
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/modules/hebrew/Makefile.am b/modules/hebrew/Makefile.am
index ce925aec..0aad3db7 100644
--- a/modules/hebrew/Makefile.am
+++ b/modules/hebrew/Makefile.am
@@ -2,6 +2,11 @@
sources = hebrew-x.c
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_X
if INCLUDE_HEBREW_X
noinst_LTLIBRARIES = libpango-hebrew-x.la
@@ -9,15 +14,18 @@ moddefine = -DX_MODULE_PREFIX
else
moduledir = $(libdir)/pango/modules
module_LTLIBRARIES = pango-hebrew-x.la
-moduleflags=-rpath $(libdir)
+hebrew_x_libadd=$(pangoxlibs)
endif
endif
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS)
-pango_hebrew_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
-pango_hebrew_x_la_LIBADD =
+pango_hebrew_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_hebrew_x_la_LIBADD = $(hebrew_x_libadd)
pango_hebrew_x_la_SOURCES = $(sources)
libpango_hebrew_x_la_SOURCES = $(sources)
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/modules/indic/Makefile.am b/modules/indic/Makefile.am
index 7fde2ba9..8fe3dd8a 100644
--- a/modules/indic/Makefile.am
+++ b/modules/indic/Makefile.am
@@ -8,6 +8,11 @@ sources = \
devanagari-x.c \
pango-indic-script.h
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_X
if INCLUDE_MYANMAR_X
@@ -15,7 +20,7 @@ myanmar_x_noinst=libpango-myanmar-x.la
myanmar_x_cflags=-DMYANMAR_X_MODULE_PREFIX
else
myanmar_x_inst=pango-myanmar-x.la
-myanmar_x_moduleflags=-rpath $(libdir)
+myanmar_x_libadd=$(pangoxlibs)
endif
if INCLUDE_GURMUKHI_X
@@ -23,7 +28,7 @@ gurmukhi_x_noinst=libpango-gurmukhi-x.la
gurmukhi_x_cflags=-DGURMUKHI_X_MODULE_PREFIX
else
gurmukhi_x_inst=pango-gurmukhi-x.la
-gurmukhi_x_moduleflags=-rpath $(libdir)
+gurmukhi_x_libadd=$(pangoxlibs)
endif
if INCLUDE_BENGALI_X
@@ -31,7 +36,7 @@ bengali_x_noinst=libpango-bengali-x.la
bengali_x_cflags=-DBENGALI_X_MODULE_PREFIX
else
bengali_x_inst=pango-bengali-x.la
-bengali_x_moduleflags=-rpath $(libdir)
+bengali_x_libadd=$(pangoxlibs)
endif
if INCLUDE_DEVANAGARI_X
@@ -39,7 +44,7 @@ devanagari_x_noinst=libpango-devanagari-x.la
devanagari_x_cflags=-DDEVANAGARI_X_MODULE_PREFIX
else
devanagari_x_inst=pango-devanagari-x.la
-devanagari_x_moduleflags=-rpath $(libdir)
+devanagari_x_libadd=$(pangoxlibs)
endif
if INCLUDE_GUJARATI_X
@@ -47,15 +52,13 @@ gujarati_x_noinst=libpango-gujarati-x.la
gujarati_x_cflags=-DGUJARATI_X_MODULE_PREFIX
else
gujarati_x_inst=pango-gujarati-x.la
-gujarati_x_moduleflags=-rpath $(libdir)
+gujarati_x_libadd=$(pangoxlibs)
endif
-if INCLUDE_ANY_INDIC
noinst_LTLIBRARIES = $(myanmar_x_noinst) $(gurmukhi_x_noinst) $(bengali_x_noinst) $(devanagari_x_noinst) $(gujarati_x_noinst)
-else
+
moduledir = $(libdir)/pango/modules
module_LTLIBRARIES = $(myanmar_x_inst) $(gurmukhi_x_inst) $(bengali_x_inst) $(devanagari_x_inst) $(gujarati_x_inst)
-endif
endif
@@ -64,39 +67,47 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(X_CFLAGS) $(myanmar_x_cflags
EXTRA_DIST = \
pango-indic-script.h
-pango_devanagari_x_la_LDFLAGS = $(devanagari_x_moduleflags) -export-dynamic -avoid-version -module
+pango_devanagari_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_devanagari_x_la_LIBADD = $(devanagari_x_libadd)
if INCLUDE_DEVANAGARI_X
libpango_devanagari_x_la_SOURCES = devanagari-x.c
else
pango_devanagari_x_la_SOURCES = devanagari-x.c
endif
-pango_myanmar_x_la_LDFLAGS = $(myanmar_x_moduleflags) -export-dynamic -avoid-version -module
+pango_myanmar_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_myanmar_x_la_LIBADD = $(myanmar_x_libadd)
if INCLUDE_MYANMAR_X
libpango_myanmar_x_la_SOURCES = myanmar-x.c
else
pango_myanmar_x_la_SOURCES = myanmar-x.c
endif
-pango_gurmukhi_x_la_LDFLAGS = $(gurmukhi_x_moduleflags) -export-dynamic -avoid-version -module
+pango_gurmukhi_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_gurmukhi_x_la_LIBADD = $(gurmukhi_x_libadd)
if INCLUDE_GURMUKHI_X
libpango_gurmukhi_x_la_SOURCES = gurmukhi-x.c
else
pango_gurmukhi_x_la_SOURCES = gurmukhi-x.c
endif
-pango_bengali_x_la_LDFLAGS = $(bengali_x_moduleflags) -export-dynamic -avoid-version -module
+pango_bengali_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_bengali_x_la_LIBADD = $(bengali_x_libadd)
if INCLUDE_BENGALI_X
libpango_bengali_x_la_SOURCES = bengali-x.c
else
pango_bengali_x_la_SOURCES = bengali-x.c
endif
-pango_gujarati_x_la_LDFLAGS = $(gujarati_x_moduleflags) -export-dynamic -avoid-version -module
+pango_gujarati_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_gujarati_x_la_LIBADD = $(gujarati_x_libadd)
if INCLUDE_GUJARATI_X
libpango_gujarati_x_la_SOURCES = gujarati-x.c
else
pango_gujarati_x_la_SOURCES = gujarati-x.c
endif
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/modules/tamil/Makefile.am b/modules/tamil/Makefile.am
index a0bf102f..f0fb4e61 100644
--- a/modules/tamil/Makefile.am
+++ b/modules/tamil/Makefile.am
@@ -1,13 +1,20 @@
## Process this file with automake to create Makefile.in.
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_XFT
-XFT_MODULES=pango-tamil-xft.la
if INCLUDE_TAMIL_XFT
+XFT_MODULES=
XFT_INCLUDED=libpango-tamil-xft.la
XFT_PREFIX=-DXFT_MODULE_PREFIX
else
+XFT_MODULES=pango-tamil-xft.la
XFT_INCLUDED=
XFT_PREFIX=
+tamil_xft_libadd=$(pangoxftlibs)
endif
else
XFT_MODULES=
@@ -32,6 +39,7 @@ else
X_MODULES=pango-tamil-x.la
X_INCLUDED=
X_PREFIX=
+tamil_x_libadd=$(pangoxlibs)
endif
else
X_MODULES=
@@ -43,17 +51,21 @@ noinst_LTLIBRARIES = $(X_INCLUDED) $(XFT_INCLUDED)
module_LTLIBRARIES = $(X_MODULES) $(XFT_MODULES)
moddefine = $(X_PREFIX) $(XFT_PREFIX)
moduledir = $(libdir)/pango/modules
-moduleflags=-rpath $(libdir)
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS) $(FREETYPE_CFLAGS)
-pango_tamil_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
+pango_tamil_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_tamil_x_la_LIBADD = $(tamil_x_libadd)
pango_tamil_x_la_SOURCES = $(x_sources)
libpango_tamil_x_la_SOURCES = $(x_sources)
-pango_tamil_xft_la_LDFLAGS = -rpath $(libdir) -export-dynamic -avoid-version -module
-pango_tamil_xft_la_LIBADD =
+pango_tamil_xft_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_tamil_xft_la_LIBADD = $(tamil_xft_libadd)
pango_tamil_xft_la_SOURCES = $(xft_sources)
libpango_tamil_xft_la_SOURCES = $(xft_sources)
+
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/modules/tamil/tamil-xft.c b/modules/tamil/tamil-xft.c
index 647132c9..e1d32926 100644
--- a/modules/tamil/tamil-xft.c
+++ b/modules/tamil/tamil-xft.c
@@ -403,7 +403,7 @@ tamil_engine_xft_new ()
* Pango
*/
#ifdef XFT_MODULE_PREFIX
-#define MODULE_ENTRY(func) _pango_basic_xft_##func
+#define MODULE_ENTRY(func) _pango_tamil_xft_##func
#else
#define MODULE_ENTRY(func) func
#endif
diff --git a/modules/thai/Makefile.am b/modules/thai/Makefile.am
index 3b22ed78..fc4e4a98 100644
--- a/modules/thai/Makefile.am
+++ b/modules/thai/Makefile.am
@@ -2,6 +2,11 @@
sources = thai-x.c
+pangolibs = $(top_builddir)/pango/libpango.la $(FRIBIDI_LIBS) $(GLIB_LIBS)
+pangoxlibs = $(top_builddir)/pango/libpangox.la $(X_LIBS) $(pangolibs)
+pangoxftlibs = $(top_builddir)/pango/libpangoxft.la $(XFT_LIBS) $(pangolibs)
+pangoft2libs = $(top_builddir)/pango/libpangoft2.la $(FREETYPE_LIBS) $(pangolibs)
+
if HAVE_X
if INCLUDE_THAI_X
noinst_LTLIBRARIES = libpango-thai-x.la
@@ -9,15 +14,18 @@ moddefine = -DX_MODULE_PREFIX
else
moduledir = $(libdir)/pango/modules
module_LTLIBRARIES = pango-thai-x.la
-moduleflags=-rpath $(libdir)
+thai_x_libadd=$(pangoxlibs)
endif
endif
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/pango/ $(moddefine) $(X_CFLAGS)
-pango_thai_x_la_LDFLAGS = $(moduleflags) -export-dynamic -avoid-version -module
-pango_thai_x_la_LIBADD =
+pango_thai_x_la_LDFLAGS = -export-dynamic -avoid-version -module
+pango_thai_x_la_LIBADD = $(thai_x_libadd)
pango_thai_x_la_SOURCES = $(sources)
libpango_thai_x_la_SOURCES = $(sources)
+included-modules: $(noinst_LTLIBRARIES)
+
+.PHONY: included-modules
diff --git a/pango/Makefile.am b/pango/Makefile.am
index acc25ed5..4a8f6107 100644
--- a/pango/Makefile.am
+++ b/pango/Makefile.am
@@ -95,15 +95,18 @@ libpango_la_LIBADD = mini-fribidi/libmini-fribidi.la
endif
libpangox_la_LDFLAGS = -release $(VERSION)
-libpangox_la_LIBADD = $(X_LIBS) $(INCLUDED_X_MODULES)
+libpangox_la_LIBADD = $(INCLUDED_X_MODULES) $(X_LIBS) libpango.la
+libpangox_la_DEPENDENCIES = $(INCLUDED_X_MODULES)
+
libpangoxft_la_SOURCES = \
pangoxft-font.c \
pangoxft-fontmap.c \
pangoxft-private.h \
module-defs-xft.c
-libpangoxft_la_LIBADD = $(INCLUDED_XFT_MODULES) $(XFT_LIBS) opentype/libpango-ot.la
+libpangoxft_la_LIBADD = $(INCLUDED_XFT_MODULES) $(XFT_LIBS) opentype/libpango-ot.la libpango.la
libpangoxft_la_LDFLAGS = -release $(VERSION)
+libpangoxft_la_DEPENDENCIES = $(INCLUDED_XFT_MODULES)
libpangoft2_la_SOURCES = \
pangoft2.h \
@@ -113,8 +116,9 @@ libpangoft2_la_SOURCES = \
pangoft2-fontmap.c \
module-defs-ft2.c
-libpangoft2_la_LIBADD = $(INCLUDED_FT2_MODULES) $(FREETYPE_LIBS)
+libpangoft2_la_LIBADD = $(INCLUDED_FT2_MODULES) $(FREETYPE_LIBS) libpango.la
libpangoft2_la_LDFLAGS = -release $(VERSION)
+libpangoft2_la_DEPENDENCIES = $(INCLUDED_FT2_MODULES)
pangoincludedir=$(includedir)/pango-1.0/pango
@@ -197,3 +201,14 @@ install-data-local:
echo "No dynamic modules were installed; all modules were linked statically."; \
echo "# This is an empty file, because Pango was installed with no dynamic modules" > $(DESTDIR)$(sysconfdir)/pango/pango.modules; \
fi)
+
+if HAVE_INCLUDED_MODULES
+included-modules:
+ @cd $(top_builddir)/modules && $(MAKE) $(AM_MAKEFLAGS) included-modules
+
+$(INCLUDED_X_MODULES) $(INCLUDED_XFT_MODULES) $(INCLUDED_FT2_MODULES): included-modules
+ @true
+
+.PHONY: included-modules
+endif
+