mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
Don't refuse to ./run -b sql just because none of bdb, hdb & ldbm is configured
This commit is contained in:
parent
bc729ea9ba
commit
fe104b5e46
1 changed files with 13 additions and 11 deletions
24
tests/run.in
24
tests/run.in
|
|
@ -63,17 +63,7 @@ if test ! -x ../servers/slapd/slapd ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if test $AC_bdb != no ; then
|
||||
BACKEND=bdb
|
||||
elif test $AC_ldbm != no ; then
|
||||
BACKEND=ldbm
|
||||
elif test $AC_hdb != no ; then
|
||||
BACKEND=hdb
|
||||
else
|
||||
echo "Not configured with a suitable database backend"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BACKEND=
|
||||
CLEAN=no
|
||||
WAIT=0
|
||||
KILLSERVERS=yes
|
||||
|
|
@ -119,6 +109,18 @@ while test $# -gt 0 ; do
|
|||
esac
|
||||
done
|
||||
|
||||
if test -z "$BACKEND" ; then
|
||||
for b in bdb ldbm hdb ; do
|
||||
if eval "test \"\$AC_$b\" != no" ; then
|
||||
BACKEND=$b
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$BACKEND" ; then
|
||||
echo "No suitable default database backend configured" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
BACKENDTYPE=`eval 'echo $AC_'$BACKEND`
|
||||
if test "x$BACKENDTYPE" = "x" ; then
|
||||
BACKENDTYPE="unknown"
|
||||
|
|
|
|||
Loading…
Reference in a new issue