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/doc/configure | 40 +++------------------------------------- libgloss/doc/configure.ac | 8 +------- 2 files changed, 4 insertions(+), 44 deletions(-) (limited to 'libgloss/doc') diff --git a/libgloss/doc/configure b/libgloss/doc/configure index a5ed667b2..098220b69 100755 --- a/libgloss/doc/configure +++ b/libgloss/doc/configure @@ -1664,11 +1664,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([^/][^/]*\),..,g' -e 's,^/$,,'` - ac_aux_dir= -for ac_dir in ${mdir}../../.. "$srcdir"/${mdir}../../..; do +ac_aux_dir= +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" @@ -1684,7 +1681,7 @@ for ac_dir in ${mdir}../../.. "$srcdir"/${mdir}../../..; do fi done if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${mdir}../../.. \"$srcdir\"/${mdir}../../.." "$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, @@ -1696,37 +1693,6 @@ ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -else - ac_aux_dir= -for ac_dir in ${srcdir}/../.. "$srcdir"/${srcdir}/../..; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/../.. \"$srcdir\"/${srcdir}/../.." "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or diff --git a/libgloss/doc/configure.ac b/libgloss/doc/configure.ac index 99d1d174c..a12099b4f 100644 --- a/libgloss/doc/configure.ac +++ b/libgloss/doc/configure.ac @@ -2,13 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.69)dnl AC_INIT(porting.texi) -if test "$srcdir" = "." ; then - mdir=`echo "${with_multisubdir}/" \ - | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'` - AC_CONFIG_AUX_DIR(${mdir}../../..) -else - AC_CONFIG_AUX_DIR(${srcdir}/../..) -fi +AC_CONFIG_AUX_DIR(../..) AC_PROG_INSTALL -- cgit v1.2.3