* ltconfig, ltmain.sh: Update to libtool 1.3.4.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132
RH
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4c63da97 4# Generated automatically using autoconf version 2.13.1
252b5132
RH
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
bedf545c
ILT
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
252b5132
RH
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
bedf545c
ILT
22ac_help="$ac_help
23 --disable-libtool-lock force libtool not to do file locking"
252b5132
RH
24ac_help="$ac_help
25 --enable-bfd-assembler use BFD back end for writing object files"
26ac_help="$ac_help
27 targets alternative target configurations besides the primary"
28ac_help="$ac_help
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
30ac_help="$ac_help
31 --disable-nls do not use Native Language Support"
32ac_help="$ac_help
33 --with-included-gettext use the GNU gettext library included here"
34ac_help="$ac_help
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
37
38# Initialize some variables set by options.
39# The variables have the same names as the options, with
40# dashes changed to underlines.
41build=NONE
42cache_file=./config.cache
43exec_prefix=NONE
44host=NONE
45no_create=
46nonopt=NONE
47no_recursion=
48prefix=NONE
49program_prefix=NONE
50program_suffix=NONE
51program_transform_name=s,x,x,
52silent=
53site=
54srcdir=
55target=NONE
56verbose=
57x_includes=NONE
58x_libraries=NONE
59bindir='${exec_prefix}/bin'
60sbindir='${exec_prefix}/sbin'
61libexecdir='${exec_prefix}/libexec'
62datadir='${prefix}/share'
63sysconfdir='${prefix}/etc'
64sharedstatedir='${prefix}/com'
65localstatedir='${prefix}/var'
66libdir='${exec_prefix}/lib'
67includedir='${prefix}/include'
68oldincludedir='/usr/include'
69infodir='${prefix}/info'
70mandir='${prefix}/man'
71
72# Initialize some other variables.
73subdirs=
74MFLAGS= MAKEFLAGS=
75SHELL=${CONFIG_SHELL-/bin/sh}
76# Maximum number of lines to put in a shell here document.
77ac_max_here_lines=12
78
79ac_prev=
80for ac_option
81do
82
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
86 ac_prev=
87 continue
88 fi
89
90 case "$ac_option" in
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 *) ac_optarg= ;;
93 esac
94
95 # Accept the important Cygnus configure options, so we can diagnose typos.
96
97 case "$ac_option" in
98
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 ac_prev=bindir ;;
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
103
104 -build | --build | --buil | --bui | --bu)
105 ac_prev=build ;;
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
108
109 -cache-file | --cache-file | --cache-fil | --cache-fi \
110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111 ac_prev=cache_file ;;
112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114 cache_file="$ac_optarg" ;;
115
116 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 ac_prev=datadir ;;
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 | --da=*)
120 datadir="$ac_optarg" ;;
121
122 -disable-* | --disable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 fi
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
130
131 -enable-* | --enable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 fi
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 case "$ac_option" in
139 *=*) ;;
140 *) ac_optarg=yes ;;
141 esac
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
143
144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146 | --exec | --exe | --ex)
147 ac_prev=exec_prefix ;;
148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150 | --exec=* | --exe=* | --ex=*)
151 exec_prefix="$ac_optarg" ;;
152
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
155 with_gas=yes ;;
156
157 -help | --help | --hel | --he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
160 cat << EOF
161Usage: configure [options] [host]
162Options: [defaults in brackets after descriptions]
163Configuration:
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
171 [$ac_default_prefix]
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 [same as prefix]
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
178 [PREFIX/share]
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 [PREFIX/com]
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
193EOF
194 cat << EOF
195Host type:
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
206EOF
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
209 fi
210 exit 0 ;;
211
212 -host | --host | --hos | --ho)
213 ac_prev=host ;;
214 -host=* | --host=* | --hos=* | --ho=*)
215 host="$ac_optarg" ;;
216
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
223
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 ac_prev=infodir ;;
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
228
229 -libdir | --libdir | --libdi | --libd)
230 ac_prev=libdir ;;
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
233
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
240
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
249
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 ac_prev=mandir ;;
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
254
255 -nfp | --nfp | --nf)
256 # Obsolete; use --without-fp.
257 with_fp=no ;;
258
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 | --no-cr | --no-c)
261 no_create=yes ;;
262
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265 no_recursion=yes ;;
266
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
275
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 ac_prev=prefix ;;
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
280
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
287
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
294
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
311
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
314 silent=yes ;;
315
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 ac_prev=sbindir ;;
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 | --sbi=* | --sb=*)
320 sbindir="$ac_optarg" ;;
321
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
325 | --sha | --sh)
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 | --sha=* | --sh=*)
331 sharedstatedir="$ac_optarg" ;;
332
333 -site | --site | --sit)
334 ac_prev=site ;;
335 -site=* | --site=* | --sit=*)
336 site="$ac_optarg" ;;
337
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 ac_prev=srcdir ;;
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
342
343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344 | --syscon | --sysco | --sysc | --sys | --sy)
345 ac_prev=sysconfdir ;;
346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348 sysconfdir="$ac_optarg" ;;
349
350 -target | --target | --targe | --targ | --tar | --ta | --t)
351 ac_prev=target ;;
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
354
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
356 verbose=yes ;;
357
358 -version | --version | --versio | --versi | --vers)
4c63da97 359 echo "configure generated by autoconf version 2.13.1"
252b5132
RH
360 exit 0 ;;
361
362 -with-* | --with-*)
363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 fi
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 case "$ac_option" in
370 *=*) ;;
371 *) ac_optarg=yes ;;
372 esac
373 eval "with_${ac_package}='$ac_optarg'" ;;
374
375 -without-* | --without-*)
376 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 fi
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
383
384 --x)
385 # Obsolete; use --with-x.
386 with_x=yes ;;
387
388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389 | --x-incl | --x-inc | --x-in | --x-i)
390 ac_prev=x_includes ;;
391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393 x_includes="$ac_optarg" ;;
394
395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397 ac_prev=x_libraries ;;
398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400 x_libraries="$ac_optarg" ;;
401
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 ;;
404
405 *)
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 fi
409 if test "x$nonopt" != xNONE; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 fi
412 nonopt="$ac_option"
413 ;;
414
415 esac
416done
417
418if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420fi
421
422trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423
424# File descriptor usage:
425# 0 standard input
426# 1 file creation
427# 2 errors and warnings
428# 3 some systems may open it to /dev/tty
429# 4 used on the Kubota Titan
430# 6 checking for... messages and results
431# 5 compiler messages saved in config.log
432if test "$silent" = yes; then
433 exec 6>/dev/null
434else
435 exec 6>&1
436fi
437exec 5>./config.log
438
439echo "\
440This file contains any messages produced by compilers while
441running configure, to aid debugging if configure makes a mistake.
442" 1>&5
443
444# Strip out --no-create and --no-recursion so they do not pile up.
445# Also quote any args containing shell metacharacters.
446ac_configure_args=
447for ac_arg
448do
449 case "$ac_arg" in
450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 | --no-cr | --no-c) ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 esac
458done
459
460# NLS nuisances.
461# Only set these to C if already set. These must not be set unconditionally
462# because not all systems understand e.g. LANG=C (notably SCO).
463# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464# Non-C LC_CTYPE values break the ctype check.
465if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469
470# confdefs.h avoids OS command line length limits that DEFS can exceed.
471rm -rf conftest* confdefs.h
472# AIX cpp loses on an empty file, so make sure it contains at least a newline.
473echo > confdefs.h
474
475# A filename unique to this package, relative to the directory that
476# configure is in, which we can look for to find out if srcdir is correct.
477ac_unique_file=as.h
478
479# Find the source files, if location was not specified.
480if test -z "$srcdir"; then
481 ac_srcdir_defaulted=yes
482 # Try the directory containing this script, then its parent.
483 ac_prog=$0
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 srcdir=$ac_confdir
487 if test ! -r $srcdir/$ac_unique_file; then
488 srcdir=..
489 fi
490else
491 ac_srcdir_defaulted=no
492fi
493if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 else
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 fi
499fi
500srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501
502# Prefer explicitly selected file to automatically selected ones.
4c63da97
AM
503if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 else
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
252b5132
RH
508 fi
509fi
510for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
513 . "$ac_site_file"
514 fi
515done
516
517if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
4c63da97 519 test -f "$cache_file" && . $cache_file
252b5132
RH
520else
521 echo "creating cache $cache_file"
522 > $cache_file
523fi
524
525ac_ext=c
526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527ac_cpp='$CPP $CPPFLAGS'
528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530cross_compiling=$ac_cv_prog_cc_cross
531
532ac_exeext=
533ac_objext=o
534if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='
538' ac_t=' '
539 else
540 ac_n=-n ac_c= ac_t=
541 fi
542else
543 ac_n= ac_c='\c' ac_t=
544fi
545
546
547
548ac_aux_dir=
549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install-sh -c"
553 break
554 elif test -f $ac_dir/install.sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install.sh -c"
557 break
558 fi
559done
560if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
562fi
4c63da97
AM
563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
566
567
568echo $ac_n "checking host system type""... $ac_c" 1>&6
569echo "configure:570: checking host system type" >&5
570if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
571
572# Make sure we can run config.sub.
573 if $ac_config_sub sun4 >/dev/null 2>&1; then :
574 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
575 fi
576
577 ac_cv_host_alias=$host
578 case "$ac_cv_host_alias" in
579 NONE)
580 case $nonopt in
581 NONE)
582 if ac_cv_host_alias=`$ac_config_guess`; then :
583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584 fi ;;
585 *) ac_cv_host_alias=$nonopt ;;
586 esac ;;
587 esac
588
589 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
590 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
591 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
592 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
593else
594 echo $ac_n "(cached) $ac_c" 1>&6
595fi
596
597echo "$ac_t""$ac_cv_host" 1>&6
598
599host=$ac_cv_host
600host_alias=$ac_cv_host_alias
601host_cpu=$ac_cv_host_cpu
602host_vendor=$ac_cv_host_vendor
603host_os=$ac_cv_host_os
604
605
606
607
608
609echo $ac_n "checking target system type""... $ac_c" 1>&6
610echo "configure:611: checking target system type" >&5
611if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
612
613# Make sure we can run config.sub.
614 if $ac_config_sub sun4 >/dev/null 2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
616 fi
617
618 ac_cv_target_alias=$target
619 case "$ac_cv_target_alias" in
620 NONE)
621 case $nonopt in
622 NONE)
623 ac_cv_target_alias=$host_alias ;;
624
625 *) ac_cv_target_alias=$nonopt ;;
626 esac ;;
627 esac
628
629 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
630 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633else
634 echo $ac_n "(cached) $ac_c" 1>&6
635fi
636
637echo "$ac_t""$ac_cv_target" 1>&6
638
639target=$ac_cv_target
640target_alias=$ac_cv_target_alias
641target_cpu=$ac_cv_target_cpu
642target_vendor=$ac_cv_target_vendor
643target_os=$ac_cv_target_os
644
645
646
647
648
649echo $ac_n "checking build system type""... $ac_c" 1>&6
650echo "configure:651: checking build system type" >&5
651if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
652
653# Make sure we can run config.sub.
654 if $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 fi
657
658 ac_cv_build_alias=$build
659 case "$ac_cv_build_alias" in
660 NONE)
661 case $nonopt in
662 NONE)
663 ac_cv_build_alias=$host_alias ;;
664
665 *) ac_cv_build_alias=$nonopt ;;
666 esac ;;
667 esac
668
669 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
670 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673else
674 echo $ac_n "(cached) $ac_c" 1>&6
675fi
676
677echo "$ac_t""$ac_cv_build" 1>&6
678
679build=$ac_cv_build
680build_alias=$ac_cv_build_alias
681build_cpu=$ac_cv_build_cpu
682build_vendor=$ac_cv_build_vendor
683build_os=$ac_cv_build_os
684
685
686
252b5132
RH
687
688
689# Do some error checking and defaulting for the host and target type.
690# The inputs are:
691# configure --host=HOST --target=TARGET --build=BUILD NONOPT
692#
693# The rules are:
694# 1. You are not allowed to specify --host, --target, and nonopt at the
695# same time.
696# 2. Host defaults to nonopt.
697# 3. If nonopt is not specified, then host defaults to the current host,
698# as determined by config.guess.
699# 4. Target and build default to nonopt.
700# 5. If nonopt is not specified, then target and build default to host.
701
702# The aliases save the names the user supplied, while $host etc.
703# will get canonicalized.
704case $host---$target---$nonopt in
705NONE---*---* | *---NONE---* | *---*---NONE) ;;
706*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
707esac
708
252b5132
RH
709test "$host_alias" != "$target_alias" &&
710 test "$program_prefix$program_suffix$program_transform_name" = \
711 NONENONEs,x,x, &&
712 program_prefix=${target_alias}-
713
714
715# Find a good install program. We prefer a C program (faster),
716# so one script is as good as another. But avoid the broken or
717# incompatible versions:
718# SysV /etc/install, /usr/sbin/install
719# SunOS /usr/etc/install
720# IRIX /sbin/install
721# AIX /bin/install
722# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
723# AFS /usr/afsws/bin/install, which mishandles nonexistent args
724# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
725# ./install, which can be erroneously created by make from ./install.sh.
726echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4c63da97 727echo "configure:728: checking for a BSD compatible install" >&5
252b5132 728if test -z "$INSTALL"; then
4c63da97 729if eval "test \"\${ac_cv_path_install+set}\" = set"; then
252b5132
RH
730 echo $ac_n "(cached) $ac_c" 1>&6
731else
732 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
733 for ac_dir in $PATH; do
734 # Account for people who put trailing slashes in PATH elements.
735 case "$ac_dir/" in
736 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
737 *)
738 # OSF1 and SCO ODT 3.0 have their own names for install.
739 # Don't use installbsd from OSF since it installs stuff as root
740 # by default.
741 for ac_prog in ginstall scoinst install; do
742 if test -f $ac_dir/$ac_prog; then
743 if test $ac_prog = install &&
744 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
745 # AIX install. It has an incompatible calling convention.
746 :
4c63da97
AM
747 elif test $ac_prog = install &&
748 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
749 # program-specific install script used by HP pwplus--don't use.
750 :
252b5132
RH
751 else
752 ac_cv_path_install="$ac_dir/$ac_prog -c"
753 break 2
754 fi
755 fi
756 done
757 ;;
758 esac
759 done
760 IFS="$ac_save_IFS"
761
762fi
763 if test "${ac_cv_path_install+set}" = set; then
764 INSTALL="$ac_cv_path_install"
765 else
766 # As a last resort, use the slow shell script. We don't cache a
767 # path for INSTALL within a source directory, because that will
768 # break other packages using the cache if that directory is
769 # removed, or if the path is relative.
770 INSTALL="$ac_install_sh"
771 fi
772fi
773echo "$ac_t""$INSTALL" 1>&6
774
775# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
776# It thinks the first close brace ends the variable substitution.
777test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
778
4c63da97 779test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
780
781test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
782
783echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
4c63da97 784echo "configure:785: checking whether build environment is sane" >&5
252b5132
RH
785# Just in case
786sleep 1
787echo timestamp > conftestfile
788# Do `set' in a subshell so we don't clobber the current shell's
789# arguments. Must try -L first in case configure is actually a
790# symlink; some systems play weird games with the mod time of symlinks
791# (eg FreeBSD returns the mod time of the symlink's containing
792# directory).
793if (
794 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
795 if test "$*" = "X"; then
796 # -L didn't work.
797 set X `ls -t $srcdir/configure conftestfile`
798 fi
799 if test "$*" != "X $srcdir/configure conftestfile" \
800 && test "$*" != "X conftestfile $srcdir/configure"; then
801
802 # If neither matched, then we have a broken ls. This can happen
803 # if, for instance, CONFIG_SHELL is bash and it inherits a
804 # broken ls alias from the environment. This has actually
805 # happened. Such a system could not be considered "sane".
806 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
807alias in your environment" 1>&2; exit 1; }
808 fi
809
810 test "$2" = conftestfile
811 )
812then
813 # Ok.
814 :
815else
816 { echo "configure: error: newly created file is older than distributed files!
817Check your system clock" 1>&2; exit 1; }
818fi
819rm -f conftest*
820echo "$ac_t""yes" 1>&6
821if test "$program_transform_name" = s,x,x,; then
822 program_transform_name=
823else
824 # Double any \ or $. echo might interpret backslashes.
825 cat <<\EOF_SED > conftestsed
826s,\\,\\\\,g; s,\$,$$,g
827EOF_SED
828 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
829 rm -f conftestsed
830fi
831test "$program_prefix" != NONE &&
4c63da97 832 program_transform_name="s,^,${program_prefix},;$program_transform_name"
252b5132
RH
833# Use a double $ so make ignores it.
834test "$program_suffix" != NONE &&
4c63da97 835 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
252b5132
RH
836
837# sed with no file args requires a program.
838test "$program_transform_name" = "" && program_transform_name="s,x,x,"
839
840echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4c63da97 841echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
252b5132 842set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4c63da97 843if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
252b5132
RH
844 echo $ac_n "(cached) $ac_c" 1>&6
845else
846 cat > conftestmake <<\EOF
847all:
848 @echo 'ac_maketemp="${MAKE}"'
849EOF
850# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852if test -n "$ac_maketemp"; then
853 eval ac_cv_prog_make_${ac_make}_set=yes
854else
855 eval ac_cv_prog_make_${ac_make}_set=no
856fi
857rm -f conftestmake
858fi
859if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860 echo "$ac_t""yes" 1>&6
861 SET_MAKE=
862else
863 echo "$ac_t""no" 1>&6
864 SET_MAKE="MAKE=${MAKE-make}"
865fi
866
867
868PACKAGE=gas
869
0ed15843 870VERSION=2.9.5
252b5132
RH
871
872if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
873 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
874fi
875cat >> confdefs.h <<EOF
876#define PACKAGE "$PACKAGE"
877EOF
878
879cat >> confdefs.h <<EOF
880#define VERSION "$VERSION"
881EOF
882
883
884
885missing_dir=`cd $ac_aux_dir && pwd`
886echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
4c63da97 887echo "configure:888: checking for working aclocal" >&5
252b5132
RH
888# Run test in a subshell; some versions of sh will print an error if
889# an executable is not found, even if stderr is redirected.
890# Redirect stdin to placate older versions of autoconf. Sigh.
891if (aclocal --version) < /dev/null > /dev/null 2>&1; then
892 ACLOCAL=aclocal
893 echo "$ac_t""found" 1>&6
894else
895 ACLOCAL="$missing_dir/missing aclocal"
896 echo "$ac_t""missing" 1>&6
897fi
898
899echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
4c63da97 900echo "configure:901: checking for working autoconf" >&5
252b5132
RH
901# Run test in a subshell; some versions of sh will print an error if
902# an executable is not found, even if stderr is redirected.
903# Redirect stdin to placate older versions of autoconf. Sigh.
904if (autoconf --version) < /dev/null > /dev/null 2>&1; then
905 AUTOCONF=autoconf
906 echo "$ac_t""found" 1>&6
907else
908 AUTOCONF="$missing_dir/missing autoconf"
909 echo "$ac_t""missing" 1>&6
910fi
911
912echo $ac_n "checking for working automake""... $ac_c" 1>&6
4c63da97 913echo "configure:914: checking for working automake" >&5
252b5132
RH
914# Run test in a subshell; some versions of sh will print an error if
915# an executable is not found, even if stderr is redirected.
916# Redirect stdin to placate older versions of autoconf. Sigh.
917if (automake --version) < /dev/null > /dev/null 2>&1; then
918 AUTOMAKE=automake
919 echo "$ac_t""found" 1>&6
920else
921 AUTOMAKE="$missing_dir/missing automake"
922 echo "$ac_t""missing" 1>&6
923fi
924
925echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
4c63da97 926echo "configure:927: checking for working autoheader" >&5
252b5132
RH
927# Run test in a subshell; some versions of sh will print an error if
928# an executable is not found, even if stderr is redirected.
929# Redirect stdin to placate older versions of autoconf. Sigh.
930if (autoheader --version) < /dev/null > /dev/null 2>&1; then
931 AUTOHEADER=autoheader
932 echo "$ac_t""found" 1>&6
933else
934 AUTOHEADER="$missing_dir/missing autoheader"
935 echo "$ac_t""missing" 1>&6
936fi
937
938echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
4c63da97 939echo "configure:940: checking for working makeinfo" >&5
252b5132
RH
940# Run test in a subshell; some versions of sh will print an error if
941# an executable is not found, even if stderr is redirected.
942# Redirect stdin to placate older versions of autoconf. Sigh.
943if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
944 MAKEINFO=makeinfo
945 echo "$ac_t""found" 1>&6
946else
947 MAKEINFO="$missing_dir/missing makeinfo"
948 echo "$ac_t""missing" 1>&6
949fi
950
951
952
953# Check whether --enable-shared or --disable-shared was given.
954if test "${enable_shared+set}" = set; then
955 enableval="$enable_shared"
956 p=${PACKAGE-default}
957case "$enableval" in
958yes) enable_shared=yes ;;
959no) enable_shared=no ;;
960*)
961 enable_shared=no
962 # Look at the argument we got. We use all the common list separators.
963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
964 for pkg in $enableval; do
965 if test "X$pkg" = "X$p"; then
966 enable_shared=yes
967 fi
968 done
969 IFS="$ac_save_ifs"
970 ;;
971esac
972else
973 enable_shared=yes
974fi
975
976# Check whether --enable-static or --disable-static was given.
977if test "${enable_static+set}" = set; then
978 enableval="$enable_static"
979 p=${PACKAGE-default}
980case "$enableval" in
981yes) enable_static=yes ;;
982no) enable_static=no ;;
983*)
984 enable_static=no
985 # Look at the argument we got. We use all the common list separators.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
987 for pkg in $enableval; do
988 if test "X$pkg" = "X$p"; then
989 enable_static=yes
990 fi
991 done
992 IFS="$ac_save_ifs"
993 ;;
994esac
995else
996 enable_static=yes
997fi
998
bedf545c
ILT
999# Check whether --enable-fast-install or --disable-fast-install was given.
1000if test "${enable_fast_install+set}" = set; then
1001 enableval="$enable_fast_install"
1002 p=${PACKAGE-default}
1003case "$enableval" in
1004yes) enable_fast_install=yes ;;
1005no) enable_fast_install=no ;;
1006*)
1007 enable_fast_install=no
1008 # Look at the argument we got. We use all the common list separators.
1009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1010 for pkg in $enableval; do
1011 if test "X$pkg" = "X$p"; then
1012 enable_fast_install=yes
1013 fi
1014 done
1015 IFS="$ac_save_ifs"
1016 ;;
1017esac
1018else
1019 enable_fast_install=yes
1020fi
1021
252b5132
RH
1022# Extract the first word of "ranlib", so it can be a program name with args.
1023set dummy ranlib; ac_word=$2
1024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1025echo "configure:1026: checking for $ac_word" >&5
1026if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
252b5132
RH
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028else
1029 if test -n "$RANLIB"; then
1030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1031else
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_RANLIB="ranlib"
1038 break
1039 fi
1040 done
1041 IFS="$ac_save_ifs"
1042 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1043fi
1044fi
1045RANLIB="$ac_cv_prog_RANLIB"
1046if test -n "$RANLIB"; then
1047 echo "$ac_t""$RANLIB" 1>&6
1048else
1049 echo "$ac_t""no" 1>&6
1050fi
1051
1052# Extract the first word of "gcc", so it can be a program name with args.
1053set dummy gcc; ac_word=$2
1054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1055echo "configure:1056: checking for $ac_word" >&5
1056if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058else
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC="$CC" # Let the user override the test.
1061else
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1063 ac_dummy="$PATH"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_CC="gcc"
1068 break
1069 fi
1070 done
1071 IFS="$ac_save_ifs"
1072fi
1073fi
1074CC="$ac_cv_prog_CC"
1075if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1077else
1078 echo "$ac_t""no" 1>&6
1079fi
1080
1081if test -z "$CC"; then
1082 # Extract the first word of "cc", so it can be a program name with args.
1083set dummy cc; ac_word=$2
1084echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1085echo "configure:1086: checking for $ac_word" >&5
1086if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
1087 echo $ac_n "(cached) $ac_c" 1>&6
1088else
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1091else
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 ac_prog_rejected=no
1094 ac_dummy="$PATH"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1098 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1099 ac_prog_rejected=yes
1100 continue
1101 fi
1102 ac_cv_prog_CC="cc"
1103 break
1104 fi
1105 done
1106 IFS="$ac_save_ifs"
1107if test $ac_prog_rejected = yes; then
1108 # We found a bogon in the path, so make sure we never use it.
1109 set dummy $ac_cv_prog_CC
1110 shift
1111 if test $# -gt 0; then
1112 # We chose a different compiler from the bogus one.
1113 # However, it has the same basename, so the bogon will be chosen
1114 # first if we set CC to just the basename; use the full file name.
1115 shift
1116 set dummy "$ac_dir/$ac_word" "$@"
1117 shift
1118 ac_cv_prog_CC="$@"
1119 fi
1120fi
1121fi
1122fi
1123CC="$ac_cv_prog_CC"
1124if test -n "$CC"; then
1125 echo "$ac_t""$CC" 1>&6
1126else
1127 echo "$ac_t""no" 1>&6
1128fi
1129
1130 if test -z "$CC"; then
1131 case "`uname -s`" in
4c63da97 1132 *win32* | *WIN32* | *CYGWIN*)
252b5132
RH
1133 # Extract the first word of "cl", so it can be a program name with args.
1134set dummy cl; ac_word=$2
1135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1136echo "configure:1137: checking for $ac_word" >&5
1137if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139else
1140 if test -n "$CC"; then
1141 ac_cv_prog_CC="$CC" # Let the user override the test.
1142else
1143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1144 ac_dummy="$PATH"
1145 for ac_dir in $ac_dummy; do
1146 test -z "$ac_dir" && ac_dir=.
1147 if test -f $ac_dir/$ac_word; then
1148 ac_cv_prog_CC="cl"
1149 break
1150 fi
1151 done
1152 IFS="$ac_save_ifs"
1153fi
1154fi
1155CC="$ac_cv_prog_CC"
1156if test -n "$CC"; then
1157 echo "$ac_t""$CC" 1>&6
1158else
1159 echo "$ac_t""no" 1>&6
1160fi
1161 ;;
1162 esac
1163 fi
1164 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1165fi
1166
4c63da97
AM
1167echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1168echo "configure:1169: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
252b5132
RH
1169
1170ac_ext=c
1171# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172ac_cpp='$CPP $CPPFLAGS'
1173ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175cross_compiling=$ac_cv_prog_cc_cross
1176
1177cat > conftest.$ac_ext << EOF
1178
4c63da97 1179#line 1180 "configure"
252b5132
RH
1180#include "confdefs.h"
1181
1182main(){return(0);}
1183EOF
4c63da97 1184if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
1185 ac_cv_prog_cc_works=yes
1186 # If we can't run a trivial program, we are probably using a cross compiler.
1187 if (./conftest; exit) 2>/dev/null; then
1188 ac_cv_prog_cc_cross=no
1189 else
1190 ac_cv_prog_cc_cross=yes
1191 fi
1192else
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1195 ac_cv_prog_cc_works=no
1196fi
1197rm -fr conftest*
1198ac_ext=c
1199# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1200ac_cpp='$CPP $CPPFLAGS'
1201ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1202ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1203cross_compiling=$ac_cv_prog_cc_cross
1204
1205echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1206if test $ac_cv_prog_cc_works = no; then
1207 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1208fi
4c63da97
AM
1209echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1210echo "configure:1211: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
252b5132
RH
1211echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1212cross_compiling=$ac_cv_prog_cc_cross
1213
1214echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4c63da97
AM
1215echo "configure:1216: checking whether we are using GNU C" >&5
1216if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
252b5132
RH
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218else
1219 cat > conftest.c <<EOF
1220#ifdef __GNUC__
1221 yes;
1222#endif
1223EOF
4c63da97 1224if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
252b5132
RH
1225 ac_cv_prog_gcc=yes
1226else
1227 ac_cv_prog_gcc=no
1228fi
1229fi
1230
1231echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1232
1233if test $ac_cv_prog_gcc = yes; then
1234 GCC=yes
1235else
1236 GCC=
1237fi
1238
1239ac_test_CFLAGS="${CFLAGS+set}"
1240ac_save_CFLAGS="$CFLAGS"
1241CFLAGS=
1242echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4c63da97
AM
1243echo "configure:1244: checking whether ${CC-cc} accepts -g" >&5
1244if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
252b5132
RH
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247 echo 'void f(){}' > conftest.c
1248if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1249 ac_cv_prog_cc_g=yes
1250else
1251 ac_cv_prog_cc_g=no
1252fi
1253rm -f conftest*
1254
1255fi
1256
1257echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1258if test "$ac_test_CFLAGS" = set; then
1259 CFLAGS="$ac_save_CFLAGS"
1260elif test $ac_cv_prog_cc_g = yes; then
1261 if test "$GCC" = yes; then
1262 CFLAGS="-g -O2"
1263 else
1264 CFLAGS="-g"
1265 fi
1266else
1267 if test "$GCC" = yes; then
1268 CFLAGS="-O2"
1269 else
1270 CFLAGS=
1271 fi
1272fi
1273
1274# Check whether --with-gnu-ld or --without-gnu-ld was given.
1275if test "${with_gnu_ld+set}" = set; then
1276 withval="$with_gnu_ld"
1277 test "$withval" = no || with_gnu_ld=yes
1278else
1279 with_gnu_ld=no
1280fi
1281
252b5132
RH
1282ac_prog=ld
1283if test "$ac_cv_prog_gcc" = yes; then
1284 # Check if gcc -print-prog-name=ld gives a path.
1285 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
4c63da97 1286echo "configure:1287: checking for ld used by GCC" >&5
252b5132
RH
1287 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1288 case "$ac_prog" in
bedf545c
ILT
1289 # Accept absolute paths.
1290 /* | [A-Za-z]:[\\/]*)
1291 re_direlt='/[^/][^/]*/\.\./'
1292 # Canonicalize the path of ld
1293 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1294 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1295 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1296 done
1297 test -z "$LD" && LD="$ac_prog"
1298 ;;
252b5132
RH
1299 "")
1300 # If it fails, then pretend we aren't using GCC.
1301 ac_prog=ld
1302 ;;
1303 *)
1304 # If it is relative, then search for the first ld in PATH.
1305 with_gnu_ld=unknown
1306 ;;
1307 esac
1308elif test "$with_gnu_ld" = yes; then
1309 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
4c63da97 1310echo "configure:1311: checking for GNU ld" >&5
252b5132
RH
1311else
1312 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
4c63da97 1313echo "configure:1314: checking for non-GNU ld" >&5
252b5132 1314fi
4c63da97 1315if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
252b5132
RH
1316 echo $ac_n "(cached) $ac_c" 1>&6
1317else
1318 if test -z "$LD"; then
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1320 for ac_dir in $PATH; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f "$ac_dir/$ac_prog"; then
1323 ac_cv_path_LD="$ac_dir/$ac_prog"
1324 # Check to see if the program is GNU ld. I'd rather use --version,
1325 # but apparently some GNU ld's only accept -v.
1326 # Break only if it was the GNU/non-GNU ld that we prefer.
1327 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1328 test "$with_gnu_ld" != no && break
1329 else
bedf545c 1330 test "$with_gnu_ld" != yes && break
252b5132
RH
1331 fi
1332 fi
1333 done
1334 IFS="$ac_save_ifs"
1335else
1336 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1337fi
1338fi
1339
1340LD="$ac_cv_path_LD"
1341if test -n "$LD"; then
1342 echo "$ac_t""$LD" 1>&6
1343else
1344 echo "$ac_t""no" 1>&6
1345fi
1346test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1347
1348echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
4c63da97
AM
1349echo "configure:1350: checking if the linker ($LD) is GNU ld" >&5
1350if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
252b5132
RH
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352else
1353 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1354if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1355 ac_cv_prog_gnu_ld=yes
1356else
1357 ac_cv_prog_gnu_ld=no
1358fi
1359fi
1360
1361echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1362
1363
1364echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
4c63da97
AM
1365echo "configure:1366: checking for BSD-compatible nm" >&5
1366if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
252b5132
RH
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368else
1369 if test -n "$NM"; then
1370 # Let the user override the test.
1371 ac_cv_path_NM="$NM"
1372else
1373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
bedf545c 1374 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132
RH
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/nm; then
1377 # Check to see if the nm accepts a BSD-compat flag.
1378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1379 # nm: unknown option "B" ignored
1380 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
bedf545c
ILT
1381 ac_cv_path_NM="$ac_dir/nm -B"
1382 break
252b5132 1383 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
bedf545c
ILT
1384 ac_cv_path_NM="$ac_dir/nm -p"
1385 break
252b5132 1386 else
bedf545c
ILT
1387 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1388 continue # so that we can try to find one that supports BSD flags
252b5132 1389 fi
252b5132
RH
1390 fi
1391 done
1392 IFS="$ac_save_ifs"
1393 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1394fi
1395fi
1396
1397NM="$ac_cv_path_NM"
1398echo "$ac_t""$NM" 1>&6
1399
1400
bedf545c
ILT
1401# Check for command to grab the raw symbol name followed by C symbol from nm.
1402echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4c63da97
AM
1403echo "configure:1404: checking command to parse $NM output" >&5
1404if eval "test \"\${ac_cv_sys_global_symbol_pipe+set}\" = set"; then
bedf545c
ILT
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406else
1407 # These are sane defaults that work on at least a few old systems.
1408# {They come from Ultrix. What could be older than Ultrix?!! ;)}
1409
1410# Character class describing NM global symbol codes.
1411ac_symcode='[BCDEGRST]'
1412
1413# Regexp to match symbols that can be accessed directly from C.
1414ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1415
1416# Transform the above into a raw symbol and a C symbol.
1417ac_symxfrm='\1 \2\3 \3'
1418
1419# Transform an extracted symbol line into a proper C declaration
1420ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1421
1422# Define system-specific variables.
1423case "$host_os" in
1424aix*)
1425 ac_symcode='[BCDT]'
1426 ;;
1427cygwin* | mingw*)
1428 ac_symcode='[ABCDGISTW]'
1429 ;;
1430hpux*)
1431 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1432 ;;
1433irix*)
1434 ac_symcode='[BCDEGRST]'
1435 ;;
1436solaris*)
1437 ac_symcode='[BDT]'
1438 ;;
1439esac
1440
1441# If we're using GNU nm, then use its standard symbol codes.
1442if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1443 ac_symcode='[ABCDGISTW]'
1444fi
1445
1446# Try without a prefix undercore, then with it.
1447for ac_symprfx in "" "_"; do
1448
1449 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1450
1451 # Check to see that the pipe works correctly.
1452 ac_pipe_works=no
1453 rm -f conftest.$ac_ext
1454 cat > conftest.$ac_ext <<EOF
1455#ifdef __cplusplus
1456extern "C" {
1457#endif
1458char nm_test_var;
1459void nm_test_func(){}
1460#ifdef __cplusplus
1461}
1462#endif
1463int main(){nm_test_var='a';nm_test_func;return 0;}
1464EOF
1465
4c63da97 1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bedf545c
ILT
1467 # Now try to grab the symbols.
1468 ac_nlist=conftest.nm
1469
4c63da97 1470 if { (eval echo configure:1471: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
bedf545c
ILT
1471
1472 # Try sorting and uniquifying the output.
1473 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1474 mv -f "$ac_nlist"T "$ac_nlist"
1475 else
1476 rm -f "$ac_nlist"T
1477 fi
1478
1479 # Make sure that we snagged all the symbols we need.
1480 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1481 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1482 cat <<EOF > conftest.c
1483#ifdef __cplusplus
1484extern "C" {
1485#endif
1486
1487EOF
1488 # Now generate the symbol file.
1489 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1490
1491 cat <<EOF >> conftest.c
1492#if defined (__STDC__) && __STDC__
1493# define lt_ptr_t void *
1494#else
1495# define lt_ptr_t char *
1496# define const
1497#endif
1498
1499/* The mapping between symbol names and symbols. */
1500const struct {
1501 const char *name;
1502 lt_ptr_t address;
1503}
1504lt_preloaded_symbols[] =
1505{
1506EOF
1507 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1508 cat <<\EOF >> conftest.c
1509 {0, (lt_ptr_t) 0}
1510};
1511
1512#ifdef __cplusplus
1513}
1514#endif
1515EOF
1516 # Now try linking the two files.
1517 mv conftest.$ac_objext conftestm.$ac_objext
1518 ac_save_LIBS="$LIBS"
1519 ac_save_CFLAGS="$CFLAGS"
1520 LIBS="conftestm.$ac_objext"
1521 CFLAGS="$CFLAGS$no_builtin_flag"
4c63da97 1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
bedf545c
ILT
1523 ac_pipe_works=yes
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.c >&5
1527 fi
1528 LIBS="$ac_save_LIBS"
1529 CFLAGS="$ac_save_CFLAGS"
1530 else
1531 echo "cannot find nm_test_func in $ac_nlist" >&5
1532 fi
1533 else
1534 echo "cannot find nm_test_var in $ac_nlist" >&5
1535 fi
1536 else
1537 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1538 fi
1539 else
1540 echo "$progname: failed program was:" >&5
1541 cat conftest.c >&5
1542 fi
1543 rm -rf conftest*
1544
1545 # Do not use the global_symbol_pipe unless it works.
1546 if test "$ac_pipe_works" = yes; then
1547 if test x"$ac_symprfx" = x"_"; then
1548 ac_cv_sys_symbol_underscore=yes
1549 else
1550 ac_cv_sys_symbol_underscore=no
1551 fi
1552 break
1553 else
1554 ac_cv_sys_global_symbol_pipe=
1555 fi
1556done
1557
1558fi
1559
1560
1561ac_result=yes
1562if test -z "$ac_cv_sys_global_symbol_pipe"; then
1563 ac_result=no
1564fi
1565echo "$ac_t""$ac_result" 1>&6
1566
1567echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
4c63da97
AM
1568echo "configure:1569: checking for _ prefix in compiled symbols" >&5
1569if eval "test \"\${ac_cv_sys_symbol_underscore+set}\" = set"; then
bedf545c
ILT
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572 ac_cv_sys_symbol_underscore=no
1573cat > conftest.$ac_ext <<EOF
1574void nm_test_func(){}
1575int main(){nm_test_func;return 0;}
1576EOF
4c63da97 1577if { (eval echo configure:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
bedf545c
ILT
1578 # Now try to grab the symbols.
1579 ac_nlist=conftest.nm
4c63da97 1580 if { (eval echo configure:1581: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
bedf545c
ILT
1581 # See whether the symbols have a leading underscore.
1582 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1583 ac_cv_sys_symbol_underscore=yes
1584 else
1585 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1586 :
1587 else
1588 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1589 fi
1590 fi
1591 else
1592 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1593 fi
1594else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.c >&5
1597fi
1598rm -rf conftest*
1599
1600fi
1601
1602echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1603USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1604
252b5132 1605echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4c63da97
AM
1606echo "configure:1607: checking whether ln -s works" >&5
1607if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
252b5132
RH
1608 echo $ac_n "(cached) $ac_c" 1>&6
1609else
1610 rm -f conftestdata
1611if ln -s X conftestdata 2>/dev/null
1612then
1613 rm -f conftestdata
1614 ac_cv_prog_LN_S="ln -s"
1615else
1616 ac_cv_prog_LN_S=ln
1617fi
1618fi
1619LN_S="$ac_cv_prog_LN_S"
1620if test "$ac_cv_prog_LN_S" = "ln -s"; then
1621 echo "$ac_t""yes" 1>&6
1622else
1623 echo "$ac_t""no" 1>&6
1624fi
1625
1626if test $host != $build; then
1627 ac_tool_prefix=${host_alias}-
1628else
1629 ac_tool_prefix=
1630fi
1631
252b5132
RH
1632
1633# Check for any special flags to pass to ltconfig.
bedf545c 1634libtool_flags="--cache-file=$cache_file"
252b5132
RH
1635test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1636test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
bedf545c
ILT
1637test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1638test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
252b5132
RH
1639test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1640test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1641test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1642
1643# Some flags need to be propagated to the compiler or linker for good
1644# libtool support.
1645case "$host" in
1646*-*-irix6*)
1647 # Find out which ABI we are using.
4c63da97
AM
1648 echo '#line 1649 "configure"' > conftest.$ac_ext
1649 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
1650 case "`/usr/bin/file conftest.o`" in
1651 *32-bit*)
1652 LD="${LD-ld} -32"
1653 ;;
1654 *N32*)
1655 LD="${LD-ld} -n32"
1656 ;;
1657 *64-bit*)
1658 LD="${LD-ld} -64"
1659 ;;
1660 esac
1661 fi
1662 rm -rf conftest*
1663 ;;
1664
1665*-*-sco3.2v5*)
1666 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
bedf545c 1667 SAVE_CFLAGS="$CFLAGS"
252b5132 1668 CFLAGS="$CFLAGS -belf"
bedf545c 1669 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4c63da97
AM
1670echo "configure:1671: checking whether the C compiler needs -belf" >&5
1671if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
bedf545c
ILT
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673else
1674 cat > conftest.$ac_ext <<EOF
4c63da97 1675#line 1676 "configure"
bedf545c
ILT
1676#include "confdefs.h"
1677
1678int main() {
1679
1680; return 0; }
1681EOF
4c63da97 1682if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
bedf545c
ILT
1683 rm -rf conftest*
1684 lt_cv_cc_needs_belf=yes
1685else
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1688 rm -rf conftest*
1689 lt_cv_cc_needs_belf=no
1690fi
1691rm -f conftest*
1692fi
1693
1694echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1695 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1697 CFLAGS="$SAVE_CFLAGS"
1698 fi
252b5132
RH
1699 ;;
1700
1701*-*-cygwin*)
1702 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1703set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1705echo "configure:1706: checking for $ac_word" >&5
1706if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
252b5132
RH
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708else
1709 if test -n "$DLLTOOL"; then
1710 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1711else
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1713 ac_dummy="$PATH"
1714 for ac_dir in $ac_dummy; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1718 break
1719 fi
1720 done
1721 IFS="$ac_save_ifs"
1722fi
1723fi
1724DLLTOOL="$ac_cv_prog_DLLTOOL"
1725if test -n "$DLLTOOL"; then
1726 echo "$ac_t""$DLLTOOL" 1>&6
1727else
1728 echo "$ac_t""no" 1>&6
1729fi
1730
1731
1732if test -z "$ac_cv_prog_DLLTOOL"; then
1733if test -n "$ac_tool_prefix"; then
1734 # Extract the first word of "dlltool", so it can be a program name with args.
1735set dummy dlltool; ac_word=$2
1736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1737echo "configure:1738: checking for $ac_word" >&5
1738if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
252b5132
RH
1739 echo $ac_n "(cached) $ac_c" 1>&6
1740else
1741 if test -n "$DLLTOOL"; then
1742 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1743else
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 ac_dummy="$PATH"
1746 for ac_dir in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir=.
1748 if test -f $ac_dir/$ac_word; then
1749 ac_cv_prog_DLLTOOL="dlltool"
1750 break
1751 fi
1752 done
1753 IFS="$ac_save_ifs"
1754 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1755fi
1756fi
1757DLLTOOL="$ac_cv_prog_DLLTOOL"
1758if test -n "$DLLTOOL"; then
1759 echo "$ac_t""$DLLTOOL" 1>&6
1760else
1761 echo "$ac_t""no" 1>&6
1762fi
1763
1764else
1765 DLLTOOL="false"
1766fi
1767fi
1768
1769# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}as; ac_word=$2
1771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1772echo "configure:1773: checking for $ac_word" >&5
1773if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
252b5132
RH
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775else
1776 if test -n "$AS"; then
1777 ac_cv_prog_AS="$AS" # Let the user override the test.
1778else
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 ac_dummy="$PATH"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_AS="${ac_tool_prefix}as"
1785 break
1786 fi
1787 done
1788 IFS="$ac_save_ifs"
1789fi
1790fi
1791AS="$ac_cv_prog_AS"
1792if test -n "$AS"; then
1793 echo "$ac_t""$AS" 1>&6
1794else
1795 echo "$ac_t""no" 1>&6
1796fi
1797
1798
1799if test -z "$ac_cv_prog_AS"; then
1800if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "as", so it can be a program name with args.
1802set dummy as; ac_word=$2
1803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4c63da97
AM
1804echo "configure:1805: checking for $ac_word" >&5
1805if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
252b5132
RH
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807else
1808 if test -n "$AS"; then
1809 ac_cv_prog_AS="$AS" # Let the user override the test.
1810else
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1812 ac_dummy="$PATH"
1813 for ac_dir in $ac_dummy; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f $ac_dir/$ac_word; then
1816 ac_cv_prog_AS="as"
1817 break
1818 fi
1819 done
1820 IFS="$ac_save_ifs"
1821 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1822fi
1823fi
1824AS="$ac_cv_prog_AS"
1825if test -n "$AS"; then
1826 echo "$ac_t""$AS" 1>&6
1827else
1828 echo "$ac_t""no" 1>&6
1829fi
1830
1831else
1832 AS="false"
1833fi
1834fi
1835
1836
1837 ;;
1838
1839esac
1840
bedf545c
ILT
1841# enable the --disable-libtool-lock switch
1842
1843# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1844if test "${enable_libtool_lock+set}" = set; then
1845 enableval="$enable_libtool_lock"
1846 need_locks=$enableval
1847else
1848 need_locks=yes
1849fi
1850
1851
1852if test x"$need_locks" = xno; then
1853 libtool_flags="$libtool_flags --disable-lock"
1854fi
1855
1856
1857# Save cache, so that ltconfig can load it
1858cat > confcache <<\EOF
1859# This file is a shell script that caches the results of configure
1860# tests run on this system so they can be shared between configure
1861# scripts and configure runs. It is not useful on other systems.
1862# If it contains results you don't want to keep, you may remove or edit it.
1863#
1864# By default, configure uses ./config.cache as the cache file,
1865# creating it if it does not exist already. You can give configure
1866# the --cache-file=FILE option to use a different cache file; that is
1867# what configure does when it calls configure scripts in
1868# subdirectories, so they share the cache.
1869# Giving --cache-file=/dev/null disables caching, for debugging configure.
1870# config.status only pays attention to the cache file if you give it the
1871# --recheck option to rerun configure.
1872#
1873EOF
1874# The following way of writing the cache mishandles newlines in values,
1875# but we know of no workaround that is simple, portable, and efficient.
1876# So, don't put newlines in cache variables' values.
1877# Ultrix sh set writes to stderr and can't be redirected directly,
1878# and sets the high bit in the cache file unless we assign to the vars.
1879(set) 2>&1 |
1880 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1881 *ac_space=\ *)
1882 # `set' does not quote correctly, so add quotes (double-quote substitution
1883 # turns \\\\ into \\, and sed turns \\ into \).
1884 sed -n \
1885 -e "s/'/'\\\\''/g" \
1886 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1887 ;;
1888 *)
1889 # `set' quotes correctly as required by POSIX, so do not add quotes.
1890 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1891 ;;
1892 esac >> confcache
1893if cmp -s $cache_file confcache; then
1894 :
1895else
1896 if test -w $cache_file; then
1897 echo "updating cache $cache_file"
1898 cat confcache > $cache_file
1899 else
1900 echo "not updating unwritable cache $cache_file"
1901 fi
1902fi
1903rm -f confcache
1904
1905
252b5132
RH
1906# Actually configure libtool. ac_aux_dir is where install-sh is found.
1907CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1908LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1909DLLTOOL="$DLLTOOL" AS="$AS" \
1910${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1911$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1912|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1913
bedf545c
ILT
1914# Reload cache, that may have been modified by ltconfig
1915if test -r "$cache_file"; then
1916 echo "loading cache $cache_file"
4c63da97 1917 test -f "$cache_file" && . $cache_file
bedf545c
ILT
1918else
1919 echo "creating cache $cache_file"
1920 > $cache_file
1921fi
1922
1923
1924# This can be used to rebuild libtool when needed
1925LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1926
1927# Always use our own libtool.
1928LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1929
252b5132
RH
1930# Redirect the config.log output again, so that the ltconfig log is not
1931# clobbered by the next message.
1932exec 5>>./config.log
1933
1934
1935user_bfd_gas=
1936# Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1937if test "${enable_bfd_assembler+set}" = set; then
1938 enableval="$enable_bfd_assembler"
1939 case "${enableval}" in
1940 yes) need_bfd=yes user_bfd_gas=yes ;;
1941 no) user_bfd_gas=no ;;
1942 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1943esac
1944fi
1945# Check whether --enable-targets or --disable-targets was given.
1946if test "${enable_targets+set}" = set; then
1947 enableval="$enable_targets"
1948 case "${enableval}" in
1949 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1950 ;;
1951 no) enable_targets= ;;
1952 *) enable_targets=$enableval ;;
1953esac
1954fi
1955# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1956if test "${enable_commonbfdlib+set}" = set; then
1957 enableval="$enable_commonbfdlib"
1958 case "${enableval}" in
1959 yes) commonbfdlib=true ;;
1960 no) commonbfdlib=false ;;
1961 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1962esac
1963fi
1964
1965using_cgen=no
1966
1967# Generate a header file
1968
1969
1970
1971
76a27922
ILT
1972# If we are on a DOS filesystem, we must use gdb.ini rather than
1973# .gdbinit.
1974GDBINIT=".gdbinit"
1975case "${host}" in
1976 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
1977 GDBINIT="gdb.ini"
1978 ;;
1979esac
1980
1981
252b5132
RH
1982te_file=generic
1983
1984# Makefile target for installing gas in $(tooldir)/bin.
1985install_tooldir=install-exec-tooldir
1986
1987canon_targets=""
1988if test -n "$enable_targets" ; then
1989 for t in `echo $enable_targets | sed 's/,/ /g'`; do
6d83c84b 1990 result=`$ac_config_sub $t 2>/dev/null`
252b5132
RH
1991 if test -n "$result" ; then
1992 canon_targets="$canon_targets $result"
1993# else
1994# # Permit "all", etc. We don't support it yet though.
1995# canon_targets="$canon_targets $t"
1996 fi
1997 done
1998 _gas_uniq_list="$canon_targets"
1999_gas_uniq_newlist=""
2000for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2001 case $_gas_uniq_i in
2002 _gas_uniq_dummy) ;;
2003 *) case " $_gas_uniq_newlist " in
2004 *" $_gas_uniq_i "*) ;;
2005 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2006 esac ;;
2007 esac
2008done
2009canon_targets=$_gas_uniq_newlist
2010
2011fi
2012
2013emulations=""
2014
2015for this_target in $target $canon_targets ; do
2016
2017 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
2018
2019 # check for architecture variants
2020 arch=
2021 endian=
2022 case ${cpu} in
2023 alpha*) cpu_type=alpha ;;
2024 armeb) cpu_type=arm endian=big ;;
2025 arm*) cpu_type=arm endian=little ;;
2026 armb*) cpu_type=arm endian=little ;;
2027 armv*l) cpu_type=arm endian=little ;;
2028 armv*b) cpu_type=arm endian=big ;;
2029 strongarm*) cpu_type=arm endian=little ;;
2030 thumb*) cpu_type=arm endian=little ;;
2031 hppa*) cpu_type=hppa ;;
2032 i[456]86) cpu_type=i386 ;;
2033 m680[012346]0) cpu_type=m68k ;;
2034 m68008) cpu_type=m68k ;;
2035 m683??) cpu_type=m68k ;;
2036 m5200) cpu_type=m68k ;;
2037 m8*) cpu_type=m88k ;;
2038 mips*el) cpu_type=mips endian=little ;;
2039 mips*) cpu_type=mips endian=big ;;
041dd5a9
ILT
2040 pjl*) cpu_type=pj endian=little ;;
2041 pj*) cpu_type=pj endian=big ;;
252b5132
RH
2042 powerpcle*) cpu_type=ppc endian=little ;;
2043 powerpc*) cpu_type=ppc endian=big ;;
2044 rs6000*) cpu_type=ppc ;;
2045 sparclite*) cpu_type=sparc arch=sparclite ;;
2046 sparclet*) cpu_type=sparc arch=sparclet ;;
2047 sparc64*) cpu_type=sparc arch=v9-64 ;;
2048 sparc86x*) cpu_type=sparc arch=sparc86x ;;
2049 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
2050 v850*) cpu_type=v850 ;;
2051 *) cpu_type=${cpu} ;;
2052 esac
2053
2054 if test ${this_target} = $target ; then
2055 target_cpu_type=${cpu_type}
2056 elif test ${target_cpu_type} != ${cpu_type} ; then
2057 continue
2058 fi
2059
2060 generic_target=${cpu_type}-$vendor-$os
2061 dev=no
2062 bfd_gas=no
2063 em=generic
2064
2065 # assign object format
2066 case ${generic_target} in
2067 a29k-*-coff) fmt=coff ;;
2068 a29k-amd-udi) fmt=coff ;;
2069 a29k-amd-ebmon) fmt=coff ;;
2070 a29k-nyu-sym1) fmt=coff ;;
2071 a29k-*-vxworks*) fmt=coff ;;
2072
2073 alpha*-*-*vms*) fmt=evax ;;
2074 alpha*-*-netware*) fmt=ecoff ;;
2075 alpha*-*-openbsd*) fmt=ecoff ;;
2076 alpha*-*-osf*) fmt=ecoff ;;
2077 alpha*-*-linuxecoff*) fmt=ecoff ;;
2078 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
2079 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
2080
2081 arc-*-elf*) fmt=elf bfd_gas=yes ;;
2082
2083 arm-*-aout) fmt=aout ;;
2084 arm-*-coff | thumb-*-coff) fmt=coff ;;
2085 arm-*-elf | thumb-*-elf) fmt=elf ;;
0decc840 2086 arm*-*-conix*) fmt=elf ;;
252b5132 2087 arm-*-linux*aout*) fmt=aout em=linux ;;
0decc840 2088 arm*-*-linux-gnu*) fmt=elf em=linux ;;
252b5132
RH
2089 arm-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2090 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
2091 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
056350c6 2092 arm-*-wince) fmt=coff em=wince-pe bfd_gas=yes;;
252b5132
RH
2093 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
2094 arm-*-riscix*) fmt=aout em=riscix ;;
2095
2096 d10v-*-*) fmt=elf bfd_gas=yes ;;
2097 d30v-*-*) fmt=elf bfd_gas=yes ;;
2098
2099
2100 fr30-*-*) fmt=elf bfd_gas=yes ;;
2101
2102 hppa-*-*elf*) fmt=elf em=hppa ;;
7d4ce8a9 2103 hppa-*-linux-gnu*) fmt=elf em=hppa ;;
252b5132
RH
2104 hppa-*-lites*) fmt=elf em=hppa ;;
2105 hppa-*-osf*) fmt=som em=hppa ;;
2106 hppa-*-rtems*) fmt=elf em=hppa ;;
2107 hppa-*-hpux*) fmt=som em=hppa ;;
2108 hppa-*-mpeix*) fmt=som em=hppa ;;
2109 hppa-*-bsd*) fmt=som em=hppa ;;
2110 hppa-*-hiux*) fmt=som em=hppa ;;
2111
2112 h8300-*-coff) fmt=coff ;;
2113
5b93d8bb 2114 i370-*-elf* | i370-*-linux*) fmt=elf ;;
252b5132
RH
2115 i386-ibm-aix*) fmt=coff em=i386aix ;;
2116 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
2117 i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
2118 i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
2119 i386-*-bsd*) fmt=aout em=386bsd ;;
2120 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
2121 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2122 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2123 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
2124 i386-*-linux*coff*) fmt=coff em=linux ;;
2125 i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
2126 i386-*-lynxos*) fmt=coff em=lynx ;;
2127 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
2128 fmt=elf bfd_gas=yes ;;
008960a5
ILT
2129 i386-*-freebsdaout* | i386-*-freebsd12.* | i386-*-freebsd12)
2130 fmt=aout em=386bsd ;;
2131 i386-*-freebsd*) fmt=elf bfd_gas=yes ;;
252b5132
RH
2132 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
2133 fmt=coff ;;
2134 i386-*-sco3.2v5*) fmt=elf
2135 if test ${this_target} = $target; then
2136 cat >> confdefs.h <<\EOF
2137#define SCO_ELF 1
2138EOF
2139
2140 fi
2141 ;;
2142 i386-*-sco3.2*) fmt=coff ;;
2143 i386-*-vsta) fmt=aout ;;
2144 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
2145 fmt=coff em=go32;;
53f3de98 2146 i386-*-rtemself*) fmt=elf ;;
252b5132
RH
2147 i386-*-rtems*) fmt=coff ;;
2148 i386-*-gnu*) fmt=elf ;;
2149 i386-*-mach*)
2150 fmt=aout em=mach bfd_gas=yes ;;
2151 i386-*-msdos*) fmt=aout ;;
2152 i386-*-moss*) fmt=elf ;;
2153 i386-*-pe) fmt=coff em=pe ;;
2154 i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
9750fcc5 2155 i386-*-interix*) fmt=coff em=interix bfd_gas=yes ;;
252b5132
RH
2156 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
2157 i386-*-*nt*) fmt=coff em=pe ;;
29fe79d3 2158 i386-*-vxworks*) fmt=aout ;;
252b5132
RH
2159 i960-*-bout) fmt=bout ;;
2160 i960-*-coff) fmt=coff em=ic960 ;;
2161 i960-*-rtems*) fmt=coff em=ic960 ;;
2162 i960-*-nindy*) fmt=bout ;;
2163 i960-*-vxworks4*) fmt=bout ;;
2164 i960-*-vxworks5.0) fmt=bout ;;
2165 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2166 i960-*-vxworks*) fmt=bout ;;
bedf545c 2167 i960-*-elf*) fmt=elf ;;
252b5132
RH
2168
2169 m32r-*-*) fmt=elf bfd_gas=yes ;;
2170
2171 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
2172 fmt=aout em=sun3 ;;
2173 m68k-motorola-sysv*) fmt=coff em=delta ;;
2174 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2175 m68k-apollo-*) fmt=coff em=apollo ;;
2176 m68k-*-sysv4*) # must be before -sysv*
2177 fmt=elf em=svr4 ;;
2178 m68k-*-elf*) fmt=elf ;;
2179 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
2180 fmt=coff ;;
2181 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2182 m68k-*-linux*aout*) fmt=aout em=linux ;;
2183 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2184 m68k-*-gnu*) fmt=elf ;;
2185 m68k-*-lynxos*) fmt=coff em=lynx ;;
2186 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2187 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2188 m68k-apple-aux*) fmt=coff em=aux ;;
2189 m68k-*-psos*) fmt=elf em=psos;;
2190
2191 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2192 m88k-*-coff*) fmt=coff ;;
2193
2194 mcore-*-elf) fmt=elf bfd_gas=yes ;;
2195 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2196
2197 # don't change em like *-*-bsd does
2198 mips-dec-netbsd*) fmt=elf endian=little ;;
2199 mips-dec-openbsd*) fmt=elf endian=little ;;
2200 mips-dec-bsd*) fmt=aout endian=little ;;
2201 mips-sony-bsd*) fmt=ecoff ;;
2202 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2203 mips-*-ultrix*) fmt=ecoff endian=little ;;
2204 mips-*-osf*) fmt=ecoff endian=little ;;
2205 mips-*-ecoff*) fmt=ecoff ;;
2206 mips-*-ecoff*) fmt=ecoff ;;
056350c6 2207 mips-*-pe*) fmt=coff endian=little em=pe ;;
252b5132
RH
2208 mips-*-irix6*) fmt=elf ;;
2209 mips-*-irix5*) fmt=elf ;;
2210 mips-*-irix*) fmt=ecoff ;;
2211 mips-*-lnews*) fmt=ecoff em=lnews ;;
2212 mips-*-riscos*) fmt=ecoff ;;
2213 mips-*-sysv*) fmt=ecoff ;;
2214 mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*)
2215 fmt=elf ;;
2216 mips-*-vxworks*) fmt=elf
2217 cat >> confdefs.h <<\EOF
2218#define MIPS_STABS_ELF 1
2219EOF
2220
2221 ;;
2222 mn10200-*-*) fmt=elf bfd_gas=yes ;;
2223 mn10300-*-*) fmt=elf bfd_gas=yes ;;
041dd5a9 2224 pj*) fmt=elf ;;
252b5132
RH
2225 ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
2226 fmt=coff em=pe ;;
2227 ppc-*-aix*) fmt=coff ;;
2228 ppc-*-beos*) fmt=coff ;;
2229 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
2230 fmt=elf ;;
2231 ppc-*-linux-gnu*) fmt=elf
2232 case "$endian" in
2233 big) ;;
2234 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2235 esac
2236 ;;
2237 ppc-*-solaris*) fmt=elf
2238 if test ${this_target} = $target; then
2239 cat >> confdefs.h <<\EOF
2240#define TARGET_SOLARIS_COMMENT 1
2241EOF
2242
2243 fi
2244 if test x${endian} = xbig; then
2245 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2246 fi
2247 ;;
2248 ppc-*-rtems*) fmt=elf ;;
2249 ppc-*-macos* | ppc-*-mpw*)
2250 fmt=coff em=macos ;;
2251 ppc-*-netware*) fmt=elf em=ppcnw ;;
e4a86f6f 2252 ppc-*-vxworks*) fmt=elf ;;
252b5132
RH
2253
2254 sh-*-elf*) fmt=elf ;;
2255 sh-*-coff*) fmt=coff ;;
056350c6 2256 sh-*-pe*) fmt=coff em=pe bfd_gas=yes;;
53f3de98 2257 sh-*-rtemself*) fmt=elf ;;
252b5132
RH
2258 sh-*-rtems*) fmt=coff ;;
2259
2260 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2261 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2262 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
2263
2264 sparc-*-rtems*) fmt=aout ;;
2265 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2266 sparc-*-aout | sparc*-*-vxworks*)
2267 fmt=aout em=sparcaout ;;
2268 sparc-*-coff) fmt=coff ;;
2269 sparc-*-linux*aout*) fmt=aout em=linux ;;
2270 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2271 sparc-*-lynxos*) fmt=coff em=lynx ;;
2272 sparc-fujitsu-none) fmt=aout ;;
2273 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
2274 fmt=elf ;;
2275 sparc-*-netbsd*) fmt=aout em=nbsd ;;
2276 sparc-*-openbsd*) fmt=aout em=nbsd ;;
2277
2278 strongarm-*-coff) fmt=coff ;;
2279 strongarm-*-elf) fmt=elf ;;
2280
2281 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2282 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2283 tic80-*-*) fmt=coff ;;
2284
2285 v850-*-*) fmt=elf bfd_gas=yes ;;
2286 v850e-*-*) fmt=elf bfd_gas=yes ;;
2287 v850ea-*-*) fmt=elf bfd_gas=yes ;;
2288
2289 vax-*-bsd* | vax-*-ultrix*)
2290 fmt=aout ;;
2291 vax-*-vms) fmt=vms ;;
2292
2293
2294 z8k-*-coff | z8k-*-sim)
2295 fmt=coff ;;
2296
2297 w65-*-*) fmt=coff ;;
2298
2299 *-*-aout | *-*-scout)
2300 fmt=aout ;;
2301 *-*-nindy*)
2302 fmt=bout ;;
2303 *-*-bsd*)
2304 fmt=aout em=sun3 ;;
2305 *-*-generic) fmt=generic ;;
2306 *-*-xray | *-*-hms) fmt=coff ;;
2307 *-*-sim) fmt=coff ;;
2308 *-*-elf | *-*-sysv4* | *-*-solaris*)
2309 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2310 fmt=elf dev=yes ;;
2311 *-*-vxworks) fmt=aout ;;
2312 *-*-netware) fmt=elf ;;
2313 esac
2314
2315 if test ${this_target} = $target ; then
2316 endian_def=
2317 if test x${endian} = xbig; then
2318 endian_def=1
2319 elif test x${endian} = xlittle; then
2320 endian_def=0
2321 fi
2322 if test x${endian_def} != x; then
2323 cat >> confdefs.h <<EOF
2324#define TARGET_BYTES_BIG_ENDIAN $endian_def
2325EOF
2326
2327 fi
2328 fi
2329
2330 case ${cpu_type}-${fmt} in
2331 alpha*-*) bfd_gas=yes ;;
2332 arm-*) bfd_gas=yes ;;
2333 # not yet
2334 # i386-aout) bfd_gas=preferred ;;
2335 mips-*) bfd_gas=yes ;;
2336 ns32k-*) bfd_gas=yes ;;
2337 ppc-*) bfd_gas=yes ;;
2338 sparc-*) bfd_gas=yes ;;
2339 strongarm-*) bfd_gas=yes ;;
2340 *-elf) bfd_gas=yes ;;
2341 *-ecoff) bfd_gas=yes ;;
2342 *-som) bfd_gas=yes ;;
4c63da97
AM
2343 #enable bfd for coff and aout to allow testing if a bfd target is
2344 #the primary target, but not for coff or aout as the primary target
4ca72d38 2345 i386-coff) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
4c63da97 2346 i386-aout) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
252b5132
RH
2347 *) ;;
2348 esac
2349
2350# Other random stuff.
2351
2352 # Do we need the opcodes library?
2353 case ${cpu_type} in
2354 vax | i386 | tic30)
2355 ;;
2356
2357 *)
2358 need_opcodes=yes
2359
2360 case "${enable_shared}" in
2361 yes) shared_opcodes=true ;;
2362 *opcodes*) shared_opcodes=true ;;
2363 *) shared_opcodes=false ;;
2364 esac
2365 if test "${shared_opcodes}" = "true"; then
2366 # A shared libopcodes must be linked against libbfd.
2367 need_bfd=yes
2368 fi
2369 ;;
2370 esac
2371
2372 # Any other special object files needed ?
2373 case ${cpu_type} in
2374 fr30 | m32r)
2375 using_cgen=yes
2376 ;;
2377
2378 m68k)
2379 case ${extra_objects} in
2380 *m68k-parse.o*) ;;
2381 *) extra_objects="$extra_objects m68k-parse.o" ;;
2382 esac
2383 ;;
2384
2385 mips)
2386 echo ${extra_objects} | grep -s "itbl-parse.o"
2387 if test $? -ne 0 ; then
2388 extra_objects="$extra_objects itbl-parse.o"
2389 fi
2390
2391 echo ${extra_objects} | grep -s "itbl-lex.o"
2392 if test $? -ne 0 ; then
2393 extra_objects="$extra_objects itbl-lex.o"
2394 fi
2395
2396 echo ${extra_objects} | grep -s "itbl-ops.o"
2397 if test $? -ne 0 ; then
2398 extra_objects="$extra_objects itbl-ops.o"
2399 fi
2400 ;;
2401
2402 sparc)
2403 if test $this_target = $target ; then
2404 cat >> confdefs.h <<EOF
2405#define DEFAULT_ARCH "${arch}"
2406EOF
2407
2408 fi
2409 ;;
2410 *)
2411 ;;
2412 esac
2413
2414 if test $using_cgen = yes ; then
2415 case "x${extra_objects}" in
2416 *cgen.o*) ;;
2417 *) extra_objects="$extra_objects cgen.o" ;;
2418 esac
2419 fi
2420
2421# See if we really can support this configuration with the emulation code.
2422
2423 if test $this_target = $target ; then
2424 primary_bfd_gas=$bfd_gas
2425 obj_format=$fmt
2426 te_file=$em
2427
2428 if test $bfd_gas = no ; then
2429 # Can't support other configurations this way.
2430 break
2431 fi
2432 elif test $bfd_gas = no ; then
2433 # Can't support this configuration.
2434 break
2435 fi
2436
2437# From target name and format, produce a list of supported emulations.
2438
2439 case ${generic_target}-${fmt} in
2440 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2441 mips-*-linux-gnu*-*) case "$endian" in
2442 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2443 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2444 esac ;;
2445 mips-*-lnews*-ecoff) ;;
2446 mips-*-*-ecoff) case "$endian" in
2447 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2448 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2449 esac ;;
2450 mips-*-*-elf) case "$endian" in
2451 big) emulation="mipsbelf mipslelf mipself" ;;
2452 *) emulation="mipslelf mipsbelf mipself" ;;
252b5132 2453 esac ;;
4c63da97
AM
2454 # Uncommenting the next line will turn on support for i386 AOUT
2455 # for the default linux configuration
2456 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2457 #
2458 i386-*-aout) emulation="i386aout" ;;
4ca72d38 2459 i386-*-coff) emulation="i386coff" ;;
4c63da97 2460 i386-*-elf) emulation="i386elf" ;;
252b5132
RH
2461 esac
2462
2463 emulations="$emulations $emulation"
2464
2465done
2466
2467# Assign floating point type. Most processors with FP support
2468# IEEE FP. On those that don't support FP at all, usually IEEE
2469# is emulated.
2470case ${target_cpu} in
2471 vax | tahoe ) atof=${target_cpu} ;;
2472 *) atof=ieee ;;
2473esac
2474
2475case "${obj_format}" in
2476 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2477esac
2478
2479# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2480cgen_cpu_prefix=""
2481if test $using_cgen = yes ; then
2482 case ${target_cpu} in
2483 *) cgen_cpu_prefix=${target_cpu} ;;
2484 esac
2485
2486 cat >> confdefs.h <<\EOF
2487#define USING_CGEN 1
2488EOF
2489
2490fi
2491
2492
2493if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
2494 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2495fi
2496
2497if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
2498 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2499fi
2500
2501case ${user_bfd_gas}-${primary_bfd_gas} in
2502 yes-yes | no-no)
2503 # We didn't override user's choice.
2504 ;;
2505 no-yes)
2506 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2507 ;;
2508 no-preferred)
2509 primary_bfd_gas=no
2510 ;;
2511 *-preferred)
2512 primary_bfd_gas=yes
2513 ;;
2514 yes-*)
2515 primary_bfd_gas=yes
2516 ;;
2517 -*)
2518 # User specified nothing.
2519 ;;
2520esac
2521
2522# Some COFF configurations want these random other flags set.
2523case ${obj_format} in
2524 coff)
2525 case ${target_cpu_type} in
2526 i386) cat >> confdefs.h <<\EOF
2527#define I386COFF 1
2528EOF
2529 ;;
2530 m68k) cat >> confdefs.h <<\EOF
2531#define M68KCOFF 1
2532EOF
2533 ;;
2534 m88k) cat >> confdefs.h <<\EOF
2535#define M88KCOFF 1
2536EOF
2537 ;;
2538 esac
2539 ;;
2540esac
2541
2542# Getting this done right is going to be a bitch. Each configuration specified
2543# with --enable-targets=... should be checked for environment, format, cpu, and
2544# bfd_gas setting.
2545#
2546# For each configuration, the necessary object file support code must be linked
2547# in. This might be only one, it might be up to four. The necessary emulation
2548# code needs to be provided, too.
2549#
2550# And then there's "--enable-targets=all"....
2551#
2552# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2553
2554formats="${obj_format}"
2555emfiles=""
2556EMULATIONS=""
2557_gas_uniq_list="$emulations"
2558_gas_uniq_newlist=""
2559for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2560 case $_gas_uniq_i in
2561 _gas_uniq_dummy) ;;
2562 *) case " $_gas_uniq_newlist " in
2563 *" $_gas_uniq_i "*) ;;
2564 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2565 esac ;;
2566 esac
2567done
2568emulations=$_gas_uniq_newlist
2569
2570for em in . $emulations ; do
2571 case $em in
2572 .) continue ;;
2573 mipsbelf | mipslelf)
2574 fmt=elf file=mipself ;;
2575 mipsbecoff | mipslecoff)
2576 fmt=ecoff file=mipsecoff ;;
4c63da97
AM
2577 i386aout)
2578 fmt=aout file=i386aout ;;
252b5132
RH
2579 i386coff)
2580 fmt=coff file=i386coff ;;
2581 i386elf)
2582 fmt=elf file=i386elf ;;
2583 esac
2584 formats="$formats $fmt"
2585 emfiles="$emfiles e-$file.o"
2586 EMULATIONS="$EMULATIONS &$em,"
2587done
2588_gas_uniq_list="$formats"
2589_gas_uniq_newlist=""
2590for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2591 case $_gas_uniq_i in
2592 _gas_uniq_dummy) ;;
2593 *) case " $_gas_uniq_newlist " in
2594 *" $_gas_uniq_i "*) ;;
2595 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2596 esac ;;
2597 esac
2598done
2599formats=$_gas_uniq_newlist
2600
2601_gas_uniq_list="$emfiles"
2602_gas_uniq_newlist=""
2603for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2604 case $_gas_uniq_i in
2605 _gas_uniq_dummy) ;;
2606 *) case " $_gas_uniq_newlist " in
2607 *" $_gas_uniq_i "*) ;;
2608 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2609 esac ;;
2610 esac
2611done
2612emfiles=$_gas_uniq_newlist
2613
2614if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2615 for fmt in $formats ; do
2616 case $fmt in
2617 aout) cat >> confdefs.h <<\EOF
2618#define OBJ_MAYBE_AOUT 1
2619EOF
2620 ;;
2621 bout) cat >> confdefs.h <<\EOF
2622#define OBJ_MAYBE_BOUT 1
2623EOF
2624 ;;
2625 coff) cat >> confdefs.h <<\EOF
2626#define OBJ_MAYBE_COFF 1
2627EOF
2628 ;;
2629 ecoff) cat >> confdefs.h <<\EOF
2630#define OBJ_MAYBE_ECOFF 1
2631EOF
2632 ;;
2633 elf) cat >> confdefs.h <<\EOF
2634#define OBJ_MAYBE_ELF 1
2635EOF
2636 ;;
2637 generic) cat >> confdefs.h <<\EOF
2638#define OBJ_MAYBE_GENERIC 1
2639EOF
2640 ;;
2641 hp300) cat >> confdefs.h <<\EOF
2642#define OBJ_MAYBE_HP300 1
2643EOF
2644 ;;
2645 ieee) cat >> confdefs.h <<\EOF
2646#define OBJ_MAYBE_IEEE 1
2647EOF
2648 ;;
2649 som) cat >> confdefs.h <<\EOF
2650#define OBJ_MAYBE_SOM 1
2651EOF
2652 ;;
2653 vms) cat >> confdefs.h <<\EOF
2654#define OBJ_MAYBE_VMS 1
2655EOF
2656 ;;
2657 esac
2658 extra_objects="$extra_objects obj-$fmt.o"
2659 done
2660 obj_format=multi
2661fi
2662if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
252b5132 2663 DEFAULT_EMULATION=`set . $emulations ; echo $2`
4ca72d38
AM
2664 # e-mips* has more than one emulation per file, e-i386* has just one at the
2665 # moment. If only one emulation is specified, then don't define
2666 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2667 case "${obj_format}${emfiles}" in
2668 multi* | *mips*)
4ca72d38
AM
2669 extra_objects="$extra_objects $emfiles"
2670 cat >> confdefs.h <<\EOF
252b5132
RH
2671#define USE_EMULATIONS 1
2672EOF
4ca72d38
AM
2673 ;;
2674 esac
252b5132
RH
2675fi
2676
2677cat >> confdefs.h <<EOF
2678#define EMULATIONS $EMULATIONS
2679EOF
2680
2681cat >> confdefs.h <<EOF
2682#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2683EOF
2684
2685
2686case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2687 yes-*-coff) need_bfd=yes ;;
2688 no-*-coff) need_bfd=yes
2689 cat >> confdefs.h <<\EOF
2690#define MANY_SEGMENTS 1
2691EOF
2692 ;;
2693esac
2694
2695reject_dev_configs=yes
2696
2697case ${reject_dev_configs}-${dev} in
2698 yes-yes) # Oops.
2699 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2700 ;;
2701esac
2702
2703
2704
2705
2706
2707
2708
2709case "${primary_bfd_gas}" in
2710 yes) cat >> confdefs.h <<\EOF
2711#define BFD_ASSEMBLER 1
2712EOF
2713
2714 need_bfd=yes ;;
2715esac
2716
2717# do we need the opcodes library?
2718case "${need_opcodes}" in
2719yes)
2720 OPCODES_LIB=../opcodes/libopcodes.la
2721 ;;
2722esac
2723
2724case "${need_bfd}" in
2725yes)
2726 BFDLIB=../bfd/libbfd.la
2727 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
2728 ;;
2729esac
2730
2731
2732
2733
2734
2735
2736cat >> confdefs.h <<EOF
2737#define TARGET_ALIAS "${target_alias}"
2738EOF
2739
2740cat >> confdefs.h <<EOF
2741#define TARGET_CANONICAL "${target}"
2742EOF
2743
2744cat >> confdefs.h <<EOF
2745#define TARGET_CPU "${target_cpu}"
2746EOF
2747
2748cat >> confdefs.h <<EOF
2749#define TARGET_VENDOR "${target_vendor}"
2750EOF
2751
2752cat >> confdefs.h <<EOF
2753#define TARGET_OS "${target_os}"
2754EOF
2755
2756
2757# Extract the first word of "gcc", so it can be a program name with args.
2758set dummy gcc; ac_word=$2
2759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 2760echo "configure:2758: checking for $ac_word" >&5
4c63da97 2761if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
2762 echo $ac_n "(cached) $ac_c" 1>&6
2763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2768 ac_dummy="$PATH"
2769 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 ac_cv_prog_CC="gcc"
2773 break
2774 fi
2775 done
2776 IFS="$ac_save_ifs"
2777fi
2778fi
2779CC="$ac_cv_prog_CC"
2780if test -n "$CC"; then
2781 echo "$ac_t""$CC" 1>&6
2782else
2783 echo "$ac_t""no" 1>&6
2784fi
2785
2786if test -z "$CC"; then
2787 # Extract the first word of "cc", so it can be a program name with args.
2788set dummy cc; ac_word=$2
2789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 2790echo "configure:2788: checking for $ac_word" >&5
4c63da97 2791if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796else
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2798 ac_prog_rejected=no
2799 ac_dummy="$PATH"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2803 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2804 ac_prog_rejected=yes
2805 continue
2806 fi
2807 ac_cv_prog_CC="cc"
2808 break
2809 fi
2810 done
2811 IFS="$ac_save_ifs"
2812if test $ac_prog_rejected = yes; then
2813 # We found a bogon in the path, so make sure we never use it.
2814 set dummy $ac_cv_prog_CC
2815 shift
2816 if test $# -gt 0; then
2817 # We chose a different compiler from the bogus one.
2818 # However, it has the same basename, so the bogon will be chosen
2819 # first if we set CC to just the basename; use the full file name.
2820 shift
2821 set dummy "$ac_dir/$ac_word" "$@"
2822 shift
2823 ac_cv_prog_CC="$@"
2824 fi
2825fi
2826fi
2827fi
2828CC="$ac_cv_prog_CC"
2829if test -n "$CC"; then
2830 echo "$ac_t""$CC" 1>&6
2831else
2832 echo "$ac_t""no" 1>&6
2833fi
2834
2835 if test -z "$CC"; then
2836 case "`uname -s`" in
4c63da97 2837 *win32* | *WIN32* | *CYGWIN*)
252b5132
RH
2838 # Extract the first word of "cl", so it can be a program name with args.
2839set dummy cl; ac_word=$2
2840echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 2841echo "configure:2839: checking for $ac_word" >&5
4c63da97 2842if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
252b5132
RH
2843 echo $ac_n "(cached) $ac_c" 1>&6
2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2849 ac_dummy="$PATH"
2850 for ac_dir in $ac_dummy; do
2851 test -z "$ac_dir" && ac_dir=.
2852 if test -f $ac_dir/$ac_word; then
2853 ac_cv_prog_CC="cl"
2854 break
2855 fi
2856 done
2857 IFS="$ac_save_ifs"
2858fi
2859fi
2860CC="$ac_cv_prog_CC"
2861if test -n "$CC"; then
2862 echo "$ac_t""$CC" 1>&6
2863else
2864 echo "$ac_t""no" 1>&6
2865fi
2866 ;;
2867 esac
2868 fi
2869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2870fi
2871
4c63da97 2872echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5b93d8bb 2873echo "configure:2871: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
252b5132
RH
2874
2875ac_ext=c
2876# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2879ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2880cross_compiling=$ac_cv_prog_cc_cross
2881
2882cat > conftest.$ac_ext << EOF
2883
5b93d8bb 2884#line 2882 "configure"
252b5132
RH
2885#include "confdefs.h"
2886
2887main(){return(0);}
2888EOF
5b93d8bb 2889if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2890 ac_cv_prog_cc_works=yes
2891 # If we can't run a trivial program, we are probably using a cross compiler.
2892 if (./conftest; exit) 2>/dev/null; then
2893 ac_cv_prog_cc_cross=no
2894 else
2895 ac_cv_prog_cc_cross=yes
2896 fi
2897else
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 ac_cv_prog_cc_works=no
2901fi
2902rm -fr conftest*
2903ac_ext=c
2904# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2905ac_cpp='$CPP $CPPFLAGS'
2906ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2907ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2908cross_compiling=$ac_cv_prog_cc_cross
2909
2910echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2911if test $ac_cv_prog_cc_works = no; then
2912 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2913fi
4c63da97 2914echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5b93d8bb 2915echo "configure:2913: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
252b5132
RH
2916echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2917cross_compiling=$ac_cv_prog_cc_cross
2918
2919echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5b93d8bb 2920echo "configure:2918: checking whether we are using GNU C" >&5
4c63da97 2921if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
252b5132
RH
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923else
2924 cat > conftest.c <<EOF
2925#ifdef __GNUC__
2926 yes;
2927#endif
2928EOF
5b93d8bb 2929if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
252b5132
RH
2930 ac_cv_prog_gcc=yes
2931else
2932 ac_cv_prog_gcc=no
2933fi
2934fi
2935
2936echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2937
2938if test $ac_cv_prog_gcc = yes; then
2939 GCC=yes
2940else
2941 GCC=
2942fi
2943
2944ac_test_CFLAGS="${CFLAGS+set}"
2945ac_save_CFLAGS="$CFLAGS"
2946CFLAGS=
2947echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5b93d8bb 2948echo "configure:2946: checking whether ${CC-cc} accepts -g" >&5
4c63da97 2949if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
252b5132
RH
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951else
2952 echo 'void f(){}' > conftest.c
2953if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2954 ac_cv_prog_cc_g=yes
2955else
2956 ac_cv_prog_cc_g=no
2957fi
2958rm -f conftest*
2959
2960fi
2961
2962echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2963if test "$ac_test_CFLAGS" = set; then
2964 CFLAGS="$ac_save_CFLAGS"
2965elif test $ac_cv_prog_cc_g = yes; then
2966 if test "$GCC" = yes; then
2967 CFLAGS="-g -O2"
2968 else
2969 CFLAGS="-g"
2970 fi
2971else
2972 if test "$GCC" = yes; then
2973 CFLAGS="-O2"
2974 else
2975 CFLAGS=
2976 fi
2977fi
2978
2979
2980for ac_prog in 'bison -y' byacc
2981do
2982# Extract the first word of "$ac_prog", so it can be a program name with args.
2983set dummy $ac_prog; ac_word=$2
2984echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 2985echo "configure:2983: checking for $ac_word" >&5
4c63da97 2986if eval "test \"\${ac_cv_prog_YACC+set}\" = set"; then
252b5132
RH
2987 echo $ac_n "(cached) $ac_c" 1>&6
2988else
2989 if test -n "$YACC"; then
2990 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2991else
2992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2993 ac_dummy="$PATH"
2994 for ac_dir in $ac_dummy; do
2995 test -z "$ac_dir" && ac_dir=.
2996 if test -f $ac_dir/$ac_word; then
2997 ac_cv_prog_YACC="$ac_prog"
2998 break
2999 fi
3000 done
3001 IFS="$ac_save_ifs"
3002fi
3003fi
3004YACC="$ac_cv_prog_YACC"
3005if test -n "$YACC"; then
3006 echo "$ac_t""$YACC" 1>&6
3007else
3008 echo "$ac_t""no" 1>&6
3009fi
3010
3011test -n "$YACC" && break
3012done
3013test -n "$YACC" || YACC="yacc"
3014
3015echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5b93d8bb 3016echo "configure:3014: checking how to run the C preprocessor" >&5
252b5132
RH
3017# On Suns, sometimes $CPP names a directory.
3018if test -n "$CPP" && test -d "$CPP"; then
3019 CPP=
3020fi
3021if test -z "$CPP"; then
4c63da97 3022if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
252b5132
RH
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024else
3025 # This must be in double quotes, not single quotes, because CPP may get
3026 # substituted into the Makefile and "${CC-cc}" will confuse make.
3027 CPP="${CC-cc} -E"
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp.
3030 cat > conftest.$ac_ext <<EOF
5b93d8bb 3031#line 3029 "configure"
252b5132
RH
3032#include "confdefs.h"
3033#include <assert.h>
3034Syntax Error
3035EOF
3036ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 3037{ (eval echo configure:3035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3038ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039if test -z "$ac_err"; then
3040 :
3041else
3042 echo "$ac_err" >&5
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -rf conftest*
3046 CPP="${CC-cc} -E -traditional-cpp"
3047 cat > conftest.$ac_ext <<EOF
5b93d8bb 3048#line 3046 "configure"
252b5132
RH
3049#include "confdefs.h"
3050#include <assert.h>
3051Syntax Error
3052EOF
3053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 3054{ (eval echo configure:3052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3056if test -z "$ac_err"; then
3057 :
3058else
3059 echo "$ac_err" >&5
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 rm -rf conftest*
3063 CPP="${CC-cc} -nologo -E"
3064 cat > conftest.$ac_ext <<EOF
5b93d8bb 3065#line 3063 "configure"
252b5132
RH
3066#include "confdefs.h"
3067#include <assert.h>
3068Syntax Error
3069EOF
3070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 3071{ (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3073if test -z "$ac_err"; then
3074 :
3075else
3076 echo "$ac_err" >&5
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079 rm -rf conftest*
3080 CPP=/lib/cpp
3081fi
3082rm -f conftest*
3083fi
3084rm -f conftest*
3085fi
3086rm -f conftest*
3087 ac_cv_prog_CPP="$CPP"
3088fi
3089 CPP="$ac_cv_prog_CPP"
3090else
3091 ac_cv_prog_CPP="$CPP"
3092fi
3093echo "$ac_t""$CPP" 1>&6
3094
3095missing_dir=`cd $ac_aux_dir && pwd`
3096for ac_prog in flex lex
3097do
3098# Extract the first word of "$ac_prog", so it can be a program name with args.
3099set dummy $ac_prog; ac_word=$2
3100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 3101echo "configure:3099: checking for $ac_word" >&5
4c63da97 3102if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
252b5132
RH
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104else
3105 if test -n "$LEX"; then
3106 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3107else
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3109 ac_dummy="$PATH"
3110 for ac_dir in $ac_dummy; do
3111 test -z "$ac_dir" && ac_dir=.
3112 if test -f $ac_dir/$ac_word; then
3113 ac_cv_prog_LEX="$ac_prog"
3114 break
3115 fi
3116 done
3117 IFS="$ac_save_ifs"
3118fi
3119fi
3120LEX="$ac_cv_prog_LEX"
3121if test -n "$LEX"; then
3122 echo "$ac_t""$LEX" 1>&6
3123else
3124 echo "$ac_t""no" 1>&6
3125fi
3126
3127test -n "$LEX" && break
3128done
3129test -n "$LEX" || LEX=""$missing_dir/missing flex""
3130
3131# Extract the first word of "flex", so it can be a program name with args.
3132set dummy flex; ac_word=$2
3133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 3134echo "configure:3132: checking for $ac_word" >&5
4c63da97 3135if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
252b5132
RH
3136 echo $ac_n "(cached) $ac_c" 1>&6
3137else
3138 if test -n "$LEX"; then
3139 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3140else
3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3142 ac_dummy="$PATH"
3143 for ac_dir in $ac_dummy; do
3144 test -z "$ac_dir" && ac_dir=.
3145 if test -f $ac_dir/$ac_word; then
3146 ac_cv_prog_LEX="flex"
3147 break
3148 fi
3149 done
3150 IFS="$ac_save_ifs"
3151 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3152fi
3153fi
3154LEX="$ac_cv_prog_LEX"
3155if test -n "$LEX"; then
3156 echo "$ac_t""$LEX" 1>&6
3157else
3158 echo "$ac_t""no" 1>&6
3159fi
3160
3161if test -z "$LEXLIB"
3162then
3163 case "$LEX" in
3164 flex*) ac_lib=fl ;;
3165 *) ac_lib=l ;;
3166 esac
3167 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
5b93d8bb 3168echo "configure:3166: checking for yywrap in -l$ac_lib" >&5
4c63da97
AM
3169ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-:%__p__%'`
3170if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
252b5132
RH
3171 echo $ac_n "(cached) $ac_c" 1>&6
3172else
3173 ac_save_LIBS="$LIBS"
3174LIBS="-l$ac_lib $LIBS"
3175cat > conftest.$ac_ext <<EOF
5b93d8bb 3176#line 3174 "configure"
252b5132
RH
3177#include "confdefs.h"
3178/* Override any gcc2 internal prototype to avoid an error. */
3179/* We use char because int might match the return type of a gcc2
3180 builtin and then its argument prototype would still apply. */
3181char yywrap();
3182
3183int main() {
3184yywrap()
3185; return 0; }
3186EOF
5b93d8bb 3187if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3188 rm -rf conftest*
3189 eval "ac_cv_lib_$ac_lib_var=yes"
3190else
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3193 rm -rf conftest*
3194 eval "ac_cv_lib_$ac_lib_var=no"
3195fi
3196rm -f conftest*
3197LIBS="$ac_save_LIBS"
3198
3199fi
3200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 LEXLIB="-l$ac_lib"
3203else
3204 echo "$ac_t""no" 1>&6
3205fi
3206
3207fi
3208
3209echo $ac_n "checking lex output file root""... $ac_c" 1>&6
5b93d8bb 3210echo "configure:3208: checking lex output file root" >&5
4c63da97 3211if eval "test \"\${ac_cv_prog_lex_root+set}\" = set"; then
252b5132
RH
3212 echo $ac_n "(cached) $ac_c" 1>&6
3213else
3214 # The minimal lex program is just a single line: %%. But some broken lexes
3215# (Solaris, I think it was) want two %% lines, so accommodate them.
3216echo '%%
3217%%' | $LEX
3218if test -f lex.yy.c; then
3219 ac_cv_prog_lex_root=lex.yy
3220elif test -f lexyy.c; then
3221 ac_cv_prog_lex_root=lexyy
3222else
3223 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3224fi
3225fi
3226
3227echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3228LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3229
3230echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
5b93d8bb 3231echo "configure:3229: checking whether yytext is a pointer" >&5
4c63da97 3232if eval "test \"\${ac_cv_prog_lex_yytext_pointer+set}\" = set"; then
252b5132
RH
3233 echo $ac_n "(cached) $ac_c" 1>&6
3234else
3235 # POSIX says lex can declare yytext either as a pointer or an array; the
3236# default is implementation-dependent. Figure out which it is, since
3237# not all implementations provide the %pointer and %array declarations.
3238ac_cv_prog_lex_yytext_pointer=no
3239echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3240ac_save_LIBS="$LIBS"
3241LIBS="$LIBS $LEXLIB"
3242cat > conftest.$ac_ext <<EOF
5b93d8bb 3243#line 3241 "configure"
252b5132
RH
3244#include "confdefs.h"
3245`cat $LEX_OUTPUT_ROOT.c`
3246int main() {
3247
3248; return 0; }
3249EOF
5b93d8bb 3250if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3251 rm -rf conftest*
3252 ac_cv_prog_lex_yytext_pointer=yes
3253else
3254 echo "configure: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3256fi
3257rm -f conftest*
3258LIBS="$ac_save_LIBS"
3259rm -f "${LEX_OUTPUT_ROOT}.c"
3260
3261fi
3262
3263echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3264if test $ac_cv_prog_lex_yytext_pointer = yes; then
3265 cat >> confdefs.h <<\EOF
3266#define YYTEXT_POINTER 1
3267EOF
3268
3269fi
3270
3271
3272ALL_LINGUAS=
3273echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
5b93d8bb 3274echo "configure:3272: checking for POSIXized ISC" >&5
252b5132
RH
3275if test -d /etc/conf/kconfig.d &&
3276 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3277then
3278 echo "$ac_t""yes" 1>&6
3279 ISC=yes # If later tests want to check for ISC.
3280 cat >> confdefs.h <<\EOF
3281#define _POSIX_SOURCE 1
3282EOF
3283
3284 if test "$GCC" = yes; then
3285 CC="$CC -posix"
3286 else
3287 CC="$CC -Xp"
3288 fi
3289else
3290 echo "$ac_t""no" 1>&6
3291 ISC=
3292fi
3293
3294echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5b93d8bb 3295echo "configure:3293: checking for ANSI C header files" >&5
4c63da97 3296if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
252b5132
RH
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298else
3299 cat > conftest.$ac_ext <<EOF
5b93d8bb 3300#line 3298 "configure"
252b5132
RH
3301#include "confdefs.h"
3302#include <stdlib.h>
3303#include <stdarg.h>
3304#include <string.h>
3305#include <float.h>
3306EOF
3307ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 3308{ (eval echo configure:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3309ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310if test -z "$ac_err"; then
3311 rm -rf conftest*
3312 ac_cv_header_stdc=yes
3313else
3314 echo "$ac_err" >&5
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 rm -rf conftest*
3318 ac_cv_header_stdc=no
3319fi
3320rm -f conftest*
3321
3322if test $ac_cv_header_stdc = yes; then
3323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3324cat > conftest.$ac_ext <<EOF
5b93d8bb 3325#line 3323 "configure"
252b5132
RH
3326#include "confdefs.h"
3327#include <string.h>
3328EOF
3329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 egrep "memchr" >/dev/null 2>&1; then
3331 :
3332else
3333 rm -rf conftest*
3334 ac_cv_header_stdc=no
3335fi
3336rm -f conftest*
3337
3338fi
3339
3340if test $ac_cv_header_stdc = yes; then
3341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3342cat > conftest.$ac_ext <<EOF
5b93d8bb 3343#line 3341 "configure"
252b5132
RH
3344#include "confdefs.h"
3345#include <stdlib.h>
3346EOF
3347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 egrep "free" >/dev/null 2>&1; then
3349 :
3350else
3351 rm -rf conftest*
3352 ac_cv_header_stdc=no
3353fi
3354rm -f conftest*
3355
3356fi
3357
3358if test $ac_cv_header_stdc = yes; then
3359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3360if test "$cross_compiling" = yes; then
3361 :
3362else
3363 cat > conftest.$ac_ext <<EOF
5b93d8bb 3364#line 3362 "configure"
252b5132
RH
3365#include "confdefs.h"
3366#include <ctype.h>
3367#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3368#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3370int main () { int i; for (i = 0; i < 256; i++)
3371if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3372exit (0); }
3373
3374EOF
5b93d8bb 3375if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3376then
3377 :
3378else
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 rm -fr conftest*
3382 ac_cv_header_stdc=no
3383fi
3384rm -fr conftest*
3385fi
3386
3387fi
3388fi
3389
3390echo "$ac_t""$ac_cv_header_stdc" 1>&6
3391if test $ac_cv_header_stdc = yes; then
3392 cat >> confdefs.h <<\EOF
3393#define STDC_HEADERS 1
3394EOF
3395
3396fi
3397
3398echo $ac_n "checking for working const""... $ac_c" 1>&6
5b93d8bb 3399echo "configure:3397: checking for working const" >&5
4c63da97 3400if eval "test \"\${ac_cv_c_const+set}\" = set"; then
252b5132
RH
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402else
3403 cat > conftest.$ac_ext <<EOF
5b93d8bb 3404#line 3402 "configure"
252b5132
RH
3405#include "confdefs.h"
3406
3407int main() {
3408
3409/* Ultrix mips cc rejects this. */
3410typedef int charset[2]; const charset x;
3411/* SunOS 4.1.1 cc rejects this. */
3412char const *const *ccp;
3413char **p;
3414/* NEC SVR4.0.2 mips cc rejects this. */
3415struct point {int x, y;};
3416static struct point const zero = {0,0};
3417/* AIX XL C 1.02.0.0 rejects this.
3418 It does not let you subtract one const X* pointer from another in an arm
3419 of an if-expression whose if-part is not a constant expression */
3420const char *g = "string";
3421ccp = &g + (g ? g-g : 0);
3422/* HPUX 7.0 cc rejects these. */
3423++ccp;
3424p = (char**) ccp;
3425ccp = (char const *const *) p;
3426{ /* SCO 3.2v4 cc rejects this. */
3427 char *t;
3428 char const *s = 0 ? (char *) 0 : (char const *) 0;
3429
3430 *t++ = 0;
3431}
3432{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3433 int x[] = {25, 17};
3434 const int *foo = &x[0];
3435 ++foo;
3436}
3437{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3438 typedef const int *iptr;
3439 iptr p = 0;
3440 ++p;
3441}
3442{ /* AIX XL C 1.02.0.0 rejects this saying
3443 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3444 struct s { int j; const int *ap[3]; };
3445 struct s *b; b->j = 5;
3446}
3447{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3448 const int foo = 10;
3449}
3450
3451; return 0; }
3452EOF
5b93d8bb 3453if { (eval echo configure:3451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
3454 rm -rf conftest*
3455 ac_cv_c_const=yes
3456else
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 rm -rf conftest*
3460 ac_cv_c_const=no
3461fi
3462rm -f conftest*
3463fi
3464
3465echo "$ac_t""$ac_cv_c_const" 1>&6
3466if test $ac_cv_c_const = no; then
3467 cat >> confdefs.h <<\EOF
3468#define const
3469EOF
3470
3471fi
3472
3473echo $ac_n "checking for inline""... $ac_c" 1>&6
5b93d8bb 3474echo "configure:3472: checking for inline" >&5
4c63da97 3475if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
252b5132
RH
3476 echo $ac_n "(cached) $ac_c" 1>&6
3477else
3478 ac_cv_c_inline=no
3479for ac_kw in inline __inline__ __inline; do
3480 cat > conftest.$ac_ext <<EOF
5b93d8bb 3481#line 3479 "configure"
252b5132
RH
3482#include "confdefs.h"
3483
3484int main() {
4c63da97 3485} $ac_kw int foo() {
252b5132
RH
3486; return 0; }
3487EOF
5b93d8bb 3488if { (eval echo configure:3486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
3489 rm -rf conftest*
3490 ac_cv_c_inline=$ac_kw; break
3491else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494fi
3495rm -f conftest*
3496done
3497
3498fi
3499
3500echo "$ac_t""$ac_cv_c_inline" 1>&6
3501case "$ac_cv_c_inline" in
3502 inline | yes) ;;
3503 no) cat >> confdefs.h <<\EOF
3504#define inline
3505EOF
3506 ;;
3507 *) cat >> confdefs.h <<EOF
3508#define inline $ac_cv_c_inline
3509EOF
3510 ;;
3511esac
3512
3513echo $ac_n "checking for off_t""... $ac_c" 1>&6
5b93d8bb 3514echo "configure:3512: checking for off_t" >&5
4c63da97 3515if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
252b5132
RH
3516 echo $ac_n "(cached) $ac_c" 1>&6
3517else
3518 cat > conftest.$ac_ext <<EOF
5b93d8bb 3519#line 3517 "configure"
252b5132
RH
3520#include "confdefs.h"
3521#include <sys/types.h>
3522#if STDC_HEADERS
3523#include <stdlib.h>
3524#include <stddef.h>
3525#endif
3526EOF
3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3529 rm -rf conftest*
4c63da97 3530 eval "ac_cv_type_off_t=yes"
252b5132
RH
3531else
3532 rm -rf conftest*
4c63da97 3533 eval "ac_cv_type_off_t=no"
252b5132
RH
3534fi
3535rm -f conftest*
3536
3537fi
4c63da97
AM
3538if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540else
3541 echo "$ac_t""no" 1>&6
3542 cat >> confdefs.h <<EOF
252b5132
RH
3543#define off_t long
3544EOF
3545
3546fi
3547
3548echo $ac_n "checking for size_t""... $ac_c" 1>&6
5b93d8bb 3549echo "configure:3547: checking for size_t" >&5
4c63da97 3550if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
252b5132
RH
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552else
3553 cat > conftest.$ac_ext <<EOF
5b93d8bb 3554#line 3552 "configure"
252b5132
RH
3555#include "confdefs.h"
3556#include <sys/types.h>
3557#if STDC_HEADERS
3558#include <stdlib.h>
3559#include <stddef.h>
3560#endif
3561EOF
3562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3564 rm -rf conftest*
4c63da97 3565 eval "ac_cv_type_size_t=yes"
252b5132
RH
3566else
3567 rm -rf conftest*
4c63da97 3568 eval "ac_cv_type_size_t=no"
252b5132
RH
3569fi
3570rm -f conftest*
3571
3572fi
4c63da97
AM
3573if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575else
3576 echo "$ac_t""no" 1>&6
3577 cat >> confdefs.h <<EOF
252b5132
RH
3578#define size_t unsigned
3579EOF
3580
3581fi
3582
3583# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3584# for constant arguments. Useless!
3585echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5b93d8bb 3586echo "configure:3584: checking for working alloca.h" >&5
4c63da97 3587if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
252b5132
RH
3588 echo $ac_n "(cached) $ac_c" 1>&6
3589else
3590 cat > conftest.$ac_ext <<EOF
5b93d8bb 3591#line 3589 "configure"
252b5132
RH
3592#include "confdefs.h"
3593#include <alloca.h>
3594int main() {
3595char *p = alloca(2 * sizeof(int));
3596; return 0; }
3597EOF
5b93d8bb 3598if { (eval echo configure:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3599 rm -rf conftest*
3600 ac_cv_header_alloca_h=yes
3601else
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -rf conftest*
3605 ac_cv_header_alloca_h=no
3606fi
3607rm -f conftest*
3608fi
3609
3610echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3611if test $ac_cv_header_alloca_h = yes; then
3612 cat >> confdefs.h <<\EOF
3613#define HAVE_ALLOCA_H 1
3614EOF
3615
3616fi
3617
3618echo $ac_n "checking for alloca""... $ac_c" 1>&6
5b93d8bb 3619echo "configure:3617: checking for alloca" >&5
4c63da97 3620if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
252b5132
RH
3621 echo $ac_n "(cached) $ac_c" 1>&6
3622else
3623 cat > conftest.$ac_ext <<EOF
5b93d8bb 3624#line 3622 "configure"
252b5132
RH
3625#include "confdefs.h"
3626
3627#ifdef __GNUC__
3628# define alloca __builtin_alloca
3629#else
3630# ifdef _MSC_VER
3631# include <malloc.h>
3632# define alloca _alloca
3633# else
3634# if HAVE_ALLOCA_H
3635# include <alloca.h>
3636# else
3637# ifdef _AIX
3638 #pragma alloca
3639# else
3640# ifndef alloca /* predefined by HP cc +Olibcalls */
3641char *alloca ();
3642# endif
3643# endif
3644# endif
3645# endif
3646#endif
3647
3648int main() {
3649char *p = (char *) alloca(1);
3650; return 0; }
3651EOF
5b93d8bb 3652if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3653 rm -rf conftest*
3654 ac_cv_func_alloca_works=yes
3655else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 ac_cv_func_alloca_works=no
3660fi
3661rm -f conftest*
3662fi
3663
3664echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3665if test $ac_cv_func_alloca_works = yes; then
3666 cat >> confdefs.h <<\EOF
3667#define HAVE_ALLOCA 1
3668EOF
3669
3670fi
3671
3672if test $ac_cv_func_alloca_works = no; then
3673 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3674 # that cause trouble. Some versions do not even contain alloca or
3675 # contain a buggy version. If you still want to use their alloca,
3676 # use ar to extract alloca.o from them instead of compiling alloca.c.
3677 ALLOCA=alloca.${ac_objext}
3678 cat >> confdefs.h <<\EOF
3679#define C_ALLOCA 1
3680EOF
3681
3682
3683echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5b93d8bb 3684echo "configure:3682: checking whether alloca needs Cray hooks" >&5
4c63da97 3685if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
252b5132
RH
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687else
3688 cat > conftest.$ac_ext <<EOF
5b93d8bb 3689#line 3687 "configure"
252b5132
RH
3690#include "confdefs.h"
3691#if defined(CRAY) && ! defined(CRAY2)
3692webecray
3693#else
3694wenotbecray
3695#endif
3696
3697EOF
3698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "webecray" >/dev/null 2>&1; then
3700 rm -rf conftest*
3701 ac_cv_os_cray=yes
3702else
3703 rm -rf conftest*
3704 ac_cv_os_cray=no
3705fi
3706rm -f conftest*
3707
3708fi
3709
3710echo "$ac_t""$ac_cv_os_cray" 1>&6
3711if test $ac_cv_os_cray = yes; then
3712for ac_func in _getb67 GETB67 getb67; do
3713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 3714echo "configure:3712: checking for $ac_func" >&5
4c63da97 3715if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
3716 echo $ac_n "(cached) $ac_c" 1>&6
3717else
3718 cat > conftest.$ac_ext <<EOF
5b93d8bb 3719#line 3717 "configure"
252b5132
RH
3720#include "confdefs.h"
3721/* System header to define __stub macros and hopefully few prototypes,
3722 which can conflict with char $ac_func(); below. */
3723#include <assert.h>
3724/* Override any gcc2 internal prototype to avoid an error. */
3725/* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3727char $ac_func();
4c63da97 3728char (*f)();
252b5132
RH
3729
3730int main() {
3731
3732/* The GNU C library defines this for functions which it implements
3733 to always fail with ENOSYS. Some functions are actually named
3734 something starting with __ and the normal name is an alias. */
3735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3736choke me
3737#else
4c63da97 3738f = $ac_func;
252b5132
RH
3739#endif
3740
3741; return 0; }
3742EOF
5b93d8bb 3743if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3744 rm -rf conftest*
3745 eval "ac_cv_func_$ac_func=yes"
3746else
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 rm -rf conftest*
3750 eval "ac_cv_func_$ac_func=no"
3751fi
3752rm -f conftest*
3753fi
3754
3755if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 cat >> confdefs.h <<EOF
3758#define CRAY_STACKSEG_END $ac_func
3759EOF
3760
3761 break
3762else
3763 echo "$ac_t""no" 1>&6
3764fi
3765
3766done
3767fi
3768
3769echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5b93d8bb 3770echo "configure:3768: checking stack direction for C alloca" >&5
4c63da97 3771if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
252b5132
RH
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773else
3774 if test "$cross_compiling" = yes; then
3775 ac_cv_c_stack_direction=0
3776else
3777 cat > conftest.$ac_ext <<EOF
5b93d8bb 3778#line 3776 "configure"
252b5132
RH
3779#include "confdefs.h"
3780find_stack_direction ()
3781{
3782 static char *addr = 0;
3783 auto char dummy;
3784 if (addr == 0)
3785 {
3786 addr = &dummy;
3787 return find_stack_direction ();
3788 }
3789 else
3790 return (&dummy > addr) ? 1 : -1;
3791}
3792main ()
3793{
3794 exit (find_stack_direction() < 0);
3795}
3796EOF
5b93d8bb 3797if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3798then
3799 ac_cv_c_stack_direction=1
3800else
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3803 rm -fr conftest*
3804 ac_cv_c_stack_direction=-1
3805fi
3806rm -fr conftest*
3807fi
3808
3809fi
3810
3811echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3812cat >> confdefs.h <<EOF
3813#define STACK_DIRECTION $ac_cv_c_stack_direction
3814EOF
3815
3816fi
3817
3818for ac_hdr in unistd.h
3819do
3820ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3821echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5b93d8bb 3822echo "configure:3820: checking for $ac_hdr" >&5
4c63da97 3823if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
252b5132
RH
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826 cat > conftest.$ac_ext <<EOF
5b93d8bb 3827#line 3825 "configure"
252b5132
RH
3828#include "confdefs.h"
3829#include <$ac_hdr>
3830EOF
3831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 3832{ (eval echo configure:3830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3834if test -z "$ac_err"; then
3835 rm -rf conftest*
3836 eval "ac_cv_header_$ac_safe=yes"
3837else
3838 echo "$ac_err" >&5
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 rm -rf conftest*
3842 eval "ac_cv_header_$ac_safe=no"
3843fi
3844rm -f conftest*
3845fi
3846if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3849 cat >> confdefs.h <<EOF
3850#define $ac_tr_hdr 1
3851EOF
3852
3853else
3854 echo "$ac_t""no" 1>&6
3855fi
3856done
3857
3858for ac_func in getpagesize
3859do
3860echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 3861echo "configure:3859: checking for $ac_func" >&5
4c63da97 3862if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865 cat > conftest.$ac_ext <<EOF
5b93d8bb 3866#line 3864 "configure"
252b5132
RH
3867#include "confdefs.h"
3868/* System header to define __stub macros and hopefully few prototypes,
3869 which can conflict with char $ac_func(); below. */
3870#include <assert.h>
3871/* Override any gcc2 internal prototype to avoid an error. */
3872/* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874char $ac_func();
4c63da97 3875char (*f)();
252b5132
RH
3876
3877int main() {
3878
3879/* The GNU C library defines this for functions which it implements
3880 to always fail with ENOSYS. Some functions are actually named
3881 something starting with __ and the normal name is an alias. */
3882#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883choke me
3884#else
4c63da97 3885f = $ac_func;
252b5132
RH
3886#endif
3887
3888; return 0; }
3889EOF
5b93d8bb 3890if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3891 rm -rf conftest*
3892 eval "ac_cv_func_$ac_func=yes"
3893else
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 rm -rf conftest*
3897 eval "ac_cv_func_$ac_func=no"
3898fi
3899rm -f conftest*
3900fi
3901
3902if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3905 cat >> confdefs.h <<EOF
3906#define $ac_tr_func 1
3907EOF
3908
3909else
3910 echo "$ac_t""no" 1>&6
3911fi
3912done
3913
3914echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5b93d8bb 3915echo "configure:3913: checking for working mmap" >&5
4c63da97 3916if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
252b5132
RH
3917 echo $ac_n "(cached) $ac_c" 1>&6
3918else
3919 if test "$cross_compiling" = yes; then
3920 ac_cv_func_mmap_fixed_mapped=no
3921else
3922 cat > conftest.$ac_ext <<EOF
5b93d8bb 3923#line 3921 "configure"
252b5132
RH
3924#include "confdefs.h"
3925
3926/* Thanks to Mike Haertel and Jim Avera for this test.
3927 Here is a matrix of mmap possibilities:
3928 mmap private not fixed
3929 mmap private fixed at somewhere currently unmapped
3930 mmap private fixed at somewhere already mapped
3931 mmap shared not fixed
3932 mmap shared fixed at somewhere currently unmapped
3933 mmap shared fixed at somewhere already mapped
3934 For private mappings, we should verify that changes cannot be read()
3935 back from the file, nor mmap's back from the file at a different
3936 address. (There have been systems where private was not correctly
3937 implemented like the infamous i386 svr4.0, and systems where the
3938 VM page cache was not coherent with the filesystem buffer cache
3939 like early versions of FreeBSD and possibly contemporary NetBSD.)
3940 For shared mappings, we should conversely verify that changes get
3941 propogated back to all the places they're supposed to be.
3942
3943 Grep wants private fixed already mapped.
3944 The main things grep needs to know about mmap are:
3945 * does it exist and is it safe to write into the mmap'd area
3946 * how to use it (BSD variants) */
3947#include <sys/types.h>
3948#include <fcntl.h>
3949#include <sys/mman.h>
3950
3951/* This mess was copied from the GNU getpagesize.h. */
3952#ifndef HAVE_GETPAGESIZE
3953# ifdef HAVE_UNISTD_H
3954# include <unistd.h>
3955# endif
3956
3957/* Assume that all systems that can run configure have sys/param.h. */
3958# ifndef HAVE_SYS_PARAM_H
3959# define HAVE_SYS_PARAM_H 1
3960# endif
3961
3962# ifdef _SC_PAGESIZE
3963# define getpagesize() sysconf(_SC_PAGESIZE)
3964# else /* no _SC_PAGESIZE */
3965# ifdef HAVE_SYS_PARAM_H
3966# include <sys/param.h>
3967# ifdef EXEC_PAGESIZE
3968# define getpagesize() EXEC_PAGESIZE
3969# else /* no EXEC_PAGESIZE */
3970# ifdef NBPG
3971# define getpagesize() NBPG * CLSIZE
3972# ifndef CLSIZE
3973# define CLSIZE 1
3974# endif /* no CLSIZE */
3975# else /* no NBPG */
3976# ifdef NBPC
3977# define getpagesize() NBPC
3978# else /* no NBPC */
3979# ifdef PAGESIZE
3980# define getpagesize() PAGESIZE
3981# endif /* PAGESIZE */
3982# endif /* no NBPC */
3983# endif /* no NBPG */
3984# endif /* no EXEC_PAGESIZE */
3985# else /* no HAVE_SYS_PARAM_H */
3986# define getpagesize() 8192 /* punt totally */
3987# endif /* no HAVE_SYS_PARAM_H */
3988# endif /* no _SC_PAGESIZE */
3989
3990#endif /* no HAVE_GETPAGESIZE */
3991
3992#ifdef __cplusplus
3993extern "C" { void *malloc(unsigned); }
3994#else
3995char *malloc();
3996#endif
3997
3998int
3999main()
4000{
4001 char *data, *data2, *data3;
4002 int i, pagesize;
4003 int fd;
4004
4005 pagesize = getpagesize();
4006
4007 /*
4008 * First, make a file with some known garbage in it.
4009 */
4010 data = malloc(pagesize);
4011 if (!data)
4012 exit(1);
4013 for (i = 0; i < pagesize; ++i)
4014 *(data + i) = rand();
4015 umask(0);
4016 fd = creat("conftestmmap", 0600);
4017 if (fd < 0)
4018 exit(1);
4019 if (write(fd, data, pagesize) != pagesize)
4020 exit(1);
4021 close(fd);
4022
4023 /*
4024 * Next, try to mmap the file at a fixed address which
4025 * already has something else allocated at it. If we can,
4026 * also make sure that we see the same garbage.
4027 */
4028 fd = open("conftestmmap", O_RDWR);
4029 if (fd < 0)
4030 exit(1);
4031 data2 = malloc(2 * pagesize);
4032 if (!data2)
4033 exit(1);
4034 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4035 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4036 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4037 exit(1);
4038 for (i = 0; i < pagesize; ++i)
4039 if (*(data + i) != *(data2 + i))
4040 exit(1);
4041
4042 /*
4043 * Finally, make sure that changes to the mapped area
4044 * do not percolate back to the file as seen by read().
4045 * (This is a bug on some variants of i386 svr4.0.)
4046 */
4047 for (i = 0; i < pagesize; ++i)
4048 *(data2 + i) = *(data2 + i) + 1;
4049 data3 = malloc(pagesize);
4050 if (!data3)
4051 exit(1);
4052 if (read(fd, data3, pagesize) != pagesize)
4053 exit(1);
4054 for (i = 0; i < pagesize; ++i)
4055 if (*(data + i) != *(data3 + i))
4056 exit(1);
4057 close(fd);
4058 unlink("conftestmmap");
4059 exit(0);
4060}
4061
4062EOF
5b93d8bb 4063if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
4064then
4065 ac_cv_func_mmap_fixed_mapped=yes
4066else
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4069 rm -fr conftest*
4070 ac_cv_func_mmap_fixed_mapped=no
4071fi
4072rm -fr conftest*
4073fi
4074
4075fi
4076
4077echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4078if test $ac_cv_func_mmap_fixed_mapped = yes; then
4079 cat >> confdefs.h <<\EOF
4080#define HAVE_MMAP 1
4081EOF
4082
4083fi
4084
4085
4086 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4087unistd.h values.h sys/param.h
4088do
4089ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4090echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5b93d8bb 4091echo "configure:4089: checking for $ac_hdr" >&5
4c63da97 4092if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
252b5132
RH
4093 echo $ac_n "(cached) $ac_c" 1>&6
4094else
4095 cat > conftest.$ac_ext <<EOF
5b93d8bb 4096#line 4094 "configure"
252b5132
RH
4097#include "confdefs.h"
4098#include <$ac_hdr>
4099EOF
4100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 4101{ (eval echo configure:4099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4102ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4103if test -z "$ac_err"; then
4104 rm -rf conftest*
4105 eval "ac_cv_header_$ac_safe=yes"
4106else
4107 echo "$ac_err" >&5
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 rm -rf conftest*
4111 eval "ac_cv_header_$ac_safe=no"
4112fi
4113rm -f conftest*
4114fi
4115if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4118 cat >> confdefs.h <<EOF
4119#define $ac_tr_hdr 1
4120EOF
4121
4122else
4123 echo "$ac_t""no" 1>&6
4124fi
4125done
4126
4127 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4128__argz_count __argz_stringify __argz_next
4129do
4130echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 4131echo "configure:4129: checking for $ac_func" >&5
4c63da97 4132if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
4133 echo $ac_n "(cached) $ac_c" 1>&6
4134else
4135 cat > conftest.$ac_ext <<EOF
5b93d8bb 4136#line 4134 "configure"
252b5132
RH
4137#include "confdefs.h"
4138/* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char $ac_func(); below. */
4140#include <assert.h>
4141/* Override any gcc2 internal prototype to avoid an error. */
4142/* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144char $ac_func();
4c63da97 4145char (*f)();
252b5132
RH
4146
4147int main() {
4148
4149/* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153choke me
4154#else
4c63da97 4155f = $ac_func;
252b5132
RH
4156#endif
4157
4158; return 0; }
4159EOF
5b93d8bb 4160if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4161 rm -rf conftest*
4162 eval "ac_cv_func_$ac_func=yes"
4163else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 eval "ac_cv_func_$ac_func=no"
4168fi
4169rm -f conftest*
4170fi
4171
4172if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4175 cat >> confdefs.h <<EOF
4176#define $ac_tr_func 1
4177EOF
4178
4179else
4180 echo "$ac_t""no" 1>&6
4181fi
4182done
4183
4184
4185 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4186 for ac_func in stpcpy
4187do
4188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 4189echo "configure:4187: checking for $ac_func" >&5
4c63da97 4190if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 cat > conftest.$ac_ext <<EOF
5b93d8bb 4194#line 4192 "configure"
252b5132
RH
4195#include "confdefs.h"
4196/* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char $ac_func(); below. */
4198#include <assert.h>
4199/* Override any gcc2 internal prototype to avoid an error. */
4200/* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4202char $ac_func();
4c63da97 4203char (*f)();
252b5132
RH
4204
4205int main() {
4206
4207/* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4211choke me
4212#else
4c63da97 4213f = $ac_func;
252b5132
RH
4214#endif
4215
4216; return 0; }
4217EOF
5b93d8bb 4218if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4219 rm -rf conftest*
4220 eval "ac_cv_func_$ac_func=yes"
4221else
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 rm -rf conftest*
4225 eval "ac_cv_func_$ac_func=no"
4226fi
4227rm -f conftest*
4228fi
4229
4230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234#define $ac_tr_func 1
4235EOF
4236
4237else
4238 echo "$ac_t""no" 1>&6
4239fi
4240done
4241
4242 fi
4243 if test "${ac_cv_func_stpcpy}" = "yes"; then
4244 cat >> confdefs.h <<\EOF
4245#define HAVE_STPCPY 1
4246EOF
4247
4248 fi
4249
4250 if test $ac_cv_header_locale_h = yes; then
4251 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5b93d8bb 4252echo "configure:4250: checking for LC_MESSAGES" >&5
4c63da97 4253if eval "test \"\${am_cv_val_LC_MESSAGES+set}\" = set"; then
252b5132
RH
4254 echo $ac_n "(cached) $ac_c" 1>&6
4255else
4256 cat > conftest.$ac_ext <<EOF
5b93d8bb 4257#line 4255 "configure"
252b5132
RH
4258#include "confdefs.h"
4259#include <locale.h>
4260int main() {
4261return LC_MESSAGES
4262; return 0; }
4263EOF
5b93d8bb 4264if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4265 rm -rf conftest*
4266 am_cv_val_LC_MESSAGES=yes
4267else
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4270 rm -rf conftest*
4271 am_cv_val_LC_MESSAGES=no
4272fi
4273rm -f conftest*
4274fi
4275
4276echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4277 if test $am_cv_val_LC_MESSAGES = yes; then
4278 cat >> confdefs.h <<\EOF
4279#define HAVE_LC_MESSAGES 1
4280EOF
4281
4282 fi
4283 fi
4284 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5b93d8bb 4285echo "configure:4283: checking whether NLS is requested" >&5
252b5132
RH
4286 # Check whether --enable-nls or --disable-nls was given.
4287if test "${enable_nls+set}" = set; then
4288 enableval="$enable_nls"
4289 USE_NLS=$enableval
4290else
4291 USE_NLS=yes
4292fi
4293
4294 echo "$ac_t""$USE_NLS" 1>&6
4295
4296
4297 USE_INCLUDED_LIBINTL=no
4298
4299 if test "$USE_NLS" = "yes"; then
4300 cat >> confdefs.h <<\EOF
4301#define ENABLE_NLS 1
4302EOF
4303
4304 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5b93d8bb 4305echo "configure:4303: checking whether included gettext is requested" >&5
252b5132
RH
4306 # Check whether --with-included-gettext or --without-included-gettext was given.
4307if test "${with_included_gettext+set}" = set; then
4308 withval="$with_included_gettext"
4309 nls_cv_force_use_gnu_gettext=$withval
4310else
4311 nls_cv_force_use_gnu_gettext=no
4312fi
4313
4314 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4315
4316 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4317 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4318 nls_cv_header_intl=
4319 nls_cv_header_libgt=
4320 CATOBJEXT=NONE
4321
4322 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4323echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5b93d8bb 4324echo "configure:4322: checking for libintl.h" >&5
4c63da97 4325if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
252b5132
RH
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327else
4328 cat > conftest.$ac_ext <<EOF
5b93d8bb 4329#line 4327 "configure"
252b5132
RH
4330#include "confdefs.h"
4331#include <libintl.h>
4332EOF
4333ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 4334{ (eval echo configure:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4335ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336if test -z "$ac_err"; then
4337 rm -rf conftest*
4338 eval "ac_cv_header_$ac_safe=yes"
4339else
4340 echo "$ac_err" >&5
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 rm -rf conftest*
4344 eval "ac_cv_header_$ac_safe=no"
4345fi
4346rm -f conftest*
4347fi
4348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4350 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5b93d8bb 4351echo "configure:4349: checking for gettext in libc" >&5
4c63da97 4352if eval "test \"\${gt_cv_func_gettext_libc+set}\" = set"; then
252b5132
RH
4353 echo $ac_n "(cached) $ac_c" 1>&6
4354else
4355 cat > conftest.$ac_ext <<EOF
5b93d8bb 4356#line 4354 "configure"
252b5132
RH
4357#include "confdefs.h"
4358#include <libintl.h>
4359int main() {
4360return (int) gettext ("")
4361; return 0; }
4362EOF
5b93d8bb 4363if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4364 rm -rf conftest*
4365 gt_cv_func_gettext_libc=yes
4366else
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -rf conftest*
4370 gt_cv_func_gettext_libc=no
4371fi
4372rm -f conftest*
4373fi
4374
4375echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4376
4377 if test "$gt_cv_func_gettext_libc" != "yes"; then
4378 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5b93d8bb 4379echo "configure:4377: checking for bindtextdomain in -lintl" >&5
4c63da97
AM
4380ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-:%__p__%'`
4381if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
252b5132
RH
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383else
4384 ac_save_LIBS="$LIBS"
4385LIBS="-lintl $LIBS"
4386cat > conftest.$ac_ext <<EOF
5b93d8bb 4387#line 4385 "configure"
252b5132
RH
4388#include "confdefs.h"
4389/* Override any gcc2 internal prototype to avoid an error. */
4390/* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392char bindtextdomain();
4393
4394int main() {
4395bindtextdomain()
4396; return 0; }
4397EOF
5b93d8bb 4398if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4399 rm -rf conftest*
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4401else
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 rm -rf conftest*
4405 eval "ac_cv_lib_$ac_lib_var=no"
4406fi
4407rm -f conftest*
4408LIBS="$ac_save_LIBS"
4409
4410fi
4411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5b93d8bb 4414echo "configure:4412: checking for gettext in libintl" >&5
4c63da97 4415if eval "test \"\${gt_cv_func_gettext_libintl+set}\" = set"; then
252b5132
RH
4416 echo $ac_n "(cached) $ac_c" 1>&6
4417else
4418 cat > conftest.$ac_ext <<EOF
5b93d8bb 4419#line 4417 "configure"
252b5132
RH
4420#include "confdefs.h"
4421
4422int main() {
4423return (int) gettext ("")
4424; return 0; }
4425EOF
5b93d8bb 4426if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4427 rm -rf conftest*
4428 gt_cv_func_gettext_libintl=yes
4429else
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4432 rm -rf conftest*
4433 gt_cv_func_gettext_libintl=no
4434fi
4435rm -f conftest*
4436fi
4437
4438echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4439else
4440 echo "$ac_t""no" 1>&6
4441fi
4442
4443 fi
4444
4445 if test "$gt_cv_func_gettext_libc" = "yes" \
4446 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4447 cat >> confdefs.h <<\EOF
4448#define HAVE_GETTEXT 1
4449EOF
4450
4451 # Extract the first word of "msgfmt", so it can be a program name with args.
4452set dummy msgfmt; ac_word=$2
4453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4454echo "configure:4452: checking for $ac_word" >&5
4c63da97 4455if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
252b5132
RH
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457else
4458 case "$MSGFMT" in
4459 /*)
4460 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4461 ;;
4462 *)
4463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4464 for ac_dir in $PATH; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4468 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4469 break
4470 fi
4471 fi
4472 done
4473 IFS="$ac_save_ifs"
4474 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4475 ;;
4476esac
4477fi
4478MSGFMT="$ac_cv_path_MSGFMT"
4479if test -n "$MSGFMT"; then
4480 echo "$ac_t""$MSGFMT" 1>&6
4481else
4482 echo "$ac_t""no" 1>&6
4483fi
4484 if test "$MSGFMT" != "no"; then
4485 for ac_func in dcgettext
4486do
4487echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 4488echo "configure:4486: checking for $ac_func" >&5
4c63da97 4489if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
4490 echo $ac_n "(cached) $ac_c" 1>&6
4491else
4492 cat > conftest.$ac_ext <<EOF
5b93d8bb 4493#line 4491 "configure"
252b5132
RH
4494#include "confdefs.h"
4495/* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char $ac_func(); below. */
4497#include <assert.h>
4498/* Override any gcc2 internal prototype to avoid an error. */
4499/* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4501char $ac_func();
4c63da97 4502char (*f)();
252b5132
RH
4503
4504int main() {
4505
4506/* The GNU C library defines this for functions which it implements
4507 to always fail with ENOSYS. Some functions are actually named
4508 something starting with __ and the normal name is an alias. */
4509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4510choke me
4511#else
4c63da97 4512f = $ac_func;
252b5132
RH
4513#endif
4514
4515; return 0; }
4516EOF
5b93d8bb 4517if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4518 rm -rf conftest*
4519 eval "ac_cv_func_$ac_func=yes"
4520else
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 rm -rf conftest*
4524 eval "ac_cv_func_$ac_func=no"
4525fi
4526rm -f conftest*
4527fi
4528
4529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4532 cat >> confdefs.h <<EOF
4533#define $ac_tr_func 1
4534EOF
4535
4536else
4537 echo "$ac_t""no" 1>&6
4538fi
4539done
4540
4541 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4542set dummy gmsgfmt; ac_word=$2
4543echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4544echo "configure:4542: checking for $ac_word" >&5
4c63da97 4545if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
252b5132
RH
4546 echo $ac_n "(cached) $ac_c" 1>&6
4547else
4548 case "$GMSGFMT" in
4549 /*)
4550 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4551 ;;
4552 ?:/*)
4553 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4554 ;;
4555 *)
4556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4557 ac_dummy="$PATH"
4558 for ac_dir in $ac_dummy; do
4559 test -z "$ac_dir" && ac_dir=.
4560 if test -f $ac_dir/$ac_word; then
4561 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4562 break
4563 fi
4564 done
4565 IFS="$ac_save_ifs"
4566 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4567 ;;
4568esac
4569fi
4570GMSGFMT="$ac_cv_path_GMSGFMT"
4571if test -n "$GMSGFMT"; then
4572 echo "$ac_t""$GMSGFMT" 1>&6
4573else
4574 echo "$ac_t""no" 1>&6
4575fi
4576
4577 # Extract the first word of "xgettext", so it can be a program name with args.
4578set dummy xgettext; ac_word=$2
4579echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4580echo "configure:4578: checking for $ac_word" >&5
4c63da97 4581if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
252b5132
RH
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583else
4584 case "$XGETTEXT" in
4585 /*)
4586 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4590 for ac_dir in $PATH; do
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f $ac_dir/$ac_word; then
4593 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4595 break
4596 fi
4597 fi
4598 done
4599 IFS="$ac_save_ifs"
4600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4601 ;;
4602esac
4603fi
4604XGETTEXT="$ac_cv_path_XGETTEXT"
4605if test -n "$XGETTEXT"; then
4606 echo "$ac_t""$XGETTEXT" 1>&6
4607else
4608 echo "$ac_t""no" 1>&6
4609fi
4610
4611 cat > conftest.$ac_ext <<EOF
5b93d8bb 4612#line 4610 "configure"
252b5132
RH
4613#include "confdefs.h"
4614
4615int main() {
4616extern int _nl_msg_cat_cntr;
4617 return _nl_msg_cat_cntr
4618; return 0; }
4619EOF
5b93d8bb 4620if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
4621 rm -rf conftest*
4622 CATOBJEXT=.gmo
4623 DATADIRNAME=share
4624else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 CATOBJEXT=.mo
4629 DATADIRNAME=lib
4630fi
4631rm -f conftest*
4632 INSTOBJEXT=.mo
4633 fi
4634 fi
4635
4636else
4637 echo "$ac_t""no" 1>&6
4638fi
4639
4640
4641
4642 if test "$CATOBJEXT" = "NONE"; then
4643 nls_cv_use_gnu_gettext=yes
4644 fi
4645 fi
4646
4647 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4648 INTLOBJS="\$(GETTOBJS)"
4649 # Extract the first word of "msgfmt", so it can be a program name with args.
4650set dummy msgfmt; ac_word=$2
4651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4652echo "configure:4650: checking for $ac_word" >&5
4c63da97 4653if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
252b5132
RH
4654 echo $ac_n "(cached) $ac_c" 1>&6
4655else
4656 case "$MSGFMT" in
4657 /*)
4658 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4662 for ac_dir in $PATH; do
4663 test -z "$ac_dir" && ac_dir=.
4664 if test -f $ac_dir/$ac_word; then
4665 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4666 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4667 break
4668 fi
4669 fi
4670 done
4671 IFS="$ac_save_ifs"
4672 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4673 ;;
4674esac
4675fi
4676MSGFMT="$ac_cv_path_MSGFMT"
4677if test -n "$MSGFMT"; then
4678 echo "$ac_t""$MSGFMT" 1>&6
4679else
4680 echo "$ac_t""no" 1>&6
4681fi
4682
4683 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4684set dummy gmsgfmt; ac_word=$2
4685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4686echo "configure:4684: checking for $ac_word" >&5
4c63da97 4687if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
252b5132
RH
4688 echo $ac_n "(cached) $ac_c" 1>&6
4689else
4690 case "$GMSGFMT" in
4691 /*)
4692 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4693 ;;
4694 ?:/*)
4695 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4696 ;;
4697 *)
4698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4699 ac_dummy="$PATH"
4700 for ac_dir in $ac_dummy; do
4701 test -z "$ac_dir" && ac_dir=.
4702 if test -f $ac_dir/$ac_word; then
4703 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4704 break
4705 fi
4706 done
4707 IFS="$ac_save_ifs"
4708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4709 ;;
4710esac
4711fi
4712GMSGFMT="$ac_cv_path_GMSGFMT"
4713if test -n "$GMSGFMT"; then
4714 echo "$ac_t""$GMSGFMT" 1>&6
4715else
4716 echo "$ac_t""no" 1>&6
4717fi
4718
4719 # Extract the first word of "xgettext", so it can be a program name with args.
4720set dummy xgettext; ac_word=$2
4721echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5b93d8bb 4722echo "configure:4720: checking for $ac_word" >&5
4c63da97 4723if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
252b5132
RH
4724 echo $ac_n "(cached) $ac_c" 1>&6
4725else
4726 case "$XGETTEXT" in
4727 /*)
4728 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4729 ;;
4730 *)
4731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4732 for ac_dir in $PATH; do
4733 test -z "$ac_dir" && ac_dir=.
4734 if test -f $ac_dir/$ac_word; then
4735 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4736 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4737 break
4738 fi
4739 fi
4740 done
4741 IFS="$ac_save_ifs"
4742 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4743 ;;
4744esac
4745fi
4746XGETTEXT="$ac_cv_path_XGETTEXT"
4747if test -n "$XGETTEXT"; then
4748 echo "$ac_t""$XGETTEXT" 1>&6
4749else
4750 echo "$ac_t""no" 1>&6
4751fi
4752
4753
4754 USE_INCLUDED_LIBINTL=yes
4755 CATOBJEXT=.gmo
4756 INSTOBJEXT=.mo
4757 DATADIRNAME=share
4758 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4759 INTLLIBS=$INTLDEPS
4760 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4761 nls_cv_header_intl=libintl.h
4762 nls_cv_header_libgt=libgettext.h
4763 fi
4764
4765 if test "$XGETTEXT" != ":"; then
4766 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4767 : ;
4768 else
4769 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4770 XGETTEXT=":"
4771 fi
4772 fi
4773
4774 # We need to process the po/ directory.
4775 POSUB=po
4776 else
4777 DATADIRNAME=share
4778 nls_cv_header_intl=libintl.h
4779 nls_cv_header_libgt=libgettext.h
4780 fi
4781
4782 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4783 # because some of the sources are only built for this goal.
4784 if test "$PACKAGE" = gettext; then
4785 USE_NLS=yes
4786 USE_INCLUDED_LIBINTL=yes
4787 fi
4788
4789 for lang in $ALL_LINGUAS; do
4790 GMOFILES="$GMOFILES $lang.gmo"
4791 POFILES="$POFILES $lang.po"
4792 done
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807 if test "x$CATOBJEXT" != "x"; then
4808 if test "x$ALL_LINGUAS" = "x"; then
4809 LINGUAS=
4810 else
4811 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5b93d8bb 4812echo "configure:4810: checking for catalogs to be installed" >&5
252b5132
RH
4813 NEW_LINGUAS=
4814 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4815 case "$ALL_LINGUAS" in
4816 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4817 esac
4818 done
4819 LINGUAS=$NEW_LINGUAS
4820 echo "$ac_t""$LINGUAS" 1>&6
4821 fi
4822
4823 if test -n "$LINGUAS"; then
4824 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4825 fi
4826 fi
4827
4828 if test $ac_cv_header_locale_h = yes; then
4829 INCLUDE_LOCALE_H="#include <locale.h>"
4830 else
4831 INCLUDE_LOCALE_H="\
4832/* The system does not provide the header <locale.h>. Take care yourself. */"
4833 fi
4834
4835
4836 if test -f $srcdir/po2tbl.sed.in; then
4837 if test "$CATOBJEXT" = ".cat"; then
4838 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4839echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5b93d8bb 4840echo "configure:4838: checking for linux/version.h" >&5
4c63da97 4841if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
252b5132
RH
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843else
4844 cat > conftest.$ac_ext <<EOF
5b93d8bb 4845#line 4843 "configure"
252b5132
RH
4846#include "confdefs.h"
4847#include <linux/version.h>
4848EOF
4849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 4850{ (eval echo configure:4848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4852if test -z "$ac_err"; then
4853 rm -rf conftest*
4854 eval "ac_cv_header_$ac_safe=yes"
4855else
4856 echo "$ac_err" >&5
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 rm -rf conftest*
4860 eval "ac_cv_header_$ac_safe=no"
4861fi
4862rm -f conftest*
4863fi
4864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4866 msgformat=linux
4867else
4868 echo "$ac_t""no" 1>&6
4869msgformat=xopen
4870fi
4871
4872
4873 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4874 fi
4875 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4876 $srcdir/po2tbl.sed.in > po2tbl.sed
4877 fi
4878
4879 if test "$PACKAGE" = "gettext"; then
4880 GT_NO="#NO#"
4881 GT_YES=
4882 else
4883 GT_NO=
4884 GT_YES="#YES#"
4885 fi
4886
4887
4888
4889 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4890
4891
4892 l=
4893
4894
4895 if test -d $srcdir/po; then
4896 test -d po || mkdir po
4897 if test "x$srcdir" != "x."; then
4898 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4899 posrcprefix="$srcdir/"
4900 else
4901 posrcprefix="../$srcdir/"
4902 fi
4903 else
4904 posrcprefix="../"
4905 fi
4906 rm -f po/POTFILES
4907 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4908 < $srcdir/po/POTFILES.in > po/POTFILES
4909 fi
4910
4911
4912echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5b93d8bb 4913echo "configure:4911: checking whether to enable maintainer-specific portions of Makefiles" >&5
252b5132
RH
4914 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4915if test "${enable_maintainer_mode+set}" = set; then
4916 enableval="$enable_maintainer_mode"
4917 USE_MAINTAINER_MODE=$enableval
4918else
4919 USE_MAINTAINER_MODE=no
4920fi
4921
4922 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4923
4924
4925if test $USE_MAINTAINER_MODE = yes; then
4926 MAINTAINER_MODE_TRUE=
4927 MAINTAINER_MODE_FALSE='#'
4928else
4929 MAINTAINER_MODE_TRUE='#'
4930 MAINTAINER_MODE_FALSE=
4931fi
4932 MAINT=$MAINTAINER_MODE_TRUE
4933
4934
4935echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
5b93d8bb 4936echo "configure:4934: checking for Cygwin environment" >&5
4c63da97 4937if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
252b5132
RH
4938 echo $ac_n "(cached) $ac_c" 1>&6
4939else
4940 cat > conftest.$ac_ext <<EOF
5b93d8bb 4941#line 4939 "configure"
252b5132
RH
4942#include "confdefs.h"
4943
4944int main() {
4945
4946#ifndef __CYGWIN__
4947#define __CYGWIN__ __CYGWIN32__
4948#endif
4949return __CYGWIN__;
4950; return 0; }
4951EOF
5b93d8bb 4952if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
4953 rm -rf conftest*
4954 ac_cv_cygwin=yes
4955else
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4958 rm -rf conftest*
4959 ac_cv_cygwin=no
4960fi
4961rm -f conftest*
252b5132
RH
4962fi
4963
4964echo "$ac_t""$ac_cv_cygwin" 1>&6
4965CYGWIN=
4966test "$ac_cv_cygwin" = yes && CYGWIN=yes
4967echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
5b93d8bb 4968echo "configure:4966: checking for mingw32 environment" >&5
4c63da97 4969if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
252b5132
RH
4970 echo $ac_n "(cached) $ac_c" 1>&6
4971else
4972 cat > conftest.$ac_ext <<EOF
5b93d8bb 4973#line 4971 "configure"
252b5132
RH
4974#include "confdefs.h"
4975
4976int main() {
4977return __MINGW32__;
4978; return 0; }
4979EOF
5b93d8bb 4980if { (eval echo configure:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
4981 rm -rf conftest*
4982 ac_cv_mingw32=yes
4983else
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 rm -rf conftest*
4987 ac_cv_mingw32=no
4988fi
4989rm -f conftest*
252b5132
RH
4990fi
4991
4992echo "$ac_t""$ac_cv_mingw32" 1>&6
4993MINGW32=
4994test "$ac_cv_mingw32" = yes && MINGW32=yes
4c63da97 4995echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
5b93d8bb 4996echo "configure:4994: checking for EMX OS/2 environment" >&5
4c63da97
AM
4997if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999else
5000 cat > conftest.$ac_ext <<EOF
5b93d8bb 5001#line 4999 "configure"
4c63da97
AM
5002#include "confdefs.h"
5003
5004int main() {
5005return __EMX__;
5006; return 0; }
5007EOF
5b93d8bb 5008if { (eval echo configure:5006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4c63da97
AM
5009 rm -rf conftest*
5010 ac_cv_emxos2=yes
5011else
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5014 rm -rf conftest*
5015 ac_cv_emxos2=no
5016fi
5017rm -f conftest*
5018fi
5019
5020echo "$ac_t""$ac_cv_emxos2" 1>&6
5021EMXOS2=
5022test "$ac_cv_emxos2" = yes && EMXOS2=yes
5023
252b5132
RH
5024
5025
5026echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5b93d8bb 5027echo "configure:5025: checking for executable suffix" >&5
4c63da97 5028if eval "test \"\${ac_cv_exeext+set}\" = set"; then
252b5132
RH
5029 echo $ac_n "(cached) $ac_c" 1>&6
5030else
4c63da97 5031 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
252b5132
RH
5032 ac_cv_exeext=.exe
5033else
5034 rm -f conftest*
5035 echo 'int main () { return 0; }' > conftest.$ac_ext
5036 ac_cv_exeext=
5b93d8bb 5037 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
252b5132
RH
5038 for file in conftest.*; do
5039 case $file in
4c63da97 5040 *.c | *.C | *.o | *.obj | *.xcoff) ;;
252b5132
RH
5041 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5042 esac
5043 done
5044 else
5045 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5046 fi
5047 rm -f conftest*
5048 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5049fi
5050fi
5051
5052EXEEXT=""
5053test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5054echo "$ac_t""${ac_cv_exeext}" 1>&6
5055ac_exeext=$EXEEXT
5056
5057
5058for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
5059do
5060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5b93d8bb 5062echo "configure:5060: checking for $ac_hdr" >&5
4c63da97 5063if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
252b5132
RH
5064 echo $ac_n "(cached) $ac_c" 1>&6
5065else
5066 cat > conftest.$ac_ext <<EOF
5b93d8bb 5067#line 5065 "configure"
252b5132
RH
5068#include "confdefs.h"
5069#include <$ac_hdr>
5070EOF
5071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5b93d8bb 5072{ (eval echo configure:5070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
5073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5074if test -z "$ac_err"; then
5075 rm -rf conftest*
5076 eval "ac_cv_header_$ac_safe=yes"
5077else
5078 echo "$ac_err" >&5
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 rm -rf conftest*
5082 eval "ac_cv_header_$ac_safe=no"
5083fi
5084rm -f conftest*
5085fi
5086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5087 echo "$ac_t""yes" 1>&6
5088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5089 cat >> confdefs.h <<EOF
5090#define $ac_tr_hdr 1
5091EOF
5092
5093else
5094 echo "$ac_t""no" 1>&6
5095fi
5096done
5097
5098
5099# Put this here so that autoconf's "cross-compiling" message doesn't confuse
5100# people who are not cross-compiling but are compiling cross-assemblers.
5101echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5b93d8bb 5102echo "configure:5100: checking whether compiling a cross-assembler" >&5
252b5132
RH
5103if test "${host}" = "${target}"; then
5104 cross_gas=no
5105else
5106 cross_gas=yes
5107 cat >> confdefs.h <<\EOF
5108#define CROSS_COMPILE 1
5109EOF
5110
5111fi
5112echo "$ac_t""$cross_gas" 1>&6
5113
5114# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5115# for constant arguments. Useless!
5116echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5b93d8bb 5117echo "configure:5115: checking for working alloca.h" >&5
4c63da97 5118if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
252b5132
RH
5119 echo $ac_n "(cached) $ac_c" 1>&6
5120else
5121 cat > conftest.$ac_ext <<EOF
5b93d8bb 5122#line 5120 "configure"
252b5132
RH
5123#include "confdefs.h"
5124#include <alloca.h>
5125int main() {
5126char *p = alloca(2 * sizeof(int));
5127; return 0; }
5128EOF
5b93d8bb 5129if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5130 rm -rf conftest*
5131 ac_cv_header_alloca_h=yes
5132else
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 rm -rf conftest*
5136 ac_cv_header_alloca_h=no
5137fi
5138rm -f conftest*
5139fi
5140
5141echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5142if test $ac_cv_header_alloca_h = yes; then
5143 cat >> confdefs.h <<\EOF
5144#define HAVE_ALLOCA_H 1
5145EOF
5146
5147fi
5148
5149echo $ac_n "checking for alloca""... $ac_c" 1>&6
5b93d8bb 5150echo "configure:5148: checking for alloca" >&5
4c63da97 5151if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
252b5132
RH
5152 echo $ac_n "(cached) $ac_c" 1>&6
5153else
5154 cat > conftest.$ac_ext <<EOF
5b93d8bb 5155#line 5153 "configure"
252b5132
RH
5156#include "confdefs.h"
5157
5158#ifdef __GNUC__
5159# define alloca __builtin_alloca
5160#else
5161# ifdef _MSC_VER
5162# include <malloc.h>
5163# define alloca _alloca
5164# else
5165# if HAVE_ALLOCA_H
5166# include <alloca.h>
5167# else
5168# ifdef _AIX
5169 #pragma alloca
5170# else
5171# ifndef alloca /* predefined by HP cc +Olibcalls */
5172char *alloca ();
5173# endif
5174# endif
5175# endif
5176# endif
5177#endif
5178
5179int main() {
5180char *p = (char *) alloca(1);
5181; return 0; }
5182EOF
5b93d8bb 5183if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5184 rm -rf conftest*
5185 ac_cv_func_alloca_works=yes
5186else
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5189 rm -rf conftest*
5190 ac_cv_func_alloca_works=no
5191fi
5192rm -f conftest*
5193fi
5194
5195echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5196if test $ac_cv_func_alloca_works = yes; then
5197 cat >> confdefs.h <<\EOF
5198#define HAVE_ALLOCA 1
5199EOF
5200
5201fi
5202
5203if test $ac_cv_func_alloca_works = no; then
5204 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5205 # that cause trouble. Some versions do not even contain alloca or
5206 # contain a buggy version. If you still want to use their alloca,
5207 # use ar to extract alloca.o from them instead of compiling alloca.c.
5208 ALLOCA=alloca.${ac_objext}
5209 cat >> confdefs.h <<\EOF
5210#define C_ALLOCA 1
5211EOF
5212
5213
5214echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5b93d8bb 5215echo "configure:5213: checking whether alloca needs Cray hooks" >&5
4c63da97 5216if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
252b5132
RH
5217 echo $ac_n "(cached) $ac_c" 1>&6
5218else
5219 cat > conftest.$ac_ext <<EOF
5b93d8bb 5220#line 5218 "configure"
252b5132
RH
5221#include "confdefs.h"
5222#if defined(CRAY) && ! defined(CRAY2)
5223webecray
5224#else
5225wenotbecray
5226#endif
5227
5228EOF
5229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 egrep "webecray" >/dev/null 2>&1; then
5231 rm -rf conftest*
5232 ac_cv_os_cray=yes
5233else
5234 rm -rf conftest*
5235 ac_cv_os_cray=no
5236fi
5237rm -f conftest*
5238
5239fi
5240
5241echo "$ac_t""$ac_cv_os_cray" 1>&6
5242if test $ac_cv_os_cray = yes; then
5243for ac_func in _getb67 GETB67 getb67; do
5244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 5245echo "configure:5243: checking for $ac_func" >&5
4c63da97 5246if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
5247 echo $ac_n "(cached) $ac_c" 1>&6
5248else
5249 cat > conftest.$ac_ext <<EOF
5b93d8bb 5250#line 5248 "configure"
252b5132
RH
5251#include "confdefs.h"
5252/* System header to define __stub macros and hopefully few prototypes,
5253 which can conflict with char $ac_func(); below. */
5254#include <assert.h>
5255/* Override any gcc2 internal prototype to avoid an error. */
5256/* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258char $ac_func();
4c63da97 5259char (*f)();
252b5132
RH
5260
5261int main() {
5262
5263/* The GNU C library defines this for functions which it implements
5264 to always fail with ENOSYS. Some functions are actually named
5265 something starting with __ and the normal name is an alias. */
5266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5267choke me
5268#else
4c63da97 5269f = $ac_func;
252b5132
RH
5270#endif
5271
5272; return 0; }
5273EOF
5b93d8bb 5274if { (eval echo configure:5272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5275 rm -rf conftest*
5276 eval "ac_cv_func_$ac_func=yes"
5277else
5278 echo "configure: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5280 rm -rf conftest*
5281 eval "ac_cv_func_$ac_func=no"
5282fi
5283rm -f conftest*
5284fi
5285
5286if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5287 echo "$ac_t""yes" 1>&6
5288 cat >> confdefs.h <<EOF
5289#define CRAY_STACKSEG_END $ac_func
5290EOF
5291
5292 break
5293else
5294 echo "$ac_t""no" 1>&6
5295fi
5296
5297done
5298fi
5299
5300echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5b93d8bb 5301echo "configure:5299: checking stack direction for C alloca" >&5
4c63da97 5302if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
252b5132
RH
5303 echo $ac_n "(cached) $ac_c" 1>&6
5304else
5305 if test "$cross_compiling" = yes; then
5306 ac_cv_c_stack_direction=0
5307else
5308 cat > conftest.$ac_ext <<EOF
5b93d8bb 5309#line 5307 "configure"
252b5132
RH
5310#include "confdefs.h"
5311find_stack_direction ()
5312{
5313 static char *addr = 0;
5314 auto char dummy;
5315 if (addr == 0)
5316 {
5317 addr = &dummy;
5318 return find_stack_direction ();
5319 }
5320 else
5321 return (&dummy > addr) ? 1 : -1;
5322}
5323main ()
5324{
5325 exit (find_stack_direction() < 0);
5326}
5327EOF
5b93d8bb 5328if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
5329then
5330 ac_cv_c_stack_direction=1
5331else
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 rm -fr conftest*
5335 ac_cv_c_stack_direction=-1
5336fi
5337rm -fr conftest*
5338fi
5339
5340fi
5341
5342echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5343cat >> confdefs.h <<EOF
5344#define STACK_DIRECTION $ac_cv_c_stack_direction
5345EOF
5346
5347fi
5348
5349echo $ac_n "checking for inline""... $ac_c" 1>&6
5b93d8bb 5350echo "configure:5348: checking for inline" >&5
4c63da97 5351if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
252b5132
RH
5352 echo $ac_n "(cached) $ac_c" 1>&6
5353else
5354 ac_cv_c_inline=no
5355for ac_kw in inline __inline__ __inline; do
5356 cat > conftest.$ac_ext <<EOF
5b93d8bb 5357#line 5355 "configure"
252b5132
RH
5358#include "confdefs.h"
5359
5360int main() {
4c63da97 5361} $ac_kw int foo() {
252b5132
RH
5362; return 0; }
5363EOF
5b93d8bb 5364if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
5365 rm -rf conftest*
5366 ac_cv_c_inline=$ac_kw; break
5367else
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370fi
5371rm -f conftest*
5372done
5373
5374fi
5375
5376echo "$ac_t""$ac_cv_c_inline" 1>&6
5377case "$ac_cv_c_inline" in
5378 inline | yes) ;;
5379 no) cat >> confdefs.h <<\EOF
5380#define inline
5381EOF
5382 ;;
5383 *) cat >> confdefs.h <<EOF
5384#define inline $ac_cv_c_inline
5385EOF
5386 ;;
5387esac
5388
5389
5390# VMS doesn't have unlink.
5391for ac_func in unlink remove
5392do
5393echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 5394echo "configure:5392: checking for $ac_func" >&5
4c63da97 5395if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
5396 echo $ac_n "(cached) $ac_c" 1>&6
5397else
5398 cat > conftest.$ac_ext <<EOF
5b93d8bb 5399#line 5397 "configure"
252b5132
RH
5400#include "confdefs.h"
5401/* System header to define __stub macros and hopefully few prototypes,
5402 which can conflict with char $ac_func(); below. */
5403#include <assert.h>
5404/* Override any gcc2 internal prototype to avoid an error. */
5405/* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5407char $ac_func();
4c63da97 5408char (*f)();
252b5132
RH
5409
5410int main() {
5411
5412/* The GNU C library defines this for functions which it implements
5413 to always fail with ENOSYS. Some functions are actually named
5414 something starting with __ and the normal name is an alias. */
5415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416choke me
5417#else
4c63da97 5418f = $ac_func;
252b5132
RH
5419#endif
5420
5421; return 0; }
5422EOF
5b93d8bb 5423if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=yes"
5426else
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 rm -rf conftest*
5430 eval "ac_cv_func_$ac_func=no"
5431fi
5432rm -f conftest*
5433fi
5434
5435if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
5437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5438 cat >> confdefs.h <<EOF
5439#define $ac_tr_func 1
5440EOF
5441 break
5442else
5443 echo "$ac_t""no" 1>&6
5444fi
5445done
5446
5447
5448# Some systems don't have sbrk().
5449for ac_func in sbrk
5450do
5451echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5b93d8bb 5452echo "configure:5450: checking for $ac_func" >&5
4c63da97 5453if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
252b5132
RH
5454 echo $ac_n "(cached) $ac_c" 1>&6
5455else
5456 cat > conftest.$ac_ext <<EOF
5b93d8bb 5457#line 5455 "configure"
252b5132
RH
5458#include "confdefs.h"
5459/* System header to define __stub macros and hopefully few prototypes,
5460 which can conflict with char $ac_func(); below. */
5461#include <assert.h>
5462/* Override any gcc2 internal prototype to avoid an error. */
5463/* We use char because int might match the return type of a gcc2
5464 builtin and then its argument prototype would still apply. */
5465char $ac_func();
4c63da97 5466char (*f)();
252b5132
RH
5467
5468int main() {
5469
5470/* The GNU C library defines this for functions which it implements
5471 to always fail with ENOSYS. Some functions are actually named
5472 something starting with __ and the normal name is an alias. */
5473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474choke me
5475#else
4c63da97 5476f = $ac_func;
252b5132
RH
5477#endif
5478
5479; return 0; }
5480EOF
5b93d8bb 5481if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5482 rm -rf conftest*
5483 eval "ac_cv_func_$ac_func=yes"
5484else
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 rm -rf conftest*
5488 eval "ac_cv_func_$ac_func=no"
5489fi
5490rm -f conftest*
5491fi
5492
5493if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5496 cat >> confdefs.h <<EOF
5497#define $ac_tr_func 1
5498EOF
5499
5500else
5501 echo "$ac_t""no" 1>&6
5502fi
5503done
5504
5505
5506# Some non-ANSI preprocessors botch requoting inside strings. That's bad
5507# enough, but on some of those systems, the assert macro relies on requoting
5508# working properly!
5509echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5b93d8bb 5510echo "configure:5508: checking for working assert macro" >&5
4c63da97 5511if eval "test \"\${gas_cv_assert_ok+set}\" = set"; then
252b5132
RH
5512 echo $ac_n "(cached) $ac_c" 1>&6
5513else
5514 cat > conftest.$ac_ext <<EOF
5b93d8bb 5515#line 5513 "configure"
252b5132
RH
5516#include "confdefs.h"
5517#include <assert.h>
5518#include <stdio.h>
5519int main() {
5520
5521/* check for requoting problems */
5522static int a, b, c, d;
5523static char *s;
5524assert (!strcmp(s, "foo bar baz quux"));
5525/* check for newline handling */
5526assert (a == b
5527 || c == d);
5528
5529; return 0; }
5530EOF
5b93d8bb 5531if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5532 rm -rf conftest*
5533 gas_cv_assert_ok=yes
5534else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 rm -rf conftest*
5538 gas_cv_assert_ok=no
5539fi
5540rm -f conftest*
5541fi
5542echo "$ac_t""$gas_cv_assert_ok" 1>&6
5543test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
5544#define BROKEN_ASSERT 1
5545EOF
5546
5547
5548
5549# On some systems, the system header files may not declare malloc, realloc,
5550# and free. There are places where gas needs these functions to have been
5551# declared -- such as when taking their addresses.
5552gas_test_headers="
5553#ifdef HAVE_MEMORY_H
5554#include <memory.h>
5555#endif
5556#ifdef HAVE_STRING_H
5557#include <string.h>
5558#else
5559#ifdef HAVE_STRINGS_H
5560#include <strings.h>
5561#endif
5562#endif
5563#ifdef HAVE_STDLIB_H
5564#include <stdlib.h>
5565#endif
5566#ifdef HAVE_UNISTD_H
5567#include <unistd.h>
5568#endif
5569"
5570
5571echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5b93d8bb 5572echo "configure:5570: checking whether declaration is required for strstr" >&5
4c63da97 5573if eval "test \"\${gas_cv_decl_needed_strstr+set}\" = set"; then
252b5132
RH
5574 echo $ac_n "(cached) $ac_c" 1>&6
5575else
5576 cat > conftest.$ac_ext <<EOF
5b93d8bb 5577#line 5575 "configure"
252b5132
RH
5578#include "confdefs.h"
5579$gas_test_headers
5580int main() {
5581
5582typedef char *(*f)();
5583f x;
5584x = (f) strstr;
5585
5586; return 0; }
5587EOF
5b93d8bb 5588if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5589 rm -rf conftest*
5590 gas_cv_decl_needed_strstr=no
5591else
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5594 rm -rf conftest*
5595 gas_cv_decl_needed_strstr=yes
5596fi
5597rm -f conftest*
5598fi
5599echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5600if test $gas_cv_decl_needed_strstr = yes; then
5601 cat >> confdefs.h <<\EOF
5602#define NEED_DECLARATION_STRSTR 1
5603EOF
5604
5605fi
5606
5607
5608echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5b93d8bb 5609echo "configure:5607: checking whether declaration is required for malloc" >&5
4c63da97 5610if eval "test \"\${gas_cv_decl_needed_malloc+set}\" = set"; then
252b5132
RH
5611 echo $ac_n "(cached) $ac_c" 1>&6
5612else
5613 cat > conftest.$ac_ext <<EOF
5b93d8bb 5614#line 5612 "configure"
252b5132
RH
5615#include "confdefs.h"
5616$gas_test_headers
5617int main() {
5618
5619typedef char *(*f)();
5620f x;
5621x = (f) malloc;
5622
5623; return 0; }
5624EOF
5b93d8bb 5625if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5626 rm -rf conftest*
5627 gas_cv_decl_needed_malloc=no
5628else
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5631 rm -rf conftest*
5632 gas_cv_decl_needed_malloc=yes
5633fi
5634rm -f conftest*
5635fi
5636echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5637if test $gas_cv_decl_needed_malloc = yes; then
5638 cat >> confdefs.h <<\EOF
5639#define NEED_DECLARATION_MALLOC 1
5640EOF
5641
5642fi
5643
5644
5645echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5b93d8bb 5646echo "configure:5644: checking whether declaration is required for free" >&5
4c63da97 5647if eval "test \"\${gas_cv_decl_needed_free+set}\" = set"; then
252b5132
RH
5648 echo $ac_n "(cached) $ac_c" 1>&6
5649else
5650 cat > conftest.$ac_ext <<EOF
5b93d8bb 5651#line 5649 "configure"
252b5132
RH
5652#include "confdefs.h"
5653$gas_test_headers
5654int main() {
5655
5656typedef void (*f)();
5657f x;
5658x = (f) free;
5659
5660; return 0; }
5661EOF
5b93d8bb 5662if { (eval echo configure:5660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5663 rm -rf conftest*
5664 gas_cv_decl_needed_free=no
5665else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 gas_cv_decl_needed_free=yes
5670fi
5671rm -f conftest*
5672fi
5673echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5674if test $gas_cv_decl_needed_free = yes; then
5675 cat >> confdefs.h <<\EOF
5676#define NEED_DECLARATION_FREE 1
5677EOF
5678
5679fi
5680
5681
5682echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5b93d8bb 5683echo "configure:5681: checking whether declaration is required for sbrk" >&5
4c63da97 5684if eval "test \"\${gas_cv_decl_needed_sbrk+set}\" = set"; then
252b5132
RH
5685 echo $ac_n "(cached) $ac_c" 1>&6
5686else
5687 cat > conftest.$ac_ext <<EOF
5b93d8bb 5688#line 5686 "configure"
252b5132
RH
5689#include "confdefs.h"
5690$gas_test_headers
5691int main() {
5692
5693typedef char *(*f)();
5694f x;
5695x = (f) sbrk;
5696
5697; return 0; }
5698EOF
5b93d8bb 5699if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5700 rm -rf conftest*
5701 gas_cv_decl_needed_sbrk=no
5702else
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 rm -rf conftest*
5706 gas_cv_decl_needed_sbrk=yes
5707fi
5708rm -f conftest*
5709fi
5710echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5711if test $gas_cv_decl_needed_sbrk = yes; then
5712 cat >> confdefs.h <<\EOF
5713#define NEED_DECLARATION_SBRK 1
5714EOF
5715
5716fi
5717
5718
5719echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5b93d8bb 5720echo "configure:5718: checking whether declaration is required for environ" >&5
4c63da97 5721if eval "test \"\${gas_cv_decl_needed_environ+set}\" = set"; then
252b5132
RH
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723else
5724 cat > conftest.$ac_ext <<EOF
5b93d8bb 5725#line 5723 "configure"
252b5132
RH
5726#include "confdefs.h"
5727$gas_test_headers
5728int main() {
5729
5730typedef char **f;
5731f x;
5732x = (f) environ;
5733
5734; return 0; }
5735EOF
5b93d8bb 5736if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5737 rm -rf conftest*
5738 gas_cv_decl_needed_environ=no
5739else
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5742 rm -rf conftest*
5743 gas_cv_decl_needed_environ=yes
5744fi
5745rm -f conftest*
5746fi
5747echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5748if test $gas_cv_decl_needed_environ = yes; then
5749 cat >> confdefs.h <<\EOF
5750#define NEED_DECLARATION_ENVIRON 1
5751EOF
5752
5753fi
5754
5755
5756# Does errno.h declare errno, or do we have to add a separate declaration
5757# for it?
5758
5759echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5b93d8bb 5760echo "configure:5758: checking whether declaration is required for errno" >&5
4c63da97 5761if eval "test \"\${gas_cv_decl_needed_errno+set}\" = set"; then
252b5132
RH
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763else
5764 cat > conftest.$ac_ext <<EOF
5b93d8bb 5765#line 5763 "configure"
252b5132
RH
5766#include "confdefs.h"
5767
5768#ifdef HAVE_ERRNO_H
5769#include <errno.h>
5770#endif
5771
5772int main() {
5773
5774typedef int f;
5775f x;
5776x = (f) errno;
5777
5778; return 0; }
5779EOF
5b93d8bb 5780if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
5781 rm -rf conftest*
5782 gas_cv_decl_needed_errno=no
5783else
5784 echo "configure: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5786 rm -rf conftest*
5787 gas_cv_decl_needed_errno=yes
5788fi
5789rm -f conftest*
5790fi
5791echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5792if test $gas_cv_decl_needed_errno = yes; then
5793 cat >> confdefs.h <<\EOF
5794#define NEED_DECLARATION_ERRNO 1
5795EOF
5796
5797fi
5798
5799
5800
5801
5802trap '' 1 2 15
5803cat > confcache <<\EOF
5804# This file is a shell script that caches the results of configure
5805# tests run on this system so they can be shared between configure
5806# scripts and configure runs. It is not useful on other systems.
5807# If it contains results you don't want to keep, you may remove or edit it.
5808#
5809# By default, configure uses ./config.cache as the cache file,
5810# creating it if it does not exist already. You can give configure
5811# the --cache-file=FILE option to use a different cache file; that is
5812# what configure does when it calls configure scripts in
5813# subdirectories, so they share the cache.
5814# Giving --cache-file=/dev/null disables caching, for debugging configure.
5815# config.status only pays attention to the cache file if you give it the
5816# --recheck option to rerun configure.
5817#
5818EOF
5819# The following way of writing the cache mishandles newlines in values,
5820# but we know of no workaround that is simple, portable, and efficient.
5821# So, don't put newlines in cache variables' values.
5822# Ultrix sh set writes to stderr and can't be redirected directly,
5823# and sets the high bit in the cache file unless we assign to the vars.
5824(set) 2>&1 |
5825 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5826 *ac_space=\ *)
5827 # `set' does not quote correctly, so add quotes (double-quote substitution
5828 # turns \\\\ into \\, and sed turns \\ into \).
5829 sed -n \
5830 -e "s/'/'\\\\''/g" \
5831 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5832 ;;
5833 *)
5834 # `set' quotes correctly as required by POSIX, so do not add quotes.
5835 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5836 ;;
5837 esac >> confcache
5838if cmp -s $cache_file confcache; then
5839 :
5840else
5841 if test -w $cache_file; then
5842 echo "updating cache $cache_file"
5843 cat confcache > $cache_file
5844 else
5845 echo "not updating unwritable cache $cache_file"
5846 fi
5847fi
5848rm -f confcache
5849
5850trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5851
5852test "x$prefix" = xNONE && prefix=$ac_default_prefix
5853# Let make expand exec_prefix.
5854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5855
5856# Any assignment to VPATH causes Sun make to only execute
5857# the first set of double-colon rules, so remove it if not needed.
5858# If there is a colon in the path, we need to keep it.
5859if test "x$srcdir" = x.; then
5860 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5861fi
5862
5863trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5864
5865DEFS=-DHAVE_CONFIG_H
5866
5867# Without the "./", some shells look in PATH for config.status.
5868: ${CONFIG_STATUS=./config.status}
5869
5870echo creating $CONFIG_STATUS
5871rm -f $CONFIG_STATUS
5872cat > $CONFIG_STATUS <<EOF
5873#! /bin/sh
5874# Generated automatically by configure.
5875# Run this file to recreate the current configuration.
5876# This directory was configured as follows,
5877# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5878#
5879# $0 $ac_configure_args
5880#
5881# Compiler output produced by configure, useful for debugging
5882# configure, is in ./config.log if it exists.
5883
5884ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5885for ac_option
5886do
5887 case "\$ac_option" in
5888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5889 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5890 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5891 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4c63da97 5892 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
252b5132
RH
5893 exit 0 ;;
5894 -help | --help | --hel | --he | --h)
5895 echo "\$ac_cs_usage"; exit 0 ;;
5896 *) echo "\$ac_cs_usage"; exit 1 ;;
5897 esac
5898done
5899
5900ac_given_srcdir=$srcdir
5901ac_given_INSTALL="$INSTALL"
5902
76a27922 5903trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
252b5132
RH
5904EOF
5905cat >> $CONFIG_STATUS <<EOF
5906
5907# Protect against being on the right side of a sed subst in config.status.
5908sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5909 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5910$ac_vpsub
5911$extrasub
5912s%@SHELL@%$SHELL%g
5913s%@CFLAGS@%$CFLAGS%g
5914s%@CPPFLAGS@%$CPPFLAGS%g
5915s%@CXXFLAGS@%$CXXFLAGS%g
5916s%@FFLAGS@%$FFLAGS%g
5917s%@DEFS@%$DEFS%g
5918s%@LDFLAGS@%$LDFLAGS%g
5919s%@LIBS@%$LIBS%g
5920s%@exec_prefix@%$exec_prefix%g
5921s%@prefix@%$prefix%g
5922s%@program_transform_name@%$program_transform_name%g
5923s%@bindir@%$bindir%g
5924s%@sbindir@%$sbindir%g
5925s%@libexecdir@%$libexecdir%g
5926s%@datadir@%$datadir%g
5927s%@sysconfdir@%$sysconfdir%g
5928s%@sharedstatedir@%$sharedstatedir%g
5929s%@localstatedir@%$localstatedir%g
5930s%@libdir@%$libdir%g
5931s%@includedir@%$includedir%g
5932s%@oldincludedir@%$oldincludedir%g
5933s%@infodir@%$infodir%g
5934s%@mandir@%$mandir%g
5935s%@host@%$host%g
5936s%@host_alias@%$host_alias%g
5937s%@host_cpu@%$host_cpu%g
5938s%@host_vendor@%$host_vendor%g
5939s%@host_os@%$host_os%g
5940s%@target@%$target%g
5941s%@target_alias@%$target_alias%g
5942s%@target_cpu@%$target_cpu%g
5943s%@target_vendor@%$target_vendor%g
5944s%@target_os@%$target_os%g
5945s%@build@%$build%g
5946s%@build_alias@%$build_alias%g
5947s%@build_cpu@%$build_cpu%g
5948s%@build_vendor@%$build_vendor%g
5949s%@build_os@%$build_os%g
5950s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5951s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5952s%@INSTALL_DATA@%$INSTALL_DATA%g
5953s%@PACKAGE@%$PACKAGE%g
5954s%@VERSION@%$VERSION%g
5955s%@ACLOCAL@%$ACLOCAL%g
5956s%@AUTOCONF@%$AUTOCONF%g
5957s%@AUTOMAKE@%$AUTOMAKE%g
5958s%@AUTOHEADER@%$AUTOHEADER%g
5959s%@MAKEINFO@%$MAKEINFO%g
5960s%@SET_MAKE@%$SET_MAKE%g
5961s%@RANLIB@%$RANLIB%g
5962s%@CC@%$CC%g
5963s%@LD@%$LD%g
5964s%@NM@%$NM%g
bedf545c 5965s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
252b5132 5966s%@LN_S@%$LN_S%g
252b5132
RH
5967s%@DLLTOOL@%$DLLTOOL%g
5968s%@AS@%$AS%g
bedf545c 5969s%@LIBTOOL@%$LIBTOOL%g
76a27922 5970s%@GDBINIT@%$GDBINIT%g
252b5132
RH
5971s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5972s%@extra_objects@%$extra_objects%g
5973s%@target_cpu_type@%$target_cpu_type%g
5974s%@obj_format@%$obj_format%g
5975s%@te_file@%$te_file%g
5976s%@install_tooldir@%$install_tooldir%g
5977s%@atof@%$atof%g
5978s%@BFDLIB@%$BFDLIB%g
5979s%@OPCODES_LIB@%$OPCODES_LIB%g
5980s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5981s%@YACC@%$YACC%g
5982s%@LEX@%$LEX%g
5983s%@LEXLIB@%$LEXLIB%g
5984s%@CPP@%$CPP%g
5985s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5986s%@ALLOCA@%$ALLOCA%g
5987s%@USE_NLS@%$USE_NLS%g
5988s%@MSGFMT@%$MSGFMT%g
5989s%@GMSGFMT@%$GMSGFMT%g
5990s%@XGETTEXT@%$XGETTEXT%g
5991s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5992s%@CATALOGS@%$CATALOGS%g
5993s%@CATOBJEXT@%$CATOBJEXT%g
5994s%@DATADIRNAME@%$DATADIRNAME%g
5995s%@GMOFILES@%$GMOFILES%g
5996s%@INSTOBJEXT@%$INSTOBJEXT%g
5997s%@INTLDEPS@%$INTLDEPS%g
5998s%@INTLLIBS@%$INTLLIBS%g
5999s%@INTLOBJS@%$INTLOBJS%g
6000s%@POFILES@%$POFILES%g
6001s%@POSUB@%$POSUB%g
6002s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6003s%@GT_NO@%$GT_NO%g
6004s%@GT_YES@%$GT_YES%g
6005s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6006s%@l@%$l%g
6007s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6008s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6009s%@MAINT@%$MAINT%g
6010s%@EXEEXT@%$EXEEXT%g
6011
6012CEOF
6013EOF
6014
6015cat >> $CONFIG_STATUS <<\EOF
6016
6017# Split the substitutions into bite-sized pieces for seds with
6018# small command number limits, like on Digital OSF/1 and HP-UX.
6019ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6020ac_file=1 # Number of current file.
6021ac_beg=1 # First line for current file.
6022ac_end=$ac_max_sed_cmds # Line after last line for current file.
6023ac_more_lines=:
6024ac_sed_cmds=""
6025while $ac_more_lines; do
6026 if test $ac_beg -gt 1; then
6027 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6028 else
6029 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6030 fi
6031 if test ! -s conftest.s$ac_file; then
6032 ac_more_lines=false
6033 rm -f conftest.s$ac_file
6034 else
6035 if test -z "$ac_sed_cmds"; then
6036 ac_sed_cmds="sed -f conftest.s$ac_file"
6037 else
6038 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6039 fi
6040 ac_file=`expr $ac_file + 1`
6041 ac_beg=$ac_end
6042 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6043 fi
6044done
6045if test -z "$ac_sed_cmds"; then
6046 ac_sed_cmds=cat
6047fi
6048EOF
6049
6050cat >> $CONFIG_STATUS <<EOF
6051
76a27922 6052CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
252b5132
RH
6053EOF
6054cat >> $CONFIG_STATUS <<\EOF
6055for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6057 case "$ac_file" in
6058 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6059 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6060 *) ac_file_in="${ac_file}.in" ;;
6061 esac
6062
6063 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6064
6065 # Remove last slash and all that follows it. Not all systems have dirname.
6066 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6067 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6068 # The file is in a subdirectory.
6069 test ! -d "$ac_dir" && mkdir "$ac_dir"
6070 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6071 # A "../" for each directory in $ac_dir_suffix.
6072 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6073 else
6074 ac_dir_suffix= ac_dots=
6075 fi
6076
6077 case "$ac_given_srcdir" in
6078 .) srcdir=.
6079 if test -z "$ac_dots"; then top_srcdir=.
6080 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6081 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6082 *) # Relative path.
6083 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6084 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6085 esac
6086
6087 case "$ac_given_INSTALL" in
6088 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6089 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6090 esac
6091
6092 echo creating "$ac_file"
6093 rm -f "$ac_file"
6094 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6095 case "$ac_file" in
6096 *Makefile*) ac_comsub="1i\\
6097# $configure_input" ;;
6098 *) ac_comsub= ;;
6099 esac
6100
6101 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6102 sed -e "$ac_comsub
6103s%@configure_input@%$configure_input%g
6104s%@srcdir@%$srcdir%g
6105s%@top_srcdir@%$top_srcdir%g
6106s%@INSTALL@%$INSTALL%g
6107" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6108fi; done
6109rm -f conftest.s*
6110
6111# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6112# NAME is the cpp macro being defined and VALUE is the value it is being given.
6113#
6114# ac_d sets the value in "#define NAME VALUE" lines.
6115ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6116ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6117ac_dC='\3'
6118ac_dD='%g'
6119# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6120ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6121ac_uB='\([ ]\)%\1#\2define\3'
6122ac_uC=' '
6123ac_uD='\4%g'
6124# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6125ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6126ac_eB='$%\1#\2define\3'
6127ac_eC=' '
6128ac_eD='%g'
6129
6130if test "${CONFIG_HEADERS+set}" != set; then
6131EOF
6132cat >> $CONFIG_STATUS <<EOF
6133 CONFIG_HEADERS="config.h:config.in"
6134EOF
6135cat >> $CONFIG_STATUS <<\EOF
6136fi
6137for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6139 case "$ac_file" in
6140 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6141 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6142 *) ac_file_in="${ac_file}.in" ;;
6143 esac
6144
6145 echo creating $ac_file
6146
6147 rm -f conftest.frag conftest.in conftest.out
6148 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6149 cat $ac_file_inputs > conftest.in
6150
6151EOF
6152
6153# Transform confdefs.h into a sed script conftest.vals that substitutes
6154# the proper values into config.h.in to produce config.h. And first:
6155# Protect against being on the right side of a sed subst in config.status.
6156# Protect against being in an unquoted here document in config.status.
6157rm -f conftest.vals
6158cat > conftest.hdr <<\EOF
6159s/[\\&%]/\\&/g
6160s%[\\$`]%\\&%g
6161s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6162s%ac_d%ac_u%gp
6163s%ac_u%ac_e%gp
6164EOF
6165sed -n -f conftest.hdr confdefs.h > conftest.vals
6166rm -f conftest.hdr
6167
6168# This sed command replaces #undef with comments. This is necessary, for
6169# example, in the case of _POSIX_SOURCE, which is predefined and required
6170# on some systems where configure will not decide to define it.
6171cat >> conftest.vals <<\EOF
6172s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6173EOF
6174
6175# Break up conftest.vals because some shells have a limit on
6176# the size of here documents, and old seds have small limits too.
6177
6178rm -f conftest.tail
6179while :
6180do
6181 ac_lines=`grep -c . conftest.vals`
6182 # grep -c gives empty output for an empty file on some AIX systems.
6183 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6184 # Write a limited-size here document to conftest.frag.
6185 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6186 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6187 echo 'CEOF
6188 sed -f conftest.frag conftest.in > conftest.out
6189 rm -f conftest.in
6190 mv conftest.out conftest.in
6191' >> $CONFIG_STATUS
6192 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6193 rm -f conftest.vals
6194 mv conftest.tail conftest.vals
6195done
6196rm -f conftest.vals
6197
6198cat >> $CONFIG_STATUS <<\EOF
6199 rm -f conftest.frag conftest.h
6200 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6201 cat conftest.in >> conftest.h
6202 rm -f conftest.in
6203 if cmp -s $ac_file conftest.h 2>/dev/null; then
6204 echo "$ac_file is unchanged"
6205 rm -f conftest.h
6206 else
6207 # Remove last slash and all that follows it. Not all systems have dirname.
6208 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6210 # The file is in a subdirectory.
6211 test ! -d "$ac_dir" && mkdir "$ac_dir"
6212 fi
6213 rm -f $ac_file
6214 mv conftest.h $ac_file
6215 fi
6216fi; done
6217
6218EOF
6219cat >> $CONFIG_STATUS <<EOF
6220
6221target_cpu_type=${target_cpu_type}
6222 cgen_cpu_prefix=${cgen_cpu_prefix}
6223 obj_format=${obj_format}
6224 te_file=${te_file}
6225EOF
6226cat >> $CONFIG_STATUS <<\EOF
6227test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6228rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6229 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6230 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6231 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6232 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6233 if test "x$cgen_cpu_prefix" != x ; then
6234 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6235 fi
6236
6237 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6238exit 0
6239EOF
6240chmod +x $CONFIG_STATUS
6241rm -fr confdefs* $ac_clean_files
4c63da97 6242test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
252b5132 6243
This page took 0.300656 seconds and 4 git commands to generate.