From a867bf1f20f19a887b1606cfa078f54a992320a0 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 18 Sep 2013 11:04:23 -0700 Subject: [PATCH] freetds.rb: additional options Add option --enable-msdblib so that users can get SQL Server compatibility Add option --enable-sybase-compat so that users can get Sybase compatibility Closes Homebrew/homebrew#22656. Signed-off-by: Adam Vandenberg --- Formula/freetds.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/freetds.rb b/Formula/freetds.rb index 631e78a2bd..100ab8b152 100644 --- a/Formula/freetds.rb +++ b/Formula/freetds.rb @@ -16,6 +16,8 @@ class Freetds < Formula end option :universal + option "enable-msdblib", "Enable Microsoft behavior in the DB-Library API where it diverges from Sybase's" + option "enable-sybase-compat", "Enable close compatibility with Sybase's ABI, at the expense of other features" def install system "autoreconf -i" if build.head? @@ -30,6 +32,14 @@ class Freetds < Formula args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}" end + if build.include? "enable-msdblib" + args << "--enable-msdblib" + end + + if build.include? "enable-sybase-compat" + args << "--enable-sybase-compat" + end + ENV.universal_binary if build.universal? system "./configure", *args system 'make'