/usr/share/aclocal/gwenhywfar.m4 is in libgwenhywfar-core-dev 4.20.0-1.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | # $Id$
# (c) 2002 Martin Preuss<martin@libchipcard.de>
# This function checks for libgwenhywfar
AC_DEFUN([AC_GWENHYWFAR], [
dnl searches for gwenhywfar
dnl Arguments:
dnl $1: major version minimum
dnl $2: minor version minimum
dnl $3: patchlevel version minimum
dnl $4: build version minimum
dnl Returns: gwenhywfar_dir
dnl gwenhywfar_bindir
dnl gwenhywfar_libs
dnl gwenhywfar_plugins
dnl gwenhywfar_includes
dnl gwenhywfar_headers
dnl gwenhywfar_has_crypt
dnl have_gwenhywfar
if test -z "$1"; then vma="0"; else vma="$1"; fi
if test -z "$2"; then vmi="1"; else vmi="$2"; fi
if test -z "$3"; then vpl="0"; else vpl="$3"; fi
if test -z "$4"; then vbld="0"; else vbld="$4"; fi
AC_MSG_CHECKING(if gwenhywfar support desired)
AC_ARG_ENABLE(gwenhywfar,
[ --enable-gwenhywfar enable gwenhywfar support (default=yes)],
enable_gwenhywfar="$enableval",
enable_gwenhywfar="yes")
AC_MSG_RESULT($enable_gwenhywfar)
have_gwenhywfar="no"
gwenhywfar_dir=""
gwenhywfar_plugins=""
gwenhywfar_libs=""
gwenhywfar_bindir=""
gwenhywfar_libspp=""
gwenhywfar_includes=""
gwenhywfar_has_crypt="yes"
if test "$enable_gwenhywfar" != "no"; then
AC_MSG_CHECKING(for gwenhywfar)
AC_ARG_WITH(gwen-dir, [ --with-gwen-dir=DIR
uses gwenhywfar from given dir],
[lcc_dir="$withval"],
[lcc_dir="${prefix} \
/usr/local \
/usr \
/gwen \
/sw \
/"])
for li in $lcc_dir; do
if test -x "$li/bin/gwenhywfar-config"; then
gwenhywfar_dir="$li";
break
fi
done
if test -z "$gwenhywfar_dir"; then
AC_MSG_RESULT([not found ])
AC_MSG_ERROR([
*** The library Gwenhywfar was not found. Obtain it from
*** http://www.aquamaniac.de .
*** If it is already installed (including the -devel package),
*** you might need to specify the location with the
*** option --with-gwen-dir=DIR.])
else
AC_MSG_RESULT($gwenhywfar_dir)
AC_MSG_CHECKING(for gwen libs)
gwenhywfar_libs="`$gwenhywfar_dir/bin/gwenhywfar-config --libraries`"
AC_MSG_RESULT($gwenhywfar_libs)
AC_MSG_CHECKING(for gwen includes)
gwenhywfar_includes="`$gwenhywfar_dir/bin/gwenhywfar-config --includes`"
AC_MSG_RESULT($gwenhywfar_includes)
AC_MSG_CHECKING(for gwen binary tools)
gwenhywfar_bindir="`$gwenhywfar_dir/bin/gwenhywfar-config --bindir`"
AC_MSG_RESULT($gwenhywfar_bindir)
AC_MSG_CHECKING(for gwen plugins)
gwenhywfar_plugins="`$gwenhywfar_dir/bin/gwenhywfar-config --plugins`"
AC_MSG_RESULT($gwenhywfar_plugins)
AC_MSG_CHECKING(for gwen headers)
gwenhywfar_headers="`$gwenhywfar_dir/bin/gwenhywfar-config --headers`"
AC_MSG_RESULT($gwenhywfar_headers)
fi
AC_MSG_CHECKING(if gwenhywfar test desired)
AC_ARG_ENABLE(gwenhywfar,
[ --enable-gwenhywfar-test enable gwenhywfar-test (default=yes)],
enable_gwenhywfar_test="$enableval",
enable_gwenhywfar_test="yes")
AC_MSG_RESULT($enable_gwenhywfar_test)
AC_MSG_CHECKING(for Gwenhywfar version >=$vma.$vmi.$vpl.$vbld)
if test "$enable_gwenhywfar_test" != "no"; then
gwen_versionstring="`$gwenhywfar_dir/bin/gwenhywfar-config --vstring`.`$gwenhywfar_dir/bin/gwenhywfar-config --vbuild`"
AC_MSG_RESULT([found $gwen_versionstring])
if test "$vma" -gt "`$gwenhywfar_dir/bin/gwenhywfar-config --vmajor`"; then
AC_MSG_ERROR([Your Gwenhywfar version is way too old.
Please update from http://www.aquamaniac.de])
elif test "$vma" = "`$gwenhywfar_dir/bin/gwenhywfar-config --vmajor`"; then
if test "$vmi" -gt "`$gwenhywfar_dir/bin/gwenhywfar-config --vminor`"; then
AC_MSG_ERROR([Your Gwenhywfar version is too old.
Please update from http://www.aquamaniac.de])
elif test "$vmi" = "`$gwenhywfar_dir/bin/gwenhywfar-config --vminor`"; then
if test "$vpl" -gt "`$gwenhywfar_dir/bin/gwenhywfar-config --vpatchlevel`"; then
AC_MSG_ERROR([Your Gwenhywfar version is a little bit too old.
Please update from http://www.aquamaniac.de])
elif test "$vpl" = "`$gwenhywfar_dir/bin/gwenhywfar-config --vpatchlevel`"; then
if test "$vbld" -gt "`$gwenhywfar_dir/bin/gwenhywfar-config --vbuild`"; then
AC_MSG_ERROR([Your Gwenhywfar version is a little bit too old.
Please update to the latest SVN version. Instructions for accessing
SVN can be found on http://www.aquamaniac.de])
fi
fi
fi
fi
have_gwenhywfar="yes"
#AC_MSG_RESULT(yes)
else
have_gwenhywfar="yes"
AC_MSG_RESULT(assuming yes)
fi
dnl end of "if enable-gwenhywfar"
fi
AC_SUBST(gwenhywfar_dir)
AC_SUBST(gwenhywfar_plugins)
AC_SUBST(gwenhywfar_bindir)
AC_SUBST(gwenhywfar_libs)
AC_SUBST(gwenhywfar_includes)
AC_SUBST(gwenhywfar_headers)
AC_SUBST(gwenhywfar_has_crypt)
])
|