From 7f8fa1de4fd35c96b61d2f80155bc1aa09367e3d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 7 Jan 2022 00:53:26 -0500 Subject: libgloss: hardcode AC_CONFIG_AUX_DIR path In order to transition to automake, we have to use hardcoded paths in the AC_CONFIG_AUX_DIR macro call (since automake evaluates the path itself, and doesn't expand vars), so simplify all the calls here. --- libgloss/sparc_leon/configure | 16 +++------------- libgloss/sparc_leon/configure.ac | 14 ++------------ 2 files changed, 5 insertions(+), 25 deletions(-) (limited to 'libgloss/sparc_leon') diff --git a/libgloss/sparc_leon/configure b/libgloss/sparc_leon/configure index 163774f7b..335a7431d 100755 --- a/libgloss/sparc_leon/configure +++ b/libgloss/sparc_leon/configure @@ -1768,17 +1768,8 @@ if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" fi -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi ac_aux_dir= -for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do +for ac_dir in ../.. "$srcdir"/../..; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -1794,7 +1785,7 @@ for ac_dir in $libgloss_topdir "$srcdir"/$libgloss_topdir; do fi done if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgloss_topdir \"$srcdir\"/$libgloss_topdir" "$LINENO" 5 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -3277,7 +3268,6 @@ target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} _ACEOF @@ -3845,7 +3835,7 @@ $as_echo X"$file" | done } ;; - "Makefile":F) . ${libgloss_topdir}/config-ml.in ;; + "Makefile":F) . ${srcdir}/../../config-ml.in ;; esac done # for ac_tag diff --git a/libgloss/sparc_leon/configure.ac b/libgloss/sparc_leon/configure.ac index 498145d66..d43fff6b0 100644 --- a/libgloss/sparc_leon/configure.ac +++ b/libgloss/sparc_leon/configure.ac @@ -6,16 +6,7 @@ if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" fi -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) +AC_CONFIG_AUX_DIR(../..) AC_CANONICAL_SYSTEM AC_ARG_PROGRAM @@ -47,12 +38,11 @@ AC_SUBST(target_makefile_frag_path) AC_SUBST_FILE(target_makefile_frag) AC_CONFIG_FILES(Makefile, -. ${libgloss_topdir}/config-ml.in, +. ${srcdir}/../../config-ml.in, srcdir=${srcdir} target=${target} with_multisubdir=${with_multisubdir} ac_configure_args="${ac_configure_args} --enable-multilib" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} ) AC_OUTPUT -- cgit v1.2.3