=================================================================== RCS file: /cvs/mandoc/configure,v retrieving revision 1.41 retrieving revision 1.43 diff -u -p -r1.41 -r1.43 --- mandoc/configure 2016/07/15 15:08:37 1.41 +++ mandoc/configure 2016/07/19 13:36:13 1.43 @@ -35,7 +35,8 @@ MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/lo OSNAME= CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -f -` -CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings" +CFLAGS="-g -W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings" +CFLAGS="${CFLAGS} -Wno-unused-parameter" LDADD= LDFLAGS= LD_OHASH= @@ -284,8 +285,9 @@ cat << __HEREDOC__ #error "Do not use C++. See the INSTALL file." #endif -#ifndef MANDOC_CONFIG_H -#define MANDOC_CONFIG_H +#if !defined(__GNUC__) || (__GNUC__ < 4) +#define __attribute__(x) +#endif #if defined(__linux__) || defined(__MINT__) #define _GNU_SOURCE /* See test-*.c what needs this. */ @@ -389,9 +391,6 @@ fi [ ${HAVE_VASPRINTF} -eq 0 ] && \ echo "extern int vasprintf(char **, const char *, va_list);" - -echo -echo "#endif /* MANDOC_CONFIG_H */" echo "config.h: written" 1>&2 echo "config.h: written" 1>&3