/[gnustep]/gnustep/core/gui/configure
ViewVC logotype

Contents of /gnustep/core/gui/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.41 - (show annotations) (download)
Thu Jul 31 23:52:08 2003 UTC (20 years, 9 months ago) by ayers
Branch: MAIN
CVS Tags: gui-0_8_9, gui-0_9_0
Changes since 1.40: +4 -4 lines
        Header reorganization - Please refer to ChangeLog

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26