Add automated test on delayed return value handling in ExternalInterface.call().
[gnash.git] / macros / mtasc.m4
blob7ba7d1667cb43d4c45b0ec047fdc23038012a867
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_MTASC
24 # Provides:
25 #       MTASC             - Path to mtasc executable
26 #       MTASC_CLASSPATH   - Classpath for mtasc
29 AC_DEFUN([AC_PATH_MTASC], [
30   MTASC=""
31   MTASC_CLASSPATH=""
33   AC_ARG_WITH(mtasc, AC_HELP_STRING([--with-mtasc=<path>], [Path to the mtasc executable]), [
34     case "${withval}" in
35       yes|no) ;;
36       *) MTASC=${withval} ;;
37     esac
38   ], MTASC="")
40   AC_ARG_WITH(mtasc-classpath, AC_HELP_STRING([--with-mtasc-classpath=<path>], [CLASSPATH for mtasc]), [
41     case "${withval}" in
42       yes|no) ;;
43       *) MTASC_CLASSPATH=${withval} ;;
44     esac
45   ], MTASC_CLASSPATH="")
47   if test x"$MTASC" = "x"; then
48     AC_PATH_PROG(MTASC, mtasc, ,[${pathlist}])
49   fi
51   if test x"$MTASC" != "x" -a x"$MTASC_CLASSPATH" = "x"; then
52     # cross your fingers !
53     if test -d "`dirname ${MTASC}`/std"; then
54     dir="`dirname ${MTASC}`/std"
55     elif test -d "/usr/share/mtasc/std"; then
56     dir="/usr/share/mtasc/std"
57     else
58     dnl FIXME
59     dir="/usr/share/ocaml/mtasc/std"
60     fi
61     MTASC_CLASSPATH=$dir
62   fi
65   AC_SUBST(MTASC)
66   AC_SUBST(MTASC_CLASSPATH)
69 # Local Variables:
70 # c-basic-offset: 2
71 # tab-width: 2
72 # indent-tabs-mode: nil
73 # End: