diff options
author | Werner Koch <[email protected]> | 2000-11-23 15:28:15 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2000-11-23 15:28:15 +0000 |
commit | b7a7d9b9cc78e28718b73238e6b59f4f1eaa9971 (patch) | |
tree | df9a1a33e67a9c5e2a818eca1c5af9cab8dda516 /configure.in | |
parent | Added some comments and prepared for W32 support (diff) | |
download | gpgme-b7a7d9b9cc78e28718b73238e6b59f4f1eaa9971.tar.gz gpgme-b7a7d9b9cc78e28718b73238e6b59f4f1eaa9971.zip |
Now we are able to compile the W32 stuff - don't now whether it works; I have
no Windoze box here.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 7363d790..c1fde710 100644 --- a/configure.in +++ b/configure.in @@ -23,6 +23,7 @@ AC_SUBST(LIBGPGME_LT_CURRENT) AC_SUBST(LIBGPGME_LT_AGE) AC_SUBST(LIBGPGME_LT_REVISION) + dnl dnl Checks for programs dnl @@ -36,6 +37,22 @@ if test "$GCC" = yes; then CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes" fi +GPG= +case "${target}" in + *-*-mingw32* | i?86-emx-os2 | i?86-*-os2*emx | i?86-*-msdosdjgpp* ) + # special stuff for Windoze NT + # OS/2 with the EMX environment + # DOS with the DJGPP environment + AC_DEFINE(HAVE_DRIVE_LETTERS) + AC_DEFINE(HAVE_DOSISH_SYSTEM) + GPG='c:\\gnupg\\gpg.exe' + ;; + *) + ;; +esac + + + dnl dnl Checks for libraries @@ -64,14 +81,16 @@ dnl dnl Checks for system services dnl -AC_PATH_PROG(GPG, gpg) -if test -z "$GPG"; then - AC_MSG_ERROR([[ +if test -z "GPG"; then + AC_PATH_PROG(GPG, gpg) + if test -z "$GPG"; then + AC_MSG_ERROR([[ *** *** GnuPG not found. Please install GnuPG first. *** See http://www.gnupg.org/download.html *** -]]) + ]]) + fi fi AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG") |