]> git.ipfire.org Git - thirdparty/util-linux.git/blame - configure.ac
ionice: add a note about none class and CFQ
[thirdparty/util-linux.git] / configure.ac
CommitLineData
29e107aa 1AC_INIT(util-linux-ng, 2.16, kzak@redhat.com)
baf39af1 2
7fc9786b 3AC_PREREQ(2.60)
48d7b13a
KZ
4
5AC_CONFIG_AUX_DIR(config)
b12991dd 6AC_CONFIG_MACRO_DIR([m4])
48d7b13a 7
42d2a7ba 8AM_INIT_AUTOMAKE([check-news -Wall foreign 1.9 dist-bzip2])
48d7b13a 9
eb35c251
GJ
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
11 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
12
48d7b13a
KZ
13AC_CONFIG_SRCDIR(mount/mount.c)
14
15a9b48c
SK
15AC_PREFIX_DEFAULT([/usr])
16
a77bfc3a 17GTK_DOC_CHECK([1.10])
1e018c15
KZ
18AC_PATH_PROG([XSLTPROC], [xsltproc])
19
33b0be6d
KZ
20dnl version details from <major>.<minor>[-<suffix>]
21PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
22PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
23 | awk -F- '{print $1}')
24PACKAGE_VERSION_RELEASE=0
a0948ffe 25
33b0be6d
KZ
26dnl libblkid version
27LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
28LIBBLKID_DATE="10-Feb-2009"
dc2b8d87
KZ
29LIBBLKID_LT_MAJOR=1
30LIBBLKID_LT_MINOR=1
31LIBBLKID_LT_MICRO=0
32LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
a0948ffe 33
f6076f55
KZ
34dnl libuuid version
35LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
dc2b8d87
KZ
36LIBUUID_LT_MAJOR=1
37LIBUUID_LT_MINOR=3
38LIBUUID_LT_MICRO=0
39LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
f6076f55 40
15a9b48c
SK
41# Check whether exec_prefix=/usr:
42case $exec_prefix:$prefix in
43NONE:NONE | NONE:/usr | /usr:*)
44 AC_MSG_NOTICE([Default --exec-prefix detected.])
45 case $bindir in
46 '${exec_prefix}/bin') bindir=/bin
47 AC_MSG_NOTICE([ --bindir defaults to /bin]) ;;
48 esac
49 case $sbindir in
50 '${exec_prefix}/sbin') sbindir=/sbin
51 AC_MSG_NOTICE([ --sbindir defaults to /sbin]) ;;
971f57f6
KZ
52 esac
53 case $libdir in
54 '${exec_prefix}/lib') libdir=/lib
55 AC_MSG_NOTICE([ --libdir defaults to /lib]) ;;
15a9b48c
SK
56 esac ;;
57esac
48d7b13a 58
cb5212e2 59libdirname=`basename "$libdir"`
b0a0d7d5
KZ
60AC_SUBST([libdirname])
61
996fb358 62# The original default values of {bin,sbin,lib}dir
aaf3e8f5 63usrbin_execdir='${exec_prefix}/bin'
30688dde 64AC_SUBST([usrbin_execdir])
996fb358 65
aaf3e8f5 66usrsbin_execdir='${exec_prefix}/sbin'
30688dde 67AC_SUBST([usrsbin_execdir])
996fb358 68
aaf3e8f5 69usrlib_execdir='${exec_prefix}/'$libdirname
30688dde 70AC_SUBST([usrlib_execdir])
996fb358
KZ
71
72
48d7b13a 73AC_PROG_CC_STDC
240f7101 74AC_GNU_SOURCE
a6996860 75AC_CANONICAL_HOST
85b4c147 76AC_C_CONST
e79829db 77AC_C_VOLATILE
fbaec83b 78AC_C_BIGENDIAN
b12991dd
KZ
79
80dnl libtool-2
81LT_INIT
48d7b13a 82
d06d028a
KZ
83PKG_PROG_PKG_CONFIG
84
8c182554
KZ
85linux_os=no
86case ${host_os} in
87 *linux*)
88 linux_os=yes
89 ;;
90esac
49ccbae6 91AM_CONDITIONAL([LINUX], test "x$linux_os" = xyes)
8c182554 92
48d7b13a 93AC_PATH_PROG(PERL, perl)
3f5bda01
KZ
94AC_PATH_PROG(BLKID, blkid, [], [$PATH:/sbin])
95AC_PATH_PROG(VOLID, vol_id, [], [$PATH:/lib/udev])
48d7b13a
KZ
96
97AC_SYS_LARGEFILE
98
e460a5bf 99AC_CHECK_HEADERS([linux/compiler.h linux/blkpg.h linux/major.h], [], [], [
48d7b13a
KZ
100#ifdef HAVE_LINUX_COMPILER_H
101#include <linux/compiler.h>
102#endif
103])
bf962c0a 104AC_CHECK_HEADERS(
a0948ffe
KZ
105 [err.h \
106 errno.h \
107 getopt.h \
bf962c0a 108 langinfo.h \
a0948ffe
KZ
109 linux/fd.h \
110 linux/tiocl.h \
111 linux/version.h \
8b7f16fc 112 locale.h \
754fed0c
KZ
113 stdint.h \
114 inttypes.h \
a0948ffe 115 pty.h \
607c2a72 116 mntent.h \
754fed0c
KZ
117 net/if.h \
118 net/if_dl.h \
119 netinet/in.h \
bf962c0a 120 rpcsvc/nfs_prot.h \
a0948ffe
KZ
121 scsi/scsi.h \
122 stdlib.h \
123 sys/disk.h \
124 sys/disklabel.h \
125 sys/ioctl.h \
bf962c0a 126 sys/io.h \
754fed0c 127 sys/time.h \
a0948ffe
KZ
128 sys/mkdev.h \
129 sys/prctl.h \
130 sys/queue.h \
754fed0c
KZ
131 sys/sockio.h \
132 sys/file.h \
133 sys/ioctl.h \
a0948ffe
KZ
134 sys/stat.h \
135 sys/types.h \
754fed0c 136 sys/un.h \
a0948ffe 137 sys/user.h \
754fed0c 138 sys/resource.h \
a0948ffe 139 unistd.h ])
fd67be31
SK
140AC_CHECK_HEADERS([linux/raw.h],
141 [AM_CONDITIONAL([HAVE_RAW], [true])],
142 [AM_CONDITIONAL([HAVE_RAW], [false])])
48d7b13a 143
a88057d9
TP
144AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
145
bf962c0a
SK
146AC_CHECK_FUNCS(
147 [inet_aton \
148 fsync \
149 getdomainname \
e27a08ab 150 get_current_dir_name \
437fa54f 151 usleep \
bf962c0a
SK
152 nanosleep \
153 personality \
154 updwtmp \
3ac22f7a 155 jrand48 \
bf962c0a 156 lchown \
a0948ffe
KZ
157 llseek \
158 lseek64 \
159 strtoull \
754fed0c
KZ
160 sysconf \
161 getdtablesize \
162 getrlimit \
163 srandom \
69045d3d
KZ
164 setresgid \
165 setresuid \
fc7aeb09 166 inotify_init \
a0948ffe 167 prctl \
acf6ab6f 168 getmntinfo \
a0948ffe 169 __secure_getenv \
bf962c0a 170 rpmatch])
48d7b13a 171AC_FUNC_FSEEKO
48d7b13a 172
940fd28c
KZ
173AC_CHECK_FUNCS([openat fstatat unlinkat], [have_openat=yes], [have_openat=no])
174
754fed0c
KZ
175AC_CHECK_MEMBER(struct sockaddr.sa_len,
176 AC_DEFINE_UNQUOTED(HAVE_SA_LEN,1,[Define if struct sockaddr contains sa_len]),,
177 [#include <sys/types.h>
178 #include <sys/socket.h>])
179
8569410c 180dnl Static compilation
642f01a3 181m4_define([UTIL_STATIC_PROGRAMS], [losetup, mount, umount, fdisk, sfdisk, blkid])
8569410c
SK
182
183AC_ARG_ENABLE([static-programs],
184 [AS_HELP_STRING([--enable-static-programs=LIST],
185 [link static the programs in LIST (comma-separated,
186 supported for ]m4_defn([UTIL_STATIC_PROGRAMS])[)])])
187
188case $enable_static_programs in
189yes) enable_static_programs=m4_quote(UTIL_STATIC_PROGRAMS) ;;
190no) enable_static_programs= ;;
191esac
192
8569410c
SK
193dnl Set all the individual AM_CONDITIONALs
194m4_foreach([UTIL_PRG], m4_defn([UTIL_STATIC_PROGRAMS]), [
195 case ,$enable_static_programs, in
196 *,UTIL_PRG,*) static_[]UTIL_PRG=yes ;;
197 esac
198 AM_CONDITIONAL([HAVE_STATIC_]m4_toupper(UTIL_PRG),
49ccbae6 199 [test "x$static_[]UTIL_PRG" = xyes])
8569410c
SK
200])
201
f910b559
KZ
202dnl UTIL_PKG_STATIC(VARIABLE, MODULES)
203dnl ----------------------------------
204AC_DEFUN([UTIL_PKG_STATIC], [
205 if AC_RUN_LOG([pkg-config --exists --print-errors "$2"]); then
206 $1=`pkg-config --libs --static "$2"`
207 else
208 AC_MSG_ERROR([pkg-config description of $2, needed for static build, is not available])
209 fi
210])
211
40cc242e
KZ
212dnl UTIL_CHECK_LIB(LIBRARY, FUNCTION, [VARSUFFIX = $1]))
213dnl The VARSUFFIX is optional and overrides the default behaviour. For example:
214dnl UTIL_CHECK_LIB(yyy, func, xxx) generates have_xxx and HAVE_LIBXXX
215dnl UTIL_CHECK_LIB(yyy, func) generates have_yyy and HAVE_LIBYYY
fd67be31
SK
216dnl ---------------------------------
217AC_DEFUN([UTIL_CHECK_LIB], [
40cc242e
KZ
218 m4_define([suffix], m4_default([$3],$1))
219 [have_]suffix=yes
220 m4_ifdef([$3],
221 [AC_CHECK_LIB([$1], [$2], [AC_DEFINE(AS_TR_CPP([HAVE_LIB]suffix), 1)], [[have_]suffix=no])],
222 [AC_CHECK_LIB([$1], [$2], [], [[have_]suffix=no])])
223 AM_CONDITIONAL(AS_TR_CPP([HAVE_]suffix), [test [$have_]suffix = yes])
fd67be31 224])
9dc801d2 225
6fed18f2
KZ
226dnl UTIL_SET_FLAGS(CFLAGS, CPPFLAGS, LDFLAGS)
227AC_DEFUN([UTIL_SET_FLAGS], [
228 old_CFLAGS="$CFLAGS"
229 old_CPPFLAGS="$CPPFLAGS"
230 old_LDFLAGS="$LDFLAGS"
231 CFLAGS="$CFLAGS $1"
232 CPPFLAGS="$CPPFLAGS $2"
233 LDFLAGS="$LDFLAGS $3"
234])
235
236dnl UTIL_RESTORE_FLAGS()
237AC_DEFUN([UTIL_RESTORE_FLAGS], [
238 CFLAGS="$old_CFLAGS"
239 CPPFLAGS="$old_CPPFLAGS"
240 LDFLAGS="$old_LDFLAGS"
241])
242
243
3ac22f7a
KZ
244AC_ARG_ENABLE([tls],
245 AS_HELP_STRING([--disable-tls], [disable use of thread local support]),
246 [], enable_tls=yes
247)
248if test "x$enable_tls" = xyes; then
249 AX_TLS
250fi
251
252
f910b559
KZ
253AC_ARG_ENABLE([mount],
254 AS_HELP_STRING([--disable-mount], [do not build mount utilities]),
255 [], enable_mount=check
256)
257build_mount=yes
258if test "x$enable_mount" = xcheck; then
259 if test "x$linux_os" = xno; then
260 AC_MSG_WARN([non-linux system; do not build mount utilities])
261 build_mount=no
262 fi
263elif test "x$enable_mount" = xno; then
264 build_mount=no
265fi
266AM_CONDITIONAL(BUILD_MOUNT, test "x$build_mount" = xyes)
267
268
269AC_ARG_ENABLE([fsck],
6c2a09b3
KZ
270 AS_HELP_STRING([--disable-fsck], [do not build fsck]),
271 [], enable_fsck=yes
f910b559
KZ
272)
273AM_CONDITIONAL(BUILD_FSCK, test "x$enable_fsck" = xyes)
274
275
17afb032
KZ
276AC_ARG_ENABLE([libuuid],
277 AS_HELP_STRING([--disable-libuuid], [do not build libuuid and uuid utilities]),
278 [], enable_libuuid=yes
279)
dc2b8d87
KZ
280AC_SUBST([LIBUUID_VERSION])
281AC_SUBST([LIBUUID_VERSION_INFO])
17afb032
KZ
282AM_CONDITIONAL(BUILD_LIBUUID, test "x$enable_libuuid" = xyes)
283have_uuid=yes
284
285if test "x$enable_libuuid" = xno; then
286 # Check for external (e2fsprogs) libuuid
287 PKG_CHECK_MODULES(UUID, uuid, [have_uuid=yes], [have_uuid=no])
288 if test "x$have_uuid" = xno; then
289 # system without pkg-config or so, try classic check
290 AC_CHECK_LIB(uuid, uuid_is_null, [have_uuid=yes], [have_uuid=no])
291 fi
292 if test "x$have_uuid" = xyes; then
293 UTIL_SET_FLAGS($UUID_CFLAGS, $UUID_CFLAGS, $UUID_LIBS)
294 AC_CHECK_HEADERS([uuid.h uuid/uuid.h], [break], [])
295 UTIL_RESTORE_FLAGS
296 fi
297else
f910b559 298 # internal library
17afb032 299 AC_DEFINE(HAVE_UUID_H, 1, [Define to 1 if you have the <uuid.h> header file.])
9dc801d2
KZ
300fi
301
17afb032
KZ
302if test "x$have_uuid" = xyes; then
303 AC_DEFINE(HAVE_LIBUUID, 1, [Define to 1 if you have the -luuid.])
304else
305 AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs])
306fi
307AM_CONDITIONAL(HAVE_UUID, test "x$have_uuid" = xyes)
308# default
309: ${UUID_LIBS='-luuid'}
48d7b13a 310
d06d028a 311
2ec884ac
KZ
312AC_ARG_ENABLE([uuidd],
313 AS_HELP_STRING([--disable-uuidd], [do not build the uuid daemon]),
314 [], enable_uuidd=auto
315)
316
317case "$enable_uuidd:$have_uuid" in
318yes:no)
319 AC_MSG_ERROR([cannot enable uuidd when libuuid is disabled]) ;;
320auto:*)
321 enable_uuidd=$have_uuid ;;
322esac
323if test "x$enable_uuidd" = xyes; then
324 AC_DEFINE(HAVE_UUIDD, 1, [Define to 1 if you want to use uuid daemon.])
325fi
326AM_CONDITIONAL(BUILD_UUIDD, test "x$enable_uuidd" = xyes)
327
328
f910b559
KZ
329AC_ARG_ENABLE([libblkid],
330 AS_HELP_STRING([--disable-libblkid], [do not build libblkid and blkid utilities]),
331 [], enable_libblkid=yes
40f07ff7 332)
033cf439 333AC_SUBST([LIBBLKID_DATE])
dc2b8d87
KZ
334AC_SUBST([LIBBLKID_VERSION])
335AC_SUBST([LIBBLKID_VERSION_INFO])
f910b559
KZ
336AM_CONDITIONAL(BUILD_LIBBLKID, test "x$enable_libblkid" = xyes)
337AC_DEFINE_UNQUOTED(LIBBLKID_VERSION, "$LIBBLKID_VERSION", [libblkid version string])
338AC_DEFINE_UNQUOTED(LIBBLKID_DATE, "$LIBBLKID_DATE", [libblkid date string])
339have_blkid=yes
340
341if test "x$enable_libblkid" = xno; then
342 if test "x$build_mount" = xyes || test "x$enable_fsck" = xyes; then
343 # Check for external (e2fsprogs) libblkid
344 PKG_CHECK_MODULES(BLKID, blkid, [have_blkid=yes], [have_blkid=no])
345 if test "x$have_blkid" = xno; then
346 # system without pkg-config or so, try classic check
347 AC_CHECK_LIB(blkid, blkid_get_cache, [have_blkid=yes], [have_blkid=no])
348 fi
349 if test "x$have_blkid" = xyes; then
350 UTIL_SET_FLAGS($BLKID_CFLAGS, $BLKID_CFLAGS, $BLKID_LIBS)
351 AC_CHECK_HEADERS([blkid.h blkid/blkid.h], [break], [])
352 UTIL_RESTORE_FLAGS
353 fi
354 if test -n "$enable_static_programs"; then
355 # TODO check only when mount of fsck are requested
356 UTIL_PKG_STATIC([BLKID_LIBS_STATIC], [blkid])
357 fi
7c950efa 358 fi
f910b559
KZ
359else
360 # internal library
361 AC_DEFINE(HAVE_BLKID_H, 1, [Define to 1 if you have the <blkid.h> header file.])
1a70e0cb 362 AC_DEFINE(HAVE_LIBBLKID_INTERNAL, 1, [Define to 1 if you have the in-tree libblkid.])
b446754d
KZ
363fi
364
f910b559 365if test "x$have_blkid" = xyes; then
d06d028a 366 AC_DEFINE(HAVE_LIBBLKID, 1, [Define to 1 if you have the -lblkid.])
7177d32e 367else
f910b559
KZ
368 if test "x$build_mount" = xyes; then
369 AC_MSG_ERROR([libblkid is needed to build util-linux-ng mount])
607c2a72 370 fi
f910b559
KZ
371 if test "x$enable_fsck" = xyes; then
372 AC_MSG_ERROR([libblkid is needed to build util-linux-ng fsck])
64754af9 373 fi
64754af9 374fi
f910b559
KZ
375AM_CONDITIONAL(HAVE_BLKID, test "x$have_blkid" = xyes)
376# default
377: ${BLKID_LIBS='-lblkid -luuid'}
8569410c 378
8569410c 379AC_ARG_VAR([BLKID_LIBS_STATIC], [-l options for linking statically with blkid])
f910b559 380
17afb032
KZ
381UTIL_CHECK_LIB(util, openpty)
382UTIL_CHECK_LIB(termcap, tgetnum)
8569410c 383
8eeb575c 384AM_GNU_GETTEXT_VERSION([0.14.1])
48d7b13a 385AM_GNU_GETTEXT([external])
49ccbae6 386if test -d "$srcdir/po"
8eeb575c 387then
1b4a3d89 388 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
8eeb575c
KZ
389else
390 ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
391fi
48d7b13a 392
08d64aa2
KZ
393AC_ARG_WITH([ncurses],
394 AS_HELP_STRING([--with-ncurses], [build with non-wide ncurses, default is wide version
395 (--without-ncurses disables all ncurses(w) support)]),
396 [], with_ncurses=auto
397)
398AM_CONDITIONAL(HAVE_NCURSES, false)
399
400if test "x$with_ncurses" != xno; then
401 have_ncurses=no
402 AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [
403 if test "x$with_ncurses" = xauto; then
9ea8ac37 404 UTIL_CHECK_LIB(ncursesw, initscr, ncurses)
08d64aa2
KZ
405 if test "x$have_ncurses" = xyes; then
406 NCURSES_LIBS="-lncursesw"
407 fi
408 fi
49ccbae6 409 if test "x$have_ncurses" = xno; then
9ea8ac37 410 UTIL_CHECK_LIB(ncurses, initscr)
49ccbae6 411 if test "x$have_ncurses" = xyes; then
08d64aa2
KZ
412 NCURSES_LIBS="-lncurses"
413 fi
414 fi
415 ])
49ccbae6 416 if test "x$have_ncurses" = xno; then
08d64aa2
KZ
417 AC_MSG_ERROR([ncurses or ncursesw selected, but library not found (--without-ncurses to disable)])
418 fi
419fi
420AC_SUBST([NCURSES_LIBS])
421
48d7b13a 422
48d7b13a 423AC_ARG_WITH([slang],
7fa4f112 424 AS_HELP_STRING([--with-slang], [compile cfdisk with slang]),
271d98e0 425 [], with_slang=no
48d7b13a
KZ
426)
427
46e71118
AM
428have_tinfo=no
429AC_CHECK_LIB(tinfo, tgetent, [have_tinfo=yes])
49ccbae6 430AM_CONDITIONAL(HAVE_TINFO, test "x$have_tinfo" = xyes)
46e71118 431
fd67be31 432use_slang=no
49ccbae6 433if test "x$with_slang" = xyes; then
fd67be31 434 AC_CHECK_HEADERS([slcurses.h slang/slcurses.h], [use_slang=yes])
49ccbae6 435 if test "x$use_slang" = xno; then
48d7b13a
KZ
436 AC_MSG_ERROR([slang selected but slcurses.h not found])
437 fi
438fi
49ccbae6 439AM_CONDITIONAL(USE_SLANG, test "x$use_slang" = xyes)
48d7b13a
KZ
440
441
cf002530 442AC_LINK_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
443#define _XOPEN_SOURCE
444#include <unistd.h>
cf002530 445]], [[
48d7b13a 446char *c = crypt("abc","pw");
cf002530 447]])],[],[
48d7b13a 448 LIBS="$LIBS -lcrypt"
cf002530 449 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
450 #define _XOPEN_SOURCE
451 #include <unistd.h>
cf002530 452 ]], [[
48d7b13a 453 char *c = crypt("abc","pw");
cf002530 454 ]])],[
48d7b13a
KZ
455 AC_DEFINE(NEED_LIBCRYPT, 1, [Do we need -lcrypt?])
456 need_libcrypt=yes
457 ],[
458 AC_MSG_ERROR([crypt() is not available])
459 ])
48d7b13a
KZ
460])
461
49ccbae6 462AM_CONDITIONAL(NEED_LIBCRYPT, test "x$need_libcrypt" = xyes)
48d7b13a 463
cf002530 464AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a 465#include <stdio.h>
cf002530 466]], [[
48d7b13a 467printf(__progname);
cf002530
SK
468]])],
469[AC_DEFINE(HAVE___PROGNAME, 1, Do we have __progname?)
470])
48d7b13a
KZ
471
472
869829e4
GJ
473AC_CHECK_TYPES([union semun], [], [], [[
474#include <sys/sem.h>
475]])
476
477
cf002530 478AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
479#include <wchar.h>
480#include <wctype.h>
481#include <stdio.h>
cf002530 482]], [[
48d7b13a
KZ
483 wchar_t wc;
484 wint_t w;
485 w = fgetwc(stdin);
486 if (w == WEOF) exit(1);
487 wc = w;
488 fputwc(wc,stdout);
cf002530
SK
489]])],
490[AC_DEFINE(HAVE_WIDECHAR,1,Do we have wide character support?)
491])
48d7b13a
KZ
492
493
72065909
MF
494dnl UTIL_CHECK_SYSCALL(SYSCALL, FALLBACK, ...)
495dnl Only specify FALLBACK if the SYSCALL
496dnl you're checking for is a "newish" one
497dnl -------------------------------------
498AC_DEFUN([UTIL_CHECK_SYSCALL], [
499 dnl This macro uses host_cpu.
500 AC_REQUIRE([AC_CANONICAL_HOST])
501 AC_CACHE_CHECK([for syscall $1],
502 [util_cv_syscall_$1],
503 [_UTIL_SYSCALL_CHECK_DECL([SYS_$1],
504 [syscall=SYS_$1],
505 [dnl Our libc failed use, so see if we can get the kernel
506 dnl headers to play ball ...
507 _UTIL_SYSCALL_CHECK_DECL([_NR_$1],
508 [syscall=_NR_$1],
509 [
510 syscall=no
49ccbae6 511 if test "x$linux_os" = xyes; then
8c182554
KZ
512 case $host_cpu in
513 _UTIL_CHECK_SYSCALL_FALLBACK(m4_shift($@))
514 esac
515 fi
72065909
MF
516 ])
517 ])
518 util_cv_syscall_$1=$syscall
519 ])
49ccbae6 520 AM_CONDITIONAL([HAVE_]m4_toupper($1), [test "x$util_cv_syscall_$1" != xno])
72065909
MF
521 case $util_cv_syscall_$1 in #(
522 no) AC_MSG_WARN([Unable to detect syscall $1.]) ;;
523 SYS_*) ;;
524 *) AC_DEFINE_UNQUOTED([SYS_$1], [$util_cv_syscall_$1],
525 [Fallback syscall number for $1]) ;;
526 esac
527])
528
529dnl _UTIL_SYSCALL_CHECK_DECL(SYMBOL, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
530dnl Check if SYMBOL is declared, using the headers needed for syscall checks.
531dnl -------------------------------------
532m4_define([_UTIL_SYSCALL_CHECK_DECL],
533[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
534#include <sys/syscall.h>
535#include <unistd.h>
72065909
MF
536]], [[int test = $1;]])],
537[$2], [$3])
538])
48d7b13a 539
72065909
MF
540dnl _UTIL_CHECK_SYSCALL_FALLBACK(PATTERN, VALUE, ...)
541dnl Helper macro to create the body for the above `case'.
542dnl -------------------------------------
543m4_define([_UTIL_CHECK_SYSCALL_FALLBACK],
544[m4_ifval([$1],
545 [#(
546 $1) syscall="$2" ;;dnl
547 _UTIL_CHECK_SYSCALL_FALLBACK(m4_shiftn(2, $@))])dnl
548])
48d7b13a 549
72065909
MF
550
551UTIL_CHECK_SYSCALL([pivot_root])
552UTIL_CHECK_SYSCALL([sched_getaffinity])
553UTIL_CHECK_SYSCALL([ioprio_set],
554 [alpha], [442],
555 [i*86], [289],
556 [ia64*], [1274],
557 [powerpc*], [273],
558 [s390*], [282],
559 [sparc*], [196],
447ae7b8 560 [sh*], [288],
72065909
MF
561 [x86_64*], [251])
562UTIL_CHECK_SYSCALL([ioprio_get],
563 [alpha], [443],
564 [i*86], [290],
565 [ia64*], [1275],
566 [powerpc*], [274],
567 [s390*], [283],
568 [sparc*], [218],
447ae7b8 569 [sh*], [289],
72065909 570 [x86_64*], [252])
19a224ad 571
d46a5499
KZ
572dnl fallocate could be available as libc function or as syscall only
573UTIL_CHECK_SYSCALL([fallocate])
574AC_CHECK_FUNCS([fallocate])
19a224ad 575
4205f1fd
MG
576dnl unshare could be available as libc function or as syscall only
577UTIL_CHECK_SYSCALL([unshare])
578AC_CHECK_FUNCS([unshare])
579
cf002530 580AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48d7b13a
KZ
581#include <time.h>
582#include <unistd.h>
cf002530 583]], [[
48d7b13a
KZ
584 int a = 0;
585 struct tm *tm = localtime(0);
586 if (a == -1) /* false */
587 sleep(tm->tm_gmtoff);
cf002530
SK
588]])],
589[AC_DEFINE(HAVE_TM_GMTOFF,1,[Does struct tm have a field tm_gmtoff?])
590])
48d7b13a 591
30e8b186
KZ
592AC_CHECK_MEMBERS([struct termios.c_line],,,
593 [[#include <termios.h>]])
594
2d281745
KZ
595AC_CHECK_DECLS([
596 ADDR_NO_RANDOMIZE,
597 FDPIC_FUNCPTRS,
598 MMAP_PAGE_ZERO,
599 ADDR_COMPAT_LAYOUT,
600 READ_IMPLIES_EXEC,
601 ADDR_LIMIT_32BIT,
602 WHOLE_SECONDS,
603 STICKY_TIMEOUTS,
604 ADDR_LIMIT_3GB], [], [], [#include <linux/personality.h>])
48d7b13a 605
22d36665 606AC_CHECK_HEADERS([sys/swap.h])
b3425806
SK
607
608AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
609[[
b3425806
SK
610#ifdef HAVE_SYS_SWAP_H
611# include <sys/swap.h>
612#endif
613#include <unistd.h>
614]],
615[[swapon("/dev/null", 0);]])],
616[AC_DEFINE(SWAPON_HAS_TWO_ARGS, 1, [Is swapon() declared with two parameters?])
617],
618[AC_MSG_NOTICE([Your libc thinks that swapon has 1 arg only.])
619])
620
621
e782f1d4
KZ
622dnl UTIL_SET_ARCH(ARCHNAME, PATTERN)
623dnl ---------------------------------
624AC_DEFUN([UTIL_SET_ARCH], [
625 cpu_$1=false
626 case "$host" in
627 $2) cpu_$1=true ;;
628 esac
49ccbae6 629 AM_CONDITIONAL(AS_TR_CPP(ARCH_$1), [test "x$cpu_$1" = xtrue])
e782f1d4 630])
48d7b13a 631
e782f1d4
KZ
632UTIL_SET_ARCH(I86, i?86-*)
633UTIL_SET_ARCH(86_64, x86_64*)
634UTIL_SET_ARCH(IA64, ia64*)
635UTIL_SET_ARCH(S390, s390*)
636UTIL_SET_ARCH(SPARC, sparc*)
637UTIL_SET_ARCH(PPC, ppc*|powerpc*)
638UTIL_SET_ARCH(M68K, m68*)
639UTIL_SET_ARCH(MIPS, mips*)
eeadb4f4 640UTIL_SET_ARCH(HPPA, hppa*)
48d7b13a 641
6a97809b
KZ
642AC_ARG_ENABLE([arch],
643 AS_HELP_STRING([--enable-arch], [do build arch]),
644 [], enable_arch=no
645)
49ccbae6 646AM_CONDITIONAL(BUILD_ARCH, test "x$enable_arch" = xyes)
48d7b13a
KZ
647
648AC_ARG_ENABLE([agetty],
7fa4f112 649 AS_HELP_STRING([--disable-agetty], [do not build agetty]),
271d98e0 650 [], enable_agetty=yes
48d7b13a 651)
49ccbae6 652AM_CONDITIONAL(BUILD_AGETTY, test "x$enable_agetty" = xyes)
48d7b13a 653
9cb68977 654AC_ARG_ENABLE([cramfs],
7fa4f112 655 AS_HELP_STRING([--disable-cramfs], [do not build fsck.cramfs, mkfs.cramfs]),
271d98e0 656 [], enable_cramfs=check
9cb68977
KZ
657)
658
49ccbae6 659if test "x$enable_cramfs" = xno; then
fd67be31
SK
660 build_cramfs=no
661else
662 build_cramfs=yes
663 dnl Trick: leave the third parameter empty to get the default action.
664 AC_CHECK_LIB(z, crc32, [], build_cramfs=no)
665 case $enable_cramfs:$build_cramfs in
666 yes:no) AC_MSG_ERROR([cramfs selected but libz not found]);;
667 esac
9cb68977 668fi
49ccbae6 669AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
9cb68977
KZ
670
671
bd671347
KZ
672AC_ARG_ENABLE([switch_root],
673 AS_HELP_STRING([--disable-switch_root], [do not build switch_root]),
940fd28c 674 [], enable_switch_root=check
bd671347 675)
940fd28c
KZ
676if test "x$enable_switch_root" = xno; then
677 build_switch_root=no
678else
679 build_switch_root=yes
680 case $enable_switch_root:$linux_os in
681 yes:no) AC_MSG_ERROR([switch_root selected for non-linux system]);;
682 check:no) AC_MSG_WARN([non-linux system; do not build switch_root])
683 build_switch_root=no;;
684 esac
685 if test "x$build_switch_root" = xyes; then
686 case $enable_switch_root:$have_openat in
687 yes:no) AC_MSG_ERROR([switch_root selected but openat() function not found]);;
688 check:no) AC_MSG_WARN([openat() function not found; do not build switch_root])
689 build_switch_root=no;;
690 esac
691 fi
692fi
693AM_CONDITIONAL(BUILD_SWITCH_ROOT, test "x$build_switch_root" = xyes)
bd671347
KZ
694
695
11125e7a
KZ
696AC_ARG_ENABLE([pivot_root],
697 AS_HELP_STRING([--disable-pivot_root], [do not build pivot_root]),
698 [], enable_pivot_root=check
699)
700if test "x$enable_pivot_root" = xno; then
701 build_pivot_root=no
702else
703 build_pivot_root=yes
704 case $enable_pivot_root:$linux_os in
705 yes:no) AC_MSG_ERROR([pivot_root selected for non-linux system]);;
706 check:no) AC_MSG_WARN([non-linux system; do not build pivot_root])
707 build_pivot_root=no;;
708 esac
709 if test "x$build_pivot_root" = xyes; then
710 case $enable_pivot_root:$util_cv_syscall_pivot_root in
711 yes:no) AC_MSG_ERROR([pivot_root selected but pivot_root syscall not found]);;
712 check:no) AC_MSG_WARN([pivot_root syscall not found; do not build pivot_root])
713 build_pivot_root=no;;
714 esac
715 fi
716fi
4a2ecf0a 717AM_CONDITIONAL(BUILD_PIVOT_ROOT, test "x$build_pivot_root" = xyes)
11125e7a
KZ
718
719
720AC_ARG_ENABLE([fallocate],
721 AS_HELP_STRING([--disable-fallocate], [do not build fallocate]),
722 [], enable_fallocate=check
723)
724if test "x$enable_fallocate" = xno; then
725 build_fallocate=no
726else
727 build_fallocate=yes
728 case $enable_fallocate:$linux_os in
729 yes:no) AC_MSG_ERROR([fallocate selected for non-linux system]);;
730 check:no) AC_MSG_WARN([non-linux system; do not build fallocate])
731 build_fallocate=no;;
732 esac
733 if test "x$build_fallocate" = xyes; then
734 case $enable_fallocate:$util_cv_syscall_fallocate in
735 yes:no) AC_MSG_ERROR([fallocate selected but fallocate syscall not found]);;
736 check:no) AC_MSG_WARN([fallocate syscall not found; do not build fallocate])
737 build_fallocate=no;;
738 esac
739 fi
740fi
741AM_CONDITIONAL(BUILD_FALLOCATE, test "x$build_fallocate" = xyes)
742
743
744AC_ARG_ENABLE([unshare],
745 AS_HELP_STRING([--disable-unshare], [do not build unshare]),
746 [], enable_unshare=check
747)
748if test "x$enable_unshare" = xno; then
749 build_unshare=no
750else
751 build_unshare=yes
752 case $enable_unshare:$linux_os in
753 yes:no) AC_MSG_ERROR([unshare selected for non-linux system]);;
754 check:no) AC_MSG_WARN([non-linux system; do not build unshare])
755 build_unshare=no;;
756 esac
757 if test "x$build_unshare" = xyes; then
758 case $enable_unshare:$util_cv_syscall_unshare in
759 yes:no) AC_MSG_ERROR([unshare selected but unshare syscall not found]);;
760 check:no) AC_MSG_WARN([unshare syscall not found; do not build unshare])
761 build_unshare=no;;
762 esac
763 fi
764fi
765AM_CONDITIONAL(BUILD_UNSHARE, test "x$build_unshare" = xyes)
766
767
768
48d7b13a 769AC_ARG_ENABLE([elvtune],
7fa4f112 770 AS_HELP_STRING([--enable-elvtune], [build elvtune (only works with 2.2 and 2.4 kernels)]),
271d98e0 771 [], enable_elvtune=no
48d7b13a 772)
49ccbae6 773AM_CONDITIONAL(BUILD_ELVTUNE, test "x$enable_elvtune" = xyes)
48d7b13a
KZ
774
775
776AC_ARG_ENABLE([init],
7fa4f112 777 AS_HELP_STRING([--enable-init], [build simpleinit, shutdown, initctl]),
271d98e0 778 [], enable_init=no
48d7b13a 779)
49ccbae6 780AM_CONDITIONAL(BUILD_INIT, test "x$enable_init" = xyes)
48d7b13a
KZ
781
782
783AC_ARG_ENABLE([kill],
7fa4f112 784 AS_HELP_STRING([--enable-kill], [build kill]),
271d98e0 785 [], enable_kill=no
48d7b13a 786)
49ccbae6 787AM_CONDITIONAL(BUILD_KILL, test "x$enable_kill" = xyes)
48d7b13a
KZ
788
789
790AC_ARG_ENABLE([last],
7fa4f112 791 AS_HELP_STRING([--enable-last], [build last]),
271d98e0 792 [], enable_last=no
48d7b13a 793)
49ccbae6 794AM_CONDITIONAL(BUILD_LAST, test "x$enable_last" = xyes)
48d7b13a
KZ
795
796
797AC_ARG_ENABLE([mesg],
7fa4f112 798 AS_HELP_STRING([--enable-mesg], [build mesg]),
271d98e0 799 [], enable_mesg=no
48d7b13a 800)
49ccbae6 801AM_CONDITIONAL(BUILD_MESG, test "x$enable_mesg" = xyes)
48d7b13a
KZ
802
803
804AC_ARG_ENABLE([partx],
7fa4f112 805 AS_HELP_STRING([--enable-partx], [build addpart, delpart, partx]),
271d98e0 806 [], enable_partx=no
48d7b13a 807)
49ccbae6 808AM_CONDITIONAL(BUILD_PARTX, test "x$enable_partx" = xyes)
48d7b13a
KZ
809
810
811AC_ARG_ENABLE([raw],
7fa4f112 812 AS_HELP_STRING([--enable-raw], [build raw]),
271d98e0 813 [], enable_raw=no
48d7b13a 814)
49ccbae6 815AM_CONDITIONAL(BUILD_RAW, test "x$enable_raw" = xyes)
48d7b13a
KZ
816
817
818AC_ARG_ENABLE([rdev],
7fa4f112 819 AS_HELP_STRING([--enable-rdev], [build rdev on i386]),
271d98e0 820 [], enable_rdev=no
48d7b13a 821)
49ccbae6 822AM_CONDITIONAL(BUILD_RDEV, test "x$enable_rdev" = xyes)
48d7b13a
KZ
823
824
825AC_ARG_ENABLE([rename],
7fa4f112 826 AS_HELP_STRING([--disable-rename], [do not build rename]),
271d98e0 827 [], enable_rename=yes
48d7b13a 828)
49ccbae6 829AM_CONDITIONAL(BUILD_RENAME, test "x$enable_rename" = xyes)
48d7b13a
KZ
830
831
832AC_ARG_ENABLE([reset],
7fa4f112 833 AS_HELP_STRING([--enable-reset], [build reset]),
271d98e0 834 [], enable_reset=no
48d7b13a 835)
49ccbae6 836AM_CONDITIONAL(BUILD_RESET, test "x$enable_reset" = xyes)
48d7b13a
KZ
837
838
839AC_ARG_ENABLE([login-utils],
7fa4f112 840 AS_HELP_STRING([--enable-login-utils], [build chfn, chsh, login, newgrp, vipw]),
271d98e0 841 [], enable_login_utils=no
48d7b13a 842)
49ccbae6 843AM_CONDITIONAL(BUILD_LOGIN_UTILS, test "x$enable_login_utils" = xyes)
48d7b13a 844
9cb68977 845AC_ARG_WITH([pam],
7fa4f112 846 [AS_HELP_STRING([--without-pam], [compile login-utils without PAM support])])
9cb68977 847
fd67be31 848AM_CONDITIONAL(HAVE_PAM, false)
49ccbae6 849if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
fd67be31
SK
850 AC_CHECK_HEADERS([security/pam_misc.h],
851 [AM_CONDITIONAL(HAVE_PAM, true)],
49ccbae6 852 [if test "x$with_pam" = xyes; then
fd67be31
SK
853 AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
854 fi
855 ])
9cb68977 856fi
9cb68977
KZ
857
858AC_ARG_WITH([selinux],
7fa4f112 859 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
271d98e0 860 [], with_selinux=no
9cb68977
KZ
861)
862
49ccbae6 863if test "x$with_selinux" = xno; then
fd67be31
SK
864 AM_CONDITIONAL(HAVE_SELINUX, false)
865else
866 UTIL_CHECK_LIB(selinux, getprevcon)
49ccbae6 867 case "$with_selinux:$have_selinux" in
fd67be31
SK
868 yes:no) AC_MSG_ERROR([SELinux selected but libselinux not found]);;
869 esac
9cb68977 870fi
9cb68977 871
49ccbae6 872if test "x$have_selinux" = xyes; then
8569410c
SK
873 SELINUX_LIBS="-lselinux -lsepol"
874 SELINUX_LIBS_STATIC="-lselinux -lsepol"
28d39b6d
KZ
875 old_LDFLAGS="$LDFLAGS"
876 LDFLAGS="$LDFLAGS $SELINUX_LIBS"
877 # This function is missing in old libselinux 1.xx versions
878 AC_CHECK_FUNCS([security_get_initial_context])
879 LDFLAGS="$old_LDFLAGS"
8569410c
SK
880fi
881AC_SUBST([SELINUX_LIBS])
882AC_SUBST([SELINUX_LIBS_STATIC])
9cb68977 883
bbae9cb0 884AC_ARG_WITH([audit],
7fa4f112 885 AS_HELP_STRING([--with-audit], [compile with audit support]),
271d98e0 886 [], with_audit=no
bbae9cb0
KZ
887)
888
49ccbae6 889if test "x$with_audit" = xno; then
fd67be31
SK
890 AM_CONDITIONAL(HAVE_AUDIT, false)
891else
892 UTIL_CHECK_LIB(audit, audit_log_user_message)
49ccbae6 893 case "$with_audit:$have_audit" in
fd67be31
SK
894 yes:no)
895 AC_MSG_ERROR([Audit selected but libaudit not found (or doesn't support audit_log_user_message())])
896 ;;
897 esac
bbae9cb0 898fi
bbae9cb0 899
48d7b13a 900AC_ARG_ENABLE([schedutils],
7fa4f112 901 AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, teskset]),
271d98e0 902 [], enable_schedutils=yes
48d7b13a 903)
49ccbae6 904AM_CONDITIONAL(BUILD_SCHEDUTILS, test "x$enable_schedutils" = xyes)
48d7b13a
KZ
905
906
907AC_ARG_ENABLE([wall],
7fa4f112 908 AS_HELP_STRING([--disable-wall], [do not build wall]),
271d98e0 909 [], enable_wall=yes
48d7b13a 910)
49ccbae6 911AM_CONDITIONAL(BUILD_WALL, test "x$enable_wall" = xyes)
48d7b13a
KZ
912
913
914AC_ARG_ENABLE([write],
7fa4f112 915 AS_HELP_STRING([--enable-write], [build write]),
271d98e0 916 [], enable_write=no
48d7b13a 917)
49ccbae6 918AM_CONDITIONAL(BUILD_WRITE, test "x$enable_write" = xyes)
48d7b13a
KZ
919
920
921AC_ARG_ENABLE([chsh-only-listed],
7fa4f112 922 AS_HELP_STRING([--disable-chsh-only-listed], [chsh: allow shells not in /etc/shells]),
271d98e0 923 [], enable_chsh_only_listed=yes
48d7b13a
KZ
924)
925
49ccbae6 926if test "x$enable_chsh_only_listed" = xyes; then
48d7b13a
KZ
927 AC_DEFINE(ONLY_LISTED_SHELLS, 1, [Should chsh allow only shells in /etc/shells?])
928fi
929
930
931AC_ARG_ENABLE([login-chown-vcs],
7fa4f112 932 AS_HELP_STRING([--enable-login-chown-vcs], [let login chown /dev/vcsN]),
271d98e0 933 [], enable_login_chown_vcs=no
48d7b13a
KZ
934)
935
49ccbae6 936if test "x$enable_login_chown_vcs" = xyes; then
48d7b13a
KZ
937 AC_DEFINE(LOGIN_CHOWN_VCS, 1, [Should login chown /dev/vcsN?])
938fi
939
940
941AC_ARG_ENABLE([login-stat-mail],
7fa4f112 942 AS_HELP_STRING([--enable-login-stat-mail], [let login stat() the mailbox]),
271d98e0 943 [], enable_login_stat_mail=no
48d7b13a
KZ
944)
945
49ccbae6 946if test "x$enable_login_stat_mail" = xyes; then
48d7b13a
KZ
947 AC_DEFINE(LOGIN_STAT_MAIL, 1, [Should login stat() the mailbox?])
948fi
949
950
951AC_ARG_ENABLE([pg-bell],
7fa4f112 952 AS_HELP_STRING([--disable-pg-bell], [let pg not ring the bell on invalid keys]),
271d98e0 953 [], enable_pg_bell=yes
48d7b13a
KZ
954)
955
49ccbae6 956if test "x$enable_pg_bell" = xyes; then
48d7b13a
KZ
957 AC_DEFINE(PG_BELL, 1, [Should pg ring the bell on invalid keys?])
958fi
959
960
961AC_ARG_ENABLE([require-password],
7fa4f112 962 AS_HELP_STRING([--disable-require-password], [do not require the user to enter the password in chfn and chsh]),
271d98e0 963 [], enable_require_password=yes
48d7b13a
KZ
964)
965
49ccbae6 966if test "x$enable_require_password" = xyes; then
48d7b13a
KZ
967 AC_DEFINE(REQUIRE_PASSWORD, 1, [Should chfn and chsh require the user to enter the password?])
968fi
969
970
971AC_ARG_ENABLE([use-tty-group],
7fa4f112 972 AS_HELP_STRING([--disable-use-tty-group], [do not install wall and write setgid tty]),
271d98e0 973 [], enable_use_tty_group=yes
48d7b13a 974)
49ccbae6 975AM_CONDITIONAL(USE_TTY_GROUP, test "x$enable_use_tty_group" = xyes)
48d7b13a 976
49ccbae6 977if test "x$enable_use_tty_group" = xyes; then
48d7b13a
KZ
978 AC_DEFINE(USE_TTY_GROUP, 1, [Should wall and write be installed setgid tty?])
979fi
980
f3831bbd
KZ
981AC_ARG_ENABLE([makeinstall-chown],
982 AS_HELP_STRING([--disable-makeinstall-chown], [do not do chown-like operations during "make install"]),
983 [], enable_makeinstall_chown=yes
984)
49ccbae6 985AM_CONDITIONAL(MAKEINSTALL_DO_CHOWN, test "x$enable_makeinstall_chown" = xyes)
f3831bbd 986
4c24a7ae
KZ
987AC_ARG_ENABLE([makeinstall-setuid],
988 AS_HELP_STRING([--disable-makeinstall-setuid], [do not do setuid chmod operations during "make install"]),
989 [], enable_makeinstall_setuid=yes
990)
991AM_CONDITIONAL(MAKEINSTALL_DO_SETUID, test "x$enable_makeinstall_setuid" = xyes)
992
06bcee19 993
1f10890f
SK
994AC_ARG_VAR([SUID_CFLAGS],
995 [CFLAGS used for binaries which are usually with the suid bit])
996AC_ARG_VAR([SUID_LDFLAGS],
997 [LDFLAGS used for binaries which are usually with the suid bit])
06bcee19 998
9cb68977 999LIBS=""
48d7b13a 1000
48d7b13a
KZ
1001
1002AC_CONFIG_HEADERS(config.h)
1003
8eeb575c 1004AC_CONFIG_FILES([
8eeb575c 1005disk-utils/Makefile
562218e6 1006fdisk/Makefile
607c2a72 1007fsck/Makefile
8eeb575c
KZ
1008getopt/Makefile
1009hwclock/Makefile
562218e6 1010include/Makefile
d00ed891 1011lib/Makefile
8eeb575c 1012login-utils/Makefile
20ad4963
KZ
1013Makefile
1014misc-utils/chkdupexe:misc-utils/chkdupexe.pl
8eeb575c
KZ
1015misc-utils/Makefile
1016mount/Makefile
1017partx/Makefile
1018po/Makefile.in
1019schedutils/Makefile
20ad4963
KZ
1020shlibs/blkid/blkid.pc
1021shlibs/blkid/Makefile
1e018c15
KZ
1022shlibs/blkid/docs/Makefile
1023shlibs/blkid/docs/version.xml
20ad4963 1024shlibs/blkid/src/Makefile
033cf439 1025shlibs/blkid/src/blkid.h
219227c2 1026shlibs/blkid/src/superblocks/Makefile
cc33d693 1027shlibs/blkid/src/topology/Makefile
e4799a35 1028shlibs/blkid/src/partitions/Makefile
e21677fe 1029shlibs/blkid/samples/Makefile
754fed0c
KZ
1030shlibs/uuid/uuid.pc
1031shlibs/uuid/Makefile
1032shlibs/uuid/man/Makefile
1033shlibs/uuid/src/Makefile
20ad4963 1034shlibs/Makefile
8eeb575c 1035sys-utils/Makefile
e83446da 1036tests/commands.sh
20ad4963
KZ
1037tests/helpers/Makefile
1038tests/Makefile
1039text-utils/Makefile
8eeb575c 1040])
48d7b13a 1041
996fb358 1042
48d7b13a 1043AC_OUTPUT