diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-24 08:28:05 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-02 07:06:21 +0300 |
commit | 30f244155b8e82aa948ddcb8f2350654fc1adb92 (patch) | |
tree | f54d795ae2eb1d4fc5cfd107633085bcc95daed0 /libgloss/configure.ac | |
parent | d5a20f0b70c73c72ec2bc4b639815bb821859255 (diff) |
libgloss: merge subdirs that have unique makefile_frags up a level
Merge the subdir configure scripts up that only existed to set unique
values for their target/host makefile_frags.
Diffstat (limited to 'libgloss/configure.ac')
-rw-r--r-- | libgloss/configure.ac | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libgloss/configure.ac b/libgloss/configure.ac index c288854ee..c65a3655a 100644 --- a/libgloss/configure.ac +++ b/libgloss/configure.ac @@ -25,6 +25,9 @@ config_testsuite=true dnl indicates whether to run configure within the libnosys subdirectory config_libnosys=true +host_makefile_frag=${srcdir}/config/default.mh +target_makefile_frag=${srcdir}/config/default.mt + case "${target}" in aarch64*-*-*) AC_CONFIG_SUBDIRS(aarch64) @@ -86,7 +89,9 @@ case "${target}" in subdirs="$subdirs riscv" ;; powerpc-*-*|powerpcle-*-*) - AC_CONFIG_SUBDIRS([rs6000]) + AC_CONFIG_FILES([rs6000/Makefile]) + subdirs="$subdirs rs6000" + host_makefile_frag=${srcdir}/config/ppc.mh ;; mn10200-*-*) AC_CONFIG_SUBDIRS([mn10200]) @@ -158,7 +163,9 @@ case "${target}" in config_testsuite=false ;; xc16x-*-*) - AC_CONFIG_SUBDIRS([xc16x]) + AC_CONFIG_FILES([xc16x/Makefile]) + subdirs="$subdirs xc16x" + target_makefile_frag=${srcdir}/config/xc16x.mt ;; xstormy16-*-*) AC_CONFIG_FILES([xstormy16/Makefile]) @@ -185,7 +192,9 @@ case "${target}" in AC_CONFIG_SUBDIRS([arm]) ;; spu-*-elf) - AC_CONFIG_SUBDIRS([spu]) + AC_CONFIG_FILES([spu/Makefile]) + subdirs="$subdirs spu" + host_makefile_frag=${srcdir}/config/ppc.mh config_testsuite=false config_libnosys=false ;; @@ -310,9 +319,6 @@ AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix]) m4_include([libnosys/acinclude.m4]) -host_makefile_frag=${srcdir}/config/default.mh -target_makefile_frag=${srcdir}/config/default.mt - dnl We have to assign the same value to other variables because autoconf dnl doesn't provide a mechanism to substitute a replacement keyword with dnl arbitrary data or pathnames. |