Add automated test on delayed return value handling in ExternalInterface.call().
[gnash.git] / macros / swfmill.m4
blob50a2a2a5448f5e9de5569ef7efad8677f523fa40
1 dnl
2 dnl  Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 dnl  2011 Free Software Foundation, Inc.
4 dnl
5 dnl  This program is free software; you can redistribute it and/or modify
6 dnl  it under the terms of the GNU General Public License as published by
7 dnl  the Free Software Foundation; either version 3 of the License, or
8 dnl  (at your option) any later version.
9 dnl
10 dnl  This program is distributed in the hope that it will be useful,
11 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 dnl  GNU General Public License for more details.
14 dnl  You should have received a copy of the GNU General Public License
15 dnl  along with this program; if not, write to the Free Software
16 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 dnl
21 # Use:
22 #       AC_PATH_SWFMILL
24 # Provides:
25 #       SWFMILL   - Path to swfmill executable
28 AC_DEFUN([AC_PATH_SWFMILL], [
29   SWFMILL=""
31   AC_ARG_WITH(swfmill, AC_HELP_STRING([--with-swfmill=<path>], [Path to the swfmill executable]), [
32     case "${withval}" in
33       yes|no) ;;
34       *) SWFMILL=${withval} ;;
35     esac
36   ], SWFMILL="")
38   if test x"$SWFMILL" = "x"; then
39     AC_PATH_PROG(SWFMILL, swfmill, ,[${pathlist}])
40   fi
42   if test x"$SWFMILL" != "x"; then
43     sm=`$SWFMILL -h 2>&1 | head -n 4`
44     version=`echo "$sm" | grep 'swfmill [[0-9]]\{1,2\}\(\.[[0-9]]\{1,2\}\)\{2,3\}' | cut -d' ' -f2`
45     major=`echo $version | cut -d'.' -f1`
46     minor=`echo $version | cut -d'.' -f2`
47     micro=`echo $version | cut -d'.' -f3`
48     beta=`echo $version | cut -d'.' -f4`
49     if test -z $beta; then
50       beta=0
51     fi
52     SWFMILL_VERSION=`printf %2.2d%2.2d%2.2d%2.2d $major $minor $micro $beta`
53   fi
55   AC_SUBST(SWFMILL_VERSION)
56   AC_SUBST(SWFMILL)
59 # Local Variables:
60 # c-basic-offset: 2
61 # tab-width: 2
62 # indent-tabs-mode: nil
63 # End: