AC_DEFUN([CHECK_NEED_REENTRANT_STRTOK_R], [
#
AC_MSG_NOTICE([DEBUG:])
- AC_MSG_NOTICE([DEBUG:])
AC_LINK_IFELSE([
AC_LANG_FUNC_LINK_TRY([strtok_r])
],[
],[
AC_MSG_NOTICE([DEBUG: getprotobyname_r proto wout finds... 4 args])
tmp_getprotobyname_r="done"
+ ],[
+ case $host in
+ *-*-osf* | *-*-aix*)
+ AC_MSG_NOTICE([DEBUG: getprotobyname_r proto wout fails... 4 args])
+ echo "-------------------" >&6
+ sed 's/^/| /' conftest.err >&6
+ echo "-------------------" >&6
+ ;;
+ esac
])
fi
if test "$tmp_getprotobyname_r" = "proto_wout_def"; then
],[
AC_MSG_NOTICE([DEBUG: getprotobyname_r proto wout finds... 5 args])
tmp_getprotobyname_r="done"
+ ],[
+ case $host in
+ *-*-osf* | *-*-aix*)
+ AC_MSG_NOTICE([DEBUG: getprotobyname_r proto wout fails... 5 args])
+ echo "-------------------" >&6
+ sed 's/^/| /' conftest.err >&6
+ echo "-------------------" >&6
+ ;;
+ esac
])
fi
#
],[
AC_MSG_NOTICE([DEBUG: getprotobyname_r proto with finds... 4 args])
tmp_getprotobyname_r="needs_reentrant"
+ ],[
+ case $host in
+ *-*-osf* | *-*-aix*)
+ AC_MSG_NOTICE([DEBUG: getprotobyname_r proto with fails... 4 args])
+ echo "-------------------" >&6
+ sed 's/^/| /' conftest.err >&6
+ echo "-------------------" >&6
+ ;;
+ esac
])
fi
if test "$tmp_getprotobyname_r" = "proto_with_def"; then
],[
AC_MSG_NOTICE([DEBUG: getprotobyname_r proto with finds... 5 args])
tmp_getprotobyname_r="needs_reentrant"
+ ],[
+ case $host in
+ *-*-osf* | *-*-aix*)
+ AC_MSG_NOTICE([DEBUG: getprotobyname_r proto with fails... 5 args])
+ echo "-------------------" >&6
+ sed 's/^/| /' conftest.err >&6
+ echo "-------------------" >&6
+ ;;
+ esac
])
fi
#