Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
[gcc.git] / gcc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-ld arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19 --with-gnu-as arrange to work with GNU as."
20 ac_help="$ac_help
21 --with-as arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23 --with-stabs arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25 --with-elf arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27 --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29 --enable-libstdcxx-v3
30 enable libstdc++-v3 for building and installation"
31 ac_help="$ac_help
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
34 ac_help="$ac_help
35 --enable-checking[=LIST]
36 enable expensive run-time checks. With LIST,
37 enable only specific categories of checks.
38 Categories are: misc,tree,rtl,gc,gcac; default
39 is misc,tree,gc"
40 ac_help="$ac_help
41 --disable-cpp don't provide a user-visible C preprocessor."
42 ac_help="$ac_help
43 --with-cpp-install-dir=DIR
44 install the user visible C preprocessor in DIR
45 (relative to PREFIX) as well as PREFIX/bin."
46 ac_help="$ac_help
47 --enable-c-mbchar Enable multibyte characters for C and C++."
48 ac_help="$ac_help
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
51 ac_help="$ac_help
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
54 ac_help="$ac_help
55 --with-dwarf2 force the default debug format to be DWARF2."
56 ac_help="$ac_help
57 --disable-shared don't provide a shared libgcc."
58 ac_help="$ac_help
59 --enable-nls use Native Language Support (default)"
60 ac_help="$ac_help
61 --disable-nls do not use Native Language Support"
62 ac_help="$ac_help
63 --with-included-gettext use the GNU gettext library included here"
64 ac_help="$ac_help
65 --with-catgets use catgets functions if available"
66 ac_help="$ac_help
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
73 of the registry key."
74 ac_help="$ac_help
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 with the compiler."
77 ac_help="$ac_help
78 --with-system-zlib use installed libz"
79 ac_help="$ac_help
80 --enable-new-gxx-abi
81 select the new abi for g++. You must select an ABI
82 at configuration time, so that the correct runtime
83 support is built. You cannot mix ABIs."
84 ac_help="$ac_help
85 --enable-maintainer-mode enable make rules and dependencies not useful
86 (and sometimes confusing) to the casual installer"
87
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
121
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
128
129 ac_prev=
130 for ac_option
131 do
132
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
138 fi
139
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
144
145 # Accept the important Cygnus configure options, so we can diagnose typos.
146
147 case "$ac_option" in
148
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
153
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
158
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
165
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
171
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 fi
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
180
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 fi
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
193
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
202
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
206
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
243 EOF
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
256 EOF
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
259 fi
260 exit 0 ;;
261
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
266
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
273
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
278
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
283
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
290
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
299
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
304
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
308
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
312
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
316
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
325
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
330
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
337
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
344
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
361
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
365
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
371
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
382
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
387
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
392
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
399
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
404
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
407
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
411
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 fi
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
424
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 fi
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
433
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
437
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
444
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
451
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 ;;
454
455 *)
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 fi
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 fi
462 nonopt="$ac_option"
463 ;;
464
465 esac
466 done
467
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 fi
471
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
486 fi
487 exec 5>./config.log
488
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
493
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
498 do
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
509
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
524
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=tree.c
528
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
539 fi
540 else
541 ac_srcdir_defaulted=no
542 fi
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 fi
549 fi
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 fi
559 fi
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
564 fi
565 done
566
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
573 fi
574
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
581
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
591 fi
592 else
593 ac_n= ac_c='\c' ac_t=
594 fi
595
596
597
598
599 remove=rm
600 hard_link=ln
601 symbolic_link='ln -s'
602 copy=cp
603
604 # Check for bogus environment variables.
605 # Test if LIBRARY_PATH contains the notation for the current directory
606 # since this would lead to problems installing/building glibc.
607 # LIBRARY_PATH contains the current directory if one of the following
608 # is true:
609 # - one of the terminals (":" and ";") is the first or last sign
610 # - two terminals occur directly after each other
611 # - the path contains an element with a dot in it
612 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
613 echo "configure:614: checking LIBRARY_PATH variable" >&5
614 case ${LIBRARY_PATH} in
615 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
616 library_path_setting="contains current directory"
617 ;;
618 *)
619 library_path_setting="ok"
620 ;;
621 esac
622 echo "$ac_t""$library_path_setting" 1>&6
623 if test "$library_path_setting" != "ok"; then
624 { echo "configure: error:
625 *** LIBRARY_PATH shouldn't contain the current directory when
626 *** building gcc. Please change the environment variable
627 *** and run configure again." 1>&2; exit 1; }
628 fi
629
630 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
631 # since this would lead to problems installing/building glibc.
632 # GCC_EXEC_PREFIX contains the current directory if one of the following
633 # is true:
634 # - one of the terminals (":" and ";") is the first or last sign
635 # - two terminals occur directly after each other
636 # - the path contains an element with a dot in it
637 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
638 echo "configure:639: checking GCC_EXEC_PREFIX variable" >&5
639 case ${GCC_EXEC_PREFIX} in
640 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
641 gcc_exec_prefix_setting="contains current directory"
642 ;;
643 *)
644 gcc_exec_prefix_setting="ok"
645 ;;
646 esac
647 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
648 if test "$gcc_exec_prefix_setting" != "ok"; then
649 { echo "configure: error:
650 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
651 *** building gcc. Please change the environment variable
652 *** and run configure again." 1>&2; exit 1; }
653 fi
654
655 # Check for additional parameters
656
657 # With GNU ld
658 # Check whether --with-gnu-ld or --without-gnu-ld was given.
659 if test "${with_gnu_ld+set}" = set; then
660 withval="$with_gnu_ld"
661 gnu_ld_flag="$with_gnu_ld"
662 else
663 gnu_ld_flag=no
664 fi
665
666
667 # With pre-defined ld
668 # Check whether --with-ld or --without-ld was given.
669 if test "${with_ld+set}" = set; then
670 withval="$with_ld"
671 DEFAULT_LINKER="$with_ld"
672 fi
673
674 if test x"${DEFAULT_LINKER+set}" = x"set"; then
675 if test ! -x "$DEFAULT_LINKER"; then
676 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
677 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
678 gnu_ld_flag=yes
679 fi
680 cat >> confdefs.h <<EOF
681 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 EOF
683
684 fi
685
686 # With GNU as
687 # Check whether --with-gnu-as or --without-gnu-as was given.
688 if test "${with_gnu_as+set}" = set; then
689 withval="$with_gnu_as"
690 gas_flag="$with_gnu_as"
691 else
692 gas_flag=no
693 fi
694
695
696 # Check whether --with-as or --without-as was given.
697 if test "${with_as+set}" = set; then
698 withval="$with_as"
699 DEFAULT_ASSEMBLER="$with_as"
700 fi
701
702 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
703 if test ! -x "$DEFAULT_ASSEMBLER"; then
704 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
705 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
706 gas_flag=yes
707 fi
708 cat >> confdefs.h <<EOF
709 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 EOF
711
712 fi
713
714 # With stabs
715 # Check whether --with-stabs or --without-stabs was given.
716 if test "${with_stabs+set}" = set; then
717 withval="$with_stabs"
718 stabs="$with_stabs"
719 else
720 stabs=no
721 fi
722
723
724 # With ELF
725 # Check whether --with-elf or --without-elf was given.
726 if test "${with_elf+set}" = set; then
727 withval="$with_elf"
728 elf="$with_elf"
729 else
730 elf=no
731 fi
732
733
734 # Specify the local prefix
735 local_prefix=
736 # Check whether --with-local-prefix or --without-local-prefix was given.
737 if test "${with_local_prefix+set}" = set; then
738 withval="$with_local_prefix"
739 case "${withval}" in
740 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
741 no) ;;
742 *) local_prefix=$with_local_prefix ;;
743 esac
744 fi
745
746
747 # Default local prefix if it is empty
748 if test x$local_prefix = x; then
749 local_prefix=/usr/local
750 fi
751
752 # Build a new-libstdc++ system (ie libstdc++-v3)
753 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
754 echo "configure:755: checking for libstdc++ to install" >&5
755 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
756 if test "${enable_libstdcxx_v3+set}" = set; then
757 enableval="$enable_libstdcxx_v3"
758 enable_libstdcxx_v3="$enableval"
759 else
760 enable_libstdcxx_v3=yes
761 fi
762
763
764 if test x$enable_libstdcxx_v3 = xyes; then
765 echo "$ac_t""v3" 1>&6
766 HAVE_LIBSTDCXX_V3=1
767 ac_esn=1
768 else
769 echo "$ac_t""v2" 1>&6
770 HAVE_LIBSTDCXX_V3=0
771 ac_esn=0
772 fi
773
774 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
775 # passed in by the toplevel make and thus we'd get different behavior
776 # depending on where we built the sources.
777 gcc_gxx_include_dir=
778 # Specify the g++ header file directory
779 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
780 if test "${with_gxx_include_dir+set}" = set; then
781 withval="$with_gxx_include_dir"
782 case "${withval}" in
783 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
784 no) ;;
785 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
786 esac
787 fi
788
789
790 if test x${gcc_gxx_include_dir} = x; then
791 if test x${enable_version_specific_runtime_libs} = xyes; then
792 gcc_gxx_include_dir='${libsubdir}/include/g++'
793 else
794 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
795 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
796 fi
797 fi
798
799 # Enable expensive internal checks
800 # Check whether --enable-checking or --disable-checking was given.
801 if test "${enable_checking+set}" = set; then
802 enableval="$enable_checking"
803 ac_checking=
804 ac_tree_checking=
805 ac_rtl_checking=
806 ac_gc_checking=
807 ac_gc_always_collect=
808 case "${enableval}" in
809 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
810 no) ;;
811 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
812 set fnord $enableval; shift
813 IFS="$ac_save_IFS"
814 for check
815 do
816 case $check in
817 misc) ac_checking=1 ;;
818 tree) ac_tree_checking=1 ;;
819 rtl) ac_rtl_checking=1 ;;
820 gc) ac_gc_checking=1 ;;
821 gcac) ac_gc_always_collect=1 ;;
822 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
823 esac
824 done
825 ;;
826 esac
827
828 else
829 # Enable some checks by default for development versions of GCC
830 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
831 fi
832
833 if test x$ac_checking != x ; then
834 cat >> confdefs.h <<\EOF
835 #define ENABLE_CHECKING 1
836 EOF
837
838 fi
839 if test x$ac_tree_checking != x ; then
840 cat >> confdefs.h <<\EOF
841 #define ENABLE_TREE_CHECKING 1
842 EOF
843
844 fi
845 if test x$ac_rtl_checking != x ; then
846 cat >> confdefs.h <<\EOF
847 #define ENABLE_RTL_CHECKING 1
848 EOF
849
850 fi
851 if test x$ac_gc_checking != x ; then
852 cat >> confdefs.h <<\EOF
853 #define ENABLE_GC_CHECKING 1
854 EOF
855
856 fi
857 if test x$ac_gc_always_collect != x ; then
858 cat >> confdefs.h <<\EOF
859 #define ENABLE_GC_ALWAYS_COLLECT 1
860 EOF
861
862 fi
863
864
865 # Check whether --enable-cpp or --disable-cpp was given.
866 if test "${enable_cpp+set}" = set; then
867 enableval="$enable_cpp"
868 :
869 else
870 enable_cpp=yes
871 fi
872
873
874 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
875 if test "${with_cpp_install_dir+set}" = set; then
876 withval="$with_cpp_install_dir"
877 if test x$withval = xyes; then
878 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
879 elif test x$withval != xno; then
880 cpp_install_dir=$withval
881 fi
882 fi
883
884
885 # Enable Multibyte Characters for C/C++
886 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
887 if test "${enable_c_mbchar+set}" = set; then
888 enableval="$enable_c_mbchar"
889 if test x$enable_c_mbchar != xno; then
890 cat >> confdefs.h <<\EOF
891 #define MULTIBYTE_CHARS 1
892 EOF
893
894 fi
895 fi
896
897
898 # Enable threads
899 # Pass with no value to take the default
900 # Pass with a value to specify a thread package
901 # Check whether --enable-threads or --disable-threads was given.
902 if test "${enable_threads+set}" = set; then
903 enableval="$enable_threads"
904 :
905 else
906 enable_threads=''
907 fi
908
909
910 enable_threads_flag=$enable_threads
911 # Check if a valid thread package
912 case x${enable_threads_flag} in
913 x | xno)
914 # No threads
915 target_thread_file='single'
916 ;;
917 xyes)
918 # default
919 target_thread_file=''
920 ;;
921 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
922 xsolaris | xwin32 | xdce | xvxworks | xaix)
923 target_thread_file=$enable_threads_flag
924 ;;
925 *)
926 echo "$enable_threads is an unknown thread package" 1>&2
927 exit 1
928 ;;
929 esac
930
931 # Check whether --enable-objc-gc or --disable-objc-gc was given.
932 if test "${enable_objc_gc+set}" = set; then
933 enableval="$enable_objc_gc"
934 if test x$enable_objc_gc = xno; then
935 objc_boehm_gc=''
936 else
937 objc_boehm_gc=1
938 fi
939 else
940 objc_boehm_gc=''
941 fi
942
943
944 # Check whether --with-dwarf2 or --without-dwarf2 was given.
945 if test "${with_dwarf2+set}" = set; then
946 withval="$with_dwarf2"
947 dwarf2="$with_dwarf2"
948 else
949 dwarf2=no
950 fi
951
952
953 # Check whether --enable-shared or --disable-shared was given.
954 if test "${enable_shared+set}" = set; then
955 enableval="$enable_shared"
956 :
957 else
958 enable_shared=yes
959 fi
960
961
962
963 # Determine the host, build, and target systems
964 ac_aux_dir=
965 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
966 if test -f $ac_dir/install-sh; then
967 ac_aux_dir=$ac_dir
968 ac_install_sh="$ac_aux_dir/install-sh -c"
969 break
970 elif test -f $ac_dir/install.sh; then
971 ac_aux_dir=$ac_dir
972 ac_install_sh="$ac_aux_dir/install.sh -c"
973 break
974 fi
975 done
976 if test -z "$ac_aux_dir"; then
977 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
978 fi
979 ac_config_guess=$ac_aux_dir/config.guess
980 ac_config_sub=$ac_aux_dir/config.sub
981 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
982
983
984 # Do some error checking and defaulting for the host and target type.
985 # The inputs are:
986 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
987 #
988 # The rules are:
989 # 1. You are not allowed to specify --host, --target, and nonopt at the
990 # same time.
991 # 2. Host defaults to nonopt.
992 # 3. If nonopt is not specified, then host defaults to the current host,
993 # as determined by config.guess.
994 # 4. Target and build default to nonopt.
995 # 5. If nonopt is not specified, then target and build default to host.
996
997 # The aliases save the names the user supplied, while $host etc.
998 # will get canonicalized.
999 case $host---$target---$nonopt in
1000 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1001 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1002 esac
1003
1004
1005 # Make sure we can run config.sub.
1006 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1007 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1008 fi
1009
1010 echo $ac_n "checking host system type""... $ac_c" 1>&6
1011 echo "configure:1012: checking host system type" >&5
1012
1013 host_alias=$host
1014 case "$host_alias" in
1015 NONE)
1016 case $nonopt in
1017 NONE)
1018 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1019 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1020 fi ;;
1021 *) host_alias=$nonopt ;;
1022 esac ;;
1023 esac
1024
1025 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1026 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$host" 1>&6
1030
1031 echo $ac_n "checking target system type""... $ac_c" 1>&6
1032 echo "configure:1033: checking target system type" >&5
1033
1034 target_alias=$target
1035 case "$target_alias" in
1036 NONE)
1037 case $nonopt in
1038 NONE) target_alias=$host_alias ;;
1039 *) target_alias=$nonopt ;;
1040 esac ;;
1041 esac
1042
1043 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1044 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$target" 1>&6
1048
1049 echo $ac_n "checking build system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking build system type" >&5
1051
1052 build_alias=$build
1053 case "$build_alias" in
1054 NONE)
1055 case $nonopt in
1056 NONE) build_alias=$host_alias ;;
1057 *) build_alias=$nonopt ;;
1058 esac ;;
1059 esac
1060
1061 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1062 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$build" 1>&6
1066
1067 test "$host_alias" != "$target_alias" &&
1068 test "$program_prefix$program_suffix$program_transform_name" = \
1069 NONENONEs,x,x, &&
1070 program_prefix=${target_alias}-
1071
1072
1073 # Find the native compiler
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081 if test -n "$CC"; then
1082 ac_cv_prog_CC="$CC" # Let the user override the test.
1083 else
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; 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; then
1089 ac_cv_prog_CC="gcc"
1090 break
1091 fi
1092 done
1093 IFS="$ac_save_ifs"
1094 fi
1095 fi
1096 CC="$ac_cv_prog_CC"
1097 if test -n "$CC"; then
1098 echo "$ac_t""$CC" 1>&6
1099 else
1100 echo "$ac_t""no" 1>&6
1101 fi
1102
1103 if test -z "$CC"; then
1104 # Extract the first word of "cc", so it can be a program name with args.
1105 set dummy cc; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 else
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 ac_prog_rejected=no
1116 ac_dummy="$PATH"
1117 for ac_dir in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir=.
1119 if test -f $ac_dir/$ac_word; then
1120 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1121 ac_prog_rejected=yes
1122 continue
1123 fi
1124 ac_cv_prog_CC="cc"
1125 break
1126 fi
1127 done
1128 IFS="$ac_save_ifs"
1129 if test $ac_prog_rejected = yes; then
1130 # We found a bogon in the path, so make sure we never use it.
1131 set dummy $ac_cv_prog_CC
1132 shift
1133 if test $# -gt 0; then
1134 # We chose a different compiler from the bogus one.
1135 # However, it has the same basename, so the bogon will be chosen
1136 # first if we set CC to just the basename; use the full file name.
1137 shift
1138 set dummy "$ac_dir/$ac_word" "$@"
1139 shift
1140 ac_cv_prog_CC="$@"
1141 fi
1142 fi
1143 fi
1144 fi
1145 CC="$ac_cv_prog_CC"
1146 if test -n "$CC"; then
1147 echo "$ac_t""$CC" 1>&6
1148 else
1149 echo "$ac_t""no" 1>&6
1150 fi
1151
1152 if test -z "$CC"; then
1153 case "`uname -s`" in
1154 *win32* | *WIN32*)
1155 # Extract the first word of "cl", so it can be a program name with args.
1156 set dummy cl; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1161 else
1162 if test -n "$CC"; then
1163 ac_cv_prog_CC="$CC" # Let the user override the test.
1164 else
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 ac_dummy="$PATH"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_CC="cl"
1171 break
1172 fi
1173 done
1174 IFS="$ac_save_ifs"
1175 fi
1176 fi
1177 CC="$ac_cv_prog_CC"
1178 if test -n "$CC"; then
1179 echo "$ac_t""$CC" 1>&6
1180 else
1181 echo "$ac_t""no" 1>&6
1182 fi
1183 ;;
1184 esac
1185 fi
1186 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1187 fi
1188
1189 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1191
1192 ac_ext=c
1193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1194 ac_cpp='$CPP $CPPFLAGS'
1195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1197 cross_compiling=$ac_cv_prog_cc_cross
1198
1199 cat > conftest.$ac_ext << EOF
1200
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1203
1204 main(){return(0);}
1205 EOF
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207 ac_cv_prog_cc_works=yes
1208 # If we can't run a trivial program, we are probably using a cross compiler.
1209 if (./conftest; exit) 2>/dev/null; then
1210 ac_cv_prog_cc_cross=no
1211 else
1212 ac_cv_prog_cc_cross=yes
1213 fi
1214 else
1215 echo "configure: failed program was:" >&5
1216 cat conftest.$ac_ext >&5
1217 ac_cv_prog_cc_works=no
1218 fi
1219 rm -fr conftest*
1220 ac_ext=c
1221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1222 ac_cpp='$CPP $CPPFLAGS'
1223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1225 cross_compiling=$ac_cv_prog_cc_cross
1226
1227 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1228 if test $ac_cv_prog_cc_works = no; then
1229 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1230 fi
1231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1233 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1234 cross_compiling=$ac_cv_prog_cc_cross
1235
1236 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether we are using GNU C" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241 cat > conftest.c <<EOF
1242 #ifdef __GNUC__
1243 yes;
1244 #endif
1245 EOF
1246 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 ac_cv_prog_gcc=yes
1248 else
1249 ac_cv_prog_gcc=no
1250 fi
1251 fi
1252
1253 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1254
1255 if test $ac_cv_prog_gcc = yes; then
1256 GCC=yes
1257 else
1258 GCC=
1259 fi
1260
1261 ac_test_CFLAGS="${CFLAGS+set}"
1262 ac_save_CFLAGS="$CFLAGS"
1263 CFLAGS=
1264 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ${CC-cc} accepts -g" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 echo 'void f(){}' > conftest.c
1270 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1271 ac_cv_prog_cc_g=yes
1272 else
1273 ac_cv_prog_cc_g=no
1274 fi
1275 rm -f conftest*
1276
1277 fi
1278
1279 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1280 if test "$ac_test_CFLAGS" = set; then
1281 CFLAGS="$ac_save_CFLAGS"
1282 elif test $ac_cv_prog_cc_g = yes; then
1283 if test "$GCC" = yes; then
1284 CFLAGS="-g -O2"
1285 else
1286 CFLAGS="-g"
1287 fi
1288 else
1289 if test "$GCC" = yes; then
1290 CFLAGS="-O2"
1291 else
1292 CFLAGS=
1293 fi
1294 fi
1295
1296 if test "x$CC" != xcc; then
1297 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether $CC and cc understand -c and -o together" >&5
1299 else
1300 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether cc understands -c and -o together" >&5
1302 fi
1303 set dummy $CC; ac_cc="`echo $2 |
1304 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1305 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 echo 'foo(){}' > conftest.c
1309 # Make sure it works both with $CC and with simple cc.
1310 # We do the test twice because some compilers refuse to overwrite an
1311 # existing .o file with -o, though they will create one.
1312 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1313 if { (eval echo configure:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1314 test -f conftest.o && { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1315 then
1316 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1317 if test "x$CC" != xcc; then
1318 # Test first that cc exists at all.
1319 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1320 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1321 if { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1322 test -f conftest.o && { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1323 then
1324 # cc works too.
1325 :
1326 else
1327 # cc exists but doesn't like -o.
1328 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1329 fi
1330 fi
1331 fi
1332 else
1333 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1334 fi
1335 rm -f conftest*
1336
1337 fi
1338 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1339 echo "$ac_t""yes" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1342 cat >> confdefs.h <<\EOF
1343 #define NO_MINUS_C_MINUS_O 1
1344 EOF
1345
1346 fi
1347
1348 # autoconf is lame and doesn't give us any substitution variable for this.
1349 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1350 NO_MINUS_C_MINUS_O=yes
1351 else
1352 OUTPUT_OPTION='-o $@'
1353 fi
1354
1355
1356
1357 echo $ac_n "checking for long double""... $ac_c" 1>&6
1358 echo "configure:1359: checking for long double" >&5
1359 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 if test "$GCC" = yes; then
1363 gcc_cv_c_long_double=yes
1364 else
1365 cat > conftest.$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1368
1369 int main() {
1370 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1371 long double foo = 0.0;
1372 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1373 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1374 ; return 0; }
1375 EOF
1376 if { (eval echo configure:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1377 rm -rf conftest*
1378 gcc_cv_c_long_double=yes
1379 else
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383 gcc_cv_c_long_double=no
1384 fi
1385 rm -f conftest*
1386 fi
1387 fi
1388
1389 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1390 if test $gcc_cv_c_long_double = yes; then
1391 cat >> confdefs.h <<\EOF
1392 #define HAVE_LONG_DOUBLE 1
1393 EOF
1394
1395 fi
1396
1397
1398 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 save_CFLAGS="$CFLAGS"
1404 CFLAGS="-Wno-long-long"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408
1409 int main() {
1410
1411 ; return 0; }
1412 EOF
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1414 rm -rf conftest*
1415 ac_cv_prog_cc_no_long_long=yes
1416 else
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 rm -rf conftest*
1420 ac_cv_prog_cc_no_long_long=no
1421 fi
1422 rm -f conftest*
1423 CFLAGS="$save_CFLAGS"
1424 fi
1425
1426 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1427 strict1_warn=
1428 if test $ac_cv_prog_cc_no_long_long = yes; then
1429 strict1_warn="-pedantic -Wno-long-long"
1430 fi
1431
1432
1433 # If the native compiler is GCC, we can enable warnings even in stage1.
1434 # That's useful for people building cross-compilers, or just running a
1435 # quick `make'.
1436 warn_cflags=
1437 if test "x$GCC" = "xyes"; then
1438 warn_cflags='$(GCC_WARN_CFLAGS)'
1439 fi
1440
1441
1442 # Stage specific cflags for build.
1443 stage1_cflags=
1444 case $build in
1445 vax-*-*)
1446 if test x$GCC = xyes
1447 then
1448 stage1_cflags="-Wa,-J"
1449 else
1450 stage1_cflags="-J"
1451 fi
1452 ;;
1453 esac
1454
1455
1456 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether ${MAKE-make} sets \${MAKE}" >&5
1458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1459 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 cat > conftestmake <<\EOF
1463 all:
1464 @echo 'ac_maketemp="${MAKE}"'
1465 EOF
1466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1467 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1468 if test -n "$ac_maketemp"; then
1469 eval ac_cv_prog_make_${ac_make}_set=yes
1470 else
1471 eval ac_cv_prog_make_${ac_make}_set=no
1472 fi
1473 rm -f conftestmake
1474 fi
1475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 SET_MAKE=
1478 else
1479 echo "$ac_t""no" 1>&6
1480 SET_MAKE="MAKE=${MAKE-make}"
1481 fi
1482
1483
1484 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether a default assembler was specified" >&5
1486 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1487 if test x"$gas_flag" = x"no"; then
1488 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1489 else
1490 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1491 fi
1492 else
1493 echo "$ac_t""no" 1>&6
1494 fi
1495
1496 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1497 echo "configure:1498: checking whether a default linker was specified" >&5
1498 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1499 if test x"$gnu_ld_flag" = x"no"; then
1500 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1501 else
1502 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1503 fi
1504 else
1505 echo "$ac_t""no" 1>&6
1506 fi
1507
1508 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1509 echo "configure:1510: checking for GNU C library" >&5
1510 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 #include <features.h>
1517 int main() {
1518
1519 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1520 #error Not a GNU C library system
1521 #endif
1522 ; return 0; }
1523 EOF
1524 if { (eval echo configure:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1525 rm -rf conftest*
1526 gcc_cv_glibc=yes
1527 else
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1530 rm -rf conftest*
1531 gcc_cv_glibc=no
1532 fi
1533 rm -f conftest*
1534 fi
1535
1536 echo "$ac_t""$gcc_cv_glibc" 1>&6
1537 if test $gcc_cv_glibc = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define _GNU_SOURCE 1
1540 EOF
1541
1542 fi
1543
1544 echo $ac_n "checking for inline""... $ac_c" 1>&6
1545 echo "configure:1546: checking for inline" >&5
1546 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549 ac_cv_c_inline=no
1550 for ac_kw in inline __inline__ __inline; do
1551 cat > conftest.$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554
1555 int main() {
1556 } int $ac_kw foo() {
1557 ; return 0; }
1558 EOF
1559 if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1560 rm -rf conftest*
1561 ac_cv_c_inline=$ac_kw; break
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 fi
1566 rm -f conftest*
1567 done
1568
1569 fi
1570
1571 echo "$ac_t""$ac_cv_c_inline" 1>&6
1572 case "$ac_cv_c_inline" in
1573 inline | yes) ;;
1574 no) cat >> confdefs.h <<\EOF
1575 #define inline
1576 EOF
1577 ;;
1578 *) cat >> confdefs.h <<EOF
1579 #define inline $ac_cv_c_inline
1580 EOF
1581 ;;
1582 esac
1583
1584
1585 # Find some useful tools
1586 for ac_prog in mawk gawk nawk awk
1587 do
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589 set dummy $ac_prog; ac_word=$2
1590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_word" >&5
1592 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595 if test -n "$AWK"; then
1596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1597 else
1598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1599 ac_dummy="$PATH"
1600 for ac_dir in $ac_dummy; do
1601 test -z "$ac_dir" && ac_dir=.
1602 if test -f $ac_dir/$ac_word; then
1603 ac_cv_prog_AWK="$ac_prog"
1604 break
1605 fi
1606 done
1607 IFS="$ac_save_ifs"
1608 fi
1609 fi
1610 AWK="$ac_cv_prog_AWK"
1611 if test -n "$AWK"; then
1612 echo "$ac_t""$AWK" 1>&6
1613 else
1614 echo "$ac_t""no" 1>&6
1615 fi
1616
1617 test -n "$AWK" && break
1618 done
1619
1620 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1621 echo "configure:1622: checking whether ln works" >&5
1622 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1624 else
1625 rm -f conftestdata_t
1626 echo >conftestdata_f
1627 if ln conftestdata_f conftestdata_t 2>/dev/null
1628 then
1629 gcc_cv_prog_LN="ln"
1630 else
1631 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1632 then
1633 gcc_cv_prog_LN="ln -s"
1634 else
1635 gcc_cv_prog_LN=cp
1636 fi
1637 fi
1638 rm -f conftestdata_f conftestdata_t
1639
1640 fi
1641 LN="$gcc_cv_prog_LN"
1642 if test "$gcc_cv_prog_LN" = "ln"; then
1643 echo "$ac_t""yes" 1>&6
1644 else
1645 if test "$gcc_cv_prog_LN" = "ln -s"; then
1646 echo "$ac_t""no, using ln -s" 1>&6
1647 else
1648 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1649 fi
1650 fi
1651
1652 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1653 echo "configure:1654: checking whether ln -s works" >&5
1654 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1656 else
1657 rm -f conftestdata_t
1658 echo >conftestdata_f
1659 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1660 then
1661 gcc_cv_prog_LN_S="ln -s"
1662 else
1663 if ln conftestdata_f conftestdata_t 2>/dev/null
1664 then
1665 gcc_cv_prog_LN_S=ln
1666 else
1667 gcc_cv_prog_LN_S=cp
1668 fi
1669 fi
1670 rm -f conftestdata_f conftestdata_t
1671
1672 fi
1673 LN_S="$gcc_cv_prog_LN_S"
1674 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1675 echo "$ac_t""yes" 1>&6
1676 else
1677 if test "$gcc_cv_prog_LN_S" = "ln"; then
1678 echo "$ac_t""no, using ln" 1>&6
1679 else
1680 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1681 fi
1682 fi
1683
1684 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1685 echo "configure:1686: checking for volatile" >&5
1686 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692
1693 int main() {
1694 volatile int foo;
1695 ; return 0; }
1696 EOF
1697 if { (eval echo configure:1698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 rm -rf conftest*
1699 gcc_cv_c_volatile=yes
1700 else
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1703 rm -rf conftest*
1704 gcc_cv_c_volatile=no
1705 fi
1706 rm -f conftest*
1707 fi
1708
1709 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1710 if test $gcc_cv_c_volatile = yes ; then
1711 cat >> confdefs.h <<\EOF
1712 #define HAVE_VOLATILE 1
1713 EOF
1714
1715 fi
1716
1717 # Extract the first word of "ranlib", so it can be a program name with args.
1718 set dummy ranlib; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1723 else
1724 if test -n "$RANLIB"; then
1725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1726 else
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1728 ac_dummy="$PATH"
1729 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 if test -f $ac_dir/$ac_word; then
1732 ac_cv_prog_RANLIB="ranlib"
1733 break
1734 fi
1735 done
1736 IFS="$ac_save_ifs"
1737 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1738 fi
1739 fi
1740 RANLIB="$ac_cv_prog_RANLIB"
1741 if test -n "$RANLIB"; then
1742 echo "$ac_t""$RANLIB" 1>&6
1743 else
1744 echo "$ac_t""no" 1>&6
1745 fi
1746
1747 # Find a good install program. We prefer a C program (faster),
1748 # so one script is as good as another. But avoid the broken or
1749 # incompatible versions:
1750 # SysV /etc/install, /usr/sbin/install
1751 # SunOS /usr/etc/install
1752 # IRIX /sbin/install
1753 # AIX /bin/install
1754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1756 # ./install, which can be erroneously created by make from ./install.sh.
1757 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1758 echo "configure:1759: checking for a BSD compatible install" >&5
1759 if test -z "$INSTALL"; then
1760 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1764 for ac_dir in $PATH; do
1765 # Account for people who put trailing slashes in PATH elements.
1766 case "$ac_dir/" in
1767 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1768 *)
1769 # OSF1 and SCO ODT 3.0 have their own names for install.
1770 for ac_prog in ginstall scoinst install; do
1771 if test -f $ac_dir/$ac_prog; then
1772 if test $ac_prog = install &&
1773 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1774 # AIX install. It has an incompatible calling convention.
1775 # OSF/1 installbsd also uses dspmsg, but is usable.
1776 :
1777 else
1778 ac_cv_path_install="$ac_dir/$ac_prog -c"
1779 break 2
1780 fi
1781 fi
1782 done
1783 ;;
1784 esac
1785 done
1786 IFS="$ac_save_IFS"
1787
1788 fi
1789 if test "${ac_cv_path_install+set}" = set; then
1790 INSTALL="$ac_cv_path_install"
1791 else
1792 # As a last resort, use the slow shell script. We don't cache a
1793 # path for INSTALL within a source directory, because that will
1794 # break other packages using the cache if that directory is
1795 # removed, or if the path is relative.
1796 INSTALL="$ac_install_sh"
1797 fi
1798 fi
1799 echo "$ac_t""$INSTALL" 1>&6
1800
1801 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1802 # It thinks the first close brace ends the variable substitution.
1803 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804
1805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1806
1807
1808 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1809 echo "configure:1810: checking how to run the C preprocessor" >&5
1810 # On Suns, sometimes $CPP names a directory.
1811 if test -n "$CPP" && test -d "$CPP"; then
1812 CPP=
1813 fi
1814 if test -z "$CPP"; then
1815 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 # This must be in double quotes, not single quotes, because CPP may get
1819 # substituted into the Makefile and "${CC-cc}" will confuse make.
1820 CPP="${CC-cc} -E"
1821 # On the NeXT, cc -E runs the code through the compiler's parser,
1822 # not just through cpp.
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <assert.h>
1827 Syntax Error
1828 EOF
1829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1830 { (eval echo configure:1831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1832 if test -z "$ac_err"; then
1833 :
1834 else
1835 echo "$ac_err" >&5
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1838 rm -rf conftest*
1839 CPP="${CC-cc} -E -traditional-cpp"
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <assert.h>
1844 Syntax Error
1845 EOF
1846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1847 { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1849 if test -z "$ac_err"; then
1850 :
1851 else
1852 echo "$ac_err" >&5
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 CPP="${CC-cc} -nologo -E"
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 #include <assert.h>
1861 Syntax Error
1862 EOF
1863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1866 if test -z "$ac_err"; then
1867 :
1868 else
1869 echo "$ac_err" >&5
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 rm -rf conftest*
1873 CPP=/lib/cpp
1874 fi
1875 rm -f conftest*
1876 fi
1877 rm -f conftest*
1878 fi
1879 rm -f conftest*
1880 ac_cv_prog_CPP="$CPP"
1881 fi
1882 CPP="$ac_cv_prog_CPP"
1883 else
1884 ac_cv_prog_CPP="$CPP"
1885 fi
1886 echo "$ac_t""$CPP" 1>&6
1887
1888 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1889 echo "configure:1890: checking for ANSI C header files" >&5
1890 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892 else
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 #include <stdlib.h>
1897 #include <stdarg.h>
1898 #include <string.h>
1899 #include <float.h>
1900 EOF
1901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1905 rm -rf conftest*
1906 ac_cv_header_stdc=yes
1907 else
1908 echo "$ac_err" >&5
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 rm -rf conftest*
1912 ac_cv_header_stdc=no
1913 fi
1914 rm -f conftest*
1915
1916 if test $ac_cv_header_stdc = yes; then
1917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1918 cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 #include <string.h>
1922 EOF
1923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924 egrep "memchr" >/dev/null 2>&1; then
1925 :
1926 else
1927 rm -rf conftest*
1928 ac_cv_header_stdc=no
1929 fi
1930 rm -f conftest*
1931
1932 fi
1933
1934 if test $ac_cv_header_stdc = yes; then
1935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 #include <stdlib.h>
1940 EOF
1941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1942 egrep "free" >/dev/null 2>&1; then
1943 :
1944 else
1945 rm -rf conftest*
1946 ac_cv_header_stdc=no
1947 fi
1948 rm -f conftest*
1949
1950 fi
1951
1952 if test $ac_cv_header_stdc = yes; then
1953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1954 if test "$cross_compiling" = yes; then
1955 :
1956 else
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 #include <ctype.h>
1961 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1962 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1964 int main () { int i; for (i = 0; i < 256; i++)
1965 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1966 exit (0); }
1967
1968 EOF
1969 if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1970 then
1971 :
1972 else
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 rm -fr conftest*
1976 ac_cv_header_stdc=no
1977 fi
1978 rm -fr conftest*
1979 fi
1980
1981 fi
1982 fi
1983
1984 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1985 if test $ac_cv_header_stdc = yes; then
1986 cat >> confdefs.h <<\EOF
1987 #define STDC_HEADERS 1
1988 EOF
1989
1990 fi
1991
1992 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether time.h and sys/time.h may both be included" >&5
1994 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 #include <sys/types.h>
2001 #include <sys/time.h>
2002 #include <time.h>
2003 int main() {
2004 struct tm *tp;
2005 ; return 0; }
2006 EOF
2007 if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 rm -rf conftest*
2009 ac_cv_header_time=yes
2010 else
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 ac_cv_header_time=no
2015 fi
2016 rm -f conftest*
2017 fi
2018
2019 echo "$ac_t""$ac_cv_header_time" 1>&6
2020 if test $ac_cv_header_time = yes; then
2021 cat >> confdefs.h <<\EOF
2022 #define TIME_WITH_SYS_TIME 1
2023 EOF
2024
2025 fi
2026
2027 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether string.h and strings.h may both be included" >&5
2029 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <string.h>
2036 #include <strings.h>
2037 int main() {
2038
2039 ; return 0; }
2040 EOF
2041 if { (eval echo configure:2042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2042 rm -rf conftest*
2043 gcc_cv_header_string=yes
2044 else
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 gcc_cv_header_string=no
2049 fi
2050 rm -f conftest*
2051 fi
2052
2053 echo "$ac_t""$gcc_cv_header_string" 1>&6
2054 if test $gcc_cv_header_string = yes; then
2055 cat >> confdefs.h <<\EOF
2056 #define STRING_WITH_STRINGS 1
2057 EOF
2058
2059 fi
2060
2061 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2062 echo "configure:2063: checking for sys/wait.h that is POSIX.1 compatible" >&5
2063 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <sys/types.h>
2070 #include <sys/wait.h>
2071 #ifndef WEXITSTATUS
2072 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2073 #endif
2074 #ifndef WIFEXITED
2075 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2076 #endif
2077 int main() {
2078 int s;
2079 wait (&s);
2080 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2081 ; return 0; }
2082 EOF
2083 if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 rm -rf conftest*
2085 ac_cv_header_sys_wait_h=yes
2086 else
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 rm -rf conftest*
2090 ac_cv_header_sys_wait_h=no
2091 fi
2092 rm -f conftest*
2093 fi
2094
2095 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2096 if test $ac_cv_header_sys_wait_h = yes; then
2097 cat >> confdefs.h <<\EOF
2098 #define HAVE_SYS_WAIT_H 1
2099 EOF
2100
2101 fi
2102
2103 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2104 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2105 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2106 direct.h malloc.h langinfo.h iconv.h
2107 do
2108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_hdr" >&5
2111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 #include <$ac_hdr>
2118 EOF
2119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2120 { (eval echo configure:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2122 if test -z "$ac_err"; then
2123 rm -rf conftest*
2124 eval "ac_cv_header_$ac_safe=yes"
2125 else
2126 echo "$ac_err" >&5
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2129 rm -rf conftest*
2130 eval "ac_cv_header_$ac_safe=no"
2131 fi
2132 rm -f conftest*
2133 fi
2134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2137 cat >> confdefs.h <<EOF
2138 #define $ac_tr_hdr 1
2139 EOF
2140
2141 else
2142 echo "$ac_t""no" 1>&6
2143 fi
2144 done
2145
2146
2147 # Check for thread headers.
2148 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2149 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2150 echo "configure:2151: checking for thread.h" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <thread.h>
2158 EOF
2159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2160 { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2162 if test -z "$ac_err"; then
2163 rm -rf conftest*
2164 eval "ac_cv_header_$ac_safe=yes"
2165 else
2166 echo "$ac_err" >&5
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2169 rm -rf conftest*
2170 eval "ac_cv_header_$ac_safe=no"
2171 fi
2172 rm -f conftest*
2173 fi
2174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 have_thread_h=yes
2177 else
2178 echo "$ac_t""no" 1>&6
2179 have_thread_h=
2180 fi
2181
2182 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2183 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2184 echo "configure:2185: checking for pthread.h" >&5
2185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 #include <pthread.h>
2192 EOF
2193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2194 { (eval echo configure:2195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2196 if test -z "$ac_err"; then
2197 rm -rf conftest*
2198 eval "ac_cv_header_$ac_safe=yes"
2199 else
2200 echo "$ac_err" >&5
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 rm -rf conftest*
2204 eval "ac_cv_header_$ac_safe=no"
2205 fi
2206 rm -f conftest*
2207 fi
2208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 have_pthread_h=yes
2211 else
2212 echo "$ac_t""no" 1>&6
2213 have_pthread_h=
2214 fi
2215
2216
2217 # See if GNAT has been installed
2218 # Extract the first word of "gnatbind", so it can be a program name with args.
2219 set dummy gnatbind; ac_word=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5
2222 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2224 else
2225 if test -n "$gnat"; then
2226 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2227 else
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/$ac_word; then
2233 ac_cv_prog_gnat="yes"
2234 break
2235 fi
2236 done
2237 IFS="$ac_save_ifs"
2238 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2239 fi
2240 fi
2241 gnat="$ac_cv_prog_gnat"
2242 if test -n "$gnat"; then
2243 echo "$ac_t""$gnat" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 # Do we have a single-tree copy of texinfo?
2250 if test -f $srcdir/../texinfo/Makefile.in; then
2251 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2252 gcc_cv_prog_makeinfo_modern=yes
2253 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2254 else
2255 # See if makeinfo has been installed and is modern enough
2256 # that we can use it.
2257 # Extract the first word of "makeinfo", so it can be a program name with args.
2258 set dummy makeinfo; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test -n "$MAKEINFO"; then
2265 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2266 else
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2268 ac_dummy="$PATH"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_MAKEINFO="makeinfo"
2273 break
2274 fi
2275 done
2276 IFS="$ac_save_ifs"
2277 fi
2278 fi
2279 MAKEINFO="$ac_cv_prog_MAKEINFO"
2280 if test -n "$MAKEINFO"; then
2281 echo "$ac_t""$MAKEINFO" 1>&6
2282 else
2283 echo "$ac_t""no" 1>&6
2284 fi
2285
2286 if test -n "$MAKEINFO"; then
2287 # Found it, now check the version.
2288 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2289 echo "configure:2290: checking for modern makeinfo" >&5
2290 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293 ac_prog_version=`$MAKEINFO --version 2>&1 |
2294 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2295 echo "configure:2296: version of makeinfo is $ac_prog_version" >&5
2296 case $ac_prog_version in
2297 '') gcc_cv_prog_makeinfo_modern=no;;
2298 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2299 gcc_cv_prog_makeinfo_modern=yes;;
2300 *) gcc_cv_prog_makeinfo_modern=no;;
2301 esac
2302
2303 fi
2304
2305 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2306 else
2307 gcc_cv_prog_makeinfo_modern=no
2308 fi
2309
2310 fi
2311
2312 if test $gcc_cv_prog_makeinfo_modern = no; then
2313 echo "configure: warning:
2314 *** Makeinfo is missing or too old.
2315 *** Info documentation will not be built or installed." 1>&2
2316 BUILD_INFO=
2317 INSTALL_INFO=
2318 else
2319 BUILD_INFO=info
2320 INSTALL_INFO=install-info
2321 fi
2322
2323 # How about lex?
2324 if test -f $srcdir/../flex/skel.c; then
2325 FLEX='$(objdir)/../flex/flex'
2326 else
2327 # Extract the first word of "flex", so it can be a program name with args.
2328 set dummy flex; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 if test -n "$FLEX"; then
2335 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2336 else
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 ac_dummy="$PATH"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_FLEX="flex"
2343 break
2344 fi
2345 done
2346 IFS="$ac_save_ifs"
2347 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2348 fi
2349 fi
2350 FLEX="$ac_cv_prog_FLEX"
2351 if test -n "$FLEX"; then
2352 echo "$ac_t""$FLEX" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2355 fi
2356
2357 fi
2358
2359 # Bison?
2360 # The -L switch is so bison can find its skeleton file.
2361 if test -f $srcdir/../bison/bison.simple; then
2362 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2363 else
2364 # Extract the first word of "bison", so it can be a program name with args.
2365 set dummy bison; ac_word=$2
2366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_word" >&5
2368 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370 else
2371 if test -n "$BISON"; then
2372 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2373 else
2374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 ac_dummy="$PATH"
2376 for ac_dir in $ac_dummy; do
2377 test -z "$ac_dir" && ac_dir=.
2378 if test -f $ac_dir/$ac_word; then
2379 ac_cv_prog_BISON="bison"
2380 break
2381 fi
2382 done
2383 IFS="$ac_save_ifs"
2384 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2385 fi
2386 fi
2387 BISON="$ac_cv_prog_BISON"
2388 if test -n "$BISON"; then
2389 echo "$ac_t""$BISON" 1>&6
2390 else
2391 echo "$ac_t""no" 1>&6
2392 fi
2393
2394 fi
2395
2396 # See if the stage1 system preprocessor understands the ANSI C
2397 # preprocessor stringification operator.
2398
2399
2400 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2401 echo "configure:2402: checking for preprocessor stringizing operator" >&5
2402 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408
2409 #define x(y) #y
2410
2411 char *s = x(teststring);
2412
2413 EOF
2414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2415 egrep "#teststring" >/dev/null 2>&1; then
2416 rm -rf conftest*
2417 ac_cv_c_stringize=no
2418 else
2419 rm -rf conftest*
2420 ac_cv_c_stringize=yes
2421 fi
2422 rm -f conftest*
2423
2424 fi
2425
2426 if test "${ac_cv_c_stringize}" = yes
2427 then
2428 cat >> confdefs.h <<\EOF
2429 #define HAVE_STRINGIZE 1
2430 EOF
2431
2432 fi
2433 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2434
2435
2436 # Use <inttypes.h> only if it exists,
2437 # doesn't clash with <sys/types.h>, and declares intmax_t.
2438 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2439 echo "configure:2440: checking for inttypes.h" >&5
2440 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <sys/types.h>
2447 #include <inttypes.h>
2448 int main() {
2449 intmax_t i = -1;
2450 ; return 0; }
2451 EOF
2452 if { (eval echo configure:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 rm -rf conftest*
2454 gcc_cv_header_inttypes_h=yes
2455 else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -rf conftest*
2459 gcc_cv_header_inttypes_h=no
2460 fi
2461 rm -f conftest*
2462 fi
2463
2464 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2465 if test $gcc_cv_header_inttypes_h = yes; then
2466 cat >> confdefs.h <<\EOF
2467 #define HAVE_INTTYPES_H 1
2468 EOF
2469
2470 fi
2471
2472 #
2473 # Determine if enumerated bitfields are unsigned. ISO C says they can
2474 # be either signed or unsigned.
2475 #
2476 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2477 echo "configure:2478: checking for unsigned enumerated bitfields" >&5
2478 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 if test "$cross_compiling" = yes; then
2482 gcc_cv_enum_bf_unsigned=yes
2483 else
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <stdlib.h>
2488 enum t { BLAH = 128 } ;
2489 struct s_t { enum t member : 8; } s ;
2490 int main(void)
2491 {
2492 s.member = BLAH;
2493 if (s.member < 0) exit(1);
2494 exit(0);
2495
2496 }
2497 EOF
2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2499 then
2500 gcc_cv_enum_bf_unsigned=yes
2501 else
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 rm -fr conftest*
2505 gcc_cv_enum_bf_unsigned=no
2506 fi
2507 rm -fr conftest*
2508 fi
2509
2510 fi
2511
2512 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2513 if test $gcc_cv_enum_bf_unsigned = yes; then
2514 cat >> confdefs.h <<\EOF
2515 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2516 EOF
2517
2518 fi
2519
2520 for ac_func in strtoul bsearch putenv popen bcopy \
2521 strchr strrchr kill getrlimit setrlimit atoll atoq \
2522 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2523 fputs_unlocked getrusage valloc iconv nl_langinfo
2524 do
2525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2526 echo "configure:2527: checking for $ac_func" >&5
2527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* System header to define __stub macros and hopefully few prototypes,
2534 which can conflict with char $ac_func(); below. */
2535 #include <assert.h>
2536 /* Override any gcc2 internal prototype to avoid an error. */
2537 /* We use char because int might match the return type of a gcc2
2538 builtin and then its argument prototype would still apply. */
2539 char $ac_func();
2540
2541 int main() {
2542
2543 /* The GNU C library defines this for functions which it implements
2544 to always fail with ENOSYS. Some functions are actually named
2545 something starting with __ and the normal name is an alias. */
2546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2547 choke me
2548 #else
2549 $ac_func();
2550 #endif
2551
2552 ; return 0; }
2553 EOF
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 rm -rf conftest*
2556 eval "ac_cv_func_$ac_func=yes"
2557 else
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_func_$ac_func=no"
2562 fi
2563 rm -f conftest*
2564 fi
2565
2566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2569 cat >> confdefs.h <<EOF
2570 #define $ac_tr_func 1
2571 EOF
2572
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576 done
2577
2578
2579 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2580 echo "configure:2581: checking for ssize_t" >&5
2581 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <sys/types.h>
2588 #if STDC_HEADERS
2589 #include <stdlib.h>
2590 #include <stddef.h>
2591 #endif
2592 EOF
2593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2594 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2595 rm -rf conftest*
2596 ac_cv_type_ssize_t=yes
2597 else
2598 rm -rf conftest*
2599 ac_cv_type_ssize_t=no
2600 fi
2601 rm -f conftest*
2602
2603 fi
2604 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2605 if test $ac_cv_type_ssize_t = no; then
2606 cat >> confdefs.h <<\EOF
2607 #define ssize_t int
2608 EOF
2609
2610 fi
2611
2612
2613 # Try to determine the array type of the second argument of getgroups
2614 # for the target system (int or gid_t).
2615 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2616 echo "configure:2617: checking for uid_t in sys/types.h" >&5
2617 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <sys/types.h>
2624 EOF
2625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2626 egrep "uid_t" >/dev/null 2>&1; then
2627 rm -rf conftest*
2628 ac_cv_type_uid_t=yes
2629 else
2630 rm -rf conftest*
2631 ac_cv_type_uid_t=no
2632 fi
2633 rm -f conftest*
2634
2635 fi
2636
2637 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2638 if test $ac_cv_type_uid_t = no; then
2639 cat >> confdefs.h <<\EOF
2640 #define uid_t int
2641 EOF
2642
2643 cat >> confdefs.h <<\EOF
2644 #define gid_t int
2645 EOF
2646
2647 fi
2648
2649 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2650 echo "configure:2651: checking type of array argument to getgroups" >&5
2651 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653 else
2654 if test "$cross_compiling" = yes; then
2655 ac_cv_type_getgroups=cross
2656 else
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660
2661 /* Thanks to Mike Rendell for this test. */
2662 #include <sys/types.h>
2663 #define NGID 256
2664 #undef MAX
2665 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2666 main()
2667 {
2668 gid_t gidset[NGID];
2669 int i, n;
2670 union { gid_t gval; long lval; } val;
2671
2672 val.lval = -1;
2673 for (i = 0; i < NGID; i++)
2674 gidset[i] = val.gval;
2675 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2676 gidset);
2677 /* Exit non-zero if getgroups seems to require an array of ints. This
2678 happens when gid_t is short but getgroups modifies an array of ints. */
2679 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2680 }
2681
2682 EOF
2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2684 then
2685 ac_cv_type_getgroups=gid_t
2686 else
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 rm -fr conftest*
2690 ac_cv_type_getgroups=int
2691 fi
2692 rm -fr conftest*
2693 fi
2694
2695 if test $ac_cv_type_getgroups = cross; then
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <unistd.h>
2700 EOF
2701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2702 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2703 rm -rf conftest*
2704 ac_cv_type_getgroups=gid_t
2705 else
2706 rm -rf conftest*
2707 ac_cv_type_getgroups=int
2708 fi
2709 rm -f conftest*
2710
2711 fi
2712 fi
2713
2714 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2715 cat >> confdefs.h <<EOF
2716 #define GETGROUPS_T $ac_cv_type_getgroups
2717 EOF
2718
2719
2720 if test "${target}" = "${build}"; then
2721 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2722 else
2723 case "${target}" in
2724 # This condition may need some tweaking. It should include all
2725 # targets where the array type of the second argument of getgroups
2726 # is int and the type of gid_t is not equivalent to int.
2727 *-*-sunos* | *-*-ultrix*)
2728 TARGET_GETGROUPS_T=int
2729 ;;
2730 *)
2731 TARGET_GETGROUPS_T=gid_t
2732 ;;
2733 esac
2734 fi
2735
2736
2737 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2738 echo "configure:2739: checking for vprintf" >&5
2739 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2741 else
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 /* System header to define __stub macros and hopefully few prototypes,
2746 which can conflict with char vprintf(); below. */
2747 #include <assert.h>
2748 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2751 char vprintf();
2752
2753 int main() {
2754
2755 /* The GNU C library defines this for functions which it implements
2756 to always fail with ENOSYS. Some functions are actually named
2757 something starting with __ and the normal name is an alias. */
2758 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2759 choke me
2760 #else
2761 vprintf();
2762 #endif
2763
2764 ; return 0; }
2765 EOF
2766 if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2767 rm -rf conftest*
2768 eval "ac_cv_func_vprintf=yes"
2769 else
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2772 rm -rf conftest*
2773 eval "ac_cv_func_vprintf=no"
2774 fi
2775 rm -f conftest*
2776 fi
2777
2778 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2780 cat >> confdefs.h <<\EOF
2781 #define HAVE_VPRINTF 1
2782 EOF
2783
2784 else
2785 echo "$ac_t""no" 1>&6
2786 fi
2787
2788 if test "$ac_cv_func_vprintf" != yes; then
2789 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2790 echo "configure:2791: checking for _doprnt" >&5
2791 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 /* System header to define __stub macros and hopefully few prototypes,
2798 which can conflict with char _doprnt(); below. */
2799 #include <assert.h>
2800 /* Override any gcc2 internal prototype to avoid an error. */
2801 /* We use char because int might match the return type of a gcc2
2802 builtin and then its argument prototype would still apply. */
2803 char _doprnt();
2804
2805 int main() {
2806
2807 /* The GNU C library defines this for functions which it implements
2808 to always fail with ENOSYS. Some functions are actually named
2809 something starting with __ and the normal name is an alias. */
2810 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2811 choke me
2812 #else
2813 _doprnt();
2814 #endif
2815
2816 ; return 0; }
2817 EOF
2818 if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819 rm -rf conftest*
2820 eval "ac_cv_func__doprnt=yes"
2821 else
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 rm -rf conftest*
2825 eval "ac_cv_func__doprnt=no"
2826 fi
2827 rm -f conftest*
2828 fi
2829
2830 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 cat >> confdefs.h <<\EOF
2833 #define HAVE_DOPRNT 1
2834 EOF
2835
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840 fi
2841
2842 vfprintf=
2843 doprint=
2844 if test $ac_cv_func_vprintf != yes ; then
2845 vfprintf=vfprintf.o
2846 if test $ac_cv_func__doprnt != yes ; then
2847 doprint=doprint.o
2848 fi
2849 fi
2850
2851
2852
2853 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2854 echo "configure:2855: checking whether the printf functions support %p" >&5
2855 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 if test "$cross_compiling" = yes; then
2859 gcc_cv_func_printf_ptr=no
2860 else
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <stdio.h>
2865
2866 int main()
2867 {
2868 char buf[64];
2869 char *p = buf, *q = NULL;
2870 sprintf(buf, "%p", p);
2871 sscanf(buf, "%p", &q);
2872 return (p != q);
2873 }
2874 EOF
2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2876 then
2877 gcc_cv_func_printf_ptr=yes
2878 else
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881 rm -fr conftest*
2882 gcc_cv_func_printf_ptr=no
2883 fi
2884 rm -fr conftest*
2885 fi
2886
2887 rm -f core core.* *.core
2888 fi
2889
2890 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2891 if test $gcc_cv_func_printf_ptr = yes ; then
2892 cat >> confdefs.h <<\EOF
2893 #define HAVE_PRINTF_PTR 1
2894 EOF
2895
2896 fi
2897
2898
2899 case "${host}" in
2900 *-*-uwin*)
2901 # Under some versions of uwin, vfork is notoriously buggy and the test
2902 # can hang configure; on other versions, vfork exists just as a stub.
2903 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2904 ac_cv_func_vfork_works=no
2905 ;;
2906 esac
2907 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2908 echo "configure:2909: checking for pid_t" >&5
2909 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2916 #if STDC_HEADERS
2917 #include <stdlib.h>
2918 #include <stddef.h>
2919 #endif
2920 EOF
2921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2922 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2923 rm -rf conftest*
2924 ac_cv_type_pid_t=yes
2925 else
2926 rm -rf conftest*
2927 ac_cv_type_pid_t=no
2928 fi
2929 rm -f conftest*
2930
2931 fi
2932 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2933 if test $ac_cv_type_pid_t = no; then
2934 cat >> confdefs.h <<\EOF
2935 #define pid_t int
2936 EOF
2937
2938 fi
2939
2940 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2941 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2942 echo "configure:2943: checking for vfork.h" >&5
2943 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <vfork.h>
2950 EOF
2951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2952 { (eval echo configure:2953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2954 if test -z "$ac_err"; then
2955 rm -rf conftest*
2956 eval "ac_cv_header_$ac_safe=yes"
2957 else
2958 echo "$ac_err" >&5
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2961 rm -rf conftest*
2962 eval "ac_cv_header_$ac_safe=no"
2963 fi
2964 rm -f conftest*
2965 fi
2966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_VFORK_H 1
2970 EOF
2971
2972 else
2973 echo "$ac_t""no" 1>&6
2974 fi
2975
2976 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2977 echo "configure:2978: checking for working vfork" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2980 else
2981 if test "$cross_compiling" = yes; then
2982 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2983 echo "configure:2984: checking for vfork" >&5
2984 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2986 else
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* System header to define __stub macros and hopefully few prototypes,
2991 which can conflict with char vfork(); below. */
2992 #include <assert.h>
2993 /* Override any gcc2 internal prototype to avoid an error. */
2994 /* We use char because int might match the return type of a gcc2
2995 builtin and then its argument prototype would still apply. */
2996 char vfork();
2997
2998 int main() {
2999
3000 /* The GNU C library defines this for functions which it implements
3001 to always fail with ENOSYS. Some functions are actually named
3002 something starting with __ and the normal name is an alias. */
3003 #if defined (__stub_vfork) || defined (__stub___vfork)
3004 choke me
3005 #else
3006 vfork();
3007 #endif
3008
3009 ; return 0; }
3010 EOF
3011 if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 rm -rf conftest*
3013 eval "ac_cv_func_vfork=yes"
3014 else
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 rm -rf conftest*
3018 eval "ac_cv_func_vfork=no"
3019 fi
3020 rm -f conftest*
3021 fi
3022
3023 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3024 echo "$ac_t""yes" 1>&6
3025 :
3026 else
3027 echo "$ac_t""no" 1>&6
3028 fi
3029
3030 ac_cv_func_vfork_works=$ac_cv_func_vfork
3031 else
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* Thanks to Paul Eggert for this test. */
3036 #include <stdio.h>
3037 #include <sys/types.h>
3038 #include <sys/stat.h>
3039 #ifdef HAVE_UNISTD_H
3040 #include <unistd.h>
3041 #endif
3042 #ifdef HAVE_VFORK_H
3043 #include <vfork.h>
3044 #endif
3045 /* On some sparc systems, changes by the child to local and incoming
3046 argument registers are propagated back to the parent.
3047 The compiler is told about this with #include <vfork.h>,
3048 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3049 Test for this by using a static variable whose address
3050 is put into a register that is clobbered by the vfork. */
3051 static
3052 #ifdef __cplusplus
3053 sparc_address_test (int arg)
3054 #else
3055 sparc_address_test (arg) int arg;
3056 #endif
3057 {
3058 static pid_t child;
3059 if (!child) {
3060 child = vfork ();
3061 if (child < 0) {
3062 perror ("vfork");
3063 _exit(2);
3064 }
3065 if (!child) {
3066 arg = getpid();
3067 write(-1, "", 0);
3068 _exit (arg);
3069 }
3070 }
3071 }
3072 main() {
3073 pid_t parent = getpid ();
3074 pid_t child;
3075
3076 sparc_address_test ();
3077
3078 child = vfork ();
3079
3080 if (child == 0) {
3081 /* Here is another test for sparc vfork register problems.
3082 This test uses lots of local variables, at least
3083 as many local variables as main has allocated so far
3084 including compiler temporaries. 4 locals are enough for
3085 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3086 A buggy compiler should reuse the register of parent
3087 for one of the local variables, since it will think that
3088 parent can't possibly be used any more in this routine.
3089 Assigning to the local variable will thus munge parent
3090 in the parent process. */
3091 pid_t
3092 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3093 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3094 /* Convince the compiler that p..p7 are live; otherwise, it might
3095 use the same hardware register for all 8 local variables. */
3096 if (p != p1 || p != p2 || p != p3 || p != p4
3097 || p != p5 || p != p6 || p != p7)
3098 _exit(1);
3099
3100 /* On some systems (e.g. IRIX 3.3),
3101 vfork doesn't separate parent from child file descriptors.
3102 If the child closes a descriptor before it execs or exits,
3103 this munges the parent's descriptor as well.
3104 Test for this by closing stdout in the child. */
3105 _exit(close(fileno(stdout)) != 0);
3106 } else {
3107 int status;
3108 struct stat st;
3109
3110 while (wait(&status) != child)
3111 ;
3112 exit(
3113 /* Was there some problem with vforking? */
3114 child < 0
3115
3116 /* Did the child fail? (This shouldn't happen.) */
3117 || status
3118
3119 /* Did the vfork/compiler bug occur? */
3120 || parent != getpid()
3121
3122 /* Did the file descriptor bug occur? */
3123 || fstat(fileno(stdout), &st) != 0
3124 );
3125 }
3126 }
3127 EOF
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3129 then
3130 ac_cv_func_vfork_works=yes
3131 else
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 rm -fr conftest*
3135 ac_cv_func_vfork_works=no
3136 fi
3137 rm -fr conftest*
3138 fi
3139
3140 fi
3141
3142 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3143 if test $ac_cv_func_vfork_works = no; then
3144 cat >> confdefs.h <<\EOF
3145 #define vfork fork
3146 EOF
3147
3148 fi
3149
3150 for ac_hdr in unistd.h
3151 do
3152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_hdr" >&5
3155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 #include <$ac_hdr>
3162 EOF
3163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3167 rm -rf conftest*
3168 eval "ac_cv_header_$ac_safe=yes"
3169 else
3170 echo "$ac_err" >&5
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3173 rm -rf conftest*
3174 eval "ac_cv_header_$ac_safe=no"
3175 fi
3176 rm -f conftest*
3177 fi
3178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_hdr 1
3183 EOF
3184
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188 done
3189
3190 for ac_func in getpagesize
3191 do
3192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3193 echo "configure:3194: checking for $ac_func" >&5
3194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3196 else
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 /* System header to define __stub macros and hopefully few prototypes,
3201 which can conflict with char $ac_func(); below. */
3202 #include <assert.h>
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3206 char $ac_func();
3207
3208 int main() {
3209
3210 /* The GNU C library defines this for functions which it implements
3211 to always fail with ENOSYS. Some functions are actually named
3212 something starting with __ and the normal name is an alias. */
3213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3214 choke me
3215 #else
3216 $ac_func();
3217 #endif
3218
3219 ; return 0; }
3220 EOF
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 rm -rf conftest*
3223 eval "ac_cv_func_$ac_func=yes"
3224 else
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3227 rm -rf conftest*
3228 eval "ac_cv_func_$ac_func=no"
3229 fi
3230 rm -f conftest*
3231 fi
3232
3233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3236 cat >> confdefs.h <<EOF
3237 #define $ac_tr_func 1
3238 EOF
3239
3240 else
3241 echo "$ac_t""no" 1>&6
3242 fi
3243 done
3244
3245 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3246 echo "configure:3247: checking for working mmap which provides zeroed pages anywhere" >&5
3247 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3249 else
3250 if test "$cross_compiling" = yes; then
3251 ac_cv_func_mmap_anywhere=no
3252 else
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256
3257 /* Test by Richard Henderson and Alexandre Oliva.
3258 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3259 #include <sys/types.h>
3260 #include <fcntl.h>
3261 #include <sys/mman.h>
3262
3263 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3264 # define MAP_ANONYMOUS MAP_ANON
3265 #endif
3266
3267 /* This mess was copied from the GNU getpagesize.h. */
3268 #ifndef HAVE_GETPAGESIZE
3269 # ifdef HAVE_UNISTD_H
3270 # include <unistd.h>
3271 # endif
3272
3273 /* Assume that all systems that can run configure have sys/param.h. */
3274 # ifndef HAVE_SYS_PARAM_H
3275 # define HAVE_SYS_PARAM_H 1
3276 # endif
3277
3278 # ifdef _SC_PAGESIZE
3279 # define getpagesize() sysconf(_SC_PAGESIZE)
3280 # else /* no _SC_PAGESIZE */
3281 # ifdef HAVE_SYS_PARAM_H
3282 # include <sys/param.h>
3283 # ifdef EXEC_PAGESIZE
3284 # define getpagesize() EXEC_PAGESIZE
3285 # else /* no EXEC_PAGESIZE */
3286 # ifdef NBPG
3287 # define getpagesize() NBPG * CLSIZE
3288 # ifndef CLSIZE
3289 # define CLSIZE 1
3290 # endif /* no CLSIZE */
3291 # else /* no NBPG */
3292 # ifdef NBPC
3293 # define getpagesize() NBPC
3294 # else /* no NBPC */
3295 # ifdef PAGESIZE
3296 # define getpagesize() PAGESIZE
3297 # endif /* PAGESIZE */
3298 # endif /* no NBPC */
3299 # endif /* no NBPG */
3300 # endif /* no EXEC_PAGESIZE */
3301 # else /* no HAVE_SYS_PARAM_H */
3302 # define getpagesize() 8192 /* punt totally */
3303 # endif /* no HAVE_SYS_PARAM_H */
3304 # endif /* no _SC_PAGESIZE */
3305
3306 #endif /* no HAVE_GETPAGESIZE */
3307
3308 int main()
3309 {
3310 char *x;
3311 int fd, pg;
3312
3313 #ifndef MAP_ANONYMOUS
3314 fd = open("/dev/zero", O_RDWR);
3315 if (fd < 0)
3316 exit(1);
3317 #endif
3318
3319 pg = getpagesize();
3320 #ifdef MAP_ANONYMOUS
3321 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3322 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3323 #else
3324 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3325 #endif
3326 if (x == (char *) -1)
3327 exit(2);
3328
3329 *(int *)x += 1;
3330
3331 if (munmap(x, pg) < 0)
3332 exit(3);
3333
3334 exit(0);
3335 }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3338 then
3339 ac_cv_func_mmap_anywhere=yes
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -fr conftest*
3344 ac_cv_func_mmap_anywhere=no
3345 fi
3346 rm -fr conftest*
3347 fi
3348
3349 fi
3350
3351 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3352 if test $ac_cv_func_mmap_anywhere = yes; then
3353 cat >> confdefs.h <<\EOF
3354 #define HAVE_MMAP_ANYWHERE 1
3355 EOF
3356
3357 fi
3358
3359 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3360 echo "configure:3361: checking for working mmap of a file" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 # Create a file one thousand bytes long.
3365 for i in 1 2 3 4 5 6 7 8 9 0
3366 do for j in 1 2 3 4 5 6 7 8 9 0
3367 do echo $i $j xxxxx
3368 done
3369 done > conftestdata$$
3370
3371 if test "$cross_compiling" = yes; then
3372 ac_cv_func_mmap_file=no
3373 else
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377
3378 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3379 Richard Henderson and Alexandre Oliva.
3380 Check whether read-only mmap of a plain file works. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 #include <fcntl.h>
3384 #include <sys/mman.h>
3385
3386 int main()
3387 {
3388 char *x;
3389 int fd;
3390 struct stat st;
3391
3392 fd = open("conftestdata$$", O_RDONLY);
3393 if (fd < 0)
3394 exit(1);
3395
3396 if (fstat (fd, &st))
3397 exit(2);
3398
3399 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3400 if (x == (char *) -1)
3401 exit(3);
3402
3403 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3404 exit(4);
3405
3406 if (munmap(x, st.st_size) < 0)
3407 exit(5);
3408
3409 exit(0);
3410 }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3413 then
3414 ac_cv_func_mmap_file=yes
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -fr conftest*
3419 ac_cv_func_mmap_file=no
3420 fi
3421 rm -fr conftest*
3422 fi
3423
3424 fi
3425
3426 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3427 if test $ac_cv_func_mmap_file = yes; then
3428 cat >> confdefs.h <<\EOF
3429 #define HAVE_MMAP_FILE 1
3430 EOF
3431
3432 fi
3433
3434
3435 # We will need to find libiberty.h and ansidecl.h
3436 saved_CFLAGS="$CFLAGS"
3437 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3438 for ac_func in bcopy \
3439 getenv atol sbrk abort atof getcwd getwd \
3440 strsignal putc_unlocked fputs_unlocked strstr environ \
3441 malloc realloc calloc free basename getopt
3442 do
3443 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3445 echo "configure:3446: checking whether $ac_func is declared" >&5
3446 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3448 else
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include "gansidecl.h"
3453 #include "system.h"
3454
3455 int main() {
3456 #ifndef $ac_func
3457 char *(*pfn) = (char *(*)) $ac_func ;
3458 #endif
3459 ; return 0; }
3460 EOF
3461 if { (eval echo configure:3462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3462 rm -rf conftest*
3463 eval "gcc_cv_have_decl_$ac_func=yes"
3464 else
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 rm -rf conftest*
3468 eval "gcc_cv_have_decl_$ac_func=no"
3469 fi
3470 rm -f conftest*
3471 fi
3472
3473 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3475 #define $ac_tr_decl 1
3476 EOF
3477
3478 else
3479 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3480 #define $ac_tr_decl 0
3481 EOF
3482
3483 fi
3484
3485 done
3486 if test x = y ; then
3487 cat >> confdefs.h <<EOF
3488 #define HAVE_DECL_BCOPY 1
3489 EOF
3490 \
3491 cat >> confdefs.h <<EOF
3492 #define HAVE_DECL_GETENV 1
3493 EOF
3494 cat >> confdefs.h <<EOF
3495 #define HAVE_DECL_ATOL 1
3496 EOF
3497 cat >> confdefs.h <<EOF
3498 #define HAVE_DECL_SBRK 1
3499 EOF
3500 cat >> confdefs.h <<EOF
3501 #define HAVE_DECL_ABORT 1
3502 EOF
3503 cat >> confdefs.h <<EOF
3504 #define HAVE_DECL_ATOF 1
3505 EOF
3506 cat >> confdefs.h <<EOF
3507 #define HAVE_DECL_GETCWD 1
3508 EOF
3509 cat >> confdefs.h <<EOF
3510 #define HAVE_DECL_GETWD 1
3511 EOF
3512 \
3513 cat >> confdefs.h <<EOF
3514 #define HAVE_DECL_STRSIGNAL 1
3515 EOF
3516 cat >> confdefs.h <<EOF
3517 #define HAVE_DECL_PUTC_UNLOCKED 1
3518 EOF
3519 cat >> confdefs.h <<EOF
3520 #define HAVE_DECL_FPUTS_UNLOCKED 1
3521 EOF
3522 cat >> confdefs.h <<EOF
3523 #define HAVE_DECL_STRSTR 1
3524 EOF
3525 cat >> confdefs.h <<EOF
3526 #define HAVE_DECL_ENVIRON 1
3527 EOF
3528 \
3529 cat >> confdefs.h <<EOF
3530 #define HAVE_DECL_MALLOC 1
3531 EOF
3532 cat >> confdefs.h <<EOF
3533 #define HAVE_DECL_REALLOC 1
3534 EOF
3535 cat >> confdefs.h <<EOF
3536 #define HAVE_DECL_CALLOC 1
3537 EOF
3538 cat >> confdefs.h <<EOF
3539 #define HAVE_DECL_FREE 1
3540 EOF
3541 cat >> confdefs.h <<EOF
3542 #define HAVE_DECL_BASENAME 1
3543 EOF
3544 cat >> confdefs.h <<EOF
3545 #define HAVE_DECL_GETOPT 1
3546 EOF
3547 fi
3548
3549
3550 for ac_func in getrlimit setrlimit getrusage
3551 do
3552 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3553 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3554 echo "configure:3555: checking whether $ac_func is declared" >&5
3555 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557 else
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include "gansidecl.h"
3562 #include "system.h"
3563 #ifdef HAVE_SYS_RESOURCE_H
3564 #include <sys/resource.h>
3565 #endif
3566
3567
3568 int main() {
3569 #ifndef $ac_func
3570 char *(*pfn) = (char *(*)) $ac_func ;
3571 #endif
3572 ; return 0; }
3573 EOF
3574 if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3575 rm -rf conftest*
3576 eval "gcc_cv_have_decl_$ac_func=yes"
3577 else
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 rm -rf conftest*
3581 eval "gcc_cv_have_decl_$ac_func=no"
3582 fi
3583 rm -f conftest*
3584 fi
3585
3586 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3588 #define $ac_tr_decl 1
3589 EOF
3590
3591 else
3592 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3593 #define $ac_tr_decl 0
3594 EOF
3595
3596 fi
3597
3598 done
3599 if test x = y ; then
3600 cat >> confdefs.h <<EOF
3601 #define HAVE_DECL_GETRLIMIT 1
3602 EOF
3603 cat >> confdefs.h <<EOF
3604 #define HAVE_DECL_SETRLIMIT 1
3605 EOF
3606 cat >> confdefs.h <<EOF
3607 #define HAVE_DECL_GETRUSAGE 1
3608 EOF
3609 fi
3610
3611
3612 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3613 CFLAGS="$saved_CFLAGS"
3614
3615 # mkdir takes a single argument on some systems.
3616 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3617 echo "configure:3618: checking if mkdir takes one argument" >&5
3618 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624
3625 #include <sys/types.h>
3626 #ifdef HAVE_SYS_STAT_H
3627 # include <sys/stat.h>
3628 #endif
3629 #ifdef HAVE_UNISTD_H
3630 # include <unistd.h>
3631 #endif
3632 #ifdef HAVE_DIRECT_H
3633 # include <direct.h>
3634 #endif
3635 int main() {
3636 mkdir ("foo", 0);
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640 rm -rf conftest*
3641 gcc_cv_mkdir_takes_one_arg=no
3642 else
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 rm -rf conftest*
3646 gcc_cv_mkdir_takes_one_arg=yes
3647 fi
3648 rm -f conftest*
3649 fi
3650
3651 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3652 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3653 cat >> confdefs.h <<\EOF
3654 #define MKDIR_TAKES_ONE_ARG 1
3655 EOF
3656
3657 fi
3658
3659
3660 # File extensions
3661 manext='.1'
3662 objext='.o'
3663
3664
3665
3666 build_xm_file=
3667 build_xm_defines=
3668 build_install_headers_dir=install-headers-tar
3669 build_exeext=
3670 host_xm_file=
3671 host_xm_defines=
3672 host_xmake_file=
3673 host_truncate_target=
3674 host_exeext=
3675
3676 # Decode the host machine, then the target machine.
3677 # For the host machine, we save the xm_file variable as host_xm_file;
3678 # then we decode the target machine and forget everything else
3679 # that came from the host machine.
3680 for machine in $build $host $target; do
3681 . ${srcdir}/config.gcc
3682 done
3683
3684 extra_objs="${host_extra_objs} ${extra_objs}"
3685
3686 # Default the target-machine variables that were not explicitly set.
3687 if test x"$tm_file" = x
3688 then tm_file=$cpu_type/$cpu_type.h; fi
3689
3690 if test x$extra_headers = x
3691 then extra_headers=; fi
3692
3693 if test x"$xm_file" = x
3694 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3695
3696 if test x$md_file = x
3697 then md_file=$cpu_type/$cpu_type.md; fi
3698
3699 if test x$out_file = x
3700 then out_file=$cpu_type/$cpu_type.c; fi
3701
3702 if test x"$tmake_file" = x
3703 then tmake_file=$cpu_type/t-$cpu_type
3704 fi
3705
3706 if test x"$dwarf2" = xyes
3707 then tm_file="$tm_file tm-dwarf2.h"
3708 fi
3709
3710 if test x$float_format = x
3711 then float_format=i64
3712 fi
3713
3714 if test $float_format = none
3715 then float_h_file=Makefile.in
3716 else float_h_file=float-$float_format.h
3717 fi
3718
3719 # Handle cpp installation.
3720 if test x$enable_cpp != xno
3721 then
3722 tmake_file="$tmake_file t-install-cpp"
3723 fi
3724
3725 # Say what files are being used for the output code and MD file.
3726 echo "Using \`$srcdir/config/$out_file' to output insns."
3727 echo "Using \`$srcdir/config/$md_file' as machine description file."
3728
3729 count=a
3730 for f in $tm_file; do
3731 count=${count}x
3732 done
3733 if test $count = ax; then
3734 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3735 else
3736 echo "Using the following target machine macro files:"
3737 for f in $tm_file; do
3738 echo " $srcdir/config/$f"
3739 done
3740 fi
3741
3742 count=a
3743 for f in $host_xm_file; do
3744 count=${count}x
3745 done
3746 if test $count = ax; then
3747 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3748 else
3749 echo "Using the following host machine macro files:"
3750 for f in $host_xm_file; do
3751 echo " $srcdir/config/$f"
3752 done
3753 fi
3754
3755 if test "$host_xm_file" != "$build_xm_file"; then
3756 count=a
3757 for f in $build_xm_file; do
3758 count=${count}x
3759 done
3760 if test $count = ax; then
3761 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3762 else
3763 echo "Using the following build machine macro files:"
3764 for f in $build_xm_file; do
3765 echo " $srcdir/config/$f"
3766 done
3767 fi
3768 fi
3769
3770 if test x$thread_file = x; then
3771 if test x$target_thread_file != x; then
3772 thread_file=$target_thread_file
3773 else
3774 thread_file='single'
3775 fi
3776 fi
3777
3778 # Set up the header files.
3779 # $links is the list of header files to create.
3780 # $vars is the list of shell variables with file names to include.
3781 # auto-host.h is the file containing items generated by autoconf and is
3782 # the first file included by config.h.
3783 null_defines=
3784 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3785
3786 # If host=build, it is correct to have hconfig include auto-host.h
3787 # as well. If host!=build, we are in error and need to do more
3788 # work to find out the build config parameters.
3789 if test x$host = x$build
3790 then
3791 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3792 else
3793 # We create a subdir, then run autoconf in the subdir.
3794 # To prevent recursion we set host and build for the new
3795 # invocation of configure to the build for this invocation
3796 # of configure.
3797 tempdir=build.$$
3798 rm -rf $tempdir
3799 mkdir $tempdir
3800 cd $tempdir
3801 case ${srcdir} in
3802 /*) realsrcdir=${srcdir};;
3803 *) realsrcdir=../${srcdir};;
3804 esac
3805 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3806 --target=$target --host=$build --build=$build
3807
3808 # We just finished tests for the build machine, so rename
3809 # the file auto-build.h in the gcc directory.
3810 mv auto-host.h ../auto-build.h
3811 cd ..
3812 rm -rf $tempdir
3813 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3814 fi
3815
3816 xm_file="gansidecl.h ${xm_file}"
3817 tm_file="gansidecl.h ${tm_file}"
3818
3819 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
3820 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
3821 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
3822
3823 rm -f config.bak
3824 if test -f config.status; then mv -f config.status config.bak; fi
3825
3826 # Make the links.
3827 while test -n "$vars"
3828 do
3829 set $vars; var=$1; shift; vars=$*
3830 set $links; link=$1; shift; links=$*
3831 set $defines; define=$1; shift; defines=$*
3832
3833 rm -f $link
3834 # Make sure the file is created, even if it is empty.
3835 echo >$link
3836
3837 # Define TARGET_CPU_DEFAULT if the system wants one.
3838 # This substitutes for lots of *.h files.
3839 if test "$target_cpu_default" != "" -a $link = tm.h
3840 then
3841 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3842 fi
3843 if test $link = tm.h
3844 then
3845 echo "#ifndef GENERATOR_FILE" >>$link
3846 echo "#include \"insn-codes.h\"" >>$link
3847 echo "#endif" >>$link
3848 fi
3849
3850 for file in `eval echo '$'$var`; do
3851 case $file in
3852 auto-host.h | auto-build.h )
3853 ;;
3854 *)
3855 echo '#ifdef IN_GCC' >>$link
3856 ;;
3857 esac
3858 echo "#include \"$file\"" >>$link
3859 case $file in
3860 auto-host.h | auto-build.h )
3861 ;;
3862 *)
3863 echo '#endif' >>$link
3864 ;;
3865 esac
3866 done
3867
3868 for def in `eval echo '$'$define`; do
3869 echo "#ifndef $def" >>$link
3870 echo "#define $def" >>$link
3871 echo "#endif" >>$link
3872 done
3873 done
3874
3875 # Truncate the target if necessary
3876 if test x$host_truncate_target != x; then
3877 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3878 fi
3879
3880 # Get the version trigger filename from the toplevel
3881 if test "${with_gcc_version_trigger+set}" = set; then
3882 gcc_version_trigger=$with_gcc_version_trigger
3883 else
3884 gcc_version_trigger=${srcdir}/version.c
3885 fi
3886 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3887 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3888
3889 # Compile in configure arguments.
3890 if test -f configargs.h ; then
3891 # Being re-configured.
3892 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3893 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
3894 else
3895 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
3896 fi
3897 cat > configargs.h <<EOF
3898 /* Generated automatically. */
3899 static const char configuration_arguments[] = "$gcc_config_arguments";
3900 EOF
3901
3902 # Internationalization
3903 PACKAGE=gcc
3904 VERSION="$gcc_version"
3905 cat >> confdefs.h <<EOF
3906 #define PACKAGE "$PACKAGE"
3907 EOF
3908
3909 cat >> confdefs.h <<EOF
3910 #define VERSION "$VERSION"
3911 EOF
3912
3913
3914
3915
3916 ALL_LINGUAS="sv"
3917
3918 # Enable NLS support by default
3919 # Check whether --enable-nls or --disable-nls was given.
3920 if test "${enable_nls+set}" = set; then
3921 enableval="$enable_nls"
3922 :
3923 else
3924 enable_nls=yes
3925 fi
3926
3927
3928 # if cross compiling, disable NLS support.
3929 # It's not worth the trouble, at least for now.
3930
3931 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
3932 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
3933 enable_nls=no
3934 fi
3935
3936 # if NLS is enabled, also enable check in po subdir
3937 if test $enable_nls = yes; then
3938 CHECK_PO=check-po
3939 else
3940 CHECK_PO=""
3941 fi
3942
3943
3944
3945
3946 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
3947 echo "configure:3948: checking for strerror in -lcposix" >&5
3948 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951 else
3952 ac_save_LIBS="$LIBS"
3953 LIBS="-lcposix $LIBS"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3960 char strerror();
3961
3962 int main() {
3963 strerror()
3964 ; return 0; }
3965 EOF
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 rm -rf conftest*
3968 eval "ac_cv_lib_$ac_lib_var=yes"
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 eval "ac_cv_lib_$ac_lib_var=no"
3974 fi
3975 rm -f conftest*
3976 LIBS="$ac_save_LIBS"
3977
3978 fi
3979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 LIBS="$LIBS -lcposix"
3982 else
3983 echo "$ac_t""no" 1>&6
3984 fi
3985
3986
3987
3988 echo $ac_n "checking for working const""... $ac_c" 1>&6
3989 echo "configure:3990: checking for working const" >&5
3990 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996
3997 int main() {
3998
3999 /* Ultrix mips cc rejects this. */
4000 typedef int charset[2]; const charset x = {0,0};
4001 /* SunOS 4.1.1 cc rejects this. */
4002 char const *const *ccp;
4003 char **p;
4004 /* NEC SVR4.0.2 mips cc rejects this. */
4005 struct point {int x, y;};
4006 static struct point const zero = {0,0};
4007 /* AIX XL C 1.02.0.0 rejects this.
4008 It does not let you subtract one const X* pointer from another in an arm
4009 of an if-expression whose if-part is not a constant expression */
4010 const char *g = "string";
4011 ccp = &g + (g ? g-g : 0);
4012 /* HPUX 7.0 cc rejects these. */
4013 ++ccp;
4014 p = (char**) ccp;
4015 ccp = (char const *const *) p;
4016 { /* SCO 3.2v4 cc rejects this. */
4017 char *t;
4018 char const *s = 0 ? (char *) 0 : (char const *) 0;
4019
4020 *t++ = 0;
4021 }
4022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4023 int x[] = {25, 17};
4024 const int *foo = &x[0];
4025 ++foo;
4026 }
4027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4028 typedef const int *iptr;
4029 iptr p = 0;
4030 ++p;
4031 }
4032 { /* AIX XL C 1.02.0.0 rejects this saying
4033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4034 struct s { int j; const int *ap[3]; };
4035 struct s *b; b->j = 5;
4036 }
4037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4038 const int foo = 10;
4039 }
4040
4041 ; return 0; }
4042 EOF
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 rm -rf conftest*
4045 ac_cv_c_const=yes
4046 else
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4049 rm -rf conftest*
4050 ac_cv_c_const=no
4051 fi
4052 rm -f conftest*
4053 fi
4054
4055 echo "$ac_t""$ac_cv_c_const" 1>&6
4056 if test $ac_cv_c_const = no; then
4057 cat >> confdefs.h <<\EOF
4058 #define const
4059 EOF
4060
4061 fi
4062
4063 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4064 echo "configure:4065: checking for off_t" >&5
4065 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 #include <sys/types.h>
4072 #if STDC_HEADERS
4073 #include <stdlib.h>
4074 #include <stddef.h>
4075 #endif
4076 EOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4079 rm -rf conftest*
4080 ac_cv_type_off_t=yes
4081 else
4082 rm -rf conftest*
4083 ac_cv_type_off_t=no
4084 fi
4085 rm -f conftest*
4086
4087 fi
4088 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4089 if test $ac_cv_type_off_t = no; then
4090 cat >> confdefs.h <<\EOF
4091 #define off_t long
4092 EOF
4093
4094 fi
4095
4096 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4097 echo "configure:4098: checking for size_t" >&5
4098 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100 else
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #if STDC_HEADERS
4106 #include <stdlib.h>
4107 #include <stddef.h>
4108 #endif
4109 EOF
4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4111 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4112 rm -rf conftest*
4113 ac_cv_type_size_t=yes
4114 else
4115 rm -rf conftest*
4116 ac_cv_type_size_t=no
4117 fi
4118 rm -f conftest*
4119
4120 fi
4121 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4122 if test $ac_cv_type_size_t = no; then
4123 cat >> confdefs.h <<\EOF
4124 #define size_t unsigned
4125 EOF
4126
4127 fi
4128
4129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4130 # for constant arguments. Useless!
4131 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4132 echo "configure:4133: checking for working alloca.h" >&5
4133 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135 else
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <alloca.h>
4140 int main() {
4141 void *p = alloca(2 * sizeof(int));
4142 ; return 0; }
4143 EOF
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4145 rm -rf conftest*
4146 ac_cv_header_alloca_h=yes
4147 else
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 rm -rf conftest*
4151 ac_cv_header_alloca_h=no
4152 fi
4153 rm -f conftest*
4154 fi
4155
4156 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4157 if test $ac_cv_header_alloca_h = yes; then
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_ALLOCA_H 1
4160 EOF
4161
4162 fi
4163
4164 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4165 echo "configure:4166: checking for alloca" >&5
4166 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4168 else
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172
4173 #ifdef __GNUC__
4174 # define alloca __builtin_alloca
4175 #else
4176 # ifdef _MSC_VER
4177 # include <malloc.h>
4178 # define alloca _alloca
4179 # else
4180 # if HAVE_ALLOCA_H
4181 # include <alloca.h>
4182 # else
4183 # ifdef _AIX
4184 #pragma alloca
4185 # else
4186 # ifndef alloca /* predefined by HP cc +Olibcalls */
4187 char *alloca ();
4188 # endif
4189 # endif
4190 # endif
4191 # endif
4192 #endif
4193
4194 int main() {
4195 char *p = (char *) alloca(1);
4196 ; return 0; }
4197 EOF
4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4199 rm -rf conftest*
4200 ac_cv_func_alloca_works=yes
4201 else
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4204 rm -rf conftest*
4205 ac_cv_func_alloca_works=no
4206 fi
4207 rm -f conftest*
4208 fi
4209
4210 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4211 if test $ac_cv_func_alloca_works = yes; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_ALLOCA 1
4214 EOF
4215
4216 fi
4217
4218 if test $ac_cv_func_alloca_works = no; then
4219 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4220 # that cause trouble. Some versions do not even contain alloca or
4221 # contain a buggy version. If you still want to use their alloca,
4222 # use ar to extract alloca.o from them instead of compiling alloca.c.
4223 ALLOCA=alloca.${ac_objext}
4224 cat >> confdefs.h <<\EOF
4225 #define C_ALLOCA 1
4226 EOF
4227
4228
4229 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4230 echo "configure:4231: checking whether alloca needs Cray hooks" >&5
4231 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 #if defined(CRAY) && ! defined(CRAY2)
4238 webecray
4239 #else
4240 wenotbecray
4241 #endif
4242
4243 EOF
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 egrep "webecray" >/dev/null 2>&1; then
4246 rm -rf conftest*
4247 ac_cv_os_cray=yes
4248 else
4249 rm -rf conftest*
4250 ac_cv_os_cray=no
4251 fi
4252 rm -f conftest*
4253
4254 fi
4255
4256 echo "$ac_t""$ac_cv_os_cray" 1>&6
4257 if test $ac_cv_os_cray = yes; then
4258 for ac_func in _getb67 GETB67 getb67; do
4259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_func" >&5
4261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* System header to define __stub macros and hopefully few prototypes,
4268 which can conflict with char $ac_func(); below. */
4269 #include <assert.h>
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273 char $ac_func();
4274
4275 int main() {
4276
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4281 choke me
4282 #else
4283 $ac_func();
4284 #endif
4285
4286 ; return 0; }
4287 EOF
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4289 rm -rf conftest*
4290 eval "ac_cv_func_$ac_func=yes"
4291 else
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 rm -rf conftest*
4295 eval "ac_cv_func_$ac_func=no"
4296 fi
4297 rm -f conftest*
4298 fi
4299
4300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 cat >> confdefs.h <<EOF
4303 #define CRAY_STACKSEG_END $ac_func
4304 EOF
4305
4306 break
4307 else
4308 echo "$ac_t""no" 1>&6
4309 fi
4310
4311 done
4312 fi
4313
4314 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4315 echo "configure:4316: checking stack direction for C alloca" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319 if test "$cross_compiling" = yes; then
4320 ac_cv_c_stack_direction=0
4321 else
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 find_stack_direction ()
4326 {
4327 static char *addr = 0;
4328 auto char dummy;
4329 if (addr == 0)
4330 {
4331 addr = &dummy;
4332 return find_stack_direction ();
4333 }
4334 else
4335 return (&dummy > addr) ? 1 : -1;
4336 }
4337 main ()
4338 {
4339 exit (find_stack_direction() < 0);
4340 }
4341 EOF
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4343 then
4344 ac_cv_c_stack_direction=1
4345 else
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 rm -fr conftest*
4349 ac_cv_c_stack_direction=-1
4350 fi
4351 rm -fr conftest*
4352 fi
4353
4354 fi
4355
4356 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4357 cat >> confdefs.h <<EOF
4358 #define STACK_DIRECTION $ac_cv_c_stack_direction
4359 EOF
4360
4361 fi
4362
4363
4364 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4365 unistd.h sys/param.h
4366 do
4367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4369 echo "configure:4370: checking for $ac_hdr" >&5
4370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <$ac_hdr>
4377 EOF
4378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4379 { (eval echo configure:4380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4381 if test -z "$ac_err"; then
4382 rm -rf conftest*
4383 eval "ac_cv_header_$ac_safe=yes"
4384 else
4385 echo "$ac_err" >&5
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 eval "ac_cv_header_$ac_safe=no"
4390 fi
4391 rm -f conftest*
4392 fi
4393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4396 cat >> confdefs.h <<EOF
4397 #define $ac_tr_hdr 1
4398 EOF
4399
4400 else
4401 echo "$ac_t""no" 1>&6
4402 fi
4403 done
4404
4405 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4406 strdup __argz_count __argz_stringify __argz_next
4407 do
4408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_func" >&5
4410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* System header to define __stub macros and hopefully few prototypes,
4417 which can conflict with char $ac_func(); below. */
4418 #include <assert.h>
4419 /* Override any gcc2 internal prototype to avoid an error. */
4420 /* We use char because int might match the return type of a gcc2
4421 builtin and then its argument prototype would still apply. */
4422 char $ac_func();
4423
4424 int main() {
4425
4426 /* The GNU C library defines this for functions which it implements
4427 to always fail with ENOSYS. Some functions are actually named
4428 something starting with __ and the normal name is an alias. */
4429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4430 choke me
4431 #else
4432 $ac_func();
4433 #endif
4434
4435 ; return 0; }
4436 EOF
4437 if { (eval echo configure:4438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4438 rm -rf conftest*
4439 eval "ac_cv_func_$ac_func=yes"
4440 else
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 rm -rf conftest*
4444 eval "ac_cv_func_$ac_func=no"
4445 fi
4446 rm -f conftest*
4447 fi
4448
4449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4452 cat >> confdefs.h <<EOF
4453 #define $ac_tr_func 1
4454 EOF
4455
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459 done
4460
4461
4462 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4463 for ac_func in stpcpy
4464 do
4465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4466 echo "configure:4467: checking for $ac_func" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func(); below. */
4475 #include <assert.h>
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479 char $ac_func();
4480
4481 int main() {
4482
4483 /* The GNU C library defines this for functions which it implements
4484 to always fail with ENOSYS. Some functions are actually named
4485 something starting with __ and the normal name is an alias. */
4486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4487 choke me
4488 #else
4489 $ac_func();
4490 #endif
4491
4492 ; return 0; }
4493 EOF
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 rm -rf conftest*
4496 eval "ac_cv_func_$ac_func=yes"
4497 else
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 rm -rf conftest*
4501 eval "ac_cv_func_$ac_func=no"
4502 fi
4503 rm -f conftest*
4504 fi
4505
4506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4509 cat >> confdefs.h <<EOF
4510 #define $ac_tr_func 1
4511 EOF
4512
4513 else
4514 echo "$ac_t""no" 1>&6
4515 fi
4516 done
4517
4518 fi
4519 if test "${ac_cv_func_stpcpy}" = "yes"; then
4520 cat >> confdefs.h <<\EOF
4521 #define HAVE_STPCPY 1
4522 EOF
4523
4524 fi
4525
4526 if test $ac_cv_header_locale_h = yes; then
4527 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4528 echo "configure:4529: checking for LC_MESSAGES" >&5
4529 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <locale.h>
4536 int main() {
4537 return LC_MESSAGES
4538 ; return 0; }
4539 EOF
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541 rm -rf conftest*
4542 am_cv_val_LC_MESSAGES=yes
4543 else
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4546 rm -rf conftest*
4547 am_cv_val_LC_MESSAGES=no
4548 fi
4549 rm -f conftest*
4550 fi
4551
4552 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4553 if test $am_cv_val_LC_MESSAGES = yes; then
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE_LC_MESSAGES 1
4556 EOF
4557
4558 fi
4559 fi
4560 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4561 echo "configure:4562: checking whether NLS is requested" >&5
4562 # Check whether --enable-nls or --disable-nls was given.
4563 if test "${enable_nls+set}" = set; then
4564 enableval="$enable_nls"
4565 USE_NLS=$enableval
4566 else
4567 USE_NLS=yes
4568 fi
4569
4570 echo "$ac_t""$USE_NLS" 1>&6
4571
4572
4573 USE_INCLUDED_LIBINTL=no
4574
4575 if test "$USE_NLS" = "yes"; then
4576 cat >> confdefs.h <<\EOF
4577 #define ENABLE_NLS 1
4578 EOF
4579
4580 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4581 echo "configure:4582: checking whether included gettext is requested" >&5
4582 # Check whether --with-included-gettext or --without-included-gettext was given.
4583 if test "${with_included_gettext+set}" = set; then
4584 withval="$with_included_gettext"
4585 nls_cv_force_use_gnu_gettext=$withval
4586 else
4587 nls_cv_force_use_gnu_gettext=no
4588 fi
4589
4590 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4591
4592 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4593 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4594 nls_cv_header_intl=
4595 nls_cv_header_libgt=
4596 CATOBJEXT=NONE
4597
4598 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4599 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4600 echo "configure:4601: checking for libintl.h" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4603 else
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <libintl.h>
4608 EOF
4609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4610 { (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4612 if test -z "$ac_err"; then
4613 rm -rf conftest*
4614 eval "ac_cv_header_$ac_safe=yes"
4615 else
4616 echo "$ac_err" >&5
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 rm -rf conftest*
4620 eval "ac_cv_header_$ac_safe=no"
4621 fi
4622 rm -f conftest*
4623 fi
4624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4627 echo "configure:4628: checking for gettext in libc" >&5
4628 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4630 else
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 #include <libintl.h>
4635 int main() {
4636 return (int) gettext ("")
4637 ; return 0; }
4638 EOF
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 rm -rf conftest*
4641 gt_cv_func_gettext_libc=yes
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 gt_cv_func_gettext_libc=no
4647 fi
4648 rm -f conftest*
4649 fi
4650
4651 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4652
4653 if test "$gt_cv_func_gettext_libc" != "yes"; then
4654 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4655 echo "configure:4656: checking for bindtextdomain in -lintl" >&5
4656 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660 ac_save_LIBS="$LIBS"
4661 LIBS="-lintl $LIBS"
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4668 char bindtextdomain();
4669
4670 int main() {
4671 bindtextdomain()
4672 ; return 0; }
4673 EOF
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 rm -rf conftest*
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4677 else
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 eval "ac_cv_lib_$ac_lib_var=no"
4682 fi
4683 rm -f conftest*
4684 LIBS="$ac_save_LIBS"
4685
4686 fi
4687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4690 echo "configure:4691: checking for gettext in libintl" >&5
4691 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4693 else
4694 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4695 echo "configure:4696: checking for gettext in -lintl" >&5
4696 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 ac_save_LIBS="$LIBS"
4701 LIBS="-lintl $LIBS"
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char gettext();
4709
4710 int main() {
4711 gettext()
4712 ; return 0; }
4713 EOF
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4715 rm -rf conftest*
4716 eval "ac_cv_lib_$ac_lib_var=yes"
4717 else
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 rm -rf conftest*
4721 eval "ac_cv_lib_$ac_lib_var=no"
4722 fi
4723 rm -f conftest*
4724 LIBS="$ac_save_LIBS"
4725
4726 fi
4727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4728 echo "$ac_t""yes" 1>&6
4729 gt_cv_func_gettext_libintl=yes
4730 else
4731 echo "$ac_t""no" 1>&6
4732 gt_cv_func_gettext_libintl=no
4733 fi
4734
4735 fi
4736
4737 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4738 else
4739 echo "$ac_t""no" 1>&6
4740 fi
4741
4742 fi
4743
4744 if test "$gt_cv_func_gettext_libc" = "yes" \
4745 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4746 cat >> confdefs.h <<\EOF
4747 #define HAVE_GETTEXT 1
4748 EOF
4749
4750 # Extract the first word of "msgfmt", so it can be a program name with args.
4751 set dummy msgfmt; ac_word=$2
4752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_word" >&5
4754 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4756 else
4757 case "$MSGFMT" in
4758 /*)
4759 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4760 ;;
4761 *)
4762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4763 for ac_dir in $PATH; do
4764 test -z "$ac_dir" && ac_dir=.
4765 if test -f $ac_dir/$ac_word; then
4766 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4767 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
4768 break
4769 fi
4770 fi
4771 done
4772 IFS="$ac_save_ifs"
4773 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
4774 ;;
4775 esac
4776 fi
4777 MSGFMT="$gcc_cv_path_MSGFMT"
4778 if test -n "$MSGFMT"; then
4779 echo "$ac_t""$MSGFMT" 1>&6
4780 else
4781 echo "$ac_t""no" 1>&6
4782 fi
4783 if test "$MSGFMT" != "no"; then
4784 for ac_func in dcgettext
4785 do
4786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_func" >&5
4788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 /* System header to define __stub macros and hopefully few prototypes,
4795 which can conflict with char $ac_func(); below. */
4796 #include <assert.h>
4797 /* Override any gcc2 internal prototype to avoid an error. */
4798 /* We use char because int might match the return type of a gcc2
4799 builtin and then its argument prototype would still apply. */
4800 char $ac_func();
4801
4802 int main() {
4803
4804 /* The GNU C library defines this for functions which it implements
4805 to always fail with ENOSYS. Some functions are actually named
4806 something starting with __ and the normal name is an alias. */
4807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4808 choke me
4809 #else
4810 $ac_func();
4811 #endif
4812
4813 ; return 0; }
4814 EOF
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 rm -rf conftest*
4817 eval "ac_cv_func_$ac_func=yes"
4818 else
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 rm -rf conftest*
4822 eval "ac_cv_func_$ac_func=no"
4823 fi
4824 rm -f conftest*
4825 fi
4826
4827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_func 1
4832 EOF
4833
4834 else
4835 echo "$ac_t""no" 1>&6
4836 fi
4837 done
4838
4839 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4840 set dummy gmsgfmt; ac_word=$2
4841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4842 echo "configure:4843: checking for $ac_word" >&5
4843 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4846 case "$GMSGFMT" in
4847 /*)
4848 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4849 ;;
4850 ?:/*)
4851 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4852 ;;
4853 *)
4854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4855 ac_dummy="$PATH"
4856 for ac_dir in $ac_dummy; do
4857 test -z "$ac_dir" && ac_dir=.
4858 if test -f $ac_dir/$ac_word; then
4859 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
4860 break
4861 fi
4862 done
4863 IFS="$ac_save_ifs"
4864 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
4865 ;;
4866 esac
4867 fi
4868 GMSGFMT="$gcc_cv_path_GMSGFMT"
4869 if test -n "$GMSGFMT"; then
4870 echo "$ac_t""$GMSGFMT" 1>&6
4871 else
4872 echo "$ac_t""no" 1>&6
4873 fi
4874
4875 # Extract the first word of "xgettext", so it can be a program name with args.
4876 set dummy xgettext; ac_word=$2
4877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4878 echo "configure:4879: checking for $ac_word" >&5
4879 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4881 else
4882 case "$XGETTEXT" in
4883 /*)
4884 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4885 ;;
4886 *)
4887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4888 for ac_dir in $PATH; do
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f $ac_dir/$ac_word; then
4891 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4892 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
4893 break
4894 fi
4895 fi
4896 done
4897 IFS="$ac_save_ifs"
4898 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
4899 ;;
4900 esac
4901 fi
4902 XGETTEXT="$gcc_cv_path_XGETTEXT"
4903 if test -n "$XGETTEXT"; then
4904 echo "$ac_t""$XGETTEXT" 1>&6
4905 else
4906 echo "$ac_t""no" 1>&6
4907 fi
4908
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912
4913 int main() {
4914 extern int _nl_msg_cat_cntr;
4915 return _nl_msg_cat_cntr
4916 ; return 0; }
4917 EOF
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 rm -rf conftest*
4920 CATOBJEXT=.gmo
4921 DATADIRNAME=share
4922 else
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4925 rm -rf conftest*
4926 CATOBJEXT=.mo
4927 DATADIRNAME=lib
4928 fi
4929 rm -f conftest*
4930 INSTOBJEXT=.mo
4931 else
4932 create_catalogs="no"
4933 fi
4934 fi
4935
4936 else
4937 echo "$ac_t""no" 1>&6
4938 fi
4939
4940
4941 if test "$CATOBJEXT" = "NONE"; then
4942 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4943 echo "configure:4944: checking whether catgets can be used" >&5
4944 # Check whether --with-catgets or --without-catgets was given.
4945 if test "${with_catgets+set}" = set; then
4946 withval="$with_catgets"
4947 nls_cv_use_catgets=$withval
4948 else
4949 nls_cv_use_catgets=no
4950 fi
4951
4952 echo "$ac_t""$nls_cv_use_catgets" 1>&6
4953
4954 if test "$nls_cv_use_catgets" = "yes"; then
4955 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4956 echo "configure:4957: checking for main in -li" >&5
4957 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961 ac_save_LIBS="$LIBS"
4962 LIBS="-li $LIBS"
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4966
4967 int main() {
4968 main()
4969 ; return 0; }
4970 EOF
4971 if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972 rm -rf conftest*
4973 eval "ac_cv_lib_$ac_lib_var=yes"
4974 else
4975 echo "configure: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 rm -rf conftest*
4978 eval "ac_cv_lib_$ac_lib_var=no"
4979 fi
4980 rm -f conftest*
4981 LIBS="$ac_save_LIBS"
4982
4983 fi
4984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4985 echo "$ac_t""yes" 1>&6
4986 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4988 cat >> confdefs.h <<EOF
4989 #define $ac_tr_lib 1
4990 EOF
4991
4992 LIBS="-li $LIBS"
4993
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998 echo $ac_n "checking for catgets""... $ac_c" 1>&6
4999 echo "configure:5000: checking for catgets" >&5
5000 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5002 else
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 /* System header to define __stub macros and hopefully few prototypes,
5007 which can conflict with char catgets(); below. */
5008 #include <assert.h>
5009 /* Override any gcc2 internal prototype to avoid an error. */
5010 /* We use char because int might match the return type of a gcc2
5011 builtin and then its argument prototype would still apply. */
5012 char catgets();
5013
5014 int main() {
5015
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_catgets) || defined (__stub___catgets)
5020 choke me
5021 #else
5022 catgets();
5023 #endif
5024
5025 ; return 0; }
5026 EOF
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 rm -rf conftest*
5029 eval "ac_cv_func_catgets=yes"
5030 else
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 rm -rf conftest*
5034 eval "ac_cv_func_catgets=no"
5035 fi
5036 rm -f conftest*
5037 fi
5038
5039 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 cat >> confdefs.h <<\EOF
5042 #define HAVE_CATGETS 1
5043 EOF
5044
5045 INTLOBJS="\$(CATOBJS)"
5046 # Extract the first word of "gencat", so it can be a program name with args.
5047 set dummy gencat; ac_word=$2
5048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5049 echo "configure:5050: checking for $ac_word" >&5
5050 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5052 else
5053 case "$GENCAT" in
5054 /*)
5055 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5056 ;;
5057 ?:/*)
5058 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5059 ;;
5060 *)
5061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5062 ac_dummy="$PATH"
5063 for ac_dir in $ac_dummy; do
5064 test -z "$ac_dir" && ac_dir=.
5065 if test -f $ac_dir/$ac_word; then
5066 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5067 break
5068 fi
5069 done
5070 IFS="$ac_save_ifs"
5071 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5072 ;;
5073 esac
5074 fi
5075 GENCAT="$gcc_cv_path_GENCAT"
5076 if test -n "$GENCAT"; then
5077 echo "$ac_t""$GENCAT" 1>&6
5078 else
5079 echo "$ac_t""no" 1>&6
5080 fi
5081 if test "$GENCAT" != "no"; then
5082 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5083 set dummy gmsgfmt; ac_word=$2
5084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5085 echo "configure:5086: checking for $ac_word" >&5
5086 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5087 echo $ac_n "(cached) $ac_c" 1>&6
5088 else
5089 case "$GMSGFMT" in
5090 /*)
5091 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5092 ;;
5093 ?:/*)
5094 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5095 ;;
5096 *)
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5098 ac_dummy="$PATH"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5103 break
5104 fi
5105 done
5106 IFS="$ac_save_ifs"
5107 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5108 ;;
5109 esac
5110 fi
5111 GMSGFMT="$gcc_cv_path_GMSGFMT"
5112 if test -n "$GMSGFMT"; then
5113 echo "$ac_t""$GMSGFMT" 1>&6
5114 else
5115 echo "$ac_t""no" 1>&6
5116 fi
5117
5118 if test "$GMSGFMT" = "no"; then
5119 # Extract the first word of "msgfmt", so it can be a program name with args.
5120 set dummy msgfmt; ac_word=$2
5121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5122 echo "configure:5123: checking for $ac_word" >&5
5123 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125 else
5126 case "$GMSGFMT" in
5127 /*)
5128 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5129 ;;
5130 *)
5131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5132 for ac_dir in $PATH; do
5133 test -z "$ac_dir" && ac_dir=.
5134 if test -f $ac_dir/$ac_word; then
5135 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5136 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5137 break
5138 fi
5139 fi
5140 done
5141 IFS="$ac_save_ifs"
5142 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5143 ;;
5144 esac
5145 fi
5146 GMSGFMT="$gcc_cv_path_GMSGFMT"
5147 if test -n "$GMSGFMT"; then
5148 echo "$ac_t""$GMSGFMT" 1>&6
5149 else
5150 echo "$ac_t""no" 1>&6
5151 fi
5152
5153 if test "$GMSGFMT" = "msgfmt"; then
5154 create_catalogs="no"
5155 fi
5156 fi
5157 # Extract the first word of "xgettext", so it can be a program name with args.
5158 set dummy xgettext; ac_word=$2
5159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_word" >&5
5161 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5163 else
5164 case "$XGETTEXT" in
5165 /*)
5166 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5167 ;;
5168 *)
5169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5170 for ac_dir in $PATH; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f $ac_dir/$ac_word; then
5173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5174 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5175 break
5176 fi
5177 fi
5178 done
5179 IFS="$ac_save_ifs"
5180 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5181 ;;
5182 esac
5183 fi
5184 XGETTEXT="$gcc_cv_path_XGETTEXT"
5185 if test -n "$XGETTEXT"; then
5186 echo "$ac_t""$XGETTEXT" 1>&6
5187 else
5188 echo "$ac_t""no" 1>&6
5189 fi
5190
5191 USE_INCLUDED_LIBINTL=yes
5192 CATOBJEXT=.cat
5193 INSTOBJEXT=.cat
5194 DATADIRNAME=lib
5195 INTLDEPS='$(top_builddir)/intl/libintl.a'
5196 INTLLIBS=$INTLDEPS
5197 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5198 nls_cv_header_intl=intl/libintl.h
5199 nls_cv_header_libgt=intl/libgettext.h
5200 fi
5201 else
5202 echo "$ac_t""no" 1>&6
5203 fi
5204
5205 fi
5206 fi
5207
5208 if test "$CATOBJEXT" = "NONE"; then
5209 nls_cv_use_gnu_gettext=yes
5210 fi
5211 fi
5212
5213 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5214 INTLOBJS="\$(GETTOBJS)"
5215 # Extract the first word of "msgfmt", so it can be a program name with args.
5216 set dummy msgfmt; ac_word=$2
5217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5218 echo "configure:5219: checking for $ac_word" >&5
5219 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5221 else
5222 case "$MSGFMT" in
5223 /*)
5224 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5225 ;;
5226 *)
5227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5228 for ac_dir in $PATH; do
5229 test -z "$ac_dir" && ac_dir=.
5230 if test -f $ac_dir/$ac_word; then
5231 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5232 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5233 break
5234 fi
5235 fi
5236 done
5237 IFS="$ac_save_ifs"
5238 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5239 ;;
5240 esac
5241 fi
5242 MSGFMT="$gcc_cv_path_MSGFMT"
5243 if test -n "$MSGFMT"; then
5244 echo "$ac_t""$MSGFMT" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5247 fi
5248
5249 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5250 set dummy gmsgfmt; ac_word=$2
5251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_word" >&5
5253 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5256 case "$GMSGFMT" in
5257 /*)
5258 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5259 ;;
5260 ?:/*)
5261 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5262 ;;
5263 *)
5264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5265 ac_dummy="$PATH"
5266 for ac_dir in $ac_dummy; do
5267 test -z "$ac_dir" && ac_dir=.
5268 if test -f $ac_dir/$ac_word; then
5269 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5270 break
5271 fi
5272 done
5273 IFS="$ac_save_ifs"
5274 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5275 ;;
5276 esac
5277 fi
5278 GMSGFMT="$gcc_cv_path_GMSGFMT"
5279 if test -n "$GMSGFMT"; then
5280 echo "$ac_t""$GMSGFMT" 1>&6
5281 else
5282 echo "$ac_t""no" 1>&6
5283 fi
5284
5285 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5286 create_catalogs="no"
5287 fi
5288 # Extract the first word of "xgettext", so it can be a program name with args.
5289 set dummy xgettext; ac_word=$2
5290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_word" >&5
5292 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5294 else
5295 case "$XGETTEXT" in
5296 /*)
5297 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5298 ;;
5299 *)
5300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5301 for ac_dir in $PATH; do
5302 test -z "$ac_dir" && ac_dir=.
5303 if test -f $ac_dir/$ac_word; then
5304 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5305 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5306 break
5307 fi
5308 fi
5309 done
5310 IFS="$ac_save_ifs"
5311 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5312 ;;
5313 esac
5314 fi
5315 XGETTEXT="$gcc_cv_path_XGETTEXT"
5316 if test -n "$XGETTEXT"; then
5317 echo "$ac_t""$XGETTEXT" 1>&6
5318 else
5319 echo "$ac_t""no" 1>&6
5320 fi
5321
5322
5323 USE_INCLUDED_LIBINTL=yes
5324 CATOBJEXT=.gmo
5325 INSTOBJEXT=.mo
5326 DATADIRNAME=share
5327 INTLDEPS='$(top_builddir)/intl/libintl.a'
5328 INTLLIBS=$INTLDEPS
5329 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5330 nls_cv_header_intl=intl/libintl.h
5331 nls_cv_header_libgt=intl/libgettext.h
5332 fi
5333
5334 if test "$XGETTEXT" != ":"; then
5335 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5336 : ;
5337 else
5338 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5339 XGETTEXT=":"
5340 fi
5341 fi
5342
5343
5344
5345 # We need to process the po/ directory.
5346 POSUB=po
5347 else
5348 DATADIRNAME=share
5349 nls_cv_header_intl=intl/libintl.h
5350 nls_cv_header_libgt=intl/libgettext.h
5351 fi
5352
5353
5354
5355
5356 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5357 # because some of the sources are only built for this goal.
5358 if test "$PACKAGE" = gettext; then
5359 USE_NLS=yes
5360 USE_INCLUDED_LIBINTL=yes
5361 fi
5362
5363 for lang in $ALL_LINGUAS; do
5364 GMOFILES="$GMOFILES $lang.gmo"
5365 POFILES="$POFILES $lang.po"
5366 done
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381 if test "x$create_catalogs" = "xno"; then
5382 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5383 fi
5384
5385 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5386 if test "x$ALL_LINGUAS" = "x"; then
5387 LINGUAS=
5388 else
5389 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5390 echo "configure:5391: checking for catalogs to be installed" >&5
5391 if test "x$LINGUAS" = "x"; then
5392 LINGUAS=$ALL_LINGUAS
5393 else
5394 NEW_LINGUAS=
5395 for lang in $ALL_LINGUAS; do
5396 case " $LINGUAS " in
5397 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5398 esac
5399 done
5400 LINGUAS=$NEW_LINGUAS
5401 fi
5402 echo "$ac_t""$LINGUAS" 1>&6
5403 fi
5404
5405 if test -n "$LINGUAS"; then
5406 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5407 fi
5408 fi
5409
5410 if test $ac_cv_header_locale_h = yes; then
5411 INCLUDE_LOCALE_H="#include <locale.h>"
5412 else
5413 INCLUDE_LOCALE_H="\
5414 /* The system does not provide the header <locale.h>. Take care yourself. */"
5415 fi
5416
5417
5418 test -d intl || mkdir intl
5419 if test "$CATOBJEXT" = ".cat"; then
5420 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5421 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5422 echo "configure:5423: checking for linux/version.h" >&5
5423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 #include <linux/version.h>
5430 EOF
5431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5432 { (eval echo configure:5433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5434 if test -z "$ac_err"; then
5435 rm -rf conftest*
5436 eval "ac_cv_header_$ac_safe=yes"
5437 else
5438 echo "$ac_err" >&5
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 rm -rf conftest*
5442 eval "ac_cv_header_$ac_safe=no"
5443 fi
5444 rm -f conftest*
5445 fi
5446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 msgformat=linux
5449 else
5450 echo "$ac_t""no" 1>&6
5451 msgformat=xopen
5452 fi
5453
5454
5455 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5456 fi
5457 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5458 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5459
5460 if test "$PACKAGE" = "gettext"; then
5461 GT_NO="#NO#"
5462 GT_YES=
5463 else
5464 GT_NO=
5465 GT_YES="#YES#"
5466 fi
5467
5468
5469
5470 MKINSTALLDIRS=
5471 if test -n "$ac_aux_dir"; then
5472 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5473 fi
5474 if test -z "$MKINSTALLDIRS"; then
5475 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5476 fi
5477
5478
5479 l=
5480
5481
5482 test -d po || mkdir po
5483 if test "x$srcdir" != "x."; then
5484 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5485 posrcprefix="$srcdir/"
5486 else
5487 posrcprefix="../$srcdir/"
5488 fi
5489 else
5490 posrcprefix="../"
5491 fi
5492 rm -f po/POTFILES
5493 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5494 < $srcdir/po/POTFILES.in > po/POTFILES
5495
5496 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5497
5498 # Windows32 Registry support for specifying GCC installation paths.
5499 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5500 if test "${enable_win32_registry+set}" = set; then
5501 enableval="$enable_win32_registry"
5502 :
5503 fi
5504
5505
5506 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5507 echo "configure:5508: checking whether windows registry support is requested" >&5
5508 if test x$enable_win32_registry != xno; then
5509 cat >> confdefs.h <<\EOF
5510 #define ENABLE_WIN32_REGISTRY 1
5511 EOF
5512
5513 echo "$ac_t""yes" 1>&6
5514 else
5515 echo "$ac_t""no" 1>&6
5516 fi
5517
5518 # Check if user specified a different registry key.
5519 case x${enable_win32_registry} in
5520 x | xyes)
5521 # default.
5522 gcc_cv_win32_registry_key="$VERSION"
5523 ;;
5524 xno)
5525 # no registry lookup.
5526 gcc_cv_win32_registry_key=''
5527 ;;
5528 *)
5529 # user-specified key.
5530 gcc_cv_win32_registry_key="$enable_win32_registry"
5531 ;;
5532 esac
5533
5534 if test x$enable_win32_registry != xno; then
5535 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5536 echo "configure:5537: checking registry key on windows hosts" >&5
5537 cat >> confdefs.h <<EOF
5538 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5539 EOF
5540
5541 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5542 fi
5543
5544 # Get an absolute path to the GCC top-level source directory
5545 holddir=`pwd`
5546 cd $srcdir
5547 topdir=`pwd`
5548 cd $holddir
5549
5550 # Conditionalize the makefile for this host machine.
5551 # Make-host contains the concatenation of all host makefile fragments
5552 # [there can be more than one]. This file is built by configure.frag.
5553 host_overrides=Make-host
5554 dep_host_xmake_file=
5555 for f in .. ${host_xmake_file}
5556 do
5557 if test -f ${srcdir}/config/$f
5558 then
5559 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5560 fi
5561 done
5562
5563 # Conditionalize the makefile for this target machine.
5564 # Make-target contains the concatenation of all host makefile fragments
5565 # [there can be more than one]. This file is built by configure.frag.
5566 target_overrides=Make-target
5567 dep_tmake_file=
5568 for f in .. ${tmake_file}
5569 do
5570 if test -f ${srcdir}/config/$f
5571 then
5572 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5573 fi
5574 done
5575
5576 # If the host doesn't support symlinks, modify CC in
5577 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5578 # Otherwise, we can use "CC=$(CC)".
5579 rm -f symtest.tem
5580 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5581 then
5582 cc_set_by_configure="\$(CC)"
5583 quoted_cc_set_by_configure="\$(CC)"
5584 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5585 else
5586 rm -f symtest.tem
5587 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5588 then
5589 symbolic_link="cp -p"
5590 else
5591 symbolic_link="cp"
5592 fi
5593 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5594 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5595 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5596 fi
5597 rm -f symtest.tem
5598
5599 out_object_file=`basename $out_file .c`.o
5600
5601 tm_file_list=
5602 for f in $tm_file; do
5603 case $f in
5604 gansidecl.h )
5605 tm_file_list="${tm_file_list} $f" ;;
5606 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
5607 esac
5608 done
5609
5610 host_xm_file_list=
5611 for f in $host_xm_file; do
5612 case $f in
5613 auto-host.h | gansidecl.h | hwint.h )
5614 host_xm_file_list="${host_xm_file_list} $f" ;;
5615 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5616 esac
5617 done
5618
5619 build_xm_file_list=
5620 for f in $build_xm_file; do
5621 case $f in
5622 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
5623 build_xm_file_list="${build_xm_file_list} $f" ;;
5624 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5625 esac
5626 done
5627
5628 # Define macro CROSS_COMPILE in compilation
5629 # if this is a cross-compiler.
5630 # Also use all.cross instead of all.internal
5631 # and add cross-make to Makefile.
5632 cross_overrides="/dev/null"
5633 if test x$host != x$target
5634 then
5635 cross_defines="CROSS=-DCROSS_COMPILE"
5636 cross_overrides="${topdir}/cross-make"
5637 fi
5638
5639 # If this is a cross-compiler that does not
5640 # have its own set of headers then define
5641 # inhibit_libc
5642
5643 # If this is using newlib, then define inhibit_libc in
5644 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5645 # libgcc.a, but that's OK because newlib should have its own version of
5646 # assert.h.
5647 inhibit_libc=
5648 if test x$host != x$target && test x$with_headers = x; then
5649 inhibit_libc=-Dinhibit_libc
5650 else
5651 if test x$with_newlib = xyes; then
5652 inhibit_libc=-Dinhibit_libc
5653 fi
5654 fi
5655
5656
5657 # When building gcc with a cross-compiler, we need to fix a few things.
5658 # This must come after cross-make as we want all.build to override
5659 # all.cross.
5660 build_overrides="/dev/null"
5661 if test x$build != x$host
5662 then
5663 build_overrides="${topdir}/build-make"
5664 fi
5665
5666 # Expand extra_headers to include complete path.
5667 # This substitutes for lots of t-* files.
5668 extra_headers_list=
5669 if test "x$extra_headers" = x
5670 then true
5671 else
5672 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5673 for file in $extra_headers;
5674 do
5675 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5676 done
5677 fi
5678
5679 if test x$use_collect2 = xno; then
5680 use_collect2=
5681 fi
5682
5683 # Add a definition of USE_COLLECT2 if system wants one.
5684 # Also tell toplev.c what to do.
5685 # This substitutes for lots of t-* files.
5686 if test x$use_collect2 = x
5687 then
5688 will_use_collect2=
5689 maybe_use_collect2=
5690 else
5691 will_use_collect2="collect2"
5692 maybe_use_collect2="-DUSE_COLLECT2"
5693 fi
5694
5695 # If we have gas in the build tree, make a link to it.
5696 if test -f ../gas/Makefile; then
5697 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5698 fi
5699
5700 # If we have nm in the build tree, make a link to it.
5701 if test -f ../binutils/Makefile; then
5702 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5703 fi
5704
5705 # If we have ld in the build tree, make a link to it.
5706 if test -f ../ld/Makefile; then
5707 # if test x$use_collect2 = x; then
5708 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5709 # else
5710 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5711 # fi
5712 fi
5713
5714 # Figure out what assembler we will be using.
5715 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5716 echo "configure:5717: checking what assembler to use" >&5
5717 gcc_cv_as=
5718 gcc_cv_gas_major_version=
5719 gcc_cv_gas_minor_version=
5720 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5721 if test -x "$DEFAULT_ASSEMBLER"; then
5722 gcc_cv_as="$DEFAULT_ASSEMBLER"
5723 elif test -x "$AS"; then
5724 gcc_cv_as="$AS"
5725 elif test -x as$host_exeext; then
5726 # Build using assembler in the current directory.
5727 gcc_cv_as=./as$host_exeext
5728 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5729 # Single tree build which includes gas.
5730 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5731 do
5732 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5733 if test x$gcc_cv_gas_version != x; then
5734 break
5735 fi
5736 done
5737 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5738 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5739 fi
5740
5741 if test "x$gcc_cv_as" = x -a x$host = x$target; then
5742 # Native build.
5743 # Search the same directories that the installed compiler will
5744 # search. Else we may find the wrong assembler and lose. If we
5745 # do not find a suitable assembler binary, then try the user's
5746 # path.
5747 #
5748 # Also note we have to check MD_EXEC_PREFIX before checking the
5749 # user's path. Unfortunately, there is no good way to get at the
5750 # value of MD_EXEC_PREFIX here. So we do a brute force search
5751 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5752 # to be fixed as part of the make/configure rewrite too.
5753
5754 if test "x$exec_prefix" = xNONE; then
5755 if test "x$prefix" = xNONE; then
5756 test_prefix=/usr/local
5757 else
5758 test_prefix=$prefix
5759 fi
5760 else
5761 test_prefix=$exec_prefix
5762 fi
5763
5764 # If the loop below does not find an assembler, then use whatever
5765 # one we can find in the users's path.
5766 # user's path.
5767 as=as$host_exeext
5768
5769 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
5770 $test_prefix/lib/gcc-lib/$target \
5771 /usr/lib/gcc/$target/$gcc_version \
5772 /usr/lib/gcc/$target \
5773 $test_prefix/$target/bin/$target/$gcc_version \
5774 $test_prefix/$target/bin \
5775 /usr/libexec \
5776 /usr/ccs/gcc \
5777 /usr/ccs/bin \
5778 /udk/usr/ccs/bin \
5779 /bsd43/usr/lib/cmplrs/cc \
5780 /usr/cross64/usr/bin \
5781 /usr/lib/cmplrs/cc \
5782 /sysv/usr/lib/cmplrs/cc \
5783 /svr4/usr/lib/cmplrs/cc \
5784 /usr/bin"
5785
5786 for dir in $test_dirs; do
5787 if test -f $dir/as$host_exeext; then
5788 gcc_cv_as=$dir/as$host_exeext
5789 break;
5790 fi
5791 done
5792 fi
5793 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5794 echo "$ac_t"""newly built gas"" 1>&6
5795 else
5796 echo "$ac_t""$gcc_cv_as" 1>&6
5797 fi
5798
5799 # Figure out what nm we will be using.
5800 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5801 echo "configure:5802: checking what nm to use" >&5
5802 if test -x nm$host_exeext; then
5803 gcc_cv_nm=./nm$host_exeext
5804 elif test x$host = x$target; then
5805 # Native build.
5806 gcc_cv_nm=nm$host_exeext
5807 fi
5808 echo "$ac_t""$gcc_cv_nm" 1>&6
5809
5810 # Figure out what assembler alignment features are present.
5811 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5812 echo "configure:5813: checking assembler alignment features" >&5
5813 gcc_cv_as_alignment_features=none
5814 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5815 # Gas version 2.6 and later support for .balign and .p2align.
5816 # bytes to skip when using .p2align.
5817 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
5818 gcc_cv_as_alignment_features=".balign and .p2align"
5819 cat >> confdefs.h <<\EOF
5820 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5821 EOF
5822
5823 fi
5824 # Gas version 2.8 and later support specifying the maximum
5825 # bytes to skip when using .p2align.
5826 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
5827 gcc_cv_as_alignment_features=".p2align including maximum skip"
5828 cat >> confdefs.h <<\EOF
5829 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5830 EOF
5831
5832 fi
5833 elif test x$gcc_cv_as != x; then
5834 # Check if we have .balign and .p2align
5835 echo ".balign 4" > conftest.s
5836 echo ".p2align 2" >> conftest.s
5837 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5838 gcc_cv_as_alignment_features=".balign and .p2align"
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5841 EOF
5842
5843 fi
5844 rm -f conftest.s conftest.o
5845 # Check if specifying the maximum bytes to skip when
5846 # using .p2align is supported.
5847 echo ".p2align 4,,7" > conftest.s
5848 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5849 gcc_cv_as_alignment_features=".p2align including maximum skip"
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5852 EOF
5853
5854 fi
5855 rm -f conftest.s conftest.o
5856 fi
5857 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5858
5859 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5860 echo "configure:5861: checking assembler subsection support" >&5
5861 gcc_cv_as_subsections=no
5862 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5863 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5864 gcc_cv_as_subsections="working .subsection -1"
5865 fi
5866 elif test x$gcc_cv_as != x; then
5867 # Check if we have .subsection
5868 echo ".subsection 1" > conftest.s
5869 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5870 gcc_cv_as_subsections=".subsection"
5871 if test x$gcc_cv_nm != x; then
5872 cat > conftest.s <<EOF
5873 conftest_label1: .word 0
5874 .subsection -1
5875 conftest_label2: .word 0
5876 .previous
5877 EOF
5878 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5879 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
5880 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
5881 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
5882 :
5883 else
5884 gcc_cv_as_subsections="working .subsection -1"
5885 fi
5886 fi
5887 fi
5888 fi
5889 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5890 fi
5891 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_GAS_SUBSECTION_ORDERING 1
5894 EOF
5895
5896 fi
5897 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5898
5899 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
5900 echo "configure:5901: checking assembler weak support" >&5
5901 gcc_cv_as_weak=no
5902 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5903 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
5904 gcc_cv_as_weak="yes"
5905 fi
5906 elif test x$gcc_cv_as != x; then
5907 # Check if we have .weak
5908 echo " .weak foobar" > conftest.s
5909 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5910 gcc_cv_as_weak="yes"
5911 fi
5912 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5913 fi
5914 if test x"$gcc_cv_as_weak" = xyes; then
5915 cat >> confdefs.h <<\EOF
5916 #define HAVE_GAS_WEAK 1
5917 EOF
5918
5919 fi
5920 echo "$ac_t""$gcc_cv_as_weak" 1>&6
5921
5922 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
5923 echo "configure:5924: checking assembler hidden support" >&5
5924 gcc_cv_as_hidden=no
5925 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5926 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5927 gcc_cv_as_hidden="yes"
5928 fi
5929 elif test x$gcc_cv_as != x; then
5930 # Check if we have .hidden
5931 echo " .hidden foobar" > conftest.s
5932 echo "foobar:" >> conftest.s
5933 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5934 gcc_cv_as_hidden="yes"
5935 fi
5936 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5937 fi
5938 if test x"$gcc_cv_as_hidden" = xyes; then
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_GAS_HIDDEN 1
5941 EOF
5942
5943 fi
5944 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
5945
5946 case "$target" in
5947 sparc*-*-*)
5948 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
5949 echo "configure:5950: checking assembler .register pseudo-op support" >&5
5950 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953
5954 gcc_cv_as_register_pseudo_op=unknown
5955 if test x$gcc_cv_as != x; then
5956 # Check if we have .register
5957 echo ".register %g2, #scratch" > conftest.s
5958 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5959 gcc_cv_as_register_pseudo_op=yes
5960 else
5961 gcc_cv_as_register_pseudo_op=no
5962 fi
5963 rm -f conftest.s conftest.o
5964 fi
5965
5966 fi
5967
5968 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
5969 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
5970 cat >> confdefs.h <<\EOF
5971 #define HAVE_AS_REGISTER_PSEUDO_OP 1
5972 EOF
5973
5974 fi
5975
5976 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
5977 echo "configure:5978: checking assembler supports -relax" >&5
5978 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5980 else
5981
5982 gcc_cv_as_relax_opt=unknown
5983 if test x$gcc_cv_as != x; then
5984 # Check if gas supports -relax
5985 echo ".text" > conftest.s
5986 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
5987 gcc_cv_as_relax_opt=yes
5988 else
5989 gcc_cv_as_relax_opt=no
5990 fi
5991 rm -f conftest.s conftest.o
5992 fi
5993
5994 fi
5995
5996 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
5997 if test "x$gcc_cv_as_relax_opt" = xyes; then
5998 cat >> confdefs.h <<\EOF
5999 #define HAVE_AS_RELAX_OPTION 1
6000 EOF
6001
6002 fi
6003
6004 case "$tm_file" in
6005 *64*)
6006 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6007 echo "configure:6008: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6008 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6010 else
6011
6012 if test -n "$gcc_cv_as"; then
6013 echo ".xword foo" > conftest.s
6014 gcc_cv_as_flags64=no
6015 for flag in "-xarch=v9" "-64 -Av9"; do
6016 if $gcc_cv_as $flag -o conftest.o conftest.s \
6017 > /dev/null 2>&1; then
6018 gcc_cv_as_flags64=$flag
6019 break
6020 fi
6021 done
6022 rm -f conftest.s conftest.o
6023 else
6024 if test "$gas" = yes; then
6025 gcc_cv_as_flags64="-64 -Av9"
6026 else
6027 gcc_cv_as_flags64="-xarch=v9"
6028 fi
6029 fi
6030
6031 fi
6032
6033 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6034 if test "x$gcc_cv_as_flags64" = xno; then
6035
6036 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6037 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6038
6039 else
6040 cat >> confdefs.h <<EOF
6041 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6042 EOF
6043
6044 fi
6045 ;;
6046 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6047 ;;
6048 esac
6049
6050 if test "x$gcc_cv_as_flags64" != xno; then
6051 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6052 echo "configure:6053: checking for assembler offsetable %lo() support" >&5
6053 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056
6057 gcc_cv_as_offsetable_lo10=unknown
6058 if test "x$gcc_cv_as" != x; then
6059 # Check if assembler has offsetable %lo()
6060 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6061 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6062 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6063 > /dev/null 2>&1 &&
6064 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6065 > /dev/null 2>&1; then
6066 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6067 gcc_cv_as_offsetable_lo10=no
6068 else
6069 gcc_cv_as_offsetable_lo10=yes
6070 fi
6071 else
6072 gcc_cv_as_offsetable_lo10=no
6073 fi
6074 rm -f conftest.s conftest.o conftest1.s conftest1.o
6075 fi
6076
6077 fi
6078
6079 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6080 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6081 cat >> confdefs.h <<\EOF
6082 #define HAVE_AS_OFFSETABLE_LO10 1
6083 EOF
6084
6085 fi
6086 fi
6087 ;;
6088
6089 i[34567]86-*-*)
6090 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6091 echo "configure:6092: checking assembler instructions" >&5
6092 gcc_cv_as_instructions=
6093 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6094 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
6095 gcc_cv_as_instructions="filds fists"
6096 fi
6097 elif test x$gcc_cv_as != x; then
6098 set "filds fists" "filds mem; fists mem"
6099 while test $# -gt 0
6100 do
6101 echo "$2" > conftest.s
6102 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6103 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6104 fi
6105 shift 2
6106 done
6107 rm -f conftest.s conftest.o
6108 fi
6109 if test x"$gcc_cv_as_instructions" != x; then
6110 cat >> confdefs.h <<EOF
6111 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6112 EOF
6113
6114 fi
6115 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6116 ;;
6117 esac
6118
6119 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6120 echo "configure:6121: checking assembler dwarf2 debug_line support" >&5
6121 gcc_cv_as_dwarf2_debug_line=no
6122 # ??? Not all targets support dwarf2 debug_line, even within a version
6123 # of gas. Moreover, we need to emit a valid instruction to trigger any
6124 # info to the output file. So, as supported targets are added to gas 2.11,
6125 # add some instruction here to (also) show we expect this might work.
6126 # ??? Once 2.11 is released, probably need to add first known working
6127 # version to the per-target configury.
6128 case "$target" in
6129 i?86*-*-* | mips*-*-* | alpha*-*-* | sparc*-*-*)
6130 insn="nop"
6131 ;;
6132 ia64*-*-*)
6133 insn="nop 0"
6134 ;;
6135 esac
6136 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6137 then
6138 if test "$gcc_cv_gas_major_version" -eq 2 \
6139 -a "$gcc_cv_gas_minor_version" -ge 11 \
6140 -o "$gcc_cv_gas_major_version" -gt 2 \
6141 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6142 && test x"$insn" != x ; then
6143 gcc_cv_as_dwarf2_debug_line="yes"
6144 fi
6145 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6146 echo ' .file 0 "conftest.s"' > conftest.s
6147 echo ' .loc 0 3 0' >> conftest.s
6148 echo " $insn" >> conftest.s
6149 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6150 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6151 gcc_cv_as_dwarf2_debug_line="yes"
6152 fi
6153 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6154 fi
6155 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6156 cat >> confdefs.h <<\EOF
6157 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6158 EOF
6159
6160 fi
6161 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6162
6163 # Figure out what language subdirectories are present.
6164 # Look if the user specified --enable-languages="..."; if not, use
6165 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6166 # go away some day.
6167 if test x"${enable_languages+set}" != xset; then
6168 if test x"${LANGUAGES+set}" = xset; then
6169 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6170 else
6171 enable_languages=all
6172 fi
6173 else
6174 if test x"${enable_languages}" = x; then
6175 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6176 fi
6177 fi
6178 subdirs=
6179 for lang in ${srcdir}/*/config-lang.in ..
6180 do
6181 case $lang in
6182 ..) ;;
6183 # The odd quoting in the next line works around
6184 # an apparent bug in bash 1.12 on linux.
6185 ${srcdir}/[*]/config-lang.in) ;;
6186 *)
6187 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6188 if test "x$lang_alias" = x
6189 then
6190 echo "$lang doesn't set \$language." 1>&2
6191 exit 1
6192 fi
6193 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
6194 add_this_lang=yes
6195 else
6196 case "${enable_languages}" in
6197 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
6198 add_this_lang=yes
6199 ;;
6200 * )
6201 add_this_lang=no
6202 ;;
6203 esac
6204 fi
6205 if test x"${add_this_lang}" = xyes; then
6206 case $lang in
6207 ${srcdir}/ada/config-lang.in)
6208 if test x$gnat = xyes ; then
6209 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6210 fi
6211 ;;
6212 *)
6213 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6214 ;;
6215 esac
6216 fi
6217 ;;
6218 esac
6219 done
6220
6221 # Make gthr-default.h if we have a thread file.
6222 gthread_flags=
6223 if test $thread_file != single; then
6224 rm -f gthr-default.h
6225 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6226 gthread_flags=-DHAVE_GTHR_DEFAULT
6227 fi
6228
6229
6230 # Find out what GC implementation we want, or may, use.
6231 # Check whether --with-gc or --without-gc was given.
6232 if test "${with_gc+set}" = set; then
6233 withval="$with_gc"
6234 case "$withval" in
6235 simple | page)
6236 GGC=ggc-$withval
6237 ;;
6238 *)
6239 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6240 ;;
6241 esac
6242 else
6243 if test $ac_cv_func_mmap_anywhere = yes \
6244 || test $ac_cv_func_valloc = yes; then
6245 GGC=ggc-page
6246 else
6247 GGC=ggc-simple
6248 fi
6249 fi
6250
6251
6252 echo "Using $GGC for garbage collection."
6253
6254 # Use the system's zlib library.
6255 zlibdir=-L../zlib
6256 zlibinc="-I\$(srcdir)/../zlib"
6257 # Check whether --with-system-zlib or --without-system-zlib was given.
6258 if test "${with_system_zlib+set}" = set; then
6259 withval="$with_system_zlib"
6260 zlibdir=
6261 zlibinc=
6262
6263 fi
6264
6265
6266
6267
6268 # Build a new-abi (c++) system
6269 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
6270 if test "${enable_new_gxx_abi+set}" = set; then
6271 enableval="$enable_new_gxx_abi"
6272 :
6273 else
6274 enable_new_gxx_abi=yes
6275 fi
6276
6277
6278 if test x$enable_new_gxx_abi = xyes; then
6279 cat >> confdefs.h <<\EOF
6280 #define ENABLE_NEW_GXX_ABI 1
6281 EOF
6282
6283 GXX_ABI_FLAG='-fnew-abi'
6284 else
6285 GXX_ABI_FLAG=
6286 fi
6287
6288
6289 cat >> confdefs.h <<EOF
6290 #define ENABLE_STD_NAMESPACE $ac_esn
6291 EOF
6292
6293
6294
6295
6296 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6297 echo "configure:6298: checking whether to enable maintainer-specific portions of Makefiles" >&5
6298 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6299 if test "${enable_maintainer_mode+set}" = set; then
6300 enableval="$enable_maintainer_mode"
6301 maintainer_mode=$enableval
6302 else
6303 maintainer_mode=no
6304 fi
6305
6306
6307 echo "$ac_t""$maintainer_mode" 1>&6
6308
6309 if test "$maintainer_mode" = "yes"; then
6310 MAINT=''
6311 else
6312 MAINT='#'
6313 fi
6314
6315 # Make empty files to contain the specs and options for each language.
6316 # Then add #include lines to for a compiler that has specs and/or options.
6317
6318 lang_specs_files=
6319 lang_options_files=
6320 lang_tree_files=
6321 rm -f specs.h options.h gencheck.h
6322 touch specs.h options.h gencheck.h
6323 for subdir in . $subdirs
6324 do
6325 if test -f $srcdir/$subdir/lang-specs.h; then
6326 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6327 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6328 fi
6329 if test -f $srcdir/$subdir/lang-options.h; then
6330 echo "#include \"$subdir/lang-options.h\"" >>options.h
6331 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6332 fi
6333 if test -f $srcdir/$subdir/$subdir-tree.def; then
6334 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6335 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6336 fi
6337 done
6338
6339 # These (without "all_") are set in each config-lang.in.
6340 # `language' must be a single word so is spelled singularly.
6341 all_languages=
6342 all_boot_languages=
6343 all_compilers=
6344 all_stagestuff=
6345 all_diff_excludes=
6346 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6347 # List of language makefile fragments.
6348 all_lang_makefiles=
6349 all_headers=
6350 all_lib2funcs=
6351
6352 # Add the language fragments.
6353 # Languages are added via two mechanisms. Some information must be
6354 # recorded in makefile variables, these are defined in config-lang.in.
6355 # We accumulate them and plug them into the main Makefile.
6356 # The other mechanism is a set of hooks for each of the main targets
6357 # like `clean', `install', etc.
6358
6359 language_fragments="Make-lang"
6360 language_hooks="Make-hooks"
6361
6362 for s in .. $subdirs
6363 do
6364 if test $s != ".."
6365 then
6366 language=
6367 boot_language=
6368 compilers=
6369 stagestuff=
6370 diff_excludes=
6371 headers=
6372 outputs=
6373 lib2funcs=
6374 . ${srcdir}/$s/config-lang.in
6375 if test "x$language" = x
6376 then
6377 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6378 exit 1
6379 fi
6380 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6381 if test -f ${srcdir}/$s/Makefile.in
6382 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6383 fi
6384 all_languages="$all_languages $language"
6385 if test "x$boot_language" = xyes
6386 then
6387 all_boot_languages="$all_boot_languages $language"
6388 fi
6389 all_compilers="$all_compilers $compilers"
6390 all_stagestuff="$all_stagestuff $stagestuff"
6391 all_diff_excludes="$all_diff_excludes $diff_excludes"
6392 all_headers="$all_headers $headers"
6393 all_outputs="$all_outputs $outputs"
6394 all_lib2funcs="$all_lib2funcs $lib2funcs"
6395 fi
6396 done
6397
6398 # Since we can't use `::' targets, we link each language in
6399 # with a set of hooks, reached indirectly via lang.${target}.
6400
6401 rm -f Make-hooks
6402 touch Make-hooks
6403 target_list="all.build all.cross start.encap rest.encap \
6404 info dvi \
6405 install-normal install-common install-info install-man \
6406 uninstall \
6407 mostlyclean clean distclean extraclean maintainer-clean \
6408 stage1 stage2 stage3 stage4"
6409 for t in $target_list
6410 do
6411 x=
6412 for lang in .. $all_languages
6413 do
6414 if test $lang != ".."; then
6415 x="$x $lang.$t"
6416 fi
6417 done
6418 echo "lang.$t: $x" >> Make-hooks
6419 done
6420
6421 # If we're not building in srcdir, create .gdbinit.
6422
6423 if test ! -f Makefile.in; then
6424 echo "dir ." > .gdbinit
6425 echo "dir ${srcdir}" >> .gdbinit
6426 if test x$gdb_needs_out_file_path = xyes
6427 then
6428 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6429 fi
6430 if test "x$subdirs" != x; then
6431 for s in $subdirs
6432 do
6433 echo "dir ${srcdir}/$s" >> .gdbinit
6434 done
6435 fi
6436 echo "source ${srcdir}/.gdbinit" >> .gdbinit
6437 fi
6438
6439 # Define variables host_canonical and build_canonical
6440 # because some Cygnus local changes in the Makefile depend on them.
6441 build_canonical=${build}
6442 host_canonical=${host}
6443 target_subdir=
6444 if test "${host}" != "${target}" ; then
6445 target_subdir=${target}/
6446 fi
6447
6448
6449
6450
6451 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6452 # absolute path for gcc_tooldir based on inserting the number of up-directory
6453 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6454 # $(libsubdir)/@(unlibsubdir) based path.
6455 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6456 # make and thus we'd get different behavior depending on where we built the
6457 # sources.
6458 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
6459 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6460 else
6461 # An explanation of the sed strings:
6462 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6463 # -e 's|/$||' match a trailing forward slash and eliminates it
6464 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6465 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6466 #
6467 # (*) Note this pattern overwrites the first character of the string
6468 # with a forward slash if one is not already present. This is not a
6469 # problem because the exact names of the sub-directories concerned is
6470 # unimportant, just the number of them matters.
6471 #
6472 # The practical upshot of these patterns is like this:
6473 #
6474 # prefix exec_prefix result
6475 # ------ ----------- ------
6476 # /foo /foo/bar ../
6477 # /foo/ /foo/bar ../
6478 # /foo /foo/bar/ ../
6479 # /foo/ /foo/bar/ ../
6480 # /foo /foo/bar/ugg ../../
6481 #
6482 dollar='$$'
6483 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6484 fi
6485
6486
6487
6488 # Nothing to do for FLOAT_H, float_format already handled.
6489 objdir=`pwd`
6490
6491
6492 # Process the language and host/target makefile fragments.
6493 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6494
6495 # Substitute configuration variables
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 # Echo that links are built
6556 if test x$host = x$target
6557 then
6558 str1="native "
6559 else
6560 str1="cross-"
6561 str2=" from $host"
6562 fi
6563
6564 if test x$host != x$build
6565 then
6566 str3=" on a $build system"
6567 fi
6568
6569 if test "x$str2" != x || test "x$str3" != x
6570 then
6571 str4=
6572 fi
6573
6574 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6575
6576 if test "x$str2" != x || test "x$str3" != x
6577 then
6578 echo " ${str2}${str3}." 1>&2
6579 fi
6580
6581 # Truncate the target if necessary
6582 if test x$host_truncate_target != x; then
6583 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6584 fi
6585
6586 # Configure the subdirectories
6587 # AC_CONFIG_SUBDIRS($subdirs)
6588
6589 # Create the Makefile
6590 # and configure language subdirectories
6591 trap '' 1 2 15
6592 cat > confcache <<\EOF
6593 # This file is a shell script that caches the results of configure
6594 # tests run on this system so they can be shared between configure
6595 # scripts and configure runs. It is not useful on other systems.
6596 # If it contains results you don't want to keep, you may remove or edit it.
6597 #
6598 # By default, configure uses ./config.cache as the cache file,
6599 # creating it if it does not exist already. You can give configure
6600 # the --cache-file=FILE option to use a different cache file; that is
6601 # what configure does when it calls configure scripts in
6602 # subdirectories, so they share the cache.
6603 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6604 # config.status only pays attention to the cache file if you give it the
6605 # --recheck option to rerun configure.
6606 #
6607 EOF
6608 # The following way of writing the cache mishandles newlines in values,
6609 # but we know of no workaround that is simple, portable, and efficient.
6610 # So, don't put newlines in cache variables' values.
6611 # Ultrix sh set writes to stderr and can't be redirected directly,
6612 # and sets the high bit in the cache file unless we assign to the vars.
6613 (set) 2>&1 |
6614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6615 *ac_space=\ *)
6616 # `set' does not quote correctly, so add quotes (double-quote substitution
6617 # turns \\\\ into \\, and sed turns \\ into \).
6618 sed -n \
6619 -e "s/'/'\\\\''/g" \
6620 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6621 ;;
6622 *)
6623 # `set' quotes correctly as required by POSIX, so do not add quotes.
6624 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6625 ;;
6626 esac >> confcache
6627 if cmp -s $cache_file confcache; then
6628 :
6629 else
6630 if test -w $cache_file; then
6631 echo "updating cache $cache_file"
6632 cat confcache > $cache_file
6633 else
6634 echo "not updating unwritable cache $cache_file"
6635 fi
6636 fi
6637 rm -f confcache
6638
6639 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6640
6641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6642 # Let make expand exec_prefix.
6643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6644
6645 # Any assignment to VPATH causes Sun make to only execute
6646 # the first set of double-colon rules, so remove it if not needed.
6647 # If there is a colon in the path, we need to keep it.
6648 if test "x$srcdir" = x.; then
6649 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6650 fi
6651
6652 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6653
6654 DEFS=-DHAVE_CONFIG_H
6655
6656 # Without the "./", some shells look in PATH for config.status.
6657 : ${CONFIG_STATUS=./config.status}
6658
6659 echo creating $CONFIG_STATUS
6660 rm -f $CONFIG_STATUS
6661 cat > $CONFIG_STATUS <<EOF
6662 #! /bin/sh
6663 # Generated automatically by configure.
6664 # Run this file to recreate the current configuration.
6665 # This directory was configured as follows,
6666 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6667 #
6668 # $0 $ac_configure_args
6669 #
6670 # Compiler output produced by configure, useful for debugging
6671 # configure, is in ./config.log if it exists.
6672
6673 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6674 for ac_option
6675 do
6676 case "\$ac_option" in
6677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6678 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6679 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6680 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6681 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6682 exit 0 ;;
6683 -help | --help | --hel | --he | --h)
6684 echo "\$ac_cs_usage"; exit 0 ;;
6685 *) echo "\$ac_cs_usage"; exit 1 ;;
6686 esac
6687 done
6688
6689 ac_given_srcdir=$srcdir
6690
6691 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6692 EOF
6693 cat >> $CONFIG_STATUS <<EOF
6694
6695 # Protect against being on the right side of a sed subst in config.status.
6696 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6697 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6698 $ac_vpsub
6699 $extrasub
6700 s%@SHELL@%$SHELL%g
6701 s%@CFLAGS@%$CFLAGS%g
6702 s%@CPPFLAGS@%$CPPFLAGS%g
6703 s%@CXXFLAGS@%$CXXFLAGS%g
6704 s%@FFLAGS@%$FFLAGS%g
6705 s%@DEFS@%$DEFS%g
6706 s%@LDFLAGS@%$LDFLAGS%g
6707 s%@LIBS@%$LIBS%g
6708 s%@exec_prefix@%$exec_prefix%g
6709 s%@prefix@%$prefix%g
6710 s%@program_transform_name@%$program_transform_name%g
6711 s%@bindir@%$bindir%g
6712 s%@sbindir@%$sbindir%g
6713 s%@libexecdir@%$libexecdir%g
6714 s%@datadir@%$datadir%g
6715 s%@sysconfdir@%$sysconfdir%g
6716 s%@sharedstatedir@%$sharedstatedir%g
6717 s%@localstatedir@%$localstatedir%g
6718 s%@libdir@%$libdir%g
6719 s%@includedir@%$includedir%g
6720 s%@oldincludedir@%$oldincludedir%g
6721 s%@infodir@%$infodir%g
6722 s%@mandir@%$mandir%g
6723 s%@enable_shared@%$enable_shared%g
6724 s%@host@%$host%g
6725 s%@host_alias@%$host_alias%g
6726 s%@host_cpu@%$host_cpu%g
6727 s%@host_vendor@%$host_vendor%g
6728 s%@host_os@%$host_os%g
6729 s%@target@%$target%g
6730 s%@target_alias@%$target_alias%g
6731 s%@target_cpu@%$target_cpu%g
6732 s%@target_vendor@%$target_vendor%g
6733 s%@target_os@%$target_os%g
6734 s%@build@%$build%g
6735 s%@build_alias@%$build_alias%g
6736 s%@build_cpu@%$build_cpu%g
6737 s%@build_vendor@%$build_vendor%g
6738 s%@build_os@%$build_os%g
6739 s%@CC@%$CC%g
6740 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6741 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6742 s%@strict1_warn@%$strict1_warn%g
6743 s%@warn_cflags@%$warn_cflags%g
6744 s%@stage1_cflags@%$stage1_cflags%g
6745 s%@SET_MAKE@%$SET_MAKE%g
6746 s%@AWK@%$AWK%g
6747 s%@LN@%$LN%g
6748 s%@LN_S@%$LN_S%g
6749 s%@RANLIB@%$RANLIB%g
6750 s%@INSTALL@%$INSTALL%g
6751 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6752 s%@INSTALL_DATA@%$INSTALL_DATA%g
6753 s%@CPP@%$CPP%g
6754 s%@gnat@%$gnat%g
6755 s%@MAKEINFO@%$MAKEINFO%g
6756 s%@BUILD_INFO@%$BUILD_INFO%g
6757 s%@INSTALL_INFO@%$INSTALL_INFO%g
6758 s%@FLEX@%$FLEX%g
6759 s%@BISON@%$BISON%g
6760 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
6761 s%@vfprintf@%$vfprintf%g
6762 s%@doprint@%$doprint%g
6763 s%@manext@%$manext%g
6764 s%@objext@%$objext%g
6765 s%@PACKAGE@%$PACKAGE%g
6766 s%@VERSION@%$VERSION%g
6767 s%@CHECK_PO@%$CHECK_PO%g
6768 s%@ALLOCA@%$ALLOCA%g
6769 s%@USE_NLS@%$USE_NLS%g
6770 s%@MSGFMT@%$MSGFMT%g
6771 s%@GMSGFMT@%$GMSGFMT%g
6772 s%@XGETTEXT@%$XGETTEXT%g
6773 s%@GENCAT@%$GENCAT%g
6774 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6775 s%@CATALOGS@%$CATALOGS%g
6776 s%@CATOBJEXT@%$CATOBJEXT%g
6777 s%@DATADIRNAME@%$DATADIRNAME%g
6778 s%@GMOFILES@%$GMOFILES%g
6779 s%@INSTOBJEXT@%$INSTOBJEXT%g
6780 s%@INTLDEPS@%$INTLDEPS%g
6781 s%@INTLLIBS@%$INTLLIBS%g
6782 s%@INTLOBJS@%$INTLOBJS%g
6783 s%@POFILES@%$POFILES%g
6784 s%@POSUB@%$POSUB%g
6785 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6786 s%@GT_NO@%$GT_NO%g
6787 s%@GT_YES@%$GT_YES%g
6788 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6789 s%@l@%$l%g
6790 s%@inhibit_libc@%$inhibit_libc%g
6791 s%@gthread_flags@%$gthread_flags%g
6792 s%@GGC@%$GGC%g
6793 s%@zlibdir@%$zlibdir%g
6794 s%@zlibinc@%$zlibinc%g
6795 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
6796 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
6797 s%@MAINT@%$MAINT%g
6798 s%@build_canonical@%$build_canonical%g
6799 s%@host_canonical@%$host_canonical%g
6800 s%@target_subdir@%$target_subdir%g
6801 s%@gcc_tooldir@%$gcc_tooldir%g
6802 s%@dollar@%$dollar%g
6803 s%@objdir@%$objdir%g
6804 s%@subdirs@%$subdirs%g
6805 s%@all_boot_languages@%$all_boot_languages%g
6806 s%@all_compilers@%$all_compilers%g
6807 s%@all_diff_excludes@%$all_diff_excludes%g
6808 s%@all_headers@%$all_headers%g
6809 s%@all_lang_makefiles@%$all_lang_makefiles%g
6810 s%@all_languages@%$all_languages%g
6811 s%@all_lib2funcs@%$all_lib2funcs%g
6812 s%@all_stagestuff@%$all_stagestuff%g
6813 s%@build_exeext@%$build_exeext%g
6814 s%@build_install_headers_dir@%$build_install_headers_dir%g
6815 s%@build_xm_file_list@%$build_xm_file_list%g
6816 s%@cc_set_by_configure@%$cc_set_by_configure%g
6817 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
6818 s%@cpp_install_dir@%$cpp_install_dir%g
6819 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6820 s%@dep_tmake_file@%$dep_tmake_file%g
6821 s%@extra_c_flags@%$extra_c_flags%g
6822 s%@extra_headers_list@%$extra_headers_list%g
6823 s%@extra_objs@%$extra_objs%g
6824 s%@extra_parts@%$extra_parts%g
6825 s%@extra_passes@%$extra_passes%g
6826 s%@extra_programs@%$extra_programs%g
6827 s%@float_h_file@%$float_h_file%g
6828 s%@gcc_config_arguments@%$gcc_config_arguments%g
6829 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
6830 s%@gcc_version@%$gcc_version%g
6831 s%@gcc_version_full@%$gcc_version_full%g
6832 s%@gcc_version_trigger@%$gcc_version_trigger%g
6833 s%@host_exeext@%$host_exeext%g
6834 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6835 s%@host_xm_file_list@%$host_xm_file_list%g
6836 s%@install@%$install%g
6837 s%@lang_options_files@%$lang_options_files%g
6838 s%@lang_specs_files@%$lang_specs_files%g
6839 s%@lang_tree_files@%$lang_tree_files%g
6840 s%@local_prefix@%$local_prefix%g
6841 s%@maybe_use_collect2@%$maybe_use_collect2%g
6842 s%@md_file@%$md_file%g
6843 s%@objc_boehm_gc@%$objc_boehm_gc%g
6844 s%@out_file@%$out_file%g
6845 s%@out_object_file@%$out_object_file%g
6846 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6847 s%@symbolic_link@%$symbolic_link%g
6848 s%@thread_file@%$thread_file%g
6849 s%@tm_file_list@%$tm_file_list%g
6850 s%@will_use_collect2@%$will_use_collect2%g
6851 s%@c_target_objs@%$c_target_objs%g
6852 s%@cxx_target_objs@%$cxx_target_objs%g
6853 /@target_overrides@/r $target_overrides
6854 s%@target_overrides@%%g
6855 /@host_overrides@/r $host_overrides
6856 s%@host_overrides@%%g
6857 s%@cross_defines@%$cross_defines%g
6858 /@cross_overrides@/r $cross_overrides
6859 s%@cross_overrides@%%g
6860 /@build_overrides@/r $build_overrides
6861 s%@build_overrides@%%g
6862 /@language_fragments@/r $language_fragments
6863 s%@language_fragments@%%g
6864 /@language_hooks@/r $language_hooks
6865 s%@language_hooks@%%g
6866
6867 CEOF
6868 EOF
6869
6870 cat >> $CONFIG_STATUS <<\EOF
6871
6872 # Split the substitutions into bite-sized pieces for seds with
6873 # small command number limits, like on Digital OSF/1 and HP-UX.
6874 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6875 ac_file=1 # Number of current file.
6876 ac_beg=1 # First line for current file.
6877 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6878 ac_more_lines=:
6879 ac_sed_cmds=""
6880 while $ac_more_lines; do
6881 if test $ac_beg -gt 1; then
6882 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6883 else
6884 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6885 fi
6886 if test ! -s conftest.s$ac_file; then
6887 ac_more_lines=false
6888 rm -f conftest.s$ac_file
6889 else
6890 if test -z "$ac_sed_cmds"; then
6891 ac_sed_cmds="sed -f conftest.s$ac_file"
6892 else
6893 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6894 fi
6895 ac_file=`expr $ac_file + 1`
6896 ac_beg=$ac_end
6897 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6898 fi
6899 done
6900 if test -z "$ac_sed_cmds"; then
6901 ac_sed_cmds=cat
6902 fi
6903 EOF
6904
6905 cat >> $CONFIG_STATUS <<EOF
6906
6907 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6908 EOF
6909 cat >> $CONFIG_STATUS <<\EOF
6910 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6912 case "$ac_file" in
6913 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6915 *) ac_file_in="${ac_file}.in" ;;
6916 esac
6917
6918 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6919
6920 # Remove last slash and all that follows it. Not all systems have dirname.
6921 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6923 # The file is in a subdirectory.
6924 test ! -d "$ac_dir" && mkdir "$ac_dir"
6925 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6926 # A "../" for each directory in $ac_dir_suffix.
6927 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6928 else
6929 ac_dir_suffix= ac_dots=
6930 fi
6931
6932 case "$ac_given_srcdir" in
6933 .) srcdir=.
6934 if test -z "$ac_dots"; then top_srcdir=.
6935 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6936 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6937 *) # Relative path.
6938 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6939 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6940 esac
6941
6942
6943 echo creating "$ac_file"
6944 rm -f "$ac_file"
6945 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6946 case "$ac_file" in
6947 *Makefile*) ac_comsub="1i\\
6948 # $configure_input" ;;
6949 *) ac_comsub= ;;
6950 esac
6951
6952 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6953 sed -e "$ac_comsub
6954 s%@configure_input@%$configure_input%g
6955 s%@srcdir@%$srcdir%g
6956 s%@top_srcdir@%$top_srcdir%g
6957 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6958 fi; done
6959 rm -f conftest.s*
6960
6961 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6962 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6963 #
6964 # ac_d sets the value in "#define NAME VALUE" lines.
6965 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6966 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6967 ac_dC='\3'
6968 ac_dD='%g'
6969 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6970 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6971 ac_uB='\([ ]\)%\1#\2define\3'
6972 ac_uC=' '
6973 ac_uD='\4%g'
6974 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6975 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6976 ac_eB='$%\1#\2define\3'
6977 ac_eC=' '
6978 ac_eD='%g'
6979
6980 if test "${CONFIG_HEADERS+set}" != set; then
6981 EOF
6982 cat >> $CONFIG_STATUS <<EOF
6983 CONFIG_HEADERS="auto-host.h:config.in"
6984 EOF
6985 cat >> $CONFIG_STATUS <<\EOF
6986 fi
6987 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6989 case "$ac_file" in
6990 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6991 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6992 *) ac_file_in="${ac_file}.in" ;;
6993 esac
6994
6995 echo creating $ac_file
6996
6997 rm -f conftest.frag conftest.in conftest.out
6998 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6999 cat $ac_file_inputs > conftest.in
7000
7001 EOF
7002
7003 # Transform confdefs.h into a sed script conftest.vals that substitutes
7004 # the proper values into config.h.in to produce config.h. And first:
7005 # Protect against being on the right side of a sed subst in config.status.
7006 # Protect against being in an unquoted here document in config.status.
7007 rm -f conftest.vals
7008 cat > conftest.hdr <<\EOF
7009 s/[\\&%]/\\&/g
7010 s%[\\$`]%\\&%g
7011 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7012 s%ac_d%ac_u%gp
7013 s%ac_u%ac_e%gp
7014 EOF
7015 sed -n -f conftest.hdr confdefs.h > conftest.vals
7016 rm -f conftest.hdr
7017
7018 # This sed command replaces #undef with comments. This is necessary, for
7019 # example, in the case of _POSIX_SOURCE, which is predefined and required
7020 # on some systems where configure will not decide to define it.
7021 cat >> conftest.vals <<\EOF
7022 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7023 EOF
7024
7025 # Break up conftest.vals because some shells have a limit on
7026 # the size of here documents, and old seds have small limits too.
7027
7028 rm -f conftest.tail
7029 while :
7030 do
7031 ac_lines=`grep -c . conftest.vals`
7032 # grep -c gives empty output for an empty file on some AIX systems.
7033 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7034 # Write a limited-size here document to conftest.frag.
7035 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7036 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7037 echo 'CEOF
7038 sed -f conftest.frag conftest.in > conftest.out
7039 rm -f conftest.in
7040 mv conftest.out conftest.in
7041 ' >> $CONFIG_STATUS
7042 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7043 rm -f conftest.vals
7044 mv conftest.tail conftest.vals
7045 done
7046 rm -f conftest.vals
7047
7048 cat >> $CONFIG_STATUS <<\EOF
7049 rm -f conftest.frag conftest.h
7050 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7051 cat conftest.in >> conftest.h
7052 rm -f conftest.in
7053 if cmp -s $ac_file conftest.h 2>/dev/null; then
7054 echo "$ac_file is unchanged"
7055 rm -f conftest.h
7056 else
7057 # Remove last slash and all that follows it. Not all systems have dirname.
7058 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7060 # The file is in a subdirectory.
7061 test ! -d "$ac_dir" && mkdir "$ac_dir"
7062 fi
7063 rm -f $ac_file
7064 mv conftest.h $ac_file
7065 fi
7066 fi; done
7067
7068 EOF
7069
7070 cat >> $CONFIG_STATUS <<EOF
7071 ac_sources="$nls_cv_header_libgt"
7072 ac_dests="$nls_cv_header_intl"
7073 EOF
7074
7075 cat >> $CONFIG_STATUS <<\EOF
7076 srcdir=$ac_given_srcdir
7077 while test -n "$ac_sources"; do
7078 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7079 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7080
7081 echo "linking $srcdir/$ac_source to $ac_dest"
7082
7083 if test ! -r $srcdir/$ac_source; then
7084 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7085 fi
7086 rm -f $ac_dest
7087
7088 # Make relative symlinks.
7089 # Remove last slash and all that follows it. Not all systems have dirname.
7090 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7091 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7092 # The dest file is in a subdirectory.
7093 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7094 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7095 # A "../" for each directory in $ac_dest_dir_suffix.
7096 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7097 else
7098 ac_dest_dir_suffix= ac_dots=
7099 fi
7100
7101 case "$srcdir" in
7102 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7103 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7104 esac
7105
7106 # Make a symlink if possible; otherwise try a hard link.
7107 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7108 ln $srcdir/$ac_source $ac_dest; then :
7109 else
7110 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7111 fi
7112 done
7113 EOF
7114 cat >> $CONFIG_STATUS <<EOF
7115
7116
7117 host='${host}'
7118 build='${build}'
7119 target='${target}'
7120 target_alias='${target_alias}'
7121 srcdir='${srcdir}'
7122 subdirs='${subdirs}'
7123 symbolic_link='${symbolic_link}'
7124 program_transform_set='${program_transform_set}'
7125 program_transform_name='${program_transform_name}'
7126 dep_host_xmake_file='${dep_host_xmake_file}'
7127 host_xmake_file='${host_xmake_file}'
7128 dep_tmake_file='${dep_tmake_file}'
7129 tmake_file='${tmake_file}'
7130 thread_file='${thread_file}'
7131 gcc_config_arguments='${gcc_config_arguments}'
7132 gcc_version='${gcc_version}'
7133 gcc_version_full='${gcc_version_full}'
7134 gcc_version_trigger='${gcc_version_trigger}'
7135 local_prefix='${local_prefix}'
7136 build_install_headers_dir='${build_install_headers_dir}'
7137 build_exeext='${build_exeext}'
7138 host_exeext='${host_exeext}'
7139 out_file='${out_file}'
7140 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7141 SET_MAKE='${SET_MAKE}'
7142 target_list='${target_list}'
7143 target_overrides='${target_overrides}'
7144 host_overrides='${host_overrides}'
7145 cross_defines='${cross_defines}'
7146 cross_overrides='${cross_overrides}'
7147 build_overrides='${build_overrides}'
7148 cpp_install_dir='${cpp_install_dir}'
7149
7150 EOF
7151 cat >> $CONFIG_STATUS <<\EOF
7152 case "$CONFIG_FILES" in *po/Makefile.in*)
7153 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7154 esac
7155
7156 case x$CONFIG_HEADERS in
7157 xauto-host.h:config.in)
7158 echo > cstamp-h ;;
7159 esac
7160 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7161 # bootstrapping and the installation procedure can still use
7162 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7163 # FLAGS_TO_PASS has been modified to solve the problem there.
7164 # This is virtually a duplicate of what happens in configure.lang; we do
7165 # an extra check to make sure this only happens if ln -s can be used.
7166 if test "$symbolic_link" = "ln -s"; then
7167 for d in .. ${subdirs} ; do
7168 if test $d != ..; then
7169 STARTDIR=`pwd`
7170 cd $d
7171 for t in stage1 stage2 stage3 stage4 include
7172 do
7173 rm -f $t
7174 $symbolic_link ../$t $t 2>/dev/null
7175 done
7176 cd $STARTDIR
7177 fi
7178 done
7179 else true ; fi
7180 # Avoid having to add intl to our include paths.
7181 if test -f intl/libintl.h; then
7182 echo creating libintl.h
7183 echo '#include "intl/libintl.h"' >libintl.h
7184 fi
7185
7186 exit 0
7187 EOF
7188 chmod +x $CONFIG_STATUS
7189 rm -fr confdefs* $ac_clean_files
7190 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7191