Menu

#15 configure uses -e

open
nobody
None
5
2004-12-04
2004-12-04
No

bmf's configure uses test -e, which is not supported on
all systems. The following patch corrects that issue:

--- configure.orig1 Sat Dec 4 11:55:07 2004
+++ configure Sat Dec 4 11:55:25 2004
@@ -311,11 +311,11 @@

echo -n "Checking for BerkeleyDB... "
if [ "$with_libdb" = "test" ]; then
- if [ -e /usr/local/BerkeleyDB.4.1/include/db.h ];
then
+ if [ -r /usr/local/BerkeleyDB.4.1/include/db.h ];
then
with_libdb=/usr/local/BerkeleyDB.4.1
LIBDB_LIB="-ldb"
- elif [ -e /usr/include/db.h -o \ - -e /usr/local/include/db.h ]; then
+ elif [ -r /usr/include/db.h -o \ + -r /usr/local/include/db.h ]; then
with_libdb=yes
else
with_libdb=no

Discussion


Log in to post a comment.