]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - MCONFIG.in
Fix Debian FTBFS problem caused by devmapper library using pthreads
[thirdparty/e2fsprogs.git] / MCONFIG.in
1 # Beginning of file MCONFIG
2
3 all::
4
5 check::
6
7 SHELL = /bin/sh
8
9 COMPRESS_EXT = gz bz2 bz Z
10
11 prefix = @prefix@
12 root_prefix = @root_prefix@
13 exec_prefix = @exec_prefix@
14 root_bindir = @root_bindir@
15 root_sbindir = @root_sbindir@
16 root_libdir = @root_libdir@
17 bindir = @bindir@
18 sbindir = @sbindir@
19 libdir = @libdir@
20 datadir= @datadir@
21 localedir = $(datadir)/locale
22 root_sysconfdir= @root_sysconfdir@
23 includedir = @includedir@
24 mandir = @mandir@
25 man1dir = $(mandir)/man1
26 man3dir = $(mandir)/man3
27 man5dir = $(mandir)/man5
28 man8dir = $(mandir)/man8
29 infodir = @infodir@
30 datadir = @datadir@
31
32 @SET_MAKE@
33
34 CC = @CC@
35 BUILD_CC = @BUILD_CC@
36 DEFS = -DLOCALEDIR=\"$(localedir)\" -DROOT_SYSCONFDIR=\"$(root_sysconfdir)\" @DEFS@
37 CFLAGS = @CFLAGS@
38 CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib @CPPFLAGS@
39 INTL_FLAGS = @INTL_FLAGS@
40 ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
41 $(INTL_FLAGS) $(LINUX_INCLUDE)
42 LDFLAGS = @LDFLAGS@
43 ALL_LDFLAGS = $(LDFLAGS)
44 BUILD_CFLAGS = @BUILD_CFLAGS@
45 BUILD_LDFLAGS = @BUILD_LDFLAGS@
46 RM = @RM@
47 LN = @LN@
48 LN_S = @LN_S@
49 MV = @MV@
50 CP = @CP@
51 CHMOD = @CHMOD@
52 AR = @AR@
53 AWK = @AWK@
54 SED = @SED@
55 PERL = @PERL@
56 RANLIB = @RANLIB@
57 STRIP = @STRIP@
58 LD = $(PURE) @CC@
59 ARUPD = $(AR) r
60 ARGEN = $(AR) rc
61 LDCONFIG = @LDCONFIG@
62 INSTALL_PROGRAM = @INSTALL_PROGRAM@
63 INSTALL_DATA = @INSTALL_DATA@
64 INSTALL_SCRIPT = @INSTALL_SCRIPT@
65 MKINSTALLDIRS = @MKINSTALLDIRS@
66
67 #
68 # Library definitions
69 #
70 DEVMAPPER_LIBS = @DEVMAPPER_LIBS@
71 STATIC_DEVMAPPER_LIBS = @STATIC_DEVMAPPER_LIBS@
72
73 LIB = $(top_builddir)/lib
74 LIBSS = $(LIB)/libss@LIB_EXT@
75 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
76 LIBE2P = $(LIB)/libe2p@LIB_EXT@
77 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
78 LIBUUID = $(LIB)/libuuid@LIB_EXT@ @SOCKET_LIB@
79 LIBBLKID = $(LIB)/libblkid@LIB_EXT@
80 LIBINTL = @LIBINTL@
81 DEPLIBUUID = $(LIB)/libuuid@LIB_EXT@
82 DEPLIBBLKID = $(LIB)/libblkid@LIB_EXT@
83
84 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
85 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
86 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
87 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
88 STATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@ @SOCKET_LIB@
89 STATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@ $(STATIC_DEVMAPPER_LIBS)
90 DEPSTATIC_LIBUUID = $(LIB)/libuuid@STATIC_LIB_EXT@
91 DEPSTATIC_LIBBLKID = $(LIB)/libblkid@STATIC_LIB_EXT@
92
93 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
94 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
95 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
96 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
97 PROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@ @SOCKET_LIB@
98 PROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
99 DEPPROFILED_LIBUUID = $(LIB)/libuuid@PROFILED_LIB_EXT@
100 DEPPROFILED_LIBBLKID = $(LIB)/libblkid@PROFILED_LIB_EXT@
101
102 # An include directive pointing to a directory holding enough linux-like
103 # include files to satisfy some programs here
104 LINUX_INCLUDE=@LINUX_INCLUDE@
105
106 #
107 # A fast substitution command for fixing up man pages, shell scripts, etc.
108 #
109 SUBST_CONF=$(top_builddir)/util/subst.conf
110 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
111 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
112 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
113
114 $(top_builddir)/util/subst:
115 cd $(top_builddir)/util ; $(MAKE) subst
116
117 #
118 # Warning flags
119 #
120 # Run make gcc-wall to do a build with warning messages.
121 #
122 #
123 WFLAGS= -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \
124 -Wall -W -Wwrite-strings -Wpointer-arith \
125 -Wcast-qual -Wcast-align \
126 -Wstrict-prototypes -Wmissing-prototypes \
127 -Wformat-security -Wformat-nonliteral \
128 -Wmissing-format-attribute \
129 -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
130 -UENABLE_NLS
131
132 gcc-wall-new:
133 (make USE_WFLAGS="$(WFLAGS)" > /dev/null) 2>&1 | sed -f $(top_srcdir)/util/gcc-wall-cleanup
134
135 gcc-wall:
136 make clean > /dev/null
137 make gcc-wall-new
138
139 #
140 # Installation user and groups
141 #
142 BINGRP= bin
143 BINOWN= bin
144 BINMODE= 555
145 INCGRP= bin
146 INCOWN= bin
147 INCMODE= 444
148 LIBOWN= bin
149 LIBGRP= bin
150 LIBMODE= 444
151 MANGRP= bin
152 MANOWN= bin
153 MANMODE= 444
154
155 #
156 # Autoconf magic...
157 #
158
159 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.elf-lib \
160 $(top_srcdir)/lib/Makefile.bsd-lib $(top_srcdir)/lib/Makefile.darwin-lib \
161 $(top_srcdir)/lib/Makefile.solaris-lib $(top_srcdir)/lib/Makefile.checker \
162 $(top_srcdir)/lib/Makefile.profile
163
164 $(top_builddir)/config.status: $(top_srcdir)/configure
165 cd $(top_builddir); ./config.status --recheck
166
167 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
168 cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
169
170 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
171 $(top_builddir)/config.status
172 cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
173
174 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
175 $(top_builddir)/config.status
176 cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
177
178 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
179 $(DEP_MAKEFILE) $(top_builddir)/config.status
180 cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
181
182 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.in
183 @MAINTAINER_CMT@ cd $(top_srcdir) && autoconf
184
185 #
186 # Make depend magic...
187 #
188
189 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
190 if test -n "$(SRCS)" ; then \
191 $(CC) -M $(ALL_CFLAGS) $(SRCS) | \
192 $(SED) -f $(top_srcdir)/depfix.sed \
193 -e 's; $(srcdir)/; $$(srcdir)/;g' \
194 -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
195 -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
196 -e 's; \./; ;g' \
197 -e '/^#/d' \
198 -e '/^ *\\$$/d' | \
199 $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
200 else :; fi
201
202 depend:: .depend
203 if test -n "$(SRCS)" ; then \
204 sed -e '/^# +++ Dependency line eater +++/,$$d' \
205 < $(srcdir)/Makefile.in | cat - .depend \
206 > $(srcdir)/Makefile.in.new; \
207 if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
208 $(RM) $(srcdir)/Makefile.in.new ; \
209 else \
210 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
211 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
212 fi ; else :; fi
213
214 # End of file MCONFIG