diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/tp-compiler-flag.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/tp-compiler-flag.m4 b/m4/tp-compiler-flag.m4 index fc05e9e17..06deaba05 100644 --- a/m4/tp-compiler-flag.m4 +++ b/m4/tp-compiler-flag.m4 @@ -34,3 +34,10 @@ AC_DEFUN([TP_COMPILER_FLAG], fi AC_MSG_RESULT([$flag_ok]) ]) + +dnl TP_ADD_COMPILER_FLAG(VARIABLE, CFLAGS) +dnl Append CFLAGS to VARIABLE if the compiler supports them. +AC_DEFUN([TP_ADD_COMPILER_FLAG], +[ + TP_COMPILER_FLAG([$2], [$1="[$]$1 $2"]) +]) |