bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for lib-link.m4:AC_LIB_LINKFLAGS


From: Sam Steingold
Subject: patch for lib-link.m4:AC_LIB_LINKFLAGS
Date: Thu, 29 Nov 2007 16:26:47 -0500
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

2007-11-29  Sam Steingold  <address@hidden>

        * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): split into ...
        (AC_LIB_LINKFLAGS_ADD): adds -with-libname-prefix command line switch
        (AC_LIB_LINKFLAGS_SEARCH): searches for libname and the libraries
        corresponding to explicit and implicit dependencies


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTy6XPp1Qsf2qnMcRAq1hAJ4hEuoTndL55n3oPZmATkbSRdWIAwCgn7np
QL1vb4m5YWFkCcIfP9CCLWw=
=/9lq
-----END PGP SIGNATURE-----
Index: src/glm4/lib-link.m4
===================================================================
RCS file: /cvsroot/clisp/clisp/src/glm4/lib-link.m4,v
retrieving revision 1.2
diff -u -w -p -r1.2 lib-link.m4
--- src/glm4/lib-link.m4        19 Nov 2007 15:06:22 -0000      1.2
+++ src/glm4/lib-link.m4        29 Nov 2007 21:23:39 -0000
@@ -1,4 +1,5 @@
 # lib-link.m4 serial 13 (gettext-0.17)
+dnl -*- Autoconf -*-
 dnl Copyright (C) 2001-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,
@@ -136,13 +137,8 @@ AC_DEFUN([AC_LIB_RPATH],
     :, enable_rpath=yes)
 ])
 
-dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
-dnl the libraries corresponding to explicit and implicit dependencies.
-dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
-dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
-dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
-AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
-[
+dnl AC_LIB_LINKFLAGS_ADD(name) adds -with-libname-prefix command line switch
+AC_DEFUN([AC_LIB_LINKFLAGS_ADD],[dnl
   AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
   define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
                                [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
@@ -171,7 +167,14 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
         additional_libdir="$withval/$acl_libdirstem"
       fi
     fi
-])
+])])
+
+dnl AC_LIB_LINKFLAGS_SEARCH(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
+dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
+AC_DEFUN([AC_LIB_LINKFLAGS_SEARCH],[dnl
   dnl Search the library and its dependencies in $additional_libdir and
   dnl $LDFLAGS. Using breadth-first-seach.
   LIB[]NAME=
@@ -611,6 +614,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
   fi
 ])
 
+dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
+dnl the libraries corresponding to explicit and implicit dependencies.
+dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
+dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
+dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
+AC_DEFUN([AC_LIB_LINKFLAGS_BODY],[
+AC_LIB_LINKFLAGS_ADD($1)
+AC_LIB_LINKFLAGS_SEARCH($1,$2)
+])
+
 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
 dnl unless already present in VAR.
 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]