X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b63aeb3f0b2d2924480f6d2b4d50fe08b1f3de21..7954d390e513ce305c0716d448e8002d73dd4da9:/docs/contrib/build_nmh diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index adc6e1cb..cb2265cb 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -41,11 +41,6 @@ # rpm-build, with -r -#### -#### OS-specific setup. -#### -ldd=ldd - #### #### Interpret command arguments. #### @@ -149,12 +144,19 @@ if install-mh -check >/dev/null 2>&1; then fi fi - if $ldd "`$mhbin/mhparam libdir`/post" | grep sasl >/dev/null; then - config_sasl=y - fi - - if $ldd "`$mhbin/mhparam libdir`/post" | grep ssl >/dev/null; then - config_tls=y + if test -x "$mhbin/mhparam"; then + if mhparam sasl >/dev/null; then + case `$mhbin/mhparam sasl` in + *sasl*) config_sasl=y ;; + esac + + case `$mhbin/mhparam tls` in + *tls*) config_tls=y ;; + esac + else + echo "$0: -y not supported with currently installed nmh" + exit 1 + fi fi fi