-
Notifications
You must be signed in to change notification settings - Fork 19
/
configure.ac
580 lines (489 loc) · 18.6 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script
dnl or use autogen.sh (recommended)
dnl
dnl Copyright (C) 2012-2022 SUSE Software Solutions Germany GmbH
dnl
dnl Authors:
dnl Frank Sundermeyer <fsundermeyer at opensuse dot org>
dnl Thomas Schraitle <toms at opensuse dot org>
dnl
m4_define(daps_version_major, 4)
m4_define(daps_version_minor, 0)
m4_define(daps_version_micro, [beta1])
# API version
m4_define([daps_api_version],[daps_version_major])
m4_define([daps_version], [daps_version_major.daps_version_minor.daps_version_micro])
AC_PREREQ([2.71])
AC_INIT([DAPS],[daps_version],[https://github.com/openSUSE/daps],[daps],[https://opensuse.github.io/daps])
AC_CONFIG_MACRO_DIR([m4])
DAPS_VERSION_MAJOR=daps_version_major
DAPS_VERSION_MINOR=daps_version_minor
DAPS_VERSION_MICRO=daps_version_micro
DAPS_VERSION=daps_version
DAPS_API_VERSION=daps_api_version
AC_SUBST(DAPS_VERSION)
AC_SUBST(DAPS_VERSION_MAJOR)
AC_SUBST(DAPS_VERSION_MINOR)
AC_SUBST(DAPS_VERSION_MICRO)
AC_SUBST(PACKAGE_VERSION)
AC_SUBST([DAPS_API_VERSION],daps_api_version)
dnl https://stackoverflow.com/questions/18769770/user-of-autotools-generated-tarball-gets-error-message-aclocal-1-13-command-no
AM_MAINTAINER_MODE([disable])
AC_MSG_NOTICE([
Configuring DAPS $DAPS_VERSION, the DocBook Authoring and Publishing Suite...
])
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([1.10])
AC_PREFIX_DEFAULT(/usr)
dnl Some constants
root_catalog="/etc/xml/catalog"
AC_SUBST(root_catalog)
DB4_XSLT_URL="http://docbook.sourceforge.net/release/xsl/current/"
AC_SUBST(DB4_XSLT_URL)
DB5_XSLT_URL="http://docbook.sourceforge.net/release/xsl-ns/current/"
AC_SUBST(DB5_XSLT_URL)
daps_xsl="/usr/share/xml/docbook/stylesheet/daps2012"
AC_SUBST(daps_xsl)
FONT_DIR="/usr/share/fonts"
dnl -------------------------
dnl Debug mode switch
dnl $DEBUG is used with bin/daps
dnl $Q is the quiet switch for the Makefile
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],[Enable debug mode])],
[debug="--debug"], [quiet="@"])
eval "eval DEBUG=$debug Q=$quiet"
dnl -------------------------
dnl Switch for disabling xml root catalog editing
dnl Needs to be disabled when creating real packages, because
dnl this needs to be done with the package's post-install
dnl commands
AC_ARG_ENABLE([edit-rootcatalog],
[AS_HELP_STRING([--disable-edit-rootcatalog],[Disable editing the XML root catalog. Use this switch when running make install from a package generating script (such as a spec file).])],
[if test "yes" = $enableval; then cat_edit=1; else cat_edit=0; fi],
[cat_edit=1])
AM_CONDITIONAL([CATALOG_EDIT], [test 1 = $cat_edit])
AC_SUBST(DEBUG)
AC_SUBST(Q)
dnl -------------------------
dnl Checks for programs.
AC_PROG_MKDIR_P
AC_PROG_LN_S
AC_PROG_SED
AC_PROG_GREP
AC_PROG_INSTALL
dnl bash
dnl Taken from https://github.com/Schischu/ptxdist_sh/blob/master/configure.ac
dnl
dnl unset BASH # bash sets this itself!
dnl AC_PATH_PROG(BASH, bash)
dnl BEWARE: There is a distinct possibility that we are currently running under
dnl bash in this configure script (/bin/sh being a symlink to /bin/bash). Even
dnl though the result /could/ be available to us directly as $BASH_VERSION we
dnl don't want to use, or trust it, incase the user is specifying a different
dnl bash executable.
AC_MSG_CHECKING([for bash version])
if `$BASH -c '[[ "$BASH_VERSION" \< "4.0" ]]'` ; then
AC_MSG_ERROR([DAPS requires at least version 4.0 of bash.])
else
AC_MSG_RESULT([$BASH_VERSION])
fi
dnl make
AC_PATH_PROG([MAKE], [make], [0])
if test 0 = "$MAKE"; then
AC_MSG_ERROR([make not found])
fi
dnl tar
AC_PATH_PROG([TAR], [tar], [0])
dnl bzip2
AC_PATH_PROG([BZIP], [bzip2], [0])
dnl asciidoctor
AC_PATH_PROG([ASCIIDOCTOR], [asciidoctor], [0])
dnl ditaa
AC_PATH_PROG([DITAA], [ditaa], [0])
dnl epubcheck
AC_PATH_PROG([EPUBCHECK], [epubcheck], [0])
dnl checkbot
AC_PATH_PROG([CHECKBOT], [checkbot], [0])
dnl remake
AC_PATH_PROG([REMAKE], [remake], [0])
dnl w3m
AC_PATH_PROG([W3M], [w3m], [0])
dnl -------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for XML tools... ])
AC_PATH_PROG([XMLLINT], [xmllint], [0])
if test 0 = "$XMLLINT"; then
AC_MSG_ERROR([xmllint not found])
fi
AC_PATH_PROG([XSLTPROC], [xsltproc], [0])
if test 0 = "$XSLTPROC"; then
AC_MSG_ERROR([xsltproc (libxslt) not found])
fi
AC_PATH_PROG([XMLCATALOG], [xmlcatalog], [0])
if test 0 = "$XMLCATALOG"; then
AC_MSG_ERROR([xmlcatalog not found])
fi
AC_PATH_PROGS([PDFFORMATTER], [fop xep], [0])
dnl recommendation, only needed for Docbook5
AC_PATH_PROG([JING], [jing], [0])
AC_PATH_PROG([TRANG], [trang], [0])
AC_CHECK_FILE([$root_catalog], [CATALOG=$root_catalog], [CATALOG=0])
if test 0 = "$CATALOG"; then
AC_MSG_ERROR([Catalog $root_catalog not found])
fi
dnl -------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for Image conversion tools...])
dnl convert (ImageMagick)
AC_PATH_PROG([CONVERT], [convert], [0])
if test 0 = "$CONVERT"; then
AC_MSG_ERROR([convert (ImageMagick) not found])
fi
dnl dia
AC_PATH_PROG([DIA], [dia], [0])
dnl inkscape
AC_PATH_PROG([INKSCAPE], [inkscape], [0])
dnl optipng
AC_PATH_PROG([OPTIPNG], [optipng], [0])
dnl Libre Office Draw
AC_PATH_PROG([OODRAW], [lodraw], [0])
dnl pdffonts
AC_PATH_PROG([PDFFONTS], [pdffonts], [0])
dnl svg DTD
for SVG_DTD in "-//W3C//DTD SVG 1.0//EN" \
"-//W3C//DTD SVG 1.1 Basic//EN" ; do
AC_MSG_CHECKING([for $SVG_DTD])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$SVG_DTD" >&2]); then
AC_MSG_RESULT([yes])
HAVE_SVGDTD=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_SVGDTD"; then
HAVE_SVGDTD=0
fi
dnl -------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for Python modules...])
dnl python
dnl We require Python3
AM_PATH_PYTHON([3.4])
dnl AM_PATH_PYTHON([2.6])
dnl Variables HAVE_PYMOD_* are filled with "yes" or "no"
AX_PYTHON_MODULE([lxml],[fatal])
AC_SUBST(HAVE_PYMOD_LXML)
dnl --------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for DocBook 4.x...])
for XML_DTD in "-//OASIS//DTD DocBook XML V4.1.2//EN" \
"-//OASIS//DTD DocBook XML V4.2//EN" \
"-//OASIS//DTD DocBook XML V4.3//EN" \
"-//OASIS//DTD DocBook XML V4.4//EN" \
"-//OASIS//DTD DocBook XML V4.5//EN" ; do
AC_MSG_CHECKING([for $XML_DTD])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$XML_DTD" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK"; then
AC_MSG_ERROR([No DocBook 4 DTD not found])
fi
dnl --------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for additional DocBook 4.5 identifiers (optional)...])
for IDENT in "-//OASIS//ELEMENTS DocBook Information Pool V4.5//EN" \
"-//OASIS//ENTITIES DocBook Character Entities V4.5//EN" \
"-//OASIS//ENTITIES DocBook Notations V4.5//EN" \
"-//OASIS//ENTITIES DocBook Additional General Entities V4.5//EN" \
"-//OASIS//ELEMENTS DocBook Document Hierarchy V4.5//EN" \
"-//OASIS//DTD DocBook CALS Table Model V4.5//EN" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
; do
AC_MSG_CHECKING([for $IDENT])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$IDENT" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK_IDENTIFIER=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK_IDENTIFIER"; then
AC_MSG_WARN([Seems some additional catalog entries for DocBook identifiers are missing])
fi
dnl --------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for ISO Entities identifiers...])
for ENT in "ISO 8879:1986//ENTITIES Publishing//EN//XML" \
"ISO 8879:1986//ENTITIES Greek Letters//EN//XML" \
"ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML" \
"ISO 8879:1986//ENTITIES Greek Symbols//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML" \
"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML" \
"ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML" \
"ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML" \
"ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML" \
"ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML" \
"ISO 8879:1986//ENTITIES General Technical//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML" \
"ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML" \
"ISO 8879:1986//ENTITIES Added Latin 2//EN//XML" \
"ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML" \
"ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML" \
; do
AC_MSG_CHECKING([for $ENT])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$ENT" >&2]); then
AC_MSG_RESULT([yes])
HAVE_ISO_ENTITIES=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_ISO_ENTITIES"; then
AC_MSG_WARN([Seems you do not have any catalog entries for ISO entities])
fi
dnl --------------------------------------------------------------------------
dnl Docbook 5.0
AC_MSG_NOTICE([===== Checking for DocBook 5.0...])
for XML_SCHEMA in "http://docbook.org/xml/5.0/rng/docbookxi.rng" \
"http://docbook.org/xml/5.0/rng/docbookxi.rnc" \
"http://docbook.org/xml/5.0/rng/docbook.rng" \
"http://docbook.org/xml/5.0/rng/docbook.rnc" ; do
AC_MSG_CHECKING([for $XML_SCHEMA])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$XML_SCHEMA" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK_50=1
db5_version="5.0"
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK_50"; then
HAVE_DOCBOOK_50=0
AC_MSG_WARN([Seems you do not have DocBook 5.0 installed.])
fi
dnl Docbook 5.1
AC_MSG_NOTICE([===== Checking for DocBook 5.1...])
for XML_SCHEMA in "http://docbook.org/xml/5.1/rng/docbookxi.rng" \
"http://docbook.org/xml/5.1/rng/docbookxi.rnc" \
"http://docbook.org/xml/5.1/rng/docbook.rng" \
"http://docbook.org/xml/5.1/rng/docbook.rnc" \
"http://docbook.org/xml/5.1/rng/assembly.rng" \
"http://docbook.org/xml/5.1/rng/assembly.rnc" \
"http://docbook.org/xml/5.1/rng/dbits.rng" \
"http://docbook.org/xml/5.1/rng/dbits.rnc" ; do
AC_MSG_CHECKING([for $XML_SCHEMA])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$XML_SCHEMA" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK_51=1
db5_version="5.1"
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK_51"; then
HAVE_DOCBOOK_51=0
AC_MSG_WARN([Seems you do not have DocBook 5.1 installed.])
fi
# In case DocBook 5 is not installed, setting db5_version fails and the
# URI in etc/config is set to an invalid value. Therefore let's set
# 5.0 as a hopefully sane default
#
if test -z "$db5_version"; then
db5_version="5.0"
fi
AC_SUBST(db5_version)
dnl -------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for DocBook XSL Stylesheets...])
dnl DocBook4
for XSLT in "${DB4_XSLT_URL}common/common.xsl" \
"${DB4_XSLT_URL}epub/docbook.xsl" \
"${DB4_XSLT_URL}fo/docbook.xsl" \
"${DB4_XSLT_URL}html/chunk.xsl" \
"${DB4_XSLT_URL}html/docbook.xsl" \
"${DB4_XSLT_URL}lib/lib.xsl" \
"${DB4_XSLT_URL}manpages/docbook.xsl" \
"${DB4_XSLT_URL}profiling/profile.xsl" \
"${DB4_XSLT_URL}xhtml/chunk.xsl" \
"${DB4_XSLT_URL}xhtml/docbook.xsl"; do
AC_MSG_CHECKING([for $XSLT])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$XSLT" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK_STYLESHEETS=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK_STYLESHEETS"; then
AC_MSG_ERROR([DocBook 4 stylesheets not found])
fi
dnl DocBook5
for XSLT in "${DB5_XSLT_URL}common/common.xsl" \
"${DB5_XSLT_URL}epub/docbook.xsl" \
"${DB5_XSLT_URL}fo/docbook.xsl" \
"${DB5_XSLT_URL}html/chunk.xsl" \
"${DB5_XSLT_URL}html/docbook.xsl" \
"${DB5_XSLT_URL}lib/lib.xsl" \
"${DB5_XSLT_URL}manpages/docbook.xsl" \
"${DB5_XSLT_URL}profiling/profile.xsl" \
"${DB5_XSLT_URL}xhtml/chunk.xsl" \
"${DB5_XSLT_URL}xhtml/docbook.xsl"; do
AC_MSG_CHECKING([for $XSLT])
if AC_RUN_LOG([$XMLCATALOG --noout "$root_catalog" "$XSLT" >&2]); then
AC_MSG_RESULT([yes])
HAVE_DOCBOOK_5_STYLESHEETS=1
else
AC_MSG_RESULT([no])
fi
done
if test -z "$HAVE_DOCBOOK_5_STYLESHEETS"; then
HAVE_DOCBOOK_5_STYLESHEETS=0
AC_MSG_WARN([DocBook ns stylesheets not found])
fi
dnl -------------------------------------------------------------------------
dnl Check which Stylesheets to use
AM_CONDITIONAL([HAS_DAPS_XSL], [test -d $daps_xsl])
dnl -------------------------------------------------------------------------
dnl Add more distributions if needed
AM_CONDITIONAL([DIST_REDHAT], [grep -E -iq "^NAME=\"?(fedora|redhat)\"?" /etc/os-release])
AM_CONDITIONAL([DIST_SUSE], [grep -E -iq "^NAME=\"?(opensuse|sles|sled)\"?" /etc/os-release])
AM_CONDITIONAL([DIST_DEBIAN], [grep -E -iq "^NAME=\"?(ubuntu|debian)\"?" /etc/os-release])
dnl -------------------------------------------------------------------------
dnl Set a conditional to determine whether ADOC is supported
AM_CONDITIONAL([HAS_ASCIIDOCTOR], [test 0 != $ASCIIDOCTOR])
dnl No distribution-specific info in the BuildService
dnl /var/adm/fillup-templates is SUSE-specific
AM_CONDITIONAL([DIST_SUSEBS], [test -d /var/adm/fillup-templates])
dnl -------------------------------------------------------------------------
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_CONFIG_FILES([doc/xml/entity-decl.ent])
AC_OUTPUT
AC_MSG_RESULT([
dnl ###########################################################################
DAPS $DAPS_VERSION is configured as follows. Please verify that this configuration matches
your expectations.
Supported features
------------------
* DocBook 4/5 support * man pages output
* HTML/single HTML output * webhelp output (experimental)
* ePUB output * png and jpg images
Optional features
-----------------
Feature | Enabled | Action to enable
..............................................................................])
test 0 = "$HAVE_DOCBOOK_5_STYLESHEETS" && DB5=0
test 0 = "$HAVE_JING" && DB5=0
dnl DocBook 5
if test 0 = "$HAVE_DOCBOOK_50"; then
AC_MSG_RESULT([DocBook 5.0 support | no | install DocBook 5.0, the
| | DocBook 5 XSL stylesheets,
| | and jing
])
else
AC_MSG_RESULT([DocBook 5.0 support | yes |])
fi
if test 0 = "$HAVE_DOCBOOK_51"; then
AC_MSG_RESULT([DocBook 5.1 support | no | install DocBook 5.1, the
| | DocBook 5 XSL stylesheets,
| | and jing
])
else
AC_MSG_RESULT([DocBook 5.1 support | yes |])
fi
dnl AsciiDoc support
if test 0 = "$ASCIIDOCTOR"; then
AC_MSG_RESULT([Support AsciiDoc sources | no | install asciidoctor
| | rubygem])
else
AC_MSG_RESULT([Support AsciiDoc sources | yes |])
fi
dnl Create ASCII (w3m)
if test 0 = "$W3M"; then
AC_MSG_RESULT([Create ASCII txt output | no | install w3m])
else
AC_MSG_RESULT([Create ASCII txt output | yes |])
fi
dnl Create PDFs (fop, xep)
if test 0 = "$PDFFORMATTER"; then
AC_MSG_RESULT([Create PDF output | no | install a formatter (fop or xep)
])
else
AC_MSG_RESULT([Create PDF output | yes |])
fi
dnl DIA support
if test 0 = "$DIA"; then
AC_MSG_RESULT([Support for .dia images | no | install dia])
else
AC_MSG_RESULT([Support for .dia images | yes |])
fi
dnl DITAA support
if test 0 = "$DITAA"; then
AC_MSG_RESULT([Support for .ditaa images | no | install ditaa])
else
AC_MSG_RESULT([Support for .ditaa images | yes |])
fi
dnl ODG support
if test 0 = "$OODRAW"; then
AC_MSG_RESULT([Support for .odg images | no | install LibreOffice (Draw)])
else
AC_MSG_RESULT([Support for .odg images | yes |])
fi
dnl SVG support
if test 0 = "$INKSCAPE" -o 0 = "$HAVE_SVGDTD"; then
AC_MSG_RESULT([Support for .svg images | no | install inkscape and/or the SVG DTD])
else
AC_MSG_RESULT([Support for .svg images | yes |])
fi
dnl Optimize PNGs (optipng)
if test 0 = "$OPTIPNG"; then
AC_MSG_RESULT([Size optimization for .png | no | install optipng])
else
AC_MSG_RESULT([Size optimization for .png | yes |])
fi
dnl Linkchecker (checkbot)
if test 0 = "$CHECKBOT"; then
AC_MSG_RESULT([Check links in XML sources | no | install checkbot])
else
AC_MSG_RESULT([Check links in XML sources | yes |])
fi
dnl Create archives (tar, bzip2)
if test 0 = "$TAR" -o 0 = "$BZIP"; then
AC_MSG_RESULT([Create distributable archives | no | install tar and/or bzip2])
else
AC_MSG_RESULT([Create distributable archives | yes |])
fi
dnl Validate ePUBs (epubcheck)
if test 0 = "$EPUBCHECK"; then
AC_MSG_RESULT([Validate generated ePUB files | no | install epubcheck])
else
AC_MSG_RESULT([Validate generated ePUB files | yes |])
fi
dnl PDF font summary (pdffonts)
if test 0 = "$PDFFONTS"; then
AC_MSG_RESULT([Show fonts not embedded in PDFs | no | install poppler utilities/tools
])
else
AC_MSG_RESULT([Show fonts not embedded in PDFs | yes |])
fi
dnl Enhanced Debugging (remake)
if test 0 = "$REMAKE"; then
AC_MSG_RESULT([Enhanced debugging | no | install remake])
else
AC_MSG_RESULT([Enhanced debugging | yes |])
fi
dnl Evil magic
eval "eval SYSCONFDIR=$sysconfdir/daps"
eval "eval DATADIR=$datadir/daps"
eval "eval BINDIR=$bindir"
eval "eval DOCDIR=$docdir"
AC_MSG_RESULT([
DAPS will be installed into the following paths:
------------------------------------------------
Executables : $BINDIR
System wide config files: $SYSCONFDIR
Documentation : $DOCDIR
Everything else : $DATADIR
])