102 |
AC_DEFINE_UNQUOTED([PR_PROGRAM], ["$PR"], [Path to the pr utility]) |
AC_DEFINE_UNQUOTED([PR_PROGRAM], ["$PR"], [Path to the pr utility]) |
103 |
fi |
fi |
104 |
# For src/gpg.c |
# For src/gpg.c |
105 |
AC_PATH_PROG(GPG, gpg, no) |
AC_PATH_PROG(GPG, gpg, gpg) |
106 |
if test x"$GPG" != xno; then |
if test x"$GPG" != xgpg; then |
107 |
AC_DEFINE_UNQUOTED([GPG_PROGRAM], ["$GPG"], [Path to the gpg utility]) |
AC_DEFINE([HAVE_OPENPGP], [1], |
108 |
|
[Define if an OpenPGP capable program is available (and, assumedly, |
109 |
|
usable command line templates are in the DEFAULT_SIGN_TEMPLATE and |
110 |
|
DEFAULT_VERIFY_TEMPLATE macros).]) |
111 |
fi |
fi |
112 |
|
dnl These are defined by configure so that if the above is ever expanded to |
113 |
|
dnl look for OpenPGP capable programs other than `gpg', the default templates |
114 |
|
dnl can also be detected and substituted here. |
115 |
|
AC_DEFINE_UNQUOTED([DEFAULT_SIGN_TEMPLATE], |
116 |
|
["$GPG --detach-sign --output - %t %a -- %s"], |
117 |
|
[Define to a command line template that will write an |
118 |
|
OpenPGP signature for the file `%s' to its standard out. |
119 |
|
`%t' is substituted at run time with an option which flags |
120 |
|
files as text files, when necessary, and the empty string, |
121 |
|
otherwise. `%a' is substituted with a list of arguments |
122 |
|
provided by the user.]) |
123 |
|
AC_DEFINE([DEFAULT_SIGN_TEXTMODE], ["--textmode"], |
124 |
|
[Define to the option string that the OpenPGP program used in the |
125 |
|
DEFAULT_SIGN_TEMPLATE would like to see for text files (substituted |
126 |
|
at run time in place of `%t' in the DEFAULT_SIGN_TEMPLATE).]) |
127 |
|
|
128 |
dnl FIXME This is truly gross. |
dnl FIXME This is truly gross. |
129 |
missing_dir=`cd $ac_aux_dir && pwd` |
missing_dir=`cd $ac_aux_dir && pwd` |