]> sigrok.org Git - sigrok-androidutils.git/blame - configure.ac
Add an 'update-device-filter' Makefile target.
[sigrok-androidutils.git] / configure.ac
CommitLineData
5de7ce63
UH
1##
2## This file is part of the sigrok-androidutils project.
3##
4## Copyright (C) 2014 Marcus Comstedt <marcus@mc.pp.se>
5##
6## This program is free software: you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation, either version 3 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program. If not, see <http://www.gnu.org/licenses/>.
18##
19
888373d2
UH
20AC_INIT([sigrok-androidutils], [0.1.0], [sigrok-devel@lists.sourceforge.net],
21 [sigrok-androidutils], [http://www.sigrok.org])
ea3ce762
MC
22
23AC_CONFIG_SRCDIR([src/org/sigrok/androidutils/UsbHelper.java])
32aa2c6e
UH
24
25AM_INIT_AUTOMAKE([1.11 -Wall -Werror subdir-objects])
4c13edc3 26m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
32aa2c6e 27m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
ea3ce762
MC
28
29AC_ARG_WITH([android-sdk],
30 [AS_HELP_STRING([--with-android-sdk],
888373d2 31 [specify path to Android SDK @<:@default=/usr/local/android@:>@])],
ea3ce762
MC
32 [ANDROID_SDK="$withval"],
33 [ANDROID_SDK=/usr/local/android])
34
35AC_ARG_WITH([android-platform],
36 [AS_HELP_STRING([--with-android-platform],
888373d2 37 [select Android platform to build for @<:@default=android-14@:>@])],
ea3ce762
MC
38 [ANDROID_PLATFORM="$withval"],
39 [ANDROID_PLATFORM=android-14])
40
2b68989a
MC
41LT_INIT
42AC_PROG_CXX
32aa2c6e 43AM_PROG_CC_C_O
2b68989a 44
711d21ce
MC
45PKG_CHECK_MODULES([LIBSIGROKCXX], [libsigrokcxx], [
46 LIBSIGROKCXX_VERSION=`$PKG_CONFIG --modversion "libsigrokcxx" 2>&AS_MESSAGE_LOG_FD`
47])
48
ea3ce762
MC
49AC_SUBST([ANDROID_SDK])
50AC_SUBST([ANDROID_PLATFORM])
711d21ce 51AC_SUBST([LIBSIGROKCXX_VERSION])
ea3ce762 52
32aa2c6e 53AC_OUTPUT([Makefile lib/libsigrokandroidutils.pc])