Blame polymake-singular.patch

cc3a73
--- ./bundled/singular/apps/ideal/include/internal/singularRingManager.h.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/include/internal/singularRingManager.h	2015-09-25 13:24:47.671780315 -0600
Jerry James 6ad223
@@ -22,7 +22,7 @@
Jerry James 6ad223
 #include "polymake/client.h"
Jerry James 6ad223
 #include "polymake/Map.h"
Jerry James 80eaa7
 
Jerry James 80eaa7
-#include <Singular/libsingular.h>
Jerry James 80eaa7
+#include <libsingular.h>
Jerry James 6ad223
 #include "polymake/ideal/internal/singularTermOrderData.h"
Jerry James 6ad223
 #include "polymake/ideal/internal/singularTermOrderMap.h"
Jerry James 6ad223
 #include "polymake/ideal/internal/singularConvertTypes.h"
cc3a73
--- ./bundled/singular/apps/ideal/include/internal/singularTermOrderData.h.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/include/internal/singularTermOrderData.h	2015-09-25 13:24:47.672780236 -0600
Jerry James 6ad223
@@ -21,7 +21,7 @@
Jerry James 6ad223
 #include "polymake/Ring.h"
Jerry James 80eaa7
 #include "polymake/Polynomial.h"
Jerry James 6ad223
 
Jerry James 6ad223
-#include "Singular/libsingular.h"
Jerry James 6ad223
+#include <libsingular.h>
Jerry James 6ad223
 
Jerry James 6ad223
 namespace polymake { 
Jerry James 6ad223
 namespace ideal {
cc3a73
--- ./bundled/singular/apps/ideal/include/internal/singularTermOrderMap.h.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/include/internal/singularTermOrderMap.h	2015-09-25 13:24:47.672780236 -0600
Jerry James 6ad223
@@ -20,7 +20,7 @@
Jerry James 6ad223
 #include "polymake/Map.h"
Jerry James 6ad223
 #include "polymake/ideal/internal/singularTermOrderData.h"
Jerry James 80eaa7
 
Jerry James 80eaa7
-#include <Singular/libsingular.h>
Jerry James 80eaa7
+#include <libsingular.h>
Jerry James f50867
 
Jerry James 80eaa7
 namespace polymake { 
Jerry James 80eaa7
 namespace ideal {
cc3a73
--- ./bundled/singular/apps/ideal/include/internal/singularUtils.h.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/include/internal/singularUtils.h	2015-09-25 13:24:47.673780156 -0600
Jerry James 6ad223
@@ -18,7 +18,7 @@
Jerry James 6ad223
 #define POLYMAKE_IDEAL_INTERNAL_SINGULAR_UTILS_H
Jerry James 6ad223
 
Jerry James 6ad223
 // Singular includes
Jerry James 6ad223
-#include <Singular/libsingular.h>
Jerry James 6ad223
+#include <libsingular.h>
Jerry James 6ad223
 
Jerry James 6ad223
 // polymake includes
Jerry James 6ad223
 #include "polymake/client.h"
cc3a73
--- ./bundled/singular/apps/ideal/src/singularIdeal.cc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/src/singularIdeal.cc	2015-09-25 13:24:47.674780077 -0600
cc3a73
@@ -14,9 +14,9 @@
cc3a73
 --------------------------------------------------------------------------------
cc3a73
 */
Jerry James 6ad223
 
Jerry James 6ad223
-#include <Singular/libsingular.h>
Jerry James 334dc9
-#include <kernel/combinatorics/stairc.h>
Jerry James 6ad223
-#include <coeffs/mpr_complex.h>
Jerry James 6ad223
+#include <libsingular.h>
Jerry James 6ad223
+#include <singular/stairc.h>
Jerry James 6ad223
+#include <singular/mpr_complex.h>
Jerry James 6ad223
 
Jerry James 6ad223
 #include "polymake/ideal/singularIdeal.h"
Jerry James 6ad223
 #include "polymake/ideal/internal/singularTermOrderData.h"
cc3a73
@@ -108,7 +108,7 @@ public:
Jerry James 80eaa7
 
Jerry James 80eaa7
    SingularIdeal_wrap* initial_ideal() const {
Jerry James 80eaa7
       check_ring(singRing); 
Jerry James 80eaa7
-      ::ideal res = id_Head(singIdeal,IDRING(singRing));
Jerry James 80eaa7
+      ::ideal res = idHead(singIdeal);
Jerry James 80eaa7
       SingularIdeal_wrap* initial = new SingularIdeal_impl(res,singRing);
Jerry James 80eaa7
       id_Delete(&res,currRing);
Jerry James 80eaa7
       return initial;
cc3a73
@@ -193,12 +193,12 @@ public:
Jerry James 80eaa7
          ring solring = (ring)iiRETURNEXPR.Data();
Jerry James f50867
          // avoid redefinition message
Jerry James 51c14e
          BITSET oldverb;
Jerry James 80eaa7
-         SI_SAVE_OPT2(oldverb);
Jerry James 80eaa7
-         si_opt_2 &= ~Sy_bit(V_REDEFINE);
Jerry James 80eaa7
+         oldverb = verbose;
Jerry James 80eaa7
+         verbose &= ~Sy_bit(V_REDEFINE);
Jerry James 80eaa7
          // switch to the new returned ring
Jerry James 80eaa7
          idhdl solRingHdl=enterid("solveRing", 0, RING_CMD, &IDROOT, FALSE);
Jerry James 80eaa7
          IDRING(solRingHdl)=solring;
Jerry James 80eaa7
-         SI_RESTORE_OPT2(oldverb);
Jerry James 80eaa7
+         verbose = oldverb;
Jerry James 80eaa7
          rSetHdl(solRingHdl);
Jerry James 80eaa7
          // retrieve solution list SOL from the interpreter
Jerry James 80eaa7
          idhdl sol = ggetid("SOL");
cc3a73
--- ./bundled/singular/apps/ideal/src/singularInit.cc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/src/singularInit.cc	2015-09-25 13:24:47.674780077 -0600
Jerry James 6ad223
@@ -80,8 +80,8 @@ void init_singular()
Jerry James 80eaa7
    cerr << "*** singular siInit done. ***" << endl;
Jerry James 80eaa7
 #else
Jerry James 80eaa7
    // make singular library loading quiet
Jerry James 80eaa7
-   si_opt_2 &= ~Sy_bit(V_LOAD_LIB);
Jerry James 80eaa7
-   si_opt_2 &= ~Sy_bit(V_REDEFINE);
Jerry James 80eaa7
+   verbose &= ~Sy_bit(V_LOAD_LIB);
Jerry James 80eaa7
+   verbose &= ~Sy_bit(V_REDEFINE);
Jerry James 80eaa7
 #endif
Jerry James 80eaa7
    singular_initialized = 1;
Jerry James 80eaa7
 }
cc3a73
--- ./bundled/singular/apps/ideal/src/singularUtils.cc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/apps/ideal/src/singularUtils.cc	2015-09-25 13:24:47.675779998 -0600
cc3a73
@@ -14,7 +14,7 @@
cc3a73
 --------------------------------------------------------------------------------
cc3a73
 */
Jerry James 6ad223
 
Jerry James 6ad223
-#include <Singular/libsingular.h>
Jerry James 6ad223
+#include <libsingular.h>
Jerry James 6ad223
 
Jerry James 6ad223
 #include "polymake/client.h"
Jerry James 6ad223
 #include "polymake/Matrix.h"
cc3a73
--- ./bundled/singular/configure.pl.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73
+++ ./bundled/singular/configure.pl	2015-09-25 13:24:47.675779998 -0600
cc3a73
@@ -46,13 +46,13 @@ sub proceed {
cc3a73
    chomp $singular_prefix;
Jerry James 80eaa7
    # yes we need it twice ...
Jerry James 80eaa7
 
cc3a73
-   $Libs = join(" ",$LDflags =~ m/(-l\w+)/g) . " -lfactory -lresources -lpolys -lomalloc";
Jerry James 80eaa7
+   $Libs = join(" ",$LDflags =~ m/(-l\w+)/g) . " -lsingular";
Jerry James 80eaa7
    $LDflags =~ s/ -l\w+//g;
Jerry James 80eaa7
    $LDflags =~ s/-L(\S+)/-L$1 -Wl,-rpath,$1/g;
cc3a73
    my $libdir = $1;
Jerry James 80eaa7
 
Jerry James 80eaa7
    my $error=Polymake::Configure::build_test_program(<<"---", CXXflags => $CXXflags, LDflags => $LDflags, Libs => $Libs);
Jerry James 80eaa7
-#include "Singular/libsingular.h"
Jerry James 80eaa7
+#include "libsingular.h"
Jerry James 80eaa7
 #include <string>
cc3a73
 #include <iostream>
Jerry James 80eaa7
 int main() {