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