added MouseWheel event support for Silverlight 3.0
[moon.git] / m4 / firefox-xpi.m4
blob791654059de51be5d076ef216f5937e00d5eaad7
1 AC_DEFUN([MOONLIGHT_CHECK_FIREFOX_XPI],
3         avutil_libdir="$(pkg-config --variable=libdir libavutil)"
4         avcodec_libdir="$(pkg-config --variable=libdir libavcodec)"
5         AC_SUBST([avutil_libdir])
6         AC_SUBST([avcodec_libdir])
8         user_plugin="yes"
9         if test x$with_ff3 = xno -a x$with_ff2 = xno; then
10                 user_plugin="no"
11         fi
13         AM_CONDITIONAL(PLUGIN_INSTALL, [test x$user_plugin = xyes])
14                 
15         case "$target_os" in
16                 *linux*)
17                         TARGET_PLATFORM="Linux"
18                         ;;
19                 *)
20                         AC_MSG_ERROR([Target os $target_os is unknown.
21                                 Please add the appropriate string to configure.ac.
22                                 See http://developer.mozilla.org/en/docs/OS_TARGET])
23                         ;;
24         esac
25         
26         case "$target_cpu" in
27                 i*86)
28                         TARGET_PLATFORM="$TARGET_PLATFORM"_x86-gcc3
29                         INSTALL_ARCH=i586
30                         ;;
31                 x86_64)
32                                 TARGET_PLATFORM="$TARGET_PLATFORM"_x86_64-gcc3
33                         INSTALL_ARCH=x86_64
34                         ;;
35                 powerpc)
36                         TARGET_PLATFORM="$TARGET_PLATFORM"_ppc-gcc3
37                         INSTALL_ARCH=ppc
38                         ;;
39                 sparc64)
40                         TARGET_PLATFORM="$TARGET_PLATFORM"_sparc64-gcc3
41                         INSTALL_ARCH=sparc
42                         ;;
43                 *)
44                         AC_MSG_ERROR([Target cpu $target_cpu is unknown.
45                                 Please add the appropriate string to configure.ac.
46                                 See http://developer.mozilla.org/en/docs/XPCOM_ABI])
47                         ;;
48         esac
49         
50         AC_SUBST(TARGET_PLATFORM)
51         AC_SUBST(INSTALL_ARCH)