Move Event Handlers to View class
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / configure.ac
1 # Copyright (c) 2016 Samsung Electronics Co., Ltd.
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6
7 # http://www.apache.org/licenses/LICENSE-2.0
8
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # Process this file with autoconf to produce a configure script.
16 AC_INIT([Dali-SWIG], [0.1.1],
17         [Dali-SWIG])
18 AC_PREREQ(2.50)
19 AC_CONFIG_AUX_DIR([config])
20 AM_INIT_AUTOMAKE([-Wall foreign])
21
22 # check target
23 AC_MSG_CHECKING([system])
24 target=`uname`
25 AC_MSG_RESULT([$target])
26
27 # check compiler
28 AC_LANG([C++])
29
30 # check for Dali libraries
31 PKG_CHECK_MODULES(DALICORE, dali-core)
32 PKG_CHECK_MODULES(DALIADAPTOR, dali-adaptor)
33 PKG_CHECK_MODULES(DALITOOLKIT, dali-toolkit)
34
35 # check for tools
36 AC_PATH_PROG([SWIG], [swig])
37 AC_PATH_PROG([RUBY], [ruby])
38
39 AC_PATH_PROGS([MCS], [gmcs mcs gmcs2])
40 AM_CONDITIONAL(HAVE_MCS, test "x${MCS}" != "x")
41
42 AC_ARG_ENABLE([csharp],
43               AC_HELP_STRING([--disable-csharp],
44                              [If disabled, the C# module
45                               will not be built]),
46               [build_mcs=$enableval],
47               [build_mcs=yes])
48 AM_CONDITIONAL(BUILD_MCS, test "$build_mcs" != "no")
49
50 # flags
51
52 case "$target" in
53 Darwin)
54     AC_SUBST([SHARED_LIB],[${SHARED_LIB='-dynamiclib'}])
55     AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='jnilib'}]) ;;
56 *)
57     AC_SUBST([SHARED_LIB],[${SHARED_LIB='-shared'}])
58     AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='so'}]) ;;
59 esac
60
61
62 # done, output the configured files
63 AC_CONFIG_FILES([Makefile])
64 AC_OUTPUT
65