[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1.0] configure: pass suffix to 'sed -i' command
From: |
Pavel Borzenkov |
Subject: |
[Qemu-devel] [PATCH 1.0] configure: pass suffix to 'sed -i' command |
Date: |
Thu, 10 Nov 2011 22:03:05 +0400 |
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 <address@hidden>
---
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 <attr/xattr.h>, 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
- [Qemu-devel] [PATCH 1.0] configure: pass suffix to 'sed -i' command,
Pavel Borzenkov <=