Fix to configure when gcc is not present

Michael Meissner meissner@redhat.com
Mon Oct 16 20:08:00 GMT 2000


I was building in a sandbox that didn't have GCC, and it wouldn't
build, due to the October 5th change to create configargs.h.  I
applied the obviously correct fix below.

2000-10-16  Michael Meissner  <meissner@redhat.com>

	* configure (gcc/configargs.h): Only create if there is a build GCC
	directory created.

*** configure.~1~	Wed Oct 11 21:33:45 2000
--- configure	Mon Oct 16 23:00:51 2000
*************** if [ -z "${norecursion}" ] && [ -n "${co
*** 1605,1614 ****
  fi
  
  # Remember configure arguments for later.
! cat > gcc/configargs.h <<EOF
  /* Generated automatically. */
  static const char configuration_arguments[] = "$original_arguments";
  EOF
  
  # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
  # and reset the trap handler.
--- 1605,1616 ----
  fi
  
  # Remember configure arguments for later.
! 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.

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482


More information about the Gcc-patches mailing list