python: Rework callbacks.
[gpgme.git] / configure.ac
index 7559559..4269540 100644 (file)
@@ -365,6 +365,16 @@ if test "$found" = "1"; then
     else
         AM_PATH_PYTHON([3.3])
         AX_SWIG_PYTHON
+       if test -z "$PYTHON_VERSION"; then
+           if test "$explicit_languages" = "1"; then
+              AC_MSG_ERROR([[
+***
+*** Please install the python development packages.
+***]])
+           else
+                enabled_languages=$(echo $enabled_languages | sed 's/python//')
+            fi
+       fi
     fi
 fi
 
@@ -765,7 +775,10 @@ AC_CONFIG_FILES(lang/qt/tests/Makefile)
 AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd])
 AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([lang/qt/doc/Doxyfile])])
 AC_CONFIG_FILES(lang/qt/doc/Makefile)
-AC_CONFIG_FILES([lang/python/Makefile lang/python/tests/Makefile])
+AC_CONFIG_FILES([lang/python/Makefile
+                lang/python/setup.py
+                lang/python/pyme/version.py
+                lang/python/tests/Makefile])
 AC_OUTPUT
 
 echo "