Skip to content

Commit

Permalink
Removed unnecessary (since 1999) check for 16-bit compilers and made …
Browse files Browse the repository at this point in the history
…64-bit

detection better.
  • Loading branch information
U-X1\korpela authored and U-X1\korpela committed May 2, 2014
1 parent b523e16 commit 025fc46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions m4/sah_select_bitness.m4
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ AC_DEFUN([SAH_DEFAULT_BITNESS],[
${CC} ${CFLAGS} -c conftest.c >&5
COMPILER_MODEL_BITS=32
if test -f conftest.${OBJEXT} ; then
if test -n "`file conftest.${OBJEXT} | grep -i 64-bit`"
if test -n "`objdump --file-headers conftest.${OBJEXT} | grep 'file format' | grep 64`" || test -n "`file conftest.${OBJEXT} | grep 64-bit`" conftest.${OBJEXT}
then
COMPILER_MODEL_BITS=64
else
if test -n "`file conftest.${OBJEXT} | grep -i 16-bit`"
then
COMPILER_MODEL_BITS=16
fi
# else
# if test -n "`objdump --file-headers conftest.${OBJEXT} | grep 'file format' | grep 16`"
# then
# COMPILER_MODEL_BITS=16
# fi
fi
fi
/bin/rm conftest.c
Expand Down

0 comments on commit 025fc46

Please sign in to comment.