patchGNU Autoconf Archive - Patches: patch #7839, Update ax_boost_system to work on...

 
 

patch #7839: Update ax_boost_system to work on Mac OS

Submitter:  None
Submitted:  Tue 28 Aug 2012 01:55:44 AM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 03 Oct 2012 12:01:20 AM UTC, comment #7: 

(Original poster, no longer posting anonymously:)

Works for me as well.   Thanks!

Klee Dienes <kdienes>
Mon 01 Oct 2012 11:21:08 AM UTC, comment #6: 

Works fine for me.

Thanks a lot!

Sebastian Hegler <shegler>
Sun 30 Sep 2012 08:27:04 AM UTC, comment #5: 

Does patch 2ec785001bc685dafcd792e49765dcbd2ae9bd38 solve the problem you've had on Darwin?

Peter Simons <simons>
Group administrator
Thu 27 Sep 2012 09:54:05 AM UTC, comment #4: 

There is an ongoing discussion on the mailing list that is quite relevant for this patch.

Peter Simons <simons>
Group administrator
Wed 19 Sep 2012 10:01:05 AM UTC, comment #3: 

Please use the patch attached. It follows the schematics of the other boost libraries. Basically, I just copied the lines from ax_boost_regex and modified it; the other libs do not use tac neither gtac, so I do not see why it is needed here.

Also, please increase priority. That situation hurts my work, and probably not only mine.

(file #26587)

Sebastian Hegler <shegler>
Fri 07 Sep 2012 08:50:06 AM UTC, comment #2: 

How do we proceed with this patch? I understand your modifications collide with another patch that's already been applied. How do you suggest we resolve the situation?

Peter Simons <simons>
Group administrator
Tue 28 Aug 2012 01:59:36 AM UTC, comment #1: 

Somehow I missed http://savannah.gnu.org/patch/index.php?7816 the first time around.

The patch from 7816 doesn't work well for Mac OS, though ... 'tac' isn't part of the base system, and is installed as 'gtac' by MacPorts.   Even with tac installed, it fails to recognize the .a suffix properly and ends up with -lboost_system.a in the build flags.

Anonymous
Tue 28 Aug 2012 01:55:44 AM UTC, original submission:  

From aea4c7244c53a51f045127d644bf208123b6c738 Mon Sep 17 00:00:00 2001
From: Klee Dienes <klee.dienes@hadronindustries.com>
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 <thomas@randspringer.de>
 #   Copyright (c) 2008 Michael Tindal
 #   Copyright (c) 2008 Daniel Casimiro <dan.casimiro@gmail.com>
+#   Copyright (c) 2012 Klee Dienes <klee@mit.edu>
 #
 #   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)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26587:  ax_boost_system.patch added by shegler (2KiB - application/octet-stream - New patch.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kdienes (Posted a comment)
  • -email is unavailable- added by shegler (Updated the item)
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-11 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2012-09-30 simons StatusNeed Info Ready For Test
    2012-09-19 shegler Attached File- Added ax_boost_system.patch, #26587
    2012-09-07 simons StatusNone Need Info
        Assigned toNone simons
        Carbon-Copy- Added diego elio pettenò <flameeyes>

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code