/usr/share/aclocal/magics.m4 is in libmagics++-dev 2.18.15-5.
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 | dnl
dnl AM_PATH_MAGICS
dnl
AC_DEFUN([AM_PATH_MAGICS],
[
AC_ARG_WITH(magics,
AS_HELP_STRING([--with-magics],
[Prefix of Magics++ installation (optional, default is $MAGPLUS_HOME)]),
[
magics_config_prefix=$with_magics
],
[
if test x"${MAGPLUS_HOME}" != x; then
magics_config_prefix=$MAGPLUS_HOME
fi
]
)
if test x$magics_config_prefix != x ; then
MAGICS_CONFIG=$magics_config_prefix/bin/magics-config
fi
AC_PATH_PROG(MAGICS_CONFIG, magics-config, no)
if test "$MAGICS_CONFIG" = "no" ; then
AC_MSG_ERROR([Cannot find 'magics-config'.])
fi
MAGICS_CFLAGS=`$MAGICS_CONFIG --cxxflags`
MAGICS_LIBS=`$MAGICS_CONFIG --libs`
MAGICS_PREFIX=`$MAGICS_CONFIG --prefix`
AC_SUBST(MAGICS_CFLAGS)
AC_SUBST(MAGICS_LIBS)
AC_SUBST(MAGICS_PREFIX)
magics_version=`$MAGICS_CONFIG --version`
AC_MSG_RESULT([Using Magics++ version ${magics_version} from ${MAGICS_PREFIX}])
])
|