Commit f894613bceee52351166a444d35fbf5001002e2a

Authored by Jürgen Knödlseder
1 parent a2f9903a

Simplify Python wrapper detection.

Adapt the simplified Python wrapper detection method from GammaLib.
Showing 1 changed file with 5 additions and 5 deletions
configure.ac
... ... @@ -612,11 +612,11 @@ fi
612 612 AM_CONDITIONAL(HAVE_SWIG, test "x$has_swig" = "xyes")
613 613  
614 614 # Do we have wrappers (ctools_wrap.cpp and ctools.py)?
615   -AC_CHECK_FILES([pyext/ctools_wrap.cpp pyext/ctools.py],,)
616   -if test "x$ac_cv_file_pyext_ctools_wrap_cpp" = "xyes"; then
617   - if test "x$ac_cv_file_pyext_ctools_py" = "xyes"; then
618   - has_wrappers="yes"
619   - fi
  615 +has_wrappers="yes"
  616 +AC_CHECK_FILES([pyext/ctools_wrap.cpp pyext/ctools.py],,
  617 + [has_wrappers="no"])
  618 +if test "x$has_wrappers" = "xno"; then
  619 + AC_MSG_WARN([Python wrapper missing. Requires swig for wrapper generation.])
620 620 fi
621 621  
622 622 # Signal if Python is enabled
... ...