verification de la definition de ALLIANCE_TOP

et verifie aussi que ALLIANCE_TOP est bien un repertoire
This commit is contained in:
Francois Donnet 2002-03-22 11:05:07 +00:00
parent cddf121ce0
commit 5c9917948c
1 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,16 @@
AC_DEFUN(AM_ALLIANCE,
[AC_REQUIRE([AM_INIT_AUTOMAKE])
echo 'ALLIANCE configuration ....'
if [ test "${ALLIANCE_TOP}" = "" ] ; then
echo '${ALLIANCE_TOP} not defined'
exit 1
fi
if [ test -d ${ALLIANCE_TOP} ] ; then
echo '${ALLIANCE_TOP} =' ${ALLIANCE_TOP}
else
echo 'Bad directory for ${ALLIANCE_TOP} =' ${ALLIANCE_TOP}
exit 1
fi
INCLUDES=-I${ALLIANCE_TOP}/include
LIBS=-L${ALLIANCE_TOP}/lib
AC_SUBST(INCLUDES)