2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [0])
4 m4_define([package_micro_version], [7])
5 m4_define([package_version], [package_major_version.package_minor_version.package_micro_version])
7 AC_INIT([gmpc-exiftool], [package_version], [qball@sarine.nl])
11 # so in metapackage it builds standalone
12 AC_CONFIG_AUX_DIR([.])
13 AC_CONFIG_HEADER([config.h])
21 #intltool, libtool. Check for CC compiler
22 #AC_PROG_INTLTOOL([0.21])
24 #AM_GNU_GETTEXT_VERSION(0.11.5)
26 #GETTEXT_PACKAGE=gmpc-exiftool
27 #AC_SUBST(GETTEXT_PACKAGE)
28 #AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GETTEXT Package name])
29 #AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Name of gettext locale directory])
33 AM_PROG_VALAC([0.7.0])
38 if test "$enable_perl" = yes ; then
40 AC_PATH_PROG(perlpath, perl)
41 AC_MSG_CHECKING(for Perl compile flags)
42 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
43 if test "_$PERL_CFLAGS" = _ ; then
44 AC_MSG_RESULT([not found, building without perl.])
47 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'`
48 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'`
49 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'`
50 if test "$system" = "Linux"; then
51 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'`
52 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'`
54 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'`
58 LIBS="$LIBS $PERL_LIBS"
59 AC_MSG_CHECKING(for libperl)
60 AC_CHECK_FUNCS(perl_run, [], enable_perl=no)
63 oldCPPFLAGS="$CPPFLAGS"
64 CPPFLAGS="$CPPFLAGS $PERL_CFLAGS"
65 AC_CHECK_HEADERS(EXTERN.h)
66 AC_CHECK_HEADERS(perl.h, [], enable_perl=no,
70 CPPFLAGS="$oldCPPFLAGS"
78 PKG_CHECK_MODULES([modules],[