diff options
author | mbr <mbr@FreeBSD.org> | 2003-09-02 15:27:38 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-09-02 15:27:38 +0000 |
commit | ccc3812476e334ade5336aa157187088e2026fd3 (patch) | |
tree | 145d47d9a3a320657d00eb40dd30cbcaa83fe8a8 /contrib/amd/m4/macros/opt_cppflags.m4 | |
parent | 4dd2d26a989ad3499b4e38ca2a1a4faf7bedabd7 (diff) | |
parent | 7d0df748b4c59651751f156e408f856a02073b69 (diff) | |
download | FreeBSD-src-ccc3812476e334ade5336aa157187088e2026fd3.zip FreeBSD-src-ccc3812476e334ade5336aa157187088e2026fd3.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r119679,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/amd/m4/macros/opt_cppflags.m4')
-rw-r--r-- | contrib/amd/m4/macros/opt_cppflags.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/amd/m4/macros/opt_cppflags.m4 b/contrib/amd/m4/macros/opt_cppflags.m4 new file mode 100644 index 0000000..bcf7d76 --- /dev/null +++ b/contrib/amd/m4/macros/opt_cppflags.m4 @@ -0,0 +1,22 @@ +dnl ###################################################################### +dnl Initial settings for CPPFLAGS (-I options) +dnl NOTE: this is for configuration as well as compilations! +AC_DEFUN(AMU_OPT_CPPFLAGS, +[AC_MSG_CHECKING(for configuration/compilation (-I) preprocessor flags) +AC_ARG_ENABLE(cppflags, +AC_HELP_STRING([--enable-cppflags=ARG], + [configure/compile with ARG (-I) preprocessor flags]), +[ +if test "$enableval" = "" || test "$enableval" = "yes" || test "$enableval" = "no"; then + AC_MSG_ERROR(cppflags must be supplied if option is used) +fi +# use supplied options +CPPFLAGS="$CPPFLAGS $enableval" +export CPPFLAGS +AC_MSG_RESULT($enableval) +], [ + # default is to have no additional flags + AC_MSG_RESULT(none) +]) +]) +dnl ====================================================================== |