+Mon Nov 26 11:44:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
+
+ * configure.in, qemud/Makefile.am: Check for buggy glibc rpcgen
+ and only run Perl fix-up script for that.
+
Mon Nov 26 11:42:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Check if -lrpc is needed to get XDR functions.
dnl Need -lrpc? (Cygwin needs this)
AC_SEARCH_LIBS(xdrmem_create,rpc)
+dnl Do we have rpcgen?
+AC_PATH_PROG(RPCGEN, rpcgen, no)
+AM_CONDITIONAL(RPCGEN, [test "x$ac_cv_path_RPCGEN" != "xno"])
+if test "x$ac_cv_path_RPCGEN" != "xno"; then
+ dnl Is this GLIBC's buggy rpcgen?
+ AM_CONDITIONAL(GLIBC_RPCGEN,
+ [$ac_cv_path_RPCGEN -t </dev/null >/dev/null 2>&1])
+fi
+
dnl Specific dir for HTML output ?
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
[path to base html directory, default $datadir/doc/html]),
rmdir $(DESTDIR)$(localstatedir)/lib/libvirt || :
+if RPCGEN
.x.c:
rm -f $@
rpcgen -c -o $@ $<
+if GLIBC_RPCGEN
mv $@ $@.bak
perl -w rpcgen_fix.pl < $@.bak > $@
+endif
.x.h:
rm -f $@
rpcgen -h -o $@ $<
+endif
remote_protocol.c: remote_protocol.h