opcodes/
[binutils.git] / binutils / configure
blob8210910ac90090e624949fec74ac1a2e75d5d406
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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"
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 sitefile=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
82 ac_prev=
83 for ac_option
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
98 # Accept the important Cygnus configure options, so we can diagnose typos.
100 case "$ac_option" in
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 [same as prefix]
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
198 cat << EOF
199 Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
214 exit 0 ;;
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
342 -site-file | --site-file | --site-fil | --site-fi | --site-f)
343 ac_prev=sitefile ;;
344 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
345 sitefile="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
369 exit 0 ;;
371 -with-* | --with-*)
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 nonopt="$ac_option"
424 esac
425 done
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
434 # 0 standard input
435 # 1 file creation
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
442 exec 6>/dev/null
443 else
444 exec 6>&1
446 exec 5>./config.log
448 echo "\
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
451 " 1>&5
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
455 ac_configure_args=
456 for ac_arg
458 case "$ac_arg" in
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 esac
467 done
469 # NLS nuisances.
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 echo > confdefs.h
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=ar.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
492 ac_prog=$0
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 srcdir=$ac_confdir
496 if test ! -r $srcdir/$ac_unique_file; then
497 srcdir=..
499 else
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 else
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 else
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 else
521 CONFIG_SITE="$sitefile"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
526 . "$ac_site_file"
528 done
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
532 . $cache_file
533 else
534 echo "creating cache $cache_file"
535 > $cache_file
538 ac_ext=c
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
545 ac_exeext=
546 ac_objext=o
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='
551 ' ac_t=' '
552 else
553 ac_n=-n ac_c= ac_t=
555 else
556 ac_n= ac_c='\c' ac_t=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563 else
564 cat > conftest.$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
568 int main() {
570 #ifndef __CYGWIN__
571 #define __CYGWIN__ __CYGWIN32__
572 #endif
573 return __CYGWIN__;
574 ; return 0; }
576 if { (eval echo configure:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
577 rm -rf conftest*
578 ac_cv_cygwin=yes
579 else
580 echo "configure: failed program was:" >&5
581 cat conftest.$ac_ext >&5
582 rm -rf conftest*
583 ac_cv_cygwin=no
585 rm -f conftest*
586 rm -f conftest*
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
590 CYGWIN=
591 test "$ac_cv_cygwin" = yes && CYGWIN=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
596 else
597 cat > conftest.$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
601 int main() {
602 return __MINGW32__;
603 ; return 0; }
605 if { (eval echo configure:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
606 rm -rf conftest*
607 ac_cv_mingw32=yes
608 else
609 echo "configure: failed program was:" >&5
610 cat conftest.$ac_ext >&5
611 rm -rf conftest*
612 ac_cv_mingw32=no
614 rm -f conftest*
615 rm -f conftest*
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
619 MINGW32=
620 test "$ac_cv_mingw32" = yes && MINGW32=yes
623 ac_aux_dir=
624 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
625 if test -f $ac_dir/install-sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install-sh -c"
628 break
629 elif test -f $ac_dir/install.sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install.sh -c"
632 break
634 done
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643 # Do some error checking and defaulting for the host and target type.
644 # The inputs are:
645 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
647 # The rules are:
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
649 # same time.
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 # as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---*---* | *---NONE---* | *---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661 esac
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
672 host_alias=$host
673 case "$host_alias" in
674 NONE)
675 case $nonopt in
676 NONE)
677 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
679 fi ;;
680 *) host_alias=$nonopt ;;
681 esac ;;
682 esac
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
693 target_alias=$target
694 case "$target_alias" in
695 NONE)
696 case $nonopt in
697 NONE) target_alias=$host_alias ;;
698 *) target_alias=$nonopt ;;
699 esac ;;
700 esac
702 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
711 build_alias=$build
712 case "$build_alias" in
713 NONE)
714 case $nonopt in
715 NONE) build_alias=$host_alias ;;
716 *) build_alias=$nonopt ;;
717 esac ;;
718 esac
720 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
726 test "$host_alias" != "$target_alias" &&
727 test "$program_prefix$program_suffix$program_transform_name" = \
728 NONENONEs,x,x, &&
729 program_prefix=${target_alias}-
732 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
733 echo "configure:734: checking for strerror in -lcposix" >&5
734 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 ac_save_LIBS="$LIBS"
739 LIBS="-lcposix $LIBS"
740 cat > conftest.$ac_ext <<EOF
741 #line 742 "configure"
742 #include "confdefs.h"
743 /* Override any gcc2 internal prototype to avoid an error. */
744 /* We use char because int might match the return type of a gcc2
745 builtin and then its argument prototype would still apply. */
746 char strerror();
748 int main() {
749 strerror()
750 ; return 0; }
752 if { (eval echo configure:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
753 rm -rf conftest*
754 eval "ac_cv_lib_$ac_lib_var=yes"
755 else
756 echo "configure: failed program was:" >&5
757 cat conftest.$ac_ext >&5
758 rm -rf conftest*
759 eval "ac_cv_lib_$ac_lib_var=no"
761 rm -f conftest*
762 LIBS="$ac_save_LIBS"
765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
767 LIBS="$LIBS -lcposix"
768 else
769 echo "$ac_t""no" 1>&6
775 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
776 # Find a good install program. We prefer a C program (faster),
777 # so one script is as good as another. But avoid the broken or
778 # incompatible versions:
779 # SysV /etc/install, /usr/sbin/install
780 # SunOS /usr/etc/install
781 # IRIX /sbin/install
782 # AIX /bin/install
783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
786 # ./install, which can be erroneously created by make from ./install.sh.
787 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
788 echo "configure:789: checking for a BSD compatible install" >&5
789 if test -z "$INSTALL"; then
790 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
794 for ac_dir in $PATH; do
795 # Account for people who put trailing slashes in PATH elements.
796 case "$ac_dir/" in
797 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
799 # OSF1 and SCO ODT 3.0 have their own names for install.
800 # Don't use installbsd from OSF since it installs stuff as root
801 # by default.
802 for ac_prog in ginstall scoinst install; do
803 if test -f $ac_dir/$ac_prog; then
804 if test $ac_prog = install &&
805 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
806 # AIX install. It has an incompatible calling convention.
808 else
809 ac_cv_path_install="$ac_dir/$ac_prog -c"
810 break 2
813 done
815 esac
816 done
817 IFS="$ac_save_IFS"
820 if test "${ac_cv_path_install+set}" = set; then
821 INSTALL="$ac_cv_path_install"
822 else
823 # As a last resort, use the slow shell script. We don't cache a
824 # path for INSTALL within a source directory, because that will
825 # break other packages using the cache if that directory is
826 # removed, or if the path is relative.
827 INSTALL="$ac_install_sh"
830 echo "$ac_t""$INSTALL" 1>&6
832 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
833 # It thinks the first close brace ends the variable substitution.
834 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
836 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
838 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
840 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
841 echo "configure:842: checking whether build environment is sane" >&5
842 # Just in case
843 sleep 1
844 echo timestamp > conftestfile
845 # Do `set' in a subshell so we don't clobber the current shell's
846 # arguments. Must try -L first in case configure is actually a
847 # symlink; some systems play weird games with the mod time of symlinks
848 # (eg FreeBSD returns the mod time of the symlink's containing
849 # directory).
850 if (
851 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
852 if test "$*" = "X"; then
853 # -L didn't work.
854 set X `ls -t $srcdir/configure conftestfile`
856 if test "$*" != "X $srcdir/configure conftestfile" \
857 && test "$*" != "X conftestfile $srcdir/configure"; then
859 # If neither matched, then we have a broken ls. This can happen
860 # if, for instance, CONFIG_SHELL is bash and it inherits a
861 # broken ls alias from the environment. This has actually
862 # happened. Such a system could not be considered "sane".
863 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
864 alias in your environment" 1>&2; exit 1; }
867 test "$2" = conftestfile
869 then
870 # Ok.
872 else
873 { echo "configure: error: newly created file is older than distributed files!
874 Check your system clock" 1>&2; exit 1; }
876 rm -f conftest*
877 echo "$ac_t""yes" 1>&6
878 if test "$program_transform_name" = s,x,x,; then
879 program_transform_name=
880 else
881 # Double any \ or $. echo might interpret backslashes.
882 cat <<\EOF_SED > conftestsed
883 s,\\,\\\\,g; s,\$,$$,g
884 EOF_SED
885 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
886 rm -f conftestsed
888 test "$program_prefix" != NONE &&
889 program_transform_name="s,^,${program_prefix},; $program_transform_name"
890 # Use a double $ so make ignores it.
891 test "$program_suffix" != NONE &&
892 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
894 # sed with no file args requires a program.
895 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${MAKE-make} sets \${MAKE}" >&5
899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
900 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
902 else
903 cat > conftestmake <<\EOF
904 all:
905 @echo 'ac_maketemp="${MAKE}"'
907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
909 if test -n "$ac_maketemp"; then
910 eval ac_cv_prog_make_${ac_make}_set=yes
911 else
912 eval ac_cv_prog_make_${ac_make}_set=no
914 rm -f conftestmake
916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
917 echo "$ac_t""yes" 1>&6
918 SET_MAKE=
919 else
920 echo "$ac_t""no" 1>&6
921 SET_MAKE="MAKE=${MAKE-make}"
925 PACKAGE=binutils
927 VERSION=${BFD_VERSION}
929 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
930 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
932 cat >> confdefs.h <<EOF
933 #define PACKAGE "$PACKAGE"
936 cat >> confdefs.h <<EOF
937 #define VERSION "$VERSION"
942 missing_dir=`cd $ac_aux_dir && pwd`
943 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
944 echo "configure:945: checking for working aclocal" >&5
945 # Run test in a subshell; some versions of sh will print an error if
946 # an executable is not found, even if stderr is redirected.
947 # Redirect stdin to placate older versions of autoconf. Sigh.
948 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
949 ACLOCAL=aclocal
950 echo "$ac_t""found" 1>&6
951 else
952 ACLOCAL="$missing_dir/missing aclocal"
953 echo "$ac_t""missing" 1>&6
956 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
957 echo "configure:958: checking for working autoconf" >&5
958 # Run test in a subshell; some versions of sh will print an error if
959 # an executable is not found, even if stderr is redirected.
960 # Redirect stdin to placate older versions of autoconf. Sigh.
961 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
962 AUTOCONF=autoconf
963 echo "$ac_t""found" 1>&6
964 else
965 AUTOCONF="$missing_dir/missing autoconf"
966 echo "$ac_t""missing" 1>&6
969 echo $ac_n "checking for working automake""... $ac_c" 1>&6
970 echo "configure:971: checking for working automake" >&5
971 # Run test in a subshell; some versions of sh will print an error if
972 # an executable is not found, even if stderr is redirected.
973 # Redirect stdin to placate older versions of autoconf. Sigh.
974 if (automake --version) < /dev/null > /dev/null 2>&1; then
975 AUTOMAKE=automake
976 echo "$ac_t""found" 1>&6
977 else
978 AUTOMAKE="$missing_dir/missing automake"
979 echo "$ac_t""missing" 1>&6
982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
983 echo "configure:984: checking for working autoheader" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
988 AUTOHEADER=autoheader
989 echo "$ac_t""found" 1>&6
990 else
991 AUTOHEADER="$missing_dir/missing autoheader"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
996 echo "configure:997: checking for working makeinfo" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1001 MAKEINFO=makeinfo
1002 echo "$ac_t""found" 1>&6
1003 else
1004 MAKEINFO="$missing_dir/missing makeinfo"
1005 echo "$ac_t""missing" 1>&6
1010 # Check whether --enable-shared or --disable-shared was given.
1011 if test "${enable_shared+set}" = set; then
1012 enableval="$enable_shared"
1013 p=${PACKAGE-default}
1014 case $enableval in
1015 yes) enable_shared=yes ;;
1016 no) enable_shared=no ;;
1018 enable_shared=no
1019 # Look at the argument we got. We use all the common list separators.
1020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1021 for pkg in $enableval; do
1022 if test "X$pkg" = "X$p"; then
1023 enable_shared=yes
1025 done
1026 IFS="$ac_save_ifs"
1028 esac
1029 else
1030 enable_shared=yes
1033 # Check whether --enable-static or --disable-static was given.
1034 if test "${enable_static+set}" = set; then
1035 enableval="$enable_static"
1036 p=${PACKAGE-default}
1037 case $enableval in
1038 yes) enable_static=yes ;;
1039 no) enable_static=no ;;
1041 enable_static=no
1042 # Look at the argument we got. We use all the common list separators.
1043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1044 for pkg in $enableval; do
1045 if test "X$pkg" = "X$p"; then
1046 enable_static=yes
1048 done
1049 IFS="$ac_save_ifs"
1051 esac
1052 else
1053 enable_static=yes
1056 # Check whether --enable-fast-install or --disable-fast-install was given.
1057 if test "${enable_fast_install+set}" = set; then
1058 enableval="$enable_fast_install"
1059 p=${PACKAGE-default}
1060 case $enableval in
1061 yes) enable_fast_install=yes ;;
1062 no) enable_fast_install=no ;;
1064 enable_fast_install=no
1065 # Look at the argument we got. We use all the common list separators.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1067 for pkg in $enableval; do
1068 if test "X$pkg" = "X$p"; then
1069 enable_fast_install=yes
1071 done
1072 IFS="$ac_save_ifs"
1074 esac
1075 else
1076 enable_fast_install=yes
1079 # Extract the first word of "gcc", so it can be a program name with args.
1080 set dummy gcc; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$CC"; then
1087 ac_cv_prog_CC="$CC" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_CC="gcc"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1101 CC="$ac_cv_prog_CC"
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 if test -z "$CC"; then
1109 # Extract the first word of "cc", so it can be a program name with args.
1110 set dummy cc; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_prog_rejected=no
1121 ac_dummy="$PATH"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1126 ac_prog_rejected=yes
1127 continue
1129 ac_cv_prog_CC="cc"
1130 break
1132 done
1133 IFS="$ac_save_ifs"
1134 if test $ac_prog_rejected = yes; then
1135 # We found a bogon in the path, so make sure we never use it.
1136 set dummy $ac_cv_prog_CC
1137 shift
1138 if test $# -gt 0; then
1139 # We chose a different compiler from the bogus one.
1140 # However, it has the same basename, so the bogon will be chosen
1141 # first if we set CC to just the basename; use the full file name.
1142 shift
1143 set dummy "$ac_dir/$ac_word" "$@"
1144 shift
1145 ac_cv_prog_CC="$@"
1150 CC="$ac_cv_prog_CC"
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1153 else
1154 echo "$ac_t""no" 1>&6
1157 if test -z "$CC"; then
1158 case "`uname -s`" in
1159 *win32* | *WIN32*)
1160 # Extract the first word of "cl", so it can be a program name with args.
1161 set dummy cl; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 if test -n "$CC"; then
1168 ac_cv_prog_CC="$CC" # Let the user override the test.
1169 else
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1171 ac_dummy="$PATH"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_CC="cl"
1176 break
1178 done
1179 IFS="$ac_save_ifs"
1182 CC="$ac_cv_prog_CC"
1183 if test -n "$CC"; then
1184 echo "$ac_t""$CC" 1>&6
1185 else
1186 echo "$ac_t""no" 1>&6
1189 esac
1191 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1197 ac_ext=c
1198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1199 ac_cpp='$CPP $CPPFLAGS'
1200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1202 cross_compiling=$ac_cv_prog_cc_cross
1204 cat > conftest.$ac_ext << EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1209 main(){return(0);}
1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1212 ac_cv_prog_cc_works=yes
1213 # If we can't run a trivial program, we are probably using a cross compiler.
1214 if (./conftest; exit) 2>/dev/null; then
1215 ac_cv_prog_cc_cross=no
1216 else
1217 ac_cv_prog_cc_cross=yes
1219 else
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 ac_cv_prog_cc_works=no
1224 rm -fr conftest*
1225 ac_ext=c
1226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1227 ac_cpp='$CPP $CPPFLAGS'
1228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1230 cross_compiling=$ac_cv_prog_cc_cross
1232 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1233 if test $ac_cv_prog_cc_works = no; then
1234 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1236 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1238 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1239 cross_compiling=$ac_cv_prog_cc_cross
1241 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether we are using GNU C" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 cat > conftest.c <<EOF
1247 #ifdef __GNUC__
1248 yes;
1249 #endif
1251 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1252 ac_cv_prog_gcc=yes
1253 else
1254 ac_cv_prog_gcc=no
1258 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1260 if test $ac_cv_prog_gcc = yes; then
1261 GCC=yes
1262 else
1263 GCC=
1266 ac_test_CFLAGS="${CFLAGS+set}"
1267 ac_save_CFLAGS="$CFLAGS"
1268 CFLAGS=
1269 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether ${CC-cc} accepts -g" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274 echo 'void f(){}' > conftest.c
1275 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1276 ac_cv_prog_cc_g=yes
1277 else
1278 ac_cv_prog_cc_g=no
1280 rm -f conftest*
1284 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1285 if test "$ac_test_CFLAGS" = set; then
1286 CFLAGS="$ac_save_CFLAGS"
1287 elif test $ac_cv_prog_cc_g = yes; then
1288 if test "$GCC" = yes; then
1289 CFLAGS="-g -O2"
1290 else
1291 CFLAGS="-g"
1293 else
1294 if test "$GCC" = yes; then
1295 CFLAGS="-O2"
1296 else
1297 CFLAGS=
1301 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1302 if test "${with_gnu_ld+set}" = set; then
1303 withval="$with_gnu_ld"
1304 test "$withval" = no || with_gnu_ld=yes
1305 else
1306 with_gnu_ld=no
1309 ac_prog=ld
1310 if test "$GCC" = yes; then
1311 # Check if gcc -print-prog-name=ld gives a path.
1312 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1313 echo "configure:1314: checking for ld used by GCC" >&5
1314 case $host in
1315 *-*-mingw*)
1316 # gcc leaves a trailing carriage return which upsets mingw
1317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1320 esac
1321 case $ac_prog in
1322 # Accept absolute paths.
1323 [\\/]* | [A-Za-z]:[\\/]*)
1324 re_direlt='/[^/][^/]*/\.\./'
1325 # Canonicalize the path of ld
1326 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1328 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1329 done
1330 test -z "$LD" && LD="$ac_prog"
1333 # If it fails, then pretend we aren't using GCC.
1334 ac_prog=ld
1337 # If it is relative, then search for the first ld in PATH.
1338 with_gnu_ld=unknown
1340 esac
1341 elif test "$with_gnu_ld" = yes; then
1342 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1343 echo "configure:1344: checking for GNU ld" >&5
1344 else
1345 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking for non-GNU ld" >&5
1348 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 if test -z "$LD"; then
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1353 for ac_dir in $PATH; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1356 lt_cv_path_LD="$ac_dir/$ac_prog"
1357 # Check to see if the program is GNU ld. I'd rather use --version,
1358 # but apparently some GNU ld's only accept -v.
1359 # Break only if it was the GNU/non-GNU ld that we prefer.
1360 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1361 test "$with_gnu_ld" != no && break
1362 else
1363 test "$with_gnu_ld" != yes && break
1366 done
1367 IFS="$ac_save_ifs"
1368 else
1369 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1373 LD="$lt_cv_path_LD"
1374 if test -n "$LD"; then
1375 echo "$ac_t""$LD" 1>&6
1376 else
1377 echo "$ac_t""no" 1>&6
1379 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1380 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1381 echo "configure:1382: checking if the linker ($LD) is GNU ld" >&5
1382 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1386 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1387 lt_cv_prog_gnu_ld=yes
1388 else
1389 lt_cv_prog_gnu_ld=no
1393 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1394 with_gnu_ld=$lt_cv_prog_gnu_ld
1397 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $LD option to reload object files" >&5
1399 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 lt_cv_ld_reload_flag='-r'
1405 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1406 reload_flag=$lt_cv_ld_reload_flag
1407 test -n "$reload_flag" && reload_flag=" $reload_flag"
1409 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1410 echo "configure:1411: checking for BSD-compatible nm" >&5
1411 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 if test -n "$NM"; then
1415 # Let the user override the test.
1416 lt_cv_path_NM="$NM"
1417 else
1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1420 test -z "$ac_dir" && ac_dir=.
1421 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1422 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1423 # Check to see if the nm accepts a BSD-compat flag.
1424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1425 # nm: unknown option "B" ignored
1426 # Tru64's nm complains that /dev/null is an invalid object file
1427 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1428 lt_cv_path_NM="$tmp_nm -B"
1429 break
1430 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1431 lt_cv_path_NM="$tmp_nm -p"
1432 break
1433 else
1434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1435 continue # so that we can try to find one that supports BSD flags
1438 done
1439 IFS="$ac_save_ifs"
1440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1444 NM="$lt_cv_path_NM"
1445 echo "$ac_t""$NM" 1>&6
1447 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether ln -s works" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 rm -f conftestdata
1453 if ln -s X conftestdata 2>/dev/null
1454 then
1455 rm -f conftestdata
1456 ac_cv_prog_LN_S="ln -s"
1457 else
1458 ac_cv_prog_LN_S=ln
1461 LN_S="$ac_cv_prog_LN_S"
1462 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1463 echo "$ac_t""yes" 1>&6
1464 else
1465 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1469 echo "configure:1470: checking how to recognise dependant libraries" >&5
1470 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1472 else
1473 lt_cv_file_magic_cmd='$MAGIC_CMD'
1474 lt_cv_file_magic_test_file=
1475 lt_cv_deplibs_check_method='unknown'
1476 # Need to set the preceding variable on all platforms that support
1477 # interlibrary dependencies.
1478 # 'none' -- dependencies not supported.
1479 # `unknown' -- same as none, but documents that we really don't know.
1480 # 'pass_all' -- all dependencies passed with no checks.
1481 # 'test_compile' -- check by making test program.
1482 # 'file_magic [regex]' -- check by looking for files in library path
1483 # which responds to the $file_magic_cmd with a given egrep regex.
1484 # If you have `file' or equivalent on your system and you're not sure
1485 # whether `pass_all' will *always* work, you probably want this one.
1487 case $host_os in
1488 aix*)
1489 lt_cv_deplibs_check_method=pass_all
1492 beos*)
1493 lt_cv_deplibs_check_method=pass_all
1496 bsdi4*)
1497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1498 lt_cv_file_magic_cmd='/usr/bin/file -L'
1499 lt_cv_file_magic_test_file=/shlib/libc.so
1502 cygwin* | mingw* |pw32*)
1503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1504 lt_cv_file_magic_cmd='$OBJDUMP -f'
1507 darwin* | rhapsody*)
1508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1509 lt_cv_file_magic_cmd='/usr/bin/file -L'
1510 case "$host_os" in
1511 rhapsody* | darwin1.012)
1512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1514 *) # Darwin 1.3 on
1515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1517 esac
1520 freebsd* )
1521 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1522 case $host_cpu in
1523 i*86 )
1524 # Not sure whether the presence of OpenBSD here was a mistake.
1525 # Let's accept both of them until this is cleared up.
1526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1527 lt_cv_file_magic_cmd=/usr/bin/file
1528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1530 esac
1531 else
1532 lt_cv_deplibs_check_method=pass_all
1536 gnu*)
1537 lt_cv_deplibs_check_method=pass_all
1540 hpux10.20*|hpux11*)
1541 case $host_cpu in
1542 hppa*)
1543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1544 lt_cv_file_magic_cmd=/usr/bin/file
1545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1547 ia64*)
1548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1549 lt_cv_file_magic_cmd=/usr/bin/file
1550 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1552 esac
1555 irix5* | irix6*)
1556 case $host_os in
1557 irix5*)
1558 # this will be overridden with pass_all, but let us keep it just in case
1559 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1562 case $LD in
1563 *-32|*"-32 ") libmagic=32-bit;;
1564 *-n32|*"-n32 ") libmagic=N32;;
1565 *-64|*"-64 ") libmagic=64-bit;;
1566 *) libmagic=never-match;;
1567 esac
1568 # this will be overridden with pass_all, but let us keep it just in case
1569 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1571 esac
1572 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1573 lt_cv_deplibs_check_method=pass_all
1576 # This must be Linux ELF.
1577 linux-gnu*)
1578 case $host_cpu in
1579 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1580 lt_cv_deplibs_check_method=pass_all ;;
1582 # glibc up to 2.1.1 does not perform some relocations on ARM
1583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1584 esac
1585 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1588 netbsd*)
1589 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1590 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1591 else
1592 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1596 newsos6)
1597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1598 lt_cv_file_magic_cmd=/usr/bin/file
1599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1602 osf3* | osf4* | osf5*)
1603 # this will be overridden with pass_all, but let us keep it just in case
1604 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1605 lt_cv_file_magic_test_file=/shlib/libc.so
1606 lt_cv_deplibs_check_method=pass_all
1609 sco3.2v5*)
1610 lt_cv_deplibs_check_method=pass_all
1613 solaris*)
1614 lt_cv_deplibs_check_method=pass_all
1615 lt_cv_file_magic_test_file=/lib/libc.so
1618 sysv5uw[78]* | sysv4*uw2*)
1619 lt_cv_deplibs_check_method=pass_all
1622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1623 case $host_vendor in
1624 ncr)
1625 lt_cv_deplibs_check_method=pass_all
1627 motorola)
1628 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]'
1629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1631 esac
1633 esac
1637 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1638 file_magic_cmd=$lt_cv_file_magic_cmd
1639 deplibs_check_method=$lt_cv_deplibs_check_method
1641 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1642 echo "configure:1643: checking for object suffix" >&5
1643 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 rm -f conftest*
1647 echo 'int i = 1;' > conftest.$ac_ext
1648 if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 for ac_file in conftest.*; do
1650 case $ac_file in
1651 *.c) ;;
1652 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1653 esac
1654 done
1655 else
1656 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1658 rm -f conftest*
1661 echo "$ac_t""$ac_cv_objext" 1>&6
1662 OBJEXT=$ac_cv_objext
1663 ac_objext=$ac_cv_objext
1667 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1668 echo "configure:1669: checking for executable suffix" >&5
1669 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1673 ac_cv_exeext=.exe
1674 else
1675 rm -f conftest*
1676 echo 'int main () { return 0; }' > conftest.$ac_ext
1677 ac_cv_exeext=
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1679 for file in conftest.*; do
1680 case $file in
1681 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1682 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1683 esac
1684 done
1685 else
1686 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1688 rm -f conftest*
1689 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1693 EXEEXT=""
1694 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1695 echo "$ac_t""${ac_cv_exeext}" 1>&6
1696 ac_exeext=$EXEEXT
1698 if test $host != $build; then
1699 ac_tool_prefix=${host_alias}-
1700 else
1701 ac_tool_prefix=
1704 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1706 # Only perform the check for file, if the check method requires it
1707 case $deplibs_check_method in
1708 file_magic*)
1709 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1710 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1711 echo "configure:1712: checking for ${ac_tool_prefix}file" >&5
1712 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715 case $MAGIC_CMD in
1717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1719 ?:/*)
1720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1723 ac_save_MAGIC_CMD="$MAGIC_CMD"
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 ac_dummy="/usr/bin:$PATH"
1726 for ac_dir in $ac_dummy; do
1727 test -z "$ac_dir" && ac_dir=.
1728 if test -f $ac_dir/${ac_tool_prefix}file; then
1729 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1730 if test -n "$file_magic_test_file"; then
1731 case $deplibs_check_method in
1732 "file_magic "*)
1733 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1734 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1735 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1736 egrep "$file_magic_regex" > /dev/null; then
1738 else
1739 cat <<EOF 1>&2
1741 *** Warning: the command libtool uses to detect shared libraries,
1742 *** $file_magic_cmd, produces output that libtool cannot recognize.
1743 *** The result is that libtool may fail to recognize shared libraries
1744 *** as such. This will affect the creation of libtool libraries that
1745 *** depend on shared libraries, but programs linked with such libtool
1746 *** libraries will work regardless of this problem. Nevertheless, you
1747 *** may want to report the problem to your system manager and/or to
1748 *** bug-libtool@gnu.org
1751 fi ;;
1752 esac
1754 break
1756 done
1757 IFS="$ac_save_ifs"
1758 MAGIC_CMD="$ac_save_MAGIC_CMD"
1760 esac
1763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1764 if test -n "$MAGIC_CMD"; then
1765 echo "$ac_t""$MAGIC_CMD" 1>&6
1766 else
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$lt_cv_path_MAGIC_CMD"; then
1771 if test -n "$ac_tool_prefix"; then
1772 echo $ac_n "checking for file""... $ac_c" 1>&6
1773 echo "configure:1774: checking for file" >&5
1774 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 case $MAGIC_CMD in
1779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1781 ?:/*)
1782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1785 ac_save_MAGIC_CMD="$MAGIC_CMD"
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1787 ac_dummy="/usr/bin:$PATH"
1788 for ac_dir in $ac_dummy; do
1789 test -z "$ac_dir" && ac_dir=.
1790 if test -f $ac_dir/file; then
1791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1792 if test -n "$file_magic_test_file"; then
1793 case $deplibs_check_method in
1794 "file_magic "*)
1795 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1798 egrep "$file_magic_regex" > /dev/null; then
1800 else
1801 cat <<EOF 1>&2
1803 *** Warning: the command libtool uses to detect shared libraries,
1804 *** $file_magic_cmd, produces output that libtool cannot recognize.
1805 *** The result is that libtool may fail to recognize shared libraries
1806 *** as such. This will affect the creation of libtool libraries that
1807 *** depend on shared libraries, but programs linked with such libtool
1808 *** libraries will work regardless of this problem. Nevertheless, you
1809 *** may want to report the problem to your system manager and/or to
1810 *** bug-libtool@gnu.org
1813 fi ;;
1814 esac
1816 break
1818 done
1819 IFS="$ac_save_ifs"
1820 MAGIC_CMD="$ac_save_MAGIC_CMD"
1822 esac
1825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1826 if test -n "$MAGIC_CMD"; then
1827 echo "$ac_t""$MAGIC_CMD" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1832 else
1833 MAGIC_CMD=:
1839 esac
1841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_word" >&5
1845 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 if test -n "$RANLIB"; then
1849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1850 else
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1852 ac_dummy="$PATH"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1857 break
1859 done
1860 IFS="$ac_save_ifs"
1863 RANLIB="$ac_cv_prog_RANLIB"
1864 if test -n "$RANLIB"; then
1865 echo "$ac_t""$RANLIB" 1>&6
1866 else
1867 echo "$ac_t""no" 1>&6
1871 if test -z "$ac_cv_prog_RANLIB"; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "ranlib", so it can be a program name with args.
1874 set dummy ranlib; ac_word=$2
1875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1876 echo "configure:1877: checking for $ac_word" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880 if test -n "$RANLIB"; then
1881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1882 else
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 ac_dummy="$PATH"
1885 for ac_dir in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir=.
1887 if test -f $ac_dir/$ac_word; then
1888 ac_cv_prog_RANLIB="ranlib"
1889 break
1891 done
1892 IFS="$ac_save_ifs"
1893 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1896 RANLIB="$ac_cv_prog_RANLIB"
1897 if test -n "$RANLIB"; then
1898 echo "$ac_t""$RANLIB" 1>&6
1899 else
1900 echo "$ac_t""no" 1>&6
1903 else
1904 RANLIB=":"
1908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1909 set dummy ${ac_tool_prefix}strip; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 if test -n "$STRIP"; then
1916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_dummy="$PATH"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1924 break
1926 done
1927 IFS="$ac_save_ifs"
1930 STRIP="$ac_cv_prog_STRIP"
1931 if test -n "$STRIP"; then
1932 echo "$ac_t""$STRIP" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1938 if test -z "$ac_cv_prog_STRIP"; then
1939 if test -n "$ac_tool_prefix"; then
1940 # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip; ac_word=$2
1942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_word" >&5
1944 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 if test -n "$STRIP"; then
1948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1949 else
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 ac_dummy="$PATH"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_STRIP="strip"
1956 break
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1963 STRIP="$ac_cv_prog_STRIP"
1964 if test -n "$STRIP"; then
1965 echo "$ac_t""$STRIP" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1970 else
1971 STRIP=":"
1976 # Check for any special flags to pass to ltconfig.
1977 libtool_flags="--cache-file=$cache_file"
1978 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1979 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1980 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1981 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1982 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1985 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1986 if test "${enable_libtool_lock+set}" = set; then
1987 enableval="$enable_libtool_lock"
1991 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1992 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1994 # Check whether --with-pic or --without-pic was given.
1995 if test "${with_pic+set}" = set; then
1996 withval="$with_pic"
1997 pic_mode="$withval"
1998 else
1999 pic_mode=default
2002 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2003 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2005 # Some flags need to be propagated to the compiler or linker for good
2006 # libtool support.
2007 case $host in
2008 *-*-irix6*)
2009 # Find out which ABI we are using.
2010 echo '#line 2011 "configure"' > conftest.$ac_ext
2011 if { (eval echo configure:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2012 if test "$lt_cv_prog_gnu_ld" = yes; then
2013 case `/usr/bin/file conftest.$ac_objext` in
2014 *32-bit*)
2015 LD="${LD-ld} -melf32bsmip"
2017 *N32*)
2018 LD="${LD-ld} -melf32bmipn32"
2020 *64-bit*)
2021 LD="${LD-ld} -melf64bmip"
2023 esac
2024 else
2025 case `/usr/bin/file conftest.$ac_objext` in
2026 *32-bit*)
2027 LD="${LD-ld} -32"
2029 *N32*)
2030 LD="${LD-ld} -n32"
2032 *64-bit*)
2033 LD="${LD-ld} -64"
2035 esac
2038 rm -rf conftest*
2041 ia64-*-hpux*)
2042 # Find out which ABI we are using.
2043 echo 'int i;' > conftest.$ac_ext
2044 if { (eval echo configure:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2045 case "`/usr/bin/file conftest.o`" in
2046 *ELF-32*)
2047 HPUX_IA64_MODE="32"
2049 *ELF-64*)
2050 HPUX_IA64_MODE="64"
2052 esac
2054 rm -rf conftest*
2057 *-*-sco3.2v5*)
2058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2059 SAVE_CFLAGS="$CFLAGS"
2060 CFLAGS="$CFLAGS -belf"
2061 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether the C compiler needs -belf" >&5
2063 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2067 ac_ext=c
2068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2072 cross_compiling=$ac_cv_prog_cc_cross
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2078 int main() {
2080 ; return 0; }
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083 rm -rf conftest*
2084 lt_cv_cc_needs_belf=yes
2085 else
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 rm -rf conftest*
2089 lt_cv_cc_needs_belf=no
2091 rm -f conftest*
2092 ac_ext=c
2093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2097 cross_compiling=$ac_cv_prog_cc_cross
2101 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2102 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2103 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2104 CFLAGS="$SAVE_CFLAGS"
2109 esac
2112 # Save cache, so that ltconfig can load it
2113 cat > confcache <<\EOF
2114 # This file is a shell script that caches the results of configure
2115 # tests run on this system so they can be shared between configure
2116 # scripts and configure runs. It is not useful on other systems.
2117 # If it contains results you don't want to keep, you may remove or edit it.
2119 # By default, configure uses ./config.cache as the cache file,
2120 # creating it if it does not exist already. You can give configure
2121 # the --cache-file=FILE option to use a different cache file; that is
2122 # what configure does when it calls configure scripts in
2123 # subdirectories, so they share the cache.
2124 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2125 # config.status only pays attention to the cache file if you give it the
2126 # --recheck option to rerun configure.
2129 # The following way of writing the cache mishandles newlines in values,
2130 # but we know of no workaround that is simple, portable, and efficient.
2131 # So, don't put newlines in cache variables' values.
2132 # Ultrix sh set writes to stderr and can't be redirected directly,
2133 # and sets the high bit in the cache file unless we assign to the vars.
2134 (set) 2>&1 |
2135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2136 *ac_space=\ *)
2137 # `set' does not quote correctly, so add quotes (double-quote substitution
2138 # turns \\\\ into \\, and sed turns \\ into \).
2139 sed -n \
2140 -e "s/'/'\\\\''/g" \
2141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2144 # `set' quotes correctly as required by POSIX, so do not add quotes.
2145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2147 esac >> confcache
2148 if cmp -s $cache_file confcache; then
2150 else
2151 if test -w $cache_file; then
2152 echo "updating cache $cache_file"
2153 cat confcache > $cache_file
2154 else
2155 echo "not updating unwritable cache $cache_file"
2158 rm -f confcache
2161 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2162 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2163 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2164 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2165 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2166 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2167 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2169 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2170 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2172 # Reload cache, that may have been modified by ltconfig
2173 if test -r "$cache_file"; then
2174 echo "loading cache $cache_file"
2175 . $cache_file
2176 else
2177 echo "creating cache $cache_file"
2178 > $cache_file
2182 # This can be used to rebuild libtool when needed
2183 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2185 # Always use our own libtool.
2186 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2188 # Redirect the config.log output again, so that the ltconfig log is not
2189 # clobbered by the next message.
2190 exec 5>>./config.log
2198 # Check whether --enable-targets or --disable-targets was given.
2199 if test "${enable_targets+set}" = set; then
2200 enableval="$enable_targets"
2201 case "${enableval}" in
2202 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2204 no) enable_targets= ;;
2205 *) enable_targets=$enableval ;;
2206 esac
2208 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2209 if test "${enable_commonbfdlib+set}" = set; then
2210 enableval="$enable_commonbfdlib"
2211 case "${enableval}" in
2212 yes) commonbfdlib=true ;;
2213 no) commonbfdlib=false ;;
2214 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2215 esac
2218 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2219 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2220 if test "${enable_build_warnings+set}" = set; then
2221 enableval="$enable_build_warnings"
2222 case "${enableval}" in
2223 yes) ;;
2224 no) build_warnings="-w";;
2225 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2226 build_warnings="${build_warnings} ${t}";;
2227 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2228 build_warnings="${t} ${build_warnings}";;
2229 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2230 esac
2231 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2232 echo "Setting warning flags = $build_warnings" 6>&1
2235 WARN_CFLAGS=""
2236 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2237 WARN_CFLAGS="${build_warnings}"
2245 if test -z "$target" ; then
2246 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2248 if test -z "$host" ; then
2249 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2263 ac_dummy="$PATH"
2264 for ac_dir in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_CC="gcc"
2268 break
2270 done
2271 IFS="$ac_save_ifs"
2274 CC="$ac_cv_prog_CC"
2275 if test -n "$CC"; then
2276 echo "$ac_t""$CC" 1>&6
2277 else
2278 echo "$ac_t""no" 1>&6
2281 if test -z "$CC"; then
2282 # Extract the first word of "cc", so it can be a program name with args.
2283 set dummy cc; ac_word=$2
2284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 else
2292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2293 ac_prog_rejected=no
2294 ac_dummy="$PATH"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2299 ac_prog_rejected=yes
2300 continue
2302 ac_cv_prog_CC="cc"
2303 break
2305 done
2306 IFS="$ac_save_ifs"
2307 if test $ac_prog_rejected = yes; then
2308 # We found a bogon in the path, so make sure we never use it.
2309 set dummy $ac_cv_prog_CC
2310 shift
2311 if test $# -gt 0; then
2312 # We chose a different compiler from the bogus one.
2313 # However, it has the same basename, so the bogon will be chosen
2314 # first if we set CC to just the basename; use the full file name.
2315 shift
2316 set dummy "$ac_dir/$ac_word" "$@"
2317 shift
2318 ac_cv_prog_CC="$@"
2323 CC="$ac_cv_prog_CC"
2324 if test -n "$CC"; then
2325 echo "$ac_t""$CC" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2330 if test -z "$CC"; then
2331 case "`uname -s`" in
2332 *win32* | *WIN32*)
2333 # Extract the first word of "cl", so it can be a program name with args.
2334 set dummy cl; ac_word=$2
2335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_word" >&5
2337 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2344 ac_dummy="$PATH"
2345 for ac_dir in $ac_dummy; do
2346 test -z "$ac_dir" && ac_dir=.
2347 if test -f $ac_dir/$ac_word; then
2348 ac_cv_prog_CC="cl"
2349 break
2351 done
2352 IFS="$ac_save_ifs"
2355 CC="$ac_cv_prog_CC"
2356 if test -n "$CC"; then
2357 echo "$ac_t""$CC" 1>&6
2358 else
2359 echo "$ac_t""no" 1>&6
2362 esac
2364 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2367 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2368 echo "configure:2369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2370 ac_ext=c
2371 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2374 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2375 cross_compiling=$ac_cv_prog_cc_cross
2377 cat > conftest.$ac_ext << EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2382 main(){return(0);}
2384 if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2385 ac_cv_prog_cc_works=yes
2386 # If we can't run a trivial program, we are probably using a cross compiler.
2387 if (./conftest; exit) 2>/dev/null; then
2388 ac_cv_prog_cc_cross=no
2389 else
2390 ac_cv_prog_cc_cross=yes
2392 else
2393 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2395 ac_cv_prog_cc_works=no
2397 rm -fr conftest*
2398 ac_ext=c
2399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2403 cross_compiling=$ac_cv_prog_cc_cross
2405 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2406 if test $ac_cv_prog_cc_works = no; then
2407 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2409 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2411 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2412 cross_compiling=$ac_cv_prog_cc_cross
2414 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2415 echo "configure:2416: checking whether we are using GNU C" >&5
2416 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419 cat > conftest.c <<EOF
2420 #ifdef __GNUC__
2421 yes;
2422 #endif
2424 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2425 ac_cv_prog_gcc=yes
2426 else
2427 ac_cv_prog_gcc=no
2431 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2433 if test $ac_cv_prog_gcc = yes; then
2434 GCC=yes
2435 else
2436 GCC=
2439 ac_test_CFLAGS="${CFLAGS+set}"
2440 ac_save_CFLAGS="$CFLAGS"
2441 CFLAGS=
2442 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether ${CC-cc} accepts -g" >&5
2444 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2446 else
2447 echo 'void f(){}' > conftest.c
2448 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2449 ac_cv_prog_cc_g=yes
2450 else
2451 ac_cv_prog_cc_g=no
2453 rm -f conftest*
2457 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2458 if test "$ac_test_CFLAGS" = set; then
2459 CFLAGS="$ac_save_CFLAGS"
2460 elif test $ac_cv_prog_cc_g = yes; then
2461 if test "$GCC" = yes; then
2462 CFLAGS="-g -O2"
2463 else
2464 CFLAGS="-g"
2466 else
2467 if test "$GCC" = yes; then
2468 CFLAGS="-O2"
2469 else
2470 CFLAGS=
2475 for ac_prog in 'bison -y' byacc
2477 # Extract the first word of "$ac_prog", so it can be a program name with args.
2478 set dummy $ac_prog; ac_word=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2483 else
2484 if test -n "$YACC"; then
2485 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2486 else
2487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2488 ac_dummy="$PATH"
2489 for ac_dir in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir=.
2491 if test -f $ac_dir/$ac_word; then
2492 ac_cv_prog_YACC="$ac_prog"
2493 break
2495 done
2496 IFS="$ac_save_ifs"
2499 YACC="$ac_cv_prog_YACC"
2500 if test -n "$YACC"; then
2501 echo "$ac_t""$YACC" 1>&6
2502 else
2503 echo "$ac_t""no" 1>&6
2506 test -n "$YACC" && break
2507 done
2508 test -n "$YACC" || YACC="yacc"
2510 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2511 echo "configure:2512: checking how to run the C preprocessor" >&5
2512 # On Suns, sometimes $CPP names a directory.
2513 if test -n "$CPP" && test -d "$CPP"; then
2514 CPP=
2516 if test -z "$CPP"; then
2517 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519 else
2520 # This must be in double quotes, not single quotes, because CPP may get
2521 # substituted into the Makefile and "${CC-cc}" will confuse make.
2522 CPP="${CC-cc} -E"
2523 # On the NeXT, cc -E runs the code through the compiler's parser,
2524 # not just through cpp.
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #include <assert.h>
2529 Syntax Error
2531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2532 { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2534 if test -z "$ac_err"; then
2536 else
2537 echo "$ac_err" >&5
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 rm -rf conftest*
2541 CPP="${CC-cc} -E -traditional-cpp"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <assert.h>
2546 Syntax Error
2548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551 if test -z "$ac_err"; then
2553 else
2554 echo "$ac_err" >&5
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2557 rm -rf conftest*
2558 CPP="${CC-cc} -nologo -E"
2559 cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2562 #include <assert.h>
2563 Syntax Error
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2570 else
2571 echo "$ac_err" >&5
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 rm -rf conftest*
2575 CPP=/lib/cpp
2577 rm -f conftest*
2579 rm -f conftest*
2581 rm -f conftest*
2582 ac_cv_prog_CPP="$CPP"
2584 CPP="$ac_cv_prog_CPP"
2585 else
2586 ac_cv_prog_CPP="$CPP"
2588 echo "$ac_t""$CPP" 1>&6
2590 missing_dir=`cd $ac_aux_dir && pwd`
2591 for ac_prog in flex lex
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_word" >&5
2597 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2599 else
2600 if test -n "$LEX"; then
2601 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2602 else
2603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2604 ac_dummy="$PATH"
2605 for ac_dir in $ac_dummy; do
2606 test -z "$ac_dir" && ac_dir=.
2607 if test -f $ac_dir/$ac_word; then
2608 ac_cv_prog_LEX="$ac_prog"
2609 break
2611 done
2612 IFS="$ac_save_ifs"
2615 LEX="$ac_cv_prog_LEX"
2616 if test -n "$LEX"; then
2617 echo "$ac_t""$LEX" 1>&6
2618 else
2619 echo "$ac_t""no" 1>&6
2622 test -n "$LEX" && break
2623 done
2624 test -n "$LEX" || LEX="$missing_dir/missing flex"
2626 # Extract the first word of "flex", so it can be a program name with args.
2627 set dummy flex; ac_word=$2
2628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_word" >&5
2630 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 if test -n "$LEX"; then
2634 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2635 else
2636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2637 ac_dummy="$PATH"
2638 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2641 ac_cv_prog_LEX="flex"
2642 break
2644 done
2645 IFS="$ac_save_ifs"
2646 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2649 LEX="$ac_cv_prog_LEX"
2650 if test -n "$LEX"; then
2651 echo "$ac_t""$LEX" 1>&6
2652 else
2653 echo "$ac_t""no" 1>&6
2656 if test -z "$LEXLIB"
2657 then
2658 case "$LEX" in
2659 flex*) ac_lib=fl ;;
2660 *) ac_lib=l ;;
2661 esac
2662 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2663 echo "configure:2664: checking for yywrap in -l$ac_lib" >&5
2664 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 ac_save_LIBS="$LIBS"
2669 LIBS="-l$ac_lib $LIBS"
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 /* We use char because int might match the return type of a gcc2
2675 builtin and then its argument prototype would still apply. */
2676 char yywrap();
2678 int main() {
2679 yywrap()
2680 ; return 0; }
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683 rm -rf conftest*
2684 eval "ac_cv_lib_$ac_lib_var=yes"
2685 else
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_lib_$ac_lib_var=no"
2691 rm -f conftest*
2692 LIBS="$ac_save_LIBS"
2695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 LEXLIB="-l$ac_lib"
2698 else
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2705 echo "configure:2706: checking lex output file root" >&5
2706 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 # The minimal lex program is just a single line: %%. But some broken lexes
2710 # (Solaris, I think it was) want two %% lines, so accommodate them.
2711 echo '%%
2712 %%' | $LEX
2713 if test -f lex.yy.c; then
2714 ac_cv_prog_lex_root=lex.yy
2715 elif test -f lexyy.c; then
2716 ac_cv_prog_lex_root=lexyy
2717 else
2718 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2722 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2725 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2726 echo "configure:2727: checking whether yytext is a pointer" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2729 else
2730 # POSIX says lex can declare yytext either as a pointer or an array; the
2731 # default is implementation-dependent. Figure out which it is, since
2732 # not all implementations provide the %pointer and %array declarations.
2733 ac_cv_prog_lex_yytext_pointer=no
2734 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2735 ac_save_LIBS="$LIBS"
2736 LIBS="$LIBS $LEXLIB"
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 `cat $LEX_OUTPUT_ROOT.c`
2741 int main() {
2743 ; return 0; }
2745 if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746 rm -rf conftest*
2747 ac_cv_prog_lex_yytext_pointer=yes
2748 else
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2752 rm -f conftest*
2753 LIBS="$ac_save_LIBS"
2754 rm -f "${LEX_OUTPUT_ROOT}.c"
2758 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2759 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2760 cat >> confdefs.h <<\EOF
2761 #define YYTEXT_POINTER 1
2767 ALL_LINGUAS="fr tr ja es sv da zh_CN ru"
2768 # Extract the first word of "ranlib", so it can be a program name with args.
2769 set dummy ranlib; ac_word=$2
2770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_word" >&5
2772 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 if test -n "$RANLIB"; then
2776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2777 else
2778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2779 ac_dummy="$PATH"
2780 for ac_dir in $ac_dummy; do
2781 test -z "$ac_dir" && ac_dir=.
2782 if test -f $ac_dir/$ac_word; then
2783 ac_cv_prog_RANLIB="ranlib"
2784 break
2786 done
2787 IFS="$ac_save_ifs"
2788 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2791 RANLIB="$ac_cv_prog_RANLIB"
2792 if test -n "$RANLIB"; then
2793 echo "$ac_t""$RANLIB" 1>&6
2794 else
2795 echo "$ac_t""no" 1>&6
2798 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2799 echo "configure:2800: checking for ANSI C header files" >&5
2800 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2802 else
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 #include <stdlib.h>
2807 #include <stdarg.h>
2808 #include <string.h>
2809 #include <float.h>
2811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2812 { (eval echo configure:2813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2814 if test -z "$ac_err"; then
2815 rm -rf conftest*
2816 ac_cv_header_stdc=yes
2817 else
2818 echo "$ac_err" >&5
2819 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 rm -rf conftest*
2822 ac_cv_header_stdc=no
2824 rm -f conftest*
2826 if test $ac_cv_header_stdc = yes; then
2827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <string.h>
2833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2834 egrep "memchr" >/dev/null 2>&1; then
2836 else
2837 rm -rf conftest*
2838 ac_cv_header_stdc=no
2840 rm -f conftest*
2844 if test $ac_cv_header_stdc = yes; then
2845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849 #include <stdlib.h>
2851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2852 egrep "free" >/dev/null 2>&1; then
2854 else
2855 rm -rf conftest*
2856 ac_cv_header_stdc=no
2858 rm -f conftest*
2862 if test $ac_cv_header_stdc = yes; then
2863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2864 if test "$cross_compiling" = yes; then
2866 else
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 #include <ctype.h>
2871 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2872 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2874 int main () { int i; for (i = 0; i < 256; i++)
2875 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2876 exit (0); }
2879 if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2880 then
2882 else
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 rm -fr conftest*
2886 ac_cv_header_stdc=no
2888 rm -fr conftest*
2894 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2895 if test $ac_cv_header_stdc = yes; then
2896 cat >> confdefs.h <<\EOF
2897 #define STDC_HEADERS 1
2902 echo $ac_n "checking for working const""... $ac_c" 1>&6
2903 echo "configure:2904: checking for working const" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2911 int main() {
2913 /* Ultrix mips cc rejects this. */
2914 typedef int charset[2]; const charset x;
2915 /* SunOS 4.1.1 cc rejects this. */
2916 char const *const *ccp;
2917 char **p;
2918 /* NEC SVR4.0.2 mips cc rejects this. */
2919 struct point {int x, y;};
2920 static struct point const zero = {0,0};
2921 /* AIX XL C 1.02.0.0 rejects this.
2922 It does not let you subtract one const X* pointer from another in an arm
2923 of an if-expression whose if-part is not a constant expression */
2924 const char *g = "string";
2925 ccp = &g + (g ? g-g : 0);
2926 /* HPUX 7.0 cc rejects these. */
2927 ++ccp;
2928 p = (char**) ccp;
2929 ccp = (char const *const *) p;
2930 { /* SCO 3.2v4 cc rejects this. */
2931 char *t;
2932 char const *s = 0 ? (char *) 0 : (char const *) 0;
2934 *t++ = 0;
2936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2937 int x[] = {25, 17};
2938 const int *foo = &x[0];
2939 ++foo;
2941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2942 typedef const int *iptr;
2943 iptr p = 0;
2944 ++p;
2946 { /* AIX XL C 1.02.0.0 rejects this saying
2947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2948 struct s { int j; const int *ap[3]; };
2949 struct s *b; b->j = 5;
2951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2952 const int foo = 10;
2955 ; return 0; }
2957 if { (eval echo configure:2958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 rm -rf conftest*
2959 ac_cv_c_const=yes
2960 else
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 ac_cv_c_const=no
2966 rm -f conftest*
2969 echo "$ac_t""$ac_cv_c_const" 1>&6
2970 if test $ac_cv_c_const = no; then
2971 cat >> confdefs.h <<\EOF
2972 #define const
2977 echo $ac_n "checking for inline""... $ac_c" 1>&6
2978 echo "configure:2979: checking for inline" >&5
2979 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 ac_cv_c_inline=no
2983 for ac_kw in inline __inline__ __inline; do
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2988 int main() {
2989 } $ac_kw foo() {
2990 ; return 0; }
2992 if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 rm -rf conftest*
2994 ac_cv_c_inline=$ac_kw; break
2995 else
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 rm -f conftest*
3000 done
3004 echo "$ac_t""$ac_cv_c_inline" 1>&6
3005 case "$ac_cv_c_inline" in
3006 inline | yes) ;;
3007 no) cat >> confdefs.h <<\EOF
3008 #define inline
3011 *) cat >> confdefs.h <<EOF
3012 #define inline $ac_cv_c_inline
3015 esac
3017 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3018 echo "configure:3019: checking for off_t" >&5
3019 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <sys/types.h>
3026 #if STDC_HEADERS
3027 #include <stdlib.h>
3028 #include <stddef.h>
3029 #endif
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3033 rm -rf conftest*
3034 ac_cv_type_off_t=yes
3035 else
3036 rm -rf conftest*
3037 ac_cv_type_off_t=no
3039 rm -f conftest*
3042 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3043 if test $ac_cv_type_off_t = no; then
3044 cat >> confdefs.h <<\EOF
3045 #define off_t long
3050 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3051 echo "configure:3052: checking for size_t" >&5
3052 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3054 else
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <sys/types.h>
3059 #if STDC_HEADERS
3060 #include <stdlib.h>
3061 #include <stddef.h>
3062 #endif
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3066 rm -rf conftest*
3067 ac_cv_type_size_t=yes
3068 else
3069 rm -rf conftest*
3070 ac_cv_type_size_t=no
3072 rm -f conftest*
3075 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3076 if test $ac_cv_type_size_t = no; then
3077 cat >> confdefs.h <<\EOF
3078 #define size_t unsigned
3083 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3084 # for constant arguments. Useless!
3085 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3086 echo "configure:3087: checking for working alloca.h" >&5
3087 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <alloca.h>
3094 int main() {
3095 char *p = alloca(2 * sizeof(int));
3096 ; return 0; }
3098 if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3099 rm -rf conftest*
3100 ac_cv_header_alloca_h=yes
3101 else
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 rm -rf conftest*
3105 ac_cv_header_alloca_h=no
3107 rm -f conftest*
3110 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3111 if test $ac_cv_header_alloca_h = yes; then
3112 cat >> confdefs.h <<\EOF
3113 #define HAVE_ALLOCA_H 1
3118 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3119 echo "configure:3120: checking for alloca" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3122 else
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3127 #ifdef __GNUC__
3128 # define alloca __builtin_alloca
3129 #else
3130 # ifdef _MSC_VER
3131 # include <malloc.h>
3132 # define alloca _alloca
3133 # else
3134 # if HAVE_ALLOCA_H
3135 # include <alloca.h>
3136 # else
3137 # ifdef _AIX
3138 #pragma alloca
3139 # else
3140 # ifndef alloca /* predefined by HP cc +Olibcalls */
3141 char *alloca ();
3142 # endif
3143 # endif
3144 # endif
3145 # endif
3146 #endif
3148 int main() {
3149 char *p = (char *) alloca(1);
3150 ; return 0; }
3152 if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3153 rm -rf conftest*
3154 ac_cv_func_alloca_works=yes
3155 else
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3158 rm -rf conftest*
3159 ac_cv_func_alloca_works=no
3161 rm -f conftest*
3164 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3165 if test $ac_cv_func_alloca_works = yes; then
3166 cat >> confdefs.h <<\EOF
3167 #define HAVE_ALLOCA 1
3172 if test $ac_cv_func_alloca_works = no; then
3173 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3174 # that cause trouble. Some versions do not even contain alloca or
3175 # contain a buggy version. If you still want to use their alloca,
3176 # use ar to extract alloca.o from them instead of compiling alloca.c.
3177 ALLOCA=alloca.${ac_objext}
3178 cat >> confdefs.h <<\EOF
3179 #define C_ALLOCA 1
3183 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3184 echo "configure:3185: checking whether alloca needs Cray hooks" >&5
3185 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3187 else
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #if defined(CRAY) && ! defined(CRAY2)
3192 webecray
3193 #else
3194 wenotbecray
3195 #endif
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "webecray" >/dev/null 2>&1; then
3200 rm -rf conftest*
3201 ac_cv_os_cray=yes
3202 else
3203 rm -rf conftest*
3204 ac_cv_os_cray=no
3206 rm -f conftest*
3210 echo "$ac_t""$ac_cv_os_cray" 1>&6
3211 if test $ac_cv_os_cray = yes; then
3212 for ac_func in _getb67 GETB67 getb67; do
3213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3214 echo "configure:3215: checking for $ac_func" >&5
3215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3217 else
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* System header to define __stub macros and hopefully few prototypes,
3222 which can conflict with char $ac_func(); below. */
3223 #include <assert.h>
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char $ac_func();
3229 int main() {
3231 /* The GNU C library defines this for functions which it implements
3232 to always fail with ENOSYS. Some functions are actually named
3233 something starting with __ and the normal name is an alias. */
3234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3235 choke me
3236 #else
3237 $ac_func();
3238 #endif
3240 ; return 0; }
3242 if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 rm -rf conftest*
3244 eval "ac_cv_func_$ac_func=yes"
3245 else
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 rm -rf conftest*
3249 eval "ac_cv_func_$ac_func=no"
3251 rm -f conftest*
3254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 cat >> confdefs.h <<EOF
3257 #define CRAY_STACKSEG_END $ac_func
3260 break
3261 else
3262 echo "$ac_t""no" 1>&6
3265 done
3268 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3269 echo "configure:3270: checking stack direction for C alloca" >&5
3270 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272 else
3273 if test "$cross_compiling" = yes; then
3274 ac_cv_c_stack_direction=0
3275 else
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 find_stack_direction ()
3281 static char *addr = 0;
3282 auto char dummy;
3283 if (addr == 0)
3285 addr = &dummy;
3286 return find_stack_direction ();
3288 else
3289 return (&dummy > addr) ? 1 : -1;
3291 main ()
3293 exit (find_stack_direction() < 0);
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3297 then
3298 ac_cv_c_stack_direction=1
3299 else
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 rm -fr conftest*
3303 ac_cv_c_stack_direction=-1
3305 rm -fr conftest*
3310 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3311 cat >> confdefs.h <<EOF
3312 #define STACK_DIRECTION $ac_cv_c_stack_direction
3317 for ac_hdr in unistd.h
3319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_hdr" >&5
3322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3324 else
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <$ac_hdr>
3330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3331 { (eval echo configure:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3333 if test -z "$ac_err"; then
3334 rm -rf conftest*
3335 eval "ac_cv_header_$ac_safe=yes"
3336 else
3337 echo "$ac_err" >&5
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 eval "ac_cv_header_$ac_safe=no"
3343 rm -f conftest*
3345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3348 cat >> confdefs.h <<EOF
3349 #define $ac_tr_hdr 1
3352 else
3353 echo "$ac_t""no" 1>&6
3355 done
3357 for ac_func in getpagesize
3359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_func" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func(); below. */
3369 #include <assert.h>
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3373 char $ac_func();
3375 int main() {
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3381 choke me
3382 #else
3383 $ac_func();
3384 #endif
3386 ; return 0; }
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3389 rm -rf conftest*
3390 eval "ac_cv_func_$ac_func=yes"
3391 else
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 rm -rf conftest*
3395 eval "ac_cv_func_$ac_func=no"
3397 rm -f conftest*
3400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3403 cat >> confdefs.h <<EOF
3404 #define $ac_tr_func 1
3407 else
3408 echo "$ac_t""no" 1>&6
3410 done
3412 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3413 echo "configure:3414: checking for working mmap" >&5
3414 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 if test "$cross_compiling" = yes; then
3418 ac_cv_func_mmap_fixed_mapped=no
3419 else
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3424 /* Thanks to Mike Haertel and Jim Avera for this test.
3425 Here is a matrix of mmap possibilities:
3426 mmap private not fixed
3427 mmap private fixed at somewhere currently unmapped
3428 mmap private fixed at somewhere already mapped
3429 mmap shared not fixed
3430 mmap shared fixed at somewhere currently unmapped
3431 mmap shared fixed at somewhere already mapped
3432 For private mappings, we should verify that changes cannot be read()
3433 back from the file, nor mmap's back from the file at a different
3434 address. (There have been systems where private was not correctly
3435 implemented like the infamous i386 svr4.0, and systems where the
3436 VM page cache was not coherent with the filesystem buffer cache
3437 like early versions of FreeBSD and possibly contemporary NetBSD.)
3438 For shared mappings, we should conversely verify that changes get
3439 propogated back to all the places they're supposed to be.
3441 Grep wants private fixed already mapped.
3442 The main things grep needs to know about mmap are:
3443 * does it exist and is it safe to write into the mmap'd area
3444 * how to use it (BSD variants) */
3445 #include <sys/types.h>
3446 #include <fcntl.h>
3447 #include <sys/mman.h>
3449 /* This mess was copied from the GNU getpagesize.h. */
3450 #ifndef HAVE_GETPAGESIZE
3451 # ifdef HAVE_UNISTD_H
3452 # include <unistd.h>
3453 # endif
3455 /* Assume that all systems that can run configure have sys/param.h. */
3456 # ifndef HAVE_SYS_PARAM_H
3457 # define HAVE_SYS_PARAM_H 1
3458 # endif
3460 # ifdef _SC_PAGESIZE
3461 # define getpagesize() sysconf(_SC_PAGESIZE)
3462 # else /* no _SC_PAGESIZE */
3463 # ifdef HAVE_SYS_PARAM_H
3464 # include <sys/param.h>
3465 # ifdef EXEC_PAGESIZE
3466 # define getpagesize() EXEC_PAGESIZE
3467 # else /* no EXEC_PAGESIZE */
3468 # ifdef NBPG
3469 # define getpagesize() NBPG * CLSIZE
3470 # ifndef CLSIZE
3471 # define CLSIZE 1
3472 # endif /* no CLSIZE */
3473 # else /* no NBPG */
3474 # ifdef NBPC
3475 # define getpagesize() NBPC
3476 # else /* no NBPC */
3477 # ifdef PAGESIZE
3478 # define getpagesize() PAGESIZE
3479 # endif /* PAGESIZE */
3480 # endif /* no NBPC */
3481 # endif /* no NBPG */
3482 # endif /* no EXEC_PAGESIZE */
3483 # else /* no HAVE_SYS_PARAM_H */
3484 # define getpagesize() 8192 /* punt totally */
3485 # endif /* no HAVE_SYS_PARAM_H */
3486 # endif /* no _SC_PAGESIZE */
3488 #endif /* no HAVE_GETPAGESIZE */
3490 #ifdef __cplusplus
3491 extern "C" { void *malloc(unsigned); }
3492 #else
3493 char *malloc();
3494 #endif
3497 main()
3499 char *data, *data2, *data3;
3500 int i, pagesize;
3501 int fd;
3503 pagesize = getpagesize();
3506 * First, make a file with some known garbage in it.
3508 data = malloc(pagesize);
3509 if (!data)
3510 exit(1);
3511 for (i = 0; i < pagesize; ++i)
3512 *(data + i) = rand();
3513 umask(0);
3514 fd = creat("conftestmmap", 0600);
3515 if (fd < 0)
3516 exit(1);
3517 if (write(fd, data, pagesize) != pagesize)
3518 exit(1);
3519 close(fd);
3522 * Next, try to mmap the file at a fixed address which
3523 * already has something else allocated at it. If we can,
3524 * also make sure that we see the same garbage.
3526 fd = open("conftestmmap", O_RDWR);
3527 if (fd < 0)
3528 exit(1);
3529 data2 = malloc(2 * pagesize);
3530 if (!data2)
3531 exit(1);
3532 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3533 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3534 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3535 exit(1);
3536 for (i = 0; i < pagesize; ++i)
3537 if (*(data + i) != *(data2 + i))
3538 exit(1);
3541 * Finally, make sure that changes to the mapped area
3542 * do not percolate back to the file as seen by read().
3543 * (This is a bug on some variants of i386 svr4.0.)
3545 for (i = 0; i < pagesize; ++i)
3546 *(data2 + i) = *(data2 + i) + 1;
3547 data3 = malloc(pagesize);
3548 if (!data3)
3549 exit(1);
3550 if (read(fd, data3, pagesize) != pagesize)
3551 exit(1);
3552 for (i = 0; i < pagesize; ++i)
3553 if (*(data + i) != *(data3 + i))
3554 exit(1);
3555 close(fd);
3556 unlink("conftestmmap");
3557 exit(0);
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3562 then
3563 ac_cv_func_mmap_fixed_mapped=yes
3564 else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -fr conftest*
3568 ac_cv_func_mmap_fixed_mapped=no
3570 rm -fr conftest*
3575 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3576 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3577 cat >> confdefs.h <<\EOF
3578 #define HAVE_MMAP 1
3584 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3585 unistd.h values.h sys/param.h
3587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_hdr" >&5
3590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <$ac_hdr>
3598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3599 { (eval echo configure:3600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3601 if test -z "$ac_err"; then
3602 rm -rf conftest*
3603 eval "ac_cv_header_$ac_safe=yes"
3604 else
3605 echo "$ac_err" >&5
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 eval "ac_cv_header_$ac_safe=no"
3611 rm -f conftest*
3613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3616 cat >> confdefs.h <<EOF
3617 #define $ac_tr_hdr 1
3620 else
3621 echo "$ac_t""no" 1>&6
3623 done
3625 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3626 __argz_count __argz_stringify __argz_next
3628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3629 echo "configure:3630: checking for $ac_func" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3632 else
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637 which can conflict with char $ac_func(); below. */
3638 #include <assert.h>
3639 /* Override any gcc2 internal prototype to avoid an error. */
3640 /* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642 char $ac_func();
3644 int main() {
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3650 choke me
3651 #else
3652 $ac_func();
3653 #endif
3655 ; return 0; }
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658 rm -rf conftest*
3659 eval "ac_cv_func_$ac_func=yes"
3660 else
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 rm -rf conftest*
3664 eval "ac_cv_func_$ac_func=no"
3666 rm -f conftest*
3669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3672 cat >> confdefs.h <<EOF
3673 #define $ac_tr_func 1
3676 else
3677 echo "$ac_t""no" 1>&6
3679 done
3682 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3683 for ac_func in stpcpy
3685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_func" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689 else
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char $ac_func(); below. */
3695 #include <assert.h>
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char $ac_func();
3701 int main() {
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3707 choke me
3708 #else
3709 $ac_func();
3710 #endif
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3715 rm -rf conftest*
3716 eval "ac_cv_func_$ac_func=yes"
3717 else
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 rm -rf conftest*
3721 eval "ac_cv_func_$ac_func=no"
3723 rm -f conftest*
3726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_func 1
3733 else
3734 echo "$ac_t""no" 1>&6
3736 done
3739 if test "${ac_cv_func_stpcpy}" = "yes"; then
3740 cat >> confdefs.h <<\EOF
3741 #define HAVE_STPCPY 1
3746 if test $ac_cv_header_locale_h = yes; then
3747 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3748 echo "configure:3749: checking for LC_MESSAGES" >&5
3749 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3751 else
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <locale.h>
3756 int main() {
3757 return LC_MESSAGES
3758 ; return 0; }
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761 rm -rf conftest*
3762 am_cv_val_LC_MESSAGES=yes
3763 else
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 rm -rf conftest*
3767 am_cv_val_LC_MESSAGES=no
3769 rm -f conftest*
3772 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3773 if test $am_cv_val_LC_MESSAGES = yes; then
3774 cat >> confdefs.h <<\EOF
3775 #define HAVE_LC_MESSAGES 1
3780 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3781 echo "configure:3782: checking whether NLS is requested" >&5
3782 # Check whether --enable-nls or --disable-nls was given.
3783 if test "${enable_nls+set}" = set; then
3784 enableval="$enable_nls"
3785 USE_NLS=$enableval
3786 else
3787 USE_NLS=yes
3790 echo "$ac_t""$USE_NLS" 1>&6
3793 USE_INCLUDED_LIBINTL=no
3795 if test "$USE_NLS" = "yes"; then
3796 cat >> confdefs.h <<\EOF
3797 #define ENABLE_NLS 1
3800 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3801 echo "configure:3802: checking whether included gettext is requested" >&5
3802 # Check whether --with-included-gettext or --without-included-gettext was given.
3803 if test "${with_included_gettext+set}" = set; then
3804 withval="$with_included_gettext"
3805 nls_cv_force_use_gnu_gettext=$withval
3806 else
3807 nls_cv_force_use_gnu_gettext=no
3810 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3812 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3813 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3814 nls_cv_header_intl=
3815 nls_cv_header_libgt=
3816 CATOBJEXT=NONE
3818 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3819 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3820 echo "configure:3821: checking for libintl.h" >&5
3821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823 else
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 #include <libintl.h>
3829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3830 { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3832 if test -z "$ac_err"; then
3833 rm -rf conftest*
3834 eval "ac_cv_header_$ac_safe=yes"
3835 else
3836 echo "$ac_err" >&5
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 rm -rf conftest*
3840 eval "ac_cv_header_$ac_safe=no"
3842 rm -f conftest*
3844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3847 echo "configure:3848: checking for gettext in libc" >&5
3848 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3850 else
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 #include <libintl.h>
3855 int main() {
3856 return (int) gettext ("")
3857 ; return 0; }
3859 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3860 rm -rf conftest*
3861 gt_cv_func_gettext_libc=yes
3862 else
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3865 rm -rf conftest*
3866 gt_cv_func_gettext_libc=no
3868 rm -f conftest*
3871 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3873 if test "$gt_cv_func_gettext_libc" != "yes"; then
3874 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3875 echo "configure:3876: checking for bindtextdomain in -lintl" >&5
3876 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3879 else
3880 ac_save_LIBS="$LIBS"
3881 LIBS="-lintl $LIBS"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 /* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3888 char bindtextdomain();
3890 int main() {
3891 bindtextdomain()
3892 ; return 0; }
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 rm -rf conftest*
3896 eval "ac_cv_lib_$ac_lib_var=yes"
3897 else
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 rm -rf conftest*
3901 eval "ac_cv_lib_$ac_lib_var=no"
3903 rm -f conftest*
3904 LIBS="$ac_save_LIBS"
3907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3909 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3910 echo "configure:3911: checking for gettext in libintl" >&5
3911 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3913 else
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3918 int main() {
3919 return (int) gettext ("")
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 rm -rf conftest*
3924 gt_cv_func_gettext_libintl=yes
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 gt_cv_func_gettext_libintl=no
3931 rm -f conftest*
3934 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3935 else
3936 echo "$ac_t""no" 1>&6
3941 if test "$gt_cv_func_gettext_libc" = "yes" \
3942 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_GETTEXT 1
3947 # Extract the first word of "msgfmt", so it can be a program name with args.
3948 set dummy msgfmt; ac_word=$2
3949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3950 echo "configure:3951: checking for $ac_word" >&5
3951 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3953 else
3954 case "$MSGFMT" in
3956 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3960 for ac_dir in $PATH; do
3961 test -z "$ac_dir" && ac_dir=.
3962 if test -f $ac_dir/$ac_word; then
3963 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3964 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3965 break
3968 done
3969 IFS="$ac_save_ifs"
3970 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3972 esac
3974 MSGFMT="$ac_cv_path_MSGFMT"
3975 if test -n "$MSGFMT"; then
3976 echo "$ac_t""$MSGFMT" 1>&6
3977 else
3978 echo "$ac_t""no" 1>&6
3980 if test "$MSGFMT" != "no"; then
3981 for ac_func in dcgettext
3983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3984 echo "configure:3985: checking for $ac_func" >&5
3985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3987 else
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 /* System header to define __stub macros and hopefully few prototypes,
3992 which can conflict with char $ac_func(); below. */
3993 #include <assert.h>
3994 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
3997 char $ac_func();
3999 int main() {
4001 /* The GNU C library defines this for functions which it implements
4002 to always fail with ENOSYS. Some functions are actually named
4003 something starting with __ and the normal name is an alias. */
4004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4005 choke me
4006 #else
4007 $ac_func();
4008 #endif
4010 ; return 0; }
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4013 rm -rf conftest*
4014 eval "ac_cv_func_$ac_func=yes"
4015 else
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 rm -rf conftest*
4019 eval "ac_cv_func_$ac_func=no"
4021 rm -f conftest*
4024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4027 cat >> confdefs.h <<EOF
4028 #define $ac_tr_func 1
4031 else
4032 echo "$ac_t""no" 1>&6
4034 done
4036 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4037 set dummy gmsgfmt; ac_word=$2
4038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_word" >&5
4040 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4042 else
4043 case "$GMSGFMT" in
4045 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4047 ?:/*)
4048 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4052 ac_dummy="$PATH"
4053 for ac_dir in $ac_dummy; do
4054 test -z "$ac_dir" && ac_dir=.
4055 if test -f $ac_dir/$ac_word; then
4056 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4057 break
4059 done
4060 IFS="$ac_save_ifs"
4061 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4063 esac
4065 GMSGFMT="$ac_cv_path_GMSGFMT"
4066 if test -n "$GMSGFMT"; then
4067 echo "$ac_t""$GMSGFMT" 1>&6
4068 else
4069 echo "$ac_t""no" 1>&6
4072 # Extract the first word of "xgettext", so it can be a program name with args.
4073 set dummy xgettext; ac_word=$2
4074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_word" >&5
4076 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4078 else
4079 case "$XGETTEXT" in
4081 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4085 for ac_dir in $PATH; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/$ac_word; then
4088 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4089 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4090 break
4093 done
4094 IFS="$ac_save_ifs"
4095 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4097 esac
4099 XGETTEXT="$ac_cv_path_XGETTEXT"
4100 if test -n "$XGETTEXT"; then
4101 echo "$ac_t""$XGETTEXT" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4110 int main() {
4111 extern int _nl_msg_cat_cntr;
4112 return _nl_msg_cat_cntr
4113 ; return 0; }
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 CATOBJEXT=.gmo
4118 DATADIRNAME=share
4119 else
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4122 rm -rf conftest*
4123 CATOBJEXT=.mo
4124 DATADIRNAME=lib
4126 rm -f conftest*
4127 INSTOBJEXT=.mo
4131 else
4132 echo "$ac_t""no" 1>&6
4137 if test "$CATOBJEXT" = "NONE"; then
4138 nls_cv_use_gnu_gettext=yes
4142 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4143 INTLOBJS="\$(GETTOBJS)"
4144 # Extract the first word of "msgfmt", so it can be a program name with args.
4145 set dummy msgfmt; ac_word=$2
4146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_word" >&5
4148 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 case "$MSGFMT" in
4153 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4157 for ac_dir in $PATH; do
4158 test -z "$ac_dir" && ac_dir=.
4159 if test -f $ac_dir/$ac_word; then
4160 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4161 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4162 break
4165 done
4166 IFS="$ac_save_ifs"
4167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4169 esac
4171 MSGFMT="$ac_cv_path_MSGFMT"
4172 if test -n "$MSGFMT"; then
4173 echo "$ac_t""$MSGFMT" 1>&6
4174 else
4175 echo "$ac_t""no" 1>&6
4178 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4179 set dummy gmsgfmt; ac_word=$2
4180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_word" >&5
4182 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4184 else
4185 case "$GMSGFMT" in
4187 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4189 ?:/*)
4190 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4194 ac_dummy="$PATH"
4195 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f $ac_dir/$ac_word; then
4198 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4199 break
4201 done
4202 IFS="$ac_save_ifs"
4203 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4205 esac
4207 GMSGFMT="$ac_cv_path_GMSGFMT"
4208 if test -n "$GMSGFMT"; then
4209 echo "$ac_t""$GMSGFMT" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4214 # Extract the first word of "xgettext", so it can be a program name with args.
4215 set dummy xgettext; ac_word=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4220 else
4221 case "$XGETTEXT" in
4223 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4227 for ac_dir in $PATH; do
4228 test -z "$ac_dir" && ac_dir=.
4229 if test -f $ac_dir/$ac_word; then
4230 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4231 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4232 break
4235 done
4236 IFS="$ac_save_ifs"
4237 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4239 esac
4241 XGETTEXT="$ac_cv_path_XGETTEXT"
4242 if test -n "$XGETTEXT"; then
4243 echo "$ac_t""$XGETTEXT" 1>&6
4244 else
4245 echo "$ac_t""no" 1>&6
4249 USE_INCLUDED_LIBINTL=yes
4250 CATOBJEXT=.gmo
4251 INSTOBJEXT=.mo
4252 DATADIRNAME=share
4253 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4254 INTLLIBS=$INTLDEPS
4255 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4256 nls_cv_header_intl=libintl.h
4257 nls_cv_header_libgt=libgettext.h
4260 if test "$XGETTEXT" != ":"; then
4261 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4263 else
4264 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4265 XGETTEXT=":"
4269 # We need to process the po/ directory.
4270 POSUB=po
4271 else
4272 DATADIRNAME=share
4273 nls_cv_header_intl=libintl.h
4274 nls_cv_header_libgt=libgettext.h
4277 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4278 # because some of the sources are only built for this goal.
4279 if test "$PACKAGE" = gettext; then
4280 USE_NLS=yes
4281 USE_INCLUDED_LIBINTL=yes
4284 for lang in $ALL_LINGUAS; do
4285 GMOFILES="$GMOFILES $lang.gmo"
4286 POFILES="$POFILES $lang.po"
4287 done
4302 if test "x$CATOBJEXT" != "x"; then
4303 if test "x$ALL_LINGUAS" = "x"; then
4304 LINGUAS=
4305 else
4306 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4307 echo "configure:4308: checking for catalogs to be installed" >&5
4308 NEW_LINGUAS=
4309 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4310 case "$ALL_LINGUAS" in
4311 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4312 esac
4313 done
4314 LINGUAS=$NEW_LINGUAS
4315 echo "$ac_t""$LINGUAS" 1>&6
4318 if test -n "$LINGUAS"; then
4319 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4323 if test $ac_cv_header_locale_h = yes; then
4324 INCLUDE_LOCALE_H="#include <locale.h>"
4325 else
4326 INCLUDE_LOCALE_H="\
4327 /* The system does not provide the header <locale.h>. Take care yourself. */"
4331 if test -f $srcdir/po2tbl.sed.in; then
4332 if test "$CATOBJEXT" = ".cat"; then
4333 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4335 echo "configure:4336: checking for linux/version.h" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <linux/version.h>
4344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4348 rm -rf conftest*
4349 eval "ac_cv_header_$ac_safe=yes"
4350 else
4351 echo "$ac_err" >&5
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 rm -rf conftest*
4355 eval "ac_cv_header_$ac_safe=no"
4357 rm -f conftest*
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4361 msgformat=linux
4362 else
4363 echo "$ac_t""no" 1>&6
4364 msgformat=xopen
4368 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4370 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4371 $srcdir/po2tbl.sed.in > po2tbl.sed
4374 if test "$PACKAGE" = "gettext"; then
4375 GT_NO="#NO#"
4376 GT_YES=
4377 else
4378 GT_NO=
4379 GT_YES="#YES#"
4384 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4390 if test -f $srcdir/po/POTFILES.in; then
4391 test -d po || mkdir po
4392 if test "x$srcdir" != "x."; then
4393 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4394 posrcprefix="$srcdir/"
4395 else
4396 posrcprefix="../$srcdir/"
4398 else
4399 posrcprefix="../"
4401 rm -f po/POTFILES
4402 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4403 < $srcdir/po/POTFILES.in > po/POTFILES
4407 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether to enable maintainer-specific portions of Makefiles" >&5
4409 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4410 if test "${enable_maintainer_mode+set}" = set; then
4411 enableval="$enable_maintainer_mode"
4412 USE_MAINTAINER_MODE=$enableval
4413 else
4414 USE_MAINTAINER_MODE=no
4417 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4420 if test $USE_MAINTAINER_MODE = yes; then
4421 MAINTAINER_MODE_TRUE=
4422 MAINTAINER_MODE_FALSE='#'
4423 else
4424 MAINTAINER_MODE_TRUE='#'
4425 MAINTAINER_MODE_FALSE=
4427 MAINT=$MAINTAINER_MODE_TRUE
4432 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4433 echo "configure:4434: checking for executable suffix" >&5
4434 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4436 else
4437 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4438 ac_cv_exeext=.exe
4439 else
4440 rm -f conftest*
4441 echo 'int main () { return 0; }' > conftest.$ac_ext
4442 ac_cv_exeext=
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4444 for file in conftest.*; do
4445 case $file in
4446 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4447 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4448 esac
4449 done
4450 else
4451 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4453 rm -f conftest*
4454 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4458 EXEEXT=""
4459 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4460 echo "$ac_t""${ac_cv_exeext}" 1>&6
4461 ac_exeext=$EXEEXT
4463 if test -n "$EXEEXT"; then
4464 cat >> confdefs.h <<\EOF
4465 #define HAVE_EXECUTABLE_SUFFIX 1
4469 cat >> confdefs.h <<EOF
4470 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4474 # host-specific stuff:
4476 HDEFINES=
4478 . ${srcdir}/../bfd/configure.host
4481 AR=${AR-ar}
4483 # Extract the first word of "ranlib", so it can be a program name with args.
4484 set dummy ranlib; ac_word=$2
4485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4486 echo "configure:4487: checking for $ac_word" >&5
4487 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4489 else
4490 if test -n "$RANLIB"; then
4491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4492 else
4493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4494 ac_dummy="$PATH"
4495 for ac_dir in $ac_dummy; do
4496 test -z "$ac_dir" && ac_dir=.
4497 if test -f $ac_dir/$ac_word; then
4498 ac_cv_prog_RANLIB="ranlib"
4499 break
4501 done
4502 IFS="$ac_save_ifs"
4503 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4506 RANLIB="$ac_cv_prog_RANLIB"
4507 if test -n "$RANLIB"; then
4508 echo "$ac_t""$RANLIB" 1>&6
4509 else
4510 echo "$ac_t""no" 1>&6
4513 # Find a good install program. We prefer a C program (faster),
4514 # so one script is as good as another. But avoid the broken or
4515 # incompatible versions:
4516 # SysV /etc/install, /usr/sbin/install
4517 # SunOS /usr/etc/install
4518 # IRIX /sbin/install
4519 # AIX /bin/install
4520 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4523 # ./install, which can be erroneously created by make from ./install.sh.
4524 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4525 echo "configure:4526: checking for a BSD compatible install" >&5
4526 if test -z "$INSTALL"; then
4527 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4531 for ac_dir in $PATH; do
4532 # Account for people who put trailing slashes in PATH elements.
4533 case "$ac_dir/" in
4534 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4536 # OSF1 and SCO ODT 3.0 have their own names for install.
4537 # Don't use installbsd from OSF since it installs stuff as root
4538 # by default.
4539 for ac_prog in ginstall scoinst install; do
4540 if test -f $ac_dir/$ac_prog; then
4541 if test $ac_prog = install &&
4542 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4543 # AIX install. It has an incompatible calling convention.
4545 else
4546 ac_cv_path_install="$ac_dir/$ac_prog -c"
4547 break 2
4550 done
4552 esac
4553 done
4554 IFS="$ac_save_IFS"
4557 if test "${ac_cv_path_install+set}" = set; then
4558 INSTALL="$ac_cv_path_install"
4559 else
4560 # As a last resort, use the slow shell script. We don't cache a
4561 # path for INSTALL within a source directory, because that will
4562 # break other packages using the cache if that directory is
4563 # removed, or if the path is relative.
4564 INSTALL="$ac_install_sh"
4567 echo "$ac_t""$INSTALL" 1>&6
4569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4570 # It thinks the first close brace ends the variable substitution.
4571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4578 # Put a plausible default for CC_FOR_BUILD in Makefile.
4579 if test -z "$CC_FOR_BUILD"; then
4580 if test "x$cross_compiling" = "xno"; then
4581 CC_FOR_BUILD='$(CC)'
4582 else
4583 CC_FOR_BUILD=gcc
4587 # Also set EXEEXT_FOR_BUILD.
4588 if test "x$cross_compiling" = "xno"; then
4589 EXEEXT_FOR_BUILD='$(EXEEXT)'
4590 else
4591 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4592 echo "configure:4593: checking for build system executable suffix" >&5
4593 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 rm -f conftest*
4597 echo 'int main () { return 0; }' > conftest.c
4598 bfd_cv_build_exeext=
4599 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4600 for file in conftest.*; do
4601 case $file in
4602 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4603 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4604 esac
4605 done
4606 rm -f conftest*
4607 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4610 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4611 EXEEXT_FOR_BUILD=""
4612 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4616 DEMANGLER_NAME=c++filt
4617 case "${host}" in
4618 *-*-go32* | *-*-msdos*)
4619 DEMANGLER_NAME=cxxfilt
4620 esac
4623 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_hdr" >&5
4628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4630 else
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 #include <$ac_hdr>
4636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4637 { (eval echo configure:4638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4639 if test -z "$ac_err"; then
4640 rm -rf conftest*
4641 eval "ac_cv_header_$ac_safe=yes"
4642 else
4643 echo "$ac_err" >&5
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 rm -rf conftest*
4647 eval "ac_cv_header_$ac_safe=no"
4649 rm -f conftest*
4651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_hdr 1
4658 else
4659 echo "$ac_t""no" 1>&6
4661 done
4663 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4664 echo "configure:4665: checking for sys/wait.h that is POSIX.1 compatible" >&5
4665 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 #include <sys/types.h>
4672 #include <sys/wait.h>
4673 #ifndef WEXITSTATUS
4674 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4675 #endif
4676 #ifndef WIFEXITED
4677 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4678 #endif
4679 int main() {
4680 int s;
4681 wait (&s);
4682 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4683 ; return 0; }
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686 rm -rf conftest*
4687 ac_cv_header_sys_wait_h=yes
4688 else
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 rm -rf conftest*
4692 ac_cv_header_sys_wait_h=no
4694 rm -f conftest*
4697 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4698 if test $ac_cv_header_sys_wait_h = yes; then
4699 cat >> confdefs.h <<\EOF
4700 #define HAVE_SYS_WAIT_H 1
4705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4706 # for constant arguments. Useless!
4707 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4708 echo "configure:4709: checking for working alloca.h" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4711 else
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 #include <alloca.h>
4716 int main() {
4717 char *p = alloca(2 * sizeof(int));
4718 ; return 0; }
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 rm -rf conftest*
4722 ac_cv_header_alloca_h=yes
4723 else
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 rm -rf conftest*
4727 ac_cv_header_alloca_h=no
4729 rm -f conftest*
4732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4733 if test $ac_cv_header_alloca_h = yes; then
4734 cat >> confdefs.h <<\EOF
4735 #define HAVE_ALLOCA_H 1
4740 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4741 echo "configure:4742: checking for alloca" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4749 #ifdef __GNUC__
4750 # define alloca __builtin_alloca
4751 #else
4752 # ifdef _MSC_VER
4753 # include <malloc.h>
4754 # define alloca _alloca
4755 # else
4756 # if HAVE_ALLOCA_H
4757 # include <alloca.h>
4758 # else
4759 # ifdef _AIX
4760 #pragma alloca
4761 # else
4762 # ifndef alloca /* predefined by HP cc +Olibcalls */
4763 char *alloca ();
4764 # endif
4765 # endif
4766 # endif
4767 # endif
4768 #endif
4770 int main() {
4771 char *p = (char *) alloca(1);
4772 ; return 0; }
4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4775 rm -rf conftest*
4776 ac_cv_func_alloca_works=yes
4777 else
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 rm -rf conftest*
4781 ac_cv_func_alloca_works=no
4783 rm -f conftest*
4786 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4787 if test $ac_cv_func_alloca_works = yes; then
4788 cat >> confdefs.h <<\EOF
4789 #define HAVE_ALLOCA 1
4794 if test $ac_cv_func_alloca_works = no; then
4795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4796 # that cause trouble. Some versions do not even contain alloca or
4797 # contain a buggy version. If you still want to use their alloca,
4798 # use ar to extract alloca.o from them instead of compiling alloca.c.
4799 ALLOCA=alloca.${ac_objext}
4800 cat >> confdefs.h <<\EOF
4801 #define C_ALLOCA 1
4805 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4806 echo "configure:4807: checking whether alloca needs Cray hooks" >&5
4807 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4809 else
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #if defined(CRAY) && ! defined(CRAY2)
4814 webecray
4815 #else
4816 wenotbecray
4817 #endif
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 egrep "webecray" >/dev/null 2>&1; then
4822 rm -rf conftest*
4823 ac_cv_os_cray=yes
4824 else
4825 rm -rf conftest*
4826 ac_cv_os_cray=no
4828 rm -f conftest*
4832 echo "$ac_t""$ac_cv_os_cray" 1>&6
4833 if test $ac_cv_os_cray = yes; then
4834 for ac_func in _getb67 GETB67 getb67; do
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5
4837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4839 else
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func(); below. */
4845 #include <assert.h>
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4849 char $ac_func();
4851 int main() {
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 choke me
4858 #else
4859 $ac_func();
4860 #endif
4862 ; return 0; }
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 rm -rf conftest*
4866 eval "ac_cv_func_$ac_func=yes"
4867 else
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 rm -rf conftest*
4871 eval "ac_cv_func_$ac_func=no"
4873 rm -f conftest*
4876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 cat >> confdefs.h <<EOF
4879 #define CRAY_STACKSEG_END $ac_func
4882 break
4883 else
4884 echo "$ac_t""no" 1>&6
4887 done
4890 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4891 echo "configure:4892: checking stack direction for C alloca" >&5
4892 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4894 else
4895 if test "$cross_compiling" = yes; then
4896 ac_cv_c_stack_direction=0
4897 else
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 find_stack_direction ()
4903 static char *addr = 0;
4904 auto char dummy;
4905 if (addr == 0)
4907 addr = &dummy;
4908 return find_stack_direction ();
4910 else
4911 return (&dummy > addr) ? 1 : -1;
4913 main ()
4915 exit (find_stack_direction() < 0);
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4919 then
4920 ac_cv_c_stack_direction=1
4921 else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 rm -fr conftest*
4925 ac_cv_c_stack_direction=-1
4927 rm -fr conftest*
4932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4933 cat >> confdefs.h <<EOF
4934 #define STACK_DIRECTION $ac_cv_c_stack_direction
4939 for ac_func in sbrk utimes setmode getc_unlocked strcoll
4941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4942 echo "configure:4943: checking for $ac_func" >&5
4943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945 else
4946 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 /* System header to define __stub macros and hopefully few prototypes,
4950 which can conflict with char $ac_func(); below. */
4951 #include <assert.h>
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4955 char $ac_func();
4957 int main() {
4959 /* The GNU C library defines this for functions which it implements
4960 to always fail with ENOSYS. Some functions are actually named
4961 something starting with __ and the normal name is an alias. */
4962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963 choke me
4964 #else
4965 $ac_func();
4966 #endif
4968 ; return 0; }
4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 rm -rf conftest*
4972 eval "ac_cv_func_$ac_func=yes"
4973 else
4974 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5
4976 rm -rf conftest*
4977 eval "ac_cv_func_$ac_func=no"
4979 rm -f conftest*
4982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4985 cat >> confdefs.h <<EOF
4986 #define $ac_tr_func 1
4989 else
4990 echo "$ac_t""no" 1>&6
4992 done
4995 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
4996 # needs to be defined for it
4997 echo $ac_n "checking for fopen64""... $ac_c" 1>&6
4998 echo "configure:4999: checking for fopen64" >&5
4999 if eval "test \"`echo '$''{'bu_cv_have_fopen64'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5001 else
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 #include <stdio.h>
5006 int main() {
5007 FILE *f = fopen64 ("/tmp/foo","r");
5008 ; return 0; }
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 rm -rf conftest*
5012 bu_cv_have_fopen64=yes
5013 else
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5016 rm -rf conftest*
5017 saved_CPPFLAGS=$CPPFLAGS
5018 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 #include <stdio.h>
5023 int main() {
5024 FILE *f = fopen64 ("/tmp/foo","r");
5025 ; return 0; }
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 rm -rf conftest*
5029 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5030 else
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 rm -rf conftest*
5034 bu_cv_have_fopen64=no
5036 rm -f conftest*
5037 CPPFLAGS=$saved_CPPFLAGS
5039 rm -f conftest*
5042 echo "$ac_t""$bu_cv_have_fopen64" 1>&6
5043 if test "$bu_cv_have_fopen64" != no; then
5044 cat >> confdefs.h <<\EOF
5045 #define HAVE_FOPEN64 1
5048 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
5049 cat >> confdefs.h <<\EOF
5050 #define _LARGEFILE64_SOURCE 1
5056 # Some systems have frexp only in -lm, not in -lc.
5058 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
5059 echo "configure:5060: checking for library containing frexp" >&5
5060 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063 ac_func_search_save_LIBS="$LIBS"
5064 ac_cv_search_frexp="no"
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5068 /* Override any gcc2 internal prototype to avoid an error. */
5069 /* We use char because int might match the return type of a gcc2
5070 builtin and then its argument prototype would still apply. */
5071 char frexp();
5073 int main() {
5074 frexp()
5075 ; return 0; }
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 rm -rf conftest*
5079 ac_cv_search_frexp="none required"
5080 else
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 rm -f conftest*
5085 test "$ac_cv_search_frexp" = "no" && for i in m; do
5086 LIBS="-l$i $ac_func_search_save_LIBS"
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 /* Override any gcc2 internal prototype to avoid an error. */
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5093 char frexp();
5095 int main() {
5096 frexp()
5097 ; return 0; }
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 rm -rf conftest*
5101 ac_cv_search_frexp="-l$i"
5102 break
5103 else
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 rm -f conftest*
5108 done
5109 LIBS="$ac_func_search_save_LIBS"
5112 echo "$ac_t""$ac_cv_search_frexp" 1>&6
5113 if test "$ac_cv_search_frexp" != "no"; then
5114 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
5116 else :
5120 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5121 echo "configure:5122: checking for time_t in time.h" >&5
5122 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5124 else
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #include <time.h>
5129 int main() {
5130 time_t i;
5131 ; return 0; }
5133 if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5134 rm -rf conftest*
5135 bu_cv_decl_time_t_time_h=yes
5136 else
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 rm -rf conftest*
5140 bu_cv_decl_time_t_time_h=no
5142 rm -f conftest*
5145 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5146 if test $bu_cv_decl_time_t_time_h = yes; then
5147 cat >> confdefs.h <<\EOF
5148 #define HAVE_TIME_T_IN_TIME_H 1
5153 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5154 echo "configure:5155: checking for time_t in sys/types.h" >&5
5155 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 #include <sys/types.h>
5162 int main() {
5163 time_t i;
5164 ; return 0; }
5166 if { (eval echo configure:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 rm -rf conftest*
5168 bu_cv_decl_time_t_types_h=yes
5169 else
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 rm -rf conftest*
5173 bu_cv_decl_time_t_types_h=no
5175 rm -f conftest*
5178 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5179 if test $bu_cv_decl_time_t_types_h = yes; then
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_TIME_T_IN_TYPES_H 1
5186 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5187 # by default.
5188 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5189 echo "configure:5190: checking for utime.h" >&5
5190 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 #include <sys/types.h>
5197 #ifdef HAVE_TIME_H
5198 #include <time.h>
5199 #endif
5200 #include <utime.h>
5201 int main() {
5202 struct utimbuf s;
5203 ; return 0; }
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5206 rm -rf conftest*
5207 bu_cv_header_utime_h=yes
5208 else
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 rm -rf conftest*
5212 bu_cv_header_utime_h=no
5214 rm -f conftest*
5217 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5218 if test $bu_cv_header_utime_h = yes; then
5219 cat >> confdefs.h <<\EOF
5220 #define HAVE_GOOD_UTIME_H 1
5225 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5226 echo "configure:5227: checking whether fprintf must be declared" >&5
5227 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5229 else
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5234 #include <stdio.h>
5235 #ifdef HAVE_STRING_H
5236 #include <string.h>
5237 #else
5238 #ifdef HAVE_STRINGS_H
5239 #include <strings.h>
5240 #endif
5241 #endif
5242 #ifdef HAVE_STDLIB_H
5243 #include <stdlib.h>
5244 #endif
5245 #ifdef HAVE_UNISTD_H
5246 #include <unistd.h>
5247 #endif
5248 int main() {
5249 char *(*pfn) = (char *(*)) fprintf
5250 ; return 0; }
5252 if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5253 rm -rf conftest*
5254 bfd_cv_decl_needed_fprintf=no
5255 else
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 rm -rf conftest*
5259 bfd_cv_decl_needed_fprintf=yes
5261 rm -f conftest*
5264 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5265 if test $bfd_cv_decl_needed_fprintf = yes; then
5266 cat >> confdefs.h <<\EOF
5267 #define NEED_DECLARATION_FPRINTF 1
5272 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5273 echo "configure:5274: checking whether strstr must be declared" >&5
5274 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5281 #include <stdio.h>
5282 #ifdef HAVE_STRING_H
5283 #include <string.h>
5284 #else
5285 #ifdef HAVE_STRINGS_H
5286 #include <strings.h>
5287 #endif
5288 #endif
5289 #ifdef HAVE_STDLIB_H
5290 #include <stdlib.h>
5291 #endif
5292 #ifdef HAVE_UNISTD_H
5293 #include <unistd.h>
5294 #endif
5295 int main() {
5296 char *(*pfn) = (char *(*)) strstr
5297 ; return 0; }
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 rm -rf conftest*
5301 bfd_cv_decl_needed_strstr=no
5302 else
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 rm -rf conftest*
5306 bfd_cv_decl_needed_strstr=yes
5308 rm -f conftest*
5311 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5312 if test $bfd_cv_decl_needed_strstr = yes; then
5313 cat >> confdefs.h <<\EOF
5314 #define NEED_DECLARATION_STRSTR 1
5319 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5320 echo "configure:5321: checking whether sbrk must be declared" >&5
5321 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5323 else
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5328 #include <stdio.h>
5329 #ifdef HAVE_STRING_H
5330 #include <string.h>
5331 #else
5332 #ifdef HAVE_STRINGS_H
5333 #include <strings.h>
5334 #endif
5335 #endif
5336 #ifdef HAVE_STDLIB_H
5337 #include <stdlib.h>
5338 #endif
5339 #ifdef HAVE_UNISTD_H
5340 #include <unistd.h>
5341 #endif
5342 int main() {
5343 char *(*pfn) = (char *(*)) sbrk
5344 ; return 0; }
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5347 rm -rf conftest*
5348 bfd_cv_decl_needed_sbrk=no
5349 else
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 rm -rf conftest*
5353 bfd_cv_decl_needed_sbrk=yes
5355 rm -f conftest*
5358 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5359 if test $bfd_cv_decl_needed_sbrk = yes; then
5360 cat >> confdefs.h <<\EOF
5361 #define NEED_DECLARATION_SBRK 1
5366 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5367 echo "configure:5368: checking whether getenv must be declared" >&5
5368 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5375 #include <stdio.h>
5376 #ifdef HAVE_STRING_H
5377 #include <string.h>
5378 #else
5379 #ifdef HAVE_STRINGS_H
5380 #include <strings.h>
5381 #endif
5382 #endif
5383 #ifdef HAVE_STDLIB_H
5384 #include <stdlib.h>
5385 #endif
5386 #ifdef HAVE_UNISTD_H
5387 #include <unistd.h>
5388 #endif
5389 int main() {
5390 char *(*pfn) = (char *(*)) getenv
5391 ; return 0; }
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5394 rm -rf conftest*
5395 bfd_cv_decl_needed_getenv=no
5396 else
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5399 rm -rf conftest*
5400 bfd_cv_decl_needed_getenv=yes
5402 rm -f conftest*
5405 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5406 if test $bfd_cv_decl_needed_getenv = yes; then
5407 cat >> confdefs.h <<\EOF
5408 #define NEED_DECLARATION_GETENV 1
5413 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5414 echo "configure:5415: checking whether environ must be declared" >&5
5415 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5417 else
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5422 #include <stdio.h>
5423 #ifdef HAVE_STRING_H
5424 #include <string.h>
5425 #else
5426 #ifdef HAVE_STRINGS_H
5427 #include <strings.h>
5428 #endif
5429 #endif
5430 #ifdef HAVE_STDLIB_H
5431 #include <stdlib.h>
5432 #endif
5433 #ifdef HAVE_UNISTD_H
5434 #include <unistd.h>
5435 #endif
5436 int main() {
5437 char *(*pfn) = (char *(*)) environ
5438 ; return 0; }
5440 if { (eval echo configure:5441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5441 rm -rf conftest*
5442 bfd_cv_decl_needed_environ=no
5443 else
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 rm -rf conftest*
5447 bfd_cv_decl_needed_environ=yes
5449 rm -f conftest*
5452 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5453 if test $bfd_cv_decl_needed_environ = yes; then
5454 cat >> confdefs.h <<\EOF
5455 #define NEED_DECLARATION_ENVIRON 1
5462 case "${host}" in
5463 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464 cat >> confdefs.h <<\EOF
5465 #define USE_BINARY_FOPEN 1
5468 esac
5470 # target-specific stuff:
5472 # Canonicalize the secondary target names.
5473 if test -n "$enable_targets"; then
5474 for targ in `echo $enable_targets | sed 's/,/ /g'`
5476 result=`$ac_config_sub $targ 2>/dev/null`
5477 if test -n "$result"; then
5478 canon_targets="$canon_targets $result"
5479 else
5480 # Allow targets that config.sub doesn't recognize, like "all".
5481 canon_targets="$canon_targets $targ"
5483 done
5486 all_targets=false
5487 BUILD_NLMCONV=
5488 NLMCONV_DEFS=
5489 BUILD_SRCONV=
5490 BUILD_DLLTOOL=
5491 DLLTOOL_DEFS=
5492 BUILD_WINDRES=
5493 BUILD_DLLWRAP=
5494 BUILD_MISC=
5495 OBJDUMP_DEFS=
5497 for targ in $target $canon_targets
5499 if test "x$targ" = "xall"; then
5500 all_targets=true
5501 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5502 BUILD_SRCONV='$(SRCONV_PROG)'
5503 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5504 else
5505 case $targ in
5506 i[3-7]86*-*-netware*)
5507 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5508 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5510 alpha*-*-netware*)
5511 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5512 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5514 powerpc*-*-netware*)
5515 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5516 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5518 sparc*-*-netware*)
5519 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5520 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5522 esac
5523 case $targ in
5524 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5525 esac
5526 case $targ in
5527 arm-epoc-pe*)
5528 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5529 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5530 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5532 arm-*-pe* | arm-*-wince)
5533 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5534 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5535 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5537 thumb-*-pe*)
5538 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5539 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5540 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5542 arm*-* | xscale-* | strongarm-* | d10v-*)
5543 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5545 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
5546 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5547 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5548 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5549 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5551 i[3-7]86-*-interix)
5552 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5553 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5555 powerpc*-aix5.[01])
5557 powerpc*-aix5.*)
5558 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
5560 powerpc*-*-pe* | powerpc*-*-cygwin*)
5561 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5562 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5563 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5565 sh*-*-pe)
5566 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5567 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5568 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5570 mips*-*-pe)
5571 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5572 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5573 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5575 mcore-*-pe)
5576 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5577 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5578 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5580 mcore-*-elf)
5581 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5582 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5584 c4x-*-* | tic4x-*-*)
5585 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=32"
5587 ia64-*-*)
5588 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=16"
5590 esac
5592 done
5594 if test "${with_windres+set}" = set; then
5595 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5608 cat >> confdefs.h <<EOF
5609 #define TARGET "${target}"
5613 targ=$target
5614 . $srcdir/../bfd/config.bfd
5615 if test "x$targ_underscore" = "xyes"; then
5616 UNDERSCORE=1
5617 else
5618 UNDERSCORE=0
5620 cat >> confdefs.h <<EOF
5621 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
5625 # Emulation
5626 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5628 # Canonicalize the secondary target names.
5629 result=`$ac_config_sub $targ_alias 2>/dev/null`
5630 if test -n "$result"; then
5631 targ=$result
5632 else
5633 targ=$targ_alias
5636 . ${srcdir}/configure.tgt
5638 EMULATION=$targ_emul
5639 EMULATION_VECTOR=$targ_emul_vector
5640 done
5645 trap '' 1 2 15
5646 cat > confcache <<\EOF
5647 # This file is a shell script that caches the results of configure
5648 # tests run on this system so they can be shared between configure
5649 # scripts and configure runs. It is not useful on other systems.
5650 # If it contains results you don't want to keep, you may remove or edit it.
5652 # By default, configure uses ./config.cache as the cache file,
5653 # creating it if it does not exist already. You can give configure
5654 # the --cache-file=FILE option to use a different cache file; that is
5655 # what configure does when it calls configure scripts in
5656 # subdirectories, so they share the cache.
5657 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5658 # config.status only pays attention to the cache file if you give it the
5659 # --recheck option to rerun configure.
5662 # The following way of writing the cache mishandles newlines in values,
5663 # but we know of no workaround that is simple, portable, and efficient.
5664 # So, don't put newlines in cache variables' values.
5665 # Ultrix sh set writes to stderr and can't be redirected directly,
5666 # and sets the high bit in the cache file unless we assign to the vars.
5667 (set) 2>&1 |
5668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5669 *ac_space=\ *)
5670 # `set' does not quote correctly, so add quotes (double-quote substitution
5671 # turns \\\\ into \\, and sed turns \\ into \).
5672 sed -n \
5673 -e "s/'/'\\\\''/g" \
5674 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5677 # `set' quotes correctly as required by POSIX, so do not add quotes.
5678 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5680 esac >> confcache
5681 if cmp -s $cache_file confcache; then
5683 else
5684 if test -w $cache_file; then
5685 echo "updating cache $cache_file"
5686 cat confcache > $cache_file
5687 else
5688 echo "not updating unwritable cache $cache_file"
5691 rm -f confcache
5693 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5695 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5696 # Let make expand exec_prefix.
5697 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5699 # Any assignment to VPATH causes Sun make to only execute
5700 # the first set of double-colon rules, so remove it if not needed.
5701 # If there is a colon in the path, we need to keep it.
5702 if test "x$srcdir" = x.; then
5703 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5706 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5708 DEFS=-DHAVE_CONFIG_H
5710 # Without the "./", some shells look in PATH for config.status.
5711 : ${CONFIG_STATUS=./config.status}
5713 echo creating $CONFIG_STATUS
5714 rm -f $CONFIG_STATUS
5715 cat > $CONFIG_STATUS <<EOF
5716 #! /bin/sh
5717 # Generated automatically by configure.
5718 # Run this file to recreate the current configuration.
5719 # This directory was configured as follows,
5720 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5722 # $0 $ac_configure_args
5724 # Compiler output produced by configure, useful for debugging
5725 # configure, is in ./config.log if it exists.
5727 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5728 for ac_option
5730 case "\$ac_option" in
5731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5732 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5733 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5734 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5735 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5736 exit 0 ;;
5737 -help | --help | --hel | --he | --h)
5738 echo "\$ac_cs_usage"; exit 0 ;;
5739 *) echo "\$ac_cs_usage"; exit 1 ;;
5740 esac
5741 done
5743 ac_given_srcdir=$srcdir
5744 ac_given_INSTALL="$INSTALL"
5746 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
5748 cat >> $CONFIG_STATUS <<EOF
5750 # Protect against being on the right side of a sed subst in config.status.
5751 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5752 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5753 $ac_vpsub
5754 $extrasub
5755 s%@SHELL@%$SHELL%g
5756 s%@CFLAGS@%$CFLAGS%g
5757 s%@CPPFLAGS@%$CPPFLAGS%g
5758 s%@CXXFLAGS@%$CXXFLAGS%g
5759 s%@FFLAGS@%$FFLAGS%g
5760 s%@DEFS@%$DEFS%g
5761 s%@LDFLAGS@%$LDFLAGS%g
5762 s%@LIBS@%$LIBS%g
5763 s%@exec_prefix@%$exec_prefix%g
5764 s%@prefix@%$prefix%g
5765 s%@program_transform_name@%$program_transform_name%g
5766 s%@bindir@%$bindir%g
5767 s%@sbindir@%$sbindir%g
5768 s%@libexecdir@%$libexecdir%g
5769 s%@datadir@%$datadir%g
5770 s%@sysconfdir@%$sysconfdir%g
5771 s%@sharedstatedir@%$sharedstatedir%g
5772 s%@localstatedir@%$localstatedir%g
5773 s%@libdir@%$libdir%g
5774 s%@includedir@%$includedir%g
5775 s%@oldincludedir@%$oldincludedir%g
5776 s%@infodir@%$infodir%g
5777 s%@mandir@%$mandir%g
5778 s%@host@%$host%g
5779 s%@host_alias@%$host_alias%g
5780 s%@host_cpu@%$host_cpu%g
5781 s%@host_vendor@%$host_vendor%g
5782 s%@host_os@%$host_os%g
5783 s%@target@%$target%g
5784 s%@target_alias@%$target_alias%g
5785 s%@target_cpu@%$target_cpu%g
5786 s%@target_vendor@%$target_vendor%g
5787 s%@target_os@%$target_os%g
5788 s%@build@%$build%g
5789 s%@build_alias@%$build_alias%g
5790 s%@build_cpu@%$build_cpu%g
5791 s%@build_vendor@%$build_vendor%g
5792 s%@build_os@%$build_os%g
5793 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5794 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5795 s%@INSTALL_DATA@%$INSTALL_DATA%g
5796 s%@PACKAGE@%$PACKAGE%g
5797 s%@VERSION@%$VERSION%g
5798 s%@ACLOCAL@%$ACLOCAL%g
5799 s%@AUTOCONF@%$AUTOCONF%g
5800 s%@AUTOMAKE@%$AUTOMAKE%g
5801 s%@AUTOHEADER@%$AUTOHEADER%g
5802 s%@MAKEINFO@%$MAKEINFO%g
5803 s%@SET_MAKE@%$SET_MAKE%g
5804 s%@CC@%$CC%g
5805 s%@LN_S@%$LN_S%g
5806 s%@OBJEXT@%$OBJEXT%g
5807 s%@EXEEXT@%$EXEEXT%g
5808 s%@RANLIB@%$RANLIB%g
5809 s%@STRIP@%$STRIP%g
5810 s%@LIBTOOL@%$LIBTOOL%g
5811 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5812 s%@YACC@%$YACC%g
5813 s%@LEX@%$LEX%g
5814 s%@LEXLIB@%$LEXLIB%g
5815 s%@CPP@%$CPP%g
5816 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5817 s%@ALLOCA@%$ALLOCA%g
5818 s%@USE_NLS@%$USE_NLS%g
5819 s%@MSGFMT@%$MSGFMT%g
5820 s%@GMSGFMT@%$GMSGFMT%g
5821 s%@XGETTEXT@%$XGETTEXT%g
5822 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5823 s%@CATALOGS@%$CATALOGS%g
5824 s%@CATOBJEXT@%$CATOBJEXT%g
5825 s%@DATADIRNAME@%$DATADIRNAME%g
5826 s%@GMOFILES@%$GMOFILES%g
5827 s%@INSTOBJEXT@%$INSTOBJEXT%g
5828 s%@INTLDEPS@%$INTLDEPS%g
5829 s%@INTLLIBS@%$INTLLIBS%g
5830 s%@INTLOBJS@%$INTLOBJS%g
5831 s%@POFILES@%$POFILES%g
5832 s%@POSUB@%$POSUB%g
5833 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5834 s%@GT_NO@%$GT_NO%g
5835 s%@GT_YES@%$GT_YES%g
5836 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5837 s%@l@%$l%g
5838 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5839 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5840 s%@MAINT@%$MAINT%g
5841 s%@HDEFINES@%$HDEFINES%g
5842 s%@AR@%$AR%g
5843 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5844 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5845 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5846 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5847 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5848 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5849 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5850 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5851 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5852 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5853 s%@BUILD_MISC@%$BUILD_MISC%g
5854 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5855 s%@EMULATION@%$EMULATION%g
5856 s%@EMULATION_VECTOR@%$EMULATION_VECTOR%g
5858 CEOF
5861 cat >> $CONFIG_STATUS <<\EOF
5863 # Split the substitutions into bite-sized pieces for seds with
5864 # small command number limits, like on Digital OSF/1 and HP-UX.
5865 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5866 ac_file=1 # Number of current file.
5867 ac_beg=1 # First line for current file.
5868 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5869 ac_more_lines=:
5870 ac_sed_cmds=""
5871 while $ac_more_lines; do
5872 if test $ac_beg -gt 1; then
5873 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5874 else
5875 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5877 if test ! -s conftest.s$ac_file; then
5878 ac_more_lines=false
5879 rm -f conftest.s$ac_file
5880 else
5881 if test -z "$ac_sed_cmds"; then
5882 ac_sed_cmds="sed -f conftest.s$ac_file"
5883 else
5884 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5886 ac_file=`expr $ac_file + 1`
5887 ac_beg=$ac_end
5888 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5890 done
5891 if test -z "$ac_sed_cmds"; then
5892 ac_sed_cmds=cat
5896 cat >> $CONFIG_STATUS <<EOF
5898 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile po/Makefile.in:po/Make-in"}
5900 cat >> $CONFIG_STATUS <<\EOF
5901 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5903 case "$ac_file" in
5904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5906 *) ac_file_in="${ac_file}.in" ;;
5907 esac
5909 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5911 # Remove last slash and all that follows it. Not all systems have dirname.
5912 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5913 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5914 # The file is in a subdirectory.
5915 test ! -d "$ac_dir" && mkdir "$ac_dir"
5916 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5917 # A "../" for each directory in $ac_dir_suffix.
5918 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5919 else
5920 ac_dir_suffix= ac_dots=
5923 case "$ac_given_srcdir" in
5924 .) srcdir=.
5925 if test -z "$ac_dots"; then top_srcdir=.
5926 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5927 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5928 *) # Relative path.
5929 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5930 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5931 esac
5933 case "$ac_given_INSTALL" in
5934 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5935 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5936 esac
5938 echo creating "$ac_file"
5939 rm -f "$ac_file"
5940 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5941 case "$ac_file" in
5942 *Makefile*) ac_comsub="1i\\
5943 # $configure_input" ;;
5944 *) ac_comsub= ;;
5945 esac
5947 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5948 sed -e "$ac_comsub
5949 s%@configure_input@%$configure_input%g
5950 s%@srcdir@%$srcdir%g
5951 s%@top_srcdir@%$top_srcdir%g
5952 s%@INSTALL@%$INSTALL%g
5953 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5954 fi; done
5955 rm -f conftest.s*
5957 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5958 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5960 # ac_d sets the value in "#define NAME VALUE" lines.
5961 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5962 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5963 ac_dC='\3'
5964 ac_dD='%g'
5965 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5966 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5967 ac_uB='\([ ]\)%\1#\2define\3'
5968 ac_uC=' '
5969 ac_uD='\4%g'
5970 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5971 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5972 ac_eB='$%\1#\2define\3'
5973 ac_eC=' '
5974 ac_eD='%g'
5976 if test "${CONFIG_HEADERS+set}" != set; then
5978 cat >> $CONFIG_STATUS <<EOF
5979 CONFIG_HEADERS="config.h:config.in"
5981 cat >> $CONFIG_STATUS <<\EOF
5983 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5985 case "$ac_file" in
5986 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5987 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5988 *) ac_file_in="${ac_file}.in" ;;
5989 esac
5991 echo creating $ac_file
5993 rm -f conftest.frag conftest.in conftest.out
5994 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5995 cat $ac_file_inputs > conftest.in
5999 # Transform confdefs.h into a sed script conftest.vals that substitutes
6000 # the proper values into config.h.in to produce config.h. And first:
6001 # Protect against being on the right side of a sed subst in config.status.
6002 # Protect against being in an unquoted here document in config.status.
6003 rm -f conftest.vals
6004 cat > conftest.hdr <<\EOF
6005 s/[\\&%]/\\&/g
6006 s%[\\$`]%\\&%g
6007 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6008 s%ac_d%ac_u%gp
6009 s%ac_u%ac_e%gp
6011 sed -n -f conftest.hdr confdefs.h > conftest.vals
6012 rm -f conftest.hdr
6014 # This sed command replaces #undef with comments. This is necessary, for
6015 # example, in the case of _POSIX_SOURCE, which is predefined and required
6016 # on some systems where configure will not decide to define it.
6017 cat >> conftest.vals <<\EOF
6018 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6021 # Break up conftest.vals because some shells have a limit on
6022 # the size of here documents, and old seds have small limits too.
6024 rm -f conftest.tail
6025 while :
6027 ac_lines=`grep -c . conftest.vals`
6028 # grep -c gives empty output for an empty file on some AIX systems.
6029 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6030 # Write a limited-size here document to conftest.frag.
6031 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6032 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6033 echo 'CEOF
6034 sed -f conftest.frag conftest.in > conftest.out
6035 rm -f conftest.in
6036 mv conftest.out conftest.in
6037 ' >> $CONFIG_STATUS
6038 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6039 rm -f conftest.vals
6040 mv conftest.tail conftest.vals
6041 done
6042 rm -f conftest.vals
6044 cat >> $CONFIG_STATUS <<\EOF
6045 rm -f conftest.frag conftest.h
6046 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6047 cat conftest.in >> conftest.h
6048 rm -f conftest.in
6049 if cmp -s $ac_file conftest.h 2>/dev/null; then
6050 echo "$ac_file is unchanged"
6051 rm -f conftest.h
6052 else
6053 # Remove last slash and all that follows it. Not all systems have dirname.
6054 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6056 # The file is in a subdirectory.
6057 test ! -d "$ac_dir" && mkdir "$ac_dir"
6059 rm -f $ac_file
6060 mv conftest.h $ac_file
6062 fi; done
6065 cat >> $CONFIG_STATUS <<EOF
6069 cat >> $CONFIG_STATUS <<\EOF
6070 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6072 case "x$CONFIG_FILES" in
6073 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
6074 esac
6076 exit 0
6078 chmod +x $CONFIG_STATUS
6079 rm -fr confdefs* $ac_clean_files
6080 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1