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