comparison common/autoconf/build-performance.m4 @ 43388:509c3ebb5c97

8004842: Unify values of boolean make variables set in configure to true/false Reviewed-by: erikj
author ihse
date Fri, 03 Feb 2017 15:19:38 +0100
parents 8c12153445ae
children 676afd13dea5
comparison
equal deleted inserted replaced
37:e273fd606ac2 38:5de8b42969cd
222 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'`] 222 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'`]
223 if test "x$HAS_BAD_CCACHE" != "x"; then 223 if test "x$HAS_BAD_CCACHE" != "x"; then
224 AC_MSG_ERROR([On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION]) 224 AC_MSG_ERROR([On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION])
225 fi 225 fi
226 fi 226 fi
227 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 227 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then
228 HAS_BAD_CCACHE=[`$ECHO $CCACHE_VERSION | \ 228 HAS_BAD_CCACHE=[`$ECHO $CCACHE_VERSION | \
229 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'`] 229 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'`]
230 if test "x$HAS_BAD_CCACHE" != "x"; then 230 if test "x$HAS_BAD_CCACHE" != "x"; then
231 AC_MSG_ERROR([Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION]) 231 AC_MSG_ERROR([Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION])
232 fi 232 fi
360 # 360 #
361 AC_ARG_ENABLE([precompiled-headers], [AS_HELP_STRING([--disable-precompiled-headers], 361 AC_ARG_ENABLE([precompiled-headers], [AS_HELP_STRING([--disable-precompiled-headers],
362 [disable using precompiled headers when compiling C++ @<:@enabled@:>@])], 362 [disable using precompiled headers when compiling C++ @<:@enabled@:>@])],
363 [ENABLE_PRECOMPH=${enable_precompiled_headers}], [ENABLE_PRECOMPH=yes]) 363 [ENABLE_PRECOMPH=${enable_precompiled_headers}], [ENABLE_PRECOMPH=yes])
364 364
365 USE_PRECOMPILED_HEADER=1 365 USE_PRECOMPILED_HEADER=true
366 AC_MSG_CHECKING([If precompiled header is enabled]) 366 AC_MSG_CHECKING([If precompiled header is enabled])
367 if test "x$ENABLE_PRECOMPH" = xno; then 367 if test "x$ENABLE_PRECOMPH" = xno; then
368 AC_MSG_RESULT([no, forced]) 368 AC_MSG_RESULT([no, forced])
369 USE_PRECOMPILED_HEADER=0 369 USE_PRECOMPILED_HEADER=false
370 elif test "x$ICECC" != "x"; then 370 elif test "x$ICECC" != "x"; then
371 AC_MSG_RESULT([no, does not work effectively with icecc]) 371 AC_MSG_RESULT([no, does not work effectively with icecc])
372 USE_PRECOMPILED_HEADER=0 372 USE_PRECOMPILED_HEADER=false
373 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 373 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
374 AC_MSG_RESULT([no, does not work with Solaris Studio]) 374 AC_MSG_RESULT([no, does not work with Solaris Studio])
375 USE_PRECOMPILED_HEADER=0 375 USE_PRECOMPILED_HEADER=false
376 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 376 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
377 AC_MSG_RESULT([no, does not work with xlc]) 377 AC_MSG_RESULT([no, does not work with xlc])
378 USE_PRECOMPILED_HEADER=0 378 USE_PRECOMPILED_HEADER=false
379 else 379 else
380 AC_MSG_RESULT([yes]) 380 AC_MSG_RESULT([yes])
381 fi 381 fi
382 382
383 if test "x$ENABLE_PRECOMPH" = xyes; then 383 if test "x$ENABLE_PRECOMPH" = xyes; then
385 if test "x$TOOLCHAIN_TYPE" = xgcc; then 385 if test "x$TOOLCHAIN_TYPE" = xgcc; then
386 AC_MSG_CHECKING([that precompiled headers work]) 386 AC_MSG_CHECKING([that precompiled headers work])
387 echo "int alfa();" > conftest.h 387 echo "int alfa();" > conftest.h
388 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD 388 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD
389 if test ! -f conftest.hpp.gch; then 389 if test ! -f conftest.hpp.gch; then
390 USE_PRECOMPILED_HEADER=0 390 USE_PRECOMPILED_HEADER=false
391 AC_MSG_RESULT([no]) 391 AC_MSG_RESULT([no])
392 else 392 else
393 AC_MSG_RESULT([yes]) 393 AC_MSG_RESULT([yes])
394 fi 394 fi
395 $RM conftest.h conftest.hpp.gch 395 $RM conftest.h conftest.hpp.gch