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