]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
libudev: monitor - add client socket filter for subsystem value
[thirdparty/systemd.git] / configure.ac
CommitLineData
72a157b9 1AC_INIT([udev],
9b144b88 2 [142],
1d36813d 3 [linux-hotplug@vger.kernel.org])
01618658 4AC_PREREQ(2.60)
e231a5db 5AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
01618658 6AC_DISABLE_STATIC
45a1dbba 7AC_USE_SYSTEM_EXTENSIONS
01618658 8AC_SYS_LARGEFILE
03733b04 9AC_CONFIG_MACRO_DIR([m4])
9b144b88 10AC_PROG_LIBTOOL
01618658 11
b04ba6ce 12dnl /* prefix is /usr, exec_prefix is /, if overridden exec_prefix follows prefix */
109d1145
KS
13AC_PREFIX_DEFAULT([/usr])
14test "$prefix" = NONE && test "$exec_prefix" = NONE && exec_prefix=
15
33a5cc29 16dnl /* libudev version */
e14bdd88
KS
17LIBUDEV_LT_CURRENT=3
18LIBUDEV_LT_REVISION=0
19LIBUDEV_LT_AGE=3
33a5cc29
KS
20AC_SUBST(LIBUDEV_LT_CURRENT)
21AC_SUBST(LIBUDEV_LT_REVISION)
22AC_SUBST(LIBUDEV_LT_AGE)
23
01618658 24dnl /* libvolume_id version */
18e3d9ab
HH
25VOLID_LT_CURRENT=2
26VOLID_LT_REVISION=0
27VOLID_LT_AGE=1
01618658
KS
28AC_SUBST(VOLID_LT_CURRENT)
29AC_SUBST(VOLID_LT_REVISION)
30AC_SUBST(VOLID_LT_AGE)
31
32AC_PATH_PROG([XSLTPROC], [xsltproc])
33
34AC_CHECK_LIB(c, inotify_init,
35 [AC_DEFINE([HAVE_INOTIFY], 1, [inotify available])],
36 [AC_MSG_WARN([inotify support disabled])])
37
01618658
KS
38AC_ARG_WITH(udev-prefix,
39 AS_HELP_STRING([--with-udev-prefix=DIR], [add prefix to internal udev path names]),
40 [], [with_udev_prefix='${exec_prefix}'])
41udev_prefix=$with_udev_prefix
42AC_SUBST(udev_prefix)
43
44AC_ARG_WITH(libdir-name,
45 AS_HELP_STRING([--with-libdir-name=DIR], [name of the arch lib directory]),
46 [], [with_libdir_name=lib])
47libdir_name=$with_libdir_name
48AC_SUBST(libdir_name)
49
50AC_ARG_WITH(selinux,
51 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
52 [], with_selinux=no)
53if test "x$with_selinux" = xyes; then
54 LIBS_save=$LIBS
55 AC_CHECK_LIB(selinux, getprevcon,
56 [],
57 AC_MSG_ERROR([SELinux selected but libselinux not found]))
58 LIBS=$LIBS_save
59 AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
b6626d09 60 SELINUX_LIBS="-lselinux -lsepol"
01618658
KS
61fi
62AC_SUBST([SELINUX_LIBS])
63AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
64
65AC_ARG_ENABLE(debug,
66 AS_HELP_STRING([--enable-debug], [turn on debugging]),
67 [], enable_debug=no)
68if test "x$enable_debug" = "xyes"; then
69 AC_DEFINE(DEBUG, [1] ,[Compile in debug messages])
70 DEBUG_CFLAGS="-DDEBUG"
71fi
72AC_SUBST(DEBUG_CFLAGS)
73
74AC_ARG_ENABLE(logging,
75 AS_HELP_STRING([--disable-logging], [turn off logging/syslog]),
76 [], enable_logging=yes)
77if test "x$enable_logging" != "xno"; then
78 AC_DEFINE(USE_LOG, [1] ,[Use logging/syslog])
79fi
80
81AC_CONFIG_HEADERS(config.h)
82AC_CONFIG_FILES([
83 Makefile
84 udev/Makefile
33a5cc29
KS
85 udev/lib/Makefile
86 udev/lib/libudev.pc
01618658
KS
87 rules/Makefile
88 extras/Makefile
89 extras/ata_id/Makefile
90 extras/cdrom_id/Makefile
91 extras/edd_id/Makefile
92 extras/path_id/Makefile
93 extras/firmware/Makefile
94 extras/collect/Makefile
95 extras/floppy/Makefile
96 extras/fstab_import/Makefile
97 extras/rule_generator/Makefile
98 extras/scsi_id/Makefile
99 extras/usb_id/Makefile
100 extras/volume_id/Makefile
101 extras/volume_id/lib/Makefile
102 extras/volume_id/lib/libvolume_id.pc
103])
104AC_OUTPUT
105
106echo "
107 udev $VERSION
108 ========
109
110 prefix: ${prefix}
111 exec_prefix: ${exec_prefix}
112 udev_prefix: ${udev_prefix}
113 libdir_name: ${libdir_name}
114 datarootdir: ${datarootdir}
115 mandir: ${mandir}
116 includedir: ${includedir}
117
118 logging: ${enable_logging}
119 debug: ${enable_debug}
120 selinux: ${with_selinux}
121
122 compiler: ${CC}
123 cflags: ${CFLAGS}
124 ldflags: ${LDFLAGS}
125
126 xsltproc: ${XSLTPROC}
127"