Skip to content

Commit

Permalink
Merge pull request #243 from sanmai-NL/fix_arch_detection_in_configur…
Browse files Browse the repository at this point in the history
…e.ac

Use portable string equality comparison operator
  • Loading branch information
stewid committed Jun 15, 2016
2 parents d5cf226 + 453de63 commit 5f7165a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -289,9 +289,9 @@ esac

# Determine architecture of the machine
AC_CHECK_SIZEOF([void*])
if test "x$ac_cv_sizeof_voidp" == "x8"; then
if test "x$ac_cv_sizeof_voidp" = "x8"; then
CPPFLAGS="${CPPFLAGS} -DGIT_ARCH_64"
elif test "x$ac_cv_sizeof_voidp" == "x4"; then
elif test "x$ac_cv_sizeof_voidp" = "x4"; then
CPPFLAGS="${CPPFLAGS} -DGIT_ARCH_32"
else
AC_MSG_FAILURE([Unsupported architecture])
Expand Down

0 comments on commit 5f7165a

Please sign in to comment.