]> git.saurik.com Git - apt.git/blame_incremental - buildlib/environment.mak.in
Use --add-location=file for po/ and doc/po
[apt.git] / buildlib / environment.mak.in
... / ...
CommitLineData
1# This file contains everything that autoconf guessed for your system.
2# if you want you can edit it, just don't re-run configure.
3
4PACKAGE = @PACKAGE@
5PACKAGE_VERSION = @PACKAGE_VERSION@
6PACKAGE_MAIL = @PACKAGE_MAIL@
7
8# C++ compiler options
9CC = @CC@
10CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2
11CXX = @CXX@ -std=c++11
12CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra
13CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations
14CXXFLAGS+= -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef
15# suggests methods which already have such an attribute
16#CXXFLAGS+= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
17# gcc reports currently lots of them at the end of file - unknown reason
18CXXFLAGS+= -Wno-deprecated-declarations
19# sanitize options to be enabled for testing
20#CXXFLAGS+= -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
21# a bit too pedantic to be run by default
22#CXXFLAGS+= -Wpedantic -Wno-long-long -Wno-vla -Wno-variadic-macros
23NUM_PROCS = @NUM_PROCS@
24
25# Linker stuff
26PICFLAGS+= -fPIC -DPIC
27LFLAGS+= @LDFLAGS@
28LEFLAGS+=
29SOCKETLIBS:= @SOCKETLIBS@
30AR:=@AR@
31RANLIB:=@RANLIB@
32
33# Dep generation - this only works for gnu stuff
34GCC3DEP = @GCC3DEP@
35INLINEDEPFLAG = -MD
36
37DOXYGEN = @DOXYGEN@
38W3M = @W3M@
39
40# xsltproc for the man pages and documentation
41XSLTPROC := @XSLTPROC@
42
43# DocBook XML
44DOCBOOK = $(XSLTPROC) --nonet --novalid --xinclude
45DOCBOOK2TEXT = $(W3M) -o display_charset=UTF-8 -no-graph -T text/html \
46 -cols 78 -dump
47
48# po4a for the man pages
49PO4A := @PO4A@
50
51# Gettext settings
52GMSGFMT = @GMSGFMT@
53XGETTEXT = @XGETTEXT@
54MSGCOMM:=$(dir $(XGETTEXT))/msgcomm
55MSGMERGE:=$(dir $(XGETTEXT))/msgmerge
56BASH = @BASH@
57
58# Various library checks
59PTHREADLIB = @PTHREADLIB@
60PYTHONLIB = @PYTHONLIB@
61PYTHONVER = @PYTHONVER@
62PYTHONPREFIX = @PYTHONPREFIX@
63PYTHONEXECPREFIX = @PYTHONEXECPREFIX@
64PYTHONINCLUDE = @PYTHONINCLUDE@
65BDBLIB = @BDBLIB@
66INTLLIBS = @INTLLIBS@
67
68# Shim Headerfile control
69HAVE_STATVFS = @HAVE_STATVFS@
70HAVE_ZLIB = @HAVE_ZLIB@
71HAVE_BZ2 = @HAVE_BZ2@
72HAVE_LZMA = @HAVE_LZMA@
73NEED_SOCKLEN_T_DEFINE = @NEED_SOCKLEN_T_DEFINE@
74
75# Shared library things
76HOST_OS = @host_os@
77ifneq ($(words $(filter gnu% linux-gnu% kfreebsd-gnu% %-gnu,$(HOST_OS))),0)
78 SONAME_MAGIC=-Wl,-soname -Wl,
79 LFLAGS_SO=
80else
81 # Do not know how to create shared libraries here.
82 ONLYSTATICLIBS = yes
83endif