Paste details

auto tests in Makefile

markand

makefile

month

CC=gcc

# content of test-err.c:
# #include <err.h>
# int main()
# {
#    err(1, "foo");
# }

checks:
        @rm -f sysconfig.h
        @echo "checking for err(3)"
        @${CC} test-err.c && echo "#define HAVE_ERR" >> sysconfig.h

sysconfig.h: checks