-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfigure.ac
129 lines (112 loc) · 3.91 KB
/
configure.ac
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
AC_INIT([dietsplash],[0.3],[[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE
AC_PREFIX_DEFAULT(/usr/local)
AC_LANG([C])
AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_GCC_TRADITIONAL
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_LN_S
AC_PROG_SED
PKG_PROG_PKG_CONFIG
CC_FUNC_TYPES_COMPATIBLE_P
CC_CHECK_CFLAGS_APPEND([ \
-pipe \
-Wall \
-W \
-Wextra \
-Wno-inline \
-Wvla \
-Wundef \
-Wformat=2 \
-Wlogical-op \
-Wsign-compare \
-Wformat-security \
-Wmissing-include-dirs \
-Wformat-nonliteral \
-Wold-style-definition \
-Wpointer-arith \
-Winit-self \
-Wdeclaration-after-statement \
-Wfloat-equal \
-Wmissing-prototypes \
-Wstrict-prototypes \
-Wredundant-decls \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wshadow \
-Wendif-labels \
-Wcast-align \
-Wstrict-aliasing=2 \
-Wwrite-strings \
-Wno-long-long \
-Wno-overlength-strings \
-Wno-unused-parameter \
-Wno-missing-field-initializers \
-Wno-unused-result \
-Wp,-D_FORTIFY_SOURCE=2 \
-ffast-math \
-fno-common \
-fdiagnostics-show-option \
-fno-strict-aliasing \
-fvisibility=hidden \
-ffunction-sections \
-fdata-sections \
-Wl,-O1 \
-Wl,--hash-style=gnu \
-Wl,--as-needed \
-Wl,--gc-sections])
################################# Umount /dev
AC_ARG_ENABLE(umountdev, AS_HELP_STRING([--enable-umountdev],
[unmount /dev if it was mounted by dietsplash]),
[enable_umountdev=${enableval}])
if (test "${enable_umountdev}" == "yes"); then
AC_DEFINE(ENABLE_UMOUNTDEV, 1, [Set to 1 if unmountdev is enabled])
fi
################################# Disable log
AC_ARG_ENABLE([log], AS_HELP_STRING([--disable-log], [Completely disable log,
even removing log strings from binary]),
[enable_log=${enableval}])
if (test "${enable_log}" != "no"); then
AC_DEFINE(ENABLE_LOG, 1, [Set to 1 if log is enabled])
fi
################################# Static images
AC_ARG_ENABLE(staticimages, AS_HELP_STRING([--disable-staticimages],
[disable images to be converted in source files at compile time.]),
[enable_staticimages=${enableval}])
AM_CONDITIONAL(ENABLE_STATICIMAGES, test "${enable_staticimages}" != "no")
################################# Custom background
AC_ARG_WITH(bg, AS_HELP_STRING([--with-bg=BG_FILE],
[specify location of background image to use or "default" for
default background]), [bg=${withval}], [bg="default"])
if (test "${bg}" != "default"); then
BACKGROUND_PATH="${bg}"
AC_SUBST(BACKGROUND_PATH)
fi
AM_CONDITIONAL(ENABLE_CUSTOM_BACKGROUND, test "${bg}" != "default")
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([SYSTEMDSYSTEMUNITDIR], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(ENABLE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
################################# Real init
AC_ARG_WITH(init, AS_HELP_STRING([--with-init=INIT],
[specify location of real init. Default is "/sbin/init"]),
[realinit=${withval}],[realinit="/sbin/init"])
REAL_INIT="${realinit}"
AC_SUBST(REAL_INIT)
################################# Root dir
AC_ARG_WITH([rootdir],
AS_HELP_STRING([--with-rootdir=DIR],
[Root directory for files necessary for boot]))
AC_SUBST([rootdir], [$with_rootdir])
#################################
AC_CONFIG_FILES([Makefile])
AC_OUTPUT