added WITH_ILP switch
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 7 Mar 2006 15:01:55 +0000 (15:01 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 7 Mar 2006 15:01:55 +0000 (15:01 +0000)
ir/be/becopyilp.c
ir/be/becopyilp1.c
ir/be/becopyilp2.c
ir/be/becopyilp_t.h
ir/be/bespillilp.c

index 3cb3785..b219b05 100644 (file)
@@ -8,6 +8,12 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef WITH_ILP
+
 #include "becopyilp_t.h"
 #include "beifg_t.h"
 
@@ -170,3 +176,10 @@ void free_ilp_env(ilp_env_t *ienv) {
        free_lpp(ienv->lp);
        free(ienv);
 }
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */
index 81f58de..325dfd0 100644 (file)
  *  - Clique path constraints
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef WITH_ILP
+
 #include "becopyilp_t.h"
 #include "benumb_t.h"
 #include "belive_t.h"
@@ -767,3 +773,11 @@ int co_solve_ilp1(copy_opt_t *co, double time_limit) {
 
        return sol_state == lpp_optimal;
 }
+
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */
index 8c2f67c..ff0fcfd 100644 (file)
  *             y_ij \in N,   w_ij \in R^+
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef WITH_ILP
+
 #include "becopyilp_t.h"
 
 #define DEBUG_LVL 1
@@ -61,3 +67,10 @@ int co_solve_ilp2(copy_opt_t *co, double time_limit) {
 
        return sol_state == lpp_optimal;
 }
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */
index 1c903e5..bf016d6 100644 (file)
 #ifndef _BECOPYILP_T_H
 #define _BECOPYILP_T_H
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include "firm_config.h"
+
+#ifndef _WIN32
+ #ifndef HAVE_ALLOCA_H
+  #define HAVE_ALLOCA_H 1
+ #endif /* HAVE_ALLOC_H */
+#endif /* _WIN32 */
+
 #ifdef HAVE_ALLOCA_H
 #include <alloca.h>
 #endif
+
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
@@ -150,4 +156,4 @@ void free_ilp_env(ilp_env_t *ienv);
 
  *****************************************************************************/
 
-#endif
+#endif /* _BECOPYILP_T_H */
index cfcdeb7..9ebbee6 100644 (file)
@@ -12,6 +12,8 @@
 #include "config.h"
 #endif
 
+#ifdef WITH_ILP
+
 #include <math.h>
 
 #include "hashptr.h"
@@ -718,3 +720,10 @@ void be_spill_ilp(const be_chordal_env_t *chordal_env)
        free_lpp(si.lpp);
        obstack_free(&obst, NULL);
 }
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */