summaryrefslogtreecommitdiff
path: root/m4/opj_compiler_flag.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/opj_compiler_flag.m4')
-rw-r--r--m4/opj_compiler_flag.m430
1 files changed, 0 insertions, 30 deletions
diff --git a/m4/opj_compiler_flag.m4 b/m4/opj_compiler_flag.m4
deleted file mode 100644
index 0ad399f1..00000000
--- a/m4/opj_compiler_flag.m4
+++ /dev/null
@@ -1,30 +0,0 @@
-dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
-dnl and Albin Tonnerre <albin dot tonnerre at gmail dot com>
-dnl That code is public domain and can be freely used or copied.
-
-dnl Macro that checks if a compiler flag is supported by the compiler.
-
-dnl Usage: OPJ_COMPILER_FLAG(flag)
-dnl flag is added to CFLAGS if supported.
-
-AC_DEFUN([OPJ_COMPILER_FLAG],
-[
-
-CFLAGS_save="${CFLAGS}"
-CFLAGS="${CFLAGS} $1"
-
-AC_LANG_PUSH([C])
-AC_MSG_CHECKING([whether the compiler supports $1])
-
-AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[]])],
- [have_flag="yes"],
- [have_flag="no"])
-AC_MSG_RESULT([${have_flag}])
-
-if test "x${have_flag}" = "xno" ; then
- CFLAGS="${CFLAGS_save}"
-fi
-AC_LANG_POP([C])
-
-])