]> www.ginac.de Git - ginac.git/commitdiff
[build] include config.h conditionally to not break non-autotools build.
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Sun, 29 May 2011 13:18:39 +0000 (16:18 +0300)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Tue, 17 Jul 2012 04:49:55 +0000 (07:49 +0300)
ginac/archive.cpp
ginac/numeric.cpp
ginsh/ginsh_lexer.ll
ginsh/ginsh_parser.yy

index a7152ba74a4fa38a958c1c223d2f2b296f5bff1f..d643e68bf31166933ae5830cfaaf66f927f2761f 100644 (file)
@@ -24,7 +24,9 @@
 #include "registrar.h"
 #include "ex.h"
 #include "lst.h"
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 #include "tostring.h"
 
 #include <iostream>
index 18725b216cf5e40eeccebe3cc7fe41abec698372..795c76099172dba5d5284fd6fc08c4183428fc3d 100644 (file)
@@ -24,7 +24,9 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include "numeric.h"
 #include "ex.h"
index cd35605c88cc0ddaffe0d03509158821e6e75028..7ba013efa0e017897338070658b3649895987844 100644 (file)
@@ -29,7 +29,9 @@
 %pointer
 
 %{
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include "ginsh.h"
 #include "ginsh_parser.h"
index ead4f1f54cd6606f2489153db3cbf85196ba9d9f..eb184b7f1c8fe0388cda675b22fe9ecc33f58d4d 100644 (file)
@@ -27,7 +27,9 @@
  */
 
 %{
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 #ifdef HAVE_RUSAGE
 #include <sys/resource.h>
 #else