dnl -*- shell-script -*- # # $Id: lam_check_type.m4,v 1.1 2000/10/17 12:05:17 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_TYPE,[ # Autoconfs AC_CHECK_TYPE is not sufficient # This, too, is not foolproof, but will have to do... AC_MSG_CHECKING(for type $1) cat > conftest.$ac_ext < #if STDC_HEADERS #include #include #endif EOF touch conftest.out >&5 2>&5 rm -f conftest.out >&5 2>&5 eval "$ac_cpp conftest.$ac_ext" 2>&5 > conftest.out egrep "$1[[^a-zA-Z_0-9]]" conftest.out > conftest.out2 2>&5 cat conftest.out2 >&5 out="`cat conftest.out2`" if test "$out" != ""; then AC_DEFINE(LAM_HAVE_$1, 1) AC_MSG_RESULT([yes]) else AC_DEFINE(LAM_HAVE_$1, 0) AC_MSG_RESULT([no]) fi rm -rf conftest* ])dnl