4 # GNUstep site configuration. This allows Autoconf packages to
5 # be installed within the GNUstep directory structure.
7 # Copyright (C) 1997 Free Software Foundation, Inc.
9 # Author: Scott Christley <scottc@net-community.com>
11 # This file is part of the GNUstep Makefile Package.
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
18 # You should have received a copy of the GNU General Public
19 # License along with this library; see the file COPYING.LIB.
20 # If not, write to the Free Software Foundation,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 echo Processing GNUstep site configuration
26 # Determine the target
27 if test -z "$target" -o "$target" = NONE; then
28 # The user did not specify one so the target is the host
29 GNUSTEP_TARGET=$GNUSTEP_HOST
30 GNUSTEP_TARGET_CPU=$GNUSTEP_HOST_CPU
31 GNUSTEP_TARGET_VENDOR=$GNUSTEP_HOST_VENDOR
32 GNUSTEP_TARGET_OS=$GNUSTEP_HOST_OS
34 # The user did specify a target, so canonicalize and clean
35 GNUSTEP_TARGET=`$GNUSTEP_MAKEFILES/config.sub $target`
36 GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_TARGET`
37 GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_TARGET`
38 GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_TARGET`
42 GNUSTEP_TARGET_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_TARGET_OS`
43 GNUSTEP_TARGET_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_TARGET_VENDOR`
44 GNUSTEP_TARGET_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_TARGET_CPU`
46 # Set the installation prefix
47 if test "$prefix" = NONE ; then
48 prefix="${GNUSTEP_SYSTEM_ROOT}"
51 # Change the binary directory default
52 if test "$bindir" = "\${exec_prefix}/bin" ; then
53 if [ -z "$GNUSTEP_FLATTENED" ]; then
54 bindir="\${exec_prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
56 bindir="\${exec_prefix}/Tools"
58 bindirtop="\${exec_prefix}/Tools"
60 if test "$DIR_BIN" = "/usr/local/bin" ; then
61 if [ -z "$GNUSTEP_FLATTENED" ]; then
62 DIR_BIN="\${prefix}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}"
64 DIR_BIN="\${exec_prefix}/Tools"
66 bindirtop="\${exec_prefix}/Tools"
69 # xxx What about sbin?
70 # xxx What about libexec?
72 # Change the data directory default
73 if test "$datadir" = "\${prefix}/share" ; then
74 datadir="\${prefix}/Library/Libraries/share"
77 # xxx What about sysconfdir?
78 # xxx What about sharedstatedir?
79 # xxx What about localstatedir?
81 # Change the library directory default
82 if test "$libdir" = "\${exec_prefix}/lib" ; then
83 if [ -z "$GNUSTEP_FLATTENED" ]; then
84 libdir="\${exec_prefix}/Library/Libraries/${GNUSTEP_TARGET_CPU}/${GNUSTEP_TARGET_OS}"
86 libdir="\${exec_prefix}/Library/Libraries"
90 # Change the include directory default
91 if test "$includedir" = "\${prefix}/include" ; then
92 if [ -z "$GNUSTEP_FLATTENED" ]; then
93 includedir="\${prefix}/Library/Headers/${LIBRARY_COMBO}"
95 includedir="\${prefix}/Library/Headers"
99 # xxx What about oldincludedir?
101 # Change the info directory default
102 if test "$infodir" = "\${prefix}/info" ; then
103 infodir="\${prefix}/Library/Documentation/info"
106 # Change the man directory default
107 if test "$mandir" = "\${prefix}/man" ; then
108 mandir="\${prefix}/Library/Documentation/man"