warn if gnustep-config was not found.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27877 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-02-16 06:46:55 +00:00
parent 5407104a7c
commit 673ede694e
4 changed files with 37 additions and 13 deletions

View file

@ -1,3 +1,9 @@
2009-02-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/pathconfig/configure.ac: Warn if gnustep-config not found.
* Source/pathconfig/configure: regenerate
* Headers/Foundation/NSPointerArray.h: Add more comments.
2009-02-15 Richard Frith-Macdonald <rfm@gnu.org> 2009-02-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPointerArray.m: Initial implementation. Untested. * Source/NSPointerArray.m: Initial implementation. Untested.

View file

@ -76,7 +76,12 @@ extern "C" {
- (void) addPointer: (void*)pointer; - (void) addPointer: (void*)pointer;
/** Inserts an item at the specified index causing all higher indexed /** Inserts an item at the specified index causing all higher indexed
* items to be adjusted upwards. * items to be adjusted upwards.<br />
* WARNING ... the Apple documented (and implemented in MacOS-X 10.5)
* behavior is to raise an exception if index is the same as the count of
* items in the array. This is insane ... for arrays, data and strings you
* can insert at the end of an object to append to it, so the behavior of
* this class in MacOS is inconsistent and must be considered buggy.
*/ */
- (void) insertPointer: (void*)pointer atIndex: (NSUInteger)index; - (void) insertPointer: (void*)pointer atIndex: (NSUInteger)index;

View file

@ -1715,16 +1715,23 @@ if test "$result" == "no"
then then
# Check if gnustep-config supports the option # Check if gnustep-config supports the option
# --installation-domain-for, and use it if available. That option # --installation-domain-for, and use it if available. That option
# will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN # will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN or
# or the installation-domains.conf files (or the LOCAL default) as appropriate. # the installation-domains.conf files (or the LOCAL default) as appropriate.
# Otherwise, if that option is not available just fall back to LOCAL. # Otherwise, if that option is not available just fall back to
# using GNUSTEP_INSTALLATION_DOMAIN or (if that was not defiend) LOCAL.
if (gnustep-config --help | grep installation-domain) >&5 2>&5 if (gnustep-config --help | grep installation-domain) >&5 2>&5
then then
result=`gnustep-config --installation-domain-for=gnustep-base 2>&5` result=`gnustep-config --installation-domain-for=gnustep-base 2>&5`
else else
# This case was added on December 2008 and is only for backwards { echo "$as_me:$LINENO: WARNING: The 'gnustep-config' script was not found or out of date." >&5
# compatibility with older versions of gnustep-make. echo "$as_me: WARNING: The 'gnustep-config' script was not found or out of date." >&2;}
result=LOCAL result=$GNUSTEP_INSTALLATION_DOMAIN
if test "$result" == ""
then
# This case was added on December 2008 and is only for backwards
# compatibility with older versions of gnustep-make.
result=LOCAL
fi
fi fi
fi fi
case "$result" in case "$result" in

View file

@ -358,16 +358,22 @@ if test "$result" == "no"
then then
# Check if gnustep-config supports the option # Check if gnustep-config supports the option
# --installation-domain-for, and use it if available. That option # --installation-domain-for, and use it if available. That option
# will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN # will automatically use the shell variable GNUSTEP_INSTALLATION_DOMAIN or
# or the installation-domains.conf files (or the LOCAL default) as appropriate. # the installation-domains.conf files (or the LOCAL default) as appropriate.
# Otherwise, if that option is not available just fall back to LOCAL. # Otherwise, if that option is not available just fall back to
# using GNUSTEP_INSTALLATION_DOMAIN or (if that was not defiend) LOCAL.
if (gnustep-config --help | grep installation-domain) >&5 2>&5 if (gnustep-config --help | grep installation-domain) >&5 2>&5
then then
result=`gnustep-config --installation-domain-for=gnustep-base 2>&5` result=`gnustep-config --installation-domain-for=gnustep-base 2>&5`
else else
# This case was added on December 2008 and is only for backwards AC_MSG_WARN([The 'gnustep-config' script was not found or out of date.])
# compatibility with older versions of gnustep-make. result=$GNUSTEP_INSTALLATION_DOMAIN
result=LOCAL if test "$result" == ""
then
# This case was added on December 2008 and is only for backwards
# compatibility with older versions of gnustep-make.
result=LOCAL
fi
fi fi
fi fi
case "$result" in case "$result" in