]> arthur.barton.de Git - netatalk.git/blobdiff - configure.in
PGP UAM module compilation support using --enable-pgp-uam
[netatalk.git] / configure.in
index 91de62513be32ef30d22599e15277d54e947ef68..623178e3d128c413a24d0857216347902561ff9c 100644 (file)
@@ -494,15 +494,27 @@ for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl/ /usr/local
 
                AC_DEFINE(OPENSSL_DHX,  1)
                AC_DEFINE(UAM_DHX,      1)
-dnl            AC_DEFINE(UAM_PGP,      1)
                AC_DEFINE(UAM_RNDNUM,   1)
-               use_pgp=no
                compile_dhx=yes
+               compile_ssl=yes
                AC_MSG_RESULT([Found ssl and enabling RANDNUM and DHX support "$ssldir"])
                break
        fi
 done
 
+dnl --------------------- check for building PGP UAM module
+
+AC_ARG_ENABLE(pgp-uam,
+       [  --enable-pgp-uam        enable build of PGP UAM module],
+       if test "$enableval" = "yes"; then 
+               if test "$compile_ssl" = "yes"; then 
+                       AC_DEFINE(UAM_PGP, 1)
+                       compile_pgp=yes
+                       AC_MSG_RESULT([enabling build with PGP UAM module])
+               fi
+       fi
+)
+
 dnl --------------------- last minute substitutions
 
 AC_SUBST(LIBS)