--- camldbm-1.0/configure.0001 2011-11-22 23:56:49.000000000 +0800 +++ camldbm-1.0/configure 2012-12-11 12:38:31.823489671 +0800 @@ -35,7 +35,7 @@ ${CC:-cc} -I$1 -o hasgot.exe hasgot.c $3 $4 res=$? rm -f hasgot.c hasgot.exe - return $? + return $res } dbm_include="not found" @@ -45,15 +45,7 @@ for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do if test -f $dir/ndbm.h; then dbm_include=$dir - if hasgot $dir ndbm.h; then - dbm_link="" - elif hasgot $dir ndbm.h -lndbm; then - dbm_link="-lndbm" - elif hasgot $dir ndbm.h -ldb1; then - dbm_link="-ldb1" - elif hasgot $dir ndbm.h -lgdbm; then - dbm_link="-lgdbm" - elif hasgot $dir ndbm.h -lgdbm_compat -lgdbm; then + if hasgot $dir ndbm.h -lgdbm_compat -lgdbm; then dbm_link="-lgdbm_compat -lgdbm" fi break