1 # Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # Process this file with autoconf to produce a configure script.
16 AC_INIT([Dali-SWIG], [0.1.1],
19 AC_CONFIG_AUX_DIR([config])
20 AM_INIT_AUTOMAKE([-Wall foreign])
23 AC_MSG_CHECKING([system])
25 AC_MSG_RESULT([$target])
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)
36 AC_PATH_PROG([SWIG], [swig])
37 AC_PATH_PROG([RUBY], [ruby])
39 AC_PATH_PROGS([MCS], [gmcs mcs gmcs2])
40 AM_CONDITIONAL(HAVE_MCS, test "x${MCS}" != "x")
42 AC_ARG_ENABLE([csharp],
43 AC_HELP_STRING([--disable-csharp],
44 [If disabled, the C# module
46 [build_mcs=$enableval],
48 AM_CONDITIONAL(BUILD_MCS, test "$build_mcs" != "no")
54 AC_SUBST([SHARED_LIB],[${SHARED_LIB='-dynamiclib'}])
55 AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='jnilib'}]) ;;
57 AC_SUBST([SHARED_LIB],[${SHARED_LIB='-shared'}])
58 AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='so'}]) ;;
62 # done, output the configured files
63 AC_CONFIG_FILES([Makefile])