Mercurial > hg > xemacs-beta
comparison configure.ac @ 4401:01970033faa6
Configure fixes from Hans de Graaff, as used in Gentoo.
2008-01-17 Aidan Kehoe <kehoea@parhasard.net>
* configure.ac:
If using a version of the gdbm library that sticks dbm_open in
libgdbm_compat.so, also link to that library.
Correct a thinko with DBM version 4 checks. Both from Hans de
Graaff, in
http://mid.gmane.org/20050812092756.6850.qmail@graaff.xs4all.nl
and
http://mid.gmane.org/pan.2007.06.24.10.10.57@gentoo.org; thank you
Hans!
* configure:
Regenerate.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 17 Jan 2008 11:52:45 +0100 |
parents | 50889296c05c |
children | 2f000e022a8b fd8a9a4d81d9 |
comparison
equal
deleted
inserted
replaced
4399:e5b3c4dbc8a2 | 4401:01970033faa6 |
---|---|
5406 | 5406 |
5407 dnl Check for DBM support in libgdbm. | 5407 dnl Check for DBM support in libgdbm. |
5408 if test "$enable_database_gdbm" != "no"; then | 5408 if test "$enable_database_gdbm" != "no"; then |
5409 AC_CHECK_LIB(gdbm, dbm_open, [ | 5409 AC_CHECK_LIB(gdbm, dbm_open, [ |
5410 enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm], [ | 5410 enable_database_gdbm=yes enable_database_dbm=no libdbm=-lgdbm], [ |
5411 AC_CHECK_LIB(gdbm_compat, dbm_open, [ | |
5412 enable_database_gdbm=yes enable_database_dbm=no libdbm="-lgdbm_compat -lgdbm"], [ | |
5411 if test "$enable_database_gdbm" = "yes"; then | 5413 if test "$enable_database_gdbm" = "yes"; then |
5412 XE_DIE("Required GNU DBM support cannot be provided.") | 5414 XE_DIE("Required GNU DBM support cannot be provided.") |
5413 fi | 5415 fi |
5414 enable_database_gdbm=no]) | 5416 enable_database_gdbm=no], -lgdbm) |
5417 ]) | |
5415 fi | 5418 fi |
5416 | 5419 |
5417 dnl Check for DBM support in libc and libdbm. | 5420 dnl Check for DBM support in libc and libdbm. |
5418 if test "$enable_database_dbm" != "no"; then | 5421 if test "$enable_database_dbm" != "no"; then |
5419 AC_CHECK_FUNC(dbm_open, [enable_database_dbm=yes libdbm=], [ | 5422 AC_CHECK_FUNC(dbm_open, [enable_database_dbm=yes libdbm=], [ |
5490 AC_CHECK_FUNC($dbfunc, enable_database_berkdb=yes need_libdb=no, [ | 5493 AC_CHECK_FUNC($dbfunc, enable_database_berkdb=yes need_libdb=no, [ |
5491 AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes)]) | 5494 AC_CHECK_LIB(db, $dbfunc, enable_database_berkdb=yes need_libdb=yes)]) |
5492 fi | 5495 fi |
5493 | 5496 |
5494 dnl Berk db 4.1 decorates public functions with version information | 5497 dnl Berk db 4.1 decorates public functions with version information |
5495 if test "$enable_database_berkdb" != "yes" -a "$dbver" = "4"; then | 5498 if test "$enable_database_berkdb" = "yes" -a "$dbver" = "4"; then |
5496 rm -f $tempcname | 5499 rm -f $tempcname |
5497 echo "#include <$db_h_file>" > $tempcname | 5500 echo "#include <$db_h_file>" > $tempcname |
5498 echo "configure___ dbfunc=db_create" >> $tempcname | 5501 echo "configure___ dbfunc=db_create" >> $tempcname |
5499 define(TAB, [ ])dnl | 5502 define(TAB, [ ])dnl |
5500 eval `$CPP -Isrc $tempcname \ | 5503 eval `$CPP -Isrc $tempcname \ |