]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream closed.
[thirdparty/gcc.git] / libobjc / configure
CommitLineData
bce1b489 1#! /bin/sh
03391b53 2
bce1b489 3# Guess values for system-dependent variables and create Makefiles.
03391b53
AO
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
bce1b489
BE
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
03391b53
AO
10# Defaults:
11ac_help=
bce1b489 12ac_default_prefix=/usr/local
03391b53
AO
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=no]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-objc-gc enable the use of Boehm's garbage collector with
28 the GNU Objective-C runtime."
bce1b489
BE
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
03391b53
AO
33build=NONE
34cache_file=./config.cache
bce1b489 35exec_prefix=NONE
03391b53 36host=NONE
bce1b489 37no_create=
03391b53 38nonopt=NONE
bce1b489
BE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
03391b53 46sitefile=
bce1b489 47srcdir=
03391b53 48target=NONE
bce1b489
BE
49verbose=
50x_includes=NONE
51x_libraries=NONE
52bindir='${exec_prefix}/bin'
53sbindir='${exec_prefix}/sbin'
54libexecdir='${exec_prefix}/libexec'
55datadir='${prefix}/share'
56sysconfdir='${prefix}/etc'
57sharedstatedir='${prefix}/com'
58localstatedir='${prefix}/var'
59libdir='${exec_prefix}/lib'
60includedir='${prefix}/include'
61oldincludedir='/usr/include'
62infodir='${prefix}/info'
63mandir='${prefix}/man'
64
03391b53
AO
65# Initialize some other variables.
66subdirs=
67MFLAGS= MAKEFLAGS=
68SHELL=${CONFIG_SHELL-/bin/sh}
69# Maximum number of lines to put in a shell here document.
70ac_max_here_lines=12
71
bce1b489
BE
72ac_prev=
73for ac_option
74do
03391b53 75
bce1b489
BE
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
79 ac_prev=
80 continue
81 fi
82
03391b53
AO
83 case "$ac_option" in
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 *) ac_optarg= ;;
86 esac
bce1b489
BE
87
88 # Accept the important Cygnus configure options, so we can diagnose typos.
89
90 case "$ac_option" in
91
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 ac_prev=bindir ;;
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
03391b53 95 bindir="$ac_optarg" ;;
bce1b489
BE
96
97 -build | --build | --buil | --bui | --bu)
98 ac_prev=build ;;
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
03391b53 100 build="$ac_optarg" ;;
bce1b489
BE
101
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
03391b53 107 cache_file="$ac_optarg" ;;
bce1b489
BE
108
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 ac_prev=datadir ;;
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 | --da=*)
03391b53 113 datadir="$ac_optarg" ;;
bce1b489
BE
114
115 -disable-* | --disable-*)
03391b53 116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
bce1b489 117 # Reject names that are not valid shell variable names.
03391b53
AO
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
bce1b489
BE
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
123
124 -enable-* | --enable-*)
03391b53 125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
bce1b489 126 # Reject names that are not valid shell variable names.
03391b53
AO
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
bce1b489
BE
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 case "$ac_option" in
03391b53 132 *=*) ;;
bce1b489
BE
133 *) ac_optarg=yes ;;
134 esac
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
136
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
03391b53 144 exec_prefix="$ac_optarg" ;;
bce1b489
BE
145
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
148 with_gas=yes ;;
149
03391b53
AO
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
153 cat << EOF
154Usage: configure [options] [host]
155Options: [defaults in brackets after descriptions]
156Configuration:
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --site-file=FILE use FILE as the site file
162 --version print the version of autoconf that created configure
163Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187EOF
188 cat << EOF
189Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
200EOF
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
204 exit 0 ;;
bce1b489
BE
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
03391b53 209 host="$ac_optarg" ;;
bce1b489
BE
210
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
03391b53 216 includedir="$ac_optarg" ;;
bce1b489
BE
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
03391b53 221 infodir="$ac_optarg" ;;
bce1b489
BE
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
03391b53 226 libdir="$ac_optarg" ;;
bce1b489
BE
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
03391b53 233 libexecdir="$ac_optarg" ;;
bce1b489
BE
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
03391b53 242 localstatedir="$ac_optarg" ;;
bce1b489
BE
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
03391b53 247 mandir="$ac_optarg" ;;
bce1b489
BE
248
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
03391b53 268 oldincludedir="$ac_optarg" ;;
bce1b489
BE
269
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
03391b53 273 prefix="$ac_optarg" ;;
bce1b489
BE
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
03391b53 280 program_prefix="$ac_optarg" ;;
bce1b489
BE
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
03391b53 287 program_suffix="$ac_optarg" ;;
bce1b489
BE
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
03391b53 304 program_transform_name="$ac_optarg" ;;
bce1b489
BE
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
03391b53 314 sbindir="$ac_optarg" ;;
bce1b489
BE
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
03391b53 325 sharedstatedir="$ac_optarg" ;;
bce1b489
BE
326
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
03391b53
AO
330 site="$ac_optarg" ;;
331
332 -site-file | --site-file | --site-fil | --site-fi | --site-f)
333 ac_prev=sitefile ;;
334 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
335 sitefile="$ac_optarg" ;;
bce1b489
BE
336
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338 ac_prev=srcdir ;;
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
03391b53 340 srcdir="$ac_optarg" ;;
bce1b489
BE
341
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
03391b53 347 sysconfdir="$ac_optarg" ;;
bce1b489
BE
348
349 -target | --target | --targe | --targ | --tar | --ta | --t)
350 ac_prev=target ;;
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
03391b53 352 target="$ac_optarg" ;;
bce1b489
BE
353
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 verbose=yes ;;
356
03391b53
AO
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
359 exit 0 ;;
bce1b489
BE
360
361 -with-* | --with-*)
03391b53 362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
bce1b489 363 # Reject names that are not valid shell variable names.
03391b53
AO
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
bce1b489
BE
366 fi
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 case "$ac_option" in
03391b53 369 *=*) ;;
bce1b489
BE
370 *) ac_optarg=yes ;;
371 esac
372 eval "with_${ac_package}='$ac_optarg'" ;;
373
374 -without-* | --without-*)
03391b53 375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
bce1b489 376 # Reject names that are not valid shell variable names.
03391b53
AO
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
bce1b489
BE
379 fi
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
382
383 --x)
384 # Obsolete; use --with-x.
385 with_x=yes ;;
386
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
03391b53 392 x_includes="$ac_optarg" ;;
bce1b489
BE
393
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
03391b53 399 x_libraries="$ac_optarg" ;;
bce1b489 400
03391b53 401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
bce1b489
BE
402 ;;
403
162f5967 404 *)
03391b53
AO
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
bce1b489 407 fi
03391b53
AO
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 fi
411 nonopt="$ac_option"
bce1b489
BE
412 ;;
413
414 esac
415done
416
417if test -n "$ac_prev"; then
03391b53 418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
bce1b489
BE
419fi
420
421trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422
423# File descriptor usage:
424# 0 standard input
425# 1 file creation
426# 2 errors and warnings
427# 3 some systems may open it to /dev/tty
428# 4 used on the Kubota Titan
429# 6 checking for... messages and results
430# 5 compiler messages saved in config.log
431if test "$silent" = yes; then
432 exec 6>/dev/null
433else
434 exec 6>&1
435fi
436exec 5>./config.log
437
438echo "\
439This file contains any messages produced by compilers while
440running configure, to aid debugging if configure makes a mistake.
03391b53
AO
441" 1>&5
442
443# Strip out --no-create and --no-recursion so they do not pile up.
444# Also quote any args containing shell metacharacters.
445ac_configure_args=
446for ac_arg
447do
448 case "$ac_arg" in
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 esac
457done
bce1b489 458
03391b53
AO
459# NLS nuisances.
460# Only set these to C if already set. These must not be set unconditionally
461# because not all systems understand e.g. LANG=C (notably SCO).
462# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463# Non-C LC_CTYPE values break the ctype check.
464if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
bce1b489
BE
468
469# confdefs.h avoids OS command line length limits that DEFS can exceed.
470rm -rf conftest* confdefs.h
471# AIX cpp loses on an empty file, so make sure it contains at least a newline.
03391b53 472echo > confdefs.h
bce1b489 473
03391b53
AO
474# A filename unique to this package, relative to the directory that
475# configure is in, which we can look for to find out if srcdir is correct.
476ac_unique_file=objc/objc.h
477
478# Find the source files, if location was not specified.
479if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
482 ac_prog=$0
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485 srcdir=$ac_confdir
486 if test ! -r $srcdir/$ac_unique_file; then
487 srcdir=..
488 fi
489else
490 ac_srcdir_defaulted=no
491fi
492if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
bce1b489 495 else
03391b53
AO
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 fi
498fi
499srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500
501# Prefer explicitly selected file to automatically selected ones.
502if test -z "$sitefile"; then
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 else
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 fi
bce1b489 509 fi
03391b53
AO
510else
511 CONFIG_SITE="$sitefile"
bce1b489
BE
512fi
513for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
517 fi
518done
519
520if test -r "$cache_file"; then
03391b53
AO
521 echo "loading cache $cache_file"
522 . $cache_file
bce1b489
BE
523else
524 echo "creating cache $cache_file"
03391b53 525 > $cache_file
bce1b489
BE
526fi
527
528ac_ext=c
529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530ac_cpp='$CPP $CPPFLAGS'
03391b53
AO
531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bce1b489
BE
533cross_compiling=$ac_cv_prog_cc_cross
534
03391b53
AO
535ac_exeext=
536ac_objext=o
bce1b489 537if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
03391b53 538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
bce1b489 539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
03391b53
AO
540 ac_n= ac_c='
541' ac_t=' '
bce1b489 542 else
03391b53 543 ac_n=-n ac_c= ac_t=
bce1b489
BE
544 fi
545else
03391b53
AO
546 ac_n= ac_c='\c' ac_t=
547fi
548
549echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
550echo "configure:551: checking for Cygwin environment" >&5
551if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
552 echo $ac_n "(cached) $ac_c" 1>&6
553else
554 cat > conftest.$ac_ext <<EOF
555#line 556 "configure"
556#include "confdefs.h"
557
558int main() {
559
560#ifndef __CYGWIN__
561#define __CYGWIN__ __CYGWIN32__
562#endif
563return __CYGWIN__;
564; return 0; }
565EOF
566if { (eval echo configure:567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
567 rm -rf conftest*
568 ac_cv_cygwin=yes
569else
570 echo "configure: failed program was:" >&5
571 cat conftest.$ac_ext >&5
572 rm -rf conftest*
573 ac_cv_cygwin=no
574fi
575rm -f conftest*
576rm -f conftest*
577fi
578
579echo "$ac_t""$ac_cv_cygwin" 1>&6
580CYGWIN=
581test "$ac_cv_cygwin" = yes && CYGWIN=yes
582echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
583echo "configure:584: checking for mingw32 environment" >&5
584if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
586else
587 cat > conftest.$ac_ext <<EOF
588#line 589 "configure"
589#include "confdefs.h"
590
591int main() {
592return __MINGW32__;
593; return 0; }
594EOF
595if { (eval echo configure:596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
596 rm -rf conftest*
597 ac_cv_mingw32=yes
598else
599 echo "configure: failed program was:" >&5
600 cat conftest.$ac_ext >&5
601 rm -rf conftest*
602 ac_cv_mingw32=no
603fi
604rm -f conftest*
605rm -f conftest*
c161c99b
NP
606fi
607
03391b53
AO
608echo "$ac_t""$ac_cv_mingw32" 1>&6
609MINGW32=
610test "$ac_cv_mingw32" = yes && MINGW32=yes
611
612
613
bce1b489
BE
614if test "${srcdir}" = "." ; then
615 if test "${with_target_subdir}" != "." ; then
616 topsrcdir=${with_multisrctop}../..
617 else
618 topsrcdir=${with_multisrctop}..
619 fi
620else
621 topsrcdir=${srcdir}/..
622fi
8a829fd9
KG
623ac_aux_dir=
624for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
625 if test -f $ac_dir/install-sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install-sh -c"
628 break
629 elif test -f $ac_dir/install.sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install.sh -c"
632 break
633 fi
634done
635if test -z "$ac_aux_dir"; then
03391b53 636 { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
8a829fd9 637fi
03391b53
AO
638ac_config_guess=$ac_aux_dir/config.guess
639ac_config_sub=$ac_aux_dir/config.sub
640ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641
8a829fd9 642
03391b53 643# If the language specific compiler does not exist, but the "gcc" directory
da4b1927
MK
644# does, we do not build anything. Note, $r is set by the top-level Makefile.
645# Note that when we look for the compiler, we search both with and without
03391b53 646# extension to handle cross and canadian cross builds.
71205e0b
MH
647compiler_name=cc1obj
648rm -f skip-this-dir
03391b53
AO
649echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
650echo "configure:651: checking if compiler $compiler_name has been built" >&5
651if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
71205e0b
MH
653else
654 objc_cv_compiler_exists=yes
da4b1927
MK
655if test -n "$r"; then
656 if test -d "$r"/gcc; then
657 if test -f "$r"/gcc/$compiler_name \
6de94858 658 || test -f "$r"/gcc/$compiler_name.exe; then
da4b1927
MK
659 true
660 else
661 objc_cv_compiler_exists=no
662 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
663 fi
664 fi
665fi
666
71205e0b
MH
667fi
668
03391b53 669echo "$ac_t""$objc_cv_compiler_exists" 1>&6
71205e0b
MH
670if test x$objc_cv_compiler_exists = xno
671then
da4b1927
MK
672 rm -f Makefile conftest* confdefs* core
673 exit 0
71205e0b
MH
674fi
675
bce1b489
BE
676# For ObjC we'll set CC to point at the built gcc, but this will get it into
677# the makefiles
03391b53 678# Extract the first word of "gcc", so it can be a program name with args.
bce1b489 679set dummy gcc; ac_word=$2
03391b53
AO
680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
681echo "configure:682: checking for $ac_word" >&5
682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
684else
685 if test -n "$CC"; then
686 ac_cv_prog_CC="$CC" # Let the user override the test.
687else
03391b53
AO
688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 ac_dummy="$PATH"
690 for ac_dir in $ac_dummy; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 ac_cv_prog_CC="gcc"
694 break
695 fi
bce1b489 696 done
03391b53 697 IFS="$ac_save_ifs"
bce1b489
BE
698fi
699fi
03391b53 700CC="$ac_cv_prog_CC"
bce1b489 701if test -n "$CC"; then
03391b53 702 echo "$ac_t""$CC" 1>&6
bce1b489 703else
03391b53 704 echo "$ac_t""no" 1>&6
bce1b489
BE
705fi
706
03391b53
AO
707if test -z "$CC"; then
708 # Extract the first word of "cc", so it can be a program name with args.
bce1b489 709set dummy cc; ac_word=$2
03391b53
AO
710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711echo "configure:712: checking for $ac_word" >&5
712if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
714else
715 if test -n "$CC"; then
716 ac_cv_prog_CC="$CC" # Let the user override the test.
717else
03391b53 718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
bce1b489 719 ac_prog_rejected=no
03391b53
AO
720 ac_dummy="$PATH"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
724 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
725 ac_prog_rejected=yes
726 continue
727 fi
728 ac_cv_prog_CC="cc"
729 break
bce1b489
BE
730 fi
731 done
03391b53 732 IFS="$ac_save_ifs"
bce1b489
BE
733if test $ac_prog_rejected = yes; then
734 # We found a bogon in the path, so make sure we never use it.
735 set dummy $ac_cv_prog_CC
736 shift
737 if test $# -gt 0; then
738 # We chose a different compiler from the bogus one.
739 # However, it has the same basename, so the bogon will be chosen
740 # first if we set CC to just the basename; use the full file name.
741 shift
03391b53 742 set dummy "$ac_dir/$ac_word" "$@"
bce1b489
BE
743 shift
744 ac_cv_prog_CC="$@"
745 fi
746fi
747fi
748fi
03391b53 749CC="$ac_cv_prog_CC"
bce1b489 750if test -n "$CC"; then
03391b53 751 echo "$ac_t""$CC" 1>&6
bce1b489 752else
03391b53 753 echo "$ac_t""no" 1>&6
bce1b489
BE
754fi
755
03391b53
AO
756 if test -z "$CC"; then
757 case "`uname -s`" in
758 *win32* | *WIN32*)
759 # Extract the first word of "cl", so it can be a program name with args.
760set dummy cl; ac_word=$2
761echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762echo "configure:763: checking for $ac_word" >&5
763if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
da4b1927
MK
765else
766 if test -n "$CC"; then
767 ac_cv_prog_CC="$CC" # Let the user override the test.
768else
03391b53
AO
769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 ac_dummy="$PATH"
771 for ac_dir in $ac_dummy; do
772 test -z "$ac_dir" && ac_dir=.
773 if test -f $ac_dir/$ac_word; then
774 ac_cv_prog_CC="cl"
775 break
776 fi
da4b1927 777 done
03391b53 778 IFS="$ac_save_ifs"
da4b1927
MK
779fi
780fi
03391b53 781CC="$ac_cv_prog_CC"
da4b1927 782if test -n "$CC"; then
03391b53 783 echo "$ac_t""$CC" 1>&6
da4b1927 784else
03391b53 785 echo "$ac_t""no" 1>&6
da4b1927 786fi
03391b53
AO
787 ;;
788 esac
da4b1927 789 fi
03391b53
AO
790 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
791fi
bce1b489 792
03391b53
AO
793echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
794echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
bce1b489
BE
795
796ac_ext=c
797# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798ac_cpp='$CPP $CPPFLAGS'
03391b53
AO
799ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
bce1b489
BE
801cross_compiling=$ac_cv_prog_cc_cross
802
03391b53
AO
803cat > conftest.$ac_ext << EOF
804
805#line 806 "configure"
bce1b489 806#include "confdefs.h"
03391b53
AO
807
808main(){return(0);}
bce1b489 809EOF
03391b53 810if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bce1b489
BE
811 ac_cv_prog_cc_works=yes
812 # If we can't run a trivial program, we are probably using a cross compiler.
813 if (./conftest; exit) 2>/dev/null; then
814 ac_cv_prog_cc_cross=no
815 else
816 ac_cv_prog_cc_cross=yes
817 fi
818else
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
821 ac_cv_prog_cc_works=no
822fi
03391b53 823rm -fr conftest*
da4b1927
MK
824ac_ext=c
825# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
826ac_cpp='$CPP $CPPFLAGS'
03391b53
AO
827ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
828ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
da4b1927 829cross_compiling=$ac_cv_prog_cc_cross
03391b53
AO
830
831echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
bce1b489 832if test $ac_cv_prog_cc_works = no; then
03391b53 833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
bce1b489 834fi
03391b53
AO
835echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
836echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
837echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
bce1b489
BE
838cross_compiling=$ac_cv_prog_cc_cross
839
03391b53
AO
840echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
841echo "configure:842: checking whether we are using GNU C" >&5
842if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 844else
03391b53 845 cat > conftest.c <<EOF
bce1b489
BE
846#ifdef __GNUC__
847 yes;
848#endif
849EOF
03391b53 850if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bce1b489
BE
851 ac_cv_prog_gcc=yes
852else
853 ac_cv_prog_gcc=no
854fi
855fi
03391b53
AO
856
857echo "$ac_t""$ac_cv_prog_gcc" 1>&6
bce1b489
BE
858
859if test $ac_cv_prog_gcc = yes; then
860 GCC=yes
da4b1927
MK
861else
862 GCC=
863fi
864
03391b53
AO
865ac_test_CFLAGS="${CFLAGS+set}"
866ac_save_CFLAGS="$CFLAGS"
da4b1927 867CFLAGS=
03391b53
AO
868echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
869echo "configure:870: checking whether ${CC-cc} accepts -g" >&5
870if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 872else
03391b53 873 echo 'void f(){}' > conftest.c
bce1b489
BE
874if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
875 ac_cv_prog_cc_g=yes
876else
877 ac_cv_prog_cc_g=no
878fi
879rm -f conftest*
880
881fi
03391b53
AO
882
883echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
da4b1927 884if test "$ac_test_CFLAGS" = set; then
03391b53 885 CFLAGS="$ac_save_CFLAGS"
da4b1927
MK
886elif test $ac_cv_prog_cc_g = yes; then
887 if test "$GCC" = yes; then
bce1b489
BE
888 CFLAGS="-g -O2"
889 else
da4b1927 890 CFLAGS="-g"
bce1b489
BE
891 fi
892else
da4b1927
MK
893 if test "$GCC" = yes; then
894 CFLAGS="-O2"
895 else
896 CFLAGS=
897 fi
bce1b489
BE
898fi
899
03391b53 900
bce1b489
BE
901test "$AR" || AR=ar
902
903if test "$RANLIB"; then :
03391b53 904
bce1b489
BE
905else
906 # Extract the first word of "ranlib", so it can be a program name with args.
907set dummy ranlib; ac_word=$2
03391b53
AO
908echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909echo "configure:910: checking for $ac_word" >&5
910if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
912else
913 if test -n "$RANLIB"; then
914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
915else
03391b53
AO
916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 ac_dummy="$PATH"
918 for ac_dir in $ac_dummy; do
919 test -z "$ac_dir" && ac_dir=.
920 if test -f $ac_dir/$ac_word; then
921 ac_cv_prog_RANLIB="ranlib"
922 break
923 fi
bce1b489 924 done
03391b53 925 IFS="$ac_save_ifs"
bce1b489
BE
926 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
927fi
928fi
03391b53 929RANLIB="$ac_cv_prog_RANLIB"
bce1b489 930if test -n "$RANLIB"; then
03391b53 931 echo "$ac_t""$RANLIB" 1>&6
bce1b489 932else
03391b53 933 echo "$ac_t""no" 1>&6
bce1b489
BE
934fi
935
936fi
bce1b489
BE
937# Find a good install program. We prefer a C program (faster),
938# so one script is as good as another. But avoid the broken or
939# incompatible versions:
940# SysV /etc/install, /usr/sbin/install
941# SunOS /usr/etc/install
942# IRIX /sbin/install
943# AIX /bin/install
944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
947# ./install, which can be erroneously created by make from ./install.sh.
03391b53
AO
948echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
949echo "configure:950: checking for a BSD compatible install" >&5
bce1b489 950if test -z "$INSTALL"; then
03391b53
AO
951if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 953else
03391b53 954 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
bce1b489
BE
955 for ac_dir in $PATH; do
956 # Account for people who put trailing slashes in PATH elements.
957 case "$ac_dir/" in
958 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
959 *)
960 # OSF1 and SCO ODT 3.0 have their own names for install.
961 # Don't use installbsd from OSF since it installs stuff as root
962 # by default.
963 for ac_prog in ginstall scoinst install; do
964 if test -f $ac_dir/$ac_prog; then
965 if test $ac_prog = install &&
966 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
967 # AIX install. It has an incompatible calling convention.
968 :
969 else
970 ac_cv_path_install="$ac_dir/$ac_prog -c"
971 break 2
972 fi
973 fi
974 done
975 ;;
976 esac
977 done
03391b53 978 IFS="$ac_save_IFS"
bce1b489
BE
979
980fi
981 if test "${ac_cv_path_install+set}" = set; then
03391b53 982 INSTALL="$ac_cv_path_install"
bce1b489
BE
983 else
984 # As a last resort, use the slow shell script. We don't cache a
985 # path for INSTALL within a source directory, because that will
986 # break other packages using the cache if that directory is
987 # removed, or if the path is relative.
03391b53 988 INSTALL="$ac_install_sh"
bce1b489
BE
989 fi
990fi
03391b53 991echo "$ac_t""$INSTALL" 1>&6
bce1b489
BE
992
993# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
994# It thinks the first close brace ends the variable substitution.
995test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
996
03391b53 997test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
da4b1927 998
bce1b489
BE
999test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1000
03391b53
AO
1001
1002
bce1b489 1003# Sanity check for the cross-compilation case:
03391b53
AO
1004echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1005echo "configure:1006: checking how to run the C preprocessor" >&5
bce1b489
BE
1006# On Suns, sometimes $CPP names a directory.
1007if test -n "$CPP" && test -d "$CPP"; then
1008 CPP=
1009fi
1010if test -z "$CPP"; then
03391b53
AO
1011if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
1013else
1014 # This must be in double quotes, not single quotes, because CPP may get
1015 # substituted into the Makefile and "${CC-cc}" will confuse make.
1016 CPP="${CC-cc} -E"
1017 # On the NeXT, cc -E runs the code through the compiler's parser,
1018 # not just through cpp.
03391b53
AO
1019 cat > conftest.$ac_ext <<EOF
1020#line 1021 "configure"
bce1b489
BE
1021#include "confdefs.h"
1022#include <assert.h>
1023Syntax Error
1024EOF
1025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1026{ (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1028if test -z "$ac_err"; then
1029 :
1030else
1031 echo "$ac_err" >&5
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
03391b53 1034 rm -rf conftest*
bce1b489 1035 CPP="${CC-cc} -E -traditional-cpp"
03391b53
AO
1036 cat > conftest.$ac_ext <<EOF
1037#line 1038 "configure"
bce1b489
BE
1038#include "confdefs.h"
1039#include <assert.h>
1040Syntax Error
1041EOF
1042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1043{ (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927
MK
1044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045if test -z "$ac_err"; then
1046 :
1047else
1048 echo "$ac_err" >&5
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
03391b53 1051 rm -rf conftest*
da4b1927 1052 CPP="${CC-cc} -nologo -E"
03391b53
AO
1053 cat > conftest.$ac_ext <<EOF
1054#line 1055 "configure"
da4b1927
MK
1055#include "confdefs.h"
1056#include <assert.h>
1057Syntax Error
1058EOF
1059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1060{ (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1062if test -z "$ac_err"; then
1063 :
1064else
1065 echo "$ac_err" >&5
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
03391b53 1068 rm -rf conftest*
bce1b489
BE
1069 CPP=/lib/cpp
1070fi
1071rm -f conftest*
1072fi
da4b1927
MK
1073rm -f conftest*
1074fi
bce1b489 1075rm -f conftest*
03391b53 1076 ac_cv_prog_CPP="$CPP"
bce1b489 1077fi
03391b53 1078 CPP="$ac_cv_prog_CPP"
bce1b489 1079else
03391b53 1080 ac_cv_prog_CPP="$CPP"
bce1b489 1081fi
03391b53 1082echo "$ac_t""$CPP" 1>&6
bce1b489 1083
03391b53
AO
1084ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
1085echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
1086echo "configure:1087: checking for stdio.h" >&5
1087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 1089else
03391b53
AO
1090 cat > conftest.$ac_ext <<EOF
1091#line 1092 "configure"
bce1b489
BE
1092#include "confdefs.h"
1093#include <stdio.h>
1094EOF
1095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1096{ (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1098if test -z "$ac_err"; then
03391b53
AO
1099 rm -rf conftest*
1100 eval "ac_cv_header_$ac_safe=yes"
bce1b489
BE
1101else
1102 echo "$ac_err" >&5
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
03391b53
AO
1105 rm -rf conftest*
1106 eval "ac_cv_header_$ac_safe=no"
bce1b489
BE
1107fi
1108rm -f conftest*
1109fi
03391b53
AO
1110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1111 echo "$ac_t""yes" 1>&6
bce1b489
BE
1112 :
1113else
03391b53
AO
1114 echo "$ac_t""no" 1>&6
1115{ echo "configure: error: Can't find stdio.h.
bce1b489
BE
1116You must have a usable C system for the target already installed, at least
1117including headers and, preferably, the library, before you can configure
03391b53
AO
1118the Objective C runtime system. If necessary, install gcc now with
1119\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
bce1b489
BE
1120fi
1121
03391b53
AO
1122
1123echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1124echo "configure:1125: checking for ANSI C header files" >&5
1125if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 1127else
03391b53
AO
1128 cat > conftest.$ac_ext <<EOF
1129#line 1130 "configure"
bce1b489
BE
1130#include "confdefs.h"
1131#include <stdlib.h>
1132#include <stdarg.h>
1133#include <string.h>
1134#include <float.h>
1135EOF
1136ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1137{ (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1138ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1139if test -z "$ac_err"; then
03391b53 1140 rm -rf conftest*
bce1b489
BE
1141 ac_cv_header_stdc=yes
1142else
1143 echo "$ac_err" >&5
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
03391b53 1146 rm -rf conftest*
bce1b489
BE
1147 ac_cv_header_stdc=no
1148fi
1149rm -f conftest*
1150
1151if test $ac_cv_header_stdc = yes; then
1152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
03391b53
AO
1153cat > conftest.$ac_ext <<EOF
1154#line 1155 "configure"
bce1b489
BE
1155#include "confdefs.h"
1156#include <string.h>
1157EOF
1158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1159 egrep "memchr" >/dev/null 2>&1; then
1160 :
1161else
03391b53 1162 rm -rf conftest*
bce1b489
BE
1163 ac_cv_header_stdc=no
1164fi
1165rm -f conftest*
1166
1167fi
1168
1169if test $ac_cv_header_stdc = yes; then
1170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
03391b53
AO
1171cat > conftest.$ac_ext <<EOF
1172#line 1173 "configure"
bce1b489
BE
1173#include "confdefs.h"
1174#include <stdlib.h>
1175EOF
1176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1177 egrep "free" >/dev/null 2>&1; then
1178 :
1179else
03391b53 1180 rm -rf conftest*
bce1b489
BE
1181 ac_cv_header_stdc=no
1182fi
1183rm -f conftest*
1184
1185fi
1186
1187if test $ac_cv_header_stdc = yes; then
1188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1189if test "$cross_compiling" = yes; then
1190 :
1191else
03391b53
AO
1192 cat > conftest.$ac_ext <<EOF
1193#line 1194 "configure"
bce1b489
BE
1194#include "confdefs.h"
1195#include <ctype.h>
03391b53
AO
1196#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1197#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
162f5967 1198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
03391b53
AO
1199int main () { int i; for (i = 0; i < 256; i++)
1200if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1201exit (0); }
1202
bce1b489 1203EOF
03391b53
AO
1204if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1205then
bce1b489
BE
1206 :
1207else
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
03391b53 1210 rm -fr conftest*
bce1b489
BE
1211 ac_cv_header_stdc=no
1212fi
03391b53 1213rm -fr conftest*
bce1b489
BE
1214fi
1215
1216fi
1217fi
162f5967 1218
03391b53
AO
1219echo "$ac_t""$ac_cv_header_stdc" 1>&6
1220if test $ac_cv_header_stdc = yes; then
1221 cat >> confdefs.h <<\EOF
bce1b489
BE
1222#define STDC_HEADERS 1
1223EOF
1224
1225fi
1226
03391b53
AO
1227
1228for ac_hdr in sched.h
d972a4c2 1229do
03391b53
AO
1230ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1231echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1232echo "configure:1233: checking for $ac_hdr" >&5
1233if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235else
1236 cat > conftest.$ac_ext <<EOF
1237#line 1238 "configure"
d972a4c2 1238#include "confdefs.h"
03391b53 1239#include <$ac_hdr>
d972a4c2
OP
1240EOF
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
03391b53 1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d972a4c2
OP
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1244if test -z "$ac_err"; then
03391b53
AO
1245 rm -rf conftest*
1246 eval "ac_cv_header_$ac_safe=yes"
d972a4c2
OP
1247else
1248 echo "$ac_err" >&5
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
03391b53
AO
1251 rm -rf conftest*
1252 eval "ac_cv_header_$ac_safe=no"
d972a4c2
OP
1253fi
1254rm -f conftest*
1255fi
03391b53
AO
1256if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1259 cat >> confdefs.h <<EOF
1260#define $ac_tr_hdr 1
d972a4c2 1261EOF
03391b53
AO
1262
1263else
1264 echo "$ac_t""no" 1>&6
d972a4c2
OP
1265fi
1266done
1267
03391b53 1268
c161c99b 1269# Determine CFLAGS for gthread.
03391b53
AO
1270
1271echo $ac_n "checking for gthread cflags""... $ac_c" 1>&6
1272echo "configure:1273: checking for gthread cflags" >&5
1273if eval "test \"`echo '$''{'objc_cv_gthread_flags'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275else
1276 if test -f "$r"/gcc/Makefile
1277then
1278 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
1279else
1280 { echo "configure: error: not found" 1>&2; exit 1; }
1281fi
1282fi
1283
1284echo "$ac_t""$objc_cv_gthread_flags" 1>&6
1285GTHREAD_FLAGS=$objc_cv_gthread_flags
1286
1287
1288# Disable shared libs by default
1289# Check whether --enable-shared or --disable-shared was given.
1290if test "${enable_shared+set}" = set; then
1291 enableval="$enable_shared"
1292 p=${PACKAGE-default}
1293case "$enableval" in
1294yes) enable_shared=yes ;;
1295no) enable_shared=no ;;
1296*)
1297 enable_shared=no
1298 # Look at the argument we got. We use all the common list separators.
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1300 for pkg in $enableval; do
1301 if test "X$pkg" = "X$p"; then
1302 enable_shared=yes
1303 fi
1304 done
1305 IFS="$ac_save_ifs"
1306 ;;
1307esac
1308else
1309 enable_shared=no
1310fi
1311
1312# Enable Win32 DLL on MS Windows - FIXME
1313
1314# Use libtool
1315# Check whether --enable-static or --disable-static was given.
1316if test "${enable_static+set}" = set; then
1317 enableval="$enable_static"
1318 p=${PACKAGE-default}
1319case "$enableval" in
1320yes) enable_static=yes ;;
1321no) enable_static=no ;;
1322*)
1323 enable_static=no
1324 # Look at the argument we got. We use all the common list separators.
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1326 for pkg in $enableval; do
1327 if test "X$pkg" = "X$p"; then
1328 enable_static=yes
1329 fi
1330 done
1331 IFS="$ac_save_ifs"
1332 ;;
1333esac
1334else
1335 enable_static=yes
1336fi
1337
1338# Check whether --enable-fast-install or --disable-fast-install was given.
1339if test "${enable_fast_install+set}" = set; then
1340 enableval="$enable_fast_install"
1341 p=${PACKAGE-default}
1342case "$enableval" in
1343yes) enable_fast_install=yes ;;
1344no) enable_fast_install=no ;;
1345*)
1346 enable_fast_install=no
1347 # Look at the argument we got. We use all the common list separators.
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1349 for pkg in $enableval; do
1350 if test "X$pkg" = "X$p"; then
1351 enable_fast_install=yes
1352 fi
1353 done
1354 IFS="$ac_save_ifs"
1355 ;;
1356esac
1357else
1358 enable_fast_install=yes
1359fi
1360
1361
1362# Make sure we can run config.sub.
1363if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1364else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1365fi
1366
1367echo $ac_n "checking host system type""... $ac_c" 1>&6
1368echo "configure:1369: checking host system type" >&5
1369
1370host_alias=$host
1371case "$host_alias" in
1372NONE)
1373 case $nonopt in
1374 NONE)
1375 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1376 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1377 fi ;;
1378 *) host_alias=$nonopt ;;
1379 esac ;;
1380esac
1381
1382host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1383host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386echo "$ac_t""$host" 1>&6
1387
1388echo $ac_n "checking build system type""... $ac_c" 1>&6
1389echo "configure:1390: checking build system type" >&5
1390
1391build_alias=$build
1392case "$build_alias" in
1393NONE)
1394 case $nonopt in
1395 NONE) build_alias=$host_alias ;;
1396 *) build_alias=$nonopt ;;
1397 esac ;;
1398esac
1399
1400build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1401build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404echo "$ac_t""$build" 1>&6
1405
1406# Check whether --with-gnu-ld or --without-gnu-ld was given.
1407if test "${with_gnu_ld+set}" = set; then
1408 withval="$with_gnu_ld"
1409 test "$withval" = no || with_gnu_ld=yes
1410else
1411 with_gnu_ld=no
1412fi
1413
1414ac_prog=ld
1415if test "$ac_cv_prog_gcc" = yes; then
1416 # Check if gcc -print-prog-name=ld gives a path.
1417 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1418echo "configure:1419: checking for ld used by GCC" >&5
1419 case $host in
1420 *-*-mingw*)
1421 # gcc leaves a trailing carriage return which upsets mingw
1422 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1423 *)
1424 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1425 esac
1426 case "$ac_prog" in
1427 # Accept absolute paths.
1428 [\\/]* | [A-Za-z]:[\\/]*)
1429 re_direlt='/[^/][^/]*/\.\./'
1430 # Canonicalize the path of ld
1431 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1432 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1433 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1434 done
1435 test -z "$LD" && LD="$ac_prog"
1436 ;;
1437 "")
1438 # If it fails, then pretend we aren't using GCC.
1439 ac_prog=ld
1440 ;;
1441 *)
1442 # If it is relative, then search for the first ld in PATH.
1443 with_gnu_ld=unknown
1444 ;;
1445 esac
1446elif test "$with_gnu_ld" = yes; then
1447 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1448echo "configure:1449: checking for GNU ld" >&5
1449else
1450 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1451echo "configure:1452: checking for non-GNU ld" >&5
1452fi
1453if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455else
1456 if test -z "$LD"; then
1457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1458 for ac_dir in $PATH; do
1459 test -z "$ac_dir" && ac_dir=.
1460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1461 ac_cv_path_LD="$ac_dir/$ac_prog"
1462 # Check to see if the program is GNU ld. I'd rather use --version,
1463 # but apparently some GNU ld's only accept -v.
1464 # Break only if it was the GNU/non-GNU ld that we prefer.
1465 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1466 test "$with_gnu_ld" != no && break
1467 else
1468 test "$with_gnu_ld" != yes && break
1469 fi
1470 fi
1471 done
1472 IFS="$ac_save_ifs"
1473else
1474 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1475fi
1476fi
1477
1478LD="$ac_cv_path_LD"
1479if test -n "$LD"; then
1480 echo "$ac_t""$LD" 1>&6
1481else
1482 echo "$ac_t""no" 1>&6
1483fi
1484test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1485echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1486echo "configure:1487: checking if the linker ($LD) is GNU ld" >&5
1487if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1489else
1490 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1491if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1492 ac_cv_prog_gnu_ld=yes
1493else
1494 ac_cv_prog_gnu_ld=no
1495fi
1496fi
1497
1498echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1499with_gnu_ld=$ac_cv_prog_gnu_ld
1500
1501
1502echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1503echo "configure:1504: checking for $LD option to reload object files" >&5
1504if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1506else
1507 lt_cv_ld_reload_flag='-r'
1508fi
1509
1510echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1511reload_flag=$lt_cv_ld_reload_flag
1512test -n "$reload_flag" && reload_flag=" $reload_flag"
1513
1514echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1515echo "configure:1516: checking for BSD-compatible nm" >&5
1516if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518else
1519 if test -n "$NM"; then
1520 # Let the user override the test.
1521 ac_cv_path_NM="$NM"
1522else
1523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1524 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1525 test -z "$ac_dir" && ac_dir=.
1526 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1527 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1528 # Check to see if the nm accepts a BSD-compat flag.
1529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1530 # nm: unknown option "B" ignored
1531 # Tru64's nm complains that /dev/null is an invalid object file
1532 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1533 ac_cv_path_NM="$tmp_nm -B"
1534 break
1535 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1536 ac_cv_path_NM="$tmp_nm -p"
1537 break
1538 else
1539 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1540 continue # so that we can try to find one that supports BSD flags
1541 fi
1542 fi
1543 done
1544 IFS="$ac_save_ifs"
1545 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1546fi
1547fi
1548
1549NM="$ac_cv_path_NM"
1550echo "$ac_t""$NM" 1>&6
1551
1552echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1553echo "configure:1554: checking whether ln -s works" >&5
1554if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556else
1557 rm -f conftestdata
1558if ln -s X conftestdata 2>/dev/null
1559then
1560 rm -f conftestdata
1561 ac_cv_prog_LN_S="ln -s"
1562else
1563 ac_cv_prog_LN_S=ln
1564fi
1565fi
1566LN_S="$ac_cv_prog_LN_S"
1567if test "$ac_cv_prog_LN_S" = "ln -s"; then
1568 echo "$ac_t""yes" 1>&6
1569else
1570 echo "$ac_t""no" 1>&6
1571fi
1572
1573echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1574echo "configure:1575: checking how to recognise dependant libraries" >&5
1575if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577else
1578 lt_cv_file_magic_cmd='$MAGIC_CMD'
1579lt_cv_file_magic_test_file=
1580lt_cv_deplibs_check_method='unknown'
1581# Need to set the preceding variable on all platforms that support
1582# interlibrary dependencies.
1583# 'none' -- dependencies not supported.
1584# `unknown' -- same as none, but documents that we really don't know.
1585# 'pass_all' -- all dependencies passed with no checks.
1586# 'test_compile' -- check by making test program.
1587# 'file_magic [regex]' -- check by looking for files in library path
1588# which responds to the $file_magic_cmd with a given egrep regex.
1589# If you have `file' or equivalent on your system and you're not sure
1590# whether `pass_all' will *always* work, you probably want this one.
1591
1592case "$host_os" in
1593aix4*)
1594 lt_cv_deplibs_check_method=pass_all
1595 ;;
1596
1597beos*)
1598 lt_cv_deplibs_check_method=pass_all
1599 ;;
1600
1601bsdi4*)
1602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1603 lt_cv_file_magic_cmd='/usr/bin/file -L'
1604 lt_cv_file_magic_test_file=/shlib/libc.so
1605 ;;
1606
1607cygwin* | mingw* |pw32*)
1608 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1609 lt_cv_file_magic_cmd='$OBJDUMP -f'
1610 ;;
1611
1612freebsd* )
1613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1614 case "$host_cpu" in
1615 i*86 )
1616 # Not sure whether the presence of OpenBSD here was a mistake.
1617 # Let's accept both of them until this is cleared up.
1618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1619 lt_cv_file_magic_cmd=/usr/bin/file
1620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1621 ;;
1622 esac
1623 else
1624 lt_cv_deplibs_check_method=pass_all
1625 fi
1626 ;;
1627
1628gnu*)
1629 lt_cv_deplibs_check_method=pass_all
1630 ;;
1631
1632hpux10.20*)
1633 # TODO: Does this work for hpux-11 too?
1634 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1635 lt_cv_file_magic_cmd=/usr/bin/file
1636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1637 ;;
1638
1639irix5* | irix6*)
1640 case "$host_os" in
1641 irix5*)
1642 # this will be overridden with pass_all, but let us keep it just in case
1643 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1644 ;;
1645 *)
1646 case "$LD" in
1647 *-32|*"-32 ") libmagic=32-bit;;
1648 *-n32|*"-n32 ") libmagic=N32;;
1649 *-64|*"-64 ") libmagic=64-bit;;
1650 *) libmagic=never-match;;
1651 esac
1652 # this will be overridden with pass_all, but let us keep it just in case
1653 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1654 ;;
1655 esac
1656 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1657 lt_cv_deplibs_check_method=pass_all
1658 ;;
1659
1660# This must be Linux ELF.
1661linux-gnu*)
1662 case "$host_cpu" in
1663 alpha* | i*86 | powerpc* | sparc* | ia64* )
1664 lt_cv_deplibs_check_method=pass_all ;;
1665 *)
1666 # glibc up to 2.1.1 does not perform some relocations on ARM
1667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1668 esac
1669 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1670 ;;
1671
1672netbsd*)
1673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1674 else
1675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1676 lt_cv_file_magic_cmd='/usr/bin/file -L'
1677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1678 fi
1679 ;;
1680
1681osf3* | osf4* | osf5*)
1682 # this will be overridden with pass_all, but let us keep it just in case
1683 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1684 lt_cv_file_magic_test_file=/shlib/libc.so
1685 lt_cv_deplibs_check_method=pass_all
1686 ;;
1687
1688sco3.2v5*)
1689 lt_cv_deplibs_check_method=pass_all
1690 ;;
1691
1692solaris*)
1693 lt_cv_deplibs_check_method=pass_all
1694 lt_cv_file_magic_test_file=/lib/libc.so
1695 ;;
1696
1697sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1698 case "$host_vendor" in
1699 ncr)
1700 lt_cv_deplibs_check_method=pass_all
1701 ;;
1702 motorola)
1703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1705 ;;
1706 esac
1707 ;;
1708esac
1709
1710fi
1711
1712echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1713file_magic_cmd=$lt_cv_file_magic_cmd
1714deplibs_check_method=$lt_cv_deplibs_check_method
1715
1716echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1717echo "configure:1718: checking for object suffix" >&5
1718if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720else
1721 rm -f conftest*
1722echo 'int i = 1;' > conftest.$ac_ext
1723if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724 for ac_file in conftest.*; do
1725 case $ac_file in
1726 *.c) ;;
1727 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1728 esac
1729 done
1730else
1731 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1732fi
1733rm -f conftest*
1734fi
1735
1736echo "$ac_t""$ac_cv_objext" 1>&6
1737OBJEXT=$ac_cv_objext
1738ac_objext=$ac_cv_objext
1739
1740
1741
1742echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1743echo "configure:1744: checking for executable suffix" >&5
1744if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1748 ac_cv_exeext=.exe
1749else
1750 rm -f conftest*
1751 echo 'int main () { return 0; }' > conftest.$ac_ext
1752 ac_cv_exeext=
1753 if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1754 for file in conftest.*; do
1755 case $file in
1756 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1757 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1758 esac
1759 done
1760 else
1761 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1762 fi
1763 rm -f conftest*
1764 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1765fi
1766fi
1767
1768EXEEXT=""
1769test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1770echo "$ac_t""${ac_cv_exeext}" 1>&6
1771ac_exeext=$EXEEXT
1772
1773if test $host != $build; then
1774 ac_tool_prefix=${host_alias}-
1775else
1776 ac_tool_prefix=
1777fi
1778
1779# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1780
1781# Only perform the check for file, if the check method requires it
1782case "$deplibs_check_method" in
1783file_magic*)
1784 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1785 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1786echo "configure:1787: checking for ${ac_tool_prefix}file" >&5
1787if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789else
1790 case "$MAGIC_CMD" in
1791 /*)
1792 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1793 ;;
1794 ?:/*)
1795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1796 ;;
1797 *)
1798 ac_save_MAGIC_CMD="$MAGIC_CMD"
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1800 ac_dummy="/usr/bin:$PATH"
1801 for ac_dir in $ac_dummy; do
1802 test -z "$ac_dir" && ac_dir=.
1803 if test -f $ac_dir/${ac_tool_prefix}file; then
1804 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1805 if test -n "$file_magic_test_file"; then
1806 case "$deplibs_check_method" in
1807 "file_magic "*)
1808 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1811 egrep "$file_magic_regex" > /dev/null; then
1812 :
1813 else
1814 cat <<EOF 1>&2
1815
1816*** Warning: the command libtool uses to detect shared libraries,
1817*** $file_magic_cmd, produces output that libtool cannot recognize.
1818*** The result is that libtool may fail to recognize shared libraries
1819*** as such. This will affect the creation of libtool libraries that
1820*** depend on shared libraries, but programs linked with such libtool
1821*** libraries will work regardless of this problem. Nevertheless, you
1822*** may want to report the problem to your system manager and/or to
1823*** bug-libtool@gnu.org
1824
1825EOF
1826 fi ;;
1827 esac
1828 fi
1829 break
1830 fi
1831 done
1832 IFS="$ac_save_ifs"
1833 MAGIC_CMD="$ac_save_MAGIC_CMD"
1834 ;;
1835esac
1836fi
1837
1838MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1839if test -n "$MAGIC_CMD"; then
1840 echo "$ac_t""$MAGIC_CMD" 1>&6
1841else
1842 echo "$ac_t""no" 1>&6
1843fi
1844
1845if test -z "$lt_cv_path_MAGIC_CMD"; then
1846 if test -n "$ac_tool_prefix"; then
1847 echo $ac_n "checking for file""... $ac_c" 1>&6
1848echo "configure:1849: checking for file" >&5
1849if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851else
1852 case "$MAGIC_CMD" in
1853 /*)
1854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1855 ;;
1856 ?:/*)
1857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1858 ;;
1859 *)
1860 ac_save_MAGIC_CMD="$MAGIC_CMD"
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 ac_dummy="/usr/bin:$PATH"
1863 for ac_dir in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/file; then
1866 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1867 if test -n "$file_magic_test_file"; then
1868 case "$deplibs_check_method" in
1869 "file_magic "*)
1870 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1873 egrep "$file_magic_regex" > /dev/null; then
1874 :
1875 else
1876 cat <<EOF 1>&2
1877
1878*** Warning: the command libtool uses to detect shared libraries,
1879*** $file_magic_cmd, produces output that libtool cannot recognize.
1880*** The result is that libtool may fail to recognize shared libraries
1881*** as such. This will affect the creation of libtool libraries that
1882*** depend on shared libraries, but programs linked with such libtool
1883*** libraries will work regardless of this problem. Nevertheless, you
1884*** may want to report the problem to your system manager and/or to
1885*** bug-libtool@gnu.org
1886
1887EOF
1888 fi ;;
1889 esac
1890 fi
1891 break
1892 fi
1893 done
1894 IFS="$ac_save_ifs"
1895 MAGIC_CMD="$ac_save_MAGIC_CMD"
1896 ;;
1897esac
1898fi
1899
1900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1901if test -n "$MAGIC_CMD"; then
1902 echo "$ac_t""$MAGIC_CMD" 1>&6
1903else
1904 echo "$ac_t""no" 1>&6
1905fi
1906
1907 else
1908 MAGIC_CMD=:
1909 fi
1910fi
1911
1912 fi
1913 ;;
1914esac
1915
1916# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919echo "configure:1920: checking for $ac_word" >&5
1920if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922else
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1925else
1926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1927 ac_dummy="$PATH"
1928 for ac_dir in $ac_dummy; do
1929 test -z "$ac_dir" && ac_dir=.
1930 if test -f $ac_dir/$ac_word; then
1931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1932 break
1933 fi
1934 done
1935 IFS="$ac_save_ifs"
1936fi
1937fi
1938RANLIB="$ac_cv_prog_RANLIB"
1939if test -n "$RANLIB"; then
1940 echo "$ac_t""$RANLIB" 1>&6
1941else
1942 echo "$ac_t""no" 1>&6
1943fi
1944
1945
1946if test -z "$ac_cv_prog_RANLIB"; then
1947if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "ranlib", so it can be a program name with args.
1949set dummy ranlib; ac_word=$2
1950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951echo "configure:1952: checking for $ac_word" >&5
1952if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954else
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1957else
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959 ac_dummy="$PATH"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB="ranlib"
1964 break
1965 fi
1966 done
1967 IFS="$ac_save_ifs"
1968 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1969fi
1970fi
1971RANLIB="$ac_cv_prog_RANLIB"
1972if test -n "$RANLIB"; then
1973 echo "$ac_t""$RANLIB" 1>&6
1974else
1975 echo "$ac_t""no" 1>&6
1976fi
1977
1978else
1979 RANLIB=":"
1980fi
1981fi
1982
1983# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1984set dummy ${ac_tool_prefix}strip; ac_word=$2
1985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986echo "configure:1987: checking for $ac_word" >&5
1987if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989else
1990 if test -n "$STRIP"; then
1991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1992else
1993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1994 ac_dummy="$PATH"
1995 for ac_dir in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir=.
1997 if test -f $ac_dir/$ac_word; then
1998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1999 break
2000 fi
2001 done
2002 IFS="$ac_save_ifs"
2003fi
2004fi
2005STRIP="$ac_cv_prog_STRIP"
2006if test -n "$STRIP"; then
2007 echo "$ac_t""$STRIP" 1>&6
2008else
2009 echo "$ac_t""no" 1>&6
2010fi
2011
2012
2013if test -z "$ac_cv_prog_STRIP"; then
2014if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "strip", so it can be a program name with args.
2016set dummy strip; ac_word=$2
2017echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018echo "configure:2019: checking for $ac_word" >&5
2019if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021else
2022 if test -n "$STRIP"; then
2023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2024else
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 ac_dummy="$PATH"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_STRIP="strip"
2031 break
2032 fi
2033 done
2034 IFS="$ac_save_ifs"
2035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2036fi
2037fi
2038STRIP="$ac_cv_prog_STRIP"
2039if test -n "$STRIP"; then
2040 echo "$ac_t""$STRIP" 1>&6
2041else
2042 echo "$ac_t""no" 1>&6
2043fi
2044
2045else
2046 STRIP=":"
2047fi
2048fi
2049
2050
2051# Check for any special flags to pass to ltconfig.
2052libtool_flags="--cache-file=$cache_file"
2053test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2054test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2055test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2056test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2057test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2058
2059libtool_flags="$libtool_flags --enable-win32-dll"
2060# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2061if test "${enable_libtool_lock+set}" = set; then
2062 enableval="$enable_libtool_lock"
2063 :
2064fi
2065
2066test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2067test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2068
2069# Check whether --with-pic or --without-pic was given.
2070if test "${with_pic+set}" = set; then
2071 withval="$with_pic"
2072 pic_mode="$withval"
2073else
2074 pic_mode=default
2075fi
2076
2077test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2078test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2079
2080# Some flags need to be propagated to the compiler or linker for good
2081# libtool support.
2082case "$host" in
2083*-*-irix6*)
2084 # Find out which ABI we are using.
2085 echo '#line 2086 "configure"' > conftest.$ac_ext
2086 if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 case "`/usr/bin/file conftest.o`" in
2088 *32-bit*)
2089 LD="${LD-ld} -32"
2090 ;;
2091 *N32*)
2092 LD="${LD-ld} -n32"
2093 ;;
2094 *64-bit*)
2095 LD="${LD-ld} -64"
2096 ;;
2097 esac
2098 fi
2099 rm -rf conftest*
2100 ;;
2101
2102*-*-sco3.2v5*)
2103 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2104 SAVE_CFLAGS="$CFLAGS"
2105 CFLAGS="$CFLAGS -belf"
2106 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2107echo "configure:2108: checking whether the C compiler needs -belf" >&5
2108if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110else
2111
2112 ac_ext=c
2113# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2114ac_cpp='$CPP $CPPFLAGS'
2115ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117cross_compiling=$ac_cv_prog_cc_cross
2118
2119 cat > conftest.$ac_ext <<EOF
2120#line 2121 "configure"
2121#include "confdefs.h"
2122
2123int main() {
2124
2125; return 0; }
2126EOF
2127if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128 rm -rf conftest*
2129 lt_cv_cc_needs_belf=yes
2130else
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2133 rm -rf conftest*
2134 lt_cv_cc_needs_belf=no
2135fi
2136rm -f conftest*
2137 ac_ext=c
2138# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2139ac_cpp='$CPP $CPPFLAGS'
2140ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2141ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2142cross_compiling=$ac_cv_prog_cc_cross
2143
2144fi
2145
2146echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2147 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2148 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2149 CFLAGS="$SAVE_CFLAGS"
2150 fi
2151 ;;
2152
2153*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2154 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2155set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2156echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2157echo "configure:2158: checking for $ac_word" >&5
2158if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160else
2161 if test -n "$DLLTOOL"; then
2162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2163else
2164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 ac_dummy="$PATH"
2166 for ac_dir in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir=.
2168 if test -f $ac_dir/$ac_word; then
2169 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2170 break
2171 fi
2172 done
2173 IFS="$ac_save_ifs"
2174fi
2175fi
2176DLLTOOL="$ac_cv_prog_DLLTOOL"
2177if test -n "$DLLTOOL"; then
2178 echo "$ac_t""$DLLTOOL" 1>&6
2179else
2180 echo "$ac_t""no" 1>&6
2181fi
2182
2183
2184if test -z "$ac_cv_prog_DLLTOOL"; then
2185if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "dlltool", so it can be a program name with args.
2187set dummy dlltool; ac_word=$2
2188echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189echo "configure:2190: checking for $ac_word" >&5
2190if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192else
2193 if test -n "$DLLTOOL"; then
2194 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2195else
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197 ac_dummy="$PATH"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_DLLTOOL="dlltool"
2202 break
2203 fi
2204 done
2205 IFS="$ac_save_ifs"
2206 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2207fi
2208fi
2209DLLTOOL="$ac_cv_prog_DLLTOOL"
2210if test -n "$DLLTOOL"; then
2211 echo "$ac_t""$DLLTOOL" 1>&6
2212else
2213 echo "$ac_t""no" 1>&6
2214fi
2215
bce1b489 2216else
03391b53
AO
2217 DLLTOOL="false"
2218fi
2219fi
2220
2221 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2222set dummy ${ac_tool_prefix}as; ac_word=$2
2223echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2224echo "configure:2225: checking for $ac_word" >&5
2225if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 2227else
03391b53
AO
2228 if test -n "$AS"; then
2229 ac_cv_prog_AS="$AS" # Let the user override the test.
2230else
2231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2232 ac_dummy="$PATH"
2233 for ac_dir in $ac_dummy; do
2234 test -z "$ac_dir" && ac_dir=.
2235 if test -f $ac_dir/$ac_word; then
2236 ac_cv_prog_AS="${ac_tool_prefix}as"
2237 break
2238 fi
2239 done
2240 IFS="$ac_save_ifs"
bce1b489
BE
2241fi
2242fi
03391b53
AO
2243AS="$ac_cv_prog_AS"
2244if test -n "$AS"; then
2245 echo "$ac_t""$AS" 1>&6
2246else
2247 echo "$ac_t""no" 1>&6
2248fi
2249
2250
2251if test -z "$ac_cv_prog_AS"; then
2252if test -n "$ac_tool_prefix"; then
2253 # Extract the first word of "as", so it can be a program name with args.
2254set dummy as; ac_word=$2
2255echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256echo "configure:2257: checking for $ac_word" >&5
2257if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259else
2260 if test -n "$AS"; then
2261 ac_cv_prog_AS="$AS" # Let the user override the test.
2262else
2263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2264 ac_dummy="$PATH"
2265 for ac_dir in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir=.
2267 if test -f $ac_dir/$ac_word; then
2268 ac_cv_prog_AS="as"
2269 break
2270 fi
2271 done
2272 IFS="$ac_save_ifs"
2273 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2274fi
2275fi
2276AS="$ac_cv_prog_AS"
2277if test -n "$AS"; then
2278 echo "$ac_t""$AS" 1>&6
2279else
2280 echo "$ac_t""no" 1>&6
2281fi
2282
2283else
2284 AS="false"
2285fi
2286fi
2287
2288 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2289set dummy ${ac_tool_prefix}objdump; ac_word=$2
2290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2291echo "configure:2292: checking for $ac_word" >&5
2292if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2294else
2295 if test -n "$OBJDUMP"; then
2296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2297else
2298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2299 ac_dummy="$PATH"
2300 for ac_dir in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir=.
2302 if test -f $ac_dir/$ac_word; then
2303 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2304 break
2305 fi
2306 done
2307 IFS="$ac_save_ifs"
2308fi
2309fi
2310OBJDUMP="$ac_cv_prog_OBJDUMP"
2311if test -n "$OBJDUMP"; then
2312 echo "$ac_t""$OBJDUMP" 1>&6
2313else
2314 echo "$ac_t""no" 1>&6
2315fi
2316
2317
2318if test -z "$ac_cv_prog_OBJDUMP"; then
2319if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "objdump", so it can be a program name with args.
2321set dummy objdump; ac_word=$2
2322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323echo "configure:2324: checking for $ac_word" >&5
2324if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326else
2327 if test -n "$OBJDUMP"; then
2328 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2329else
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2331 ac_dummy="$PATH"
2332 for ac_dir in $ac_dummy; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word; then
2335 ac_cv_prog_OBJDUMP="objdump"
2336 break
2337 fi
2338 done
2339 IFS="$ac_save_ifs"
2340 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2341fi
2342fi
2343OBJDUMP="$ac_cv_prog_OBJDUMP"
2344if test -n "$OBJDUMP"; then
2345 echo "$ac_t""$OBJDUMP" 1>&6
2346else
2347 echo "$ac_t""no" 1>&6
2348fi
2349
2350else
2351 OBJDUMP="false"
2352fi
2353fi
2354
2355
2356 # recent cygwin and mingw systems supply a stub DllMain which the user
2357 # can override, but on older systems we have to supply one
2358 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2359echo "configure:2360: checking if libtool should supply DllMain function" >&5
2360if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362else
2363 cat > conftest.$ac_ext <<EOF
2364#line 2365 "configure"
2365#include "confdefs.h"
2366
2367int main() {
2368extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2369 DllMain (0, 0, 0);
2370; return 0; }
2371EOF
2372if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373 rm -rf conftest*
2374 lt_cv_need_dllmain=no
2375else
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2378 rm -rf conftest*
2379 lt_cv_need_dllmain=yes
2380fi
2381rm -f conftest*
2382fi
2383
2384echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2385
2386 case "$host/$CC" in
2387 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2388 # old mingw systems require "-dll" to link a DLL, while more recent ones
2389 # require "-mdll"
2390 SAVE_CFLAGS="$CFLAGS"
2391 CFLAGS="$CFLAGS -mdll"
2392 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2393echo "configure:2394: checking how to link DLLs" >&5
2394if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396else
2397 cat > conftest.$ac_ext <<EOF
2398#line 2399 "configure"
2399#include "confdefs.h"
2400
2401int main() {
2402
2403; return 0; }
2404EOF
2405if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2406 rm -rf conftest*
2407 lt_cv_cc_dll_switch=-mdll
2408else
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 rm -rf conftest*
2412 lt_cv_cc_dll_switch=-dll
2413fi
2414rm -f conftest*
2415fi
2416
2417echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2418 CFLAGS="$SAVE_CFLAGS" ;;
2419 *-*-cygwin* | *-*-pw32*)
2420 # cygwin systems need to pass --dll to the linker, and not link
2421 # crt.o which will require a WinMain@16 definition.
2422 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2423 esac
2424 ;;
2425
2426esac
2427
2428
2429# Save cache, so that ltconfig can load it
2430cat > confcache <<\EOF
2431# This file is a shell script that caches the results of configure
2432# tests run on this system so they can be shared between configure
2433# scripts and configure runs. It is not useful on other systems.
2434# If it contains results you don't want to keep, you may remove or edit it.
2435#
2436# By default, configure uses ./config.cache as the cache file,
2437# creating it if it does not exist already. You can give configure
2438# the --cache-file=FILE option to use a different cache file; that is
2439# what configure does when it calls configure scripts in
2440# subdirectories, so they share the cache.
2441# Giving --cache-file=/dev/null disables caching, for debugging configure.
2442# config.status only pays attention to the cache file if you give it the
2443# --recheck option to rerun configure.
2444#
2445EOF
2446# The following way of writing the cache mishandles newlines in values,
2447# but we know of no workaround that is simple, portable, and efficient.
2448# So, don't put newlines in cache variables' values.
2449# Ultrix sh set writes to stderr and can't be redirected directly,
2450# and sets the high bit in the cache file unless we assign to the vars.
2451(set) 2>&1 |
2452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2453 *ac_space=\ *)
2454 # `set' does not quote correctly, so add quotes (double-quote substitution
2455 # turns \\\\ into \\, and sed turns \\ into \).
2456 sed -n \
2457 -e "s/'/'\\\\''/g" \
2458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2459 ;;
2460 *)
2461 # `set' quotes correctly as required by POSIX, so do not add quotes.
2462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2463 ;;
2464 esac >> confcache
2465if cmp -s $cache_file confcache; then
2466 :
2467else
2468 if test -w $cache_file; then
2469 echo "updating cache $cache_file"
2470 cat confcache > $cache_file
2471 else
2472 echo "not updating unwritable cache $cache_file"
2473 fi
2474fi
2475rm -f confcache
bce1b489 2476
03391b53
AO
2477
2478# Actually configure libtool. ac_aux_dir is where install-sh is found.
2479AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2480MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2481LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2482AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2483objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2484deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2485${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2486$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2487|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2488
2489# Reload cache, that may have been modified by ltconfig
2490if test -r "$cache_file"; then
2491 echo "loading cache $cache_file"
2492 . $cache_file
2493else
2494 echo "creating cache $cache_file"
2495 > $cache_file
2496fi
2497
2498
2499# This can be used to rebuild libtool when needed
2500LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2501
2502# Always use our own libtool.
2503LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2504
2505# Redirect the config.log output again, so that the ltconfig log is not
2506# clobbered by the next message.
2507exec 5>>./config.log
2508
2509
2510
2511
2512
2513
2514
c161c99b 2515
bce1b489
BE
2516# Check whether --enable-objc-gc or --disable-objc-gc was given.
2517if test "${enable_objc_gc+set}" = set; then
2518 enableval="$enable_objc_gc"
2519 if [ x$enable_objc_gc = xno ]; then
2520 OBJC_BOEHM_GC=''
2521else
c161c99b 2522 OBJC_BOEHM_GC=libobjc_gc.la
bce1b489
BE
2523fi
2524else
2525 OBJC_BOEHM_GC=''
2526fi
2527
03391b53
AO
2528
2529
2530
bce1b489
BE
2531# We need multilib support, but only if configuring for the target.
2532trap '' 1 2 15
03391b53 2533cat > confcache <<\EOF
bce1b489
BE
2534# This file is a shell script that caches the results of configure
2535# tests run on this system so they can be shared between configure
2536# scripts and configure runs. It is not useful on other systems.
2537# If it contains results you don't want to keep, you may remove or edit it.
2538#
2539# By default, configure uses ./config.cache as the cache file,
2540# creating it if it does not exist already. You can give configure
2541# the --cache-file=FILE option to use a different cache file; that is
2542# what configure does when it calls configure scripts in
2543# subdirectories, so they share the cache.
2544# Giving --cache-file=/dev/null disables caching, for debugging configure.
2545# config.status only pays attention to the cache file if you give it the
2546# --recheck option to rerun configure.
2547#
2548EOF
2549# The following way of writing the cache mishandles newlines in values,
2550# but we know of no workaround that is simple, portable, and efficient.
2551# So, don't put newlines in cache variables' values.
2552# Ultrix sh set writes to stderr and can't be redirected directly,
2553# and sets the high bit in the cache file unless we assign to the vars.
03391b53
AO
2554(set) 2>&1 |
2555 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2556 *ac_space=\ *)
2557 # `set' does not quote correctly, so add quotes (double-quote substitution
2558 # turns \\\\ into \\, and sed turns \\ into \).
2559 sed -n \
2560 -e "s/'/'\\\\''/g" \
2561 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2562 ;;
2563 *)
2564 # `set' quotes correctly as required by POSIX, so do not add quotes.
2565 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2566 ;;
2567 esac >> confcache
2568if cmp -s $cache_file confcache; then
2569 :
2570else
bce1b489 2571 if test -w $cache_file; then
03391b53
AO
2572 echo "updating cache $cache_file"
2573 cat confcache > $cache_file
bce1b489
BE
2574 else
2575 echo "not updating unwritable cache $cache_file"
2576 fi
2577fi
2578rm -f confcache
03391b53 2579
bce1b489
BE
2580trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2581
2582test "x$prefix" = xNONE && prefix=$ac_default_prefix
2583# Let make expand exec_prefix.
2584test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2585
2586# Any assignment to VPATH causes Sun make to only execute
2587# the first set of double-colon rules, so remove it if not needed.
2588# If there is a colon in the path, we need to keep it.
2589if test "x$srcdir" = x.; then
2590 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2591fi
2592
03391b53 2593trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
bce1b489 2594
03391b53 2595DEFS=-DHAVE_CONFIG_H
bce1b489 2596
03391b53 2597# Without the "./", some shells look in PATH for config.status.
162f5967 2598: ${CONFIG_STATUS=./config.status}
03391b53 2599
bce1b489 2600echo creating $CONFIG_STATUS
03391b53
AO
2601rm -f $CONFIG_STATUS
2602cat > $CONFIG_STATUS <<EOF
bce1b489
BE
2603#! /bin/sh
2604# Generated automatically by configure.
2605# Run this file to recreate the current configuration.
03391b53
AO
2606# This directory was configured as follows,
2607# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2608#
2609# $0 $ac_configure_args
2610#
bce1b489
BE
2611# Compiler output produced by configure, useful for debugging
2612# configure, is in ./config.log if it exists.
2613
03391b53
AO
2614ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2615for ac_option
bce1b489 2616do
03391b53 2617 case "\$ac_option" in
bce1b489 2618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
03391b53
AO
2619 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2620 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2621 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2622 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2623 exit 0 ;;
2624 -help | --help | --hel | --he | --h)
2625 echo "\$ac_cs_usage"; exit 0 ;;
2626 *) echo "\$ac_cs_usage"; exit 1 ;;
bce1b489
BE
2627 esac
2628done
2629
03391b53
AO
2630ac_given_srcdir=$srcdir
2631ac_given_INSTALL="$INSTALL"
162f5967 2632
03391b53 2633trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
162f5967 2634EOF
03391b53 2635cat >> $CONFIG_STATUS <<EOF
162f5967 2636
03391b53
AO
2637# Protect against being on the right side of a sed subst in config.status.
2638sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2640$ac_vpsub
2641$extrasub
2642s%@SHELL@%$SHELL%g
2643s%@CFLAGS@%$CFLAGS%g
2644s%@CPPFLAGS@%$CPPFLAGS%g
2645s%@CXXFLAGS@%$CXXFLAGS%g
2646s%@FFLAGS@%$FFLAGS%g
2647s%@DEFS@%$DEFS%g
2648s%@LDFLAGS@%$LDFLAGS%g
2649s%@LIBS@%$LIBS%g
2650s%@exec_prefix@%$exec_prefix%g
2651s%@prefix@%$prefix%g
2652s%@program_transform_name@%$program_transform_name%g
2653s%@bindir@%$bindir%g
2654s%@sbindir@%$sbindir%g
2655s%@libexecdir@%$libexecdir%g
2656s%@datadir@%$datadir%g
2657s%@sysconfdir@%$sysconfdir%g
2658s%@sharedstatedir@%$sharedstatedir%g
2659s%@localstatedir@%$localstatedir%g
2660s%@libdir@%$libdir%g
2661s%@includedir@%$includedir%g
2662s%@oldincludedir@%$oldincludedir%g
2663s%@infodir@%$infodir%g
2664s%@mandir@%$mandir%g
2665s%@CC@%$CC%g
2666s%@AR@%$AR%g
2667s%@RANLIB@%$RANLIB%g
2668s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2669s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2670s%@INSTALL_DATA@%$INSTALL_DATA%g
2671s%@CPP@%$CPP%g
2672s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%g
2673s%@host@%$host%g
2674s%@host_alias@%$host_alias%g
2675s%@host_cpu@%$host_cpu%g
2676s%@host_vendor@%$host_vendor%g
2677s%@host_os@%$host_os%g
2678s%@build@%$build%g
2679s%@build_alias@%$build_alias%g
2680s%@build_cpu@%$build_cpu%g
2681s%@build_vendor@%$build_vendor%g
2682s%@build_os@%$build_os%g
2683s%@LN_S@%$LN_S%g
2684s%@OBJEXT@%$OBJEXT%g
2685s%@EXEEXT@%$EXEEXT%g
2686s%@STRIP@%$STRIP%g
2687s%@DLLTOOL@%$DLLTOOL%g
2688s%@AS@%$AS%g
2689s%@OBJDUMP@%$OBJDUMP%g
2690s%@LIBTOOL@%$LIBTOOL%g
2691s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
bce1b489
BE
2692
2693CEOF
2694EOF
2695
03391b53
AO
2696cat >> $CONFIG_STATUS <<\EOF
2697
2698# Split the substitutions into bite-sized pieces for seds with
2699# small command number limits, like on Digital OSF/1 and HP-UX.
2700ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2701ac_file=1 # Number of current file.
2702ac_beg=1 # First line for current file.
2703ac_end=$ac_max_sed_cmds # Line after last line for current file.
2704ac_more_lines=:
2705ac_sed_cmds=""
2706while $ac_more_lines; do
2707 if test $ac_beg -gt 1; then
2708 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2709 else
2710 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2711 fi
2712 if test ! -s conftest.s$ac_file; then
2713 ac_more_lines=false
2714 rm -f conftest.s$ac_file
2715 else
2716 if test -z "$ac_sed_cmds"; then
2717 ac_sed_cmds="sed -f conftest.s$ac_file"
bce1b489 2718 else
03391b53 2719 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
bce1b489 2720 fi
03391b53
AO
2721 ac_file=`expr $ac_file + 1`
2722 ac_beg=$ac_end
2723 ac_end=`expr $ac_end + $ac_max_sed_cmds`
bce1b489 2724 fi
03391b53
AO
2725done
2726if test -z "$ac_sed_cmds"; then
2727 ac_sed_cmds=cat
2728fi
2729EOF
bce1b489 2730
03391b53
AO
2731cat >> $CONFIG_STATUS <<EOF
2732
2733CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
bce1b489 2734EOF
03391b53
AO
2735cat >> $CONFIG_STATUS <<\EOF
2736for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
bce1b489
BE
2737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2738 case "$ac_file" in
03391b53
AO
2739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2741 *) ac_file_in="${ac_file}.in" ;;
bce1b489
BE
2742 esac
2743
2744 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2745
2746 # Remove last slash and all that follows it. Not all systems have dirname.
03391b53 2747 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
bce1b489
BE
2748 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2749 # The file is in a subdirectory.
2750 test ! -d "$ac_dir" && mkdir "$ac_dir"
2751 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2752 # A "../" for each directory in $ac_dir_suffix.
03391b53 2753 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
bce1b489
BE
2754 else
2755 ac_dir_suffix= ac_dots=
2756 fi
2757
2758 case "$ac_given_srcdir" in
2759 .) srcdir=.
2760 if test -z "$ac_dots"; then top_srcdir=.
03391b53
AO
2761 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2762 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
bce1b489 2763 *) # Relative path.
03391b53
AO
2764 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2765 top_srcdir="$ac_dots$ac_given_srcdir" ;;
bce1b489
BE
2766 esac
2767
2768 case "$ac_given_INSTALL" in
03391b53
AO
2769 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2770 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
bce1b489
BE
2771 esac
2772
2773 echo creating "$ac_file"
2774 rm -f "$ac_file"
03391b53
AO
2775 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2776 case "$ac_file" in
2777 *Makefile*) ac_comsub="1i\\
2778# $configure_input" ;;
2779 *) ac_comsub= ;;
2780 esac
bce1b489 2781
03391b53
AO
2782 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2783 sed -e "$ac_comsub
2784s%@configure_input@%$configure_input%g
2785s%@srcdir@%$srcdir%g
2786s%@top_srcdir@%$top_srcdir%g
2787s%@INSTALL@%$INSTALL%g
2788" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2789fi; done
2790rm -f conftest.s*
bce1b489 2791
d972a4c2
OP
2792# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2793# NAME is the cpp macro being defined and VALUE is the value it is being given.
2794#
2795# ac_d sets the value in "#define NAME VALUE" lines.
2796ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
03391b53
AO
2797ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2798ac_dC='\3'
2799ac_dD='%g'
2800# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
d972a4c2 2801ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
03391b53 2802ac_uB='\([ ]\)%\1#\2define\3'
d972a4c2 2803ac_uC=' '
03391b53
AO
2804ac_uD='\4%g'
2805# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2806ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2807ac_eB='$%\1#\2define\3'
2808ac_eC=' '
2809ac_eD='%g'
2810
2811if test "${CONFIG_HEADERS+set}" != set; then
2812EOF
2813cat >> $CONFIG_STATUS <<EOF
2814 CONFIG_HEADERS="config.h"
2815EOF
2816cat >> $CONFIG_STATUS <<\EOF
2817fi
2818for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
d972a4c2
OP
2819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2820 case "$ac_file" in
03391b53
AO
2821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2823 *) ac_file_in="${ac_file}.in" ;;
d972a4c2
OP
2824 esac
2825
2826 echo creating $ac_file
2827
03391b53
AO
2828 rm -f conftest.frag conftest.in conftest.out
2829 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2830 cat $ac_file_inputs > conftest.in
d972a4c2
OP
2831
2832EOF
2833
03391b53
AO
2834# Transform confdefs.h into a sed script conftest.vals that substitutes
2835# the proper values into config.h.in to produce config.h. And first:
2836# Protect against being on the right side of a sed subst in config.status.
2837# Protect against being in an unquoted here document in config.status.
2838rm -f conftest.vals
2839cat > conftest.hdr <<\EOF
d972a4c2
OP
2840s/[\\&%]/\\&/g
2841s%[\\$`]%\\&%g
03391b53
AO
2842s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2843s%ac_d%ac_u%gp
2844s%ac_u%ac_e%gp
d972a4c2 2845EOF
03391b53
AO
2846sed -n -f conftest.hdr confdefs.h > conftest.vals
2847rm -f conftest.hdr
d972a4c2
OP
2848
2849# This sed command replaces #undef with comments. This is necessary, for
2850# example, in the case of _POSIX_SOURCE, which is predefined and required
2851# on some systems where configure will not decide to define it.
03391b53 2852cat >> conftest.vals <<\EOF
d972a4c2
OP
2853s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2854EOF
2855
03391b53
AO
2856# Break up conftest.vals because some shells have a limit on
2857# the size of here documents, and old seds have small limits too.
d972a4c2
OP
2858
2859rm -f conftest.tail
03391b53 2860while :
d972a4c2 2861do
03391b53
AO
2862 ac_lines=`grep -c . conftest.vals`
2863 # grep -c gives empty output for an empty file on some AIX systems.
2864 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2865 # Write a limited-size here document to conftest.frag.
2866 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2867 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
d972a4c2 2868 echo 'CEOF
03391b53
AO
2869 sed -f conftest.frag conftest.in > conftest.out
2870 rm -f conftest.in
2871 mv conftest.out conftest.in
2872' >> $CONFIG_STATUS
2873 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2874 rm -f conftest.vals
2875 mv conftest.tail conftest.vals
d972a4c2 2876done
03391b53
AO
2877rm -f conftest.vals
2878
2879cat >> $CONFIG_STATUS <<\EOF
2880 rm -f conftest.frag conftest.h
2881 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2882 cat conftest.in >> conftest.h
2883 rm -f conftest.in
2884 if cmp -s $ac_file conftest.h 2>/dev/null; then
d972a4c2 2885 echo "$ac_file is unchanged"
03391b53 2886 rm -f conftest.h
d972a4c2
OP
2887 else
2888 # Remove last slash and all that follows it. Not all systems have dirname.
03391b53
AO
2889 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
d972a4c2
OP
2891 # The file is in a subdirectory.
2892 test ! -d "$ac_dir" && mkdir "$ac_dir"
2893 fi
2894 rm -f $ac_file
03391b53 2895 mv conftest.h $ac_file
d972a4c2 2896 fi
03391b53 2897fi; done
bce1b489 2898
03391b53
AO
2899EOF
2900cat >> $CONFIG_STATUS <<EOF
2901srcdir=${srcdir}
2902host=${host}
2903target=${target}
2904with_target_subdir=${with_target_subdir}
2905with_multisubdir=${with_multisubdir}
2906ac_configure_args="--enable-multilib ${ac_configure_args}"
2907CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2908topsrcdir=${topsrcdir}
162f5967 2909
03391b53
AO
2910EOF
2911cat >> $CONFIG_STATUS <<\EOF
2912test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
bce1b489
BE
2913if test -n "$CONFIG_FILES"; then
2914 if test -n "${with_target_subdir}"; then
2915 # FIXME: We shouldn't need to set ac_file
2916 ac_file=Makefile
2917 . ${topsrcdir}/config-ml.in
2918 fi
03391b53 2919fi
bce1b489
BE
2920exit 0
2921EOF
2922chmod +x $CONFIG_STATUS
2923rm -fr confdefs* $ac_clean_files
03391b53 2924test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
bce1b489
BE
2925
2926