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