configure, test and '=='
Posted: Thu Jun 16, 2011 4:39 pm
[code]% grep '" == "' ZoneMinder-1.24.4/configure
if test "$ZM_DB_HOST" == ""; then
if test "$ZM_DB_NAME" == ""; then
if test "$ZM_DB_USER" == ""; then
if test "$ZM_DB_PASS" == ""; then
if test "$ZM_SSL_LIB" == ""; then
if test "$ZM_MYSQL_ENGINE" == ""; then
if test "$ZM_RUNDIR" == ""; then
if test "$ZM_TMPDIR" == ""; then
if test "$ZM_LOGDIR" == ""; then
if test "$ENABLE_MMAP" == "yes"; then
if test "$OPT_NETPBM" == "yes"; then
if test "$ZM_SSL_LIB" == "openssl"; then
if test "$ZM_HAS_V4L1" == "1" || test "$ZM_HAS_V4L2" == "1"; then
if test "$ENABLE_MMAP" == "yes"; then
if test "$ZM_SSL_LIB" == "openssl"; then
if test "$ENABLE_MMAP" == "yes"; then[/code]
Seems that all those '==' should be replaced by '='. I use FreeBSD, but that should not be relevant imho.
if test "$ZM_DB_HOST" == ""; then
if test "$ZM_DB_NAME" == ""; then
if test "$ZM_DB_USER" == ""; then
if test "$ZM_DB_PASS" == ""; then
if test "$ZM_SSL_LIB" == ""; then
if test "$ZM_MYSQL_ENGINE" == ""; then
if test "$ZM_RUNDIR" == ""; then
if test "$ZM_TMPDIR" == ""; then
if test "$ZM_LOGDIR" == ""; then
if test "$ENABLE_MMAP" == "yes"; then
if test "$OPT_NETPBM" == "yes"; then
if test "$ZM_SSL_LIB" == "openssl"; then
if test "$ZM_HAS_V4L1" == "1" || test "$ZM_HAS_V4L2" == "1"; then
if test "$ENABLE_MMAP" == "yes"; then
if test "$ZM_SSL_LIB" == "openssl"; then
if test "$ENABLE_MMAP" == "yes"; then[/code]
Seems that all those '==' should be replaced by '='. I use FreeBSD, but that should not be relevant imho.