Move some -D flags to Makefile

Doing it like this is the only supported way with autoconf and works around
quite some messy mess.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2247 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2011-01-05 19:08:07 +00:00
parent 4e5f9e8602
commit aeeb1eb35b
4 changed files with 2 additions and 14 deletions

View File

@@ -39,6 +39,8 @@ CLEAN := znc *.o core core.*
DISTCLEAN := Makefile config.log config.status znc-config znc-buildmod .depend \
modules/.depend modules/Makefile man/Makefile znc.pc znc-uninstalled.pc
CXXFLAGS += -D_MODDIR_=\"$(MODDIR)\" -D_DATADIR_=\"$(DATADIR)\"
ifneq "$(V)" ""
VERBOSE=1
endif

3
configure vendored
View File

@@ -4210,9 +4210,6 @@ $as_echo "$as_me: WARNING: libiconv was not found, disabling the charset module"
fi
fi
appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\""
appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\""

View File

@@ -439,9 +439,6 @@ then
fi
fi
appendCXX "-D_MODDIR_=\\\"${MODDIR}\\\""
appendCXX "-D_DATADIR_=\\\"${DATADIR}\\\""
AC_SUBST([CXXFLAGS])
AC_SUBST([CPPFLAGS])
AC_SUBST([MODFLAGS])

8
main.h
View File

@@ -20,14 +20,6 @@
#define VERSION_EXTRA ""
#endif
#ifndef _MODDIR_
#define _MODDIR_ "/usr/lib/znc"
#endif
#ifndef _DATADIR_
#define _DATADIR_ "/usr/share/znc"
#endif
#define NOTHING (void)0
#define ALLMODULECALL(macFUNC, macEXITER) \