]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/builddefs.in
build: Add fls check into autoconf
[thirdparty/xfsprogs-dev.git] / include / builddefs.in
CommitLineData
2bd0ea18 1#
82805b60 2# Copyright (c) 2004-2006 Silicon Graphics, Inc.
f302e9e4 3# All Rights Reserved.
dfc130f3 4#
f302e9e4
NS
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
2bd0ea18 7# published by the Free Software Foundation.
dfc130f3 8#
2bd0ea18
NS
9# This program is distributed in the hope that it would be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
dfc130f3 12#
f302e9e4
NS
13# You should have received a copy of the GNU General Public License
14# along with this program; if not, write the Free Software Foundation,
15# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2bd0ea18
NS
16#
17# @configure_input@
18#
19
6c6508ec
NS
20ifndef _BUILDDEFS_INCLUDED_
21_BUILDDEFS_INCLUDED_ = 1
286ceebb 22
2bd0ea18
NS
23DEBUG = @debug_build@
24OPTIMIZER = @opt_build@
25MALLOCLIB = @malloc_lib@
4d32d744 26LOADERFLAGS = @LDFLAGS@
717e6142 27LTLDFLAGS = @LDFLAGS@
c121166e 28CFLAGS = @CFLAGS@
2bd0ea18 29
6ec3f6ba 30LIBRT = @librt@
639231be 31LIBUUID = @libuuid@
949c0f10 32LIBPTHREAD = @libpthread@
541a1d4f 33LIBTERMCAP = @libtermcap@
d4b9ebda 34LIBEDITLINE = @libeditline@
e246ba5f 35LIBREADLINE = @libreadline@
e4da9941 36LIBBLKID = @libblkid@
f937adac 37LIBXFS = $(TOPDIR)/libxfs/libxfs.la
3d93ccb7 38LIBXCMD = $(TOPDIR)/libxcmd/libxcmd.la
d321ceac 39LIBXLOG = $(TOPDIR)/libxlog/libxlog.la
f937adac 40LIBHANDLE = $(TOPDIR)/libhandle/libhandle.la
fc49813f 41
9440d84d 42PKG_NAME = @pkg_name@
93d9f139
NS
43PKG_USER = @pkg_user@
44PKG_GROUP = @pkg_group@
9440d84d
NS
45PKG_RELEASE = @pkg_release@
46PKG_VERSION = @pkg_version@
47PKG_PLATFORM = @pkg_platform@
48PKG_DISTRIBUTION= @pkg_distribution@
595e27db
CH
49
50prefix = @prefix@
51exec_prefix = @exec_prefix@
52datarootdir = @datarootdir@
53top_builddir = @top_builddir@
54
9440d84d 55PKG_SBIN_DIR = @sbindir@
595e27db
CH
56PKG_ROOT_SBIN_DIR = @root_sbindir@
57PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@
82805b60 58PKG_LIB_DIR = @libdir@@libdirsuffix@
9440d84d 59PKG_INC_DIR = @includedir@/xfs
595e27db 60DK_INC_DIR = @includedir@/disk
9440d84d
NS
61PKG_MAN_DIR = @mandir@
62PKG_DOC_DIR = @datadir@/doc/@pkg_name@
63PKG_LOCALE_DIR = @datadir@/locale
2bd0ea18 64
9440d84d 65CC = @cc@
e14913c1 66BUILD_CC = @BUILD_CC@
9440d84d
NS
67AWK = @awk@
68SED = @sed@
69TAR = @tar@
70ZIP = @zip@
71MAKE = @make@
72ECHO = @echo@
16c44ed2 73SORT = @sort@
9440d84d 74LN_S = @LN_S@
6abbfed5 75SHELL = @SHELL@
9440d84d
NS
76LIBTOOL = @LIBTOOL@
77MAKEDEPEND = @makedepend@
78
79MSGFMT = @msgfmt@
80MSGMERGE = @msgmerge@
1b758ea9 81XGETTEXT = @xgettext@
8c053393 82LOCALIZED_FILES = @LOCALIZED_FILES@
9440d84d
NS
83
84RPM = @rpm@
85RPMBUILD = @rpmbuild@
86RPM_VERSION = @rpm_version@
f937adac 87
82805b60
TS
88ENABLE_SHARED = @enable_shared@
89ENABLE_GETTEXT = @enable_gettext@
90ENABLE_EDITLINE = @enable_editline@
91ENABLE_READLINE = @enable_readline@
92
9440d84d
NS
93HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
94
0bba1a49
NS
95HAVE_FADVISE = @have_fadvise@
96HAVE_MADVISE = @have_madvise@
97HAVE_MINCORE = @have_mincore@
98HAVE_SENDFILE = @have_sendfile@
cfe6e3f0
NS
99HAVE_GETMNTENT = @have_getmntent@
100HAVE_GETMNTINFO = @have_getmntinfo@
c0b5232a 101HAVE_FALLOCATE = @have_fallocate@
8f0e0912 102HAVE_FIEMAP = @have_fiemap@
197d5828
ES
103HAVE_PREADV = @have_preadv@
104HAVE_SYNC_FILE_RANGE = @have_sync_file_range@
3bc05641 105HAVE_READDIR = @have_readdir@
5ae294ea 106HAVE_MNTENT = @have_mntent@
5121281b 107HAVE_FLS = @have_fls@
0bba1a49 108
5e656dbb
BN
109GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall
110# -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl
d3a8db8a 111
9440d84d 112ifeq ($(PKG_PLATFORM),linux)
52b83345 113PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS)
cd960ece
MS
114ifeq ($(HAVE_UMODE_T),yes)
115PCFLAGS += -DHAVE_UMODE_T
116endif
d931d17e 117DEPENDFLAGS = -D__linux__
93d9f139 118endif
2ee06c8d
PS
119ifeq ($(PKG_PLATFORM),gnukfreebsd)
120PCFLAGS = -D_GNU_SOURCE $(GCCFLAGS)
121endif
93d9f139 122ifeq ($(PKG_PLATFORM),darwin)
96f2cfb2 123PCFLAGS = $(GCCFLAGS)
d931d17e 124DEPENDFLAGS = -D__APPLE__
9440d84d 125endif
93d9f139
NS
126ifeq ($(PKG_PLATFORM),irix)
127PLDLIBS = -ldisk -lgen
d931d17e 128DEPENDFLAGS = -D__sgi__
93d9f139 129endif
4f1631ae
RC
130ifeq ($(PKG_PLATFORM),freebsd)
131PLDLIBS = -L/usr/local/lib -lintl
d3a8db8a 132PCFLAGS = -I/usr/local/include $(GCCFLAGS)
d931d17e 133DEPENDFLAGS = -D__FreeBSD__
4f1631ae 134endif
5121281b
JT
135ifeq ($(HAVE_FLS),yes)
136LCFLAGS+= -DHAVE_FLS
137endif
5ae294ea
JT
138ifeq ($(HAVE_MNTENT),yes)
139PCFLAGS+= -DHAVE_MNTENT
140endif
9440d84d 141
d3a8db8a 142GCFLAGS = $(OPTIMIZER) $(DEBUG) \
062998e3 143 -DVERSION=\"$(PKG_VERSION)\" -DLOCALEDIR=\"$(PKG_LOCALE_DIR)\" \
6b803e5a 144 -DPACKAGE=\"$(PKG_NAME)\" -I$(TOPDIR)/include -I$(TOPDIR)/libxfs
f937adac 145
e84ec15d
AM
146ifeq ($(ENABLE_GETTEXT),yes)
147GCFLAGS += -DENABLE_GETTEXT
148endif
149
1bdd986b
NS
150# First, Global, Platform, Local CFLAGS
151CFLAGS += $(FCFLAGS) $(GCFLAGS) $(PCFLAGS) $(LCFLAGS)
2bd0ea18 152
3ded4129 153include $(TOPDIR)/include/buildmacros
286ceebb
NS
154
155endif
156
157#
158# For targets that should always be rebuilt,
159# define a target that is never up-to-date.
160# Targets needing this should depend on $(_FORCE)
161_FORCE = __force_build