summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/gipfel.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index e20034e..de7e818 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/Panorama.H])
AC_CONFIG_HEADER(config.h)
-CPPFLAGS="-Wall -g -I/usr/local/include -DDATADIR=\\\"$datadir\\\" -DDOCDIR=\\\"$docdir\\\" $CPPFLAGS"
+CPPFLAGS="-Wall -g -I/usr/local/include -DGIPFEL_DATADIR=\\\"$datadir\\\" -DDOCDIR=\\\"$docdir\\\" $CPPFLAGS"
LDFLAGS="-g $LDFLAGS"
# Checks for programs.
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 8fcc45f..f10c7c3 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -39,11 +39,11 @@
#include "choose_hill.H"
#include "../config.h"
-#ifndef DATADIR
-#define DATADIR "/usr/local/share"
+#ifndef GIPFEL_DATADIR
+#define GIPFEL_DATADIR "/usr/local/share"
#endif
-#define DEFAULT_DATAFILE DATADIR "/" PACKAGE_NAME "/gipfel.dat"
+#define DEFAULT_DATAFILE GIPFEL_DATADIR "/" PACKAGE_NAME "/gipfel.dat"
char *img_file = NULL;
char *data_file = DEFAULT_DATAFILE;