forked from jefferyto/openwrt-slide-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
69 lines (56 loc) · 1.95 KB
/
configure.ac
File metadata and controls
69 lines (56 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# configure.ac
# This file is part of slide-switch.
#
# Copyright (C) 2016 Jeffery To
# https://github.com/jefferyto/openwrt-slide-switch
#
# slide-switch is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# slide-switch is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with slide-switch. If not, see <http://www.gnu.org/licenses/>.
#
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([slide-switch], [0.9.0], [https://github.com/jefferyto/openwrt-slide-switch])
AM_INIT_AUTOMAKE
AC_COPYRIGHT([Copyright (C) 2016 Jeffery To])
# Checks for programs.
AC_PROG_AWK
if test -z "$AWK"; then
AC_MSG_ERROR([awk is required])
fi
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_ARG_WITH([platform],
[AS_HELP_STRING([--with-platform=BOARD], [support slide switches for this platform/board])])
case $with_platform in
ar71xx|ramips) ;;
''|yes|no) AC_MSG_WARN([no platform specified]) ;;
*) AC_MSG_WARN([unknown platform specified]) ;;
esac
AM_CONDITIONAL([PLATFORM_AR71XX], [test "x$with_platform" = xar71xx])
AM_CONDITIONAL([PLATFORM_RAMIPS], [test "x$with_platform" = xramips])
AC_CONFIG_FILES([
Makefile
src/etc/hotplug.d/button/Makefile
src/etc/hotplug.d/button/50-slide-switch.sh-cut
src/etc/init.d/Makefile
src/etc/init.d/zzz-slide-switch.sh-cut
src/usr/lib.ar71xx/Makefile
src/usr/lib.ramips/Makefile
src/usr/sbin/Makefile
src/usr/sbin/slide-switch.sh-cut
src/usr/share/slide-switch/Makefile
src/usr/share/slide-switch/functions.sh-cut
])
AC_OUTPUT