Skip to content

Commit

Permalink
res_config_sqlite: Remove deprecated module.
Browse files Browse the repository at this point in the history
ASTERISK-29598

Change-Id: I8ef17023f55bf01f2e309b06f4778a8ca7252c91
  • Loading branch information
jcolp committed Aug 17, 2021
1 parent 20b2741 commit 800fd84
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 1,942 deletions.
1 change: 0 additions & 1 deletion build_tools/menuselect-deps.in
Expand Up @@ -58,7 +58,6 @@ SPEEX=@PBX_SPEEX@
SPEEXDSP=@PBX_SPEEXDSP@
SPEEX_PREPROCESS=@PBX_SPEEX_PREPROCESS@
SQLITE3=@PBX_SQLITE3@
SQLITE=@PBX_SQLITE@
SRTP=@PBX_SRTP@
SS7=@PBX_SS7@
OPENSSL=@PBX_OPENSSL@
Expand Down
11 changes: 0 additions & 11 deletions configs/samples/res_config_sqlite.conf.sample

This file was deleted.

135 changes: 0 additions & 135 deletions configure
Expand Up @@ -780,10 +780,6 @@ PBX_SQLITE3
SQLITE3_DIR
SQLITE3_INCLUDE
SQLITE3_LIB
PBX_SQLITE
SQLITE_DIR
SQLITE_INCLUDE
SQLITE_LIB
PBX_SPEEXDSP
SPEEXDSP_DIR
SPEEXDSP_INCLUDE
Expand Down Expand Up @@ -1412,7 +1408,6 @@ with_spandsp
with_ss7
with_speex
with_speexdsp
with_sqlite
with_sqlite3
with_srtp
with_ssl
Expand Down Expand Up @@ -2181,7 +2176,6 @@ Optional Packages:
--with-speex=PATH use Speex files in PATH
--with-speex=PATH use Speex preprocess routines files in PATH
--with-speexdsp=PATH use SpeexDSP files in PATH
--with-sqlite=PATH use SQLite files in PATH
--with-sqlite3=PATH use SQLite files in PATH
--with-srtp=PATH use Secure RTP files in PATH
--with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
Expand Down Expand Up @@ -12047,38 +12041,6 @@ PBX_SPEEX_PREPROCESS=0



SQLITE_DESCRIP="SQLite"
SQLITE_OPTION="sqlite"
PBX_SQLITE=0

# Check whether --with-sqlite was given.
if test "${with_sqlite+set}" = set; then :
withval=$with_sqlite;
case ${withval} in
n|no)
USE_SQLITE=no
# -1 is a magic value used by menuselect to know that the package
# was disabled, other than 'not found'
PBX_SQLITE=-1
;;
y|ye|yes)
ac_mandatory_list="${ac_mandatory_list} SQLITE"
;;
*)
SQLITE_DIR="${withval}"
ac_mandatory_list="${ac_mandatory_list} SQLITE"
;;
esac

fi








SQLITE3_DESCRIP="SQLite"
SQLITE3_OPTION="sqlite3"
PBX_SQLITE3=0
Expand Down Expand Up @@ -29658,103 +29620,6 @@ fi



if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
pbxlibdir=""
# if --with-SQLITE=DIR has been specified, use it.
if test "x${SQLITE_DIR}" != "x"; then
if test -d ${SQLITE_DIR}/lib; then
pbxlibdir="-L${SQLITE_DIR}/lib"
else
pbxlibdir="-L${SQLITE_DIR}"
fi
fi

ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} "
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_exec in -lsqlite" >&5
$as_echo_n "checking for sqlite_exec in -lsqlite... " >&6; }
if ${ac_cv_lib_sqlite_sqlite_exec+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lsqlite ${pbxlibdir} $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char sqlite_exec ();
int
main ()
{
return sqlite_exec ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_sqlite_sqlite_exec=yes
else
ac_cv_lib_sqlite_sqlite_exec=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
$as_echo "$ac_cv_lib_sqlite_sqlite_exec" >&6; }
if test "x$ac_cv_lib_sqlite_sqlite_exec" = xyes; then :
AST_SQLITE_FOUND=yes
else
AST_SQLITE_FOUND=no
fi

CFLAGS="${ast_ext_lib_check_save_CFLAGS}"


# now check for the header.
if test "${AST_SQLITE_FOUND}" = "yes"; then
SQLITE_LIB="${pbxlibdir} -lsqlite "
# if --with-SQLITE=DIR has been specified, use it.
if test "x${SQLITE_DIR}" != "x"; then
SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
fi
SQLITE_INCLUDE="${SQLITE_INCLUDE} "

# check for the header
ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
if test "x$ac_cv_header_sqlite_h" = xyes; then :
SQLITE_HEADER_FOUND=1
else
SQLITE_HEADER_FOUND=0
fi


CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"

if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
SQLITE_LIB=""
SQLITE_INCLUDE=""
else

PBX_SQLITE=1
cat >>confdefs.h <<_ACEOF
#define HAVE_SQLITE 1
_ACEOF

fi
fi
fi




if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
pbxlibdir=""
# if --with-SQLITE3=DIR has been specified, use it.
Expand Down
3 changes: 0 additions & 3 deletions configure.ac
Expand Up @@ -582,7 +582,6 @@ AST_EXT_LIB_SETUP([SPEEX], [Speex], [speex])
AST_EXT_LIB_SETUP([SPEEX_PREPROCESS], [Speex preprocess routines], [speex])
AST_EXT_LIB_SETUP([SPEEXDSP], [SpeexDSP], [speexdsp])
AST_EXT_LIB_SETUP_DEPENDENT([SPEEX_PREPROCESS], [speex_preprocess_ctl], [], [speex])
AST_EXT_LIB_SETUP([SQLITE], [SQLite], [sqlite])
AST_EXT_LIB_SETUP([SQLITE3], [SQLite], [sqlite3])
AST_EXT_LIB_SETUP([SRTP], [Secure RTP], [srtp])
AST_EXT_LIB_SETUP_OPTIONAL([SRTP_256], [SRTP Library AES-256 (ICM)], [SRTP], [srtp])
Expand Down Expand Up @@ -2584,8 +2583,6 @@ fi

AC_SUBST(PBX_SPEEX_PREPROCESS)

AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h])

AST_EXT_LIB_CHECK([SQLITE3], [sqlite3], [sqlite3_open], [sqlite3.h], [${PTHREAD_LIBS}], [${PTHREAD_CFLAGS}])

if test "${PBX_SQLITE3}" != 1; then
Expand Down
6 changes: 6 additions & 0 deletions doc/UPGRADE-staging/res_config_sqlite_removal.txt
@@ -0,0 +1,6 @@
Subject: res_config_sqlite
Master-Only: True

This module was deprecated in Asterisk 16
and is now being removed in accordance with
the Asterisk Module Deprecation policy.
3 changes: 0 additions & 3 deletions include/asterisk/autoconfig.h.in
Expand Up @@ -905,9 +905,6 @@
/* Define to 1 if you have the speex_preprocess_ctl library. */
#undef HAVE_SPEEX_PREPROCESS

/* Define to 1 if you have the SQLite library. */
#undef HAVE_SQLITE

/* Define to 1 if you have the SQLite library. */
#undef HAVE_SQLITE3

Expand Down

0 comments on commit 800fd84

Please sign in to comment.