Commit 1532ac89 authored by Peter Pentchev's avatar Peter Pentchev

Deprecate some of the config settings and treat them as present.

parent 9a35fddb
......@@ -16,6 +16,9 @@ Change log for hexer, the multi-view binary editor
works with termios anyway
- drop the config.* files and autogenerate config.h
- fix the build of the myc command-line calculator
- assume a POSIX environment and declare some of the configuration
settings as deprecated; no tests are done for them, and
the deactivated tests will be removed in a future Hexer release
0.2.3 2015/12/10
- build with large file support on Linux
......
......@@ -84,14 +84,10 @@ helptext.c: help.txt bin2c
config.h:
[ ! -e config.h.auto ] || rm config.h.auto
echo "/* Autogenerated by Makefile and config-test.c */" > config.h.auto
for item in \
STRCMP \
STRCASECMP \
SIGTYPE_INT \
MEMMOVE \
FLOAT_H \
ALLOCA_H \
STRERROR \
VASPRINTF \
; do \
echo "Testing for $$item"; \
......@@ -101,8 +97,28 @@ config.h:
value=0; \
fi; \
echo "- result: $$value"; \
printf "#define HAVE_%s\\t%d\\n" "$$item" "$$value" >> config.h.auto; \
printf "\\n#define HAVE_%s\\t%d\\n" "$$item" "$$value" >> config.h.auto; \
done
# These configuration settings are deprecated; hexer expects
# a POSIX environment that provides these functions and
# header files. If the build breaks or hexer doesn't run
# properly, try moving some of these to the upper section so
# the configuration stage can actually check for them; please
# also let the author know what your operating system, platform,
# and build environment is.
#
for item in \
STRCMP \
STRCASECMP \
MEMMOVE \
FLOAT_H \
STRERROR \
; do \
echo "Assuming $$item is present"; \
printf "\\n/* Assumed; please let the author know if the build breaks */\\n#define HAVE_%s\\t%d\\n" "$$item" 1 >> config.h.auto; \
done
[ ! -e config.h ] || rm config.h
mv config.h.auto config.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment