Skip to content

Commit

Permalink
These compilers and headers seem to be only used by the judgehost
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur committed Nov 20, 2023
1 parent c86cc69 commit 1369cef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,12 @@ fi
AC_MSG_RESULT($BASEURL)

# Checks for programs.
if test "x$ENABLE_JUDGEHOST" = xyes; then
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CXXCPP
AC_PROG_CPP
fi
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
Expand All @@ -318,6 +320,7 @@ AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, 200809L, [Include POSIX.1-2008 base specific
AC_DEFINE_UNQUOTED(_XOPEN_SOURCE, 500, [Include SUSv2 (UNIX 98) extensions])

# Checks for header files.
if test "x$ENABLE_JUDGEHOST" = xyes; then
AC_HEADER_STDBOOL
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h sys/time.h syslog.h termios.h unistd.h magic.h libcgroup.h])

Expand All @@ -337,6 +340,7 @@ AC_FUNC_STRTOD
AC_REPLACE_FUNCS([atexit dup2 getcwd gettimeofday memset mkdir realpath setenv \
socket strchr strdup strerror strncasecmp strrchr strstr strtol],
[],[AC_MSG_ERROR([required C function is missing.])])
fi

AC_CHECK_PROG(PHP_CHECK,php,yes)
AS_IF([test x"$PHP_CHECK" != x"yes"],
Expand Down

0 comments on commit 1369cef

Please sign in to comment.