]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
fix configure --prefix
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2010 05:18:33 +0000 (07:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2010 05:18:33 +0000 (07:18 +0200)
We need to substitute root_sbindir and root_libdir even for the case
where we don't have the different from the default prefix, otherwise
xfsprogs won't build for that case with rpath errors, and wouldn't
install correctly either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reported-by: Christian Kujau <lists@nerdbynature.de>
Tested-by: Christian Kujau <lists@nerdbynature.de>
configure.in

index dc811e2bfd09d9e768a522f59cac95f1847f5830..30907deacd665702d9303995cf9f4c038755fd70 100644 (file)
@@ -65,12 +65,17 @@ esac
 case $exec_prefix:$prefix in
 NONE:NONE | NONE:/usr | /usr:*)
   root_sbindir='/sbin'
-  AC_SUBST([root_sbindir])
-
   root_libdir="/${base_libdir}"
-  AC_SUBST([root_libdir])
+  ;;
+*)
+  root_sbindir="${sbindir}"
+  root_libdir="${libdir}"
+  ;;
 esac
 
+AC_SUBST([root_sbindir])
+AC_SUBST([root_libdir])
+
 # Find localized files
 LOCALIZED_FILES=""
 for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do