# -l <logfile name>, default 'build_nmh.log', - for stdout/stderr
# Advanced/developer use:
# -c to run 'make distcheck' instead of 'make check'
# -l <logfile name>, default 'build_nmh.log', - for stdout/stderr
# Advanced/developer use:
# -c to run 'make distcheck' instead of 'make check'
# -s to use 'make superclean': requires recent autoconf and automake,
# see docs/README.developers
# -r to build rpm
# -s to use 'make superclean': requires recent autoconf and automake,
# see docs/README.developers
# -r to build rpm
usage="usage:
[-b <branch>, only if downloading]
[-c to run 'make distcheck' instead of 'make check']
usage="usage:
[-b <branch>, only if downloading]
[-c to run 'make distcheck' instead of 'make check']
- servers=`echo "$mtsconfservers" | \
- sed -e 's/^servers: *//' -e 's/ /\\\ /g'`
- [ "$servers" ] && config_smtpservers="$servers"
+ servers=`echo "$mtsconfservers" | sed -e 's/^servers: *//'`
+ [ "$servers" ] && config_smtpserver="$servers"
- printf 'SMTP server(s), space separated [%s]: ' $config_smtpservers >&3
- read response
- servers=`echo $response | sed -e 's/ /\\\ /g'`
- [ "$servers" ] && config_smtpservers="$servers"
+ printf 'SMTP server [%s]: ' $config_smtpserver >&3
+ read server
+ [ "$server" ] && config_smtpserver="$servers"
config_opts="--prefix=$config_prefix"
[ "$config_locking" ] &&
config_opts="$config_opts --with-locking=$config_locking"
[ "$config_mts" -a "$config_mts" != smtp ] &&
config_opts="$config_opts --with-mts=$config_mts"
config_opts="--prefix=$config_prefix"
[ "$config_locking" ] &&
config_opts="$config_opts --with-locking=$config_locking"
[ "$config_mts" -a "$config_mts" != smtp ] &&
config_opts="$config_opts --with-mts=$config_mts"
-[ "$config_smtpservers" -a "$config_smtpservers" != localhost ] &&
- smtpservers="--with-smtpservers=$config_smtpservers"
+[ "$config_smtpserver" -a "$config_smtpserver" != localhost ] &&
+ config_opts="$config_opts --with-smtpserver=$config_smtpserver"
[ "$config_sasl" = y ] && config_opts="$config_opts --with-cyrus-sasl"
[ "$config_tls" = y ] && config_opts="$config_opts --with-tls"
[ "$config_sasl" = y ] && config_opts="$config_opts --with-cyrus-sasl"
[ "$config_tls" = y ] && config_opts="$config_opts --with-tls"
if cc -dM -E - </dev/null 2>&1 | grep __GNUC__ >/dev/null; then
#### configure will supply -g -O2 with gcc, but only if CFLAGS
#### isn't defined.
if cc -dM -E - </dev/null 2>&1 | grep __GNUC__ >/dev/null; then
#### configure will supply -g -O2 with gcc, but only if CFLAGS
#### isn't defined.
-printf '\n./configure %s\n' "$config_opts${smtpservers:+ $smtpservers}"
-./configure CFLAGS="${CFLAGS}" $config_opts${smtpservers:+" $smtpservers"}
+printf "\n./configure ${CFLAGS:+CFLAGS=\"${CFLAGS}\" }$config_opts\n"
+./configure ${CFLAGS:+CFLAGS="${CFLAGS}"" "}$config_opts