acinclude.m4
changeset 723 1e8865a3e127
parent 1 cf2af46e9e2a
child 729 dac996d69abb
--- a/acinclude.m4	Sun Sep 21 19:25:45 2003 +0000
+++ b/acinclude.m4	Wed Sep 24 21:45:27 2003 +0000
@@ -4,9 +4,13 @@
 dnl LINK_ARCH_SRC(source_dir, arch, source_file)
 AC_DEFUN(COPY_ARCH_SRC,
 [
-  echo "Copying $1/$2/$3 -> $1/$3"
   old="$srcdir/$1/$2/$3"
-  new="$srcdir/$1/$3"
+  new="$1/$3"
+  if test ! -d $1; then
+    echo "Creating directory $1"
+    mkdir -p $1
+  fi
+  echo "Copying $old -> $new"
   cat >$new <<__EOF__
 /* WARNING:  This file was automatically generated!
  * Original: $old