/usr/share/aclocal/yazpp.m4 is in libyazpp4-dev 1.4.1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | AC_DEFUN([YAZPP_INIT],
[
AC_SUBST(YAZPPLIB)
AC_SUBST(YAZPPLALIB)
AC_SUBST(YAZPPINC)
AC_SUBST(YAZPPVERSION)
yazppconfig=NONE
yazpppath=NONE
AC_ARG_WITH(yazpp, [ --with-yazpp=DIR yazpp-config in DIR (example /home/yazpp-1.0.0)], [yazpppath=$withval])
if test "x$yazpppath" != "xNONE"; then
yazppconfig=$yazpppath/yazpp-config
else
if test "x$srcdir" = "x"; then
yazppsrcdir=.
else
yazppsrcdir=$srcdir
fi
for i in ${yazppsrcdir}/../../yazpp ${yazppsrcdir}/../yazpp-* ${yazppsrcdir}/../yazpp; do
if test -d $i; then
if test -r $i/yazpp-config; then
yazppconfig=$i/yazpp-config
fi
fi
done
if test "x$yazppconfig" = "xNONE"; then
AC_PATH_PROG(yazppconfig, yazpp-config, NONE)
fi
fi
AC_MSG_CHECKING(for YAZ++)
if $yazppconfig --version >/dev/null 2>&1; then
YAZPPLIB=`$yazppconfig --libs $1`
YAZPPLALIB=`$yazppconfig --lalibs $1`
YAZPPINC=`$yazppconfig --cflags $1`
YAZPPVERSION=`$yazppconfig --version`
AC_MSG_RESULT($yazppconfig)
else
AC_MSG_RESULT(Not found)
YAZVERSION=NONE
fi
if test "X$YAZPPVERSION" != "XNONE"; then
AC_MSG_CHECKING([for YAZ++ version])
AC_MSG_RESULT([$YAZPPVERSION])
if test "$2"; then
have_yaz_version=`echo "$YAZPPVERSION" | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`
req_yaz_version=`echo "$2" | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`
if test "$have_yaz_version" -lt "$req_yaz_version"; then
AC_MSG_ERROR([$YAZPPVERSION. Requires YAZ++ $2 or later])
fi
fi
fi
])
|