Check required modules using autotools

Rudra Banerjee bnrj.rudra at live.com
Tue Aug 16 14:49:45 EDT 2016


Hi,
I am compiling a python3 project using gnu-autotools.
This is my configure.ac file (Please ignore the recursive Makefile, I have not managed to make the non-recursive one).

AC_INIT([mkbib], [0.1],[],[mkbib])
AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 subdir-objects])
AM_PATH_PYTHON([3.0])
dnl AX_PYTHON_MODULE([bibtexparser],[required])

AC_CONFIG_FILES([Makefile 
                 data/Makefile
                 data/mkbib.desktop
                 data/icons/Makefile
                 data/icons/hicolor/Makefile
                 data/icons/hicolor/48x48/Makefile
                 data/icons/hicolor/48x48/apps/Makefile
                 data/icons/hicolor/scalable/Makefile
                 data/icons/hicolor/scalable/apps/Makefile
                 data/ui/Makefile
                 ])
AC_OUTPUT

I am trying to check presence of bibtexparser module (https://pypi.python.org/pypi/bibtexparser/0.5.2); which is giving error:

./configure: line 2589: syntax error near unexpected token `bibtexparser,'
./configure: line 2589: `AX_PYTHON_MODULE(bibtexparser, fatal)'

I have also tried:
PKG_CHECK_MODULES([GTK], [gtk+-2.0])
PKG_CHECK_MODULES([GLIB], [glib-2.0])
PKG_CHECK_MODULES([bibtex], [bibtexparser])

But This is  giving error as well.
./configure: line 2589: syntax error near unexpected token `GTK,'
./configure: line 2589: `PKG_CHECK_MODULES(GTK, gtk+-2.0)'



More information about the Python-list mailing list