-AC_PREREQ(2.59)
+AC_PREREQ(2.64)
AC_INIT(fixincludes, [ ])
AC_CONFIG_SRCDIR(inclhack.def)
m4_sinclude(../libtool.m4)
AC_CANONICAL_SYSTEM
AC_PROG_CC
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_SED
# Figure out what compiler warnings we can enable.
fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
putchar_unlocked putc_unlocked)
AC_CHECK_FUNCS(fixincludes_UNLOCKED_FUNCS)
-AC_CHECK_DECLS(m4_split(m4_normalize(abort asprintf basename errno vasprintf fixincludes_UNLOCKED_FUNCS)))
+AC_CHECK_DECLS([abort, asprintf, basename(char *), errno, vasprintf])
+AC_CHECK_DECLS(m4_split(m4_normalize(fixincludes_UNLOCKED_FUNCS)))
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
MAINT='#'
fi
AC_SUBST(MAINT)
-AC_DEFINE_UNQUITED([SED_PROGRAM], "${SED}",
+AC_DEFINE_UNQUOTED([SED_PROGRAM], "${SED}",
[Defined to the best working sed program on the host system])
AC_CONFIG_HEADERS(config.h, [echo timestamp > stamp-h])