Age | Commit message (Collapse) | Author |
|
This represents the location of the app-defaults directory
Used in app/bitmap/man for example.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Add STYLESHEET_SRCDIR for directory location
and XSL_STLESHEET for the name of the xorg style sheet
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The xmlto program has dependencies when converting docbook XML
to text format. It requires either lynx, links or w3m
text web browsers.
Users want to skip the text format to avoid having to install these.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Groff uses grohtml to generate html output format. This program, in turn,
uses a number of pnm* commands from the netpbm package, psselect
from the psutils package and the ghostscript package.
These are independently installed, so they could be missing.
A check is made to ensure those dependencies are installed.
If not, the makefile can use the conditional to supress the target.
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The sed command is required to create the man pages.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
It will replace the 155 copies in package makefiles
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
XORG_LINT_LIBRARY has implementations dependencies on XORG_WITH_LINT
The library name can no longer be set by overloading the semantic
of --enable-lint-library.
If this function is required it should be added using an AC_ARG_VAR.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Guess the lint program name by platform.
Use ARG variable for user input values.
Provide default flags per platform.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
All modules install something.
This makes it clear it can removed from modules config.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Calling AC_PROG_CC before AC_PROG_CC_C99 is not required.
C99 is not an add-on to CC although either one will cache results
than can be used by the other.
This is effectively a no-op. Note that if a module configure.ac
file calls AC_PROG_CC after AC_PROG_CC_C99, the compiler will be reset
to ISO_C89 from ISO_C99.
Currently about half the xorg modules use C89 while the other half use C99.
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Besides reusing existing code, this allows linuxdoc PDF output to be
enabled or disabled by configure.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Remove backspace-overstrikes from the intermediate
form generated by groff.
These appear as blocks in some text editors and as ^H in vi.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Trying to find X11/defs.ent with AC_CHECK_FILE does not work when
cross-compiling, and the check assumed that xorg-sgml-doctools is
installed to the same prefix which need not always be the case.
xorg-sgml-doctools 1.4 provides a pkg-config file which we can use
instead, fixing both those cases. This macro is provided in util-macros
instead of with xorg-sgml-doctools, otherwise the latter would become a
hard dependency just to run autoreconf.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The message should start with a lowercase letter.
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Adds an optional parameter to XORG_WITH_DOXYGEN to enforce a minimum
version needed like the asciidoc version check.
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Adds an optional parameter to XORG_WITH_XMLTO to enforce a minimum
version needed like the asciidoc version check.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Adds an optional parameter to XORG_WITH_ASCIIDOC to enforce a minimum
version needed.
Tested-by: Gaetan Nadon <memsize@videotron.ca>
Tested-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Custom silent rules will become recursive on older automake where
AM_SILENT_RULES is not included. Set AM_DEFAULT_VERBOSITY in this
fallback case for compatibility.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This m4 statement does not belong in the macro for compiler
warning flags. It is more appropriate to group it with the macro
providing default options for X.Org modules.
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Identical to XORG_ENABLE_DOCS, this macros allows modules
to classify docs per type and selectively control their building.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
OS and distros often splits groff in a basic and full package, the former
having the groff program and the later having devices, fonts and macros
Checking for the groff executable is not enough.
Use HAVE_GROFF if you do not use -ms or -mm
Use HAVE_GROFF_MS and/or HAVE_GROFF_MM otherwise
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This macro is intended for modules to control, in a single option,
the building of the documentaion. Using --enable-docs=no, all
documentation is skipped, regardless of the tool used to build it.
It should be used in conjunction with other XORG_WITH_* macros
which handle cases where some specific tool is not available.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Identical to XMLTO, DOXYGEN and ASCIIDOC.
Allow platform builders to selectively turn off tools that
are not present or back level. Matching documentation target
will be shipped.
For example, --without-fop will skip the pdf format while
allowing other formats to proceed.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This will include -Wformat-security to catch possible security problems in formatting in printf, scanf, etc.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
|
|
Based on XORG_WITH_XMLTO
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This also allow to configure with --without-xmlto to ignore
a 3rd party xmlto tool on systems that normally don't have it,
in order to have reproducable builds.
Reviewed-by: Rémi Cardona <remi@gentoo.org>
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
docdir stays in xorg-macros.pc so we don't break the existing
$(INSTALL_CMD).
Tested-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
When cross-compiling, AC_RUN_IFELSE can't run test programs.
MALLOC_ZERO_RETURNS_NULL=yes is a conservative default in this case.
Signed-off-by: Colin Watson <cjwatson@canonical.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
This is motivated primarly by XORG_INSTALL who needs to locate
the docdir when invoked from any module that may not be installed
using same prefix (default or otherwise).
There are other potential use for this file.
|
|
The Makefile installs INSTALL in share/doc/util-macros
An INSTALL_CMD is provided in the new XORG_INSTALL macro
which is added to XORG_DEFAULT_OPTIONS.
Components add INSTALL target to their Makefile similar to ChangeLog
|
|
When checking for warnings in any module using XORG_RELEASE_VERSION
one or more warnings on AC_HELP_STRING appears. The macro has been
replaced with AS_HELP_STRING
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Many modules use the same set of m4 macros. Additions to the macros require
updating the configure.ac for each module affected. In the case of e.g.
protos and libs this means updating every single module.
This patch adds a XORG_DEFAULT_OPTIONS meta-macro that uses the other macros
defined. Macros can be added to this meta-macro and modules immediately get
to make use of it - without changes required to configure.ac.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Strict compilation option can be used to get rid of warnings that often are
showing real hidden bug in code. That just waits to cause problems.
CWARNFLAGS has to be added to AM_C(PP)FLAGS to use strict compilation mode
in Makefile.am. Automatic addition to compiler flags would cause some configure
checks fail.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Automake 1.11 supports silent builds with the new AM_SILENT_RULES.
http://sources.redhat.com/automake/automake.html#Options
This loosely qualifies as a CWARNFLAG since it allows all the warnings to be
seen and enables modules to gain support from the feature without any
changes needed to configure.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: James Cloos <cloos@jhcloos.com>
|
|
Rather than checking the version of some random gcc which happens to be in
the path to determine which warning flags are supported, we should check the
gcc we are going to use for the build
For example, when cross-compiling, if the host gcc is >= 3.4 but the
cross-compiler gcc is not, this will cause unsupported warning flags to be
used
This seems to work, but I don't know enough autofoolery to be sure this is
right...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
|
Check the needed macros version with m4 so that the proper version is
determined during autoconf. This prevents a faulty configure from being
generated.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
The 1.1 or later part is actually important since XORG_MACROS_VERSION
didn't exist before then.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
The comment recommending checking XORG_MACROS_VERSION with m4_ifndef was
flawed for two reasons:
* m4_fatal should be used if the macro is not defined. There's no use
generating configure if the macro doesn't exist. Just fail during
autoconf.
* There's no reason to mention the version needed in the message. That
check does not do version verification. That's what the actual macro
is for.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
|
|
Fixes:
./configure: line 12921: CWARNFLAGS+= -Wold-style-definition -Wdeclaration-after-statement: command not found
|
|
Only gcc 3.3 and earlier version don't support them.
Reported and tested by Peter Breitenlohner.
|
|
|
|
|
|
Patch by Yaakov Selkowitz from xorg mailing list
http://lists.freedesktop.org/archives/xorg/attachments/20081016/04a64242/attachment.asc
|
|
|
|
append xorgversion.m4 to xorg-macros.m4.in, instead of installing
it as separate file.
Avoid copying some code from xorgversion.m4 to configure.ac.
|
|
As AC_CHECK_FILE cannot be used when cross compiling, just assume linuxdoc
is not present.
|