We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8005de2 commit ffbabb6Copy full SHA for ffbabb6
configure.in
@@ -210,10 +210,19 @@ fi
210
211
SADC_DIR=$AuxPrefix/lib
212
if test -d $AuxPrefix/lib64; then
213
- # Verify that this OS is really 64 bit
214
- if test $(getconf LONG_BIT) = 64; then
215
- SADC_DIR=$AuxPrefix/lib64
216
- fi
+ # Verify that this OS is really 64 bit
+ BITS=$(getconf LONG_BIT 2>/dev/null)
+ if test $? = 0; then
+ if test $BITS = 64; then
217
+ SADC_DIR=$AuxPrefix/lib64
218
+ fi
219
+ else
220
+ # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
221
+ grep " lm " /proc/cpuinfo >/dev/null 2>&1
222
223
224
225
226
fi
227
228
AC_MSG_CHECKING(sadc directory)
0 commit comments