### Base configuration
# Configure autoconf
-AC_PREREQ([2.71])
+AC_PREREQ([2.69])
AC_INIT([lldpd],
[m4_esyscmd_s([./get-version])],
# Checks for programs.
AC_PROG_CC
+AC_PROG_CC_C99
if test x"$ac_cv_prog_cc_c99" = x"no"; then
AC_MSG_FAILURE([*** C99 support is mandatory])
fi
+AC_PROG_CPP
AM_PROG_CC_C_O
LT_INIT
AC_PROG_LN_S
AC_PROG_EGREP
AC_PROG_AWK
+AC_PROG_SED
+
+# Check for pkg-config
+m4_ifndef([PKG_CHECK_MODULES], [
+ AC_MSG_ERROR([PKG_CHECK_MODULES not found. Please install pkg-config and re-run autogen.sh])])
# Doxygen
DX_HTML_FEATURE(ON)