diff options
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r-- | libgcc/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac index 7481893..2a93b9e 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -39,6 +39,7 @@ else fi AC_SUBST(libgcc_topdir) AC_CONFIG_AUX_DIR($libgcc_topdir) +AC_CONFIG_HEADER(auto-target.h:config.in) AC_ARG_ENABLE(shared, [ --disable-shared don't provide a shared libgcc], @@ -327,6 +328,15 @@ if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then fi AC_SUBST(set_use_emutls) +AC_CACHE_CHECK(for init priority support, libgcc_cv_init_priority, [ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, + [[void ip (void) __attribute__ ((constructor (1)));]])], + [libgcc_cv_init_priority=yes],[libgcc_cv_init_priority=no])]) +if test $libgcc_cv_init_priority = yes; then + AC_DEFINE(HAVE_INIT_PRIORITY, 1, + [Define if the compiler supports init priority.]) +fi + # Conditionalize the sfp-machine.h header for this target machine. if test -z "${sfp_machine_header}"; then sfp_machine_header=$cpu_type/sfp-machine.h |