Index: trunk/FACT++/src/fitsdump.cc
===================================================================
--- trunk/FACT++/src/fitsdump.cc	(revision 12098)
+++ trunk/FACT++/src/fitsdump.cc	(revision 12099)
@@ -105,6 +105,8 @@
     bool Dump(const string &, const vector<string> &list, int);
     ///Display the selected columns values VS time
+#ifdef PLOTTING_PLEASE
     int doCurvesDisplay( const vector<string> &list, const string& tableName);
-//    bool Plot(const vector<string> &list);
+#endif
+    //    bool Plot(const vector<string> &list);
 
 public:
@@ -774,4 +776,5 @@
     }
 
+#ifdef PLOTTING_PLEASE
     if (conf.Get<bool>("graph"))
     {
@@ -785,5 +788,5 @@
         return 1;
     }
-
+#endif
 
     if (conf.Get<bool>("header"))
@@ -1026,12 +1029,6 @@
     return 0;
 }
-#else
-int FitsDumper::doCurvesDisplay( const vector<string> &list, const string& tableName)
-{
-    cerr << "Sorry, but plotting features seem to have been disabled at compilation time." << endl;
-    cerr << "Please recompile with PLOTTING_PLEASE defined and try again." << endl;
-    return 0;
-}
 #endif
+
 void SetupConfiguration(Configuration& conf)
 {
@@ -1053,5 +1050,7 @@
         ("list,l",      po_switch(),                "List all tables and columns in file")
         ("header,h",    po_switch(),                "Dump header of given table")
-        ("graph,g",      po_switch(),                "Plot the columns instead of dumping them")
+#ifdef PLOTTING_PLEASE
+        ("graph,g",     po_switch(),                "Plot the columns instead of dumping them")
+#endif
         ;
 
