mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:23:44 +03:00
build: remove checks for strtoll()
Follow-up to b4538ec522
It is not being used anymore.
Closes #16350
This commit is contained in:
parent
37128035e5
commit
e5326bfb44
6 changed files with 0 additions and 100 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue