about summary refs log tree commit diff
path: root/sysdeps/loongarch
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2024-06-11 23:34:54 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2024-06-17 21:15:28 +0200
commit98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f (patch)
tree9b78b87ea3803c252e6af7173b9633bcd3b08ba2 /sysdeps/loongarch
parent7ec903e028271d029818378fd60ddaf6b76b89ac (diff)
downloadglibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.tar.gz
glibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.tar.xz
glibc-98ffc1bfeb04fb04b7f18f1cbfccf1e43d6a867f.zip
Convert to autoconf 2.72 (vanilla release, no distribution patches)
As discussed at the patch review meeting

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Reviewed-by: Simon Chopin <simon.chopin@canonical.com>
Diffstat (limited to 'sysdeps/loongarch')
-rw-r--r--sysdeps/loongarch/configure33
1 files changed, 19 insertions, 14 deletions
diff --git a/sysdeps/loongarch/configure b/sysdeps/loongarch/configure
index afcef6cd22..d3d9fec910 100644
--- a/sysdeps/loongarch/configure
+++ b/sysdeps/loongarch/configure
@@ -9,8 +9,8 @@ printf %s "checking if ${CC-cc} is sufficient to build static PIE on LoongArch..
 if test ${libc_cv_static_pie_on_loongarch+y}
 then :
   printf %s "(cached) " >&6
-else $as_nop
-
+else case e in #(
+  e)
   cat > conftest.S <<\EOF
 .global _start
 .type _start, @function
@@ -48,7 +48,8 @@ EOF
   then
     libc_cv_static_pie_on_loongarch=yes
   fi
-  rm -rf conftest*
+  rm -rf conftest*  ;;
+esac
 fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_loongarch" >&5
 printf "%s\n" "$libc_cv_static_pie_on_loongarch" >&6; }
@@ -64,8 +65,8 @@ printf %s "checking whether $CC supports option -mcmodel=medium... " >&6; }
 if test ${libc_cv_loongarch_cmodel_medium+y}
 then :
   printf %s "(cached) " >&6
-else $as_nop
-
+else case e in #(
+  e)
   if { ac_try='${CC-cc} -c $CFLAGS -mcmodel=medium /dev/null 1>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   (eval $ac_try) 2>&5
@@ -75,7 +76,8 @@ else $as_nop
     libc_cv_loongarch_cmodel_medium=yes
   else
     libc_cv_loongarch_cmodel_medium=no
-  fi
+  fi ;;
+esac
 fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_cmodel_medium" >&5
 printf "%s\n" "$libc_cv_loongarch_cmodel_medium" >&6; }
@@ -88,8 +90,8 @@ printf %s "checking for vector support in assembler... " >&6; }
 if test ${libc_cv_loongarch_vec_asm+y}
 then :
   printf %s "(cached) " >&6
-else $as_nop
-  cat > conftest.s <<\EOF
+else case e in #(
+  e) cat > conftest.s <<\EOF
         vld  $vr0, $sp, 0
 EOF
 if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5'
@@ -102,7 +104,8 @@ if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5'
 else
   libc_cv_loongarch_vec_asm=no
 fi
-rm -f conftest*
+rm -f conftest* ;;
+esac
 fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_asm" >&5
 printf "%s\n" "$libc_cv_loongarch_vec_asm" >&6; }
@@ -116,8 +119,8 @@ printf %s "checking for vector support in compiler... " >&6; }
 if test ${libc_cv_loongarch_vec_com+y}
 then :
   printf %s "(cached) " >&6
-else $as_nop
-
+else case e in #(
+  e)
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -131,10 +134,12 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"
 then :
   libc_cv_loongarch_vec_com=yes
-else $as_nop
-  libc_cv_loongarch_vec_com=no
+else case e in #(
+  e) libc_cv_loongarch_vec_com=no ;;
+esac
 fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
+esac
 fi
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_com" >&5
 printf "%s\n" "$libc_cv_loongarch_vec_com" >&6; }