summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2017-07-25Remove configure.Andrei Karas1-10718/+0
2017-03-25Fix gcc lto.Andrei Karas1-8/+52
Also rebuild configure.
2016-10-17Re-generated configure scriptHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-10-07Suppressed the superuser check in CI buildsHaru1-1/+1
- Speeds up GitLab builds by 1 minute Signed-off-by: Haru <haru@dotalux.com>
2016-10-02Added Doxygen configuration (use 'make docs' to generate)Haru1-0/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-09-03Add some missing functions in skill.c into interface.Andrei Karas1-28/+55
2016-07-12Add omit frame pointer flag if debug flag enabled.Andrei Karas1-1/+30
2016-07-08Disable epoll by default and fix formatting in epoll in configure.acAndrei Karas1-10/+12
2016-07-08Added epoll as event-dispatcher on linux (instead of select())Florian Wilkemeyer1-1/+61
Note: It will be enabled by default if configure detects that the system has support for epoll To enforce usage of select run configure with --enable-epoll=no
2016-07-04Added messages to discourage running Hercules as root.Haru1-1/+46
- You should not run Hercules as root, period. - If you understand all of the security implications, and still want to do so (and you don't want to be bothered by the warning messages), open core.c and uncomment the line: "//#define I_AM_AWARE_OF_THE_RISK_AND_STILL_WANT_TO_RUN_HERCULES_AS_ROOT" - If you're running Hercules as root because your provider forces (or encourages) you to do so, it means they're really doing it wrong, so please complain to them and ask them for an alternative. - More info on the topic: http://www.tldp.org/HOWTO/Security-HOWTO/local-security.html https://wiki.debian.org/sudo http://wiki.centos.org/TipsAndTricks/BecomingRoot http://fedoraproject.org/wiki/Configuring_Sudo https://help.ubuntu.com/community/RootSudo http://www.freebsdwiki.net/index.php/Root Signed-off-by: Haru <haru@dotalux.com>
2016-07-03Add --run-once flag into login server.Andrei Karas1-1/+1
2016-06-30Use item attribute as flags varible. Now only ATTR_BROKEN flag exists.Andrei Karas1-1/+1
2016-06-18Move npc static variables into npc interface.Andrei Karas1-1/+1
2016-04-29Rename configure.in into configure.acAndrei Karas1-1/+1
2016-04-29Add missing [] in configure.inAndrei Karas1-1/+1
2016-04-29Add some usefull gcc 6 warnings.Andrei Karas1-1/+188
2016-04-29Fix compilation warnings with gcc 6.Andrei Karas1-50/+2
2016-04-28Add new gcc sanitize flag -fsanitize=bounds-strictAndrei Karas1-1/+49
2016-04-19Added --enable-Werror option to the configure scriptHaru1-1/+71
It's not always possible (if at all) to pass -Werror in the CFLAGS, since autoconf often generates test-code that produces warnings. Example/reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734104 Signed-off-by: Haru <haru@dotalux.com>
2016-04-19Corrected some variable name errors in the configure scriptHaru1-4/+4
The errors affected the script output when passing an invalid value to various --enble-xxx=yyy options. Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Enabled the -Wcast-qual diagnostic flag in the configure scriptHaru1-1/+50
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed compile warnings in clangHaru1-50/+2
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available - Disabled -Wcast-align for the time being Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Added explicit c99 mode to CFLAGS in the configure scriptHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-02-19Add to configure some flags what for now not create any warnings.Andrei Karas1-8/+496
2016-02-19Remove some unused macroses. Left macroses in socket.cAndrei Karas1-4/+9
2016-02-19Add noreturn attributes.Andrei Karas1-2/+58
Also add compiler flag for check for missing noreturn attributes.
2016-02-19Fix missing include dirs. Add compiler flag -Wmissing-include-dirs.Andrei Karas1-2/+52
2016-02-19Fix all known warnings from compiler flags -Wformat*Andrei Karas1-2/+154
Add all missing -Wformat flags into configure.
2016-02-19Fix some cast discards 'const' qualifier from pointer target type warnings.Andrei Karas1-1/+3
Add -Wcast-qual into configure comment.
2016-02-06Removed special handling of zlib in the configure scriptHaru1-32/+3
Now it's handled like all other libraries, and no longer adds an useless -I/usr/include option Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Changed PCRE to properly use the system-provided pcre.hHaru1-19/+38
Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Added /usr/local path to the header and library search pathsHaru1-1/+13
- This fixes PCRE search failures on FreeBSD and on OS X with Homebrew - Thanks to ultramage Signed-off-by: Haru <haru@dotalux.com>
2016-02-05Remove from configure flag -fvisibility=hidden.Andrei Karas1-2/+2
It prevent for show funcstion names in stack in asserts.
2016-01-21Remove unused PCRE_SUPPORT define.Andrei Karas1-2/+1
2016-01-21Enable pcre by default in configure and show error if pcre missing.Andrei Karas1-119/+12
2016-01-10Enable debug information in configure by default.Andrei Karas1-4/+16
2015-12-02Fixed an issue with the HPMDataCheck when PCRE is enabledHaru1-2/+3
- Follow-up to 300668d, thanks to AnnieRuru Signed-off-by: Haru <haru@dotalux.com>
2015-08-27Added an availability check for the -rdynamic linker optionHaru1-3/+34
- Fixes an issue preventing to compile on non-ELF systems (i.e. OS X) using recent gcc versions (such as 5.2) that are unable to filter out this option where it's not needed. - Thanks to Smokexyz for reporting the issue. Signed-off-by: Haru <haru@dotalux.com>
2015-08-17Fix wrong index access and probably wrong hp/sp calculation. Closes #653Andrei Karas1-1/+1
2015-08-15HPM compatibility improvementsHaru1-2/+2
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Improved plugin compile flag detection by the configuration scriptHaru1-81/+6
- This fixes plugin compilation on FreeBSD and Debian failing due to a missing -fPIC, in combination with some upcoming changes. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Disable LTO by default. Because look like support for it broken in gcc 4.9 ↵Andrei Karas1-2/+2
and higher. For enable LTO need run: ./configure --enable-lto
2015-08-13Added check for execinfo.h/backtrace() to the configure scriptHaru1-1/+73
- This fixes compilation on systems such as FreeBSD, where -lexecinfo is necessary, or Cygwin, where execinfo.h is not available. Signed-off-by: Haru <haru@dotalux.com>
2015-05-30Dump stack in nullpo*/Assert* function.Andrei Karas1-1/+2
Also enable in configure linker flag -rdynamic.
2015-05-03Add sanity into LDFLAGS also.Andrei Karas1-2/+53
Fix small typo.
2015-05-03Split -fsanitize checks into multiple stepsHaru1-33/+750
This will allow fine-grained detection of the sanitizer options supported by the current compiler. Signed-off-by: Haru <haru@dotalux.com>
2015-05-02Fix out of bound access if skill level is 0.Andrei Karas1-8/+20
2015-02-23Add battle config option check_occupied_cells.Andrei Karas1-1/+1
If set check_occupied_cells to 0 it will allow walk to occupied cells And it heavy reduce CPU usage on walking.
2015-01-12Enable warning format-security.Andrei Karas1-87/+48
It was blocked in configure.
2015-01-12Remove from configure warning block maybe-uninitialized.Andrei Karas1-89/+1
This flag hide some usefull warnings.