1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.57. |
4 |
# |
5 |
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 |
# Free Software Foundation, Inc. |
7 |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
9 |
## --------------------- ## |
10 |
## M4sh Initialization. ## |
11 |
## --------------------- ## |
12 |
|
13 |
# Be Bourne compatible |
14 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15 |
emulate sh |
16 |
NULLCMD=: |
17 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 |
# is contrary to our usage. Disable this feature. |
19 |
alias -g '${1+"$@"}'='"$@"' |
20 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 |
set -o posix |
22 |
fi |
23 |
|
24 |
# Support unset when possible. |
25 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
26 |
as_unset=unset |
27 |
else |
28 |
as_unset=false |
29 |
fi |
30 |
|
31 |
|
32 |
# Work around bugs in pre-3.0 UWIN ksh. |
33 |
$as_unset ENV MAIL MAILPATH |
34 |
PS1='$ ' |
35 |
PS2='> ' |
36 |
PS4='+ ' |
37 |
|
38 |
# NLS nuisances. |
39 |
for as_var in \ |
40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 |
LC_TELEPHONE LC_TIME |
43 |
do |
44 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 |
eval $as_var=C; export $as_var |
46 |
else |
47 |
$as_unset $as_var |
48 |
fi |
49 |
done |
50 |
|
51 |
# Required to use basename. |
52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
as_expr=expr |
54 |
else |
55 |
as_expr=false |
56 |
fi |
57 |
|
58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
as_basename=basename |
60 |
else |
61 |
as_basename=false |
62 |
fi |
63 |
|
64 |
|
65 |
# Name of the executable. |
66 |
as_me=`$as_basename "$0" || |
67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
X"$0" : 'X\(//\)$' \| \ |
69 |
X"$0" : 'X\(/\)$' \| \ |
70 |
. : '\(.\)' 2>/dev/null || |
71 |
echo X/"$0" | |
72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
s/.*/./; q'` |
76 |
|
77 |
|
78 |
# PATH needs CR, and LINENO needs CR and PATH. |
79 |
# Avoid depending upon Character Ranges. |
80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 |
as_cr_digits='0123456789' |
84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 |
|
86 |
# The user is always right. |
87 |
if test "${PATH_SEPARATOR+set}" != set; then |
88 |
echo "#! /bin/sh" >conf$$.sh |
89 |
echo "exit 0" >>conf$$.sh |
90 |
chmod +x conf$$.sh |
91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 |
PATH_SEPARATOR=';' |
93 |
else |
94 |
PATH_SEPARATOR=: |
95 |
fi |
96 |
rm -f conf$$.sh |
97 |
fi |
98 |
|
99 |
|
100 |
as_lineno_1=$LINENO |
101 |
as_lineno_2=$LINENO |
102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 |
# Find who we are. Look in the path if we contain no path at all |
106 |
# relative or not. |
107 |
case $0 in |
108 |
*[\\/]* ) as_myself=$0 ;; |
109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 |
for as_dir in $PATH |
111 |
do |
112 |
IFS=$as_save_IFS |
113 |
test -z "$as_dir" && as_dir=. |
114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 |
done |
116 |
|
117 |
;; |
118 |
esac |
119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
120 |
# in which case we are not to be found in the path. |
121 |
if test "x$as_myself" = x; then |
122 |
as_myself=$0 |
123 |
fi |
124 |
if test ! -f "$as_myself"; then |
125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 |
{ (exit 1); exit 1; }; } |
127 |
fi |
128 |
case $CONFIG_SHELL in |
129 |
'') |
130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 |
do |
133 |
IFS=$as_save_IFS |
134 |
test -z "$as_dir" && as_dir=. |
135 |
for as_base in sh bash ksh sh5; do |
136 |
case $as_dir in |
137 |
/*) |
138 |
if ("$as_dir/$as_base" -c ' |
139 |
as_lineno_1=$LINENO |
140 |
as_lineno_2=$LINENO |
141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 |
CONFIG_SHELL=$as_dir/$as_base |
147 |
export CONFIG_SHELL |
148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 |
fi;; |
150 |
esac |
151 |
done |
152 |
done |
153 |
;; |
154 |
esac |
155 |
|
156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
158 |
# line-number line before each line; the second 'sed' does the real |
159 |
# work. The second script uses 'N' to pair each line-number line |
160 |
# with the numbered line, and appends trailing '-' during |
161 |
# substitution so that $LINENO is not a special case at line end. |
162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 |
sed '=' <$as_myself | |
165 |
sed ' |
166 |
N |
167 |
s,$,-, |
168 |
: loop |
169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 |
t loop |
171 |
s,-$,, |
172 |
s,^['$as_cr_digits']*\n,, |
173 |
' >$as_me.lineno && |
174 |
chmod +x $as_me.lineno || |
175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 |
{ (exit 1); exit 1; }; } |
177 |
|
178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
179 |
# (the dirname of $[0] is not the place where we might find the |
180 |
# original and so on. Autoconf is especially sensible to this). |
181 |
. ./$as_me.lineno |
182 |
# Exit status is that of the last command. |
183 |
exit |
184 |
} |
185 |
|
186 |
|
187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 |
*c*,-n*) ECHO_N= ECHO_C=' |
189 |
' ECHO_T=' ' ;; |
190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 |
esac |
193 |
|
194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
195 |
as_expr=expr |
196 |
else |
197 |
as_expr=false |
198 |
fi |
199 |
|
200 |
rm -f conf$$ conf$$.exe conf$$.file |
201 |
echo >conf$$.file |
202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 |
if test -f conf$$.exe; then |
206 |
# Don't use ln at all; we don't have any links |
207 |
as_ln_s='cp -p' |
208 |
else |
209 |
as_ln_s='ln -s' |
210 |
fi |
211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
212 |
as_ln_s=ln |
213 |
else |
214 |
as_ln_s='cp -p' |
215 |
fi |
216 |
rm -f conf$$ conf$$.exe conf$$.file |
217 |
|
218 |
if mkdir -p . 2>/dev/null; then |
219 |
as_mkdir_p=: |
220 |
else |
221 |
as_mkdir_p=false |
222 |
fi |
223 |
|
224 |
as_executable_p="test -f" |
225 |
|
226 |
# Sed expression to map a string onto a valid CPP name. |
227 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
228 |
|
229 |
# Sed expression to map a string onto a valid variable name. |
230 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
231 |
|
232 |
|
233 |
# IFS |
234 |
# We need space, tab and new line, in precisely that order. |
235 |
as_nl=' |
236 |
' |
237 |
IFS=" $as_nl" |
238 |
|
239 |
# CDPATH. |
240 |
$as_unset CDPATH |
241 |
|
242 |
|
243 |
# Name of the host. |
244 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 |
# so uname gets run too. |
246 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 |
|
248 |
exec 6>&1 |
249 |
|
250 |
# |
251 |
# Initializations. |
252 |
# |
253 |
ac_default_prefix=/usr/local |
254 |
ac_config_libobj_dir=. |
255 |
cross_compiling=no |
256 |
subdirs= |
257 |
MFLAGS= |
258 |
MAKEFLAGS= |
259 |
SHELL=${CONFIG_SHELL-/bin/sh} |
260 |
|
261 |
# Maximum number of lines to put in a shell here document. |
262 |
# This variable seems obsolete. It should probably be removed, and |
263 |
# only ac_max_sed_lines should be used. |
264 |
: ${ac_max_here_lines=38} |
265 |
|
266 |
# Identity of this package. |
267 |
PACKAGE_NAME= |
268 |
PACKAGE_TARNAME= |
269 |
PACKAGE_VERSION= |
270 |
PACKAGE_STRING= |
271 |
PACKAGE_BUGREPORT= |
272 |
|
273 |
ac_unique_file="application.make" |
274 |
ac_default_prefix=`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then |
275 |
if test -d C: ; then |
276 |
echo C:/GNUstep; |
277 |
else |
278 |
echo /usr/GNUstep ; |
279 |
fi |
280 |
else |
281 |
echo "$GNUSTEP_SYSTEM_ROOT" ; |
282 |
fi` |
283 |
# Factoring default headers for most tests. |
284 |
ac_includes_default="\ |
285 |
#include <stdio.h> |
286 |
#if HAVE_SYS_TYPES_H |
287 |
# include <sys/types.h> |
288 |
#endif |
289 |
#if HAVE_SYS_STAT_H |
290 |
# include <sys/stat.h> |
291 |
#endif |
292 |
#if STDC_HEADERS |
293 |
# include <stdlib.h> |
294 |
# include <stddef.h> |
295 |
#else |
296 |
# if HAVE_STDLIB_H |
297 |
# include <stdlib.h> |
298 |
# endif |
299 |
#endif |
300 |
#if HAVE_STRING_H |
301 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
302 |
# include <memory.h> |
303 |
# endif |
304 |
# include <string.h> |
305 |
#endif |
306 |
#if HAVE_STRINGS_H |
307 |
# include <strings.h> |
308 |
#endif |
309 |
#if HAVE_INTTYPES_H |
310 |
# include <inttypes.h> |
311 |
#else |
312 |
# if HAVE_STDINT_H |
313 |
# include <stdint.h> |
314 |
# endif |
315 |
#endif |
316 |
#if HAVE_UNISTD_H |
317 |
# include <unistd.h> |
318 |
#endif" |
319 |
|
320 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os ac_cv_library_combo CYGWIN RANLIB AR DLLTOOL ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S TAR CHOWN GNUSTEP_ROOT root_prefix MAKEFILES_SUFFIX HOST_INSTALL GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT GNUSTEP_FLATTENED GNUSTEP_MULTI_PLATFORM BACKEND_BUNDLE EGREP objc_threaded ac_cv_objc_threaded AUTO_DEPENDENCIES OBJC_NO_IMPORT_FLAGS INCLUDE_FLAGS GNUSTEP_MOVE_OBSOLETE GNUSTEP_MAKE_VERSION GNUSTEP_MAKE_MAJOR_VERSION GNUSTEP_MAKE_MINOR_VERSION GNUSTEP_MAKE_SUBMINOR_VERSION clean_target_os clean_target_cpu clean_target_vendor LIBOBJS LTLIBOBJS' |
321 |
ac_subst_files='' |
322 |
|
323 |
# Initialize some variables set by options. |
324 |
ac_init_help= |
325 |
ac_init_version=false |
326 |
# The variables have the same names as the options, with |
327 |
# dashes changed to underlines. |
328 |
cache_file=/dev/null |
329 |
exec_prefix=NONE |
330 |
no_create= |
331 |
no_recursion= |
332 |
prefix=NONE |
333 |
program_prefix=NONE |
334 |
program_suffix=NONE |
335 |
program_transform_name=s,x,x, |
336 |
silent= |
337 |
site= |
338 |
srcdir= |
339 |
verbose= |
340 |
x_includes=NONE |
341 |
x_libraries=NONE |
342 |
|
343 |
# Installation directory options. |
344 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
345 |
# and all the variables that are supposed to be based on exec_prefix |
346 |
# by default will actually change. |
347 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
348 |
bindir='${exec_prefix}/bin' |
349 |
sbindir='${exec_prefix}/sbin' |
350 |
libexecdir='${exec_prefix}/libexec' |
351 |
datadir='${prefix}/share' |
352 |
sysconfdir='${prefix}/etc' |
353 |
sharedstatedir='${prefix}/com' |
354 |
localstatedir='${prefix}/var' |
355 |
libdir='${exec_prefix}/lib' |
356 |
includedir='${prefix}/include' |
357 |
oldincludedir='/usr/include' |
358 |
infodir='${prefix}/info' |
359 |
mandir='${prefix}/man' |
360 |
|
361 |
ac_prev= |
362 |
for ac_option |
363 |
do |
364 |
# If the previous option needs an argument, assign it. |
365 |
if test -n "$ac_prev"; then |
366 |
eval "$ac_prev=\$ac_option" |
367 |
ac_prev= |
368 |
continue |
369 |
fi |
370 |
|
371 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
372 |
|
373 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
374 |
|
375 |
case $ac_option in |
376 |
|
377 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
378 |
ac_prev=bindir ;; |
379 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
380 |
bindir=$ac_optarg ;; |
381 |
|
382 |
-build | --build | --buil | --bui | --bu) |
383 |
ac_prev=build_alias ;; |
384 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
385 |
build_alias=$ac_optarg ;; |
386 |
|
387 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
388 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
389 |
ac_prev=cache_file ;; |
390 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
391 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
392 |
cache_file=$ac_optarg ;; |
393 |
|
394 |
--config-cache | -C) |
395 |
cache_file=config.cache ;; |
396 |
|
397 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
398 |
ac_prev=datadir ;; |
399 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
400 |
| --da=*) |
401 |
datadir=$ac_optarg ;; |
402 |
|
403 |
-disable-* | --disable-*) |
404 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
405 |
# Reject names that are not valid shell variable names. |
406 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
407 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
408 |
{ (exit 1); exit 1; }; } |
409 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
410 |
eval "enable_$ac_feature=no" ;; |
411 |
|
412 |
-enable-* | --enable-*) |
413 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
414 |
# Reject names that are not valid shell variable names. |
415 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
416 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
417 |
{ (exit 1); exit 1; }; } |
418 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
419 |
case $ac_option in |
420 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
421 |
*) ac_optarg=yes ;; |
422 |
esac |
423 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
424 |
|
425 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
426 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
427 |
| --exec | --exe | --ex) |
428 |
ac_prev=exec_prefix ;; |
429 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
430 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
431 |
| --exec=* | --exe=* | --ex=*) |
432 |
exec_prefix=$ac_optarg ;; |
433 |
|
434 |
-gas | --gas | --ga | --g) |
435 |
# Obsolete; use --with-gas. |
436 |
with_gas=yes ;; |
437 |
|
438 |
-help | --help | --hel | --he | -h) |
439 |
ac_init_help=long ;; |
440 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
441 |
ac_init_help=recursive ;; |
442 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
443 |
ac_init_help=short ;; |
444 |
|
445 |
-host | --host | --hos | --ho) |
446 |
ac_prev=host_alias ;; |
447 |
-host=* | --host=* | --hos=* | --ho=*) |
448 |
host_alias=$ac_optarg ;; |
449 |
|
450 |
-includedir | --includedir | --includedi | --included | --include \ |
451 |
| --includ | --inclu | --incl | --inc) |
452 |
ac_prev=includedir ;; |
453 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
454 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
455 |
includedir=$ac_optarg ;; |
456 |
|
457 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
458 |
ac_prev=infodir ;; |
459 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
460 |
infodir=$ac_optarg ;; |
461 |
|
462 |
-libdir | --libdir | --libdi | --libd) |
463 |
ac_prev=libdir ;; |
464 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
465 |
libdir=$ac_optarg ;; |
466 |
|
467 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
468 |
| --libexe | --libex | --libe) |
469 |
ac_prev=libexecdir ;; |
470 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
471 |
| --libexe=* | --libex=* | --libe=*) |
472 |
libexecdir=$ac_optarg ;; |
473 |
|
474 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
475 |
| --localstate | --localstat | --localsta | --localst \ |
476 |
| --locals | --local | --loca | --loc | --lo) |
477 |
ac_prev=localstatedir ;; |
478 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
479 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
480 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
481 |
localstatedir=$ac_optarg ;; |
482 |
|
483 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
484 |
ac_prev=mandir ;; |
485 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
486 |
mandir=$ac_optarg ;; |
487 |
|
488 |
-nfp | --nfp | --nf) |
489 |
# Obsolete; use --without-fp. |
490 |
with_fp=no ;; |
491 |
|
492 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
493 |
| --no-cr | --no-c | -n) |
494 |
no_create=yes ;; |
495 |
|
496 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
497 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
498 |
no_recursion=yes ;; |
499 |
|
500 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
501 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
502 |
| --oldin | --oldi | --old | --ol | --o) |
503 |
ac_prev=oldincludedir ;; |
504 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
505 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
506 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
507 |
oldincludedir=$ac_optarg ;; |
508 |
|
509 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
510 |
ac_prev=prefix ;; |
511 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
512 |
prefix=$ac_optarg ;; |
513 |
|
514 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
515 |
| --program-pre | --program-pr | --program-p) |
516 |
ac_prev=program_prefix ;; |
517 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
518 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
519 |
program_prefix=$ac_optarg ;; |
520 |
|
521 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
522 |
| --program-suf | --program-su | --program-s) |
523 |
ac_prev=program_suffix ;; |
524 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
525 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
526 |
program_suffix=$ac_optarg ;; |
527 |
|
528 |
-program-transform-name | --program-transform-name \ |
529 |
| --program-transform-nam | --program-transform-na \ |
530 |
| --program-transform-n | --program-transform- \ |
531 |
| --program-transform | --program-transfor \ |
532 |
| --program-transfo | --program-transf \ |
533 |
| --program-trans | --program-tran \ |
534 |
| --progr-tra | --program-tr | --program-t) |
535 |
ac_prev=program_transform_name ;; |
536 |
-program-transform-name=* | --program-transform-name=* \ |
537 |
| --program-transform-nam=* | --program-transform-na=* \ |
538 |
| --program-transform-n=* | --program-transform-=* \ |
539 |
| --program-transform=* | --program-transfor=* \ |
540 |
| --program-transfo=* | --program-transf=* \ |
541 |
| --program-trans=* | --program-tran=* \ |
542 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
543 |
program_transform_name=$ac_optarg ;; |
544 |
|
545 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
546 |
| -silent | --silent | --silen | --sile | --sil) |
547 |
silent=yes ;; |
548 |
|
549 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
550 |
ac_prev=sbindir ;; |
551 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
552 |
| --sbi=* | --sb=*) |
553 |
sbindir=$ac_optarg ;; |
554 |
|
555 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
556 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
557 |
| --sharedst | --shareds | --shared | --share | --shar \ |
558 |
| --sha | --sh) |
559 |
ac_prev=sharedstatedir ;; |
560 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
561 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
562 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
563 |
| --sha=* | --sh=*) |
564 |
sharedstatedir=$ac_optarg ;; |
565 |
|
566 |
-site | --site | --sit) |
567 |
ac_prev=site ;; |
568 |
-site=* | --site=* | --sit=*) |
569 |
site=$ac_optarg ;; |
570 |
|
571 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
572 |
ac_prev=srcdir ;; |
573 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
574 |
srcdir=$ac_optarg ;; |
575 |
|
576 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
577 |
| --syscon | --sysco | --sysc | --sys | --sy) |
578 |
ac_prev=sysconfdir ;; |
579 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
580 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
581 |
sysconfdir=$ac_optarg ;; |
582 |
|
583 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
584 |
ac_prev=target_alias ;; |
585 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
586 |
target_alias=$ac_optarg ;; |
587 |
|
588 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
589 |
verbose=yes ;; |
590 |
|
591 |
-version | --version | --versio | --versi | --vers | -V) |
592 |
ac_init_version=: ;; |
593 |
|
594 |
-with-* | --with-*) |
595 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
596 |
# Reject names that are not valid shell variable names. |
597 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
598 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
599 |
{ (exit 1); exit 1; }; } |
600 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
601 |
case $ac_option in |
602 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
603 |
*) ac_optarg=yes ;; |
604 |
esac |
605 |
eval "with_$ac_package='$ac_optarg'" ;; |
606 |
|
607 |
-without-* | --without-*) |
608 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
609 |
# Reject names that are not valid shell variable names. |
610 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
611 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
612 |
{ (exit 1); exit 1; }; } |
613 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
614 |
eval "with_$ac_package=no" ;; |
615 |
|
616 |
--x) |
617 |
# Obsolete; use --with-x. |
618 |
with_x=yes ;; |
619 |
|
620 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
621 |
| --x-incl | --x-inc | --x-in | --x-i) |
622 |
ac_prev=x_includes ;; |
623 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
624 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
625 |
x_includes=$ac_optarg ;; |
626 |
|
627 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
628 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
629 |
ac_prev=x_libraries ;; |
630 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
631 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
632 |
x_libraries=$ac_optarg ;; |
633 |
|
634 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
635 |
Try \`$0 --help' for more information." >&2 |
636 |
{ (exit 1); exit 1; }; } |
637 |
;; |
638 |
|
639 |
*=*) |
640 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
641 |
# Reject names that are not valid shell variable names. |
642 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
643 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
644 |
{ (exit 1); exit 1; }; } |
645 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
646 |
eval "$ac_envvar='$ac_optarg'" |
647 |
export $ac_envvar ;; |
648 |
|
649 |
*) |
650 |
# FIXME: should be removed in autoconf 3.0. |
651 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
652 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
653 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
654 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
655 |
;; |
656 |
|
657 |
esac |
658 |
done |
659 |
|
660 |
if test -n "$ac_prev"; then |
661 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
662 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
663 |
{ (exit 1); exit 1; }; } |
664 |
fi |
665 |
|
666 |
# Be sure to have absolute paths. |
667 |
for ac_var in exec_prefix prefix |
668 |
do |
669 |
eval ac_val=$`echo $ac_var` |
670 |
case $ac_val in |
671 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
672 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
673 |
{ (exit 1); exit 1; }; };; |
674 |
esac |
675 |
done |
676 |
|
677 |
# Be sure to have absolute paths. |
678 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
679 |
localstatedir libdir includedir oldincludedir infodir mandir |
680 |
do |
681 |
eval ac_val=$`echo $ac_var` |
682 |
case $ac_val in |
683 |
[\\/$]* | ?:[\\/]* ) ;; |
684 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
685 |
{ (exit 1); exit 1; }; };; |
686 |
esac |
687 |
done |
688 |
|
689 |
# There might be people who depend on the old broken behavior: `$host' |
690 |
# used to hold the argument of --host etc. |
691 |
# FIXME: To remove some day. |
692 |
build=$build_alias |
693 |
host=$host_alias |
694 |
target=$target_alias |
695 |
|
696 |
# FIXME: To remove some day. |
697 |
if test "x$host_alias" != x; then |
698 |
if test "x$build_alias" = x; then |
699 |
cross_compiling=maybe |
700 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
701 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
702 |
elif test "x$build_alias" != "x$host_alias"; then |
703 |
cross_compiling=yes |
704 |
fi |
705 |
fi |
706 |
|
707 |
ac_tool_prefix= |
708 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
709 |
|
710 |
test "$silent" = yes && exec 6>/dev/null |
711 |
|
712 |
|
713 |
# Find the source files, if location was not specified. |
714 |
if test -z "$srcdir"; then |
715 |
ac_srcdir_defaulted=yes |
716 |
# Try the directory containing this script, then its parent. |
717 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
718 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
719 |
X"$0" : 'X\(//\)[^/]' \| \ |
720 |
X"$0" : 'X\(//\)$' \| \ |
721 |
X"$0" : 'X\(/\)' \| \ |
722 |
. : '\(.\)' 2>/dev/null || |
723 |
echo X"$0" | |
724 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
725 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
726 |
/^X\(\/\/\)$/{ s//\1/; q; } |
727 |
/^X\(\/\).*/{ s//\1/; q; } |
728 |
s/.*/./; q'` |
729 |
srcdir=$ac_confdir |
730 |
if test ! -r $srcdir/$ac_unique_file; then |
731 |
srcdir=.. |
732 |
fi |
733 |
else |
734 |
ac_srcdir_defaulted=no |
735 |
fi |
736 |
if test ! -r $srcdir/$ac_unique_file; then |
737 |
if test "$ac_srcdir_defaulted" = yes; then |
738 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
739 |
{ (exit 1); exit 1; }; } |
740 |
else |
741 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
742 |
{ (exit 1); exit 1; }; } |
743 |
fi |
744 |
fi |
745 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
746 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
747 |
{ (exit 1); exit 1; }; } |
748 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
749 |
ac_env_build_alias_set=${build_alias+set} |
750 |
ac_env_build_alias_value=$build_alias |
751 |
ac_cv_env_build_alias_set=${build_alias+set} |
752 |
ac_cv_env_build_alias_value=$build_alias |
753 |
ac_env_host_alias_set=${host_alias+set} |
754 |
ac_env_host_alias_value=$host_alias |
755 |
ac_cv_env_host_alias_set=${host_alias+set} |
756 |
ac_cv_env_host_alias_value=$host_alias |
757 |
ac_env_target_alias_set=${target_alias+set} |
758 |
ac_env_target_alias_value=$target_alias |
759 |
ac_cv_env_target_alias_set=${target_alias+set} |
760 |
ac_cv_env_target_alias_value=$target_alias |
761 |
ac_env_CC_set=${CC+set} |
762 |
ac_env_CC_value=$CC |
763 |
ac_cv_env_CC_set=${CC+set} |
764 |
ac_cv_env_CC_value=$CC |
765 |
ac_env_CFLAGS_set=${CFLAGS+set} |
766 |
ac_env_CFLAGS_value=$CFLAGS |
767 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
768 |
ac_cv_env_CFLAGS_value=$CFLAGS |
769 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
770 |
ac_env_LDFLAGS_value=$LDFLAGS |
771 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
772 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
773 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
774 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
775 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
776 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
777 |
ac_env_CPP_set=${CPP+set} |
778 |
ac_env_CPP_value=$CPP |
779 |
ac_cv_env_CPP_set=${CPP+set} |
780 |
ac_cv_env_CPP_value=$CPP |
781 |
|
782 |
# |
783 |
# Report the --help message. |
784 |
# |
785 |
if test "$ac_init_help" = "long"; then |
786 |
# Omit some internal or obsolete options to make the list less imposing. |
787 |
# This message is too long to be a string in the A/UX 3.1 sh. |
788 |
cat <<_ACEOF |
789 |
\`configure' configures this package to adapt to many kinds of systems. |
790 |
|
791 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
792 |
|
793 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
794 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
795 |
|
796 |
Defaults for the options are specified in brackets. |
797 |
|
798 |
Configuration: |
799 |
-h, --help display this help and exit |
800 |
--help=short display options specific to this package |
801 |
--help=recursive display the short help of all the included packages |
802 |
-V, --version display version information and exit |
803 |
-q, --quiet, --silent do not print \`checking...' messages |
804 |
--cache-file=FILE cache test results in FILE [disabled] |
805 |
-C, --config-cache alias for \`--cache-file=config.cache' |
806 |
-n, --no-create do not create output files |
807 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
808 |
|
809 |
_ACEOF |
810 |
|
811 |
cat <<_ACEOF |
812 |
Installation directories: |
813 |
--prefix=PREFIX install architecture-independent files in PREFIX |
814 |
[$ac_default_prefix] |
815 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
816 |
[PREFIX] |
817 |
|
818 |
By default, \`make install' will install all the files in |
819 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
820 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
821 |
for instance \`--prefix=\$HOME'. |
822 |
|
823 |
For better control, use the options below. |
824 |
|
825 |
Fine tuning of the installation directories: |
826 |
--bindir=DIR user executables [EPREFIX/bin] |
827 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
828 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
829 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
830 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
831 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
832 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
833 |
--libdir=DIR object code libraries [EPREFIX/lib] |
834 |
--includedir=DIR C header files [PREFIX/include] |
835 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
836 |
--infodir=DIR info documentation [PREFIX/info] |
837 |
--mandir=DIR man documentation [PREFIX/man] |
838 |
_ACEOF |
839 |
|
840 |
cat <<\_ACEOF |
841 |
|
842 |
System types: |
843 |
--build=BUILD configure for building on BUILD [guessed] |
844 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
845 |
--target=TARGET configure for building compilers for TARGET [HOST] |
846 |
_ACEOF |
847 |
fi |
848 |
|
849 |
if test -n "$ac_init_help"; then |
850 |
|
851 |
cat <<\_ACEOF |
852 |
|
853 |
Optional Features: |
854 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
855 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
856 |
--disable-flattened Disable flattened directory structure |
857 |
--enable-multi-platform Use run time multi-platform support |
858 |
|
859 |
--disable-backend-bundle Compile gui backend as a library |
860 |
--enable-import Don't warn about usage of deprecated import directive |
861 |
--disable-move-obsolete Disable moving obsolete dir structure |
862 |
|
863 |
Optional Packages: |
864 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
865 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
866 |
|
867 |
--with-library-combo Define the default library combination |
868 |
|
869 |
--with-tar Set the name of the tar program to use |
870 |
--without-system-root Don't use separate system root directory |
871 |
--with-local-root |
872 |
Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want |
873 |
to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example: |
874 |
--with-local-root=/usr/local/GNUstep/Local |
875 |
|
876 |
--with-network-root |
877 |
Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want |
878 |
to have the GNUSTEP_NETWORK_ROOT directory in a non-standard place. Example: |
879 |
--with-network-root=/usr/local/GNUstep/Network |
880 |
|
881 |
--with-thread-lib Specify alternate thread library |
882 |
|
883 |
Some influential environment variables: |
884 |
CC C compiler command |
885 |
CFLAGS C compiler flags |
886 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
887 |
nonstandard directory <lib dir> |
888 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
889 |
headers in a nonstandard directory <include dir> |
890 |
CPP C preprocessor |
891 |
|
892 |
Use these variables to override the choices made by `configure' or to help |
893 |
it to find libraries and programs with nonstandard names/locations. |
894 |
|
895 |
_ACEOF |
896 |
fi |
897 |
|
898 |
if test "$ac_init_help" = "recursive"; then |
899 |
# If there are subdirs, report their specific --help. |
900 |
ac_popdir=`pwd` |
901 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
902 |
test -d $ac_dir || continue |
903 |
ac_builddir=. |
904 |
|
905 |
if test "$ac_dir" != .; then |
906 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
907 |
# A "../" for each directory in $ac_dir_suffix. |
908 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
909 |
else |
910 |
ac_dir_suffix= ac_top_builddir= |
911 |
fi |
912 |
|
913 |
case $srcdir in |
914 |
.) # No --srcdir option. We are building in place. |
915 |
ac_srcdir=. |
916 |
if test -z "$ac_top_builddir"; then |
917 |
ac_top_srcdir=. |
918 |
else |
919 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
920 |
fi ;; |
921 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
922 |
ac_srcdir=$srcdir$ac_dir_suffix; |
923 |
ac_top_srcdir=$srcdir ;; |
924 |
*) # Relative path. |
925 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
926 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
927 |
esac |
928 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
929 |
# absolute. |
930 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
931 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
932 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
933 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
934 |
|
935 |
cd $ac_dir |
936 |
# Check for guested configure; otherwise get Cygnus style configure. |
937 |
if test -f $ac_srcdir/configure.gnu; then |
938 |
echo |
939 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
940 |
elif test -f $ac_srcdir/configure; then |
941 |
echo |
942 |
$SHELL $ac_srcdir/configure --help=recursive |
943 |
elif test -f $ac_srcdir/configure.ac || |
944 |
test -f $ac_srcdir/configure.in; then |
945 |
echo |
946 |
$ac_configure --help |
947 |
else |
948 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
949 |
fi |
950 |
cd $ac_popdir |
951 |
done |
952 |
fi |
953 |
|
954 |
test -n "$ac_init_help" && exit 0 |
955 |
if $ac_init_version; then |
956 |
cat <<\_ACEOF |
957 |
|
958 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
959 |
Free Software Foundation, Inc. |
960 |
This configure script is free software; the Free Software Foundation |
961 |
gives unlimited permission to copy, distribute and modify it. |
962 |
_ACEOF |
963 |
exit 0 |
964 |
fi |
965 |
exec 5>config.log |
966 |
cat >&5 <<_ACEOF |
967 |
This file contains any messages produced by compilers while |
968 |
running configure, to aid debugging if configure makes a mistake. |
969 |
|
970 |
It was created by $as_me, which was |
971 |
generated by GNU Autoconf 2.57. Invocation command line was |
972 |
|
973 |
$ $0 $@ |
974 |
|
975 |
_ACEOF |
976 |
{ |
977 |
cat <<_ASUNAME |
978 |
## --------- ## |
979 |
## Platform. ## |
980 |
## --------- ## |
981 |
|
982 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
983 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
984 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
985 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
986 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
987 |
|
988 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
989 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
990 |
|
991 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
992 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
993 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
994 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
995 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
996 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
997 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
998 |
|
999 |
_ASUNAME |
1000 |
|
1001 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1002 |
for as_dir in $PATH |
1003 |
do |
1004 |
IFS=$as_save_IFS |
1005 |
test -z "$as_dir" && as_dir=. |
1006 |
echo "PATH: $as_dir" |
1007 |
done |
1008 |
|
1009 |
} >&5 |
1010 |
|
1011 |
cat >&5 <<_ACEOF |
1012 |
|
1013 |
|
1014 |
## ----------- ## |
1015 |
## Core tests. ## |
1016 |
## ----------- ## |
1017 |
|
1018 |
_ACEOF |
1019 |
|
1020 |
|
1021 |
# Keep a trace of the command line. |
1022 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1023 |
# Strip out --silent because we don't want to record it for future runs. |
1024 |
# Also quote any args containing shell meta-characters. |
1025 |
# Make two passes to allow for proper duplicate-argument suppression. |
1026 |
ac_configure_args= |
1027 |
ac_configure_args0= |
1028 |
ac_configure_args1= |
1029 |
ac_sep= |
1030 |
ac_must_keep_next=false |
1031 |
for ac_pass in 1 2 |
1032 |
do |
1033 |
for ac_arg |
1034 |
do |
1035 |
case $ac_arg in |
1036 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1037 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1038 |
| -silent | --silent | --silen | --sile | --sil) |
1039 |
continue ;; |
1040 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1041 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1042 |
esac |
1043 |
case $ac_pass in |
1044 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1045 |
2) |
1046 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1047 |
if test $ac_must_keep_next = true; then |
1048 |
ac_must_keep_next=false # Got value, back to normal. |
1049 |
else |
1050 |
case $ac_arg in |
1051 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1052 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1053 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1054 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1055 |
case "$ac_configure_args0 " in |
1056 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1057 |
esac |
1058 |
;; |
1059 |
-* ) ac_must_keep_next=true ;; |
1060 |
esac |
1061 |
fi |
1062 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1063 |
# Get rid of the leading space. |
1064 |
ac_sep=" " |
1065 |
;; |
1066 |
esac |
1067 |
done |
1068 |
done |
1069 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1070 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1071 |
|
1072 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1073 |
# config.log. We remove comments because anyway the quotes in there |
1074 |
# would cause problems or look ugly. |
1075 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1076 |
# such as our DU 5.0 friend, will then `close' the trap. |
1077 |
trap 'exit_status=$? |
1078 |
# Save into config.log some information that might help in debugging. |
1079 |
{ |
1080 |
echo |
1081 |
|
1082 |
cat <<\_ASBOX |
1083 |
## ---------------- ## |
1084 |
## Cache variables. ## |
1085 |
## ---------------- ## |
1086 |
_ASBOX |
1087 |
echo |
1088 |
# The following way of writing the cache mishandles newlines in values, |
1089 |
{ |
1090 |
(set) 2>&1 | |
1091 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1092 |
*ac_space=\ *) |
1093 |
sed -n \ |
1094 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1095 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1096 |
;; |
1097 |
*) |
1098 |
sed -n \ |
1099 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1100 |
;; |
1101 |
esac; |
1102 |
} |
1103 |
echo |
1104 |
|
1105 |
cat <<\_ASBOX |
1106 |
## ----------------- ## |
1107 |
## Output variables. ## |
1108 |
## ----------------- ## |
1109 |
_ASBOX |
1110 |
echo |
1111 |
for ac_var in $ac_subst_vars |
1112 |
do |
1113 |
eval ac_val=$`echo $ac_var` |
1114 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1115 |
done | sort |
1116 |
echo |
1117 |
|
1118 |
if test -n "$ac_subst_files"; then |
1119 |
cat <<\_ASBOX |
1120 |
## ------------- ## |
1121 |
## Output files. ## |
1122 |
## ------------- ## |
1123 |
_ASBOX |
1124 |
echo |
1125 |
for ac_var in $ac_subst_files |
1126 |
do |
1127 |
eval ac_val=$`echo $ac_var` |
1128 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1129 |
done | sort |
1130 |
echo |
1131 |
fi |
1132 |
|
1133 |
if test -s confdefs.h; then |
1134 |
cat <<\_ASBOX |
1135 |
## ----------- ## |
1136 |
## confdefs.h. ## |
1137 |
## ----------- ## |
1138 |
_ASBOX |
1139 |
echo |
1140 |
sed "/^$/d" confdefs.h | sort |
1141 |
echo |
1142 |
fi |
1143 |
test "$ac_signal" != 0 && |
1144 |
echo "$as_me: caught signal $ac_signal" |
1145 |
echo "$as_me: exit $exit_status" |
1146 |
} >&5 |
1147 |
rm -f core core.* *.core && |
1148 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1149 |
exit $exit_status |
1150 |
' 0 |
1151 |
for ac_signal in 1 2 13 15; do |
1152 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1153 |
done |
1154 |
ac_signal=0 |
1155 |
|
1156 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1157 |
rm -rf conftest* confdefs.h |
1158 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1159 |
echo >confdefs.h |
1160 |
|
1161 |
# Predefined preprocessor variables. |
1162 |
|
1163 |
cat >>confdefs.h <<_ACEOF |
1164 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1165 |
_ACEOF |
1166 |
|
1167 |
|
1168 |
cat >>confdefs.h <<_ACEOF |
1169 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1170 |
_ACEOF |
1171 |
|
1172 |
|
1173 |
cat >>confdefs.h <<_ACEOF |
1174 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1175 |
_ACEOF |
1176 |
|
1177 |
|
1178 |
cat >>confdefs.h <<_ACEOF |
1179 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1180 |
_ACEOF |
1181 |
|
1182 |
|
1183 |
cat >>confdefs.h <<_ACEOF |
1184 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1185 |
_ACEOF |
1186 |
|
1187 |
|
1188 |
# Let the site file select an alternate cache file if it wants to. |
1189 |
# Prefer explicitly selected file to automatically selected ones. |
1190 |
if test -z "$CONFIG_SITE"; then |
1191 |
if test "x$prefix" != xNONE; then |
1192 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1193 |
else |
1194 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1195 |
fi |
1196 |
fi |
1197 |
for ac_site_file in $CONFIG_SITE; do |
1198 |
if test -r "$ac_site_file"; then |
1199 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1200 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1201 |
sed 's/^/| /' "$ac_site_file" >&5 |
1202 |
. "$ac_site_file" |
1203 |
fi |
1204 |
done |
1205 |
|
1206 |
if test -r "$cache_file"; then |
1207 |
# Some versions of bash will fail to source /dev/null (special |
1208 |
# files actually), so we avoid doing that. |
1209 |
if test -f "$cache_file"; then |
1210 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1211 |
echo "$as_me: loading cache $cache_file" >&6;} |
1212 |
case $cache_file in |
1213 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1214 |
*) . ./$cache_file;; |
1215 |
esac |
1216 |
fi |
1217 |
else |
1218 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1219 |
echo "$as_me: creating cache $cache_file" >&6;} |
1220 |
>$cache_file |
1221 |
fi |
1222 |
|
1223 |
# Check that the precious variables saved in the cache have kept the same |
1224 |
# value. |
1225 |
ac_cache_corrupted=false |
1226 |
for ac_var in `(set) 2>&1 | |
1227 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1228 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1229 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1230 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1231 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1232 |
case $ac_old_set,$ac_new_set in |
1233 |
set,) |
1234 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1235 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1236 |
ac_cache_corrupted=: ;; |
1237 |
,set) |
1238 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1239 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1240 |
ac_cache_corrupted=: ;; |
1241 |
,);; |
1242 |
*) |
1243 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1244 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1245 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1246 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1247 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1248 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1249 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1250 |
ac_cache_corrupted=: |
1251 |
fi;; |
1252 |
esac |
1253 |
# Pass precious variables to config.status. |
1254 |
if test "$ac_new_set" = set; then |
1255 |
case $ac_new_val in |
1256 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1257 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1258 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1259 |
esac |
1260 |
case " $ac_configure_args " in |
1261 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1262 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1263 |
esac |
1264 |
fi |
1265 |
done |
1266 |
if $ac_cache_corrupted; then |
1267 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1268 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1269 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1270 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1271 |
{ (exit 1); exit 1; }; } |
1272 |
fi |
1273 |
|
1274 |
ac_ext=c |
1275 |
ac_cpp='$CPP $CPPFLAGS' |
1276 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1277 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1278 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 |
ac_config_headers="$ac_config_headers config.h" |
1300 |
|
1301 |
|
1302 |
#-------------------------------------------------------------------- |
1303 |
# Setup the library combination |
1304 |
#-------------------------------------------------------------------- |
1305 |
targetArgument=${target} |
1306 |
ac_ext=c |
1307 |
ac_cpp='$CPP $CPPFLAGS' |
1308 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1309 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1310 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1311 |
if test -n "$ac_tool_prefix"; then |
1312 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1313 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1314 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1315 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1316 |
if test "${ac_cv_prog_CC+set}" = set; then |
1317 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1318 |
else |
1319 |
if test -n "$CC"; then |
1320 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1321 |
else |
1322 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1323 |
for as_dir in $PATH |
1324 |
do |
1325 |
IFS=$as_save_IFS |
1326 |
test -z "$as_dir" && as_dir=. |
1327 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1328 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1329 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1330 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1331 |
break 2 |
1332 |
fi |
1333 |
done |
1334 |
done |
1335 |
|
1336 |
fi |
1337 |
fi |
1338 |
CC=$ac_cv_prog_CC |
1339 |
if test -n "$CC"; then |
1340 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1341 |
echo "${ECHO_T}$CC" >&6 |
1342 |
else |
1343 |
echo "$as_me:$LINENO: result: no" >&5 |
1344 |
echo "${ECHO_T}no" >&6 |
1345 |
fi |
1346 |
|
1347 |
fi |
1348 |
if test -z "$ac_cv_prog_CC"; then |
1349 |
ac_ct_CC=$CC |
1350 |
# Extract the first word of "gcc", so it can be a program name with args. |
1351 |
set dummy gcc; ac_word=$2 |
1352 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1353 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1354 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1355 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1356 |
else |
1357 |
if test -n "$ac_ct_CC"; then |
1358 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1359 |
else |
1360 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1361 |
for as_dir in $PATH |
1362 |
do |
1363 |
IFS=$as_save_IFS |
1364 |
test -z "$as_dir" && as_dir=. |
1365 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1366 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1367 |
ac_cv_prog_ac_ct_CC="gcc" |
1368 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1369 |
break 2 |
1370 |
fi |
1371 |
done |
1372 |
done |
1373 |
|
1374 |
fi |
1375 |
fi |
1376 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1377 |
if test -n "$ac_ct_CC"; then |
1378 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1379 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1380 |
else |
1381 |
echo "$as_me:$LINENO: result: no" >&5 |
1382 |
echo "${ECHO_T}no" >&6 |
1383 |
fi |
1384 |
|
1385 |
CC=$ac_ct_CC |
1386 |
else |
1387 |
CC="$ac_cv_prog_CC" |
1388 |
fi |
1389 |
|
1390 |
if test -z "$CC"; then |
1391 |
if test -n "$ac_tool_prefix"; then |
1392 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1393 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1394 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1395 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1396 |
if test "${ac_cv_prog_CC+set}" = set; then |
1397 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1398 |
else |
1399 |
if test -n "$CC"; then |
1400 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1401 |
else |
1402 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1403 |
for as_dir in $PATH |
1404 |
do |
1405 |
IFS=$as_save_IFS |
1406 |
test -z "$as_dir" && as_dir=. |
1407 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1408 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1409 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1410 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1411 |
break 2 |
1412 |
fi |
1413 |
done |
1414 |
done |
1415 |
|
1416 |
fi |
1417 |
fi |
1418 |
CC=$ac_cv_prog_CC |
1419 |
if test -n "$CC"; then |
1420 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1421 |
echo "${ECHO_T}$CC" >&6 |
1422 |
else |
1423 |
echo "$as_me:$LINENO: result: no" >&5 |
1424 |
echo "${ECHO_T}no" >&6 |
1425 |
fi |
1426 |
|
1427 |
fi |
1428 |
if test -z "$ac_cv_prog_CC"; then |
1429 |
ac_ct_CC=$CC |
1430 |
# Extract the first word of "cc", so it can be a program name with args. |
1431 |
set dummy cc; ac_word=$2 |
1432 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1433 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1434 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1435 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1436 |
else |
1437 |
if test -n "$ac_ct_CC"; then |
1438 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1439 |
else |
1440 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1441 |
for as_dir in $PATH |
1442 |
do |
1443 |
IFS=$as_save_IFS |
1444 |
test -z "$as_dir" && as_dir=. |
1445 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1446 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1447 |
ac_cv_prog_ac_ct_CC="cc" |
1448 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1449 |
break 2 |
1450 |
fi |
1451 |
done |
1452 |
done |
1453 |
|
1454 |
fi |
1455 |
fi |
1456 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1457 |
if test -n "$ac_ct_CC"; then |
1458 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1459 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1460 |
else |
1461 |
echo "$as_me:$LINENO: result: no" >&5 |
1462 |
echo "${ECHO_T}no" >&6 |
1463 |
fi |
1464 |
|
1465 |
CC=$ac_ct_CC |
1466 |
else |
1467 |
CC="$ac_cv_prog_CC" |
1468 |
fi |
1469 |
|
1470 |
fi |
1471 |
if test -z "$CC"; then |
1472 |
# Extract the first word of "cc", so it can be a program name with args. |
1473 |
set dummy cc; ac_word=$2 |
1474 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1475 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1476 |
if test "${ac_cv_prog_CC+set}" = set; then |
1477 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1478 |
else |
1479 |
if test -n "$CC"; then |
1480 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1481 |
else |
1482 |
ac_prog_rejected=no |
1483 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1484 |
for as_dir in $PATH |
1485 |
do |
1486 |
IFS=$as_save_IFS |
1487 |
test -z "$as_dir" && as_dir=. |
1488 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1489 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1490 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1491 |
ac_prog_rejected=yes |
1492 |
continue |
1493 |
fi |
1494 |
ac_cv_prog_CC="cc" |
1495 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1496 |
break 2 |
1497 |
fi |
1498 |
done |
1499 |
done |
1500 |
|
1501 |
if test $ac_prog_rejected = yes; then |
1502 |
# We found a bogon in the path, so make sure we never use it. |
1503 |
set dummy $ac_cv_prog_CC |
1504 |
shift |
1505 |
if test $# != 0; then |
1506 |
# We chose a different compiler from the bogus one. |
1507 |
# However, it has the same basename, so the bogon will be chosen |
1508 |
# first if we set CC to just the basename; use the full file name. |
1509 |
shift |
1510 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1511 |
fi |
1512 |
fi |
1513 |
fi |
1514 |
fi |
1515 |
CC=$ac_cv_prog_CC |
1516 |
if test -n "$CC"; then |
1517 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1518 |
echo "${ECHO_T}$CC" >&6 |
1519 |
else |
1520 |
echo "$as_me:$LINENO: result: no" >&5 |
1521 |
echo "${ECHO_T}no" >&6 |
1522 |
fi |
1523 |
|
1524 |
fi |
1525 |
if test -z "$CC"; then |
1526 |
if test -n "$ac_tool_prefix"; then |
1527 |
for ac_prog in cl |
1528 |
do |
1529 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1530 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1531 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1532 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1533 |
if test "${ac_cv_prog_CC+set}" = set; then |
1534 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1535 |
else |
1536 |
if test -n "$CC"; then |
1537 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1538 |
else |
1539 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1540 |
for as_dir in $PATH |
1541 |
do |
1542 |
IFS=$as_save_IFS |
1543 |
test -z "$as_dir" && as_dir=. |
1544 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1545 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1546 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1547 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1548 |
break 2 |
1549 |
fi |
1550 |
done |
1551 |
done |
1552 |
|
1553 |
fi |
1554 |
fi |
1555 |
CC=$ac_cv_prog_CC |
1556 |
if test -n "$CC"; then |
1557 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1558 |
echo "${ECHO_T}$CC" >&6 |
1559 |
else |
1560 |
echo "$as_me:$LINENO: result: no" >&5 |
1561 |
echo "${ECHO_T}no" >&6 |
1562 |
fi |
1563 |
|
1564 |
test -n "$CC" && break |
1565 |
done |
1566 |
fi |
1567 |
if test -z "$CC"; then |
1568 |
ac_ct_CC=$CC |
1569 |
for ac_prog in cl |
1570 |
do |
1571 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1572 |
set dummy $ac_prog; ac_word=$2 |
1573 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1574 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1575 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1576 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1577 |
else |
1578 |
if test -n "$ac_ct_CC"; then |
1579 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1580 |
else |
1581 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1582 |
for as_dir in $PATH |
1583 |
do |
1584 |
IFS=$as_save_IFS |
1585 |
test -z "$as_dir" && as_dir=. |
1586 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1587 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1588 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1589 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1590 |
break 2 |
1591 |
fi |
1592 |
done |
1593 |
done |
1594 |
|
1595 |
fi |
1596 |
fi |
1597 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1598 |
if test -n "$ac_ct_CC"; then |
1599 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1600 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1601 |
else |
1602 |
echo "$as_me:$LINENO: result: no" >&5 |
1603 |
echo "${ECHO_T}no" >&6 |
1604 |
fi |
1605 |
|
1606 |
test -n "$ac_ct_CC" && break |
1607 |
done |
1608 |
|
1609 |
CC=$ac_ct_CC |
1610 |
fi |
1611 |
|
1612 |
fi |
1613 |
|
1614 |
|
1615 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1616 |
See \`config.log' for more details." >&5 |
1617 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
1618 |
See \`config.log' for more details." >&2;} |
1619 |
{ (exit 1); exit 1; }; } |
1620 |
|
1621 |
# Provide some information about the compiler. |
1622 |
echo "$as_me:$LINENO:" \ |
1623 |
"checking for C compiler version" >&5 |
1624 |
ac_compiler=`set X $ac_compile; echo $2` |
1625 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1626 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1627 |
ac_status=$? |
1628 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1629 |
(exit $ac_status); } |
1630 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1631 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1632 |
ac_status=$? |
1633 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1634 |
(exit $ac_status); } |
1635 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1636 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1637 |
ac_status=$? |
1638 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1639 |
(exit $ac_status); } |
1640 |
|
1641 |
cat >conftest.$ac_ext <<_ACEOF |
1642 |
#line $LINENO "configure" |
1643 |
/* confdefs.h. */ |
1644 |
_ACEOF |
1645 |
cat confdefs.h >>conftest.$ac_ext |
1646 |
cat >>conftest.$ac_ext <<_ACEOF |
1647 |
/* end confdefs.h. */ |
1648 |
|
1649 |
int |
1650 |
main () |
1651 |
{ |
1652 |
|
1653 |
; |
1654 |
return 0; |
1655 |
} |
1656 |
_ACEOF |
1657 |
ac_clean_files_save=$ac_clean_files |
1658 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1659 |
# Try to create an executable without -o first, disregard a.out. |
1660 |
# It will help us diagnose broken compilers, and finding out an intuition |
1661 |
# of exeext. |
1662 |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
1663 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1664 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1665 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1666 |
(eval $ac_link_default) 2>&5 |
1667 |
ac_status=$? |
1668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1669 |
(exit $ac_status); }; then |
1670 |
# Find the output, starting from the most likely. This scheme is |
1671 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1672 |
# resort. |
1673 |
|
1674 |
# Be careful to initialize this variable, since it used to be cached. |
1675 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1676 |
ac_cv_exeext= |
1677 |
# b.out is created by i960 compilers. |
1678 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1679 |
do |
1680 |
test -f "$ac_file" || continue |
1681 |
case $ac_file in |
1682 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1683 |
;; |
1684 |
conftest.$ac_ext ) |
1685 |
# This is the source file. |
1686 |
;; |
1687 |
[ab].out ) |
1688 |
# We found the default executable, but exeext='' is most |
1689 |
# certainly right. |
1690 |
break;; |
1691 |
*.* ) |
1692 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1693 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1694 |
# but it would be cool to find out if it's true. Does anybody |
1695 |
# maintain Libtool? --akim. |
1696 |
export ac_cv_exeext |
1697 |
break;; |
1698 |
* ) |
1699 |
break;; |
1700 |
esac |
1701 |
done |
1702 |
else |
1703 |
echo "$as_me: failed program was:" >&5 |
1704 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1705 |
|
1706 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1707 |
See \`config.log' for more details." >&5 |
1708 |
echo "$as_me: error: C compiler cannot create executables |
1709 |
See \`config.log' for more details." >&2;} |
1710 |
{ (exit 77); exit 77; }; } |
1711 |
fi |
1712 |
|
1713 |
ac_exeext=$ac_cv_exeext |
1714 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1715 |
echo "${ECHO_T}$ac_file" >&6 |
1716 |
|
1717 |
# Check the compiler produces executables we can run. If not, either |
1718 |
# the compiler is broken, or we cross compile. |
1719 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1720 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1721 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1722 |
# If not cross compiling, check that we can run a simple program. |
1723 |
if test "$cross_compiling" != yes; then |
1724 |
if { ac_try='./$ac_file' |
1725 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1726 |
(eval $ac_try) 2>&5 |
1727 |
ac_status=$? |
1728 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1729 |
(exit $ac_status); }; }; then |
1730 |
cross_compiling=no |
1731 |
else |
1732 |
if test "$cross_compiling" = maybe; then |
1733 |
cross_compiling=yes |
1734 |
else |
1735 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1736 |
If you meant to cross compile, use \`--host'. |
1737 |
See \`config.log' for more details." >&5 |
1738 |
echo "$as_me: error: cannot run C compiled programs. |
1739 |
If you meant to cross compile, use \`--host'. |
1740 |
See \`config.log' for more details." >&2;} |
1741 |
{ (exit 1); exit 1; }; } |
1742 |
fi |
1743 |
fi |
1744 |
fi |
1745 |
echo "$as_me:$LINENO: result: yes" >&5 |
1746 |
echo "${ECHO_T}yes" >&6 |
1747 |
|
1748 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1749 |
ac_clean_files=$ac_clean_files_save |
1750 |
# Check the compiler produces executables we can run. If not, either |
1751 |
# the compiler is broken, or we cross compile. |
1752 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1753 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1754 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1755 |
echo "${ECHO_T}$cross_compiling" >&6 |
1756 |
|
1757 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1758 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1759 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1760 |
(eval $ac_link) 2>&5 |
1761 |
ac_status=$? |
1762 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1763 |
(exit $ac_status); }; then |
1764 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1765 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1766 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1767 |
# `rm'. |
1768 |
for ac_file in conftest.exe conftest conftest.*; do |
1769 |
test -f "$ac_file" || continue |
1770 |
case $ac_file in |
1771 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1772 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1773 |
export ac_cv_exeext |
1774 |
break;; |
1775 |
* ) break;; |
1776 |
esac |
1777 |
done |
1778 |
else |
1779 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1780 |
See \`config.log' for more details." >&5 |
1781 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1782 |
See \`config.log' for more details." >&2;} |
1783 |
{ (exit 1); exit 1; }; } |
1784 |
fi |
1785 |
|
1786 |
rm -f conftest$ac_cv_exeext |
1787 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1788 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
1789 |
|
1790 |
rm -f conftest.$ac_ext |
1791 |
EXEEXT=$ac_cv_exeext |
1792 |
ac_exeext=$EXEEXT |
1793 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1794 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1795 |
if test "${ac_cv_objext+set}" = set; then |
1796 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1797 |
else |
1798 |
cat >conftest.$ac_ext <<_ACEOF |
1799 |
#line $LINENO "configure" |
1800 |
/* confdefs.h. */ |
1801 |
_ACEOF |
1802 |
cat confdefs.h >>conftest.$ac_ext |
1803 |
cat >>conftest.$ac_ext <<_ACEOF |
1804 |
/* end confdefs.h. */ |
1805 |
|
1806 |
int |
1807 |
main () |
1808 |
{ |
1809 |
|
1810 |
; |
1811 |
return 0; |
1812 |
} |
1813 |
_ACEOF |
1814 |
rm -f conftest.o conftest.obj |
1815 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1816 |
(eval $ac_compile) 2>&5 |
1817 |
ac_status=$? |
1818 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1819 |
(exit $ac_status); }; then |
1820 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1821 |
case $ac_file in |
1822 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1823 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1824 |
break;; |
1825 |
esac |
1826 |
done |
1827 |
else |
1828 |
echo "$as_me: failed program was:" >&5 |
1829 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1830 |
|
1831 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1832 |
See \`config.log' for more details." >&5 |
1833 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1834 |
See \`config.log' for more details." >&2;} |
1835 |
{ (exit 1); exit 1; }; } |
1836 |
fi |
1837 |
|
1838 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1839 |
fi |
1840 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1841 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1842 |
OBJEXT=$ac_cv_objext |
1843 |
ac_objext=$OBJEXT |
1844 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1845 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1846 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1847 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1848 |
else |
1849 |
cat >conftest.$ac_ext <<_ACEOF |
1850 |
#line $LINENO "configure" |
1851 |
/* confdefs.h. */ |
1852 |
_ACEOF |
1853 |
cat confdefs.h >>conftest.$ac_ext |
1854 |
cat >>conftest.$ac_ext <<_ACEOF |
1855 |
/* end confdefs.h. */ |
1856 |
|
1857 |
int |
1858 |
main () |
1859 |
{ |
1860 |
#ifndef __GNUC__ |
1861 |
choke me |
1862 |
#endif |
1863 |
|
1864 |
; |
1865 |
return 0; |
1866 |
} |
1867 |
_ACEOF |
1868 |
rm -f conftest.$ac_objext |
1869 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1870 |
(eval $ac_compile) 2>&5 |
1871 |
ac_status=$? |
1872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1873 |
(exit $ac_status); } && |
1874 |
{ ac_try='test -s conftest.$ac_objext' |
1875 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1876 |
(eval $ac_try) 2>&5 |
1877 |
ac_status=$? |
1878 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1879 |
(exit $ac_status); }; }; then |
1880 |
ac_compiler_gnu=yes |
1881 |
else |
1882 |
echo "$as_me: failed program was:" >&5 |
1883 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1884 |
|
1885 |
ac_compiler_gnu=no |
1886 |
fi |
1887 |
rm -f conftest.$ac_objext conftest.$ac_ext |
1888 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
1889 |
|
1890 |
fi |
1891 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1892 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1893 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
1894 |
ac_test_CFLAGS=${CFLAGS+set} |
1895 |
ac_save_CFLAGS=$CFLAGS |
1896 |
CFLAGS="-g" |
1897 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
1898 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1899 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
1900 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1901 |
else |
1902 |
cat >conftest.$ac_ext <<_ACEOF |
1903 |
#line $LINENO "configure" |
1904 |
/* confdefs.h. */ |
1905 |
_ACEOF |
1906 |
cat confdefs.h >>conftest.$ac_ext |
1907 |
cat >>conftest.$ac_ext <<_ACEOF |
1908 |
/* end confdefs.h. */ |
1909 |
|
1910 |
int |
1911 |
main () |
1912 |
{ |
1913 |
|
1914 |
; |
1915 |
return 0; |
1916 |
} |
1917 |
_ACEOF |
1918 |
rm -f conftest.$ac_objext |
1919 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1920 |
(eval $ac_compile) 2>&5 |
1921 |
ac_status=$? |
1922 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1923 |
(exit $ac_status); } && |
1924 |
{ ac_try='test -s conftest.$ac_objext' |
1925 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1926 |
(eval $ac_try) 2>&5 |
1927 |
ac_status=$? |
1928 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1929 |
(exit $ac_status); }; }; then |
1930 |
ac_cv_prog_cc_g=yes |
1931 |
else |
1932 |
echo "$as_me: failed program was:" >&5 |
1933 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1934 |
|
1935 |
ac_cv_prog_cc_g=no |
1936 |
fi |
1937 |
rm -f conftest.$ac_objext conftest.$ac_ext |
1938 |
fi |
1939 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
1940 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
1941 |
if test "$ac_test_CFLAGS" = set; then |
1942 |
CFLAGS=$ac_save_CFLAGS |
1943 |
elif test $ac_cv_prog_cc_g = yes; then |
1944 |
if test "$GCC" = yes; then |
1945 |
CFLAGS="-g -O2" |
1946 |
else |
1947 |
CFLAGS="-g" |
1948 |
fi |
1949 |
else |
1950 |
if test "$GCC" = yes; then |
1951 |
CFLAGS="-O2" |
1952 |
else |
1953 |
CFLAGS= |
1954 |
fi |
1955 |
fi |
1956 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
1957 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
1958 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
1959 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1960 |
else |
1961 |
ac_cv_prog_cc_stdc=no |
1962 |
ac_save_CC=$CC |
1963 |
cat >conftest.$ac_ext <<_ACEOF |
1964 |
#line $LINENO "configure" |
1965 |
/* confdefs.h. */ |
1966 |
_ACEOF |
1967 |
cat confdefs.h >>conftest.$ac_ext |
1968 |
cat >>conftest.$ac_ext <<_ACEOF |
1969 |
/* end confdefs.h. */ |
1970 |
#include <stdarg.h> |
1971 |
#include <stdio.h> |
1972 |
#include <sys/types.h> |
1973 |
#include <sys/stat.h> |
1974 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
1975 |
struct buf { int x; }; |
1976 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
1977 |
static char *e (p, i) |
1978 |
char **p; |
1979 |
int i; |
1980 |
{ |
1981 |
return p[i]; |
1982 |
} |
1983 |
static char *f (char * (*g) (char **, int), char **p, ...) |
1984 |
{ |
1985 |
char *s; |
1986 |
va_list v; |
1987 |
va_start (v,p); |
1988 |
s = g (p, va_arg (v,int)); |
1989 |
va_end (v); |
1990 |
return s; |
1991 |
} |
1992 |
int test (int i, double x); |
1993 |
struct s1 {int (*f) (int a);}; |
1994 |
struct s2 {int (*f) (double a);}; |
1995 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
1996 |
int argc; |
1997 |
char **argv; |
1998 |
int |
1999 |
main () |
2000 |
{ |
2001 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2002 |
; |
2003 |
return 0; |
2004 |
} |
2005 |
_ACEOF |
2006 |
# Don't try gcc -ansi; that turns off useful extensions and |
2007 |
# breaks some systems' header files. |
2008 |
# AIX -qlanglvl=ansi |
2009 |
# Ultrix and OSF/1 -std1 |
2010 |
# HP-UX 10.20 and later -Ae |
2011 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2012 |
# SVR4 -Xc -D__EXTENSIONS__ |
2013 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2014 |
do |
2015 |
CC="$ac_save_CC $ac_arg" |
2016 |
rm -f conftest.$ac_objext |
2017 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2018 |
(eval $ac_compile) 2>&5 |
2019 |
ac_status=$? |
2020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2021 |
(exit $ac_status); } && |
2022 |
{ ac_try='test -s conftest.$ac_objext' |
2023 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2024 |
(eval $ac_try) 2>&5 |
2025 |
ac_status=$? |
2026 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2027 |
(exit $ac_status); }; }; then |
2028 |
ac_cv_prog_cc_stdc=$ac_arg |
2029 |
break |
2030 |
else |
2031 |
echo "$as_me: failed program was:" >&5 |
2032 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2033 |
|
2034 |
fi |
2035 |
rm -f conftest.$ac_objext |
2036 |
done |
2037 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2038 |
CC=$ac_save_CC |
2039 |
|
2040 |
fi |
2041 |
|
2042 |
case "x$ac_cv_prog_cc_stdc" in |
2043 |
x|xno) |
2044 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2045 |
echo "${ECHO_T}none needed" >&6 ;; |
2046 |
*) |
2047 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2048 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2049 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2050 |
esac |
2051 |
|
2052 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2053 |
# in C++ we need to declare it. In case someone uses the same compiler |
2054 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2055 |
# the declaration of exit, since it's the most demanding environment. |
2056 |
cat >conftest.$ac_ext <<_ACEOF |
2057 |
#ifndef __cplusplus |
2058 |
choke me |
2059 |
#endif |
2060 |
_ACEOF |
2061 |
rm -f conftest.$ac_objext |
2062 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2063 |
(eval $ac_compile) 2>&5 |
2064 |
ac_status=$? |
2065 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2066 |
(exit $ac_status); } && |
2067 |
{ ac_try='test -s conftest.$ac_objext' |
2068 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2069 |
(eval $ac_try) 2>&5 |
2070 |
ac_status=$? |
2071 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2072 |
(exit $ac_status); }; }; then |
2073 |
for ac_declaration in \ |
2074 |
''\ |
2075 |
'#include <stdlib.h>' \ |
2076 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2077 |
'extern "C" void std::exit (int); using std::exit;' \ |
2078 |
'extern "C" void exit (int) throw ();' \ |
2079 |
'extern "C" void exit (int);' \ |
2080 |
'void exit (int);' |
2081 |
do |
2082 |
cat >conftest.$ac_ext <<_ACEOF |
2083 |
#line $LINENO "configure" |
2084 |
/* confdefs.h. */ |
2085 |
_ACEOF |
2086 |
cat confdefs.h >>conftest.$ac_ext |
2087 |
cat >>conftest.$ac_ext <<_ACEOF |
2088 |
/* end confdefs.h. */ |
2089 |
#include <stdlib.h> |
2090 |
$ac_declaration |
2091 |
int |
2092 |
main () |
2093 |
{ |
2094 |
exit (42); |
2095 |
; |
2096 |
return 0; |
2097 |
} |
2098 |
_ACEOF |
2099 |
rm -f conftest.$ac_objext |
2100 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2101 |
(eval $ac_compile) 2>&5 |
2102 |
ac_status=$? |
2103 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2104 |
(exit $ac_status); } && |
2105 |
{ ac_try='test -s conftest.$ac_objext' |
2106 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2107 |
(eval $ac_try) 2>&5 |
2108 |
ac_status=$? |
2109 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2110 |
(exit $ac_status); }; }; then |
2111 |
: |
2112 |
else |
2113 |
echo "$as_me: failed program was:" >&5 |
2114 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2115 |
|
2116 |
continue |
2117 |
fi |
2118 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2119 |
cat >conftest.$ac_ext <<_ACEOF |
2120 |
#line $LINENO "configure" |
2121 |
/* confdefs.h. */ |
2122 |
_ACEOF |
2123 |
cat confdefs.h >>conftest.$ac_ext |
2124 |
cat >>conftest.$ac_ext <<_ACEOF |
2125 |
/* end confdefs.h. */ |
2126 |
$ac_declaration |
2127 |
int |
2128 |
main () |
2129 |
{ |
2130 |
exit (42); |
2131 |
; |
2132 |
return 0; |
2133 |
} |
2134 |
_ACEOF |
2135 |
rm -f conftest.$ac_objext |
2136 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2137 |
(eval $ac_compile) 2>&5 |
2138 |
ac_status=$? |
2139 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2140 |
(exit $ac_status); } && |
2141 |
{ ac_try='test -s conftest.$ac_objext' |
2142 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2143 |
(eval $ac_try) 2>&5 |
2144 |
ac_status=$? |
2145 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2146 |
(exit $ac_status); }; }; then |
2147 |
break |
2148 |
else |
2149 |
echo "$as_me: failed program was:" >&5 |
2150 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2151 |
|
2152 |
fi |
2153 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2154 |
done |
2155 |
rm -f conftest* |
2156 |
if test -n "$ac_declaration"; then |
2157 |
echo '#ifdef __cplusplus' >>confdefs.h |
2158 |
echo $ac_declaration >>confdefs.h |
2159 |
echo '#endif' >>confdefs.h |
2160 |
fi |
2161 |
|
2162 |
else |
2163 |
echo "$as_me: failed program was:" >&5 |
2164 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2165 |
|
2166 |
fi |
2167 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2168 |
ac_ext=c |
2169 |
ac_cpp='$CPP $CPPFLAGS' |
2170 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2171 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2172 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2173 |
|
2174 |
ac_ext=c |
2175 |
ac_cpp='$CPP $CPPFLAGS' |
2176 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2177 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2178 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2179 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2180 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2181 |
# On Suns, sometimes $CPP names a directory. |
2182 |
if test -n "$CPP" && test -d "$CPP"; then |
2183 |
CPP= |
2184 |
fi |
2185 |
if test -z "$CPP"; then |
2186 |
if test "${ac_cv_prog_CPP+set}" = set; then |
2187 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2188 |
else |
2189 |
# Double quotes because CPP needs to be expanded |
2190 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
2191 |
do |
2192 |
ac_preproc_ok=false |
2193 |
for ac_c_preproc_warn_flag in '' yes |
2194 |
do |
2195 |
# Use a header file that comes with gcc, so configuring glibc |
2196 |
# with a fresh cross-compiler works. |
2197 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2198 |
# <limits.h> exists even on freestanding compilers. |
2199 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2200 |
# not just through cpp. "Syntax error" is here to catch this case. |
2201 |
cat >conftest.$ac_ext <<_ACEOF |
2202 |
#line $LINENO "configure" |
2203 |
/* confdefs.h. */ |
2204 |
_ACEOF |
2205 |
cat confdefs.h >>conftest.$ac_ext |
2206 |
cat >>conftest.$ac_ext <<_ACEOF |
2207 |
/* end confdefs.h. */ |
2208 |
#ifdef __STDC__ |
2209 |
# include <limits.h> |
2210 |
#else |
2211 |
# include <assert.h> |
2212 |
#endif |
2213 |
Syntax error |
2214 |
_ACEOF |
2215 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2216 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2217 |
ac_status=$? |
2218 |
grep -v '^ *+' conftest.er1 >conftest.err |
2219 |
rm -f conftest.er1 |
2220 |
cat conftest.err >&5 |
2221 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2222 |
(exit $ac_status); } >/dev/null; then |
2223 |
if test -s conftest.err; then |
2224 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2225 |
else |
2226 |
ac_cpp_err= |
2227 |
fi |
2228 |
else |
2229 |
ac_cpp_err=yes |
2230 |
fi |
2231 |
if test -z "$ac_cpp_err"; then |
2232 |
: |
2233 |
else |
2234 |
echo "$as_me: failed program was:" >&5 |
2235 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2236 |
|
2237 |
# Broken: fails on valid input. |
2238 |
continue |
2239 |
fi |
2240 |
rm -f conftest.err conftest.$ac_ext |
2241 |
|
2242 |
# OK, works on sane cases. Now check whether non-existent headers |
2243 |
# can be detected and how. |
2244 |
cat >conftest.$ac_ext <<_ACEOF |
2245 |
#line $LINENO "configure" |
2246 |
/* confdefs.h. */ |
2247 |
_ACEOF |
2248 |
cat confdefs.h >>conftest.$ac_ext |
2249 |
cat >>conftest.$ac_ext <<_ACEOF |
2250 |
/* end confdefs.h. */ |
2251 |
#include <ac_nonexistent.h> |
2252 |
_ACEOF |
2253 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2254 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2255 |
ac_status=$? |
2256 |
grep -v '^ *+' conftest.er1 >conftest.err |
2257 |
rm -f conftest.er1 |
2258 |
cat conftest.err >&5 |
2259 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2260 |
(exit $ac_status); } >/dev/null; then |
2261 |
if test -s conftest.err; then |
2262 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2263 |
else |
2264 |
ac_cpp_err= |
2265 |
fi |
2266 |
else |
2267 |
ac_cpp_err=yes |
2268 |
fi |
2269 |
if test -z "$ac_cpp_err"; then |
2270 |
# Broken: success on invalid input. |
2271 |
continue |
2272 |
else |
2273 |
echo "$as_me: failed program was:" >&5 |
2274 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2275 |
|
2276 |
# Passes both tests. |
2277 |
ac_preproc_ok=: |
2278 |
break |
2279 |
fi |
2280 |
rm -f conftest.err conftest.$ac_ext |
2281 |
|
2282 |
done |
2283 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2284 |
rm -f conftest.err conftest.$ac_ext |
2285 |
if $ac_preproc_ok; then |
2286 |
break |
2287 |
fi |
2288 |
|
2289 |
done |
2290 |
ac_cv_prog_CPP=$CPP |
2291 |
|
2292 |
fi |
2293 |
CPP=$ac_cv_prog_CPP |
2294 |
else |
2295 |
ac_cv_prog_CPP=$CPP |
2296 |
fi |
2297 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
2298 |
echo "${ECHO_T}$CPP" >&6 |
2299 |
ac_preproc_ok=false |
2300 |
for ac_c_preproc_warn_flag in '' yes |
2301 |
do |
2302 |
# Use a header file that comes with gcc, so configuring glibc |
2303 |
# with a fresh cross-compiler works. |
2304 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2305 |
# <limits.h> exists even on freestanding compilers. |
2306 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2307 |
# not just through cpp. "Syntax error" is here to catch this case. |
2308 |
cat >conftest.$ac_ext <<_ACEOF |
2309 |
#line $LINENO "configure" |
2310 |
/* confdefs.h. */ |
2311 |
_ACEOF |
2312 |
cat confdefs.h >>conftest.$ac_ext |
2313 |
cat >>conftest.$ac_ext <<_ACEOF |
2314 |
/* end confdefs.h. */ |
2315 |
#ifdef __STDC__ |
2316 |
# include <limits.h> |
2317 |
#else |
2318 |
# include <assert.h> |
2319 |
#endif |
2320 |
Syntax error |
2321 |
_ACEOF |
2322 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2323 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2324 |
ac_status=$? |
2325 |
grep -v '^ *+' conftest.er1 >conftest.err |
2326 |
rm -f conftest.er1 |
2327 |
cat conftest.err >&5 |
2328 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2329 |
(exit $ac_status); } >/dev/null; then |
2330 |
if test -s conftest.err; then |
2331 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2332 |
else |
2333 |
ac_cpp_err= |
2334 |
fi |
2335 |
else |
2336 |
ac_cpp_err=yes |
2337 |
fi |
2338 |
if test -z "$ac_cpp_err"; then |
2339 |
: |
2340 |
else |
2341 |
echo "$as_me: failed program was:" >&5 |
2342 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2343 |
|
2344 |
# Broken: fails on valid input. |
2345 |
continue |
2346 |
fi |
2347 |
rm -f conftest.err conftest.$ac_ext |
2348 |
|
2349 |
# OK, works on sane cases. Now check whether non-existent headers |
2350 |
# can be detected and how. |
2351 |
cat >conftest.$ac_ext <<_ACEOF |
2352 |
#line $LINENO "configure" |
2353 |
/* confdefs.h. */ |
2354 |
_ACEOF |
2355 |
cat confdefs.h >>conftest.$ac_ext |
2356 |
cat >>conftest.$ac_ext <<_ACEOF |
2357 |
/* end confdefs.h. */ |
2358 |
#include <ac_nonexistent.h> |
2359 |
_ACEOF |
2360 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2361 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2362 |
ac_status=$? |
2363 |
grep -v '^ *+' conftest.er1 >conftest.err |
2364 |
rm -f conftest.er1 |
2365 |
cat conftest.err >&5 |
2366 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2367 |
(exit $ac_status); } >/dev/null; then |
2368 |
if test -s conftest.err; then |
2369 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2370 |
else |
2371 |
ac_cpp_err= |
2372 |
fi |
2373 |
else |
2374 |
ac_cpp_err=yes |
2375 |
fi |
2376 |
if test -z "$ac_cpp_err"; then |
2377 |
# Broken: success on invalid input. |
2378 |
continue |
2379 |
else |
2380 |
echo "$as_me: failed program was:" >&5 |
2381 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2382 |
|
2383 |
# Passes both tests. |
2384 |
ac_preproc_ok=: |
2385 |
break |
2386 |
fi |
2387 |
rm -f conftest.err conftest.$ac_ext |
2388 |
|
2389 |
done |
2390 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2391 |
rm -f conftest.err conftest.$ac_ext |
2392 |
if $ac_preproc_ok; then |
2393 |
: |
2394 |
else |
2395 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2396 |
See \`config.log' for more details." >&5 |
2397 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2398 |
See \`config.log' for more details." >&2;} |
2399 |
{ (exit 1); exit 1; }; } |
2400 |
fi |
2401 |
|
2402 |
ac_ext=c |
2403 |
ac_cpp='$CPP $CPPFLAGS' |
2404 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2405 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2406 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2407 |
|
2408 |
ac_aux_dir= |
2409 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2410 |
if test -f $ac_dir/install-sh; then |
2411 |
ac_aux_dir=$ac_dir |
2412 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2413 |
break |
2414 |
elif test -f $ac_dir/install.sh; then |
2415 |
ac_aux_dir=$ac_dir |
2416 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2417 |
break |
2418 |
elif test -f $ac_dir/shtool; then |
2419 |
ac_aux_dir=$ac_dir |
2420 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2421 |
break |
2422 |
fi |
2423 |
done |
2424 |
if test -z "$ac_aux_dir"; then |
2425 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
2426 |
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
2427 |
{ (exit 1); exit 1; }; } |
2428 |
fi |
2429 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2430 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
2431 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
2432 |
|
2433 |
# Make sure we can run config.sub. |
2434 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
2435 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
2436 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
2437 |
{ (exit 1); exit 1; }; } |
2438 |
|
2439 |
echo "$as_me:$LINENO: checking build system type" >&5 |
2440 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
2441 |
if test "${ac_cv_build+set}" = set; then |
2442 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2443 |
else |
2444 |
ac_cv_build_alias=$build_alias |
2445 |
test -z "$ac_cv_build_alias" && |
2446 |
ac_cv_build_alias=`$ac_config_guess` |
2447 |
test -z "$ac_cv_build_alias" && |
2448 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2449 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2450 |
{ (exit 1); exit 1; }; } |
2451 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2452 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
2453 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
2454 |
{ (exit 1); exit 1; }; } |
2455 |
|
2456 |
fi |
2457 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2458 |
echo "${ECHO_T}$ac_cv_build" >&6 |
2459 |
build=$ac_cv_build |
2460 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2461 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2462 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2463 |
|
2464 |
|
2465 |
echo "$as_me:$LINENO: checking host system type" >&5 |
2466 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
2467 |
if test "${ac_cv_host+set}" = set; then |
2468 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2469 |
else |
2470 |
ac_cv_host_alias=$host_alias |
2471 |
test -z "$ac_cv_host_alias" && |
2472 |
ac_cv_host_alias=$ac_cv_build_alias |
2473 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
2474 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
2475 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
2476 |
{ (exit 1); exit 1; }; } |
2477 |
|
2478 |
fi |
2479 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2480 |
echo "${ECHO_T}$ac_cv_host" >&6 |
2481 |
host=$ac_cv_host |
2482 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2483 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2484 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2485 |
|
2486 |
|
2487 |
echo "$as_me:$LINENO: checking target system type" >&5 |
2488 |
echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
2489 |
if test "${ac_cv_target+set}" = set; then |
2490 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2491 |
else |
2492 |
ac_cv_target_alias=$target_alias |
2493 |
test "x$ac_cv_target_alias" = "x" && |
2494 |
ac_cv_target_alias=$ac_cv_host_alias |
2495 |
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
2496 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
2497 |
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
2498 |
{ (exit 1); exit 1; }; } |
2499 |
|
2500 |
fi |
2501 |
echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2502 |
echo "${ECHO_T}$ac_cv_target" >&6 |
2503 |
target=$ac_cv_target |
2504 |
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2505 |
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2506 |
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2507 |
|
2508 |
|
2509 |
# The aliases save the names the user supplied, while $host etc. |
2510 |
# will get canonicalized. |
2511 |
test -n "$target_alias" && |
2512 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
2513 |
NONENONEs,x,x, && |
2514 |
program_prefix=${target_alias}- |
2515 |
|
2516 |
echo "$as_me:$LINENO: checking for library combo" >&5 |
2517 |
echo $ECHO_N "checking for library combo... $ECHO_C" >&6 |
2518 |
|
2519 |
# Check whether --with-library-combo or --without-library-combo was given. |
2520 |
if test "${with_library_combo+set}" = set; then |
2521 |
withval="$with_library_combo" |
2522 |
ac_cv_library_combo=$withval |
2523 |
else |
2524 |
ac_cv_library_combo=$ac_cv_library_combo |
2525 |
|
2526 |
fi; |
2527 |
|
2528 |
if test "$ac_cv_library_combo" = ""; then |
2529 |
case "$host_os" in |
2530 |
darwin*) ac_cv_library_combo=apple-apple-apple ;; |
2531 |
nextstep4) ac_cv_library_combo=nx-nx-nx ;; |
2532 |
*) ac_cv_library_combo=gnu-gnu-gnu ;; |
2533 |
esac |
2534 |
fi |
2535 |
|
2536 |
case "$ac_cv_library_combo" in |
2537 |
apple) ac_cv_library_combo=apple-apple-apple ;; |
2538 |
gnu) ac_cv_library_combo=gnu-gnu-gnu ;; |
2539 |
nx) ac_cv_library_combo=nx-nx-nx ;; |
2540 |
esac |
2541 |
|
2542 |
|
2543 |
echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5 |
2544 |
echo "${ECHO_T}$ac_cv_library_combo" >&6 |
2545 |
|
2546 |
OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'` |
2547 |
|
2548 |
#-------------------------------------------------------------------- |
2549 |
# specific target_os options |
2550 |
#-------------------------------------------------------------------- |
2551 |
INCLUDE_FLAGS= |
2552 |
case "$target_os" in |
2553 |
freebsd* | openbsd* ) |
2554 |
INCLUDE_FLAGS="$INCLUDE_FLAGS -I/usr/local/include" |
2555 |
LIBS="$LIBS -L/usr/local/lib";; |
2556 |
netbsd*) INCLUDE_FLAGS="$INCLUDE_FLAGS -I/usr/pkg/include" |
2557 |
LIBS="$LIBS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";; |
2558 |
esac |
2559 |
# Save the user supplied CPPFLAGS so we can restore them later. |
2560 |
user_CPPFLAGS="$CPPFLAGS" |
2561 |
# This is just for configuring. Later, in config.make, INCLUDE_FLAGS |
2562 |
# goes in CONFIG_SYSTEM_INCL and the original CPPFLAGS goes in unaltered |
2563 |
CPPFLAGS="$CPPFLAGS $INCLUDE_FLAGS" |
2564 |
|
2565 |
#-------------------------------------------------------------------- |
2566 |
# Determine the host, build, and target systems |
2567 |
#-------------------------------------------------------------------- |
2568 |
case $host_os in |
2569 |
*cygwin* ) CYGWIN=yes;; |
2570 |
*mingw32* ) MINGW32=yes;; |
2571 |
* ) MINGW32=no |
2572 |
CYGWIN=no;; |
2573 |
esac |
2574 |
|
2575 |
|
2576 |
|
2577 |
|
2578 |
if test "$MINGW32" = yes; then |
2579 |
echo "hosted on mingw32 .." |
2580 |
export INSTALL=install |
2581 |
export SHELL=sh |
2582 |
export CC=${CC:-gcc} |
2583 |
export AR=${AR:-ar} |
2584 |
export RANLIB=${RANLIB:-ranlib} |
2585 |
export DLLTOOL=${DLLTOOL:-dlltool} |
2586 |
elif test "$CYGWIN" = yes; then |
2587 |
echo "hosted on cygwin .." |
2588 |
export CC=${CC:-gcc} |
2589 |
export AR=${AR:-ar} |
2590 |
export RANLIB=${RANLIB:-ranlib} |
2591 |
export DLLTOOL=${DLLTOOL:-dlltool} |
2592 |
fi |
2593 |
|
2594 |
#-------------------------------------------------------------------- |
2595 |
# Find the binary and compile tools |
2596 |
#-------------------------------------------------------------------- |
2597 |
if test "x$target" != "x$host"; then |
2598 |
echo "cross compiling from $host to $target .." |
2599 |
cross_compiling="yes" |
2600 |
# Extract the first word of ""${targetArgument}-gcc"", so it can be a program name with args. |
2601 |
set dummy "${targetArgument}-gcc"; ac_word=$2 |
2602 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2603 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2604 |
if test "${ac_cv_prog_CC+set}" = set; then |
2605 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2606 |
else |
2607 |
if test -n "$CC"; then |
2608 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2609 |
else |
2610 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2611 |
for as_dir in $PATH |
2612 |
do |
2613 |
IFS=$as_save_IFS |
2614 |
test -z "$as_dir" && as_dir=. |
2615 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2616 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2617 |
ac_cv_prog_CC=" "${targetArgument}-gcc"" |
2618 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2619 |
break 2 |
2620 |
fi |
2621 |
done |
2622 |
done |
2623 |
|
2624 |
test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc" |
2625 |
fi |
2626 |
fi |
2627 |
CC=$ac_cv_prog_CC |
2628 |
if test -n "$CC"; then |
2629 |
echo "$as_me:$LINENO: result: $CC" >&5 |
2630 |
echo "${ECHO_T}$CC" >&6 |
2631 |
else |
2632 |
echo "$as_me:$LINENO: result: no" >&5 |
2633 |
echo "${ECHO_T}no" >&6 |
2634 |
fi |
2635 |
|
2636 |
# Extract the first word of ""${targetArgument}-ranlib"", so it can be a program name with args. |
2637 |
set dummy "${targetArgument}-ranlib"; ac_word=$2 |
2638 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2639 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2640 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
2641 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2642 |
else |
2643 |
if test -n "$RANLIB"; then |
2644 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2645 |
else |
2646 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2647 |
for as_dir in $PATH |
2648 |
do |
2649 |
IFS=$as_save_IFS |
2650 |
test -z "$as_dir" && as_dir=. |
2651 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2652 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2653 |
ac_cv_prog_RANLIB=" "${targetArgument}-ranlib"" |
2654 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2655 |
break 2 |
2656 |
fi |
2657 |
done |
2658 |
done |
2659 |
|
2660 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib" |
2661 |
fi |
2662 |
fi |
2663 |
RANLIB=$ac_cv_prog_RANLIB |
2664 |
if test -n "$RANLIB"; then |
2665 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2666 |
echo "${ECHO_T}$RANLIB" >&6 |
2667 |
else |
2668 |
echo "$as_me:$LINENO: result: no" >&5 |
2669 |
echo "${ECHO_T}no" >&6 |
2670 |
fi |
2671 |
|
2672 |
# Extract the first word of ""${targetArgument}-ar"", so it can be a program name with args. |
2673 |
set dummy "${targetArgument}-ar"; ac_word=$2 |
2674 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2675 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2676 |
if test "${ac_cv_prog_AR+set}" = set; then |
2677 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2678 |
else |
2679 |
if test -n "$AR"; then |
2680 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
2681 |
else |
2682 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2683 |
for as_dir in $PATH |
2684 |
do |
2685 |
IFS=$as_save_IFS |
2686 |
test -z "$as_dir" && as_dir=. |
2687 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2688 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2689 |
ac_cv_prog_AR=" "${targetArgument}-ar"" |
2690 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2691 |
break 2 |
2692 |
fi |
2693 |
done |
2694 |
done |
2695 |
|
2696 |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
2697 |
fi |
2698 |
fi |
2699 |
AR=$ac_cv_prog_AR |
2700 |
if test -n "$AR"; then |
2701 |
echo "$as_me:$LINENO: result: $AR" >&5 |
2702 |
echo "${ECHO_T}$AR" >&6 |
2703 |
else |
2704 |
echo "$as_me:$LINENO: result: no" >&5 |
2705 |
echo "${ECHO_T}no" >&6 |
2706 |
fi |
2707 |
|
2708 |
# Extract the first word of ""${targetArgument}-dlltool"", so it can be a program name with args. |
2709 |
set dummy "${targetArgument}-dlltool"; ac_word=$2 |
2710 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2711 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2712 |
if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
2713 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2714 |
else |
2715 |
if test -n "$DLLTOOL"; then |
2716 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
2717 |
else |
2718 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2719 |
for as_dir in $PATH |
2720 |
do |
2721 |
IFS=$as_save_IFS |
2722 |
test -z "$as_dir" && as_dir=. |
2723 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2724 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2725 |
ac_cv_prog_DLLTOOL=" "${targetArgument}-dlltool"" |
2726 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2727 |
break 2 |
2728 |
fi |
2729 |
done |
2730 |
done |
2731 |
|
2732 |
test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool" |
2733 |
fi |
2734 |
fi |
2735 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
2736 |
if test -n "$DLLTOOL"; then |
2737 |
echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
2738 |
echo "${ECHO_T}$DLLTOOL" >&6 |
2739 |
else |
2740 |
echo "$as_me:$LINENO: result: no" >&5 |
2741 |
echo "${ECHO_T}no" >&6 |
2742 |
fi |
2743 |
|
2744 |
else |
2745 |
# Extract the first word of "ar", so it can be a program name with args. |
2746 |
set dummy ar; ac_word=$2 |
2747 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2748 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2749 |
if test "${ac_cv_prog_AR+set}" = set; then |
2750 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2751 |
else |
2752 |
if test -n "$AR"; then |
2753 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
2754 |
else |
2755 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2756 |
for as_dir in $PATH |
2757 |
do |
2758 |
IFS=$as_save_IFS |
2759 |
test -z "$as_dir" && as_dir=. |
2760 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2761 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2762 |
ac_cv_prog_AR="ar" |
2763 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2764 |
break 2 |
2765 |
fi |
2766 |
done |
2767 |
done |
2768 |
|
2769 |
fi |
2770 |
fi |
2771 |
AR=$ac_cv_prog_AR |
2772 |
if test -n "$AR"; then |
2773 |
echo "$as_me:$LINENO: result: $AR" >&5 |
2774 |
echo "${ECHO_T}$AR" >&6 |
2775 |
else |
2776 |
echo "$as_me:$LINENO: result: no" >&5 |
2777 |
echo "${ECHO_T}no" >&6 |
2778 |
fi |
2779 |
|
2780 |
# Extract the first word of "dlltool", so it can be a program name with args. |
2781 |
set dummy dlltool; ac_word=$2 |
2782 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2783 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2784 |
if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
2785 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2786 |
else |
2787 |
if test -n "$DLLTOOL"; then |
2788 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
2789 |
else |
2790 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2791 |
for as_dir in $PATH |
2792 |
do |
2793 |
IFS=$as_save_IFS |
2794 |
test -z "$as_dir" && as_dir=. |
2795 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2796 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2797 |
ac_cv_prog_DLLTOOL="dlltool" |
2798 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2799 |
break 2 |
2800 |
fi |
2801 |
done |
2802 |
done |
2803 |
|
2804 |
fi |
2805 |
fi |
2806 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
2807 |
if test -n "$DLLTOOL"; then |
2808 |
echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
2809 |
echo "${ECHO_T}$DLLTOOL" >&6 |
2810 |
else |
2811 |
echo "$as_me:$LINENO: result: no" >&5 |
2812 |
echo "${ECHO_T}no" >&6 |
2813 |
fi |
2814 |
|
2815 |
if test -n "$ac_tool_prefix"; then |
2816 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
2817 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
2818 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2819 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2820 |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
2821 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2822 |
else |
2823 |
if test -n "$RANLIB"; then |
2824 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2825 |
else |
2826 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2827 |
for as_dir in $PATH |
2828 |
do |
2829 |
IFS=$as_save_IFS |
2830 |
test -z "$as_dir" && as_dir=. |
2831 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2832 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2833 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
2834 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2835 |
break 2 |
2836 |
fi |
2837 |
done |
2838 |
done |
2839 |
|
2840 |
fi |
2841 |
fi |
2842 |
RANLIB=$ac_cv_prog_RANLIB |
2843 |
if test -n "$RANLIB"; then |
2844 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2845 |
echo "${ECHO_T}$RANLIB" >&6 |
2846 |
else |
2847 |
echo "$as_me:$LINENO: result: no" >&5 |
2848 |
echo "${ECHO_T}no" >&6 |
2849 |
fi |
2850 |
|
2851 |
fi |
2852 |
if test -z "$ac_cv_prog_RANLIB"; then |
2853 |
ac_ct_RANLIB=$RANLIB |
2854 |
# Extract the first word of "ranlib", so it can be a program name with args. |
2855 |
set dummy ranlib; ac_word=$2 |
2856 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2857 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2858 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2859 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2860 |
else |
2861 |
if test -n "$ac_ct_RANLIB"; then |
2862 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
2863 |
else |
2864 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2865 |
for as_dir in $PATH |
2866 |
do |
2867 |
IFS=$as_save_IFS |
2868 |
test -z "$as_dir" && as_dir=. |
2869 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2870 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2871 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
2872 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2873 |
break 2 |
2874 |
fi |
2875 |
done |
2876 |
done |
2877 |
|
2878 |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
2879 |
fi |
2880 |
fi |
2881 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2882 |
if test -n "$ac_ct_RANLIB"; then |
2883 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
2884 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
2885 |
else |
2886 |
echo "$as_me:$LINENO: result: no" >&5 |
2887 |
echo "${ECHO_T}no" >&6 |
2888 |
fi |
2889 |
|
2890 |
RANLIB=$ac_ct_RANLIB |
2891 |
else |
2892 |
RANLIB="$ac_cv_prog_RANLIB" |
2893 |
fi |
2894 |
|
2895 |
fi |
2896 |
|
2897 |
# Find a good install program. We prefer a C program (faster), |
2898 |
# so one script is as good as another. But avoid the broken or |
2899 |
# incompatible versions: |
2900 |
# SysV /etc/install, /usr/sbin/install |
2901 |
# SunOS /usr/etc/install |
2902 |
# IRIX /sbin/install |
2903 |
# AIX /bin/install |
2904 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2905 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2906 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2907 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2908 |
# ./install, which can be erroneously created by make from ./install.sh. |
2909 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2910 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
2911 |
if test -z "$INSTALL"; then |
2912 |
if test "${ac_cv_path_install+set}" = set; then |
2913 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2914 |
else |
2915 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2916 |
for as_dir in $PATH |
2917 |
do |
2918 |
IFS=$as_save_IFS |
2919 |
test -z "$as_dir" && as_dir=. |
2920 |
# Account for people who put trailing slashes in PATH elements. |
2921 |
case $as_dir/ in |
2922 |
./ | .// | /cC/* | \ |
2923 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2924 |
/usr/ucb/* ) ;; |
2925 |
*) |
2926 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2927 |
# Don't use installbsd from OSF since it installs stuff as root |
2928 |
# by default. |
2929 |
for ac_prog in ginstall scoinst install; do |
2930 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2931 |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2932 |
if test $ac_prog = install && |
2933 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2934 |
# AIX install. It has an incompatible calling convention. |
2935 |
: |
2936 |
elif test $ac_prog = install && |
2937 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2938 |
# program-specific install script used by HP pwplus--don't use. |
2939 |
: |
2940 |
else |
2941 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2942 |
break 3 |
2943 |
fi |
2944 |
fi |
2945 |
done |
2946 |
done |
2947 |
;; |
2948 |
esac |
2949 |
done |
2950 |
|
2951 |
|
2952 |
fi |
2953 |
if test "${ac_cv_path_install+set}" = set; then |
2954 |
INSTALL=$ac_cv_path_install |
2955 |
else |
2956 |
# As a last resort, use the slow shell script. We don't cache a |
2957 |
# path for INSTALL within a source directory, because that will |
2958 |
# break other packages using the cache if that directory is |
2959 |
# removed, or if the path is relative. |
2960 |
INSTALL=$ac_install_sh |
2961 |
fi |
2962 |
fi |
2963 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2964 |
echo "${ECHO_T}$INSTALL" >&6 |
2965 |
|
2966 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2967 |
# It thinks the first close brace ends the variable substitution. |
2968 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2969 |
|
2970 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2971 |
|
2972 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2973 |
|
2974 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2975 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
2976 |
LN_S=$as_ln_s |
2977 |
if test "$LN_S" = "ln -s"; then |
2978 |
echo "$as_me:$LINENO: result: yes" >&5 |
2979 |
echo "${ECHO_T}yes" >&6 |
2980 |
else |
2981 |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2982 |
echo "${ECHO_T}no, using $LN_S" >&6 |
2983 |
fi |
2984 |
|
2985 |
|
2986 |
for ac_prog in gnutar gtar |
2987 |
do |
2988 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2989 |
set dummy $ac_prog; ac_word=$2 |
2990 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2991 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2992 |
if test "${ac_cv_prog_TAR+set}" = set; then |
2993 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2994 |
else |
2995 |
if test -n "$TAR"; then |
2996 |
ac_cv_prog_TAR="$TAR" # Let the user override the test. |
2997 |
else |
2998 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2999 |
for as_dir in $PATH |
3000 |
do |
3001 |
IFS=$as_save_IFS |
3002 |
test -z "$as_dir" && as_dir=. |
3003 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3004 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3005 |
ac_cv_prog_TAR="$ac_prog" |
3006 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3007 |
break 2 |
3008 |
fi |
3009 |
done |
3010 |
done |
3011 |
|
3012 |
fi |
3013 |
fi |
3014 |
TAR=$ac_cv_prog_TAR |
3015 |
if test -n "$TAR"; then |
3016 |
echo "$as_me:$LINENO: result: $TAR" >&5 |
3017 |
echo "${ECHO_T}$TAR" >&6 |
3018 |
else |
3019 |
echo "$as_me:$LINENO: result: no" >&5 |
3020 |
echo "${ECHO_T}no" >&6 |
3021 |
fi |
3022 |
|
3023 |
test -n "$TAR" && break |
3024 |
done |
3025 |
test -n "$TAR" || TAR="tar" |
3026 |
|
3027 |
|
3028 |
# Check whether --with-tar or --without-tar was given. |
3029 |
if test "${with_tar+set}" = set; then |
3030 |
withval="$with_tar" |
3031 |
TAR="$withval" |
3032 |
fi; |
3033 |
|
3034 |
# Extract the first word of "chown", so it can be a program name with args. |
3035 |
set dummy chown; ac_word=$2 |
3036 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3037 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3038 |
if test "${ac_cv_prog_CHOWN+set}" = set; then |
3039 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3040 |
else |
3041 |
if test -n "$CHOWN"; then |
3042 |
ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test. |
3043 |
else |
3044 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3045 |
for as_dir in $PATH |
3046 |
do |
3047 |
IFS=$as_save_IFS |
3048 |
test -z "$as_dir" && as_dir=. |
3049 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3050 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3051 |
ac_cv_prog_CHOWN="chown" |
3052 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3053 |
break 2 |
3054 |
fi |
3055 |
done |
3056 |
done |
3057 |
|
3058 |
test -z "$ac_cv_prog_CHOWN" && ac_cv_prog_CHOWN="none" |
3059 |
fi |
3060 |
fi |
3061 |
CHOWN=$ac_cv_prog_CHOWN |
3062 |
if test -n "$CHOWN"; then |
3063 |
echo "$as_me:$LINENO: result: $CHOWN" >&5 |
3064 |
echo "${ECHO_T}$CHOWN" >&6 |
3065 |
else |
3066 |
echo "$as_me:$LINENO: result: no" >&5 |
3067 |
echo "${ECHO_T}no" >&6 |
3068 |
fi |
3069 |
|
3070 |
if test "$MINGW32" = no; then |
3071 |
if test "$CHOWN" = "none"; then |
3072 |
{ { echo "$as_me:$LINENO: error: \"Could not find chown.\"" >&5 |
3073 |
echo "$as_me: error: \"Could not find chown.\"" >&2;} |
3074 |
{ (exit 1); exit 1; }; }; |
3075 |
fi |
3076 |
fi |
3077 |
|
3078 |
#------------------------------------------------------------------- |
3079 |
# GNUstep specific options follow |
3080 |
#------------------------------------------------------------------- |
3081 |
|
3082 |
#-------------------------------------------------------------------- |
3083 |
# The GNUstep root directory. |
3084 |
# The user should have the GNUSTEP_SYSTEM_ROOT environment variable |
3085 |
# defined, but if not then we have a global default. |
3086 |
# Also test for the C: directory, which means we're on Windows |
3087 |
#-------------------------------------------------------------------- |
3088 |
echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5 |
3089 |
echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6 |
3090 |
|
3091 |
if test "x$prefix" = "xNONE"; then |
3092 |
prefix="$ac_default_prefix" ; |
3093 |
fi |
3094 |
|
3095 |
# Check whether --with-system-root or --without-system-root was given. |
3096 |
if test "${with_system_root+set}" = set; then |
3097 |
withval="$with_system_root" |
3098 |
ac_cv_system_root="$withval" |
3099 |
else |
3100 |
ac_cv_system_root=yes |
3101 |
fi; |
3102 |
|
3103 |
GNUSTEP_ROOT="$prefix" |
3104 |
root_prefix='${prefix}' |
3105 |
if test $ac_cv_system_root = yes; then |
3106 |
if test "x`basename $prefix`" = xSystem; then |
3107 |
GNUSTEP_ROOT=`dirname $prefix` |
3108 |
else |
3109 |
if test "x$prefix" = "x/"; then |
3110 |
prefix=/System |
3111 |
else |
3112 |
prefix="$prefix/System" |
3113 |
fi |
3114 |
fi |
3115 |
root_prefix='${prefix}/..' |
3116 |
fi |
3117 |
|
3118 |
|
3119 |
echo "$as_me:$LINENO: result: $prefix" >&5 |
3120 |
echo "${ECHO_T}$prefix" >&6 |
3121 |
|
3122 |
# Makefiles directory location is in a bit of flux now. To keep the |
3123 |
# Makefiles dir in the previous location, reset this variable to |
3124 |
# 'Makefiles' and regenerate configure. Note this doesn't change all |
3125 |
# occurances. |
3126 |
MAKEFILES_SUFFIX=Library/Makefiles |
3127 |
|
3128 |
|
3129 |
# HOST_INSTALL is the name of the install program in config.make so set it up |
3130 |
# to point to the install-sh script in the GNUstep tree if no system install is |
3131 |
# found. |
3132 |
|
3133 |
if test "$INSTALL" = "$ac_install_sh"; then |
3134 |
HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL" |
3135 |
else |
3136 |
HOST_INSTALL="$INSTALL" |
3137 |
fi |
3138 |
|
3139 |
#-------------------------------------------------------------------- |
3140 |
# Process --with-defaults-root, --with-user-root, |
3141 |
# --with-local-root and --with-network-root |
3142 |
#-------------------------------------------------------------------- |
3143 |
echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5 |
3144 |
echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6 |
3145 |
|
3146 |
# Check whether --with-local-root or --without-local-root was given. |
3147 |
if test "${with_local_root+set}" = set; then |
3148 |
withval="$with_local_root" |
3149 |
GNUSTEP_LOCAL_ROOT="$withval" |
3150 |
else |
3151 |
GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local" |
3152 |
|
3153 |
fi; |
3154 |
echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5 |
3155 |
echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6 |
3156 |
|
3157 |
echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5 |
3158 |
echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6 |
3159 |
|
3160 |
# Check whether --with-network-root or --without-network-root was given. |
3161 |
if test "${with_network_root+set}" = set; then |
3162 |
withval="$with_network_root" |
3163 |
GNUSTEP_NETWORK_ROOT="$withval" |
3164 |
else |
3165 |
GNUSTEP_NETWORK_ROOT="$GNUSTEP_ROOT/Network" |
3166 |
|
3167 |
fi; |
3168 |
echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5 |
3169 |
echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6 |
3170 |
|
3171 |
|
3172 |
|
3173 |
|
3174 |
#-------------------------------------------------------------------- |
3175 |
# Is the system flattened? |
3176 |
#-------------------------------------------------------------------- |
3177 |
echo "$as_me:$LINENO: checking for flattened directory structure" >&5 |
3178 |
echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6 |
3179 |
# Check whether --enable-flattened or --disable-flattened was given. |
3180 |
if test "${enable_flattened+set}" = set; then |
3181 |
enableval="$enable_flattened" |
3182 |
ac_cv_flattened=$enableval |
3183 |
else |
3184 |
ac_cv_flattened="undefined" |
3185 |
fi; |
3186 |
|
3187 |
if test "$ac_cv_flattened" = "no"; then |
3188 |
GNUSTEP_FLATTENED=; |
3189 |
else |
3190 |
GNUSTEP_FLATTENED=yes; |
3191 |
fi |
3192 |
|
3193 |
|
3194 |
if test "$GNUSTEP_FLATTENED" = "yes"; then |
3195 |
echo "$as_me:$LINENO: result: yes" >&5 |
3196 |
echo "${ECHO_T}yes" >&6; |
3197 |
else |
3198 |
echo "$as_me:$LINENO: result: no" >&5 |
3199 |
echo "${ECHO_T}no" >&6; |
3200 |
fi |
3201 |
|
3202 |
|
3203 |
#-------------------------------------------------------------------- |
3204 |
# Is the system multi-platform? |
3205 |
#-------------------------------------------------------------------- |
3206 |
# |
3207 |
# Multi-platform means that GNUstep.sh will determine the host |
3208 |
# platform (by running config.guess) each time that it is sourced. |
3209 |
# This is good if you are sharing your GNUstep.sh across your network |
3210 |
# (for example, mounting the makefiles via NFS), but it requires you |
3211 |
# to be able to run config.guess on your machine(s), which usually |
3212 |
# requires a development environment (compiler, libc etc). |
3213 |
# |
3214 |
# The default instead is not using multi-platform, which means the |
3215 |
# local host os, cpu and version is hardcoded in GNUstep.sh. This |
3216 |
# works nicely for a single machine using this gnustep-make |
3217 |
# installation, and it works even if you don't have development |
3218 |
# packages (gcc, binutils, libc-dev etc) installed. We had to make |
3219 |
# this the default after end-users (with no development packages |
3220 |
# installed) complained that binary packages wouldn't work (and the |
3221 |
# reason turned out to be that GNUstep.sh was running config.guess |
3222 |
# which was returning the wrong platform because the development |
3223 |
# tools needed/used to determine the platform were not available). |
3224 |
# |
3225 |
# Unless you know what you are doing, stick with the default, which is |
3226 |
# also much faster when sourcing GNUstep.sh. |
3227 |
# |
3228 |
# Check whether --enable-multi-platform or --disable-multi-platform was given. |
3229 |
if test "${enable_multi_platform+set}" = set; then |
3230 |
enableval="$enable_multi_platform" |
3231 |
ac_cv_multi_platform=$enableval |
3232 |
else |
3233 |
ac_cv_multi_platform="undefined" |
3234 |
fi; |
3235 |
|
3236 |
if test "$ac_cv_multi_platform" = "yes"; then |
3237 |
GNUSTEP_MULTI_PLATFORM=yes; |
3238 |
else |
3239 |
GNUSTEP_MULTI_PLATFORM=; |
3240 |
fi |
3241 |
|
3242 |
|
3243 |
#-------------------------------------------------------------------- |
3244 |
# Build backend bundles (on by default) |
3245 |
#-------------------------------------------------------------------- |
3246 |
# Check whether --enable-backend-bundle or --disable-backend-bundle was given. |
3247 |
if test "${enable_backend_bundle+set}" = set; then |
3248 |
enableval="$enable_backend_bundle" |
3249 |
ac_cv_backend=$enableval |
3250 |
else |
3251 |
ac_cv_backend="yes" |
3252 |
fi; |
3253 |
|
3254 |
if test "$ac_cv_backend" = "yes"; then |
3255 |
BACKEND_BUNDLE=yes; |
3256 |
else |
3257 |
BACKEND_BUNDLE=; |
3258 |
fi |
3259 |
|
3260 |
|
3261 |
#-------------------------------------------------------------------- |
3262 |
# Miscellaneous flags and setup |
3263 |
#-------------------------------------------------------------------- |
3264 |
# Strip '-g' off of CFLAGS, since debug=yes adds that anyway |
3265 |
CFLAGS=`echo $CFLAGS | sed -e 's/-g //'` |
3266 |
|
3267 |
# Set location of GNUstep dirs for later use |
3268 |
if test "$GNUSTEP_FLATTENED" = yes; then |
3269 |
GNUSTEP_LDIR="$prefix/Library/Libraries" |
3270 |
GNUSTEP_HDIR="$prefix/Library/Headers" |
3271 |
else |
3272 |
clean_target_os=`$srcdir/clean_os.sh $target_os` |
3273 |
clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu` |
3274 |
obj_dir="$clean_target_cpu/$clean_target_os" |
3275 |
GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir" |
3276 |
GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}" |
3277 |
fi |
3278 |
|
3279 |
# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT. |
3280 |
# If so, there are probably other libraries that we want there also, so |
3281 |
# leave the proper includes in CPPFLAGS and LDFLAGS |
3282 |
echo "$as_me:$LINENO: checking for custom shared objc library" >&5 |
3283 |
echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6 |
3284 |
if test "${gs_cv_objc_libdir+set}" = set; then |
3285 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3286 |
else |
3287 |
gs_cv_objc_libdir=NONE |
3288 |
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then |
3289 |
if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so"; then |
3290 |
gs_cv_objc_libdir="$GNUSTEP_LDIR" |
3291 |
else |
3292 |
gs_cv_objc_libdir=NONE |
3293 |
fi |
3294 |
fi |
3295 |
#gcc_shared_libobjc=`gcc -print-file-name=libobjc.so` |
3296 |
#if test -f "$gcc_shared_libobjc"; then |
3297 |
# gs_cv_objc_libdir=`dirname $gcc_shared_libobjc` |
3298 |
#fi |
3299 |
|
3300 |
fi |
3301 |
|
3302 |
echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5 |
3303 |
echo "${ECHO_T}$gs_cv_objc_libdir" >&6 |
3304 |
|
3305 |
# The following are needed to compile the test programs |
3306 |
if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then |
3307 |
if test "$GNUSTEP_FLATTENED" = yes; then |
3308 |
OBJC_CPPFLAGS="$INCLUDE_FLAGS -I$prefix/Library/Headers" |
3309 |
else |
3310 |
OBJC_CPPFLAGS="$INCLUDE_FLAGS -I$prefix/Library/Headers/${ac_cv_library_combo}" |
3311 |
fi |
3312 |
OBJC_LDFLAGS="$LDFLAGS -L$gs_cv_objc_libdir" |
3313 |
fi |
3314 |
|
3315 |
# And the following to execute them |
3316 |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gs_cv_objc_libdir" |
3317 |
export LD_LIBRARY_PATH |
3318 |
|
3319 |
#-------------------------------------------------------------------- |
3320 |
# Miscellaneous headers (only used for compiling which_lib.c and user_home.c) |
3321 |
#-------------------------------------------------------------------- |
3322 |
|
3323 |
|
3324 |
|
3325 |
|
3326 |
|
3327 |
|
3328 |
ac_header_dirent=no |
3329 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
3330 |
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3331 |
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
3332 |
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
3333 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3334 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3335 |
else |
3336 |
cat >conftest.$ac_ext <<_ACEOF |
3337 |
#line $LINENO "configure" |
3338 |
/* confdefs.h. */ |
3339 |
_ACEOF |
3340 |
cat confdefs.h >>conftest.$ac_ext |
3341 |
cat >>conftest.$ac_ext <<_ACEOF |
3342 |
/* end confdefs.h. */ |
3343 |
#include <sys/types.h> |
3344 |
#include <$ac_hdr> |
3345 |
|
3346 |
int |
3347 |
main () |
3348 |
{ |
3349 |
if ((DIR *) 0) |
3350 |
return 0; |
3351 |
; |
3352 |
return 0; |
3353 |
} |
3354 |
_ACEOF |
3355 |
rm -f conftest.$ac_objext |
3356 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3357 |
(eval $ac_compile) 2>&5 |
3358 |
ac_status=$? |
3359 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3360 |
(exit $ac_status); } && |
3361 |
{ ac_try='test -s conftest.$ac_objext' |
3362 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3363 |
(eval $ac_try) 2>&5 |
3364 |
ac_status=$? |
3365 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3366 |
(exit $ac_status); }; }; then |
3367 |
eval "$as_ac_Header=yes" |
3368 |
else |
3369 |
echo "$as_me: failed program was:" >&5 |
3370 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3371 |
|
3372 |
eval "$as_ac_Header=no" |
3373 |
fi |
3374 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3375 |
fi |
3376 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3377 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3378 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3379 |
cat >>confdefs.h <<_ACEOF |
3380 |
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
3381 |
_ACEOF |
3382 |
|
3383 |
ac_header_dirent=$ac_hdr; break |
3384 |
fi |
3385 |
|
3386 |
done |
3387 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
3388 |
if test $ac_header_dirent = dirent.h; then |
3389 |
echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3390 |
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
3391 |
if test "${ac_cv_search_opendir+set}" = set; then |
3392 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3393 |
else |
3394 |
ac_func_search_save_LIBS=$LIBS |
3395 |
ac_cv_search_opendir=no |
3396 |
cat >conftest.$ac_ext <<_ACEOF |
3397 |
#line $LINENO "configure" |
3398 |
/* confdefs.h. */ |
3399 |
_ACEOF |
3400 |
cat confdefs.h >>conftest.$ac_ext |
3401 |
cat >>conftest.$ac_ext <<_ACEOF |
3402 |
/* end confdefs.h. */ |
3403 |
|
3404 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3405 |
#ifdef __cplusplus |
3406 |
extern "C" |
3407 |
#endif |
3408 |
/* We use char because int might match the return type of a gcc2 |
3409 |
builtin and then its argument prototype would still apply. */ |
3410 |
char opendir (); |
3411 |
int |
3412 |
main () |
3413 |
{ |
3414 |
opendir (); |
3415 |
; |
3416 |
return 0; |
3417 |
} |
3418 |
_ACEOF |
3419 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3420 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3421 |
(eval $ac_link) 2>&5 |
3422 |
ac_status=$? |
3423 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3424 |
(exit $ac_status); } && |
3425 |
{ ac_try='test -s conftest$ac_exeext' |
3426 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3427 |
(eval $ac_try) 2>&5 |
3428 |
ac_status=$? |
3429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3430 |
(exit $ac_status); }; }; then |
3431 |
ac_cv_search_opendir="none required" |
3432 |
else |
3433 |
echo "$as_me: failed program was:" >&5 |
3434 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3435 |
|
3436 |
fi |
3437 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3438 |
if test "$ac_cv_search_opendir" = no; then |
3439 |
for ac_lib in dir; do |
3440 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3441 |
cat >conftest.$ac_ext <<_ACEOF |
3442 |
#line $LINENO "configure" |
3443 |
/* confdefs.h. */ |
3444 |
_ACEOF |
3445 |
cat confdefs.h >>conftest.$ac_ext |
3446 |
cat >>conftest.$ac_ext <<_ACEOF |
3447 |
/* end confdefs.h. */ |
3448 |
|
3449 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3450 |
#ifdef __cplusplus |
3451 |
extern "C" |
3452 |
#endif |
3453 |
/* We use char because int might match the return type of a gcc2 |
3454 |
builtin and then its argument prototype would still apply. */ |
3455 |
char opendir (); |
3456 |
int |
3457 |
main () |
3458 |
{ |
3459 |
opendir (); |
3460 |
; |
3461 |
return 0; |
3462 |
} |
3463 |
_ACEOF |
3464 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3465 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3466 |
(eval $ac_link) 2>&5 |
3467 |
ac_status=$? |
3468 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3469 |
(exit $ac_status); } && |
3470 |
{ ac_try='test -s conftest$ac_exeext' |
3471 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3472 |
(eval $ac_try) 2>&5 |
3473 |
ac_status=$? |
3474 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3475 |
(exit $ac_status); }; }; then |
3476 |
ac_cv_search_opendir="-l$ac_lib" |
3477 |
break |
3478 |
else |
3479 |
echo "$as_me: failed program was:" >&5 |
3480 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3481 |
|
3482 |
fi |
3483 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3484 |
done |
3485 |
fi |
3486 |
LIBS=$ac_func_search_save_LIBS |
3487 |
fi |
3488 |
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3489 |
echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
3490 |
if test "$ac_cv_search_opendir" != no; then |
3491 |
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
3492 |
|
3493 |
fi |
3494 |
|
3495 |
else |
3496 |
echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3497 |
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
3498 |
if test "${ac_cv_search_opendir+set}" = set; then |
3499 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3500 |
else |
3501 |
ac_func_search_save_LIBS=$LIBS |
3502 |
ac_cv_search_opendir=no |
3503 |
cat >conftest.$ac_ext <<_ACEOF |
3504 |
#line $LINENO "configure" |
3505 |
/* confdefs.h. */ |
3506 |
_ACEOF |
3507 |
cat confdefs.h >>conftest.$ac_ext |
3508 |
cat >>conftest.$ac_ext <<_ACEOF |
3509 |
/* end confdefs.h. */ |
3510 |
|
3511 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3512 |
#ifdef __cplusplus |
3513 |
extern "C" |
3514 |
#endif |
3515 |
/* We use char because int might match the return type of a gcc2 |
3516 |
builtin and then its argument prototype would still apply. */ |
3517 |
char opendir (); |
3518 |
int |
3519 |
main () |
3520 |
{ |
3521 |
opendir (); |
3522 |
; |
3523 |
return 0; |
3524 |
} |
3525 |
_ACEOF |
3526 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3527 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3528 |
(eval $ac_link) 2>&5 |
3529 |
ac_status=$? |
3530 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3531 |
(exit $ac_status); } && |
3532 |
{ ac_try='test -s conftest$ac_exeext' |
3533 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3534 |
(eval $ac_try) 2>&5 |
3535 |
ac_status=$? |
3536 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3537 |
(exit $ac_status); }; }; then |
3538 |
ac_cv_search_opendir="none required" |
3539 |
else |
3540 |
echo "$as_me: failed program was:" >&5 |
3541 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3542 |
|
3543 |
fi |
3544 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3545 |
if test "$ac_cv_search_opendir" = no; then |
3546 |
for ac_lib in x; do |
3547 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3548 |
cat >conftest.$ac_ext <<_ACEOF |
3549 |
#line $LINENO "configure" |
3550 |
/* confdefs.h. */ |
3551 |
_ACEOF |
3552 |
cat confdefs.h >>conftest.$ac_ext |
3553 |
cat >>conftest.$ac_ext <<_ACEOF |
3554 |
/* end confdefs.h. */ |
3555 |
|
3556 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3557 |
#ifdef __cplusplus |
3558 |
extern "C" |
3559 |
#endif |
3560 |
/* We use char because int might match the return type of a gcc2 |
3561 |
builtin and then its argument prototype would still apply. */ |
3562 |
char opendir (); |
3563 |
int |
3564 |
main () |
3565 |
{ |
3566 |
opendir (); |
3567 |
; |
3568 |
return 0; |
3569 |
} |
3570 |
_ACEOF |
3571 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3572 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3573 |
(eval $ac_link) 2>&5 |
3574 |
ac_status=$? |
3575 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3576 |
(exit $ac_status); } && |
3577 |
{ ac_try='test -s conftest$ac_exeext' |
3578 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3579 |
(eval $ac_try) 2>&5 |
3580 |
ac_status=$? |
3581 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3582 |
(exit $ac_status); }; }; then |
3583 |
ac_cv_search_opendir="-l$ac_lib" |
3584 |
break |
3585 |
else |
3586 |
echo "$as_me: failed program was:" >&5 |
3587 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3588 |
|
3589 |
fi |
3590 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3591 |
done |
3592 |
fi |
3593 |
LIBS=$ac_func_search_save_LIBS |
3594 |
fi |
3595 |
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3596 |
echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
3597 |
if test "$ac_cv_search_opendir" != no; then |
3598 |
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
3599 |
|
3600 |
fi |
3601 |
|
3602 |
fi |
3603 |
|
3604 |
|
3605 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
3606 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3607 |
if test "${ac_cv_prog_egrep+set}" = set; then |
3608 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3609 |
else |
3610 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3611 |
then ac_cv_prog_egrep='grep -E' |
3612 |
else ac_cv_prog_egrep='egrep' |
3613 |
fi |
3614 |
fi |
3615 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3616 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3617 |
EGREP=$ac_cv_prog_egrep |
3618 |
|
3619 |
|
3620 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3621 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3622 |
if test "${ac_cv_header_stdc+set}" = set; then |
3623 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3624 |
else |
3625 |
cat >conftest.$ac_ext <<_ACEOF |
3626 |
#line $LINENO "configure" |
3627 |
/* confdefs.h. */ |
3628 |
_ACEOF |
3629 |
cat confdefs.h >>conftest.$ac_ext |
3630 |
cat >>conftest.$ac_ext <<_ACEOF |
3631 |
/* end confdefs.h. */ |
3632 |
#include <stdlib.h> |
3633 |
#include <stdarg.h> |
3634 |
#include <string.h> |
3635 |
#include <float.h> |
3636 |
|
3637 |
int |
3638 |
main () |
3639 |
{ |
3640 |
|
3641 |
; |
3642 |
return 0; |
3643 |
} |
3644 |
_ACEOF |
3645 |
rm -f conftest.$ac_objext |
3646 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3647 |
(eval $ac_compile) 2>&5 |
3648 |
ac_status=$? |
3649 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3650 |
(exit $ac_status); } && |
3651 |
{ ac_try='test -s conftest.$ac_objext' |
3652 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3653 |
(eval $ac_try) 2>&5 |
3654 |
ac_status=$? |
3655 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3656 |
(exit $ac_status); }; }; then |
3657 |
ac_cv_header_stdc=yes |
3658 |
else |
3659 |
echo "$as_me: failed program was:" >&5 |
3660 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3661 |
|
3662 |
ac_cv_header_stdc=no |
3663 |
fi |
3664 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3665 |
|
3666 |
if test $ac_cv_header_stdc = yes; then |
3667 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3668 |
cat >conftest.$ac_ext <<_ACEOF |
3669 |
#line $LINENO "configure" |
3670 |
/* confdefs.h. */ |
3671 |
_ACEOF |
3672 |
cat confdefs.h >>conftest.$ac_ext |
3673 |
cat >>conftest.$ac_ext <<_ACEOF |
3674 |
/* end confdefs.h. */ |
3675 |
#include <string.h> |
3676 |
|
3677 |
_ACEOF |
3678 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3679 |
$EGREP "memchr" >/dev/null 2>&1; then |
3680 |
: |
3681 |
else |
3682 |
ac_cv_header_stdc=no |
3683 |
fi |
3684 |
rm -f conftest* |
3685 |
|
3686 |
fi |
3687 |
|
3688 |
if test $ac_cv_header_stdc = yes; then |
3689 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3690 |
cat >conftest.$ac_ext <<_ACEOF |
3691 |
#line $LINENO "configure" |
3692 |
/* confdefs.h. */ |
3693 |
_ACEOF |
3694 |
cat confdefs.h >>conftest.$ac_ext |
3695 |
cat >>conftest.$ac_ext <<_ACEOF |
3696 |
/* end confdefs.h. */ |
3697 |
#include <stdlib.h> |
3698 |
|
3699 |
_ACEOF |
3700 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3701 |
$EGREP "free" >/dev/null 2>&1; then |
3702 |
: |
3703 |
else |
3704 |
ac_cv_header_stdc=no |
3705 |
fi |
3706 |
rm -f conftest* |
3707 |
|
3708 |
fi |
3709 |
|
3710 |
if test $ac_cv_header_stdc = yes; then |
3711 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3712 |
if test "$cross_compiling" = yes; then |
3713 |
: |
3714 |
else |
3715 |
cat >conftest.$ac_ext <<_ACEOF |
3716 |
#line $LINENO "configure" |
3717 |
/* confdefs.h. */ |
3718 |
_ACEOF |
3719 |
cat confdefs.h >>conftest.$ac_ext |
3720 |
cat >>conftest.$ac_ext <<_ACEOF |
3721 |
/* end confdefs.h. */ |
3722 |
#include <ctype.h> |
3723 |
#if ((' ' & 0x0FF) == 0x020) |
3724 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3725 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3726 |
#else |
3727 |
# define ISLOWER(c) \ |
3728 |
(('a' <= (c) && (c) <= 'i') \ |
3729 |
|| ('j' <= (c) && (c) <= 'r') \ |
3730 |
|| ('s' <= (c) && (c) <= 'z')) |
3731 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3732 |
#endif |
3733 |
|
3734 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3735 |
int |
3736 |
main () |
3737 |
{ |
3738 |
int i; |
3739 |
for (i = 0; i < 256; i++) |
3740 |
if (XOR (islower (i), ISLOWER (i)) |
3741 |
|| toupper (i) != TOUPPER (i)) |
3742 |
exit(2); |
3743 |
exit (0); |
3744 |
} |
3745 |
_ACEOF |
3746 |
rm -f conftest$ac_exeext |
3747 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3748 |
(eval $ac_link) 2>&5 |
3749 |
ac_status=$? |
3750 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3751 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3752 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3753 |
(eval $ac_try) 2>&5 |
3754 |
ac_status=$? |
3755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3756 |
(exit $ac_status); }; }; then |
3757 |
: |
3758 |
else |
3759 |
echo "$as_me: program exited with status $ac_status" >&5 |
3760 |
echo "$as_me: failed program was:" >&5 |
3761 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3762 |
|
3763 |
( exit $ac_status ) |
3764 |
ac_cv_header_stdc=no |
3765 |
fi |
3766 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3767 |
fi |
3768 |
fi |
3769 |
fi |
3770 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3771 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3772 |
if test $ac_cv_header_stdc = yes; then |
3773 |
|
3774 |
cat >>confdefs.h <<\_ACEOF |
3775 |
#define STDC_HEADERS 1 |
3776 |
_ACEOF |
3777 |
|
3778 |
fi |
3779 |
|
3780 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3781 |
|
3782 |
|
3783 |
|
3784 |
|
3785 |
|
3786 |
|
3787 |
|
3788 |
|
3789 |
|
3790 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3791 |
inttypes.h stdint.h unistd.h |
3792 |
do |
3793 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3794 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3795 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3796 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3797 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3798 |
else |
3799 |
cat >conftest.$ac_ext <<_ACEOF |
3800 |
#line $LINENO "configure" |
3801 |
/* confdefs.h. */ |
3802 |
_ACEOF |
3803 |
cat confdefs.h >>conftest.$ac_ext |
3804 |
cat >>conftest.$ac_ext <<_ACEOF |
3805 |
/* end confdefs.h. */ |
3806 |
$ac_includes_default |
3807 |
|
3808 |
#include <$ac_header> |
3809 |
_ACEOF |
3810 |
rm -f conftest.$ac_objext |
3811 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3812 |
(eval $ac_compile) 2>&5 |
3813 |
ac_status=$? |
3814 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3815 |
(exit $ac_status); } && |
3816 |
{ ac_try='test -s conftest.$ac_objext' |
3817 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3818 |
(eval $ac_try) 2>&5 |
3819 |
ac_status=$? |
3820 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3821 |
(exit $ac_status); }; }; then |
3822 |
eval "$as_ac_Header=yes" |
3823 |
else |
3824 |
echo "$as_me: failed program was:" >&5 |
3825 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3826 |
|
3827 |
eval "$as_ac_Header=no" |
3828 |
fi |
3829 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3830 |
fi |
3831 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3832 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3833 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3834 |
cat >>confdefs.h <<_ACEOF |
3835 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3836 |
_ACEOF |
3837 |
|
3838 |
fi |
3839 |
|
3840 |
done |
3841 |
|
3842 |
|
3843 |
|
3844 |
|
3845 |
|
3846 |
|
3847 |
|
3848 |
|
3849 |
|
3850 |
|
3851 |
|
3852 |
|
3853 |
|
3854 |
|
3855 |
for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h |
3856 |
do |
3857 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3858 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3859 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3860 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3861 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3862 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3863 |
fi |
3864 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3865 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3866 |
else |
3867 |
# Is the header compilable? |
3868 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3869 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
3870 |
cat >conftest.$ac_ext <<_ACEOF |
3871 |
#line $LINENO "configure" |
3872 |
/* confdefs.h. */ |
3873 |
_ACEOF |
3874 |
cat confdefs.h >>conftest.$ac_ext |
3875 |
cat >>conftest.$ac_ext <<_ACEOF |
3876 |
/* end confdefs.h. */ |
3877 |
$ac_includes_default |
3878 |
#include <$ac_header> |
3879 |
_ACEOF |
3880 |
rm -f conftest.$ac_objext |
3881 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3882 |
(eval $ac_compile) 2>&5 |
3883 |
ac_status=$? |
3884 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3885 |
(exit $ac_status); } && |
3886 |
{ ac_try='test -s conftest.$ac_objext' |
3887 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3888 |
(eval $ac_try) 2>&5 |
3889 |
ac_status=$? |
3890 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3891 |
(exit $ac_status); }; }; then |
3892 |
ac_header_compiler=yes |
3893 |
else |
3894 |
echo "$as_me: failed program was:" >&5 |
3895 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3896 |
|
3897 |
ac_header_compiler=no |
3898 |
fi |
3899 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3900 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3901 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3902 |
|
3903 |
# Is the header present? |
3904 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3905 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
3906 |
cat >conftest.$ac_ext <<_ACEOF |
3907 |
#line $LINENO "configure" |
3908 |
/* confdefs.h. */ |
3909 |
_ACEOF |
3910 |
cat confdefs.h >>conftest.$ac_ext |
3911 |
cat >>conftest.$ac_ext <<_ACEOF |
3912 |
/* end confdefs.h. */ |
3913 |
#include <$ac_header> |
3914 |
_ACEOF |
3915 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3916 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3917 |
ac_status=$? |
3918 |
grep -v '^ *+' conftest.er1 >conftest.err |
3919 |
rm -f conftest.er1 |
3920 |
cat conftest.err >&5 |
3921 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3922 |
(exit $ac_status); } >/dev/null; then |
3923 |
if test -s conftest.err; then |
3924 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3925 |
else |
3926 |
ac_cpp_err= |
3927 |
fi |
3928 |
else |
3929 |
ac_cpp_err=yes |
3930 |
fi |
3931 |
if test -z "$ac_cpp_err"; then |
3932 |
ac_header_preproc=yes |
3933 |
else |
3934 |
echo "$as_me: failed program was:" >&5 |
3935 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3936 |
|
3937 |
ac_header_preproc=no |
3938 |
fi |
3939 |
rm -f conftest.err conftest.$ac_ext |
3940 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3941 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3942 |
|
3943 |
# So? What about this header? |
3944 |
case $ac_header_compiler:$ac_header_preproc in |
3945 |
yes:no ) |
3946 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3947 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3948 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3949 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3950 |
( |
3951 |
cat <<\_ASBOX |
3952 |
## ------------------------------------ ## |
3953 |
## Report this to bug-autoconf@gnu.org. ## |
3954 |
## ------------------------------------ ## |
3955 |
_ASBOX |
3956 |
) | |
3957 |
sed "s/^/$as_me: WARNING: /" >&2 |
3958 |
;; |
3959 |
no:yes ) |
3960 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3961 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
3962 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3963 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
3964 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3965 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3966 |
( |
3967 |
cat <<\_ASBOX |
3968 |
## ------------------------------------ ## |
3969 |
## Report this to bug-autoconf@gnu.org. ## |
3970 |
## ------------------------------------ ## |
3971 |
_ASBOX |
3972 |
) | |
3973 |
sed "s/^/$as_me: WARNING: /" >&2 |
3974 |
;; |
3975 |
esac |
3976 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3977 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3978 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3979 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3980 |
else |
3981 |
eval "$as_ac_Header=$ac_header_preproc" |
3982 |
fi |
3983 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3984 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3985 |
|
3986 |
fi |
3987 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3988 |
cat >>confdefs.h <<_ACEOF |
3989 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3990 |
_ACEOF |
3991 |
|
3992 |
fi |
3993 |
|
3994 |
done |
3995 |
|
3996 |
|
3997 |
|
3998 |
|
3999 |
|
4000 |
|
4001 |
for ac_func in getpwnam getpwuid geteuid getlogin strchr |
4002 |
do |
4003 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4004 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4005 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4006 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4007 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4008 |
else |
4009 |
cat >conftest.$ac_ext <<_ACEOF |
4010 |
#line $LINENO "configure" |
4011 |
/* confdefs.h. */ |
4012 |
_ACEOF |
4013 |
cat confdefs.h >>conftest.$ac_ext |
4014 |
cat >>conftest.$ac_ext <<_ACEOF |
4015 |
/* end confdefs.h. */ |
4016 |
/* System header to define __stub macros and hopefully few prototypes, |
4017 |
which can conflict with char $ac_func (); below. |
4018 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4019 |
<limits.h> exists even on freestanding compilers. */ |
4020 |
#ifdef __STDC__ |
4021 |
# include <limits.h> |
4022 |
#else |
4023 |
# include <assert.h> |
4024 |
#endif |
4025 |
/* Override any gcc2 internal prototype to avoid an error. */ |
4026 |
#ifdef __cplusplus |
4027 |
extern "C" |
4028 |
{ |
4029 |
#endif |
4030 |
/* We use char because int might match the return type of a gcc2 |
4031 |
builtin and then its argument prototype would still apply. */ |
4032 |
char $ac_func (); |
4033 |
/* The GNU C library defines this for functions which it implements |
4034 |
to always fail with ENOSYS. Some functions are actually named |
4035 |
something starting with __ and the normal name is an alias. */ |
4036 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4037 |
choke me |
4038 |
#else |
4039 |
char (*f) () = $ac_func; |
4040 |
#endif |
4041 |
#ifdef __cplusplus |
4042 |
} |
4043 |
#endif |
4044 |
|
4045 |
int |
4046 |
main () |
4047 |
{ |
4048 |
return f != $ac_func; |
4049 |
; |
4050 |
return 0; |
4051 |
} |
4052 |
_ACEOF |
4053 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4054 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4055 |
(eval $ac_link) 2>&5 |
4056 |
ac_status=$? |
4057 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4058 |
(exit $ac_status); } && |
4059 |
{ ac_try='test -s conftest$ac_exeext' |
4060 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4061 |
(eval $ac_try) 2>&5 |
4062 |
ac_status=$? |
4063 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4064 |
(exit $ac_status); }; }; then |
4065 |
eval "$as_ac_var=yes" |
4066 |
else |
4067 |
echo "$as_me: failed program was:" >&5 |
4068 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4069 |
|
4070 |
eval "$as_ac_var=no" |
4071 |
fi |
4072 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4073 |
fi |
4074 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4075 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4076 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4077 |
cat >>confdefs.h <<_ACEOF |
4078 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4079 |
_ACEOF |
4080 |
|
4081 |
fi |
4082 |
done |
4083 |
|
4084 |
|
4085 |
#-------------------------------------------------------------------- |
4086 |
# Check if libobjc was compiled with thread support. |
4087 |
#-------------------------------------------------------------------- |
4088 |
OBJC_THREAD= |
4089 |
|
4090 |
# Check whether --with-thread-lib or --without-thread-lib was given. |
4091 |
if test "${with_thread_lib+set}" = set; then |
4092 |
withval="$with_thread_lib" |
4093 |
OBJC_THREAD=$withval |
4094 |
else |
4095 |
OBJC_THREAD= |
4096 |
|
4097 |
fi; |
4098 |
|
4099 |
|
4100 |
echo "$as_me:$LINENO: checking whether objc has thread support" >&5 |
4101 |
echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6 |
4102 |
extra_LIBS="" |
4103 |
case "${target_os}" in |
4104 |
solaris*) |
4105 |
extra_LIBS="-lposix4" |
4106 |
;; |
4107 |
esac |
4108 |
saved_CFLAGS="$CFLAGS" |
4109 |
saved_LIBS="$LIBS" |
4110 |
CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS" |
4111 |
if test "$OBJC_RUNTIME_LIB" = "gnu"; then |
4112 |
CFLAGS="$CFLAGS -fgnu-runtime" |
4113 |
fi |
4114 |
if test "$OBJC_RUNTIME_LIB" = "nx"; then |
4115 |
CFLAGS="$CFLAGS -DNeXT_RUNTIME" |
4116 |
fi |
4117 |
if test "$OBJC_RUNTIME_LIB" = "apple"; then |
4118 |
CFLAGS="$CFLAGS -DNeXT_RUNTIME" |
4119 |
fi |
4120 |
if test "$OBJC_THREAD" != ""; then |
4121 |
LIBS="-lobjc $LIBS $OBJC_THREAD $extra_LIBS" |
4122 |
if test "$cross_compiling" = yes; then |
4123 |
objc_threaded="" |
4124 |
else |
4125 |
cat >conftest.$ac_ext <<_ACEOF |
4126 |
#line $LINENO "configure" |
4127 |
/* confdefs.h. */ |
4128 |
_ACEOF |
4129 |
cat confdefs.h >>conftest.$ac_ext |
4130 |
cat >>conftest.$ac_ext <<_ACEOF |
4131 |
/* end confdefs.h. */ |
4132 |
#include "config_thread.m" |
4133 |
_ACEOF |
4134 |
rm -f conftest$ac_exeext |
4135 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4136 |
(eval $ac_link) 2>&5 |
4137 |
ac_status=$? |
4138 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4139 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4140 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4141 |
(eval $ac_try) 2>&5 |
4142 |
ac_status=$? |
4143 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4144 |
(exit $ac_status); }; }; then |
4145 |
objc_threaded="$OBJC_THREAD $extra_LIBS" |
4146 |
else |
4147 |
echo "$as_me: program exited with status $ac_status" >&5 |
4148 |
echo "$as_me: failed program was:" >&5 |
4149 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4150 |
|
4151 |
( exit $ac_status ) |
4152 |
objc_threaded="" |
4153 |
fi |
4154 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4155 |
fi |
4156 |
elif test "$host_os" = linux-gnu; then |
4157 |
LIBS="-lobjc -lpthread" |
4158 |
if test "$cross_compiling" = yes; then |
4159 |
objc_threaded="-lpthread" |
4160 |
else |
4161 |
cat >conftest.$ac_ext <<_ACEOF |
4162 |
#line $LINENO "configure" |
4163 |
/* confdefs.h. */ |
4164 |
_ACEOF |
4165 |
cat confdefs.h >>conftest.$ac_ext |
4166 |
cat >>conftest.$ac_ext <<_ACEOF |
4167 |
/* end confdefs.h. */ |
4168 |
#include "config_thread.m" |
4169 |
_ACEOF |
4170 |
rm -f conftest$ac_exeext |
4171 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4172 |
(eval $ac_link) 2>&5 |
4173 |
ac_status=$? |
4174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4175 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4176 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4177 |
(eval $ac_try) 2>&5 |
4178 |
ac_status=$? |
4179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4180 |
(exit $ac_status); }; }; then |
4181 |
objc_threaded="-lpthread" |
4182 |
else |
4183 |
echo "$as_me: program exited with status $ac_status" >&5 |
4184 |
echo "$as_me: failed program was:" >&5 |
4185 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4186 |
|
4187 |
( exit $ac_status ) |
4188 |
objc_threaded="" |
4189 |
fi |
4190 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4191 |
fi |
4192 |
elif test "`echo $host_os|sed 's/[0-9].*//'|sed s/elf//`" = freebsd; then |
4193 |
LIBS="-pthread -lobjc" |
4194 |
if test "$cross_compiling" = yes; then |
4195 |
objc_threaded="-pthread" |
4196 |
else |
4197 |
cat >conftest.$ac_ext <<_ACEOF |
4198 |
#line $LINENO "configure" |
4199 |
/* confdefs.h. */ |
4200 |
_ACEOF |
4201 |
cat confdefs.h >>conftest.$ac_ext |
4202 |
cat >>conftest.$ac_ext <<_ACEOF |
4203 |
/* end confdefs.h. */ |
4204 |
#include "config_thread.m" |
4205 |
_ACEOF |
4206 |
rm -f conftest$ac_exeext |
4207 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4208 |
(eval $ac_link) 2>&5 |
4209 |
ac_status=$? |
4210 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4211 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4212 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4213 |
(eval $ac_try) 2>&5 |
4214 |
ac_status=$? |
4215 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4216 |
(exit $ac_status); }; }; then |
4217 |
objc_threaded="-pthread" |
4218 |
else |
4219 |
echo "$as_me: program exited with status $ac_status" >&5 |
4220 |
echo "$as_me: failed program was:" >&5 |
4221 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4222 |
|
4223 |
( exit $ac_status ) |
4224 |
objc_threaded="" |
4225 |
fi |
4226 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4227 |
fi |
4228 |
if test x"$objc_threaded" = x""; then |
4229 |
LIBS="-lpthread -lobjc" |
4230 |
if test "$cross_compiling" = yes; then |
4231 |
objc_threaded="-lpthread" |
4232 |
else |
4233 |
cat >conftest.$ac_ext <<_ACEOF |
4234 |
#line $LINENO "configure" |
4235 |
/* confdefs.h. */ |
4236 |
_ACEOF |
4237 |
cat confdefs.h >>conftest.$ac_ext |
4238 |
cat >>conftest.$ac_ext <<_ACEOF |
4239 |
/* end confdefs.h. */ |
4240 |
#include "config_thread.m" |
4241 |
_ACEOF |
4242 |
rm -f conftest$ac_exeext |
4243 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4244 |
(eval $ac_link) 2>&5 |
4245 |
ac_status=$? |
4246 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4247 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4248 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4249 |
(eval $ac_try) 2>&5 |
4250 |
ac_status=$? |
4251 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4252 |
(exit $ac_status); }; }; then |
4253 |
objc_threaded="-lpthread" |
4254 |
else |
4255 |
echo "$as_me: program exited with status $ac_status" >&5 |
4256 |
echo "$as_me: failed program was:" >&5 |
4257 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4258 |
|
4259 |
( exit $ac_status ) |
4260 |
objc_threaded="" |
4261 |
fi |
4262 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4263 |
fi |
4264 |
fi |
4265 |
if test x"$objc_threaded" = x""; then |
4266 |
LIBS="-lobjc -lpcthread" |
4267 |
if test "$cross_compiling" = yes; then |
4268 |
objc_threaded="-lpcthread" |
4269 |
else |
4270 |
cat >conftest.$ac_ext <<_ACEOF |
4271 |
#line $LINENO "configure" |
4272 |
/* confdefs.h. */ |
4273 |
_ACEOF |
4274 |
cat confdefs.h >>conftest.$ac_ext |
4275 |
cat >>conftest.$ac_ext <<_ACEOF |
4276 |
/* end confdefs.h. */ |
4277 |
#include "config_thread.m" |
4278 |
_ACEOF |
4279 |
rm -f conftest$ac_exeext |
4280 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4281 |
(eval $ac_link) 2>&5 |
4282 |
ac_status=$? |
4283 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4284 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4285 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4286 |
(eval $ac_try) 2>&5 |
4287 |
ac_status=$? |
4288 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4289 |
(exit $ac_status); }; }; then |
4290 |
objc_threaded="-lpcthread" |
4291 |
else |
4292 |
echo "$as_me: program exited with status $ac_status" >&5 |
4293 |
echo "$as_me: failed program was:" >&5 |
4294 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4295 |
|
4296 |
( exit $ac_status ) |
4297 |
objc_threaded="" |
4298 |
fi |
4299 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4300 |
fi |
4301 |
fi |
4302 |
elif test "$MINGW32" = yes; then |
4303 |
# Mingw doesn't need anything extra for threads |
4304 |
LIBS="-lobjc $LIBS $extra_LIBS" |
4305 |
if test "$cross_compiling" = yes; then |
4306 |
objc_threaded="works" |
4307 |
else |
4308 |
cat >conftest.$ac_ext <<_ACEOF |
4309 |
#line $LINENO "configure" |
4310 |
/* confdefs.h. */ |
4311 |
_ACEOF |
4312 |
cat confdefs.h >>conftest.$ac_ext |
4313 |
cat >>conftest.$ac_ext <<_ACEOF |
4314 |
/* end confdefs.h. */ |
4315 |
#include "config_thread.m" |
4316 |
_ACEOF |
4317 |
rm -f conftest$ac_exeext |
4318 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4319 |
(eval $ac_link) 2>&5 |
4320 |
ac_status=$? |
4321 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4322 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4323 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4324 |
(eval $ac_try) 2>&5 |
4325 |
ac_status=$? |
4326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4327 |
(exit $ac_status); }; }; then |
4328 |
objc_threaded="works" |
4329 |
else |
4330 |
echo "$as_me: program exited with status $ac_status" >&5 |
4331 |
echo "$as_me: failed program was:" >&5 |
4332 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4333 |
|
4334 |
( exit $ac_status ) |
4335 |
objc_threaded="" |
4336 |
fi |
4337 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4338 |
fi |
4339 |
else |
4340 |
LIBS="-lobjc $LIBS $extra_LIBS" |
4341 |
if test "$cross_compiling" = yes; then |
4342 |
objc_threaded="" |
4343 |
else |
4344 |
cat >conftest.$ac_ext <<_ACEOF |
4345 |
#line $LINENO "configure" |
4346 |
/* confdefs.h. */ |
4347 |
_ACEOF |
4348 |
cat confdefs.h >>conftest.$ac_ext |
4349 |
cat >>conftest.$ac_ext <<_ACEOF |
4350 |
/* end confdefs.h. */ |
4351 |
#include "config_thread.m" |
4352 |
_ACEOF |
4353 |
rm -f conftest$ac_exeext |
4354 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4355 |
(eval $ac_link) 2>&5 |
4356 |
ac_status=$? |
4357 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4358 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4359 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4360 |
(eval $ac_try) 2>&5 |
4361 |
ac_status=$? |
4362 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4363 |
(exit $ac_status); }; }; then |
4364 |
objc_threaded="works" |
4365 |
else |
4366 |
echo "$as_me: program exited with status $ac_status" >&5 |
4367 |
echo "$as_me: failed program was:" >&5 |
4368 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4369 |
|
4370 |
( exit $ac_status ) |
4371 |
objc_threaded="" |
4372 |
fi |
4373 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4374 |
fi |
4375 |
if test x"$objc_threaded" = x""; then |
4376 |
LIBS="-lobjc $saved_LIBS -lpthread $extra_LIBS" |
4377 |
if test "$cross_compiling" = yes; then |
4378 |
objc_threaded="" |
4379 |
else |
4380 |
cat >conftest.$ac_ext <<_ACEOF |
4381 |
#line $LINENO "configure" |
4382 |
/* confdefs.h. */ |
4383 |
_ACEOF |
4384 |
cat confdefs.h >>conftest.$ac_ext |
4385 |
cat >>conftest.$ac_ext <<_ACEOF |
4386 |
/* end confdefs.h. */ |
4387 |
#include "config_thread.m" |
4388 |
_ACEOF |
4389 |
rm -f conftest$ac_exeext |
4390 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4391 |
(eval $ac_link) 2>&5 |
4392 |
ac_status=$? |
4393 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4394 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4395 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4396 |
(eval $ac_try) 2>&5 |
4397 |
ac_status=$? |
4398 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4399 |
(exit $ac_status); }; }; then |
4400 |
objc_threaded="-lpthread $extra_LIBS" |
4401 |
else |
4402 |
echo "$as_me: program exited with status $ac_status" >&5 |
4403 |
echo "$as_me: failed program was:" >&5 |
4404 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4405 |
|
4406 |
( exit $ac_status ) |
4407 |
objc_threaded="" |
4408 |
fi |
4409 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4410 |
fi |
4411 |
fi |
4412 |
if test x"$objc_threaded" = x""; then |
4413 |
LIBS="-lobjc $saved_LIBS -lthread $extra_LIBS" |
4414 |
if test "$cross_compiling" = yes; then |
4415 |
objc_threaded="" |
4416 |
else |
4417 |
cat >conftest.$ac_ext <<_ACEOF |
4418 |
#line $LINENO "configure" |
4419 |
/* confdefs.h. */ |
4420 |
_ACEOF |
4421 |
cat confdefs.h >>conftest.$ac_ext |
4422 |
cat >>conftest.$ac_ext <<_ACEOF |
4423 |
/* end confdefs.h. */ |
4424 |
#include "config_thread.m" |
4425 |
_ACEOF |
4426 |
rm -f conftest$ac_exeext |
4427 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4428 |
(eval $ac_link) 2>&5 |
4429 |
ac_status=$? |
4430 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4431 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4432 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4433 |
(eval $ac_try) 2>&5 |
4434 |
ac_status=$? |
4435 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4436 |
(exit $ac_status); }; }; then |
4437 |
objc_threaded="-lthread $extra_LIBS" |
4438 |
else |
4439 |
echo "$as_me: program exited with status $ac_status" >&5 |
4440 |
echo "$as_me: failed program was:" >&5 |
4441 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4442 |
|
4443 |
( exit $ac_status ) |
4444 |
objc_threaded="" |
4445 |
fi |
4446 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4447 |
fi |
4448 |
fi |
4449 |
fi |
4450 |
LIBS="$saved_LIBS" |
4451 |
CFLAGS="$saved_CFLAGS" |
4452 |
if test x"$objc_threaded" = x""; then |
4453 |
echo "$as_me:$LINENO: result: no" >&5 |
4454 |
echo "${ECHO_T}no" >&6 |
4455 |
else |
4456 |
if test x"$objc_threaded" = x"works"; then |
4457 |
objc_threaded="$extra_LIBS" |
4458 |
fi |
4459 |
echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5 |
4460 |
echo "${ECHO_T}yes: $objc_threaded" >&6 |
4461 |
fi |
4462 |
ac_cv_objc_threaded="$objc_threaded" |
4463 |
|
4464 |
|
4465 |
|
4466 |
#-------------------------------------------------------------------- |
4467 |
# Check if compiler supports -MMD -MP to generate %.d files ... |
4468 |
#-------------------------------------------------------------------- |
4469 |
|
4470 |
echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5 |
4471 |
echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6 |
4472 |
|
4473 |
# What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x |
4474 |
|
4475 |
if test ! ${GCC} = "yes" ; then |
4476 |
AUTO_DEPENDENCIES="" |
4477 |
echo "$as_me:$LINENO: result: no: it's not gcc" >&5 |
4478 |
echo "${ECHO_T}no: it's not gcc" >&6 |
4479 |
else |
4480 |
# Running gcc -dumpversion we get something like 2.95.4 or |
4481 |
# egcs-2.91.66 or 3.0.2 or 3.1 20011211 |
4482 |
# We want to discard anything but the major number. |
4483 |
# Explanation of the regexp - |
4484 |
# \(^[^0-9]*\) matches beginning of line and following non numeric chars |
4485 |
# \([0-9][0-9]*\) matches 1 or more numeric chars (this is the 2^nd |
4486 |
# subpattern) |
4487 |
# \([^0-9].*\) matches a non numeric char followed by anything |
4488 |
# /\2/ replace the whole lot with the 2^nd subpattern |
4489 |
gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\([^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`; |
4490 |
|
4491 |
if test "${gs_cv_gcc_major_version}" -ge "3" ; then |
4492 |
AUTO_DEPENDENCIES=yes |
4493 |
echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5 |
4494 |
echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6 |
4495 |
else |
4496 |
AUTO_DEPENDENCIES="" |
4497 |
echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5 |
4498 |
echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6 |
4499 |
fi |
4500 |
fi |
4501 |
|
4502 |
|
4503 |
|
4504 |
#--------------------------------------------------------------------- |
4505 |
# Enable/disable warnings for deprecated #import directive as required |
4506 |
#--------------------------------------------------------------------- |
4507 |
echo "$as_me:$LINENO: checking whether to disable compiler warnings about deprecated import" >&5 |
4508 |
echo $ECHO_N "checking whether to disable compiler warnings about deprecated import... $ECHO_C" >&6 |
4509 |
|
4510 |
# |
4511 |
# GCC recommends that you use `--disable-import' here, since #import |
4512 |
# is seriously deprecated. If you are unsure, please use --disable-import. |
4513 |
# |
4514 |
# Check whether --enable-import or --disable-import was given. |
4515 |
if test "${enable_import+set}" = set; then |
4516 |
enableval="$enable_import" |
4517 |
ac_cv_import=$enableval |
4518 |
else |
4519 |
ac_cv_import="no" |
4520 |
fi; |
4521 |
|
4522 |
echo "$as_me:$LINENO: result: $ac_cv_import" >&5 |
4523 |
echo "${ECHO_T}$ac_cv_import" >&6 |
4524 |
|
4525 |
if test "$ac_cv_import" = "yes"; then |
4526 |
OBJC_NO_IMPORT_FLAGS=-Wno-import; |
4527 |
fi |
4528 |
|
4529 |
|
4530 |
CPPFLAGS="$user_CPPFLAGS" |
4531 |
|
4532 |
|
4533 |
#-------------------------------------------------------------------- |
4534 |
# Disable updating the obsolete directory structure |
4535 |
#-------------------------------------------------------------------- |
4536 |
gs_move_obsolete=yes |
4537 |
# Check whether --enable-move-obsolete or --disable-move-obsolete was given. |
4538 |
if test "${enable_move_obsolete+set}" = set; then |
4539 |
enableval="$enable_move_obsolete" |
4540 |
gs_move_obsolete=$enableval |
4541 |
else |
4542 |
gs_move_obsolete=yes |
4543 |
fi; |
4544 |
|
4545 |
if test "$gs_move_obsolete" = "yes"; then |
4546 |
GNUSTEP_MOVE_OBSOLETE=move_obsolete; |
4547 |
{ echo "$as_me:$LINENO: *** WARNING any old GNUstep directories installed before gnustep-make 1.7.0 will be moved to the new locations unless disabled in configure" >&5 |
4548 |
echo "$as_me: *** WARNING any old GNUstep directories installed before gnustep-make 1.7.0 will be moved to the new locations unless disabled in configure" >&6;} |
4549 |
else |
4550 |
GNUSTEP_MOVE_OBSOLETE= |
4551 |
{ echo "$as_me:$LINENO: Old GNUstep directories will not be moved" >&5 |
4552 |
echo "$as_me: Old GNUstep directories will not be moved" >&6;} |
4553 |
fi |
4554 |
|
4555 |
|
4556 |
#-------------------------------------------------------------------- |
4557 |
# Record the version |
4558 |
#-------------------------------------------------------------------- |
4559 |
echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5 |
4560 |
echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6 |
4561 |
. "$srcdir/Version" |
4562 |
echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5 |
4563 |
echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6 |
4564 |
|
4565 |
|
4566 |
|
4567 |
|
4568 |
|
4569 |
#------------------------------------------------------------------- |
4570 |
# Record the 'clean' target_os, target_cpu and target_vendor |
4571 |
#------------------------------------------------------------------- |
4572 |
# This is just for efficiency, so that core/make/GNUmakefile does not |
4573 |
# have to compute clean_target_os from target_os (and similar) by |
4574 |
# running shell scripts each time you 'make' something inside |
4575 |
# gnustep-make. We basically compute them once now, and cache them |
4576 |
# forever. It is also used by GNUstep.sh when multi-platform is |
4577 |
# disabled. |
4578 |
clean_target_os=`$srcdir/clean_os.sh $target_os` |
4579 |
clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu` |
4580 |
clean_target_vendor=`$srcdir/clean_cpu.sh $target_vendor` |
4581 |
|
4582 |
|
4583 |
|
4584 |
|
4585 |
|
4586 |
#-------------------------------------------------------------------- |
4587 |
# Produce the output files |
4588 |
#-------------------------------------------------------------------- |
4589 |
ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec Documentation/GNUmakefile" |
4590 |
|
4591 |
ac_config_commands="$ac_config_commands default" |
4592 |
|
4593 |
cat >confcache <<\_ACEOF |
4594 |
# This file is a shell script that caches the results of configure |
4595 |
# tests run on this system so they can be shared between configure |
4596 |
# scripts and configure runs, see configure's option --config-cache. |
4597 |
# It is not useful on other systems. If it contains results you don't |
4598 |
# want to keep, you may remove or edit it. |
4599 |
# |
4600 |
# config.status only pays attention to the cache file if you give it |
4601 |
# the --recheck option to rerun configure. |
4602 |
# |
4603 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
4604 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
4605 |
# following values. |
4606 |
|
4607 |
_ACEOF |
4608 |
|
4609 |
# The following way of writing the cache mishandles newlines in values, |
4610 |
# but we know of no workaround that is simple, portable, and efficient. |
4611 |
# So, don't put newlines in cache variables' values. |
4612 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
4613 |
# and sets the high bit in the cache file unless we assign to the vars. |
4614 |
{ |
4615 |
(set) 2>&1 | |
4616 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
4617 |
*ac_space=\ *) |
4618 |
# `set' does not quote correctly, so add quotes (double-quote |
4619 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
4620 |
sed -n \ |
4621 |
"s/'/'\\\\''/g; |
4622 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4623 |
;; |
4624 |
*) |
4625 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4626 |
sed -n \ |
4627 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
4628 |
;; |
4629 |
esac; |
4630 |
} | |
4631 |
sed ' |
4632 |
t clear |
4633 |
: clear |
4634 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4635 |
t end |
4636 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4637 |
: end' >>confcache |
4638 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
4639 |
if test -w $cache_file; then |
4640 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4641 |
cat confcache >$cache_file |
4642 |
else |
4643 |
echo "not updating unwritable cache $cache_file" |
4644 |
fi |
4645 |
fi |
4646 |
rm -f confcache |
4647 |
|
4648 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4649 |
# Let make expand exec_prefix. |
4650 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
4651 |
|
4652 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
4653 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
4654 |
# trailing colons and then remove the whole line if VPATH becomes empty |
4655 |
# (actually we leave an empty line to preserve line numbers). |
4656 |
if test "x$srcdir" = x.; then |
4657 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
4658 |
s/:*\$(srcdir):*/:/; |
4659 |
s/:*\${srcdir}:*/:/; |
4660 |
s/:*@srcdir@:*/:/; |
4661 |
s/^\([^=]*=[ ]*\):*/\1/; |
4662 |
s/:*$//; |
4663 |
s/^[^=]*=[ ]*$//; |
4664 |
}' |
4665 |
fi |
4666 |
|
4667 |
DEFS=-DHAVE_CONFIG_H |
4668 |
|
4669 |
ac_libobjs= |
4670 |
ac_ltlibobjs= |
4671 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4672 |
# 1. Remove the extension, and $U if already installed. |
4673 |
ac_i=`echo "$ac_i" | |
4674 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
4675 |
# 2. Add them. |
4676 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
4677 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
4678 |
done |
4679 |
LIBOBJS=$ac_libobjs |
4680 |
|
4681 |
LTLIBOBJS=$ac_ltlibobjs |
4682 |
|
4683 |
|
4684 |
|
4685 |
: ${CONFIG_STATUS=./config.status} |
4686 |
ac_clean_files_save=$ac_clean_files |
4687 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4688 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
4689 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
4690 |
cat >$CONFIG_STATUS <<_ACEOF |
4691 |
#! $SHELL |
4692 |
# Generated by $as_me. |
4693 |
# Run this file to recreate the current configuration. |
4694 |
# Compiler output produced by configure, useful for debugging |
4695 |
# configure, is in config.log if it exists. |
4696 |
|
4697 |
debug=false |
4698 |
ac_cs_recheck=false |
4699 |
ac_cs_silent=false |
4700 |
SHELL=\${CONFIG_SHELL-$SHELL} |
4701 |
_ACEOF |
4702 |
|
4703 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4704 |
## --------------------- ## |
4705 |
## M4sh Initialization. ## |
4706 |
## --------------------- ## |
4707 |
|
4708 |
# Be Bourne compatible |
4709 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
4710 |
emulate sh |
4711 |
NULLCMD=: |
4712 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
4713 |
# is contrary to our usage. Disable this feature. |
4714 |
alias -g '${1+"$@"}'='"$@"' |
4715 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
4716 |
set -o posix |
4717 |
fi |
4718 |
|
4719 |
# Support unset when possible. |
4720 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
4721 |
as_unset=unset |
4722 |
else |
4723 |
as_unset=false |
4724 |
fi |
4725 |
|
4726 |
|
4727 |
# Work around bugs in pre-3.0 UWIN ksh. |
4728 |
$as_unset ENV MAIL MAILPATH |
4729 |
PS1='$ ' |
4730 |
PS2='> ' |
4731 |
PS4='+ ' |
4732 |
|
4733 |
# NLS nuisances. |
4734 |
for as_var in \ |
4735 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
4736 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
4737 |
LC_TELEPHONE LC_TIME |
4738 |
do |
4739 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
4740 |
eval $as_var=C; export $as_var |
4741 |
else |
4742 |
$as_unset $as_var |
4743 |
fi |
4744 |
done |
4745 |
|
4746 |
# Required to use basename. |
4747 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
4748 |
as_expr=expr |
4749 |
else |
4750 |
as_expr=false |
4751 |
fi |
4752 |
|
4753 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
4754 |
as_basename=basename |
4755 |
else |
4756 |
as_basename=false |
4757 |
fi |
4758 |
|
4759 |
|
4760 |
# Name of the executable. |
4761 |
as_me=`$as_basename "$0" || |
4762 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4763 |
X"$0" : 'X\(//\)$' \| \ |
4764 |
X"$0" : 'X\(/\)$' \| \ |
4765 |
. : '\(.\)' 2>/dev/null || |
4766 |
echo X/"$0" | |
4767 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
4768 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
4769 |
/^X\/\(\/\).*/{ s//\1/; q; } |
4770 |
s/.*/./; q'` |
4771 |
|
4772 |
|
4773 |
# PATH needs CR, and LINENO needs CR and PATH. |
4774 |
# Avoid depending upon Character Ranges. |
4775 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
4776 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
4777 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
4778 |
as_cr_digits='0123456789' |
4779 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
4780 |
|
4781 |
# The user is always right. |
4782 |
if test "${PATH_SEPARATOR+set}" != set; then |
4783 |
echo "#! /bin/sh" >conf$$.sh |
4784 |
echo "exit 0" >>conf$$.sh |
4785 |
chmod +x conf$$.sh |
4786 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
4787 |
PATH_SEPARATOR=';' |
4788 |
else |
4789 |
PATH_SEPARATOR=: |
4790 |
fi |
4791 |
rm -f conf$$.sh |
4792 |
fi |
4793 |
|
4794 |
|
4795 |
as_lineno_1=$LINENO |
4796 |
as_lineno_2=$LINENO |
4797 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4798 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
4799 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
4800 |
# Find who we are. Look in the path if we contain no path at all |
4801 |
# relative or not. |
4802 |
case $0 in |
4803 |
*[\\/]* ) as_myself=$0 ;; |
4804 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4805 |
for as_dir in $PATH |
4806 |
do |
4807 |
IFS=$as_save_IFS |
4808 |
test -z "$as_dir" && as_dir=. |
4809 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
4810 |
done |
4811 |
|
4812 |
;; |
4813 |
esac |
4814 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
4815 |
# in which case we are not to be found in the path. |
4816 |
if test "x$as_myself" = x; then |
4817 |
as_myself=$0 |
4818 |
fi |
4819 |
if test ! -f "$as_myself"; then |
4820 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
4821 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
4822 |
{ (exit 1); exit 1; }; } |
4823 |
fi |
4824 |
case $CONFIG_SHELL in |
4825 |
'') |
4826 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4827 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
4828 |
do |
4829 |
IFS=$as_save_IFS |
4830 |
test -z "$as_dir" && as_dir=. |
4831 |
for as_base in sh bash ksh sh5; do |
4832 |
case $as_dir in |
4833 |
/*) |
4834 |
if ("$as_dir/$as_base" -c ' |
4835 |
as_lineno_1=$LINENO |
4836 |
as_lineno_2=$LINENO |
4837 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4838 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
4839 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
4840 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
4841 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
4842 |
CONFIG_SHELL=$as_dir/$as_base |
4843 |
export CONFIG_SHELL |
4844 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
4845 |
fi;; |
4846 |
esac |
4847 |
done |
4848 |
done |
4849 |
;; |
4850 |
esac |
4851 |
|
4852 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
4853 |
# uniformly replaced by the line number. The first 'sed' inserts a |
4854 |
# line-number line before each line; the second 'sed' does the real |
4855 |
# work. The second script uses 'N' to pair each line-number line |
4856 |
# with the numbered line, and appends trailing '-' during |
4857 |
# substitution so that $LINENO is not a special case at line end. |
4858 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4859 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
4860 |
sed '=' <$as_myself | |
4861 |
sed ' |
4862 |
N |
4863 |
s,$,-, |
4864 |
: loop |
4865 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
4866 |
t loop |
4867 |
s,-$,, |
4868 |
s,^['$as_cr_digits']*\n,, |
4869 |
' >$as_me.lineno && |
4870 |
chmod +x $as_me.lineno || |
4871 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
4872 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
4873 |
{ (exit 1); exit 1; }; } |
4874 |
|
4875 |
# Don't try to exec as it changes $[0], causing all sort of problems |
4876 |
# (the dirname of $[0] is not the place where we might find the |
4877 |
# original and so on. Autoconf is especially sensible to this). |
4878 |
. ./$as_me.lineno |
4879 |
# Exit status is that of the last command. |
4880 |
exit |
4881 |
} |
4882 |
|
4883 |
|
4884 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
4885 |
*c*,-n*) ECHO_N= ECHO_C=' |
4886 |
' ECHO_T=' ' ;; |
4887 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
4888 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
4889 |
esac |
4890 |
|
4891 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
4892 |
as_expr=expr |
4893 |
else |
4894 |
as_expr=false |
4895 |
fi |
4896 |
|
4897 |
rm -f conf$$ conf$$.exe conf$$.file |
4898 |
echo >conf$$.file |
4899 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
4900 |
# We could just check for DJGPP; but this test a) works b) is more generic |
4901 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
4902 |
if test -f conf$$.exe; then |
4903 |
# Don't use ln at all; we don't have any links |
4904 |
as_ln_s='cp -p' |
4905 |
else |
4906 |
as_ln_s='ln -s' |
4907 |
fi |
4908 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
4909 |
as_ln_s=ln |
4910 |
else |
4911 |
as_ln_s='cp -p' |
4912 |
fi |
4913 |
rm -f conf$$ conf$$.exe conf$$.file |
4914 |
|
4915 |
if mkdir -p . 2>/dev/null; then |
4916 |
as_mkdir_p=: |
4917 |
else |
4918 |
as_mkdir_p=false |
4919 |
fi |
4920 |
|
4921 |
as_executable_p="test -f" |
4922 |
|
4923 |
# Sed expression to map a string onto a valid CPP name. |
4924 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
4925 |
|
4926 |
# Sed expression to map a string onto a valid variable name. |
4927 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
4928 |
|
4929 |
|
4930 |
# IFS |
4931 |
# We need space, tab and new line, in precisely that order. |
4932 |
as_nl=' |
4933 |
' |
4934 |
IFS=" $as_nl" |
4935 |
|
4936 |
# CDPATH. |
4937 |
$as_unset CDPATH |
4938 |
|
4939 |
exec 6>&1 |
4940 |
|
4941 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
4942 |
# report actual input values of CONFIG_FILES etc. instead of their |
4943 |
# values after options handling. Logging --version etc. is OK. |
4944 |
exec 5>>config.log |
4945 |
{ |
4946 |
echo |
4947 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
4948 |
## Running $as_me. ## |
4949 |
_ASBOX |
4950 |
} >&5 |
4951 |
cat >&5 <<_CSEOF |
4952 |
|
4953 |
This file was extended by $as_me, which was |
4954 |
generated by GNU Autoconf 2.57. Invocation command line was |
4955 |
|
4956 |
CONFIG_FILES = $CONFIG_FILES |
4957 |
CONFIG_HEADERS = $CONFIG_HEADERS |
4958 |
CONFIG_LINKS = $CONFIG_LINKS |
4959 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
4960 |
$ $0 $@ |
4961 |
|
4962 |
_CSEOF |
4963 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
4964 |
echo >&5 |
4965 |
_ACEOF |
4966 |
|
4967 |
# Files that config.status was made for. |
4968 |
if test -n "$ac_config_files"; then |
4969 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
4970 |
fi |
4971 |
|
4972 |
if test -n "$ac_config_headers"; then |
4973 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
4974 |
fi |
4975 |
|
4976 |
if test -n "$ac_config_links"; then |
4977 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
4978 |
fi |
4979 |
|
4980 |
if test -n "$ac_config_commands"; then |
4981 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
4982 |
fi |
4983 |
|
4984 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4985 |
|
4986 |
ac_cs_usage="\ |
4987 |
\`$as_me' instantiates files from templates according to the |
4988 |
current configuration. |
4989 |
|
4990 |
Usage: $0 [OPTIONS] [FILE]... |
4991 |
|
4992 |
-h, --help print this help, then exit |
4993 |
-V, --version print version number, then exit |
4994 |
-q, --quiet do not print progress messages |
4995 |
-d, --debug don't remove temporary files |
4996 |
--recheck update $as_me by reconfiguring in the same conditions |
4997 |
--file=FILE[:TEMPLATE] |
4998 |
instantiate the configuration file FILE |
4999 |
--header=FILE[:TEMPLATE] |
5000 |
instantiate the configuration header FILE |
5001 |
|
5002 |
Configuration files: |
5003 |
$config_files |
5004 |
|
5005 |
Configuration headers: |
5006 |
$config_headers |
5007 |
|
5008 |
Configuration commands: |
5009 |
$config_commands |
5010 |
|
5011 |
Report bugs to <bug-autoconf@gnu.org>." |
5012 |
_ACEOF |
5013 |
|
5014 |
cat >>$CONFIG_STATUS <<_ACEOF |
5015 |
ac_cs_version="\\ |
5016 |
config.status |
5017 |
configured by $0, generated by GNU Autoconf 2.57, |
5018 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
5019 |
|
5020 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
5021 |
Free Software Foundation, Inc. |
5022 |
This config.status script is free software; the Free Software Foundation |
5023 |
gives unlimited permission to copy, distribute and modify it." |
5024 |
srcdir=$srcdir |
5025 |
INSTALL="$INSTALL" |
5026 |
_ACEOF |
5027 |
|
5028 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5029 |
# If no file are specified by the user, then we need to provide default |
5030 |
# value. By we need to know if files were specified by the user. |
5031 |
ac_need_defaults=: |
5032 |
while test $# != 0 |
5033 |
do |
5034 |
case $1 in |
5035 |
--*=*) |
5036 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
5037 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
5038 |
ac_shift=: |
5039 |
;; |
5040 |
-*) |
5041 |
ac_option=$1 |
5042 |
ac_optarg=$2 |
5043 |
ac_shift=shift |
5044 |
;; |
5045 |
*) # This is not an option, so the user has probably given explicit |
5046 |
# arguments. |
5047 |
ac_option=$1 |
5048 |
ac_need_defaults=false;; |
5049 |
esac |
5050 |
|
5051 |
case $ac_option in |
5052 |
# Handling of the options. |
5053 |
_ACEOF |
5054 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5055 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5056 |
ac_cs_recheck=: ;; |
5057 |
--version | --vers* | -V ) |
5058 |
echo "$ac_cs_version"; exit 0 ;; |
5059 |
--he | --h) |
5060 |
# Conflict between --help and --header |
5061 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
5062 |
Try \`$0 --help' for more information." >&5 |
5063 |
echo "$as_me: error: ambiguous option: $1 |
5064 |
Try \`$0 --help' for more information." >&2;} |
5065 |
{ (exit 1); exit 1; }; };; |
5066 |
--help | --hel | -h ) |
5067 |
echo "$ac_cs_usage"; exit 0 ;; |
5068 |
--debug | --d* | -d ) |
5069 |
debug=: ;; |
5070 |
--file | --fil | --fi | --f ) |
5071 |
$ac_shift |
5072 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
5073 |
ac_need_defaults=false;; |
5074 |
--header | --heade | --head | --hea ) |
5075 |
$ac_shift |
5076 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
5077 |
ac_need_defaults=false;; |
5078 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5079 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
5080 |
ac_cs_silent=: ;; |
5081 |
|
5082 |
# This is an error. |
5083 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
5084 |
Try \`$0 --help' for more information." >&5 |
5085 |
echo "$as_me: error: unrecognized option: $1 |
5086 |
Try \`$0 --help' for more information." >&2;} |
5087 |
{ (exit 1); exit 1; }; } ;; |
5088 |
|
5089 |
*) ac_config_targets="$ac_config_targets $1" ;; |
5090 |
|
5091 |
esac |
5092 |
shift |
5093 |
done |
5094 |
|
5095 |
ac_configure_extra_args= |
5096 |
|
5097 |
if $ac_cs_silent; then |
5098 |
exec 6>/dev/null |
5099 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
5100 |
fi |
5101 |
|
5102 |
_ACEOF |
5103 |
cat >>$CONFIG_STATUS <<_ACEOF |
5104 |
if \$ac_cs_recheck; then |
5105 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
5106 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5107 |
fi |
5108 |
|
5109 |
_ACEOF |
5110 |
|
5111 |
cat >>$CONFIG_STATUS <<_ACEOF |
5112 |
# |
5113 |
# INIT-COMMANDS section. |
5114 |
# |
5115 |
|
5116 |
|
5117 |
|
5118 |
_ACEOF |
5119 |
|
5120 |
|
5121 |
|
5122 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5123 |
for ac_config_target in $ac_config_targets |
5124 |
do |
5125 |
case "$ac_config_target" in |
5126 |
# Handling of arguments. |
5127 |
"config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;; |
5128 |
"openapp" ) CONFIG_FILES="$CONFIG_FILES openapp" ;; |
5129 |
"debugapp" ) CONFIG_FILES="$CONFIG_FILES debugapp" ;; |
5130 |
"opentool" ) CONFIG_FILES="$CONFIG_FILES opentool" ;; |
5131 |
"executable.template" ) CONFIG_FILES="$CONFIG_FILES executable.template" ;; |
5132 |
"GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; |
5133 |
"GNUstep.sh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;; |
5134 |
"GNUstep.csh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;; |
5135 |
"fixpath.sh" ) CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;; |
5136 |
"gnustep-make.spec" ) CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;; |
5137 |
"Documentation/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/GNUmakefile" ;; |
5138 |
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
5139 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5140 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
5141 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
5142 |
{ (exit 1); exit 1; }; };; |
5143 |
esac |
5144 |
done |
5145 |
|
5146 |
# If the user did not use the arguments to specify the items to instantiate, |
5147 |
# then the envvar interface is used. Set only those that are not. |
5148 |
# We use the long form for the default assignment because of an extremely |
5149 |
# bizarre bug on SunOS 4.1.3. |
5150 |
if $ac_need_defaults; then |
5151 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
5152 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
5153 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
5154 |
fi |
5155 |
|
5156 |
# Have a temporary directory for convenience. Make it in the build tree |
5157 |
# simply because there is no reason to put it here, and in addition, |
5158 |
# creating and moving files from /tmp can sometimes cause problems. |
5159 |
# Create a temporary directory, and hook for its removal unless debugging. |
5160 |
$debug || |
5161 |
{ |
5162 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
5163 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
5164 |
} |
5165 |
|
5166 |
# Create a (secure) tmp directory for tmp files. |
5167 |
|
5168 |
{ |
5169 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
5170 |
test -n "$tmp" && test -d "$tmp" |
5171 |
} || |
5172 |
{ |
5173 |
tmp=./confstat$$-$RANDOM |
5174 |
(umask 077 && mkdir $tmp) |
5175 |
} || |
5176 |
{ |
5177 |
echo "$me: cannot create a temporary directory in ." >&2 |
5178 |
{ (exit 1); exit 1; } |
5179 |
} |
5180 |
|
5181 |
_ACEOF |
5182 |
|
5183 |
cat >>$CONFIG_STATUS <<_ACEOF |
5184 |
|
5185 |
# |
5186 |
# CONFIG_FILES section. |
5187 |
# |
5188 |
|
5189 |
# No need to generate the scripts if there are no CONFIG_FILES. |
5190 |
# This happens for instance when ./config.status config.h |
5191 |
if test -n "\$CONFIG_FILES"; then |
5192 |
# Protect against being on the right side of a sed subst in config.status. |
5193 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
5194 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
5195 |
s,@SHELL@,$SHELL,;t t |
5196 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
5197 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
5198 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
5199 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
5200 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
5201 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
5202 |
s,@exec_prefix@,$exec_prefix,;t t |
5203 |
s,@prefix@,$prefix,;t t |
5204 |
s,@program_transform_name@,$program_transform_name,;t t |
5205 |
s,@bindir@,$bindir,;t t |
5206 |
s,@sbindir@,$sbindir,;t t |
5207 |
s,@libexecdir@,$libexecdir,;t t |
5208 |
s,@datadir@,$datadir,;t t |
5209 |
s,@sysconfdir@,$sysconfdir,;t t |
5210 |
s,@sharedstatedir@,$sharedstatedir,;t t |
5211 |
s,@localstatedir@,$localstatedir,;t t |
5212 |
s,@libdir@,$libdir,;t t |
5213 |
s,@includedir@,$includedir,;t t |
5214 |
s,@oldincludedir@,$oldincludedir,;t t |
5215 |
s,@infodir@,$infodir,;t t |
5216 |
s,@mandir@,$mandir,;t t |
5217 |
s,@build_alias@,$build_alias,;t t |
5218 |
s,@host_alias@,$host_alias,;t t |
5219 |
s,@target_alias@,$target_alias,;t t |
5220 |
s,@DEFS@,$DEFS,;t t |
5221 |
s,@ECHO_C@,$ECHO_C,;t t |
5222 |
s,@ECHO_N@,$ECHO_N,;t t |
5223 |
s,@ECHO_T@,$ECHO_T,;t t |
5224 |
s,@LIBS@,$LIBS,;t t |
5225 |
s,@CC@,$CC,;t t |
5226 |
s,@CFLAGS@,$CFLAGS,;t t |
5227 |
s,@LDFLAGS@,$LDFLAGS,;t t |
5228 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
5229 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
5230 |
s,@EXEEXT@,$EXEEXT,;t t |
5231 |
s,@OBJEXT@,$OBJEXT,;t t |
5232 |
s,@CPP@,$CPP,;t t |
5233 |
s,@build@,$build,;t t |
5234 |
s,@build_cpu@,$build_cpu,;t t |
5235 |
s,@build_vendor@,$build_vendor,;t t |
5236 |
s,@build_os@,$build_os,;t t |
5237 |
s,@host@,$host,;t t |
5238 |
s,@host_cpu@,$host_cpu,;t t |
5239 |
s,@host_vendor@,$host_vendor,;t t |
5240 |
s,@host_os@,$host_os,;t t |
5241 |
s,@target@,$target,;t t |
5242 |
s,@target_cpu@,$target_cpu,;t t |
5243 |
s,@target_vendor@,$target_vendor,;t t |
5244 |
s,@target_os@,$target_os,;t t |
5245 |
s,@ac_cv_library_combo@,$ac_cv_library_combo,;t t |
5246 |
s,@CYGWIN@,$CYGWIN,;t t |
5247 |
s,@RANLIB@,$RANLIB,;t t |
5248 |
s,@AR@,$AR,;t t |
5249 |
s,@DLLTOOL@,$DLLTOOL,;t t |
5250 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
5251 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5252 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5253 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
5254 |
s,@LN_S@,$LN_S,;t t |
5255 |
s,@TAR@,$TAR,;t t |
5256 |
s,@CHOWN@,$CHOWN,;t t |
5257 |
s,@GNUSTEP_ROOT@,$GNUSTEP_ROOT,;t t |
5258 |
s,@root_prefix@,$root_prefix,;t t |
5259 |
s,@MAKEFILES_SUFFIX@,$MAKEFILES_SUFFIX,;t t |
5260 |
s,@HOST_INSTALL@,$HOST_INSTALL,;t t |
5261 |
s,@GNUSTEP_LOCAL_ROOT@,$GNUSTEP_LOCAL_ROOT,;t t |
5262 |
s,@GNUSTEP_NETWORK_ROOT@,$GNUSTEP_NETWORK_ROOT,;t t |
5263 |
s,@GNUSTEP_FLATTENED@,$GNUSTEP_FLATTENED,;t t |
5264 |
s,@GNUSTEP_MULTI_PLATFORM@,$GNUSTEP_MULTI_PLATFORM,;t t |
5265 |
s,@BACKEND_BUNDLE@,$BACKEND_BUNDLE,;t t |
5266 |
s,@EGREP@,$EGREP,;t t |
5267 |
s,@objc_threaded@,$objc_threaded,;t t |
5268 |
s,@ac_cv_objc_threaded@,$ac_cv_objc_threaded,;t t |
5269 |
s,@AUTO_DEPENDENCIES@,$AUTO_DEPENDENCIES,;t t |
5270 |
s,@OBJC_NO_IMPORT_FLAGS@,$OBJC_NO_IMPORT_FLAGS,;t t |
5271 |
s,@INCLUDE_FLAGS@,$INCLUDE_FLAGS,;t t |
5272 |
s,@GNUSTEP_MOVE_OBSOLETE@,$GNUSTEP_MOVE_OBSOLETE,;t t |
5273 |
s,@GNUSTEP_MAKE_VERSION@,$GNUSTEP_MAKE_VERSION,;t t |
5274 |
s,@GNUSTEP_MAKE_MAJOR_VERSION@,$GNUSTEP_MAKE_MAJOR_VERSION,;t t |
5275 |
s,@GNUSTEP_MAKE_MINOR_VERSION@,$GNUSTEP_MAKE_MINOR_VERSION,;t t |
5276 |
s,@GNUSTEP_MAKE_SUBMINOR_VERSION@,$GNUSTEP_MAKE_SUBMINOR_VERSION,;t t |
5277 |
s,@clean_target_os@,$clean_target_os,;t t |
5278 |
s,@clean_target_cpu@,$clean_target_cpu,;t t |
5279 |
s,@clean_target_vendor@,$clean_target_vendor,;t t |
5280 |
s,@LIBOBJS@,$LIBOBJS,;t t |
5281 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5282 |
CEOF |
5283 |
|
5284 |
_ACEOF |
5285 |
|
5286 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5287 |
# Split the substitutions into bite-sized pieces for seds with |
5288 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
5289 |
ac_max_sed_lines=48 |
5290 |
ac_sed_frag=1 # Number of current file. |
5291 |
ac_beg=1 # First line for current file. |
5292 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
5293 |
ac_more_lines=: |
5294 |
ac_sed_cmds= |
5295 |
while $ac_more_lines; do |
5296 |
if test $ac_beg -gt 1; then |
5297 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5298 |
else |
5299 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
5300 |
fi |
5301 |
if test ! -s $tmp/subs.frag; then |
5302 |
ac_more_lines=false |
5303 |
else |
5304 |
# The purpose of the label and of the branching condition is to |
5305 |
# speed up the sed processing (if there are no `@' at all, there |
5306 |
# is no need to browse any of the substitutions). |
5307 |
# These are the two extra sed commands mentioned above. |
5308 |
(echo ':t |
5309 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
5310 |
if test -z "$ac_sed_cmds"; then |
5311 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
5312 |
else |
5313 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
5314 |
fi |
5315 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
5316 |
ac_beg=$ac_end |
5317 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
5318 |
fi |
5319 |
done |
5320 |
if test -z "$ac_sed_cmds"; then |
5321 |
ac_sed_cmds=cat |
5322 |
fi |
5323 |
fi # test -n "$CONFIG_FILES" |
5324 |
|
5325 |
_ACEOF |
5326 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5327 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
5328 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5329 |
case $ac_file in |
5330 |
- | *:- | *:-:* ) # input from stdin |
5331 |
cat >$tmp/stdin |
5332 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5333 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5334 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5335 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5336 |
* ) ac_file_in=$ac_file.in ;; |
5337 |
esac |
5338 |
|
5339 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5340 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5341 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5342 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5343 |
X"$ac_file" : 'X\(//\)$' \| \ |
5344 |
X"$ac_file" : 'X\(/\)' \| \ |
5345 |
. : '\(.\)' 2>/dev/null || |
5346 |
echo X"$ac_file" | |
5347 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5348 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5349 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5350 |
/^X\(\/\).*/{ s//\1/; q; } |
5351 |
s/.*/./; q'` |
5352 |
{ if $as_mkdir_p; then |
5353 |
mkdir -p "$ac_dir" |
5354 |
else |
5355 |
as_dir="$ac_dir" |
5356 |
as_dirs= |
5357 |
while test ! -d "$as_dir"; do |
5358 |
as_dirs="$as_dir $as_dirs" |
5359 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
5360 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5361 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5362 |
X"$as_dir" : 'X\(//\)$' \| \ |
5363 |
X"$as_dir" : 'X\(/\)' \| \ |
5364 |
. : '\(.\)' 2>/dev/null || |
5365 |
echo X"$as_dir" | |
5366 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5367 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5368 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5369 |
/^X\(\/\).*/{ s//\1/; q; } |
5370 |
s/.*/./; q'` |
5371 |
done |
5372 |
test ! -n "$as_dirs" || mkdir $as_dirs |
5373 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
5374 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
5375 |
{ (exit 1); exit 1; }; }; } |
5376 |
|
5377 |
ac_builddir=. |
5378 |
|
5379 |
if test "$ac_dir" != .; then |
5380 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5381 |
# A "../" for each directory in $ac_dir_suffix. |
5382 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
5383 |
else |
5384 |
ac_dir_suffix= ac_top_builddir= |
5385 |
fi |
5386 |
|
5387 |
case $srcdir in |
5388 |
.) # No --srcdir option. We are building in place. |
5389 |
ac_srcdir=. |
5390 |
if test -z "$ac_top_builddir"; then |
5391 |
ac_top_srcdir=. |
5392 |
else |
5393 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
5394 |
fi ;; |
5395 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
5396 |
ac_srcdir=$srcdir$ac_dir_suffix; |
5397 |
ac_top_srcdir=$srcdir ;; |
5398 |
*) # Relative path. |
5399 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
5400 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
5401 |
esac |
5402 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
5403 |
# absolute. |
5404 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
5405 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
5406 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
5407 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
5408 |
|
5409 |
|
5410 |
case $INSTALL in |
5411 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
5412 |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
5413 |
esac |
5414 |
|
5415 |
if test x"$ac_file" != x-; then |
5416 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
5417 |
echo "$as_me: creating $ac_file" >&6;} |
5418 |
rm -f "$ac_file" |
5419 |
fi |
5420 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5421 |
# use $as_me), people would be surprised to read: |
5422 |
# /* config.h. Generated by config.status. */ |
5423 |
if test x"$ac_file" = x-; then |
5424 |
configure_input= |
5425 |
else |
5426 |
configure_input="$ac_file. " |
5427 |
fi |
5428 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
5429 |
sed 's,.*/,,'` by configure." |
5430 |
|
5431 |
# First look for the input files in the build tree, otherwise in the |
5432 |
# src tree. |
5433 |
ac_file_inputs=`IFS=: |
5434 |
for f in $ac_file_in; do |
5435 |
case $f in |
5436 |
-) echo $tmp/stdin ;; |
5437 |
[\\/$]*) |
5438 |
# Absolute (can't be DOS-style, as IFS=:) |
5439 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5440 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5441 |
{ (exit 1); exit 1; }; } |
5442 |
echo $f;; |
5443 |
*) # Relative |
5444 |
if test -f "$f"; then |
5445 |
# Build tree |
5446 |
echo $f |
5447 |
elif test -f "$srcdir/$f"; then |
5448 |
# Source tree |
5449 |
echo $srcdir/$f |
5450 |
else |
5451 |
# /dev/null tree |
5452 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5453 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5454 |
{ (exit 1); exit 1; }; } |
5455 |
fi;; |
5456 |
esac |
5457 |
done` || { (exit 1); exit 1; } |
5458 |
_ACEOF |
5459 |
cat >>$CONFIG_STATUS <<_ACEOF |
5460 |
sed "$ac_vpsub |
5461 |
$extrasub |
5462 |
_ACEOF |
5463 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5464 |
:t |
5465 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
5466 |
s,@configure_input@,$configure_input,;t t |
5467 |
s,@srcdir@,$ac_srcdir,;t t |
5468 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
5469 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
5470 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
5471 |
s,@builddir@,$ac_builddir,;t t |
5472 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
5473 |
s,@top_builddir@,$ac_top_builddir,;t t |
5474 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
5475 |
s,@INSTALL@,$ac_INSTALL,;t t |
5476 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
5477 |
rm -f $tmp/stdin |
5478 |
if test x"$ac_file" != x-; then |
5479 |
mv $tmp/out $ac_file |
5480 |
else |
5481 |
cat $tmp/out |
5482 |
rm -f $tmp/out |
5483 |
fi |
5484 |
|
5485 |
done |
5486 |
_ACEOF |
5487 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5488 |
|
5489 |
# |
5490 |
# CONFIG_HEADER section. |
5491 |
# |
5492 |
|
5493 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
5494 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
5495 |
# |
5496 |
# ac_d sets the value in "#define NAME VALUE" lines. |
5497 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
5498 |
ac_dB='[ ].*$,\1#\2' |
5499 |
ac_dC=' ' |
5500 |
ac_dD=',;t' |
5501 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
5502 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
5503 |
ac_uB='$,\1#\2define\3' |
5504 |
ac_uC=' ' |
5505 |
ac_uD=',;t' |
5506 |
|
5507 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
5508 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5509 |
case $ac_file in |
5510 |
- | *:- | *:-:* ) # input from stdin |
5511 |
cat >$tmp/stdin |
5512 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5513 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5514 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5515 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
5516 |
* ) ac_file_in=$ac_file.in ;; |
5517 |
esac |
5518 |
|
5519 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
5520 |
echo "$as_me: creating $ac_file" >&6;} |
5521 |
|
5522 |
# First look for the input files in the build tree, otherwise in the |
5523 |
# src tree. |
5524 |
ac_file_inputs=`IFS=: |
5525 |
for f in $ac_file_in; do |
5526 |
case $f in |
5527 |
-) echo $tmp/stdin ;; |
5528 |
[\\/$]*) |
5529 |
# Absolute (can't be DOS-style, as IFS=:) |
5530 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5531 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5532 |
{ (exit 1); exit 1; }; } |
5533 |
echo $f;; |
5534 |
*) # Relative |
5535 |
if test -f "$f"; then |
5536 |
# Build tree |
5537 |
echo $f |
5538 |
elif test -f "$srcdir/$f"; then |
5539 |
# Source tree |
5540 |
echo $srcdir/$f |
5541 |
else |
5542 |
# /dev/null tree |
5543 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
5544 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
5545 |
{ (exit 1); exit 1; }; } |
5546 |
fi;; |
5547 |
esac |
5548 |
done` || { (exit 1); exit 1; } |
5549 |
# Remove the trailing spaces. |
5550 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
5551 |
|
5552 |
_ACEOF |
5553 |
|
5554 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
5555 |
# `conftest.undefs', that substitutes the proper values into |
5556 |
# config.h.in to produce config.h. The first handles `#define' |
5557 |
# templates, and the second `#undef' templates. |
5558 |
# And first: Protect against being on the right side of a sed subst in |
5559 |
# config.status. Protect against being in an unquoted here document |
5560 |
# in config.status. |
5561 |
rm -f conftest.defines conftest.undefs |
5562 |
# Using a here document instead of a string reduces the quoting nightmare. |
5563 |
# Putting comments in sed scripts is not portable. |
5564 |
# |
5565 |
# `end' is used to avoid that the second main sed command (meant for |
5566 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
5567 |
# See the Autoconf documentation for `clear'. |
5568 |
cat >confdef2sed.sed <<\_ACEOF |
5569 |
s/[\\&,]/\\&/g |
5570 |
s,[\\$`],\\&,g |
5571 |
t clear |
5572 |
: clear |
5573 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
5574 |
t end |
5575 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
5576 |
: end |
5577 |
_ACEOF |
5578 |
# If some macros were called several times there might be several times |
5579 |
# the same #defines, which is useless. Nevertheless, we may not want to |
5580 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
5581 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
5582 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
5583 |
rm -f confdef2sed.sed |
5584 |
|
5585 |
# This sed command replaces #undef with comments. This is necessary, for |
5586 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
5587 |
# on some systems where configure will not decide to define it. |
5588 |
cat >>conftest.undefs <<\_ACEOF |
5589 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
5590 |
_ACEOF |
5591 |
|
5592 |
# Break up conftest.defines because some shells have a limit on the size |
5593 |
# of here documents, and old seds have small limits too (100 cmds). |
5594 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
5595 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
5596 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
5597 |
echo ' :' >>$CONFIG_STATUS |
5598 |
rm -f conftest.tail |
5599 |
while grep . conftest.defines >/dev/null |
5600 |
do |
5601 |
# Write a limited-size here document to $tmp/defines.sed. |
5602 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
5603 |
# Speed up: don't consider the non `#define' lines. |
5604 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
5605 |
# Work around the forget-to-reset-the-flag bug. |
5606 |
echo 't clr' >>$CONFIG_STATUS |
5607 |
echo ': clr' >>$CONFIG_STATUS |
5608 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
5609 |
echo 'CEOF |
5610 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
5611 |
rm -f $tmp/in |
5612 |
mv $tmp/out $tmp/in |
5613 |
' >>$CONFIG_STATUS |
5614 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
5615 |
rm -f conftest.defines |
5616 |
mv conftest.tail conftest.defines |
5617 |
done |
5618 |
rm -f conftest.defines |
5619 |
echo ' fi # grep' >>$CONFIG_STATUS |
5620 |
echo >>$CONFIG_STATUS |
5621 |
|
5622 |
# Break up conftest.undefs because some shells have a limit on the size |
5623 |
# of here documents, and old seds have small limits too (100 cmds). |
5624 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
5625 |
rm -f conftest.tail |
5626 |
while grep . conftest.undefs >/dev/null |
5627 |
do |
5628 |
# Write a limited-size here document to $tmp/undefs.sed. |
5629 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
5630 |
# Speed up: don't consider the non `#undef' |
5631 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
5632 |
# Work around the forget-to-reset-the-flag bug. |
5633 |
echo 't clr' >>$CONFIG_STATUS |
5634 |
echo ': clr' >>$CONFIG_STATUS |
5635 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
5636 |
echo 'CEOF |
5637 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
5638 |
rm -f $tmp/in |
5639 |
mv $tmp/out $tmp/in |
5640 |
' >>$CONFIG_STATUS |
5641 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
5642 |
rm -f conftest.undefs |
5643 |
mv conftest.tail conftest.undefs |
5644 |
done |
5645 |
rm -f conftest.undefs |
5646 |
|
5647 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5648 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5649 |
# use $as_me), people would be surprised to read: |
5650 |
# /* config.h. Generated by config.status. */ |
5651 |
if test x"$ac_file" = x-; then |
5652 |
echo "/* Generated by configure. */" >$tmp/config.h |
5653 |
else |
5654 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
5655 |
fi |
5656 |
cat $tmp/in >>$tmp/config.h |
5657 |
rm -f $tmp/in |
5658 |
if test x"$ac_file" != x-; then |
5659 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
5660 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
5661 |
echo "$as_me: $ac_file is unchanged" >&6;} |
5662 |
else |
5663 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
5664 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5665 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5666 |
X"$ac_file" : 'X\(//\)$' \| \ |
5667 |
X"$ac_file" : 'X\(/\)' \| \ |
5668 |
. : '\(.\)' 2>/dev/null || |
5669 |
echo X"$ac_file" | |
5670 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5671 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5672 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5673 |
/^X\(\/\).*/{ s//\1/; q; } |
5674 |
s/.*/./; q'` |
5675 |
{ if $as_mkdir_p; then |
5676 |
mkdir -p "$ac_dir" |
5677 |
else |
5678 |
as_dir="$ac_dir" |
5679 |
as_dirs= |
5680 |
while test ! -d "$as_dir"; do |
5681 |
as_dirs="$as_dir $as_dirs" |
5682 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
5683 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5684 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5685 |
X"$as_dir" : 'X\(//\)$' \| \ |
5686 |
X"$as_dir" : 'X\(/\)' \| \ |
5687 |
. : '\(.\)' 2>/dev/null || |
5688 |
echo X"$as_dir" | |
5689 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5690 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5691 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5692 |
/^X\(\/\).*/{ s//\1/; q; } |
5693 |
s/.*/./; q'` |
5694 |
done |
5695 |
test ! -n "$as_dirs" || mkdir $as_dirs |
5696 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
5697 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
5698 |
{ (exit 1); exit 1; }; }; } |
5699 |
|
5700 |
rm -f $ac_file |
5701 |
mv $tmp/config.h $ac_file |
5702 |
fi |
5703 |
else |
5704 |
cat $tmp/config.h |
5705 |
rm -f $tmp/config.h |
5706 |
fi |
5707 |
done |
5708 |
_ACEOF |
5709 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5710 |
|
5711 |
# |
5712 |
# CONFIG_COMMANDS section. |
5713 |
# |
5714 |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
5715 |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
5716 |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5717 |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
5718 |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5719 |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
5720 |
X"$ac_dest" : 'X\(//\)$' \| \ |
5721 |
X"$ac_dest" : 'X\(/\)' \| \ |
5722 |
. : '\(.\)' 2>/dev/null || |
5723 |
echo X"$ac_dest" | |
5724 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
5725 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
5726 |
/^X\(\/\/\)$/{ s//\1/; q; } |
5727 |
/^X\(\/\).*/{ s//\1/; q; } |
5728 |
s/.*/./; q'` |
5729 |
ac_builddir=. |
5730 |
|
5731 |
if test "$ac_dir" != .; then |
5732 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5733 |
# A "../" for each directory in $ac_dir_suffix. |
5734 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
5735 |
else |
5736 |
ac_dir_suffix= ac_top_builddir= |
5737 |
fi |
5738 |
|
5739 |
case $srcdir in |
5740 |
.) # No --srcdir option. We are building in place. |
5741 |
ac_srcdir=. |
5742 |
if test -z "$ac_top_builddir"; then |
5743 |
ac_top_srcdir=. |
5744 |
else |
5745 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
5746 |
fi ;; |
5747 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
5748 |
ac_srcdir=$srcdir$ac_dir_suffix; |
5749 |
ac_top_srcdir=$srcdir ;; |
5750 |
*) # Relative path. |
5751 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
5752 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
5753 |
esac |
5754 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
5755 |
# absolute. |
5756 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
5757 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
5758 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
5759 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
5760 |
|
5761 |
|
5762 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
5763 |
echo "$as_me: executing $ac_dest commands" >&6;} |
5764 |
case $ac_dest in |
5765 |
default ) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;; |
5766 |
esac |
5767 |
done |
5768 |
_ACEOF |
5769 |
|
5770 |
cat >>$CONFIG_STATUS <<\_ACEOF |
5771 |
|
5772 |
{ (exit 0); exit 0; } |
5773 |
_ACEOF |
5774 |
chmod +x $CONFIG_STATUS |
5775 |
ac_clean_files=$ac_clean_files_save |
5776 |
|
5777 |
|
5778 |
# configure is writing to config.log, and then calls config.status. |
5779 |
# config.status does its own redirection, appending to config.log. |
5780 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
5781 |
# by configure, so config.status won't be able to write to it; its |
5782 |
# output is simply discarded. So we exec the FD to /dev/null, |
5783 |
# effectively closing config.log, so it can be properly (re)opened and |
5784 |
# appended to by config.status. When coming back to configure, we |
5785 |
# need to make the FD available again. |
5786 |
if test "$no_create" != yes; then |
5787 |
ac_cs_success=: |
5788 |
ac_config_status_args= |
5789 |
test "$silent" = yes && |
5790 |
ac_config_status_args="$ac_config_status_args --quiet" |
5791 |
exec 5>/dev/null |
5792 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
5793 |
exec 5>>config.log |
5794 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
5795 |
# would make configure fail if this is the last instruction. |
5796 |
$ac_cs_success || { (exit 1); exit 1; } |
5797 |
fi |
5798 |
|