+# --with-iallocator-search-path=...
+# do a bit of black sed magic to for quoting of the strings in the list
+AC_ARG_WITH([iallocator-search-path],
+ [AS_HELP_STRING([--with-iallocator-search-path=LIST],
+ [comma separated list of directories to]
+ [ search for instance allocators (default is $libdir/ganeti/iallocators)]
+ )],
+ [iallocator_search_path=`echo -n "$withval" | sed -e "s/\([[^,]]*\)/'\1'/g"`],
+ [iallocator_search_path="'$libdir/$PACKAGE_NAME/iallocators'"])
+AC_SUBST(IALLOCATOR_SEARCH_PATH, $iallocator_search_path)
+