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