X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;fp=acinclude.m4;h=5f358087509badc11851f87b11d204e2853631cc;hb=3f104ab36e50f607fdf9f645d68ac6118814ab22;hp=e15ab76742376dd3ef36acd6373b0c4067c3de63;hpb=87d6b636c5dd7d2cbbe7db536dc81fa2135e13fb;p=pspp-builds.git diff --git a/acinclude.m4 b/acinclude.m4 index e15ab767..5f358087 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -63,10 +63,10 @@ AC_DEFUN([PSPP_OFF_T], `--disable-largefile' or `CFLAGS=-ansi'.])]) ]) -dnl Check whether a warning flag is accepted. +dnl Check whether a C compiler option is accepted. dnl If so, add it to CFLAGS. -dnl Example: PSPP_ENABLE_WARNING(-Wdeclaration-after-statement) -AC_DEFUN([PSPP_ENABLE_WARNING], +dnl Example: PSPP_ENABLE_OPTION(-Wdeclaration-after-statement) +AC_DEFUN([PSPP_ENABLE_OPTION], [ m4_define([pspp_cv_name], [pspp_cv_[]m4_translit([$1], [-], [_])])dnl AC_CACHE_CHECK([whether $CC accepts $1], [pspp_cv_name],