AC_INIT(README) AC_CHECK_PROG(GNU_MAKE,make,yes) AC_PROG_INSTALL AC_PATH_PROG(EBOARDCONFIG,eboard-config,no) if test "$EBOARDCONFIG" != "no"; then AC_MSG_CHECKING(for eboard >= 0.3.1) echo "0.3.1" > vfile1 $EBOARDCONFIG --version >> vfile1 sort vfile2 echo "0.3.2" > vfile3 $EBOARDCONFIG --version >> vfile3 sort vfile4 if ! diff -q vfile1 vfile2 >/dev/null ; then rm -f vfile1 vfile2 vfile3 vfile4 AC_MSG_RESULT(no) AC_MSG_ERROR(you need eboard 0.3.1 or newer) else rm -f vfile1 vfile2 AC_MSG_RESULT(yes) fi else AC_MSG_ERROR(you don't seem to have eboard >= 0.3.1 installed.) fi if ! diff -q vfile3 vfile4 >/dev/null ; then MY_TARGET=compatible-install else MY_TARGET=newer-install fi rm -f vfile3 vfile4 AC_SUBST(MY_TARGET) DATADIR=`$EBOARDCONFIG --datadir` AC_SUBST(DATADIR) AC_OUTPUT(Makefile) echo "Now become root and type 'make install' to install eboard-extras"