source: trunk/src/gcc/libobjc/configure@ 1185

Last change on this file since 1185 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

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