1dnl A function to set the command for computing the MD5 checksum of text files. 2dnl Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it> 3dnl Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com) 4dnl 5dnl This file is part of the Parma Polyhedra Library (PPL). 6dnl 7dnl The PPL is free software; you can redistribute it and/or modify it 8dnl under the terms of the GNU General Public License as published by the 9dnl Free Software Foundation; either version 3 of the License, or (at your 10dnl option) any later version. 11dnl 12dnl The PPL is distributed in the hope that it will be useful, but WITHOUT 13dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15dnl for more details. 16dnl 17dnl You should have received a copy of the GNU General Public License 18dnl along with this program; if not, write to the Free Software Foundation, 19dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 20dnl 21dnl For the most up-to-date information see the Parma Polyhedra Library 22dnl site: http://bugseng.com/products/ppl/ . 23 24AC_DEFUN([AC_TEXT_MD5SUM], 25[ 26AC_MSG_CHECKING([for the text md5sum command]) 27if echo a | (md5sum -t) >/dev/null 2>&1 28then 29 ac_cv_prog_text_md5sum='md5sum -t' 30else 31 ac_cv_prog_text_md5sum='md5sum' 32fi 33AC_MSG_RESULT($ac_cv_prog_text_md5sum) 34TEXT_MD5SUM=$ac_cv_prog_text_md5sum 35AC_SUBST([TEXT_MD5SUM]) 36]) 37 38 39