From b753a73b5f5cfa5062b42ed9ebfb069c1b7be409 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 23 Apr 2013 12:07:13 +0200
Subject: [PATCH] fix dynare++ build on OS X (cherry picked from commit
 e376258025019f4323871a08cb2ec1f0ac6cbda8)

---
 configure.ac | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3cecc499ba..458a775df1 100755
--- a/configure.ac
+++ b/configure.ac
@@ -153,12 +153,17 @@ AM_CONDITIONAL([HAVE_CWEAVE], [test "x$CWEAVE" != "x"])
 
 AC_PROG_F77
 AC_F77_LIBRARY_LDFLAGS
-# Hack to get static linking of libgfortran on MinGW
-# (-static-libgfortran doesn't act on gcc/g++)
 case ${host_os} in
   *mingw32*)
+    # Hack to get static linking of libgfortran on MinGW
+    # (-static-libgfortran doesn't act on gcc/g++)
     FLIBS=`echo $FLIBS | sed 's/-lgfortran/-Wl,-Bstatic -lgfortran -Wl,-Bdynamic/'`
     ;;
+  *darwin*)
+    # * OS X doesn't need to link against the Fortran libraries because
+    #   everything is contained within the vecLib framework.
+    FLIBS=''
+    ;;
 esac
 
 if test "x$F77" != "x"; then
-- 
GitLab