Skip to content

Commit

Permalink
Cope with a <db.h> that isn't related to DB
Browse files Browse the repository at this point in the history
private-msgid: 199704241728.UAA09951@alpha.hut.fi
  • Loading branch information
Jarkko Hietaniemi authored and Chip Salzenberg committed Apr 24, 1997
1 parent 9cb0349 commit 6a1b87e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Configure
Expand Up @@ -8256,13 +8256,17 @@ $define)
#include <db.h>
main()
{
#ifdef DB_VERSION_MAJOR
#ifdef DB_VERSION_MAJOR /* DB version >= 2: not yet. */
printf("You have Berkeley DB Version %d.%d\n",
DB_VERSION_MAJOR, DB_VERSION_MINOR);
printf("Perl currently only supports up to version 1.86.\n");
exit(1);
exit(2);
#else
exit(0);
#if defined(_DB_H_) && defined(BTREEMAGIC) && defined(HASHMAGIC)
exit(0); /* DB version < 2: the coast is clear. */
#else
exit(1); /* <db.h> not Berkeley DB? */
#endif
#endif
}
EOCP
Expand Down

0 comments on commit 6a1b87e

Please sign in to comment.