-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d00beb
commit 3a8fe1d
Showing
3 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Determine if Read Only Berkeley Database is needed. | ||
|
||
BUNDLE_LIBDB="$1" | ||
|
||
rc() | ||
{ | ||
echo $1 | ||
exit 0 | ||
} | ||
|
||
# Not needed if libdb is bundled (Typically on RHEL) | ||
[ x$BUNDLE_LIBDB = x1 ] && rc 0 | ||
# Needed if libdb is not available | ||
[ ! -f /usr/include/db.h ] && rc 1 | ||
# Needed on Fedora and CentOs | ||
[ -f /etc/fedora-release ] && rc 1 | ||
[ -f /etc/centos-release ] && rc 1 | ||
# Still support full bdb | ||
rc 0 | ||
|
||
|