6 AC_CONFIG_SRCDIR(udev/udevd.c)
7 AM_INIT_AUTOMAKE([check-news foreign -Wall 1.9 dist-bzip2])
13 dnl /* libvolume_id version */
17 AC_SUBST(VOLID_LT_CURRENT)
18 AC_SUBST(VOLID_LT_REVISION)
19 AC_SUBST(VOLID_LT_AGE)
21 AC_PATH_PROG([XSLTPROC], [xsltproc])
23 AC_CHECK_LIB(c, inotify_init,
24 [AC_DEFINE([HAVE_INOTIFY], 1, [inotify available])],
25 [AC_MSG_WARN([inotify support disabled])])
27 AC_CHECK_LIB(c, strlcpy,
28 [AC_DEFINE([HAVE_STRLCPY], 1, [strlcpy available])],
31 AC_ARG_WITH(udev-prefix,
32 AS_HELP_STRING([--with-udev-prefix=DIR], [add prefix to internal udev path names]),
33 [], [with_udev_prefix='${exec_prefix}'])
34 udev_prefix=$with_udev_prefix
37 AC_ARG_WITH(libdir-name,
38 AS_HELP_STRING([--with-libdir-name=DIR], [name of the arch lib directory]),
39 [], [with_libdir_name=lib])
40 libdir_name=$with_libdir_name
44 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
46 if test "x$with_selinux" = xyes; then
48 AC_CHECK_LIB(selinux, getprevcon,
50 AC_MSG_ERROR([SELinux selected but libselinux not found]))
52 AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
53 SELINUX_LIBS="-lselinux"
55 AC_SUBST([SELINUX_LIBS])
56 AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
59 AS_HELP_STRING([--enable-debug], [turn on debugging]),
61 if test "x$enable_debug" = "xyes"; then
62 AC_DEFINE(DEBUG, [1] ,[Compile in debug messages])
63 DEBUG_CFLAGS="-DDEBUG"
65 AC_SUBST(DEBUG_CFLAGS)
67 AC_ARG_ENABLE(logging,
68 AS_HELP_STRING([--disable-logging], [turn off logging/syslog]),
69 [], enable_logging=yes)
70 if test "x$enable_logging" != "xno"; then
71 AC_DEFINE(USE_LOG, [1] ,[Use logging/syslog])
74 AC_CONFIG_HEADERS(config.h)
80 extras/ata_id/Makefile
81 extras/cdrom_id/Makefile
82 extras/edd_id/Makefile
83 extras/path_id/Makefile
84 extras/firmware/Makefile
85 extras/collect/Makefile
86 extras/floppy/Makefile
87 extras/fstab_import/Makefile
88 extras/rule_generator/Makefile
89 extras/scsi_id/Makefile
90 extras/usb_id/Makefile
91 extras/volume_id/Makefile
92 extras/volume_id/lib/Makefile
93 extras/volume_id/lib/libvolume_id.pc
102 exec_prefix: ${exec_prefix}
103 udev_prefix: ${udev_prefix}
104 libdir_name: ${libdir_name}
105 datarootdir: ${datarootdir}
107 includedir: ${includedir}
109 logging: ${enable_logging}
110 debug: ${enable_debug}
111 selinux: ${with_selinux}
117 xsltproc: ${XSLTPROC}