sinclude(ax_python_devel.m4)
ac_save_LIBS="$LIBS" dnl otherwise AC_PYTHON_DEVEL thrashes $LIBS
- AX_PYTHON_DEVEL
- if test ! -z "$PYTHON_VERSION"; then
- if test `$PYTHON -c "import sys; \
- ver = sys.version.split()[[0]]; \
- print(ver >= '2.4.0')"` = "False"; then
- AC_MSG_ERROR([Python version >= 2.4.0 is required])
- fi
- # Have Python
- AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
+ AX_PYTHON_DEVEL([>= '2.4.0'])
+ if test ! -z "$ac_python_version"; then
ldns_have_python=yes
fi
# xtra cflags for pyldns
if test x_$ldns_have_python != x_no; then
ACX_CHECK_COMPILER_FLAG(fno-strict-aliasing, [PYTHON_X_CFLAGS="-fno-strict-aliasing"])
+ ACX_CHECK_COMPILER_FLAG(Wno-missing-field-initializers, [PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"])
+ ACX_CHECK_COMPILER_FLAG(Wno-unused-parameter, [PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"])
+ ACX_CHECK_COMPILER_FLAG(Wno-unused-variable, [PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"])
fi
fi
AC_SUBST(PYTHON_X_CFLAGS)
/**
* prints to the buffer, increasing the capacity if required using
- * buffer_reserve(). The buffer's position is set to the terminating
- * '\\0'. Returns the number of characters written (not including the
+ * buffer_reserve(). The buffer's position is set to the terminating '\\0'
+ * Returns the number of characters written (not including the
* terminating '\\0') or -1 on failure.
*/
int ldns_buffer_printf(ldns_buffer *buffer, const char *format, ...);
ldns_rr *rr);
/**
- * Sub function for derive_trust_tree that is used for a
- * 'normal' rrset
+ * Sub function for derive_trust_tree that is used for a 'normal' rrset
*
* \param[in] new_tree The trust tree that we are building
* \param[in] data_chain The data chain containing the data for the trust tree