]> gcc.gnu.org Git - gcc.git/blame - libobjc/configure
dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the...
[gcc.git] / libobjc / configure
CommitLineData
bce1b489
BE
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
da4b1927 4# Generated automatically using autoconf version 2.13
bce1b489
BE
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-objc-gc enable the use of Boehm's garbage collector with
16 the GNU Objective-C runtime."
17
18# Initialize some variables set by options.
19# The variables have the same names as the options, with
20# dashes changed to underlines.
21build=NONE
22cache_file=./config.cache
23exec_prefix=NONE
24host=NONE
25no_create=
26nonopt=NONE
27no_recursion=
28prefix=NONE
29program_prefix=NONE
30program_suffix=NONE
31program_transform_name=s,x,x,
32silent=
33site=
34srcdir=
35target=NONE
36verbose=
37x_includes=NONE
38x_libraries=NONE
39bindir='${exec_prefix}/bin'
40sbindir='${exec_prefix}/sbin'
41libexecdir='${exec_prefix}/libexec'
42datadir='${prefix}/share'
43sysconfdir='${prefix}/etc'
44sharedstatedir='${prefix}/com'
45localstatedir='${prefix}/var'
46libdir='${exec_prefix}/lib'
47includedir='${prefix}/include'
48oldincludedir='/usr/include'
49infodir='${prefix}/info'
50mandir='${prefix}/man'
51
52# Initialize some other variables.
53subdirs=
54MFLAGS= MAKEFLAGS=
55SHELL=${CONFIG_SHELL-/bin/sh}
56# Maximum number of lines to put in a shell here document.
57ac_max_here_lines=12
58
59ac_prev=
60for ac_option
61do
62
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
66 ac_prev=
67 continue
68 fi
69
70 case "$ac_option" in
71 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 *) ac_optarg= ;;
73 esac
74
75 # Accept the important Cygnus configure options, so we can diagnose typos.
76
77 case "$ac_option" in
78
79 -bindir | --bindir | --bindi | --bind | --bin | --bi)
80 ac_prev=bindir ;;
81 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82 bindir="$ac_optarg" ;;
83
84 -build | --build | --buil | --bui | --bu)
85 ac_prev=build ;;
86 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 build="$ac_optarg" ;;
88
89 -cache-file | --cache-file | --cache-fil | --cache-fi \
90 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91 ac_prev=cache_file ;;
92 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94 cache_file="$ac_optarg" ;;
95
96 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97 ac_prev=datadir ;;
98 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99 | --da=*)
100 datadir="$ac_optarg" ;;
101
102 -disable-* | --disable-*)
103 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 fi
108 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
110
111 -enable-* | --enable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 case "$ac_option" in
119 *=*) ;;
120 *) ac_optarg=yes ;;
121 esac
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
123
124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126 | --exec | --exe | --ex)
127 ac_prev=exec_prefix ;;
128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130 | --exec=* | --exe=* | --ex=*)
131 exec_prefix="$ac_optarg" ;;
132
133 -gas | --gas | --ga | --g)
134 # Obsolete; use --with-gas.
135 with_gas=yes ;;
136
137 -help | --help | --hel | --he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
140 cat << EOF
141Usage: configure [options] [host]
142Options: [defaults in brackets after descriptions]
143Configuration:
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
151 [$ac_default_prefix]
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 [same as prefix]
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
158 [PREFIX/share]
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
161 [PREFIX/com]
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
173EOF
174 cat << EOF
175Host type:
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
186EOF
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
189 fi
190 exit 0 ;;
191
192 -host | --host | --hos | --ho)
193 ac_prev=host ;;
194 -host=* | --host=* | --hos=* | --ho=*)
195 host="$ac_optarg" ;;
196
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
203
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
205 ac_prev=infodir ;;
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
208
209 -libdir | --libdir | --libdi | --libd)
210 ac_prev=libdir ;;
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
213
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
220
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
229
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231 ac_prev=mandir ;;
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
234
235 -nfp | --nfp | --nf)
236 # Obsolete; use --without-fp.
237 with_fp=no ;;
238
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 | --no-cr | --no-c)
241 no_create=yes ;;
242
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245 no_recursion=yes ;;
246
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
255
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257 ac_prev=prefix ;;
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
260
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
267
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
274
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
291
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
294 silent=yes ;;
295
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297 ac_prev=sbindir ;;
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299 | --sbi=* | --sb=*)
300 sbindir="$ac_optarg" ;;
301
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
305 | --sha | --sh)
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310 | --sha=* | --sh=*)
311 sharedstatedir="$ac_optarg" ;;
312
313 -site | --site | --sit)
314 ac_prev=site ;;
315 -site=* | --site=* | --sit=*)
316 site="$ac_optarg" ;;
317
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319 ac_prev=srcdir ;;
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
322
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
329
330 -target | --target | --targe | --targ | --tar | --ta | --t)
331 ac_prev=target ;;
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
334
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
336 verbose=yes ;;
337
338 -version | --version | --versio | --versi | --vers)
da4b1927 339 echo "configure generated by autoconf version 2.13"
bce1b489
BE
340 exit 0 ;;
341
342 -with-* | --with-*)
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 fi
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
349 case "$ac_option" in
350 *=*) ;;
351 *) ac_optarg=yes ;;
352 esac
353 eval "with_${ac_package}='$ac_optarg'" ;;
354
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 fi
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
363
364 --x)
365 # Obsolete; use --with-x.
366 with_x=yes ;;
367
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
374
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
381
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 ;;
384
385 *)
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 fi
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 fi
392 nonopt="$ac_option"
393 ;;
394
395 esac
396done
397
398if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400fi
401
402trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403
404# File descriptor usage:
405# 0 standard input
406# 1 file creation
407# 2 errors and warnings
408# 3 some systems may open it to /dev/tty
409# 4 used on the Kubota Titan
410# 6 checking for... messages and results
411# 5 compiler messages saved in config.log
412if test "$silent" = yes; then
413 exec 6>/dev/null
414else
415 exec 6>&1
416fi
417exec 5>./config.log
418
419echo "\
420This file contains any messages produced by compilers while
421running configure, to aid debugging if configure makes a mistake.
422" 1>&5
423
424# Strip out --no-create and --no-recursion so they do not pile up.
425# Also quote any args containing shell metacharacters.
426ac_configure_args=
427for ac_arg
428do
429 case "$ac_arg" in
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437 esac
438done
439
440# NLS nuisances.
441# Only set these to C if already set. These must not be set unconditionally
442# because not all systems understand e.g. LANG=C (notably SCO).
443# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444# Non-C LC_CTYPE values break the ctype check.
445if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449
450# confdefs.h avoids OS command line length limits that DEFS can exceed.
451rm -rf conftest* confdefs.h
452# AIX cpp loses on an empty file, so make sure it contains at least a newline.
453echo > confdefs.h
454
455# A filename unique to this package, relative to the directory that
456# configure is in, which we can look for to find out if srcdir is correct.
789eb4f5 457ac_unique_file=objc/objc.h
bce1b489
BE
458
459# Find the source files, if location was not specified.
460if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
463 ac_prog=$0
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 srcdir=$ac_confdir
467 if test ! -r $srcdir/$ac_unique_file; then
468 srcdir=..
469 fi
470else
471 ac_srcdir_defaulted=no
472fi
473if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 else
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 fi
479fi
480srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482# Prefer explicitly selected file to automatically selected ones.
483if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 else
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 fi
489fi
490for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
493 . "$ac_site_file"
494 fi
495done
496
497if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
499 . $cache_file
500else
501 echo "creating cache $cache_file"
502 > $cache_file
503fi
504
505ac_ext=c
506# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507ac_cpp='$CPP $CPPFLAGS'
508ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
da4b1927 509ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bce1b489
BE
510cross_compiling=$ac_cv_prog_cc_cross
511
da4b1927
MK
512ac_exeext=
513ac_objext=o
bce1b489
BE
514if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
517 ac_n= ac_c='
518' ac_t=' '
519 else
520 ac_n=-n ac_c= ac_t=
521 fi
522else
523 ac_n= ac_c='\c' ac_t=
524fi
525
526
527#AC_CONFIG_HEADER(config.h)
528
529if test "${srcdir}" = "." ; then
530 if test "${with_target_subdir}" != "." ; then
531 topsrcdir=${with_multisrctop}../..
532 else
533 topsrcdir=${with_multisrctop}..
534 fi
535else
536 topsrcdir=${srcdir}/..
537fi
8a829fd9
KG
538ac_aux_dir=
539for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
548 fi
549done
550if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
bce1b489 557
da4b1927
MK
558# We have to handle 3 cases -- native, cross and canadian cross -- and
559# the extension returned from this macro needs to be treated as a possible
560# scenario and not the only one.
561echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
562echo "configure:563: checking for Cygwin environment" >&5
563if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565else
566 cat > conftest.$ac_ext <<EOF
567#line 568 "configure"
568#include "confdefs.h"
569
570int main() {
571
572#ifndef __CYGWIN__
573#define __CYGWIN__ __CYGWIN32__
574#endif
575return __CYGWIN__;
576; return 0; }
577EOF
578if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579 rm -rf conftest*
580 ac_cv_cygwin=yes
581else
582 echo "configure: failed program was:" >&5
583 cat conftest.$ac_ext >&5
584 rm -rf conftest*
585 ac_cv_cygwin=no
586fi
587rm -f conftest*
588rm -f conftest*
589fi
590
591echo "$ac_t""$ac_cv_cygwin" 1>&6
592CYGWIN=
593test "$ac_cv_cygwin" = yes && CYGWIN=yes
594echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
595echo "configure:596: checking for mingw32 environment" >&5
596if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
598else
599 cat > conftest.$ac_ext <<EOF
600#line 601 "configure"
601#include "confdefs.h"
602
603int main() {
604return __MINGW32__;
605; return 0; }
606EOF
607if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
608 rm -rf conftest*
609 ac_cv_mingw32=yes
610else
611 echo "configure: failed program was:" >&5
612 cat conftest.$ac_ext >&5
613 rm -rf conftest*
614 ac_cv_mingw32=no
615fi
616rm -f conftest*
617rm -f conftest*
618fi
619
620echo "$ac_t""$ac_cv_mingw32" 1>&6
621MINGW32=
622test "$ac_cv_mingw32" = yes && MINGW32=yes
623
624
625echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
626echo "configure:627: checking for executable suffix" >&5
627if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
629else
630 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
631 ac_cv_exeext=.exe
632else
633 rm -f conftest*
634 echo 'int main () { return 0; }' > conftest.$ac_ext
635 ac_cv_exeext=
636 if { (eval echo configure:637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
637 for file in conftest.*; do
638 case $file in
639 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
640 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
641 esac
642 done
643 else
644 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
645 fi
646 rm -f conftest*
647 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
648fi
649fi
650
651EXEEXT=""
652test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
653echo "$ac_t""${ac_cv_exeext}" 1>&6
654ac_exeext=$EXEEXT
655
656
657# If the language specific compiler does not exist, but the "gcc" directory
658# does, we do not build anything. Note, $r is set by the top-level Makefile.
659# Note that when we look for the compiler, we search both with and without
660# extension to handle cross and canadian cross builds.
71205e0b
MH
661compiler_name=cc1obj
662rm -f skip-this-dir
663echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
da4b1927 664echo "configure:665: checking if compiler $compiler_name has been built" >&5
71205e0b
MH
665if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
667else
668 objc_cv_compiler_exists=yes
da4b1927
MK
669if test -n "$r"; then
670 if test -d "$r"/gcc; then
671 if test -f "$r"/gcc/$compiler_name \
672 || test -f "$r"/gcc/$compiler_name$EXEEXT; then
673 true
674 else
675 objc_cv_compiler_exists=no
676 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
677 fi
678 fi
679fi
680
71205e0b
MH
681fi
682
683echo "$ac_t""$objc_cv_compiler_exists" 1>&6
684if test x$objc_cv_compiler_exists = xno
685then
da4b1927
MK
686 rm -f Makefile conftest* confdefs* core
687 exit 0
71205e0b
MH
688fi
689
bce1b489
BE
690# For ObjC we'll set CC to point at the built gcc, but this will get it into
691# the makefiles
692# Extract the first word of "gcc", so it can be a program name with args.
693set dummy gcc; ac_word=$2
694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
da4b1927 695echo "configure:696: checking for $ac_word" >&5
bce1b489
BE
696if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
698else
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
701else
da4b1927
MK
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
703 ac_dummy="$PATH"
704 for ac_dir in $ac_dummy; do
bce1b489
BE
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 ac_cv_prog_CC="gcc"
708 break
709 fi
710 done
711 IFS="$ac_save_ifs"
712fi
713fi
714CC="$ac_cv_prog_CC"
715if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
717else
718 echo "$ac_t""no" 1>&6
719fi
720
721if test -z "$CC"; then
722 # Extract the first word of "cc", so it can be a program name with args.
723set dummy cc; ac_word=$2
724echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
da4b1927 725echo "configure:726: checking for $ac_word" >&5
bce1b489
BE
726if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
728else
729 if test -n "$CC"; then
730 ac_cv_prog_CC="$CC" # Let the user override the test.
731else
da4b1927 732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
bce1b489 733 ac_prog_rejected=no
da4b1927
MK
734 ac_dummy="$PATH"
735 for ac_dir in $ac_dummy; do
bce1b489
BE
736 test -z "$ac_dir" && ac_dir=.
737 if test -f $ac_dir/$ac_word; then
738 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
739 ac_prog_rejected=yes
740 continue
741 fi
742 ac_cv_prog_CC="cc"
743 break
744 fi
745 done
746 IFS="$ac_save_ifs"
747if test $ac_prog_rejected = yes; then
748 # We found a bogon in the path, so make sure we never use it.
749 set dummy $ac_cv_prog_CC
750 shift
751 if test $# -gt 0; then
752 # We chose a different compiler from the bogus one.
753 # However, it has the same basename, so the bogon will be chosen
754 # first if we set CC to just the basename; use the full file name.
755 shift
756 set dummy "$ac_dir/$ac_word" "$@"
757 shift
758 ac_cv_prog_CC="$@"
759 fi
760fi
761fi
762fi
763CC="$ac_cv_prog_CC"
764if test -n "$CC"; then
765 echo "$ac_t""$CC" 1>&6
766else
767 echo "$ac_t""no" 1>&6
768fi
769
da4b1927
MK
770 if test -z "$CC"; then
771 case "`uname -s`" in
772 *win32* | *WIN32*)
773 # Extract the first word of "cl", so it can be a program name with args.
774set dummy cl; ac_word=$2
775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776echo "configure:777: checking for $ac_word" >&5
777if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779else
780 if test -n "$CC"; then
781 ac_cv_prog_CC="$CC" # Let the user override the test.
782else
783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784 ac_dummy="$PATH"
785 for ac_dir in $ac_dummy; do
786 test -z "$ac_dir" && ac_dir=.
787 if test -f $ac_dir/$ac_word; then
788 ac_cv_prog_CC="cl"
789 break
790 fi
791 done
792 IFS="$ac_save_ifs"
793fi
794fi
795CC="$ac_cv_prog_CC"
796if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
798else
799 echo "$ac_t""no" 1>&6
800fi
801 ;;
802 esac
803 fi
bce1b489
BE
804 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
805fi
806
807echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
da4b1927 808echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
bce1b489
BE
809
810ac_ext=c
811# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
812ac_cpp='$CPP $CPPFLAGS'
813ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
da4b1927 814ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bce1b489
BE
815cross_compiling=$ac_cv_prog_cc_cross
816
da4b1927
MK
817cat > conftest.$ac_ext << EOF
818
819#line 820 "configure"
bce1b489 820#include "confdefs.h"
da4b1927 821
bce1b489
BE
822main(){return(0);}
823EOF
da4b1927 824if { (eval echo configure:825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bce1b489
BE
825 ac_cv_prog_cc_works=yes
826 # If we can't run a trivial program, we are probably using a cross compiler.
827 if (./conftest; exit) 2>/dev/null; then
828 ac_cv_prog_cc_cross=no
829 else
830 ac_cv_prog_cc_cross=yes
831 fi
832else
833 echo "configure: failed program was:" >&5
834 cat conftest.$ac_ext >&5
835 ac_cv_prog_cc_works=no
836fi
837rm -fr conftest*
da4b1927
MK
838ac_ext=c
839# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
840ac_cpp='$CPP $CPPFLAGS'
841ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
842ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
843cross_compiling=$ac_cv_prog_cc_cross
bce1b489
BE
844
845echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
846if test $ac_cv_prog_cc_works = no; then
847 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
848fi
849echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
da4b1927 850echo "configure:851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
bce1b489
BE
851echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
852cross_compiling=$ac_cv_prog_cc_cross
853
854echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
da4b1927 855echo "configure:856: checking whether we are using GNU C" >&5
bce1b489
BE
856if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858else
859 cat > conftest.c <<EOF
860#ifdef __GNUC__
861 yes;
862#endif
863EOF
da4b1927 864if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bce1b489
BE
865 ac_cv_prog_gcc=yes
866else
867 ac_cv_prog_gcc=no
868fi
869fi
870
871echo "$ac_t""$ac_cv_prog_gcc" 1>&6
872
873if test $ac_cv_prog_gcc = yes; then
874 GCC=yes
da4b1927
MK
875else
876 GCC=
877fi
878
879ac_test_CFLAGS="${CFLAGS+set}"
880ac_save_CFLAGS="$CFLAGS"
881CFLAGS=
882echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
883echo "configure:884: checking whether ${CC-cc} accepts -g" >&5
bce1b489
BE
884if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886else
887 echo 'void f(){}' > conftest.c
888if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
889 ac_cv_prog_cc_g=yes
890else
891 ac_cv_prog_cc_g=no
892fi
893rm -f conftest*
894
895fi
896
897echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
da4b1927
MK
898if test "$ac_test_CFLAGS" = set; then
899 CFLAGS="$ac_save_CFLAGS"
900elif test $ac_cv_prog_cc_g = yes; then
901 if test "$GCC" = yes; then
bce1b489
BE
902 CFLAGS="-g -O2"
903 else
da4b1927 904 CFLAGS="-g"
bce1b489
BE
905 fi
906else
da4b1927
MK
907 if test "$GCC" = yes; then
908 CFLAGS="-O2"
909 else
910 CFLAGS=
911 fi
bce1b489
BE
912fi
913
914
915test "$AR" || AR=ar
916
917if test "$RANLIB"; then :
918
919else
920 # Extract the first word of "ranlib", so it can be a program name with args.
921set dummy ranlib; ac_word=$2
922echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
da4b1927 923echo "configure:924: checking for $ac_word" >&5
bce1b489
BE
924if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926else
927 if test -n "$RANLIB"; then
928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
929else
da4b1927
MK
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 ac_dummy="$PATH"
932 for ac_dir in $ac_dummy; do
bce1b489
BE
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_RANLIB="ranlib"
936 break
937 fi
938 done
939 IFS="$ac_save_ifs"
940 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
941fi
942fi
943RANLIB="$ac_cv_prog_RANLIB"
944if test -n "$RANLIB"; then
945 echo "$ac_t""$RANLIB" 1>&6
946else
947 echo "$ac_t""no" 1>&6
948fi
949
950fi
bce1b489
BE
951# Find a good install program. We prefer a C program (faster),
952# so one script is as good as another. But avoid the broken or
953# incompatible versions:
954# SysV /etc/install, /usr/sbin/install
955# SunOS /usr/etc/install
956# IRIX /sbin/install
957# AIX /bin/install
958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
959# AFS /usr/afsws/bin/install, which mishandles nonexistent args
960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
961# ./install, which can be erroneously created by make from ./install.sh.
962echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
da4b1927 963echo "configure:964: checking for a BSD compatible install" >&5
bce1b489
BE
964if test -z "$INSTALL"; then
965if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
967else
da4b1927 968 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
bce1b489
BE
969 for ac_dir in $PATH; do
970 # Account for people who put trailing slashes in PATH elements.
971 case "$ac_dir/" in
972 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
973 *)
974 # OSF1 and SCO ODT 3.0 have their own names for install.
975 # Don't use installbsd from OSF since it installs stuff as root
976 # by default.
977 for ac_prog in ginstall scoinst install; do
978 if test -f $ac_dir/$ac_prog; then
979 if test $ac_prog = install &&
980 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
981 # AIX install. It has an incompatible calling convention.
982 :
983 else
984 ac_cv_path_install="$ac_dir/$ac_prog -c"
985 break 2
986 fi
987 fi
988 done
989 ;;
990 esac
991 done
992 IFS="$ac_save_IFS"
993
994fi
995 if test "${ac_cv_path_install+set}" = set; then
996 INSTALL="$ac_cv_path_install"
997 else
998 # As a last resort, use the slow shell script. We don't cache a
999 # path for INSTALL within a source directory, because that will
1000 # break other packages using the cache if that directory is
1001 # removed, or if the path is relative.
1002 INSTALL="$ac_install_sh"
1003 fi
1004fi
1005echo "$ac_t""$INSTALL" 1>&6
1006
1007# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1008# It thinks the first close brace ends the variable substitution.
1009test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1010
da4b1927
MK
1011test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1012
bce1b489
BE
1013test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1014
1015
1016
1017# Sanity check for the cross-compilation case:
1018echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
da4b1927 1019echo "configure:1020: checking how to run the C preprocessor" >&5
bce1b489
BE
1020# On Suns, sometimes $CPP names a directory.
1021if test -n "$CPP" && test -d "$CPP"; then
1022 CPP=
1023fi
1024if test -z "$CPP"; then
1025if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027else
1028 # This must be in double quotes, not single quotes, because CPP may get
1029 # substituted into the Makefile and "${CC-cc}" will confuse make.
1030 CPP="${CC-cc} -E"
1031 # On the NeXT, cc -E runs the code through the compiler's parser,
1032 # not just through cpp.
1033 cat > conftest.$ac_ext <<EOF
da4b1927 1034#line 1035 "configure"
bce1b489
BE
1035#include "confdefs.h"
1036#include <assert.h>
1037Syntax Error
1038EOF
1039ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
da4b1927
MK
1040{ (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1042if test -z "$ac_err"; then
1043 :
1044else
1045 echo "$ac_err" >&5
1046 echo "configure: failed program was:" >&5
1047 cat conftest.$ac_ext >&5
1048 rm -rf conftest*
1049 CPP="${CC-cc} -E -traditional-cpp"
1050 cat > conftest.$ac_ext <<EOF
da4b1927 1051#line 1052 "configure"
bce1b489
BE
1052#include "confdefs.h"
1053#include <assert.h>
1054Syntax Error
1055EOF
1056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
da4b1927
MK
1057{ (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059if test -z "$ac_err"; then
1060 :
1061else
1062 echo "$ac_err" >&5
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1065 rm -rf conftest*
1066 CPP="${CC-cc} -nologo -E"
1067 cat > conftest.$ac_ext <<EOF
1068#line 1069 "configure"
1069#include "confdefs.h"
1070#include <assert.h>
1071Syntax Error
1072EOF
1073ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074{ (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1076if test -z "$ac_err"; then
1077 :
1078else
1079 echo "$ac_err" >&5
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1082 rm -rf conftest*
1083 CPP=/lib/cpp
1084fi
1085rm -f conftest*
1086fi
da4b1927
MK
1087rm -f conftest*
1088fi
bce1b489
BE
1089rm -f conftest*
1090 ac_cv_prog_CPP="$CPP"
1091fi
1092 CPP="$ac_cv_prog_CPP"
1093else
1094 ac_cv_prog_CPP="$CPP"
1095fi
1096echo "$ac_t""$CPP" 1>&6
1097
1098ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
1099echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
da4b1927 1100echo "configure:1101: checking for stdio.h" >&5
bce1b489
BE
1101if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1103else
1104 cat > conftest.$ac_ext <<EOF
da4b1927 1105#line 1106 "configure"
bce1b489
BE
1106#include "confdefs.h"
1107#include <stdio.h>
1108EOF
1109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
da4b1927
MK
1110{ (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1112if test -z "$ac_err"; then
1113 rm -rf conftest*
1114 eval "ac_cv_header_$ac_safe=yes"
1115else
1116 echo "$ac_err" >&5
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1119 rm -rf conftest*
1120 eval "ac_cv_header_$ac_safe=no"
1121fi
1122rm -f conftest*
1123fi
1124if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1125 echo "$ac_t""yes" 1>&6
1126 :
1127else
1128 echo "$ac_t""no" 1>&6
1129{ echo "configure: error: Can't find stdio.h.
1130You must have a usable C system for the target already installed, at least
1131including headers and, preferably, the library, before you can configure
1132the Objective C runtime system. If necessary, install gcc now with
1133\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
1134fi
1135
1136
1137echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
da4b1927 1138echo "configure:1139: checking for ANSI C header files" >&5
bce1b489
BE
1139if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141else
1142 cat > conftest.$ac_ext <<EOF
da4b1927 1143#line 1144 "configure"
bce1b489
BE
1144#include "confdefs.h"
1145#include <stdlib.h>
1146#include <stdarg.h>
1147#include <string.h>
1148#include <float.h>
1149EOF
1150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
da4b1927
MK
1151{ (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1153if test -z "$ac_err"; then
1154 rm -rf conftest*
1155 ac_cv_header_stdc=yes
1156else
1157 echo "$ac_err" >&5
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1160 rm -rf conftest*
1161 ac_cv_header_stdc=no
1162fi
1163rm -f conftest*
1164
1165if test $ac_cv_header_stdc = yes; then
1166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1167cat > conftest.$ac_ext <<EOF
da4b1927 1168#line 1169 "configure"
bce1b489
BE
1169#include "confdefs.h"
1170#include <string.h>
1171EOF
1172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1173 egrep "memchr" >/dev/null 2>&1; then
1174 :
1175else
1176 rm -rf conftest*
1177 ac_cv_header_stdc=no
1178fi
1179rm -f conftest*
1180
1181fi
1182
1183if test $ac_cv_header_stdc = yes; then
1184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1185cat > conftest.$ac_ext <<EOF
da4b1927 1186#line 1187 "configure"
bce1b489
BE
1187#include "confdefs.h"
1188#include <stdlib.h>
1189EOF
1190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1191 egrep "free" >/dev/null 2>&1; then
1192 :
1193else
1194 rm -rf conftest*
1195 ac_cv_header_stdc=no
1196fi
1197rm -f conftest*
1198
1199fi
1200
1201if test $ac_cv_header_stdc = yes; then
1202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1203if test "$cross_compiling" = yes; then
1204 :
1205else
1206 cat > conftest.$ac_ext <<EOF
da4b1927 1207#line 1208 "configure"
bce1b489
BE
1208#include "confdefs.h"
1209#include <ctype.h>
1210#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1211#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1213int main () { int i; for (i = 0; i < 256; i++)
1214if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1215exit (0); }
1216
1217EOF
da4b1927 1218if { (eval echo configure:1219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
bce1b489
BE
1219then
1220 :
1221else
1222 echo "configure: failed program was:" >&5
1223 cat conftest.$ac_ext >&5
1224 rm -fr conftest*
1225 ac_cv_header_stdc=no
1226fi
1227rm -fr conftest*
1228fi
1229
1230fi
1231fi
1232
1233echo "$ac_t""$ac_cv_header_stdc" 1>&6
1234if test $ac_cv_header_stdc = yes; then
1235 cat >> confdefs.h <<\EOF
1236#define STDC_HEADERS 1
1237EOF
1238
1239fi
1240
1241
1242# Determine the name of the GCC thread file.
1243
1244echo $ac_n "checking for thread file""... $ac_c" 1>&6
da4b1927 1245echo "configure:1246: checking for thread file" >&5
bce1b489
BE
1246if eval "test \"`echo '$''{'objc_cv_thread_file'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1248else
79014e6f 1249 if test -f "$r"/gcc/Makefile
bce1b489 1250then
79014e6f 1251 objc_cv_thread_file=`grep \^GCC_THREAD_FILE "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
bce1b489
BE
1252else
1253 { echo "configure: error: not found" 1>&2; exit 1; }
1254fi
1255fi
1256
1257echo "$ac_t""$objc_cv_thread_file" 1>&6
1258OBJC_THREAD_FILE=$objc_cv_thread_file
1259
1260
1261# Check whether --enable-objc-gc or --disable-objc-gc was given.
1262if test "${enable_objc_gc+set}" = set; then
1263 enableval="$enable_objc_gc"
1264 if [ x$enable_objc_gc = xno ]; then
1265 OBJC_BOEHM_GC=''
1266else
1267 OBJC_BOEHM_GC=libobjc_gc.a
1268fi
1269else
1270 OBJC_BOEHM_GC=''
1271fi
1272
1273
1274
1275
1276# We need multilib support, but only if configuring for the target.
1277trap '' 1 2 15
1278cat > confcache <<\EOF
1279# This file is a shell script that caches the results of configure
1280# tests run on this system so they can be shared between configure
1281# scripts and configure runs. It is not useful on other systems.
1282# If it contains results you don't want to keep, you may remove or edit it.
1283#
1284# By default, configure uses ./config.cache as the cache file,
1285# creating it if it does not exist already. You can give configure
1286# the --cache-file=FILE option to use a different cache file; that is
1287# what configure does when it calls configure scripts in
1288# subdirectories, so they share the cache.
1289# Giving --cache-file=/dev/null disables caching, for debugging configure.
1290# config.status only pays attention to the cache file if you give it the
1291# --recheck option to rerun configure.
1292#
1293EOF
1294# The following way of writing the cache mishandles newlines in values,
1295# but we know of no workaround that is simple, portable, and efficient.
1296# So, don't put newlines in cache variables' values.
1297# Ultrix sh set writes to stderr and can't be redirected directly,
1298# and sets the high bit in the cache file unless we assign to the vars.
1299(set) 2>&1 |
da4b1927 1300 case `(ac_space=' '; set | grep ac_space) 2>&1` in
bce1b489
BE
1301 *ac_space=\ *)
1302 # `set' does not quote correctly, so add quotes (double-quote substitution
1303 # turns \\\\ into \\, and sed turns \\ into \).
1304 sed -n \
1305 -e "s/'/'\\\\''/g" \
1306 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1307 ;;
1308 *)
1309 # `set' quotes correctly as required by POSIX, so do not add quotes.
1310 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1311 ;;
1312 esac >> confcache
1313if cmp -s $cache_file confcache; then
1314 :
1315else
1316 if test -w $cache_file; then
1317 echo "updating cache $cache_file"
1318 cat confcache > $cache_file
1319 else
1320 echo "not updating unwritable cache $cache_file"
1321 fi
1322fi
1323rm -f confcache
1324
1325trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1326
1327test "x$prefix" = xNONE && prefix=$ac_default_prefix
1328# Let make expand exec_prefix.
1329test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1330
1331# Any assignment to VPATH causes Sun make to only execute
1332# the first set of double-colon rules, so remove it if not needed.
1333# If there is a colon in the path, we need to keep it.
1334if test "x$srcdir" = x.; then
1335 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1336fi
1337
1338trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1339
1340# Transform confdefs.h into DEFS.
1341# Protect against shell expansion while executing Makefile rules.
1342# Protect against Makefile macro expansion.
1343cat > conftest.defs <<\EOF
1344s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1345s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1346s%\[%\\&%g
1347s%\]%\\&%g
1348s%\$%$$%g
1349EOF
1350DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1351rm -f conftest.defs
1352
1353
1354# Without the "./", some shells look in PATH for config.status.
1355: ${CONFIG_STATUS=./config.status}
1356
1357echo creating $CONFIG_STATUS
1358rm -f $CONFIG_STATUS
1359cat > $CONFIG_STATUS <<EOF
1360#! /bin/sh
1361# Generated automatically by configure.
1362# Run this file to recreate the current configuration.
1363# This directory was configured as follows,
1364# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1365#
1366# $0 $ac_configure_args
1367#
1368# Compiler output produced by configure, useful for debugging
1369# configure, is in ./config.log if it exists.
1370
1371ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1372for ac_option
1373do
1374 case "\$ac_option" in
1375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1376 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1377 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1378 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
da4b1927 1379 echo "$CONFIG_STATUS generated by autoconf version 2.13"
bce1b489
BE
1380 exit 0 ;;
1381 -help | --help | --hel | --he | --h)
1382 echo "\$ac_cs_usage"; exit 0 ;;
1383 *) echo "\$ac_cs_usage"; exit 1 ;;
1384 esac
1385done
1386
1387ac_given_srcdir=$srcdir
1388ac_given_INSTALL="$INSTALL"
1389
1390trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1391EOF
1392cat >> $CONFIG_STATUS <<EOF
1393
1394# Protect against being on the right side of a sed subst in config.status.
1395sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1396 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1397$ac_vpsub
1398$extrasub
1399s%@SHELL@%$SHELL%g
1400s%@CFLAGS@%$CFLAGS%g
1401s%@CPPFLAGS@%$CPPFLAGS%g
1402s%@CXXFLAGS@%$CXXFLAGS%g
da4b1927 1403s%@FFLAGS@%$FFLAGS%g
bce1b489
BE
1404s%@DEFS@%$DEFS%g
1405s%@LDFLAGS@%$LDFLAGS%g
1406s%@LIBS@%$LIBS%g
1407s%@exec_prefix@%$exec_prefix%g
1408s%@prefix@%$prefix%g
1409s%@program_transform_name@%$program_transform_name%g
1410s%@bindir@%$bindir%g
1411s%@sbindir@%$sbindir%g
1412s%@libexecdir@%$libexecdir%g
1413s%@datadir@%$datadir%g
1414s%@sysconfdir@%$sysconfdir%g
1415s%@sharedstatedir@%$sharedstatedir%g
1416s%@localstatedir@%$localstatedir%g
1417s%@libdir@%$libdir%g
1418s%@includedir@%$includedir%g
1419s%@oldincludedir@%$oldincludedir%g
1420s%@infodir@%$infodir%g
1421s%@mandir@%$mandir%g
da4b1927 1422s%@EXEEXT@%$EXEEXT%g
bce1b489
BE
1423s%@CC@%$CC%g
1424s%@AR@%$AR%g
1425s%@RANLIB@%$RANLIB%g
1426s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
da4b1927 1427s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
bce1b489
BE
1428s%@INSTALL_DATA@%$INSTALL_DATA%g
1429s%@CPP@%$CPP%g
1430s%@OBJC_THREAD_FILE@%$OBJC_THREAD_FILE%g
1431s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
1432
1433CEOF
1434EOF
1435
1436cat >> $CONFIG_STATUS <<\EOF
1437
1438# Split the substitutions into bite-sized pieces for seds with
1439# small command number limits, like on Digital OSF/1 and HP-UX.
1440ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1441ac_file=1 # Number of current file.
1442ac_beg=1 # First line for current file.
1443ac_end=$ac_max_sed_cmds # Line after last line for current file.
1444ac_more_lines=:
1445ac_sed_cmds=""
1446while $ac_more_lines; do
1447 if test $ac_beg -gt 1; then
1448 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1449 else
1450 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1451 fi
1452 if test ! -s conftest.s$ac_file; then
1453 ac_more_lines=false
1454 rm -f conftest.s$ac_file
1455 else
1456 if test -z "$ac_sed_cmds"; then
1457 ac_sed_cmds="sed -f conftest.s$ac_file"
1458 else
1459 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1460 fi
1461 ac_file=`expr $ac_file + 1`
1462 ac_beg=$ac_end
1463 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1464 fi
1465done
1466if test -z "$ac_sed_cmds"; then
1467 ac_sed_cmds=cat
1468fi
1469EOF
1470
1471cat >> $CONFIG_STATUS <<EOF
1472
1473CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1474EOF
1475cat >> $CONFIG_STATUS <<\EOF
1476for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1478 case "$ac_file" in
1479 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1480 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1481 *) ac_file_in="${ac_file}.in" ;;
1482 esac
1483
1484 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1485
1486 # Remove last slash and all that follows it. Not all systems have dirname.
1487 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1488 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1489 # The file is in a subdirectory.
1490 test ! -d "$ac_dir" && mkdir "$ac_dir"
1491 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1492 # A "../" for each directory in $ac_dir_suffix.
1493 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1494 else
1495 ac_dir_suffix= ac_dots=
1496 fi
1497
1498 case "$ac_given_srcdir" in
1499 .) srcdir=.
1500 if test -z "$ac_dots"; then top_srcdir=.
1501 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1502 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1503 *) # Relative path.
1504 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1505 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1506 esac
1507
1508 case "$ac_given_INSTALL" in
1509 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1510 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1511 esac
1512
1513 echo creating "$ac_file"
1514 rm -f "$ac_file"
1515 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1516 case "$ac_file" in
1517 *Makefile*) ac_comsub="1i\\
1518# $configure_input" ;;
1519 *) ac_comsub= ;;
1520 esac
1521
1522 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1523 sed -e "$ac_comsub
1524s%@configure_input@%$configure_input%g
1525s%@srcdir@%$srcdir%g
1526s%@top_srcdir@%$top_srcdir%g
1527s%@INSTALL@%$INSTALL%g
1528" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1529fi; done
1530rm -f conftest.s*
1531
1532EOF
1533cat >> $CONFIG_STATUS <<EOF
1534srcdir=${srcdir}
1535host=${host}
1536target=${target}
1537with_target_subdir=${with_target_subdir}
1538with_multisubdir=${with_multisubdir}
1539ac_configure_args="--enable-multilib ${ac_configure_args}"
1540CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1541topsrcdir=${topsrcdir}
1542
1543EOF
1544cat >> $CONFIG_STATUS <<\EOF
1545test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
1546if test -n "$CONFIG_FILES"; then
1547 if test -n "${with_target_subdir}"; then
1548 # FIXME: We shouldn't need to set ac_file
1549 ac_file=Makefile
1550 . ${topsrcdir}/config-ml.in
1551 fi
1552fi
1553exit 0
1554EOF
1555chmod +x $CONFIG_STATUS
1556rm -fr confdefs* $ac_clean_files
1557test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1558
1559
This page took 0.240395 seconds and 5 git commands to generate.