dnl -*- shell-script -*- # # $Id: lam_check_func.m4,v 1.3 2001/03/09 22:34:53 jsquyres Exp $ # # This file is part of the University of Notre Dame implementation of # LAM/MPI. See the LICENSE file in the top-level directory for # license and copyright details. define(LAM_CHECK_FUNC,[ # Determine if function taking void args is available. # First arg is function, 2nd arg is config var to define, 3rd arg is options # to add to link line. LIBS_save="$LIBS" LIBS="$LIBS $3" AC_CHECK_FUNC($1, FOUND_FUNC=1, FOUND_FUNC=0) LIBS="$LIBS_save" if test "$FOUND_FUNC" = "1"; then AC_DEFINE_UNQUOTED($2, 1) else AC_DEFINE_UNQUOTED($2, 0) fi unset LIBS_save FOUND_FUNC])dnl