2003-11-10 12:12:37 +03:00
|
|
|
AC_INIT(README)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AM_INIT_AUTOMAKE(diacanvas-sharp, 0.3.0)
|
|
|
|
AM_MAINTAINER_MODE
|
2003-11-15 18:37:57 +03:00
|
|
|
AM_PROG_LIBTOOL
|
2003-11-10 12:12:37 +03:00
|
|
|
|
|
|
|
dnl Defines CC to avoid warnings
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2003-11-15 18:37:57 +03:00
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
|
|
AC_MSG_ERROR(['pkg-config' is not in your PATH.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PATH_PROG(MONO, mono, no)
|
|
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
|
|
AC_MSG_ERROR(['mono' is not in your PATH.])
|
|
|
|
fi
|
|
|
|
AC_SUBST(MONO)
|
|
|
|
|
2003-11-15 20:00:35 +03:00
|
|
|
PKG_CHECK_MODULES(DIACANVAS2, diacanvas2 >= 0.10.0)
|
2003-11-15 18:37:57 +03:00
|
|
|
AC_SUBST(DIACANVAS2_CFLAGS)
|
|
|
|
AC_SUBST(DIACANVAS2_LIBS)
|
|
|
|
|
|
|
|
AC_PATH_PROG(MCS, mcs, no)
|
|
|
|
if test "x$MCS" = "xno"; then
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_CHECKING(for mcs.exe)
|
|
|
|
MCS=`which mcs.exe 2> /dev/null`
|
2003-11-15 18:37:57 +03:00
|
|
|
if test "x$MCS" = "xno" ; then
|
|
|
|
AC_MSG_ERROR(['mcs'/'mcs.exe' not found.])
|
|
|
|
fi
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_RESULT($MCS)
|
|
|
|
MCS="$MONO $MCS"
|
2003-11-15 18:37:57 +03:00
|
|
|
fi
|
|
|
|
AC_SUBST(MCS)
|
|
|
|
|
|
|
|
AC_PATH_PROG(GAPI_FIXUP, gapi-fixup, no)
|
|
|
|
if test "x$GAPI_FIXUP" = "xno"; then
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_CHECKING(for gapi-fixup.exe)
|
|
|
|
GAPI_FIXUP=`which gapi-fixup.exe 2> /dev/null`
|
2003-11-15 18:37:57 +03:00
|
|
|
if test "x$GAPI_FIXUP" = "xno" ; then
|
|
|
|
AC_MSG_ERROR(['gapi_fixup'/'gapi-fixup.exe' not found.])
|
|
|
|
fi
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_RESULT($GAPI_FIXUP)
|
|
|
|
GAPI_FIXUP="$MONO $GAPI_FIXUP"
|
2003-11-15 18:37:57 +03:00
|
|
|
fi
|
|
|
|
AC_SUBST(GAPI_FIXUP)
|
|
|
|
|
|
|
|
AC_PATH_PROG(GAPI_CODEGEN, gapi_codegen, no)
|
|
|
|
if test "x$GAPI_CODEGEN" = "xno"; then
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_CHECKING(for gapi-codegen.exe)
|
|
|
|
GAPI_CODEGEN=`which gapi_codegen.exe 2> /dev/null`
|
2003-11-15 18:37:57 +03:00
|
|
|
if test "x$GAPI_CODEGEN" = "xno" ; then
|
|
|
|
AC_MSG_ERROR(['gapi_codegen'/'gapi_codegen.exe' not found.])
|
|
|
|
fi
|
2003-11-15 20:25:42 +03:00
|
|
|
AC_MSG_RESULT([$GAPI_CODEGEN])
|
|
|
|
GAPI_CODEGEN="$MONO $GAPI_CODEGEN"
|
2003-11-15 18:37:57 +03:00
|
|
|
fi
|
|
|
|
AC_SUBST(GAPI_CODEGEN)
|
|
|
|
|
|
|
|
AC_PATH_PROG(MONODOC, monodoc, no)
|
|
|
|
if test "x$MONODOC" = "xno"; then
|
|
|
|
if test "x$MONODOC" = "xno" ; then
|
|
|
|
AC_MSG_ERROR(['monodoc' not found.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(MONODOC)
|
|
|
|
MONODOC_SOURCESDIR=`$MONODOC --get-sourcesdir`
|
|
|
|
AC_SUBST(MONODOC_SOURCESDIR)
|
|
|
|
|
2003-11-10 12:12:37 +03:00
|
|
|
AC_OUTPUT([
|
|
|
|
makefile
|
|
|
|
dia/makefile
|
|
|
|
doc/makefile
|
|
|
|
glue/makefile
|
|
|
|
sample/makefile
|
2003-11-15 18:37:57 +03:00
|
|
|
sample/pixmaps/makefile
|
|
|
|
sample/glade/makefile
|
2003-11-10 12:12:37 +03:00
|
|
|
sources/makefile
|
|
|
|
])
|