Index: configure.in =================================================================== RCS file: /data/cvs/libvirt/configure.in,v retrieving revision 1.197 diff -u -r1.197 configure.in --- configure.in 8 Jan 2009 20:42:01 -0000 1.197 +++ configure.in 12 Jan 2009 16:19:46 -0000 @@ -88,8 +88,14 @@ AC_CHECK_LIB([intl],[gettext],[]) dnl Do we have rpcgen? -AC_PATH_PROG([RPCGEN], [rpcgen], [no]) +dnl Prefer portable-rpcgen if it exists, otherwise try system rpcgen. +AC_PATH_PROG([RPCGEN], [portable-rpcgen rpcgen], [no]) AM_CONDITIONAL([RPCGEN], [test "x$ac_cv_path_RPCGEN" != "xno"]) +dnl Is this portable-rpcgen? +AM_CONDITIONAL([PORTABLE_RPCGEN], + [test "x$ac_cv_path_RPCGEN" != "xno" && + $ac_cv_path_RPCGEN -V | \ + grep -sq PortableXDR 2>&1]) dnl Is this GLIBC's buggy rpcgen? AM_CONDITIONAL([GLIBC_RPCGEN], [test "x$ac_cv_path_RPCGEN" != "xno" &&