don't try to build pgpmime plugin when gpgme is disabled
authorChristoph Hohmann <reboot@gmx.ch>
Sun, 3 Oct 2004 13:07:30 +0000 (13:07 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sun, 3 Oct 2004 13:07:30 +0000 (13:07 +0000)
configure.ac

index 5582ad1646a41ba1cfe572c48dd822fd4bfec6e0..415e0613ef51b8e6543be1b97e6513fb4bf802c1 100644 (file)
@@ -507,8 +507,17 @@ dnl --- PGP/MIME ---
 AC_ARG_ENABLE(pgpmime-plugin,
        [  --disable-pgpmime-plugin           Do not build PGP/MIME plugin],
        [ac_cv_enable_pgpmime_plugin=$enableval], [ac_cv_enable_pgpmime_plugin=yes])
 AC_ARG_ENABLE(pgpmime-plugin,
        [  --disable-pgpmime-plugin           Do not build PGP/MIME plugin],
        [ac_cv_enable_pgpmime_plugin=$enableval], [ac_cv_enable_pgpmime_plugin=yes])
-if test x"$ac_cv_enable_gpgme" = xyes -a x"$ac_cv_enable_pgpmime_plugin" = xyes; then
-       PLUGINS="pgpmime $PLUGINS"
+if test x"$ac_cv_enable_pgpmime_plugin" = xyes; then
+       echo $ac_cv_enable_gpgme
+       echo $ac_cv_enable_pgpmime_plugin
+       if test x"$ac_cv_enable_gpgme" != xyes; then
+               ac_cv_enable_pgpmime_plugin=no
+       fi
+
+       echo $ac_cv_enable_pgpmime_plugin
+       if test x"$ac_cv_enable_pgpmime_plugin" = xyes; then
+               PLUGINS="pgpmime $PLUGINS"
+       fi
 fi
 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$ac_cv_enable_pgpmime_plugin" = xyes)
 
 fi
 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$ac_cv_enable_pgpmime_plugin" = xyes)