Changing the time slider on a child canvas wasn't updating the grandchild canvas...
[synfig.git] / synfig-studio / trunk / config / synfig.m4
1 # SYNFIG M4 Macro
2 # For GNU Autotools
3 # $Id$
4 #
5 # By Robert B. Quattlebaum Jr. <darco@users.sf.net>
6 #
7
8 AC_DEFUN([SYNFIG_DEPS],
9 [
10         USING_ETL(,$2)
11         AM_PATH_XML2(,,$2)
12         AC_CHECK_FUNCS([floor pow sqrt],,$2)
13         $1
14 ])
15
16 AC_DEFUN([USING_SYNFIG],
17 [
18         AC_ARG_WITH(synfig-includes,
19         [  --with-synfig-includes    Specify location of synfig headers],[
20         CXXFLAGS="$CXXFLAGS -I$withval"
21         ])
22
23         AC_PATH_PROG(SYNFIG_CONFIG,synfig-config,no)
24
25         if test "$SYNFIG_CONFIG" = "no"; then
26                 no_SYNFIG_config="yes"
27                 $2
28         else
29                 AC_MSG_CHECKING([if $SYNFIG_CONFIG works])
30                 if $SYNFIG_CONFIG --libs >/dev/null 2>&1; then
31                         SYNFIG_VERSION="`$SYNFIG_CONFIG --version`"
32                         AC_MSG_RESULT([yes, $SYNFIG_VERSION])
33                         SYNFIG_CXXFLAGS="`$SYNFIG_CONFIG --cxxflags`"
34                         SYNFIG_CFLAGS="`$SYNFIG_CONFIG --cflags`"
35                         SYNFIG_LIBS="`$SYNFIG_CONFIG --libs`"
36                         CXXFLAGS="$CXXFLAGS $SYNFIG_CXXFLAGS"
37                         AC_SUBST(SYNFIG_CXXFLAGS)
38                         AC_SUBST(SYNFIG_LIBS)
39                         AC_SUBST(SYNFIG_CFLAGS)
40                         $1
41                 else
42                         AC_MSG_RESULT(no)
43                         no_SYNFIG_config="yes"
44                         $2
45                 fi
46         fi
47
48         SYNFIG_DEPS($1,$2)
49 ])
50
51