This is the mail archive of the gcc-bugs@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]

gcc-2.95 configure bug when prefix is not parent of exec-prefix


Line 172 of gcc-2.95/gcc/configure.in reads as follows:

gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}

Take the case where prefix is "<foo>/NOARCH" and exec_prefix is 
"<foo>/SunOS_5.7_sparc".

This ends up evaluating to "/include/g++" any time where prefix is not a
parent of exec_prefix, which is wrong, because that's not where libstdc++
configure is going to put the files.  I'd call this a bug.

I don't see what would be wrong with:
gcc_gxx_include_dir="\$(prefix)/include/g++"-${libstdcxx_interface}
although I did not read the rest of configure.in to try to verify this.

Meanwhile, I am just using:
	--with-gxx-include-dir=${prefix}/include/g++-3


-- 
Jonathan Sergent / sergent@Eng.Sun.COM


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