Changeset - 58d12717ba1d
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-12-06 19:10:42
ohnobinki@ohnopublishing.net
typo
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
m4/pkgconfig_ohnowrap.m4
Show inline comments
 
@@ -10,30 +10,30 @@
 
# DistRen is distributed in the hope that it will be useful,
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
# GNU Affero General Public License for more details.
 
#
 
# You should have received a copy of the GNU Affero General Public License
 
# along with DistRen.  If not, see <http://www.gnu.org/licenses/>.
 
#
 

	
 
# PKGCONFIG_OHNOWRAP(VARIABLE-PREFIX, MODULES)
 
# see bug 13912 on freedesktop's bugzilla
 
# $1 is the var to store stuff in
 
# $2 is the listing of modules to pass to PKG_CHECK_MODULES
 
#
 
# Original code derived from and depending on pkg.m4 distributed with dev-util/pkgconfig-0.23
 
# which is Copyright (c) 2004 Scott James Remnant <scott@netsplit.com>
 
#
 
AC_DEFUN([PKGCONFIG_OHNOWRAP],
 
[dnl
 
AC_ARG_VAR([$1][_LDADD],[Linker names of libraries to link to for $1])dnl
 
AC_ARG_VAR([$1][_LDFLAGS],[Linker flags for linking to libraries for $1])dnl
 

	
 
PKG_CHECK_MODULES([$1], [$2])
 

	
 
_PKG_CONFIG([$1][_LDADD], [libs-only], [$2])
 
_PKG_CONFIG([$1][_LDADD], [libs-only-l], [$2])
 
_PKG_CONFIG([$1][_LDFLAGS], [libs-only-other], [$2])
 

	
 
$1[]_LDADD=$pkg_cv_[]$1[]_LDADD
 
$1[]_LDFLAGS=$pkg_cv_[]$1[]_LDFLAGS
 
])
0 comments (0 inline, 0 general)