summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2013-05-02 11:04:57 +0100
committerRichard Dale <richard.dale@codethink.co.uk>2013-05-02 11:04:57 +0100
commitcb3ea602294b5038b5f7ac21d3875a2b52342956 (patch)
treea7c0ddddd75b947310b41539d7ebe6a3ef216434
parent35369144ef87ffacd579b9d21869aed1116f69d4 (diff)
downloadruby-cb3ea602294b5038b5f7ac21d3875a2b52342956.tar.gz
Fix the test for ELF executables so that it works with busy boxbaserock/morph/ruby_1_9_3
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 849bb7b7d0..accaf9ee3b 100644
--- a/configure.in
+++ b/configure.in
@@ -1911,8 +1911,8 @@ AC_ARG_WITH(dln-a-out,
AC_CACHE_CHECK(whether ELF binaries are produced, rb_cv_binary_elf,
[AC_TRY_LINK([],[], [
-AS_CASE(["`head -1 conftest$EXEEXT | cat -e`"],
-['^?ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])],
+AS_CASE(["`head -n1 conftest$EXEEXT`"],
+[*'ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])],
rb_cv_binary_elf=no)])
if test "$rb_cv_binary_elf" = yes; then