~ubuntu-branches/ubuntu/precise/gnustep-base/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Hubert Chathi
  • Date: 2007-10-03 17:16:39 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071003171639-rtyga33jz04drwe3
Tags: 1.14.0-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#
21
21
#   You should have received a copy of the GNU General Public
22
22
#   License along with this library; if not, write to the Free
23
 
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA
 
23
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
24
#   Boston, MA 02111 USA
24
25
builtin(include, config/objc-con-autoload.m4)dnl
25
26
builtin(include, config/objc-sys-dynamic.m4)dnl
26
27
builtin(include, config/procfs-exe-link.m4)dnl
32
33
AC_INIT
33
34
AC_CONFIG_SRCDIR([Source/NSArray.m])
34
35
 
 
36
# If GNUSTEP_MAKEFILES is undefined, try to use gnustep-config to determine it.
 
37
if test -z "$GNUSTEP_MAKEFILES"; then
 
38
  GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>&5`
 
39
fi
 
40
 
35
41
if test -z "$GNUSTEP_MAKEFILES"; then
36
42
  AC_MSG_ERROR([You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!])
37
43
fi
38
44
 
 
45
# We shouldn't be loading GNUstep.sh here.  It would load in a lot of
 
46
# variables which might get confused with the ones that will be used
 
47
# at runtime.  We will load it later once we have determined (and
 
48
# saved) the runtime configuration.
 
49
 
 
50
# This variable might get temporarily overwritten with the
 
51
# GNUSTEP_MAKEFILES of the runtime configuration, make sure we keep
 
52
# track of the original one.  CURRENT_GNUSTEP_MAKEFILES is the one
 
53
# that we use to locate the actual gnustep-make installation that 
 
54
# will build the software.
 
55
CURRENT_GNUSTEP_MAKEFILES="$GNUSTEP_MAKEFILES"
 
56
 
39
57
#--------------------------------------------------------------------
40
58
# Use config.guess, config.sub and install-sh provided by gnustep-make
41
59
#--------------------------------------------------------------------
42
 
AC_CONFIG_AUX_DIR($GNUSTEP_MAKEFILES)
 
60
AC_CONFIG_AUX_DIR($CURRENT_GNUSTEP_MAKEFILES)
43
61
 
44
62
#--------------------------------------------------------------------
45
63
# Use a .h file with #define's, instead of -D command-line switches
54
72
#---------------------------------------------------------------------
55
73
# Location of the GNUstep.conf config file (--with-config-file)
56
74
#---------------------------------------------------------------------
57
 
AC_MSG_CHECKING([for GNUstep configuration file to use])
 
75
AC_MSG_CHECKING([for GNUstep configuration file to use at runtime])
58
76
GNUSTEP_CONFIG_FILE=""
59
 
GNUSTEP_MAKE_CONFIG=`grep '^GNUSTEP_CONFIG_FILE *=' $GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/'`
 
77
 
 
78
# This requires gnustep-make > 1.13.0 to work.  For gnustep-make =
 
79
# 1.13.0 we would have to parse
 
80
# $CURRENT_GNUSTEP_MAKEFILES/$obj_dir/config.make, but $obj_dir is not defined
 
81
# yet at this stage in config, not sure if it's worth trying to make
 
82
# it work.  For gnustep-make < 1.13.0 we would have to parse
 
83
# $CURRENT_GNUSTEP_MAKEFILES/config.make.
 
84
GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config-noarch.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
 
85
 
 
86
# So, for backwards compatiblity, we try the plain config.make too.
 
87
# This should work with gnustep-make < 1.13.0, and with 1.13.0 too if
 
88
# they haven't deleted the file.
 
89
if test "$GNUSTEP_MAKE_CONFIG"  = ""; then
 
90
  GNUSTEP_MAKE_CONFIG=`(grep '^GNUSTEP_CONFIG_FILE *=' $CURRENT_GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/') 2>&5`
 
91
fi
 
92
 
60
93
AC_ARG_WITH(config-file,
61
94
[  --with-config-file=PATH       Specify path to the GNUstep config file.
62
95
                                This is the location to be used by the base
63
96
                                library to locate path information at
64
97
                                application or tool runtime.
 
98
                                This file might not even exist now; it is
 
99
                                not read at configure time.  The base library
 
100
                                will only read it at runtime.
65
101
                                If unspecified, this uses the same value as
66
102
                                the GNUstep make package on unix-like systems,
67
103
                                but uses ./GNUstep.conf on mingw so that
93
129
  esac
94
130
fi
95
131
AC_MSG_RESULT($GNUSTEP_CONFIG_FILE)
96
 
AC_SUBST(GNUSTEP_CONFIG_FILE)
97
132
 
98
133
#-----------------------------------------------------------------
99
134
# Whether the GNUstep.conf file path can be set in the environment
 
135
# By default this is enabled on unix, but disabled on mswindows
 
136
# since the normal setup on mswindows is to have the config file
 
137
# located with the base library dll for runtime configuration and
 
138
# use the environment variable to control the developer config file
 
139
# location (used by gnustep-make when building).
100
140
#-----------------------------------------------------------------
 
141
case "$target_os" in
 
142
    mingw*)     enable_env_config=no;;
 
143
    *)          enable_env_config=yes;;
 
144
esac
101
145
AC_MSG_CHECKING([whether the GNUstep.conf file path can be set in the environment])
102
146
AC_ARG_ENABLE(environment-config-file, 
103
147
[  --disable-environment-config-file
108
152
                                useful to disable the environment variable
109
153
                                for sites which wish to 'lock down' users
110
154
                                to always work with a specific system-wide
111
 
                                configuration.
112
 
                                Normally this should be left enabled.], 
 
155
                                configuration.  On unix-like systems the
 
156
                                default is for this option to be enabled.
 
157
                                It is disabled by default on windows systems
 
158
                                so that the base library will not use a
 
159
                                config file intended for the gnustep-make
 
160
                                system (and containing unix-style paths
 
161
                                which cannot be used by widnows apps).
 
162
                                Normally this should be left at its default
 
163
                                setting.], 
113
164
  ac_cv_environment_config_file=$enableval,
114
 
  ac_cv_environment_config_file="yes")
 
165
  ac_cv_environment_config_file=$enable_env_config)
115
166
if test "$ac_cv_environment_config_file" = "yes"; then
116
167
  AC_DEFINE(OPTION_NO_ENVIRONMENT, 0,
117
168
    [Enable GNUSTEP_CONFIG_FILE environment variable])
122
173
  AC_MSG_RESULT([no: disabled from the command-line])
123
174
fi
124
175
 
 
176
#--------------------------------------------------------------------
 
177
# We are not trying to determine the default GNUstep paths to be
 
178
# used at runtime.  So all GNUSTEP_xxx variables from now on are to be
 
179
# considered as 'runtime' ones.  They refer to paths that might not
 
180
# make any sense now, but might make sense once gnustep-base is
 
181
# installed in its final location.
 
182
#---------------------------------------------------------------------
 
183
 
125
184
#
126
185
# Set 'standard' defaults for values from configuration file.
127
186
#
128
 
# On mingw, we assume paths relative to the location of the base library -
129
 
# Normally that DLL is stored in the Tools directory of the System domain,
130
 
# so we assume a standard layout relative to that.  For standalone deployment
131
 
# you may want everything in the same directory, in which case the paths for
132
 
# the domains relative to the DLL need to be modified.
133
 
#
134
 
# On unix we assume a standard layout for both development and distribution.
135
 
#
136
187
case "$target_os" in
137
 
  mingw*)
138
 
    GNUSTEP_SYSTEM_ROOT=./..\\..\\System
139
 
    GNUSTEP_LOCAL_ROOT=./..\\..\\Local
140
 
    GNUSTEP_NETWORK_ROOT=./..\\..\\Local
141
 
    GNUSTEP_USER_DIR=GNUstep
142
 
    GNUSTEP_USER_DEFAULTS_DIR=GNUstep\\Defaults
143
 
    GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
144
 
    ;;
145
188
  *)
146
189
    GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
147
190
    GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
160
203
# the built-in default paths in the code will match those of your
161
204
# installation (or of the config file you specify).
162
205
# It can be annoying in certain cases though; this option lets you
163
 
# turn it off
164
 
AC_MSG_CHECKING([if we should import an existing configuration file])
 
206
# turn it off.
 
207
AC_MSG_CHECKING([if we should import an existing configuration file now])
165
208
AC_ARG_ENABLE(importing-config-file, 
166
209
[  --disable-importing-config-file
167
210
                                Disable importing of an existing GNUstep config
186
229
                                is found at runtime.  If this is not specified
187
230
                                then the path from --with-config-file or from
188
231
                                the gnustep-make package is used.],
189
 
    result="$withval", 
 
232
    result="$withval",
190
233
    result="no"
191
234
  )
192
235
  if test "$result" != "no"
194
237
    GNUSTEP_DEFAULT_CONFIG="$result"
195
238
  fi
196
239
  if test "$GNUSTEP_DEFAULT_CONFIG" = ""; then
197
 
    if test -f "$GNUSTEP_CONFIG_FILE"; then
198
 
      GNUSTEP_DEFAULT_CONFIG="$GNUSTEP_CONFIG_FILE"
199
 
    fi
 
240
    # No file to import has been specified.  We need to read the paths
 
241
    # from somewhere though!  GNUstep.sh might not have been sourced,
 
242
    # so at this stage we have no knowledge of what the paths must be.
 
243
    # The only place that we can read them from is the gnustep-make
 
244
    # GNUstep.conf file.
 
245
    # So we fall back to useing the make settings for the built-in ones.
 
246
    # However, on mingw these will be msys style paths, and we don't
 
247
    # want that ... so later on we convert these to portable relative
 
248
    # paths based on the directory in which the base library will be
 
249
    # installed.
 
250
    GNUSTEP_DEFAULT_CONFIG="$GNUSTEP_MAKE_CONFIG"
200
251
  fi
201
252
  AC_MSG_RESULT($GNUSTEP_DEFAULT_CONFIG)
202
253
 
209
260
    #
210
261
    if test ! -f "$GNUSTEP_DEFAULT_CONFIG"; then
211
262
      AC_MSG_RESULT([fail: file "$GNUSTEP_DEFAULT_CONFIG" does not exist])
212
 
      AC_MSG_NOTICE([Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option])
 
263
 
 
264
      # Ohoh ... things are not going well.  We are asked to import
 
265
      # a config file that doesn't exist.  So all paths might be unset
 
266
      # and who knows what we'll end up hardcoding into gnustep-base.
 
267
      # It looks like we need to make sure the user knows what they
 
268
      # are doing, as there is a high chance they don't and might end
 
269
      # up with a confused/non-working system.  As far as we know, the
 
270
      # system might be already screwed.  If they don't want to import 
 
271
      # a config file (eg, they don't have one and they don't care about 
 
272
      # the hardcoded paths) they should just say so. ;-)
 
273
      AC_MSG_ERROR([Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option])
 
274
 
213
275
    else
214
276
      AC_MSG_RESULT([trying to import "$GNUSTEP_DEFAULT_CONFIG"])
215
277
      AC_MSG_NOTICE([If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option])
218
280
  fi
219
281
fi
220
282
 
 
283
# Now we have the problem of what to do if some of the paths were not
 
284
# set by GNUstep.conf (eg, old gnustep-make), or if no config file was
 
285
# read, or if the config file was corrupt.  We decide that the most
 
286
# likely case is an old gnustep-make, so by default we configure the
 
287
# other paths basing on GNUSTEP_*_ROOT.
 
288
 
 
289
# TODO/FIXME: We should really have better checks once the situation
 
290
# has stabilized.  This is a reasonable hack for now.
 
291
 
 
292
if test x"$GNUSTEP_MAKEFILES" = x""; then GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/Library/Makefiles; fi
 
293
 
 
294
if test x"$GNUSTEP_SYSTEM_USERS_DIR" = x""; then GNUSTEP_SYSTEM_USERS_DIR=/home; fi
 
295
if test x"$GNUSTEP_NETWORK_USERS_DIR" = x""; then GNUSTEP_NETWORK_USERS_DIR=/home; fi
 
296
if test x"$GNUSTEP_LOCAL_USERS_DIR" = x""; then GNUSTEP_LOCAL_USERS_DIR=/home; fi
 
297
 
 
298
if test x"$GNUSTEP_SYSTEM_APPS" = x""; then GNUSTEP_SYSTEM_APPS=$GNUSTEP_SYSTEM_ROOT/Applications; fi
 
299
if test x"$GNUSTEP_SYSTEM_ADMIN_APPS" = x""; then GNUSTEP_SYSTEM_ADMIN_APPS=$GNUSTEP_SYSTEM_ROOT/Applications/Admin; fi
 
300
if test x"$GNUSTEP_SYSTEM_WEB_APPS" = x""; then GNUSTEP_SYSTEM_WEB_APPS=$GNUSTEP_SYSTEM_ROOT/WebApplications; fi
 
301
if test x"$GNUSTEP_SYSTEM_TOOLS" = x""; then GNUSTEP_SYSTEM_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools; fi
 
302
if test x"$GNUSTEP_SYSTEM_ADMIN_TOOLS" = x""; then GNUSTEP_SYSTEM_ADMIN_TOOLS=$GNUSTEP_SYSTEM_ROOT/Tools/Admin; fi
 
303
if test x"$GNUSTEP_SYSTEM_LIBRARY" = x""; then GNUSTEP_SYSTEM_LIBRARY=$GNUSTEP_SYSTEM_ROOT/Library; fi
 
304
if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then GNUSTEP_SYSTEM_LIBRARIES=$GNUSTEP_SYSTEM_LIBRARY/Libraries; fi
 
305
if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then GNUSTEP_SYSTEM_HEADERS=$GNUSTEP_SYSTEM_LIBRARY/Headers; fi
 
306
if test x"$GNUSTEP_SYSTEM_DOC" = x""; then GNUSTEP_SYSTEM_DOC=$GNUSTEP_SYSTEM_LIBRARY/Documentation; fi
 
307
if test x"$GNUSTEP_SYSTEM_DOC_MAN" = x""; then GNUSTEP_SYSTEM_DOC_MAN=$GNUSTEP_SYSTEM_LIBRARY/Documentation/man; fi
 
308
if test x"$GNUSTEP_SYSTEM_DOC_INFO" = x""; then GNUSTEP_SYSTEM_DOC_INFO=$GNUSTEP_SYSTEM_LIBRARY/Documentation/info; fi
 
309
 
 
310
if test x"$GNUSTEP_NETWORK_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/Applications; fi
 
311
if test x"$GNUSTEP_NETWORK_ADMIN_APPS" = x""; then GNUSTEP_NETWORK_ADMIN_APPS=$GNUSTEP_NETWORK_ROOT/Applications/Admin; fi
 
312
if test x"$GNUSTEP_NETWORK_WEB_APPS" = x""; then GNUSTEP_NETWORK_APPS=$GNUSTEP_NETWORK_ROOT/WebApplications; fi
 
313
if test x"$GNUSTEP_NETWORK_TOOLS" = x""; then GNUSTEP_NETWORK_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools; fi
 
314
if test x"$GNUSTEP_NETWORK_ADMIN_TOOLS" = x""; then GNUSTEP_NETWORK_ADMIN_TOOLS=$GNUSTEP_NETWORK_ROOT/Tools/Admin; fi
 
315
if test x"$GNUSTEP_NETWORK_LIBRARY" = x""; then GNUSTEP_NETWORK_LIBRARY=$GNUSTEP_NETWORK_ROOT/Library; fi
 
316
if test x"$GNUSTEP_NETWORK_LIBRARIES" = x""; then GNUSTEP_NETWORK_LIBRARIES=$GNUSTEP_NETWORK_LIBRARY/Libraries; fi
 
317
if test x"$GNUSTEP_NETWORK_HEADERS" = x""; then GNUSTEP_NETWORK_HEADERS=$GNUSTEP_NETWORK_LIBRARY/Headers; fi
 
318
if test x"$GNUSTEP_NETWORK_DOC" = x""; then GNUSTEP_NETWORK_DOC=$GNUSTEP_NETWORK_LIBRARY/Documentation; fi
 
319
if test x"$GNUSTEP_NETWORK_DOC_MAN" = x""; then GNUSTEP_NETWORK_DOC_MAN=$GNUSTEP_NETWORK_LIBRARY/Documentation/man; fi
 
320
if test x"$GNUSTEP_NETWORK_DOC_INFO" = x""; then GNUSTEP_NETWORK_DOC_INFO=$GNUSTEP_NETWORK_LIBRARY/Documentation/info; fi
 
321
 
 
322
if test x"$GNUSTEP_LOCAL_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/Applications; fi
 
323
if test x"$GNUSTEP_LOCAL_ADMIN_APPS" = x""; then GNUSTEP_LOCAL_ADMIN_APPS=$GNUSTEP_LOCAL_ROOT/Applications/Admin; fi
 
324
if test x"$GNUSTEP_LOCAL_WEB_APPS" = x""; then GNUSTEP_LOCAL_APPS=$GNUSTEP_LOCAL_ROOT/WebApplications; fi
 
325
if test x"$GNUSTEP_LOCAL_TOOLS" = x""; then GNUSTEP_LOCAL_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools; fi
 
326
if test x"$GNUSTEP_LOCAL_ADMIN_TOOLS" = x""; then GNUSTEP_LOCAL_ADMIN_TOOLS=$GNUSTEP_LOCAL_ROOT/Tools/Admin; fi
 
327
if test x"$GNUSTEP_LOCAL_LIBRARY" = x""; then GNUSTEP_LOCAL_LIBRARY=$GNUSTEP_LOCAL_ROOT/Library; fi
 
328
if test x"$GNUSTEP_LOCAL_LIBRARIES" = x""; then GNUSTEP_LOCAL_LIBRARIES=$GNUSTEP_LOCAL_LIBRARY/Libraries; fi
 
329
if test x"$GNUSTEP_LOCAL_HEADERS" = x""; then GNUSTEP_LOCAL_HEADERS=$GNUSTEP_LOCAL_LIBRARY/Headers; fi
 
330
if test x"$GNUSTEP_LOCAL_DOC" = x""; then GNUSTEP_LOCAL_DOC=$GNUSTEP_LOCAL_LIBRARY/Documentation; fi
 
331
if test x"$GNUSTEP_LOCAL_DOC_MAN" = x""; then GNUSTEP_LOCAL_DOC_MAN=$GNUSTEP_LOCAL_LIBRARY/Documentation/man; fi
 
332
if test x"$GNUSTEP_LOCAL_DOC_INFO" = x""; then GNUSTEP_LOCAL_DOC_INFO=$GNUSTEP_LOCAL_LIBRARY/Documentation/info; fi
 
333
 
 
334
if test x"$GNUSTEP_USER_DIR_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/Applications; fi
 
335
if test x"$GNUSTEP_USER_DIR_ADMIN_APPS" = x""; then GNUSTEP_USER_DIR_ADMIN_APPS=$GNUSTEP_USER_DIR/Applications/Admin; fi
 
336
if test x"$GNUSTEP_USER_DIR_WEB_APPS" = x""; then GNUSTEP_USER_DIR_APPS=$GNUSTEP_USER_DIR/WebApplications; fi
 
337
if test x"$GNUSTEP_USER_DIR_TOOLS" = x""; then GNUSTEP_USER_DIR_TOOLS=$GNUSTEP_USER_DIR/Tools; fi
 
338
if test x"$GNUSTEP_USER_DIR_ADMIN_TOOLS" = x""; then GNUSTEP_USER_DIR_ADMIN_TOOLS=$GNUSTEP_USER_DIR/Tools/Admin; fi
 
339
if test x"$GNUSTEP_USER_DIR_LIBRARY" = x""; then GNUSTEP_USER_DIR_LIBRARY=$GNUSTEP_USER_DIR/Library; fi
 
340
if test x"$GNUSTEP_USER_DIR_LIBRARIES" = x""; then GNUSTEP_USER_DIR_LIBRARIES=$GNUSTEP_USER_DIR/Libraries; fi
 
341
if test x"$GNUSTEP_USER_DIR_HEADERS" = x""; then GNUSTEP_USER_DIR_HEADERS=$GNUSTEP_USER_DIR/Headers; fi
 
342
if test x"$GNUSTEP_USER_DIR_DOC" = x""; then GNUSTEP_USER_DIR_DOC=$GNUSTEP_USER_DIR/Documentation; fi
 
343
if test x"$GNUSTEP_USER_DIR_DOC_MAN" = x""; then GNUSTEP_USER_DIR_DOC_MAN=$GNUSTEP_USER_DIR/Documentation/man; fi
 
344
if test x"$GNUSTEP_USER_DIR_DOC_INFO" = x""; then GNUSTEP_USER_DIR_DOC_INFO=$GNUSTEP_USER_DIR/Documentation/info; fi
 
345
 
 
346
#
 
347
# If we are on mingw, we now want to convert the paths to relative
 
348
# paths (relative to libgnustep-base.dll).
 
349
#
 
350
# TODO: To do it properly, we ought to allow the user to configure
 
351
# the installation domain at configure time!  This assumes we always
 
352
# install into System.
 
353
#
 
354
case "$target_os" in
 
355
  mingw*)
 
356
    GNUSTEP_BASE_PATH="$GNUSTEP_SYSTEM_TOOLS"
 
357
 
 
358
    # TODO: Improve this hack.
 
359
    # According to Wikipedia, this is the default for Windows 2000,
 
360
    # Windows XP and Windows Server 2003.  For Windows Vista this will
 
361
    # change to C:\Users.  The directory name needs to be localized though
 
362
    # (and the disk may need changing as well ?).
 
363
    GNUSTEP_SYSTEM_USERS_DIR="C:\Documents and Settings"
 
364
    GNUSTEP_NETWORK_USERS_DIR="C:\Documents and Settings"
 
365
    GNUSTEP_LOCAL_USERS_DIR="C:\Documents and Settings"
 
366
 
 
367
    GNUSTEP_SYSTEM_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_APPS`
 
368
    GNUSTEP_SYSTEM_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_APPS`
 
369
    GNUSTEP_SYSTEM_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_WEB_APPS`
 
370
    GNUSTEP_SYSTEM_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_TOOLS`
 
371
    GNUSTEP_SYSTEM_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_ADMIN_TOOLS`
 
372
    GNUSTEP_SYSTEM_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARY`
 
373
    GNUSTEP_SYSTEM_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_LIBRARIES`
 
374
    GNUSTEP_SYSTEM_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_HEADERS`
 
375
    GNUSTEP_SYSTEM_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC`
 
376
    GNUSTEP_SYSTEM_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_MAN`
 
377
    GNUSTEP_SYSTEM_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_SYSTEM_DOC_INFO`
 
378
 
 
379
    GNUSTEP_NETWORK_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_APPS`
 
380
    GNUSTEP_NETWORK_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_APPS`
 
381
    GNUSTEP_NETWORK_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_WEB_APPS`
 
382
    GNUSTEP_NETWORK_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_TOOLS`
 
383
    GNUSTEP_NETWORK_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_ADMIN_TOOLS`
 
384
    GNUSTEP_NETWORK_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARY`
 
385
    GNUSTEP_NETWORK_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_LIBRARIES`
 
386
    GNUSTEP_NETWORK_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_HEADERS`
 
387
    GNUSTEP_NETWORK_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC`
 
388
    GNUSTEP_NETWORK_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_MAN`
 
389
    GNUSTEP_NETWORK_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_NETWORK_DOC_INFO`
 
390
 
 
391
    GNUSTEP_LOCAL_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_APPS`
 
392
    GNUSTEP_LOCAL_ADMIN_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_APPS`
 
393
    GNUSTEP_LOCAL_WEB_APPS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_WEB_APPS`
 
394
    GNUSTEP_LOCAL_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_TOOLS`
 
395
    GNUSTEP_LOCAL_ADMIN_TOOLS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_ADMIN_TOOLS`
 
396
    GNUSTEP_LOCAL_LIBRARY=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARY`
 
397
    GNUSTEP_LOCAL_LIBRARIES=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_LIBRARIES`
 
398
    GNUSTEP_LOCAL_HEADERS=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_HEADERS`
 
399
    GNUSTEP_LOCAL_DOC=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC`
 
400
    GNUSTEP_LOCAL_DOC_MAN=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_MAN`
 
401
    GNUSTEP_LOCAL_DOC_INFO=`$GNUSTEP_MAKEFILES/relative_path.sh $GNUSTEP_BASE_PATH $GNUSTEP_LOCAL_DOC_INFO`
 
402
# It would be nice to now store this stuff into a ./GNUstep.conf file
 
403
# installed with gnustep-base.dll.  This would clarify.
 
404
    ;;
 
405
esac
 
406
 
 
407
#
 
408
# Now, we want to print out the paths that we're going to hardcode
 
409
# into gnustep-base.  This is to help users in finding
 
410
# misconfigurations.
 
411
#
 
412
AC_MSG_NOTICE([We store the following filesystem layout into gnustep-base, to be used when no config file is found])
 
413
AC_MSG_CHECKING([for Makefiles directory])
 
414
AC_MSG_RESULT($GNUSTEP_MAKEFILES)
 
415
AC_MSG_CHECKING([for user directory])
 
416
AC_MSG_RESULT($GNUSTEP_USER_DIR)
 
417
AC_MSG_CHECKING([for user defaults directory])
 
418
AC_MSG_RESULT($GNUSTEP_USER_DEFAULTS_DIR)
 
419
AC_MSG_CHECKING([for user config file])
 
420
AC_MSG_RESULT($GNUSTEP_USER_CONFIG_FILE)
 
421
 
 
422
AC_MSG_CHECKING([for System Applications directory])
 
423
AC_MSG_RESULT($GNUSTEP_SYSTEM_APPS)
 
424
AC_MSG_CHECKING([for System Admin Applications directory])
 
425
AC_MSG_RESULT($GNUSTEP_SYSTEM_ADMIN_APPS)
 
426
AC_MSG_CHECKING([for System Web Applications directory])
 
427
AC_MSG_RESULT($GNUSTEP_SYSTEM_WEB_APPS)
 
428
AC_MSG_CHECKING([for System Tools directory])
 
429
AC_MSG_RESULT($GNUSTEP_SYSTEM_TOOLS)
 
430
AC_MSG_CHECKING([for System Admin Tools directory])
 
431
AC_MSG_RESULT($GNUSTEP_SYSTEM_ADMIN_TOOLS)
 
432
AC_MSG_CHECKING([for System Library directory])
 
433
AC_MSG_RESULT($GNUSTEP_SYSTEM_LIBRARY)
 
434
AC_MSG_CHECKING([for System Libraries directory])
 
435
AC_MSG_RESULT($GNUSTEP_SYSTEM_LIBRARIES)
 
436
AC_MSG_CHECKING([for System Headers directory])
 
437
AC_MSG_RESULT($GNUSTEP_SYSTEM_HEADERS)
 
438
AC_MSG_CHECKING([for System Documentation directory])
 
439
AC_MSG_RESULT($GNUSTEP_SYSTEM_DOC)
 
440
AC_MSG_CHECKING([for System Info Documentation directory])
 
441
AC_MSG_RESULT($GNUSTEP_SYSTEM_DOC_INFO)
 
442
AC_MSG_CHECKING([for System Man Documentation directory])
 
443
AC_MSG_RESULT($GNUSTEP_SYSTEM_DOC_MAN)
 
444
 
 
445
AC_MSG_CHECKING([for Network Applications directory])
 
446
AC_MSG_RESULT($GNUSTEP_NETWORK_APPS)
 
447
AC_MSG_CHECKING([for Network Admin Applications directory])
 
448
AC_MSG_RESULT($GNUSTEP_NETWORK_ADMIN_APPS)
 
449
AC_MSG_CHECKING([for Network Web Applications directory])
 
450
AC_MSG_RESULT($GNUSTEP_NETWORK_WEB_APPS)
 
451
AC_MSG_CHECKING([for Network Tools directory])
 
452
AC_MSG_RESULT($GNUSTEP_NETWORK_TOOLS)
 
453
AC_MSG_CHECKING([for Network Admin Tools directory])
 
454
AC_MSG_RESULT($GNUSTEP_NETWORK_ADMIN_TOOLS)
 
455
AC_MSG_CHECKING([for Network Library directory])
 
456
AC_MSG_RESULT($GNUSTEP_NETWORK_LIBRARY)
 
457
AC_MSG_CHECKING([for Network Libraries directory])
 
458
AC_MSG_RESULT($GNUSTEP_NETWORK_LIBRARIES)
 
459
AC_MSG_CHECKING([for Network Headers directory])
 
460
AC_MSG_RESULT($GNUSTEP_NETWORK_HEADERS)
 
461
AC_MSG_CHECKING([for Network Documentation directory])
 
462
AC_MSG_RESULT($GNUSTEP_NETWORK_DOC)
 
463
AC_MSG_CHECKING([for Network Info Documentation directory])
 
464
AC_MSG_RESULT($GNUSTEP_NETWORK_DOC_INFO)
 
465
AC_MSG_CHECKING([for Network Man Documentation directory])
 
466
AC_MSG_RESULT($GNUSTEP_NETWORK_DOC_MAN)
 
467
 
 
468
AC_MSG_CHECKING([for Local Applications directory])
 
469
AC_MSG_RESULT($GNUSTEP_LOCAL_APPS)
 
470
AC_MSG_CHECKING([for Local Admin Applications directory])
 
471
AC_MSG_RESULT($GNUSTEP_LOCAL_ADMIN_APPS)
 
472
AC_MSG_CHECKING([for Local Web Applications directory])
 
473
AC_MSG_RESULT($GNUSTEP_LOCAL_WEB_APPS)
 
474
AC_MSG_CHECKING([for Local Tools directory])
 
475
AC_MSG_RESULT($GNUSTEP_LOCAL_TOOLS)
 
476
AC_MSG_CHECKING([for Local Admin Tools directory])
 
477
AC_MSG_RESULT($GNUSTEP_LOCAL_ADMIN_TOOLS)
 
478
AC_MSG_CHECKING([for Local Library directory])
 
479
AC_MSG_RESULT($GNUSTEP_LOCAL_LIBRARY)
 
480
AC_MSG_CHECKING([for Local Libraries directory])
 
481
AC_MSG_RESULT($GNUSTEP_LOCAL_LIBRARIES)
 
482
AC_MSG_CHECKING([for Local Headers directory])
 
483
AC_MSG_RESULT($GNUSTEP_LOCAL_HEADERS)
 
484
AC_MSG_CHECKING([for Local Documentation directory])
 
485
AC_MSG_RESULT($GNUSTEP_LOCAL_DOC)
 
486
AC_MSG_CHECKING([for Local Info Documentation directory])
 
487
AC_MSG_RESULT($GNUSTEP_LOCAL_DOC_INFO)
 
488
AC_MSG_CHECKING([for Local Man Documentation directory])
 
489
AC_MSG_RESULT($GNUSTEP_LOCAL_DOC_MAN)
 
490
 
 
491
AC_MSG_CHECKING([for User Applications directory])
 
492
AC_MSG_RESULT($GNUSTEP_USER_DIR_APPS)
 
493
AC_MSG_CHECKING([for User Admin Applications directory])
 
494
AC_MSG_RESULT($GNUSTEP_USER_DIR_ADMIN_APPS)
 
495
AC_MSG_CHECKING([for User Web Applications directory])
 
496
AC_MSG_RESULT($GNUSTEP_USER_DIR_WEB_APPS)
 
497
AC_MSG_CHECKING([for User Tools directory])
 
498
AC_MSG_RESULT($GNUSTEP_USER_DIR_TOOLS)
 
499
AC_MSG_CHECKING([for User Admin Tools directory])
 
500
AC_MSG_RESULT($GNUSTEP_USER_DIR_ADMIN_TOOLS)
 
501
AC_MSG_CHECKING([for User Library directory])
 
502
AC_MSG_RESULT($GNUSTEP_USER_DIR_LIBRARY)
 
503
AC_MSG_CHECKING([for User Libraries directory])
 
504
AC_MSG_RESULT($GNUSTEP_USER_DIR_LIBRARIES)
 
505
AC_MSG_CHECKING([for User Headers directory])
 
506
AC_MSG_RESULT($GNUSTEP_USER_DIR_HEADERS)
 
507
AC_MSG_CHECKING([for User Documentation directory])
 
508
AC_MSG_RESULT($GNUSTEP_USER_DIR_DOC)
 
509
AC_MSG_CHECKING([for User Info Documentation directory])
 
510
AC_MSG_RESULT($GNUSTEP_USER_DIR_DOC_INFO)
 
511
AC_MSG_CHECKING([for User Man Documentation directory])
 
512
AC_MSG_RESULT($GNUSTEP_USER_DIR_DOC_MAN)
 
513
 
 
514
AC_MSG_CHECKING([for System User directory])
 
515
AC_MSG_RESULT($GNUSTEP_SYSTEM_USERS_DIR)
 
516
AC_MSG_CHECKING([for Network User directory])
 
517
AC_MSG_RESULT($GNUSTEP_NETWORK_USERS_DIR)
 
518
AC_MSG_CHECKING([for Local User directory])
 
519
AC_MSG_RESULT($GNUSTEP_LOCAL_USERS_DIR)
 
520
 
221
521
#
222
522
# Set the default configuration file values in config.h to be hard-coded
223
523
# into NSPathUtilities.m
224
524
#
225
 
GNUSTEP_SYSTEM_ROOT=`echo $GNUSTEP_SYSTEM_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
226
 
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_ROOT,
227
 
  "$GNUSTEP_SYSTEM_ROOT",
228
 
  [Built in default value for GNUstep system root])
229
 
GNUSTEP_NETWORK_ROOT=`echo $GNUSTEP_NETWORK_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
230
 
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_ROOT,
231
 
  "$GNUSTEP_NETWORK_ROOT",
232
 
  [Built in default value for GNUstep network root])
233
 
GNUSTEP_LOCAL_ROOT=`echo $GNUSTEP_LOCAL_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
234
 
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_ROOT,
235
 
  "$GNUSTEP_LOCAL_ROOT",
236
 
  [Built in default value for GNUstep local root])
 
525
GNUSTEP_MAKEFILES=`echo $GNUSTEP_MAKEFILES|sed -e 's/\\\\/\\\\\\\\/g'`
 
526
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_MAKEFILES,
 
527
  "$GNUSTEP_MAKEFILES",
 
528
  [Built in default value for GNUstep Makefiles])
237
529
GNUSTEP_USER_DIR=`echo $GNUSTEP_USER_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
238
530
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR,
239
531
  "$GNUSTEP_USER_DIR",
252
544
  [Built in default value for GNUstep config file])
253
545
 
254
546
#
 
547
# SYSTEM domain paths
 
548
#
 
549
GNUSTEP_SYSTEM_APPS=`echo $GNUSTEP_SYSTEM_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
550
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_APPS,
 
551
  "$GNUSTEP_SYSTEM_APPS",
 
552
  [Built in default value for GNUstep system apps])
 
553
 
 
554
GNUSTEP_SYSTEM_ADMIN_APPS=`echo $GNUSTEP_SYSTEM_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
555
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_ADMIN_APPS,
 
556
  "$GNUSTEP_SYSTEM_ADMIN_APPS",
 
557
  [Built in default value for GNUstep system apps])
 
558
 
 
559
GNUSTEP_SYSTEM_WEB_APPS=`echo $GNUSTEP_SYSTEM_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
560
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_WEB_APPS,
 
561
  "$GNUSTEP_SYSTEM_WEB_APPS",
 
562
  [Built in default value for GNUstep web apps])
 
563
 
 
564
GNUSTEP_SYSTEM_TOOLS=`echo $GNUSTEP_SYSTEM_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
565
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_TOOLS,
 
566
  "$GNUSTEP_SYSTEM_TOOLS",
 
567
  [Built in default value for GNUstep system tools])
 
568
 
 
569
GNUSTEP_SYSTEM_ADMIN_TOOLS=`echo $GNUSTEP_SYSTEM_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
570
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_ADMIN_TOOLS,
 
571
  "$GNUSTEP_SYSTEM_ADMIN_TOOLS",
 
572
  [Built in default value for GNUstep system tools])
 
573
 
 
574
GNUSTEP_SYSTEM_LIBRARY=`echo $GNUSTEP_SYSTEM_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
 
575
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_LIBRARY,
 
576
  "$GNUSTEP_SYSTEM_LIBRARY",
 
577
  [Built in default value for GNUstep system library])
 
578
 
 
579
GNUSTEP_SYSTEM_LIBRARIES=`echo $GNUSTEP_SYSTEM_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
 
580
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_LIBRARIES,
 
581
  "$GNUSTEP_SYSTEM_LIBRARIES",
 
582
  [Built in default value for GNUstep system libraries])
 
583
 
 
584
GNUSTEP_SYSTEM_HEADERS=`echo $GNUSTEP_SYSTEM_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
 
585
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_HEADERS,
 
586
  "$GNUSTEP_SYSTEM_HEADERS",
 
587
  [Built in default value for GNUstep system headers])
 
588
 
 
589
GNUSTEP_SYSTEM_DOC=`echo $GNUSTEP_SYSTEM_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
 
590
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_DOC,
 
591
  "$GNUSTEP_SYSTEM_DOC",
 
592
  [Built in default value for GNUstep system documentation])
 
593
 
 
594
GNUSTEP_SYSTEM_DOC_MAN=`echo $GNUSTEP_SYSTEM_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
 
595
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_DOC_MAN,
 
596
  "$GNUSTEP_SYSTEM_DOC_MAN",
 
597
  [Built in default value for GNUstep system manpages documentation])
 
598
 
 
599
GNUSTEP_SYSTEM_DOC_INFO=`echo $GNUSTEP_SYSTEM_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
 
600
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_DOC_INFO,
 
601
  "$GNUSTEP_SYSTEM_DOC_INFO",
 
602
  [Built in default value for GNUstep system info documentation])
 
603
 
 
604
#
 
605
# NETWORK domain paths
 
606
#
 
607
GNUSTEP_NETWORK_APPS=`echo $GNUSTEP_NETWORK_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
608
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_APPS,
 
609
  "$GNUSTEP_NETWORK_APPS",
 
610
  [Built in default value for GNUstep network apps])
 
611
 
 
612
GNUSTEP_NETWORK_ADMIN_APPS=`echo $GNUSTEP_NETWORK_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
613
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_ADMIN_APPS,
 
614
  "$GNUSTEP_NETWORK_ADMIN_APPS",
 
615
  [Built in default value for GNUstep network apps])
 
616
 
 
617
GNUSTEP_NETWORK_WEB_APPS=`echo $GNUSTEP_NETWORK_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
618
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_WEB_APPS,
 
619
  "$GNUSTEP_NETWORK_WEB_APPS",
 
620
  [Built in default value for GNUstep network web apps])
 
621
 
 
622
GNUSTEP_NETWORK_TOOLS=`echo $GNUSTEP_NETWORK_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
623
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_TOOLS,
 
624
  "$GNUSTEP_NETWORK_TOOLS",
 
625
  [Built in default value for GNUstep network tools])
 
626
 
 
627
GNUSTEP_NETWORK_ADMIN_TOOLS=`echo $GNUSTEP_NETWORK_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
628
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_ADMIN_TOOLS,
 
629
  "$GNUSTEP_NETWORK_ADMIN_TOOLS",
 
630
  [Built in default value for GNUstep system tools])
 
631
 
 
632
GNUSTEP_NETWORK_LIBRARY=`echo $GNUSTEP_NETWORK_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
 
633
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_LIBRARY,
 
634
  "$GNUSTEP_NETWORK_LIBRARY",
 
635
  [Built in default value for GNUstep network library])
 
636
 
 
637
GNUSTEP_NETWORK_LIBRARIES=`echo $GNUSTEP_NETWORK_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
 
638
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_LIBRARIES,
 
639
  "$GNUSTEP_NETWORK_LIBRARIES",
 
640
  [Built in default value for GNUstep network libraries])
 
641
 
 
642
GNUSTEP_NETWORK_HEADERS=`echo $GNUSTEP_NETWORK_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
 
643
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_HEADERS,
 
644
  "$GNUSTEP_NETWORK_HEADERS",
 
645
  [Built in default value for GNUstep network headers])
 
646
 
 
647
GNUSTEP_NETWORK_DOC=`echo $GNUSTEP_NETWORK_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
 
648
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_DOC,
 
649
  "$GNUSTEP_NETWORK_DOC",
 
650
  [Built in default value for GNUstep network documentation])
 
651
 
 
652
GNUSTEP_NETWORK_DOC_MAN=`echo $GNUSTEP_NETWORK_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
 
653
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_DOC_MAN,
 
654
  "$GNUSTEP_NETWORK_DOC_MAN",
 
655
  [Built in default value for GNUstep network manpages documentation])
 
656
 
 
657
GNUSTEP_NETWORK_DOC_INFO=`echo $GNUSTEP_NETWORK_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
 
658
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_DOC_INFO,
 
659
  "$GNUSTEP_NETWORK_DOC_INFO",
 
660
  [Built in default value for GNUstep network info documentation])
 
661
 
 
662
#
 
663
# LOCAL domain paths
 
664
#
 
665
GNUSTEP_LOCAL_APPS=`echo $GNUSTEP_LOCAL_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
666
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_APPS,
 
667
  "$GNUSTEP_LOCAL_APPS",
 
668
  [Built in default value for GNUstep local apps])
 
669
 
 
670
GNUSTEP_LOCAL_ADMIN_APPS=`echo $GNUSTEP_LOCAL_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
671
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_ADMIN_APPS,
 
672
  "$GNUSTEP_LOCAL_ADMIN_APPS",
 
673
  [Built in default value for GNUstep local apps])
 
674
 
 
675
GNUSTEP_LOCAL_WEB_APPS=`echo $GNUSTEP_LOCAL_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
676
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_WEB_APPS,
 
677
  "$GNUSTEP_LOCAL_WEB_APPS",
 
678
  [Built in default value for GNUstep local web apps])
 
679
 
 
680
GNUSTEP_LOCAL_TOOLS=`echo $GNUSTEP_LOCAL_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
681
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_TOOLS,
 
682
  "$GNUSTEP_LOCAL_TOOLS",
 
683
  [Built in default value for GNUstep local tools])
 
684
 
 
685
GNUSTEP_LOCAL_ADMIN_TOOLS=`echo $GNUSTEP_LOCAL_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
686
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_ADMIN_TOOLS,
 
687
  "$GNUSTEP_LOCAL_ADMIN_TOOLS",
 
688
  [Built in default value for GNUstep local tools])
 
689
 
 
690
GNUSTEP_LOCAL_LIBRARY=`echo $GNUSTEP_LOCAL_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
 
691
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_LIBRARY,
 
692
  "$GNUSTEP_LOCAL_LIBRARY",
 
693
  [Built in default value for GNUstep local library])
 
694
 
 
695
GNUSTEP_LOCAL_LIBRARIES=`echo $GNUSTEP_LOCAL_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
 
696
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_LIBRARIES,
 
697
  "$GNUSTEP_LOCAL_LIBRARIES",
 
698
  [Built in default value for GNUstep local libraries])
 
699
 
 
700
GNUSTEP_LOCAL_HEADERS=`echo $GNUSTEP_LOCAL_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
 
701
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_HEADERS,
 
702
  "$GNUSTEP_LOCAL_HEADERS",
 
703
  [Built in default value for GNUstep local headers])
 
704
 
 
705
GNUSTEP_LOCAL_DOC=`echo $GNUSTEP_LOCAL_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
 
706
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_DOC,
 
707
  "$GNUSTEP_LOCAL_DOC",
 
708
  [Built in default value for GNUstep local documentation])
 
709
 
 
710
GNUSTEP_LOCAL_DOC_MAN=`echo $GNUSTEP_LOCAL_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
 
711
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_DOC_MAN,
 
712
  "$GNUSTEP_LOCAL_DOC_MAN",
 
713
  [Built in default value for GNUstep local manpages documentation])
 
714
 
 
715
GNUSTEP_LOCAL_DOC_INFO=`echo $GNUSTEP_LOCAL_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
 
716
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_DOC_INFO,
 
717
  "$GNUSTEP_LOCAL_DOC_INFO",
 
718
  [Built in default value for GNUstep local info documentation])
 
719
 
 
720
#
 
721
# USER_DIR domain paths
 
722
#
 
723
GNUSTEP_USER_DIR_APPS=`echo $GNUSTEP_USER_DIR_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
724
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_APPS,
 
725
  "$GNUSTEP_USER_DIR_APPS",
 
726
  [Built in default value for GNUstep user_dir apps])
 
727
 
 
728
GNUSTEP_USER_DIR_ADMIN_APPS=`echo $GNUSTEP_USER_DIR_ADMIN_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
729
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_ADMIN_APPS,
 
730
  "$GNUSTEP_USER_DIR_ADMIN_APPS",
 
731
  [Built in default value for GNUstep user_dir admin apps])
 
732
 
 
733
GNUSTEP_USER_DIR_WEB_APPS=`echo $GNUSTEP_USER_DIR_WEB_APPS|sed -e 's/\\\\/\\\\\\\\/g'`
 
734
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_WEB_APPS,
 
735
  "$GNUSTEP_USER_DIR_WEB_APPS",
 
736
  [Built in default value for GNUstep user_dir web apps])
 
737
 
 
738
GNUSTEP_USER_DIR_TOOLS=`echo $GNUSTEP_USER_DIR_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
739
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_TOOLS,
 
740
  "$GNUSTEP_USER_DIR_TOOLS",
 
741
  [Built in default value for GNUstep user_dir tools])
 
742
 
 
743
GNUSTEP_USER_DIR_ADMIN_TOOLS=`echo $GNUSTEP_USER_DIR_ADMIN_TOOLS|sed -e 's/\\\\/\\\\\\\\/g'`
 
744
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_ADMIN_TOOLS,
 
745
  "$GNUSTEP_USER_DIR_ADMIN_TOOLS",
 
746
  [Built in default value for GNUstep user_dir tools])
 
747
 
 
748
GNUSTEP_USER_DIR_LIBRARY=`echo $GNUSTEP_USER_DIR_LIBRARY|sed -e 's/\\\\/\\\\\\\\/g'`
 
749
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_LIBRARY,
 
750
  "$GNUSTEP_USER_DIR_LIBRARY",
 
751
  [Built in default value for GNUstep user_dir library])
 
752
 
 
753
GNUSTEP_USER_DIR_LIBRARIES=`echo $GNUSTEP_USER_DIR_LIBRARIES|sed -e 's/\\\\/\\\\\\\\/g'`
 
754
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_LIBRARIES,
 
755
  "$GNUSTEP_USER_DIR_LIBRARIES",
 
756
  [Built in default value for GNUstep user_dir libraries])
 
757
 
 
758
GNUSTEP_USER_DIR_HEADERS=`echo $GNUSTEP_USER_DIR_HEADERS|sed -e 's/\\\\/\\\\\\\\/g'`
 
759
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_HEADERS,
 
760
  "$GNUSTEP_USER_DIR_HEADERS",
 
761
  [Built in default value for GNUstep user_dir headers])
 
762
 
 
763
GNUSTEP_USER_DIR_DOC=`echo $GNUSTEP_USER_DIR_DOC|sed -e 's/\\\\/\\\\\\\\/g'`
 
764
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_DOC,
 
765
  "$GNUSTEP_USER_DIR_DOC",
 
766
  [Built in default value for GNUstep user_dir documentation])
 
767
 
 
768
GNUSTEP_USER_DIR_DOC_MAN=`echo $GNUSTEP_USER_DIR_DOC_MAN|sed -e 's/\\\\/\\\\\\\\/g'`
 
769
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_DOC_MAN,
 
770
  "$GNUSTEP_USER_DIR_DOC_MAN",
 
771
  [Built in default value for GNUstep user_dir manpages documentation])
 
772
 
 
773
GNUSTEP_USER_DIR_DOC_INFO=`echo $GNUSTEP_USER_DIR_DOC_INFO|sed -e 's/\\\\/\\\\\\\\/g'`
 
774
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_USER_DIR_DOC_INFO,
 
775
  "$GNUSTEP_USER_DIR_DOC_INFO",
 
776
  [Built in default value for GNUstep user_dir info documentation])
 
777
 
 
778
GNUSTEP_TARGET_SYSTEM_USERS_DIR=`echo $GNUSTEP_TARGET_SYSTEM_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
 
779
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_SYSTEM_USERS_DIR,
 
780
  "$GNUSTEP_TARGET_SYSTEM_USERS_DIR",
 
781
  [Built in default value for GNUstep System Users directory])
 
782
GNUSTEP_TARGET_NETWORK_USERS_DIR=`echo $GNUSTEP_TARGET_NETWORK_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
 
783
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_NETWORK_USERS_DIR,
 
784
  "$GNUSTEP_TARGET_NETWORK_USERS_DIR",
 
785
  [Built in default value for GNUstep Network Users directory])
 
786
GNUSTEP_TARGET_LOCAL_USERS_DIR=`echo $GNUSTEP_TARGET_LOCAL_USERS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
 
787
AC_DEFINE_UNQUOTED(GNUSTEP_TARGET_LOCAL_USERS_DIR,
 
788
  "$GNUSTEP_TARGET_LOCAL_USERS_DIR",
 
789
  [Built in default value for GNUstep Local Users directory])
 
790
 
 
791
 
 
792
#------------------------------------------------------------------------------
 
793
# Now we have finished configuring the default GNUstep filesystem setup of
 
794
# the target.  All GNUstep variables from now on are the ones used to build
 
795
#------------------------------------------------------------------------------
 
796
 
 
797
#
255
798
# Now load the values to be used in locating libraries etc used when
256
799
# building the base library ... as supplied by the gnustep-make package
257
800
#
258
 
if test ! -f "$GNUSTEP_MAKE_CONFIG"; then
259
 
  AC_MSG_NOTICE([Could not find make-specified config file. Either make was installed incorrectly or you are using an old version of gnustep-make. Ignoring this for now...])
260
 
else
261
 
  . "$GNUSTEP_MAKE_CONFIG"
 
801
# It looks like we ought to source the whole GNUstep.sh here, and even
 
802
# ask it to output all variables!  That way we have access to (eg)
 
803
# GNUSTEP_SYSTEM_HEADERS below.
 
804
#
 
805
# We need to unles any values that we really need, or existing settings
 
806
# would be used by GNUstep.sh
 
807
#
 
808
unset GNUSTEP_SYSTEM_HEADERS
 
809
unset GNUSTEP_SYSTEM_LIBRARIES
 
810
GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes
 
811
. "$CURRENT_GNUSTEP_MAKEFILES/GNUstep.sh"
 
812
unset GNUSTEP_SH_EXPORT_ALL_VARIABLES
 
813
 
 
814
# For backwards compatibility, define GNUSTEP_SYSTEM_HEADERS from
 
815
# GNUSTEP_SYSTEM_ROOT if not set yet.
 
816
if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then
 
817
  GNUSTEP_SYSTEM_HEADERS="$GNUSTEP_SYSTEM_ROOT/Library/Headers"
 
818
fi
 
819
 
 
820
if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then
 
821
  GNUSTEP_SYSTEM_LIBRARIES="$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
262
822
fi
263
823
 
264
824
#
266
826
# plain C developer headers/libraries which haver been installed in the
267
827
# GNUstep hierarchy.
268
828
#
269
 
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_ROOT/Library/Headers"
270
 
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
 
829
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_HEADERS"
 
830
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_LIBRARIES"
271
831
 
272
832
#--------------------------------------------------------------------
273
833
# Find the compiler
325
885
# Miscellaneous flags
326
886
#--------------------------------------------------------------------
327
887
# Set location of GNUstep dirs for later use
328
 
if test "$GNUSTEP_FLATTENED" = yes; then
329
 
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
330
 
  GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers
331
 
else
332
 
  clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os`
333
 
  clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
 
888
if test "$GNUSTEP_IS_FLATTENED" = no; then
 
889
  clean_target_os=`$CURRENT_GNUSTEP_MAKEFILES/clean_os.sh $target_os`
 
890
  clean_target_cpu=`$CURRENT_GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
334
891
  obj_dir=$clean_target_cpu/$clean_target_os
335
 
  GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir
336
 
  GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers/$LIBRARY_COMBO
 
892
  lobj_dir=$clean_target_cpu/$clean_target_os/$LIBRARY_COMBO
 
893
  GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES/$obj_dir"
 
894
  GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS/$LIBRARY_COMBO"
 
895
else
 
896
  obj_dir=
 
897
  lobj_dir=
 
898
  GNUSTEP_LDIR="$GNUSTEP_SYSTEM_LIBRARIES"
 
899
  GNUSTEP_HDIR="$GNUSTEP_SYSTEM_HEADERS"
337
900
fi
338
901
 
339
902
#
373
936
  AC_MSG_RESULT([not found])
374
937
fi
375
938
 
 
939
AC_MSG_CHECKING(for gcc visibility attribute support)
 
940
saved_CFLAGS="$CFLAGS"
 
941
CFLAGS="$CFLAGS -Werror"
 
942
AC_COMPILE_IFELSE([
 
943
  #include <stdio.h>
 
944
  int foo() __attribute__ ((visibility("internal")));
 
945
  int foo(){ return 1; }
 
946
  int main(){ return foo(); }],
 
947
  AC_MSG_RESULT([found])
 
948
  gs_visibility=1,
 
949
  AC_MSG_RESULT([not present])
 
950
  gs_visibility=0
 
951
)
 
952
AC_DEFINE_UNQUOTED(HAVE_VISIBILITY_ATTRIBUTE,$gs_visibility,
 
953
  [Says whether the visibility attribute works])
 
954
CFLAGS="$saved_CFLAGS"
 
955
 
 
956
 
376
957
#--------------------------------------------------------------------
377
958
# Check if system has buggy SO_REUSEADDR
378
959
#--------------------------------------------------------------------
407
988
#
408
989
# Get them from gnustep-make which contains the real code to get them
409
990
#
410
 
objc_threaded=`grep objc_threaded: $GNUSTEP_MAKEFILES/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
 
991
objc_threaded=`grep objc_threaded: $CURRENT_GNUSTEP_MAKEFILES/$lobj_dir/config.make | sed -e 's/objc_threaded:=//'`
411
992
#
412
993
AC_MSG_RESULT($objc_threaded)
413
994
 
1005
1586
# Solaris and *BSD use LLONG_MAX instead
1006
1587
#
1007
1588
AC_MSG_CHECKING([whether we have LLONG_MAX])
1008
 
AC_TRY_CPP([#include <limits.h>
 
1589
# We need to use the same header environment as the test above because we
 
1590
# will be using one or the other set of constants.
 
1591
AC_TRY_CPP([#ifndef _GNU_SOURCE
 
1592
        #define _GNU_SOURCE
 
1593
        #endif
 
1594
        #ifdef HAVE_STDINT_H
 
1595
        #include <stdint.h>
 
1596
        #endif
 
1597
        #include <limits.h>
1009
1598
        #if defined(LLONG_MAX)
1010
1599
        #if LONG_MAX == LLONG_MAX
1011
1600
        #error long max equals long long max
1084
1673
fi
1085
1674
 
1086
1675
#--------------------------------------------------------------------
 
1676
# Check for uname header used by NSProcessInfo.m 
 
1677
#--------------------------------------------------------------------
 
1678
AC_CHECK_HEADERS(sys/utsname.h)
 
1679
 
 
1680
#--------------------------------------------------------------------
1087
1681
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem. 
1088
1682
# Needed by NSProcessInfo.m 
1089
1683
#--------------------------------------------------------------------
1141
1735
  cygwin*)      PASS_ARG=yes;;
1142
1736
esac
1143
1737
 
1144
 
AC_MSG_CHECKING("use of pass-through arguments")
 
1738
AC_MSG_CHECKING(use of pass-through arguments)
1145
1739
AC_ARG_ENABLE(pass-arguments,
1146
1740
  [  --enable-pass-arguments    Force user main call to NSProcessInfo initialize],,
1147
1741
  enable_pass_arguments=$PASS_ARG)
1154
1748
AC_SUBST(GS_PASS_ARGUMENTS)
1155
1749
AC_MSG_RESULT($enable_pass_arguments)
1156
1750
 
1157
 
AC_MSG_CHECKING("use of fake-main definition")
 
1751
AC_MSG_CHECKING(use of fake-main definition)
1158
1752
AC_ARG_ENABLE(fake-main,
1159
1753
  [  --enable-fake-main                 Force redefine of user main function],,
1160
1754
  enable_fake_main=no)
1210
1804
# We enable ffcall by default now.
1211
1805
#--------------------------------------------------------------------
1212
1806
do_enable_libffi=no
1213
 
# Enable libffi by default on the following machines
1214
 
case "$target_os" in
1215
 
    darwin*)    do_enable_libffi=yes;;
1216
 
esac
1217
1807
 
1218
1808
AC_ARG_ENABLE(libffi,
1219
1809
  [  --enable-libffi            Enable use of libffi library],,
1263
1853
have_forward_hook=yes
1264
1854
saved_CPPFLAGS="$CPPFLAGS"
1265
1855
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
1266
 
AC_MSG_CHECKING("for forwarding callback in runtime")
 
1856
AC_MSG_CHECKING(for forwarding callback in runtime)
1267
1857
AC_COMPILE_IFELSE([#include "$srcdir/config/config.forward.m"],
1268
1858
        have_forward_hook=yes, have_forward_hook=no)
1269
1859
AC_MSG_RESULT($have_forward_hook)
1273
1863
fi
1274
1864
CPPFLAGS="$saved_CPPFLAGS"
1275
1865
 
1276
 
AC_MSG_CHECKING("FFI library usage")
 
1866
AC_MSG_CHECKING(FFI library usage)
1277
1867
WITH_FFI=none
1278
1868
if test $enable_libffi = yes; then
1279
1869
  AC_DEFINE(USE_LIBFFI,1,
1293
1883
  if test $ffi_ok = yes; then
1294
1884
    AC_MSG_RESULT(ffcall)
1295
1885
  fi
 
1886
  AC_MSG_CHECKING(if ffcall trampolines work)
 
1887
  AC_RUN_IFELSE([#include "$srcdir/config/config.trampoline.c"],
 
1888
          have_working_trampoline=yes, have_working_trampoline=no, 
 
1889
          have_working_trampoline=yes)
 
1890
  AC_MSG_RESULT($have_working_trampoline)
 
1891
  if test $have_working_trampoline = no; then
 
1892
    ffi_ok=no
 
1893
  fi
1296
1894
else
1297
1895
  ffi_ok=no
1298
1896
fi
1302
1900
  echo
1303
1901
  if test $have_forward_hook = no; then
1304
1902
    echo "You do not have an up-to-date libobjc library installed"
 
1903
  elif test "$have_working_trampoline" = no; then
 
1904
    echo "You have ffcall, but it does not work properly. Most likely because"
 
1905
    echo "your're system's security policy is blocking some parts of ffcall"
 
1906
    echo "we recommend installing libffi instead."
1305
1907
  else
1306
1908
    echo "You do not have either ffcall or libffi installed, or configure needs"
1307
1909
    echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them"
1317
1919
    echo "If you really want to build -base without DO support, add --disable-do"
1318
1920
    echo "to the configure arguments."
1319
1921
    echo "For more information, read the GNUstep build guide, ffcall section:"
1320
 
    echo "http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACES"
 
1922
    echo "http://gnustep.made-it.com/BuildGuide/index.html"
1321
1923
    AC_MSG_ERROR([Incomplete support for ffi functionality.])
1322
1924
  fi
1323
1925
  AC_MSG_WARN([Incomplete support for ffi funtionality.])
1466
2068
AC_SUBST(HAVE_LIBXML)
1467
2069
 
1468
2070
#--------------------------------------------------------------------
 
2071
# Check for NSNetServices
 
2072
#--------------------------------------------------------------------
 
2073
HAVE_MDNS=0
 
2074
AC_CHECK_HEADERS(dns_sd.h, have_mdns=yes, have_mdns=no)
 
2075
if test "$have_mdns" = "yes"; then
 
2076
  AC_CHECK_LIB(dns_sd, DNSServiceBrowse, have_mdns=yes, have_mdns=no)
 
2077
  if test "$have_mdns" = "yes"; then
 
2078
    LIBS="-ldns_sd $LIBS"
 
2079
    HAVE_MDNS=1
 
2080
  fi
 
2081
fi
 
2082
AC_SUBST(HAVE_MDNS)
 
2083
 
 
2084
#--------------------------------------------------------------------
1469
2085
# Check GMP for NSDecimal
1470
2086
#--------------------------------------------------------------------
1471
2087
AC_ARG_WITH(gmp-include,