From f894613bceee52351166a444d35fbf5001002e2a Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 25 Aug 2012 02:26:10 +0200 Subject: [PATCH] Simplify Python wrapper detection. --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 4bb64c9..1cbf09d 100644 --- a/configure.ac +++ b/configure.ac @@ -612,11 +612,11 @@ fi AM_CONDITIONAL(HAVE_SWIG, test "x$has_swig" = "xyes") # Do we have wrappers (ctools_wrap.cpp and ctools.py)? -AC_CHECK_FILES([pyext/ctools_wrap.cpp pyext/ctools.py],,) -if test "x$ac_cv_file_pyext_ctools_wrap_cpp" = "xyes"; then - if test "x$ac_cv_file_pyext_ctools_py" = "xyes"; then - has_wrappers="yes" - fi +has_wrappers="yes" +AC_CHECK_FILES([pyext/ctools_wrap.cpp pyext/ctools.py],, + [has_wrappers="no"]) +if test "x$has_wrappers" = "xno"; then + AC_MSG_WARN([Python wrapper missing. Requires swig for wrapper generation.]) fi # Signal if Python is enabled -- libgit2 0.21.4