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