[mathicgb] 325/393: Added a C function to library for easier detection from autoconf.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Apr 3 15:59:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository mathicgb.

commit fcb1f3704059c90a61fc3fed3b020b1715250790
Author: Bjarke Hammersholt Roune <bjarkehr.code at gmail.com>
Date:   Fri Aug 9 17:01:10 2013 +0200

    Added a C function to library for easier detection from autoconf.
---
 src/mathicgb.cpp | 4 ++++
 src/mathicgb.h   | 9 ++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mathicgb.cpp b/src/mathicgb.cpp
index 388cea5..2060289 100755
--- a/src/mathicgb.cpp
+++ b/src/mathicgb.cpp
@@ -10,6 +10,10 @@
 #include "mathicgb/LogDomainSet.hpp"
 #include <mathic.h>
 
+extern "C" {
+  void libmathicgbIsPresent(void) {}
+}
+
 using namespace mgb;
 
 namespace {
diff --git a/src/mathicgb.h b/src/mathicgb.h
index 3269021..7cba315 100755
--- a/src/mathicgb.h
+++ b/src/mathicgb.h
@@ -99,7 +99,7 @@ namespace mgb { // Part of the public interface of MathicGB
       BaseOrder order,
       const std::vector<Exponent>& gradings
     );
-    std::pair<BaseOrder, std::vector<Exponent>> monomialOrder() const;
+    std::pair<BaseOrder, std::vector<Exponent> > monomialOrder() const;
 
     static const size_t ComponentAfterBaseOrder = static_cast<size_t>(-1);
 
@@ -476,6 +476,13 @@ namespace mgb { // Part of the public interface of MathicGB
   };
 }
 
+extern "C" {
+  // Put a C function in the library so that it can be detected by the autoconf
+  // macro AC_CHECK_LIB. That macro can only check for libraries that contain
+  // at least one C function.
+  void libmathicgbIsPresent(void); // This function does nothing.
+}
+
 // ********************************************************
 // Nothing below this line is part of the public interface of MathicGB.
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mathicgb.git



More information about the debian-science-commits mailing list