From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScXMB-0007Wg-T7 for qemu-devel@nongnu.org; Thu, 07 Jun 2012 03:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScXMA-0006EV-AM for qemu-devel@nongnu.org; Thu, 07 Jun 2012 03:42:11 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:45957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScXMA-0005e1-0m for qemu-devel@nongnu.org; Thu, 07 Jun 2012 03:42:10 -0400 Received: by mail-pz0-f45.google.com with SMTP id v2so544822dad.4 for ; Thu, 07 Jun 2012 00:42:08 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 7 Jun 2012 09:40:13 +0200 Message-Id: <1339054814-20939-29-git-send-email-pbonzini@redhat.com> In-Reply-To: <1339054814-20939-1-git-send-email-pbonzini@redhat.com> References: <1339054814-20939-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v3 28/29] configure: ensure directory exists when creating symlink List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , anthony@codemonkey.ws From: Anthony Liguori Signed-off-by: Anthony Liguori --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index cd5e8b3..cbcbcb1 100755 --- a/configure +++ b/configure @@ -42,6 +42,7 @@ compile_prog() { # symbolically link $1 to $2. Portable version of "ln -sf". symlink() { rm -rf "$2" + mkdir -p "$(dirname "$2")" ln -s "$1" "$2" } @@ -3454,14 +3455,12 @@ if test -f ${config_host_ld}~ ; then fi for d in libdis libdis-user; do - mkdir -p $d symlink "$source_path/Makefile.dis" "$d/Makefile" echo > $d/config.mak done # use included Linux headers if test "$linux" = "yes" ; then - mkdir -p linux-headers case "$cpu" in i386|x86_64) symlink "$source_path/linux-headers/asm-x86" linux-headers/asm -- 1.7.10.1