Only create gcc/configargs.h if gcc build directory is present
authorMichael Meissner <meissner@redhat.com>
Tue, 17 Oct 2000 03:00:51 +0000 (03:00 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 17 Oct 2000 03:00:51 +0000 (03:00 +0000)
From-SVN: r36894

ChangeLog
configure

index ca4f48354d571cd10f4537b0413edd992c670ae2..138152119eb22e14ac7bba3af3f69eb2b5e64403 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-16  Michael Meissner  <meissner@redhat.com>
+
+       * configure (gcc/configargs.h): Only create if there is a build GCC
+       directory created.
+
 2000-10-16  Matthias Klose  <doko@debian.org> 
  
        * config.if: Search libstdc++-v3/configure.in for INTERFACE,
index 70dcb5bb04ee30ff622219d6d6e407e4198e804a..95467f5a3cc70d572e0b103c4b74b3d8d304e3e2 100755 (executable)
--- a/configure
+++ b/configure
@@ -88,7 +88,7 @@ subdirs=
 target_alias=NOTARGET
 target_makefile_frag=
 undefs=NOUNDEFS
-version="$Revision: 1.28 $"
+version="$Revision: 1.29 $"
 x11=default
 bindir='${exec_prefix}/bin'
 sbindir='${exec_prefix}/sbin'
@@ -1605,10 +1605,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
 fi
 
 # Remember configure arguments for later.
-cat > gcc/configargs.h <<EOF
+if [ -d gcc ]; then
+       cat > gcc/configargs.h <<EOF
 /* Generated automatically. */
 static const char configuration_arguments[] = "$original_arguments";
 EOF
+fi
 
 # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
 # and reset the trap handler.