mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 07:37:02 +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
|
|
@ -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