Skip to content

Commit

Permalink
Default to --disable-static.
Browse files Browse the repository at this point in the history
Fri Mar  1 00:46:49 2002  Owen Taylor  <otaylor@redhat.com>

        * configure: Default to --disable-static.

        * configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
        Add a --enable-explicit-deps option to control whether dependency
        libraries are written into .la files and .pc files.
        Default is auto: if static libraries are off
        and shlib dependencies are found, don't write deps.

        * pango/Makefile.am sanitize-la.sh: Shell script used
        to strip dependencies out of .la files.

        * configure.in: Default to --disable-gtk-doc.

        * Makefile.am: Add a slightly modified distcheck rule
        that passes --enable-gtk-doc to the configure inside.
        (So that 'make dist' succeeds inside.)
  • Loading branch information
owtaylor authored and Owen Taylor committed Mar 2, 2002
1 parent 329c7a4 commit cd9e68b
Show file tree
Hide file tree
Showing 14 changed files with 212 additions and 6 deletions.
19 changes: 19 additions & 0 deletions ChangeLog
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-0
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-10
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-2
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-4
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-6
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
19 changes: 19 additions & 0 deletions ChangeLog.pre-1-8
@@ -1,3 +1,22 @@
Fri Mar 1 00:46:49 2002 Owen Taylor <otaylor@redhat.com>

* configure: Default to --disable-static.

* configure.in pangoft2.pc.in pangoxft2.pc.in pangox.pc.in:
Add a --enable-explicit-deps option to control whether dependency
libraries are written into .la files and .pc files.
Default is auto: if static libraries are off
and shlib dependencies are found, don't write deps.

* pango/Makefile.am sanitize-la.sh: Shell script used
to strip dependencies out of .la files.

* configure.in: Default to --disable-gtk-doc.

* Makefile.am: Add a slightly modified distcheck rule
that passes --enable-gtk-doc to the configure inside.
(So that 'make dist' succeeds inside.)

Fri Mar 1 14:37:47 2002 Owen Taylor <otaylor@redhat.com>

* pango/pangoxft-font.c (pango_xft_font_get_glyph_extents):
Expand Down
23 changes: 23 additions & 0 deletions Makefile.am
Expand Up @@ -40,3 +40,26 @@ pkgconfig_DATA = pango.pc $(X_PC) $(XFT_PC) $(FT2_PC) $(WIN32_PC)
dist-hook: pango.spec
cp pango.spec $(distdir)

# This is a version of the automake-1.4 distcheck rule modified
# to pass --enable-gtk-doc to ./configure
#
mydistcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base --enable-gtk-doc \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
46 changes: 43 additions & 3 deletions configure.in
Expand Up @@ -26,6 +26,7 @@ AM_CONDITIONAL(HAVE_CXX, test "$CXX" != "")
AC_LANG_RESTORE

AC_LIBTOOL_WIN32_DLL
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
AM_PROG_LEX
AC_PROG_YACC
Expand Down Expand Up @@ -68,8 +69,6 @@ if test "x$GCC" = "xyes"; then
fi
changequote([,])dnl

AC_PATH_XTRA

AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes)

# define a MAINT-like variable REBUILD which is set if Perl
Expand All @@ -85,6 +84,8 @@ if test "x$enable_rebuilds" = "xyes" && \
fi
AC_SUBST(REBUILD)

AC_PATH_XTRA

if test x$no_x = xyes ; then
AC_MSG_WARN([X development libraries not found])
have_x=false
Expand Down Expand Up @@ -465,7 +466,7 @@ AC_CHECK_PROG(DB2HTML, db2html, true, false)
AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)

dnl Let people disable the gtk-doc stuff.
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc use gtk-doc to build documentation [default=no]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)

if test x$enable_gtk_doc = xauto ; then
if test x$GTKDOC = xtrue ; then
Expand All @@ -479,6 +480,45 @@ dnl NOTE: We need to use a separate automake conditional for this
dnl to make this work with the tarballs.
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)

dnl ******************************************************
dnl * See whether to include shared library dependencies *
dnl ******************************************************

AC_ARG_ENABLE(explicit-deps,
[ --enable-explicit-deps=[yes/no/auto] use explicit dependencies in .pc files [default=auto]],
enable_explicit_deps="$enableval",
enable_explicit_deps=auto)

AC_MSG_CHECKING([Whether to write dependencies into .pc files])
case $enable_explicit_deps in
auto)
deplib_check_method=`(./libtool --config; echo eval echo \\$deplib_check_method) | sh`
if test "X$deplib_check_method" == Xnone || test "x$enable_static" = xyes ; then
enable_explicit_deps=yes
else
enable_explicit_deps=no
fi
;;
yes|no)
;;
*) AC_MSG_ERROR([Value given to --enable-explicit-deps must be one of yes, no or auto])
;;
esac
AC_MSG_RESULT($enable_explicit_deps)

if test $enable_explicit_deps = yes ; then
PKGCONFIG_X_LIBS=$X_LIBS@ $X_EXTRA_LIBS
PKGCONFIG_XFT_LIBS=$XFT_LIBS
PKGCONFIG_FREETYPE_LIBS=$XFT_LIBS
else
PKGCONFIG_X_LIBS=
PKGCONFIG_XFT_LIBS=
PKGCONFIG_FREETYPE_LIBS=
fi
AC_SUBST(PKGCONFIG_X_LIBS)
AC_SUBST(PKGCONFIG_XFT_LIBS)
AC_SUBST(PKGCONFIG_FREETYPE_LIBS)
AM_CONDITIONAL(DISABLE_EXPLICIT_DEPS, test $enable_explicit_deps = no)

AC_OUTPUT_COMMANDS([
cat > pango/module-defs.h <<EOTEXT
Expand Down
7 changes: 7 additions & 0 deletions pango/Makefile.am
Expand Up @@ -313,4 +313,11 @@ pangowin32.lib: libpangowin32.la pangowin32.def

install-data-local: install-ms-lib install-libtool-import-lib

if DISABLE_EXPLICIT_DEPS
install-exec-local:
for i in libpangoft2.la libpangoxft.la libpangox.la ; do \
test -f $(DESTDIR)$(libdir)/$$i && $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$$i ; \
done
endif

uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
2 changes: 1 addition & 1 deletion pangoft2.pc.in
Expand Up @@ -7,6 +7,6 @@ Name: Pango FT2
Description: Freetype 2.0 font support for Pango
Version: @VERSION@
Requires: pango
Libs: -L${libdir} -lpangoft2 @FREETYPE_LIBS@
Libs: -L${libdir} -lpangoft2 @PKGCONFIG_FREETYPE_LIBS@
Cflags: -I${includedir}/pango-1.0 @FREETYPE_CFLAGS@

2 changes: 1 addition & 1 deletion pangox.pc.in
Expand Up @@ -7,6 +7,6 @@ Name: Pango X
Description: X Window System font support for Pango
Version: @VERSION@
Requires: pango
Libs: -L${libdir} -lpangox @X_LIBS@ @X_EXTRA_LIBS@
Libs: -L${libdir} -lpangox @PKGCONFIG_X_LIBS@
Cflags: -I${includedir}/pango-1.0 @X_CFLAGS@

2 changes: 1 addition & 1 deletion pangoxft.pc.in
Expand Up @@ -7,6 +7,6 @@ Name: Pango Xft
Description: Xft font support for Pango
Version: @VERSION@
Requires: pango
Libs: -L${libdir} -lpangoxft @XFT_LIBS@
Libs: -L${libdir} -lpangoxft @PKGCONFIG_XFT_LIBS@
Cflags: -I${includedir}/pango-1.0 @X_CFLAGS@ @FREETYPE_CFLAGS@

3 changes: 3 additions & 0 deletions sanitize-la.sh
@@ -0,0 +1,3 @@
#!/bin/sh

sed "s/dependency_libs=.*/dependency_libs=''/" < $1 > $1T && mv $1T $1

0 comments on commit cd9e68b

Please sign in to comment.