]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Try harder to find sched_yield on Solaris.
authorBruno Haible <bruno@clisp.org>
Fri, 13 Apr 2007 12:15:26 +0000 (12:15 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:46 +0000 (12:14 +0200)
gettext-runtime/ChangeLog
gettext-runtime/configure.ac

index 4a319b183615ead8ea2abc80dd91dc4e4bb81749..4a5fb27ed0fd4aeedef2a9f009589f8a7513623b 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: For LIBSCHED, try also -lposix4.
+       Reported by Arto C. Nirkko <anirkko@insel.ch>.
+
 2006-10-27  Bruno Haible  <bruno@clisp.org>
 
        Work around automake-1.10 annoyance.
index 2d14004e8ff7c8191290d02b8e206bcb8e10ed17..99f7149e7043a6ca195d92c96ba85a6f0e864725 100644 (file)
@@ -1,5 +1,5 @@
 dnl Configuration for the gettext-runtime directory of GNU gettext
-dnl Copyright (C) 1995-1999, 2000-2006 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc.
 dnl
 dnl This program is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
@@ -108,7 +108,10 @@ dnl Checks for special libraries for the tests/test-lock test.
 dnl On some systems, sched_yield is in librt, rather than in libpthread.
 LIBSCHED=
 if test $gl_threads_api = posix; then
-  AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
+  dnl Solaris has sched_yield in librt, not in libpthread or libc.
+  AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt],
+    [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
+     AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])])
 fi
 AC_SUBST([LIBSCHED])