From: Bruno Haible Date: Tue, 30 Dec 2008 23:28:09 +0000 (+0100) Subject: Fix a bug in the determination of LIB${NAME}_PREFIX. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63f212facc2e1a3b0d14ef1cf9dfa035e8432c5a;p=pspp Fix a bug in the determination of LIB${NAME}_PREFIX. --- diff --git a/ChangeLog b/ChangeLog index 516ff9e98b..e093c98029 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-30 Bruno Haible + + * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite + LIB${NAME}_PREFIX when considering the dependencies of lib${name}. + Reported by Charles Wilson . + 2008-12-29 Eric Blake multiarch: avoid autoconf AC_REQUIRE bug diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index 7e07a42468..e29eead276 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 @@ -1,4 +1,4 @@ -# lib-link.m4 serial 16 (gettext-0.18) +# lib-link.m4 serial 17 (gettext-0.18) dnl Copyright (C) 2001-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -446,12 +446,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi additional_includedir="$basedir/include" ;; esac