build: remove checks for strtoll()

Follow-up to b4538ec522

It is not being used anymore.

Closes #16350
This commit is contained in:
Daniel Stenberg 2025-02-16 14:52:43 +01:00
parent 37128035e5
commit e5326bfb44
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
6 changed files with 0 additions and 100 deletions

View File

@ -1728,7 +1728,6 @@ check_symbol_exists("gethostbyname_r" "netdb.h" HAVE_GETHOSTBYNAME_R)
check_symbol_exists("gethostname" "${CURL_INCLUDES}" HAVE_GETHOSTNAME) # winsock2.h unistd.h proto/bsdsocket.h
check_symbol_exists("signal" "signal.h" HAVE_SIGNAL)
check_symbol_exists("strtoll" "stdlib.h" HAVE_STRTOLL)
check_symbol_exists("strerror_r" "stdlib.h;string.h" HAVE_STRERROR_R)
check_symbol_exists("sigaction" "signal.h" HAVE_SIGACTION)
check_symbol_exists("siginterrupt" "signal.h" HAVE_SIGINTERRUPT)

View File

@ -155,9 +155,6 @@
/* Define if you have the `strtok_r' function. */
#define HAVE_STRTOK_R
/* Define if you have the `strtoll' function. */
#undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H

View File

@ -141,9 +141,6 @@
/* Define if you have the `strtok_r' function. */
#undef HAVE_STRTOK_R
/* Define if you have the `strtoll' function. */
#undef HAVE_STRTOLL
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H

View File

@ -165,11 +165,6 @@
/* Define if you have the strdup function. */
#define HAVE_STRDUP 1
/* Define if you have the strtoll function. */
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
#define HAVE_STRTOLL 1
#endif
/* Define if you have the utime function. */
#define HAVE_UTIME 1

View File

@ -550,9 +550,6 @@
/* Define to 1 if you have the strtok_r function. */
#cmakedefine HAVE_STRTOK_R 1
/* Define to 1 if you have the strtoll function. */
#cmakedefine HAVE_STRTOLL 1
/* Define to 1 if you have the memrchr function. */
#cmakedefine HAVE_MEMRCHR 1

View File

@ -4314,91 +4314,6 @@ AC_DEFUN([CURL_CHECK_FUNC_STRTOK_R], [
fi
])
dnl CURL_CHECK_FUNC_STRTOLL
dnl -------------------------------------------------
dnl Verify if strtoll is available, prototyped, and
dnl can be compiled. If all of these are true, and
dnl usage has not been previously disallowed with
dnl shell variable curl_disallow_strtoll, then
dnl HAVE_STRTOLL will be defined.
AC_DEFUN([CURL_CHECK_FUNC_STRTOLL], [
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
#
tst_links_strtoll="unknown"
tst_proto_strtoll="unknown"
tst_compi_strtoll="unknown"
tst_allow_strtoll="unknown"
#
AC_MSG_CHECKING([if strtoll can be linked])
AC_LINK_IFELSE([
AC_LANG_FUNC_LINK_TRY([strtoll])
],[
AC_MSG_RESULT([yes])
tst_links_strtoll="yes"
],[
AC_MSG_RESULT([no])
tst_links_strtoll="no"
])
#
if test "$tst_links_strtoll" = "yes"; then
AC_MSG_CHECKING([if strtoll is prototyped])
AC_EGREP_CPP([strtoll],[
$curl_includes_stdlib
],[
AC_MSG_RESULT([yes])
tst_proto_strtoll="yes"
],[
AC_MSG_RESULT([no])
tst_proto_strtoll="no"
])
fi
#
if test "$tst_proto_strtoll" = "yes"; then
AC_MSG_CHECKING([if strtoll is compilable])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
$curl_includes_stdlib
]],[[
if(0 != strtoll("", 0, 0))
return 1;
]])
],[
AC_MSG_RESULT([yes])
tst_compi_strtoll="yes"
],[
AC_MSG_RESULT([no])
tst_compi_strtoll="no"
])
fi
#
if test "$tst_compi_strtoll" = "yes"; then
AC_MSG_CHECKING([if strtoll usage allowed])
if test "x$curl_disallow_strtoll" != "xyes"; then
AC_MSG_RESULT([yes])
tst_allow_strtoll="yes"
else
AC_MSG_RESULT([no])
tst_allow_strtoll="no"
fi
fi
#
AC_MSG_CHECKING([if strtoll might be used])
if test "$tst_links_strtoll" = "yes" &&
test "$tst_proto_strtoll" = "yes" &&
test "$tst_compi_strtoll" = "yes" &&
test "$tst_allow_strtoll" = "yes"; then
AC_MSG_RESULT([yes])
AC_DEFINE_UNQUOTED(HAVE_STRTOLL, 1,
[Define to 1 if you have the strtoll function.])
curl_cv_func_strtoll="yes"
else
AC_MSG_RESULT([no])
curl_cv_func_strtoll="no"
fi
])
dnl CURL_RUN_IFELSE
dnl -------------------------------------------------
dnl Wrapper macro to use instead of AC_RUN_IFELSE. It