Added --disable-import option to turn on warnings against #import

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@12818 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-27 13:38:11 +00:00
parent 8b63fbd9ba
commit 62c957f454

View file

@ -433,6 +433,27 @@ fi
AC_SUBST(AUTO_DEPENDENCIES)
#---------------------------------------------------------------------
# Enable/disable warnings for deprecated #import directive as required
#---------------------------------------------------------------------
AC_MSG_CHECKING(whether to disable compiler warnings about deprecated import)
#
# GCC recommends that you use `--disable-import' here, since #import
# is seriously deprecated. If you are unsure, please use --disable-import.
#
AC_ARG_ENABLE(import,
[--disable-import Warn about usage of deprecated import directive],
ac_cv_import=$enableval,
ac_cv_import="yes")
AC_MSG_RESULT($ac_cv_import)
if test "$ac_cv_import" = "yes"; then
OBJC_NO_IMPORT_FLAGS=-Wno-import;
fi
AC_SUBST(OBJC_NO_IMPORT_FLAGS)
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------