diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-13 15:34:52 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-13 15:34:52 +0100 |
commit | ae2a5ff1e49ae924605502ace170eb831e9c38e4 (patch) | |
tree | 88b71705d17615ea7f42e54ec7f6ed38cef32a52 /configure.ac | |
parent | 16db1d1ba60cbc76397f193c95db5fda4546f099 (diff) |
Support mounting in /media for FHS compatibility
Add --enable-fhs-media configure option to mount in /media instead of
/run/media, for FHS compliance and backwards compatibility.
Usually /media is not a tmpfs, so make the "mounted-fs" state file persistant
in this case.
https://bugs.freedesktop.org/show_bug.cgi?id=51709
http://bugs.debian.org/680403
https://launchpad.net/bugs/1020759
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index af209dd..0c28a30 100644 --- a/configure.ac +++ b/configure.ac @@ -115,6 +115,18 @@ AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) GOBJECT_INTROSPECTION_CHECK([0.6.2]) +# Behavior +# + +AC_ARG_ENABLE(fhs-media, + [AS_HELP_STRING([--enable-fhs-media], + [Mount devices in /media instead of /run/media [default=no]])], + fhs_media=yes, + fhs_media=no) +if test "x$fhs_media" = "xyes"; then + AC_DEFINE([HAVE_FHS_MEDIA], 1, [Define to 1 to use /media for mounting]) +fi + # Libraries # @@ -229,6 +241,7 @@ echo " udevdir: ${udevdir} systemdsystemunitdir: ${systemdsystemunitdir} using libsystemd-login: ${have_libsystemd_login} + use /media for mounting: ${fhs_media} compiler: ${CC} cflags: ${CFLAGS} |