1
AC_INIT([plymouth],[0.8.2],[https://bugs.freedesktop.org/enter_bug.cgi?product=plymouth])
2
AC_CONFIG_SRCDIR(src/main.c)
3
AC_CONFIG_HEADER(config.h)
4
AC_CONFIG_AUX_DIR(build-tools)
6
AC_USE_SYSTEM_EXTENSIONS
13
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
14
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
15
AM_MAINTAINER_MODE([enable])
20
## increment if the interface has additions, changes, removals.
23
## increment any time the source changes; set to
24
## 0 if you increment CURRENT
27
## increment if any interfaces have been added; set to 0
28
## if any interfaces have been changed or removed. removal has
29
## precedence over adding, so set to 0 if both happened.
36
PKG_CHECK_MODULES(IMAGE, [libpng >= 1.2.16 ])
37
AC_SUBST(IMAGE_CFLAGS)
41
PLYMOUTH_LIBS="-lm -lrt -ldl"
43
AC_SUBST(PLYMOUTH_CFLAGS)
44
AC_SUBST(PLYMOUTH_LIBS)
46
AC_ARG_ENABLE(pango, AS_HELP_STRING([--enable-pango],[enable building with pango, disabled there is no encryption prompts]),enable_pango=$enableval,enable_pango=yes)
47
AM_CONDITIONAL(ENABLE_PANGO, [test "$enable_pango" = yes])
49
if test x$enable_pango = xyes; then
50
PKG_CHECK_MODULES(PANGO, [pangocairo >= 1.21.0 ])
51
AC_SUBST(PANGO_CFLAGS)
55
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.12.0 ])
59
PKG_CHECK_MODULES(DRM, [libdrm libdrm_intel libdrm_radeon libdrm_nouveau])
62
CFLAGS="$CFLAGS $DRM_CFLAGS"
63
AC_MSG_CHECKING([if i915_drm.h, radeon_drm.h and nouveau_drm.h are in include path])
64
AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
69
#include "radeon_drm.h"
70
#include "nouveau_drm.h"
71
]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
73
if test "$found_drm_kernel_headers" = "yes"; then
77
AC_MSG_CHECKING([if we can find them anyway])
79
MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
80
CFLAGS="$CFLAGS $MORE_DRM_CFLAGS"
81
AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
86
#include "radeon_drm.h"
87
#include "nouveau_drm.h"
88
]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
90
if test "$found_drm_kernel_headers" = "yes"; then
92
DRM_CFLAGS="$DRM_CFLAGS $MORE_DRM_CFLAGS"
95
AC_MSG_ERROR([Could not find i915_drm.h, radeon_drm.h and/or nouveau_drm.h])
102
AC_ARG_ENABLE(tracing, AS_HELP_STRING([--enable-tracing],[enable verbose tracing code]),enable_tracing=$enableval,enable_tracing=yes)
104
if test x$enable_tracing = xyes; then
105
AC_DEFINE(PLY_ENABLE_TRACING, 1, [Build in verbose debug tracing spew])
108
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[build tests]),enable_tests=$enableval,enable_tests=yes)
110
AM_CONDITIONAL(ENABLE_TESTS, [test "$enable_tests" = yes])
112
AC_ARG_ENABLE(gdm-transition, AS_HELP_STRING([--enable-gdm-transition],[enable smooth transition to gdm]),enable_gdm_transition=$enableval,enable_gdm_transition=no)
114
if test x$enable_gdm_transition = xyes; then
115
AC_DEFINE(PLY_ENABLE_GDM_TRANSITION, 1, [Enable smooth transition to GDM])
118
AC_ARG_WITH(system-root-install, AS_HELP_STRING([--with-system-root-install],[Install client in /bin and daemon in /sbin]),with_system_root_install=${withval},with_system_root_install=yes)
119
AM_CONDITIONAL(WITH_SYSTEM_ROOT_INSTALL, [test "$with_system_root_install" = yes])
121
if test x$with_system_root_install = xyes; then
122
plymouthclientdir=/bin
123
plymouthdaemondir=/sbin
125
plymouthclientdir=$bindir
126
plymouthdaemondir=$sbindir
128
AC_SUBST(plymouthclientdir)
129
AC_SUBST(plymouthdaemondir)
131
AC_ARG_WITH(rhgb-compat-link, AS_HELP_STRING([--with-rhgb-compat-link],[Install /usr/bin/rhgb-client compatability symlink]),with_rhgb_compat_link=${withval},with_rhgb_compat_link=yes)
132
AM_CONDITIONAL(WITH_RHGB_COMPAT_LINK, [test "$with_rhgb_compat_link" = yes])
134
AC_ARG_WITH(gdm-autostart-file, AS_HELP_STRING([--with-gdm-autostart-file],[start log viewer from gdm on boot errors]),with_gdm_autostart_file=$withval,with_gdm_autostart_file=yes)
136
AM_CONDITIONAL(START_FROM_GDM, [test "$with_gdm_autostart_file" = yes])
138
AC_ARG_WITH(logo, AS_HELP_STRING([--with-logo],[logo used by boot splash plugins]),logofile=${withval},logofile=$datadir/plymouth/bizcom.png)
141
AM_CONDITIONAL(INSTALL_FALLBACK_LOGO, [test "$logofile" = $datadir/plymouth/bizcom.png])
143
AC_ARG_WITH(background-color, AS_HELP_STRING([--with-background-color],[background color used by boot splash plugins]),background_color=${withval},background_color=0x5d5950)
144
AC_SUBST(background_color)
146
AC_ARG_WITH(background-start-color-stop, AS_HELP_STRING([--with-background-start-color-stop],[first color stop in background gradients used by boot splash plugins]),background_start_color=${withval},background_start_color=0x807c71)
147
AC_SUBST(background_start_color)
149
AC_ARG_WITH(background-end-color-stop, AS_HELP_STRING([--with-background-end-color-stop],[first color end in background gradients used by boot splash plugins]),background_end_color=${withval},background_end_color=0x3a362f)
150
AC_SUBST(background_end_color)
152
AC_ARG_WITH(release-file, AS_HELP_STRING([--with-release-file=<path_to_release_file>],[Release File to use to detect distribution (by default /etc/system-reelase)]),RELEASE_FILE=${withval},RELEASE_FILE=/etc/system-release)
154
AC_SUBST(RELEASE_FILE)
155
AC_DEFINE_UNQUOTED(RELEASE_FILE, "$RELEASE_FILE", [Release file path])
157
AC_ARG_WITH(boot-tty, AS_HELP_STRING([--with-boot-tty=<tty>],[Default TTY to use in boot mode (by default tty1)]),BOOT_TTY=${withval},BOOT_TTY=/dev/tty1)
158
AC_DEFINE_UNQUOTED(BOOT_TTY, "$BOOT_TTY", [TTY to use in boot mode])
160
AC_ARG_WITH(shutdown-tty, AS_HELP_STRING([--with-shutdown-tty=<tty>],[Default TTY to use in shutdown mode (by default tty63)]),SHUTDOWN_TTY=${withval},SHUTDOWN_TTY=/dev/tty63)
161
AC_DEFINE_UNQUOTED(SHUTDOWN_TTY, "$SHUTDOWN_TTY", [TTY to use in shutdown mode])
163
AC_CHECK_HEADERS([sys/io.h])
164
AM_CONDITIONAL([BUILD_VGA16FB], [test "x$ac_cv_header_sys_io_h" = xyes])
166
# Turn on the additional warnings last, so -Werror doesn't affect other tests.
168
AC_DEFUN([PLYMOUTH_CC_TRY_FLAG], [
169
AC_MSG_CHECKING([whether $CC supports $1])
171
plymouth_save_CFLAGS="$CFLAGS"
174
AC_COMPILE_IFELSE([ ], [plymouth_cc_flag=yes], [plymouth_cc_flag=no])
175
CFLAGS="$plymouth_save_CFLAGS"
177
if test "x$plymouth_cc_flag" = "xyes"; then
178
ifelse([$2], , :, [$2])
180
ifelse([$3], , :, [$3])
182
AC_MSG_RESULT([$plymouth_cc_flag])
185
AC_ARG_ENABLE(more-warnings,
186
AS_HELP_STRING([--enable-more-warnings],
187
[Maximum compiler warnings]),
188
set_more_warnings="$enableval",[
189
if test -d $srcdir/.git; then
190
set_more_warnings=yes
195
AC_MSG_CHECKING(for more warnings)
196
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
200
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
201
-Wwrite-strings -Wnested-externs -Wpointer-arith \
202
-Wswitch-enum -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
203
-Wno-missing-field-initializers -Wno-unused-parameter \
204
-Wcast-align -Wsign-compare -Wp,-D_FORTIFY_SOURCE=2"
205
elif test "$GCC" = "yes"; then
207
MAYBE_WARN="-Wall -Wno-sign-compare -Wno-deprecated-declarations"
212
# invalidate cached value if MAYBE_WARN has changed
213
if test "x$plymouth_cv_warn_maybe" != "x$MAYBE_WARN"; then
214
unset plymouth_cv_warn_cflags
216
AC_CACHE_CHECK([for supported warning flags], plymouth_cv_warn_cflags, [
220
# Some warning options are not supported by all versions of
221
# gcc, so test all desired options against the current
224
# Note that there are some order dependencies
225
# here. Specifically, an option that disables a warning will
226
# have no net effect if a later option then enables that
227
# warnings, (perhaps implicitly). So we put some grouped
228
# options (-Wall and -Wextra) up front and the -Wno options
231
for W in $MAYBE_WARN; do
232
PLYMOUTH_CC_TRY_FLAG([$W], [WARN_CFLAGS="$WARN_CFLAGS $W"])
235
plymouth_cv_warn_cflags=$WARN_CFLAGS
236
plymouth_cv_warn_maybe=$MAYBE_WARN
238
AC_MSG_CHECKING([which warning flags were supported])])
240
WARN_CFLAGS="$plymouth_cv_warn_cflags"
241
PLYMOUTH_CFLAGS="$PLYMOUTH_CFLAGS $WARN_CFLAGS"
243
plymouththemedir=$datadir/plymouth/themes
244
AS_AC_EXPAND(PLYMOUTH_THEME_PATH, $plymouththemedir)
246
plymouthplugindir=$libdir/plymouth/
247
AS_AC_EXPAND(PLYMOUTH_PLUGIN_PATH, $plymouthplugindir)
249
plymouthpolicydir=$datadir/plymouth/
250
AS_AC_EXPAND(PLYMOUTH_POLICY_DIR, $plymouthpolicydir)
252
plymouthconfdir=$sysconfdir/plymouth/
253
AS_AC_EXPAND(PLYMOUTH_CONF_DIR, $plymouthconfdir)
255
AS_AC_EXPAND(PLYMOUTH_LIBDIR, $libdir)
256
AS_AC_EXPAND(PLYMOUTH_LIBEXECDIR, $libexecdir)
257
AS_AC_EXPAND(PLYMOUTH_DATADIR, $datadir)
259
AC_CONFIG_FILES([Makefile
261
src/libply-splash-core/Makefile
262
src/libply-splash-graphics/Makefile
263
src/ply-splash-core.pc
264
src/ply-splash-graphics.pc
266
src/plugins/renderers/Makefile
267
src/plugins/renderers/frame-buffer/Makefile
268
src/plugins/renderers/drm/Makefile
269
src/plugins/renderers/x11/Makefile
270
src/plugins/renderers/vga16fb/Makefile
271
src/plugins/splash/Makefile
272
src/plugins/splash/throbgress/Makefile
273
src/plugins/splash/fade-throbber/Makefile
274
src/plugins/splash/ubuntu-text/Makefile
275
src/plugins/splash/text/Makefile
276
src/plugins/splash/details/Makefile
277
src/plugins/splash/space-flares/Makefile
278
src/plugins/splash/two-step/Makefile
279
src/plugins/splash/script/Makefile
280
src/plugins/controls/Makefile
281
src/plugins/controls/label/Makefile
283
src/client/ply-boot-client.pc
287
src/libply/tests/Makefile
288
src/client/tests/Makefile
290
themes/spinfinity/Makefile
291
themes/fade-in/Makefile
293
themes/details/Makefile
294
themes/solar/Makefile
296
themes/script/Makefile
297
themes/ubuntu-logo/Makefile
298
themes/ubuntu-text/Makefile
300
scripts/plymouth-generate-initrd
301
scripts/plymouth-populate-initrd
302
scripts/plymouth-set-default-theme