~ubuntu-branches/ubuntu/precise/plymouth/precise

« back to all changes in this revision

Viewing changes to .pc/kubuntu-text.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2012-04-11 04:59:54 UTC
  • mfrom: (1409.1.10 trunk)
  • Revision ID: package-import@ubuntu.com-20120411045954-yerz7i51mdry3crk
Tags: 0.8.2-2ubuntu29
* debian/patches/main-Don-t-watch-for-keyboard-input-if-no-keyboard.patch:
  Cherry-pick from upstream; don't watch for keyboard input if no keyboard
  is set, as is the case when should_ignore_show_splash_calls() returns
  true, fixing an assert failure.  LP: #619021.
* debian/ubuntu-logo.png: remove in favor of the logo included in the
  ubuntu-logo theme which has the correct branding.  This has no impact on
  the default user experience, but fixes the branding when using certain
  non-default themes available in the archive.  (We still ship a copy in
  the main plymouth package for this reason.)  LP: #667262.
* debian/patches/tty1-after-boot.patch: Switch back to tty1 on exit if
  started with vt.handoff.  Closes LP: #913731.
* debian/plymouth-theme-{k,}ubuntu-text.{triggers,postinst}: regenerate
  our theme when /etc/lsb-release changes.  LP: #957380.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
5
 
 
6
AC_USE_SYSTEM_EXTENSIONS
 
7
AC_PROG_AWK
 
8
AC_PROG_CC
 
9
AM_PROG_CC_C_O
 
10
AC_HEADER_STDC
 
11
AC_C_CONST
 
12
 
 
13
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
 
14
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
15
AM_MAINTAINER_MODE([enable])
 
16
 
 
17
PKG_PROG_PKG_CONFIG
 
18
LT_INIT
 
19
 
 
20
## increment if the interface has additions, changes, removals.
 
21
LT_CURRENT=2
 
22
 
 
23
## increment any time the source changes; set to
 
24
##  0 if you increment CURRENT
 
25
LT_REVISION=0
 
26
 
 
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.
 
30
LT_AGE=0
 
31
 
 
32
AC_SUBST(LT_CURRENT)
 
33
AC_SUBST(LT_REVISION)
 
34
AC_SUBST(LT_AGE)
 
35
 
 
36
PKG_CHECK_MODULES(IMAGE, [libpng >= 1.2.16 ]) 
 
37
AC_SUBST(IMAGE_CFLAGS)
 
38
AC_SUBST(IMAGE_LIBS)
 
39
 
 
40
PLYMOUTH_CFLAGS=""
 
41
PLYMOUTH_LIBS="-lm -lrt -ldl"
 
42
 
 
43
AC_SUBST(PLYMOUTH_CFLAGS)
 
44
AC_SUBST(PLYMOUTH_LIBS)
 
45
 
 
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])
 
48
 
 
49
if test x$enable_pango = xyes; then
 
50
  PKG_CHECK_MODULES(PANGO, [pangocairo >= 1.21.0 ])
 
51
  AC_SUBST(PANGO_CFLAGS)
 
52
  AC_SUBST(PANGO_LIBS)
 
53
fi
 
54
 
 
55
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.12.0 ])
 
56
AC_SUBST(GTK_CFLAGS)
 
57
AC_SUBST(GTK_LIBS)
 
58
 
 
59
PKG_CHECK_MODULES(DRM, [libdrm libdrm_intel libdrm_radeon libdrm_nouveau])
 
60
 
 
61
OLD_CFLAGS="$CFLAGS"
 
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(
 
65
[[
 
66
  #include <stdint.h>
 
67
  #include <stdlib.h>
 
68
  #include "i915_drm.h"
 
69
  #include "radeon_drm.h"
 
70
  #include "nouveau_drm.h"
 
71
]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
 
72
 
 
73
if test "$found_drm_kernel_headers" = "yes"; then
 
74
  AC_MSG_RESULT([yes])
 
75
else
 
76
  AC_MSG_RESULT([no])
 
77
  AC_MSG_CHECKING([if we can find them anyway])
 
78
 
 
79
  MORE_DRM_CFLAGS="-I`$PKG_CONFIG --variable includedir libdrm`/drm"
 
80
  CFLAGS="$CFLAGS $MORE_DRM_CFLAGS"
 
81
  AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
 
82
  [[
 
83
    #include <stdint.h>
 
84
    #include <stdlib.h>
 
85
    #include "i915_drm.h"
 
86
    #include "radeon_drm.h"
 
87
    #include "nouveau_drm.h"
 
88
  ]],[[]]),[found_drm_kernel_headers=yes],[found_drm_kernel_headers=no])
 
89
 
 
90
  if test "$found_drm_kernel_headers" = "yes"; then
 
91
    AC_MSG_RESULT([yes])
 
92
    DRM_CFLAGS="$DRM_CFLAGS $MORE_DRM_CFLAGS"
 
93
  else
 
94
    AC_MSG_RESULT([no])
 
95
    AC_MSG_ERROR([Could not find i915_drm.h, radeon_drm.h and/or nouveau_drm.h])
 
96
  fi
 
97
fi
 
98
CFLAGS="$OLD_CFLAGS"
 
99
AC_SUBST(DRM_CFLAGS)
 
100
AC_SUBST(DRM_LIBS)
 
101
 
 
102
AC_ARG_ENABLE(tracing, AS_HELP_STRING([--enable-tracing],[enable verbose tracing code]),enable_tracing=$enableval,enable_tracing=yes)
 
103
 
 
104
if test x$enable_tracing = xyes; then
 
105
  AC_DEFINE(PLY_ENABLE_TRACING, 1, [Build in verbose debug tracing spew])
 
106
fi
 
107
 
 
108
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[build tests]),enable_tests=$enableval,enable_tests=yes)
 
109
 
 
110
AM_CONDITIONAL(ENABLE_TESTS,  [test "$enable_tests" = yes])
 
111
 
 
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)
 
113
 
 
114
if test x$enable_gdm_transition = xyes; then
 
115
  AC_DEFINE(PLY_ENABLE_GDM_TRANSITION, 1, [Enable smooth transition to GDM])
 
116
fi
 
117
 
 
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])
 
120
 
 
121
if test x$with_system_root_install = xyes; then
 
122
  plymouthclientdir=/bin
 
123
  plymouthdaemondir=/sbin
 
124
else
 
125
  plymouthclientdir=$bindir
 
126
  plymouthdaemondir=$sbindir
 
127
fi
 
128
AC_SUBST(plymouthclientdir)
 
129
AC_SUBST(plymouthdaemondir)
 
130
 
 
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])
 
133
 
 
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)
 
135
 
 
136
AM_CONDITIONAL(START_FROM_GDM,  [test "$with_gdm_autostart_file" = yes])
 
137
 
 
138
AC_ARG_WITH(logo, AS_HELP_STRING([--with-logo],[logo used by boot splash plugins]),logofile=${withval},logofile=$datadir/plymouth/bizcom.png)
 
139
AC_SUBST(logofile)
 
140
 
 
141
AM_CONDITIONAL(INSTALL_FALLBACK_LOGO,  [test "$logofile" = $datadir/plymouth/bizcom.png])
 
142
 
 
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)
 
145
 
 
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)
 
148
 
 
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)
 
151
 
 
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)
 
153
 
 
154
AC_SUBST(RELEASE_FILE)
 
155
AC_DEFINE_UNQUOTED(RELEASE_FILE, "$RELEASE_FILE", [Release file path])
 
156
 
 
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])
 
159
 
 
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])
 
162
 
 
163
AC_CHECK_HEADERS([sys/io.h])
 
164
AM_CONDITIONAL([BUILD_VGA16FB], [test "x$ac_cv_header_sys_io_h" = xyes])
 
165
 
 
166
# Turn on the additional warnings last, so -Werror doesn't affect other tests.
 
167
 
 
168
AC_DEFUN([PLYMOUTH_CC_TRY_FLAG], [
 
169
  AC_MSG_CHECKING([whether $CC supports $1])
 
170
 
 
171
  plymouth_save_CFLAGS="$CFLAGS"
 
172
  CFLAGS="$CFLAGS $1"
 
173
 
 
174
  AC_COMPILE_IFELSE([ ], [plymouth_cc_flag=yes], [plymouth_cc_flag=no])
 
175
  CFLAGS="$plymouth_save_CFLAGS"
 
176
 
 
177
  if test "x$plymouth_cc_flag" = "xyes"; then
 
178
    ifelse([$2], , :, [$2])
 
179
  else
 
180
    ifelse([$3], , :, [$3])
 
181
  fi
 
182
  AC_MSG_RESULT([$plymouth_cc_flag])
 
183
])
 
184
 
 
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
 
191
              else
 
192
                set_more_warnings=no
 
193
              fi])
 
194
 
 
195
AC_MSG_CHECKING(for more warnings)
 
196
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 
197
  AC_MSG_RESULT(yes)
 
198
  MAYBE_WARN="\
 
199
   -Wall -Wextra  \
 
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
 
206
  AC_MSG_RESULT(no)
 
207
  MAYBE_WARN="-Wall -Wno-sign-compare -Wno-deprecated-declarations"
 
208
else
 
209
  AC_MSG_RESULT(no)
 
210
fi
 
211
 
 
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
 
215
fi
 
216
AC_CACHE_CHECK([for supported warning flags], plymouth_cv_warn_cflags, [
 
217
        echo
 
218
        WARN_CFLAGS=""
 
219
 
 
220
        # Some warning options are not supported by all versions of
 
221
        # gcc, so test all desired options against the current
 
222
        # compiler.
 
223
        #
 
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
 
229
        # last.
 
230
 
 
231
        for W in $MAYBE_WARN; do
 
232
                PLYMOUTH_CC_TRY_FLAG([$W], [WARN_CFLAGS="$WARN_CFLAGS $W"])
 
233
        done
 
234
 
 
235
        plymouth_cv_warn_cflags=$WARN_CFLAGS
 
236
        plymouth_cv_warn_maybe=$MAYBE_WARN
 
237
 
 
238
        AC_MSG_CHECKING([which warning flags were supported])])
 
239
 
 
240
WARN_CFLAGS="$plymouth_cv_warn_cflags"
 
241
PLYMOUTH_CFLAGS="$PLYMOUTH_CFLAGS $WARN_CFLAGS"
 
242
 
 
243
plymouththemedir=$datadir/plymouth/themes
 
244
AS_AC_EXPAND(PLYMOUTH_THEME_PATH, $plymouththemedir)
 
245
 
 
246
plymouthplugindir=$libdir/plymouth/
 
247
AS_AC_EXPAND(PLYMOUTH_PLUGIN_PATH, $plymouthplugindir)
 
248
 
 
249
plymouthpolicydir=$datadir/plymouth/
 
250
AS_AC_EXPAND(PLYMOUTH_POLICY_DIR, $plymouthpolicydir)
 
251
 
 
252
plymouthconfdir=$sysconfdir/plymouth/
 
253
AS_AC_EXPAND(PLYMOUTH_CONF_DIR, $plymouthconfdir)
 
254
 
 
255
AS_AC_EXPAND(PLYMOUTH_LIBDIR, $libdir)
 
256
AS_AC_EXPAND(PLYMOUTH_LIBEXECDIR, $libexecdir)
 
257
AS_AC_EXPAND(PLYMOUTH_DATADIR, $datadir)
 
258
 
 
259
AC_CONFIG_FILES([Makefile
 
260
           src/libply/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
 
265
           src/plugins/Makefile
 
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
 
282
           src/Makefile
 
283
           src/client/ply-boot-client.pc
 
284
           src/client/Makefile
 
285
           src/viewer/Makefile
 
286
           src/tests/Makefile
 
287
           src/libply/tests/Makefile
 
288
           src/client/tests/Makefile
 
289
           themes/Makefile
 
290
           themes/spinfinity/Makefile
 
291
           themes/fade-in/Makefile
 
292
           themes/text/Makefile
 
293
           themes/details/Makefile
 
294
           themes/solar/Makefile
 
295
           themes/glow/Makefile
 
296
           themes/script/Makefile
 
297
           themes/ubuntu-logo/Makefile
 
298
           themes/ubuntu-text/Makefile
 
299
           images/Makefile
 
300
           scripts/plymouth-generate-initrd
 
301
           scripts/plymouth-populate-initrd
 
302
           scripts/plymouth-set-default-theme
 
303
           scripts/Makefile
 
304
           docs/Makefile
 
305
])
 
306
AC_OUTPUT