tests: update expect file for u_direct_io
[e2fsprogs.git] / MCONFIG.in
blob3fede36df4c2e57f253a677677c8ca41a80ff758
1 # Beginning of file MCONFIG
3 all::
5 all-static::
7 check::
9 fullcheck::
11 SHELL = /bin/sh
13 COMPRESS_EXT = gz bz2 bz Z
15 prefix = @prefix@
16 root_prefix = @root_prefix@
17 exec_prefix = @exec_prefix@
18 root_bindir = @root_bindir@
19 root_sbindir = @root_sbindir@
20 root_libdir = @root_libdir@
21 datarootdir = @datarootdir@
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libdir = @libdir@
25 datadir= @datadir@
26 localedir = $(datadir)/locale
27 root_sysconfdir= @root_sysconfdir@
28 includedir = @includedir@
29 mandir = @mandir@
30 man1dir = $(mandir)/man1
31 man3dir = $(mandir)/man3
32 man5dir = $(mandir)/man5
33 man8dir = $(mandir)/man8
34 infodir = @infodir@
35 datadir = @datadir@
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkglibdir = $(libdir)/e2fsprogs
39 HAVE_UDEV = @have_udev@
40 UDEV_RULES_DIR = @pkg_udev_rules_dir@
41 HAVE_CROND = @have_crond@
42 CROND_DIR = @crond_dir@
43 HAVE_SYSTEMD = @have_systemd@
44 SYSTEMD_SYSTEM_UNIT_DIR = @systemd_system_unit_dir@
46 @SET_MAKE@
48 @ifGNUmake@ V =
49 @ifGNUmake@ ifeq ($(strip $(V)),)
50 @ifGNUmake@ #  E = @echo
51 @ifGNUmake@ #  ES = echo
52 @ifGNUmake@ #  Q = @
53 @ifGNUmake@    E = @E@
54 @ifGNUmake@    ES = @ES@
55 @ifGNUmake@    Q = @Q@
56 @ifGNUmake@ else
57 @ifGNUmake@    E = @\#
58 @ifGNUmake@    ES = \#
59 @ifGNUmake@    Q =
60 @ifGNUmake@ endif
62 @ifNotGNUmake@ E = @E@
63 @ifNotGNUmake@ ES = @ES@
64 @ifNotGNUmake@ Q = @Q@
66 @ifGNUmake@ CHECK=sparse
67 @ifGNUmake@ CHECK_OPTS=-Wsparse-all -Wno-transparent-union -Wno-return-void -Wno-undef -Wno-non-pointer-null
68 @ifGNUmake@ CPPCHECK=cppcheck
69 @ifGNUmake@ CPPCHECK_OPTS=--force --enable=all --quiet
70 @ifGNUmake@ ifeq ("$(C)", "2")
71 @ifGNUmake@   CHECK_CMD=$(CHECK) $(CHECK_OPTS) -Wbitwise -D__CHECK_ENDIAN__
72 @ifGNUmake@   CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
73 @ifGNUmake@ else
74 @ifGNUmake@   ifeq ("$(C)", "1")
75 @ifGNUmake@     CHECK_CMD=$(CHECK) $(CHECK_OPTS)
76 @ifGNUmake@     CPPCHECK_CMD=$(CPPCHECK) $(CPPCHECK_OPTS)
77 @ifGNUmake@    else
78 @ifGNUmake@     CHECK_CMD=@true
79 @ifGNUmake@     CPPCHECK_CMD=@true
80 @ifGNUmake@   endif
81 @ifGNUmake@ endif
83 @ifNotGNUmake@ CHECK_CMD=true
84 @ifNotGNUmake@ CPPCHECK_CMD=true
86 SANITIZER_CFLAGS = @lto_cflags@ @ubsan_cflags@ @addrsan_cflags@ @threadsan_cflags@
87 SANITIZER_LDFLAGS = @lto_ldflags@ @ubsan_ldflags@ @addrsan_ldflags@ @threadsan_ldflags@
89 CC = @PTHREAD_CC@
90 BUILD_CC = @BUILD_CC@
91 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
92 PTHREAD_LIBS = @PTHREAD_LIBS@
93 CFLAGS = @CFLAGS@
94 CFLAGS_SHLIB = @CFLAGS_SHLIB@
95 CFLAGS_STLIB = @CFLAGS_STLIB@
96 CPPFLAGS = @INCLUDES@
97 ALL_CFLAGS = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
98 ALL_CFLAGS_SHLIB = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS_SHLIB) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
99 ALL_CFLAGS_STLIB = $(CPPFLAGS) $(SANITIZER_CFLAGS) $(CFLAGS_STLIB) $(PTHREAD_CFLAGS) $(CFLAGS_WARN) @DEFS@ $(LOCAL_CFLAGS)
100 LDFLAGS = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS@
101 LDFLAGS_SHLIB = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS_SHLIB@
102 ALL_LDFLAGS = $(LDFLAGS) @LDFLAG_DYNAMIC@
103 LDFLAGS_STATIC = $(SANITIZER_LDFLAGS) $(PTHREAD_CFLAGS) @LDFLAGS_STATIC@
104 BUILD_CFLAGS = $(SANITIZER_CFLAGS) @BUILD_CFLAGS@
105 BUILD_LDFLAGS = $(SANITIZER_LDFLAGS) @BUILD_LDFLAGS@
106 RDYNAMIC = @RDYNAMIC@
107 LINK_BUILD_FLAGS = @LINK_BUILD_FLAGS@
108 LINK_INSTALL_FLAGS = @LINK_INSTALL_FLAGS@
109 RM = @RM@
110 LN = @LN@
111 LN_S = @LN_S@
112 MV = @MV@
113 CP = @CP@
114 CHMOD = @CHMOD@
115 AR = @AR@
116 AWK = @AWK@
117 SED = @SED@
118 PERL = @PERL@
119 RANLIB = @RANLIB@
120 STRIP = @STRIP@
121 LD = $(PURE) @CC@
122 ARUPD = $(AR) r
123 ARGEN = $(AR) rc
124 LDCONFIG = @LDCONFIG@
125 INSTALL_PROGRAM = @INSTALL_PROGRAM@
126 INSTALL_DATA = @INSTALL_DATA@
127 INSTALL_SCRIPT = @INSTALL_SCRIPT@
130 # Library definitions
132 LIB = $(top_builddir)/lib
133 LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
134 LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
135 LIBE2P = $(LIB)/libe2p@LIB_EXT@
136 LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
137 LIBUUID = @LIBUUID@ @SOCKET_LIB@
138 LIBMAGIC = @MAGIC_LIB@
139 LIBFUSE = @FUSE_LIB@
140 LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
141 LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
142 LIBINTL = @LIBINTL@
143 SYSLIBS = @LIBS@ @PTHREAD_LIBS@
144 DEPLIBSS = $(LIB)/libss@LIB_EXT@
145 DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
146 DEPLIBUUID = @DEPLIBUUID@
147 DEPLIBSUPPORT = $(LIB)/libsupport@STATIC_LIB_EXT@
148 DEPLIBBLKID = @DEPLIBBLKID@ @PRIVATE_LIBS_CMT@ $(DEPLIBUUID)
149 TESTENV = LD_LIBRARY_PATH="$(LIB):$${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="$(LIB):$${DYLD_LIBRARY_PATH}"
151 STATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@ @DLOPEN_LIB@
152 STATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@ @SEM_INIT_LIB@
153 STATIC_LIBE2P = $(LIB)/libe2p@STATIC_LIB_EXT@
154 STATIC_LIBEXT2FS = $(LIB)/libext2fs@STATIC_LIB_EXT@
155 STATIC_LIBUUID = @STATIC_LIBUUID@ @SOCKET_LIB@
156 STATIC_LIBSUPPORT = $(LIBINTL) $(LIBSUPPORT)
157 STATIC_LIBBLKID = @STATIC_LIBBLKID@ $(STATIC_LIBUUID)
158 DEPSTATIC_LIBSS = $(LIB)/libss@STATIC_LIB_EXT@
159 DEPSTATIC_LIBCOM_ERR = $(LIB)/libcom_err@STATIC_LIB_EXT@
160 DEPSTATIC_LIBUUID = @DEPSTATIC_LIBUUID@
161 DEPSTATIC_LIBSUPPORT = $(DEPLIBSUPPORT)
162 DEPSTATIC_LIBBLKID = @DEPSTATIC_LIBBLKID@ $(DEPSTATIC_LIBUUID)
164 PROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@ @DLOPEN_LIB@
165 PROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@ @SEM_INIT_LIB@
166 PROFILED_LIBE2P = $(LIB)/libe2p@PROFILED_LIB_EXT@
167 PROFILED_LIBEXT2FS = $(LIB)/libext2fs@PROFILED_LIB_EXT@
168 PROFILED_LIBUUID = @PROFILED_LIBUUID@ @SOCKET_LIB@
169 PROFILED_LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@PROFILED_LIB_EXT@
170 PROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(PROFILED_LIBUUID)
171 DEPPROFILED_LIBSS = $(LIB)/libss@PROFILED_LIB_EXT@
172 DEPPROFILED_LIBCOM_ERR = $(LIB)/libcom_err@PROFILED_LIB_EXT@
173 DEPPROFILED_LIBUUID = @PROFILED_LIBUUID@
174 DEPPROFILED_LIBSUPPORT = $(PROFILED_LIBSUPPORT)
175 DEPPROFILED_LIBBLKID = @PROFILED_LIBBLKID@ $(DEPPROFILED_LIBUUID)
178 # A fast substitution command for fixing up man pages, shell scripts, etc.
180 SUBST_CONF=$(top_builddir)/util/subst.conf
181 SUBSTITUTE= $(top_builddir)/util/subst -f $(SUBST_CONF)
182 SUBSTITUTE_UPTIME= $(top_builddir)/util/subst -t -f $(SUBST_CONF)
183 DEP_SUBSTITUTE= $(top_builddir)/util/subst $(SUBST_CONF)
185 $(top_builddir)/util/subst:
186         cd $(top_builddir)/util ; $(MAKE) subst
189 # Script for generating utf8data.h
191 MKUTF8DATA=$(top_builddir)/util/mkutf8data
193 $(top_builddir)/util/mkutf8data:
194          $(MAKE) -C $(top_builddir)/util mkutf8data
197 # Script for installing symlinks (for shared libraries)
199 $(top_builddir)/util/install-symlink: $(top_srcdir)/util/install-symlink.in \
200                               $(top_builddir)/config.status
201         cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
202         chmod +x $(top_builddir)/util/install-symlink
204 $(top_builddir)/util/symlinks:
205         cd $(top_builddir)/util ; $(MAKE) symlinks
207 INSTALL_SYMLINK = /bin/sh $(top_builddir)/util/install-symlink \
208                         @SYMLINK_RELATIVE@ \
209                         --symlinks=$(top_builddir)/util/symlinks
210 DEP_INSTALL_SYMLINK = $(top_builddir)/util/install-symlink \
211                         $(top_builddir)/util/symlinks
214 # Warning flags
216 # Run make gcc-wall to do a build with warning messages.
219 WFLAGS=         -std=gnu99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE $(WFLAGS_EXTRA) \
220                         -Wall -W -Wwrite-strings -Wpointer-arith \
221                         -Wcast-qual -Wcast-align -Wno-variadic-macros \
222                         -Wstrict-prototypes -Wmissing-prototypes \
223                         -Wformat-security  -Wformat-nonliteral \
224                         -Wmissing-format-attribute -O2 -Wstrict-aliasing \
225                         -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \
226                         -UENABLE_NLS
228 gcc-wall-new:
229         ($(MAKE) CFLAGS_WARN="$(WFLAGS)" > /dev/null) 2>&1
231 gcc-wall:
232         $(MAKE) clean > /dev/null
233         $(MAKE) gcc-wall-new
235 static-check:
236         ($(MAKE) C=1 V=1 CFLAGS="$(ALL_CFLAGS) $(WFLAGS)") 2>&1
238 static-check-all:
239         $(MAKE) clean > /dev/null
240         $(MAKE) static-check
243 # Installation user and groups
245 BINGRP=         bin
246 BINOWN=         bin
247 BINMODE=        555
248 INCGRP=         bin
249 INCOWN=         bin
250 INCMODE=        444
251 LIBOWN=         bin
252 LIBGRP=         bin
253 LIBMODE=        444
254 MANGRP=         bin
255 MANOWN=         bin
256 MANMODE=        444
259 # Autoconf magic...
262 DEP_LIB_MAKEFILES = $(top_srcdir)/lib/Makefile.library \
263         $(top_srcdir)/lib/Makefile.elf-lib  \
264         $(top_srcdir)/lib/Makefile.bsd-lib \
265         $(top_srcdir)/lib/Makefile.darwin-lib \
266         $(top_srcdir)/lib/Makefile.solaris-lib \
267         $(top_srcdir)/lib/Makefile.profile
269 $(top_builddir)/config.status: $(top_srcdir)/configure
270         cd $(top_builddir); ./config.status --recheck
272 $(top_builddir)/MCONFIG: $(top_srcdir)/MCONFIG.in $(top_builddir)/config.status
273         cd $(top_builddir); CONFIG_FILES=MCONFIG ./config.status
275 $(top_builddir)/lib/config.h: $(top_srcdir)/lib/config.h.in \
276                               $(top_builddir)/config.status
277         cd $(top_builddir); CONFIG_FILES=lib/config.h ./config.status
279 $(top_builddir)/lib/dirpaths.h: $(DEP_SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in
280         $(E) "  SUBST $@"
281         $(Q) $(SUBSTITUTE) $(top_srcdir)/lib/dirpaths.h.in $@
283 $(top_builddir)/lib/substitute_sh: $(top_srcdir)/lib/substitute_sh.in \
284                 $(top_builddir)/config.status
285         cd $(top_builddir); CONFIG_FILES=lib/substitute_sh ./config.status
287 $(top_builddir)/util/subst.conf: $(top_srcdir)/util/subst.conf.in \
288                 $(top_builddir)/config.status
289         cd $(top_builddir); CONFIG_FILES=util/subst.conf ./config.status
291 Makefile: $(srcdir)/Makefile.in $(top_builddir)/MCONFIG \
292                 $(DEP_MAKEFILE) $(top_builddir)/config.status
293         cd $(top_builddir); CONFIG_FILES=$(my_dir)/Makefile ./config.status
295 @MAINTAINER_CMT@$(top_srcdir)/configure: $(top_srcdir)/configure.ac
296 @MAINTAINER_CMT@        cd $(top_srcdir) && autoheader && autoconf
298 coverage.txt: Makefile $(SRCS)
299         if test -n "$(SRCS)"; then \
300                 gcov -s $(top_srcdir) -o . $(SRCS) > coverage.txt 2>&1 ; \
301         fi
303 clean::
304         $(RM) -f *.gcda *.gcov *.gcno coverage.txt
307 # Make depend magic...
310 .depend: Makefile $(SRCS) $(top_srcdir)/depfix.sed $(top_srcdir)/wordwrap.pl
311         if test -n "$(SRCS)" ; then \
312                 $(CC) -M $(ALL_CFLAGS) $(DEPEND_CFLAGS) $(SRCS) | \
313                         $(SED) -f $(top_srcdir)/depfix.sed \
314                             -e 's; $(srcdir)/; $$(srcdir)/;g' \
315                             -e 's; $(top_srcdir)/; $$(top_srcdir)/;g' \
316                             -e 's; $(top_builddir)/; $$(top_builddir)/;g' \
317                             -e 's; \./; ;g' \
318                             -e '/^#/d' \
319                             -e '/^ *\\$$/d' | \
320                         $(PERL) $(top_srcdir)/wordwrap.pl > .depend; \
321         else :; fi
323 depend:: .depend
324         if test -n "$(SRCS)" ; then \
325                 sed -e '/^# +++ Dependency line eater +++/,$$d' \
326                         < $(srcdir)/Makefile.in | cat - .depend \
327                         > $(srcdir)/Makefile.in.new; \
328         if cmp -s $(srcdir)/Makefile.in $(srcdir)/Makefile.in.new ; then \
329                 $(RM) $(srcdir)/Makefile.in.new ; \
330         else \
331                 $(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
332                 $(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
333         fi ; else :; fi
335 # End of file MCONFIG