Bug 681640 - Check for Python interpreter in configure.ac
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 13 Aug 2012 13:39:56 +0000 (09:39 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 13 Aug 2012 13:41:09 +0000 (09:41 -0400)
For /addressbook/libebook/gen-western-table.py.

addressbook/libebook/Makefile.am
configure.ac

index 870d3c4..0171fec 100644 (file)
@@ -86,7 +86,7 @@ libebookinclude_HEADERS =                             \
         cp $< $@
 
 e-name-western-tables.h: e-name-western-tables.h.in
-       (${srcdir}/gen-western-table.py < $< > $@.tmp && mv $@.tmp $@) || rm -f $@.tmp
+       $(AM_V_GEN) ($(PYTHON) ${srcdir}/gen-western-table.py < $< > $@.tmp && mv $@.tmp $@) || rm -f $@.tmp
 
 BUILT_SOURCES += e-name-western-tables.h
 
index 03fb8b8..2ef437a 100644 (file)
@@ -223,6 +223,9 @@ AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 
+dnl For gen-western-table.py
+AM_PATH_PYTHON
+
 dnl GCC 4.4 got more aggressive in its aliasing optimizations, changing
 dnl behavior that -- according to the C99 standard -- is supposed to be
 dnl undefined.  We may still have aliasing abuses lying around that rely