| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | # StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2011                                     Inria# Copyright (C) 2012,2017                                CNRS# Copyright (C) 2011,2014,2020                           Université de Bordeaux## StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.## STARPU_SEARCH_LIBS(NAME, FUNCTION, SEARCH-LIBS,#                    [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],#                    [OTHER-LIBRARIES])## Like AC_SEARCH_LIBS, but puts -l flags into $1_LDFLAGS instead of LIBS, and# AC_SUBSTs itAC_DEFUN([STARPU_SEARCH_LIBS], [dnl	_LIBS_SAV="$LIBS"	LIBS=""	AC_SEARCH_LIBS([$2], [$3], [$4], [$5], [$6])	STARPU_$1_LDFLAGS="$STARPU_$1_LDFLAGS $LIBS"	LIBS=$_LIBS_SAV	AC_SUBST(STARPU_$1_LDFLAGS)])dnl# STARPU_CHECK_LIB(NAME, LIBRARY, FUNCTION,#                  [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],#                  [OTHER-LIBRARIES])## Like AC_CHECK_LIB, but puts -l flags into $1_LDFLAGS instead of LIBS, and# AC_SUBSTs itAC_DEFUN([STARPU_CHECK_LIB], [dnl	_LIBS_SAV="$LIBS"	LIBS=""	AC_CHECK_LIB([$2], [$3], [$4], [$5], [$6])	STARPU_$1_LDFLAGS="$STARPU_$1_LDFLAGS $LIBS"	LIBS=$_LIBS_SAV	AC_SUBST(STARPU_$1_LDFLAGS)])dnl# STARPU_HAVE_LIBRARY(NAME, LIBRARY,#                     [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],#                     [OTHER-LIBRARIES])# Like AC_HAVE_LIBRARY, but puts -l flags into $1_LDFLAGS instead of LIBS, and# AC_SUBSTs itAC_DEFUN([STARPU_HAVE_LIBRARY], [dnlSTARPU_CHECK_LIB([$1], [$2], main, [$3], [$4], [$5])])dnl# STARPU_INIT_ZERO(INCLUDES, TYPE, INIT_MACRO)# Checks whether when TYPE is initialized with INIT_MACRO, the content is just# plain zeroesAC_DEFUN([STARPU_INIT_ZERO], [dnlAC_MSG_CHECKING(whether $3 just zeroes)AC_RUN_IFELSE([AC_LANG_PROGRAM(		$1,		[[$2 var = $3;		 char *p;		 for (p = (char*) &var; p < (char*) (&var+1); p++)		   if (*p != 0)		     return 1;		 return 0;		]],		)],		[AC_DEFINE([STARPU_$3_ZERO], [1], [Define to 1 if `$3' is just zeroes])		 AC_MSG_RESULT(yes)],		[AC_MSG_RESULT(no)])])dnl
 |