Whamcloud - gitweb
b=141,205,323
[fs/lustre-release.git] / lustre / configure.in
index 1d39d90..c40124e 100644 (file)
@@ -64,10 +64,16 @@ AC_ARG_ENABLE(portalsdir, [  --enable-portalsdir=[path] (deprecated) set path to
 PORTALS=$enable_portalsdir
 AC_SUBST(PORTALS)
 
-portalslib_def=$enable_portalsdir
+portalslib_def=$enable_portalsdir/linux/utils
 AC_ARG_WITH(portalslib, [  --with-portalslib=[path] set path to Portals library (default=../portals/linux/utils)], enable_portalslib=$withval)
 AC_ARG_ENABLE(portalslib, [  --enable-portalslib=[path] (deprecated) set path to Portals lib (default=../portals/linux/utils)],, enable_portalslib=$portalslib_def)
-PORTALSLIB=$enable_portalslib/linux/utils
+
+
+if ! test -z "$enable_portalslib"; then
+       PORTALSLIB=${enable_portalslib}
+fi
+
+
 AC_SUBST(PORTALSLIB)
 
 AC_MSG_CHECKING(if make dep has been run in kernel source)