mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
On configure runs, sysconfdir is now properly set [#6 tagged:committed responsible:theluda milestone:"0.12" state:resolved]
This commit is contained in:
parent
58a1dd7209
commit
245f868521
5 changed files with 13 additions and 8 deletions
|
|
@ -19,7 +19,7 @@
|
|||
## Sub-directories to parse
|
||||
|
||||
## CPP flags for includes, defines, etc.
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../shared/vmap -I$(srcdir)/../realmd
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../shared/vmap -I$(srcdir)/../realmd -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
|
||||
## Build MaNGOS game library as convenience library.
|
||||
# All libraries will be convenience libraries. Might be changed to shared
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
## CPP flags for includes, defines, etc.
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../game -I$(srcdir)
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../game -I$(srcdir) -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
|
||||
## Build world list daemon as standalone program
|
||||
bin_PROGRAMS = mangos-worldd
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
## CPP flags for includes, defines, etc.
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir) -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
|
||||
## Build realm list daemon as standalone program
|
||||
bin_PROGRAMS = mangos-realmd
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
SUBDIRS = Auth Config Database vmap
|
||||
|
||||
## CPP flags for includes, defines, etc.
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../../dep/include/g3dlite
|
||||
AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(top_builddir)/src/shared -I$(srcdir) -I$(srcdir)/../../dep/include -I$(srcdir)/../framework -I$(srcdir)/../shared -I$(srcdir)/../../dep/include/g3dlite -DSYSCONFDIR=\"$(sysconfdir)/\"
|
||||
## AM_CPPFLAGS += -I$(srcdir)/../game -I$(srcdir)/../realmd
|
||||
|
||||
## Build MaNGOS shared library and its parts as convenience library.
|
||||
|
|
|
|||
|
|
@ -49,18 +49,23 @@
|
|||
# define _ENDIAN_STRING "little-endian"
|
||||
#endif
|
||||
|
||||
// The path to config files
|
||||
#ifndef SYSCONFDIR
|
||||
# define SYSCONFDIR ""
|
||||
#endif
|
||||
|
||||
#if PLATFORM == PLATFORM_WINDOWS
|
||||
# ifdef _WIN64
|
||||
# define _FULLVERSION _PACKAGENAME "/" _VERSION " (Win64," _ENDIAN_STRING ")"
|
||||
# else
|
||||
# define _FULLVERSION _PACKAGENAME "/" _VERSION " (Win32," _ENDIAN_STRING ")"
|
||||
# endif
|
||||
# define _MANGOSD_CONFIG "mangosd.conf"
|
||||
# define _REALMD_CONFIG "realmd.conf"
|
||||
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
||||
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
||||
#else
|
||||
# define _FULLVERSION _PACKAGENAME "/" _VERSION " (Unix," _ENDIAN_STRING ")"
|
||||
# define _MANGOSD_CONFIG "@sysconfdir@/mangosd.conf"
|
||||
# define _REALMD_CONFIG "@sysconfdir@/realmd.conf"
|
||||
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
||||
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_PLAYER_LIMIT 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue