Fix macros from libcharset to work with autoconf-2.5x. (From Laszlo
authorOwen Taylor <otaylor@redhat.com>
Fri, 28 Sep 2001 23:44:46 +0000 (23:44 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 28 Sep 2001 23:44:46 +0000 (23:44 +0000)
Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>

* glib/libcharset/* configure.in: Fix macros from libcharset
to work with autoconf-2.5x. (From Laszlo Peter.)

17 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
aclibcharset.m4 [deleted file]
configure.in
docs/reference/glib/tmpl/memory.sgml
glib/libcharset/Makefile.am
glib/libcharset/codeset.m4 [new file with mode: 0644]
glib/libcharset/glibc21.m4 [new file with mode: 0644]
glib/libcharset/libcharset-glib.patch
glib/libcharset/make-patch.sh
glib/libcharset/update.sh

index 7e32b46..c21a84a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
index 7e32b46..c21a84a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
 2001-09-27  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
diff --git a/aclibcharset.m4 b/aclibcharset.m4
deleted file mode 100644 (file)
index 4f7c20b..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-dnl From libcharset 1.1
-#serial 2
-
-dnl From Bruno Haible.
-
-AC_DEFUN(jm_LANGINFO_CODESET,
-[
-  AC_CHECK_HEADERS(langinfo.h)
-  AC_CHECK_FUNCS(nl_langinfo)
-
-  AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
-    [AC_TRY_LINK([#include <langinfo.h>],
-      [char* cs = nl_langinfo(CODESET);],
-      jm_cv_langinfo_codeset=yes,
-      jm_cv_langinfo_codeset=no)
-    ])
-  if test $jm_cv_langinfo_codeset = yes; then
-    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
-      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
-  fi
-])
-#serial 2
-
-# Test for the GNU C Library, version 2.1 or newer.
-# From Bruno Haible.
-
-AC_DEFUN(jm_GLIBC21,
-  [
-    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
-      ac_cv_gnu_library_2_1,
-      [AC_EGREP_CPP([Lucky GNU user],
-       [
-#include <features.h>
-#ifdef __GNU_LIBRARY__
- #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
-  Lucky GNU user
- #endif
-#endif
-       ],
-       ac_cv_gnu_library_2_1=yes,
-       ac_cv_gnu_library_2_1=no)
-      ]
-    )
-    AC_SUBST(GLIBC21)
-    GLIBC21="$ac_cv_gnu_library_2_1"
-  ]
-)
index 31c10bc..e2b180d 100644 (file)
@@ -2,7 +2,8 @@ dnl ***********************************
 dnl *** include special GLib macros ***
 dnl ***********************************
 builtin(include, acglib.m4)dnl
-builtin(include, aclibcharset.m4)dnl
+builtin(include, glib/libcharset/codeset.m4)dnl
+builtin(include, glib/libcharset/glibc21.m4)dnl
 
 # require autoconf 2.13
 AC_PREREQ(2.13)
index 1df03a0..22feb94 100644 (file)
@@ -201,6 +201,14 @@ function has been called.
 @vtable: table of memory allocation routines.
 
 
+<!-- ##### FUNCTION g_mem_is_system_malloc ##### -->
+<para>
+
+</para>
+
+@Returns: 
+
+
 <!-- ##### VARIABLE glib_mem_profiler_table ##### -->
 <para>
 
index 859fc86..0ba6bda 100644 (file)
@@ -14,6 +14,8 @@ EXTRA_DIST =                  \
        charset.alias           \
        ref-add.sed             \
        ref-del.sed             \
+       glibc21.m4              \
+       codeset.m4              \
        update.sh               \
        make-patch.sh
 
diff --git a/glib/libcharset/codeset.m4 b/glib/libcharset/codeset.m4
new file mode 100644 (file)
index 0000000..e08ec66
--- /dev/null
@@ -0,0 +1,20 @@
+#serial 2
+
+dnl From Bruno Haible.
+
+AC_DEFUN([jm_LANGINFO_CODESET],
+[
+  AC_CHECK_HEADERS(langinfo.h)
+  AC_CHECK_FUNCS(nl_langinfo)
+
+  AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
+    [AC_TRY_LINK([#include <langinfo.h>],
+      [char* cs = nl_langinfo(CODESET);],
+      jm_cv_langinfo_codeset=yes,
+      jm_cv_langinfo_codeset=no)
+    ])
+  if test $jm_cv_langinfo_codeset = yes; then
+    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
+      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
+  fi
+])
diff --git a/glib/libcharset/glibc21.m4 b/glib/libcharset/glibc21.m4
new file mode 100644 (file)
index 0000000..5b88ef2
--- /dev/null
@@ -0,0 +1,26 @@
+#serial 2
+
+# Test for the GNU C Library, version 2.1 or newer.
+# From Bruno Haible.
+
+AC_DEFUN([jm_GLIBC21],
+  [
+    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
+      ac_cv_gnu_library_2_1,
+      [AC_EGREP_CPP([Lucky GNU user],
+       [
+#include <features.h>
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
+  Lucky GNU user
+ #endif
+#endif
+       ],
+       ac_cv_gnu_library_2_1=yes,
+       ac_cv_gnu_library_2_1=no)
+      ]
+    )
+    AC_SUBST(GLIBC21)
+    GLIBC21="$ac_cv_gnu_library_2_1"
+  ]
+)
index 9289589..c1069ab 100644 (file)
         *aliases != '\0';
         aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
      if (strcmp (codeset, aliases) == 0
+--- /home/otaylor/ftp/libiconv-1.7.0.1/libcharset/m4/glibc21.m4        Sat Jun 17 14:31:21 2000
++++ glibc21.m4 Fri Sep 28 12:12:39 2001
+@@ -3,7 +3,7 @@
+ # Test for the GNU C Library, version 2.1 or newer.
+ # From Bruno Haible.
+-AC_DEFUN(jm_GLIBC21,
++AC_DEFUN([jm_GLIBC21],
+   [
+     AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
+       ac_cv_gnu_library_2_1,
+--- /home/otaylor/ftp/libiconv-1.7.0.1/libcharset/m4/codeset.m4        Mon Apr  3 04:06:24 2000
++++ codeset.m4 Fri Sep 28 12:12:44 2001
+@@ -2,7 +2,7 @@
+ dnl From Bruno Haible.
+-AC_DEFUN(jm_LANGINFO_CODESET,
++AC_DEFUN([jm_LANGINFO_CODESET],
+ [
+   AC_CHECK_HEADERS(langinfo.h)
+   AC_CHECK_FUNCS(nl_langinfo)
 --- /home/otaylor/ftp/libiconv-1.7.0.1/libcharset/include/libcharset.h.in      Tue Mar 27 08:34:42 2001
 +++ libcharset.h       Wed Sep 26 21:55:40 2001
 @@ -30,8 +30,8 @@
index 9548708..e8156bb 100755 (executable)
@@ -20,4 +20,8 @@ for i in localcharset.c ref-add.sin ref-del.sin ; do
   diff -u $ORIGINAL/lib/$i $i >> libcharset-glib.patch
 done
 
+for i in glibc21.m4 codeset.m4 ; do
+  diff -u $ORIGINAL/m4/$i $i >> libcharset-glib.patch
+done
+
 diff -u $ORIGINAL/include/libcharset.h.in libcharset.h >> libcharset-glib.patch
index 6e2dfce..9548d36 100755 (executable)
@@ -20,11 +20,12 @@ done
 
 cp $ORIGINAL/include/libcharset.h.in ./libcharset.h
 
+for i in codeset.m4 glibc21.m4 ; do
+  cp $ORIGINAL/m4/$i .
+done
+
 patch -p0 < libcharset-glib.patch
 
 echo "dnl From libcharset $VERSION" > ../../aclibcharset.m4
 
-for i in codeset.m4 glibc21.m4 ; do
-  cat $ORIGINAL/m4/$i >> ../../aclibcharset.m4
-done