autoconf-archive-maintainers
[Top][All Lists]
Advanced

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

[patch #7839] Update ax_boost_system to work on Mac OS


From: anonymous
Subject: [patch #7839] Update ax_boost_system to work on Mac OS
Date: Tue, 28 Aug 2012 01:55:45 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.82 Safari/537.1

URL:
  <http://savannah.gnu.org/patch/?7839>

                 Summary: Update ax_boost_system to work on Mac OS
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Tue 28 Aug 2012 01:55:44 AM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

>From aea4c7244c53a51f045127d644bf208123b6c738 Mon Sep 17 00:00:00 2001
From: Klee Dienes <address@hidden>
Date: Mon, 27 Aug 2012 21:11:00 -0400
Subject: [PATCH 1/6] Handle Mac OS style shared library suffixes, using the
 technique from ax_boost_thread.

---
 bld/m4/ax_boost_system.m4 |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/bld/m4/ax_boost_system.m4 b/bld/m4/ax_boost_system.m4
index 20df5ee..5b9f917 100644
--- a/bld/m4/ax_boost_system.m4
+++ b/bld/m4/ax_boost_system.m4
@@ -25,13 +25,14 @@
 #   Copyright (c) 2008 Thomas Porschberg <address@hidden>
 #   Copyright (c) 2008 Michael Tindal
 #   Copyright (c) 2008 Daniel Casimiro <address@hidden>
+#   Copyright (c) 2012 Klee Dienes <address@hidden>
 #
 #   Copying and distribution of this file, with or without modification, are
 #   permitted in any medium without royalty provided the copyright notice
 #   and this notice are preserved. This file is offered as-is, without any
 #   warranty.
 
-#serial 15
+#serial 16
 
 AC_DEFUN([AX_BOOST_SYSTEM],
 [
@@ -83,14 +84,14 @@ AC_DEFUN([AX_BOOST_SYSTEM],
 
                        LDFLAGS_SAVE=$LDFLAGS
             if test "x$ax_boost_user_system_lib" = "x"; then
-                for libextension in `ls $BOOSTLIBDIR/libboost_system*.a*
$BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e
's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
+                for libextension in `ls $BOOSTLIBDIR/libboost_system*.so*
2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;'`
`ls $BOOSTLIBDIR/libboost_system*.dylib* 2>/dev/null | sed 's,.*/,,' | sed -e
's;^lib\(libboost_system.*\)\.dylib.*$;\1;'` `ls
$BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e
's;^lib\(boost_system.*\)\.a.*$;\1;'`; do
                      ax_lib=${libextension}
                                    AC_CHECK_LIB($ax_lib, exit,
                                  [BOOST_SYSTEM_LIB="-l$ax_lib";
AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
                                  [link_system="no"])
                                done
                 if test "x$link_system" != "xyes"; then
-                for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}*
2>/dev/null | sed 's,.*/,,' | sed -e
's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
+                for libextension in `ls $BOOSTLIBDIR/boost_system*.dll*
2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;'` `ls
$BOOSTLIBDIR/boost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e
's;^\(boost_system.*\)\.a.*$;\1;'` ; do
                      ax_lib=${libextension}
                                    AC_CHECK_LIB($ax_lib, exit,
                                  [BOOST_SYSTEM_LIB="-l$ax_lib";
AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
-- 
1.7.7.5 (Apple Git-26)





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7839>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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