• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl SPDX-License-Identifier: GPL-2.0-or-later
2dnl Copyright (c) Linux Test Project, 2014
3
4AC_DEFUN([LTP_CHECK_CLONE_SUPPORTS_7_ARGS],[
5AH_TEMPLATE(CLONE_SUPPORTS_7_ARGS,
6[Define to 1 if clone() supports 7 arguments.])
7AC_MSG_CHECKING([if clone() supports 7 args])
8AC_TRY_LINK([#define _GNU_SOURCE
9		#include <sched.h>
10		#include <stdlib.h>],
11		[
12		#ifndef __ia64__
13		clone(NULL, NULL, 0, NULL, NULL, NULL, NULL);
14		#endif
15		],
16		AC_DEFINE(CLONE_SUPPORTS_7_ARGS) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
17])
18