chiark / gitweb /
build-sys: be more tolerant if dbus directories do not exist
authorMichael Biebl <biebl@debian.org>
Mon, 4 Mar 2013 01:13:34 +0000 (02:13 +0100)
committerMichael Biebl <biebl@debian.org>
Mon, 4 Mar 2013 01:13:34 +0000 (02:13 +0100)
use readlink -m instead of -f since we might be building in a minimal
chroot where those directories do not actually exist and readlink -f
would return an empty string.

configure.ac

index fab0b91c5502474405d8e8351c5618b82f30f56f..43b8225285b54c7806968595ab5cc5fef30b8a3d 100644 (file)
@@ -806,12 +806,12 @@ AC_ARG_WITH([dbussessionservicedir],
 AC_ARG_WITH([dbussystemservicedir],
         AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
         [],
-        [with_dbussystemservicedir=$(readlink -f $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
+        [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
 
 AC_ARG_WITH([dbusinterfacedir],
         AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
         [],
-        [with_dbusinterfacedir=$(readlink -f $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
+        [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
 
 AC_ARG_WITH([bashcompletiondir],
         AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),