Update generated configure scripts.
[binutils.git] / binutils / configure
blobbfadf4746145b09834033fd646ccfd1ac683fa00
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 # Find a good install program. We prefer a C program (faster),
776 # so one script is as good as another. But avoid the broken or
777 # incompatible versions:
778 # SysV /etc/install, /usr/sbin/install
779 # SunOS /usr/etc/install
780 # IRIX /sbin/install
781 # AIX /bin/install
782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
785 # ./install, which can be erroneously created by make from ./install.sh.
786 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
787 echo "configure:788: checking for a BSD compatible install" >&5
788 if test -z "$INSTALL"; then
789 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791 else
792 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
793 for ac_dir in $PATH; do
794 # Account for people who put trailing slashes in PATH elements.
795 case "$ac_dir/" in
796 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
798 # OSF1 and SCO ODT 3.0 have their own names for install.
799 # Don't use installbsd from OSF since it installs stuff as root
800 # by default.
801 for ac_prog in ginstall scoinst install; do
802 if test -f $ac_dir/$ac_prog; then
803 if test $ac_prog = install &&
804 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
805 # AIX install. It has an incompatible calling convention.
807 else
808 ac_cv_path_install="$ac_dir/$ac_prog -c"
809 break 2
812 done
814 esac
815 done
816 IFS="$ac_save_IFS"
819 if test "${ac_cv_path_install+set}" = set; then
820 INSTALL="$ac_cv_path_install"
821 else
822 # As a last resort, use the slow shell script. We don't cache a
823 # path for INSTALL within a source directory, because that will
824 # break other packages using the cache if that directory is
825 # removed, or if the path is relative.
826 INSTALL="$ac_install_sh"
829 echo "$ac_t""$INSTALL" 1>&6
831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
832 # It thinks the first close brace ends the variable substitution.
833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
835 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
837 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
839 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
840 echo "configure:841: checking whether build environment is sane" >&5
841 # Just in case
842 sleep 1
843 echo timestamp > conftestfile
844 # Do `set' in a subshell so we don't clobber the current shell's
845 # arguments. Must try -L first in case configure is actually a
846 # symlink; some systems play weird games with the mod time of symlinks
847 # (eg FreeBSD returns the mod time of the symlink's containing
848 # directory).
849 if (
850 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
851 if test "$*" = "X"; then
852 # -L didn't work.
853 set X `ls -t $srcdir/configure conftestfile`
855 if test "$*" != "X $srcdir/configure conftestfile" \
856 && test "$*" != "X conftestfile $srcdir/configure"; then
858 # If neither matched, then we have a broken ls. This can happen
859 # if, for instance, CONFIG_SHELL is bash and it inherits a
860 # broken ls alias from the environment. This has actually
861 # happened. Such a system could not be considered "sane".
862 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
863 alias in your environment" 1>&2; exit 1; }
866 test "$2" = conftestfile
868 then
869 # Ok.
871 else
872 { echo "configure: error: newly created file is older than distributed files!
873 Check your system clock" 1>&2; exit 1; }
875 rm -f conftest*
876 echo "$ac_t""yes" 1>&6
877 if test "$program_transform_name" = s,x,x,; then
878 program_transform_name=
879 else
880 # Double any \ or $. echo might interpret backslashes.
881 cat <<\EOF_SED > conftestsed
882 s,\\,\\\\,g; s,\$,$$,g
883 EOF_SED
884 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
885 rm -f conftestsed
887 test "$program_prefix" != NONE &&
888 program_transform_name="s,^,${program_prefix},; $program_transform_name"
889 # Use a double $ so make ignores it.
890 test "$program_suffix" != NONE &&
891 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
893 # sed with no file args requires a program.
894 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
896 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
897 echo "configure:898: checking whether ${MAKE-make} sets \${MAKE}" >&5
898 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
899 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
901 else
902 cat > conftestmake <<\EOF
903 all:
904 @echo 'ac_maketemp="${MAKE}"'
906 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
907 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
908 if test -n "$ac_maketemp"; then
909 eval ac_cv_prog_make_${ac_make}_set=yes
910 else
911 eval ac_cv_prog_make_${ac_make}_set=no
913 rm -f conftestmake
915 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
916 echo "$ac_t""yes" 1>&6
917 SET_MAKE=
918 else
919 echo "$ac_t""no" 1>&6
920 SET_MAKE="MAKE=${MAKE-make}"
924 PACKAGE=binutils
926 VERSION=2.11
928 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
929 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
931 cat >> confdefs.h <<EOF
932 #define PACKAGE "$PACKAGE"
935 cat >> confdefs.h <<EOF
936 #define VERSION "$VERSION"
941 missing_dir=`cd $ac_aux_dir && pwd`
942 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
943 echo "configure:944: checking for working aclocal" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf. Sigh.
947 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
948 ACLOCAL=aclocal
949 echo "$ac_t""found" 1>&6
950 else
951 ACLOCAL="$missing_dir/missing aclocal"
952 echo "$ac_t""missing" 1>&6
955 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
956 echo "configure:957: checking for working autoconf" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf. Sigh.
960 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
961 AUTOCONF=autoconf
962 echo "$ac_t""found" 1>&6
963 else
964 AUTOCONF="$missing_dir/missing autoconf"
965 echo "$ac_t""missing" 1>&6
968 echo $ac_n "checking for working automake""... $ac_c" 1>&6
969 echo "configure:970: checking for working automake" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (automake --version) < /dev/null > /dev/null 2>&1; then
974 AUTOMAKE=automake
975 echo "$ac_t""found" 1>&6
976 else
977 AUTOMAKE="$missing_dir/missing automake"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoheader" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
987 AUTOHEADER=autoheader
988 echo "$ac_t""found" 1>&6
989 else
990 AUTOHEADER="$missing_dir/missing autoheader"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
995 echo "configure:996: checking for working makeinfo" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1000 MAKEINFO=makeinfo
1001 echo "$ac_t""found" 1>&6
1002 else
1003 MAKEINFO="$missing_dir/missing makeinfo"
1004 echo "$ac_t""missing" 1>&6
1009 # Check whether --enable-shared or --disable-shared was given.
1010 if test "${enable_shared+set}" = set; then
1011 enableval="$enable_shared"
1012 p=${PACKAGE-default}
1013 case "$enableval" in
1014 yes) enable_shared=yes ;;
1015 no) enable_shared=no ;;
1017 enable_shared=no
1018 # Look at the argument we got. We use all the common list separators.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1020 for pkg in $enableval; do
1021 if test "X$pkg" = "X$p"; then
1022 enable_shared=yes
1024 done
1025 IFS="$ac_save_ifs"
1027 esac
1028 else
1029 enable_shared=yes
1032 # Check whether --enable-static or --disable-static was given.
1033 if test "${enable_static+set}" = set; then
1034 enableval="$enable_static"
1035 p=${PACKAGE-default}
1036 case "$enableval" in
1037 yes) enable_static=yes ;;
1038 no) enable_static=no ;;
1040 enable_static=no
1041 # Look at the argument we got. We use all the common list separators.
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1043 for pkg in $enableval; do
1044 if test "X$pkg" = "X$p"; then
1045 enable_static=yes
1047 done
1048 IFS="$ac_save_ifs"
1050 esac
1051 else
1052 enable_static=yes
1055 # Check whether --enable-fast-install or --disable-fast-install was given.
1056 if test "${enable_fast_install+set}" = set; then
1057 enableval="$enable_fast_install"
1058 p=${PACKAGE-default}
1059 case "$enableval" in
1060 yes) enable_fast_install=yes ;;
1061 no) enable_fast_install=no ;;
1063 enable_fast_install=no
1064 # Look at the argument we got. We use all the common list separators.
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1066 for pkg in $enableval; do
1067 if test "X$pkg" = "X$p"; then
1068 enable_fast_install=yes
1070 done
1071 IFS="$ac_save_ifs"
1073 esac
1074 else
1075 enable_fast_install=yes
1078 # Extract the first word of "gcc", so it can be a program name with args.
1079 set dummy gcc; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085 if test -n "$CC"; then
1086 ac_cv_prog_CC="$CC" # Let the user override the test.
1087 else
1088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1089 ac_dummy="$PATH"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 ac_cv_prog_CC="gcc"
1094 break
1096 done
1097 IFS="$ac_save_ifs"
1100 CC="$ac_cv_prog_CC"
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1103 else
1104 echo "$ac_t""no" 1>&6
1107 if test -z "$CC"; then
1108 # Extract the first word of "cc", so it can be a program name with args.
1109 set dummy cc; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC="$CC" # Let the user override the test.
1117 else
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 ac_prog_rejected=no
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1125 ac_prog_rejected=yes
1126 continue
1128 ac_cv_prog_CC="cc"
1129 break
1131 done
1132 IFS="$ac_save_ifs"
1133 if test $ac_prog_rejected = yes; then
1134 # We found a bogon in the path, so make sure we never use it.
1135 set dummy $ac_cv_prog_CC
1136 shift
1137 if test $# -gt 0; then
1138 # We chose a different compiler from the bogus one.
1139 # However, it has the same basename, so the bogon will be chosen
1140 # first if we set CC to just the basename; use the full file name.
1141 shift
1142 set dummy "$ac_dir/$ac_word" "$@"
1143 shift
1144 ac_cv_prog_CC="$@"
1149 CC="$ac_cv_prog_CC"
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1152 else
1153 echo "$ac_t""no" 1>&6
1156 if test -z "$CC"; then
1157 case "`uname -s`" in
1158 *win32* | *WIN32*)
1159 # Extract the first word of "cl", so it can be a program name with args.
1160 set dummy cl; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC="$CC" # Let the user override the test.
1168 else
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 ac_dummy="$PATH"
1171 for ac_dir in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir=.
1173 if test -f $ac_dir/$ac_word; then
1174 ac_cv_prog_CC="cl"
1175 break
1177 done
1178 IFS="$ac_save_ifs"
1181 CC="$ac_cv_prog_CC"
1182 if test -n "$CC"; then
1183 echo "$ac_t""$CC" 1>&6
1184 else
1185 echo "$ac_t""no" 1>&6
1188 esac
1190 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1196 ac_ext=c
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling=$ac_cv_prog_cc_cross
1203 cat > conftest.$ac_ext << EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1208 main(){return(0);}
1210 if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1211 ac_cv_prog_cc_works=yes
1212 # If we can't run a trivial program, we are probably using a cross compiler.
1213 if (./conftest; exit) 2>/dev/null; then
1214 ac_cv_prog_cc_cross=no
1215 else
1216 ac_cv_prog_cc_cross=yes
1218 else
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1221 ac_cv_prog_cc_works=no
1223 rm -fr conftest*
1224 ac_ext=c
1225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1226 ac_cpp='$CPP $CPPFLAGS'
1227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1229 cross_compiling=$ac_cv_prog_cc_cross
1231 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1232 if test $ac_cv_prog_cc_works = no; then
1233 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1235 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1237 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1238 cross_compiling=$ac_cv_prog_cc_cross
1240 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether we are using GNU C" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1245 cat > conftest.c <<EOF
1246 #ifdef __GNUC__
1247 yes;
1248 #endif
1250 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1251 ac_cv_prog_gcc=yes
1252 else
1253 ac_cv_prog_gcc=no
1257 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1259 if test $ac_cv_prog_gcc = yes; then
1260 GCC=yes
1261 else
1262 GCC=
1265 ac_test_CFLAGS="${CFLAGS+set}"
1266 ac_save_CFLAGS="$CFLAGS"
1267 CFLAGS=
1268 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether ${CC-cc} accepts -g" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273 echo 'void f(){}' > conftest.c
1274 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1275 ac_cv_prog_cc_g=yes
1276 else
1277 ac_cv_prog_cc_g=no
1279 rm -f conftest*
1283 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1284 if test "$ac_test_CFLAGS" = set; then
1285 CFLAGS="$ac_save_CFLAGS"
1286 elif test $ac_cv_prog_cc_g = yes; then
1287 if test "$GCC" = yes; then
1288 CFLAGS="-g -O2"
1289 else
1290 CFLAGS="-g"
1292 else
1293 if test "$GCC" = yes; then
1294 CFLAGS="-O2"
1295 else
1296 CFLAGS=
1300 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1301 if test "${with_gnu_ld+set}" = set; then
1302 withval="$with_gnu_ld"
1303 test "$withval" = no || with_gnu_ld=yes
1304 else
1305 with_gnu_ld=no
1308 ac_prog=ld
1309 if test "$ac_cv_prog_gcc" = yes; then
1310 # Check if gcc -print-prog-name=ld gives a path.
1311 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1312 echo "configure:1313: checking for ld used by GCC" >&5
1313 case $host in
1314 *-*-mingw*)
1315 # gcc leaves a trailing carriage return which upsets mingw
1316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1319 esac
1320 case "$ac_prog" in
1321 # Accept absolute paths.
1322 [\\/]* | [A-Za-z]:[\\/]*)
1323 re_direlt='/[^/][^/]*/\.\./'
1324 # Canonicalize the path of ld
1325 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1326 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1327 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1328 done
1329 test -z "$LD" && LD="$ac_prog"
1332 # If it fails, then pretend we aren't using GCC.
1333 ac_prog=ld
1336 # If it is relative, then search for the first ld in PATH.
1337 with_gnu_ld=unknown
1339 esac
1340 elif test "$with_gnu_ld" = yes; then
1341 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1342 echo "configure:1343: checking for GNU ld" >&5
1343 else
1344 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1345 echo "configure:1346: checking for non-GNU ld" >&5
1347 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 if test -z "$LD"; then
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1352 for ac_dir in $PATH; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1355 ac_cv_path_LD="$ac_dir/$ac_prog"
1356 # Check to see if the program is GNU ld. I'd rather use --version,
1357 # but apparently some GNU ld's only accept -v.
1358 # Break only if it was the GNU/non-GNU ld that we prefer.
1359 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1360 test "$with_gnu_ld" != no && break
1361 else
1362 test "$with_gnu_ld" != yes && break
1365 done
1366 IFS="$ac_save_ifs"
1367 else
1368 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1372 LD="$ac_cv_path_LD"
1373 if test -n "$LD"; then
1374 echo "$ac_t""$LD" 1>&6
1375 else
1376 echo "$ac_t""no" 1>&6
1378 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1379 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1380 echo "configure:1381: checking if the linker ($LD) is GNU ld" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1385 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1386 ac_cv_prog_gnu_ld=yes
1387 else
1388 ac_cv_prog_gnu_ld=no
1392 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1393 with_gnu_ld=$ac_cv_prog_gnu_ld
1396 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $LD option to reload object files" >&5
1398 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401 lt_cv_ld_reload_flag='-r'
1404 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1405 reload_flag=$lt_cv_ld_reload_flag
1406 test -n "$reload_flag" && reload_flag=" $reload_flag"
1408 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1409 echo "configure:1410: checking for BSD-compatible nm" >&5
1410 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412 else
1413 if test -n "$NM"; then
1414 # Let the user override the test.
1415 ac_cv_path_NM="$NM"
1416 else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1419 test -z "$ac_dir" && ac_dir=.
1420 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1421 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1422 # Check to see if the nm accepts a BSD-compat flag.
1423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1424 # nm: unknown option "B" ignored
1425 # Tru64's nm complains that /dev/null is an invalid object file
1426 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1427 ac_cv_path_NM="$tmp_nm -B"
1428 break
1429 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1430 ac_cv_path_NM="$tmp_nm -p"
1431 break
1432 else
1433 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1434 continue # so that we can try to find one that supports BSD flags
1437 done
1438 IFS="$ac_save_ifs"
1439 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1443 NM="$ac_cv_path_NM"
1444 echo "$ac_t""$NM" 1>&6
1446 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1447 echo "configure:1448: checking whether ln -s works" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1450 else
1451 rm -f conftestdata
1452 if ln -s X conftestdata 2>/dev/null
1453 then
1454 rm -f conftestdata
1455 ac_cv_prog_LN_S="ln -s"
1456 else
1457 ac_cv_prog_LN_S=ln
1460 LN_S="$ac_cv_prog_LN_S"
1461 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1462 echo "$ac_t""yes" 1>&6
1463 else
1464 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1468 echo "configure:1469: checking how to recognise dependant libraries" >&5
1469 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 lt_cv_file_magic_cmd='$MAGIC_CMD'
1473 lt_cv_file_magic_test_file=
1474 lt_cv_deplibs_check_method='unknown'
1475 # Need to set the preceding variable on all platforms that support
1476 # interlibrary dependencies.
1477 # 'none' -- dependencies not supported.
1478 # `unknown' -- same as none, but documents that we really don't know.
1479 # 'pass_all' -- all dependencies passed with no checks.
1480 # 'test_compile' -- check by making test program.
1481 # 'file_magic [regex]' -- check by looking for files in library path
1482 # which responds to the $file_magic_cmd with a given egrep regex.
1483 # If you have `file' or equivalent on your system and you're not sure
1484 # whether `pass_all' will *always* work, you probably want this one.
1486 case "$host_os" in
1487 aix4*)
1488 lt_cv_deplibs_check_method=pass_all
1491 beos*)
1492 lt_cv_deplibs_check_method=pass_all
1495 bsdi4*)
1496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1497 lt_cv_file_magic_cmd='/usr/bin/file -L'
1498 lt_cv_file_magic_test_file=/shlib/libc.so
1501 cygwin* | mingw* |pw32*)
1502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1503 lt_cv_file_magic_cmd='$OBJDUMP -f'
1506 freebsd* )
1507 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1508 case "$host_cpu" in
1509 i*86 )
1510 # Not sure whether the presence of OpenBSD here was a mistake.
1511 # Let's accept both of them until this is cleared up.
1512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1513 lt_cv_file_magic_cmd=/usr/bin/file
1514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1516 esac
1517 else
1518 lt_cv_deplibs_check_method=pass_all
1522 gnu*)
1523 lt_cv_deplibs_check_method=pass_all
1526 hpux10.20*)
1527 # TODO: Does this work for hpux-11 too?
1528 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1529 lt_cv_file_magic_cmd=/usr/bin/file
1530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1533 irix5* | irix6*)
1534 case "$host_os" in
1535 irix5*)
1536 # this will be overridden with pass_all, but let us keep it just in case
1537 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1540 case "$LD" in
1541 *-32|*"-32 ") libmagic=32-bit;;
1542 *-n32|*"-n32 ") libmagic=N32;;
1543 *-64|*"-64 ") libmagic=64-bit;;
1544 *) libmagic=never-match;;
1545 esac
1546 # this will be overridden with pass_all, but let us keep it just in case
1547 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1549 esac
1550 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1551 lt_cv_deplibs_check_method=pass_all
1554 # This must be Linux ELF.
1555 linux-gnu*)
1556 case "$host_cpu" in
1557 alpha* | i*86 | powerpc* | sparc* | ia64* )
1558 lt_cv_deplibs_check_method=pass_all ;;
1560 # glibc up to 2.1.1 does not perform some relocations on ARM
1561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1562 esac
1563 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1566 netbsd*)
1567 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1568 else
1569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1570 lt_cv_file_magic_cmd='/usr/bin/file -L'
1571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1575 osf3* | osf4* | osf5*)
1576 # this will be overridden with pass_all, but let us keep it just in case
1577 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1578 lt_cv_file_magic_test_file=/shlib/libc.so
1579 lt_cv_deplibs_check_method=pass_all
1582 sco3.2v5*)
1583 lt_cv_deplibs_check_method=pass_all
1586 solaris*)
1587 lt_cv_deplibs_check_method=pass_all
1588 lt_cv_file_magic_test_file=/lib/libc.so
1591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1592 case "$host_vendor" in
1593 ncr)
1594 lt_cv_deplibs_check_method=pass_all
1596 motorola)
1597 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]'
1598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1600 esac
1602 esac
1606 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1607 file_magic_cmd=$lt_cv_file_magic_cmd
1608 deplibs_check_method=$lt_cv_deplibs_check_method
1610 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1611 echo "configure:1612: checking for object suffix" >&5
1612 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1614 else
1615 rm -f conftest*
1616 echo 'int i = 1;' > conftest.$ac_ext
1617 if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1618 for ac_file in conftest.*; do
1619 case $ac_file in
1620 *.c) ;;
1621 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1622 esac
1623 done
1624 else
1625 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1627 rm -f conftest*
1630 echo "$ac_t""$ac_cv_objext" 1>&6
1631 OBJEXT=$ac_cv_objext
1632 ac_objext=$ac_cv_objext
1636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1637 echo "configure:1638: checking for executable suffix" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1642 ac_cv_exeext=.exe
1643 else
1644 rm -f conftest*
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1646 ac_cv_exeext=
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1649 case $file in
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1652 esac
1653 done
1654 else
1655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1657 rm -f conftest*
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1662 EXEEXT=""
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1665 ac_exeext=$EXEEXT
1667 if test $host != $build; then
1668 ac_tool_prefix=${host_alias}-
1669 else
1670 ac_tool_prefix=
1673 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1675 # Only perform the check for file, if the check method requires it
1676 case "$deplibs_check_method" in
1677 file_magic*)
1678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1679 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ${ac_tool_prefix}file" >&5
1681 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 case "$MAGIC_CMD" in
1686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1688 ?:/*)
1689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1692 ac_save_MAGIC_CMD="$MAGIC_CMD"
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1694 ac_dummy="/usr/bin:$PATH"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/${ac_tool_prefix}file; then
1698 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1699 if test -n "$file_magic_test_file"; then
1700 case "$deplibs_check_method" in
1701 "file_magic "*)
1702 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1705 egrep "$file_magic_regex" > /dev/null; then
1707 else
1708 cat <<EOF 1>&2
1710 *** Warning: the command libtool uses to detect shared libraries,
1711 *** $file_magic_cmd, produces output that libtool cannot recognize.
1712 *** The result is that libtool may fail to recognize shared libraries
1713 *** as such. This will affect the creation of libtool libraries that
1714 *** depend on shared libraries, but programs linked with such libtool
1715 *** libraries will work regardless of this problem. Nevertheless, you
1716 *** may want to report the problem to your system manager and/or to
1717 *** bug-libtool@gnu.org
1720 fi ;;
1721 esac
1723 break
1725 done
1726 IFS="$ac_save_ifs"
1727 MAGIC_CMD="$ac_save_MAGIC_CMD"
1729 esac
1732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1733 if test -n "$MAGIC_CMD"; then
1734 echo "$ac_t""$MAGIC_CMD" 1>&6
1735 else
1736 echo "$ac_t""no" 1>&6
1739 if test -z "$lt_cv_path_MAGIC_CMD"; then
1740 if test -n "$ac_tool_prefix"; then
1741 echo $ac_n "checking for file""... $ac_c" 1>&6
1742 echo "configure:1743: checking for file" >&5
1743 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746 case "$MAGIC_CMD" in
1748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1750 ?:/*)
1751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1754 ac_save_MAGIC_CMD="$MAGIC_CMD"
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1756 ac_dummy="/usr/bin:$PATH"
1757 for ac_dir in $ac_dummy; do
1758 test -z "$ac_dir" && ac_dir=.
1759 if test -f $ac_dir/file; then
1760 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1761 if test -n "$file_magic_test_file"; then
1762 case "$deplibs_check_method" in
1763 "file_magic "*)
1764 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1767 egrep "$file_magic_regex" > /dev/null; then
1769 else
1770 cat <<EOF 1>&2
1772 *** Warning: the command libtool uses to detect shared libraries,
1773 *** $file_magic_cmd, produces output that libtool cannot recognize.
1774 *** The result is that libtool may fail to recognize shared libraries
1775 *** as such. This will affect the creation of libtool libraries that
1776 *** depend on shared libraries, but programs linked with such libtool
1777 *** libraries will work regardless of this problem. Nevertheless, you
1778 *** may want to report the problem to your system manager and/or to
1779 *** bug-libtool@gnu.org
1782 fi ;;
1783 esac
1785 break
1787 done
1788 IFS="$ac_save_ifs"
1789 MAGIC_CMD="$ac_save_MAGIC_CMD"
1791 esac
1794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1795 if test -n "$MAGIC_CMD"; then
1796 echo "$ac_t""$MAGIC_CMD" 1>&6
1797 else
1798 echo "$ac_t""no" 1>&6
1801 else
1802 MAGIC_CMD=:
1808 esac
1810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 if test -n "$RANLIB"; then
1818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1819 else
1820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1821 ac_dummy="$PATH"
1822 for ac_dir in $ac_dummy; do
1823 test -z "$ac_dir" && ac_dir=.
1824 if test -f $ac_dir/$ac_word; then
1825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1826 break
1828 done
1829 IFS="$ac_save_ifs"
1832 RANLIB="$ac_cv_prog_RANLIB"
1833 if test -n "$RANLIB"; then
1834 echo "$ac_t""$RANLIB" 1>&6
1835 else
1836 echo "$ac_t""no" 1>&6
1840 if test -z "$ac_cv_prog_RANLIB"; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "ranlib", so it can be a program name with args.
1843 set dummy ranlib; ac_word=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 if test -n "$RANLIB"; then
1850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1851 else
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 ac_dummy="$PATH"
1854 for ac_dir in $ac_dummy; do
1855 test -z "$ac_dir" && ac_dir=.
1856 if test -f $ac_dir/$ac_word; then
1857 ac_cv_prog_RANLIB="ranlib"
1858 break
1860 done
1861 IFS="$ac_save_ifs"
1862 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1865 RANLIB="$ac_cv_prog_RANLIB"
1866 if test -n "$RANLIB"; then
1867 echo "$ac_t""$RANLIB" 1>&6
1868 else
1869 echo "$ac_t""no" 1>&6
1872 else
1873 RANLIB=":"
1877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}strip; ac_word=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 if test -n "$STRIP"; then
1885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886 else
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1888 ac_dummy="$PATH"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893 break
1895 done
1896 IFS="$ac_save_ifs"
1899 STRIP="$ac_cv_prog_STRIP"
1900 if test -n "$STRIP"; then
1901 echo "$ac_t""$STRIP" 1>&6
1902 else
1903 echo "$ac_t""no" 1>&6
1907 if test -z "$ac_cv_prog_STRIP"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "strip", so it can be a program name with args.
1910 set dummy strip; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 if test -n "$STRIP"; then
1917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1918 else
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 ac_dummy="$PATH"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 ac_cv_prog_STRIP="strip"
1925 break
1927 done
1928 IFS="$ac_save_ifs"
1929 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1932 STRIP="$ac_cv_prog_STRIP"
1933 if test -n "$STRIP"; then
1934 echo "$ac_t""$STRIP" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1939 else
1940 STRIP=":"
1945 # Check for any special flags to pass to ltconfig.
1946 libtool_flags="--cache-file=$cache_file"
1947 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1948 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1949 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1950 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1951 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1954 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1955 if test "${enable_libtool_lock+set}" = set; then
1956 enableval="$enable_libtool_lock"
1960 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1961 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1963 # Check whether --with-pic or --without-pic was given.
1964 if test "${with_pic+set}" = set; then
1965 withval="$with_pic"
1966 pic_mode="$withval"
1967 else
1968 pic_mode=default
1971 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1972 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1974 # Some flags need to be propagated to the compiler or linker for good
1975 # libtool support.
1976 case "$host" in
1977 *-*-irix6*)
1978 # Find out which ABI we are using.
1979 echo '#line 1980 "configure"' > conftest.$ac_ext
1980 if { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981 case "`/usr/bin/file conftest.o`" in
1982 *32-bit*)
1983 LD="${LD-ld} -32"
1985 *N32*)
1986 LD="${LD-ld} -n32"
1988 *64-bit*)
1989 LD="${LD-ld} -64"
1991 esac
1993 rm -rf conftest*
1996 *-*-sco3.2v5*)
1997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1998 SAVE_CFLAGS="$CFLAGS"
1999 CFLAGS="$CFLAGS -belf"
2000 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether the C compiler needs -belf" >&5
2002 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2006 ac_ext=c
2007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2011 cross_compiling=$ac_cv_prog_cc_cross
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2017 int main() {
2019 ; return 0; }
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 rm -rf conftest*
2023 lt_cv_cc_needs_belf=yes
2024 else
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 rm -rf conftest*
2028 lt_cv_cc_needs_belf=no
2030 rm -f conftest*
2031 ac_ext=c
2032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2036 cross_compiling=$ac_cv_prog_cc_cross
2040 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2041 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2043 CFLAGS="$SAVE_CFLAGS"
2048 esac
2051 # Save cache, so that ltconfig can load it
2052 cat > confcache <<\EOF
2053 # This file is a shell script that caches the results of configure
2054 # tests run on this system so they can be shared between configure
2055 # scripts and configure runs. It is not useful on other systems.
2056 # If it contains results you don't want to keep, you may remove or edit it.
2058 # By default, configure uses ./config.cache as the cache file,
2059 # creating it if it does not exist already. You can give configure
2060 # the --cache-file=FILE option to use a different cache file; that is
2061 # what configure does when it calls configure scripts in
2062 # subdirectories, so they share the cache.
2063 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2064 # config.status only pays attention to the cache file if you give it the
2065 # --recheck option to rerun configure.
2068 # The following way of writing the cache mishandles newlines in values,
2069 # but we know of no workaround that is simple, portable, and efficient.
2070 # So, don't put newlines in cache variables' values.
2071 # Ultrix sh set writes to stderr and can't be redirected directly,
2072 # and sets the high bit in the cache file unless we assign to the vars.
2073 (set) 2>&1 |
2074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2075 *ac_space=\ *)
2076 # `set' does not quote correctly, so add quotes (double-quote substitution
2077 # turns \\\\ into \\, and sed turns \\ into \).
2078 sed -n \
2079 -e "s/'/'\\\\''/g" \
2080 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2083 # `set' quotes correctly as required by POSIX, so do not add quotes.
2084 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2086 esac >> confcache
2087 if cmp -s $cache_file confcache; then
2089 else
2090 if test -w $cache_file; then
2091 echo "updating cache $cache_file"
2092 cat confcache > $cache_file
2093 else
2094 echo "not updating unwritable cache $cache_file"
2097 rm -f confcache
2100 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2101 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2102 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2103 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2104 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2105 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2106 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2107 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2108 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2109 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2111 # Reload cache, that may have been modified by ltconfig
2112 if test -r "$cache_file"; then
2113 echo "loading cache $cache_file"
2114 . $cache_file
2115 else
2116 echo "creating cache $cache_file"
2117 > $cache_file
2121 # This can be used to rebuild libtool when needed
2122 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2124 # Always use our own libtool.
2125 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2127 # Redirect the config.log output again, so that the ltconfig log is not
2128 # clobbered by the next message.
2129 exec 5>>./config.log
2138 # Check whether --enable-targets or --disable-targets was given.
2139 if test "${enable_targets+set}" = set; then
2140 enableval="$enable_targets"
2141 case "${enableval}" in
2142 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2144 no) enable_targets= ;;
2145 *) enable_targets=$enableval ;;
2146 esac
2148 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2149 if test "${enable_commonbfdlib+set}" = set; then
2150 enableval="$enable_commonbfdlib"
2151 case "${enableval}" in
2152 yes) commonbfdlib=true ;;
2153 no) commonbfdlib=false ;;
2154 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2155 esac
2158 build_warnings="-W -Wall"
2159 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2160 if test "${enable_build_warnings+set}" = set; then
2161 enableval="$enable_build_warnings"
2162 case "${enableval}" in
2163 yes) ;;
2164 no) build_warnings="-w";;
2165 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2166 build_warnings="${build_warnings} ${t}";;
2167 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2168 build_warnings="${t} ${build_warnings}";;
2169 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2170 esac
2171 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2172 echo "Setting warning flags = $build_warnings" 6>&1
2175 WARN_CFLAGS=""
2176 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2177 WARN_CFLAGS="${build_warnings}"
2185 if test -z "$target" ; then
2186 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2188 if test -z "$host" ; then
2189 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2192 # Extract the first word of "gcc", so it can be a program name with args.
2193 set dummy gcc; ac_word=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/$ac_word; then
2207 ac_cv_prog_CC="gcc"
2208 break
2210 done
2211 IFS="$ac_save_ifs"
2214 CC="$ac_cv_prog_CC"
2215 if test -n "$CC"; then
2216 echo "$ac_t""$CC" 1>&6
2217 else
2218 echo "$ac_t""no" 1>&6
2221 if test -z "$CC"; then
2222 # Extract the first word of "cc", so it can be a program name with args.
2223 set dummy cc; ac_word=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC="$CC" # Let the user override the test.
2231 else
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2233 ac_prog_rejected=no
2234 ac_dummy="$PATH"
2235 for ac_dir in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir=.
2237 if test -f $ac_dir/$ac_word; then
2238 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2239 ac_prog_rejected=yes
2240 continue
2242 ac_cv_prog_CC="cc"
2243 break
2245 done
2246 IFS="$ac_save_ifs"
2247 if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy $ac_cv_prog_CC
2250 shift
2251 if test $# -gt 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2255 shift
2256 set dummy "$ac_dir/$ac_word" "$@"
2257 shift
2258 ac_cv_prog_CC="$@"
2263 CC="$ac_cv_prog_CC"
2264 if test -n "$CC"; then
2265 echo "$ac_t""$CC" 1>&6
2266 else
2267 echo "$ac_t""no" 1>&6
2270 if test -z "$CC"; then
2271 case "`uname -s`" in
2272 *win32* | *WIN32*)
2273 # Extract the first word of "cl", so it can be a program name with args.
2274 set dummy cl; ac_word=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 ac_dummy="$PATH"
2285 for ac_dir in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir=.
2287 if test -f $ac_dir/$ac_word; then
2288 ac_cv_prog_CC="cl"
2289 break
2291 done
2292 IFS="$ac_save_ifs"
2295 CC="$ac_cv_prog_CC"
2296 if test -n "$CC"; then
2297 echo "$ac_t""$CC" 1>&6
2298 else
2299 echo "$ac_t""no" 1>&6
2302 esac
2304 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2308 echo "configure:2309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2310 ac_ext=c
2311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2315 cross_compiling=$ac_cv_prog_cc_cross
2317 cat > conftest.$ac_ext << EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2322 main(){return(0);}
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2325 ac_cv_prog_cc_works=yes
2326 # If we can't run a trivial program, we are probably using a cross compiler.
2327 if (./conftest; exit) 2>/dev/null; then
2328 ac_cv_prog_cc_cross=no
2329 else
2330 ac_cv_prog_cc_cross=yes
2332 else
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 ac_cv_prog_cc_works=no
2337 rm -fr conftest*
2338 ac_ext=c
2339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2343 cross_compiling=$ac_cv_prog_cc_cross
2345 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2346 if test $ac_cv_prog_cc_works = no; then
2347 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2352 cross_compiling=$ac_cv_prog_cc_cross
2354 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2355 echo "configure:2356: checking whether we are using GNU C" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 cat > conftest.c <<EOF
2360 #ifdef __GNUC__
2361 yes;
2362 #endif
2364 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2365 ac_cv_prog_gcc=yes
2366 else
2367 ac_cv_prog_gcc=no
2371 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2373 if test $ac_cv_prog_gcc = yes; then
2374 GCC=yes
2375 else
2376 GCC=
2379 ac_test_CFLAGS="${CFLAGS+set}"
2380 ac_save_CFLAGS="$CFLAGS"
2381 CFLAGS=
2382 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2383 echo "configure:2384: checking whether ${CC-cc} accepts -g" >&5
2384 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 echo 'void f(){}' > conftest.c
2388 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2389 ac_cv_prog_cc_g=yes
2390 else
2391 ac_cv_prog_cc_g=no
2393 rm -f conftest*
2397 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2398 if test "$ac_test_CFLAGS" = set; then
2399 CFLAGS="$ac_save_CFLAGS"
2400 elif test $ac_cv_prog_cc_g = yes; then
2401 if test "$GCC" = yes; then
2402 CFLAGS="-g -O2"
2403 else
2404 CFLAGS="-g"
2406 else
2407 if test "$GCC" = yes; then
2408 CFLAGS="-O2"
2409 else
2410 CFLAGS=
2415 for ac_prog in 'bison -y' byacc
2417 # Extract the first word of "$ac_prog", so it can be a program name with args.
2418 set dummy $ac_prog; ac_word=$2
2419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_word" >&5
2421 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 if test -n "$YACC"; then
2425 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2426 else
2427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2428 ac_dummy="$PATH"
2429 for ac_dir in $ac_dummy; do
2430 test -z "$ac_dir" && ac_dir=.
2431 if test -f $ac_dir/$ac_word; then
2432 ac_cv_prog_YACC="$ac_prog"
2433 break
2435 done
2436 IFS="$ac_save_ifs"
2439 YACC="$ac_cv_prog_YACC"
2440 if test -n "$YACC"; then
2441 echo "$ac_t""$YACC" 1>&6
2442 else
2443 echo "$ac_t""no" 1>&6
2446 test -n "$YACC" && break
2447 done
2448 test -n "$YACC" || YACC="yacc"
2450 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2451 echo "configure:2452: checking how to run the C preprocessor" >&5
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2454 CPP=
2456 if test -z "$CPP"; then
2457 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 # This must be in double quotes, not single quotes, because CPP may get
2461 # substituted into the Makefile and "${CC-cc}" will confuse make.
2462 CPP="${CC-cc} -E"
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp.
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <assert.h>
2469 Syntax Error
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 else
2477 echo "$ac_err" >&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 rm -rf conftest*
2481 CPP="${CC-cc} -E -traditional-cpp"
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 #include <assert.h>
2486 Syntax Error
2488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2493 else
2494 echo "$ac_err" >&5
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 CPP="${CC-cc} -nologo -E"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #include <assert.h>
2503 Syntax Error
2505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2510 else
2511 echo "$ac_err" >&5
2512 echo "configure: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 rm -rf conftest*
2515 CPP=/lib/cpp
2517 rm -f conftest*
2519 rm -f conftest*
2521 rm -f conftest*
2522 ac_cv_prog_CPP="$CPP"
2524 CPP="$ac_cv_prog_CPP"
2525 else
2526 ac_cv_prog_CPP="$CPP"
2528 echo "$ac_t""$CPP" 1>&6
2530 missing_dir=`cd $ac_aux_dir && pwd`
2531 for ac_prog in flex lex
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 if test -n "$LEX"; then
2541 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2542 else
2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2544 ac_dummy="$PATH"
2545 for ac_dir in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir=.
2547 if test -f $ac_dir/$ac_word; then
2548 ac_cv_prog_LEX="$ac_prog"
2549 break
2551 done
2552 IFS="$ac_save_ifs"
2555 LEX="$ac_cv_prog_LEX"
2556 if test -n "$LEX"; then
2557 echo "$ac_t""$LEX" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2562 test -n "$LEX" && break
2563 done
2564 test -n "$LEX" || LEX="$missing_dir/missing flex"
2566 # Extract the first word of "flex", so it can be a program name with args.
2567 set dummy flex; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 if test -n "$LEX"; then
2574 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2575 else
2576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 ac_dummy="$PATH"
2578 for ac_dir in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir=.
2580 if test -f $ac_dir/$ac_word; then
2581 ac_cv_prog_LEX="flex"
2582 break
2584 done
2585 IFS="$ac_save_ifs"
2586 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2589 LEX="$ac_cv_prog_LEX"
2590 if test -n "$LEX"; then
2591 echo "$ac_t""$LEX" 1>&6
2592 else
2593 echo "$ac_t""no" 1>&6
2596 if test -z "$LEXLIB"
2597 then
2598 case "$LEX" in
2599 flex*) ac_lib=fl ;;
2600 *) ac_lib=l ;;
2601 esac
2602 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2603 echo "configure:2604: checking for yywrap in -l$ac_lib" >&5
2604 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608 ac_save_LIBS="$LIBS"
2609 LIBS="-l$ac_lib $LIBS"
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 /* Override any gcc2 internal prototype to avoid an error. */
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616 char yywrap();
2618 int main() {
2619 yywrap()
2620 ; return 0; }
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 rm -rf conftest*
2624 eval "ac_cv_lib_$ac_lib_var=yes"
2625 else
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 rm -rf conftest*
2629 eval "ac_cv_lib_$ac_lib_var=no"
2631 rm -f conftest*
2632 LIBS="$ac_save_LIBS"
2635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2636 echo "$ac_t""yes" 1>&6
2637 LEXLIB="-l$ac_lib"
2638 else
2639 echo "$ac_t""no" 1>&6
2644 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2645 echo "configure:2646: checking lex output file root" >&5
2646 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 # The minimal lex program is just a single line: %%. But some broken lexes
2650 # (Solaris, I think it was) want two %% lines, so accommodate them.
2651 echo '%%
2652 %%' | $LEX
2653 if test -f lex.yy.c; then
2654 ac_cv_prog_lex_root=lex.yy
2655 elif test -f lexyy.c; then
2656 ac_cv_prog_lex_root=lexyy
2657 else
2658 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2662 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2663 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2665 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether yytext is a pointer" >&5
2667 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670 # POSIX says lex can declare yytext either as a pointer or an array; the
2671 # default is implementation-dependent. Figure out which it is, since
2672 # not all implementations provide the %pointer and %array declarations.
2673 ac_cv_prog_lex_yytext_pointer=no
2674 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2675 ac_save_LIBS="$LIBS"
2676 LIBS="$LIBS $LEXLIB"
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 `cat $LEX_OUTPUT_ROOT.c`
2681 int main() {
2683 ; return 0; }
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2686 rm -rf conftest*
2687 ac_cv_prog_lex_yytext_pointer=yes
2688 else
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2692 rm -f conftest*
2693 LIBS="$ac_save_LIBS"
2694 rm -f "${LEX_OUTPUT_ROOT}.c"
2698 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2699 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2700 cat >> confdefs.h <<\EOF
2701 #define YYTEXT_POINTER 1
2707 ALL_LINGUAS=
2708 # Extract the first word of "ranlib", so it can be a program name with args.
2709 set dummy ranlib; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715 if test -n "$RANLIB"; then
2716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2717 else
2718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 ac_dummy="$PATH"
2720 for ac_dir in $ac_dummy; do
2721 test -z "$ac_dir" && ac_dir=.
2722 if test -f $ac_dir/$ac_word; then
2723 ac_cv_prog_RANLIB="ranlib"
2724 break
2726 done
2727 IFS="$ac_save_ifs"
2728 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2731 RANLIB="$ac_cv_prog_RANLIB"
2732 if test -n "$RANLIB"; then
2733 echo "$ac_t""$RANLIB" 1>&6
2734 else
2735 echo "$ac_t""no" 1>&6
2738 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ANSI C header files" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <stdlib.h>
2747 #include <stdarg.h>
2748 #include <string.h>
2749 #include <float.h>
2751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2754 if test -z "$ac_err"; then
2755 rm -rf conftest*
2756 ac_cv_header_stdc=yes
2757 else
2758 echo "$ac_err" >&5
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 rm -rf conftest*
2762 ac_cv_header_stdc=no
2764 rm -f conftest*
2766 if test $ac_cv_header_stdc = yes; then
2767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2768 cat > conftest.$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 #include <string.h>
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "memchr" >/dev/null 2>&1; then
2776 else
2777 rm -rf conftest*
2778 ac_cv_header_stdc=no
2780 rm -f conftest*
2784 if test $ac_cv_header_stdc = yes; then
2785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 #include <stdlib.h>
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 egrep "free" >/dev/null 2>&1; then
2794 else
2795 rm -rf conftest*
2796 ac_cv_header_stdc=no
2798 rm -f conftest*
2802 if test $ac_cv_header_stdc = yes; then
2803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2804 if test "$cross_compiling" = yes; then
2806 else
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 #include <ctype.h>
2811 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2814 int main () { int i; for (i = 0; i < 256; i++)
2815 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2816 exit (0); }
2819 if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2820 then
2822 else
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 rm -fr conftest*
2826 ac_cv_header_stdc=no
2828 rm -fr conftest*
2834 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2835 if test $ac_cv_header_stdc = yes; then
2836 cat >> confdefs.h <<\EOF
2837 #define STDC_HEADERS 1
2842 echo $ac_n "checking for working const""... $ac_c" 1>&6
2843 echo "configure:2844: checking for working const" >&5
2844 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846 else
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2851 int main() {
2853 /* Ultrix mips cc rejects this. */
2854 typedef int charset[2]; const charset x;
2855 /* SunOS 4.1.1 cc rejects this. */
2856 char const *const *ccp;
2857 char **p;
2858 /* NEC SVR4.0.2 mips cc rejects this. */
2859 struct point {int x, y;};
2860 static struct point const zero = {0,0};
2861 /* AIX XL C 1.02.0.0 rejects this.
2862 It does not let you subtract one const X* pointer from another in an arm
2863 of an if-expression whose if-part is not a constant expression */
2864 const char *g = "string";
2865 ccp = &g + (g ? g-g : 0);
2866 /* HPUX 7.0 cc rejects these. */
2867 ++ccp;
2868 p = (char**) ccp;
2869 ccp = (char const *const *) p;
2870 { /* SCO 3.2v4 cc rejects this. */
2871 char *t;
2872 char const *s = 0 ? (char *) 0 : (char const *) 0;
2874 *t++ = 0;
2876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2877 int x[] = {25, 17};
2878 const int *foo = &x[0];
2879 ++foo;
2881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2882 typedef const int *iptr;
2883 iptr p = 0;
2884 ++p;
2886 { /* AIX XL C 1.02.0.0 rejects this saying
2887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2888 struct s { int j; const int *ap[3]; };
2889 struct s *b; b->j = 5;
2891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2892 const int foo = 10;
2895 ; return 0; }
2897 if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2898 rm -rf conftest*
2899 ac_cv_c_const=yes
2900 else
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2903 rm -rf conftest*
2904 ac_cv_c_const=no
2906 rm -f conftest*
2909 echo "$ac_t""$ac_cv_c_const" 1>&6
2910 if test $ac_cv_c_const = no; then
2911 cat >> confdefs.h <<\EOF
2912 #define const
2917 echo $ac_n "checking for inline""... $ac_c" 1>&6
2918 echo "configure:2919: checking for inline" >&5
2919 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921 else
2922 ac_cv_c_inline=no
2923 for ac_kw in inline __inline__ __inline; do
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2928 int main() {
2929 } $ac_kw foo() {
2930 ; return 0; }
2932 if { (eval echo configure:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2933 rm -rf conftest*
2934 ac_cv_c_inline=$ac_kw; break
2935 else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 rm -f conftest*
2940 done
2944 echo "$ac_t""$ac_cv_c_inline" 1>&6
2945 case "$ac_cv_c_inline" in
2946 inline | yes) ;;
2947 no) cat >> confdefs.h <<\EOF
2948 #define inline
2951 *) cat >> confdefs.h <<EOF
2952 #define inline $ac_cv_c_inline
2955 esac
2957 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2958 echo "configure:2959: checking for off_t" >&5
2959 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2966 #if STDC_HEADERS
2967 #include <stdlib.h>
2968 #include <stddef.h>
2969 #endif
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2973 rm -rf conftest*
2974 ac_cv_type_off_t=yes
2975 else
2976 rm -rf conftest*
2977 ac_cv_type_off_t=no
2979 rm -f conftest*
2982 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2983 if test $ac_cv_type_off_t = no; then
2984 cat >> confdefs.h <<\EOF
2985 #define off_t long
2990 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2991 echo "configure:2992: checking for size_t" >&5
2992 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994 else
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <sys/types.h>
2999 #if STDC_HEADERS
3000 #include <stdlib.h>
3001 #include <stddef.h>
3002 #endif
3004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3006 rm -rf conftest*
3007 ac_cv_type_size_t=yes
3008 else
3009 rm -rf conftest*
3010 ac_cv_type_size_t=no
3012 rm -f conftest*
3015 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3016 if test $ac_cv_type_size_t = no; then
3017 cat >> confdefs.h <<\EOF
3018 #define size_t unsigned
3023 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3024 # for constant arguments. Useless!
3025 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3026 echo "configure:3027: checking for working alloca.h" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <alloca.h>
3034 int main() {
3035 char *p = alloca(2 * sizeof(int));
3036 ; return 0; }
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 rm -rf conftest*
3040 ac_cv_header_alloca_h=yes
3041 else
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 rm -rf conftest*
3045 ac_cv_header_alloca_h=no
3047 rm -f conftest*
3050 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3051 if test $ac_cv_header_alloca_h = yes; then
3052 cat >> confdefs.h <<\EOF
3053 #define HAVE_ALLOCA_H 1
3058 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3059 echo "configure:3060: checking for alloca" >&5
3060 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3067 #ifdef __GNUC__
3068 # define alloca __builtin_alloca
3069 #else
3070 # ifdef _MSC_VER
3071 # include <malloc.h>
3072 # define alloca _alloca
3073 # else
3074 # if HAVE_ALLOCA_H
3075 # include <alloca.h>
3076 # else
3077 # ifdef _AIX
3078 #pragma alloca
3079 # else
3080 # ifndef alloca /* predefined by HP cc +Olibcalls */
3081 char *alloca ();
3082 # endif
3083 # endif
3084 # endif
3085 # endif
3086 #endif
3088 int main() {
3089 char *p = (char *) alloca(1);
3090 ; return 0; }
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3093 rm -rf conftest*
3094 ac_cv_func_alloca_works=yes
3095 else
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3098 rm -rf conftest*
3099 ac_cv_func_alloca_works=no
3101 rm -f conftest*
3104 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3105 if test $ac_cv_func_alloca_works = yes; then
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_ALLOCA 1
3112 if test $ac_cv_func_alloca_works = no; then
3113 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3114 # that cause trouble. Some versions do not even contain alloca or
3115 # contain a buggy version. If you still want to use their alloca,
3116 # use ar to extract alloca.o from them instead of compiling alloca.c.
3117 ALLOCA=alloca.${ac_objext}
3118 cat >> confdefs.h <<\EOF
3119 #define C_ALLOCA 1
3123 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether alloca needs Cray hooks" >&5
3125 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #if defined(CRAY) && ! defined(CRAY2)
3132 webecray
3133 #else
3134 wenotbecray
3135 #endif
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 egrep "webecray" >/dev/null 2>&1; then
3140 rm -rf conftest*
3141 ac_cv_os_cray=yes
3142 else
3143 rm -rf conftest*
3144 ac_cv_os_cray=no
3146 rm -f conftest*
3150 echo "$ac_t""$ac_cv_os_cray" 1>&6
3151 if test $ac_cv_os_cray = yes; then
3152 for ac_func in _getb67 GETB67 getb67; do
3153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_func" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char $ac_func(); below. */
3163 #include <assert.h>
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3167 char $ac_func();
3169 int main() {
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3175 choke me
3176 #else
3177 $ac_func();
3178 #endif
3180 ; return 0; }
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183 rm -rf conftest*
3184 eval "ac_cv_func_$ac_func=yes"
3185 else
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 rm -rf conftest*
3189 eval "ac_cv_func_$ac_func=no"
3191 rm -f conftest*
3194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 cat >> confdefs.h <<EOF
3197 #define CRAY_STACKSEG_END $ac_func
3200 break
3201 else
3202 echo "$ac_t""no" 1>&6
3205 done
3208 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3209 echo "configure:3210: checking stack direction for C alloca" >&5
3210 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3212 else
3213 if test "$cross_compiling" = yes; then
3214 ac_cv_c_stack_direction=0
3215 else
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 find_stack_direction ()
3221 static char *addr = 0;
3222 auto char dummy;
3223 if (addr == 0)
3225 addr = &dummy;
3226 return find_stack_direction ();
3228 else
3229 return (&dummy > addr) ? 1 : -1;
3231 main ()
3233 exit (find_stack_direction() < 0);
3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3237 then
3238 ac_cv_c_stack_direction=1
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -fr conftest*
3243 ac_cv_c_stack_direction=-1
3245 rm -fr conftest*
3250 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3251 cat >> confdefs.h <<EOF
3252 #define STACK_DIRECTION $ac_cv_c_stack_direction
3257 for ac_hdr in unistd.h
3259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_hdr" >&5
3262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3264 else
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #include <$ac_hdr>
3270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3271 { (eval echo configure:3272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3273 if test -z "$ac_err"; then
3274 rm -rf conftest*
3275 eval "ac_cv_header_$ac_safe=yes"
3276 else
3277 echo "$ac_err" >&5
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 eval "ac_cv_header_$ac_safe=no"
3283 rm -f conftest*
3285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3288 cat >> confdefs.h <<EOF
3289 #define $ac_tr_hdr 1
3292 else
3293 echo "$ac_t""no" 1>&6
3295 done
3297 for ac_func in getpagesize
3299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_func" >&5
3301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* System header to define __stub macros and hopefully few prototypes,
3308 which can conflict with char $ac_func(); below. */
3309 #include <assert.h>
3310 /* Override any gcc2 internal prototype to avoid an error. */
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3313 char $ac_func();
3315 int main() {
3317 /* The GNU C library defines this for functions which it implements
3318 to always fail with ENOSYS. Some functions are actually named
3319 something starting with __ and the normal name is an alias. */
3320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3321 choke me
3322 #else
3323 $ac_func();
3324 #endif
3326 ; return 0; }
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3329 rm -rf conftest*
3330 eval "ac_cv_func_$ac_func=yes"
3331 else
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 rm -rf conftest*
3335 eval "ac_cv_func_$ac_func=no"
3337 rm -f conftest*
3340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3341 echo "$ac_t""yes" 1>&6
3342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3343 cat >> confdefs.h <<EOF
3344 #define $ac_tr_func 1
3347 else
3348 echo "$ac_t""no" 1>&6
3350 done
3352 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3353 echo "configure:3354: checking for working mmap" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356 else
3357 if test "$cross_compiling" = yes; then
3358 ac_cv_func_mmap_fixed_mapped=no
3359 else
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3364 /* Thanks to Mike Haertel and Jim Avera for this test.
3365 Here is a matrix of mmap possibilities:
3366 mmap private not fixed
3367 mmap private fixed at somewhere currently unmapped
3368 mmap private fixed at somewhere already mapped
3369 mmap shared not fixed
3370 mmap shared fixed at somewhere currently unmapped
3371 mmap shared fixed at somewhere already mapped
3372 For private mappings, we should verify that changes cannot be read()
3373 back from the file, nor mmap's back from the file at a different
3374 address. (There have been systems where private was not correctly
3375 implemented like the infamous i386 svr4.0, and systems where the
3376 VM page cache was not coherent with the filesystem buffer cache
3377 like early versions of FreeBSD and possibly contemporary NetBSD.)
3378 For shared mappings, we should conversely verify that changes get
3379 propogated back to all the places they're supposed to be.
3381 Grep wants private fixed already mapped.
3382 The main things grep needs to know about mmap are:
3383 * does it exist and is it safe to write into the mmap'd area
3384 * how to use it (BSD variants) */
3385 #include <sys/types.h>
3386 #include <fcntl.h>
3387 #include <sys/mman.h>
3389 /* This mess was copied from the GNU getpagesize.h. */
3390 #ifndef HAVE_GETPAGESIZE
3391 # ifdef HAVE_UNISTD_H
3392 # include <unistd.h>
3393 # endif
3395 /* Assume that all systems that can run configure have sys/param.h. */
3396 # ifndef HAVE_SYS_PARAM_H
3397 # define HAVE_SYS_PARAM_H 1
3398 # endif
3400 # ifdef _SC_PAGESIZE
3401 # define getpagesize() sysconf(_SC_PAGESIZE)
3402 # else /* no _SC_PAGESIZE */
3403 # ifdef HAVE_SYS_PARAM_H
3404 # include <sys/param.h>
3405 # ifdef EXEC_PAGESIZE
3406 # define getpagesize() EXEC_PAGESIZE
3407 # else /* no EXEC_PAGESIZE */
3408 # ifdef NBPG
3409 # define getpagesize() NBPG * CLSIZE
3410 # ifndef CLSIZE
3411 # define CLSIZE 1
3412 # endif /* no CLSIZE */
3413 # else /* no NBPG */
3414 # ifdef NBPC
3415 # define getpagesize() NBPC
3416 # else /* no NBPC */
3417 # ifdef PAGESIZE
3418 # define getpagesize() PAGESIZE
3419 # endif /* PAGESIZE */
3420 # endif /* no NBPC */
3421 # endif /* no NBPG */
3422 # endif /* no EXEC_PAGESIZE */
3423 # else /* no HAVE_SYS_PARAM_H */
3424 # define getpagesize() 8192 /* punt totally */
3425 # endif /* no HAVE_SYS_PARAM_H */
3426 # endif /* no _SC_PAGESIZE */
3428 #endif /* no HAVE_GETPAGESIZE */
3430 #ifdef __cplusplus
3431 extern "C" { void *malloc(unsigned); }
3432 #else
3433 char *malloc();
3434 #endif
3437 main()
3439 char *data, *data2, *data3;
3440 int i, pagesize;
3441 int fd;
3443 pagesize = getpagesize();
3446 * First, make a file with some known garbage in it.
3448 data = malloc(pagesize);
3449 if (!data)
3450 exit(1);
3451 for (i = 0; i < pagesize; ++i)
3452 *(data + i) = rand();
3453 umask(0);
3454 fd = creat("conftestmmap", 0600);
3455 if (fd < 0)
3456 exit(1);
3457 if (write(fd, data, pagesize) != pagesize)
3458 exit(1);
3459 close(fd);
3462 * Next, try to mmap the file at a fixed address which
3463 * already has something else allocated at it. If we can,
3464 * also make sure that we see the same garbage.
3466 fd = open("conftestmmap", O_RDWR);
3467 if (fd < 0)
3468 exit(1);
3469 data2 = malloc(2 * pagesize);
3470 if (!data2)
3471 exit(1);
3472 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3473 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3474 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3475 exit(1);
3476 for (i = 0; i < pagesize; ++i)
3477 if (*(data + i) != *(data2 + i))
3478 exit(1);
3481 * Finally, make sure that changes to the mapped area
3482 * do not percolate back to the file as seen by read().
3483 * (This is a bug on some variants of i386 svr4.0.)
3485 for (i = 0; i < pagesize; ++i)
3486 *(data2 + i) = *(data2 + i) + 1;
3487 data3 = malloc(pagesize);
3488 if (!data3)
3489 exit(1);
3490 if (read(fd, data3, pagesize) != pagesize)
3491 exit(1);
3492 for (i = 0; i < pagesize; ++i)
3493 if (*(data + i) != *(data3 + i))
3494 exit(1);
3495 close(fd);
3496 unlink("conftestmmap");
3497 exit(0);
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3502 then
3503 ac_cv_func_mmap_fixed_mapped=yes
3504 else
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3507 rm -fr conftest*
3508 ac_cv_func_mmap_fixed_mapped=no
3510 rm -fr conftest*
3515 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3516 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_MMAP 1
3524 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3525 unistd.h values.h sys/param.h
3527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_hdr" >&5
3530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <$ac_hdr>
3538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3539 { (eval echo configure:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3541 if test -z "$ac_err"; then
3542 rm -rf conftest*
3543 eval "ac_cv_header_$ac_safe=yes"
3544 else
3545 echo "$ac_err" >&5
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3548 rm -rf conftest*
3549 eval "ac_cv_header_$ac_safe=no"
3551 rm -f conftest*
3553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3554 echo "$ac_t""yes" 1>&6
3555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3556 cat >> confdefs.h <<EOF
3557 #define $ac_tr_hdr 1
3560 else
3561 echo "$ac_t""no" 1>&6
3563 done
3565 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3566 __argz_count __argz_stringify __argz_next
3568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_func" >&5
3570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 /* System header to define __stub macros and hopefully few prototypes,
3577 which can conflict with char $ac_func(); below. */
3578 #include <assert.h>
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582 char $ac_func();
3584 int main() {
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3590 choke me
3591 #else
3592 $ac_func();
3593 #endif
3595 ; return 0; }
3597 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 rm -rf conftest*
3599 eval "ac_cv_func_$ac_func=yes"
3600 else
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3603 rm -rf conftest*
3604 eval "ac_cv_func_$ac_func=no"
3606 rm -f conftest*
3609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3612 cat >> confdefs.h <<EOF
3613 #define $ac_tr_func 1
3616 else
3617 echo "$ac_t""no" 1>&6
3619 done
3622 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3623 for ac_func in stpcpy
3625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_func" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char $ac_func(); below. */
3635 #include <assert.h>
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3639 char $ac_func();
3641 int main() {
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 choke me
3648 #else
3649 $ac_func();
3650 #endif
3652 ; return 0; }
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3655 rm -rf conftest*
3656 eval "ac_cv_func_$ac_func=yes"
3657 else
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 rm -rf conftest*
3661 eval "ac_cv_func_$ac_func=no"
3663 rm -f conftest*
3666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_func 1
3673 else
3674 echo "$ac_t""no" 1>&6
3676 done
3679 if test "${ac_cv_func_stpcpy}" = "yes"; then
3680 cat >> confdefs.h <<\EOF
3681 #define HAVE_STPCPY 1
3686 if test $ac_cv_header_locale_h = yes; then
3687 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3688 echo "configure:3689: checking for LC_MESSAGES" >&5
3689 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3691 else
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <locale.h>
3696 int main() {
3697 return LC_MESSAGES
3698 ; return 0; }
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 rm -rf conftest*
3702 am_cv_val_LC_MESSAGES=yes
3703 else
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3706 rm -rf conftest*
3707 am_cv_val_LC_MESSAGES=no
3709 rm -f conftest*
3712 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3713 if test $am_cv_val_LC_MESSAGES = yes; then
3714 cat >> confdefs.h <<\EOF
3715 #define HAVE_LC_MESSAGES 1
3720 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3721 echo "configure:3722: checking whether NLS is requested" >&5
3722 # Check whether --enable-nls or --disable-nls was given.
3723 if test "${enable_nls+set}" = set; then
3724 enableval="$enable_nls"
3725 USE_NLS=$enableval
3726 else
3727 USE_NLS=yes
3730 echo "$ac_t""$USE_NLS" 1>&6
3733 USE_INCLUDED_LIBINTL=no
3735 if test "$USE_NLS" = "yes"; then
3736 cat >> confdefs.h <<\EOF
3737 #define ENABLE_NLS 1
3740 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3741 echo "configure:3742: checking whether included gettext is requested" >&5
3742 # Check whether --with-included-gettext or --without-included-gettext was given.
3743 if test "${with_included_gettext+set}" = set; then
3744 withval="$with_included_gettext"
3745 nls_cv_force_use_gnu_gettext=$withval
3746 else
3747 nls_cv_force_use_gnu_gettext=no
3750 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3752 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3753 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3754 nls_cv_header_intl=
3755 nls_cv_header_libgt=
3756 CATOBJEXT=NONE
3758 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3759 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3760 echo "configure:3761: checking for libintl.h" >&5
3761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <libintl.h>
3769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3770 { (eval echo configure:3771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3772 if test -z "$ac_err"; then
3773 rm -rf conftest*
3774 eval "ac_cv_header_$ac_safe=yes"
3775 else
3776 echo "$ac_err" >&5
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 eval "ac_cv_header_$ac_safe=no"
3782 rm -f conftest*
3784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3787 echo "configure:3788: checking for gettext in libc" >&5
3788 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3790 else
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <libintl.h>
3795 int main() {
3796 return (int) gettext ("")
3797 ; return 0; }
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3800 rm -rf conftest*
3801 gt_cv_func_gettext_libc=yes
3802 else
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 rm -rf conftest*
3806 gt_cv_func_gettext_libc=no
3808 rm -f conftest*
3811 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3813 if test "$gt_cv_func_gettext_libc" != "yes"; then
3814 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3815 echo "configure:3816: checking for bindtextdomain in -lintl" >&5
3816 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3819 else
3820 ac_save_LIBS="$LIBS"
3821 LIBS="-lintl $LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char bindtextdomain();
3830 int main() {
3831 bindtextdomain()
3832 ; return 0; }
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 rm -rf conftest*
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 eval "ac_cv_lib_$ac_lib_var=no"
3843 rm -f conftest*
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3850 echo "configure:3851: checking for gettext in libintl" >&5
3851 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3853 else
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3858 int main() {
3859 return (int) gettext ("")
3860 ; return 0; }
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 rm -rf conftest*
3864 gt_cv_func_gettext_libintl=yes
3865 else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 rm -rf conftest*
3869 gt_cv_func_gettext_libintl=no
3871 rm -f conftest*
3874 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3875 else
3876 echo "$ac_t""no" 1>&6
3881 if test "$gt_cv_func_gettext_libc" = "yes" \
3882 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3883 cat >> confdefs.h <<\EOF
3884 #define HAVE_GETTEXT 1
3887 # Extract the first word of "msgfmt", so it can be a program name with args.
3888 set dummy msgfmt; ac_word=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 case "$MSGFMT" in
3896 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3900 for ac_dir in $PATH; do
3901 test -z "$ac_dir" && ac_dir=.
3902 if test -f $ac_dir/$ac_word; then
3903 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3904 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3905 break
3908 done
3909 IFS="$ac_save_ifs"
3910 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3912 esac
3914 MSGFMT="$ac_cv_path_MSGFMT"
3915 if test -n "$MSGFMT"; then
3916 echo "$ac_t""$MSGFMT" 1>&6
3917 else
3918 echo "$ac_t""no" 1>&6
3920 if test "$MSGFMT" != "no"; then
3921 for ac_func in dcgettext
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3933 #include <assert.h>
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char $ac_func();
3939 int main() {
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3945 choke me
3946 #else
3947 $ac_func();
3948 #endif
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3953 rm -rf conftest*
3954 eval "ac_cv_func_$ac_func=yes"
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 eval "ac_cv_func_$ac_func=no"
3961 rm -f conftest*
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h <<EOF
3968 #define $ac_tr_func 1
3971 else
3972 echo "$ac_t""no" 1>&6
3974 done
3976 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3977 set dummy gmsgfmt; ac_word=$2
3978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_word" >&5
3980 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3983 case "$GMSGFMT" in
3985 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3987 ?:/*)
3988 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3992 ac_dummy="$PATH"
3993 for ac_dir in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir=.
3995 if test -f $ac_dir/$ac_word; then
3996 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3997 break
3999 done
4000 IFS="$ac_save_ifs"
4001 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4003 esac
4005 GMSGFMT="$ac_cv_path_GMSGFMT"
4006 if test -n "$GMSGFMT"; then
4007 echo "$ac_t""$GMSGFMT" 1>&6
4008 else
4009 echo "$ac_t""no" 1>&6
4012 # Extract the first word of "xgettext", so it can be a program name with args.
4013 set dummy xgettext; ac_word=$2
4014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4015 echo "configure:4016: checking for $ac_word" >&5
4016 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4018 else
4019 case "$XGETTEXT" in
4021 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4025 for ac_dir in $PATH; do
4026 test -z "$ac_dir" && ac_dir=.
4027 if test -f $ac_dir/$ac_word; then
4028 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4029 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4030 break
4033 done
4034 IFS="$ac_save_ifs"
4035 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4037 esac
4039 XGETTEXT="$ac_cv_path_XGETTEXT"
4040 if test -n "$XGETTEXT"; then
4041 echo "$ac_t""$XGETTEXT" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4050 int main() {
4051 extern int _nl_msg_cat_cntr;
4052 return _nl_msg_cat_cntr
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056 rm -rf conftest*
4057 CATOBJEXT=.gmo
4058 DATADIRNAME=share
4059 else
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4062 rm -rf conftest*
4063 CATOBJEXT=.mo
4064 DATADIRNAME=lib
4066 rm -f conftest*
4067 INSTOBJEXT=.mo
4071 else
4072 echo "$ac_t""no" 1>&6
4077 if test "$CATOBJEXT" = "NONE"; then
4078 nls_cv_use_gnu_gettext=yes
4082 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4083 INTLOBJS="\$(GETTOBJS)"
4084 # Extract the first word of "msgfmt", so it can be a program name with args.
4085 set dummy msgfmt; ac_word=$2
4086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_word" >&5
4088 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 case "$MSGFMT" in
4093 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4097 for ac_dir in $PATH; do
4098 test -z "$ac_dir" && ac_dir=.
4099 if test -f $ac_dir/$ac_word; then
4100 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4101 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4102 break
4105 done
4106 IFS="$ac_save_ifs"
4107 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4109 esac
4111 MSGFMT="$ac_cv_path_MSGFMT"
4112 if test -n "$MSGFMT"; then
4113 echo "$ac_t""$MSGFMT" 1>&6
4114 else
4115 echo "$ac_t""no" 1>&6
4118 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4119 set dummy gmsgfmt; ac_word=$2
4120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_word" >&5
4122 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4124 else
4125 case "$GMSGFMT" in
4127 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4129 ?:/*)
4130 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4134 ac_dummy="$PATH"
4135 for ac_dir in $ac_dummy; do
4136 test -z "$ac_dir" && ac_dir=.
4137 if test -f $ac_dir/$ac_word; then
4138 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4139 break
4141 done
4142 IFS="$ac_save_ifs"
4143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4145 esac
4147 GMSGFMT="$ac_cv_path_GMSGFMT"
4148 if test -n "$GMSGFMT"; then
4149 echo "$ac_t""$GMSGFMT" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4154 # Extract the first word of "xgettext", so it can be a program name with args.
4155 set dummy xgettext; ac_word=$2
4156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_word" >&5
4158 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4160 else
4161 case "$XGETTEXT" in
4163 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4167 for ac_dir in $PATH; do
4168 test -z "$ac_dir" && ac_dir=.
4169 if test -f $ac_dir/$ac_word; then
4170 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4171 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4172 break
4175 done
4176 IFS="$ac_save_ifs"
4177 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4179 esac
4181 XGETTEXT="$ac_cv_path_XGETTEXT"
4182 if test -n "$XGETTEXT"; then
4183 echo "$ac_t""$XGETTEXT" 1>&6
4184 else
4185 echo "$ac_t""no" 1>&6
4189 USE_INCLUDED_LIBINTL=yes
4190 CATOBJEXT=.gmo
4191 INSTOBJEXT=.mo
4192 DATADIRNAME=share
4193 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4194 INTLLIBS=$INTLDEPS
4195 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4196 nls_cv_header_intl=libintl.h
4197 nls_cv_header_libgt=libgettext.h
4200 if test "$XGETTEXT" != ":"; then
4201 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4203 else
4204 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4205 XGETTEXT=":"
4209 # We need to process the po/ directory.
4210 POSUB=po
4211 else
4212 DATADIRNAME=share
4213 nls_cv_header_intl=libintl.h
4214 nls_cv_header_libgt=libgettext.h
4217 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4218 # because some of the sources are only built for this goal.
4219 if test "$PACKAGE" = gettext; then
4220 USE_NLS=yes
4221 USE_INCLUDED_LIBINTL=yes
4224 for lang in $ALL_LINGUAS; do
4225 GMOFILES="$GMOFILES $lang.gmo"
4226 POFILES="$POFILES $lang.po"
4227 done
4242 if test "x$CATOBJEXT" != "x"; then
4243 if test "x$ALL_LINGUAS" = "x"; then
4244 LINGUAS=
4245 else
4246 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4247 echo "configure:4248: checking for catalogs to be installed" >&5
4248 NEW_LINGUAS=
4249 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4250 case "$ALL_LINGUAS" in
4251 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4252 esac
4253 done
4254 LINGUAS=$NEW_LINGUAS
4255 echo "$ac_t""$LINGUAS" 1>&6
4258 if test -n "$LINGUAS"; then
4259 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4263 if test $ac_cv_header_locale_h = yes; then
4264 INCLUDE_LOCALE_H="#include <locale.h>"
4265 else
4266 INCLUDE_LOCALE_H="\
4267 /* The system does not provide the header <locale.h>. Take care yourself. */"
4271 if test -f $srcdir/po2tbl.sed.in; then
4272 if test "$CATOBJEXT" = ".cat"; then
4273 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4274 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4275 echo "configure:4276: checking for linux/version.h" >&5
4276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 #include <linux/version.h>
4284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4285 { (eval echo configure:4286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4287 if test -z "$ac_err"; then
4288 rm -rf conftest*
4289 eval "ac_cv_header_$ac_safe=yes"
4290 else
4291 echo "$ac_err" >&5
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4294 rm -rf conftest*
4295 eval "ac_cv_header_$ac_safe=no"
4297 rm -f conftest*
4299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4301 msgformat=linux
4302 else
4303 echo "$ac_t""no" 1>&6
4304 msgformat=xopen
4308 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4310 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4311 $srcdir/po2tbl.sed.in > po2tbl.sed
4314 if test "$PACKAGE" = "gettext"; then
4315 GT_NO="#NO#"
4316 GT_YES=
4317 else
4318 GT_NO=
4319 GT_YES="#YES#"
4324 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4330 if test -d $srcdir/po; then
4331 test -d po || mkdir po
4332 if test "x$srcdir" != "x."; then
4333 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4334 posrcprefix="$srcdir/"
4335 else
4336 posrcprefix="../$srcdir/"
4338 else
4339 posrcprefix="../"
4341 rm -f po/POTFILES
4342 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4343 < $srcdir/po/POTFILES.in > po/POTFILES
4347 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4348 echo "configure:4349: checking whether to enable maintainer-specific portions of Makefiles" >&5
4349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4350 if test "${enable_maintainer_mode+set}" = set; then
4351 enableval="$enable_maintainer_mode"
4352 USE_MAINTAINER_MODE=$enableval
4353 else
4354 USE_MAINTAINER_MODE=no
4357 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4360 if test $USE_MAINTAINER_MODE = yes; then
4361 MAINTAINER_MODE_TRUE=
4362 MAINTAINER_MODE_FALSE='#'
4363 else
4364 MAINTAINER_MODE_TRUE='#'
4365 MAINTAINER_MODE_FALSE=
4367 MAINT=$MAINTAINER_MODE_TRUE
4372 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4373 echo "configure:4374: checking for executable suffix" >&5
4374 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4378 ac_cv_exeext=.exe
4379 else
4380 rm -f conftest*
4381 echo 'int main () { return 0; }' > conftest.$ac_ext
4382 ac_cv_exeext=
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4384 for file in conftest.*; do
4385 case $file in
4386 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4387 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4388 esac
4389 done
4390 else
4391 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4393 rm -f conftest*
4394 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4398 EXEEXT=""
4399 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4400 echo "$ac_t""${ac_cv_exeext}" 1>&6
4401 ac_exeext=$EXEEXT
4403 if test -n "$EXEEXT"; then
4404 cat >> confdefs.h <<\EOF
4405 #define HAVE_EXECUTABLE_SUFFIX 1
4409 cat >> confdefs.h <<EOF
4410 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4414 # host-specific stuff:
4416 HDEFINES=
4418 . ${srcdir}/../bfd/configure.host
4421 AR=${AR-ar}
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib; ac_word=$2
4425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_word" >&5
4427 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4429 else
4430 if test -n "$RANLIB"; then
4431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4432 else
4433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4434 ac_dummy="$PATH"
4435 for ac_dir in $ac_dummy; do
4436 test -z "$ac_dir" && ac_dir=.
4437 if test -f $ac_dir/$ac_word; then
4438 ac_cv_prog_RANLIB="ranlib"
4439 break
4441 done
4442 IFS="$ac_save_ifs"
4443 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4446 RANLIB="$ac_cv_prog_RANLIB"
4447 if test -n "$RANLIB"; then
4448 echo "$ac_t""$RANLIB" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4453 # Find a good install program. We prefer a C program (faster),
4454 # so one script is as good as another. But avoid the broken or
4455 # incompatible versions:
4456 # SysV /etc/install, /usr/sbin/install
4457 # SunOS /usr/etc/install
4458 # IRIX /sbin/install
4459 # AIX /bin/install
4460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4463 # ./install, which can be erroneously created by make from ./install.sh.
4464 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4465 echo "configure:4466: checking for a BSD compatible install" >&5
4466 if test -z "$INSTALL"; then
4467 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4471 for ac_dir in $PATH; do
4472 # Account for people who put trailing slashes in PATH elements.
4473 case "$ac_dir/" in
4474 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4476 # OSF1 and SCO ODT 3.0 have their own names for install.
4477 # Don't use installbsd from OSF since it installs stuff as root
4478 # by default.
4479 for ac_prog in ginstall scoinst install; do
4480 if test -f $ac_dir/$ac_prog; then
4481 if test $ac_prog = install &&
4482 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4483 # AIX install. It has an incompatible calling convention.
4485 else
4486 ac_cv_path_install="$ac_dir/$ac_prog -c"
4487 break 2
4490 done
4492 esac
4493 done
4494 IFS="$ac_save_IFS"
4497 if test "${ac_cv_path_install+set}" = set; then
4498 INSTALL="$ac_cv_path_install"
4499 else
4500 # As a last resort, use the slow shell script. We don't cache a
4501 # path for INSTALL within a source directory, because that will
4502 # break other packages using the cache if that directory is
4503 # removed, or if the path is relative.
4504 INSTALL="$ac_install_sh"
4507 echo "$ac_t""$INSTALL" 1>&6
4509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4510 # It thinks the first close brace ends the variable substitution.
4511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4518 # Put a plausible default for CC_FOR_BUILD in Makefile.
4519 if test -z "$CC_FOR_BUILD"; then
4520 if test "x$cross_compiling" = "xno"; then
4521 CC_FOR_BUILD='$(CC)'
4522 else
4523 CC_FOR_BUILD=gcc
4527 # Also set EXEEXT_FOR_BUILD.
4528 if test "x$cross_compiling" = "xno"; then
4529 EXEEXT_FOR_BUILD='$(EXEEXT)'
4530 else
4531 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4532 echo "configure:4533: checking for build system executable suffix" >&5
4533 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 rm -f conftest*
4537 echo 'int main () { return 0; }' > conftest.c
4538 bfd_cv_build_exeext=
4539 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4540 for file in conftest.*; do
4541 case $file in
4542 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4543 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544 esac
4545 done
4546 rm -f conftest*
4547 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4550 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4551 EXEEXT_FOR_BUILD=""
4552 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4556 DEMANGLER_NAME=c++filt
4557 case "${host}" in
4558 *-*-go32* | *-*-msdos*)
4559 DEMANGLER_NAME=cxxfilt
4560 esac
4563 for ac_hdr in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
4565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_hdr" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570 else
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 #include <$ac_hdr>
4576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4577 { (eval echo configure:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4579 if test -z "$ac_err"; then
4580 rm -rf conftest*
4581 eval "ac_cv_header_$ac_safe=yes"
4582 else
4583 echo "$ac_err" >&5
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 rm -rf conftest*
4587 eval "ac_cv_header_$ac_safe=no"
4589 rm -f conftest*
4591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4594 cat >> confdefs.h <<EOF
4595 #define $ac_tr_hdr 1
4598 else
4599 echo "$ac_t""no" 1>&6
4601 done
4603 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4604 echo "configure:4605: checking for sys/wait.h that is POSIX.1 compatible" >&5
4605 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 #include <sys/types.h>
4612 #include <sys/wait.h>
4613 #ifndef WEXITSTATUS
4614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4615 #endif
4616 #ifndef WIFEXITED
4617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4618 #endif
4619 int main() {
4620 int s;
4621 wait (&s);
4622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4623 ; return 0; }
4625 if { (eval echo configure:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4626 rm -rf conftest*
4627 ac_cv_header_sys_wait_h=yes
4628 else
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4631 rm -rf conftest*
4632 ac_cv_header_sys_wait_h=no
4634 rm -f conftest*
4637 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4638 if test $ac_cv_header_sys_wait_h = yes; then
4639 cat >> confdefs.h <<\EOF
4640 #define HAVE_SYS_WAIT_H 1
4645 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4646 # for constant arguments. Useless!
4647 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4648 echo "configure:4649: checking for working alloca.h" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4651 else
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <alloca.h>
4656 int main() {
4657 char *p = alloca(2 * sizeof(int));
4658 ; return 0; }
4660 if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4661 rm -rf conftest*
4662 ac_cv_header_alloca_h=yes
4663 else
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 rm -rf conftest*
4667 ac_cv_header_alloca_h=no
4669 rm -f conftest*
4672 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4673 if test $ac_cv_header_alloca_h = yes; then
4674 cat >> confdefs.h <<\EOF
4675 #define HAVE_ALLOCA_H 1
4680 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4681 echo "configure:4682: checking for alloca" >&5
4682 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4684 else
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4689 #ifdef __GNUC__
4690 # define alloca __builtin_alloca
4691 #else
4692 # ifdef _MSC_VER
4693 # include <malloc.h>
4694 # define alloca _alloca
4695 # else
4696 # if HAVE_ALLOCA_H
4697 # include <alloca.h>
4698 # else
4699 # ifdef _AIX
4700 #pragma alloca
4701 # else
4702 # ifndef alloca /* predefined by HP cc +Olibcalls */
4703 char *alloca ();
4704 # endif
4705 # endif
4706 # endif
4707 # endif
4708 #endif
4710 int main() {
4711 char *p = (char *) alloca(1);
4712 ; return 0; }
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4715 rm -rf conftest*
4716 ac_cv_func_alloca_works=yes
4717 else
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 rm -rf conftest*
4721 ac_cv_func_alloca_works=no
4723 rm -f conftest*
4726 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4727 if test $ac_cv_func_alloca_works = yes; then
4728 cat >> confdefs.h <<\EOF
4729 #define HAVE_ALLOCA 1
4734 if test $ac_cv_func_alloca_works = no; then
4735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4736 # that cause trouble. Some versions do not even contain alloca or
4737 # contain a buggy version. If you still want to use their alloca,
4738 # use ar to extract alloca.o from them instead of compiling alloca.c.
4739 ALLOCA=alloca.${ac_objext}
4740 cat >> confdefs.h <<\EOF
4741 #define C_ALLOCA 1
4745 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether alloca needs Cray hooks" >&5
4747 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #if defined(CRAY) && ! defined(CRAY2)
4754 webecray
4755 #else
4756 wenotbecray
4757 #endif
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 egrep "webecray" >/dev/null 2>&1; then
4762 rm -rf conftest*
4763 ac_cv_os_cray=yes
4764 else
4765 rm -rf conftest*
4766 ac_cv_os_cray=no
4768 rm -f conftest*
4772 echo "$ac_t""$ac_cv_os_cray" 1>&6
4773 if test $ac_cv_os_cray = yes; then
4774 for ac_func in _getb67 GETB67 getb67; do
4775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_func" >&5
4777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4779 else
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char $ac_func(); below. */
4785 #include <assert.h>
4786 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4789 char $ac_func();
4791 int main() {
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4797 choke me
4798 #else
4799 $ac_func();
4800 #endif
4802 ; return 0; }
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4805 rm -rf conftest*
4806 eval "ac_cv_func_$ac_func=yes"
4807 else
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 eval "ac_cv_func_$ac_func=no"
4813 rm -f conftest*
4816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 cat >> confdefs.h <<EOF
4819 #define CRAY_STACKSEG_END $ac_func
4822 break
4823 else
4824 echo "$ac_t""no" 1>&6
4827 done
4830 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4831 echo "configure:4832: checking stack direction for C alloca" >&5
4832 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4834 else
4835 if test "$cross_compiling" = yes; then
4836 ac_cv_c_stack_direction=0
4837 else
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 find_stack_direction ()
4843 static char *addr = 0;
4844 auto char dummy;
4845 if (addr == 0)
4847 addr = &dummy;
4848 return find_stack_direction ();
4850 else
4851 return (&dummy > addr) ? 1 : -1;
4853 main ()
4855 exit (find_stack_direction() < 0);
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4859 then
4860 ac_cv_c_stack_direction=1
4861 else
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -fr conftest*
4865 ac_cv_c_stack_direction=-1
4867 rm -fr conftest*
4872 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4873 cat >> confdefs.h <<EOF
4874 #define STACK_DIRECTION $ac_cv_c_stack_direction
4879 for ac_func in sbrk utimes setmode
4881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_func" >&5
4883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */
4891 #include <assert.h>
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895 char $ac_func();
4897 int main() {
4899 /* The GNU C library defines this for functions which it implements
4900 to always fail with ENOSYS. Some functions are actually named
4901 something starting with __ and the normal name is an alias. */
4902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4903 choke me
4904 #else
4905 $ac_func();
4906 #endif
4908 ; return 0; }
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4911 rm -rf conftest*
4912 eval "ac_cv_func_$ac_func=yes"
4913 else
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 rm -rf conftest*
4917 eval "ac_cv_func_$ac_func=no"
4919 rm -f conftest*
4922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_func 1
4929 else
4930 echo "$ac_t""no" 1>&6
4932 done
4935 # Some systems have frexp only in -lm, not in -lc.
4937 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4938 echo "configure:4939: checking for library containing frexp" >&5
4939 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4941 else
4942 ac_func_search_save_LIBS="$LIBS"
4943 ac_cv_search_frexp="no"
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char frexp();
4952 int main() {
4953 frexp()
4954 ; return 0; }
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 rm -rf conftest*
4958 ac_cv_search_frexp="none required"
4959 else
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 rm -f conftest*
4964 test "$ac_cv_search_frexp" = "no" && for i in m; do
4965 LIBS="-l$i $ac_func_search_save_LIBS"
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4972 char frexp();
4974 int main() {
4975 frexp()
4976 ; return 0; }
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 rm -rf conftest*
4980 ac_cv_search_frexp="-l$i"
4981 break
4982 else
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 rm -f conftest*
4987 done
4988 LIBS="$ac_func_search_save_LIBS"
4991 echo "$ac_t""$ac_cv_search_frexp" 1>&6
4992 if test "$ac_cv_search_frexp" != "no"; then
4993 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
4995 else :
4999 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5000 echo "configure:5001: checking for time_t in time.h" >&5
5001 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <time.h>
5008 int main() {
5009 time_t i;
5010 ; return 0; }
5012 if { (eval echo configure:5013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5013 rm -rf conftest*
5014 bu_cv_decl_time_t_time_h=yes
5015 else
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5018 rm -rf conftest*
5019 bu_cv_decl_time_t_time_h=no
5021 rm -f conftest*
5024 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5025 if test $bu_cv_decl_time_t_time_h = yes; then
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_TIME_T_IN_TIME_H 1
5032 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5033 echo "configure:5034: checking for time_t in sys/types.h" >&5
5034 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5036 else
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5040 #include <sys/types.h>
5041 int main() {
5042 time_t i;
5043 ; return 0; }
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5046 rm -rf conftest*
5047 bu_cv_decl_time_t_types_h=yes
5048 else
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5051 rm -rf conftest*
5052 bu_cv_decl_time_t_types_h=no
5054 rm -f conftest*
5057 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5058 if test $bu_cv_decl_time_t_types_h = yes; then
5059 cat >> confdefs.h <<\EOF
5060 #define HAVE_TIME_T_IN_TYPES_H 1
5065 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5066 # by default.
5067 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5068 echo "configure:5069: checking for utime.h" >&5
5069 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5071 else
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 #include <sys/types.h>
5076 #ifdef HAVE_TIME_H
5077 #include <time.h>
5078 #endif
5079 #include <utime.h>
5080 int main() {
5081 struct utimbuf s;
5082 ; return 0; }
5084 if { (eval echo configure:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5085 rm -rf conftest*
5086 bu_cv_header_utime_h=yes
5087 else
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 rm -rf conftest*
5091 bu_cv_header_utime_h=no
5093 rm -f conftest*
5096 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5097 if test $bu_cv_header_utime_h = yes; then
5098 cat >> confdefs.h <<\EOF
5099 #define HAVE_GOOD_UTIME_H 1
5104 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5105 echo "configure:5106: checking whether fprintf must be declared" >&5
5106 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5108 else
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5113 #include <stdio.h>
5114 #ifdef HAVE_STRING_H
5115 #include <string.h>
5116 #else
5117 #ifdef HAVE_STRINGS_H
5118 #include <strings.h>
5119 #endif
5120 #endif
5121 #ifdef HAVE_STDLIB_H
5122 #include <stdlib.h>
5123 #endif
5124 #ifdef HAVE_UNISTD_H
5125 #include <unistd.h>
5126 #endif
5127 int main() {
5128 char *(*pfn) = (char *(*)) fprintf
5129 ; return 0; }
5131 if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 rm -rf conftest*
5133 bfd_cv_decl_needed_fprintf=no
5134 else
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 rm -rf conftest*
5138 bfd_cv_decl_needed_fprintf=yes
5140 rm -f conftest*
5143 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5144 if test $bfd_cv_decl_needed_fprintf = yes; then
5145 cat >> confdefs.h <<\EOF
5146 #define NEED_DECLARATION_FPRINTF 1
5151 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5152 echo "configure:5153: checking whether strstr must be declared" >&5
5153 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5155 else
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5160 #include <stdio.h>
5161 #ifdef HAVE_STRING_H
5162 #include <string.h>
5163 #else
5164 #ifdef HAVE_STRINGS_H
5165 #include <strings.h>
5166 #endif
5167 #endif
5168 #ifdef HAVE_STDLIB_H
5169 #include <stdlib.h>
5170 #endif
5171 #ifdef HAVE_UNISTD_H
5172 #include <unistd.h>
5173 #endif
5174 int main() {
5175 char *(*pfn) = (char *(*)) strstr
5176 ; return 0; }
5178 if { (eval echo configure:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5179 rm -rf conftest*
5180 bfd_cv_decl_needed_strstr=no
5181 else
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 rm -rf conftest*
5185 bfd_cv_decl_needed_strstr=yes
5187 rm -f conftest*
5190 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5191 if test $bfd_cv_decl_needed_strstr = yes; then
5192 cat >> confdefs.h <<\EOF
5193 #define NEED_DECLARATION_STRSTR 1
5198 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5199 echo "configure:5200: checking whether sbrk must be declared" >&5
5200 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5202 else
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5207 #include <stdio.h>
5208 #ifdef HAVE_STRING_H
5209 #include <string.h>
5210 #else
5211 #ifdef HAVE_STRINGS_H
5212 #include <strings.h>
5213 #endif
5214 #endif
5215 #ifdef HAVE_STDLIB_H
5216 #include <stdlib.h>
5217 #endif
5218 #ifdef HAVE_UNISTD_H
5219 #include <unistd.h>
5220 #endif
5221 int main() {
5222 char *(*pfn) = (char *(*)) sbrk
5223 ; return 0; }
5225 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5226 rm -rf conftest*
5227 bfd_cv_decl_needed_sbrk=no
5228 else
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 rm -rf conftest*
5232 bfd_cv_decl_needed_sbrk=yes
5234 rm -f conftest*
5237 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5238 if test $bfd_cv_decl_needed_sbrk = yes; then
5239 cat >> confdefs.h <<\EOF
5240 #define NEED_DECLARATION_SBRK 1
5245 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5246 echo "configure:5247: checking whether getenv must be declared" >&5
5247 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5254 #include <stdio.h>
5255 #ifdef HAVE_STRING_H
5256 #include <string.h>
5257 #else
5258 #ifdef HAVE_STRINGS_H
5259 #include <strings.h>
5260 #endif
5261 #endif
5262 #ifdef HAVE_STDLIB_H
5263 #include <stdlib.h>
5264 #endif
5265 #ifdef HAVE_UNISTD_H
5266 #include <unistd.h>
5267 #endif
5268 int main() {
5269 char *(*pfn) = (char *(*)) getenv
5270 ; return 0; }
5272 if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5273 rm -rf conftest*
5274 bfd_cv_decl_needed_getenv=no
5275 else
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5278 rm -rf conftest*
5279 bfd_cv_decl_needed_getenv=yes
5281 rm -f conftest*
5284 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5285 if test $bfd_cv_decl_needed_getenv = yes; then
5286 cat >> confdefs.h <<\EOF
5287 #define NEED_DECLARATION_GETENV 1
5292 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5293 echo "configure:5294: checking whether environ must be declared" >&5
5294 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5296 else
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5301 #include <stdio.h>
5302 #ifdef HAVE_STRING_H
5303 #include <string.h>
5304 #else
5305 #ifdef HAVE_STRINGS_H
5306 #include <strings.h>
5307 #endif
5308 #endif
5309 #ifdef HAVE_STDLIB_H
5310 #include <stdlib.h>
5311 #endif
5312 #ifdef HAVE_UNISTD_H
5313 #include <unistd.h>
5314 #endif
5315 int main() {
5316 char *(*pfn) = (char *(*)) environ
5317 ; return 0; }
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 rm -rf conftest*
5321 bfd_cv_decl_needed_environ=no
5322 else
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 rm -rf conftest*
5326 bfd_cv_decl_needed_environ=yes
5328 rm -f conftest*
5331 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5332 if test $bfd_cv_decl_needed_environ = yes; then
5333 cat >> confdefs.h <<\EOF
5334 #define NEED_DECLARATION_ENVIRON 1
5341 case "${host}" in
5342 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5343 cat >> confdefs.h <<\EOF
5344 #define USE_BINARY_FOPEN 1
5347 esac
5349 # target-specific stuff:
5351 # Canonicalize the secondary target names.
5352 if test -n "$enable_targets"; then
5353 for targ in `echo $enable_targets | sed 's/,/ /g'`
5355 result=`$ac_config_sub $targ 2>/dev/null`
5356 if test -n "$result"; then
5357 canon_targets="$canon_targets $result"
5358 else
5359 # Allow targets that config.sub doesn't recognize, like "all".
5360 canon_targets="$canon_targets $targ"
5362 done
5365 all_targets=false
5366 BUILD_NLMCONV=
5367 NLMCONV_DEFS=
5368 BUILD_SRCONV=
5369 BUILD_DLLTOOL=
5370 DLLTOOL_DEFS=
5371 BUILD_WINDRES=
5372 BUILD_DLLWRAP=
5373 BUILD_MISC=
5374 OBJDUMP_DEFS=
5376 for targ in $target $canon_targets
5378 if test "x$targ" = "xall"; then
5379 all_targets=true
5380 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5381 BUILD_SRCONV='$(SRCONV_PROG)'
5382 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5383 else
5384 case $targ in
5385 i[3456]86*-*-netware*)
5386 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5387 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
5389 alpha*-*-netware*)
5390 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5391 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5393 powerpc*-*-netware*)
5394 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5395 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5397 sparc*-*-netware*)
5398 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
5399 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
5401 esac
5402 case $targ in
5403 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
5404 esac
5405 case $targ in
5406 arm-epoc-pe*)
5407 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5408 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5409 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5411 arm-*pe* | arm-*-wince)
5412 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5413 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5414 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5416 thumb-*pe*)
5417 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5418 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5419 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5421 arm*-* | xscale-* | strongarm-* | d10v-*)
5422 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
5424 i[3-6]86-*pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32*)
5425 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5426 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5427 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5428 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
5430 i3-686-*-interix)
5431 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
5432 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
5434 powerpc*-*-*pe* | powerpc*-*-cygwin*)
5435 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5436 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5437 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5439 sh*-*-*pe)
5440 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5441 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
5442 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5444 mips*-*-*pe)
5445 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5446 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5447 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5449 mcore-*pe)
5450 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5451 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5452 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
5454 mcore-*elf)
5455 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
5456 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5458 esac
5460 done
5472 cat >> confdefs.h <<EOF
5473 #define TARGET "${target}"
5477 targ=$target
5478 . $srcdir/../bfd/config.bfd
5479 if test "x$targ_underscore" = "xyes"; then
5480 UNDERSCORE=1
5481 else
5482 UNDERSCORE=0
5486 trap '' 1 2 15
5487 cat > confcache <<\EOF
5488 # This file is a shell script that caches the results of configure
5489 # tests run on this system so they can be shared between configure
5490 # scripts and configure runs. It is not useful on other systems.
5491 # If it contains results you don't want to keep, you may remove or edit it.
5493 # By default, configure uses ./config.cache as the cache file,
5494 # creating it if it does not exist already. You can give configure
5495 # the --cache-file=FILE option to use a different cache file; that is
5496 # what configure does when it calls configure scripts in
5497 # subdirectories, so they share the cache.
5498 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5499 # config.status only pays attention to the cache file if you give it the
5500 # --recheck option to rerun configure.
5503 # The following way of writing the cache mishandles newlines in values,
5504 # but we know of no workaround that is simple, portable, and efficient.
5505 # So, don't put newlines in cache variables' values.
5506 # Ultrix sh set writes to stderr and can't be redirected directly,
5507 # and sets the high bit in the cache file unless we assign to the vars.
5508 (set) 2>&1 |
5509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5510 *ac_space=\ *)
5511 # `set' does not quote correctly, so add quotes (double-quote substitution
5512 # turns \\\\ into \\, and sed turns \\ into \).
5513 sed -n \
5514 -e "s/'/'\\\\''/g" \
5515 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5518 # `set' quotes correctly as required by POSIX, so do not add quotes.
5519 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5521 esac >> confcache
5522 if cmp -s $cache_file confcache; then
5524 else
5525 if test -w $cache_file; then
5526 echo "updating cache $cache_file"
5527 cat confcache > $cache_file
5528 else
5529 echo "not updating unwritable cache $cache_file"
5532 rm -f confcache
5534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5537 # Let make expand exec_prefix.
5538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5540 # Any assignment to VPATH causes Sun make to only execute
5541 # the first set of double-colon rules, so remove it if not needed.
5542 # If there is a colon in the path, we need to keep it.
5543 if test "x$srcdir" = x.; then
5544 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5547 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5549 DEFS=-DHAVE_CONFIG_H
5551 # Without the "./", some shells look in PATH for config.status.
5552 : ${CONFIG_STATUS=./config.status}
5554 echo creating $CONFIG_STATUS
5555 rm -f $CONFIG_STATUS
5556 cat > $CONFIG_STATUS <<EOF
5557 #! /bin/sh
5558 # Generated automatically by configure.
5559 # Run this file to recreate the current configuration.
5560 # This directory was configured as follows,
5561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5563 # $0 $ac_configure_args
5565 # Compiler output produced by configure, useful for debugging
5566 # configure, is in ./config.log if it exists.
5568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5569 for ac_option
5571 case "\$ac_option" in
5572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5576 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5577 exit 0 ;;
5578 -help | --help | --hel | --he | --h)
5579 echo "\$ac_cs_usage"; exit 0 ;;
5580 *) echo "\$ac_cs_usage"; exit 1 ;;
5581 esac
5582 done
5584 ac_given_srcdir=$srcdir
5585 ac_given_INSTALL="$INSTALL"
5587 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5589 cat >> $CONFIG_STATUS <<EOF
5591 # Protect against being on the right side of a sed subst in config.status.
5592 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5593 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5594 $ac_vpsub
5595 $extrasub
5596 s%@SHELL@%$SHELL%g
5597 s%@CFLAGS@%$CFLAGS%g
5598 s%@CPPFLAGS@%$CPPFLAGS%g
5599 s%@CXXFLAGS@%$CXXFLAGS%g
5600 s%@FFLAGS@%$FFLAGS%g
5601 s%@DEFS@%$DEFS%g
5602 s%@LDFLAGS@%$LDFLAGS%g
5603 s%@LIBS@%$LIBS%g
5604 s%@exec_prefix@%$exec_prefix%g
5605 s%@prefix@%$prefix%g
5606 s%@program_transform_name@%$program_transform_name%g
5607 s%@bindir@%$bindir%g
5608 s%@sbindir@%$sbindir%g
5609 s%@libexecdir@%$libexecdir%g
5610 s%@datadir@%$datadir%g
5611 s%@sysconfdir@%$sysconfdir%g
5612 s%@sharedstatedir@%$sharedstatedir%g
5613 s%@localstatedir@%$localstatedir%g
5614 s%@libdir@%$libdir%g
5615 s%@includedir@%$includedir%g
5616 s%@oldincludedir@%$oldincludedir%g
5617 s%@infodir@%$infodir%g
5618 s%@mandir@%$mandir%g
5619 s%@host@%$host%g
5620 s%@host_alias@%$host_alias%g
5621 s%@host_cpu@%$host_cpu%g
5622 s%@host_vendor@%$host_vendor%g
5623 s%@host_os@%$host_os%g
5624 s%@target@%$target%g
5625 s%@target_alias@%$target_alias%g
5626 s%@target_cpu@%$target_cpu%g
5627 s%@target_vendor@%$target_vendor%g
5628 s%@target_os@%$target_os%g
5629 s%@build@%$build%g
5630 s%@build_alias@%$build_alias%g
5631 s%@build_cpu@%$build_cpu%g
5632 s%@build_vendor@%$build_vendor%g
5633 s%@build_os@%$build_os%g
5634 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5635 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5636 s%@INSTALL_DATA@%$INSTALL_DATA%g
5637 s%@PACKAGE@%$PACKAGE%g
5638 s%@VERSION@%$VERSION%g
5639 s%@ACLOCAL@%$ACLOCAL%g
5640 s%@AUTOCONF@%$AUTOCONF%g
5641 s%@AUTOMAKE@%$AUTOMAKE%g
5642 s%@AUTOHEADER@%$AUTOHEADER%g
5643 s%@MAKEINFO@%$MAKEINFO%g
5644 s%@SET_MAKE@%$SET_MAKE%g
5645 s%@CC@%$CC%g
5646 s%@LN_S@%$LN_S%g
5647 s%@OBJEXT@%$OBJEXT%g
5648 s%@EXEEXT@%$EXEEXT%g
5649 s%@RANLIB@%$RANLIB%g
5650 s%@STRIP@%$STRIP%g
5651 s%@LIBTOOL@%$LIBTOOL%g
5652 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5653 s%@YACC@%$YACC%g
5654 s%@LEX@%$LEX%g
5655 s%@LEXLIB@%$LEXLIB%g
5656 s%@CPP@%$CPP%g
5657 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5658 s%@ALLOCA@%$ALLOCA%g
5659 s%@USE_NLS@%$USE_NLS%g
5660 s%@MSGFMT@%$MSGFMT%g
5661 s%@GMSGFMT@%$GMSGFMT%g
5662 s%@XGETTEXT@%$XGETTEXT%g
5663 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5664 s%@CATALOGS@%$CATALOGS%g
5665 s%@CATOBJEXT@%$CATOBJEXT%g
5666 s%@DATADIRNAME@%$DATADIRNAME%g
5667 s%@GMOFILES@%$GMOFILES%g
5668 s%@INSTOBJEXT@%$INSTOBJEXT%g
5669 s%@INTLDEPS@%$INTLDEPS%g
5670 s%@INTLLIBS@%$INTLLIBS%g
5671 s%@INTLOBJS@%$INTLOBJS%g
5672 s%@POFILES@%$POFILES%g
5673 s%@POSUB@%$POSUB%g
5674 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5675 s%@GT_NO@%$GT_NO%g
5676 s%@GT_YES@%$GT_YES%g
5677 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5678 s%@l@%$l%g
5679 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5680 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5681 s%@MAINT@%$MAINT%g
5682 s%@HDEFINES@%$HDEFINES%g
5683 s%@AR@%$AR%g
5684 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5685 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5686 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5687 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5688 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5689 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5690 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5691 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5692 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5693 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5694 s%@BUILD_MISC@%$BUILD_MISC%g
5695 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5696 s%@UNDERSCORE@%$UNDERSCORE%g
5698 CEOF
5701 cat >> $CONFIG_STATUS <<\EOF
5703 # Split the substitutions into bite-sized pieces for seds with
5704 # small command number limits, like on Digital OSF/1 and HP-UX.
5705 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5706 ac_file=1 # Number of current file.
5707 ac_beg=1 # First line for current file.
5708 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5709 ac_more_lines=:
5710 ac_sed_cmds=""
5711 while $ac_more_lines; do
5712 if test $ac_beg -gt 1; then
5713 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5714 else
5715 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5717 if test ! -s conftest.s$ac_file; then
5718 ac_more_lines=false
5719 rm -f conftest.s$ac_file
5720 else
5721 if test -z "$ac_sed_cmds"; then
5722 ac_sed_cmds="sed -f conftest.s$ac_file"
5723 else
5724 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5726 ac_file=`expr $ac_file + 1`
5727 ac_beg=$ac_end
5728 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5730 done
5731 if test -z "$ac_sed_cmds"; then
5732 ac_sed_cmds=cat
5736 cat >> $CONFIG_STATUS <<EOF
5738 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5740 cat >> $CONFIG_STATUS <<\EOF
5741 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5743 case "$ac_file" in
5744 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5745 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5746 *) ac_file_in="${ac_file}.in" ;;
5747 esac
5749 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5751 # Remove last slash and all that follows it. Not all systems have dirname.
5752 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5754 # The file is in a subdirectory.
5755 test ! -d "$ac_dir" && mkdir "$ac_dir"
5756 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5757 # A "../" for each directory in $ac_dir_suffix.
5758 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5759 else
5760 ac_dir_suffix= ac_dots=
5763 case "$ac_given_srcdir" in
5764 .) srcdir=.
5765 if test -z "$ac_dots"; then top_srcdir=.
5766 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5767 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5768 *) # Relative path.
5769 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5770 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5771 esac
5773 case "$ac_given_INSTALL" in
5774 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5775 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5776 esac
5778 echo creating "$ac_file"
5779 rm -f "$ac_file"
5780 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5781 case "$ac_file" in
5782 *Makefile*) ac_comsub="1i\\
5783 # $configure_input" ;;
5784 *) ac_comsub= ;;
5785 esac
5787 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5788 sed -e "$ac_comsub
5789 s%@configure_input@%$configure_input%g
5790 s%@srcdir@%$srcdir%g
5791 s%@top_srcdir@%$top_srcdir%g
5792 s%@INSTALL@%$INSTALL%g
5793 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5794 fi; done
5795 rm -f conftest.s*
5797 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5798 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5800 # ac_d sets the value in "#define NAME VALUE" lines.
5801 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5802 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5803 ac_dC='\3'
5804 ac_dD='%g'
5805 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5806 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5807 ac_uB='\([ ]\)%\1#\2define\3'
5808 ac_uC=' '
5809 ac_uD='\4%g'
5810 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5811 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5812 ac_eB='$%\1#\2define\3'
5813 ac_eC=' '
5814 ac_eD='%g'
5816 if test "${CONFIG_HEADERS+set}" != set; then
5818 cat >> $CONFIG_STATUS <<EOF
5819 CONFIG_HEADERS="config.h:config.in"
5821 cat >> $CONFIG_STATUS <<\EOF
5823 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5825 case "$ac_file" in
5826 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5827 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5828 *) ac_file_in="${ac_file}.in" ;;
5829 esac
5831 echo creating $ac_file
5833 rm -f conftest.frag conftest.in conftest.out
5834 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5835 cat $ac_file_inputs > conftest.in
5839 # Transform confdefs.h into a sed script conftest.vals that substitutes
5840 # the proper values into config.h.in to produce config.h. And first:
5841 # Protect against being on the right side of a sed subst in config.status.
5842 # Protect against being in an unquoted here document in config.status.
5843 rm -f conftest.vals
5844 cat > conftest.hdr <<\EOF
5845 s/[\\&%]/\\&/g
5846 s%[\\$`]%\\&%g
5847 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5848 s%ac_d%ac_u%gp
5849 s%ac_u%ac_e%gp
5851 sed -n -f conftest.hdr confdefs.h > conftest.vals
5852 rm -f conftest.hdr
5854 # This sed command replaces #undef with comments. This is necessary, for
5855 # example, in the case of _POSIX_SOURCE, which is predefined and required
5856 # on some systems where configure will not decide to define it.
5857 cat >> conftest.vals <<\EOF
5858 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5861 # Break up conftest.vals because some shells have a limit on
5862 # the size of here documents, and old seds have small limits too.
5864 rm -f conftest.tail
5865 while :
5867 ac_lines=`grep -c . conftest.vals`
5868 # grep -c gives empty output for an empty file on some AIX systems.
5869 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5870 # Write a limited-size here document to conftest.frag.
5871 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5872 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5873 echo 'CEOF
5874 sed -f conftest.frag conftest.in > conftest.out
5875 rm -f conftest.in
5876 mv conftest.out conftest.in
5877 ' >> $CONFIG_STATUS
5878 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5879 rm -f conftest.vals
5880 mv conftest.tail conftest.vals
5881 done
5882 rm -f conftest.vals
5884 cat >> $CONFIG_STATUS <<\EOF
5885 rm -f conftest.frag conftest.h
5886 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5887 cat conftest.in >> conftest.h
5888 rm -f conftest.in
5889 if cmp -s $ac_file conftest.h 2>/dev/null; then
5890 echo "$ac_file is unchanged"
5891 rm -f conftest.h
5892 else
5893 # Remove last slash and all that follows it. Not all systems have dirname.
5894 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5896 # The file is in a subdirectory.
5897 test ! -d "$ac_dir" && mkdir "$ac_dir"
5899 rm -f $ac_file
5900 mv conftest.h $ac_file
5902 fi; done
5905 cat >> $CONFIG_STATUS <<EOF
5909 cat >> $CONFIG_STATUS <<\EOF
5910 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5912 case "x$CONFIG_FILES" in
5913 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5914 esac
5916 exit 0
5918 chmod +x $CONFIG_STATUS
5919 rm -fr confdefs* $ac_clean_files
5920 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1