我想定义PLATFORM64
如果SIZEOF_VOIDP
等于 8,下面的配置片段不起作用,但显示了我想要实现的目标。有没有办法在我的配置脚本中做到这一点?
# Get size of void*
AC_CHECK_SIZEOF(void*)
# Determine if this is a 32 or 64 bit system, this can also be set manually with "-DPLATFORM64"
AM_CONDITIONAL([PLATFORM64], [test SIZEOF_VOIDP = 8])
更新:
我试过了:
AM_CONDITIONAL([PLATFORM64], [test "$SIZEOF_VOIDP" -eq 8])
但我收到“测试:错误号码”错误消息。