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