aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/linux/linuxthreads/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-17 13:14:06 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-18 19:25:18 -0500
commit6746e060432fe942f67e871d1bfb152077e73941 (patch)
tree4f0a34739d03cf8427beb47b6ee97f7a88f23abb /newlib/libc/sys/linux/linuxthreads/configure
parent3722489f1f606b7e35457dae63e5038e23f0752b (diff)
downloadnewlib-6746e060432fe942f67e871d1bfb152077e73941.zip
newlib-6746e060432fe942f67e871d1bfb152077e73941.tar.gz
newlib-6746e060432fe942f67e871d1bfb152077e73941.tar.bz2
newlib: avoid duplicate awk checks
Since AM_INIT_AUTOMAKE calls AC_PROG_AWK, and some configure.ac scripts call it too, we end up testing for awk multiple times. If we change NEWLIB_CONFIGURE to require the macro instead, then it makes sure it's always expanded, but only once. While we're here, do the same thing with AC_PROG_INSTALL since it is also called by AM_INIT_AUTOMAKE, although it doesn't currently result in duplicate configure checks.
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads/configure')
-rwxr-xr-xnewlib/libc/sys/linux/linuxthreads/configure47
1 files changed, 2 insertions, 45 deletions
diff --git a/newlib/libc/sys/linux/linuxthreads/configure b/newlib/libc/sys/linux/linuxthreads/configure
index bf30090..a467690 100755
--- a/newlib/libc/sys/linux/linuxthreads/configure
+++ b/newlib/libc/sys/linux/linuxthreads/configure
@@ -3825,7 +3825,6 @@ fi
-
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
ac_given_INSTALL=$INSTALL
@@ -4088,48 +4087,6 @@ esac
-for ac_prog in gawk mawk nawk awk
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AWK+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
-$as_echo "$AWK" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$AWK" && break
-done
-
if test "${use_libtool}" = "yes"; then
case `pwd` in
*\ * | *\ *)
@@ -11634,7 +11591,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11637 "configure"
+#line 11594 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11740,7 +11697,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11743 "configure"
+#line 11700 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H