@@ -30,16 +30,15 @@ AC_DEFUN([AC_PACKAGE_WANT_GDBM],
if test $found = true; then
libgdbm="${libgdbm} -lgdbm"
- fi
-
- found="no"
- AC_CHECK_LIB(gdbm_compat,dbm_open,found=true,found=false,-lgdbm)
- AC_CHECK_LIB(gdbm_compat,dbm_fetch,,found=false,-lgdbm)
- AC_CHECK_LIB(gdbm_compat,dbm_store,,found=false,-lgdbm)
- AC_CHECK_LIB(gdbm_compat,dbm_close,,found="no",-lgdbm)
-
- if test $found = true ; then
- libgdbm="${libgdbm} -lgdbm_compat -lgdbm"
+ else
+ AC_CHECK_LIB(gdbm_compat,dbm_open,found=true,found=false,-lgdbm)
+ AC_CHECK_LIB(gdbm_compat,dbm_fetch,,found=false,-lgdbm)
+ AC_CHECK_LIB(gdbm_compat,dbm_store,,found=false,-lgdbm)
+ AC_CHECK_LIB(gdbm_compat,dbm_close,,found="false",-lgdbm)
+
+ if test $found = true ; then
+ libgdbm="${libgdbm} -lgdbm_compat -lgdbm"
+ fi
fi
fi