Fix indentation.
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
c62d1274
ILT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
a3515171 4# Generated automatically using autoconf version 2.12.1
e3659cbf 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
c62d1274
ILT
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
69ad8cac 15 --enable-shared[=PKGS] build shared libraries [default=no]"
1daed53f 16ac_help="$ac_help
69ad8cac 17 --enable-static[=PKGS] build static libraries [default=yes]"
e0bf1022 18ac_help="$ac_help
bd4a69c3 19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
1daed53f
ILT
20ac_help="$ac_help
21 --enable-targets alternative target configurations"
e0bf1022
ILT
22ac_help="$ac_help
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
784492b5
ILT
24ac_help="$ac_help
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
072aa625
NC
27ac_help="$ac_help
28 --disable-nls do not use Native Language Support"
29ac_help="$ac_help
30 --with-included-gettext use the GNU gettext library included here"
69ad8cac
ILT
31ac_help="$ac_help
32 --enable-cgen-maint build cgen generated files"
c62d1274
ILT
33
34# Initialize some variables set by options.
35# The variables have the same names as the options, with
36# dashes changed to underlines.
37build=NONE
38cache_file=./config.cache
39exec_prefix=NONE
40host=NONE
41no_create=
42nonopt=NONE
43no_recursion=
44prefix=NONE
45program_prefix=NONE
46program_suffix=NONE
47program_transform_name=s,x,x,
48silent=
49site=
50srcdir=
51target=NONE
52verbose=
53x_includes=NONE
54x_libraries=NONE
00103dfa
ILT
55bindir='${exec_prefix}/bin'
56sbindir='${exec_prefix}/sbin'
57libexecdir='${exec_prefix}/libexec'
58datadir='${prefix}/share'
59sysconfdir='${prefix}/etc'
60sharedstatedir='${prefix}/com'
61localstatedir='${prefix}/var'
62libdir='${exec_prefix}/lib'
63includedir='${prefix}/include'
64oldincludedir='/usr/include'
65infodir='${prefix}/info'
66mandir='${prefix}/man'
c62d1274
ILT
67
68# Initialize some other variables.
69subdirs=
00103dfa 70MFLAGS= MAKEFLAGS=
cd66558c 71SHELL=${CONFIG_SHELL-/bin/sh}
9c03036a
DE
72# Maximum number of lines to put in a shell here document.
73ac_max_here_lines=12
c62d1274
ILT
74
75ac_prev=
76for ac_option
77do
78
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
82 ac_prev=
83 continue
84 fi
85
86 case "$ac_option" in
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 *) ac_optarg= ;;
89 esac
90
91 # Accept the important Cygnus configure options, so we can diagnose typos.
92
93 case "$ac_option" in
94
00103dfa
ILT
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 ac_prev=bindir ;;
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
99
100 -build | --build | --buil | --bui | --bu)
c62d1274 101 ac_prev=build ;;
00103dfa 102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c62d1274
ILT
103 build="$ac_optarg" ;;
104
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
111
00103dfa
ILT
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 ac_prev=datadir ;;
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 | --da=*)
116 datadir="$ac_optarg" ;;
117
c62d1274
ILT
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
126
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 case "$ac_option" in
135 *=*) ;;
136 *) ac_optarg=yes ;;
137 esac
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
148
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
151 with_gas=yes ;;
152
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
156 cat << EOF
157Usage: configure [options] [host]
158Options: [defaults in brackets after descriptions]
159Configuration:
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
00103dfa 168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
c62d1274 169 [same as prefix]
00103dfa
ILT
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
c62d1274
ILT
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
00103dfa
ILT
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
189EOF
190 cat << EOF
c62d1274
ILT
191Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
c62d1274 202EOF
00103dfa
ILT
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
205 fi
c62d1274
ILT
206 exit 0 ;;
207
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
212
00103dfa
ILT
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
219
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
224
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
229
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
236
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
245
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
250
c62d1274
ILT
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
254
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
258
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
262
00103dfa
ILT
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
271
c62d1274
ILT
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
276
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
283
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
290
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
307
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
311
00103dfa
ILT
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
317
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
328
c62d1274
ILT
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
333
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 ac_prev=srcdir ;;
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
338
00103dfa
ILT
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
345
c62d1274
ILT
346 -target | --target | --targe | --targ | --tar | --ta | --t)
347 ac_prev=target ;;
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
350
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 verbose=yes ;;
353
354 -version | --version | --versio | --versi | --vers)
a3515171 355 echo "configure generated by autoconf version 2.12.1"
c62d1274
ILT
356 exit 0 ;;
357
358 -with-* | --with-*)
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 fi
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 case "$ac_option" in
366 *=*) ;;
367 *) ac_optarg=yes ;;
368 esac
369 eval "with_${ac_package}='$ac_optarg'" ;;
370
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 fi
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
379
380 --x)
381 # Obsolete; use --with-x.
382 with_x=yes ;;
383
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
390
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
397
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 ;;
400
00103dfa 401 *)
c62d1274
ILT
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 fi
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 fi
408 nonopt="$ac_option"
409 ;;
410
411 esac
412done
413
414if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416fi
417
418trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420# File descriptor usage:
421# 0 standard input
422# 1 file creation
423# 2 errors and warnings
424# 3 some systems may open it to /dev/tty
425# 4 used on the Kubota Titan
426# 6 checking for... messages and results
427# 5 compiler messages saved in config.log
428if test "$silent" = yes; then
429 exec 6>/dev/null
430else
431 exec 6>&1
432fi
433exec 5>./config.log
434
435echo "\
436This file contains any messages produced by compilers while
437running configure, to aid debugging if configure makes a mistake.
438" 1>&5
439
440# Strip out --no-create and --no-recursion so they do not pile up.
441# Also quote any args containing shell metacharacters.
442ac_configure_args=
443for ac_arg
444do
445 case "$ac_arg" in
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 esac
454done
455
456# NLS nuisances.
9c03036a
DE
457# Only set these to C if already set. These must not be set unconditionally
458# because not all systems understand e.g. LANG=C (notably SCO).
459# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460# Non-C LC_CTYPE values break the ctype check.
c62d1274 461if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9c03036a
DE
462if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
c62d1274
ILT
465
466# confdefs.h avoids OS command line length limits that DEFS can exceed.
467rm -rf conftest* confdefs.h
468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
469echo > confdefs.h
470
471# A filename unique to this package, relative to the directory that
472# configure is in, which we can look for to find out if srcdir is correct.
473ac_unique_file=z8k-dis.c
474
475# Find the source files, if location was not specified.
476if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
479 ac_prog=$0
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 srcdir=$ac_confdir
483 if test ! -r $srcdir/$ac_unique_file; then
484 srcdir=..
485 fi
486else
487 ac_srcdir_defaulted=no
488fi
489if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 else
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 fi
495fi
496srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498# Prefer explicitly selected file to automatically selected ones.
499if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 else
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 fi
505fi
506for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
510 fi
511done
512
1daed53f
ILT
513if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516else
517 echo "creating cache $cache_file"
518 > $cache_file
519fi
520
521ac_ext=c
522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523ac_cpp='$CPP $CPPFLAGS'
524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526cross_compiling=$ac_cv_prog_cc_cross
527
528if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536else
537 ac_n= ac_c='\c' ac_t=
538fi
539
540
541
542ac_aux_dir=
543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install-sh -c"
547 break
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
552 fi
553done
554if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556fi
557ac_config_guess=$ac_aux_dir/config.guess
558ac_config_sub=$ac_aux_dir/config.sub
559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561
562# Do some error checking and defaulting for the host and target type.
563# The inputs are:
564# configure --host=HOST --target=TARGET --build=BUILD NONOPT
565#
566# The rules are:
567# 1. You are not allowed to specify --host, --target, and nonopt at the
568# same time.
569# 2. Host defaults to nonopt.
570# 3. If nonopt is not specified, then host defaults to the current host,
571# as determined by config.guess.
572# 4. Target and build default to nonopt.
573# 5. If nonopt is not specified, then target and build default to host.
574
575# The aliases save the names the user supplied, while $host etc.
576# will get canonicalized.
577case $host---$target---$nonopt in
578NONE---*---* | *---NONE---* | *---*---NONE) ;;
579*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
580esac
581
582
583# Make sure we can run config.sub.
a3515171 584if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1daed53f
ILT
585else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586fi
587
588echo $ac_n "checking host system type""... $ac_c" 1>&6
69ad8cac 589echo "configure:590: checking host system type" >&5
1daed53f
ILT
590
591host_alias=$host
592case "$host_alias" in
593NONE)
594 case $nonopt in
595 NONE)
a3515171 596 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1daed53f
ILT
597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
598 fi ;;
599 *) host_alias=$nonopt ;;
600 esac ;;
601esac
602
a3515171 603host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1daed53f
ILT
604host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607echo "$ac_t""$host" 1>&6
608
609echo $ac_n "checking target system type""... $ac_c" 1>&6
69ad8cac 610echo "configure:611: checking target system type" >&5
1daed53f
ILT
611
612target_alias=$target
613case "$target_alias" in
614NONE)
615 case $nonopt in
616 NONE) target_alias=$host_alias ;;
617 *) target_alias=$nonopt ;;
618 esac ;;
619esac
620
a3515171 621target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1daed53f
ILT
622target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625echo "$ac_t""$target" 1>&6
626
627echo $ac_n "checking build system type""... $ac_c" 1>&6
69ad8cac 628echo "configure:629: checking build system type" >&5
1daed53f
ILT
629
630build_alias=$build
631case "$build_alias" in
632NONE)
633 case $nonopt in
634 NONE) build_alias=$host_alias ;;
635 *) build_alias=$nonopt ;;
636 esac ;;
637esac
638
a3515171 639build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1daed53f
ILT
640build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643echo "$ac_t""$build" 1>&6
644
645test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
647 NONENONEs,x,x, &&
648 program_prefix=${target_alias}-
649
784492b5
ILT
650# Extract the first word of "gcc", so it can be a program name with args.
651set dummy gcc; ac_word=$2
652echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 653echo "configure:654: checking for $ac_word" >&5
784492b5
ILT
654if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
661 for ac_dir in $PATH; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
664 ac_cv_prog_CC="gcc"
665 break
666 fi
667 done
668 IFS="$ac_save_ifs"
669fi
670fi
671CC="$ac_cv_prog_CC"
672if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
674else
675 echo "$ac_t""no" 1>&6
676fi
677
678if test -z "$CC"; then
679 # Extract the first word of "cc", so it can be a program name with args.
680set dummy cc; ac_word=$2
681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 682echo "configure:683: checking for $ac_word" >&5
784492b5
ILT
683if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
685else
686 if test -n "$CC"; then
687 ac_cv_prog_CC="$CC" # Let the user override the test.
688else
689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
690 ac_prog_rejected=no
691 for ac_dir in $PATH; do
692 test -z "$ac_dir" && ac_dir=.
693 if test -f $ac_dir/$ac_word; then
694 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
695 ac_prog_rejected=yes
696 continue
697 fi
698 ac_cv_prog_CC="cc"
699 break
700 fi
701 done
702 IFS="$ac_save_ifs"
703if test $ac_prog_rejected = yes; then
704 # We found a bogon in the path, so make sure we never use it.
705 set dummy $ac_cv_prog_CC
706 shift
707 if test $# -gt 0; then
708 # We chose a different compiler from the bogus one.
709 # However, it has the same basename, so the bogon will be chosen
710 # first if we set CC to just the basename; use the full file name.
711 shift
712 set dummy "$ac_dir/$ac_word" "$@"
713 shift
714 ac_cv_prog_CC="$@"
715 fi
716fi
717fi
718fi
719CC="$ac_cv_prog_CC"
720if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
722else
723 echo "$ac_t""no" 1>&6
724fi
725
726 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
727fi
728
729echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
69ad8cac 730echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784492b5
ILT
731
732ac_ext=c
733# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734ac_cpp='$CPP $CPPFLAGS'
735ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737cross_compiling=$ac_cv_prog_cc_cross
738
739cat > conftest.$ac_ext <<EOF
69ad8cac 740#line 741 "configure"
784492b5
ILT
741#include "confdefs.h"
742main(){return(0);}
743EOF
69ad8cac 744if { (eval echo configure:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
745 ac_cv_prog_cc_works=yes
746 # If we can't run a trivial program, we are probably using a cross compiler.
747 if (./conftest; exit) 2>/dev/null; then
748 ac_cv_prog_cc_cross=no
749 else
750 ac_cv_prog_cc_cross=yes
751 fi
752else
753 echo "configure: failed program was:" >&5
754 cat conftest.$ac_ext >&5
755 ac_cv_prog_cc_works=no
756fi
757rm -fr conftest*
758
759echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
760if test $ac_cv_prog_cc_works = no; then
761 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762fi
763echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69ad8cac 764echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784492b5
ILT
765echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
766cross_compiling=$ac_cv_prog_cc_cross
767
768echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
69ad8cac 769echo "configure:770: checking whether we are using GNU C" >&5
784492b5
ILT
770if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
772else
773 cat > conftest.c <<EOF
774#ifdef __GNUC__
775 yes;
776#endif
777EOF
69ad8cac 778if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784492b5
ILT
779 ac_cv_prog_gcc=yes
780else
781 ac_cv_prog_gcc=no
782fi
783fi
784
785echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786
787if test $ac_cv_prog_gcc = yes; then
788 GCC=yes
789 ac_test_CFLAGS="${CFLAGS+set}"
790 ac_save_CFLAGS="$CFLAGS"
791 CFLAGS=
792 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
69ad8cac 793echo "configure:794: checking whether ${CC-cc} accepts -g" >&5
784492b5
ILT
794if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796else
797 echo 'void f(){}' > conftest.c
798if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
799 ac_cv_prog_cc_g=yes
800else
801 ac_cv_prog_cc_g=no
802fi
803rm -f conftest*
804
805fi
806
807echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
808 if test "$ac_test_CFLAGS" = set; then
809 CFLAGS="$ac_save_CFLAGS"
810 elif test $ac_cv_prog_cc_g = yes; then
811 CFLAGS="-g -O2"
812 else
813 CFLAGS="-O2"
814 fi
815else
816 GCC=
817 test "${CFLAGS+set}" = set || CFLAGS="-g"
818fi
819
820echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
69ad8cac 821echo "configure:822: checking for POSIXized ISC" >&5
784492b5
ILT
822if test -d /etc/conf/kconfig.d &&
823 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
824then
825 echo "$ac_t""yes" 1>&6
826 ISC=yes # If later tests want to check for ISC.
827 cat >> confdefs.h <<\EOF
828#define _POSIX_SOURCE 1
829EOF
830
831 if test "$GCC" = yes; then
832 CC="$CC -posix"
833 else
834 CC="$CC -Xp"
835 fi
836else
837 echo "$ac_t""no" 1>&6
838 ISC=
839fi
840
1daed53f 841
ef3c03a4
ILT
842# We currently only use the version number for the name of any shared
843# library. For user convenience, we always use the same version
844# number that BFD is using.
845BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
846
1daed53f
ILT
847# Find a good install program. We prefer a C program (faster),
848# so one script is as good as another. But avoid the broken or
849# incompatible versions:
850# SysV /etc/install, /usr/sbin/install
851# SunOS /usr/etc/install
852# IRIX /sbin/install
853# AIX /bin/install
cd66558c 854# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1daed53f
ILT
855# AFS /usr/afsws/bin/install, which mishandles nonexistent args
856# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
857# ./install, which can be erroneously created by make from ./install.sh.
858echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
69ad8cac 859echo "configure:860: checking for a BSD compatible install" >&5
1daed53f
ILT
860if test -z "$INSTALL"; then
861if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863else
864 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
865 for ac_dir in $PATH; do
866 # Account for people who put trailing slashes in PATH elements.
867 case "$ac_dir/" in
868 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 *)
870 # OSF1 and SCO ODT 3.0 have their own names for install.
cd66558c
NC
871 # Don't use installbsd from OSF since it installs stuff as root
872 # by default.
873 for ac_prog in ginstall scoinst install; do
1daed53f
ILT
874 if test -f $ac_dir/$ac_prog; then
875 if test $ac_prog = install &&
876 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
877 # AIX install. It has an incompatible calling convention.
1daed53f
ILT
878 :
879 else
880 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 break 2
882 fi
883 fi
884 done
885 ;;
886 esac
887 done
888 IFS="$ac_save_IFS"
889
890fi
891 if test "${ac_cv_path_install+set}" = set; then
892 INSTALL="$ac_cv_path_install"
893 else
894 # As a last resort, use the slow shell script. We don't cache a
895 # path for INSTALL within a source directory, because that will
896 # break other packages using the cache if that directory is
897 # removed, or if the path is relative.
898 INSTALL="$ac_install_sh"
899 fi
900fi
901echo "$ac_t""$INSTALL" 1>&6
902
903# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
904# It thinks the first close brace ends the variable substitution.
905test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
906
907test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
908
909
910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
911
1daed53f 912echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
69ad8cac 913echo "configure:914: checking whether build environment is sane" >&5
1daed53f
ILT
914# Just in case
915sleep 1
916echo timestamp > conftestfile
917# Do `set' in a subshell so we don't clobber the current shell's
918# arguments. Must try -L first in case configure is actually a
919# symlink; some systems play weird games with the mod time of symlinks
920# (eg FreeBSD returns the mod time of the symlink's containing
921# directory).
922if (
923 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
bd4a69c3 924 if test "$*" = "X"; then
1daed53f
ILT
925 # -L didn't work.
926 set X `ls -t $srcdir/configure conftestfile`
927 fi
bd4a69c3
ILT
928 if test "$*" != "X $srcdir/configure conftestfile" \
929 && test "$*" != "X conftestfile $srcdir/configure"; then
930
931 # If neither matched, then we have a broken ls. This can happen
932 # if, for instance, CONFIG_SHELL is bash and it inherits a
933 # broken ls alias from the environment. This has actually
934 # happened. Such a system could not be considered "sane".
935 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
936alias in your environment" 1>&2; exit 1; }
937 fi
938
1daed53f
ILT
939 test "$2" = conftestfile
940 )
941then
942 # Ok.
943 :
944else
945 { echo "configure: error: newly created file is older than distributed files!
946Check your system clock" 1>&2; exit 1; }
947fi
948rm -f conftest*
949echo "$ac_t""yes" 1>&6
950if test "$program_transform_name" = s,x,x,; then
951 program_transform_name=
952else
953 # Double any \ or $. echo might interpret backslashes.
954 cat <<\EOF_SED > conftestsed
955s,\\,\\\\,g; s,\$,$$,g
956EOF_SED
957 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
958 rm -f conftestsed
959fi
960test "$program_prefix" != NONE &&
961 program_transform_name="s,^,${program_prefix},; $program_transform_name"
962# Use a double $ so make ignores it.
963test "$program_suffix" != NONE &&
964 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
965
966# sed with no file args requires a program.
967test "$program_transform_name" = "" && program_transform_name="s,x,x,"
968
bd4a69c3 969echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
69ad8cac 970echo "configure:971: checking whether ${MAKE-make} sets \${MAKE}" >&5
bd4a69c3
ILT
971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
972if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
974else
975 cat > conftestmake <<\EOF
976all:
977 @echo 'ac_maketemp="${MAKE}"'
978EOF
979# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
980eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
981if test -n "$ac_maketemp"; then
982 eval ac_cv_prog_make_${ac_make}_set=yes
983else
984 eval ac_cv_prog_make_${ac_make}_set=no
985fi
986rm -f conftestmake
987fi
988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
989 echo "$ac_t""yes" 1>&6
990 SET_MAKE=
991else
992 echo "$ac_t""no" 1>&6
993 SET_MAKE="MAKE=${MAKE-make}"
994fi
995
996
997PACKAGE=opcodes
998
999VERSION=${BFD_VERSION}
1000
1001if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1002 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1003fi
1004cat >> confdefs.h <<EOF
1005#define PACKAGE "$PACKAGE"
1006EOF
1007
1008cat >> confdefs.h <<EOF
1009#define VERSION "$VERSION"
1010EOF
1011
1012
1013
1daed53f
ILT
1014missing_dir=`cd $ac_aux_dir && pwd`
1015echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
69ad8cac 1016echo "configure:1017: checking for working aclocal" >&5
1daed53f
ILT
1017# Run test in a subshell; some versions of sh will print an error if
1018# an executable is not found, even if stderr is redirected.
1019# Redirect stdin to placate older versions of autoconf. Sigh.
1020if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1021 ACLOCAL=aclocal
1022 echo "$ac_t""found" 1>&6
1023else
1024 ACLOCAL="$missing_dir/missing aclocal"
1025 echo "$ac_t""missing" 1>&6
1026fi
1027
1028echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
69ad8cac 1029echo "configure:1030: checking for working autoconf" >&5
1daed53f
ILT
1030# Run test in a subshell; some versions of sh will print an error if
1031# an executable is not found, even if stderr is redirected.
1032# Redirect stdin to placate older versions of autoconf. Sigh.
1033if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1034 AUTOCONF=autoconf
1035 echo "$ac_t""found" 1>&6
1036else
1037 AUTOCONF="$missing_dir/missing autoconf"
1038 echo "$ac_t""missing" 1>&6
1039fi
1040
1041echo $ac_n "checking for working automake""... $ac_c" 1>&6
69ad8cac 1042echo "configure:1043: checking for working automake" >&5
1daed53f
ILT
1043# Run test in a subshell; some versions of sh will print an error if
1044# an executable is not found, even if stderr is redirected.
1045# Redirect stdin to placate older versions of autoconf. Sigh.
1046if (automake --version) < /dev/null > /dev/null 2>&1; then
1047 AUTOMAKE=automake
1048 echo "$ac_t""found" 1>&6
1049else
1050 AUTOMAKE="$missing_dir/missing automake"
1051 echo "$ac_t""missing" 1>&6
1052fi
1053
1054echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
69ad8cac 1055echo "configure:1056: checking for working autoheader" >&5
1daed53f
ILT
1056# Run test in a subshell; some versions of sh will print an error if
1057# an executable is not found, even if stderr is redirected.
1058# Redirect stdin to placate older versions of autoconf. Sigh.
1059if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1060 AUTOHEADER=autoheader
1061 echo "$ac_t""found" 1>&6
1062else
1063 AUTOHEADER="$missing_dir/missing autoheader"
1064 echo "$ac_t""missing" 1>&6
1065fi
1066
1067echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
69ad8cac 1068echo "configure:1069: checking for working makeinfo" >&5
1daed53f
ILT
1069# Run test in a subshell; some versions of sh will print an error if
1070# an executable is not found, even if stderr is redirected.
1071# Redirect stdin to placate older versions of autoconf. Sigh.
1072if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1073 MAKEINFO=makeinfo
1074 echo "$ac_t""found" 1>&6
1075else
1076 MAKEINFO="$missing_dir/missing makeinfo"
1077 echo "$ac_t""missing" 1>&6
1078fi
1079
1daed53f
ILT
1080
1081
cd66558c
NC
1082if test $host != $build; then
1083 ac_tool_prefix=${host_alias}-
1084else
1085 ac_tool_prefix=
1086fi
1087
1088# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1089set dummy ${ac_tool_prefix}ar; ac_word=$2
1090echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1091echo "configure:1092: checking for $ac_word" >&5
cd66558c
NC
1092if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094else
1095 if test -n "$AR"; then
1096 ac_cv_prog_AR="$AR" # Let the user override the test.
1097else
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1099 for ac_dir in $PATH; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_AR="${ac_tool_prefix}ar"
1103 break
1104 fi
1105 done
1106 IFS="$ac_save_ifs"
1107 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1108fi
1109fi
1110AR="$ac_cv_prog_AR"
1111if test -n "$AR"; then
1112 echo "$ac_t""$AR" 1>&6
1113else
1114 echo "$ac_t""no" 1>&6
1115fi
1116
1117
1118
1119# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1120set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1121echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1122echo "configure:1123: checking for $ac_word" >&5
cd66558c
NC
1123if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1125else
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1128else
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1130 for ac_dir in $PATH; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1134 break
1135 fi
1136 done
1137 IFS="$ac_save_ifs"
1138fi
1139fi
1140RANLIB="$ac_cv_prog_RANLIB"
1141if test -n "$RANLIB"; then
1142 echo "$ac_t""$RANLIB" 1>&6
1143else
1144 echo "$ac_t""no" 1>&6
1145fi
1146
1147
1148if test -z "$ac_cv_prog_RANLIB"; then
1149if test -n "$ac_tool_prefix"; then
1150 # Extract the first word of "ranlib", so it can be a program name with args.
1151set dummy ranlib; ac_word=$2
1152echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1153echo "configure:1154: checking for $ac_word" >&5
cd66558c
NC
1154if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156else
1157 if test -n "$RANLIB"; then
1158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1159else
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1161 for ac_dir in $PATH; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB="ranlib"
1165 break
1166 fi
1167 done
1168 IFS="$ac_save_ifs"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1170fi
1171fi
1172RANLIB="$ac_cv_prog_RANLIB"
1173if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1175else
1176 echo "$ac_t""no" 1>&6
1177fi
1178
1179else
1180 RANLIB=":"
1181fi
1182fi
1183
1184
bd4a69c3
ILT
1185# Check whether --enable-shared or --disable-shared was given.
1186if test "${enable_shared+set}" = set; then
1187 enableval="$enable_shared"
1188 p=${PACKAGE-default}
1189case "$enableval" in
1190yes) enable_shared=yes ;;
1191no) enable_shared=no ;;
1192*)
1193 enable_shared=no
1194 # Look at the argument we got. We use all the common list separators.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1196 for pkg in $enableval; do
1197 if test "X$pkg" = "X$p"; then
1198 enable_shared=yes
1199 fi
1200 done
1201 IFS="$ac_save_ifs"
1202 ;;
1203esac
1204else
1205 enable_shared=no
1206fi
1207
1208
1209# Check whether --enable-static or --disable-static was given.
1210if test "${enable_static+set}" = set; then
1211 enableval="$enable_static"
1212 p=${PACKAGE-default}
1213case "$enableval" in
1214yes) enable_static=yes ;;
1215no) enable_static=no ;;
1216*)
1217 enable_static=no
1218 # Look at the argument we got. We use all the common list separators.
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1220 for pkg in $enableval; do
1221 if test "X$pkg" = "X$p"; then
1222 enable_static=yes
1223 fi
1224 done
1225 IFS="$ac_save_ifs"
1226 ;;
1227esac
1228else
1229 enable_static=yes
1230fi
788e3f91
ILT
1231
1232# Extract the first word of "ranlib", so it can be a program name with args.
1233set dummy ranlib; ac_word=$2
1234echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1235echo "configure:1236: checking for $ac_word" >&5
788e3f91
ILT
1236if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239 if test -n "$RANLIB"; then
1240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1241else
1242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1243 for ac_dir in $PATH; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_RANLIB="ranlib"
1247 break
1248 fi
1249 done
1250 IFS="$ac_save_ifs"
1251 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1252fi
1253fi
1254RANLIB="$ac_cv_prog_RANLIB"
1255if test -n "$RANLIB"; then
1256 echo "$ac_t""$RANLIB" 1>&6
1257else
1258 echo "$ac_t""no" 1>&6
1259fi
1260
784492b5
ILT
1261# Check whether --with-gnu-ld or --without-gnu-ld was given.
1262if test "${with_gnu_ld+set}" = set; then
1263 withval="$with_gnu_ld"
1264 test "$withval" = no || with_gnu_ld=yes
1daed53f 1265else
784492b5
ILT
1266 with_gnu_ld=no
1267fi
1268
1269
1270ac_prog=ld
1271if test "$ac_cv_prog_gcc" = yes; then
1272 # Check if gcc -print-prog-name=ld gives a path.
1273 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
69ad8cac 1274echo "configure:1275: checking for ld used by GCC" >&5
784492b5
ILT
1275 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1276 case "$ac_prog" in
1277 # Accept absolute paths.
f113ea6b 1278 /* | [A-Za-z]:\\*)
784492b5
ILT
1279 test -z "$LD" && LD="$ac_prog"
1280 ;;
1281 "")
1282 # If it fails, then pretend we aren't using GCC.
1283 ac_prog=ld
1284 ;;
1285 *)
1286 # If it is relative, then search for the first ld in PATH.
1287 with_gnu_ld=unknown
1288 ;;
1289 esac
1290elif test "$with_gnu_ld" = yes; then
1291 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
69ad8cac 1292echo "configure:1293: checking for GNU ld" >&5
784492b5
ILT
1293else
1294 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
69ad8cac 1295echo "configure:1296: checking for non-GNU ld" >&5
784492b5
ILT
1296fi
1297if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1daed53f 1299else
784492b5 1300 if test -z "$LD"; then
1daed53f
ILT
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1302 for ac_dir in $PATH; do
1303 test -z "$ac_dir" && ac_dir=.
784492b5
ILT
1304 if test -f "$ac_dir/$ac_prog"; then
1305 ac_cv_path_LD="$ac_dir/$ac_prog"
1306 # Check to see if the program is GNU ld. I'd rather use --version,
1307 # but apparently some GNU ld's only accept -v.
1308 # Break only if it was the GNU/non-GNU ld that we prefer.
1309 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1310 test "$with_gnu_ld" != no && break
1311 else
1312 test "$with_gnu_ld" != yes && break
1313 fi
1daed53f
ILT
1314 fi
1315 done
1316 IFS="$ac_save_ifs"
784492b5
ILT
1317else
1318 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1daed53f
ILT
1319fi
1320fi
784492b5
ILT
1321
1322LD="$ac_cv_path_LD"
1323if test -n "$LD"; then
1324 echo "$ac_t""$LD" 1>&6
1daed53f
ILT
1325else
1326 echo "$ac_t""no" 1>&6
1327fi
784492b5 1328test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1daed53f 1329
788e3f91 1330echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
69ad8cac 1331echo "configure:1332: checking if the linker ($LD) is GNU ld" >&5
1daed53f
ILT
1332if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334else
1335 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
788e3f91 1336if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1daed53f
ILT
1337 ac_cv_prog_gnu_ld=yes
1338else
1339 ac_cv_prog_gnu_ld=no
1340fi
1341fi
1342
1343echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1344
1345
788e3f91 1346echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
69ad8cac 1347echo "configure:1348: checking for BSD-compatible nm" >&5
788e3f91
ILT
1348if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350else
69ad8cac
ILT
1351 if test -n "$NM"; then
1352 # Let the user override the test.
1353 ac_cv_path_NM="$NM"
1354else
788e3f91
ILT
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1356 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
bd4a69c3 1357 test -z "$ac_dir" && ac_dir=.
788e3f91
ILT
1358 if test -f $ac_dir/nm; then
1359 # Check to see if the nm accepts a BSD-compat flag.
bd4a69c3 1360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
788e3f91 1361 # nm: unknown option "B" ignored
bd4a69c3 1362 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
788e3f91 1363 ac_cv_path_NM="$ac_dir/nm -B"
bd4a69c3 1364 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
788e3f91
ILT
1365 ac_cv_path_NM="$ac_dir/nm -p"
1366 else
1367 ac_cv_path_NM="$ac_dir/nm"
1368 fi
1369 break
1370 fi
1371 done
1372 IFS="$ac_save_ifs"
1373 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
f113ea6b 1374fi
788e3f91
ILT
1375fi
1376
1377NM="$ac_cv_path_NM"
1378echo "$ac_t""$NM" 1>&6
1379
1380
1daed53f 1381echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
69ad8cac 1382echo "configure:1383: checking whether ln -s works" >&5
1daed53f
ILT
1383if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385else
1386 rm -f conftestdata
1387if ln -s X conftestdata 2>/dev/null
1388then
1389 rm -f conftestdata
1390 ac_cv_prog_LN_S="ln -s"
1391else
1392 ac_cv_prog_LN_S=ln
1393fi
1394fi
1395LN_S="$ac_cv_prog_LN_S"
1396if test "$ac_cv_prog_LN_S" = "ln -s"; then
1397 echo "$ac_t""yes" 1>&6
1398else
1399 echo "$ac_t""no" 1>&6
1400fi
1401
1daed53f 1402# Always use our own libtool.
bfc10abe 1403LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1daed53f 1404
bd4a69c3
ILT
1405# Check for any special flags to pass to ltconfig.
1406libtool_flags=
1407test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1408test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1daed53f
ILT
1409test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1410test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1411test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1412
1413# Some flags need to be propagated to the compiler or linker for good
1414# libtool support.
1415case "$host" in
bd4a69c3 1416*-*-irix6*)
ef3c03a4 1417 # Find out which ABI we are using.
69ad8cac
ILT
1418 echo '#line 1419 "configure"' > conftest.$ac_ext
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ef3c03a4
ILT
1420 case "`/usr/bin/file conftest.o`" in
1421 *32-bit*)
1422 LD="${LD-ld} -32"
788e3f91 1423 ;;
ef3c03a4
ILT
1424 *N32*)
1425 LD="${LD-ld} -n32"
1426 ;;
1427 *64-bit*)
1428 LD="${LD-ld} -64"
788e3f91
ILT
1429 ;;
1430 esac
ef3c03a4
ILT
1431 fi
1432 rm -rf conftest*
1daed53f
ILT
1433 ;;
1434
1435*-*-sco3.2v5*)
1436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1437 CFLAGS="$CFLAGS -belf"
1438 ;;
f113ea6b
NC
1439
1440*-*-cygwin32*)
1441 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1442set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1443echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1444echo "configure:1445: checking for $ac_word" >&5
f113ea6b
NC
1445if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1447else
1448 if test -n "$DLLTOOL"; then
1449 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1450else
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1452 for ac_dir in $PATH; do
1453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1456 break
1457 fi
1458 done
1459 IFS="$ac_save_ifs"
1460fi
1461fi
1462DLLTOOL="$ac_cv_prog_DLLTOOL"
1463if test -n "$DLLTOOL"; then
1464 echo "$ac_t""$DLLTOOL" 1>&6
1465else
1466 echo "$ac_t""no" 1>&6
1467fi
1468
1469
1470if test -z "$ac_cv_prog_DLLTOOL"; then
1471if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "dlltool", so it can be a program name with args.
1473set dummy dlltool; ac_word=$2
1474echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1475echo "configure:1476: checking for $ac_word" >&5
f113ea6b
NC
1476if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478else
1479 if test -n "$DLLTOOL"; then
1480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1481else
1482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1483 for ac_dir in $PATH; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_prog_DLLTOOL="dlltool"
1487 break
1488 fi
1489 done
1490 IFS="$ac_save_ifs"
1491 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1492fi
1493fi
1494DLLTOOL="$ac_cv_prog_DLLTOOL"
1495if test -n "$DLLTOOL"; then
1496 echo "$ac_t""$DLLTOOL" 1>&6
1497else
1498 echo "$ac_t""no" 1>&6
1499fi
1500
1501else
1502 DLLTOOL="false"
1503fi
1504fi
1505
1506# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1507set dummy ${ac_tool_prefix}as; ac_word=$2
1508echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1509echo "configure:1510: checking for $ac_word" >&5
f113ea6b
NC
1510if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512else
1513 if test -n "$AS"; then
1514 ac_cv_prog_AS="$AS" # Let the user override the test.
1515else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1517 for ac_dir in $PATH; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_AS="${ac_tool_prefix}as"
1521 break
1522 fi
1523 done
1524 IFS="$ac_save_ifs"
1525fi
1526fi
1527AS="$ac_cv_prog_AS"
1528if test -n "$AS"; then
1529 echo "$ac_t""$AS" 1>&6
1530else
1531 echo "$ac_t""no" 1>&6
1532fi
1533
1534
1535if test -z "$ac_cv_prog_AS"; then
1536if test -n "$ac_tool_prefix"; then
1537 # Extract the first word of "as", so it can be a program name with args.
1538set dummy as; ac_word=$2
1539echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1540echo "configure:1541: checking for $ac_word" >&5
f113ea6b
NC
1541if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543else
1544 if test -n "$AS"; then
1545 ac_cv_prog_AS="$AS" # Let the user override the test.
1546else
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1548 for ac_dir in $PATH; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_prog_AS="as"
1552 break
1553 fi
1554 done
1555 IFS="$ac_save_ifs"
1556 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1557fi
1558fi
1559AS="$ac_cv_prog_AS"
1560if test -n "$AS"; then
1561 echo "$ac_t""$AS" 1>&6
1562else
1563 echo "$ac_t""no" 1>&6
1564fi
1565
1566else
1567 AS="false"
1568fi
1569fi
1570
1571
1572 ;;
1573
784492b5
ILT
1574esac
1575
1576# Actually configure libtool. ac_aux_dir is where install-sh is found.
1577CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1578LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
f113ea6b 1579DLLTOOL="$DLLTOOL" AS="$AS" \
69ad8cac 1580${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
784492b5
ILT
1581$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1582|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1583
69ad8cac
ILT
1584# Redirect the config.log output again, so that the ltconfig log is not
1585# clobbered by the next message.
1586exec 5>>./config.log
1587
784492b5
ILT
1588
1589# Check whether --enable-targets or --disable-targets was given.
1590if test "${enable_targets+set}" = set; then
1591 enableval="$enable_targets"
1592 case "${enableval}" in
1593 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1594 ;;
1595 no) enable_targets= ;;
1596 *) enable_targets=$enableval ;;
1597esac
1598fi
1599# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1600if test "${enable_commonbfdlib+set}" = set; then
1601 enableval="$enable_commonbfdlib"
1602 case "${enableval}" in
1603 yes) commonbfdlib=true ;;
1604 no) commonbfdlib=false ;;
1605 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1606esac
1607fi
1608
1609
1610
1611
1612
1613if test -z "$target" ; then
1614 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1615fi
1616if test "$program_transform_name" = s,x,x,; then
1617 program_transform_name=
1618else
1619 # Double any \ or $. echo might interpret backslashes.
46bcd2ec
ILT
1620 cat <<\EOF_SED > conftestsed
1621s,\\,\\\\,g; s,\$,$$,g
1622EOF_SED
1623 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1624 rm -f conftestsed
1625fi
1626test "$program_prefix" != NONE &&
1627 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1628# Use a double $ so make ignores it.
1629test "$program_suffix" != NONE &&
1630 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1631
1632# sed with no file args requires a program.
1633test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1634
824155e8 1635
784492b5 1636echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
69ad8cac 1637echo "configure:1638: checking whether to enable maintainer-specific portions of Makefiles" >&5
784492b5
ILT
1638 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1639if test "${enable_maintainer_mode+set}" = set; then
1640 enableval="$enable_maintainer_mode"
1641 USE_MAINTAINER_MODE=$enableval
1642else
1643 USE_MAINTAINER_MODE=no
072aa625 1644fi
784492b5
ILT
1645
1646 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1647 if test $USE_MAINTAINER_MODE = yes; then
1648 MAINT=
1649 else
1650 MAINT='#M#'
1651 fi
1652
1653
1654echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
69ad8cac 1655echo "configure:1656: checking for Cygwin32 environment" >&5
784492b5 1656if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
072aa625 1657 echo $ac_n "(cached) $ac_c" 1>&6
1daed53f 1658else
072aa625 1659 cat > conftest.$ac_ext <<EOF
69ad8cac 1660#line 1661 "configure"
072aa625 1661#include "confdefs.h"
784492b5
ILT
1662
1663int main() {
1664return __CYGWIN32__;
1665; return 0; }
072aa625 1666EOF
69ad8cac 1667if { (eval echo configure:1668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
072aa625 1668 rm -rf conftest*
784492b5 1669 am_cv_cygwin32=yes
072aa625 1670else
072aa625
NC
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 rm -rf conftest*
784492b5 1674 am_cv_cygwin32=no
072aa625
NC
1675fi
1676rm -f conftest*
072aa625 1677rm -f conftest*
072aa625 1678fi
1daed53f 1679
784492b5
ILT
1680echo "$ac_t""$am_cv_cygwin32" 1>&6
1681CYGWIN32=
1682test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1683echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
69ad8cac 1684echo "configure:1685: checking for Mingw32 environment" >&5
784492b5 1685if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1daed53f
ILT
1686 echo $ac_n "(cached) $ac_c" 1>&6
1687else
1688 cat > conftest.$ac_ext <<EOF
69ad8cac 1689#line 1690 "configure"
1daed53f 1690#include "confdefs.h"
784492b5
ILT
1691
1692int main() {
1693return __MINGW32__;
1694; return 0; }
1daed53f 1695EOF
69ad8cac 1696if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1daed53f 1697 rm -rf conftest*
784492b5 1698 am_cv_mingw32=yes
1daed53f
ILT
1699else
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
784492b5 1703 am_cv_mingw32=no
e0bf1022 1704fi
1daed53f
ILT
1705rm -f conftest*
1706rm -f conftest*
1707fi
1708
784492b5
ILT
1709echo "$ac_t""$am_cv_mingw32" 1>&6
1710MINGW32=
1711test "$am_cv_mingw32" = yes && MINGW32=yes
072aa625 1712
072aa625 1713
784492b5 1714echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
69ad8cac 1715echo "configure:1716: checking for executable suffix" >&5
784492b5
ILT
1716if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
072aa625 1718else
784492b5
ILT
1719 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1720am_cv_exeext=.exe
072aa625 1721else
784492b5
ILT
1722cat > am_c_test.c << 'EOF'
1723int main() {
1724/* Nothing needed here */
1725}
1726EOF
1727${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1728am_cv_exeext=
1729for file in am_c_test.*; do
1730 case $file in
1731 *.c) ;;
1732 *.o) ;;
1733 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
1734 esac
1735done
1736rm -f am_c_test*
072aa625
NC
1737fi
1738
784492b5 1739test x"${am_cv_exeext}" = x && am_cv_exeext=no
072aa625 1740fi
784492b5
ILT
1741EXEEXT=""
1742test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1743echo "$ac_t""${am_cv_exeext}" 1>&6
072aa625 1744
072aa625 1745
784492b5 1746# host-specific stuff:
072aa625 1747
784492b5
ILT
1748# Extract the first word of "gcc", so it can be a program name with args.
1749set dummy gcc; ac_word=$2
1750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1751echo "configure:1752: checking for $ac_word" >&5
784492b5 1752if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
af36ce35
ILT
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754else
784492b5
ILT
1755 if test -n "$CC"; then
1756 ac_cv_prog_CC="$CC" # Let the user override the test.
af36ce35 1757else
784492b5
ILT
1758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1759 for ac_dir in $PATH; do
1760 test -z "$ac_dir" && ac_dir=.
1761 if test -f $ac_dir/$ac_word; then
1762 ac_cv_prog_CC="gcc"
1763 break
1764 fi
1765 done
1766 IFS="$ac_save_ifs"
af36ce35 1767fi
af36ce35 1768fi
784492b5
ILT
1769CC="$ac_cv_prog_CC"
1770if test -n "$CC"; then
1771 echo "$ac_t""$CC" 1>&6
1772else
1773 echo "$ac_t""no" 1>&6
072aa625 1774fi
2b0c643b 1775
784492b5
ILT
1776if test -z "$CC"; then
1777 # Extract the first word of "cc", so it can be a program name with args.
1778set dummy cc; ac_word=$2
1779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 1780echo "configure:1781: checking for $ac_word" >&5
784492b5 1781if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1daed53f
ILT
1782 echo $ac_n "(cached) $ac_c" 1>&6
1783else
784492b5
ILT
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786else
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1788 ac_prog_rejected=no
1789 for ac_dir in $PATH; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/$ac_word; then
1792 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1795 fi
1796 ac_cv_prog_CC="cc"
1797 break
1798 fi
1799 done
1800 IFS="$ac_save_ifs"
1801if test $ac_prog_rejected = yes; then
1802 # We found a bogon in the path, so make sure we never use it.
1803 set dummy $ac_cv_prog_CC
1804 shift
1805 if test $# -gt 0; then
1806 # We chose a different compiler from the bogus one.
1807 # However, it has the same basename, so the bogon will be chosen
1808 # first if we set CC to just the basename; use the full file name.
1809 shift
1810 set dummy "$ac_dir/$ac_word" "$@"
1811 shift
1812 ac_cv_prog_CC="$@"
1813 fi
1814fi
1815fi
1816fi
1817CC="$ac_cv_prog_CC"
1818if test -n "$CC"; then
1819 echo "$ac_t""$CC" 1>&6
1820else
1821 echo "$ac_t""no" 1>&6
1822fi
072aa625 1823
784492b5
ILT
1824 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1825fi
1826
1827echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
69ad8cac 1828echo "configure:1829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784492b5
ILT
1829
1830ac_ext=c
1831# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1832ac_cpp='$CPP $CPPFLAGS'
1833ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1834ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1835cross_compiling=$ac_cv_prog_cc_cross
1836
1837cat > conftest.$ac_ext <<EOF
69ad8cac 1838#line 1839 "configure"
784492b5
ILT
1839#include "confdefs.h"
1840main(){return(0);}
1daed53f 1841EOF
69ad8cac 1842if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
1843 ac_cv_prog_cc_works=yes
1844 # If we can't run a trivial program, we are probably using a cross compiler.
1845 if (./conftest; exit) 2>/dev/null; then
1846 ac_cv_prog_cc_cross=no
1847 else
1848 ac_cv_prog_cc_cross=yes
1849 fi
072aa625
NC
1850else
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
784492b5 1853 ac_cv_prog_cc_works=no
1daed53f 1854fi
784492b5 1855rm -fr conftest*
1daed53f 1856
784492b5
ILT
1857echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1858if test $ac_cv_prog_cc_works = no; then
1859 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1daed53f 1860fi
784492b5 1861echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69ad8cac 1862echo "configure:1863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784492b5
ILT
1863echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1864cross_compiling=$ac_cv_prog_cc_cross
1daed53f 1865
784492b5 1866echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
69ad8cac 1867echo "configure:1868: checking whether we are using GNU C" >&5
784492b5 1868if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
00103dfa
ILT
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870else
784492b5
ILT
1871 cat > conftest.c <<EOF
1872#ifdef __GNUC__
1873 yes;
072aa625
NC
1874#endif
1875EOF
69ad8cac 1876if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784492b5 1877 ac_cv_prog_gcc=yes
00103dfa 1878else
784492b5 1879 ac_cv_prog_gcc=no
00103dfa
ILT
1880fi
1881fi
072aa625 1882
784492b5 1883echo "$ac_t""$ac_cv_prog_gcc" 1>&6
00103dfa 1884
784492b5
ILT
1885if test $ac_cv_prog_gcc = yes; then
1886 GCC=yes
1887 ac_test_CFLAGS="${CFLAGS+set}"
1888 ac_save_CFLAGS="$CFLAGS"
1889 CFLAGS=
1890 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
69ad8cac 1891echo "configure:1892: checking whether ${CC-cc} accepts -g" >&5
784492b5 1892if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7919b9ec
ILT
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894else
784492b5
ILT
1895 echo 'void f(){}' > conftest.c
1896if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1897 ac_cv_prog_cc_g=yes
7919b9ec 1898else
784492b5 1899 ac_cv_prog_cc_g=no
7919b9ec 1900fi
072aa625
NC
1901rm -f conftest*
1902
7919b9ec 1903fi
072aa625 1904
784492b5
ILT
1905echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1906 if test "$ac_test_CFLAGS" = set; then
1907 CFLAGS="$ac_save_CFLAGS"
1908 elif test $ac_cv_prog_cc_g = yes; then
1909 CFLAGS="-g -O2"
1910 else
1911 CFLAGS="-O2"
1912 fi
1913else
1914 GCC=
1915 test "${CFLAGS+set}" = set || CFLAGS="-g"
7919b9ec 1916fi
072aa625 1917
784492b5
ILT
1918
1919ALL_LINGUAS=
1920echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
69ad8cac 1921echo "configure:1922: checking how to run the C preprocessor" >&5
784492b5
ILT
1922# On Suns, sometimes $CPP names a directory.
1923if test -n "$CPP" && test -d "$CPP"; then
1924 CPP=
1925fi
1926if test -z "$CPP"; then
1927if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
072aa625
NC
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929else
784492b5
ILT
1930 # This must be in double quotes, not single quotes, because CPP may get
1931 # substituted into the Makefile and "${CC-cc}" will confuse make.
1932 CPP="${CC-cc} -E"
1933 # On the NeXT, cc -E runs the code through the compiler's parser,
1934 # not just through cpp.
072aa625 1935 cat > conftest.$ac_ext <<EOF
69ad8cac 1936#line 1937 "configure"
072aa625 1937#include "confdefs.h"
784492b5
ILT
1938#include <assert.h>
1939Syntax Error
072aa625 1940EOF
784492b5 1941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 1942{ (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
784492b5
ILT
1943ac_err=`grep -v '^ *+' conftest.out`
1944if test -z "$ac_err"; then
1945 :
1946else
1947 echo "$ac_err" >&5
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
072aa625 1950 rm -rf conftest*
784492b5
ILT
1951 CPP="${CC-cc} -E -traditional-cpp"
1952 cat > conftest.$ac_ext <<EOF
69ad8cac 1953#line 1954 "configure"
784492b5
ILT
1954#include "confdefs.h"
1955#include <assert.h>
1956Syntax Error
1957EOF
1958ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 1959{ (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
784492b5
ILT
1960ac_err=`grep -v '^ *+' conftest.out`
1961if test -z "$ac_err"; then
1962 :
072aa625 1963else
784492b5 1964 echo "$ac_err" >&5
072aa625
NC
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -rf conftest*
784492b5 1968 CPP=/lib/cpp
072aa625
NC
1969fi
1970rm -f conftest*
1971fi
784492b5
ILT
1972rm -f conftest*
1973 ac_cv_prog_CPP="$CPP"
072aa625 1974fi
784492b5
ILT
1975 CPP="$ac_cv_prog_CPP"
1976else
1977 ac_cv_prog_CPP="$CPP"
1978fi
1979echo "$ac_t""$CPP" 1>&6
072aa625 1980
784492b5 1981echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
69ad8cac 1982echo "configure:1983: checking for ANSI C header files" >&5
784492b5 1983if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
072aa625
NC
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985else
1986 cat > conftest.$ac_ext <<EOF
69ad8cac 1987#line 1988 "configure"
072aa625 1988#include "confdefs.h"
784492b5
ILT
1989#include <stdlib.h>
1990#include <stdarg.h>
1991#include <string.h>
1992#include <float.h>
072aa625 1993EOF
784492b5 1994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 1995{ (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
784492b5
ILT
1996ac_err=`grep -v '^ *+' conftest.out`
1997if test -z "$ac_err"; then
072aa625 1998 rm -rf conftest*
784492b5 1999 ac_cv_header_stdc=yes
072aa625 2000else
784492b5 2001 echo "$ac_err" >&5
072aa625
NC
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 rm -rf conftest*
784492b5 2005 ac_cv_header_stdc=no
072aa625
NC
2006fi
2007rm -f conftest*
072aa625 2008
784492b5
ILT
2009if test $ac_cv_header_stdc = yes; then
2010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011cat > conftest.$ac_ext <<EOF
69ad8cac 2012#line 2013 "configure"
784492b5
ILT
2013#include "confdefs.h"
2014#include <string.h>
072aa625 2015EOF
784492b5
ILT
2016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017 egrep "memchr" >/dev/null 2>&1; then
2018 :
2019else
2020 rm -rf conftest*
2021 ac_cv_header_stdc=no
2022fi
2023rm -f conftest*
072aa625
NC
2024
2025fi
2026
784492b5
ILT
2027if test $ac_cv_header_stdc = yes; then
2028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029cat > conftest.$ac_ext <<EOF
69ad8cac 2030#line 2031 "configure"
784492b5
ILT
2031#include "confdefs.h"
2032#include <stdlib.h>
072aa625 2033EOF
784492b5
ILT
2034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035 egrep "free" >/dev/null 2>&1; then
2036 :
2037else
2038 rm -rf conftest*
2039 ac_cv_header_stdc=no
2040fi
2041rm -f conftest*
072aa625 2042
784492b5 2043fi
072aa625 2044
784492b5
ILT
2045if test $ac_cv_header_stdc = yes; then
2046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047if test "$cross_compiling" = yes; then
2048 :
072aa625
NC
2049else
2050 cat > conftest.$ac_ext <<EOF
69ad8cac 2051#line 2052 "configure"
072aa625 2052#include "confdefs.h"
784492b5
ILT
2053#include <ctype.h>
2054#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057int main () { int i; for (i = 0; i < 256; i++)
2058if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2059exit (0); }
072aa625
NC
2060
2061EOF
69ad8cac 2062if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
784492b5
ILT
2063then
2064 :
072aa625 2065else
784492b5
ILT
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 rm -fr conftest*
2069 ac_cv_header_stdc=no
2070fi
2071rm -fr conftest*
072aa625 2072fi
072aa625 2073
784492b5 2074fi
072aa625
NC
2075fi
2076
784492b5
ILT
2077echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078if test $ac_cv_header_stdc = yes; then
2079 cat >> confdefs.h <<\EOF
2080#define STDC_HEADERS 1
2081EOF
2082
2083fi
2084
2085echo $ac_n "checking for working const""... $ac_c" 1>&6
69ad8cac 2086echo "configure:2087: checking for working const" >&5
784492b5 2087if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
072aa625
NC
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089else
2090 cat > conftest.$ac_ext <<EOF
69ad8cac 2091#line 2092 "configure"
072aa625 2092#include "confdefs.h"
072aa625
NC
2093
2094int main() {
2095
784492b5
ILT
2096/* Ultrix mips cc rejects this. */
2097typedef int charset[2]; const charset x;
2098/* SunOS 4.1.1 cc rejects this. */
2099char const *const *ccp;
2100char **p;
2101/* NEC SVR4.0.2 mips cc rejects this. */
2102struct point {int x, y;};
2103static struct point const zero = {0,0};
2104/* AIX XL C 1.02.0.0 rejects this.
2105 It does not let you subtract one const X* pointer from another in an arm
2106 of an if-expression whose if-part is not a constant expression */
2107const char *g = "string";
2108ccp = &g + (g ? g-g : 0);
2109/* HPUX 7.0 cc rejects these. */
2110++ccp;
2111p = (char**) ccp;
2112ccp = (char const *const *) p;
2113{ /* SCO 3.2v4 cc rejects this. */
2114 char *t;
2115 char const *s = 0 ? (char *) 0 : (char const *) 0;
2116
2117 *t++ = 0;
2118}
2119{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2120 int x[] = {25, 17};
2121 const int *foo = &x[0];
2122 ++foo;
2123}
2124{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2125 typedef const int *iptr;
2126 iptr p = 0;
2127 ++p;
2128}
2129{ /* AIX XL C 1.02.0.0 rejects this saying
2130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2131 struct s { int j; const int *ap[3]; };
2132 struct s *b; b->j = 5;
2133}
2134{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2135 const int foo = 10;
2136}
072aa625
NC
2137
2138; return 0; }
2139EOF
69ad8cac 2140if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
072aa625 2141 rm -rf conftest*
784492b5 2142 ac_cv_c_const=yes
072aa625
NC
2143else
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 rm -rf conftest*
784492b5 2147 ac_cv_c_const=no
072aa625
NC
2148fi
2149rm -f conftest*
2150fi
2151
784492b5
ILT
2152echo "$ac_t""$ac_cv_c_const" 1>&6
2153if test $ac_cv_c_const = no; then
2154 cat >> confdefs.h <<\EOF
2155#define const
072aa625
NC
2156EOF
2157
072aa625
NC
2158fi
2159
784492b5 2160echo $ac_n "checking for inline""... $ac_c" 1>&6
69ad8cac 2161echo "configure:2162: checking for inline" >&5
784492b5 2162if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
072aa625
NC
2163 echo $ac_n "(cached) $ac_c" 1>&6
2164else
784492b5
ILT
2165 ac_cv_c_inline=no
2166for ac_kw in inline __inline__ __inline; do
072aa625 2167 cat > conftest.$ac_ext <<EOF
69ad8cac 2168#line 2169 "configure"
072aa625 2169#include "confdefs.h"
784492b5
ILT
2170
2171int main() {
2172} $ac_kw foo() {
2173; return 0; }
072aa625 2174EOF
69ad8cac 2175if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784492b5
ILT
2176 rm -rf conftest*
2177 ac_cv_c_inline=$ac_kw; break
072aa625
NC
2178else
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
072aa625 2181fi
784492b5
ILT
2182rm -f conftest*
2183done
072aa625
NC
2184
2185fi
2186
784492b5
ILT
2187echo "$ac_t""$ac_cv_c_inline" 1>&6
2188case "$ac_cv_c_inline" in
2189 inline | yes) ;;
2190 no) cat >> confdefs.h <<\EOF
2191#define inline
072aa625 2192EOF
784492b5
ILT
2193 ;;
2194 *) cat >> confdefs.h <<EOF
2195#define inline $ac_cv_c_inline
2196EOF
2197 ;;
2198esac
2199
2200echo $ac_n "checking for off_t""... $ac_c" 1>&6
69ad8cac 2201echo "configure:2202: checking for off_t" >&5
784492b5 2202if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
072aa625
NC
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205 cat > conftest.$ac_ext <<EOF
69ad8cac 2206#line 2207 "configure"
072aa625 2207#include "confdefs.h"
784492b5
ILT
2208#include <sys/types.h>
2209#if STDC_HEADERS
2210#include <stdlib.h>
2211#include <stddef.h>
2212#endif
072aa625 2213EOF
784492b5
ILT
2214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
072aa625 2216 rm -rf conftest*
784492b5 2217 ac_cv_type_off_t=yes
072aa625 2218else
072aa625 2219 rm -rf conftest*
784492b5 2220 ac_cv_type_off_t=no
072aa625
NC
2221fi
2222rm -f conftest*
784492b5 2223
072aa625 2224fi
784492b5
ILT
2225echo "$ac_t""$ac_cv_type_off_t" 1>&6
2226if test $ac_cv_type_off_t = no; then
2227 cat >> confdefs.h <<\EOF
2228#define off_t long
072aa625 2229EOF
784492b5 2230
072aa625 2231fi
072aa625 2232
784492b5 2233echo $ac_n "checking for size_t""... $ac_c" 1>&6
69ad8cac 2234echo "configure:2235: checking for size_t" >&5
784492b5 2235if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
072aa625
NC
2236 echo $ac_n "(cached) $ac_c" 1>&6
2237else
2238 cat > conftest.$ac_ext <<EOF
69ad8cac 2239#line 2240 "configure"
072aa625 2240#include "confdefs.h"
784492b5
ILT
2241#include <sys/types.h>
2242#if STDC_HEADERS
2243#include <stdlib.h>
2244#include <stddef.h>
072aa625 2245#endif
072aa625 2246EOF
784492b5
ILT
2247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2248 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
072aa625 2249 rm -rf conftest*
784492b5 2250 ac_cv_type_size_t=yes
072aa625 2251else
072aa625 2252 rm -rf conftest*
784492b5 2253 ac_cv_type_size_t=no
072aa625
NC
2254fi
2255rm -f conftest*
072aa625 2256
784492b5
ILT
2257fi
2258echo "$ac_t""$ac_cv_type_size_t" 1>&6
2259if test $ac_cv_type_size_t = no; then
2260 cat >> confdefs.h <<\EOF
2261#define size_t unsigned
072aa625 2262EOF
784492b5 2263
072aa625 2264fi
072aa625 2265
784492b5
ILT
2266# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2267# for constant arguments. Useless!
2268echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
69ad8cac 2269echo "configure:2270: checking for working alloca.h" >&5
784492b5 2270if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
072aa625 2271 echo $ac_n "(cached) $ac_c" 1>&6
072aa625
NC
2272else
2273 cat > conftest.$ac_ext <<EOF
69ad8cac 2274#line 2275 "configure"
072aa625 2275#include "confdefs.h"
784492b5
ILT
2276#include <alloca.h>
2277int main() {
2278char *p = alloca(2 * sizeof(int));
2279; return 0; }
072aa625 2280EOF
69ad8cac 2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
2282 rm -rf conftest*
2283 ac_cv_header_alloca_h=yes
072aa625
NC
2284else
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
784492b5
ILT
2287 rm -rf conftest*
2288 ac_cv_header_alloca_h=no
072aa625 2289fi
784492b5 2290rm -f conftest*
072aa625
NC
2291fi
2292
784492b5
ILT
2293echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2294if test $ac_cv_header_alloca_h = yes; then
072aa625 2295 cat >> confdefs.h <<\EOF
784492b5 2296#define HAVE_ALLOCA_H 1
072aa625
NC
2297EOF
2298
2299fi
2300
784492b5 2301echo $ac_n "checking for alloca""... $ac_c" 1>&6
69ad8cac 2302echo "configure:2303: checking for alloca" >&5
784492b5 2303if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
072aa625
NC
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305else
2306 cat > conftest.$ac_ext <<EOF
69ad8cac 2307#line 2308 "configure"
072aa625 2308#include "confdefs.h"
784492b5
ILT
2309
2310#ifdef __GNUC__
2311# define alloca __builtin_alloca
2312#else
2313# if HAVE_ALLOCA_H
2314# include <alloca.h>
2315# else
2316# ifdef _AIX
2317 #pragma alloca
2318# else
2319# ifndef alloca /* predefined by HP cc +Olibcalls */
2320char *alloca ();
2321# endif
2322# endif
2323# endif
2324#endif
2325
2326int main() {
2327char *p = (char *) alloca(1);
2328; return 0; }
072aa625 2329EOF
69ad8cac 2330if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625 2331 rm -rf conftest*
784492b5 2332 ac_cv_func_alloca_works=yes
072aa625 2333else
072aa625
NC
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2336 rm -rf conftest*
784492b5 2337 ac_cv_func_alloca_works=no
072aa625
NC
2338fi
2339rm -f conftest*
2340fi
784492b5
ILT
2341
2342echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2343if test $ac_cv_func_alloca_works = yes; then
2344 cat >> confdefs.h <<\EOF
2345#define HAVE_ALLOCA 1
072aa625 2346EOF
784492b5 2347
072aa625 2348fi
072aa625 2349
784492b5
ILT
2350if test $ac_cv_func_alloca_works = no; then
2351 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2352 # that cause trouble. Some versions do not even contain alloca or
2353 # contain a buggy version. If you still want to use their alloca,
2354 # use ar to extract alloca.o from them instead of compiling alloca.c.
2355 ALLOCA=alloca.o
2356 cat >> confdefs.h <<\EOF
2357#define C_ALLOCA 1
2358EOF
2359
2360
2361echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
69ad8cac 2362echo "configure:2363: checking whether alloca needs Cray hooks" >&5
784492b5 2363if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
072aa625
NC
2364 echo $ac_n "(cached) $ac_c" 1>&6
2365else
2366 cat > conftest.$ac_ext <<EOF
69ad8cac 2367#line 2368 "configure"
072aa625 2368#include "confdefs.h"
784492b5
ILT
2369#if defined(CRAY) && ! defined(CRAY2)
2370webecray
072aa625 2371#else
784492b5 2372wenotbecray
072aa625
NC
2373#endif
2374
072aa625 2375EOF
784492b5
ILT
2376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2377 egrep "webecray" >/dev/null 2>&1; then
072aa625 2378 rm -rf conftest*
784492b5 2379 ac_cv_os_cray=yes
072aa625 2380else
072aa625 2381 rm -rf conftest*
784492b5 2382 ac_cv_os_cray=no
072aa625
NC
2383fi
2384rm -f conftest*
072aa625 2385
072aa625 2386fi
072aa625 2387
784492b5
ILT
2388echo "$ac_t""$ac_cv_os_cray" 1>&6
2389if test $ac_cv_os_cray = yes; then
2390for ac_func in _getb67 GETB67 getb67; do
2391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69ad8cac 2392echo "configure:2393: checking for $ac_func" >&5
072aa625
NC
2393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395else
2396 cat > conftest.$ac_ext <<EOF
69ad8cac 2397#line 2398 "configure"
072aa625
NC
2398#include "confdefs.h"
2399/* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $ac_func(); below. */
2401#include <assert.h>
2402/* Override any gcc2 internal prototype to avoid an error. */
2403/* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405char $ac_func();
2406
2407int main() {
2408
2409/* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2413choke me
2414#else
2415$ac_func();
2416#endif
2417
2418; return 0; }
2419EOF
69ad8cac 2420if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625
NC
2421 rm -rf conftest*
2422 eval "ac_cv_func_$ac_func=yes"
2423else
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 rm -rf conftest*
2427 eval "ac_cv_func_$ac_func=no"
2428fi
2429rm -f conftest*
2430fi
2431
2432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
072aa625 2434 cat >> confdefs.h <<EOF
784492b5 2435#define CRAY_STACKSEG_END $ac_func
072aa625 2436EOF
784492b5
ILT
2437
2438 break
072aa625
NC
2439else
2440 echo "$ac_t""no" 1>&6
2441fi
072aa625 2442
784492b5
ILT
2443done
2444fi
072aa625 2445
784492b5 2446echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
69ad8cac 2447echo "configure:2448: checking stack direction for C alloca" >&5
784492b5 2448if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
072aa625 2449 echo $ac_n "(cached) $ac_c" 1>&6
784492b5
ILT
2450else
2451 if test "$cross_compiling" = yes; then
2452 ac_cv_c_stack_direction=0
072aa625
NC
2453else
2454 cat > conftest.$ac_ext <<EOF
69ad8cac 2455#line 2456 "configure"
072aa625 2456#include "confdefs.h"
784492b5
ILT
2457find_stack_direction ()
2458{
2459 static char *addr = 0;
2460 auto char dummy;
2461 if (addr == 0)
2462 {
2463 addr = &dummy;
2464 return find_stack_direction ();
2465 }
2466 else
2467 return (&dummy > addr) ? 1 : -1;
2468}
2469main ()
2470{
2471 exit (find_stack_direction() < 0);
2472}
072aa625 2473EOF
69ad8cac 2474if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
784492b5
ILT
2475then
2476 ac_cv_c_stack_direction=1
072aa625
NC
2477else
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
784492b5
ILT
2480 rm -fr conftest*
2481 ac_cv_c_stack_direction=-1
072aa625 2482fi
784492b5 2483rm -fr conftest*
072aa625
NC
2484fi
2485
072aa625
NC
2486fi
2487
784492b5
ILT
2488echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2489cat >> confdefs.h <<EOF
2490#define STACK_DIRECTION $ac_cv_c_stack_direction
072aa625
NC
2491EOF
2492
072aa625
NC
2493fi
2494
784492b5
ILT
2495for ac_hdr in unistd.h
2496do
2497ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2498echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69ad8cac 2499echo "configure:2500: checking for $ac_hdr" >&5
072aa625
NC
2500if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502else
2503 cat > conftest.$ac_ext <<EOF
69ad8cac 2504#line 2505 "configure"
072aa625 2505#include "confdefs.h"
784492b5 2506#include <$ac_hdr>
072aa625
NC
2507EOF
2508ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 2509{ (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
072aa625
NC
2510ac_err=`grep -v '^ *+' conftest.out`
2511if test -z "$ac_err"; then
2512 rm -rf conftest*
2513 eval "ac_cv_header_$ac_safe=yes"
2514else
2515 echo "$ac_err" >&5
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 rm -rf conftest*
2519 eval "ac_cv_header_$ac_safe=no"
2520fi
2521rm -f conftest*
2522fi
2523if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
784492b5
ILT
2525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2526 cat >> confdefs.h <<EOF
2527#define $ac_tr_hdr 1
072aa625 2528EOF
784492b5 2529
072aa625 2530else
784492b5 2531 echo "$ac_t""no" 1>&6
072aa625 2532fi
784492b5
ILT
2533done
2534
2535for ac_func in getpagesize
2536do
2537echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69ad8cac 2538echo "configure:2539: checking for $ac_func" >&5
784492b5 2539if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541else
784492b5 2542 cat > conftest.$ac_ext <<EOF
69ad8cac 2543#line 2544 "configure"
072aa625 2544#include "confdefs.h"
784492b5
ILT
2545/* System header to define __stub macros and hopefully few prototypes,
2546 which can conflict with char $ac_func(); below. */
2547#include <assert.h>
072aa625
NC
2548/* Override any gcc2 internal prototype to avoid an error. */
2549/* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */
784492b5 2551char $ac_func();
072aa625
NC
2552
2553int main() {
784492b5
ILT
2554
2555/* The GNU C library defines this for functions which it implements
2556 to always fail with ENOSYS. Some functions are actually named
2557 something starting with __ and the normal name is an alias. */
2558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2559choke me
2560#else
2561$ac_func();
2562#endif
2563
072aa625
NC
2564; return 0; }
2565EOF
69ad8cac 2566if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625 2567 rm -rf conftest*
784492b5 2568 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
2569else
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
784492b5 2573 eval "ac_cv_func_$ac_func=no"
072aa625
NC
2574fi
2575rm -f conftest*
072aa625 2576fi
784492b5
ILT
2577
2578if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
072aa625 2579 echo "$ac_t""yes" 1>&6
784492b5
ILT
2580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2581 cat >> confdefs.h <<EOF
2582#define $ac_tr_func 1
2583EOF
2584
2585else
2586 echo "$ac_t""no" 1>&6
2587fi
2588done
2589
2590echo $ac_n "checking for working mmap""... $ac_c" 1>&6
69ad8cac 2591echo "configure:2592: checking for working mmap" >&5
784492b5 2592if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
072aa625 2593 echo $ac_n "(cached) $ac_c" 1>&6
784492b5
ILT
2594else
2595 if test "$cross_compiling" = yes; then
2596 ac_cv_func_mmap_fixed_mapped=no
072aa625
NC
2597else
2598 cat > conftest.$ac_ext <<EOF
69ad8cac 2599#line 2600 "configure"
072aa625
NC
2600#include "confdefs.h"
2601
784492b5
ILT
2602/* Thanks to Mike Haertel and Jim Avera for this test.
2603 Here is a matrix of mmap possibilities:
2604 mmap private not fixed
2605 mmap private fixed at somewhere currently unmapped
2606 mmap private fixed at somewhere already mapped
2607 mmap shared not fixed
2608 mmap shared fixed at somewhere currently unmapped
2609 mmap shared fixed at somewhere already mapped
2610 For private mappings, we should verify that changes cannot be read()
2611 back from the file, nor mmap's back from the file at a different
2612 address. (There have been systems where private was not correctly
2613 implemented like the infamous i386 svr4.0, and systems where the
2614 VM page cache was not coherent with the filesystem buffer cache
2615 like early versions of FreeBSD and possibly contemporary NetBSD.)
2616 For shared mappings, we should conversely verify that changes get
2617 propogated back to all the places they're supposed to be.
2618
2619 Grep wants private fixed already mapped.
2620 The main things grep needs to know about mmap are:
2621 * does it exist and is it safe to write into the mmap'd area
2622 * how to use it (BSD variants) */
2623#include <sys/types.h>
2624#include <fcntl.h>
2625#include <sys/mman.h>
2626
2627/* This mess was copied from the GNU getpagesize.h. */
2628#ifndef HAVE_GETPAGESIZE
2629# ifdef HAVE_UNISTD_H
2630# include <unistd.h>
2631# endif
2632
2633/* Assume that all systems that can run configure have sys/param.h. */
2634# ifndef HAVE_SYS_PARAM_H
2635# define HAVE_SYS_PARAM_H 1
2636# endif
2637
2638# ifdef _SC_PAGESIZE
2639# define getpagesize() sysconf(_SC_PAGESIZE)
2640# else /* no _SC_PAGESIZE */
2641# ifdef HAVE_SYS_PARAM_H
2642# include <sys/param.h>
2643# ifdef EXEC_PAGESIZE
2644# define getpagesize() EXEC_PAGESIZE
2645# else /* no EXEC_PAGESIZE */
2646# ifdef NBPG
2647# define getpagesize() NBPG * CLSIZE
2648# ifndef CLSIZE
2649# define CLSIZE 1
2650# endif /* no CLSIZE */
2651# else /* no NBPG */
2652# ifdef NBPC
2653# define getpagesize() NBPC
2654# else /* no NBPC */
2655# ifdef PAGESIZE
2656# define getpagesize() PAGESIZE
2657# endif /* PAGESIZE */
2658# endif /* no NBPC */
2659# endif /* no NBPG */
2660# endif /* no EXEC_PAGESIZE */
2661# else /* no HAVE_SYS_PARAM_H */
2662# define getpagesize() 8192 /* punt totally */
2663# endif /* no HAVE_SYS_PARAM_H */
2664# endif /* no _SC_PAGESIZE */
2665
2666#endif /* no HAVE_GETPAGESIZE */
2667
2668#ifdef __cplusplus
2669extern "C" { void *malloc(unsigned); }
2670#else
2671char *malloc();
2672#endif
2673
2674int
2675main()
2676{
2677 char *data, *data2, *data3;
2678 int i, pagesize;
2679 int fd;
2680
2681 pagesize = getpagesize();
2682
2683 /*
2684 * First, make a file with some known garbage in it.
2685 */
2686 data = malloc(pagesize);
2687 if (!data)
2688 exit(1);
2689 for (i = 0; i < pagesize; ++i)
2690 *(data + i) = rand();
2691 umask(0);
2692 fd = creat("conftestmmap", 0600);
2693 if (fd < 0)
2694 exit(1);
2695 if (write(fd, data, pagesize) != pagesize)
2696 exit(1);
2697 close(fd);
2698
2699 /*
2700 * Next, try to mmap the file at a fixed address which
2701 * already has something else allocated at it. If we can,
2702 * also make sure that we see the same garbage.
2703 */
2704 fd = open("conftestmmap", O_RDWR);
2705 if (fd < 0)
2706 exit(1);
2707 data2 = malloc(2 * pagesize);
2708 if (!data2)
2709 exit(1);
2710 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2711 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2712 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2713 exit(1);
2714 for (i = 0; i < pagesize; ++i)
2715 if (*(data + i) != *(data2 + i))
2716 exit(1);
2717
2718 /*
2719 * Finally, make sure that changes to the mapped area
2720 * do not percolate back to the file as seen by read().
2721 * (This is a bug on some variants of i386 svr4.0.)
2722 */
2723 for (i = 0; i < pagesize; ++i)
2724 *(data2 + i) = *(data2 + i) + 1;
2725 data3 = malloc(pagesize);
2726 if (!data3)
2727 exit(1);
2728 if (read(fd, data3, pagesize) != pagesize)
2729 exit(1);
2730 for (i = 0; i < pagesize; ++i)
2731 if (*(data + i) != *(data3 + i))
2732 exit(1);
2733 close(fd);
2734 unlink("conftestmmap");
2735 exit(0);
2736}
2737
072aa625 2738EOF
69ad8cac 2739if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
784492b5
ILT
2740then
2741 ac_cv_func_mmap_fixed_mapped=yes
072aa625
NC
2742else
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
784492b5
ILT
2745 rm -fr conftest*
2746 ac_cv_func_mmap_fixed_mapped=no
072aa625 2747fi
784492b5 2748rm -fr conftest*
072aa625
NC
2749fi
2750
072aa625
NC
2751fi
2752
784492b5
ILT
2753echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2754if test $ac_cv_func_mmap_fixed_mapped = yes; then
2755 cat >> confdefs.h <<\EOF
2756#define HAVE_MMAP 1
072aa625
NC
2757EOF
2758
784492b5
ILT
2759fi
2760
2761
2762 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2763unistd.h values.h sys/param.h
2764do
2765ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2766echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69ad8cac 2767echo "configure:2768: checking for $ac_hdr" >&5
784492b5 2768if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
072aa625
NC
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770else
784492b5 2771 cat > conftest.$ac_ext <<EOF
69ad8cac 2772#line 2773 "configure"
784492b5
ILT
2773#include "confdefs.h"
2774#include <$ac_hdr>
2775EOF
2776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 2777{ (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
784492b5
ILT
2778ac_err=`grep -v '^ *+' conftest.out`
2779if test -z "$ac_err"; then
2780 rm -rf conftest*
2781 eval "ac_cv_header_$ac_safe=yes"
2782else
2783 echo "$ac_err" >&5
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=no"
072aa625 2788fi
784492b5
ILT
2789rm -f conftest*
2790fi
2791if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2794 cat >> confdefs.h <<EOF
2795#define $ac_tr_hdr 1
2796EOF
2797
072aa625
NC
2798else
2799 echo "$ac_t""no" 1>&6
2800fi
784492b5
ILT
2801done
2802
2803 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2804__argz_count __argz_stringify __argz_next
072aa625
NC
2805do
2806echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69ad8cac 2807echo "configure:2808: checking for $ac_func" >&5
072aa625
NC
2808if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2810else
2811 cat > conftest.$ac_ext <<EOF
69ad8cac 2812#line 2813 "configure"
072aa625
NC
2813#include "confdefs.h"
2814/* System header to define __stub macros and hopefully few prototypes,
2815 which can conflict with char $ac_func(); below. */
2816#include <assert.h>
2817/* Override any gcc2 internal prototype to avoid an error. */
2818/* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2820char $ac_func();
2821
2822int main() {
2823
2824/* The GNU C library defines this for functions which it implements
2825 to always fail with ENOSYS. Some functions are actually named
2826 something starting with __ and the normal name is an alias. */
2827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2828choke me
2829#else
2830$ac_func();
2831#endif
2832
2833; return 0; }
2834EOF
69ad8cac 2835if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625
NC
2836 rm -rf conftest*
2837 eval "ac_cv_func_$ac_func=yes"
2838else
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 rm -rf conftest*
2842 eval "ac_cv_func_$ac_func=no"
2843fi
2844rm -f conftest*
2845fi
2846
2847if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2850 cat >> confdefs.h <<EOF
2851#define $ac_tr_func 1
2852EOF
2853
2854else
2855 echo "$ac_t""no" 1>&6
2856fi
2857done
2858
072aa625 2859
784492b5
ILT
2860 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2861 for ac_func in stpcpy
2862do
2863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69ad8cac 2864echo "configure:2865: checking for $ac_func" >&5
784492b5 2865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
2866 echo $ac_n "(cached) $ac_c" 1>&6
2867else
784492b5 2868 cat > conftest.$ac_ext <<EOF
69ad8cac 2869#line 2870 "configure"
072aa625 2870#include "confdefs.h"
784492b5
ILT
2871/* System header to define __stub macros and hopefully few prototypes,
2872 which can conflict with char $ac_func(); below. */
2873#include <assert.h>
2874/* Override any gcc2 internal prototype to avoid an error. */
2875/* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2877char $ac_func();
072aa625
NC
2878
2879int main() {
784492b5
ILT
2880
2881/* The GNU C library defines this for functions which it implements
2882 to always fail with ENOSYS. Some functions are actually named
2883 something starting with __ and the normal name is an alias. */
2884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2885choke me
2886#else
2887$ac_func();
2888#endif
2889
072aa625
NC
2890; return 0; }
2891EOF
69ad8cac 2892if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625 2893 rm -rf conftest*
784492b5 2894 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
2895else
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2898 rm -rf conftest*
784492b5 2899 eval "ac_cv_func_$ac_func=no"
072aa625
NC
2900fi
2901rm -f conftest*
072aa625
NC
2902fi
2903
784492b5
ILT
2904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2907 cat >> confdefs.h <<EOF
2908#define $ac_tr_func 1
2909EOF
2910
072aa625
NC
2911else
2912 echo "$ac_t""no" 1>&6
2913fi
784492b5 2914done
072aa625 2915
784492b5
ILT
2916 fi
2917 if test "${ac_cv_func_stpcpy}" = "yes"; then
2918 cat >> confdefs.h <<\EOF
2919#define HAVE_STPCPY 1
2920EOF
072aa625 2921
784492b5
ILT
2922 fi
2923
2924 if test $ac_cv_header_locale_h = yes; then
2925 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
69ad8cac 2926echo "configure:2927: checking for LC_MESSAGES" >&5
784492b5 2927if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
072aa625
NC
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929else
784492b5 2930 cat > conftest.$ac_ext <<EOF
69ad8cac 2931#line 2932 "configure"
784492b5
ILT
2932#include "confdefs.h"
2933#include <locale.h>
2934int main() {
2935return LC_MESSAGES
2936; return 0; }
2937EOF
69ad8cac 2938if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
2939 rm -rf conftest*
2940 am_cv_val_LC_MESSAGES=yes
072aa625 2941else
784492b5
ILT
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 am_cv_val_LC_MESSAGES=no
2946fi
2947rm -f conftest*
072aa625
NC
2948fi
2949
784492b5
ILT
2950echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2951 if test $am_cv_val_LC_MESSAGES = yes; then
2952 cat >> confdefs.h <<\EOF
2953#define HAVE_LC_MESSAGES 1
2954EOF
072aa625 2955
072aa625 2956 fi
784492b5
ILT
2957 fi
2958 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
69ad8cac 2959echo "configure:2960: checking whether NLS is requested" >&5
784492b5
ILT
2960 # Check whether --enable-nls or --disable-nls was given.
2961if test "${enable_nls+set}" = set; then
2962 enableval="$enable_nls"
2963 USE_NLS=$enableval
2964else
2965 USE_NLS=yes
2966fi
072aa625 2967
784492b5
ILT
2968 echo "$ac_t""$USE_NLS" 1>&6
2969
072aa625 2970
784492b5 2971 USE_INCLUDED_LIBINTL=no
072aa625 2972
784492b5
ILT
2973 if test "$USE_NLS" = "yes"; then
2974 cat >> confdefs.h <<\EOF
2975#define ENABLE_NLS 1
2976EOF
072aa625 2977
784492b5 2978 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
69ad8cac 2979echo "configure:2980: checking whether included gettext is requested" >&5
784492b5
ILT
2980 # Check whether --with-included-gettext or --without-included-gettext was given.
2981if test "${with_included_gettext+set}" = set; then
2982 withval="$with_included_gettext"
2983 nls_cv_force_use_gnu_gettext=$withval
2984else
2985 nls_cv_force_use_gnu_gettext=no
2986fi
072aa625 2987
784492b5 2988 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
072aa625 2989
784492b5
ILT
2990 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2991 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2992 nls_cv_header_intl=
2993 nls_cv_header_libgt=
2994 CATOBJEXT=NONE
072aa625 2995
784492b5
ILT
2996 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2997echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
69ad8cac 2998echo "configure:2999: checking for libintl.h" >&5
072aa625
NC
2999if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3001else
3002 cat > conftest.$ac_ext <<EOF
69ad8cac 3003#line 3004 "configure"
072aa625 3004#include "confdefs.h"
784492b5 3005#include <libintl.h>
072aa625
NC
3006EOF
3007ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 3008{ (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
072aa625
NC
3009ac_err=`grep -v '^ *+' conftest.out`
3010if test -z "$ac_err"; then
3011 rm -rf conftest*
3012 eval "ac_cv_header_$ac_safe=yes"
3013else
3014 echo "$ac_err" >&5
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 rm -rf conftest*
3018 eval "ac_cv_header_$ac_safe=no"
3019fi
3020rm -f conftest*
3021fi
3022if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
784492b5 3024 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
69ad8cac 3025echo "configure:3026: checking for gettext in libc" >&5
784492b5
ILT
3026if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
072aa625 3028else
784492b5 3029 cat > conftest.$ac_ext <<EOF
69ad8cac 3030#line 3031 "configure"
784492b5
ILT
3031#include "confdefs.h"
3032#include <libintl.h>
3033int main() {
3034return (int) gettext ("")
3035; return 0; }
3036EOF
69ad8cac 3037if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
3038 rm -rf conftest*
3039 gt_cv_func_gettext_libc=yes
3040else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 rm -rf conftest*
3044 gt_cv_func_gettext_libc=no
3045fi
3046rm -f conftest*
072aa625
NC
3047fi
3048
784492b5 3049echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
072aa625 3050
784492b5
ILT
3051 if test "$gt_cv_func_gettext_libc" != "yes"; then
3052 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
69ad8cac 3053echo "configure:3054: checking for bindtextdomain in -lintl" >&5
784492b5
ILT
3054ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057else
3058 ac_save_LIBS="$LIBS"
3059LIBS="-lintl $LIBS"
3060cat > conftest.$ac_ext <<EOF
69ad8cac 3061#line 3062 "configure"
784492b5
ILT
3062#include "confdefs.h"
3063/* Override any gcc2 internal prototype to avoid an error. */
3064/* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066char bindtextdomain();
072aa625 3067
784492b5
ILT
3068int main() {
3069bindtextdomain()
3070; return 0; }
3071EOF
69ad8cac 3072if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3075else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=no"
3080fi
3081rm -f conftest*
3082LIBS="$ac_save_LIBS"
072aa625 3083
784492b5
ILT
3084fi
3085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
69ad8cac 3088echo "configure:3089: checking for gettext in libintl" >&5
784492b5
ILT
3089if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3091else
3092 cat > conftest.$ac_ext <<EOF
69ad8cac 3093#line 3094 "configure"
784492b5 3094#include "confdefs.h"
072aa625 3095
784492b5
ILT
3096int main() {
3097return (int) gettext ("")
3098; return 0; }
3099EOF
69ad8cac 3100if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
784492b5
ILT
3101 rm -rf conftest*
3102 gt_cv_func_gettext_libintl=yes
3103else
3104 echo "configure: failed program was:" >&5
3105 cat conftest.$ac_ext >&5
3106 rm -rf conftest*
3107 gt_cv_func_gettext_libintl=no
3108fi
3109rm -f conftest*
3110fi
072aa625 3111
784492b5
ILT
3112echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3113else
3114 echo "$ac_t""no" 1>&6
3115fi
072aa625 3116
784492b5
ILT
3117 fi
3118
3119 if test "$gt_cv_func_gettext_libc" = "yes" \
3120 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3121 cat >> confdefs.h <<\EOF
3122#define HAVE_GETTEXT 1
3123EOF
3124
3125 # Extract the first word of "msgfmt", so it can be a program name with args.
3126set dummy msgfmt; ac_word=$2
3127echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3128echo "configure:3129: checking for $ac_word" >&5
784492b5
ILT
3129if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3131else
3132 case "$MSGFMT" in
3133 /*)
3134 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3135 ;;
3136 *)
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3138 for ac_dir in $PATH; do
3139 test -z "$ac_dir" && ac_dir=.
3140 if test -f $ac_dir/$ac_word; then
3141 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3142 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3143 break
3144 fi
3145 fi
3146 done
3147 IFS="$ac_save_ifs"
3148 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3149 ;;
3150esac
3151fi
3152MSGFMT="$ac_cv_path_MSGFMT"
3153if test -n "$MSGFMT"; then
3154 echo "$ac_t""$MSGFMT" 1>&6
072aa625 3155else
784492b5 3156 echo "$ac_t""no" 1>&6
072aa625 3157fi
784492b5
ILT
3158 if test "$MSGFMT" != "no"; then
3159 for ac_func in dcgettext
3160do
3161echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69ad8cac 3162echo "configure:3163: checking for $ac_func" >&5
784492b5 3163if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
072aa625
NC
3164 echo $ac_n "(cached) $ac_c" 1>&6
3165else
3166 cat > conftest.$ac_ext <<EOF
69ad8cac 3167#line 3168 "configure"
072aa625 3168#include "confdefs.h"
784492b5
ILT
3169/* System header to define __stub macros and hopefully few prototypes,
3170 which can conflict with char $ac_func(); below. */
3171#include <assert.h>
3172/* Override any gcc2 internal prototype to avoid an error. */
3173/* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3175char $ac_func();
072aa625
NC
3176
3177int main() {
784492b5
ILT
3178
3179/* The GNU C library defines this for functions which it implements
3180 to always fail with ENOSYS. Some functions are actually named
3181 something starting with __ and the normal name is an alias. */
3182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3183choke me
3184#else
3185$ac_func();
3186#endif
3187
072aa625
NC
3188; return 0; }
3189EOF
69ad8cac 3190if { (eval echo configure:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625 3191 rm -rf conftest*
784492b5 3192 eval "ac_cv_func_$ac_func=yes"
072aa625
NC
3193else
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 rm -rf conftest*
784492b5 3197 eval "ac_cv_func_$ac_func=no"
072aa625
NC
3198fi
3199rm -f conftest*
072aa625
NC
3200fi
3201
784492b5
ILT
3202if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3203 echo "$ac_t""yes" 1>&6
3204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3205 cat >> confdefs.h <<EOF
3206#define $ac_tr_func 1
3207EOF
3208
3209else
3210 echo "$ac_t""no" 1>&6
3211fi
3212done
3213
3214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3215set dummy gmsgfmt; ac_word=$2
3216echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3217echo "configure:3218: checking for $ac_word" >&5
784492b5 3218if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
072aa625
NC
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220else
784492b5
ILT
3221 case "$GMSGFMT" in
3222 /*)
3223 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3224 ;;
3225 ?:/*)
3226 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3227 ;;
3228 *)
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3230 for ac_dir in $PATH; do
3231 test -z "$ac_dir" && ac_dir=.
3232 if test -f $ac_dir/$ac_word; then
3233 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3234 break
3235 fi
3236 done
3237 IFS="$ac_save_ifs"
3238 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3239 ;;
3240esac
3241fi
3242GMSGFMT="$ac_cv_path_GMSGFMT"
3243if test -n "$GMSGFMT"; then
3244 echo "$ac_t""$GMSGFMT" 1>&6
3245else
3246 echo "$ac_t""no" 1>&6
3247fi
3248
3249 # Extract the first word of "xgettext", so it can be a program name with args.
3250set dummy xgettext; ac_word=$2
3251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3252echo "configure:3253: checking for $ac_word" >&5
784492b5
ILT
3253if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255else
3256 case "$XGETTEXT" in
3257 /*)
3258 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3259 ;;
3260 *)
3261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3262 for ac_dir in $PATH; do
3263 test -z "$ac_dir" && ac_dir=.
3264 if test -f $ac_dir/$ac_word; then
3265 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3266 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3267 break
3268 fi
3269 fi
3270 done
3271 IFS="$ac_save_ifs"
3272 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3273 ;;
3274esac
3275fi
3276XGETTEXT="$ac_cv_path_XGETTEXT"
3277if test -n "$XGETTEXT"; then
3278 echo "$ac_t""$XGETTEXT" 1>&6
3279else
3280 echo "$ac_t""no" 1>&6
3281fi
3282
3283 cat > conftest.$ac_ext <<EOF
69ad8cac 3284#line 3285 "configure"
072aa625
NC
3285#include "confdefs.h"
3286
3287int main() {
784492b5
ILT
3288extern int _nl_msg_cat_cntr;
3289 return _nl_msg_cat_cntr
072aa625
NC
3290; return 0; }
3291EOF
69ad8cac 3292if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
072aa625 3293 rm -rf conftest*
784492b5
ILT
3294 CATOBJEXT=.gmo
3295 DATADIRNAME=share
072aa625
NC
3296else
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 rm -rf conftest*
784492b5
ILT
3300 CATOBJEXT=.mo
3301 DATADIRNAME=lib
072aa625
NC
3302fi
3303rm -f conftest*
784492b5
ILT
3304 INSTOBJEXT=.mo
3305 fi
3306 fi
3307
3308else
3309 echo "$ac_t""no" 1>&6
072aa625
NC
3310fi
3311
072aa625 3312
784492b5
ILT
3313
3314 if test "$CATOBJEXT" = "NONE"; then
3315 nls_cv_use_gnu_gettext=yes
3316 fi
3317 fi
072aa625 3318
784492b5
ILT
3319 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3320 INTLOBJS="\$(GETTOBJS)"
3321 # Extract the first word of "msgfmt", so it can be a program name with args.
3322set dummy msgfmt; ac_word=$2
3323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3324echo "configure:3325: checking for $ac_word" >&5
784492b5 3325if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
072aa625
NC
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327else
784492b5
ILT
3328 case "$MSGFMT" in
3329 /*)
3330 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3331 ;;
3332 *)
3333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3334 for ac_dir in $PATH; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f $ac_dir/$ac_word; then
3337 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3338 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3339 break
3340 fi
3341 fi
3342 done
3343 IFS="$ac_save_ifs"
3344 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3345 ;;
3346esac
072aa625 3347fi
784492b5
ILT
3348MSGFMT="$ac_cv_path_MSGFMT"
3349if test -n "$MSGFMT"; then
3350 echo "$ac_t""$MSGFMT" 1>&6
3351else
3352 echo "$ac_t""no" 1>&6
072aa625 3353fi
072aa625 3354
784492b5
ILT
3355 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3356set dummy gmsgfmt; ac_word=$2
072aa625 3357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3358echo "configure:3359: checking for $ac_word" >&5
784492b5 3359if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
072aa625
NC
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361else
784492b5
ILT
3362 case "$GMSGFMT" in
3363 /*)
3364 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3365 ;;
3366 ?:/*)
3367 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3368 ;;
3369 *)
072aa625
NC
3370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3371 for ac_dir in $PATH; do
3372 test -z "$ac_dir" && ac_dir=.
3373 if test -f $ac_dir/$ac_word; then
784492b5 3374 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
072aa625
NC
3375 break
3376 fi
3377 done
3378 IFS="$ac_save_ifs"
784492b5
ILT
3379 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3380 ;;
3381esac
072aa625 3382fi
784492b5
ILT
3383GMSGFMT="$ac_cv_path_GMSGFMT"
3384if test -n "$GMSGFMT"; then
3385 echo "$ac_t""$GMSGFMT" 1>&6
072aa625
NC
3386else
3387 echo "$ac_t""no" 1>&6
3388fi
3389
784492b5
ILT
3390 # Extract the first word of "xgettext", so it can be a program name with args.
3391set dummy xgettext; ac_word=$2
072aa625 3392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3393echo "configure:3394: checking for $ac_word" >&5
784492b5 3394if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
072aa625
NC
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396else
784492b5
ILT
3397 case "$XGETTEXT" in
3398 /*)
3399 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3400 ;;
3401 *)
072aa625 3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
072aa625
NC
3403 for ac_dir in $PATH; do
3404 test -z "$ac_dir" && ac_dir=.
3405 if test -f $ac_dir/$ac_word; then
784492b5
ILT
3406 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3408 break
072aa625 3409 fi
072aa625
NC
3410 fi
3411 done
3412 IFS="$ac_save_ifs"
784492b5
ILT
3413 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3414 ;;
3415esac
072aa625 3416fi
784492b5
ILT
3417XGETTEXT="$ac_cv_path_XGETTEXT"
3418if test -n "$XGETTEXT"; then
3419 echo "$ac_t""$XGETTEXT" 1>&6
7919b9ec
ILT
3420else
3421 echo "$ac_t""no" 1>&6
3422fi
3423
784492b5
ILT
3424
3425 USE_INCLUDED_LIBINTL=yes
3426 CATOBJEXT=.gmo
3427 INSTOBJEXT=.mo
3428 DATADIRNAME=share
3429 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3430 INTLLIBS=$INTLDEPS
3431 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3432 nls_cv_header_intl=libintl.h
3433 nls_cv_header_libgt=libgettext.h
3434 fi
c62d1274 3435
784492b5
ILT
3436 if test "$XGETTEXT" != ":"; then
3437 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3438 : ;
3439 else
3440 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3441 XGETTEXT=":"
3442 fi
3443 fi
9c03036a 3444
784492b5
ILT
3445 # We need to process the po/ directory.
3446 POSUB=po
3447 else
3448 DATADIRNAME=share
3449 nls_cv_header_intl=libintl.h
3450 nls_cv_header_libgt=libgettext.h
3451 fi
9c03036a 3452
784492b5
ILT
3453 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3454 # because some of the sources are only built for this goal.
3455 if test "$PACKAGE" = gettext; then
3456 USE_NLS=yes
3457 USE_INCLUDED_LIBINTL=yes
3458 fi
3459
3460 for lang in $ALL_LINGUAS; do
3461 GMOFILES="$GMOFILES $lang.gmo"
3462 POFILES="$POFILES $lang.po"
3463 done
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478 if test "x$CATOBJEXT" != "x"; then
3479 if test "x$ALL_LINGUAS" = "x"; then
3480 LINGUAS=
3481 else
3482 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
69ad8cac 3483echo "configure:3484: checking for catalogs to be installed" >&5
784492b5
ILT
3484 NEW_LINGUAS=
3485 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3486 case "$ALL_LINGUAS" in
3487 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3488 esac
3489 done
3490 LINGUAS=$NEW_LINGUAS
3491 echo "$ac_t""$LINGUAS" 1>&6
3492 fi
3493
3494 if test -n "$LINGUAS"; then
3495 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3496 fi
3497 fi
3498
3499 if test $ac_cv_header_locale_h = yes; then
3500 INCLUDE_LOCALE_H="#include <locale.h>"
3501 else
3502 INCLUDE_LOCALE_H="\
3503/* The system does not provide the header <locale.h>. Take care yourself. */"
3504 fi
3505
3506
3507 if test -f $srcdir/po2tbl.sed.in; then
3508 if test "$CATOBJEXT" = ".cat"; then
3509 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3510echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
69ad8cac 3511echo "configure:3512: checking for linux/version.h" >&5
784492b5
ILT
3512if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514else
3515 cat > conftest.$ac_ext <<EOF
69ad8cac 3516#line 3517 "configure"
9c03036a 3517#include "confdefs.h"
784492b5 3518#include <linux/version.h>
9c03036a 3519EOF
784492b5 3520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 3521{ (eval echo configure:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
784492b5
ILT
3522ac_err=`grep -v '^ *+' conftest.out`
3523if test -z "$ac_err"; then
3524 rm -rf conftest*
3525 eval "ac_cv_header_$ac_safe=yes"
9c03036a 3526else
784492b5 3527 echo "$ac_err" >&5
9c03036a
DE
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
784492b5
ILT
3530 rm -rf conftest*
3531 eval "ac_cv_header_$ac_safe=no"
9c03036a 3532fi
784492b5 3533rm -f conftest*
9c03036a 3534fi
784492b5
ILT
3535if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 msgformat=linux
00103dfa 3538else
784492b5
ILT
3539 echo "$ac_t""no" 1>&6
3540msgformat=xopen
00103dfa
ILT
3541fi
3542
9c03036a 3543
784492b5
ILT
3544 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3545 fi
3546 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3547 $srcdir/po2tbl.sed.in > po2tbl.sed
3548 fi
00103dfa 3549
784492b5
ILT
3550 if test "$PACKAGE" = "gettext"; then
3551 GT_NO="#NO#"
3552 GT_YES=
3553 else
3554 GT_NO=
3555 GT_YES="#YES#"
3556 fi
3557
3558
00103dfa 3559
784492b5
ILT
3560 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3561
3562
3563 l=
3564
9b65d522 3565
784492b5
ILT
3566 if test -d $srcdir/po; then
3567 test -d po || mkdir po
3568 if test "x$srcdir" != "x."; then
3569 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3570 posrcprefix="$srcdir/"
3571 else
3572 posrcprefix="../$srcdir/"
3573 fi
3574 else
3575 posrcprefix="../"
3576 fi
3577 rm -f po/POTFILES
3578 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3579 < $srcdir/po/POTFILES.in > po/POTFILES
3580 fi
3581
9b65d522 3582
46bcd2ec
ILT
3583. ${srcdir}/../bfd/configure.host
3584
40db6118 3585
7919b9ec 3586
1daed53f 3587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e3659cbf 3588
e7c50cef 3589
9c03036a 3590for ac_hdr in string.h strings.h stdlib.h
c62d1274 3591do
9c03036a 3592ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
c62d1274 3593echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69ad8cac 3594echo "configure:3595: checking for $ac_hdr" >&5
c62d1274
ILT
3595if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597else
3598 cat > conftest.$ac_ext <<EOF
69ad8cac 3599#line 3600 "configure"
c62d1274
ILT
3600#include "confdefs.h"
3601#include <$ac_hdr>
3602EOF
7919b9ec 3603ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69ad8cac 3604{ (eval echo configure:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
c62d1274
ILT
3605ac_err=`grep -v '^ *+' conftest.out`
3606if test -z "$ac_err"; then
3607 rm -rf conftest*
3608 eval "ac_cv_header_$ac_safe=yes"
3609else
3610 echo "$ac_err" >&5
9c03036a
DE
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
c62d1274
ILT
3613 rm -rf conftest*
3614 eval "ac_cv_header_$ac_safe=no"
3615fi
3616rm -f conftest*
3617fi
3618if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
9c03036a 3620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
c62d1274
ILT
3621 cat >> confdefs.h <<EOF
3622#define $ac_tr_hdr 1
3623EOF
3624
3625else
3626 echo "$ac_t""no" 1>&6
3627fi
3628done
3629
3630
bfc10abe
DE
3631# start-sanitize-cygnus
3632use_cgen=no
69ad8cac
ILT
3633cgen_maint=no
3634# Having --enable-maintainer-mode take arguments is another way to go.
3635# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3636if test "${enable_cgen_maint+set}" = set; then
3637 enableval="$enable_cgen_maint"
3638 case "${enableval}" in
3639 yes) cgen_maint=yes ;;
3640 no) cgen_maint=no ;;
3641 *) { echo "configure: error: bad value ${enableval} for opcodes cgen-maint option" 1>&2; exit 1; } ;;
3642esac
3643fi
3644
3645
3646if test x${cgen_maint} = xyes; then
3647 CGEN_MAINT_TRUE=
3648 CGEN_MAINT_FALSE='#'
3649else
3650 CGEN_MAINT_TRUE='#'
3651 CGEN_MAINT_FALSE=
3652fi
3653if test "x${cgen_maint}" = xyes ; then
bfc10abe
DE
3654 for targ in $target $canon_targets
3655 do
3656 case $targ in
3657 all) use_cgen=yes ;;
3658 m32r-*-*) use_cgen=yes ;;
3659 esac
3660 done
3661fi
3662if test $use_cgen = yes ; then
3663 # Extract the first word of "guile", so it can be a program name with args.
3664set dummy guile; ac_word=$2
3665echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69ad8cac 3666echo "configure:3667: checking for $ac_word" >&5
bfc10abe
DE
3667if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669else
3670 if test -n "$SCHEME"; then
3671 ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test.
3672else
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3674 for ac_dir in $PATH; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f $ac_dir/$ac_word; then
3677 ac_cv_prog_SCHEME="guile"
3678 break
3679 fi
3680 done
3681 IFS="$ac_save_ifs"
3682 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME="guile"
3683fi
3684fi
3685SCHEME="$ac_cv_prog_SCHEME"
3686if test -n "$SCHEME"; then
3687 echo "$ac_t""$SCHEME" 1>&6
3688else
3689 echo "$ac_t""no" 1>&6
3690fi
3691
3692fi
3693# end-sanitize-cygnus
3694
072aa625
NC
3695# Horrible hacks to build DLLs on Windows.
3696WIN32LDFLAGS=
3697WIN32LIBADD=
3698case "${host}" in
3699*-*-cygwin32*)
3700 if test "$enable_shared" = "yes"; then
3701 WIN32LDFLAGS="-no-undefined"
69ad8cac 3702 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
072aa625
NC
3703 fi
3704 ;;
3705esac
3706
3707
3708
c62d1274
ILT
3709# target-specific stuff:
3710
3711# Canonicalize the secondary target names.
3712if test -n "$enable_targets" ; then
3713 for targ in `echo $enable_targets | sed 's/,/ /g'`
3714 do
1daed53f 3715 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
c62d1274
ILT
3716 if test -n "$result" ; then
3717 canon_targets="$canon_targets $result"
3718 else
3719 # Allow targets that config.sub doesn't recognize, like "all".
3720 canon_targets="$canon_targets $targ"
3721 fi
3722 done
3723fi
3724
3725all_targets=false
3726selarchs=
3727for targ in $target $canon_targets
3728do
3729 if test "x$targ" = "xall" ; then
3730 all_targets=true
3731 else
3732 . $srcdir/../bfd/config.bfd
3733 selarchs="$selarchs $targ_archs"
3734 fi
3735done
3736
9c03036a
DE
3737# Utility var, documents generic cgen support files.
3738
1daed53f 3739cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
9c03036a 3740
c62d1274
ILT
3741# We don't do any links based on the target system, just makefile config.
3742
3743if test x${all_targets} = xfalse ; then
3744
3745 # Target architecture .o files.
3746 ta=
3747
3748 for arch in $selarchs
3749 do
3750 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3751 archdefs="$archdefs -DARCH_$ad"
3752 case "$arch" in
1daed53f 3753 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
00103dfa 3754 bfd_alliant_arch) ;;
1daed53f 3755 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
1daed53f 3756 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
1daed53f 3757 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
00103dfa 3758 bfd_convex_arch) ;;
1daed53f 3759 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
b2e3f844 3760# start-sanitize-d30v
1daed53f 3761 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
b2e3f844 3762# end-sanitize-d30v
1daed53f
ILT
3763 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3764 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3765 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3766 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
f98c3369 3767 bfd_i860_arch) ;;
1daed53f
ILT
3768 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3769 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
3770 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3771 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3772 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3773 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3774 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3775 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3776 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
00103dfa
ILT
3777 bfd_pyramid_arch) ;;
3778 bfd_romp_arch) ;;
1daed53f
ILT
3779 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3780 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
3781 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
00103dfa 3782 bfd_tahoe_arch) ;;
788e3f91 3783 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
b2e3f844 3784# start-sanitize-tic80
1daed53f 3785 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
b2e3f844 3786# end-sanitize-tic80
80c396f6 3787# start-sanitize-sky
37130f11 3788 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
80c396f6 3789# end-sanitize-sky
1daed53f 3790 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171
CP
3791# start-sanitize-v850e
3792 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
cd66558c 3793 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
a3515171 3794# end-sanitize-v850e
69ad8cac 3795 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
1daed53f 3796 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
c62d1274 3797 bfd_we32k_arch) ;;
1daed53f 3798 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
c62d1274
ILT
3799
3800 "") ;;
3801 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3802 esac
3803 done
3804
3805 # Weed out duplicate .o files.
3806 f=""
3807 for i in $ta ; do
3808 case " $f " in
3809 *" $i "*) ;;
3810 *) f="$f $i" ;;
3811 esac
3812 done
3813 ta="$f"
3814
3815 # And duplicate -D flags.
3816 f=""
3817 for i in $archdefs ; do
3818 case " $f " in
3819 *" $i "*) ;;
3820 *) f="$f $i" ;;
3821 esac
3822 done
3823 archdefs="$f"
3824
3825 BFD_MACHINES="$ta"
3826
3827else # all_targets is true
3828 archdefs=-DARCH_all
3829 BFD_MACHINES='$(ALL_MACHINES)'
3830fi
3831
3832
3833
3834
c62d1274
ILT
3835trap '' 1 2 15
3836cat > confcache <<\EOF
3837# This file is a shell script that caches the results of configure
3838# tests run on this system so they can be shared between configure
3839# scripts and configure runs. It is not useful on other systems.
3840# If it contains results you don't want to keep, you may remove or edit it.
3841#
3842# By default, configure uses ./config.cache as the cache file,
3843# creating it if it does not exist already. You can give configure
3844# the --cache-file=FILE option to use a different cache file; that is
3845# what configure does when it calls configure scripts in
3846# subdirectories, so they share the cache.
3847# Giving --cache-file=/dev/null disables caching, for debugging configure.
3848# config.status only pays attention to the cache file if you give it the
3849# --recheck option to rerun configure.
3850#
3851EOF
9c03036a
DE
3852# The following way of writing the cache mishandles newlines in values,
3853# but we know of no workaround that is simple, portable, and efficient.
3854# So, don't put newlines in cache variables' values.
c62d1274
ILT
3855# Ultrix sh set writes to stderr and can't be redirected directly,
3856# and sets the high bit in the cache file unless we assign to the vars.
3857(set) 2>&1 |
3b1e6264 3858 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
9c03036a
DE
3859 *ac_space=\ *)
3860 # `set' does not quote correctly, so add quotes (double-quote substitution
3861 # turns \\\\ into \\, and sed turns \\ into \).
3862 sed -n \
3863 -e "s/'/'\\\\''/g" \
3864 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3865 ;;
3866 *)
3867 # `set' quotes correctly as required by POSIX, so do not add quotes.
3868 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3869 ;;
3870 esac >> confcache
c62d1274
ILT
3871if cmp -s $cache_file confcache; then
3872 :
3873else
3874 if test -w $cache_file; then
3875 echo "updating cache $cache_file"
3876 cat confcache > $cache_file
3877 else
3878 echo "not updating unwritable cache $cache_file"
3879 fi
3880fi
3881rm -f confcache
3882
3883trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3884
3885test "x$prefix" = xNONE && prefix=$ac_default_prefix
3886# Let make expand exec_prefix.
3887test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3888
3889# Any assignment to VPATH causes Sun make to only execute
3890# the first set of double-colon rules, so remove it if not needed.
3891# If there is a colon in the path, we need to keep it.
3892if test "x$srcdir" = x.; then
3893 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3894fi
3895
3896trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3897
3898DEFS=-DHAVE_CONFIG_H
3899
3900# Without the "./", some shells look in PATH for config.status.
3901: ${CONFIG_STATUS=./config.status}
3902
3903echo creating $CONFIG_STATUS
3904rm -f $CONFIG_STATUS
3905cat > $CONFIG_STATUS <<EOF
3906#! /bin/sh
3907# Generated automatically by configure.
3908# Run this file to recreate the current configuration.
3909# This directory was configured as follows,
3910# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3911#
3912# $0 $ac_configure_args
3913#
3914# Compiler output produced by configure, useful for debugging
3915# configure, is in ./config.log if it exists.
3916
3917ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3918for ac_option
3919do
3920 case "\$ac_option" in
3921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3922 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3923 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3924 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a3515171 3925 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
c62d1274
ILT
3926 exit 0 ;;
3927 -help | --help | --hel | --he | --h)
3928 echo "\$ac_cs_usage"; exit 0 ;;
3929 *) echo "\$ac_cs_usage"; exit 1 ;;
3930 esac
3931done
3932
3933ac_given_srcdir=$srcdir
9b65d522 3934ac_given_INSTALL="$INSTALL"
c62d1274 3935
072aa625 3936trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
e0bf1022
ILT
3937EOF
3938cat >> $CONFIG_STATUS <<EOF
c62d1274 3939
00103dfa 3940# Protect against being on the right side of a sed subst in config.status.
e0bf1022
ILT
3941sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3942 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
c62d1274
ILT
3943$ac_vpsub
3944$extrasub
cd66558c 3945s%@SHELL@%$SHELL%g
c62d1274
ILT
3946s%@CFLAGS@%$CFLAGS%g
3947s%@CPPFLAGS@%$CPPFLAGS%g
3948s%@CXXFLAGS@%$CXXFLAGS%g
3949s%@DEFS@%$DEFS%g
3950s%@LDFLAGS@%$LDFLAGS%g
3951s%@LIBS@%$LIBS%g
3952s%@exec_prefix@%$exec_prefix%g
3953s%@prefix@%$prefix%g
3954s%@program_transform_name@%$program_transform_name%g
00103dfa
ILT
3955s%@bindir@%$bindir%g
3956s%@sbindir@%$sbindir%g
3957s%@libexecdir@%$libexecdir%g
3958s%@datadir@%$datadir%g
3959s%@sysconfdir@%$sysconfdir%g
3960s%@sharedstatedir@%$sharedstatedir%g
3961s%@localstatedir@%$localstatedir%g
3962s%@libdir@%$libdir%g
3963s%@includedir@%$includedir%g
3964s%@oldincludedir@%$oldincludedir%g
3965s%@infodir@%$infodir%g
3966s%@mandir@%$mandir%g
c62d1274
ILT
3967s%@host@%$host%g
3968s%@host_alias@%$host_alias%g
3969s%@host_cpu@%$host_cpu%g
3970s%@host_vendor@%$host_vendor%g
3971s%@host_os@%$host_os%g
3972s%@target@%$target%g
3973s%@target_alias@%$target_alias%g
3974s%@target_cpu@%$target_cpu%g
3975s%@target_vendor@%$target_vendor%g
3976s%@target_os@%$target_os%g
3977s%@build@%$build%g
3978s%@build_alias@%$build_alias%g
3979s%@build_cpu@%$build_cpu%g
3980s%@build_vendor@%$build_vendor%g
3981s%@build_os@%$build_os%g
784492b5 3982s%@CC@%$CC%g
1daed53f
ILT
3983s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3984s%@INSTALL_DATA@%$INSTALL_DATA%g
3985s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3986s%@PACKAGE@%$PACKAGE%g
3987s%@VERSION@%$VERSION%g
3988s%@ACLOCAL@%$ACLOCAL%g
3989s%@AUTOCONF@%$AUTOCONF%g
3990s%@AUTOMAKE@%$AUTOMAKE%g
3991s%@AUTOHEADER@%$AUTOHEADER%g
3992s%@MAKEINFO@%$MAKEINFO%g
3993s%@SET_MAKE@%$SET_MAKE%g
cd66558c 3994s%@AR@%$AR%g
1daed53f
ILT
3995s%@RANLIB@%$RANLIB%g
3996s%@LD@%$LD%g
788e3f91 3997s%@NM@%$NM%g
1daed53f
ILT
3998s%@LN_S@%$LN_S%g
3999s%@LIBTOOL@%$LIBTOOL%g
f113ea6b
NC
4000s%@DLLTOOL@%$DLLTOOL%g
4001s%@AS@%$AS%g
784492b5
ILT
4002s%@MAINT@%$MAINT%g
4003s%@EXEEXT@%$EXEEXT%g
072aa625
NC
4004s%@CPP@%$CPP%g
4005s%@ALLOCA@%$ALLOCA%g
4006s%@USE_NLS@%$USE_NLS%g
4007s%@MSGFMT@%$MSGFMT%g
4008s%@GMSGFMT@%$GMSGFMT%g
4009s%@XGETTEXT@%$XGETTEXT%g
4010s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4011s%@CATALOGS@%$CATALOGS%g
4012s%@CATOBJEXT@%$CATOBJEXT%g
4013s%@DATADIRNAME@%$DATADIRNAME%g
4014s%@GMOFILES@%$GMOFILES%g
4015s%@INSTOBJEXT@%$INSTOBJEXT%g
4016s%@INTLDEPS@%$INTLDEPS%g
4017s%@INTLLIBS@%$INTLLIBS%g
4018s%@INTLOBJS@%$INTLOBJS%g
4019s%@POFILES@%$POFILES%g
4020s%@POSUB@%$POSUB%g
4021s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4022s%@GT_NO@%$GT_NO%g
4023s%@GT_YES@%$GT_YES%g
4024s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4025s%@l@%$l%g
824155e8 4026s%@HDEFINES@%$HDEFINES%g
69ad8cac
ILT
4027s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4028s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
bfc10abe 4029s%@SCHEME@%$SCHEME%g
072aa625
NC
4030s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4031s%@WIN32LIBADD@%$WIN32LIBADD%g
c62d1274
ILT
4032s%@archdefs@%$archdefs%g
4033s%@BFD_MACHINES@%$BFD_MACHINES%g
4034
4035CEOF
4036EOF
9c03036a
DE
4037
4038cat >> $CONFIG_STATUS <<\EOF
4039
4040# Split the substitutions into bite-sized pieces for seds with
4041# small command number limits, like on Digital OSF/1 and HP-UX.
4042ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4043ac_file=1 # Number of current file.
4044ac_beg=1 # First line for current file.
4045ac_end=$ac_max_sed_cmds # Line after last line for current file.
4046ac_more_lines=:
4047ac_sed_cmds=""
4048while $ac_more_lines; do
4049 if test $ac_beg -gt 1; then
4050 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4051 else
4052 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4053 fi
4054 if test ! -s conftest.s$ac_file; then
4055 ac_more_lines=false
4056 rm -f conftest.s$ac_file
4057 else
4058 if test -z "$ac_sed_cmds"; then
4059 ac_sed_cmds="sed -f conftest.s$ac_file"
4060 else
4061 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4062 fi
4063 ac_file=`expr $ac_file + 1`
4064 ac_beg=$ac_end
4065 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4066 fi
4067done
4068if test -z "$ac_sed_cmds"; then
4069 ac_sed_cmds=cat
4070fi
4071EOF
4072
c62d1274
ILT
4073cat >> $CONFIG_STATUS <<EOF
4074
072aa625 4075CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
c62d1274
ILT
4076EOF
4077cat >> $CONFIG_STATUS <<\EOF
4078for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9c03036a 4079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 4080 case "$ac_file" in
9c03036a 4081 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
4082 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4083 *) ac_file_in="${ac_file}.in" ;;
4084 esac
4085
9c03036a 4086 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
c62d1274
ILT
4087
4088 # Remove last slash and all that follows it. Not all systems have dirname.
4089 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4091 # The file is in a subdirectory.
4092 test ! -d "$ac_dir" && mkdir "$ac_dir"
4093 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4094 # A "../" for each directory in $ac_dir_suffix.
4095 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4096 else
4097 ac_dir_suffix= ac_dots=
4098 fi
4099
4100 case "$ac_given_srcdir" in
4101 .) srcdir=.
4102 if test -z "$ac_dots"; then top_srcdir=.
4103 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4104 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4105 *) # Relative path.
4106 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4107 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4108 esac
4109
9b65d522
ILT
4110 case "$ac_given_INSTALL" in
4111 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4112 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4113 esac
9c03036a 4114
c62d1274
ILT
4115 echo creating "$ac_file"
4116 rm -f "$ac_file"
4117 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4118 case "$ac_file" in
4119 *Makefile*) ac_comsub="1i\\
4120# $configure_input" ;;
4121 *) ac_comsub= ;;
4122 esac
9c03036a
DE
4123
4124 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
c62d1274
ILT
4125 sed -e "$ac_comsub
4126s%@configure_input@%$configure_input%g
4127s%@srcdir@%$srcdir%g
4128s%@top_srcdir@%$top_srcdir%g
9b65d522 4129s%@INSTALL@%$INSTALL%g
9c03036a 4130" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
c62d1274 4131fi; done
9c03036a 4132rm -f conftest.s*
c62d1274
ILT
4133
4134# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4135# NAME is the cpp macro being defined and VALUE is the value it is being given.
4136#
4137# ac_d sets the value in "#define NAME VALUE" lines.
4138ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4139ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4140ac_dC='\3'
4141ac_dD='%g'
4142# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4143ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4144ac_uB='\([ ]\)%\1#\2define\3'
4145ac_uC=' '
4146ac_uD='\4%g'
4147# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4148ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4149ac_eB='$%\1#\2define\3'
4150ac_eC=' '
4151ac_eD='%g'
4152
9c03036a
DE
4153if test "${CONFIG_HEADERS+set}" != set; then
4154EOF
4155cat >> $CONFIG_STATUS <<EOF
4156 CONFIG_HEADERS="config.h:config.in"
4157EOF
4158cat >> $CONFIG_STATUS <<\EOF
4159fi
c62d1274 4160for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9c03036a 4161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c62d1274 4162 case "$ac_file" in
9c03036a 4163 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
c62d1274
ILT
4164 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4165 *) ac_file_in="${ac_file}.in" ;;
4166 esac
4167
4168 echo creating $ac_file
4169
4170 rm -f conftest.frag conftest.in conftest.out
9c03036a
DE
4171 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4172 cat $ac_file_inputs > conftest.in
c62d1274
ILT
4173
4174EOF
4175
4176# Transform confdefs.h into a sed script conftest.vals that substitutes
4177# the proper values into config.h.in to produce config.h. And first:
00103dfa 4178# Protect against being on the right side of a sed subst in config.status.
c62d1274
ILT
4179# Protect against being in an unquoted here document in config.status.
4180rm -f conftest.vals
4181cat > conftest.hdr <<\EOF
4182s/[\\&%]/\\&/g
4183s%[\\$`]%\\&%g
e3659cbf 4184s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
c62d1274
ILT
4185s%ac_d%ac_u%gp
4186s%ac_u%ac_e%gp
4187EOF
4188sed -n -f conftest.hdr confdefs.h > conftest.vals
4189rm -f conftest.hdr
4190
4191# This sed command replaces #undef with comments. This is necessary, for
4192# example, in the case of _POSIX_SOURCE, which is predefined and required
4193# on some systems where configure will not decide to define it.
4194cat >> conftest.vals <<\EOF
4195s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4196EOF
4197
4198# Break up conftest.vals because some shells have a limit on
4199# the size of here documents, and old seds have small limits too.
c62d1274
ILT
4200
4201rm -f conftest.tail
4202while :
4203do
4204 ac_lines=`grep -c . conftest.vals`
4205 # grep -c gives empty output for an empty file on some AIX systems.
4206 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4207 # Write a limited-size here document to conftest.frag.
4208 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4209 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4210 echo 'CEOF
4211 sed -f conftest.frag conftest.in > conftest.out
4212 rm -f conftest.in
4213 mv conftest.out conftest.in
4214' >> $CONFIG_STATUS
4215 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4216 rm -f conftest.vals
4217 mv conftest.tail conftest.vals
4218done
4219rm -f conftest.vals
4220
4221cat >> $CONFIG_STATUS <<\EOF
4222 rm -f conftest.frag conftest.h
4223 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4224 cat conftest.in >> conftest.h
4225 rm -f conftest.in
4226 if cmp -s $ac_file conftest.h 2>/dev/null; then
4227 echo "$ac_file is unchanged"
4228 rm -f conftest.h
4229 else
e3659cbf
MH
4230 # Remove last slash and all that follows it. Not all systems have dirname.
4231 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4232 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4233 # The file is in a subdirectory.
4234 test ! -d "$ac_dir" && mkdir "$ac_dir"
4235 fi
c62d1274
ILT
4236 rm -f $ac_file
4237 mv conftest.h $ac_file
4238 fi
4239fi; done
4240
9c03036a
DE
4241EOF
4242cat >> $CONFIG_STATUS <<EOF
c62d1274 4243
a3515171 4244
9c03036a
DE
4245EOF
4246cat >> $CONFIG_STATUS <<\EOF
1daed53f 4247test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
072aa625 4248sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
c62d1274
ILT
4249exit 0
4250EOF
4251chmod +x $CONFIG_STATUS
4252rm -fr confdefs* $ac_clean_files
4253test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4254
This page took 0.306428 seconds and 4 git commands to generate.