Patchwork [01/14] Generate config-host.h after dealing with all the targets

login
register
mail settings
Submitter Juan Quintela
Date Aug. 20, 2009, 11:37 p.m.
Message ID <97dae855ab5f0eca022e13263b8c4216c50b186d.1250810973.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31783/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 20, 2009, 11:37 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/configure b/configure
index 0b2c721..e0928fe 100755
--- a/configure
+++ b/configure
@@ -1793,10 +1793,6 @@  echo "LIBS+=$LIBS" >> $config_host_mak
 echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak

-echo "/* Automatically generated by configure - do not modify */" > $config_host_h
-
-/bin/sh $source_path/create_config < $config_host_mak >> $config_host_h
-
 if test -f ${config_host_h}~ ; then
   if cmp -s $config_host_h ${config_host_h}~ ; then
     mv ${config_host_h}~ $config_host_h
@@ -2227,6 +2223,10 @@  fi

 done # for target in $targets

+echo "/* Automatically generated by configure - do not modify */" > $config_host_h
+
+/bin/sh $source_path/create_config < $config_host_mak >> $config_host_h
+
 # build tree in object directory if source path is different from current one
 if test "$source_path_used" = "yes" ; then
     DIRS="tests tests/cris slirp audio block pc-bios/optionrom"