summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-04-04 14:31:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-04 14:31:17 +0300
commita81d933cc3b997c7f46acd4a3faff26ce2edc8b7 (patch)
tree746b6c30d3030566e0a365a8a34ee74daffcdf44 /configure.ac
parentaea6f0423fc3cf26a7e244e79b62c3b94c09d0c7 (diff)
downloadlibrpm-tizen-a81d933cc3b997c7f46acd4a3faff26ce2edc8b7.tar.gz
librpm-tizen-a81d933cc3b997c7f46acd4a3faff26ce2edc8b7.tar.bz2
librpm-tizen-a81d933cc3b997c7f46acd4a3faff26ce2edc8b7.zip
Only enable test-suite if fakechroot is available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e3fe5112e..13c972d36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,7 +138,9 @@ AC_PATH_PROG(__NM, nm, /usr/bin/nm, $MYPATH)
AC_PATH_PROG(__OBJCOPY, objcopy, /usr/bin/objcopy, $MYPATH)
AC_PATH_PROG(__OBJDUMP, objdump, /usr/bin/objdump, $MYPATH)
AC_PATH_PROG(__STRIP, strip, /usr/bin/strip, $MYPATH)
-AC_PATH_PROG(__FAKECHROOT, fakechroot, /usr/bin/fakechroot, $MYPATH)
+
+AC_PATH_PROG(__FAKECHROOT, fakechroot, no, $MYPATH)
+AM_CONDITIONAL(HAVE_FAKECHROOT, [test "$__FAKECHROOT" != "no"])
dnl see if we have a mkdir that supports `-p' for rpmbuild's purposes
AC_PROG_MKDIR_P