mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
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:
parent
8b63fbd9ba
commit
62c957f454
1 changed files with 21 additions and 0 deletions
21
configure.in
21
configure.in
|
@ -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
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue