mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
Sorting of function names. Proper definition of HAVE_function if function is found deeper.
This commit is contained in:
parent
42cabc14d4
commit
357389a905
114
configure.ac
114
configure.ac
@ -2082,60 +2082,66 @@ case $host in
|
|||||||
AC_MSG_NOTICE([skip check for pipe on msdosdjgpp])
|
AC_MSG_NOTICE([skip check for pipe on msdosdjgpp])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_CHECK_FUNCS( strtoll \
|
|
||||||
socket \
|
AC_CHECK_FUNCS([basename \
|
||||||
strdup \
|
closesocket \
|
||||||
strstr \
|
fork \
|
||||||
strcasestr \
|
ftruncate \
|
||||||
strtok_r \
|
geteuid \
|
||||||
uname \
|
gethostbyaddr \
|
||||||
strcasecmp \
|
getpass_r \
|
||||||
stricmp \
|
getppid \
|
||||||
strcmpi \
|
getprotobyname \
|
||||||
gethostbyaddr \
|
getpwuid \
|
||||||
gettimeofday \
|
getrlimit \
|
||||||
inet_addr \
|
gettimeofday \
|
||||||
inet_ntoa \
|
inet_addr \
|
||||||
inet_pton \
|
inet_ntoa \
|
||||||
perror \
|
inet_pton \
|
||||||
closesocket \
|
perror \
|
||||||
siginterrupt \
|
pipe \
|
||||||
sigaction \
|
poll \
|
||||||
signal \
|
setlocale \
|
||||||
getpass_r \
|
setmode \
|
||||||
strlcat \
|
setrlimit \
|
||||||
getpwuid \
|
sigaction \
|
||||||
geteuid \
|
siginterrupt \
|
||||||
getppid \
|
signal \
|
||||||
utime \
|
sigsetjmp \
|
||||||
sigsetjmp \
|
socket \
|
||||||
basename \
|
strcasecmp \
|
||||||
setlocale \
|
strcasestr \
|
||||||
ftruncate \
|
strcmpi \
|
||||||
pipe \
|
strdup \
|
||||||
poll \
|
stricmp \
|
||||||
getprotobyname \
|
strlcat \
|
||||||
getrlimit \
|
strstr \
|
||||||
setrlimit \
|
strtok_r \
|
||||||
fork \
|
strtoll \
|
||||||
setmode,
|
uname \
|
||||||
dnl if found
|
utime
|
||||||
[],
|
],[
|
||||||
dnl if not found, $ac_func is the name we check for
|
],[
|
||||||
func="$ac_func"
|
func="$ac_func"
|
||||||
eval skipcheck=\$skipcheck_$func
|
eval skipcheck=\$skipcheck_$func
|
||||||
if test "x$skipcheck" != "xyes"; then
|
if test "x$skipcheck" != "xyes"; then
|
||||||
AC_MSG_CHECKING([deeper for $func])
|
AC_MSG_CHECKING([deeper for $func])
|
||||||
AC_TRY_LINK( [],
|
AC_LINK_IFELSE([
|
||||||
[ $func ();],
|
AC_LANG_PROGRAM([[
|
||||||
AC_MSG_RESULT(yes!)
|
]],[[
|
||||||
eval "ac_cv_func_$func=yes"
|
$func ();
|
||||||
def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
|
]])
|
||||||
AC_DEFINE_UNQUOTED($def, 1, [If you have $func]),
|
],[
|
||||||
AC_MSG_RESULT(but still no)
|
AC_MSG_RESULT([yes])
|
||||||
)
|
eval "ac_cv_func_$func=yes"
|
||||||
fi
|
AC_DEFINE_UNQUOTED([AS_TR_CPP([HAVE_$func])], [1],
|
||||||
)
|
[Define to 1 if you have the $func function.])
|
||||||
|
],[
|
||||||
|
AC_MSG_RESULT([but still no])
|
||||||
|
])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl sigsetjmp() might be a macro and no function so if it isn't found already
|
dnl sigsetjmp() might be a macro and no function so if it isn't found already
|
||||||
dnl we make an extra check here!
|
dnl we make an extra check here!
|
||||||
|
Loading…
Reference in New Issue
Block a user