diff options
| author | Paul Eggert | 2025-01-19 16:23:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-01-19 16:23:27 -0800 |
| commit | dcccb9256262f8e992b75602dd4e861371b97361 (patch) | |
| tree | 1e0fdc5a681fbd3595070f392b69a71fc27d7cc7 | |
| parent | a94988c01d45e4e494789d8715eed7ff7b383341 (diff) | |
| download | emacs-dcccb9256262f8e992b75602dd4e861371b97361.tar.gz emacs-dcccb9256262f8e992b75602dd4e861371b97361.zip | |
Port better to AIX 7.3 with -lsqlite3 but not sqlite3.h
* configure.ac (HAVE_SQLITE): Yes only if sqlite3.h can be
included (Bug#75667).
| -rw-r--r-- | configure.ac | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 1d8c281ee21..ba39074c83a 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3716,9 +3716,18 @@ if test "${with_sqlite3}" != "no"; then | |||
| 3716 | CFLAGS="$SAVE_CFLAGS" | 3716 | CFLAGS="$SAVE_CFLAGS" |
| 3717 | fi | 3717 | fi |
| 3718 | else | 3718 | else |
| 3719 | AC_CHECK_LIB([sqlite3], [sqlite3_open_v2], | 3719 | AC_CACHE_CHECK([for sqlite3], |
| 3720 | [HAVE_SQLITE3=yes], | 3720 | [emacs_cv_have_sqlite3], |
| 3721 | [HAVE_SQLITE3=no]) | 3721 | [OLIBS=$LIBS |
| 3722 | LIBS="-lsqlite3 $LIBS" | ||
| 3723 | AC_LINK_IFELSE( | ||
| 3724 | [AC_LANG_PROGRAM([[#include <sqlite3.h> | ||
| 3725 | sqlite3 *handle;]], | ||
| 3726 | [[return sqlite3_open_v2 ("", &handle, 0, "");]])], | ||
| 3727 | [emacs_cv_have_sqlite3=yes], | ||
| 3728 | [emacs_cv_have_sqlite3=no]) | ||
| 3729 | LIBS=$OLIBS]) | ||
| 3730 | HAVE_SQLITE3=$emacs_cv_have_sqlite3 | ||
| 3722 | if test "$HAVE_SQLITE3" = "yes"; then | 3731 | if test "$HAVE_SQLITE3" = "yes"; then |
| 3723 | SQLITE3_LIBS=-lsqlite3 | 3732 | SQLITE3_LIBS=-lsqlite3 |
| 3724 | LIBS="$SQLITE3_LIBS $LIBS" | 3733 | LIBS="$SQLITE3_LIBS $LIBS" |