Skip to content

Commit

Permalink
Install mxml man page as mxml4 by default (Issue #324)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Apr 21, 2024
1 parent ef6b468 commit c81526a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Changes in Mini-XML 4.0.3

- The configure script now defaults the `DSOFLAGS` value to `LDFLAGS` if not
set (Issue #325)
- Now install the man page as "mxml4" to allow parallel installation of Mini-XML
4.x and 3.x (Issue #324)


Changes in Mini-XML 4.0.2
Expand Down
7 changes: 4 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ INSTALL_MAN = $(INSTALL) -c -m 444
LIBMXML = @LIBMXML@
LIBMXML_BASE = @LIBMXML_BASE@
LIBMXML_STATIC = @LIBMXML_STATIC@
MXML_MAN = @MXML_MAN@
MXML_PC = @MXML_PC@


Expand Down Expand Up @@ -219,7 +220,7 @@ install: $(TARGETS) install-$(LIBMXML) $(INSTALL_STATIC)
$(INSTALL_DATA) mxml4.pc $(BUILDROOT)$(libdir)/pkgconfig/$(MXML_PC)
echo Installing man pages in $(BUILDROOT)$(mandir)...
$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
$(INSTALL_MAN) doc/mxml.3 $(BUILDROOT)$(mandir)/man3/mxml.3
$(INSTALL_MAN) doc/mxml.3 $(BUILDROOT)$(mandir)/man3/$(MXML_MAN)

install-libmxml.a: libmxml.a
echo Installing libmxml.a to $(BUILDROOT)$(libdir)...
Expand Down Expand Up @@ -274,9 +275,9 @@ uninstall: uninstall-$(LIBMXML) @UNINSTALL_STATIC@
echo Uninstalling headers from $(BUILDROOT)$(includedir)...
$(RM) $(BUILDROOT)$(includedir)/mxml.h
echo Uninstalling pkgconfig files from $(BUILDROOT)$(libdir)/pkgconfig...
$(RM) $(BUILDROOT)$(libdir)/pkgconfig/mxml.pc
$(RM) $(BUILDROOT)$(libdir)/pkgconfig/$(MXML_PC)
echo Uninstalling man pages from $(BUILDROOT)$(mandir)...
$(RM) $(BUILDROOT)$(mandir)/man3/mxml.3
$(RM) $(BUILDROOT)$(mandir)/man3/$(MXML_MAN)

uninstall-libmxml.a:
echo Uninstalling libmxml.a from $(BUILDROOT)$(libdir)...
Expand Down
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ LIBMXML_STATIC
LIBMXML
INSTALL_STATIC
MXML_PC
MXML_MAN
LIBMXML_BASE
ARFLAGS
LN
Expand Down Expand Up @@ -3989,13 +3990,15 @@ fi
if test x$enable_libmxml4_prefix != xno
then :

MXML_MAN="mxml4.3"
MXML_PC="mxml4.pc"
INCLUDE_PREFIX="/libmxml4"
LIBMXML_BASE="libmxml4"
LINK_MXML="-lmxml4"

else $as_nop

MXML_MAN="mxml.3"
MXML_PC="mxml.pc"
INCLUDE_PREFIX=""
LIBMXML_BASE="libmxml"
Expand All @@ -4007,6 +4010,7 @@ fi




{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
printf %s "checking for inline... " >&6; }
if test ${ac_cv_c_inline+y}
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,20 @@ dnl Library prefix...
AC_ARG_ENABLE([libmxml4-prefix], AS_HELP_STRING([--disable-libmxml4-prefix], [do not add libmxml4 prefix to header/library files]))

AS_IF([test x$enable_libmxml4_prefix != xno], [
MXML_MAN="mxml4.3"
MXML_PC="mxml4.pc"
INCLUDE_PREFIX="/libmxml4"
LIBMXML_BASE="libmxml4"
LINK_MXML="-lmxml4"
], [
MXML_MAN="mxml.3"
MXML_PC="mxml.pc"
INCLUDE_PREFIX=""
LIBMXML_BASE="libmxml"
LINK_MXML="-lmxml"
])
AC_SUBST([LIBMXML_BASE])
AC_SUBST([MXML_MAN])
AC_SUBST([MXML_PC])


Expand Down

0 comments on commit c81526a

Please sign in to comment.