mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
improve control over constant string class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30757 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9b8df83971
commit
634ca02b9b
3 changed files with 42 additions and 8 deletions
17
configure.ac
17
configure.ac
|
@ -1458,7 +1458,7 @@ fi
|
|||
# Don't revert any Objective-C flags as they are used in the next test
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Guess if we are using a compiler which allows us to change the class
|
||||
# See if we are using a compiler which allows us to change the class
|
||||
# to be used for constant strings by using the -fconstant-string-class
|
||||
# option. If that is the case, we change it to NSConstantString.
|
||||
#---------------------------------------------------------------------
|
||||
|
@ -1476,9 +1476,18 @@ if test $objc_compiler_supports_constant_string_class = yes; then
|
|||
NX_CONST_STRING_CLASS=NSConstantString
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
NX_CONST_STRING_OBJCFLAGS=""
|
||||
NX_CONST_STRING_CLASS=NXConstantString
|
||||
AC_MSG_RESULT(no)
|
||||
AC_ARG_ENABLE(nxconstantstring,
|
||||
[ --enable-nxconstantstring
|
||||
Enables the use of the NXConstantString class for old compilers.],,
|
||||
enable_nxconstantstring=no)
|
||||
if test $enable_nxconstantstring = yes; then
|
||||
NX_CONST_STRING_OBJCFLAGS=""
|
||||
NX_CONST_STRING_CLASS=NXConstantString
|
||||
AC_MSG_WARN([You have enabled the use of NXConstantString as the string class in gnustep-base. The objective-c runtime library typically implements its own class of the same name, so you must either enforce a link order which ensures that the gnustep-base implementation is used, or (better) you must remove the class from the runtime library!])
|
||||
else
|
||||
AC_MSG_ERROR([Your compiler does not appear to implement the -fconstant-string-class option needed for support of strings. Please check for a more recent version or consider using --enable-nxconstantstring])
|
||||
fi
|
||||
fi
|
||||
CPPFLAGS="$strclass_CPPFLAGS"
|
||||
|
||||
|
@ -1552,7 +1561,7 @@ if test "$nonfragile" = "yes"; then
|
|||
GS_NONFRAGILE=1
|
||||
AC_ARG_ENABLE(mixedabi,
|
||||
[ --disable-mixedabi
|
||||
Disables the cmbined use of fragile and nonfragile ABI so that base
|
||||
Disables the combined use of fragile and nonfragile ABI so that base
|
||||
can be built taking full advantage of the nonfragile ABI.],,
|
||||
enable_mixedabi=yes)
|
||||
if test $enable_mixedabi = yes; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue