Discussion:
Check perl module
Rudra Banerjee
2016-09-24 08:55:09 UTC
Permalink
Hi,

In my configure.ac, I want to check in this perl module exiftool (http:
//search.cpan.org/~exiftool/Image-ExifTool-10.20/lib/Image/ExifTool.pod
) exists as:

AX_PROG_PERL_MODULES( Image::ExifTool, ,)

But this is giving error:

./configure: line 4071: syntax error near unexpected token
`Image::ExifTool,'
./configure: line 4071: `AX_PROG_PERL_MODULES( Image::ExifTool, ,)'
What is going wrong here?

For reference, here is my complete configure.ac

AC_INIT([mkbib], [0.1],[],[mkbib])
AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 subdir-objects])
AM_PATH_PYTHON([3.0])
AM_PATH_GTK_3_0([3.4.0],,AC_MSG_ERROR([Gtk+ 3.0.0 or higher
required.]))
AX_PROG_PERL_MODULES( Image::ExifTool, ,)

GLIB_GSETTINGS
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
Gavin Smith
2016-09-24 09:59:09 UTC
Permalink
Post by Rudra Banerjee
./configure: line 4071: syntax error near unexpected token
`Image::ExifTool,'
./configure: line 4071: `AX_PROG_PERL_MODULES( Image::ExifTool, ,)'
What is going wrong here?
This error shows that the AX_PROG_PERL_MODULES macro has not been
expanded in the configure script. You have to make sure that that
macro is available to autoconf when it runs. Maybe you need to use
aclocal for this.
Rudra Banerjee
2016-09-24 14:02:16 UTC
Permalink
Hi,
Thanks a lot.
Do you know if there is a similar things for python(3) modules?
Post by Gavin Smith
Post by Rudra Banerjee
./configure: line 4071: syntax error near unexpected token
`Image::ExifTool,'
./configure: line 4071: `AX_PROG_PERL_MODULES( Image::ExifTool, ,)'
What is going wrong here?
This error shows that the AX_PROG_PERL_MODULES macro has not been
expanded in the configure script. You have to make sure that that
macro is available to autoconf when it runs. Maybe you need to use
aclocal for this.
Thomas Jahns
2016-09-25 22:14:50 UTC
Permalink
Post by Gavin Smith
Post by Rudra Banerjee
./configure: line 4071: syntax error near unexpected token
`Image::ExifTool,'
./configure: line 4071: `AX_PROG_PERL_MODULES( Image::ExifTool, ,)'
What is going wrong here?
This error shows that the AX_PROG_PERL_MODULES macro has not been
expanded in the configure script. You have to make sure that that
macro is available to autoconf when it runs. Maybe you need to use
aclocal for this.
As a matter of style, you also might want to quote Image::ExitTool and
remove empty arguments as in:

AX_PROG_PERL_MODULES([Image::ExifTool])

Thomas

Loading...