4953a1
diff -ru sharutils-4.15.orig/configure sharutils-4.15/configure
4953a1
--- sharutils-4.15.orig/configure	2015-02-07 19:52:28.000000000 +0100
4953a1
+++ sharutils-4.15/configure	2021-12-23 08:45:58.698825416 +0100
4953a1
@@ -32620,34 +32620,10 @@
4953a1
   CATALOGS="$new_CATALOGS"
4953a1
 fi
4953a1
 
4953a1
-if test "$cross_compiling" = yes; then :
4953a1
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953a1
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953a1
-as_fn_error $? "cannot run test program while cross compiling
4953a1
-See \`config.log' for more details" "$LINENO" 5; }
4953a1
-else
4953a1
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953a1
-/* end confdefs.h.  */
4953a1
-
4953a1
-int
4953a1
-main ()
4953a1
-{
4953a1
-    FILE * fp = popen ("date", "rb");
4953a1
-    exit (fp == NULL);
4953a1
-  ;
4953a1
-  return 0;
4953a1
-}
4953a1
-_ACEOF
4953a1
-if ac_fn_c_try_run "$LINENO"; then :
4953a1
 
4953a1
 $as_echo "#define BINARY_MODE_POPEN 1" >>confdefs.h
4953a1
 
4953a1
 
4953a1
-fi
4953a1
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4953a1
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
4953a1
-fi
4953a1
-
4953a1
 # INVOKE_LIBOPTS_MACROS
4953a1
 ac_cv_header_alloca_h=yes
4953a1
 ac_cv_header_ctype_h=yes