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="Source/NSApplication.m" |
274 |
# Factoring default headers for most tests. |
275 |
ac_includes_default="\ |
276 |
#include <stdio.h> |
277 |
#if HAVE_SYS_TYPES_H |
278 |
# include <sys/types.h> |
279 |
#endif |
280 |
#if HAVE_SYS_STAT_H |
281 |
# include <sys/stat.h> |
282 |
#endif |
283 |
#if STDC_HEADERS |
284 |
# include <stdlib.h> |
285 |
# include <stddef.h> |
286 |
#else |
287 |
# if HAVE_STDLIB_H |
288 |
# include <stdlib.h> |
289 |
# endif |
290 |
#endif |
291 |
#if HAVE_STRING_H |
292 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
293 |
# include <memory.h> |
294 |
# endif |
295 |
# include <string.h> |
296 |
#endif |
297 |
#if HAVE_STRINGS_H |
298 |
# include <strings.h> |
299 |
#endif |
300 |
#if HAVE_INTTYPES_H |
301 |
# include <inttypes.h> |
302 |
#else |
303 |
# if HAVE_STDINT_H |
304 |
# include <stdint.h> |
305 |
# endif |
306 |
#endif |
307 |
#if HAVE_UNISTD_H |
308 |
# include <unistd.h> |
309 |
#endif" |
310 |
|
311 |
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BUILD_GSND GNUSTEP_GUI_VERSION GNUSTEP_GUI_MAJOR_VERSION GNUSTEP_GUI_MINOR_VERSION GNUSTEP_GUI_SUBMINOR_VERSION ADDITIONAL_LIB_DIRS ADDITIONAL_INCLUDE_DIRS ADDITIONAL_DEPENDS LIBOBJS LTLIBOBJS' |
312 |
ac_subst_files='' |
313 |
|
314 |
# Initialize some variables set by options. |
315 |
ac_init_help= |
316 |
ac_init_version=false |
317 |
# The variables have the same names as the options, with |
318 |
# dashes changed to underlines. |
319 |
cache_file=/dev/null |
320 |
exec_prefix=NONE |
321 |
no_create= |
322 |
no_recursion= |
323 |
prefix=NONE |
324 |
program_prefix=NONE |
325 |
program_suffix=NONE |
326 |
program_transform_name=s,x,x, |
327 |
silent= |
328 |
site= |
329 |
srcdir= |
330 |
verbose= |
331 |
x_includes=NONE |
332 |
x_libraries=NONE |
333 |
|
334 |
# Installation directory options. |
335 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
336 |
# and all the variables that are supposed to be based on exec_prefix |
337 |
# by default will actually change. |
338 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
339 |
bindir='${exec_prefix}/bin' |
340 |
sbindir='${exec_prefix}/sbin' |
341 |
libexecdir='${exec_prefix}/libexec' |
342 |
datadir='${prefix}/share' |
343 |
sysconfdir='${prefix}/etc' |
344 |
sharedstatedir='${prefix}/com' |
345 |
localstatedir='${prefix}/var' |
346 |
libdir='${exec_prefix}/lib' |
347 |
includedir='${prefix}/include' |
348 |
oldincludedir='/usr/include' |
349 |
infodir='${prefix}/info' |
350 |
mandir='${prefix}/man' |
351 |
|
352 |
ac_prev= |
353 |
for ac_option |
354 |
do |
355 |
# If the previous option needs an argument, assign it. |
356 |
if test -n "$ac_prev"; then |
357 |
eval "$ac_prev=\$ac_option" |
358 |
ac_prev= |
359 |
continue |
360 |
fi |
361 |
|
362 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
363 |
|
364 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
365 |
|
366 |
case $ac_option in |
367 |
|
368 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
369 |
ac_prev=bindir ;; |
370 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
371 |
bindir=$ac_optarg ;; |
372 |
|
373 |
-build | --build | --buil | --bui | --bu) |
374 |
ac_prev=build_alias ;; |
375 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
376 |
build_alias=$ac_optarg ;; |
377 |
|
378 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
379 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
380 |
ac_prev=cache_file ;; |
381 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
382 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
383 |
cache_file=$ac_optarg ;; |
384 |
|
385 |
--config-cache | -C) |
386 |
cache_file=config.cache ;; |
387 |
|
388 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
389 |
ac_prev=datadir ;; |
390 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
391 |
| --da=*) |
392 |
datadir=$ac_optarg ;; |
393 |
|
394 |
-disable-* | --disable-*) |
395 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
396 |
# Reject names that are not valid shell variable names. |
397 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
398 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
399 |
{ (exit 1); exit 1; }; } |
400 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
401 |
eval "enable_$ac_feature=no" ;; |
402 |
|
403 |
-enable-* | --enable-*) |
404 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
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 |
case $ac_option in |
411 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
412 |
*) ac_optarg=yes ;; |
413 |
esac |
414 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
415 |
|
416 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
417 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
418 |
| --exec | --exe | --ex) |
419 |
ac_prev=exec_prefix ;; |
420 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
421 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
422 |
| --exec=* | --exe=* | --ex=*) |
423 |
exec_prefix=$ac_optarg ;; |
424 |
|
425 |
-gas | --gas | --ga | --g) |
426 |
# Obsolete; use --with-gas. |
427 |
with_gas=yes ;; |
428 |
|
429 |
-help | --help | --hel | --he | -h) |
430 |
ac_init_help=long ;; |
431 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
432 |
ac_init_help=recursive ;; |
433 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
434 |
ac_init_help=short ;; |
435 |
|
436 |
-host | --host | --hos | --ho) |
437 |
ac_prev=host_alias ;; |
438 |
-host=* | --host=* | --hos=* | --ho=*) |
439 |
host_alias=$ac_optarg ;; |
440 |
|
441 |
-includedir | --includedir | --includedi | --included | --include \ |
442 |
| --includ | --inclu | --incl | --inc) |
443 |
ac_prev=includedir ;; |
444 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
445 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
446 |
includedir=$ac_optarg ;; |
447 |
|
448 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
449 |
ac_prev=infodir ;; |
450 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
451 |
infodir=$ac_optarg ;; |
452 |
|
453 |
-libdir | --libdir | --libdi | --libd) |
454 |
ac_prev=libdir ;; |
455 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
456 |
libdir=$ac_optarg ;; |
457 |
|
458 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
459 |
| --libexe | --libex | --libe) |
460 |
ac_prev=libexecdir ;; |
461 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
462 |
| --libexe=* | --libex=* | --libe=*) |
463 |
libexecdir=$ac_optarg ;; |
464 |
|
465 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
466 |
| --localstate | --localstat | --localsta | --localst \ |
467 |
| --locals | --local | --loca | --loc | --lo) |
468 |
ac_prev=localstatedir ;; |
469 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
470 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
471 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
472 |
localstatedir=$ac_optarg ;; |
473 |
|
474 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
475 |
ac_prev=mandir ;; |
476 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
477 |
mandir=$ac_optarg ;; |
478 |
|
479 |
-nfp | --nfp | --nf) |
480 |
# Obsolete; use --without-fp. |
481 |
with_fp=no ;; |
482 |
|
483 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
484 |
| --no-cr | --no-c | -n) |
485 |
no_create=yes ;; |
486 |
|
487 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
488 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
489 |
no_recursion=yes ;; |
490 |
|
491 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
492 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
493 |
| --oldin | --oldi | --old | --ol | --o) |
494 |
ac_prev=oldincludedir ;; |
495 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
496 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
497 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
498 |
oldincludedir=$ac_optarg ;; |
499 |
|
500 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
501 |
ac_prev=prefix ;; |
502 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
503 |
prefix=$ac_optarg ;; |
504 |
|
505 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
506 |
| --program-pre | --program-pr | --program-p) |
507 |
ac_prev=program_prefix ;; |
508 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
509 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
510 |
program_prefix=$ac_optarg ;; |
511 |
|
512 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
513 |
| --program-suf | --program-su | --program-s) |
514 |
ac_prev=program_suffix ;; |
515 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
516 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
517 |
program_suffix=$ac_optarg ;; |
518 |
|
519 |
-program-transform-name | --program-transform-name \ |
520 |
| --program-transform-nam | --program-transform-na \ |
521 |
| --program-transform-n | --program-transform- \ |
522 |
| --program-transform | --program-transfor \ |
523 |
| --program-transfo | --program-transf \ |
524 |
| --program-trans | --program-tran \ |
525 |
| --progr-tra | --program-tr | --program-t) |
526 |
ac_prev=program_transform_name ;; |
527 |
-program-transform-name=* | --program-transform-name=* \ |
528 |
| --program-transform-nam=* | --program-transform-na=* \ |
529 |
| --program-transform-n=* | --program-transform-=* \ |
530 |
| --program-transform=* | --program-transfor=* \ |
531 |
| --program-transfo=* | --program-transf=* \ |
532 |
| --program-trans=* | --program-tran=* \ |
533 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
534 |
program_transform_name=$ac_optarg ;; |
535 |
|
536 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
537 |
| -silent | --silent | --silen | --sile | --sil) |
538 |
silent=yes ;; |
539 |
|
540 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
541 |
ac_prev=sbindir ;; |
542 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
543 |
| --sbi=* | --sb=*) |
544 |
sbindir=$ac_optarg ;; |
545 |
|
546 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
547 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
548 |
| --sharedst | --shareds | --shared | --share | --shar \ |
549 |
| --sha | --sh) |
550 |
ac_prev=sharedstatedir ;; |
551 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
552 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
553 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
554 |
| --sha=* | --sh=*) |
555 |
sharedstatedir=$ac_optarg ;; |
556 |
|
557 |
-site | --site | --sit) |
558 |
ac_prev=site ;; |
559 |
-site=* | --site=* | --sit=*) |
560 |
site=$ac_optarg ;; |
561 |
|
562 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
563 |
ac_prev=srcdir ;; |
564 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
565 |
srcdir=$ac_optarg ;; |
566 |
|
567 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
568 |
| --syscon | --sysco | --sysc | --sys | --sy) |
569 |
ac_prev=sysconfdir ;; |
570 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
571 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
572 |
sysconfdir=$ac_optarg ;; |
573 |
|
574 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
575 |
ac_prev=target_alias ;; |
576 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
577 |
target_alias=$ac_optarg ;; |
578 |
|
579 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
580 |
verbose=yes ;; |
581 |
|
582 |
-version | --version | --versio | --versi | --vers | -V) |
583 |
ac_init_version=: ;; |
584 |
|
585 |
-with-* | --with-*) |
586 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
587 |
# Reject names that are not valid shell variable names. |
588 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
589 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
590 |
{ (exit 1); exit 1; }; } |
591 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
592 |
case $ac_option in |
593 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
594 |
*) ac_optarg=yes ;; |
595 |
esac |
596 |
eval "with_$ac_package='$ac_optarg'" ;; |
597 |
|
598 |
-without-* | --without-*) |
599 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
600 |
# Reject names that are not valid shell variable names. |
601 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
602 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
603 |
{ (exit 1); exit 1; }; } |
604 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
605 |
eval "with_$ac_package=no" ;; |
606 |
|
607 |
--x) |
608 |
# Obsolete; use --with-x. |
609 |
with_x=yes ;; |
610 |
|
611 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
612 |
| --x-incl | --x-inc | --x-in | --x-i) |
613 |
ac_prev=x_includes ;; |
614 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
615 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
616 |
x_includes=$ac_optarg ;; |
617 |
|
618 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
619 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
620 |
ac_prev=x_libraries ;; |
621 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
622 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
623 |
x_libraries=$ac_optarg ;; |
624 |
|
625 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
626 |
Try \`$0 --help' for more information." >&2 |
627 |
{ (exit 1); exit 1; }; } |
628 |
;; |
629 |
|
630 |
*=*) |
631 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
632 |
# Reject names that are not valid shell variable names. |
633 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
634 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
635 |
{ (exit 1); exit 1; }; } |
636 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
637 |
eval "$ac_envvar='$ac_optarg'" |
638 |
export $ac_envvar ;; |
639 |
|
640 |
*) |
641 |
# FIXME: should be removed in autoconf 3.0. |
642 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
643 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
644 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
645 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
646 |
;; |
647 |
|
648 |
esac |
649 |
done |
650 |
|
651 |
if test -n "$ac_prev"; then |
652 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
653 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
654 |
{ (exit 1); exit 1; }; } |
655 |
fi |
656 |
|
657 |
# Be sure to have absolute paths. |
658 |
for ac_var in exec_prefix prefix |
659 |
do |
660 |
eval ac_val=$`echo $ac_var` |
661 |
case $ac_val in |
662 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
663 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
664 |
{ (exit 1); exit 1; }; };; |
665 |
esac |
666 |
done |
667 |
|
668 |
# Be sure to have absolute paths. |
669 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
670 |
localstatedir libdir includedir oldincludedir infodir mandir |
671 |
do |
672 |
eval ac_val=$`echo $ac_var` |
673 |
case $ac_val in |
674 |
[\\/$]* | ?:[\\/]* ) ;; |
675 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
676 |
{ (exit 1); exit 1; }; };; |
677 |
esac |
678 |
done |
679 |
|
680 |
# There might be people who depend on the old broken behavior: `$host' |
681 |
# used to hold the argument of --host etc. |
682 |
# FIXME: To remove some day. |
683 |
build=$build_alias |
684 |
host=$host_alias |
685 |
target=$target_alias |
686 |
|
687 |
# FIXME: To remove some day. |
688 |
if test "x$host_alias" != x; then |
689 |
if test "x$build_alias" = x; then |
690 |
cross_compiling=maybe |
691 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
692 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
693 |
elif test "x$build_alias" != "x$host_alias"; then |
694 |
cross_compiling=yes |
695 |
fi |
696 |
fi |
697 |
|
698 |
ac_tool_prefix= |
699 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
700 |
|
701 |
test "$silent" = yes && exec 6>/dev/null |
702 |
|
703 |
|
704 |
# Find the source files, if location was not specified. |
705 |
if test -z "$srcdir"; then |
706 |
ac_srcdir_defaulted=yes |
707 |
# Try the directory containing this script, then its parent. |
708 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
709 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
710 |
X"$0" : 'X\(//\)[^/]' \| \ |
711 |
X"$0" : 'X\(//\)$' \| \ |
712 |
X"$0" : 'X\(/\)' \| \ |
713 |
. : '\(.\)' 2>/dev/null || |
714 |
echo X"$0" | |
715 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
716 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
717 |
/^X\(\/\/\)$/{ s//\1/; q; } |
718 |
/^X\(\/\).*/{ s//\1/; q; } |
719 |
s/.*/./; q'` |
720 |
srcdir=$ac_confdir |
721 |
if test ! -r $srcdir/$ac_unique_file; then |
722 |
srcdir=.. |
723 |
fi |
724 |
else |
725 |
ac_srcdir_defaulted=no |
726 |
fi |
727 |
if test ! -r $srcdir/$ac_unique_file; then |
728 |
if test "$ac_srcdir_defaulted" = yes; then |
729 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
730 |
{ (exit 1); exit 1; }; } |
731 |
else |
732 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
733 |
{ (exit 1); exit 1; }; } |
734 |
fi |
735 |
fi |
736 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
737 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
738 |
{ (exit 1); exit 1; }; } |
739 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
740 |
ac_env_build_alias_set=${build_alias+set} |
741 |
ac_env_build_alias_value=$build_alias |
742 |
ac_cv_env_build_alias_set=${build_alias+set} |
743 |
ac_cv_env_build_alias_value=$build_alias |
744 |
ac_env_host_alias_set=${host_alias+set} |
745 |
ac_env_host_alias_value=$host_alias |
746 |
ac_cv_env_host_alias_set=${host_alias+set} |
747 |
ac_cv_env_host_alias_value=$host_alias |
748 |
ac_env_target_alias_set=${target_alias+set} |
749 |
ac_env_target_alias_value=$target_alias |
750 |
ac_cv_env_target_alias_set=${target_alias+set} |
751 |
ac_cv_env_target_alias_value=$target_alias |
752 |
ac_env_CC_set=${CC+set} |
753 |
ac_env_CC_value=$CC |
754 |
ac_cv_env_CC_set=${CC+set} |
755 |
ac_cv_env_CC_value=$CC |
756 |
ac_env_CFLAGS_set=${CFLAGS+set} |
757 |
ac_env_CFLAGS_value=$CFLAGS |
758 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
759 |
ac_cv_env_CFLAGS_value=$CFLAGS |
760 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
761 |
ac_env_LDFLAGS_value=$LDFLAGS |
762 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
763 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
764 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
765 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
766 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
768 |
ac_env_CPP_set=${CPP+set} |
769 |
ac_env_CPP_value=$CPP |
770 |
ac_cv_env_CPP_set=${CPP+set} |
771 |
ac_cv_env_CPP_value=$CPP |
772 |
|
773 |
# |
774 |
# Report the --help message. |
775 |
# |
776 |
if test "$ac_init_help" = "long"; then |
777 |
# Omit some internal or obsolete options to make the list less imposing. |
778 |
# This message is too long to be a string in the A/UX 3.1 sh. |
779 |
cat <<_ACEOF |
780 |
\`configure' configures this package to adapt to many kinds of systems. |
781 |
|
782 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
783 |
|
784 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
785 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
786 |
|
787 |
Defaults for the options are specified in brackets. |
788 |
|
789 |
Configuration: |
790 |
-h, --help display this help and exit |
791 |
--help=short display options specific to this package |
792 |
--help=recursive display the short help of all the included packages |
793 |
-V, --version display version information and exit |
794 |
-q, --quiet, --silent do not print \`checking...' messages |
795 |
--cache-file=FILE cache test results in FILE [disabled] |
796 |
-C, --config-cache alias for \`--cache-file=config.cache' |
797 |
-n, --no-create do not create output files |
798 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
799 |
|
800 |
_ACEOF |
801 |
|
802 |
cat <<_ACEOF |
803 |
Installation directories: |
804 |
--prefix=PREFIX install architecture-independent files in PREFIX |
805 |
[$ac_default_prefix] |
806 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
807 |
[PREFIX] |
808 |
|
809 |
By default, \`make install' will install all the files in |
810 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
811 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
812 |
for instance \`--prefix=\$HOME'. |
813 |
|
814 |
For better control, use the options below. |
815 |
|
816 |
Fine tuning of the installation directories: |
817 |
--bindir=DIR user executables [EPREFIX/bin] |
818 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
819 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
820 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
821 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
822 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
823 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
824 |
--libdir=DIR object code libraries [EPREFIX/lib] |
825 |
--includedir=DIR C header files [PREFIX/include] |
826 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
827 |
--infodir=DIR info documentation [PREFIX/info] |
828 |
--mandir=DIR man documentation [PREFIX/man] |
829 |
_ACEOF |
830 |
|
831 |
cat <<\_ACEOF |
832 |
|
833 |
System types: |
834 |
--build=BUILD configure for building on BUILD [guessed] |
835 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
836 |
--target=TARGET configure for building compilers for TARGET [HOST] |
837 |
_ACEOF |
838 |
fi |
839 |
|
840 |
if test -n "$ac_init_help"; then |
841 |
|
842 |
cat <<\_ACEOF |
843 |
|
844 |
Optional Features: |
845 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
846 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
847 |
--disable-gsnd Disable gsnd server |
848 |
|
849 |
Optional Packages: |
850 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
851 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
852 |
--with-jpeg-library=DIR JPEG library file are in DIR |
853 |
--with-jpeg-include=DIR JPEG include files are in DIR |
854 |
--with-tiff-library=DIR TIFF library file are in DIR |
855 |
--with-tiff-include=DIR TIFF include files are in DIR |
856 |
--with-audiofile-library=DIR AUDIOFILE library file are in DIR |
857 |
--with-audiofile-include=DIR AUDIOFILE include files are in DIR |
858 |
|
859 |
Some influential environment variables: |
860 |
CC C compiler command |
861 |
CFLAGS C compiler flags |
862 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
863 |
nonstandard directory <lib dir> |
864 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
865 |
headers in a nonstandard directory <include dir> |
866 |
CPP C preprocessor |
867 |
|
868 |
Use these variables to override the choices made by `configure' or to help |
869 |
it to find libraries and programs with nonstandard names/locations. |
870 |
|
871 |
_ACEOF |
872 |
fi |
873 |
|
874 |
if test "$ac_init_help" = "recursive"; then |
875 |
# If there are subdirs, report their specific --help. |
876 |
ac_popdir=`pwd` |
877 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
878 |
test -d $ac_dir || continue |
879 |
ac_builddir=. |
880 |
|
881 |
if test "$ac_dir" != .; then |
882 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
883 |
# A "../" for each directory in $ac_dir_suffix. |
884 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
885 |
else |
886 |
ac_dir_suffix= ac_top_builddir= |
887 |
fi |
888 |
|
889 |
case $srcdir in |
890 |
.) # No --srcdir option. We are building in place. |
891 |
ac_srcdir=. |
892 |
if test -z "$ac_top_builddir"; then |
893 |
ac_top_srcdir=. |
894 |
else |
895 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
896 |
fi ;; |
897 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
898 |
ac_srcdir=$srcdir$ac_dir_suffix; |
899 |
ac_top_srcdir=$srcdir ;; |
900 |
*) # Relative path. |
901 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
902 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
903 |
esac |
904 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
905 |
# absolute. |
906 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
907 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
908 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
909 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
910 |
|
911 |
cd $ac_dir |
912 |
# Check for guested configure; otherwise get Cygnus style configure. |
913 |
if test -f $ac_srcdir/configure.gnu; then |
914 |
echo |
915 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
916 |
elif test -f $ac_srcdir/configure; then |
917 |
echo |
918 |
$SHELL $ac_srcdir/configure --help=recursive |
919 |
elif test -f $ac_srcdir/configure.ac || |
920 |
test -f $ac_srcdir/configure.in; then |
921 |
echo |
922 |
$ac_configure --help |
923 |
else |
924 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
925 |
fi |
926 |
cd $ac_popdir |
927 |
done |
928 |
fi |
929 |
|
930 |
test -n "$ac_init_help" && exit 0 |
931 |
if $ac_init_version; then |
932 |
cat <<\_ACEOF |
933 |
|
934 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
935 |
Free Software Foundation, Inc. |
936 |
This configure script is free software; the Free Software Foundation |
937 |
gives unlimited permission to copy, distribute and modify it. |
938 |
_ACEOF |
939 |
exit 0 |
940 |
fi |
941 |
exec 5>config.log |
942 |
cat >&5 <<_ACEOF |
943 |
This file contains any messages produced by compilers while |
944 |
running configure, to aid debugging if configure makes a mistake. |
945 |
|
946 |
It was created by $as_me, which was |
947 |
generated by GNU Autoconf 2.57. Invocation command line was |
948 |
|
949 |
$ $0 $@ |
950 |
|
951 |
_ACEOF |
952 |
{ |
953 |
cat <<_ASUNAME |
954 |
## --------- ## |
955 |
## Platform. ## |
956 |
## --------- ## |
957 |
|
958 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
959 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
960 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
961 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
962 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
963 |
|
964 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
965 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
966 |
|
967 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
968 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
969 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
970 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
971 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
972 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
973 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
974 |
|
975 |
_ASUNAME |
976 |
|
977 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
978 |
for as_dir in $PATH |
979 |
do |
980 |
IFS=$as_save_IFS |
981 |
test -z "$as_dir" && as_dir=. |
982 |
echo "PATH: $as_dir" |
983 |
done |
984 |
|
985 |
} >&5 |
986 |
|
987 |
cat >&5 <<_ACEOF |
988 |
|
989 |
|
990 |
## ----------- ## |
991 |
## Core tests. ## |
992 |
## ----------- ## |
993 |
|
994 |
_ACEOF |
995 |
|
996 |
|
997 |
# Keep a trace of the command line. |
998 |
# Strip out --no-create and --no-recursion so they do not pile up. |
999 |
# Strip out --silent because we don't want to record it for future runs. |
1000 |
# Also quote any args containing shell meta-characters. |
1001 |
# Make two passes to allow for proper duplicate-argument suppression. |
1002 |
ac_configure_args= |
1003 |
ac_configure_args0= |
1004 |
ac_configure_args1= |
1005 |
ac_sep= |
1006 |
ac_must_keep_next=false |
1007 |
for ac_pass in 1 2 |
1008 |
do |
1009 |
for ac_arg |
1010 |
do |
1011 |
case $ac_arg in |
1012 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1013 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1014 |
| -silent | --silent | --silen | --sile | --sil) |
1015 |
continue ;; |
1016 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1017 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1018 |
esac |
1019 |
case $ac_pass in |
1020 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1021 |
2) |
1022 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1023 |
if test $ac_must_keep_next = true; then |
1024 |
ac_must_keep_next=false # Got value, back to normal. |
1025 |
else |
1026 |
case $ac_arg in |
1027 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1028 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1029 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1030 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1031 |
case "$ac_configure_args0 " in |
1032 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1033 |
esac |
1034 |
;; |
1035 |
-* ) ac_must_keep_next=true ;; |
1036 |
esac |
1037 |
fi |
1038 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1039 |
# Get rid of the leading space. |
1040 |
ac_sep=" " |
1041 |
;; |
1042 |
esac |
1043 |
done |
1044 |
done |
1045 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1046 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1047 |
|
1048 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1049 |
# config.log. We remove comments because anyway the quotes in there |
1050 |
# would cause problems or look ugly. |
1051 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
1052 |
# such as our DU 5.0 friend, will then `close' the trap. |
1053 |
trap 'exit_status=$? |
1054 |
# Save into config.log some information that might help in debugging. |
1055 |
{ |
1056 |
echo |
1057 |
|
1058 |
cat <<\_ASBOX |
1059 |
## ---------------- ## |
1060 |
## Cache variables. ## |
1061 |
## ---------------- ## |
1062 |
_ASBOX |
1063 |
echo |
1064 |
# The following way of writing the cache mishandles newlines in values, |
1065 |
{ |
1066 |
(set) 2>&1 | |
1067 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1068 |
*ac_space=\ *) |
1069 |
sed -n \ |
1070 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1071 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1072 |
;; |
1073 |
*) |
1074 |
sed -n \ |
1075 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1076 |
;; |
1077 |
esac; |
1078 |
} |
1079 |
echo |
1080 |
|
1081 |
cat <<\_ASBOX |
1082 |
## ----------------- ## |
1083 |
## Output variables. ## |
1084 |
## ----------------- ## |
1085 |
_ASBOX |
1086 |
echo |
1087 |
for ac_var in $ac_subst_vars |
1088 |
do |
1089 |
eval ac_val=$`echo $ac_var` |
1090 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1091 |
done | sort |
1092 |
echo |
1093 |
|
1094 |
if test -n "$ac_subst_files"; then |
1095 |
cat <<\_ASBOX |
1096 |
## ------------- ## |
1097 |
## Output files. ## |
1098 |
## ------------- ## |
1099 |
_ASBOX |
1100 |
echo |
1101 |
for ac_var in $ac_subst_files |
1102 |
do |
1103 |
eval ac_val=$`echo $ac_var` |
1104 |
echo "$ac_var='"'"'$ac_val'"'"'" |
1105 |
done | sort |
1106 |
echo |
1107 |
fi |
1108 |
|
1109 |
if test -s confdefs.h; then |
1110 |
cat <<\_ASBOX |
1111 |
## ----------- ## |
1112 |
## confdefs.h. ## |
1113 |
## ----------- ## |
1114 |
_ASBOX |
1115 |
echo |
1116 |
sed "/^$/d" confdefs.h | sort |
1117 |
echo |
1118 |
fi |
1119 |
test "$ac_signal" != 0 && |
1120 |
echo "$as_me: caught signal $ac_signal" |
1121 |
echo "$as_me: exit $exit_status" |
1122 |
} >&5 |
1123 |
rm -f core core.* *.core && |
1124 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1125 |
exit $exit_status |
1126 |
' 0 |
1127 |
for ac_signal in 1 2 13 15; do |
1128 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1129 |
done |
1130 |
ac_signal=0 |
1131 |
|
1132 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1133 |
rm -rf conftest* confdefs.h |
1134 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1135 |
echo >confdefs.h |
1136 |
|
1137 |
# Predefined preprocessor variables. |
1138 |
|
1139 |
cat >>confdefs.h <<_ACEOF |
1140 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1141 |
_ACEOF |
1142 |
|
1143 |
|
1144 |
cat >>confdefs.h <<_ACEOF |
1145 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1146 |
_ACEOF |
1147 |
|
1148 |
|
1149 |
cat >>confdefs.h <<_ACEOF |
1150 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1151 |
_ACEOF |
1152 |
|
1153 |
|
1154 |
cat >>confdefs.h <<_ACEOF |
1155 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1156 |
_ACEOF |
1157 |
|
1158 |
|
1159 |
cat >>confdefs.h <<_ACEOF |
1160 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1161 |
_ACEOF |
1162 |
|
1163 |
|
1164 |
# Let the site file select an alternate cache file if it wants to. |
1165 |
# Prefer explicitly selected file to automatically selected ones. |
1166 |
if test -z "$CONFIG_SITE"; then |
1167 |
if test "x$prefix" != xNONE; then |
1168 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1169 |
else |
1170 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1171 |
fi |
1172 |
fi |
1173 |
for ac_site_file in $CONFIG_SITE; do |
1174 |
if test -r "$ac_site_file"; then |
1175 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1176 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1177 |
sed 's/^/| /' "$ac_site_file" >&5 |
1178 |
. "$ac_site_file" |
1179 |
fi |
1180 |
done |
1181 |
|
1182 |
if test -r "$cache_file"; then |
1183 |
# Some versions of bash will fail to source /dev/null (special |
1184 |
# files actually), so we avoid doing that. |
1185 |
if test -f "$cache_file"; then |
1186 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1187 |
echo "$as_me: loading cache $cache_file" >&6;} |
1188 |
case $cache_file in |
1189 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1190 |
*) . ./$cache_file;; |
1191 |
esac |
1192 |
fi |
1193 |
else |
1194 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1195 |
echo "$as_me: creating cache $cache_file" >&6;} |
1196 |
>$cache_file |
1197 |
fi |
1198 |
|
1199 |
# Check that the precious variables saved in the cache have kept the same |
1200 |
# value. |
1201 |
ac_cache_corrupted=false |
1202 |
for ac_var in `(set) 2>&1 | |
1203 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1204 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1205 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1206 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1207 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
1208 |
case $ac_old_set,$ac_new_set in |
1209 |
set,) |
1210 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1211 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1212 |
ac_cache_corrupted=: ;; |
1213 |
,set) |
1214 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1215 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1216 |
ac_cache_corrupted=: ;; |
1217 |
,);; |
1218 |
*) |
1219 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1220 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1221 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1222 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1223 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1224 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1225 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1226 |
ac_cache_corrupted=: |
1227 |
fi;; |
1228 |
esac |
1229 |
# Pass precious variables to config.status. |
1230 |
if test "$ac_new_set" = set; then |
1231 |
case $ac_new_val in |
1232 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1233 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1234 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1235 |
esac |
1236 |
case " $ac_configure_args " in |
1237 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1238 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1239 |
esac |
1240 |
fi |
1241 |
done |
1242 |
if $ac_cache_corrupted; then |
1243 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1244 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1245 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1246 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1247 |
{ (exit 1); exit 1; }; } |
1248 |
fi |
1249 |
|
1250 |
ac_ext=c |
1251 |
ac_cpp='$CPP $CPPFLAGS' |
1252 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1253 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1254 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1255 |
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 |
|
1276 |
if test -z "$GNUSTEP_SYSTEM_ROOT"; then |
1277 |
{ { echo "$as_me:$LINENO: error: You must run the GNUstep initialization script first!" >&5 |
1278 |
echo "$as_me: error: You must run the GNUstep initialization script first!" >&2;} |
1279 |
{ (exit 1); exit 1; }; } |
1280 |
fi |
1281 |
|
1282 |
#-------------------------------------------------------------------- |
1283 |
# Use config.guess, config.sub and install-sh provided by gnustep-make |
1284 |
#-------------------------------------------------------------------- |
1285 |
ac_aux_dir= |
1286 |
for ac_dir in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES; do |
1287 |
if test -f $ac_dir/install-sh; then |
1288 |
ac_aux_dir=$ac_dir |
1289 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
1290 |
break |
1291 |
elif test -f $ac_dir/install.sh; then |
1292 |
ac_aux_dir=$ac_dir |
1293 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1294 |
break |
1295 |
elif test -f $ac_dir/shtool; then |
1296 |
ac_aux_dir=$ac_dir |
1297 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
1298 |
break |
1299 |
fi |
1300 |
done |
1301 |
if test -z "$ac_aux_dir"; then |
1302 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5 |
1303 |
echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;} |
1304 |
{ (exit 1); exit 1; }; } |
1305 |
fi |
1306 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1307 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1308 |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1309 |
|
1310 |
|
1311 |
ac_config_headers="$ac_config_headers Headers/Additions/GNUstepGUI/config.h" |
1312 |
|
1313 |
|
1314 |
#-------------------------------------------------------------------- |
1315 |
# Determine the host, build, and target systems |
1316 |
#-------------------------------------------------------------------- |
1317 |
# Make sure we can run config.sub. |
1318 |
$ac_config_sub sun4 >/dev/null 2>&1 || |
1319 |
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1320 |
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1321 |
{ (exit 1); exit 1; }; } |
1322 |
|
1323 |
echo "$as_me:$LINENO: checking build system type" >&5 |
1324 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1325 |
if test "${ac_cv_build+set}" = set; then |
1326 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1327 |
else |
1328 |
ac_cv_build_alias=$build_alias |
1329 |
test -z "$ac_cv_build_alias" && |
1330 |
ac_cv_build_alias=`$ac_config_guess` |
1331 |
test -z "$ac_cv_build_alias" && |
1332 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1333 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1334 |
{ (exit 1); exit 1; }; } |
1335 |
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1336 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1337 |
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1338 |
{ (exit 1); exit 1; }; } |
1339 |
|
1340 |
fi |
1341 |
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1342 |
echo "${ECHO_T}$ac_cv_build" >&6 |
1343 |
build=$ac_cv_build |
1344 |
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1345 |
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1346 |
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1347 |
|
1348 |
|
1349 |
echo "$as_me:$LINENO: checking host system type" >&5 |
1350 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1351 |
if test "${ac_cv_host+set}" = set; then |
1352 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1353 |
else |
1354 |
ac_cv_host_alias=$host_alias |
1355 |
test -z "$ac_cv_host_alias" && |
1356 |
ac_cv_host_alias=$ac_cv_build_alias |
1357 |
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1358 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1359 |
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1360 |
{ (exit 1); exit 1; }; } |
1361 |
|
1362 |
fi |
1363 |
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1364 |
echo "${ECHO_T}$ac_cv_host" >&6 |
1365 |
host=$ac_cv_host |
1366 |
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1367 |
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1368 |
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1369 |
|
1370 |
|
1371 |
echo "$as_me:$LINENO: checking target system type" >&5 |
1372 |
echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
1373 |
if test "${ac_cv_target+set}" = set; then |
1374 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1375 |
else |
1376 |
ac_cv_target_alias=$target_alias |
1377 |
test "x$ac_cv_target_alias" = "x" && |
1378 |
ac_cv_target_alias=$ac_cv_host_alias |
1379 |
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
1380 |
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
1381 |
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
1382 |
{ (exit 1); exit 1; }; } |
1383 |
|
1384 |
fi |
1385 |
echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1386 |
echo "${ECHO_T}$ac_cv_target" >&6 |
1387 |
target=$ac_cv_target |
1388 |
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1389 |
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1390 |
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1391 |
|
1392 |
|
1393 |
# The aliases save the names the user supplied, while $host etc. |
1394 |
# will get canonicalized. |
1395 |
test -n "$target_alias" && |
1396 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
1397 |
NONENONEs,x,x, && |
1398 |
program_prefix=${target_alias}- |
1399 |
|
1400 |
#-------------------------------------------------------------------- |
1401 |
# Add target OS directories as necessary |
1402 |
#-------------------------------------------------------------------- |
1403 |
ADDITIONAL_INCLUDE_DIRS="$CPPFLAGS" |
1404 |
ADDITIONAL_LIB_DIRS="$LDFLAGS" |
1405 |
case "$target_os" in |
1406 |
freebsd* | openbsd* ) |
1407 |
CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
1408 |
LDFLAGS="$LDFLAGS -L/usr/local/lib";; |
1409 |
netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" |
1410 |
LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";; |
1411 |
esac |
1412 |
|
1413 |
#-------------------------------------------------------------------- |
1414 |
# The following is so that headers and custom libraries |
1415 |
# in the GNUstep root are used before the standard ones |
1416 |
#-------------------------------------------------------------------- |
1417 |
# Set location of GNUstep dirs for later use |
1418 |
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers |
1419 |
if test "$GNUSTEP_FLATTENED" = yes; then |
1420 |
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries |
1421 |
else |
1422 |
clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os` |
1423 |
clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu` |
1424 |
obj_dir=$clean_target_cpu/$clean_target_os |
1425 |
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir |
1426 |
fi |
1427 |
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR" |
1428 |
LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR" |
1429 |
|
1430 |
#-------------------------------------------------------------------- |
1431 |
# Find the compiler |
1432 |
#-------------------------------------------------------------------- |
1433 |
ac_ext=c |
1434 |
ac_cpp='$CPP $CPPFLAGS' |
1435 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1436 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1437 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1438 |
if test -n "$ac_tool_prefix"; then |
1439 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1440 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1441 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1442 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1443 |
if test "${ac_cv_prog_CC+set}" = set; then |
1444 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1445 |
else |
1446 |
if test -n "$CC"; then |
1447 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1448 |
else |
1449 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1450 |
for as_dir in $PATH |
1451 |
do |
1452 |
IFS=$as_save_IFS |
1453 |
test -z "$as_dir" && as_dir=. |
1454 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1455 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1456 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1457 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1458 |
break 2 |
1459 |
fi |
1460 |
done |
1461 |
done |
1462 |
|
1463 |
fi |
1464 |
fi |
1465 |
CC=$ac_cv_prog_CC |
1466 |
if test -n "$CC"; then |
1467 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1468 |
echo "${ECHO_T}$CC" >&6 |
1469 |
else |
1470 |
echo "$as_me:$LINENO: result: no" >&5 |
1471 |
echo "${ECHO_T}no" >&6 |
1472 |
fi |
1473 |
|
1474 |
fi |
1475 |
if test -z "$ac_cv_prog_CC"; then |
1476 |
ac_ct_CC=$CC |
1477 |
# Extract the first word of "gcc", so it can be a program name with args. |
1478 |
set dummy gcc; ac_word=$2 |
1479 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1480 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1481 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1482 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1483 |
else |
1484 |
if test -n "$ac_ct_CC"; then |
1485 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1486 |
else |
1487 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1488 |
for as_dir in $PATH |
1489 |
do |
1490 |
IFS=$as_save_IFS |
1491 |
test -z "$as_dir" && as_dir=. |
1492 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1493 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1494 |
ac_cv_prog_ac_ct_CC="gcc" |
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 |
fi |
1502 |
fi |
1503 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1504 |
if test -n "$ac_ct_CC"; then |
1505 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1506 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1507 |
else |
1508 |
echo "$as_me:$LINENO: result: no" >&5 |
1509 |
echo "${ECHO_T}no" >&6 |
1510 |
fi |
1511 |
|
1512 |
CC=$ac_ct_CC |
1513 |
else |
1514 |
CC="$ac_cv_prog_CC" |
1515 |
fi |
1516 |
|
1517 |
if test -z "$CC"; then |
1518 |
if test -n "$ac_tool_prefix"; then |
1519 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1520 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1521 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1522 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1523 |
if test "${ac_cv_prog_CC+set}" = set; then |
1524 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1525 |
else |
1526 |
if test -n "$CC"; then |
1527 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1528 |
else |
1529 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1530 |
for as_dir in $PATH |
1531 |
do |
1532 |
IFS=$as_save_IFS |
1533 |
test -z "$as_dir" && as_dir=. |
1534 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1535 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1536 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1537 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1538 |
break 2 |
1539 |
fi |
1540 |
done |
1541 |
done |
1542 |
|
1543 |
fi |
1544 |
fi |
1545 |
CC=$ac_cv_prog_CC |
1546 |
if test -n "$CC"; then |
1547 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1548 |
echo "${ECHO_T}$CC" >&6 |
1549 |
else |
1550 |
echo "$as_me:$LINENO: result: no" >&5 |
1551 |
echo "${ECHO_T}no" >&6 |
1552 |
fi |
1553 |
|
1554 |
fi |
1555 |
if test -z "$ac_cv_prog_CC"; then |
1556 |
ac_ct_CC=$CC |
1557 |
# Extract the first word of "cc", so it can be a program name with args. |
1558 |
set dummy cc; ac_word=$2 |
1559 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1560 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1561 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1562 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1563 |
else |
1564 |
if test -n "$ac_ct_CC"; then |
1565 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1566 |
else |
1567 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1568 |
for as_dir in $PATH |
1569 |
do |
1570 |
IFS=$as_save_IFS |
1571 |
test -z "$as_dir" && as_dir=. |
1572 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1573 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1574 |
ac_cv_prog_ac_ct_CC="cc" |
1575 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1576 |
break 2 |
1577 |
fi |
1578 |
done |
1579 |
done |
1580 |
|
1581 |
fi |
1582 |
fi |
1583 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1584 |
if test -n "$ac_ct_CC"; then |
1585 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1586 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1587 |
else |
1588 |
echo "$as_me:$LINENO: result: no" >&5 |
1589 |
echo "${ECHO_T}no" >&6 |
1590 |
fi |
1591 |
|
1592 |
CC=$ac_ct_CC |
1593 |
else |
1594 |
CC="$ac_cv_prog_CC" |
1595 |
fi |
1596 |
|
1597 |
fi |
1598 |
if test -z "$CC"; then |
1599 |
# Extract the first word of "cc", so it can be a program name with args. |
1600 |
set dummy cc; ac_word=$2 |
1601 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1602 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1603 |
if test "${ac_cv_prog_CC+set}" = set; then |
1604 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1605 |
else |
1606 |
if test -n "$CC"; then |
1607 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1608 |
else |
1609 |
ac_prog_rejected=no |
1610 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1611 |
for as_dir in $PATH |
1612 |
do |
1613 |
IFS=$as_save_IFS |
1614 |
test -z "$as_dir" && as_dir=. |
1615 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1616 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1617 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1618 |
ac_prog_rejected=yes |
1619 |
continue |
1620 |
fi |
1621 |
ac_cv_prog_CC="cc" |
1622 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1623 |
break 2 |
1624 |
fi |
1625 |
done |
1626 |
done |
1627 |
|
1628 |
if test $ac_prog_rejected = yes; then |
1629 |
# We found a bogon in the path, so make sure we never use it. |
1630 |
set dummy $ac_cv_prog_CC |
1631 |
shift |
1632 |
if test $# != 0; then |
1633 |
# We chose a different compiler from the bogus one. |
1634 |
# However, it has the same basename, so the bogon will be chosen |
1635 |
# first if we set CC to just the basename; use the full file name. |
1636 |
shift |
1637 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1638 |
fi |
1639 |
fi |
1640 |
fi |
1641 |
fi |
1642 |
CC=$ac_cv_prog_CC |
1643 |
if test -n "$CC"; then |
1644 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1645 |
echo "${ECHO_T}$CC" >&6 |
1646 |
else |
1647 |
echo "$as_me:$LINENO: result: no" >&5 |
1648 |
echo "${ECHO_T}no" >&6 |
1649 |
fi |
1650 |
|
1651 |
fi |
1652 |
if test -z "$CC"; then |
1653 |
if test -n "$ac_tool_prefix"; then |
1654 |
for ac_prog in cl |
1655 |
do |
1656 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1657 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1658 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1659 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1660 |
if test "${ac_cv_prog_CC+set}" = set; then |
1661 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1662 |
else |
1663 |
if test -n "$CC"; then |
1664 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1665 |
else |
1666 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1667 |
for as_dir in $PATH |
1668 |
do |
1669 |
IFS=$as_save_IFS |
1670 |
test -z "$as_dir" && as_dir=. |
1671 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1672 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1673 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1674 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1675 |
break 2 |
1676 |
fi |
1677 |
done |
1678 |
done |
1679 |
|
1680 |
fi |
1681 |
fi |
1682 |
CC=$ac_cv_prog_CC |
1683 |
if test -n "$CC"; then |
1684 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1685 |
echo "${ECHO_T}$CC" >&6 |
1686 |
else |
1687 |
echo "$as_me:$LINENO: result: no" >&5 |
1688 |
echo "${ECHO_T}no" >&6 |
1689 |
fi |
1690 |
|
1691 |
test -n "$CC" && break |
1692 |
done |
1693 |
fi |
1694 |
if test -z "$CC"; then |
1695 |
ac_ct_CC=$CC |
1696 |
for ac_prog in cl |
1697 |
do |
1698 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1699 |
set dummy $ac_prog; ac_word=$2 |
1700 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1701 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1702 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1703 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1704 |
else |
1705 |
if test -n "$ac_ct_CC"; then |
1706 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1707 |
else |
1708 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1709 |
for as_dir in $PATH |
1710 |
do |
1711 |
IFS=$as_save_IFS |
1712 |
test -z "$as_dir" && as_dir=. |
1713 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1714 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1715 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
1716 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1717 |
break 2 |
1718 |
fi |
1719 |
done |
1720 |
done |
1721 |
|
1722 |
fi |
1723 |
fi |
1724 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1725 |
if test -n "$ac_ct_CC"; then |
1726 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1727 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
1728 |
else |
1729 |
echo "$as_me:$LINENO: result: no" >&5 |
1730 |
echo "${ECHO_T}no" >&6 |
1731 |
fi |
1732 |
|
1733 |
test -n "$ac_ct_CC" && break |
1734 |
done |
1735 |
|
1736 |
CC=$ac_ct_CC |
1737 |
fi |
1738 |
|
1739 |
fi |
1740 |
|
1741 |
|
1742 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
1743 |
See \`config.log' for more details." >&5 |
1744 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
1745 |
See \`config.log' for more details." >&2;} |
1746 |
{ (exit 1); exit 1; }; } |
1747 |
|
1748 |
# Provide some information about the compiler. |
1749 |
echo "$as_me:$LINENO:" \ |
1750 |
"checking for C compiler version" >&5 |
1751 |
ac_compiler=`set X $ac_compile; echo $2` |
1752 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1753 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
1754 |
ac_status=$? |
1755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1756 |
(exit $ac_status); } |
1757 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1758 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
1759 |
ac_status=$? |
1760 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1761 |
(exit $ac_status); } |
1762 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1763 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
1764 |
ac_status=$? |
1765 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1766 |
(exit $ac_status); } |
1767 |
|
1768 |
cat >conftest.$ac_ext <<_ACEOF |
1769 |
#line $LINENO "configure" |
1770 |
/* confdefs.h. */ |
1771 |
_ACEOF |
1772 |
cat confdefs.h >>conftest.$ac_ext |
1773 |
cat >>conftest.$ac_ext <<_ACEOF |
1774 |
/* end confdefs.h. */ |
1775 |
|
1776 |
int |
1777 |
main () |
1778 |
{ |
1779 |
|
1780 |
; |
1781 |
return 0; |
1782 |
} |
1783 |
_ACEOF |
1784 |
ac_clean_files_save=$ac_clean_files |
1785 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
1786 |
# Try to create an executable without -o first, disregard a.out. |
1787 |
# It will help us diagnose broken compilers, and finding out an intuition |
1788 |
# of exeext. |
1789 |
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
1790 |
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1791 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1792 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
1793 |
(eval $ac_link_default) 2>&5 |
1794 |
ac_status=$? |
1795 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1796 |
(exit $ac_status); }; then |
1797 |
# Find the output, starting from the most likely. This scheme is |
1798 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
1799 |
# resort. |
1800 |
|
1801 |
# Be careful to initialize this variable, since it used to be cached. |
1802 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
1803 |
ac_cv_exeext= |
1804 |
# b.out is created by i960 compilers. |
1805 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
1806 |
do |
1807 |
test -f "$ac_file" || continue |
1808 |
case $ac_file in |
1809 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1810 |
;; |
1811 |
conftest.$ac_ext ) |
1812 |
# This is the source file. |
1813 |
;; |
1814 |
[ab].out ) |
1815 |
# We found the default executable, but exeext='' is most |
1816 |
# certainly right. |
1817 |
break;; |
1818 |
*.* ) |
1819 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1820 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
1821 |
# but it would be cool to find out if it's true. Does anybody |
1822 |
# maintain Libtool? --akim. |
1823 |
export ac_cv_exeext |
1824 |
break;; |
1825 |
* ) |
1826 |
break;; |
1827 |
esac |
1828 |
done |
1829 |
else |
1830 |
echo "$as_me: failed program was:" >&5 |
1831 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1832 |
|
1833 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1834 |
See \`config.log' for more details." >&5 |
1835 |
echo "$as_me: error: C compiler cannot create executables |
1836 |
See \`config.log' for more details." >&2;} |
1837 |
{ (exit 77); exit 77; }; } |
1838 |
fi |
1839 |
|
1840 |
ac_exeext=$ac_cv_exeext |
1841 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
1842 |
echo "${ECHO_T}$ac_file" >&6 |
1843 |
|
1844 |
# Check the compiler produces executables we can run. If not, either |
1845 |
# the compiler is broken, or we cross compile. |
1846 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1847 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1848 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1849 |
# If not cross compiling, check that we can run a simple program. |
1850 |
if test "$cross_compiling" != yes; then |
1851 |
if { ac_try='./$ac_file' |
1852 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1853 |
(eval $ac_try) 2>&5 |
1854 |
ac_status=$? |
1855 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1856 |
(exit $ac_status); }; }; then |
1857 |
cross_compiling=no |
1858 |
else |
1859 |
if test "$cross_compiling" = maybe; then |
1860 |
cross_compiling=yes |
1861 |
else |
1862 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1863 |
If you meant to cross compile, use \`--host'. |
1864 |
See \`config.log' for more details." >&5 |
1865 |
echo "$as_me: error: cannot run C compiled programs. |
1866 |
If you meant to cross compile, use \`--host'. |
1867 |
See \`config.log' for more details." >&2;} |
1868 |
{ (exit 1); exit 1; }; } |
1869 |
fi |
1870 |
fi |
1871 |
fi |
1872 |
echo "$as_me:$LINENO: result: yes" >&5 |
1873 |
echo "${ECHO_T}yes" >&6 |
1874 |
|
1875 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1876 |
ac_clean_files=$ac_clean_files_save |
1877 |
# Check the compiler produces executables we can run. If not, either |
1878 |
# the compiler is broken, or we cross compile. |
1879 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
1880 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
1881 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
1882 |
echo "${ECHO_T}$cross_compiling" >&6 |
1883 |
|
1884 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1885 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
1886 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1887 |
(eval $ac_link) 2>&5 |
1888 |
ac_status=$? |
1889 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1890 |
(exit $ac_status); }; then |
1891 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
1892 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
1893 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
1894 |
# `rm'. |
1895 |
for ac_file in conftest.exe conftest conftest.*; do |
1896 |
test -f "$ac_file" || continue |
1897 |
case $ac_file in |
1898 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
1899 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1900 |
export ac_cv_exeext |
1901 |
break;; |
1902 |
* ) break;; |
1903 |
esac |
1904 |
done |
1905 |
else |
1906 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1907 |
See \`config.log' for more details." >&5 |
1908 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
1909 |
See \`config.log' for more details." >&2;} |
1910 |
{ (exit 1); exit 1; }; } |
1911 |
fi |
1912 |
|
1913 |
rm -f conftest$ac_cv_exeext |
1914 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
1915 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
1916 |
|
1917 |
rm -f conftest.$ac_ext |
1918 |
EXEEXT=$ac_cv_exeext |
1919 |
ac_exeext=$EXEEXT |
1920 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1921 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
1922 |
if test "${ac_cv_objext+set}" = set; then |
1923 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1924 |
else |
1925 |
cat >conftest.$ac_ext <<_ACEOF |
1926 |
#line $LINENO "configure" |
1927 |
/* confdefs.h. */ |
1928 |
_ACEOF |
1929 |
cat confdefs.h >>conftest.$ac_ext |
1930 |
cat >>conftest.$ac_ext <<_ACEOF |
1931 |
/* end confdefs.h. */ |
1932 |
|
1933 |
int |
1934 |
main () |
1935 |
{ |
1936 |
|
1937 |
; |
1938 |
return 0; |
1939 |
} |
1940 |
_ACEOF |
1941 |
rm -f conftest.o conftest.obj |
1942 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1943 |
(eval $ac_compile) 2>&5 |
1944 |
ac_status=$? |
1945 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1946 |
(exit $ac_status); }; then |
1947 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
1948 |
case $ac_file in |
1949 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
1950 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1951 |
break;; |
1952 |
esac |
1953 |
done |
1954 |
else |
1955 |
echo "$as_me: failed program was:" >&5 |
1956 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1957 |
|
1958 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1959 |
See \`config.log' for more details." >&5 |
1960 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
1961 |
See \`config.log' for more details." >&2;} |
1962 |
{ (exit 1); exit 1; }; } |
1963 |
fi |
1964 |
|
1965 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1966 |
fi |
1967 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1968 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
1969 |
OBJEXT=$ac_cv_objext |
1970 |
ac_objext=$OBJEXT |
1971 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1972 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1973 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1974 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1975 |
else |
1976 |
cat >conftest.$ac_ext <<_ACEOF |
1977 |
#line $LINENO "configure" |
1978 |
/* confdefs.h. */ |
1979 |
_ACEOF |
1980 |
cat confdefs.h >>conftest.$ac_ext |
1981 |
cat >>conftest.$ac_ext <<_ACEOF |
1982 |
/* end confdefs.h. */ |
1983 |
|
1984 |
int |
1985 |
main () |
1986 |
{ |
1987 |
#ifndef __GNUC__ |
1988 |
choke me |
1989 |
#endif |
1990 |
|
1991 |
; |
1992 |
return 0; |
1993 |
} |
1994 |
_ACEOF |
1995 |
rm -f conftest.$ac_objext |
1996 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1997 |
(eval $ac_compile) 2>&5 |
1998 |
ac_status=$? |
1999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2000 |
(exit $ac_status); } && |
2001 |
{ ac_try='test -s conftest.$ac_objext' |
2002 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2003 |
(eval $ac_try) 2>&5 |
2004 |
ac_status=$? |
2005 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2006 |
(exit $ac_status); }; }; then |
2007 |
ac_compiler_gnu=yes |
2008 |
else |
2009 |
echo "$as_me: failed program was:" >&5 |
2010 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2011 |
|
2012 |
ac_compiler_gnu=no |
2013 |
fi |
2014 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2015 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2016 |
|
2017 |
fi |
2018 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2019 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2020 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2021 |
ac_test_CFLAGS=${CFLAGS+set} |
2022 |
ac_save_CFLAGS=$CFLAGS |
2023 |
CFLAGS="-g" |
2024 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2025 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2026 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2027 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2028 |
else |
2029 |
cat >conftest.$ac_ext <<_ACEOF |
2030 |
#line $LINENO "configure" |
2031 |
/* confdefs.h. */ |
2032 |
_ACEOF |
2033 |
cat confdefs.h >>conftest.$ac_ext |
2034 |
cat >>conftest.$ac_ext <<_ACEOF |
2035 |
/* end confdefs.h. */ |
2036 |
|
2037 |
int |
2038 |
main () |
2039 |
{ |
2040 |
|
2041 |
; |
2042 |
return 0; |
2043 |
} |
2044 |
_ACEOF |
2045 |
rm -f conftest.$ac_objext |
2046 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2047 |
(eval $ac_compile) 2>&5 |
2048 |
ac_status=$? |
2049 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2050 |
(exit $ac_status); } && |
2051 |
{ ac_try='test -s conftest.$ac_objext' |
2052 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2053 |
(eval $ac_try) 2>&5 |
2054 |
ac_status=$? |
2055 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2056 |
(exit $ac_status); }; }; then |
2057 |
ac_cv_prog_cc_g=yes |
2058 |
else |
2059 |
echo "$as_me: failed program was:" >&5 |
2060 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2061 |
|
2062 |
ac_cv_prog_cc_g=no |
2063 |
fi |
2064 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2065 |
fi |
2066 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2067 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2068 |
if test "$ac_test_CFLAGS" = set; then |
2069 |
CFLAGS=$ac_save_CFLAGS |
2070 |
elif test $ac_cv_prog_cc_g = yes; then |
2071 |
if test "$GCC" = yes; then |
2072 |
CFLAGS="-g -O2" |
2073 |
else |
2074 |
CFLAGS="-g" |
2075 |
fi |
2076 |
else |
2077 |
if test "$GCC" = yes; then |
2078 |
CFLAGS="-O2" |
2079 |
else |
2080 |
CFLAGS= |
2081 |
fi |
2082 |
fi |
2083 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2084 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2085 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2086 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2087 |
else |
2088 |
ac_cv_prog_cc_stdc=no |
2089 |
ac_save_CC=$CC |
2090 |
cat >conftest.$ac_ext <<_ACEOF |
2091 |
#line $LINENO "configure" |
2092 |
/* confdefs.h. */ |
2093 |
_ACEOF |
2094 |
cat confdefs.h >>conftest.$ac_ext |
2095 |
cat >>conftest.$ac_ext <<_ACEOF |
2096 |
/* end confdefs.h. */ |
2097 |
#include <stdarg.h> |
2098 |
#include <stdio.h> |
2099 |
#include <sys/types.h> |
2100 |
#include <sys/stat.h> |
2101 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2102 |
struct buf { int x; }; |
2103 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2104 |
static char *e (p, i) |
2105 |
char **p; |
2106 |
int i; |
2107 |
{ |
2108 |
return p[i]; |
2109 |
} |
2110 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2111 |
{ |
2112 |
char *s; |
2113 |
va_list v; |
2114 |
va_start (v,p); |
2115 |
s = g (p, va_arg (v,int)); |
2116 |
va_end (v); |
2117 |
return s; |
2118 |
} |
2119 |
int test (int i, double x); |
2120 |
struct s1 {int (*f) (int a);}; |
2121 |
struct s2 {int (*f) (double a);}; |
2122 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2123 |
int argc; |
2124 |
char **argv; |
2125 |
int |
2126 |
main () |
2127 |
{ |
2128 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2129 |
; |
2130 |
return 0; |
2131 |
} |
2132 |
_ACEOF |
2133 |
# Don't try gcc -ansi; that turns off useful extensions and |
2134 |
# breaks some systems' header files. |
2135 |
# AIX -qlanglvl=ansi |
2136 |
# Ultrix and OSF/1 -std1 |
2137 |
# HP-UX 10.20 and later -Ae |
2138 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2139 |
# SVR4 -Xc -D__EXTENSIONS__ |
2140 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2141 |
do |
2142 |
CC="$ac_save_CC $ac_arg" |
2143 |
rm -f conftest.$ac_objext |
2144 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2145 |
(eval $ac_compile) 2>&5 |
2146 |
ac_status=$? |
2147 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2148 |
(exit $ac_status); } && |
2149 |
{ ac_try='test -s conftest.$ac_objext' |
2150 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2151 |
(eval $ac_try) 2>&5 |
2152 |
ac_status=$? |
2153 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2154 |
(exit $ac_status); }; }; then |
2155 |
ac_cv_prog_cc_stdc=$ac_arg |
2156 |
break |
2157 |
else |
2158 |
echo "$as_me: failed program was:" >&5 |
2159 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2160 |
|
2161 |
fi |
2162 |
rm -f conftest.$ac_objext |
2163 |
done |
2164 |
rm -f conftest.$ac_ext conftest.$ac_objext |
2165 |
CC=$ac_save_CC |
2166 |
|
2167 |
fi |
2168 |
|
2169 |
case "x$ac_cv_prog_cc_stdc" in |
2170 |
x|xno) |
2171 |
echo "$as_me:$LINENO: result: none needed" >&5 |
2172 |
echo "${ECHO_T}none needed" >&6 ;; |
2173 |
*) |
2174 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2175 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2176 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2177 |
esac |
2178 |
|
2179 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
2180 |
# in C++ we need to declare it. In case someone uses the same compiler |
2181 |
# for both compiling C and C++ we need to have the C++ compiler decide |
2182 |
# the declaration of exit, since it's the most demanding environment. |
2183 |
cat >conftest.$ac_ext <<_ACEOF |
2184 |
#ifndef __cplusplus |
2185 |
choke me |
2186 |
#endif |
2187 |
_ACEOF |
2188 |
rm -f conftest.$ac_objext |
2189 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2190 |
(eval $ac_compile) 2>&5 |
2191 |
ac_status=$? |
2192 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2193 |
(exit $ac_status); } && |
2194 |
{ ac_try='test -s conftest.$ac_objext' |
2195 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2196 |
(eval $ac_try) 2>&5 |
2197 |
ac_status=$? |
2198 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2199 |
(exit $ac_status); }; }; then |
2200 |
for ac_declaration in \ |
2201 |
''\ |
2202 |
'#include <stdlib.h>' \ |
2203 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2204 |
'extern "C" void std::exit (int); using std::exit;' \ |
2205 |
'extern "C" void exit (int) throw ();' \ |
2206 |
'extern "C" void exit (int);' \ |
2207 |
'void exit (int);' |
2208 |
do |
2209 |
cat >conftest.$ac_ext <<_ACEOF |
2210 |
#line $LINENO "configure" |
2211 |
/* confdefs.h. */ |
2212 |
_ACEOF |
2213 |
cat confdefs.h >>conftest.$ac_ext |
2214 |
cat >>conftest.$ac_ext <<_ACEOF |
2215 |
/* end confdefs.h. */ |
2216 |
#include <stdlib.h> |
2217 |
$ac_declaration |
2218 |
int |
2219 |
main () |
2220 |
{ |
2221 |
exit (42); |
2222 |
; |
2223 |
return 0; |
2224 |
} |
2225 |
_ACEOF |
2226 |
rm -f conftest.$ac_objext |
2227 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2228 |
(eval $ac_compile) 2>&5 |
2229 |
ac_status=$? |
2230 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2231 |
(exit $ac_status); } && |
2232 |
{ ac_try='test -s conftest.$ac_objext' |
2233 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2234 |
(eval $ac_try) 2>&5 |
2235 |
ac_status=$? |
2236 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2237 |
(exit $ac_status); }; }; then |
2238 |
: |
2239 |
else |
2240 |
echo "$as_me: failed program was:" >&5 |
2241 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2242 |
|
2243 |
continue |
2244 |
fi |
2245 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2246 |
cat >conftest.$ac_ext <<_ACEOF |
2247 |
#line $LINENO "configure" |
2248 |
/* confdefs.h. */ |
2249 |
_ACEOF |
2250 |
cat confdefs.h >>conftest.$ac_ext |
2251 |
cat >>conftest.$ac_ext <<_ACEOF |
2252 |
/* end confdefs.h. */ |
2253 |
$ac_declaration |
2254 |
int |
2255 |
main () |
2256 |
{ |
2257 |
exit (42); |
2258 |
; |
2259 |
return 0; |
2260 |
} |
2261 |
_ACEOF |
2262 |
rm -f conftest.$ac_objext |
2263 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2264 |
(eval $ac_compile) 2>&5 |
2265 |
ac_status=$? |
2266 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2267 |
(exit $ac_status); } && |
2268 |
{ ac_try='test -s conftest.$ac_objext' |
2269 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2270 |
(eval $ac_try) 2>&5 |
2271 |
ac_status=$? |
2272 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2273 |
(exit $ac_status); }; }; then |
2274 |
break |
2275 |
else |
2276 |
echo "$as_me: failed program was:" >&5 |
2277 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2278 |
|
2279 |
fi |
2280 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2281 |
done |
2282 |
rm -f conftest* |
2283 |
if test -n "$ac_declaration"; then |
2284 |
echo '#ifdef __cplusplus' >>confdefs.h |
2285 |
echo $ac_declaration >>confdefs.h |
2286 |
echo '#endif' >>confdefs.h |
2287 |
fi |
2288 |
|
2289 |
else |
2290 |
echo "$as_me: failed program was:" >&5 |
2291 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2292 |
|
2293 |
fi |
2294 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2295 |
ac_ext=c |
2296 |
ac_cpp='$CPP $CPPFLAGS' |
2297 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2298 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2299 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2300 |
|
2301 |
ac_ext=c |
2302 |
ac_cpp='$CPP $CPPFLAGS' |
2303 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2304 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2305 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2306 |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2307 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2308 |
# On Suns, sometimes $CPP names a directory. |
2309 |
if test -n "$CPP" && test -d "$CPP"; then |
2310 |
CPP= |
2311 |
fi |
2312 |
if test -z "$CPP"; then |
2313 |
if test "${ac_cv_prog_CPP+set}" = set; then |
2314 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2315 |
else |
2316 |
# Double quotes because CPP needs to be expanded |
2317 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
2318 |
do |
2319 |
ac_preproc_ok=false |
2320 |
for ac_c_preproc_warn_flag in '' yes |
2321 |
do |
2322 |
# Use a header file that comes with gcc, so configuring glibc |
2323 |
# with a fresh cross-compiler works. |
2324 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2325 |
# <limits.h> exists even on freestanding compilers. |
2326 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2327 |
# not just through cpp. "Syntax error" is here to catch this case. |
2328 |
cat >conftest.$ac_ext <<_ACEOF |
2329 |
#line $LINENO "configure" |
2330 |
/* confdefs.h. */ |
2331 |
_ACEOF |
2332 |
cat confdefs.h >>conftest.$ac_ext |
2333 |
cat >>conftest.$ac_ext <<_ACEOF |
2334 |
/* end confdefs.h. */ |
2335 |
#ifdef __STDC__ |
2336 |
# include <limits.h> |
2337 |
#else |
2338 |
# include <assert.h> |
2339 |
#endif |
2340 |
Syntax error |
2341 |
_ACEOF |
2342 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2343 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2344 |
ac_status=$? |
2345 |
grep -v '^ *+' conftest.er1 >conftest.err |
2346 |
rm -f conftest.er1 |
2347 |
cat conftest.err >&5 |
2348 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2349 |
(exit $ac_status); } >/dev/null; then |
2350 |
if test -s conftest.err; then |
2351 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2352 |
else |
2353 |
ac_cpp_err= |
2354 |
fi |
2355 |
else |
2356 |
ac_cpp_err=yes |
2357 |
fi |
2358 |
if test -z "$ac_cpp_err"; then |
2359 |
: |
2360 |
else |
2361 |
echo "$as_me: failed program was:" >&5 |
2362 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2363 |
|
2364 |
# Broken: fails on valid input. |
2365 |
continue |
2366 |
fi |
2367 |
rm -f conftest.err conftest.$ac_ext |
2368 |
|
2369 |
# OK, works on sane cases. Now check whether non-existent headers |
2370 |
# can be detected and how. |
2371 |
cat >conftest.$ac_ext <<_ACEOF |
2372 |
#line $LINENO "configure" |
2373 |
/* confdefs.h. */ |
2374 |
_ACEOF |
2375 |
cat confdefs.h >>conftest.$ac_ext |
2376 |
cat >>conftest.$ac_ext <<_ACEOF |
2377 |
/* end confdefs.h. */ |
2378 |
#include <ac_nonexistent.h> |
2379 |
_ACEOF |
2380 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2381 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2382 |
ac_status=$? |
2383 |
grep -v '^ *+' conftest.er1 >conftest.err |
2384 |
rm -f conftest.er1 |
2385 |
cat conftest.err >&5 |
2386 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2387 |
(exit $ac_status); } >/dev/null; then |
2388 |
if test -s conftest.err; then |
2389 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2390 |
else |
2391 |
ac_cpp_err= |
2392 |
fi |
2393 |
else |
2394 |
ac_cpp_err=yes |
2395 |
fi |
2396 |
if test -z "$ac_cpp_err"; then |
2397 |
# Broken: success on invalid input. |
2398 |
continue |
2399 |
else |
2400 |
echo "$as_me: failed program was:" >&5 |
2401 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2402 |
|
2403 |
# Passes both tests. |
2404 |
ac_preproc_ok=: |
2405 |
break |
2406 |
fi |
2407 |
rm -f conftest.err conftest.$ac_ext |
2408 |
|
2409 |
done |
2410 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2411 |
rm -f conftest.err conftest.$ac_ext |
2412 |
if $ac_preproc_ok; then |
2413 |
break |
2414 |
fi |
2415 |
|
2416 |
done |
2417 |
ac_cv_prog_CPP=$CPP |
2418 |
|
2419 |
fi |
2420 |
CPP=$ac_cv_prog_CPP |
2421 |
else |
2422 |
ac_cv_prog_CPP=$CPP |
2423 |
fi |
2424 |
echo "$as_me:$LINENO: result: $CPP" >&5 |
2425 |
echo "${ECHO_T}$CPP" >&6 |
2426 |
ac_preproc_ok=false |
2427 |
for ac_c_preproc_warn_flag in '' yes |
2428 |
do |
2429 |
# Use a header file that comes with gcc, so configuring glibc |
2430 |
# with a fresh cross-compiler works. |
2431 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2432 |
# <limits.h> exists even on freestanding compilers. |
2433 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2434 |
# not just through cpp. "Syntax error" is here to catch this case. |
2435 |
cat >conftest.$ac_ext <<_ACEOF |
2436 |
#line $LINENO "configure" |
2437 |
/* confdefs.h. */ |
2438 |
_ACEOF |
2439 |
cat confdefs.h >>conftest.$ac_ext |
2440 |
cat >>conftest.$ac_ext <<_ACEOF |
2441 |
/* end confdefs.h. */ |
2442 |
#ifdef __STDC__ |
2443 |
# include <limits.h> |
2444 |
#else |
2445 |
# include <assert.h> |
2446 |
#endif |
2447 |
Syntax error |
2448 |
_ACEOF |
2449 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2450 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2451 |
ac_status=$? |
2452 |
grep -v '^ *+' conftest.er1 >conftest.err |
2453 |
rm -f conftest.er1 |
2454 |
cat conftest.err >&5 |
2455 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2456 |
(exit $ac_status); } >/dev/null; then |
2457 |
if test -s conftest.err; then |
2458 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2459 |
else |
2460 |
ac_cpp_err= |
2461 |
fi |
2462 |
else |
2463 |
ac_cpp_err=yes |
2464 |
fi |
2465 |
if test -z "$ac_cpp_err"; then |
2466 |
: |
2467 |
else |
2468 |
echo "$as_me: failed program was:" >&5 |
2469 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2470 |
|
2471 |
# Broken: fails on valid input. |
2472 |
continue |
2473 |
fi |
2474 |
rm -f conftest.err conftest.$ac_ext |
2475 |
|
2476 |
# OK, works on sane cases. Now check whether non-existent headers |
2477 |
# can be detected and how. |
2478 |
cat >conftest.$ac_ext <<_ACEOF |
2479 |
#line $LINENO "configure" |
2480 |
/* confdefs.h. */ |
2481 |
_ACEOF |
2482 |
cat confdefs.h >>conftest.$ac_ext |
2483 |
cat >>conftest.$ac_ext <<_ACEOF |
2484 |
/* end confdefs.h. */ |
2485 |
#include <ac_nonexistent.h> |
2486 |
_ACEOF |
2487 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2488 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2489 |
ac_status=$? |
2490 |
grep -v '^ *+' conftest.er1 >conftest.err |
2491 |
rm -f conftest.er1 |
2492 |
cat conftest.err >&5 |
2493 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2494 |
(exit $ac_status); } >/dev/null; then |
2495 |
if test -s conftest.err; then |
2496 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2497 |
else |
2498 |
ac_cpp_err= |
2499 |
fi |
2500 |
else |
2501 |
ac_cpp_err=yes |
2502 |
fi |
2503 |
if test -z "$ac_cpp_err"; then |
2504 |
# Broken: success on invalid input. |
2505 |
continue |
2506 |
else |
2507 |
echo "$as_me: failed program was:" >&5 |
2508 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2509 |
|
2510 |
# Passes both tests. |
2511 |
ac_preproc_ok=: |
2512 |
break |
2513 |
fi |
2514 |
rm -f conftest.err conftest.$ac_ext |
2515 |
|
2516 |
done |
2517 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2518 |
rm -f conftest.err conftest.$ac_ext |
2519 |
if $ac_preproc_ok; then |
2520 |
: |
2521 |
else |
2522 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2523 |
See \`config.log' for more details." >&5 |
2524 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2525 |
See \`config.log' for more details." >&2;} |
2526 |
{ (exit 1); exit 1; }; } |
2527 |
fi |
2528 |
|
2529 |
ac_ext=c |
2530 |
ac_cpp='$CPP $CPPFLAGS' |
2531 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2532 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2533 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2534 |
|
2535 |
|
2536 |
|
2537 |
|
2538 |
echo "$as_me:$LINENO: checking for main in -lm" >&5 |
2539 |
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
2540 |
if test "${ac_cv_lib_m_main+set}" = set; then |
2541 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2542 |
else |
2543 |
ac_check_lib_save_LIBS=$LIBS |
2544 |
LIBS="-lm $LIBS" |
2545 |
cat >conftest.$ac_ext <<_ACEOF |
2546 |
#line $LINENO "configure" |
2547 |
/* confdefs.h. */ |
2548 |
_ACEOF |
2549 |
cat confdefs.h >>conftest.$ac_ext |
2550 |
cat >>conftest.$ac_ext <<_ACEOF |
2551 |
/* end confdefs.h. */ |
2552 |
|
2553 |
|
2554 |
int |
2555 |
main () |
2556 |
{ |
2557 |
main (); |
2558 |
; |
2559 |
return 0; |
2560 |
} |
2561 |
_ACEOF |
2562 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2563 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2564 |
(eval $ac_link) 2>&5 |
2565 |
ac_status=$? |
2566 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2567 |
(exit $ac_status); } && |
2568 |
{ ac_try='test -s conftest$ac_exeext' |
2569 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2570 |
(eval $ac_try) 2>&5 |
2571 |
ac_status=$? |
2572 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2573 |
(exit $ac_status); }; }; then |
2574 |
ac_cv_lib_m_main=yes |
2575 |
else |
2576 |
echo "$as_me: failed program was:" >&5 |
2577 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2578 |
|
2579 |
ac_cv_lib_m_main=no |
2580 |
fi |
2581 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
2582 |
LIBS=$ac_check_lib_save_LIBS |
2583 |
fi |
2584 |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
2585 |
echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
2586 |
if test $ac_cv_lib_m_main = yes; then |
2587 |
cat >>confdefs.h <<_ACEOF |
2588 |
#define HAVE_LIBM 1 |
2589 |
_ACEOF |
2590 |
|
2591 |
LIBS="-lm $LIBS" |
2592 |
|
2593 |
fi |
2594 |
|
2595 |
|
2596 |
|
2597 |
for ac_func in rint rintf |
2598 |
do |
2599 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
2600 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
2601 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
2602 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
2603 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2604 |
else |
2605 |
cat >conftest.$ac_ext <<_ACEOF |
2606 |
#line $LINENO "configure" |
2607 |
/* confdefs.h. */ |
2608 |
_ACEOF |
2609 |
cat confdefs.h >>conftest.$ac_ext |
2610 |
cat >>conftest.$ac_ext <<_ACEOF |
2611 |
/* end confdefs.h. */ |
2612 |
/* System header to define __stub macros and hopefully few prototypes, |
2613 |
which can conflict with char $ac_func (); below. |
2614 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2615 |
<limits.h> exists even on freestanding compilers. */ |
2616 |
#ifdef __STDC__ |
2617 |
# include <limits.h> |
2618 |
#else |
2619 |
# include <assert.h> |
2620 |
#endif |
2621 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2622 |
#ifdef __cplusplus |
2623 |
extern "C" |
2624 |
{ |
2625 |
#endif |
2626 |
/* We use char because int might match the return type of a gcc2 |
2627 |
builtin and then its argument prototype would still apply. */ |
2628 |
char $ac_func (); |
2629 |
/* The GNU C library defines this for functions which it implements |
2630 |
to always fail with ENOSYS. Some functions are actually named |
2631 |
something starting with __ and the normal name is an alias. */ |
2632 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2633 |
choke me |
2634 |
#else |
2635 |
char (*f) () = $ac_func; |
2636 |
#endif |
2637 |
#ifdef __cplusplus |
2638 |
} |
2639 |
#endif |
2640 |
|
2641 |
int |
2642 |
main () |
2643 |
{ |
2644 |
return f != $ac_func; |
2645 |
; |
2646 |
return 0; |
2647 |
} |
2648 |
_ACEOF |
2649 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2650 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2651 |
(eval $ac_link) 2>&5 |
2652 |
ac_status=$? |
2653 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2654 |
(exit $ac_status); } && |
2655 |
{ ac_try='test -s conftest$ac_exeext' |
2656 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2657 |
(eval $ac_try) 2>&5 |
2658 |
ac_status=$? |
2659 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2660 |
(exit $ac_status); }; }; then |
2661 |
eval "$as_ac_var=yes" |
2662 |
else |
2663 |
echo "$as_me: failed program was:" >&5 |
2664 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2665 |
|
2666 |
eval "$as_ac_var=no" |
2667 |
fi |
2668 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
2669 |
fi |
2670 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
2671 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
2672 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
2673 |
cat >>confdefs.h <<_ACEOF |
2674 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
2675 |
_ACEOF |
2676 |
|
2677 |
fi |
2678 |
done |
2679 |
|
2680 |
|
2681 |
#-------------------------------------------------------------------- |
2682 |
# Find for JPEG |
2683 |
#-------------------------------------------------------------------- |
2684 |
GRAPHIC_LIBS= |
2685 |
GRAPHIC_CFLAGS= |
2686 |
GRAPHIC_LFLAGS= |
2687 |
|
2688 |
|
2689 |
# Check whether --with-jpeg_library or --without-jpeg_library was given. |
2690 |
if test "${with_jpeg_library+set}" = set; then |
2691 |
withval="$with_jpeg_library" |
2692 |
|
2693 |
else |
2694 |
with_jpeg_library= |
2695 |
fi; |
2696 |
|
2697 |
# Check whether --with-jpeg_include or --without-jpeg_include was given. |
2698 |
if test "${with_jpeg_include+set}" = set; then |
2699 |
withval="$with_jpeg_include" |
2700 |
|
2701 |
else |
2702 |
with_jpeg_include= |
2703 |
fi; |
2704 |
|
2705 |
if test -n "$with_jpeg_library"; then |
2706 |
with_jpeg_library="-L$with_jpeg_library" |
2707 |
fi |
2708 |
if test -n "$with_jpeg_include"; then |
2709 |
with_jpeg_include="-I$with_jpeg_include" |
2710 |
fi |
2711 |
|
2712 |
|
2713 |
|
2714 |
|
2715 |
jpeg_check_lib_save_header=${CPPFLAGS} |
2716 |
CPPFLAGS="${with_jpeg_library} ${with_jpeg_include} ${CPPFLAGS}" |
2717 |
|
2718 |
echo "$as_me:$LINENO: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
2719 |
echo $ECHO_N "checking for jpeg_destroy_decompress in -ljpeg... $ECHO_C" >&6 |
2720 |
if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then |
2721 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2722 |
else |
2723 |
ac_check_lib_save_LIBS=$LIBS |
2724 |
LIBS="-ljpeg $LIBS" |
2725 |
cat >conftest.$ac_ext <<_ACEOF |
2726 |
#line $LINENO "configure" |
2727 |
/* confdefs.h. */ |
2728 |
_ACEOF |
2729 |
cat confdefs.h >>conftest.$ac_ext |
2730 |
cat >>conftest.$ac_ext <<_ACEOF |
2731 |
/* end confdefs.h. */ |
2732 |
|
2733 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2734 |
#ifdef __cplusplus |
2735 |
extern "C" |
2736 |
#endif |
2737 |
/* We use char because int might match the return type of a gcc2 |
2738 |
builtin and then its argument prototype would still apply. */ |
2739 |
char jpeg_destroy_decompress (); |
2740 |
int |
2741 |
main () |
2742 |
{ |
2743 |
jpeg_destroy_decompress (); |
2744 |
; |
2745 |
return 0; |
2746 |
} |
2747 |
_ACEOF |
2748 |
rm -f conftest.$ac_objext conftest$ac_exeext |
2749 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2750 |
(eval $ac_link) 2>&5 |
2751 |
ac_status=$? |
2752 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2753 |
(exit $ac_status); } && |
2754 |
{ ac_try='test -s conftest$ac_exeext' |
2755 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2756 |
(eval $ac_try) 2>&5 |
2757 |
ac_status=$? |
2758 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2759 |
(exit $ac_status); }; }; then |
2760 |
ac_cv_lib_jpeg_jpeg_destroy_decompress=yes |
2761 |
else |
2762 |
echo "$as_me: failed program was:" >&5 |
2763 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2764 |
|
2765 |
ac_cv_lib_jpeg_jpeg_destroy_decompress=no |
2766 |
fi |
2767 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
2768 |
LIBS=$ac_check_lib_save_LIBS |
2769 |
fi |
2770 |
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 |
2771 |
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6 |
2772 |
if test $ac_cv_lib_jpeg_jpeg_destroy_decompress = yes; then |
2773 |
jpeg_ok=yes |
2774 |
else |
2775 |
jpeg_ok=no |
2776 |
fi |
2777 |
|
2778 |
if test "$jpeg_ok" = yes; then |
2779 |
echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
2780 |
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 |
2781 |
cat >conftest.$ac_ext <<_ACEOF |
2782 |
#line $LINENO "configure" |
2783 |
/* confdefs.h. */ |
2784 |
_ACEOF |
2785 |
cat confdefs.h >>conftest.$ac_ext |
2786 |
cat >>conftest.$ac_ext <<_ACEOF |
2787 |
/* end confdefs.h. */ |
2788 |
#include <stdio.h> |
2789 |
#undef PACKAGE |
2790 |
#undef VERSION |
2791 |
#undef HAVE_STDLIB_H |
2792 |
#include <jpeglib.h> |
2793 |
_ACEOF |
2794 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2795 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2796 |
ac_status=$? |
2797 |
grep -v '^ *+' conftest.er1 >conftest.err |
2798 |
rm -f conftest.er1 |
2799 |
cat conftest.err >&5 |
2800 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2801 |
(exit $ac_status); } >/dev/null; then |
2802 |
if test -s conftest.err; then |
2803 |
ac_cpp_err=$ac_c_preproc_warn_flag |
2804 |
else |
2805 |
ac_cpp_err= |
2806 |
fi |
2807 |
else |
2808 |
ac_cpp_err=yes |
2809 |
fi |
2810 |
if test -z "$ac_cpp_err"; then |
2811 |
jpeg_ok=yes |
2812 |
else |
2813 |
echo "$as_me: failed program was:" >&5 |
2814 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2815 |
|
2816 |
jpeg_ok=no |
2817 |
fi |
2818 |
rm -f conftest.err conftest.$ac_ext |
2819 |
echo "$as_me:$LINENO: result: $jpeg_ok" >&5 |
2820 |
echo "${ECHO_T}$jpeg_ok" >&6 |
2821 |
|
2822 |
if test "$jpeg_ok" = yes; then |
2823 |
GRAPHIC_LFLAGS="${with_jpeg_library} $GRAPHIC_LFLAGS" |
2824 |
GRAPHIC_CFLAGS="${with_jpeg_include} $GRAPHIC_CFLAGS" |
2825 |
fi |
2826 |
fi |
2827 |
CPPFLAGS="${jpeg_check_lib_save_header}" |
2828 |
|
2829 |
#-------------------------------------------------------------------- |
2830 |
# Find for TIFF |
2831 |
#-------------------------------------------------------------------- |
2832 |
|
2833 |
# Check whether --with-tiff_library or --without-tiff_library was given. |
2834 |
if test "${with_tiff_library+set}" = set; then |
2835 |
withval="$with_tiff_library" |
2836 |
|
2837 |
else |
2838 |
with_tiff_library= |
2839 |
fi; |
2840 |
|
2841 |
# Check whether --with-tiff_include or --without-tiff_include was given. |
2842 |
if test "${with_tiff_include+set}" = set; then |
2843 |
withval="$with_tiff_include" |
2844 |
|
2845 |
else |
2846 |
with_tiff_include= |
2847 |
fi; |
2848 |
|
2849 |
if test -n "$with_tiff_library"; then |
2850 |
with_tiff_library="-L$with_tiff_library" |
2851 |
fi |
2852 |
if test -n "$with_tiff_include"; then |
2853 |
with_tiff_include="-I$with_tiff_include" |
2854 |
fi |
2855 |
|
2856 |
|
2857 |
|
2858 |
echo "$as_me:$LINENO: checking for egrep" >&5 |
2859 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
2860 |
if test "${ac_cv_prog_egrep+set}" = set; then |
2861 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2862 |
else |
2863 |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2864 |
then ac_cv_prog_egrep='grep -E' |
2865 |
else ac_cv_prog_egrep='egrep' |
2866 |
fi |
2867 |
fi |
2868 |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2869 |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
2870 |
EGREP=$ac_cv_prog_egrep |
2871 |
|
2872 |
|
2873 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2874 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2875 |
if test "${ac_cv_header_stdc+set}" = set; then |
2876 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2877 |
else |
2878 |
cat >conftest.$ac_ext <<_ACEOF |
2879 |
#line $LINENO "configure" |
2880 |
/* confdefs.h. */ |
2881 |
_ACEOF |
2882 |
cat confdefs.h >>conftest.$ac_ext |
2883 |
cat >>conftest.$ac_ext <<_ACEOF |
2884 |
/* end confdefs.h. */ |
2885 |
#include <stdlib.h> |
2886 |
#include <stdarg.h> |
2887 |
#include <string.h> |
2888 |
#include <float.h> |
2889 |
|
2890 |
int |
2891 |
main () |
2892 |
{ |
2893 |
|
2894 |
; |
2895 |
return 0; |
2896 |
} |
2897 |
_ACEOF |
2898 |
rm -f conftest.$ac_objext |
2899 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2900 |
(eval $ac_compile) 2>&5 |
2901 |
ac_status=$? |
2902 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2903 |
(exit $ac_status); } && |
2904 |
{ ac_try='test -s conftest.$ac_objext' |
2905 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2906 |
(eval $ac_try) 2>&5 |
2907 |
ac_status=$? |
2908 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2909 |
(exit $ac_status); }; }; then |
2910 |
ac_cv_header_stdc=yes |
2911 |
else |
2912 |
echo "$as_me: failed program was:" >&5 |
2913 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2914 |
|
2915 |
ac_cv_header_stdc=no |
2916 |
fi |
2917 |
rm -f conftest.$ac_objext conftest.$ac_ext |
2918 |
|
2919 |
if test $ac_cv_header_stdc = yes; then |
2920 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2921 |
cat >conftest.$ac_ext <<_ACEOF |
2922 |
#line $LINENO "configure" |
2923 |
/* confdefs.h. */ |
2924 |
_ACEOF |
2925 |
cat confdefs.h >>conftest.$ac_ext |
2926 |
cat >>conftest.$ac_ext <<_ACEOF |
2927 |
/* end confdefs.h. */ |
2928 |
#include <string.h> |
2929 |
|
2930 |
_ACEOF |
2931 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2932 |
$EGREP "memchr" >/dev/null 2>&1; then |
2933 |
: |
2934 |
else |
2935 |
ac_cv_header_stdc=no |
2936 |
fi |
2937 |
rm -f conftest* |
2938 |
|
2939 |
fi |
2940 |
|
2941 |
if test $ac_cv_header_stdc = yes; then |
2942 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2943 |
cat >conftest.$ac_ext <<_ACEOF |
2944 |
#line $LINENO "configure" |
2945 |
/* confdefs.h. */ |
2946 |
_ACEOF |
2947 |
cat confdefs.h >>conftest.$ac_ext |
2948 |
cat >>conftest.$ac_ext <<_ACEOF |
2949 |
/* end confdefs.h. */ |
2950 |
#include <stdlib.h> |
2951 |
|
2952 |
_ACEOF |
2953 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2954 |
$EGREP "free" >/dev/null 2>&1; then |
2955 |
: |
2956 |
else |
2957 |
ac_cv_header_stdc=no |
2958 |
fi |
2959 |
rm -f conftest* |
2960 |
|
2961 |
fi |
2962 |
|
2963 |
if test $ac_cv_header_stdc = yes; then |
2964 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2965 |
if test "$cross_compiling" = yes; then |
2966 |
: |
2967 |
else |
2968 |
cat >conftest.$ac_ext <<_ACEOF |
2969 |
#line $LINENO "configure" |
2970 |
/* confdefs.h. */ |
2971 |
_ACEOF |
2972 |
cat confdefs.h >>conftest.$ac_ext |
2973 |
cat >>conftest.$ac_ext <<_ACEOF |
2974 |
/* end confdefs.h. */ |
2975 |
#include <ctype.h> |
2976 |
#if ((' ' & 0x0FF) == 0x020) |
2977 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2978 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2979 |
#else |
2980 |
# define ISLOWER(c) \ |
2981 |
(('a' <= (c) && (c) <= 'i') \ |
2982 |
|| ('j' <= (c) && (c) <= 'r') \ |
2983 |
|| ('s' <= (c) && (c) <= 'z')) |
2984 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2985 |
#endif |
2986 |
|
2987 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2988 |
int |
2989 |
main () |
2990 |
{ |
2991 |
int i; |
2992 |
for (i = 0; i < 256; i++) |
2993 |
if (XOR (islower (i), ISLOWER (i)) |
2994 |
|| toupper (i) != TOUPPER (i)) |
2995 |
exit(2); |
2996 |
exit (0); |
2997 |
} |
2998 |
_ACEOF |
2999 |
rm -f conftest$ac_exeext |
3000 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3001 |
(eval $ac_link) 2>&5 |
3002 |
ac_status=$? |
3003 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3004 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3005 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3006 |
(eval $ac_try) 2>&5 |
3007 |
ac_status=$? |
3008 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3009 |
(exit $ac_status); }; }; then |
3010 |
: |
3011 |
else |
3012 |
echo "$as_me: program exited with status $ac_status" >&5 |
3013 |
echo "$as_me: failed program was:" >&5 |
3014 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3015 |
|
3016 |
( exit $ac_status ) |
3017 |
ac_cv_header_stdc=no |
3018 |
fi |
3019 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3020 |
fi |
3021 |
fi |
3022 |
fi |
3023 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3024 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3025 |
if test $ac_cv_header_stdc = yes; then |
3026 |
|
3027 |
cat >>confdefs.h <<\_ACEOF |
3028 |
#define STDC_HEADERS 1 |
3029 |
_ACEOF |
3030 |
|
3031 |
fi |
3032 |
|
3033 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3034 |
|
3035 |
|
3036 |
|
3037 |
|
3038 |
|
3039 |
|
3040 |
|
3041 |
|
3042 |
|
3043 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3044 |
inttypes.h stdint.h unistd.h |
3045 |
do |
3046 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3047 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3048 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3049 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3050 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3051 |
else |
3052 |
cat >conftest.$ac_ext <<_ACEOF |
3053 |
#line $LINENO "configure" |
3054 |
/* confdefs.h. */ |
3055 |
_ACEOF |
3056 |
cat confdefs.h >>conftest.$ac_ext |
3057 |
cat >>conftest.$ac_ext <<_ACEOF |
3058 |
/* end confdefs.h. */ |
3059 |
$ac_includes_default |
3060 |
|
3061 |
#include <$ac_header> |
3062 |
_ACEOF |
3063 |
rm -f conftest.$ac_objext |
3064 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3065 |
(eval $ac_compile) 2>&5 |
3066 |
ac_status=$? |
3067 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3068 |
(exit $ac_status); } && |
3069 |
{ ac_try='test -s conftest.$ac_objext' |
3070 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3071 |
(eval $ac_try) 2>&5 |
3072 |
ac_status=$? |
3073 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3074 |
(exit $ac_status); }; }; then |
3075 |
eval "$as_ac_Header=yes" |
3076 |
else |
3077 |
echo "$as_me: failed program was:" >&5 |
3078 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3079 |
|
3080 |
eval "$as_ac_Header=no" |
3081 |
fi |
3082 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3083 |
fi |
3084 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3085 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3086 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3087 |
cat >>confdefs.h <<_ACEOF |
3088 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3089 |
_ACEOF |
3090 |
|
3091 |
fi |
3092 |
|
3093 |
done |
3094 |
|
3095 |
|
3096 |
tiff_check_lib_save_header=${CPPFLAGS} |
3097 |
tiff_check_lib_save_libs=${LIBS} |
3098 |
CPPFLAGS="${with_tiff_library} ${JPEG_LIB} ${with_tiff_include} ${JPEG_INCLUDE} ${CPPFLAGS}" |
3099 |
echo "$as_me:$LINENO: checking for main in -lz" >&5 |
3100 |
echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6 |
3101 |
if test "${ac_cv_lib_z_main+set}" = set; then |
3102 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 |
else |
3104 |
ac_check_lib_save_LIBS=$LIBS |
3105 |
LIBS="-lz $LIBS" |
3106 |
cat >conftest.$ac_ext <<_ACEOF |
3107 |
#line $LINENO "configure" |
3108 |
/* confdefs.h. */ |
3109 |
_ACEOF |
3110 |
cat confdefs.h >>conftest.$ac_ext |
3111 |
cat >>conftest.$ac_ext <<_ACEOF |
3112 |
/* end confdefs.h. */ |
3113 |
|
3114 |
|
3115 |
int |
3116 |
main () |
3117 |
{ |
3118 |
main (); |
3119 |
; |
3120 |
return 0; |
3121 |
} |
3122 |
_ACEOF |
3123 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3124 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3125 |
(eval $ac_link) 2>&5 |
3126 |
ac_status=$? |
3127 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3128 |
(exit $ac_status); } && |
3129 |
{ ac_try='test -s conftest$ac_exeext' |
3130 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3131 |
(eval $ac_try) 2>&5 |
3132 |
ac_status=$? |
3133 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3134 |
(exit $ac_status); }; }; then |
3135 |
ac_cv_lib_z_main=yes |
3136 |
else |
3137 |
echo "$as_me: failed program was:" >&5 |
3138 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3139 |
|
3140 |
ac_cv_lib_z_main=no |
3141 |
fi |
3142 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3143 |
LIBS=$ac_check_lib_save_LIBS |
3144 |
fi |
3145 |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5 |
3146 |
echo "${ECHO_T}$ac_cv_lib_z_main" >&6 |
3147 |
if test $ac_cv_lib_z_main = yes; then |
3148 |
HAVE_LIBZ=1 |
3149 |
else |
3150 |
HAVE_LIBZ=0 |
3151 |
fi |
3152 |
|
3153 |
|
3154 |
echo "$as_me:$LINENO: checking for -ltiff without -ljpeg nor -lz" >&5 |
3155 |
echo $ECHO_N "checking for -ltiff without -ljpeg nor -lz... $ECHO_C" >&6 |
3156 |
LIBS="-ltiff -lm $LIBS" |
3157 |
cat >conftest.$ac_ext <<_ACEOF |
3158 |
#line $LINENO "configure" |
3159 |
/* confdefs.h. */ |
3160 |
_ACEOF |
3161 |
cat confdefs.h >>conftest.$ac_ext |
3162 |
cat >>conftest.$ac_ext <<_ACEOF |
3163 |
/* end confdefs.h. */ |
3164 |
char TIFFReadScanline(); |
3165 |
int |
3166 |
main () |
3167 |
{ |
3168 |
TIFFReadScanline() |
3169 |
; |
3170 |
return 0; |
3171 |
} |
3172 |
_ACEOF |
3173 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3174 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3175 |
(eval $ac_link) 2>&5 |
3176 |
ac_status=$? |
3177 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3178 |
(exit $ac_status); } && |
3179 |
{ ac_try='test -s conftest$ac_exeext' |
3180 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3181 |
(eval $ac_try) 2>&5 |
3182 |
ac_status=$? |
3183 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3184 |
(exit $ac_status); }; }; then |
3185 |
jpeg_notneeded=yes |
3186 |
else |
3187 |
echo "$as_me: failed program was:" >&5 |
3188 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3189 |
|
3190 |
jpeg_notneeded=no |
3191 |
fi |
3192 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3193 |
echo "$as_me:$LINENO: result: $jpeg_notneeded" >&5 |
3194 |
echo "${ECHO_T}$jpeg_notneeded" >&6 |
3195 |
LIBS=${tiff_check_lib_save_libs} |
3196 |
JPEG= |
3197 |
if test "$jpeg_notneeded" = no; then |
3198 |
JPEG=-ljpeg |
3199 |
fi |
3200 |
|
3201 |
if test $HAVE_LIBZ = 1; then |
3202 |
echo "$as_me:$LINENO: checking for -ltiff without -lz" >&5 |
3203 |
echo $ECHO_N "checking for -ltiff without -lz... $ECHO_C" >&6 |
3204 |
LIBS="-ltiff $JPEG -lm $LIBS" |
3205 |
cat >conftest.$ac_ext <<_ACEOF |
3206 |
#line $LINENO "configure" |
3207 |
/* confdefs.h. */ |
3208 |
_ACEOF |
3209 |
cat confdefs.h >>conftest.$ac_ext |
3210 |
cat >>conftest.$ac_ext <<_ACEOF |
3211 |
/* end confdefs.h. */ |
3212 |
char TIFFReadScanline(); |
3213 |
int |
3214 |
main () |
3215 |
{ |
3216 |
TIFFReadScanline() |
3217 |
; |
3218 |
return 0; |
3219 |
} |
3220 |
_ACEOF |
3221 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3222 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3223 |
(eval $ac_link) 2>&5 |
3224 |
ac_status=$? |
3225 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3226 |
(exit $ac_status); } && |
3227 |
{ ac_try='test -s conftest$ac_exeext' |
3228 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3229 |
(eval $ac_try) 2>&5 |
3230 |
ac_status=$? |
3231 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3232 |
(exit $ac_status); }; }; then |
3233 |
libz_notneeded=yes |
3234 |
else |
3235 |
echo "$as_me: failed program was:" >&5 |
3236 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3237 |
|
3238 |
libz_notneeded=no |
3239 |
fi |
3240 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3241 |
echo "$as_me:$LINENO: result: $libz_notneeded" >&5 |
3242 |
echo "${ECHO_T}$libz_notneeded" >&6 |
3243 |
LIBS=${tiff_check_lib_save_libs} |
3244 |
if test "$libz_notneeded" = no; then |
3245 |
JPEG="$JPEG -lz" |
3246 |
fi |
3247 |
fi |
3248 |
|
3249 |
echo "$as_me:$LINENO: checking for TIFFReadScanline in -ltiff" >&5 |
3250 |
echo $ECHO_N "checking for TIFFReadScanline in -ltiff... $ECHO_C" >&6 |
3251 |
if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then |
3252 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3253 |
else |
3254 |
ac_check_lib_save_LIBS=$LIBS |
3255 |
LIBS="-ltiff $JPEG -lm $LIBS" |
3256 |
cat >conftest.$ac_ext <<_ACEOF |
3257 |
#line $LINENO "configure" |
3258 |
/* confdefs.h. */ |
3259 |
_ACEOF |
3260 |
cat confdefs.h >>conftest.$ac_ext |
3261 |
cat >>conftest.$ac_ext <<_ACEOF |
3262 |
/* end confdefs.h. */ |
3263 |
|
3264 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3265 |
#ifdef __cplusplus |
3266 |
extern "C" |
3267 |
#endif |
3268 |
/* We use char because int might match the return type of a gcc2 |
3269 |
builtin and then its argument prototype would still apply. */ |
3270 |
char TIFFReadScanline (); |
3271 |
int |
3272 |
main () |
3273 |
{ |
3274 |
TIFFReadScanline (); |
3275 |
; |
3276 |
return 0; |
3277 |
} |
3278 |
_ACEOF |
3279 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3280 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3281 |
(eval $ac_link) 2>&5 |
3282 |
ac_status=$? |
3283 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3284 |
(exit $ac_status); } && |
3285 |
{ ac_try='test -s conftest$ac_exeext' |
3286 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3287 |
(eval $ac_try) 2>&5 |
3288 |
ac_status=$? |
3289 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3290 |
(exit $ac_status); }; }; then |
3291 |
ac_cv_lib_tiff_TIFFReadScanline=yes |
3292 |
else |
3293 |
echo "$as_me: failed program was:" >&5 |
3294 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3295 |
|
3296 |
ac_cv_lib_tiff_TIFFReadScanline=no |
3297 |
fi |
3298 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3299 |
LIBS=$ac_check_lib_save_LIBS |
3300 |
fi |
3301 |
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5 |
3302 |
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFReadScanline" >&6 |
3303 |
if test $ac_cv_lib_tiff_TIFFReadScanline = yes; then |
3304 |
tiff_ok=yes |
3305 |
else |
3306 |
tiff_ok=no |
3307 |
fi |
3308 |
|
3309 |
if test "$tiff_ok" = yes; then |
3310 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
3311 |
echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
3312 |
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
3313 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
3314 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3315 |
fi |
3316 |
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
3317 |
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
3318 |
else |
3319 |
# Is the header compilable? |
3320 |
echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
3321 |
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 |
3322 |
cat >conftest.$ac_ext <<_ACEOF |
3323 |
#line $LINENO "configure" |
3324 |
/* confdefs.h. */ |
3325 |
_ACEOF |
3326 |
cat confdefs.h >>conftest.$ac_ext |
3327 |
cat >>conftest.$ac_ext <<_ACEOF |
3328 |
/* end confdefs.h. */ |
3329 |
$ac_includes_default |
3330 |
#include <tiffio.h> |
3331 |
_ACEOF |
3332 |
rm -f conftest.$ac_objext |
3333 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3334 |
(eval $ac_compile) 2>&5 |
3335 |
ac_status=$? |
3336 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3337 |
(exit $ac_status); } && |
3338 |
{ ac_try='test -s conftest.$ac_objext' |
3339 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3340 |
(eval $ac_try) 2>&5 |
3341 |
ac_status=$? |
3342 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3343 |
(exit $ac_status); }; }; then |
3344 |
ac_header_compiler=yes |
3345 |
else |
3346 |
echo "$as_me: failed program was:" >&5 |
3347 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3348 |
|
3349 |
ac_header_compiler=no |
3350 |
fi |
3351 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3352 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3353 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3354 |
|
3355 |
# Is the header present? |
3356 |
echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
3357 |
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 |
3358 |
cat >conftest.$ac_ext <<_ACEOF |
3359 |
#line $LINENO "configure" |
3360 |
/* confdefs.h. */ |
3361 |
_ACEOF |
3362 |
cat confdefs.h >>conftest.$ac_ext |
3363 |
cat >>conftest.$ac_ext <<_ACEOF |
3364 |
/* end confdefs.h. */ |
3365 |
#include <tiffio.h> |
3366 |
_ACEOF |
3367 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3368 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3369 |
ac_status=$? |
3370 |
grep -v '^ *+' conftest.er1 >conftest.err |
3371 |
rm -f conftest.er1 |
3372 |
cat conftest.err >&5 |
3373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3374 |
(exit $ac_status); } >/dev/null; then |
3375 |
if test -s conftest.err; then |
3376 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3377 |
else |
3378 |
ac_cpp_err= |
3379 |
fi |
3380 |
else |
3381 |
ac_cpp_err=yes |
3382 |
fi |
3383 |
if test -z "$ac_cpp_err"; then |
3384 |
ac_header_preproc=yes |
3385 |
else |
3386 |
echo "$as_me: failed program was:" >&5 |
3387 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3388 |
|
3389 |
ac_header_preproc=no |
3390 |
fi |
3391 |
rm -f conftest.err conftest.$ac_ext |
3392 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3393 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3394 |
|
3395 |
# So? What about this header? |
3396 |
case $ac_header_compiler:$ac_header_preproc in |
3397 |
yes:no ) |
3398 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
3399 |
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3400 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
3401 |
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
3402 |
( |
3403 |
cat <<\_ASBOX |
3404 |
## ------------------------------------ ## |
3405 |
## Report this to bug-autoconf@gnu.org. ## |
3406 |
## ------------------------------------ ## |
3407 |
_ASBOX |
3408 |
) | |
3409 |
sed "s/^/$as_me: WARNING: /" >&2 |
3410 |
;; |
3411 |
no:yes ) |
3412 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
3413 |
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} |
3414 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
3415 |
echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} |
3416 |
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
3417 |
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
3418 |
( |
3419 |
cat <<\_ASBOX |
3420 |
## ------------------------------------ ## |
3421 |
## Report this to bug-autoconf@gnu.org. ## |
3422 |
## ------------------------------------ ## |
3423 |
_ASBOX |
3424 |
) | |
3425 |
sed "s/^/$as_me: WARNING: /" >&2 |
3426 |
;; |
3427 |
esac |
3428 |
echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
3429 |
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
3430 |
if test "${ac_cv_header_tiffio_h+set}" = set; then |
3431 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3432 |
else |
3433 |
ac_cv_header_tiffio_h=$ac_header_preproc |
3434 |
fi |
3435 |
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
3436 |
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
3437 |
|
3438 |
fi |
3439 |
if test $ac_cv_header_tiffio_h = yes; then |
3440 |
tiff_ok=yes |
3441 |
else |
3442 |
tiff_ok=no |
3443 |
fi |
3444 |
|
3445 |
|
3446 |
if test "$tiff_ok" = yes; then |
3447 |
GRAPHIC_LFLAGS="${with_tiff_library} $GRAPHIC_LFLAGS" |
3448 |
GRAPHIC_CFLAGS="${with_tiff_include} $GRAPHIC_CFLAGS" |
3449 |
GRAPHIC_LIBS="-ltiff $JPEG $GRAPHIC_LIBS" |
3450 |
else |
3451 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libtiff header tiffio" >&5 |
3452 |
echo "$as_me: WARNING: Cannot find libtiff header tiffio" >&2;} |
3453 |
echo "* The GUI library requres the TIFF library" |
3454 |
echo "* Use --with-tiff-include to specify the tiff header directory" |
3455 |
echo "* and --with-tiff-library to specify the tiff library directory" |
3456 |
echo "* if it is not in the usual place(s)" |
3457 |
{ { echo "$as_me:$LINENO: error: gnustep-gui will not compile without tiff includes" >&5 |
3458 |
echo "$as_me: error: gnustep-gui will not compile without tiff includes" >&2;} |
3459 |
{ (exit 1); exit 1; }; } |
3460 |
fi |
3461 |
else |
3462 |
{ echo "$as_me:$LINENO: WARNING: Cannot find libtiff" >&5 |
3463 |
echo "$as_me: WARNING: Cannot find libtiff" >&2;} |
3464 |
echo "* The GUI library reqiures the TIFF library" |
3465 |
echo "* Use --with-tiff-library to specify the tiff library" |
3466 |
echo "* directory if it is not in the usual place(s)" |
3467 |
echo "* You may also have to specify --with-jpeg-library if the jpeg" |
3468 |
echo "* library is needed by tiff", |
3469 |
{ { echo "$as_me:$LINENO: error: gnustep-gui will not compile without tiff" >&5 |
3470 |
echo "$as_me: error: gnustep-gui will not compile without tiff" >&2;} |
3471 |
{ (exit 1); exit 1; }; } |
3472 |
fi |
3473 |
CPPFLAGS="${tiff_check_lib_save_header}" |
3474 |
|
3475 |
ADDITIONAL_INCLUDE_DIRS="$ADDITIONAL_INCLUDE_DIRS $GRAPHIC_CFLAGS" |
3476 |
ADDITIONAL_LIB_DIRS="$ADDITIONAL_LIB_DIRS $GRAPHIC_LFLAGS" |
3477 |
ADDITIONAL_DEPENDS="$GRAPHIC_LIBS" |
3478 |
|
3479 |
#-------------------------------------------------------------------- |
3480 |
# NSSound |
3481 |
#-------------------------------------------------------------------- |
3482 |
# Check whether --enable-gsnd or --disable-gsnd was given. |
3483 |
if test "${enable_gsnd+set}" = set; then |
3484 |
enableval="$enable_gsnd" |
3485 |
|
3486 |
else |
3487 |
enable_gsnd=yes |
3488 |
fi; |
3489 |
audio_ok=no |
3490 |
BUILD_GSND= |
3491 |
|
3492 |
|
3493 |
# Check whether --with-audiofile_library or --without-audiofile_library was given. |
3494 |
if test "${with_audiofile_library+set}" = set; then |
3495 |
withval="$with_audiofile_library" |
3496 |
|
3497 |
else |
3498 |
with_audiofile_library= |
3499 |
fi; |
3500 |
|
3501 |
# Check whether --with-audiofile_include or --without-audiofile_include was given. |
3502 |
if test "${with_audiofile_include+set}" = set; then |
3503 |
withval="$with_audiofile_include" |
3504 |
|
3505 |
else |
3506 |
with_audiofile_include= |
3507 |
fi; |
3508 |
|
3509 |
if test -n "$with_audiofile_library"; then |
3510 |
with_audiofile_library="-L$with_audiofile_library" |
3511 |
fi |
3512 |
if test -n "$with_audiofile_include"; then |
3513 |
with_audiofile_include="-I$with_audiofile_include" |
3514 |
fi |
3515 |
|
3516 |
audiofile_check_lib_save_headers=$CPPFLAGS |
3517 |
audiofile_check_lib_save_libs=$LIBS |
3518 |
CPPFLAGS="${with_audiofile_include} $CPPFLAGS" |
3519 |
LIBS="${with_audiofile_library} $LIBS" |
3520 |
echo "$as_me:$LINENO: checking for afGetVirtualFrameSize in -laudiofile" >&5 |
3521 |
echo $ECHO_N "checking for afGetVirtualFrameSize in -laudiofile... $ECHO_C" >&6 |
3522 |
if test "${ac_cv_lib_audiofile_afGetVirtualFrameSize+set}" = set; then |
3523 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3524 |
else |
3525 |
ac_check_lib_save_LIBS=$LIBS |
3526 |
LIBS="-laudiofile $LIBS" |
3527 |
cat >conftest.$ac_ext <<_ACEOF |
3528 |
#line $LINENO "configure" |
3529 |
/* confdefs.h. */ |
3530 |
_ACEOF |
3531 |
cat confdefs.h >>conftest.$ac_ext |
3532 |
cat >>conftest.$ac_ext <<_ACEOF |
3533 |
/* end confdefs.h. */ |
3534 |
|
3535 |
/* Override any gcc2 internal prototype to avoid an error. */ |
3536 |
#ifdef __cplusplus |
3537 |
extern "C" |
3538 |
#endif |
3539 |
/* We use char because int might match the return type of a gcc2 |
3540 |
builtin and then its argument prototype would still apply. */ |
3541 |
char afGetVirtualFrameSize (); |
3542 |
int |
3543 |
main () |
3544 |
{ |
3545 |
afGetVirtualFrameSize (); |
3546 |
; |
3547 |
return 0; |
3548 |
} |
3549 |
_ACEOF |
3550 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3551 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3552 |
(eval $ac_link) 2>&5 |
3553 |
ac_status=$? |
3554 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3555 |
(exit $ac_status); } && |
3556 |
{ ac_try='test -s conftest$ac_exeext' |
3557 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3558 |
(eval $ac_try) 2>&5 |
3559 |
ac_status=$? |
3560 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3561 |
(exit $ac_status); }; }; then |
3562 |
ac_cv_lib_audiofile_afGetVirtualFrameSize=yes |
3563 |
else |
3564 |
echo "$as_me: failed program was:" >&5 |
3565 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3566 |
|
3567 |
ac_cv_lib_audiofile_afGetVirtualFrameSize=no |
3568 |
fi |
3569 |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3570 |
LIBS=$ac_check_lib_save_LIBS |
3571 |
fi |
3572 |
echo "$as_me:$LINENO: result: $ac_cv_lib_audiofile_afGetVirtualFrameSize" >&5 |
3573 |
echo "${ECHO_T}$ac_cv_lib_audiofile_afGetVirtualFrameSize" >&6 |
3574 |
if test $ac_cv_lib_audiofile_afGetVirtualFrameSize = yes; then |
3575 |
audio_ok=yes |
3576 |
else |
3577 |
audio_ok=no |
3578 |
fi |
3579 |
|
3580 |
|
3581 |
if test $audio_ok = yes -a $enable_gsnd = yes; then |
3582 |
|
3583 |
for ac_header in audiofile.h |
3584 |
do |
3585 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3586 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3587 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3588 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3589 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3590 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3591 |
fi |
3592 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3593 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3594 |
else |
3595 |
# Is the header compilable? |
3596 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3597 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
3598 |
cat >conftest.$ac_ext <<_ACEOF |
3599 |
#line $LINENO "configure" |
3600 |
/* confdefs.h. */ |
3601 |
_ACEOF |
3602 |
cat confdefs.h >>conftest.$ac_ext |
3603 |
cat >>conftest.$ac_ext <<_ACEOF |
3604 |
/* end confdefs.h. */ |
3605 |
$ac_includes_default |
3606 |
#include <$ac_header> |
3607 |
_ACEOF |
3608 |
rm -f conftest.$ac_objext |
3609 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3610 |
(eval $ac_compile) 2>&5 |
3611 |
ac_status=$? |
3612 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3613 |
(exit $ac_status); } && |
3614 |
{ ac_try='test -s conftest.$ac_objext' |
3615 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3616 |
(eval $ac_try) 2>&5 |
3617 |
ac_status=$? |
3618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3619 |
(exit $ac_status); }; }; then |
3620 |
ac_header_compiler=yes |
3621 |
else |
3622 |
echo "$as_me: failed program was:" >&5 |
3623 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3624 |
|
3625 |
ac_header_compiler=no |
3626 |
fi |
3627 |
rm -f conftest.$ac_objext conftest.$ac_ext |
3628 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3629 |
echo "${ECHO_T}$ac_header_compiler" >&6 |
3630 |
|
3631 |
# Is the header present? |
3632 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3633 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
3634 |
cat >conftest.$ac_ext <<_ACEOF |
3635 |
#line $LINENO "configure" |
3636 |
/* confdefs.h. */ |
3637 |
_ACEOF |
3638 |
cat confdefs.h >>conftest.$ac_ext |
3639 |
cat >>conftest.$ac_ext <<_ACEOF |
3640 |
/* end confdefs.h. */ |
3641 |
#include <$ac_header> |
3642 |
_ACEOF |
3643 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3644 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3645 |
ac_status=$? |
3646 |
grep -v '^ *+' conftest.er1 >conftest.err |
3647 |
rm -f conftest.er1 |
3648 |
cat conftest.err >&5 |
3649 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3650 |
(exit $ac_status); } >/dev/null; then |
3651 |
if test -s conftest.err; then |
3652 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3653 |
else |
3654 |
ac_cpp_err= |
3655 |
fi |
3656 |
else |
3657 |
ac_cpp_err=yes |
3658 |
fi |
3659 |
if test -z "$ac_cpp_err"; then |
3660 |
ac_header_preproc=yes |
3661 |
else |
3662 |
echo "$as_me: failed program was:" >&5 |
3663 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3664 |
|
3665 |
ac_header_preproc=no |
3666 |
fi |
3667 |
rm -f conftest.err conftest.$ac_ext |
3668 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3669 |
echo "${ECHO_T}$ac_header_preproc" >&6 |
3670 |
|
3671 |
# So? What about this header? |
3672 |
case $ac_header_compiler:$ac_header_preproc in |
3673 |
yes:no ) |
3674 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3675 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
3676 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3677 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3678 |
( |
3679 |
cat <<\_ASBOX |
3680 |
## ------------------------------------ ## |
3681 |
## Report this to bug-autoconf@gnu.org. ## |
3682 |
## ------------------------------------ ## |
3683 |
_ASBOX |
3684 |
) | |
3685 |
sed "s/^/$as_me: WARNING: /" >&2 |
3686 |
;; |
3687 |
no:yes ) |
3688 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3689 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
3690 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3691 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
3692 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3693 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
3694 |
( |
3695 |
cat <<\_ASBOX |
3696 |
## ------------------------------------ ## |
3697 |
## Report this to bug-autoconf@gnu.org. ## |
3698 |
## ------------------------------------ ## |
3699 |
_ASBOX |
3700 |
) | |
3701 |
sed "s/^/$as_me: WARNING: /" >&2 |
3702 |
;; |
3703 |
esac |
3704 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3705 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3706 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3707 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 |
else |
3709 |
eval "$as_ac_Header=$ac_header_preproc" |
3710 |
fi |
3711 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3712 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3713 |
|
3714 |
fi |
3715 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3716 |
cat >>confdefs.h <<_ACEOF |
3717 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3718 |
_ACEOF |
3719 |
|
3720 |
fi |
3721 |
|
3722 |
done |
3723 |
|
3724 |
ADDITIONAL_DEPENDS="$ADDITIONAL_DEPENDS -laudiofile" |
3725 |
ADDITIONAL_INCLUDE_DIRS="$ADDITIONAL_INCLUDE_DIRS ${with_audiofile_include}" |
3726 |
ADDITIONAL_LIB_DIRS="$ADDITIONAL_LIB_DIRS ${with_audiofile_library}" |
3727 |
BUILD_GSND=gsnd |
3728 |
fi |
3729 |
|
3730 |
|
3731 |
LIBS=${audiofile_check_lib_save_libs} |
3732 |
CPPFLAGS=${audiofile_check_lib_save_headers} |
3733 |
|
3734 |
#-------------------------------------------------------------------- |
3735 |
# Record the version |
3736 |
#-------------------------------------------------------------------- |
3737 |
echo "$as_me:$LINENO: checking for the version of gnustep-gui we are compiling" >&5 |
3738 |
echo $ECHO_N "checking for the version of gnustep-gui we are compiling... $ECHO_C" >&6 |
3739 |
if test -f "Version"; then |
3740 |
. ./Version |
3741 |
fi |
3742 |
echo "$as_me:$LINENO: result: $GNUSTEP_GUI_VERSION" >&5 |
3743 |
echo "${ECHO_T}$GNUSTEP_GUI_VERSION" >&6 |
3744 |
|
3745 |
|
3746 |
|
3747 |
|
3748 |
|
3749 |
|
3750 |
|
3751 |
|
3752 |
|
3753 |
#-------------------------------------------------------------------- |
3754 |
# Configure |
3755 |
#-------------------------------------------------------------------- |
3756 |
|
3757 |
|
3758 |
|
3759 |
ac_config_files="$ac_config_files config.make gui.make Headers/Additions/GNUstepGUI/GSVersion.h" |
3760 |
|
3761 |
cat >confcache <<\_ACEOF |
3762 |
# This file is a shell script that caches the results of configure |
3763 |
# tests run on this system so they can be shared between configure |
3764 |
# scripts and configure runs, see configure's option --config-cache. |
3765 |
# It is not useful on other systems. If it contains results you don't |
3766 |
# want to keep, you may remove or edit it. |
3767 |
# |
3768 |
# config.status only pays attention to the cache file if you give it |
3769 |
# the --recheck option to rerun configure. |
3770 |
# |
3771 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
3772 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
3773 |
# following values. |
3774 |
|
3775 |
_ACEOF |
3776 |
|
3777 |
# The following way of writing the cache mishandles newlines in values, |
3778 |
# but we know of no workaround that is simple, portable, and efficient. |
3779 |
# So, don't put newlines in cache variables' values. |
3780 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
3781 |
# and sets the high bit in the cache file unless we assign to the vars. |
3782 |
{ |
3783 |
(set) 2>&1 | |
3784 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
3785 |
*ac_space=\ *) |
3786 |
# `set' does not quote correctly, so add quotes (double-quote |
3787 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
3788 |
sed -n \ |
3789 |
"s/'/'\\\\''/g; |
3790 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
3791 |
;; |
3792 |
*) |
3793 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
3794 |
sed -n \ |
3795 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
3796 |
;; |
3797 |
esac; |
3798 |
} | |
3799 |
sed ' |
3800 |
t clear |
3801 |
: clear |
3802 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
3803 |
t end |
3804 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3805 |
: end' >>confcache |
3806 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
3807 |
if test -w $cache_file; then |
3808 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
3809 |
cat confcache >$cache_file |
3810 |
else |
3811 |
echo "not updating unwritable cache $cache_file" |
3812 |
fi |
3813 |
fi |
3814 |
rm -f confcache |
3815 |
|
3816 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3817 |
# Let make expand exec_prefix. |
3818 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
3819 |
|
3820 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
3821 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
3822 |
# trailing colons and then remove the whole line if VPATH becomes empty |
3823 |
# (actually we leave an empty line to preserve line numbers). |
3824 |
if test "x$srcdir" = x.; then |
3825 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
3826 |
s/:*\$(srcdir):*/:/; |
3827 |
s/:*\${srcdir}:*/:/; |
3828 |
s/:*@srcdir@:*/:/; |
3829 |
s/^\([^=]*=[ ]*\):*/\1/; |
3830 |
s/:*$//; |
3831 |
s/^[^=]*=[ ]*$//; |
3832 |
}' |
3833 |
fi |
3834 |
|
3835 |
DEFS=-DHAVE_CONFIG_H |
3836 |
|
3837 |
ac_libobjs= |
3838 |
ac_ltlibobjs= |
3839 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3840 |
# 1. Remove the extension, and $U if already installed. |
3841 |
ac_i=`echo "$ac_i" | |
3842 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
3843 |
# 2. Add them. |
3844 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
3845 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
3846 |
done |
3847 |
LIBOBJS=$ac_libobjs |
3848 |
|
3849 |
LTLIBOBJS=$ac_ltlibobjs |
3850 |
|
3851 |
|
3852 |
|
3853 |
: ${CONFIG_STATUS=./config.status} |
3854 |
ac_clean_files_save=$ac_clean_files |
3855 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3856 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
3857 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
3858 |
cat >$CONFIG_STATUS <<_ACEOF |
3859 |
#! $SHELL |
3860 |
# Generated by $as_me. |
3861 |
# Run this file to recreate the current configuration. |
3862 |
# Compiler output produced by configure, useful for debugging |
3863 |
# configure, is in config.log if it exists. |
3864 |
|
3865 |
debug=false |
3866 |
ac_cs_recheck=false |
3867 |
ac_cs_silent=false |
3868 |
SHELL=\${CONFIG_SHELL-$SHELL} |
3869 |
_ACEOF |
3870 |
|
3871 |
cat >>$CONFIG_STATUS <<\_ACEOF |
3872 |
## --------------------- ## |
3873 |
## M4sh Initialization. ## |
3874 |
## --------------------- ## |
3875 |
|
3876 |
# Be Bourne compatible |
3877 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
3878 |
emulate sh |
3879 |
NULLCMD=: |
3880 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
3881 |
# is contrary to our usage. Disable this feature. |
3882 |
alias -g '${1+"$@"}'='"$@"' |
3883 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
3884 |
set -o posix |
3885 |
fi |
3886 |
|
3887 |
# Support unset when possible. |
3888 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
3889 |
as_unset=unset |
3890 |
else |
3891 |
as_unset=false |
3892 |
fi |
3893 |
|
3894 |
|
3895 |
# Work around bugs in pre-3.0 UWIN ksh. |
3896 |
$as_unset ENV MAIL MAILPATH |
3897 |
PS1='$ ' |
3898 |
PS2='> ' |
3899 |
PS4='+ ' |
3900 |
|
3901 |
# NLS nuisances. |
3902 |
for as_var in \ |
3903 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
3904 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
3905 |
LC_TELEPHONE LC_TIME |
3906 |
do |
3907 |
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
3908 |
eval $as_var=C; export $as_var |
3909 |
else |
3910 |
$as_unset $as_var |
3911 |
fi |
3912 |
done |
3913 |
|
3914 |
# Required to use basename. |
3915 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
3916 |
as_expr=expr |
3917 |
else |
3918 |
as_expr=false |
3919 |
fi |
3920 |
|
3921 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
3922 |
as_basename=basename |
3923 |
else |
3924 |
as_basename=false |
3925 |
fi |
3926 |
|
3927 |
|
3928 |
# Name of the executable. |
3929 |
as_me=`$as_basename "$0" || |
3930 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3931 |
X"$0" : 'X\(//\)$' \| \ |
3932 |
X"$0" : 'X\(/\)$' \| \ |
3933 |
. : '\(.\)' 2>/dev/null || |
3934 |
echo X/"$0" | |
3935 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
3936 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
3937 |
/^X\/\(\/\).*/{ s//\1/; q; } |
3938 |
s/.*/./; q'` |
3939 |
|
3940 |
|
3941 |
# PATH needs CR, and LINENO needs CR and PATH. |
3942 |
# Avoid depending upon Character Ranges. |
3943 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
3944 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
3945 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
3946 |
as_cr_digits='0123456789' |
3947 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
3948 |
|
3949 |
# The user is always right. |
3950 |
if test "${PATH_SEPARATOR+set}" != set; then |
3951 |
echo "#! /bin/sh" >conf$$.sh |
3952 |
echo "exit 0" >>conf$$.sh |
3953 |
chmod +x conf$$.sh |
3954 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
3955 |
PATH_SEPARATOR=';' |
3956 |
else |
3957 |
PATH_SEPARATOR=: |
3958 |
fi |
3959 |
rm -f conf$$.sh |
3960 |
fi |
3961 |
|
3962 |
|
3963 |
as_lineno_1=$LINENO |
3964 |
as_lineno_2=$LINENO |
3965 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
3966 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
3967 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
3968 |
# Find who we are. Look in the path if we contain no path at all |
3969 |
# relative or not. |
3970 |
case $0 in |
3971 |
*[\\/]* ) as_myself=$0 ;; |
3972 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3973 |
for as_dir in $PATH |
3974 |
do |
3975 |
IFS=$as_save_IFS |
3976 |
test -z "$as_dir" && as_dir=. |
3977 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
3978 |
done |
3979 |
|
3980 |
;; |
3981 |
esac |
3982 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
3983 |
# in which case we are not to be found in the path. |
3984 |
if test "x$as_myself" = x; then |
3985 |
as_myself=$0 |
3986 |
fi |
3987 |
if test ! -f "$as_myself"; then |
3988 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
3989 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
3990 |
{ (exit 1); exit 1; }; } |
3991 |
fi |
3992 |
case $CONFIG_SHELL in |
3993 |
'') |
3994 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3995 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
3996 |
do |
3997 |
IFS=$as_save_IFS |
3998 |
test -z "$as_dir" && as_dir=. |
3999 |
for as_base in sh bash ksh sh5; do |
4000 |
case $as_dir in |
4001 |
/*) |
4002 |
if ("$as_dir/$as_base" -c ' |
4003 |
as_lineno_1=$LINENO |
4004 |
as_lineno_2=$LINENO |
4005 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4006 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
4007 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
4008 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
4009 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
4010 |
CONFIG_SHELL=$as_dir/$as_base |
4011 |
export CONFIG_SHELL |
4012 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
4013 |
fi;; |
4014 |
esac |
4015 |
done |
4016 |
done |
4017 |
;; |
4018 |
esac |
4019 |
|
4020 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
4021 |
# uniformly replaced by the line number. The first 'sed' inserts a |
4022 |
# line-number line before each line; the second 'sed' does the real |
4023 |
# work. The second script uses 'N' to pair each line-number line |
4024 |
# with the numbered line, and appends trailing '-' during |
4025 |
# substitution so that $LINENO is not a special case at line end. |
4026 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4027 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
4028 |
sed '=' <$as_myself | |
4029 |
sed ' |
4030 |
N |
4031 |
s,$,-, |
4032 |
: loop |
4033 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
4034 |
t loop |
4035 |
s,-$,, |
4036 |
s,^['$as_cr_digits']*\n,, |
4037 |
' >$as_me.lineno && |
4038 |
chmod +x $as_me.lineno || |
4039 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
4040 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
4041 |
{ (exit 1); exit 1; }; } |
4042 |
|
4043 |
# Don't try to exec as it changes $[0], causing all sort of problems |
4044 |
# (the dirname of $[0] is not the place where we might find the |
4045 |
# original and so on. Autoconf is especially sensible to this). |
4046 |
. ./$as_me.lineno |
4047 |
# Exit status is that of the last command. |
4048 |
exit |
4049 |
} |
4050 |
|
4051 |
|
4052 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
4053 |
*c*,-n*) ECHO_N= ECHO_C=' |
4054 |
' ECHO_T=' ' ;; |
4055 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
4056 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
4057 |
esac |
4058 |
|
4059 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
4060 |
as_expr=expr |
4061 |
else |
4062 |
as_expr=false |
4063 |
fi |
4064 |
|
4065 |
rm -f conf$$ conf$$.exe conf$$.file |
4066 |
echo >conf$$.file |
4067 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
4068 |
# We could just check for DJGPP; but this test a) works b) is more generic |
4069 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
4070 |
if test -f conf$$.exe; then |
4071 |
# Don't use ln at all; we don't have any links |
4072 |
as_ln_s='cp -p' |
4073 |
else |
4074 |
as_ln_s='ln -s' |
4075 |
fi |
4076 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
4077 |
as_ln_s=ln |
4078 |
else |
4079 |
as_ln_s='cp -p' |
4080 |
fi |
4081 |
rm -f conf$$ conf$$.exe conf$$.file |
4082 |
|
4083 |
if mkdir -p . 2>/dev/null; then |
4084 |
as_mkdir_p=: |
4085 |
else |
4086 |
as_mkdir_p=false |
4087 |
fi |
4088 |
|
4089 |
as_executable_p="test -f" |
4090 |
|
4091 |
# Sed expression to map a string onto a valid CPP name. |
4092 |
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
4093 |
|
4094 |
# Sed expression to map a string onto a valid variable name. |
4095 |
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
4096 |
|
4097 |
|
4098 |
# IFS |
4099 |
# We need space, tab and new line, in precisely that order. |
4100 |
as_nl=' |
4101 |
' |
4102 |
IFS=" $as_nl" |
4103 |
|
4104 |
# CDPATH. |
4105 |
$as_unset CDPATH |
4106 |
|
4107 |
exec 6>&1 |
4108 |
|
4109 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
4110 |
# report actual input values of CONFIG_FILES etc. instead of their |
4111 |
# values after options handling. Logging --version etc. is OK. |
4112 |
exec 5>>config.log |
4113 |
{ |
4114 |
echo |
4115 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
4116 |
## Running $as_me. ## |
4117 |
_ASBOX |
4118 |
} >&5 |
4119 |
cat >&5 <<_CSEOF |
4120 |
|
4121 |
This file was extended by $as_me, which was |
4122 |
generated by GNU Autoconf 2.57. Invocation command line was |
4123 |
|
4124 |
CONFIG_FILES = $CONFIG_FILES |
4125 |
CONFIG_HEADERS = $CONFIG_HEADERS |
4126 |
CONFIG_LINKS = $CONFIG_LINKS |
4127 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
4128 |
$ $0 $@ |
4129 |
|
4130 |
_CSEOF |
4131 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
4132 |
echo >&5 |
4133 |
_ACEOF |
4134 |
|
4135 |
# Files that config.status was made for. |
4136 |
if test -n "$ac_config_files"; then |
4137 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
4138 |
fi |
4139 |
|
4140 |
if test -n "$ac_config_headers"; then |
4141 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
4142 |
fi |
4143 |
|
4144 |
if test -n "$ac_config_links"; then |
4145 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
4146 |
fi |
4147 |
|
4148 |
if test -n "$ac_config_commands"; then |
4149 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
4150 |
fi |
4151 |
|
4152 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4153 |
|
4154 |
ac_cs_usage="\ |
4155 |
\`$as_me' instantiates files from templates according to the |
4156 |
current configuration. |
4157 |
|
4158 |
Usage: $0 [OPTIONS] [FILE]... |
4159 |
|
4160 |
-h, --help print this help, then exit |
4161 |
-V, --version print version number, then exit |
4162 |
-q, --quiet do not print progress messages |
4163 |
-d, --debug don't remove temporary files |
4164 |
--recheck update $as_me by reconfiguring in the same conditions |
4165 |
--file=FILE[:TEMPLATE] |
4166 |
instantiate the configuration file FILE |
4167 |
--header=FILE[:TEMPLATE] |
4168 |
instantiate the configuration header FILE |
4169 |
|
4170 |
Configuration files: |
4171 |
$config_files |
4172 |
|
4173 |
Configuration headers: |
4174 |
$config_headers |
4175 |
|
4176 |
Report bugs to <bug-autoconf@gnu.org>." |
4177 |
_ACEOF |
4178 |
|
4179 |
cat >>$CONFIG_STATUS <<_ACEOF |
4180 |
ac_cs_version="\\ |
4181 |
config.status |
4182 |
configured by $0, generated by GNU Autoconf 2.57, |
4183 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
4184 |
|
4185 |
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
4186 |
Free Software Foundation, Inc. |
4187 |
This config.status script is free software; the Free Software Foundation |
4188 |
gives unlimited permission to copy, distribute and modify it." |
4189 |
srcdir=$srcdir |
4190 |
_ACEOF |
4191 |
|
4192 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4193 |
# If no file are specified by the user, then we need to provide default |
4194 |
# value. By we need to know if files were specified by the user. |
4195 |
ac_need_defaults=: |
4196 |
while test $# != 0 |
4197 |
do |
4198 |
case $1 in |
4199 |
--*=*) |
4200 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
4201 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
4202 |
ac_shift=: |
4203 |
;; |
4204 |
-*) |
4205 |
ac_option=$1 |
4206 |
ac_optarg=$2 |
4207 |
ac_shift=shift |
4208 |
;; |
4209 |
*) # This is not an option, so the user has probably given explicit |
4210 |
# arguments. |
4211 |
ac_option=$1 |
4212 |
ac_need_defaults=false;; |
4213 |
esac |
4214 |
|
4215 |
case $ac_option in |
4216 |
# Handling of the options. |
4217 |
_ACEOF |
4218 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4219 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4220 |
ac_cs_recheck=: ;; |
4221 |
--version | --vers* | -V ) |
4222 |
echo "$ac_cs_version"; exit 0 ;; |
4223 |
--he | --h) |
4224 |
# Conflict between --help and --header |
4225 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
4226 |
Try \`$0 --help' for more information." >&5 |
4227 |
echo "$as_me: error: ambiguous option: $1 |
4228 |
Try \`$0 --help' for more information." >&2;} |
4229 |
{ (exit 1); exit 1; }; };; |
4230 |
--help | --hel | -h ) |
4231 |
echo "$ac_cs_usage"; exit 0 ;; |
4232 |
--debug | --d* | -d ) |
4233 |
debug=: ;; |
4234 |
--file | --fil | --fi | --f ) |
4235 |
$ac_shift |
4236 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
4237 |
ac_need_defaults=false;; |
4238 |
--header | --heade | --head | --hea ) |
4239 |
$ac_shift |
4240 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
4241 |
ac_need_defaults=false;; |
4242 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4243 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
4244 |
ac_cs_silent=: ;; |
4245 |
|
4246 |
# This is an error. |
4247 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
4248 |
Try \`$0 --help' for more information." >&5 |
4249 |
echo "$as_me: error: unrecognized option: $1 |
4250 |
Try \`$0 --help' for more information." >&2;} |
4251 |
{ (exit 1); exit 1; }; } ;; |
4252 |
|
4253 |
*) ac_config_targets="$ac_config_targets $1" ;; |
4254 |
|
4255 |
esac |
4256 |
shift |
4257 |
done |
4258 |
|
4259 |
ac_configure_extra_args= |
4260 |
|
4261 |
if $ac_cs_silent; then |
4262 |
exec 6>/dev/null |
4263 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
4264 |
fi |
4265 |
|
4266 |
_ACEOF |
4267 |
cat >>$CONFIG_STATUS <<_ACEOF |
4268 |
if \$ac_cs_recheck; then |
4269 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
4270 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4271 |
fi |
4272 |
|
4273 |
_ACEOF |
4274 |
|
4275 |
|
4276 |
|
4277 |
|
4278 |
|
4279 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4280 |
for ac_config_target in $ac_config_targets |
4281 |
do |
4282 |
case "$ac_config_target" in |
4283 |
# Handling of arguments. |
4284 |
"config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;; |
4285 |
"gui.make" ) CONFIG_FILES="$CONFIG_FILES gui.make" ;; |
4286 |
"Headers/Additions/GNUstepGUI/GSVersion.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepGUI/GSVersion.h" ;; |
4287 |
"Headers/Additions/GNUstepGUI/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Headers/Additions/GNUstepGUI/config.h" ;; |
4288 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
4289 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
4290 |
{ (exit 1); exit 1; }; };; |
4291 |
esac |
4292 |
done |
4293 |
|
4294 |
# If the user did not use the arguments to specify the items to instantiate, |
4295 |
# then the envvar interface is used. Set only those that are not. |
4296 |
# We use the long form for the default assignment because of an extremely |
4297 |
# bizarre bug on SunOS 4.1.3. |
4298 |
if $ac_need_defaults; then |
4299 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
4300 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
4301 |
fi |
4302 |
|
4303 |
# Have a temporary directory for convenience. Make it in the build tree |
4304 |
# simply because there is no reason to put it here, and in addition, |
4305 |
# creating and moving files from /tmp can sometimes cause problems. |
4306 |
# Create a temporary directory, and hook for its removal unless debugging. |
4307 |
$debug || |
4308 |
{ |
4309 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
4310 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
4311 |
} |
4312 |
|
4313 |
# Create a (secure) tmp directory for tmp files. |
4314 |
|
4315 |
{ |
4316 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
4317 |
test -n "$tmp" && test -d "$tmp" |
4318 |
} || |
4319 |
{ |
4320 |
tmp=./confstat$$-$RANDOM |
4321 |
(umask 077 && mkdir $tmp) |
4322 |
} || |
4323 |
{ |
4324 |
echo "$me: cannot create a temporary directory in ." >&2 |
4325 |
{ (exit 1); exit 1; } |
4326 |
} |
4327 |
|
4328 |
_ACEOF |
4329 |
|
4330 |
cat >>$CONFIG_STATUS <<_ACEOF |
4331 |
|
4332 |
# |
4333 |
# CONFIG_FILES section. |
4334 |
# |
4335 |
|
4336 |
# No need to generate the scripts if there are no CONFIG_FILES. |
4337 |
# This happens for instance when ./config.status config.h |
4338 |
if test -n "\$CONFIG_FILES"; then |
4339 |
# Protect against being on the right side of a sed subst in config.status. |
4340 |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
4341 |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
4342 |
s,@SHELL@,$SHELL,;t t |
4343 |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
4344 |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
4345 |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
4346 |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
4347 |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
4348 |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
4349 |
s,@exec_prefix@,$exec_prefix,;t t |
4350 |
s,@prefix@,$prefix,;t t |
4351 |
s,@program_transform_name@,$program_transform_name,;t t |
4352 |
s,@bindir@,$bindir,;t t |
4353 |
s,@sbindir@,$sbindir,;t t |
4354 |
s,@libexecdir@,$libexecdir,;t t |
4355 |
s,@datadir@,$datadir,;t t |
4356 |
s,@sysconfdir@,$sysconfdir,;t t |
4357 |
s,@sharedstatedir@,$sharedstatedir,;t t |
4358 |
s,@localstatedir@,$localstatedir,;t t |
4359 |
s,@libdir@,$libdir,;t t |
4360 |
s,@includedir@,$includedir,;t t |
4361 |
s,@oldincludedir@,$oldincludedir,;t t |
4362 |
s,@infodir@,$infodir,;t t |
4363 |
s,@mandir@,$mandir,;t t |
4364 |
s,@build_alias@,$build_alias,;t t |
4365 |
s,@host_alias@,$host_alias,;t t |
4366 |
s,@target_alias@,$target_alias,;t t |
4367 |
s,@DEFS@,$DEFS,;t t |
4368 |
s,@ECHO_C@,$ECHO_C,;t t |
4369 |
s,@ECHO_N@,$ECHO_N,;t t |
4370 |
s,@ECHO_T@,$ECHO_T,;t t |
4371 |
s,@LIBS@,$LIBS,;t t |
4372 |
s,@build@,$build,;t t |
4373 |
s,@build_cpu@,$build_cpu,;t t |
4374 |
s,@build_vendor@,$build_vendor,;t t |
4375 |
s,@build_os@,$build_os,;t t |
4376 |
s,@host@,$host,;t t |
4377 |
s,@host_cpu@,$host_cpu,;t t |
4378 |
s,@host_vendor@,$host_vendor,;t t |
4379 |
s,@host_os@,$host_os,;t t |
4380 |
s,@target@,$target,;t t |
4381 |
s,@target_cpu@,$target_cpu,;t t |
4382 |
s,@target_vendor@,$target_vendor,;t t |
4383 |
s,@target_os@,$target_os,;t t |
4384 |
s,@CC@,$CC,;t t |
4385 |
s,@CFLAGS@,$CFLAGS,;t t |
4386 |
s,@LDFLAGS@,$LDFLAGS,;t t |
4387 |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
4388 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
4389 |
s,@EXEEXT@,$EXEEXT,;t t |
4390 |
s,@OBJEXT@,$OBJEXT,;t t |
4391 |
s,@CPP@,$CPP,;t t |
4392 |
s,@EGREP@,$EGREP,;t t |
4393 |
s,@BUILD_GSND@,$BUILD_GSND,;t t |
4394 |
s,@GNUSTEP_GUI_VERSION@,$GNUSTEP_GUI_VERSION,;t t |
4395 |
s,@GNUSTEP_GUI_MAJOR_VERSION@,$GNUSTEP_GUI_MAJOR_VERSION,;t t |
4396 |
s,@GNUSTEP_GUI_MINOR_VERSION@,$GNUSTEP_GUI_MINOR_VERSION,;t t |
4397 |
s,@GNUSTEP_GUI_SUBMINOR_VERSION@,$GNUSTEP_GUI_SUBMINOR_VERSION,;t t |
4398 |
s,@ADDITIONAL_LIB_DIRS@,$ADDITIONAL_LIB_DIRS,;t t |
4399 |
s,@ADDITIONAL_INCLUDE_DIRS@,$ADDITIONAL_INCLUDE_DIRS,;t t |
4400 |
s,@ADDITIONAL_DEPENDS@,$ADDITIONAL_DEPENDS,;t t |
4401 |
s,@LIBOBJS@,$LIBOBJS,;t t |
4402 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
4403 |
CEOF |
4404 |
|
4405 |
_ACEOF |
4406 |
|
4407 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4408 |
# Split the substitutions into bite-sized pieces for seds with |
4409 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
4410 |
ac_max_sed_lines=48 |
4411 |
ac_sed_frag=1 # Number of current file. |
4412 |
ac_beg=1 # First line for current file. |
4413 |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
4414 |
ac_more_lines=: |
4415 |
ac_sed_cmds= |
4416 |
while $ac_more_lines; do |
4417 |
if test $ac_beg -gt 1; then |
4418 |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
4419 |
else |
4420 |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
4421 |
fi |
4422 |
if test ! -s $tmp/subs.frag; then |
4423 |
ac_more_lines=false |
4424 |
else |
4425 |
# The purpose of the label and of the branching condition is to |
4426 |
# speed up the sed processing (if there are no `@' at all, there |
4427 |
# is no need to browse any of the substitutions). |
4428 |
# These are the two extra sed commands mentioned above. |
4429 |
(echo ':t |
4430 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
4431 |
if test -z "$ac_sed_cmds"; then |
4432 |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
4433 |
else |
4434 |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
4435 |
fi |
4436 |
ac_sed_frag=`expr $ac_sed_frag + 1` |
4437 |
ac_beg=$ac_end |
4438 |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
4439 |
fi |
4440 |
done |
4441 |
if test -z "$ac_sed_cmds"; then |
4442 |
ac_sed_cmds=cat |
4443 |
fi |
4444 |
fi # test -n "$CONFIG_FILES" |
4445 |
|
4446 |
_ACEOF |
4447 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4448 |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
4449 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
4450 |
case $ac_file in |
4451 |
- | *:- | *:-:* ) # input from stdin |
4452 |
cat >$tmp/stdin |
4453 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
4454 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
4455 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
4456 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
4457 |
* ) ac_file_in=$ac_file.in ;; |
4458 |
esac |
4459 |
|
4460 |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
4461 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
4462 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4463 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
4464 |
X"$ac_file" : 'X\(//\)$' \| \ |
4465 |
X"$ac_file" : 'X\(/\)' \| \ |
4466 |
. : '\(.\)' 2>/dev/null || |
4467 |
echo X"$ac_file" | |
4468 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4469 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
4470 |
/^X\(\/\/\)$/{ s//\1/; q; } |
4471 |
/^X\(\/\).*/{ s//\1/; q; } |
4472 |
s/.*/./; q'` |
4473 |
{ if $as_mkdir_p; then |
4474 |
mkdir -p "$ac_dir" |
4475 |
else |
4476 |
as_dir="$ac_dir" |
4477 |
as_dirs= |
4478 |
while test ! -d "$as_dir"; do |
4479 |
as_dirs="$as_dir $as_dirs" |
4480 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
4481 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4482 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
4483 |
X"$as_dir" : 'X\(//\)$' \| \ |
4484 |
X"$as_dir" : 'X\(/\)' \| \ |
4485 |
. : '\(.\)' 2>/dev/null || |
4486 |
echo X"$as_dir" | |
4487 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4488 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
4489 |
/^X\(\/\/\)$/{ s//\1/; q; } |
4490 |
/^X\(\/\).*/{ s//\1/; q; } |
4491 |
s/.*/./; q'` |
4492 |
done |
4493 |
test ! -n "$as_dirs" || mkdir $as_dirs |
4494 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
4495 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
4496 |
{ (exit 1); exit 1; }; }; } |
4497 |
|
4498 |
ac_builddir=. |
4499 |
|
4500 |
if test "$ac_dir" != .; then |
4501 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4502 |
# A "../" for each directory in $ac_dir_suffix. |
4503 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
4504 |
else |
4505 |
ac_dir_suffix= ac_top_builddir= |
4506 |
fi |
4507 |
|
4508 |
case $srcdir in |
4509 |
.) # No --srcdir option. We are building in place. |
4510 |
ac_srcdir=. |
4511 |
if test -z "$ac_top_builddir"; then |
4512 |
ac_top_srcdir=. |
4513 |
else |
4514 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
4515 |
fi ;; |
4516 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
4517 |
ac_srcdir=$srcdir$ac_dir_suffix; |
4518 |
ac_top_srcdir=$srcdir ;; |
4519 |
*) # Relative path. |
4520 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
4521 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
4522 |
esac |
4523 |
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
4524 |
# absolute. |
4525 |
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
4526 |
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
4527 |
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
4528 |
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
4529 |
|
4530 |
|
4531 |
|
4532 |
if test x"$ac_file" != x-; then |
4533 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
4534 |
echo "$as_me: creating $ac_file" >&6;} |
4535 |
rm -f "$ac_file" |
4536 |
fi |
4537 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
4538 |
# use $as_me), people would be surprised to read: |
4539 |
# /* config.h. Generated by config.status. */ |
4540 |
if test x"$ac_file" = x-; then |
4541 |
configure_input= |
4542 |
else |
4543 |
configure_input="$ac_file. " |
4544 |
fi |
4545 |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
4546 |
sed 's,.*/,,'` by configure." |
4547 |
|
4548 |
# First look for the input files in the build tree, otherwise in the |
4549 |
# src tree. |
4550 |
ac_file_inputs=`IFS=: |
4551 |
for f in $ac_file_in; do |
4552 |
case $f in |
4553 |
-) echo $tmp/stdin ;; |
4554 |
[\\/$]*) |
4555 |
# Absolute (can't be DOS-style, as IFS=:) |
4556 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
4557 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
4558 |
{ (exit 1); exit 1; }; } |
4559 |
echo $f;; |
4560 |
*) # Relative |
4561 |
if test -f "$f"; then |
4562 |
# Build tree |
4563 |
echo $f |
4564 |
elif test -f "$srcdir/$f"; then |
4565 |
# Source tree |
4566 |
echo $srcdir/$f |
4567 |
else |
4568 |
# /dev/null tree |
4569 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
4570 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
4571 |
{ (exit 1); exit 1; }; } |
4572 |
fi;; |
4573 |
esac |
4574 |
done` || { (exit 1); exit 1; } |
4575 |
_ACEOF |
4576 |
cat >>$CONFIG_STATUS <<_ACEOF |
4577 |
sed "$ac_vpsub |
4578 |
$extrasub |
4579 |
_ACEOF |
4580 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4581 |
:t |
4582 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
4583 |
s,@configure_input@,$configure_input,;t t |
4584 |
s,@srcdir@,$ac_srcdir,;t t |
4585 |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
4586 |
s,@top_srcdir@,$ac_top_srcdir,;t t |
4587 |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
4588 |
s,@builddir@,$ac_builddir,;t t |
4589 |
s,@abs_builddir@,$ac_abs_builddir,;t t |
4590 |
s,@top_builddir@,$ac_top_builddir,;t t |
4591 |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
4592 |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
4593 |
rm -f $tmp/stdin |
4594 |
if test x"$ac_file" != x-; then |
4595 |
mv $tmp/out $ac_file |
4596 |
else |
4597 |
cat $tmp/out |
4598 |
rm -f $tmp/out |
4599 |
fi |
4600 |
|
4601 |
done |
4602 |
_ACEOF |
4603 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4604 |
|
4605 |
# |
4606 |
# CONFIG_HEADER section. |
4607 |
# |
4608 |
|
4609 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
4610 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
4611 |
# |
4612 |
# ac_d sets the value in "#define NAME VALUE" lines. |
4613 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
4614 |
ac_dB='[ ].*$,\1#\2' |
4615 |
ac_dC=' ' |
4616 |
ac_dD=',;t' |
4617 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
4618 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
4619 |
ac_uB='$,\1#\2define\3' |
4620 |
ac_uC=' ' |
4621 |
ac_uD=',;t' |
4622 |
|
4623 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
4624 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
4625 |
case $ac_file in |
4626 |
- | *:- | *:-:* ) # input from stdin |
4627 |
cat >$tmp/stdin |
4628 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
4629 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
4630 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
4631 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
4632 |
* ) ac_file_in=$ac_file.in ;; |
4633 |
esac |
4634 |
|
4635 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
4636 |
echo "$as_me: creating $ac_file" >&6;} |
4637 |
|
4638 |
# First look for the input files in the build tree, otherwise in the |
4639 |
# src tree. |
4640 |
ac_file_inputs=`IFS=: |
4641 |
for f in $ac_file_in; do |
4642 |
case $f in |
4643 |
-) echo $tmp/stdin ;; |
4644 |
[\\/$]*) |
4645 |
# Absolute (can't be DOS-style, as IFS=:) |
4646 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
4647 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
4648 |
{ (exit 1); exit 1; }; } |
4649 |
echo $f;; |
4650 |
*) # Relative |
4651 |
if test -f "$f"; then |
4652 |
# Build tree |
4653 |
echo $f |
4654 |
elif test -f "$srcdir/$f"; then |
4655 |
# Source tree |
4656 |
echo $srcdir/$f |
4657 |
else |
4658 |
# /dev/null tree |
4659 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
4660 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
4661 |
{ (exit 1); exit 1; }; } |
4662 |
fi;; |
4663 |
esac |
4664 |
done` || { (exit 1); exit 1; } |
4665 |
# Remove the trailing spaces. |
4666 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
4667 |
|
4668 |
_ACEOF |
4669 |
|
4670 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
4671 |
# `conftest.undefs', that substitutes the proper values into |
4672 |
# config.h.in to produce config.h. The first handles `#define' |
4673 |
# templates, and the second `#undef' templates. |
4674 |
# And first: Protect against being on the right side of a sed subst in |
4675 |
# config.status. Protect against being in an unquoted here document |
4676 |
# in config.status. |
4677 |
rm -f conftest.defines conftest.undefs |
4678 |
# Using a here document instead of a string reduces the quoting nightmare. |
4679 |
# Putting comments in sed scripts is not portable. |
4680 |
# |
4681 |
# `end' is used to avoid that the second main sed command (meant for |
4682 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
4683 |
# See the Autoconf documentation for `clear'. |
4684 |
cat >confdef2sed.sed <<\_ACEOF |
4685 |
s/[\\&,]/\\&/g |
4686 |
s,[\\$`],\\&,g |
4687 |
t clear |
4688 |
: clear |
4689 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
4690 |
t end |
4691 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
4692 |
: end |
4693 |
_ACEOF |
4694 |
# If some macros were called several times there might be several times |
4695 |
# the same #defines, which is useless. Nevertheless, we may not want to |
4696 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
4697 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
4698 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
4699 |
rm -f confdef2sed.sed |
4700 |
|
4701 |
# This sed command replaces #undef with comments. This is necessary, for |
4702 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
4703 |
# on some systems where configure will not decide to define it. |
4704 |
cat >>conftest.undefs <<\_ACEOF |
4705 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
4706 |
_ACEOF |
4707 |
|
4708 |
# Break up conftest.defines because some shells have a limit on the size |
4709 |
# of here documents, and old seds have small limits too (100 cmds). |
4710 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
4711 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
4712 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
4713 |
echo ' :' >>$CONFIG_STATUS |
4714 |
rm -f conftest.tail |
4715 |
while grep . conftest.defines >/dev/null |
4716 |
do |
4717 |
# Write a limited-size here document to $tmp/defines.sed. |
4718 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
4719 |
# Speed up: don't consider the non `#define' lines. |
4720 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
4721 |
# Work around the forget-to-reset-the-flag bug. |
4722 |
echo 't clr' >>$CONFIG_STATUS |
4723 |
echo ': clr' >>$CONFIG_STATUS |
4724 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
4725 |
echo 'CEOF |
4726 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
4727 |
rm -f $tmp/in |
4728 |
mv $tmp/out $tmp/in |
4729 |
' >>$CONFIG_STATUS |
4730 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
4731 |
rm -f conftest.defines |
4732 |
mv conftest.tail conftest.defines |
4733 |
done |
4734 |
rm -f conftest.defines |
4735 |
echo ' fi # grep' >>$CONFIG_STATUS |
4736 |
echo >>$CONFIG_STATUS |
4737 |
|
4738 |
# Break up conftest.undefs because some shells have a limit on the size |
4739 |
# of here documents, and old seds have small limits too (100 cmds). |
4740 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
4741 |
rm -f conftest.tail |
4742 |
while grep . conftest.undefs >/dev/null |
4743 |
do |
4744 |
# Write a limited-size here document to $tmp/undefs.sed. |
4745 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
4746 |
# Speed up: don't consider the non `#undef' |
4747 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
4748 |
# Work around the forget-to-reset-the-flag bug. |
4749 |
echo 't clr' >>$CONFIG_STATUS |
4750 |
echo ': clr' >>$CONFIG_STATUS |
4751 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
4752 |
echo 'CEOF |
4753 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
4754 |
rm -f $tmp/in |
4755 |
mv $tmp/out $tmp/in |
4756 |
' >>$CONFIG_STATUS |
4757 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
4758 |
rm -f conftest.undefs |
4759 |
mv conftest.tail conftest.undefs |
4760 |
done |
4761 |
rm -f conftest.undefs |
4762 |
|
4763 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4764 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
4765 |
# use $as_me), people would be surprised to read: |
4766 |
# /* config.h. Generated by config.status. */ |
4767 |
if test x"$ac_file" = x-; then |
4768 |
echo "/* Generated by configure. */" >$tmp/config.h |
4769 |
else |
4770 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
4771 |
fi |
4772 |
cat $tmp/in >>$tmp/config.h |
4773 |
rm -f $tmp/in |
4774 |
if test x"$ac_file" != x-; then |
4775 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
4776 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
4777 |
echo "$as_me: $ac_file is unchanged" >&6;} |
4778 |
else |
4779 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
4780 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4781 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
4782 |
X"$ac_file" : 'X\(//\)$' \| \ |
4783 |
X"$ac_file" : 'X\(/\)' \| \ |
4784 |
. : '\(.\)' 2>/dev/null || |
4785 |
echo X"$ac_file" | |
4786 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4787 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
4788 |
/^X\(\/\/\)$/{ s//\1/; q; } |
4789 |
/^X\(\/\).*/{ s//\1/; q; } |
4790 |
s/.*/./; q'` |
4791 |
{ if $as_mkdir_p; then |
4792 |
mkdir -p "$ac_dir" |
4793 |
else |
4794 |
as_dir="$ac_dir" |
4795 |
as_dirs= |
4796 |
while test ! -d "$as_dir"; do |
4797 |
as_dirs="$as_dir $as_dirs" |
4798 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
4799 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4800 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
4801 |
X"$as_dir" : 'X\(//\)$' \| \ |
4802 |
X"$as_dir" : 'X\(/\)' \| \ |
4803 |
. : '\(.\)' 2>/dev/null || |
4804 |
echo X"$as_dir" | |
4805 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
4806 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
4807 |
/^X\(\/\/\)$/{ s//\1/; q; } |
4808 |
/^X\(\/\).*/{ s//\1/; q; } |
4809 |
s/.*/./; q'` |
4810 |
done |
4811 |
test ! -n "$as_dirs" || mkdir $as_dirs |
4812 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
4813 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
4814 |
{ (exit 1); exit 1; }; }; } |
4815 |
|
4816 |
rm -f $ac_file |
4817 |
mv $tmp/config.h $ac_file |
4818 |
fi |
4819 |
else |
4820 |
cat $tmp/config.h |
4821 |
rm -f $tmp/config.h |
4822 |
fi |
4823 |
done |
4824 |
_ACEOF |
4825 |
|
4826 |
cat >>$CONFIG_STATUS <<\_ACEOF |
4827 |
|
4828 |
{ (exit 0); exit 0; } |
4829 |
_ACEOF |
4830 |
chmod +x $CONFIG_STATUS |
4831 |
ac_clean_files=$ac_clean_files_save |
4832 |
|
4833 |
|
4834 |
# configure is writing to config.log, and then calls config.status. |
4835 |
# config.status does its own redirection, appending to config.log. |
4836 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
4837 |
# by configure, so config.status won't be able to write to it; its |
4838 |
# output is simply discarded. So we exec the FD to /dev/null, |
4839 |
# effectively closing config.log, so it can be properly (re)opened and |
4840 |
# appended to by config.status. When coming back to configure, we |
4841 |
# need to make the FD available again. |
4842 |
if test "$no_create" != yes; then |
4843 |
ac_cs_success=: |
4844 |
ac_config_status_args= |
4845 |
test "$silent" = yes && |
4846 |
ac_config_status_args="$ac_config_status_args --quiet" |
4847 |
exec 5>/dev/null |
4848 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
4849 |
exec 5>>config.log |
4850 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
4851 |
# would make configure fail if this is the last instruction. |
4852 |
$ac_cs_success || { (exit 1); exit 1; } |
4853 |
fi |
4854 |
|
4855 |
|
4856 |
|
4857 |
|
4858 |
|
4859 |
|