[Assorted-commits] SF.net SVN: assorted: [536] cpp-commons/trunk/tools/acinclude.m4
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-29 08:00:04
|
Revision: 536 http://assorted.svn.sourceforge.net/assorted/?rev=536&view=rev Author: yangzhang Date: 2008-02-29 00:00:08 -0800 (Fri, 29 Feb 2008) Log Message: ----------- forgot to add Added Paths: ----------- cpp-commons/trunk/tools/acinclude.m4 Added: cpp-commons/trunk/tools/acinclude.m4 =================================================================== --- cpp-commons/trunk/tools/acinclude.m4 (rev 0) +++ cpp-commons/trunk/tools/acinclude.m4 2008-02-29 08:00:08 UTC (rev 536) @@ -0,0 +1,24 @@ +AC_DEFUN([AX_BOOSTINC], +[AC_ARG_WITH([boostinc], + AC_HELP_STRING([--with-boostinc], + [specify dir for boost include (default is /usr/include)]), + [ax_boostinc=$withval], [ax_boostinc=/usr/include]) +AC_CACHE_CHECK([whether to use boostinc], + [ax_boostinc], + [ax_boostinc=/usr/include]) +AC_SUBST(BOOST_INC) +unset BOOST_INC + +ax_boostinc=`echo $ax_boostinc | sed -e 's!/$!!'` + +if test -d "$ax_boostinc"; then + if ls $ax_boostinc | grep '^boost$' >/dev/null 2>&1; then + BOOST_INC="-I${ax_boostinc}" + AC_MSG_RESULT([using boost headers from $ax_boostinc]) + else + AC_MSG_ERROR([Could not find boost in $ax_boostinc]) + fi +else + AC_MSG_ERROR([Could not find boost include directory $ax_boostinc]) +fi +]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |