This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[v3] install backwards headers in prefix



It was recently pointed out on the gcc-bugs list that the current
install practice is to install things like iostream.h in
(prefix)/include/g++-v3/backward. Thus, things that include iostream.h
break unless -I(prefix)/backward is explictly added to the configure
line.

I'd thought this was acceptable, but I recently realized how wrong I
was, and how much I'd like to not spend all of next year answering
this same question.

Past commentary that helped convince me:
http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00042.html


If there are no major objections, I'd like to check this in today.

-benjamin

2000-12-14  Benjamin Kosnik  <bkoz@fillmore.redhat.com>

	* src/Makefile.am (myinstallheaders): Install backwards headers in
	prefix, not prefix/backward.
	* src/Makefile.in: Regenerate.

Index: src/Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/src/Makefile.am,v
retrieving revision 1.57
diff -c -p -r1.57 Makefile.am
*** Makefile.am	2000/12/10 20:51:22	1.57
--- Makefile.am	2000/12/14 23:59:37
*************** install-data-local: myinstalldirs myinst
*** 252,258 ****
  myinstalldirs:
  	if test -z "$(MULTISUBDIR)"; then \
  	$(mkinstalldirs) $(DESTDIR)$(myincludep)/bits; \
- 	$(mkinstalldirs) $(DESTDIR)$(myincludep)/backward; \
  	$(mkinstalldirs) $(DESTDIR)$(myincludep)/ext; \
  	fi
  
--- 252,257 ----
*************** myinstallheaders: 
*** 273,280 ****
  	  $(INSTALL_DATA) $(src_incdir)/$$i $(myincludep)/ext/; \
  	done; \
  	for i in $(backward_headers); do \
!         echo "$(INSTALL_DATA) $(src_incdir)/$$i $(myincludep)/backward/"; \
! 	  $(INSTALL_DATA) $(src_incdir)/$$i $(myincludep)/backward/; \
  	done; \
  	for i in $(c_base_headers); do \
          echo "$(INSTALL_DATA) $(c_incdir)/$$i $(myincludep)/bits/"; \
--- 272,279 ----
  	  $(INSTALL_DATA) $(src_incdir)/$$i $(myincludep)/ext/; \
  	done; \
  	for i in $(backward_headers); do \
!         echo "$(INSTALL_DATA) $(src_incdir)/$$i $(myincludep)"; \
! 	  $(INSTALL_DATA) $(src_incdir)/$$i $(myincludep); \
  	done; \
  	for i in $(c_base_headers); do \
          echo "$(INSTALL_DATA) $(c_incdir)/$$i $(myincludep)/bits/"; \








Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]