summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-27 14:40:56 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:23 +0200
commit9898d49825ebadb0e07717f141555ef8c9bfa3d7 (patch)
treef8b1882b12b9f6bf832e83c4f672089d92474dff /gettext-runtime/m4
parente7f44b866e4c33b6527c355c80dba278225287c7 (diff)
downloadexternal_gettext-9898d49825ebadb0e07717f141555ef8c9bfa3d7.zip
external_gettext-9898d49825ebadb0e07717f141555ef8c9bfa3d7.tar.gz
external_gettext-9898d49825ebadb0e07717f141555ef8c9bfa3d7.tar.bz2
New variable LTLIBC.
Diffstat (limited to 'gettext-runtime/m4')
-rw-r--r--gettext-runtime/m4/ChangeLog4
-rw-r--r--gettext-runtime/m4/intl.m414
2 files changed, 17 insertions, 1 deletions
diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog
index 88506f3..3af35b0 100644
--- a/gettext-runtime/m4/ChangeLog
+++ b/gettext-runtime/m4/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-27 Bruno Haible <bruno@clisp.org>
+
+ * intl.m4 (AM_INTL_SUBDIR): Set and AC_SUBST LTLIBC.
+
2007-10-22 Bruno Haible <bruno@clisp.org>
* ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
diff --git a/gettext-runtime/m4/intl.m4 b/gettext-runtime/m4/intl.m4
index 8ec0d5b..896859a 100644
--- a/gettext-runtime/m4/intl.m4
+++ b/gettext-runtime/m4/intl.m4
@@ -1,4 +1,4 @@
-# intl.m4 serial 7 (gettext-0.16.2)
+# intl.m4 serial 8 (gettext-0.16.2)
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -119,6 +119,18 @@ AC_DEFUN([AM_INTL_SUBDIR],
AC_CHECK_TOOL([WINDRES], [windres])
fi
+ dnl Determine whether when creating a library, "-lc" should be passed to
+ dnl libtool or not. On many platforms, it is required for the libtool option
+ dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
+ dnl in the *.la files - makes it impossible to create multithreaded programs,
+ dnl because libtool also reorders the -lc to come before the -pthread, and
+ dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
+ case "$host_os" in
+ hpux*) LTLIBC="" ;;
+ *) LTLIBC="-lc" ;;
+ esac
+ AC_SUBST([LTLIBC])
+
dnl Rename some macros and functions used for locking.
AH_BOTTOM([
#define __libc_lock_t gl_lock_t