Have debugapp determine host information if necessary.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2635 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Scott Christley 1997-11-14 01:04:11 +00:00
parent 4671af8ef2
commit 49d14bdfd9
2 changed files with 24 additions and 0 deletions

View file

@ -2,6 +2,7 @@ Thu Nov 13 15:08:13 1997 Scott Christley <scottc@net-community.com>
* rules.make: Replace dash with underscore for type not target. * rules.make: Replace dash with underscore for type not target.
* openapp.in: Determine host information if necessary. * openapp.in: Determine host information if necessary.
* debugapp.in: Determine host information if necessary.
* MediaBook.sh: Save original variables. * MediaBook.sh: Save original variables.
* config.site (bindirtop): Define. * config.site (bindirtop): Define.
* MediaBook.func (hostinfo, assignpaths): New functions. * MediaBook.func (hostinfo, assignpaths): New functions.

View file

@ -70,6 +70,29 @@ if [ -f "$full_appname/library_paths.openapp" ]; then
additional_library_paths="`cat $full_appname/library_paths.openapp`" additional_library_paths="`cat $full_appname/library_paths.openapp`"
fi fi
#
# Determine the host information
#
if [ -z "$GNUSTEP_HOST" ]; then
GNUSTEP_HOST=`$GNUSTEP_SYSTEM_ROOT/Makefiles/config.guess`
export GNUSTEP_HOST
fi
if [ -z "$GNUSTEP_HOST_CPU" ]; then
GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/Makefiles/cpu.sh $GNUSTEP_HOST`
GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_cpu.sh $GNUSTEP_HOST_CPU`
export GNUSTEP_HOST_CPU
fi
if [ -z "$GNUSTEP_HOST_VENDOR" ]; then
GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/Makefiles/vendor.sh $GNUSTEP_HOST`
GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
export GNUSTEP_HOST_VENDOR
fi
if [ -z "$GNUSTEP_HOST_OS" ]; then
GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/Makefiles/os.sh $GNUSTEP_HOST`
GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_os.sh $GNUSTEP_HOST_OS`
export GNUSTEP_HOST_OS
fi
appname=`echo $app | sed 's/\.[a-z]*$//'` appname=`echo $app | sed 's/\.[a-z]*$//'`
. $GNUSTEP_SYSTEM_ROOT/Makefiles/ld_lib_path.sh . $GNUSTEP_SYSTEM_ROOT/Makefiles/ld_lib_path.sh