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