* configure.ac: Add libelf to host_libs. Enable in-tree configury
of ppl and cloog. Fix in-tree configury of libelf, skip tests. Fix portability of test of C++ as bootstrap language. Add ppl/src/ppl-config.o to the bootstrap compare exclusion list. * configure: Rebuild. * Makefile.def: Drop host and target settings from gmp, mpfr, ppl, and cloog. Fix in-tree ppl configuration. Introduce libelf in-tree building. * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New. (POSTSTAGE1_HOST_EXPORTS): Use it. (STAGE[+id+]_CXXFLAGS): New. (BASE_FLAGS_TO_PASS): Pass it down. (configure-stage[+id+]-[+prefix+][+module+]): Use it. Add extra_exports. (all-stage[+id+]-[+prefix+][+module+]): Likewise. (configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add extra_exports. * Makefile.in: Rebuild. * configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem paths for *-w64-mingw* and x86_64-*mingw*. * configure: Regenerated. * configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets. * configure: Regenerated. * configure.ac (CLooG test): Use = with test. * configure: Regenerate. * configure.ac: Do not set LIBS for ppl/cloog checks. Disable cloog if the ppl version check failed. Move flags saving before setting in libelf check. * configure: Regenerate. * configure.ac: Adjust the ppl and cloog configure to work as documented. Disable cloog if ppl was disabled. Omit the version checks if they were disabled. * configure: Re-generate.
This commit is contained in:
parent
b755d497f5
commit
5074489a49
52
ChangeLog
52
ChangeLog
|
@ -1,3 +1,55 @@
|
||||||
|
2009-11-16 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* configure.ac: Add libelf to host_libs. Enable in-tree configury
|
||||||
|
of ppl and cloog. Fix in-tree configury of libelf, skip tests.
|
||||||
|
Fix portability of test of C++ as bootstrap language. Add
|
||||||
|
ppl/src/ppl-config.o to the bootstrap compare exclusion list.
|
||||||
|
* configure: Rebuild.
|
||||||
|
* Makefile.def: Drop host and target settings from gmp, mpfr, ppl,
|
||||||
|
and cloog. Fix in-tree ppl configuration. Introduce libelf
|
||||||
|
in-tree building.
|
||||||
|
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New.
|
||||||
|
(POSTSTAGE1_HOST_EXPORTS): Use it.
|
||||||
|
(STAGE[+id+]_CXXFLAGS): New.
|
||||||
|
(BASE_FLAGS_TO_PASS): Pass it down.
|
||||||
|
(configure-stage[+id+]-[+prefix+][+module+]): Use it. Add
|
||||||
|
extra_exports.
|
||||||
|
(all-stage[+id+]-[+prefix+][+module+]): Likewise.
|
||||||
|
(configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add
|
||||||
|
extra_exports.
|
||||||
|
* Makefile.in: Rebuild.
|
||||||
|
|
||||||
|
2009-11-06 Ozkan Sezer <sezeroz@gmail.com>
|
||||||
|
|
||||||
|
* configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem
|
||||||
|
paths for *-w64-mingw* and x86_64-*mingw*.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
|
2009-10-30 Kai Tietz <kai.tietz@onevision.com>
|
||||||
|
|
||||||
|
* configure.ac: Disable target-winsup & co for
|
||||||
|
x86_64-*-mingw* and *-w64-mingw* targets.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
|
2009-10-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* configure.ac (CLooG test): Use = with test.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
|
2009-10-22 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* configure.ac: Do not set LIBS for ppl/cloog checks. Disable
|
||||||
|
cloog if the ppl version check failed. Move flags saving
|
||||||
|
before setting in libelf check.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
|
2009-10-21 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
|
* configure.ac: Adjust the ppl and cloog configure to work as
|
||||||
|
documented. Disable cloog if ppl was disabled. Omit the version
|
||||||
|
checks if they were disabled.
|
||||||
|
* configure: Re-generate.
|
||||||
|
|
||||||
2009-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2009-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* configure.ac: Add 'lto' to enable_languages, not
|
* configure.ac: Add 'lto' to enable_languages, not
|
||||||
|
|
26
Makefile.def
26
Makefile.def
|
@ -62,27 +62,24 @@ host_modules= { module= gawk; };
|
||||||
host_modules= { module= gettext; };
|
host_modules= { module= gettext; };
|
||||||
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
|
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
|
||||||
extra_configure_flags='--disable-shared';
|
extra_configure_flags='--disable-shared';
|
||||||
no_install= true;
|
no_install= true; };
|
||||||
host="none-${host_vendor}-${host_os}";
|
|
||||||
target="none-${host_vendor}-${host_os}"; };
|
|
||||||
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
|
host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
|
||||||
extra_configure_flags='--disable-shared @extra_mpfr_configure_flags@';
|
extra_configure_flags='--disable-shared @extra_mpfr_configure_flags@';
|
||||||
no_install= true;
|
no_install= true; };
|
||||||
host="none-${host_vendor}-${host_os}";
|
|
||||||
target="none-${host_vendor}-${host_os}"; };
|
|
||||||
host_modules= { module= mpc; lib_path=.libs; bootstrap=true;
|
host_modules= { module= mpc; lib_path=.libs; bootstrap=true;
|
||||||
extra_configure_flags='--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@';
|
extra_configure_flags='--disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@';
|
||||||
no_install= true; };
|
no_install= true; };
|
||||||
host_modules= { module= ppl; lib_path=.libs; bootstrap=true;
|
host_modules= { module= ppl; lib_path=src/.libs; bootstrap=true;
|
||||||
extra_configure_flags='--disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/';
|
extra_configure_flags='--disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/';
|
||||||
no_install= true;
|
no_install= true; };
|
||||||
host="none-${host_vendor}-${host_os}";
|
|
||||||
target="none-${host_vendor}-${host_os}"; };
|
|
||||||
host_modules= { module= cloog; lib_path=.libs; bootstrap=true;
|
host_modules= { module= cloog; lib_path=.libs; bootstrap=true;
|
||||||
extra_configure_flags='--disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp';
|
extra_configure_flags='--disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-bits=gmp --with-ppl';
|
||||||
no_install= true;
|
extra_exports='CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}"; export CPPFLAGS; LDFLAGS="$$LDFLAGS ${HOST_PPLLIBS}"; export LDFLAGS; ';
|
||||||
host="none-${host_vendor}-${host_os}";
|
extra_make_flags='CPPFLAGS="${CPPFLAGS} ${HOST_PPLINC}" LDFLAGS="$$LDFLAGS"';
|
||||||
target="none-${host_vendor}-${host_os}"; };
|
no_install= true; };
|
||||||
|
host_modules= { module= libelf; lib_path=.libs; bootstrap=true;
|
||||||
|
extra_configure_flags='--disable-shared';
|
||||||
|
no_install= true; };
|
||||||
host_modules= { module= gnuserv; };
|
host_modules= { module= gnuserv; };
|
||||||
host_modules= { module= gold; bootstrap=true; };
|
host_modules= { module= gold; bootstrap=true; };
|
||||||
host_modules= { module= gprof; };
|
host_modules= { module= gprof; };
|
||||||
|
@ -326,6 +323,7 @@ dependencies = { module=all-gcc; on=all-mpfr; };
|
||||||
dependencies = { module=all-gcc; on=all-mpc; };
|
dependencies = { module=all-gcc; on=all-mpc; };
|
||||||
dependencies = { module=all-gcc; on=all-ppl; };
|
dependencies = { module=all-gcc; on=all-ppl; };
|
||||||
dependencies = { module=all-gcc; on=all-cloog; };
|
dependencies = { module=all-gcc; on=all-cloog; };
|
||||||
|
dependencies = { module=all-gcc; on=all-libelf; };
|
||||||
dependencies = { module=all-gcc; on=all-build-texinfo; };
|
dependencies = { module=all-gcc; on=all-build-texinfo; };
|
||||||
dependencies = { module=all-gcc; on=all-build-bison; };
|
dependencies = { module=all-gcc; on=all-build-bison; };
|
||||||
dependencies = { module=all-gcc; on=all-build-byacc; };
|
dependencies = { module=all-gcc; on=all-build-byacc; };
|
||||||
|
|
2550
Makefile.in
2550
Makefile.in
File diff suppressed because it is too large
Load Diff
50
Makefile.tpl
50
Makefile.tpl
|
@ -229,6 +229,21 @@ HOST_EXPORTS = \
|
||||||
@endif gcc-bootstrap
|
@endif gcc-bootstrap
|
||||||
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
|
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
|
||||||
|
|
||||||
|
POSTSTAGE1_CXX_EXPORT = \
|
||||||
|
CXX='$(CXX)'; export CXX; \
|
||||||
|
CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
|
||||||
|
@if target-libstdc++-v3-bootstrap
|
||||||
|
# Override the above if we're bootstrapping C++.
|
||||||
|
POSTSTAGE1_CXX_EXPORT = \
|
||||||
|
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
|
||||||
|
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
|
||||||
|
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
|
||||||
|
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
|
||||||
|
-I$$s/libstdc++-v3/libsupc++ \
|
||||||
|
-L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \
|
||||||
|
CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
|
||||||
|
@endif target-libstdc++-v3-bootstrap
|
||||||
|
|
||||||
# Similar, for later GCC stages.
|
# Similar, for later GCC stages.
|
||||||
POSTSTAGE1_HOST_EXPORTS = \
|
POSTSTAGE1_HOST_EXPORTS = \
|
||||||
$(HOST_EXPORTS) \
|
$(HOST_EXPORTS) \
|
||||||
|
@ -236,13 +251,7 @@ POSTSTAGE1_HOST_EXPORTS = \
|
||||||
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
|
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
|
||||||
$(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
|
$(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
|
||||||
CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
|
CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
|
||||||
CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \
|
$(POSTSTAGE1_CXX_EXPORT) \
|
||||||
-B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
|
|
||||||
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
|
|
||||||
-I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
|
|
||||||
-I$$s/libstdc++-v3/libsupc++ \
|
|
||||||
-L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs"; export CXX; \
|
|
||||||
CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD; \
|
|
||||||
GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
|
GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
|
||||||
LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
|
LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
|
||||||
HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
|
HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
|
||||||
|
@ -401,6 +410,11 @@ STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
|
||||||
[+ FOR bootstrap-stage +]
|
[+ FOR bootstrap-stage +]
|
||||||
# Defaults for stage [+id+]; some are overridden below.
|
# Defaults for stage [+id+]; some are overridden below.
|
||||||
STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS)
|
STAGE[+id+]_CFLAGS = $(STAGE_CFLAGS)
|
||||||
|
STAGE[+id+]_CXXFLAGS = $(CXXFLAGS)
|
||||||
|
@if target-libstdc++-v3-bootstrap
|
||||||
|
# Override the above if we're bootstrapping C++.
|
||||||
|
STAGE[+id+]_CXXFLAGS = $(STAGE[+id+]_CFLAGS)
|
||||||
|
@endif target-libstdc++-v3-bootstrap
|
||||||
STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS)
|
STAGE[+id+]_TFLAGS = $(STAGE_TFLAGS)
|
||||||
STAGE[+id+]_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
|
STAGE[+id+]_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
|
||||||
[+ ENDFOR bootstrap-stage +]
|
[+ ENDFOR bootstrap-stage +]
|
||||||
|
@ -412,8 +426,8 @@ STAGE[+id+]_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
|
||||||
# overrideable (for a bootstrap build stage1 also builds gcc.info).
|
# overrideable (for a bootstrap build stage1 also builds gcc.info).
|
||||||
|
|
||||||
STAGE1_CFLAGS = @stage1_cflags@
|
STAGE1_CFLAGS = @stage1_cflags@
|
||||||
STAGE1_CHECKING=@stage1_checking@
|
STAGE1_CHECKING = @stage1_checking@
|
||||||
STAGE1_LANGUAGES=@stage1_languages@
|
STAGE1_LANGUAGES = @stage1_languages@
|
||||||
# * We force-disable intermodule optimizations, even if
|
# * We force-disable intermodule optimizations, even if
|
||||||
# --enable-intermodule was passed, since the installed compiler
|
# --enable-intermodule was passed, since the installed compiler
|
||||||
# probably can't handle them. Luckily, autoconf always respects
|
# probably can't handle them. Luckily, autoconf always respects
|
||||||
|
@ -528,6 +542,7 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \
|
||||||
"`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \
|
"`echo '[+flag+]=$([+flag+])' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"[+ ELSE optional +] \
|
||||||
"[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \
|
"[+flag+]=$([+flag+])"[+ ENDIF optional+][+ ENDFOR flags_to_pass +][+ FOR bootstrap-stage +] \
|
||||||
"STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \
|
"STAGE[+id+]_CFLAGS=$(STAGE[+id+]_CFLAGS)" \
|
||||||
|
"STAGE[+id+]_CXXFLAGS=$(STAGE[+id+]_CXXFLAGS)" \
|
||||||
"STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \
|
"STAGE[+id+]_TFLAGS=$(STAGE[+id+]_TFLAGS)"[+ ENDFOR bootstrap-stage +] \
|
||||||
"TFLAGS=$(TFLAGS)" \
|
"TFLAGS=$(TFLAGS)" \
|
||||||
"CONFIG_SHELL=$(SHELL)" \
|
"CONFIG_SHELL=$(SHELL)" \
|
||||||
|
@ -575,8 +590,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \
|
||||||
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
|
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
|
||||||
CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
|
CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
|
||||||
GNATBIND="$${GNATBIND}" \
|
GNATBIND="$${GNATBIND}" \
|
||||||
LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)" \
|
LDFLAGS="$${LDFLAGS}" \
|
||||||
HOST_LIBS="$(POSTSTAGE1_LIBS)" \
|
HOST_LIBS="$${HOST_LIBS}" \
|
||||||
"`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
|
"`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
|
||||||
|
|
||||||
# Flags to pass down to makes which are built with the target environment.
|
# Flags to pass down to makes which are built with the target environment.
|
||||||
|
@ -918,7 +933,7 @@ configure-[+prefix+][+module+]: [+ IF bootstrap +][+ ELSE +]
|
||||||
fi; \
|
fi; \
|
||||||
[+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || exit 0; \
|
[+ ENDIF check_multilibs +]test ! -f [+subdir+]/[+module+]/Makefile || exit 0; \
|
||||||
$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \
|
$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \
|
||||||
[+exports+] \
|
[+exports+] [+extra_exports+] \
|
||||||
echo Configuring in [+subdir+]/[+module+]; \
|
echo Configuring in [+subdir+]/[+module+]; \
|
||||||
cd "[+subdir+]/[+module+]" || exit 1; \
|
cd "[+subdir+]/[+module+]" || exit 1; \
|
||||||
case $(srcdir) in \
|
case $(srcdir) in \
|
||||||
|
@ -967,9 +982,10 @@ configure-stage[+id+]-[+prefix+][+module+]:
|
||||||
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
|
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
|
||||||
LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS;[+ ELSE prefix +] \
|
LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS;[+ ELSE prefix +] \
|
||||||
CFLAGS="$(STAGE[+id+]_CFLAGS)"; export CFLAGS; \
|
CFLAGS="$(STAGE[+id+]_CFLAGS)"; export CFLAGS; \
|
||||||
CXXFLAGS="$(STAGE[+id+]_CFLAGS)"; export CXXFLAGS;[+ IF prev +] \
|
CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"; export CXXFLAGS;[+ IF prev +] \
|
||||||
LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \
|
LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \
|
||||||
LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +]; export LIBCFLAGS;[+ ENDIF prefix +] \
|
LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +]; export LIBCFLAGS;[+
|
||||||
|
ENDIF prefix +] [+extra_exports+] \
|
||||||
echo Configuring stage [+id+] in [+subdir+]/[+module+] ; \
|
echo Configuring stage [+id+] in [+subdir+]/[+module+] ; \
|
||||||
$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \
|
$(SHELL) $(srcdir)/mkinstalldirs [+subdir+]/[+module+] ; \
|
||||||
cd [+subdir+]/[+module+] || exit 1; \
|
cd [+subdir+]/[+module+] || exit 1; \
|
||||||
|
@ -1005,7 +1021,7 @@ all-[+prefix+][+module+]: configure-[+prefix+][+module+][+ IF bootstrap +][+ ELS
|
||||||
@: $(MAKE); $(unstage)[+ ENDIF bootstrap +]
|
@: $(MAKE); $(unstage)[+ ENDIF bootstrap +]
|
||||||
@r=`${PWD_COMMAND}`; export r; \
|
@r=`${PWD_COMMAND}`; export r; \
|
||||||
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
||||||
[+exports+] \
|
[+exports+] [+extra_exports+] \
|
||||||
(cd [+subdir+]/[+module+] && \
|
(cd [+subdir+]/[+module+] && \
|
||||||
$(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+extra_make_flags+] \
|
$(MAKE) $(BASE_FLAGS_TO_PASS) [+args+] [+extra_make_flags+] \
|
||||||
$(TARGET-[+prefix+][+module+]))
|
$(TARGET-[+prefix+][+module+]))
|
||||||
|
@ -1027,14 +1043,14 @@ all-stage[+id+]-[+prefix+][+module+]: configure-stage[+id+]-[+prefix+][+module+]
|
||||||
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
|
||||||
TFLAGS="$(STAGE[+id+]_TFLAGS)"; \
|
TFLAGS="$(STAGE[+id+]_TFLAGS)"; \
|
||||||
[+exports+][+ IF prev +] \
|
[+exports+][+ IF prev +] \
|
||||||
[+poststage1_exports+][+ ENDIF prev +] \
|
[+poststage1_exports+][+ ENDIF prev +] [+extra_exports+] \
|
||||||
cd [+subdir+]/[+module+] && \
|
cd [+subdir+]/[+module+] && \
|
||||||
$(MAKE) $(BASE_FLAGS_TO_PASS)[+ IF prefix +] \
|
$(MAKE) $(BASE_FLAGS_TO_PASS)[+ IF prefix +] \
|
||||||
CFLAGS="$(CFLAGS_FOR_TARGET)" \
|
CFLAGS="$(CFLAGS_FOR_TARGET)" \
|
||||||
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
|
CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
|
||||||
LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \
|
LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"[+ ELSE prefix +] \
|
||||||
CFLAGS="$(STAGE[+id+]_CFLAGS)" \
|
CFLAGS="$(STAGE[+id+]_CFLAGS)" \
|
||||||
CXXFLAGS="$(STAGE[+id+]_CFLAGS)"[+ IF prev +] \
|
CXXFLAGS="$(STAGE[+id+]_CXXFLAGS)"[+ IF prev +] \
|
||||||
LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \
|
LIBCFLAGS="$(STAGE[+id+]_CFLAGS)"[+ ELSE prev +] \
|
||||||
LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \
|
LIBCFLAGS="$(LIBCFLAGS)"[+ ENDIF prev +][+ ENDIF prefix +] \
|
||||||
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
|
CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
|
||||||
|
|
|
@ -2893,7 +2893,7 @@ build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fix
|
||||||
|
|
||||||
# these libraries are used by various programs built for the host environment
|
# these libraries are used by various programs built for the host environment
|
||||||
#
|
#
|
||||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
|
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
|
||||||
|
|
||||||
# these tools are built for the host environment
|
# these tools are built for the host environment
|
||||||
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
||||||
|
@ -3509,12 +3509,14 @@ case "${target}" in
|
||||||
# if the --with-newlib option has been given, because otherwise
|
# if the --with-newlib option has been given, because otherwise
|
||||||
# 'target-newlib' will appear in skipdirs.
|
# 'target-newlib' will appear in skipdirs.
|
||||||
;;
|
;;
|
||||||
i[3456789]86-*-mingw32*)
|
i[3456789]86-w64-mingw*)
|
||||||
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
|
;;
|
||||||
|
i[3456789]86-*-mingw*)
|
||||||
target_configdirs="$target_configdirs target-winsup"
|
target_configdirs="$target_configdirs target-winsup"
|
||||||
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
;;
|
;;
|
||||||
x86_64-*-mingw*)
|
x86_64-*-mingw*)
|
||||||
target_configdirs="$target_configdirs target-winsup"
|
|
||||||
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
;;
|
;;
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
|
@ -3855,7 +3857,7 @@ case "${host}" in
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
|
||||||
$as_echo_n "checking to see if cat works as expected... " >&6; }
|
$as_echo_n "checking to see if cat works as expected... " >&6; }
|
||||||
echo a >cygwin-cat-check
|
echo a >cygwin-cat-check
|
||||||
if test `cat cygwin-cat-check` == a ; then
|
if test `cat cygwin-cat-check` = a ; then
|
||||||
rm cygwin-cat-check
|
rm cygwin-cat-check
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
@ -5749,8 +5751,6 @@ pplinc=
|
||||||
# Check whether --with-ppl was given.
|
# Check whether --with-ppl was given.
|
||||||
if test "${with_ppl+set}" = set; then :
|
if test "${with_ppl+set}" = set; then :
|
||||||
withval=$with_ppl;
|
withval=$with_ppl;
|
||||||
else
|
|
||||||
with_ppl=no
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -5770,10 +5770,11 @@ case $with_ppl in
|
||||||
no)
|
no)
|
||||||
ppllibs=
|
ppllibs=
|
||||||
;;
|
;;
|
||||||
|
"" | yes)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
||||||
pplinc="-I$with_ppl/include $pplinc"
|
pplinc="-I$with_ppl/include $pplinc"
|
||||||
LIBS="$ppllibs $LIBS"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "x$with_ppl_include" != x; then
|
if test "x$with_ppl_include" != x; then
|
||||||
|
@ -5781,12 +5782,11 @@ if test "x$with_ppl_include" != x; then
|
||||||
fi
|
fi
|
||||||
if test "x$with_ppl_lib" != x; then
|
if test "x$with_ppl_lib" != x; then
|
||||||
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
||||||
LIBS="$ppllibs $LIBS"
|
|
||||||
fi
|
fi
|
||||||
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
||||||
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
|
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/.libs -L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/_libs -L$$r/$(HOST_SUBDIR)/ppl/src/.libs -L$$r/$(HOST_SUBDIR)/ppl/src/_libs -lppl_c -lppl -lgmpxx '
|
||||||
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
|
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
|
||||||
LIBS="$ppllibs $LIBS"
|
enable_ppl_version_check=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check whether --enable-ppl-version-check was given.
|
# Check whether --enable-ppl-version-check was given.
|
||||||
|
@ -5797,7 +5797,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "${ENABLE_PPL_CHECK}" = "yes"; then
|
if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
|
||||||
|
@ -5822,7 +5822,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }; ppllibs= ; pplinc=
|
$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||||
CFLAGS="$saved_CFLAGS"
|
CFLAGS="$saved_CFLAGS"
|
||||||
|
@ -5841,8 +5841,6 @@ clooginc=" -DCLOOG_PPL_BACKEND "
|
||||||
# Check whether --with-cloog was given.
|
# Check whether --with-cloog was given.
|
||||||
if test "${with_cloog+set}" = set; then :
|
if test "${with_cloog+set}" = set; then :
|
||||||
withval=$with_cloog;
|
withval=$with_cloog;
|
||||||
else
|
|
||||||
with_cloog=no
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -5858,15 +5856,20 @@ if test "${with_cloog_lib+set}" = set; then :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$with_ppl" = "xno"; then
|
||||||
|
with_cloog=no
|
||||||
|
fi
|
||||||
|
|
||||||
case $with_cloog in
|
case $with_cloog in
|
||||||
no)
|
no)
|
||||||
clooglibs=
|
clooglibs=
|
||||||
clooginc=
|
clooginc=
|
||||||
;;
|
;;
|
||||||
|
"" | yes)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
clooglibs="-L$with_cloog/lib -lcloog"
|
clooglibs="-L$with_cloog/lib -lcloog"
|
||||||
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
||||||
LIBS="$clooglibs $LIBS"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "x$with_cloog_include" != x; then
|
if test "x$with_cloog_include" != x; then
|
||||||
|
@ -5874,12 +5877,11 @@ if test "x$with_cloog_include" != x; then
|
||||||
fi
|
fi
|
||||||
if test "x$with_cloog_lib" != x; then
|
if test "x$with_cloog_lib" != x; then
|
||||||
clooglibs="-L$with_cloog_lib -lcloog"
|
clooglibs="-L$with_cloog_lib -lcloog"
|
||||||
LIBS="$clooglibs $LIBS"
|
|
||||||
fi
|
fi
|
||||||
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
||||||
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
||||||
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
||||||
LIBS="$clooglibs $LIBS"
|
enable_cloog_version_check=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check whether --enable-cloog-version-check was given.
|
# Check whether --enable-cloog-version-check was given.
|
||||||
|
@ -5890,7 +5892,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
|
||||||
|
@ -5957,6 +5959,10 @@ if test "${with_libelf_lib+set}" = set; then :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
saved_CFLAGS="$CFLAGS"
|
||||||
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
|
saved_LIBS="$LIBS"
|
||||||
|
|
||||||
case $with_libelf in
|
case $with_libelf in
|
||||||
"")
|
"")
|
||||||
libelflibs="-lelf"
|
libelflibs="-lelf"
|
||||||
|
@ -5980,14 +5986,11 @@ fi
|
||||||
|
|
||||||
if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
|
if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
|
||||||
&& test -d ${srcdir}/libelf; then
|
&& test -d ${srcdir}/libelf; then
|
||||||
libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/.libs -L$$r/$(HOST_SUBDIR)/libelf/_libs -lelf '
|
libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
|
||||||
libelfinc='-I$$r/$(HOST_SUBDIR)/libelf/include -I$$s/libelf/include'
|
libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
|
||||||
LIBS="$libelflibs $LIBS"
|
LIBS="$libelflibs $LIBS"
|
||||||
fi
|
|
||||||
|
|
||||||
saved_CFLAGS="$CFLAGS"
|
else
|
||||||
saved_CPPFLAGS="$CPPFLAGS"
|
|
||||||
saved_LIBS="$LIBS"
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS $libelfinc"
|
CFLAGS="$CFLAGS $libelfinc"
|
||||||
CPPFLAGS="$CPPFLAGS $libelfinc"
|
CPPFLAGS="$CPPFLAGS $libelfinc"
|
||||||
|
@ -6516,6 +6519,8 @@ to specify its location." "$LINENO" 5
|
||||||
CPPFLAGS="$saved_CPPFLAGS"
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# Flags needed for libelf.
|
# Flags needed for libelf.
|
||||||
|
|
||||||
|
|
||||||
|
@ -6628,7 +6633,8 @@ if test -d ${srcdir}/gcc; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
|
if test "$language" = "c++" \
|
||||||
|
&& test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
|
||||||
boot_language=yes
|
boot_language=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -7799,8 +7805,9 @@ case " $target_configdirs " in
|
||||||
case " $target_configargs " in
|
case " $target_configargs " in
|
||||||
*" --with-newlib "*)
|
*" --with-newlib "*)
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-cygwin*)
|
*-cygwin*)
|
||||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If we're not building GCC, don't discard standard headers.
|
# If we're not building GCC, don't discard standard headers.
|
||||||
|
@ -7856,10 +7863,17 @@ case " $target_configdirs " in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-mingw*)
|
x86_64-*mingw* | *-w64-mingw*)
|
||||||
# Can't be handled as Cygwin above since Mingw does not use newlib.
|
# MinGW-w64 does not use newlib, nor does it use winsup. It may,
|
||||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
|
# however, use a symlink named 'mingw' in ${prefix} .
|
||||||
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
|
||||||
|
;;
|
||||||
|
*-mingw*)
|
||||||
|
# MinGW can't be handled as Cygwin above since it does not use newlib.
|
||||||
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Allow the user to override the flags for
|
# Allow the user to override the flags for
|
||||||
|
@ -14261,6 +14275,9 @@ case "$target" in
|
||||||
hppa*64*-*-hpux*) ;;
|
hppa*64*-*-hpux*) ;;
|
||||||
hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
|
hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
|
||||||
esac
|
esac
|
||||||
|
case " $configdirs " in
|
||||||
|
*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile"
|
ac_config_files="$ac_config_files Makefile"
|
||||||
|
|
83
configure.ac
83
configure.ac
|
@ -161,7 +161,7 @@ build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fix
|
||||||
|
|
||||||
# these libraries are used by various programs built for the host environment
|
# these libraries are used by various programs built for the host environment
|
||||||
#
|
#
|
||||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
|
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
|
||||||
|
|
||||||
# these tools are built for the host environment
|
# these tools are built for the host environment
|
||||||
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
||||||
|
@ -741,14 +741,16 @@ case "${target}" in
|
||||||
# if the --with-newlib option has been given, because otherwise
|
# if the --with-newlib option has been given, because otherwise
|
||||||
# 'target-newlib' will appear in skipdirs.
|
# 'target-newlib' will appear in skipdirs.
|
||||||
;;
|
;;
|
||||||
i[[3456789]]86-*-mingw32*)
|
i[[3456789]]86-w64-mingw*)
|
||||||
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
|
;;
|
||||||
|
i[[3456789]]86-*-mingw*)
|
||||||
target_configdirs="$target_configdirs target-winsup"
|
target_configdirs="$target_configdirs target-winsup"
|
||||||
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
;;
|
;;
|
||||||
x86_64-*-mingw*)
|
x86_64-*-mingw*)
|
||||||
target_configdirs="$target_configdirs target-winsup"
|
|
||||||
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
|
||||||
;;
|
;;
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
target_configdirs="$target_configdirs target-libtermcap target-winsup"
|
target_configdirs="$target_configdirs target-libtermcap target-winsup"
|
||||||
noconfigdirs="$noconfigdirs target-gperf target-libgloss"
|
noconfigdirs="$noconfigdirs target-gperf target-libgloss"
|
||||||
|
@ -758,7 +760,7 @@ case "${target}" in
|
||||||
elif test -d "$srcdir/newlib"; then
|
elif test -d "$srcdir/newlib"; then
|
||||||
echo "Warning: winsup/cygwin is missing so newlib can't be built."
|
echo "Warning: winsup/cygwin is missing so newlib can't be built."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss* | \
|
i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss* | \
|
||||||
i[[3456789]]86-*-uwin* | i[[3456789]]86-*-interix* )
|
i[[3456789]]86-*-uwin* | i[[3456789]]86-*-interix* )
|
||||||
;;
|
;;
|
||||||
|
@ -1514,7 +1516,7 @@ pplinc=
|
||||||
|
|
||||||
AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package
|
AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package
|
||||||
Equivalent to --with-ppl-include=PATH/include
|
Equivalent to --with-ppl-include=PATH/include
|
||||||
plus --with-ppl-lib=PATH/lib],, with_ppl=no)
|
plus --with-ppl-lib=PATH/lib])
|
||||||
AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files])
|
AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files])
|
||||||
AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library])
|
AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library])
|
||||||
|
|
||||||
|
@ -1522,10 +1524,11 @@ case $with_ppl in
|
||||||
no)
|
no)
|
||||||
ppllibs=
|
ppllibs=
|
||||||
;;
|
;;
|
||||||
|
"" | yes)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
||||||
pplinc="-I$with_ppl/include $pplinc"
|
pplinc="-I$with_ppl/include $pplinc"
|
||||||
LIBS="$ppllibs $LIBS"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "x$with_ppl_include" != x; then
|
if test "x$with_ppl_include" != x; then
|
||||||
|
@ -1533,12 +1536,11 @@ if test "x$with_ppl_include" != x; then
|
||||||
fi
|
fi
|
||||||
if test "x$with_ppl_lib" != x; then
|
if test "x$with_ppl_lib" != x; then
|
||||||
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
||||||
LIBS="$ppllibs $LIBS"
|
|
||||||
fi
|
fi
|
||||||
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
||||||
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
|
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/.libs -L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/_libs -L$$r/$(HOST_SUBDIR)/ppl/src/.libs -L$$r/$(HOST_SUBDIR)/ppl/src/_libs -lppl_c -lppl -lgmpxx '
|
||||||
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
|
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
|
||||||
LIBS="$ppllibs $LIBS"
|
enable_ppl_version_check=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(ppl-version-check,
|
AC_ARG_ENABLE(ppl-version-check,
|
||||||
|
@ -1546,7 +1548,7 @@ AC_ARG_ENABLE(ppl-version-check,
|
||||||
ENABLE_PPL_CHECK=$enableval,
|
ENABLE_PPL_CHECK=$enableval,
|
||||||
ENABLE_PPL_CHECK=yes)
|
ENABLE_PPL_CHECK=yes)
|
||||||
|
|
||||||
if test "${ENABLE_PPL_CHECK}" = "yes"; then
|
if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
||||||
AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL])
|
AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL])
|
||||||
|
@ -1554,7 +1556,7 @@ if test "${ENABLE_PPL_CHECK}" = "yes"; then
|
||||||
#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
|
#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
|
||||||
choke me
|
choke me
|
||||||
#endif
|
#endif
|
||||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ])
|
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ; with_ppl=no ])
|
||||||
CFLAGS="$saved_CFLAGS"
|
CFLAGS="$saved_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1569,19 +1571,24 @@ clooginc=" -DCLOOG_PPL_BACKEND "
|
||||||
|
|
||||||
AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
|
AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
|
||||||
Equivalent to --with-cloog-include=PATH/include
|
Equivalent to --with-cloog-include=PATH/include
|
||||||
plus --with-cloog-lib=PATH/lib],, with_cloog=no)
|
plus --with-cloog-lib=PATH/lib])
|
||||||
AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files])
|
AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files])
|
||||||
AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library])
|
AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library])
|
||||||
|
|
||||||
|
if test "x$with_ppl" = "xno"; then
|
||||||
|
with_cloog=no
|
||||||
|
fi
|
||||||
|
|
||||||
case $with_cloog in
|
case $with_cloog in
|
||||||
no)
|
no)
|
||||||
clooglibs=
|
clooglibs=
|
||||||
clooginc=
|
clooginc=
|
||||||
;;
|
;;
|
||||||
|
"" | yes)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
clooglibs="-L$with_cloog/lib -lcloog"
|
clooglibs="-L$with_cloog/lib -lcloog"
|
||||||
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
||||||
LIBS="$clooglibs $LIBS"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "x$with_cloog_include" != x; then
|
if test "x$with_cloog_include" != x; then
|
||||||
|
@ -1589,12 +1596,11 @@ if test "x$with_cloog_include" != x; then
|
||||||
fi
|
fi
|
||||||
if test "x$with_cloog_lib" != x; then
|
if test "x$with_cloog_lib" != x; then
|
||||||
clooglibs="-L$with_cloog_lib -lcloog"
|
clooglibs="-L$with_cloog_lib -lcloog"
|
||||||
LIBS="$clooglibs $LIBS"
|
|
||||||
fi
|
fi
|
||||||
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
||||||
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
||||||
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
||||||
LIBS="$clooglibs $LIBS"
|
enable_cloog_version_check=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(cloog-version-check,
|
AC_ARG_ENABLE(cloog-version-check,
|
||||||
|
@ -1602,7 +1608,7 @@ AC_ARG_ENABLE(cloog-version-check,
|
||||||
ENABLE_CLOOG_CHECK=$enableval,
|
ENABLE_CLOOG_CHECK=$enableval,
|
||||||
ENABLE_CLOOG_CHECK=yes)
|
ENABLE_CLOOG_CHECK=yes)
|
||||||
|
|
||||||
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
||||||
AC_MSG_CHECKING([for correct version of CLooG])
|
AC_MSG_CHECKING([for correct version of CLooG])
|
||||||
|
@ -1634,6 +1640,10 @@ if test x"$enable_lto" = x"yes" ; then
|
||||||
|
|
||||||
AC_ARG_WITH(libelf_lib, [ --with-libelf-lib=PATH Specify the directory for the installed libelf library])
|
AC_ARG_WITH(libelf_lib, [ --with-libelf-lib=PATH Specify the directory for the installed libelf library])
|
||||||
|
|
||||||
|
saved_CFLAGS="$CFLAGS"
|
||||||
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
|
saved_LIBS="$LIBS"
|
||||||
|
|
||||||
case $with_libelf in
|
case $with_libelf in
|
||||||
"")
|
"")
|
||||||
libelflibs="-lelf"
|
libelflibs="-lelf"
|
||||||
|
@ -1657,14 +1667,11 @@ if test x"$enable_lto" = x"yes" ; then
|
||||||
|
|
||||||
if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
|
if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
|
||||||
&& test -d ${srcdir}/libelf; then
|
&& test -d ${srcdir}/libelf; then
|
||||||
libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/.libs -L$$r/$(HOST_SUBDIR)/libelf/_libs -lelf '
|
libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
|
||||||
libelfinc='-I$$r/$(HOST_SUBDIR)/libelf/include -I$$s/libelf/include'
|
libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
|
||||||
LIBS="$libelflibs $LIBS"
|
LIBS="$libelflibs $LIBS"
|
||||||
fi
|
|
||||||
|
|
||||||
saved_CFLAGS="$CFLAGS"
|
else
|
||||||
saved_CPPFLAGS="$CPPFLAGS"
|
|
||||||
saved_LIBS="$LIBS"
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS $libelfinc"
|
CFLAGS="$CFLAGS $libelfinc"
|
||||||
CPPFLAGS="$CPPFLAGS $libelfinc"
|
CPPFLAGS="$CPPFLAGS $libelfinc"
|
||||||
|
@ -1734,6 +1741,8 @@ to specify its location.])
|
||||||
CPPFLAGS="$saved_CPPFLAGS"
|
CPPFLAGS="$saved_CPPFLAGS"
|
||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# Flags needed for libelf.
|
# Flags needed for libelf.
|
||||||
AC_SUBST(libelflibs)
|
AC_SUBST(libelflibs)
|
||||||
AC_SUBST(libelfinc)
|
AC_SUBST(libelfinc)
|
||||||
|
@ -1846,7 +1855,8 @@ if test -d ${srcdir}/gcc; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
|
if test "$language" = "c++" \
|
||||||
|
&& test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
|
||||||
boot_language=yes
|
boot_language=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2955,8 +2965,9 @@ case " $target_configdirs " in
|
||||||
case " $target_configargs " in
|
case " $target_configargs " in
|
||||||
*" --with-newlib "*)
|
*" --with-newlib "*)
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-cygwin*)
|
*-cygwin*)
|
||||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If we're not building GCC, don't discard standard headers.
|
# If we're not building GCC, don't discard standard headers.
|
||||||
|
@ -3012,10 +3023,17 @@ case " $target_configdirs " in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*-mingw*)
|
x86_64-*mingw* | *-w64-mingw*)
|
||||||
# Can't be handled as Cygwin above since Mingw does not use newlib.
|
# MinGW-w64 does not use newlib, nor does it use winsup. It may,
|
||||||
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
|
# however, use a symlink named 'mingw' in ${prefix} .
|
||||||
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
|
||||||
|
;;
|
||||||
|
*-mingw*)
|
||||||
|
# MinGW can't be handled as Cygwin above since it does not use newlib.
|
||||||
|
FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Allow the user to override the flags for
|
# Allow the user to override the flags for
|
||||||
|
@ -3356,6 +3374,9 @@ case "$target" in
|
||||||
hppa*64*-*-hpux*) ;;
|
hppa*64*-*-hpux*) ;;
|
||||||
hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
|
hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
|
||||||
esac
|
esac
|
||||||
|
case " $configdirs " in
|
||||||
|
*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
|
||||||
|
esac
|
||||||
AC_SUBST(compare_exclusions)
|
AC_SUBST(compare_exclusions)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile],
|
AC_CONFIG_FILES([Makefile],
|
||||||
|
|
Loading…
Reference in New Issue