[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
threadlib: fix option --with-libpth-prefix
From: |
Bruno Haible |
Subject: |
threadlib: fix option --with-libpth-prefix |
Date: |
Tue, 5 Oct 2010 03:22:42 +0200 |
User-agent: |
KMail/1.9.9 |
Just noticed that when specifying --enable-threads=pth --with-libpth-prefix=...
the libpth is nevertheless not found during configuration. Workaround is to
specify LDFLAGS during configuration. This fixes it.
2010-10-04 Bruno Haible <address@hidden>
threadlib: Make option --with-libpth-prefix work.
* m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
use $LIBPTH, not just -lpth.
--- m4/threadlib.m4.orig Tue Oct 5 03:17:26 2010
+++ m4/threadlib.m4 Tue Oct 5 03:13:47 2010
@@ -1,4 +1,4 @@
-# threadlib.m4 serial 7 (gettext-0.18.2)
+# threadlib.m4 serial 8 (gettext-0.18.2)
dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -250,7 +250,7 @@
AC_LIB_LINKFLAGS([pth])
gl_have_pth=
gl_save_LIBS="$LIBS"
- LIBS="$LIBS -lpth"
+ LIBS="$LIBS $LIBPTH"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#include <pth.h>]], [[pth_self();]])],
[gl_have_pth=yes])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- threadlib: fix option --with-libpth-prefix,
Bruno Haible <=