]> diplodocus.org Git - nmh/blobdiff - docs/contrib/build_nmh
That didn't work, try adding -pedantic-errors.
[nmh] / docs / contrib / build_nmh
index 0b9e582ea3b520d8d8e9d04cb35b92436a220571..adc6e1cb185c97cf1caf7822777094845bd408f6 100755 (executable)
@@ -149,11 +149,11 @@ if install-mh -check >/dev/null 2>&1; then
     fi
   fi
 
-  if $ldd "$mhbin/inc" | grep sasl >/dev/null; then
+  if $ldd "`$mhbin/mhparam libdir`/post" | grep sasl >/dev/null; then
     config_sasl=y
   fi
 
-  if $ldd "$mhbin/inc" | grep ssl >/dev/null; then
+  if $ldd "`$mhbin/mhparam libdir`/post" | grep ssl >/dev/null; then
     config_tls=y
   fi
 fi
@@ -307,14 +307,14 @@ if [ $status -eq 0 ]; then
   fi
 fi
 
-grep 'Error' "$logfile"
-#### Ignore the warning when sbr/dtimep.c is built with flex 2.5.36
-#### or 2.5.37.
-grep 'warn' "$logfile" | grep -v 'sbr/dtimep.c:.*-Wsign-compare'
-if [ $status -ne 0 ]; then
+grep Error "$logfile"
+grep warn "$logfile"
+
+if [ $status -eq 0 ]; then
+  [ $verbose -ge 1 ]  &&  echo build completed successfully
+else
   echo build failed!
   echo build log is in "$logfile"
 fi
-[ $status -eq 0  -a  $verbose -ge 1 ]  &&  echo build completed successfully
 
 exit $status