Received: from eggs.gnu.org ([140.186.70.92]:34092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROZ1c-0005MZ-Cj for qemu-devel@nongnu.org; Thu, 10 Nov 2011 13:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROZ1b-0001Ng-Aj for qemu-devel@nongnu.org; Thu, 10 Nov 2011 13:06:56 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:33073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROZ1b-0001NZ-6L for qemu-devel@nongnu.org; Thu, 10 Nov 2011 13:06:55 -0500 Received: by wwg7 with SMTP id 7so3991808wwg.10 for ; Thu, 10 Nov 2011 10:06:54 -0800 (PST) From: Pavel Borzenkov Date: Thu, 10 Nov 2011 22:03:05 +0400 Message-Id: <1320948185-31411-1-git-send-email-pavel.borzenkov@gmail.com> Subject: [Qemu-devel] [PATCH 1.0] configure: pass suffix to 'sed -i' command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org BSD sed always requires a suffix to be passed when '-i' switch is used. In GNU sed this suffix is optional. Due to this, configure prints the following error when runs on Mac OS X: sed: 1: "/var/folders/r_/1g8ws8s ...": invalid command code f Signed-off-by: Pavel Borzenkov --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 401d9a6..b83640e 100755 --- a/configure +++ b/configure @@ -1968,7 +1968,7 @@ EOF if compile_prog "" "" ; then attr=yes # Older distros have , and need -lattr: - elif sed -i s,sys/xattr,attr/xattr, $TMPC && compile_prog "" "-lattr" ; then + elif sed -i.bak s,sys/xattr,attr/xattr, $TMPC && compile_prog "" "-lattr" ; then attr=yes LIBS="-lattr $LIBS" libattr=yes -- 1.7.5.4