104 |
# For src/gpg.c |
# For src/gpg.c |
105 |
AC_PATH_PROG(GPG, gpg, gpg) |
AC_PATH_PROG(GPG, gpg, gpg) |
106 |
if test x"$GPG" != xgpg; then |
if test x"$GPG" != xgpg; then |
107 |
|
# The GPG on at least one of my FreeBSD 4.11 test systems fails to run |
108 |
|
# because libintl is missing. |
109 |
|
if $GPG --version >/dev/null 2>&1; then :; else |
110 |
|
# GPG is broken. Pretend it isn't there. |
111 |
|
AC_MSG_WARN([GPG is installed as \`$GPG', but is broken. Ignoring it.]) |
112 |
|
GPG=gpg |
113 |
|
fi |
114 |
|
fi |
115 |
|
if test x"$GPG" != xgpg; then |
116 |
AC_DEFINE([HAVE_OPENPGP], [1], |
AC_DEFINE([HAVE_OPENPGP], [1], |
117 |
[Define if an OpenPGP capable program is available (and, assumedly, |
[Define if an OpenPGP capable program is available (and, assumedly, |
118 |
usable command line templates are in the DEFAULT_SIGN_TEMPLATE and |
usable command line templates are in the DEFAULT_SIGN_TEMPLATE and |