Files now copied to build directory instead of source directory while configuring
authorPatrice Mandin <patmandin@gmail.com>
Wed, 24 Sep 2003 21:45:27 +0000
changeset 7231e8865a3e127
parent 722 90dfd3f5782c
child 724 6b3dfe0198bb
Files now copied to build directory instead of source directory while configuring
acinclude.m4
configure.in
     1.1 --- a/acinclude.m4	Sun Sep 21 19:25:45 2003 +0000
     1.2 +++ b/acinclude.m4	Wed Sep 24 21:45:27 2003 +0000
     1.3 @@ -4,9 +4,13 @@
     1.4  dnl LINK_ARCH_SRC(source_dir, arch, source_file)
     1.5  AC_DEFUN(COPY_ARCH_SRC,
     1.6  [
     1.7 -  echo "Copying $1/$2/$3 -> $1/$3"
     1.8    old="$srcdir/$1/$2/$3"
     1.9 -  new="$srcdir/$1/$3"
    1.10 +  new="$1/$3"
    1.11 +  if test ! -d $1; then
    1.12 +    echo "Creating directory $1"
    1.13 +    mkdir -p $1
    1.14 +  fi
    1.15 +  echo "Copying $old -> $new"
    1.16    cat >$new <<__EOF__
    1.17  /* WARNING:  This file was automatically generated!
    1.18   * Original: $old
     2.1 --- a/configure.in	Sun Sep 21 19:25:45 2003 +0000
     2.2 +++ b/configure.in	Wed Sep 24 21:45:27 2003 +0000
     2.3 @@ -2646,6 +2646,7 @@
     2.4  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/timer"
     2.5  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/endian"
     2.6  CFLAGS="$CFLAGS -I\$(top_srcdir)/src/file"
     2.7 +CFLAGS="$CFLAGS -I\$(top_builddir)/src/thread"
     2.8  CXXFLAGS="$CFLAGS"
     2.9  
    2.10