Open bixu opened 10 years ago
@bixu I was able to get this to compile by lying to the configure
script and telling it SmartOS was actually Linux (like is done for the BSDs)
dave - sjc1-dave-01 sunos ~/dev/dep-selector-libgecode (git:master) $ git diff
diff --git a/ext/libgecode3/vendor/gecode-3.7.3/configure b/ext/libgecode3/vendor/gecode-3.7.3/configure
index 05f0595..6eed352 100755
--- a/ext/libgecode3/vendor/gecode-3.7.3/configure
+++ b/ext/libgecode3/vendor/gecode-3.7.3/configure
@@ -2692,7 +2692,7 @@ $as_echo_n "checking for the host operating system... " >&6; }
guess_host_os=${with_host_os}
fi
case ${guess_host_os} in
- GNU/kFreeBSD|*inux*|FreeBSD|NetBSD)
+ GNU/kFreeBSD|*inux*|FreeBSD|NetBSD|SunOS)
host_os=linux
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
$as_echo "Linux" >&6; }
fyi this may be the more approved method of passing this information
diff --git a/ext/libgecode3/extconf.rb b/ext/libgecode3/extconf.rb
index 37bcd45..9107c4b 100644
--- a/ext/libgecode3/extconf.rb
+++ b/ext/libgecode3/extconf.rb
@@ -13,6 +13,10 @@ module GecodeBuild
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
end
+ def self.sunos?
+ `uname`.strip == 'SunOS'
+ end
+
def self.gecode_vendor_dir
GECODE_VENDOR_DIR
end
@@ -40,6 +44,7 @@ module GecodeBuild
--disable-flatzinc
]
args << "--with-host-os=windows" if windows?
+ args << "--with-host-os=Linux" if sunos?
args
end