aboutsummaryrefslogtreecommitdiffstats
path: root/erts/aclocal.m4
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-08-24 16:20:36 +0200
committerLukas Larsson <[email protected]>2017-09-08 09:46:42 +0200
commita9812e6307fe335d077f96d3a6342cbd4894ed0b (patch)
tree6037e6c982f04acf2a24bacc25767e9cbf1aeded /erts/aclocal.m4
parent5d124efc4f8408cdbe2f23ca6b233b932f1dd7c6 (diff)
downloadotp-a9812e6307fe335d077f96d3a6342cbd4894ed0b.tar.gz
otp-a9812e6307fe335d077f96d3a6342cbd4894ed0b.tar.bz2
otp-a9812e6307fe335d077f96d3a6342cbd4894ed0b.zip
Add support for building a pgo beam_emu
Diffstat (limited to 'erts/aclocal.m4')
-rw-r--r--erts/aclocal.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4
index 80bf236188..887babc13f 100644
--- a/erts/aclocal.m4
+++ b/erts/aclocal.m4
@@ -2726,6 +2726,21 @@ AC_DEFUN([LM_TRY_ENABLE_CFLAG], [
fi
])
+AC_DEFUN([LM_CHECK_ENABLE_CFLAG], [
+ AC_MSG_CHECKING([whether $CC accepts $1...])
+ saved_CFLAGS=$CFLAGS;
+ CFLAGS="$1 $CFLAGS";
+ AC_TRY_COMPILE([],[return 0;],can_enable_flag=true,can_enable_flag=false)
+ CFLAGS=$saved_CFLAGS;
+ if test "X$can_enable_flag" = "Xtrue"; then
+ AS_VAR_SET($2, true)
+ AC_MSG_RESULT([yes])
+ else
+ AS_VAR_SET($2, false)
+ AC_MSG_RESULT([no])
+ fi
+])
+
dnl ERL_TRY_LINK_JAVA(CLASSES, FUNCTION-BODY
dnl [ACTION_IF_FOUND [, ACTION-IF-NOT-FOUND]])
dnl Freely inspired by AC_TRY_LINK. (Maybe better to create a