Check perl module

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Check perl module

Rudra Banerjee-3
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
_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf
Reply | Threaded
Open this post in threaded view
|

Re: Check perl module

Gavin Smith
On 24 September 2016 at 09:55, Rudra Banerjee <[hidden email]> wrote:

> 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?

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.

_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf
Reply | Threaded
Open this post in threaded view
|

Re: Check perl module

Rudra Banerjee-3
Hi,
Thanks a lot.
Do you know if there is a similar things for python(3) modules?
On Sat, 2016-09-24 at 10:59 +0100, Gavin Smith wrote:

> On 24 September 2016 at 09:55, Rudra Banerjee <[hidden email]>
> wrote:
>
> >
> > 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?
>
> 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.
_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf
Reply | Threaded
Open this post in threaded view
|

Re: Check perl module

Thomas Jahns-2
In reply to this post by Gavin Smith
On 09/24/16 11:59, Gavin Smith wrote:

> On 24 September 2016 at 09:55, Rudra Banerjee <[hidden email]> wrote:
>
>> 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?
>
> 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


_______________________________________________
Autoconf mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/autoconf