1 | dnl Copyright © 2005 William Pitcock, et al. |
1 | dnl Copyright © 2005 William Pitcock, et al. |
2 | dnl Rights to this code are as documented in doc/LICENSE. |
2 | dnl Rights to this code are as documented in doc/pod/license.pod. |
3 | dnl |
3 | dnl |
4 | dnl This file contains autoconf macros used in configure. |
4 | dnl This file contains autoconf macros used in configure. |
5 | dnl |
5 | dnl |
6 | dnl $Id: ermyth-c.m4,v 1.1 2007/07/19 08:24:51 pippijn Exp $ |
6 | dnl $Id: ermyth-c.m4,v 1.2 2007/07/21 01:29:08 pippijn Exp $ |
7 | |
7 | |
8 | dnl Stolen from hyperion. |
8 | dnl Stolen from hyperion. |
9 | |
9 | |
10 | dnl ATHEME_C_GCC_TRY_FLAGS(<warnings>,<cachevar>) |
10 | dnl ERMYTH_C_GCC_TRY_FLAGS(<warnings>,<cachevar>) |
11 | AC_DEFUN([ATHEME_C_GCC_TRY_FLAGS],[ |
11 | AC_DEFUN([ERMYTH_C_GCC_TRY_FLAGS],[ |
12 | AC_MSG_CHECKING([GCC flag(s) $1]) |
12 | AC_MSG_CHECKING([GCC flag(s) $1]) |
13 | if test "${GCC-no}" = yes |
13 | if test "${GCC-no}" = yes |
14 | then |
14 | then |
15 | AC_CACHE_VAL($2,[ |
15 | AC_CACHE_VAL($2,[ |
16 | oldcflags="${CFLAGS-}" |
16 | oldcflags="${CFLAGS-}" |