]> git.ipfire.org Git - thirdparty/gcc.git/blame - libobjc/configure
stormy16.md (zero_extendqihi2): New.
[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=
33456445 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
33456445 161 --site-file=FILE use FILE as the site file
03391b53
AO
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
33456445
AO
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" ;;
336
bce1b489
BE
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.
33456445
AO
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
33456445
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
03391b53
AO
549
550
551
bce1b489
BE
552if test "${srcdir}" = "." ; then
553 if test "${with_target_subdir}" != "." ; then
554 topsrcdir=${with_multisrctop}../..
555 else
556 topsrcdir=${with_multisrctop}..
557 fi
558else
559 topsrcdir=${srcdir}/..
560fi
8a829fd9
KG
561ac_aux_dir=
562for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
563 if test -f $ac_dir/install-sh; then
564 ac_aux_dir=$ac_dir
565 ac_install_sh="$ac_aux_dir/install-sh -c"
566 break
567 elif test -f $ac_dir/install.sh; then
568 ac_aux_dir=$ac_dir
569 ac_install_sh="$ac_aux_dir/install.sh -c"
570 break
571 fi
572done
573if test -z "$ac_aux_dir"; then
03391b53 574 { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
8a829fd9 575fi
03391b53
AO
576ac_config_guess=$ac_aux_dir/config.guess
577ac_config_sub=$ac_aux_dir/config.sub
578ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
579
8a829fd9 580
03391b53 581# If the language specific compiler does not exist, but the "gcc" directory
da4b1927
MK
582# does, we do not build anything. Note, $r is set by the top-level Makefile.
583# Note that when we look for the compiler, we search both with and without
03391b53 584# extension to handle cross and canadian cross builds.
71205e0b
MH
585compiler_name=cc1obj
586rm -f skip-this-dir
03391b53 587echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
33456445 588echo "configure:589: checking if compiler $compiler_name has been built" >&5
03391b53
AO
589if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
71205e0b
MH
591else
592 objc_cv_compiler_exists=yes
da4b1927
MK
593if test -n "$r"; then
594 if test -d "$r"/gcc; then
595 if test -f "$r"/gcc/$compiler_name \
6de94858 596 || test -f "$r"/gcc/$compiler_name.exe; then
da4b1927
MK
597 true
598 else
599 objc_cv_compiler_exists=no
600 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
601 fi
602 fi
603fi
604
71205e0b
MH
605fi
606
03391b53 607echo "$ac_t""$objc_cv_compiler_exists" 1>&6
71205e0b
MH
608if test x$objc_cv_compiler_exists = xno
609then
da4b1927
MK
610 rm -f Makefile conftest* confdefs* core
611 exit 0
71205e0b
MH
612fi
613
7c6b0e92
GK
614
615
616
bce1b489
BE
617# For ObjC we'll set CC to point at the built gcc, but this will get it into
618# the makefiles
03391b53 619# Extract the first word of "gcc", so it can be a program name with args.
bce1b489 620set dummy gcc; ac_word=$2
03391b53 621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
33456445 622echo "configure:623: checking for $ac_word" >&5
03391b53
AO
623if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
625else
626 if test -n "$CC"; then
627 ac_cv_prog_CC="$CC" # Let the user override the test.
628else
03391b53
AO
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 ac_dummy="$PATH"
631 for ac_dir in $ac_dummy; do
632 test -z "$ac_dir" && ac_dir=.
633 if test -f $ac_dir/$ac_word; then
634 ac_cv_prog_CC="gcc"
635 break
636 fi
bce1b489 637 done
03391b53 638 IFS="$ac_save_ifs"
bce1b489
BE
639fi
640fi
03391b53 641CC="$ac_cv_prog_CC"
bce1b489 642if test -n "$CC"; then
03391b53 643 echo "$ac_t""$CC" 1>&6
bce1b489 644else
03391b53 645 echo "$ac_t""no" 1>&6
bce1b489
BE
646fi
647
03391b53
AO
648if test -z "$CC"; then
649 # Extract the first word of "cc", so it can be a program name with args.
bce1b489 650set dummy cc; ac_word=$2
03391b53 651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
33456445 652echo "configure:653: checking for $ac_word" >&5
03391b53
AO
653if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
655else
656 if test -n "$CC"; then
657 ac_cv_prog_CC="$CC" # Let the user override the test.
658else
03391b53 659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
bce1b489 660 ac_prog_rejected=no
03391b53
AO
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 ac_prog_rejected=yes
667 continue
668 fi
669 ac_cv_prog_CC="cc"
670 break
bce1b489
BE
671 fi
672 done
03391b53 673 IFS="$ac_save_ifs"
bce1b489
BE
674if test $ac_prog_rejected = yes; then
675 # We found a bogon in the path, so make sure we never use it.
676 set dummy $ac_cv_prog_CC
677 shift
678 if test $# -gt 0; then
679 # We chose a different compiler from the bogus one.
680 # However, it has the same basename, so the bogon will be chosen
681 # first if we set CC to just the basename; use the full file name.
682 shift
03391b53 683 set dummy "$ac_dir/$ac_word" "$@"
bce1b489
BE
684 shift
685 ac_cv_prog_CC="$@"
686 fi
687fi
688fi
689fi
03391b53 690CC="$ac_cv_prog_CC"
bce1b489 691if test -n "$CC"; then
03391b53 692 echo "$ac_t""$CC" 1>&6
bce1b489 693else
03391b53 694 echo "$ac_t""no" 1>&6
bce1b489
BE
695fi
696
03391b53
AO
697 if test -z "$CC"; then
698 case "`uname -s`" in
699 *win32* | *WIN32*)
700 # Extract the first word of "cl", so it can be a program name with args.
701set dummy cl; ac_word=$2
702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
33456445 703echo "configure:704: checking for $ac_word" >&5
03391b53
AO
704if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
da4b1927
MK
706else
707 if test -n "$CC"; then
708 ac_cv_prog_CC="$CC" # Let the user override the test.
709else
03391b53
AO
710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
711 ac_dummy="$PATH"
712 for ac_dir in $ac_dummy; do
713 test -z "$ac_dir" && ac_dir=.
714 if test -f $ac_dir/$ac_word; then
715 ac_cv_prog_CC="cl"
716 break
717 fi
da4b1927 718 done
03391b53 719 IFS="$ac_save_ifs"
da4b1927
MK
720fi
721fi
03391b53 722CC="$ac_cv_prog_CC"
da4b1927 723if test -n "$CC"; then
03391b53 724 echo "$ac_t""$CC" 1>&6
da4b1927 725else
03391b53 726 echo "$ac_t""no" 1>&6
da4b1927 727fi
03391b53
AO
728 ;;
729 esac
da4b1927 730 fi
03391b53
AO
731 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
732fi
bce1b489 733
bce1b489 734
03391b53 735echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
33456445 736echo "configure:737: checking whether we are using GNU C" >&5
03391b53
AO
737if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 739else
03391b53 740 cat > conftest.c <<EOF
bce1b489
BE
741#ifdef __GNUC__
742 yes;
743#endif
744EOF
33456445 745if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
bce1b489
BE
746 ac_cv_prog_gcc=yes
747else
748 ac_cv_prog_gcc=no
749fi
750fi
03391b53
AO
751
752echo "$ac_t""$ac_cv_prog_gcc" 1>&6
bce1b489
BE
753
754if test $ac_cv_prog_gcc = yes; then
755 GCC=yes
da4b1927
MK
756else
757 GCC=
758fi
759
03391b53
AO
760ac_test_CFLAGS="${CFLAGS+set}"
761ac_save_CFLAGS="$CFLAGS"
da4b1927 762CFLAGS=
03391b53 763echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
33456445 764echo "configure:765: checking whether ${CC-cc} accepts -g" >&5
03391b53
AO
765if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 767else
03391b53 768 echo 'void f(){}' > conftest.c
bce1b489
BE
769if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
770 ac_cv_prog_cc_g=yes
771else
772 ac_cv_prog_cc_g=no
773fi
774rm -f conftest*
775
776fi
03391b53
AO
777
778echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
da4b1927 779if test "$ac_test_CFLAGS" = set; then
03391b53 780 CFLAGS="$ac_save_CFLAGS"
da4b1927
MK
781elif test $ac_cv_prog_cc_g = yes; then
782 if test "$GCC" = yes; then
bce1b489
BE
783 CFLAGS="-g -O2"
784 else
da4b1927 785 CFLAGS="-g"
bce1b489
BE
786 fi
787else
da4b1927
MK
788 if test "$GCC" = yes; then
789 CFLAGS="-O2"
790 else
791 CFLAGS=
792 fi
bce1b489
BE
793fi
794
03391b53 795
bce1b489
BE
796test "$AR" || AR=ar
797
798if test "$RANLIB"; then :
03391b53 799
bce1b489
BE
800else
801 # Extract the first word of "ranlib", so it can be a program name with args.
802set dummy ranlib; ac_word=$2
03391b53 803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
33456445 804echo "configure:805: checking for $ac_word" >&5
03391b53
AO
805if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
807else
808 if test -n "$RANLIB"; then
809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
810else
03391b53
AO
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
812 ac_dummy="$PATH"
813 for ac_dir in $ac_dummy; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 ac_cv_prog_RANLIB="ranlib"
817 break
818 fi
bce1b489 819 done
03391b53 820 IFS="$ac_save_ifs"
bce1b489
BE
821 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
822fi
823fi
03391b53 824RANLIB="$ac_cv_prog_RANLIB"
bce1b489 825if test -n "$RANLIB"; then
03391b53 826 echo "$ac_t""$RANLIB" 1>&6
bce1b489 827else
03391b53 828 echo "$ac_t""no" 1>&6
bce1b489
BE
829fi
830
831fi
bce1b489
BE
832# Find a good install program. We prefer a C program (faster),
833# so one script is as good as another. But avoid the broken or
834# incompatible versions:
835# SysV /etc/install, /usr/sbin/install
836# SunOS /usr/etc/install
837# IRIX /sbin/install
838# AIX /bin/install
839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
842# ./install, which can be erroneously created by make from ./install.sh.
03391b53 843echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
33456445 844echo "configure:845: checking for a BSD compatible install" >&5
bce1b489 845if test -z "$INSTALL"; then
03391b53
AO
846if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 848else
03391b53 849 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
bce1b489
BE
850 for ac_dir in $PATH; do
851 # Account for people who put trailing slashes in PATH elements.
852 case "$ac_dir/" in
853 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 *)
855 # OSF1 and SCO ODT 3.0 have their own names for install.
856 # Don't use installbsd from OSF since it installs stuff as root
857 # by default.
858 for ac_prog in ginstall scoinst install; do
859 if test -f $ac_dir/$ac_prog; then
860 if test $ac_prog = install &&
861 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
862 # AIX install. It has an incompatible calling convention.
863 :
864 else
865 ac_cv_path_install="$ac_dir/$ac_prog -c"
866 break 2
867 fi
868 fi
869 done
870 ;;
871 esac
872 done
03391b53 873 IFS="$ac_save_IFS"
bce1b489
BE
874
875fi
876 if test "${ac_cv_path_install+set}" = set; then
03391b53 877 INSTALL="$ac_cv_path_install"
bce1b489
BE
878 else
879 # As a last resort, use the slow shell script. We don't cache a
880 # path for INSTALL within a source directory, because that will
881 # break other packages using the cache if that directory is
882 # removed, or if the path is relative.
03391b53 883 INSTALL="$ac_install_sh"
bce1b489
BE
884 fi
885fi
03391b53 886echo "$ac_t""$INSTALL" 1>&6
bce1b489
BE
887
888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
889# It thinks the first close brace ends the variable substitution.
890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
891
03391b53 892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
da4b1927 893
bce1b489
BE
894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
895
03391b53 896
7c6b0e92
GK
897# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
898# at least currently, we never actually build a program, so we never
899# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
900# fails, because we are probably configuring with a cross compiler
901# which cant create executables. So we include AC_EXEEXT to keep
902# automake happy, but we dont execute it, since we dont care about
903# the result.
904if false; then
4173be7f
AO
905 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
906 # to nothing, so nothing would remain between `then' and `fi' if it
907 # were not for the `:' below.
908 :
7c6b0e92 909 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4173be7f 910echo "configure:911: checking for Cygwin environment" >&5
7c6b0e92
GK
911if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913else
914 cat > conftest.$ac_ext <<EOF
4173be7f 915#line 916 "configure"
7c6b0e92
GK
916#include "confdefs.h"
917
918int main() {
919
920#ifndef __CYGWIN__
921#define __CYGWIN__ __CYGWIN32__
922#endif
923return __CYGWIN__;
924; return 0; }
925EOF
4173be7f 926if { (eval echo configure:927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7c6b0e92
GK
927 rm -rf conftest*
928 ac_cv_cygwin=yes
929else
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 ac_cv_cygwin=no
934fi
935rm -f conftest*
936rm -f conftest*
937fi
938
939echo "$ac_t""$ac_cv_cygwin" 1>&6
940CYGWIN=
941test "$ac_cv_cygwin" = yes && CYGWIN=yes
942echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4173be7f 943echo "configure:944: checking for mingw32 environment" >&5
7c6b0e92
GK
944if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946else
947 cat > conftest.$ac_ext <<EOF
4173be7f 948#line 949 "configure"
7c6b0e92
GK
949#include "confdefs.h"
950
951int main() {
952return __MINGW32__;
953; return 0; }
954EOF
4173be7f 955if { (eval echo configure:956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7c6b0e92
GK
956 rm -rf conftest*
957 ac_cv_mingw32=yes
958else
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
961 rm -rf conftest*
962 ac_cv_mingw32=no
963fi
964rm -f conftest*
965rm -f conftest*
966fi
967
968echo "$ac_t""$ac_cv_mingw32" 1>&6
969MINGW32=
970test "$ac_cv_mingw32" = yes && MINGW32=yes
971
972
973echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4173be7f 974echo "configure:975: checking for executable suffix" >&5
7c6b0e92
GK
975if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977else
978 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
979 ac_cv_exeext=.exe
980else
981 rm -f conftest*
982 echo 'int main () { return 0; }' > conftest.$ac_ext
983 ac_cv_exeext=
4173be7f 984 if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7c6b0e92
GK
985 for file in conftest.*; do
986 case $file in
33456445 987 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7c6b0e92
GK
988 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
989 esac
990 done
991 else
992 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
993 fi
994 rm -f conftest*
995 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
996fi
997fi
998
999EXEEXT=""
1000test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1001echo "$ac_t""${ac_cv_exeext}" 1>&6
1002ac_exeext=$EXEEXT
1003
1004fi
1005
03391b53 1006
bce1b489 1007# Sanity check for the cross-compilation case:
03391b53 1008echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4173be7f 1009echo "configure:1010: checking how to run the C preprocessor" >&5
bce1b489
BE
1010# On Suns, sometimes $CPP names a directory.
1011if test -n "$CPP" && test -d "$CPP"; then
1012 CPP=
1013fi
1014if test -z "$CPP"; then
03391b53
AO
1015if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489
BE
1017else
1018 # This must be in double quotes, not single quotes, because CPP may get
1019 # substituted into the Makefile and "${CC-cc}" will confuse make.
1020 CPP="${CC-cc} -E"
1021 # On the NeXT, cc -E runs the code through the compiler's parser,
1022 # not just through cpp.
03391b53 1023 cat > conftest.$ac_ext <<EOF
4173be7f 1024#line 1025 "configure"
bce1b489
BE
1025#include "confdefs.h"
1026#include <assert.h>
1027Syntax Error
1028EOF
1029ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1030{ (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1031ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1032if test -z "$ac_err"; then
1033 :
1034else
1035 echo "$ac_err" >&5
1036 echo "configure: failed program was:" >&5
1037 cat conftest.$ac_ext >&5
03391b53 1038 rm -rf conftest*
bce1b489 1039 CPP="${CC-cc} -E -traditional-cpp"
03391b53 1040 cat > conftest.$ac_ext <<EOF
4173be7f 1041#line 1042 "configure"
bce1b489
BE
1042#include "confdefs.h"
1043#include <assert.h>
1044Syntax Error
1045EOF
1046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1047{ (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927
MK
1048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1049if test -z "$ac_err"; then
1050 :
1051else
1052 echo "$ac_err" >&5
1053 echo "configure: failed program was:" >&5
1054 cat conftest.$ac_ext >&5
03391b53 1055 rm -rf conftest*
da4b1927 1056 CPP="${CC-cc} -nologo -E"
03391b53 1057 cat > conftest.$ac_ext <<EOF
4173be7f 1058#line 1059 "configure"
da4b1927
MK
1059#include "confdefs.h"
1060#include <assert.h>
1061Syntax Error
1062EOF
1063ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1064{ (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1065ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489
BE
1066if test -z "$ac_err"; then
1067 :
1068else
1069 echo "$ac_err" >&5
1070 echo "configure: failed program was:" >&5
1071 cat conftest.$ac_ext >&5
03391b53 1072 rm -rf conftest*
bce1b489
BE
1073 CPP=/lib/cpp
1074fi
1075rm -f conftest*
1076fi
da4b1927
MK
1077rm -f conftest*
1078fi
bce1b489 1079rm -f conftest*
03391b53 1080 ac_cv_prog_CPP="$CPP"
bce1b489 1081fi
03391b53 1082 CPP="$ac_cv_prog_CPP"
bce1b489 1083else
03391b53 1084 ac_cv_prog_CPP="$CPP"
bce1b489 1085fi
03391b53 1086echo "$ac_t""$CPP" 1>&6
bce1b489 1087
03391b53
AO
1088ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
1089echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
4173be7f 1090echo "configure:1091: checking for stdio.h" >&5
03391b53
AO
1091if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 1093else
03391b53 1094 cat > conftest.$ac_ext <<EOF
4173be7f 1095#line 1096 "configure"
bce1b489
BE
1096#include "confdefs.h"
1097#include <stdio.h>
1098EOF
1099ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1100{ (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1101ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1102if test -z "$ac_err"; then
03391b53
AO
1103 rm -rf conftest*
1104 eval "ac_cv_header_$ac_safe=yes"
bce1b489
BE
1105else
1106 echo "$ac_err" >&5
1107 echo "configure: failed program was:" >&5
1108 cat conftest.$ac_ext >&5
03391b53
AO
1109 rm -rf conftest*
1110 eval "ac_cv_header_$ac_safe=no"
bce1b489
BE
1111fi
1112rm -f conftest*
1113fi
03391b53
AO
1114if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1115 echo "$ac_t""yes" 1>&6
bce1b489
BE
1116 :
1117else
03391b53
AO
1118 echo "$ac_t""no" 1>&6
1119{ echo "configure: error: Can't find stdio.h.
bce1b489
BE
1120You must have a usable C system for the target already installed, at least
1121including headers and, preferably, the library, before you can configure
03391b53
AO
1122the Objective C runtime system. If necessary, install gcc now with
1123\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
bce1b489
BE
1124fi
1125
03391b53
AO
1126
1127echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4173be7f 1128echo "configure:1129: checking for ANSI C header files" >&5
03391b53
AO
1129if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 1131else
03391b53 1132 cat > conftest.$ac_ext <<EOF
4173be7f 1133#line 1134 "configure"
bce1b489
BE
1134#include "confdefs.h"
1135#include <stdlib.h>
1136#include <stdarg.h>
1137#include <string.h>
1138#include <float.h>
1139EOF
1140ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1141{ (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da4b1927 1142ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
bce1b489 1143if test -z "$ac_err"; then
03391b53 1144 rm -rf conftest*
bce1b489
BE
1145 ac_cv_header_stdc=yes
1146else
1147 echo "$ac_err" >&5
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
03391b53 1150 rm -rf conftest*
bce1b489
BE
1151 ac_cv_header_stdc=no
1152fi
1153rm -f conftest*
1154
1155if test $ac_cv_header_stdc = yes; then
1156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
03391b53 1157cat > conftest.$ac_ext <<EOF
4173be7f 1158#line 1159 "configure"
bce1b489
BE
1159#include "confdefs.h"
1160#include <string.h>
1161EOF
1162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1163 egrep "memchr" >/dev/null 2>&1; then
1164 :
1165else
03391b53 1166 rm -rf conftest*
bce1b489
BE
1167 ac_cv_header_stdc=no
1168fi
1169rm -f conftest*
1170
1171fi
1172
1173if test $ac_cv_header_stdc = yes; then
1174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
03391b53 1175cat > conftest.$ac_ext <<EOF
4173be7f 1176#line 1177 "configure"
bce1b489
BE
1177#include "confdefs.h"
1178#include <stdlib.h>
1179EOF
1180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1181 egrep "free" >/dev/null 2>&1; then
1182 :
1183else
03391b53 1184 rm -rf conftest*
bce1b489
BE
1185 ac_cv_header_stdc=no
1186fi
1187rm -f conftest*
1188
1189fi
1190
1191if test $ac_cv_header_stdc = yes; then
1192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1193if test "$cross_compiling" = yes; then
1194 :
1195else
03391b53 1196 cat > conftest.$ac_ext <<EOF
4173be7f 1197#line 1198 "configure"
bce1b489
BE
1198#include "confdefs.h"
1199#include <ctype.h>
03391b53
AO
1200#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1201#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
162f5967 1202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
03391b53
AO
1203int main () { int i; for (i = 0; i < 256; i++)
1204if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1205exit (0); }
1206
bce1b489 1207EOF
4173be7f 1208if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
03391b53 1209then
bce1b489
BE
1210 :
1211else
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
03391b53 1214 rm -fr conftest*
bce1b489
BE
1215 ac_cv_header_stdc=no
1216fi
03391b53 1217rm -fr conftest*
bce1b489
BE
1218fi
1219
1220fi
1221fi
162f5967 1222
03391b53
AO
1223echo "$ac_t""$ac_cv_header_stdc" 1>&6
1224if test $ac_cv_header_stdc = yes; then
1225 cat >> confdefs.h <<\EOF
bce1b489
BE
1226#define STDC_HEADERS 1
1227EOF
1228
1229fi
1230
03391b53
AO
1231
1232for ac_hdr in sched.h
d972a4c2 1233do
03391b53
AO
1234ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1235echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4173be7f 1236echo "configure:1237: checking for $ac_hdr" >&5
03391b53
AO
1237if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1239else
1240 cat > conftest.$ac_ext <<EOF
4173be7f 1241#line 1242 "configure"
d972a4c2 1242#include "confdefs.h"
03391b53 1243#include <$ac_hdr>
d972a4c2
OP
1244EOF
1245ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173be7f 1246{ (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d972a4c2
OP
1247ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1248if test -z "$ac_err"; then
03391b53
AO
1249 rm -rf conftest*
1250 eval "ac_cv_header_$ac_safe=yes"
d972a4c2
OP
1251else
1252 echo "$ac_err" >&5
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
03391b53
AO
1255 rm -rf conftest*
1256 eval "ac_cv_header_$ac_safe=no"
d972a4c2
OP
1257fi
1258rm -f conftest*
1259fi
03391b53
AO
1260if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1263 cat >> confdefs.h <<EOF
1264#define $ac_tr_hdr 1
d972a4c2 1265EOF
03391b53
AO
1266
1267else
1268 echo "$ac_t""no" 1>&6
d972a4c2
OP
1269fi
1270done
1271
03391b53 1272
c161c99b 1273# Determine CFLAGS for gthread.
03391b53
AO
1274
1275echo $ac_n "checking for gthread cflags""... $ac_c" 1>&6
4173be7f 1276echo "configure:1277: checking for gthread cflags" >&5
03391b53
AO
1277if eval "test \"`echo '$''{'objc_cv_gthread_flags'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279else
1280 if test -f "$r"/gcc/Makefile
1281then
1282 objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
1283else
1284 { echo "configure: error: not found" 1>&2; exit 1; }
1285fi
1286fi
1287
1288echo "$ac_t""$objc_cv_gthread_flags" 1>&6
1289GTHREAD_FLAGS=$objc_cv_gthread_flags
1290
1291
1292# Disable shared libs by default
1293# Check whether --enable-shared or --disable-shared was given.
1294if test "${enable_shared+set}" = set; then
1295 enableval="$enable_shared"
1296 p=${PACKAGE-default}
33456445 1297case $enableval in
03391b53
AO
1298yes) enable_shared=yes ;;
1299no) enable_shared=no ;;
1300*)
1301 enable_shared=no
1302 # Look at the argument we got. We use all the common list separators.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1304 for pkg in $enableval; do
1305 if test "X$pkg" = "X$p"; then
1306 enable_shared=yes
1307 fi
1308 done
1309 IFS="$ac_save_ifs"
1310 ;;
1311esac
1312else
1313 enable_shared=no
1314fi
1315
1316# Enable Win32 DLL on MS Windows - FIXME
1317
1318# Use libtool
1319# Check whether --enable-static or --disable-static was given.
1320if test "${enable_static+set}" = set; then
1321 enableval="$enable_static"
1322 p=${PACKAGE-default}
33456445 1323case $enableval in
03391b53
AO
1324yes) enable_static=yes ;;
1325no) enable_static=no ;;
1326*)
1327 enable_static=no
1328 # Look at the argument we got. We use all the common list separators.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1330 for pkg in $enableval; do
1331 if test "X$pkg" = "X$p"; then
1332 enable_static=yes
1333 fi
1334 done
1335 IFS="$ac_save_ifs"
1336 ;;
1337esac
1338else
1339 enable_static=yes
1340fi
1341
1342# Check whether --enable-fast-install or --disable-fast-install was given.
1343if test "${enable_fast_install+set}" = set; then
1344 enableval="$enable_fast_install"
1345 p=${PACKAGE-default}
33456445 1346case $enableval in
03391b53
AO
1347yes) enable_fast_install=yes ;;
1348no) enable_fast_install=no ;;
1349*)
1350 enable_fast_install=no
1351 # Look at the argument we got. We use all the common list separators.
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1353 for pkg in $enableval; do
1354 if test "X$pkg" = "X$p"; then
1355 enable_fast_install=yes
1356 fi
1357 done
1358 IFS="$ac_save_ifs"
1359 ;;
1360esac
1361else
1362 enable_fast_install=yes
1363fi
1364
1365
1366# Make sure we can run config.sub.
1367if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1368else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1369fi
1370
1371echo $ac_n "checking host system type""... $ac_c" 1>&6
4173be7f 1372echo "configure:1373: checking host system type" >&5
03391b53
AO
1373
1374host_alias=$host
1375case "$host_alias" in
1376NONE)
1377 case $nonopt in
1378 NONE)
1379 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1380 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1381 fi ;;
1382 *) host_alias=$nonopt ;;
1383 esac ;;
1384esac
1385
1386host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1387host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390echo "$ac_t""$host" 1>&6
1391
1392echo $ac_n "checking build system type""... $ac_c" 1>&6
4173be7f 1393echo "configure:1394: checking build system type" >&5
03391b53
AO
1394
1395build_alias=$build
1396case "$build_alias" in
1397NONE)
1398 case $nonopt in
1399 NONE) build_alias=$host_alias ;;
1400 *) build_alias=$nonopt ;;
1401 esac ;;
1402esac
1403
1404build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1405build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408echo "$ac_t""$build" 1>&6
1409
1410# Check whether --with-gnu-ld or --without-gnu-ld was given.
1411if test "${with_gnu_ld+set}" = set; then
1412 withval="$with_gnu_ld"
1413 test "$withval" = no || with_gnu_ld=yes
1414else
1415 with_gnu_ld=no
1416fi
1417
1418ac_prog=ld
33456445 1419if test "$GCC" = yes; then
03391b53
AO
1420 # Check if gcc -print-prog-name=ld gives a path.
1421 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
4173be7f 1422echo "configure:1423: checking for ld used by GCC" >&5
03391b53
AO
1423 case $host in
1424 *-*-mingw*)
1425 # gcc leaves a trailing carriage return which upsets mingw
1426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1427 *)
1428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1429 esac
33456445 1430 case $ac_prog in
03391b53
AO
1431 # Accept absolute paths.
1432 [\\/]* | [A-Za-z]:[\\/]*)
1433 re_direlt='/[^/][^/]*/\.\./'
1434 # Canonicalize the path of ld
1435 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1436 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1437 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1438 done
1439 test -z "$LD" && LD="$ac_prog"
1440 ;;
1441 "")
1442 # If it fails, then pretend we aren't using GCC.
1443 ac_prog=ld
1444 ;;
1445 *)
1446 # If it is relative, then search for the first ld in PATH.
1447 with_gnu_ld=unknown
1448 ;;
1449 esac
1450elif test "$with_gnu_ld" = yes; then
1451 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
4173be7f 1452echo "configure:1453: checking for GNU ld" >&5
03391b53
AO
1453else
1454 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
4173be7f 1455echo "configure:1456: checking for non-GNU ld" >&5
03391b53 1456fi
33456445 1457if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
03391b53
AO
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 if test -z "$LD"; then
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1462 for ac_dir in $PATH; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
33456445 1465 lt_cv_path_LD="$ac_dir/$ac_prog"
03391b53
AO
1466 # Check to see if the program is GNU ld. I'd rather use --version,
1467 # but apparently some GNU ld's only accept -v.
1468 # Break only if it was the GNU/non-GNU ld that we prefer.
33456445 1469 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
03391b53
AO
1470 test "$with_gnu_ld" != no && break
1471 else
1472 test "$with_gnu_ld" != yes && break
1473 fi
1474 fi
1475 done
1476 IFS="$ac_save_ifs"
1477else
33456445 1478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
03391b53
AO
1479fi
1480fi
1481
33456445 1482LD="$lt_cv_path_LD"
03391b53
AO
1483if test -n "$LD"; then
1484 echo "$ac_t""$LD" 1>&6
1485else
1486 echo "$ac_t""no" 1>&6
1487fi
1488test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1489echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
4173be7f 1490echo "configure:1491: checking if the linker ($LD) is GNU ld" >&5
33456445 1491if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
03391b53
AO
1492 echo $ac_n "(cached) $ac_c" 1>&6
1493else
1494 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1495if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
33456445 1496 lt_cv_prog_gnu_ld=yes
03391b53 1497else
33456445 1498 lt_cv_prog_gnu_ld=no
03391b53
AO
1499fi
1500fi
1501
33456445
AO
1502echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1503with_gnu_ld=$lt_cv_prog_gnu_ld
03391b53
AO
1504
1505
1506echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
4173be7f 1507echo "configure:1508: checking for $LD option to reload object files" >&5
03391b53
AO
1508if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510else
1511 lt_cv_ld_reload_flag='-r'
1512fi
1513
1514echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1515reload_flag=$lt_cv_ld_reload_flag
1516test -n "$reload_flag" && reload_flag=" $reload_flag"
1517
1518echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
4173be7f 1519echo "configure:1520: checking for BSD-compatible nm" >&5
33456445 1520if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
03391b53
AO
1521 echo $ac_n "(cached) $ac_c" 1>&6
1522else
1523 if test -n "$NM"; then
1524 # Let the user override the test.
33456445 1525 lt_cv_path_NM="$NM"
03391b53
AO
1526else
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1528 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1529 test -z "$ac_dir" && ac_dir=.
1530 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1531 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1532 # Check to see if the nm accepts a BSD-compat flag.
1533 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1534 # nm: unknown option "B" ignored
1535 # Tru64's nm complains that /dev/null is an invalid object file
1536 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
33456445 1537 lt_cv_path_NM="$tmp_nm -B"
03391b53
AO
1538 break
1539 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
33456445 1540 lt_cv_path_NM="$tmp_nm -p"
03391b53
AO
1541 break
1542 else
33456445 1543 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
03391b53
AO
1544 continue # so that we can try to find one that supports BSD flags
1545 fi
1546 fi
1547 done
1548 IFS="$ac_save_ifs"
33456445 1549 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
03391b53
AO
1550fi
1551fi
1552
33456445 1553NM="$lt_cv_path_NM"
03391b53
AO
1554echo "$ac_t""$NM" 1>&6
1555
1556echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4173be7f 1557echo "configure:1558: checking whether ln -s works" >&5
03391b53
AO
1558if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 rm -f conftestdata
1562if ln -s X conftestdata 2>/dev/null
1563then
1564 rm -f conftestdata
1565 ac_cv_prog_LN_S="ln -s"
1566else
1567 ac_cv_prog_LN_S=ln
1568fi
1569fi
1570LN_S="$ac_cv_prog_LN_S"
1571if test "$ac_cv_prog_LN_S" = "ln -s"; then
1572 echo "$ac_t""yes" 1>&6
1573else
1574 echo "$ac_t""no" 1>&6
1575fi
1576
1577echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
4173be7f 1578echo "configure:1579: checking how to recognise dependant libraries" >&5
03391b53
AO
1579if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581else
1582 lt_cv_file_magic_cmd='$MAGIC_CMD'
1583lt_cv_file_magic_test_file=
1584lt_cv_deplibs_check_method='unknown'
1585# Need to set the preceding variable on all platforms that support
1586# interlibrary dependencies.
1587# 'none' -- dependencies not supported.
1588# `unknown' -- same as none, but documents that we really don't know.
1589# 'pass_all' -- all dependencies passed with no checks.
1590# 'test_compile' -- check by making test program.
1591# 'file_magic [regex]' -- check by looking for files in library path
1592# which responds to the $file_magic_cmd with a given egrep regex.
1593# If you have `file' or equivalent on your system and you're not sure
1594# whether `pass_all' will *always* work, you probably want this one.
1595
33456445
AO
1596case $host_os in
1597aix*)
03391b53
AO
1598 lt_cv_deplibs_check_method=pass_all
1599 ;;
1600
1601beos*)
1602 lt_cv_deplibs_check_method=pass_all
1603 ;;
1604
1605bsdi4*)
33456445
AO
1606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1607 lt_cv_file_magic_cmd='/usr/bin/file -L'
03391b53
AO
1608 lt_cv_file_magic_test_file=/shlib/libc.so
1609 ;;
1610
1611cygwin* | mingw* |pw32*)
1612 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1613 lt_cv_file_magic_cmd='$OBJDUMP -f'
1614 ;;
1615
33456445
AO
1616darwin* | rhapsody*)
1617 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1618 lt_cv_file_magic_cmd='/usr/bin/file -L'
1619 case "$host_os" in
1620 rhapsody* | darwin1.012)
1621 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1622 ;;
1623 *) # Darwin 1.3 on
1624 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1625 ;;
1626 esac
1627 ;;
1628
03391b53
AO
1629freebsd* )
1630 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
33456445 1631 case $host_cpu in
03391b53
AO
1632 i*86 )
1633 # Not sure whether the presence of OpenBSD here was a mistake.
1634 # Let's accept both of them until this is cleared up.
33456445
AO
1635 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1636 lt_cv_file_magic_cmd=/usr/bin/file
03391b53
AO
1637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1638 ;;
1639 esac
1640 else
1641 lt_cv_deplibs_check_method=pass_all
1642 fi
1643 ;;
1644
1645gnu*)
1646 lt_cv_deplibs_check_method=pass_all
1647 ;;
1648
33456445
AO
1649hpux10.20*|hpux11*)
1650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
03391b53
AO
1651 lt_cv_file_magic_cmd=/usr/bin/file
1652 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1653 ;;
1654
1655irix5* | irix6*)
33456445 1656 case $host_os in
03391b53
AO
1657 irix5*)
1658 # this will be overridden with pass_all, but let us keep it just in case
1659 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1660 ;;
1661 *)
33456445 1662 case $LD in
03391b53
AO
1663 *-32|*"-32 ") libmagic=32-bit;;
1664 *-n32|*"-n32 ") libmagic=N32;;
1665 *-64|*"-64 ") libmagic=64-bit;;
1666 *) libmagic=never-match;;
1667 esac
1668 # this will be overridden with pass_all, but let us keep it just in case
33456445
AO
1669 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1670 ;;
03391b53
AO
1671 esac
1672 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1673 lt_cv_deplibs_check_method=pass_all
1674 ;;
1675
1676# This must be Linux ELF.
1677linux-gnu*)
33456445
AO
1678 case $host_cpu in
1679 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
03391b53
AO
1680 lt_cv_deplibs_check_method=pass_all ;;
1681 *)
1682 # glibc up to 2.1.1 does not perform some relocations on ARM
33456445
AO
1683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1684 esac
03391b53
AO
1685 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1686 ;;
1687
1688netbsd*)
33456445
AO
1689 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1690 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
03391b53 1691 else
33456445 1692 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
03391b53
AO
1693 fi
1694 ;;
1695
33456445
AO
1696newsos6)
1697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1698 lt_cv_file_magic_cmd=/usr/bin/file
1699 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1700 ;;
1701
03391b53
AO
1702osf3* | osf4* | osf5*)
1703 # this will be overridden with pass_all, but let us keep it just in case
1704 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1705 lt_cv_file_magic_test_file=/shlib/libc.so
1706 lt_cv_deplibs_check_method=pass_all
1707 ;;
1708
1709sco3.2v5*)
1710 lt_cv_deplibs_check_method=pass_all
1711 ;;
1712
1713solaris*)
1714 lt_cv_deplibs_check_method=pass_all
1715 lt_cv_file_magic_test_file=/lib/libc.so
1716 ;;
1717
33456445
AO
1718sysv5uw[78]* | sysv4*uw2*)
1719 lt_cv_deplibs_check_method=pass_all
1720 ;;
1721
03391b53 1722sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
33456445 1723 case $host_vendor in
03391b53
AO
1724 ncr)
1725 lt_cv_deplibs_check_method=pass_all
1726 ;;
1727 motorola)
33456445
AO
1728 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]'
1729 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
03391b53
AO
1730 ;;
1731 esac
1732 ;;
1733esac
1734
1735fi
1736
1737echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1738file_magic_cmd=$lt_cv_file_magic_cmd
1739deplibs_check_method=$lt_cv_deplibs_check_method
1740
1741echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4173be7f 1742echo "configure:1743: checking for object suffix" >&5
03391b53
AO
1743if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746 rm -f conftest*
1747echo 'int i = 1;' > conftest.$ac_ext
4173be7f 1748if { (eval echo configure:1749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
03391b53
AO
1749 for ac_file in conftest.*; do
1750 case $ac_file in
1751 *.c) ;;
1752 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1753 esac
1754 done
1755else
1756 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1757fi
1758rm -f conftest*
1759fi
1760
1761echo "$ac_t""$ac_cv_objext" 1>&6
1762OBJEXT=$ac_cv_objext
1763ac_objext=$ac_cv_objext
1764
03391b53
AO
1765if test $host != $build; then
1766 ac_tool_prefix=${host_alias}-
1767else
1768 ac_tool_prefix=
1769fi
1770
1771# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1772
1773# Only perform the check for file, if the check method requires it
33456445 1774case $deplibs_check_method in
03391b53
AO
1775file_magic*)
1776 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1777 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4173be7f 1778echo "configure:1779: checking for ${ac_tool_prefix}file" >&5
03391b53
AO
1779if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781else
33456445 1782 case $MAGIC_CMD in
03391b53
AO
1783 /*)
1784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1785 ;;
1786 ?:/*)
1787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1788 ;;
1789 *)
1790 ac_save_MAGIC_CMD="$MAGIC_CMD"
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1792 ac_dummy="/usr/bin:$PATH"
1793 for ac_dir in $ac_dummy; do
1794 test -z "$ac_dir" && ac_dir=.
1795 if test -f $ac_dir/${ac_tool_prefix}file; then
1796 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1797 if test -n "$file_magic_test_file"; then
33456445 1798 case $deplibs_check_method in
03391b53
AO
1799 "file_magic "*)
1800 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1803 egrep "$file_magic_regex" > /dev/null; then
1804 :
1805 else
1806 cat <<EOF 1>&2
1807
1808*** Warning: the command libtool uses to detect shared libraries,
1809*** $file_magic_cmd, produces output that libtool cannot recognize.
1810*** The result is that libtool may fail to recognize shared libraries
1811*** as such. This will affect the creation of libtool libraries that
1812*** depend on shared libraries, but programs linked with such libtool
1813*** libraries will work regardless of this problem. Nevertheless, you
1814*** may want to report the problem to your system manager and/or to
1815*** bug-libtool@gnu.org
1816
1817EOF
1818 fi ;;
1819 esac
1820 fi
1821 break
1822 fi
1823 done
1824 IFS="$ac_save_ifs"
1825 MAGIC_CMD="$ac_save_MAGIC_CMD"
1826 ;;
1827esac
1828fi
1829
1830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1831if test -n "$MAGIC_CMD"; then
1832 echo "$ac_t""$MAGIC_CMD" 1>&6
1833else
1834 echo "$ac_t""no" 1>&6
1835fi
1836
1837if test -z "$lt_cv_path_MAGIC_CMD"; then
1838 if test -n "$ac_tool_prefix"; then
1839 echo $ac_n "checking for file""... $ac_c" 1>&6
4173be7f 1840echo "configure:1841: checking for file" >&5
03391b53
AO
1841if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843else
33456445 1844 case $MAGIC_CMD in
03391b53
AO
1845 /*)
1846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1847 ;;
1848 ?:/*)
1849 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1850 ;;
1851 *)
1852 ac_save_MAGIC_CMD="$MAGIC_CMD"
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1854 ac_dummy="/usr/bin:$PATH"
1855 for ac_dir in $ac_dummy; do
1856 test -z "$ac_dir" && ac_dir=.
1857 if test -f $ac_dir/file; then
1858 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1859 if test -n "$file_magic_test_file"; then
33456445 1860 case $deplibs_check_method in
03391b53
AO
1861 "file_magic "*)
1862 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1865 egrep "$file_magic_regex" > /dev/null; then
1866 :
1867 else
1868 cat <<EOF 1>&2
1869
1870*** Warning: the command libtool uses to detect shared libraries,
1871*** $file_magic_cmd, produces output that libtool cannot recognize.
1872*** The result is that libtool may fail to recognize shared libraries
1873*** as such. This will affect the creation of libtool libraries that
1874*** depend on shared libraries, but programs linked with such libtool
1875*** libraries will work regardless of this problem. Nevertheless, you
1876*** may want to report the problem to your system manager and/or to
1877*** bug-libtool@gnu.org
1878
1879EOF
1880 fi ;;
1881 esac
1882 fi
1883 break
1884 fi
1885 done
1886 IFS="$ac_save_ifs"
1887 MAGIC_CMD="$ac_save_MAGIC_CMD"
1888 ;;
1889esac
1890fi
1891
1892MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1893if test -n "$MAGIC_CMD"; then
1894 echo "$ac_t""$MAGIC_CMD" 1>&6
1895else
1896 echo "$ac_t""no" 1>&6
1897fi
1898
1899 else
1900 MAGIC_CMD=:
1901 fi
1902fi
1903
1904 fi
1905 ;;
1906esac
1907
1908# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 1911echo "configure:1912: checking for $ac_word" >&5
03391b53
AO
1912if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915 if test -n "$RANLIB"; then
1916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1917else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_dummy="$PATH"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1924 break
1925 fi
1926 done
1927 IFS="$ac_save_ifs"
1928fi
1929fi
1930RANLIB="$ac_cv_prog_RANLIB"
1931if test -n "$RANLIB"; then
1932 echo "$ac_t""$RANLIB" 1>&6
1933else
1934 echo "$ac_t""no" 1>&6
1935fi
1936
1937
1938if test -z "$ac_cv_prog_RANLIB"; then
1939if test -n "$ac_tool_prefix"; then
1940 # Extract the first word of "ranlib", so it can be a program name with args.
1941set dummy ranlib; ac_word=$2
1942echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 1943echo "configure:1944: checking for $ac_word" >&5
03391b53
AO
1944if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 if test -n "$RANLIB"; then
1948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1949else
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 ac_dummy="$PATH"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_RANLIB="ranlib"
1956 break
1957 fi
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1961fi
1962fi
1963RANLIB="$ac_cv_prog_RANLIB"
1964if test -n "$RANLIB"; then
1965 echo "$ac_t""$RANLIB" 1>&6
1966else
1967 echo "$ac_t""no" 1>&6
1968fi
1969
1970else
1971 RANLIB=":"
1972fi
1973fi
1974
1975# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1976set dummy ${ac_tool_prefix}strip; ac_word=$2
1977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 1978echo "configure:1979: checking for $ac_word" >&5
03391b53
AO
1979if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1981else
1982 if test -n "$STRIP"; then
1983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1984else
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1986 ac_dummy="$PATH"
1987 for ac_dir in $ac_dummy; do
1988 test -z "$ac_dir" && ac_dir=.
1989 if test -f $ac_dir/$ac_word; then
1990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1991 break
1992 fi
1993 done
1994 IFS="$ac_save_ifs"
1995fi
1996fi
1997STRIP="$ac_cv_prog_STRIP"
1998if test -n "$STRIP"; then
1999 echo "$ac_t""$STRIP" 1>&6
2000else
2001 echo "$ac_t""no" 1>&6
2002fi
2003
2004
2005if test -z "$ac_cv_prog_STRIP"; then
2006if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "strip", so it can be a program name with args.
2008set dummy strip; ac_word=$2
2009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2010echo "configure:2011: checking for $ac_word" >&5
03391b53
AO
2011if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013else
2014 if test -n "$STRIP"; then
2015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2016else
2017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2018 ac_dummy="$PATH"
2019 for ac_dir in $ac_dummy; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/$ac_word; then
2022 ac_cv_prog_STRIP="strip"
2023 break
2024 fi
2025 done
2026 IFS="$ac_save_ifs"
2027 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2028fi
2029fi
2030STRIP="$ac_cv_prog_STRIP"
2031if test -n "$STRIP"; then
2032 echo "$ac_t""$STRIP" 1>&6
2033else
2034 echo "$ac_t""no" 1>&6
2035fi
2036
2037else
2038 STRIP=":"
2039fi
2040fi
2041
2042
2043# Check for any special flags to pass to ltconfig.
2044libtool_flags="--cache-file=$cache_file"
2045test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2046test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2047test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
33456445
AO
2048test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2049test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
03391b53
AO
2050
2051libtool_flags="$libtool_flags --enable-win32-dll"
2052# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2053if test "${enable_libtool_lock+set}" = set; then
2054 enableval="$enable_libtool_lock"
2055 :
2056fi
2057
2058test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2059test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2060
2061# Check whether --with-pic or --without-pic was given.
2062if test "${with_pic+set}" = set; then
2063 withval="$with_pic"
2064 pic_mode="$withval"
2065else
2066 pic_mode=default
2067fi
2068
2069test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2070test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2071
2072# Some flags need to be propagated to the compiler or linker for good
2073# libtool support.
33456445 2074case $host in
03391b53
AO
2075*-*-irix6*)
2076 # Find out which ABI we are using.
4173be7f
AO
2077 echo '#line 2078 "configure"' > conftest.$ac_ext
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
33456445 2079 case `/usr/bin/file conftest.$ac_objext` in
03391b53
AO
2080 *32-bit*)
2081 LD="${LD-ld} -32"
2082 ;;
2083 *N32*)
2084 LD="${LD-ld} -n32"
2085 ;;
2086 *64-bit*)
2087 LD="${LD-ld} -64"
2088 ;;
2089 esac
2090 fi
2091 rm -rf conftest*
2092 ;;
2093
2094*-*-sco3.2v5*)
2095 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2096 SAVE_CFLAGS="$CFLAGS"
2097 CFLAGS="$CFLAGS -belf"
2098 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4173be7f 2099echo "configure:2100: checking whether the C compiler needs -belf" >&5
03391b53
AO
2100if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102else
2103
2104 ac_ext=c
2105# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2108ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2109cross_compiling=$ac_cv_prog_cc_cross
2110
2111 cat > conftest.$ac_ext <<EOF
4173be7f 2112#line 2113 "configure"
03391b53
AO
2113#include "confdefs.h"
2114
2115int main() {
2116
2117; return 0; }
2118EOF
4173be7f 2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
03391b53
AO
2120 rm -rf conftest*
2121 lt_cv_cc_needs_belf=yes
2122else
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2125 rm -rf conftest*
2126 lt_cv_cc_needs_belf=no
2127fi
2128rm -f conftest*
2129 ac_ext=c
2130# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2133ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2134cross_compiling=$ac_cv_prog_cc_cross
2135
2136fi
2137
2138echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2141 CFLAGS="$SAVE_CFLAGS"
2142 fi
2143 ;;
2144
2145*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2146 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2147set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2148echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2149echo "configure:2150: checking for $ac_word" >&5
03391b53
AO
2150if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152else
2153 if test -n "$DLLTOOL"; then
2154 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2155else
2156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2157 ac_dummy="$PATH"
2158 for ac_dir in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir=.
2160 if test -f $ac_dir/$ac_word; then
2161 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2162 break
2163 fi
2164 done
2165 IFS="$ac_save_ifs"
2166fi
2167fi
2168DLLTOOL="$ac_cv_prog_DLLTOOL"
2169if test -n "$DLLTOOL"; then
2170 echo "$ac_t""$DLLTOOL" 1>&6
2171else
2172 echo "$ac_t""no" 1>&6
2173fi
2174
2175
2176if test -z "$ac_cv_prog_DLLTOOL"; then
2177if test -n "$ac_tool_prefix"; then
2178 # Extract the first word of "dlltool", so it can be a program name with args.
2179set dummy dlltool; ac_word=$2
2180echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2181echo "configure:2182: checking for $ac_word" >&5
03391b53
AO
2182if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184else
2185 if test -n "$DLLTOOL"; then
2186 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2187else
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2189 ac_dummy="$PATH"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/$ac_word; then
2193 ac_cv_prog_DLLTOOL="dlltool"
2194 break
2195 fi
2196 done
2197 IFS="$ac_save_ifs"
2198 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2199fi
2200fi
2201DLLTOOL="$ac_cv_prog_DLLTOOL"
2202if test -n "$DLLTOOL"; then
2203 echo "$ac_t""$DLLTOOL" 1>&6
2204else
2205 echo "$ac_t""no" 1>&6
2206fi
2207
bce1b489 2208else
03391b53
AO
2209 DLLTOOL="false"
2210fi
2211fi
2212
2213 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}as; ac_word=$2
2215echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2216echo "configure:2217: checking for $ac_word" >&5
03391b53
AO
2217if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
bce1b489 2219else
03391b53
AO
2220 if test -n "$AS"; then
2221 ac_cv_prog_AS="$AS" # Let the user override the test.
2222else
2223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2224 ac_dummy="$PATH"
2225 for ac_dir in $ac_dummy; do
2226 test -z "$ac_dir" && ac_dir=.
2227 if test -f $ac_dir/$ac_word; then
2228 ac_cv_prog_AS="${ac_tool_prefix}as"
2229 break
2230 fi
2231 done
2232 IFS="$ac_save_ifs"
bce1b489
BE
2233fi
2234fi
03391b53
AO
2235AS="$ac_cv_prog_AS"
2236if test -n "$AS"; then
2237 echo "$ac_t""$AS" 1>&6
2238else
2239 echo "$ac_t""no" 1>&6
2240fi
2241
2242
2243if test -z "$ac_cv_prog_AS"; then
2244if test -n "$ac_tool_prefix"; then
2245 # Extract the first word of "as", so it can be a program name with args.
2246set dummy as; ac_word=$2
2247echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2248echo "configure:2249: checking for $ac_word" >&5
03391b53
AO
2249if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251else
2252 if test -n "$AS"; then
2253 ac_cv_prog_AS="$AS" # Let the user override the test.
2254else
2255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 ac_dummy="$PATH"
2257 for ac_dir in $ac_dummy; do
2258 test -z "$ac_dir" && ac_dir=.
2259 if test -f $ac_dir/$ac_word; then
2260 ac_cv_prog_AS="as"
2261 break
2262 fi
2263 done
2264 IFS="$ac_save_ifs"
2265 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2266fi
2267fi
2268AS="$ac_cv_prog_AS"
2269if test -n "$AS"; then
2270 echo "$ac_t""$AS" 1>&6
2271else
2272 echo "$ac_t""no" 1>&6
2273fi
2274
2275else
2276 AS="false"
2277fi
2278fi
2279
2280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2281set dummy ${ac_tool_prefix}objdump; ac_word=$2
2282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2283echo "configure:2284: checking for $ac_word" >&5
03391b53
AO
2284if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2286else
2287 if test -n "$OBJDUMP"; then
2288 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2289else
2290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2291 ac_dummy="$PATH"
2292 for ac_dir in $ac_dummy; do
2293 test -z "$ac_dir" && ac_dir=.
2294 if test -f $ac_dir/$ac_word; then
2295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2296 break
2297 fi
2298 done
2299 IFS="$ac_save_ifs"
2300fi
2301fi
2302OBJDUMP="$ac_cv_prog_OBJDUMP"
2303if test -n "$OBJDUMP"; then
2304 echo "$ac_t""$OBJDUMP" 1>&6
2305else
2306 echo "$ac_t""no" 1>&6
2307fi
2308
2309
2310if test -z "$ac_cv_prog_OBJDUMP"; then
2311if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "objdump", so it can be a program name with args.
2313set dummy objdump; ac_word=$2
2314echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4173be7f 2315echo "configure:2316: checking for $ac_word" >&5
03391b53
AO
2316if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318else
2319 if test -n "$OBJDUMP"; then
2320 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2321else
2322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2323 ac_dummy="$PATH"
2324 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if test -f $ac_dir/$ac_word; then
2327 ac_cv_prog_OBJDUMP="objdump"
2328 break
2329 fi
2330 done
2331 IFS="$ac_save_ifs"
2332 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2333fi
2334fi
2335OBJDUMP="$ac_cv_prog_OBJDUMP"
2336if test -n "$OBJDUMP"; then
2337 echo "$ac_t""$OBJDUMP" 1>&6
2338else
2339 echo "$ac_t""no" 1>&6
2340fi
2341
2342else
2343 OBJDUMP="false"
2344fi
2345fi
2346
2347
2348 # recent cygwin and mingw systems supply a stub DllMain which the user
2349 # can override, but on older systems we have to supply one
2350 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4173be7f 2351echo "configure:2352: checking if libtool should supply DllMain function" >&5
03391b53
AO
2352if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2354else
2355 cat > conftest.$ac_ext <<EOF
4173be7f 2356#line 2357 "configure"
03391b53
AO
2357#include "confdefs.h"
2358
2359int main() {
2360extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2361 DllMain (0, 0, 0);
2362; return 0; }
2363EOF
4173be7f 2364if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
03391b53
AO
2365 rm -rf conftest*
2366 lt_cv_need_dllmain=no
2367else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 lt_cv_need_dllmain=yes
2372fi
2373rm -f conftest*
2374fi
2375
2376echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2377
33456445 2378 case $host/$CC in
03391b53
AO
2379 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2380 # old mingw systems require "-dll" to link a DLL, while more recent ones
2381 # require "-mdll"
2382 SAVE_CFLAGS="$CFLAGS"
2383 CFLAGS="$CFLAGS -mdll"
2384 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4173be7f 2385echo "configure:2386: checking how to link DLLs" >&5
03391b53
AO
2386if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2388else
2389 cat > conftest.$ac_ext <<EOF
4173be7f 2390#line 2391 "configure"
03391b53
AO
2391#include "confdefs.h"
2392
2393int main() {
2394
2395; return 0; }
2396EOF
4173be7f 2397if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
03391b53
AO
2398 rm -rf conftest*
2399 lt_cv_cc_dll_switch=-mdll
2400else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 lt_cv_cc_dll_switch=-dll
2405fi
2406rm -f conftest*
2407fi
2408
2409echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2410 CFLAGS="$SAVE_CFLAGS" ;;
2411 *-*-cygwin* | *-*-pw32*)
2412 # cygwin systems need to pass --dll to the linker, and not link
2413 # crt.o which will require a WinMain@16 definition.
2414 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2415 esac
2416 ;;
2417
2418esac
2419
2420
2421# Save cache, so that ltconfig can load it
2422cat > confcache <<\EOF
2423# This file is a shell script that caches the results of configure
2424# tests run on this system so they can be shared between configure
2425# scripts and configure runs. It is not useful on other systems.
2426# If it contains results you don't want to keep, you may remove or edit it.
2427#
2428# By default, configure uses ./config.cache as the cache file,
2429# creating it if it does not exist already. You can give configure
2430# the --cache-file=FILE option to use a different cache file; that is
2431# what configure does when it calls configure scripts in
2432# subdirectories, so they share the cache.
2433# Giving --cache-file=/dev/null disables caching, for debugging configure.
2434# config.status only pays attention to the cache file if you give it the
2435# --recheck option to rerun configure.
2436#
2437EOF
2438# The following way of writing the cache mishandles newlines in values,
2439# but we know of no workaround that is simple, portable, and efficient.
2440# So, don't put newlines in cache variables' values.
2441# Ultrix sh set writes to stderr and can't be redirected directly,
2442# and sets the high bit in the cache file unless we assign to the vars.
2443(set) 2>&1 |
2444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2445 *ac_space=\ *)
2446 # `set' does not quote correctly, so add quotes (double-quote substitution
2447 # turns \\\\ into \\, and sed turns \\ into \).
2448 sed -n \
2449 -e "s/'/'\\\\''/g" \
2450 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2451 ;;
2452 *)
2453 # `set' quotes correctly as required by POSIX, so do not add quotes.
2454 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2455 ;;
2456 esac >> confcache
2457if cmp -s $cache_file confcache; then
2458 :
2459else
2460 if test -w $cache_file; then
2461 echo "updating cache $cache_file"
2462 cat confcache > $cache_file
2463 else
2464 echo "not updating unwritable cache $cache_file"
2465 fi
2466fi
2467rm -f confcache
bce1b489 2468
03391b53
AO
2469
2470# Actually configure libtool. ac_aux_dir is where install-sh is found.
2471AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2472MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2473LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2474AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2475objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2476deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2477${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2478$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2479|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2480
2481# Reload cache, that may have been modified by ltconfig
2482if test -r "$cache_file"; then
2483 echo "loading cache $cache_file"
2484 . $cache_file
2485else
2486 echo "creating cache $cache_file"
2487 > $cache_file
2488fi
2489
2490
2491# This can be used to rebuild libtool when needed
2492LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2493
2494# Always use our own libtool.
2495LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2496
2497# Redirect the config.log output again, so that the ltconfig log is not
2498# clobbered by the next message.
2499exec 5>>./config.log
2500
03391b53
AO
2501
2502
2503
2504
2505
c161c99b 2506
bce1b489
BE
2507# Check whether --enable-objc-gc or --disable-objc-gc was given.
2508if test "${enable_objc_gc+set}" = set; then
2509 enableval="$enable_objc_gc"
2510 if [ x$enable_objc_gc = xno ]; then
2511 OBJC_BOEHM_GC=''
2512else
c161c99b 2513 OBJC_BOEHM_GC=libobjc_gc.la
bce1b489
BE
2514fi
2515else
2516 OBJC_BOEHM_GC=''
2517fi
2518
03391b53
AO
2519
2520
2521
bce1b489
BE
2522# We need multilib support, but only if configuring for the target.
2523trap '' 1 2 15
03391b53 2524cat > confcache <<\EOF
bce1b489
BE
2525# This file is a shell script that caches the results of configure
2526# tests run on this system so they can be shared between configure
2527# scripts and configure runs. It is not useful on other systems.
2528# If it contains results you don't want to keep, you may remove or edit it.
2529#
2530# By default, configure uses ./config.cache as the cache file,
2531# creating it if it does not exist already. You can give configure
2532# the --cache-file=FILE option to use a different cache file; that is
2533# what configure does when it calls configure scripts in
2534# subdirectories, so they share the cache.
2535# Giving --cache-file=/dev/null disables caching, for debugging configure.
2536# config.status only pays attention to the cache file if you give it the
2537# --recheck option to rerun configure.
2538#
2539EOF
2540# The following way of writing the cache mishandles newlines in values,
2541# but we know of no workaround that is simple, portable, and efficient.
2542# So, don't put newlines in cache variables' values.
2543# Ultrix sh set writes to stderr and can't be redirected directly,
2544# and sets the high bit in the cache file unless we assign to the vars.
03391b53
AO
2545(set) 2>&1 |
2546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2547 *ac_space=\ *)
2548 # `set' does not quote correctly, so add quotes (double-quote substitution
2549 # turns \\\\ into \\, and sed turns \\ into \).
2550 sed -n \
2551 -e "s/'/'\\\\''/g" \
2552 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2553 ;;
2554 *)
2555 # `set' quotes correctly as required by POSIX, so do not add quotes.
2556 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2557 ;;
2558 esac >> confcache
2559if cmp -s $cache_file confcache; then
2560 :
2561else
bce1b489 2562 if test -w $cache_file; then
03391b53
AO
2563 echo "updating cache $cache_file"
2564 cat confcache > $cache_file
bce1b489
BE
2565 else
2566 echo "not updating unwritable cache $cache_file"
2567 fi
2568fi
2569rm -f confcache
03391b53 2570
bce1b489
BE
2571trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2572
2573test "x$prefix" = xNONE && prefix=$ac_default_prefix
2574# Let make expand exec_prefix.
2575test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2576
2577# Any assignment to VPATH causes Sun make to only execute
2578# the first set of double-colon rules, so remove it if not needed.
2579# If there is a colon in the path, we need to keep it.
2580if test "x$srcdir" = x.; then
2581 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2582fi
2583
03391b53 2584trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
bce1b489 2585
03391b53 2586DEFS=-DHAVE_CONFIG_H
bce1b489 2587
03391b53 2588# Without the "./", some shells look in PATH for config.status.
162f5967 2589: ${CONFIG_STATUS=./config.status}
03391b53 2590
bce1b489 2591echo creating $CONFIG_STATUS
03391b53
AO
2592rm -f $CONFIG_STATUS
2593cat > $CONFIG_STATUS <<EOF
bce1b489
BE
2594#! /bin/sh
2595# Generated automatically by configure.
2596# Run this file to recreate the current configuration.
03391b53
AO
2597# This directory was configured as follows,
2598# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2599#
2600# $0 $ac_configure_args
2601#
bce1b489
BE
2602# Compiler output produced by configure, useful for debugging
2603# configure, is in ./config.log if it exists.
2604
03391b53
AO
2605ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2606for ac_option
bce1b489 2607do
03391b53 2608 case "\$ac_option" in
bce1b489 2609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
03391b53
AO
2610 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2611 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2612 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2613 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2614 exit 0 ;;
2615 -help | --help | --hel | --he | --h)
2616 echo "\$ac_cs_usage"; exit 0 ;;
2617 *) echo "\$ac_cs_usage"; exit 1 ;;
bce1b489
BE
2618 esac
2619done
2620
03391b53
AO
2621ac_given_srcdir=$srcdir
2622ac_given_INSTALL="$INSTALL"
162f5967 2623
03391b53 2624trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
162f5967 2625EOF
03391b53 2626cat >> $CONFIG_STATUS <<EOF
162f5967 2627
03391b53
AO
2628# Protect against being on the right side of a sed subst in config.status.
2629sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2630 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2631$ac_vpsub
2632$extrasub
2633s%@SHELL@%$SHELL%g
2634s%@CFLAGS@%$CFLAGS%g
2635s%@CPPFLAGS@%$CPPFLAGS%g
2636s%@CXXFLAGS@%$CXXFLAGS%g
2637s%@FFLAGS@%$FFLAGS%g
2638s%@DEFS@%$DEFS%g
2639s%@LDFLAGS@%$LDFLAGS%g
2640s%@LIBS@%$LIBS%g
2641s%@exec_prefix@%$exec_prefix%g
2642s%@prefix@%$prefix%g
2643s%@program_transform_name@%$program_transform_name%g
2644s%@bindir@%$bindir%g
2645s%@sbindir@%$sbindir%g
2646s%@libexecdir@%$libexecdir%g
2647s%@datadir@%$datadir%g
2648s%@sysconfdir@%$sysconfdir%g
2649s%@sharedstatedir@%$sharedstatedir%g
2650s%@localstatedir@%$localstatedir%g
2651s%@libdir@%$libdir%g
2652s%@includedir@%$includedir%g
2653s%@oldincludedir@%$oldincludedir%g
2654s%@infodir@%$infodir%g
2655s%@mandir@%$mandir%g
2656s%@CC@%$CC%g
2657s%@AR@%$AR%g
2658s%@RANLIB@%$RANLIB%g
2659s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2660s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2661s%@INSTALL_DATA@%$INSTALL_DATA%g
7c6b0e92 2662s%@EXEEXT@%$EXEEXT%g
03391b53
AO
2663s%@CPP@%$CPP%g
2664s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%g
2665s%@host@%$host%g
2666s%@host_alias@%$host_alias%g
2667s%@host_cpu@%$host_cpu%g
2668s%@host_vendor@%$host_vendor%g
2669s%@host_os@%$host_os%g
2670s%@build@%$build%g
2671s%@build_alias@%$build_alias%g
2672s%@build_cpu@%$build_cpu%g
2673s%@build_vendor@%$build_vendor%g
2674s%@build_os@%$build_os%g
2675s%@LN_S@%$LN_S%g
2676s%@OBJEXT@%$OBJEXT%g
03391b53
AO
2677s%@STRIP@%$STRIP%g
2678s%@DLLTOOL@%$DLLTOOL%g
2679s%@AS@%$AS%g
2680s%@OBJDUMP@%$OBJDUMP%g
2681s%@LIBTOOL@%$LIBTOOL%g
2682s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
bce1b489
BE
2683
2684CEOF
2685EOF
2686
03391b53
AO
2687cat >> $CONFIG_STATUS <<\EOF
2688
2689# Split the substitutions into bite-sized pieces for seds with
2690# small command number limits, like on Digital OSF/1 and HP-UX.
2691ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2692ac_file=1 # Number of current file.
2693ac_beg=1 # First line for current file.
2694ac_end=$ac_max_sed_cmds # Line after last line for current file.
2695ac_more_lines=:
2696ac_sed_cmds=""
2697while $ac_more_lines; do
2698 if test $ac_beg -gt 1; then
2699 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2700 else
2701 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2702 fi
2703 if test ! -s conftest.s$ac_file; then
2704 ac_more_lines=false
2705 rm -f conftest.s$ac_file
2706 else
2707 if test -z "$ac_sed_cmds"; then
2708 ac_sed_cmds="sed -f conftest.s$ac_file"
bce1b489 2709 else
03391b53 2710 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
bce1b489 2711 fi
03391b53
AO
2712 ac_file=`expr $ac_file + 1`
2713 ac_beg=$ac_end
2714 ac_end=`expr $ac_end + $ac_max_sed_cmds`
bce1b489 2715 fi
03391b53
AO
2716done
2717if test -z "$ac_sed_cmds"; then
2718 ac_sed_cmds=cat
2719fi
2720EOF
bce1b489 2721
03391b53
AO
2722cat >> $CONFIG_STATUS <<EOF
2723
2724CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
bce1b489 2725EOF
03391b53
AO
2726cat >> $CONFIG_STATUS <<\EOF
2727for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
bce1b489
BE
2728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2729 case "$ac_file" in
03391b53
AO
2730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2732 *) ac_file_in="${ac_file}.in" ;;
bce1b489
BE
2733 esac
2734
2735 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2736
2737 # Remove last slash and all that follows it. Not all systems have dirname.
03391b53 2738 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
bce1b489
BE
2739 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2740 # The file is in a subdirectory.
2741 test ! -d "$ac_dir" && mkdir "$ac_dir"
2742 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2743 # A "../" for each directory in $ac_dir_suffix.
03391b53 2744 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
bce1b489
BE
2745 else
2746 ac_dir_suffix= ac_dots=
2747 fi
2748
2749 case "$ac_given_srcdir" in
2750 .) srcdir=.
2751 if test -z "$ac_dots"; then top_srcdir=.
03391b53
AO
2752 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2753 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
bce1b489 2754 *) # Relative path.
03391b53
AO
2755 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2756 top_srcdir="$ac_dots$ac_given_srcdir" ;;
bce1b489
BE
2757 esac
2758
2759 case "$ac_given_INSTALL" in
03391b53
AO
2760 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2761 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
bce1b489
BE
2762 esac
2763
2764 echo creating "$ac_file"
2765 rm -f "$ac_file"
03391b53
AO
2766 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2767 case "$ac_file" in
2768 *Makefile*) ac_comsub="1i\\
2769# $configure_input" ;;
2770 *) ac_comsub= ;;
2771 esac
bce1b489 2772
03391b53
AO
2773 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2774 sed -e "$ac_comsub
2775s%@configure_input@%$configure_input%g
2776s%@srcdir@%$srcdir%g
2777s%@top_srcdir@%$top_srcdir%g
2778s%@INSTALL@%$INSTALL%g
2779" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2780fi; done
2781rm -f conftest.s*
bce1b489 2782
d972a4c2
OP
2783# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2784# NAME is the cpp macro being defined and VALUE is the value it is being given.
2785#
2786# ac_d sets the value in "#define NAME VALUE" lines.
2787ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
03391b53
AO
2788ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2789ac_dC='\3'
2790ac_dD='%g'
2791# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
d972a4c2 2792ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
03391b53 2793ac_uB='\([ ]\)%\1#\2define\3'
d972a4c2 2794ac_uC=' '
03391b53
AO
2795ac_uD='\4%g'
2796# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2797ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2798ac_eB='$%\1#\2define\3'
2799ac_eC=' '
2800ac_eD='%g'
2801
2802if test "${CONFIG_HEADERS+set}" != set; then
2803EOF
2804cat >> $CONFIG_STATUS <<EOF
2805 CONFIG_HEADERS="config.h"
2806EOF
2807cat >> $CONFIG_STATUS <<\EOF
2808fi
2809for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
d972a4c2
OP
2810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2811 case "$ac_file" in
03391b53
AO
2812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2814 *) ac_file_in="${ac_file}.in" ;;
d972a4c2
OP
2815 esac
2816
2817 echo creating $ac_file
2818
03391b53
AO
2819 rm -f conftest.frag conftest.in conftest.out
2820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2821 cat $ac_file_inputs > conftest.in
d972a4c2
OP
2822
2823EOF
2824
03391b53
AO
2825# Transform confdefs.h into a sed script conftest.vals that substitutes
2826# the proper values into config.h.in to produce config.h. And first:
2827# Protect against being on the right side of a sed subst in config.status.
2828# Protect against being in an unquoted here document in config.status.
2829rm -f conftest.vals
2830cat > conftest.hdr <<\EOF
d972a4c2
OP
2831s/[\\&%]/\\&/g
2832s%[\\$`]%\\&%g
03391b53
AO
2833s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2834s%ac_d%ac_u%gp
2835s%ac_u%ac_e%gp
d972a4c2 2836EOF
03391b53
AO
2837sed -n -f conftest.hdr confdefs.h > conftest.vals
2838rm -f conftest.hdr
d972a4c2
OP
2839
2840# This sed command replaces #undef with comments. This is necessary, for
2841# example, in the case of _POSIX_SOURCE, which is predefined and required
2842# on some systems where configure will not decide to define it.
03391b53 2843cat >> conftest.vals <<\EOF
d972a4c2
OP
2844s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2845EOF
2846
03391b53
AO
2847# Break up conftest.vals because some shells have a limit on
2848# the size of here documents, and old seds have small limits too.
d972a4c2
OP
2849
2850rm -f conftest.tail
03391b53 2851while :
d972a4c2 2852do
03391b53
AO
2853 ac_lines=`grep -c . conftest.vals`
2854 # grep -c gives empty output for an empty file on some AIX systems.
2855 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2856 # Write a limited-size here document to conftest.frag.
2857 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2858 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
d972a4c2 2859 echo 'CEOF
03391b53
AO
2860 sed -f conftest.frag conftest.in > conftest.out
2861 rm -f conftest.in
2862 mv conftest.out conftest.in
2863' >> $CONFIG_STATUS
2864 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2865 rm -f conftest.vals
2866 mv conftest.tail conftest.vals
d972a4c2 2867done
03391b53
AO
2868rm -f conftest.vals
2869
2870cat >> $CONFIG_STATUS <<\EOF
2871 rm -f conftest.frag conftest.h
2872 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2873 cat conftest.in >> conftest.h
2874 rm -f conftest.in
2875 if cmp -s $ac_file conftest.h 2>/dev/null; then
d972a4c2 2876 echo "$ac_file is unchanged"
03391b53 2877 rm -f conftest.h
d972a4c2
OP
2878 else
2879 # Remove last slash and all that follows it. Not all systems have dirname.
03391b53
AO
2880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
d972a4c2
OP
2882 # The file is in a subdirectory.
2883 test ! -d "$ac_dir" && mkdir "$ac_dir"
2884 fi
2885 rm -f $ac_file
03391b53 2886 mv conftest.h $ac_file
d972a4c2 2887 fi
03391b53 2888fi; done
bce1b489 2889
03391b53
AO
2890EOF
2891cat >> $CONFIG_STATUS <<EOF
2892srcdir=${srcdir}
2893host=${host}
2894target=${target}
2895with_target_subdir=${with_target_subdir}
2896with_multisubdir=${with_multisubdir}
2897ac_configure_args="--enable-multilib ${ac_configure_args}"
2898CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2899topsrcdir=${topsrcdir}
162f5967 2900
03391b53
AO
2901EOF
2902cat >> $CONFIG_STATUS <<\EOF
2903test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
bce1b489
BE
2904if test -n "$CONFIG_FILES"; then
2905 if test -n "${with_target_subdir}"; then
2906 # FIXME: We shouldn't need to set ac_file
2907 ac_file=Makefile
2908 . ${topsrcdir}/config-ml.in
2909 fi
03391b53 2910fi
bce1b489
BE
2911exit 0
2912EOF
2913chmod +x $CONFIG_STATUS
2914rm -fr confdefs* $ac_clean_files
03391b53 2915test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
bce1b489
BE
2916
2917