]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Build the imported libraries with a C compiler, even when CC=g++.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Nov 2006 12:54:58 +0000 (12:54 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:25 +0000 (12:14 +0200)
gnulib-local/ChangeLog
gnulib-local/m4/libcroco.m4
gnulib-local/m4/libglib.m4
gnulib-local/m4/libxml.m4
gnulib-local/modules/libcroco
gnulib-local/modules/libglib
gnulib-local/modules/libxml

index 59fb0d4aff022fc6a0ee5b49446a68112386e33b..43014c99ed4fb176a54d2d4b4eb230414f25627f 100644 (file)
@@ -1,3 +1,25 @@
+2006-11-26  Bruno Haible  <bruno@clisp.org>
+
+       Build the imported libraries with a C compiler, even when CC=g++.
+
+       * modules/libcroco (Depends-on): Add no-c++.
+       (Makefile.am): Define libcroco_rpl_la_SOURCES,
+       libcroco_rpl_la_CPPFLAGS.
+       Augment lib_LIBADD, lib_DEPENDENCIES, noinst_LTLIBRARIES.
+       * m4/libcroco.m4 (gl_LIBCROCO): Don't use AC_LIBOBJ.
+
+       * modules/libglib (Depends-on): Add no-c++.
+       (Makefile.am): Define libglib_rpl_la_SOURCES, libglib_rpl_la_CPPFLAGS.
+       Augment lib_LIBADD, lib_DEPENDENCIES, noinst_LTLIBRARIES.
+       * m4/libglib.m4 (gl_LIBGLIB): Don't use AC_LIBOBJ. New condition
+       INCLUDED_LIBGLIB.
+
+       * modules/libxml (Depends-on): Add no-c++.
+       (Makefile.am): Define libxml_rpl_la_SOURCES, libxml_rpl_la_CPPFLAGS.
+       Augment lib_LIBADD, lib_DEPENDENCIES, noinst_LTLIBRARIES.
+       * m4/libxml.m4 (gl_LIBXML): Don't use AC_LIBOBJ. New condition
+       INCLUDED_LIBXML.
+
 2006-11-26  Bruno Haible  <bruno@clisp.org>
 
        libcroco uses vasprintf.h, which requires <config.h>.
index b95da3fcb278de910f9e418fa2224bafd1caa8f6..22232effb14c64de3053e141d548f1e053c6245f 100644 (file)
@@ -1,4 +1,4 @@
-# libcroco.m4 serial 1 (gettext-0.16.1)
+# libcroco.m4 serial 2 (gettext-0.16.1)
 dnl Copyright (C) 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -89,34 +89,6 @@ AC_DEFUN([gl_LIBCROCO],
   AC_MSG_CHECKING([whether to use the included libcroco])
   AC_MSG_RESULT([$gl_cv_libcroco_use_included])
 
-  if test "$gl_cv_libcroco_use_included" = yes; then
-    AC_LIBOBJ([libcroco/cr-additional-sel])
-    AC_LIBOBJ([libcroco/cr-attr-sel])
-    AC_LIBOBJ([libcroco/cr-cascade])
-    AC_LIBOBJ([libcroco/cr-declaration])
-    AC_LIBOBJ([libcroco/cr-doc-handler])
-    AC_LIBOBJ([libcroco/cr-enc-handler])
-    AC_LIBOBJ([libcroco/cr-fonts])
-    AC_LIBOBJ([libcroco/cr-input])
-    AC_LIBOBJ([libcroco/cr-num])
-    AC_LIBOBJ([libcroco/cr-om-parser])
-    AC_LIBOBJ([libcroco/cr-parser])
-    AC_LIBOBJ([libcroco/cr-parsing-location])
-    AC_LIBOBJ([libcroco/cr-prop-list])
-    AC_LIBOBJ([libcroco/cr-pseudo])
-    AC_LIBOBJ([libcroco/cr-rgb])
-    AC_LIBOBJ([libcroco/cr-sel-eng])
-    AC_LIBOBJ([libcroco/cr-selector])
-    AC_LIBOBJ([libcroco/cr-simple-sel])
-    AC_LIBOBJ([libcroco/cr-statement])
-    AC_LIBOBJ([libcroco/cr-string])
-    AC_LIBOBJ([libcroco/cr-style])
-    AC_LIBOBJ([libcroco/cr-stylesheet])
-    AC_LIBOBJ([libcroco/cr-term])
-    AC_LIBOBJ([libcroco/cr-tknzr])
-    AC_LIBOBJ([libcroco/cr-token])
-    AC_LIBOBJ([libcroco/cr-utils])
-  fi
   AM_CONDITIONAL([INCLUDED_LIBCROCO],
     [test "$gl_cv_libcroco_use_included" = yes])
 ])
index 952bb8932d837b3973dfb3784cf3f3fc012cc64e..2db218fac303c52f44f42f28981e56f5ece487fd 100644 (file)
@@ -1,4 +1,4 @@
-# libglib.m4 serial 1 (gettext-0.16.1)
+# libglib.m4 serial 2 (gettext-0.16.1)
 dnl Copyright (C) 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -95,12 +95,6 @@ AC_DEFUN([gl_LIBGLIB],
     LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
     LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
     LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
-    AC_LIBOBJ([glib/ghash])
-    AC_LIBOBJ([glib/glist])
-    AC_LIBOBJ([glib/gmessages])
-    AC_LIBOBJ([glib/gprimes])
-    AC_LIBOBJ([glib/gstrfuncs])
-    AC_LIBOBJ([glib/gstring])
     AC_REQUIRE([AC_GNU_SOURCE])
     AC_CHECK_HEADERS([unistd.h])
     dnl Don't bother checking for pthread.h and other multithread facilities.
@@ -108,4 +102,7 @@ AC_DEFUN([gl_LIBGLIB],
     LIBGLIB_H=
   fi
   AC_SUBST([LIBGLIB_H])
+
+  AM_CONDITIONAL([INCLUDED_LIBGLIB],
+    [test "$gl_cv_libglib_use_included" = yes])
 ])
index 5d9c6cf9890716c3f1e5cbd26c96d14402c9b102..eea603dd1881fb1841c8711f0e5f7fdc68ee8698 100644 (file)
@@ -1,4 +1,4 @@
-# libxml.m4 serial 1 (gettext-0.16.1)
+# libxml.m4 serial 2 (gettext-0.16.1)
 dnl Copyright (C) 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -137,49 +137,6 @@ AC_DEFUN([gl_LIBXML],
     LIBXML_H="$LIBXML_H libxml/xpath.h"
     LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
     LIBXML_H="$LIBXML_H libxml/xpointer.h"
-    AC_LIBOBJ([libxml/DOCBparser])
-    AC_LIBOBJ([libxml/HTMLparser])
-    AC_LIBOBJ([libxml/HTMLtree])
-    AC_LIBOBJ([libxml/SAX])
-    AC_LIBOBJ([libxml/SAX2])
-    AC_LIBOBJ([libxml/c14n])
-    AC_LIBOBJ([libxml/catalog])
-    AC_LIBOBJ([libxml/chvalid])
-    AC_LIBOBJ([libxml/debugXML])
-    AC_LIBOBJ([libxml/dict])
-    AC_LIBOBJ([libxml/encoding])
-    AC_LIBOBJ([libxml/entities])
-    AC_LIBOBJ([libxml/error])
-    AC_LIBOBJ([libxml/globals])
-    AC_LIBOBJ([libxml/hash])
-    AC_LIBOBJ([libxml/legacy])
-    AC_LIBOBJ([libxml/list])
-    AC_LIBOBJ([libxml/nanoftp])
-    AC_LIBOBJ([libxml/nanohttp])
-    AC_LIBOBJ([libxml/parser])
-    AC_LIBOBJ([libxml/parserInternals])
-    AC_LIBOBJ([libxml/pattern])
-    AC_LIBOBJ([libxml/relaxng])
-    AC_LIBOBJ([libxml/schematron])
-    AC_LIBOBJ([libxml/threads])
-    AC_LIBOBJ([libxml/tree])
-    AC_LIBOBJ([libxml/uri])
-    AC_LIBOBJ([libxml/valid])
-    AC_LIBOBJ([libxml/xinclude])
-    AC_LIBOBJ([libxml/xlink])
-    AC_LIBOBJ([libxml/xmlIO])
-    AC_LIBOBJ([libxml/xmlmemory])
-    AC_LIBOBJ([libxml/xmlmodule])
-    AC_LIBOBJ([libxml/xmlreader])
-    AC_LIBOBJ([libxml/xmlregexp])
-    AC_LIBOBJ([libxml/xmlsave])
-    AC_LIBOBJ([libxml/xmlschemas])
-    AC_LIBOBJ([libxml/xmlschemastypes])
-    AC_LIBOBJ([libxml/xmlstring])
-    AC_LIBOBJ([libxml/xmlunicode])
-    AC_LIBOBJ([libxml/xmlwriter])
-    AC_LIBOBJ([libxml/xpath])
-    AC_LIBOBJ([libxml/xpointer])
     AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h ctype.h dlfcn.h dl.h errno.h \
                       fcntl.h float.h limits.h malloc.h math.h netdb.h \
                       netinet/in.h resolv.h signal.h stdlib.h string.h \
@@ -193,4 +150,7 @@ AC_DEFUN([gl_LIBXML],
     LIBXML_H=
   fi
   AC_SUBST([LIBXML_H])
+
+  AM_CONDITIONAL([INCLUDED_LIBXML],
+    [test "$gl_cv_libxml_use_included" = yes])
 ])
index d38d62b3ca87bd919fcb555508863fcad22c90f3..909892c1f60582b98c57de07fbde5a21a0e97681 100644 (file)
@@ -62,6 +62,7 @@ m4/absolute-header.m4
 Depends-on:
 libglib
 libxml
+no-c++
 
 configure.ac:
 gl_LIBCROCO
@@ -71,8 +72,40 @@ AM_CPPFLAGS += $(INCGLIB)
 AM_CPPFLAGS += $(INCXML)
 if INCLUDED_LIBCROCO
 AM_CPPFLAGS += -I$(srcdir)/libcroco
+lib_LIBADD += libcroco_rpl.la
+lib_DEPENDENCIES += libcroco_rpl.la
+noinst_LTLIBRARIES += libcroco_rpl.la
 endif
 
+libcroco_rpl_la_SOURCES = \
+  libcroco/cr-additional-sel.c \
+  libcroco/cr-attr-sel.c \
+  libcroco/cr-cascade.c \
+  libcroco/cr-declaration.c \
+  libcroco/cr-doc-handler.c \
+  libcroco/cr-enc-handler.c \
+  libcroco/cr-fonts.c \
+  libcroco/cr-input.c \
+  libcroco/cr-num.c \
+  libcroco/cr-om-parser.c \
+  libcroco/cr-parser.c \
+  libcroco/cr-parsing-location.c \
+  libcroco/cr-prop-list.c \
+  libcroco/cr-pseudo.c \
+  libcroco/cr-rgb.c \
+  libcroco/cr-sel-eng.c \
+  libcroco/cr-selector.c \
+  libcroco/cr-simple-sel.c \
+  libcroco/cr-statement.c \
+  libcroco/cr-string.c \
+  libcroco/cr-style.c \
+  libcroco/cr-stylesheet.c \
+  libcroco/cr-term.c \
+  libcroco/cr-tknzr.c \
+  libcroco/cr-token.c \
+  libcroco/cr-utils.c
+libcroco_rpl_la_CPPFLAGS = $(AM_CPPFLAGS) $(NO_CXX)
+
 if GL_COND_LIBTOOL
 lib_LDFLAGS += $(LTLIBCROCO)
 endif
index 2c8c4c0bd8b9e8c450e49e78fd1e724ab6944bbd..f7abe87a5a3f5f809a05e165427535898de8e6a1 100644 (file)
@@ -22,11 +22,27 @@ Depends-on:
 vasprintf
 xalloc
 xvasprintf
+no-c++
 
 configure.ac:
 gl_LIBGLIB
 
 Makefile.am:
+if INCLUDED_LIBGLIB
+lib_LIBADD += libglib_rpl.la
+lib_DEPENDENCIES += libglib_rpl.la
+noinst_LTLIBRARIES += libglib_rpl.la
+endif
+
+libglib_rpl_la_SOURCES = \
+  glib/ghash.c \
+  glib/glist.c \
+  glib/gmessages.c \
+  glib/gprimes.c \
+  glib/gstrfuncs.c \
+  glib/gstring.c
+libglib_rpl_la_CPPFLAGS = $(AM_CPPFLAGS) $(NO_CXX)
+
 BUILT_SOURCES += $(LIBGLIB_H)
 
 glib.h: glib_.h
index 8877c73ac77d32179646073a6e8e2ce11dba731f..690dc7f923fdd8807fd690560c7971dbdaf32afe 100644 (file)
@@ -100,11 +100,64 @@ m4/absolute-header.m4
 
 Depends-on:
 iconv
+no-c++
 
 configure.ac:
 gl_LIBXML
 
 Makefile.am:
+if INCLUDED_LIBXML
+lib_LIBADD += libxml_rpl.la
+lib_DEPENDENCIES += libxml_rpl.la
+noinst_LTLIBRARIES += libxml_rpl.la
+endif
+
+libxml_rpl_la_SOURCES = \
+  libxml/DOCBparser.c \
+  libxml/HTMLparser.c \
+  libxml/HTMLtree.c \
+  libxml/SAX.c \
+  libxml/SAX2.c \
+  libxml/c14n.c \
+  libxml/catalog.c \
+  libxml/chvalid.c \
+  libxml/debugXML.c \
+  libxml/dict.c \
+  libxml/encoding.c \
+  libxml/entities.c \
+  libxml/error.c \
+  libxml/globals.c \
+  libxml/hash.c \
+  libxml/legacy.c \
+  libxml/list.c \
+  libxml/nanoftp.c \
+  libxml/nanohttp.c \
+  libxml/parser.c \
+  libxml/parserInternals.c \
+  libxml/pattern.c \
+  libxml/relaxng.c \
+  libxml/schematron.c \
+  libxml/threads.c \
+  libxml/tree.c \
+  libxml/uri.c \
+  libxml/valid.c \
+  libxml/xinclude.c \
+  libxml/xlink.c \
+  libxml/xmlIO.c \
+  libxml/xmlmemory.c \
+  libxml/xmlmodule.c \
+  libxml/xmlreader.c \
+  libxml/xmlregexp.c \
+  libxml/xmlsave.c \
+  libxml/xmlschemas.c \
+  libxml/xmlschemastypes.c \
+  libxml/xmlstring.c \
+  libxml/xmlunicode.c \
+  libxml/xmlwriter.c \
+  libxml/xpath.c \
+  libxml/xpointer.c
+libxml_rpl_la_CPPFLAGS = $(AM_CPPFLAGS) $(NO_CXX)
+
 BUILT_SOURCES += $(LIBXML_H)
 
 libxml/DOCBparser.h: libxml/DOCBparser_.h