configure is a Bourne shell script but contains a Bashism
Brought to you by:
edscott
When executing configure, the following error message appears
/bin/sh /usr/src/build/libdbh2-5.0.22/configure --enable-gtk-doc --prefix="/usr/local"
./configure: 15604: test: yes: unexpected operator
The configure script is a Bourne shell script not a Bash script, which is why it begins with
"#! /bin/sh" and NOT "#! /bin/bash". Therefore its syntax for test must not be of the Bash "==" style.
So the patch to apply to correct the error in configure.ac is
--- configure.ac.orig 2016-09-22 16:18:21.000000000 +0100
+++ configure.ac 2016-09-22 16:18:21.000000000 +0100
@@ -208,7 +208,7 @@
dnl fi
AC_CHECK_LIB([rt],[shm_open])
-if test "$ac_cv_lib_rt_shm_open" == yes ; then
+if test "$ac_cv_lib_rt_shm_open" = yes ; then
AC_SUBST(RT_LIB) RT_LIB="-lrt"
fi
and then run autogen.sh to create the corrected configure script.
fixed in git revision 7578fe2..7338976