Index: bfd/ChangeLog
[binutils.git] / opcodes / configure
blobcc7fc7c9056685d4cf389c5ac6db4e46c5c7f1af
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=no]"
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 --enable-maintainer-mode enable make rules and dependencies not useful
34 (and sometimes confusing) to the casual installer"
35 ac_help="$ac_help
36 --disable-nls do not use Native Language Support"
37 ac_help="$ac_help
38 --with-included-gettext use the GNU gettext library included here"
39 ac_help="$ac_help
40 --enable-cgen-maint[=dir] build cgen generated files"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
45 build=NONE
46 cache_file=./config.cache
47 exec_prefix=NONE
48 host=NONE
49 no_create=
50 nonopt=NONE
51 no_recursion=
52 prefix=NONE
53 program_prefix=NONE
54 program_suffix=NONE
55 program_transform_name=s,x,x,
56 silent=
57 site=
58 sitefile=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
82 ac_max_here_lines=12
84 ac_prev=
85 for ac_option
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
91 ac_prev=
92 continue
95 case "$ac_option" in
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 *) ac_optarg= ;;
98 esac
100 # Accept the important Cygnus configure options, so we can diagnose typos.
102 case "$ac_option" in
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 ac_prev=bindir ;;
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
110 ac_prev=build ;;
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 ac_prev=datadir ;;
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 | --da=*)
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 case "$ac_option" in
144 *=*) ;;
145 *) ac_optarg=yes ;;
146 esac
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
160 with_gas=yes ;;
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
165 cat << EOF
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
168 Configuration:
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --site-file=FILE use FILE as the site file
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
177 [$ac_default_prefix]
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 [same as prefix]
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
184 [PREFIX/share]
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 [PREFIX/com]
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
200 cat << EOF
201 Host type:
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
216 exit 0 ;;
218 -host | --host | --hos | --ho)
219 ac_prev=host ;;
220 -host=* | --host=* | --hos=* | --ho=*)
221 host="$ac_optarg" ;;
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 ac_prev=infodir ;;
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
236 ac_prev=libdir ;;
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 ac_prev=mandir ;;
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
261 -nfp | --nfp | --nf)
262 # Obsolete; use --without-fp.
263 with_fp=no ;;
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c)
267 no_create=yes ;;
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 no_recursion=yes ;;
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 ac_prev=prefix ;;
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
320 silent=yes ;;
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 ac_prev=sbindir ;;
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 | --sbi=* | --sb=*)
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
331 | --sha | --sh)
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 | --sha=* | --sh=*)
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
340 ac_prev=site ;;
341 -site=* | --site=* | --sit=*)
342 site="$ac_optarg" ;;
344 -site-file | --site-file | --site-fil | --site-fi | --site-f)
345 ac_prev=sitefile ;;
346 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
347 sitefile="$ac_optarg" ;;
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
350 ac_prev=srcdir ;;
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
362 ac_prev=target ;;
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 verbose=yes ;;
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
371 exit 0 ;;
373 -with-* | --with-*)
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 case "$ac_option" in
381 *=*) ;;
382 *) ac_optarg=yes ;;
383 esac
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
395 --x)
396 # Obsolete; use --with-x.
397 with_x=yes ;;
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 nonopt="$ac_option"
426 esac
427 done
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
436 # 0 standard input
437 # 1 file creation
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
444 exec 6>/dev/null
445 else
446 exec 6>&1
448 exec 5>./config.log
450 echo "\
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
453 " 1>&5
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
457 ac_configure_args=
458 for ac_arg
460 case "$ac_arg" in
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 esac
469 done
471 # NLS nuisances.
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 echo > confdefs.h
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=z8k-dis.c
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
494 ac_prog=$0
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
497 srcdir=$ac_confdir
498 if test ! -r $srcdir/$ac_unique_file; then
499 srcdir=..
501 else
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
507 else
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$sitefile"; then
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518 else
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522 else
523 CONFIG_SITE="$sitefile"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
528 . "$ac_site_file"
530 done
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
534 . $cache_file
535 else
536 echo "creating cache $cache_file"
537 > $cache_file
540 ac_ext=c
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
547 ac_exeext=
548 ac_objext=o
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='
553 ' ac_t=' '
554 else
555 ac_n=-n ac_c= ac_t=
557 else
558 ac_n= ac_c='\c' ac_t=
561 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
562 echo "configure:563: checking for Cygwin environment" >&5
563 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565 else
566 cat > conftest.$ac_ext <<EOF
567 #line 568 "configure"
568 #include "confdefs.h"
570 int main() {
572 #ifndef __CYGWIN__
573 #define __CYGWIN__ __CYGWIN32__
574 #endif
575 return __CYGWIN__;
576 ; return 0; }
578 if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
579 rm -rf conftest*
580 ac_cv_cygwin=yes
581 else
582 echo "configure: failed program was:" >&5
583 cat conftest.$ac_ext >&5
584 rm -rf conftest*
585 ac_cv_cygwin=no
587 rm -f conftest*
588 rm -f conftest*
591 echo "$ac_t""$ac_cv_cygwin" 1>&6
592 CYGWIN=
593 test "$ac_cv_cygwin" = yes && CYGWIN=yes
594 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
595 echo "configure:596: checking for mingw32 environment" >&5
596 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
598 else
599 cat > conftest.$ac_ext <<EOF
600 #line 601 "configure"
601 #include "confdefs.h"
603 int main() {
604 return __MINGW32__;
605 ; return 0; }
607 if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
608 rm -rf conftest*
609 ac_cv_mingw32=yes
610 else
611 echo "configure: failed program was:" >&5
612 cat conftest.$ac_ext >&5
613 rm -rf conftest*
614 ac_cv_mingw32=no
616 rm -f conftest*
617 rm -f conftest*
620 echo "$ac_t""$ac_cv_mingw32" 1>&6
621 MINGW32=
622 test "$ac_cv_mingw32" = yes && MINGW32=yes
625 ac_aux_dir=
626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
645 # Do some error checking and defaulting for the host and target type.
646 # The inputs are:
647 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
649 # The rules are:
650 # 1. You are not allowed to specify --host, --target, and nonopt at the
651 # same time.
652 # 2. Host defaults to nonopt.
653 # 3. If nonopt is not specified, then host defaults to the current host,
654 # as determined by config.guess.
655 # 4. Target and build default to nonopt.
656 # 5. If nonopt is not specified, then target and build default to host.
658 # The aliases save the names the user supplied, while $host etc.
659 # will get canonicalized.
660 case $host---$target---$nonopt in
661 NONE---*---* | *---NONE---* | *---*---NONE) ;;
662 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
663 esac
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
674 host_alias=$host
675 case "$host_alias" in
676 NONE)
677 case $nonopt in
678 NONE)
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
681 fi ;;
682 *) host_alias=$nonopt ;;
683 esac ;;
684 esac
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
692 echo $ac_n "checking target system type""... $ac_c" 1>&6
693 echo "configure:694: checking target system type" >&5
695 target_alias=$target
696 case "$target_alias" in
697 NONE)
698 case $nonopt in
699 NONE) target_alias=$host_alias ;;
700 *) target_alias=$nonopt ;;
701 esac ;;
702 esac
704 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
705 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$target" 1>&6
710 echo $ac_n "checking build system type""... $ac_c" 1>&6
711 echo "configure:712: checking build system type" >&5
713 build_alias=$build
714 case "$build_alias" in
715 NONE)
716 case $nonopt in
717 NONE) build_alias=$host_alias ;;
718 *) build_alias=$nonopt ;;
719 esac ;;
720 esac
722 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
723 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$build" 1>&6
728 test "$host_alias" != "$target_alias" &&
729 test "$program_prefix$program_suffix$program_transform_name" = \
730 NONENONEs,x,x, &&
731 program_prefix=${target_alias}-
734 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
735 echo "configure:736: checking for strerror in -lcposix" >&5
736 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
739 else
740 ac_save_LIBS="$LIBS"
741 LIBS="-lcposix $LIBS"
742 cat > conftest.$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
745 /* Override any gcc2 internal prototype to avoid an error. */
746 /* We use char because int might match the return type of a gcc2
747 builtin and then its argument prototype would still apply. */
748 char strerror();
750 int main() {
751 strerror()
752 ; return 0; }
754 if { (eval echo configure:755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
755 rm -rf conftest*
756 eval "ac_cv_lib_$ac_lib_var=yes"
757 else
758 echo "configure: failed program was:" >&5
759 cat conftest.$ac_ext >&5
760 rm -rf conftest*
761 eval "ac_cv_lib_$ac_lib_var=no"
763 rm -f conftest*
764 LIBS="$ac_save_LIBS"
767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
769 LIBS="$LIBS -lcposix"
770 else
771 echo "$ac_t""no" 1>&6
777 # We currently only use the version number for the name of any shared
778 # library. For user convenience, we always use the same version
779 # number that BFD is using.
780 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
782 # Find a good install program. We prefer a C program (faster),
783 # so one script is as good as another. But avoid the broken or
784 # incompatible versions:
785 # SysV /etc/install, /usr/sbin/install
786 # SunOS /usr/etc/install
787 # IRIX /sbin/install
788 # AIX /bin/install
789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
792 # ./install, which can be erroneously created by make from ./install.sh.
793 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
794 echo "configure:795: checking for a BSD compatible install" >&5
795 if test -z "$INSTALL"; then
796 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798 else
799 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
800 for ac_dir in $PATH; do
801 # Account for people who put trailing slashes in PATH elements.
802 case "$ac_dir/" in
803 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
805 # OSF1 and SCO ODT 3.0 have their own names for install.
806 # Don't use installbsd from OSF since it installs stuff as root
807 # by default.
808 for ac_prog in ginstall scoinst install; do
809 if test -f $ac_dir/$ac_prog; then
810 if test $ac_prog = install &&
811 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
812 # AIX install. It has an incompatible calling convention.
814 else
815 ac_cv_path_install="$ac_dir/$ac_prog -c"
816 break 2
819 done
821 esac
822 done
823 IFS="$ac_save_IFS"
826 if test "${ac_cv_path_install+set}" = set; then
827 INSTALL="$ac_cv_path_install"
828 else
829 # As a last resort, use the slow shell script. We don't cache a
830 # path for INSTALL within a source directory, because that will
831 # break other packages using the cache if that directory is
832 # removed, or if the path is relative.
833 INSTALL="$ac_install_sh"
836 echo "$ac_t""$INSTALL" 1>&6
838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
839 # It thinks the first close brace ends the variable substitution.
840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
846 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
847 echo "configure:848: checking whether build environment is sane" >&5
848 # Just in case
849 sleep 1
850 echo timestamp > conftestfile
851 # Do `set' in a subshell so we don't clobber the current shell's
852 # arguments. Must try -L first in case configure is actually a
853 # symlink; some systems play weird games with the mod time of symlinks
854 # (eg FreeBSD returns the mod time of the symlink's containing
855 # directory).
856 if (
857 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
858 if test "$*" = "X"; then
859 # -L didn't work.
860 set X `ls -t $srcdir/configure conftestfile`
862 if test "$*" != "X $srcdir/configure conftestfile" \
863 && test "$*" != "X conftestfile $srcdir/configure"; then
865 # If neither matched, then we have a broken ls. This can happen
866 # if, for instance, CONFIG_SHELL is bash and it inherits a
867 # broken ls alias from the environment. This has actually
868 # happened. Such a system could not be considered "sane".
869 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
870 alias in your environment" 1>&2; exit 1; }
873 test "$2" = conftestfile
875 then
876 # Ok.
878 else
879 { echo "configure: error: newly created file is older than distributed files!
880 Check your system clock" 1>&2; exit 1; }
882 rm -f conftest*
883 echo "$ac_t""yes" 1>&6
884 if test "$program_transform_name" = s,x,x,; then
885 program_transform_name=
886 else
887 # Double any \ or $. echo might interpret backslashes.
888 cat <<\EOF_SED > conftestsed
889 s,\\,\\\\,g; s,\$,$$,g
890 EOF_SED
891 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
892 rm -f conftestsed
894 test "$program_prefix" != NONE &&
895 program_transform_name="s,^,${program_prefix},; $program_transform_name"
896 # Use a double $ so make ignores it.
897 test "$program_suffix" != NONE &&
898 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
900 # sed with no file args requires a program.
901 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908 else
909 cat > conftestmake <<\EOF
910 all:
911 @echo 'ac_maketemp="${MAKE}"'
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
917 else
918 eval ac_cv_prog_make_${ac_make}_set=no
920 rm -f conftestmake
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
924 SET_MAKE=
925 else
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
931 PACKAGE=opcodes
933 VERSION=${BFD_VERSION}
935 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
936 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
938 cat >> confdefs.h <<EOF
939 #define PACKAGE "$PACKAGE"
942 cat >> confdefs.h <<EOF
943 #define VERSION "$VERSION"
948 missing_dir=`cd $ac_aux_dir && pwd`
949 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
950 echo "configure:951: checking for working aclocal" >&5
951 # Run test in a subshell; some versions of sh will print an error if
952 # an executable is not found, even if stderr is redirected.
953 # Redirect stdin to placate older versions of autoconf. Sigh.
954 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
955 ACLOCAL=aclocal
956 echo "$ac_t""found" 1>&6
957 else
958 ACLOCAL="$missing_dir/missing aclocal"
959 echo "$ac_t""missing" 1>&6
962 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
963 echo "configure:964: checking for working autoconf" >&5
964 # Run test in a subshell; some versions of sh will print an error if
965 # an executable is not found, even if stderr is redirected.
966 # Redirect stdin to placate older versions of autoconf. Sigh.
967 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
968 AUTOCONF=autoconf
969 echo "$ac_t""found" 1>&6
970 else
971 AUTOCONF="$missing_dir/missing autoconf"
972 echo "$ac_t""missing" 1>&6
975 echo $ac_n "checking for working automake""... $ac_c" 1>&6
976 echo "configure:977: checking for working automake" >&5
977 # Run test in a subshell; some versions of sh will print an error if
978 # an executable is not found, even if stderr is redirected.
979 # Redirect stdin to placate older versions of autoconf. Sigh.
980 if (automake --version) < /dev/null > /dev/null 2>&1; then
981 AUTOMAKE=automake
982 echo "$ac_t""found" 1>&6
983 else
984 AUTOMAKE="$missing_dir/missing automake"
985 echo "$ac_t""missing" 1>&6
988 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
989 echo "configure:990: checking for working autoheader" >&5
990 # Run test in a subshell; some versions of sh will print an error if
991 # an executable is not found, even if stderr is redirected.
992 # Redirect stdin to placate older versions of autoconf. Sigh.
993 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
994 AUTOHEADER=autoheader
995 echo "$ac_t""found" 1>&6
996 else
997 AUTOHEADER="$missing_dir/missing autoheader"
998 echo "$ac_t""missing" 1>&6
1001 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1002 echo "configure:1003: checking for working makeinfo" >&5
1003 # Run test in a subshell; some versions of sh will print an error if
1004 # an executable is not found, even if stderr is redirected.
1005 # Redirect stdin to placate older versions of autoconf. Sigh.
1006 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1007 MAKEINFO=makeinfo
1008 echo "$ac_t""found" 1>&6
1009 else
1010 MAKEINFO="$missing_dir/missing makeinfo"
1011 echo "$ac_t""missing" 1>&6
1016 if test $host != $build; then
1017 ac_tool_prefix=${host_alias}-
1018 else
1019 ac_tool_prefix=
1022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1023 set dummy ${ac_tool_prefix}ar; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029 if test -n "$AR"; then
1030 ac_cv_prog_AR="$AR" # Let the user override the test.
1031 else
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_AR="${ac_tool_prefix}ar"
1038 break
1040 done
1041 IFS="$ac_save_ifs"
1042 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1045 AR="$ac_cv_prog_AR"
1046 if test -n "$AR"; then
1047 echo "$ac_t""$AR" 1>&6
1048 else
1049 echo "$ac_t""no" 1>&6
1054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061 if test -n "$RANLIB"; then
1062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1063 else
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 ac_dummy="$PATH"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1070 break
1072 done
1073 IFS="$ac_save_ifs"
1076 RANLIB="$ac_cv_prog_RANLIB"
1077 if test -n "$RANLIB"; then
1078 echo "$ac_t""$RANLIB" 1>&6
1079 else
1080 echo "$ac_t""no" 1>&6
1084 if test -z "$ac_cv_prog_RANLIB"; then
1085 if test -n "$ac_tool_prefix"; then
1086 # Extract the first word of "ranlib", so it can be a program name with args.
1087 set dummy ranlib; ac_word=$2
1088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1089 echo "configure:1090: checking for $ac_word" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1092 else
1093 if test -n "$RANLIB"; then
1094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1095 else
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1097 ac_dummy="$PATH"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 ac_cv_prog_RANLIB="ranlib"
1102 break
1104 done
1105 IFS="$ac_save_ifs"
1106 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1109 RANLIB="$ac_cv_prog_RANLIB"
1110 if test -n "$RANLIB"; then
1111 echo "$ac_t""$RANLIB" 1>&6
1112 else
1113 echo "$ac_t""no" 1>&6
1116 else
1117 RANLIB=":"
1122 # Check whether --enable-shared or --disable-shared was given.
1123 if test "${enable_shared+set}" = set; then
1124 enableval="$enable_shared"
1125 p=${PACKAGE-default}
1126 case $enableval in
1127 yes) enable_shared=yes ;;
1128 no) enable_shared=no ;;
1130 enable_shared=no
1131 # Look at the argument we got. We use all the common list separators.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1133 for pkg in $enableval; do
1134 if test "X$pkg" = "X$p"; then
1135 enable_shared=yes
1137 done
1138 IFS="$ac_save_ifs"
1140 esac
1141 else
1142 enable_shared=no
1146 # Check whether --enable-static or --disable-static was given.
1147 if test "${enable_static+set}" = set; then
1148 enableval="$enable_static"
1149 p=${PACKAGE-default}
1150 case $enableval in
1151 yes) enable_static=yes ;;
1152 no) enable_static=no ;;
1154 enable_static=no
1155 # Look at the argument we got. We use all the common list separators.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1157 for pkg in $enableval; do
1158 if test "X$pkg" = "X$p"; then
1159 enable_static=yes
1161 done
1162 IFS="$ac_save_ifs"
1164 esac
1165 else
1166 enable_static=yes
1169 # Check whether --enable-fast-install or --disable-fast-install was given.
1170 if test "${enable_fast_install+set}" = set; then
1171 enableval="$enable_fast_install"
1172 p=${PACKAGE-default}
1173 case $enableval in
1174 yes) enable_fast_install=yes ;;
1175 no) enable_fast_install=no ;;
1177 enable_fast_install=no
1178 # Look at the argument we got. We use all the common list separators.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1180 for pkg in $enableval; do
1181 if test "X$pkg" = "X$p"; then
1182 enable_fast_install=yes
1184 done
1185 IFS="$ac_save_ifs"
1187 esac
1188 else
1189 enable_fast_install=yes
1192 # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 ac_dummy="$PATH"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_CC="gcc"
1208 break
1210 done
1211 IFS="$ac_save_ifs"
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216 echo "$ac_t""$CC" 1>&6
1217 else
1218 echo "$ac_t""no" 1>&6
1221 if test -z "$CC"; then
1222 # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1231 else
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 ac_prog_rejected=no
1234 ac_dummy="$PATH"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1239 ac_prog_rejected=yes
1240 continue
1242 ac_cv_prog_CC="cc"
1243 break
1245 done
1246 IFS="$ac_save_ifs"
1247 if test $ac_prog_rejected = yes; then
1248 # We found a bogon in the path, so make sure we never use it.
1249 set dummy $ac_cv_prog_CC
1250 shift
1251 if test $# -gt 0; then
1252 # We chose a different compiler from the bogus one.
1253 # However, it has the same basename, so the bogon will be chosen
1254 # first if we set CC to just the basename; use the full file name.
1255 shift
1256 set dummy "$ac_dir/$ac_word" "$@"
1257 shift
1258 ac_cv_prog_CC="$@"
1263 CC="$ac_cv_prog_CC"
1264 if test -n "$CC"; then
1265 echo "$ac_t""$CC" 1>&6
1266 else
1267 echo "$ac_t""no" 1>&6
1270 if test -z "$CC"; then
1271 case "`uname -s`" in
1272 *win32* | *WIN32*)
1273 # Extract the first word of "cl", so it can be a program name with args.
1274 set dummy cl; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1282 else
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1284 ac_dummy="$PATH"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_CC="cl"
1289 break
1291 done
1292 IFS="$ac_save_ifs"
1295 CC="$ac_cv_prog_CC"
1296 if test -n "$CC"; then
1297 echo "$ac_t""$CC" 1>&6
1298 else
1299 echo "$ac_t""no" 1>&6
1302 esac
1304 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1310 ac_ext=c
1311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1315 cross_compiling=$ac_cv_prog_cc_cross
1317 cat > conftest.$ac_ext << EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1322 main(){return(0);}
1324 if { (eval echo configure:1325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 ac_cv_prog_cc_works=yes
1326 # If we can't run a trivial program, we are probably using a cross compiler.
1327 if (./conftest; exit) 2>/dev/null; then
1328 ac_cv_prog_cc_cross=no
1329 else
1330 ac_cv_prog_cc_cross=yes
1332 else
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1335 ac_cv_prog_cc_works=no
1337 rm -fr conftest*
1338 ac_ext=c
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling=$ac_cv_prog_cc_cross
1345 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1346 if test $ac_cv_prog_cc_works = no; then
1347 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1352 cross_compiling=$ac_cv_prog_cc_cross
1354 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether we are using GNU C" >&5
1356 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 cat > conftest.c <<EOF
1360 #ifdef __GNUC__
1361 yes;
1362 #endif
1364 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1365 ac_cv_prog_gcc=yes
1366 else
1367 ac_cv_prog_gcc=no
1371 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1373 if test $ac_cv_prog_gcc = yes; then
1374 GCC=yes
1375 else
1376 GCC=
1379 ac_test_CFLAGS="${CFLAGS+set}"
1380 ac_save_CFLAGS="$CFLAGS"
1381 CFLAGS=
1382 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1383 echo "configure:1384: checking whether ${CC-cc} accepts -g" >&5
1384 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387 echo 'void f(){}' > conftest.c
1388 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1389 ac_cv_prog_cc_g=yes
1390 else
1391 ac_cv_prog_cc_g=no
1393 rm -f conftest*
1397 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1398 if test "$ac_test_CFLAGS" = set; then
1399 CFLAGS="$ac_save_CFLAGS"
1400 elif test $ac_cv_prog_cc_g = yes; then
1401 if test "$GCC" = yes; then
1402 CFLAGS="-g -O2"
1403 else
1404 CFLAGS="-g"
1406 else
1407 if test "$GCC" = yes; then
1408 CFLAGS="-O2"
1409 else
1410 CFLAGS=
1414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1415 if test "${with_gnu_ld+set}" = set; then
1416 withval="$with_gnu_ld"
1417 test "$withval" = no || with_gnu_ld=yes
1418 else
1419 with_gnu_ld=no
1422 ac_prog=ld
1423 if test "$GCC" = yes; then
1424 # Check if gcc -print-prog-name=ld gives a path.
1425 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1426 echo "configure:1427: checking for ld used by GCC" >&5
1427 case $host in
1428 *-*-mingw*)
1429 # gcc leaves a trailing carriage return which upsets mingw
1430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1433 esac
1434 case $ac_prog in
1435 # Accept absolute paths.
1436 [\\/]* | [A-Za-z]:[\\/]*)
1437 re_direlt='/[^/][^/]*/\.\./'
1438 # Canonicalize the path of ld
1439 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1440 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1441 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1442 done
1443 test -z "$LD" && LD="$ac_prog"
1446 # If it fails, then pretend we aren't using GCC.
1447 ac_prog=ld
1450 # If it is relative, then search for the first ld in PATH.
1451 with_gnu_ld=unknown
1453 esac
1454 elif test "$with_gnu_ld" = yes; then
1455 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1456 echo "configure:1457: checking for GNU ld" >&5
1457 else
1458 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1459 echo "configure:1460: checking for non-GNU ld" >&5
1461 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464 if test -z "$LD"; then
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1466 for ac_dir in $PATH; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1469 lt_cv_path_LD="$ac_dir/$ac_prog"
1470 # Check to see if the program is GNU ld. I'd rather use --version,
1471 # but apparently some GNU ld's only accept -v.
1472 # Break only if it was the GNU/non-GNU ld that we prefer.
1473 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1474 test "$with_gnu_ld" != no && break
1475 else
1476 test "$with_gnu_ld" != yes && break
1479 done
1480 IFS="$ac_save_ifs"
1481 else
1482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1486 LD="$lt_cv_path_LD"
1487 if test -n "$LD"; then
1488 echo "$ac_t""$LD" 1>&6
1489 else
1490 echo "$ac_t""no" 1>&6
1492 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1493 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1494 echo "configure:1495: checking if the linker ($LD) is GNU ld" >&5
1495 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1497 else
1498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1500 lt_cv_prog_gnu_ld=yes
1501 else
1502 lt_cv_prog_gnu_ld=no
1506 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1507 with_gnu_ld=$lt_cv_prog_gnu_ld
1510 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $LD option to reload object files" >&5
1512 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 lt_cv_ld_reload_flag='-r'
1518 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1519 reload_flag=$lt_cv_ld_reload_flag
1520 test -n "$reload_flag" && reload_flag=" $reload_flag"
1522 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1523 echo "configure:1524: checking for BSD-compatible nm" >&5
1524 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1526 else
1527 if test -n "$NM"; then
1528 # Let the user override the test.
1529 lt_cv_path_NM="$NM"
1530 else
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1533 test -z "$ac_dir" && ac_dir=.
1534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1536 # Check to see if the nm accepts a BSD-compat flag.
1537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1538 # nm: unknown option "B" ignored
1539 # Tru64's nm complains that /dev/null is an invalid object file
1540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1541 lt_cv_path_NM="$tmp_nm -B"
1542 break
1543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1544 lt_cv_path_NM="$tmp_nm -p"
1545 break
1546 else
1547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1548 continue # so that we can try to find one that supports BSD flags
1551 done
1552 IFS="$ac_save_ifs"
1553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1557 NM="$lt_cv_path_NM"
1558 echo "$ac_t""$NM" 1>&6
1560 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1561 echo "configure:1562: checking whether ln -s works" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 rm -f conftestdata
1566 if ln -s X conftestdata 2>/dev/null
1567 then
1568 rm -f conftestdata
1569 ac_cv_prog_LN_S="ln -s"
1570 else
1571 ac_cv_prog_LN_S=ln
1574 LN_S="$ac_cv_prog_LN_S"
1575 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1576 echo "$ac_t""yes" 1>&6
1577 else
1578 echo "$ac_t""no" 1>&6
1581 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1582 echo "configure:1583: checking how to recognise dependant libraries" >&5
1583 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
1586 lt_cv_file_magic_cmd='$MAGIC_CMD'
1587 lt_cv_file_magic_test_file=
1588 lt_cv_deplibs_check_method='unknown'
1589 # Need to set the preceding variable on all platforms that support
1590 # interlibrary dependencies.
1591 # 'none' -- dependencies not supported.
1592 # `unknown' -- same as none, but documents that we really don't know.
1593 # 'pass_all' -- all dependencies passed with no checks.
1594 # 'test_compile' -- check by making test program.
1595 # 'file_magic [regex]' -- check by looking for files in library path
1596 # which responds to the $file_magic_cmd with a given egrep regex.
1597 # If you have `file' or equivalent on your system and you're not sure
1598 # whether `pass_all' will *always* work, you probably want this one.
1600 case $host_os in
1601 aix*)
1602 lt_cv_deplibs_check_method=pass_all
1605 beos*)
1606 lt_cv_deplibs_check_method=pass_all
1609 bsdi4*)
1610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1611 lt_cv_file_magic_cmd='/usr/bin/file -L'
1612 lt_cv_file_magic_test_file=/shlib/libc.so
1615 cygwin* | mingw* |pw32*)
1616 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1617 lt_cv_file_magic_cmd='$OBJDUMP -f'
1620 darwin* | rhapsody*)
1621 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1622 lt_cv_file_magic_cmd='/usr/bin/file -L'
1623 case "$host_os" in
1624 rhapsody* | darwin1.012)
1625 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1627 *) # Darwin 1.3 on
1628 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1630 esac
1633 freebsd* )
1634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1635 case $host_cpu in
1636 i*86 )
1637 # Not sure whether the presence of OpenBSD here was a mistake.
1638 # Let's accept both of them until this is cleared up.
1639 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1640 lt_cv_file_magic_cmd=/usr/bin/file
1641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1643 esac
1644 else
1645 lt_cv_deplibs_check_method=pass_all
1649 gnu*)
1650 lt_cv_deplibs_check_method=pass_all
1653 hpux10.20*|hpux11*)
1654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1655 lt_cv_file_magic_cmd=/usr/bin/file
1656 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1659 irix5* | irix6*)
1660 case $host_os in
1661 irix5*)
1662 # this will be overridden with pass_all, but let us keep it just in case
1663 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1666 case $LD in
1667 *-32|*"-32 ") libmagic=32-bit;;
1668 *-n32|*"-n32 ") libmagic=N32;;
1669 *-64|*"-64 ") libmagic=64-bit;;
1670 *) libmagic=never-match;;
1671 esac
1672 # this will be overridden with pass_all, but let us keep it just in case
1673 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1675 esac
1676 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1677 lt_cv_deplibs_check_method=pass_all
1680 # This must be Linux ELF.
1681 linux-gnu*)
1682 case $host_cpu in
1683 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1684 lt_cv_deplibs_check_method=pass_all ;;
1686 # glibc up to 2.1.1 does not perform some relocations on ARM
1687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1688 esac
1689 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1692 netbsd*)
1693 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1694 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1695 else
1696 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1700 newsos6)
1701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1702 lt_cv_file_magic_cmd=/usr/bin/file
1703 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1706 osf3* | osf4* | osf5*)
1707 # this will be overridden with pass_all, but let us keep it just in case
1708 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1709 lt_cv_file_magic_test_file=/shlib/libc.so
1710 lt_cv_deplibs_check_method=pass_all
1713 sco3.2v5*)
1714 lt_cv_deplibs_check_method=pass_all
1717 solaris*)
1718 lt_cv_deplibs_check_method=pass_all
1719 lt_cv_file_magic_test_file=/lib/libc.so
1722 sysv5uw[78]* | sysv4*uw2*)
1723 lt_cv_deplibs_check_method=pass_all
1726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1727 case $host_vendor in
1728 ncr)
1729 lt_cv_deplibs_check_method=pass_all
1731 motorola)
1732 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]'
1733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1735 esac
1737 esac
1741 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1742 file_magic_cmd=$lt_cv_file_magic_cmd
1743 deplibs_check_method=$lt_cv_deplibs_check_method
1745 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1746 echo "configure:1747: checking for object suffix" >&5
1747 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 rm -f conftest*
1751 echo 'int i = 1;' > conftest.$ac_ext
1752 if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1753 for ac_file in conftest.*; do
1754 case $ac_file in
1755 *.c) ;;
1756 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1757 esac
1758 done
1759 else
1760 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1762 rm -f conftest*
1765 echo "$ac_t""$ac_cv_objext" 1>&6
1766 OBJEXT=$ac_cv_objext
1767 ac_objext=$ac_cv_objext
1771 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1772 echo "configure:1773: checking for executable suffix" >&5
1773 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1777 ac_cv_exeext=.exe
1778 else
1779 rm -f conftest*
1780 echo 'int main () { return 0; }' > conftest.$ac_ext
1781 ac_cv_exeext=
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1783 for file in conftest.*; do
1784 case $file in
1785 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1786 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1787 esac
1788 done
1789 else
1790 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1792 rm -f conftest*
1793 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1797 EXEEXT=""
1798 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1799 echo "$ac_t""${ac_cv_exeext}" 1>&6
1800 ac_exeext=$EXEEXT
1802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1804 # Only perform the check for file, if the check method requires it
1805 case $deplibs_check_method in
1806 file_magic*)
1807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1808 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1809 echo "configure:1810: checking for ${ac_tool_prefix}file" >&5
1810 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 case $MAGIC_CMD in
1815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1817 ?:/*)
1818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1821 ac_save_MAGIC_CMD="$MAGIC_CMD"
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 ac_dummy="/usr/bin:$PATH"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/${ac_tool_prefix}file; then
1827 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1828 if test -n "$file_magic_test_file"; then
1829 case $deplibs_check_method in
1830 "file_magic "*)
1831 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1832 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1833 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1834 egrep "$file_magic_regex" > /dev/null; then
1836 else
1837 cat <<EOF 1>&2
1839 *** Warning: the command libtool uses to detect shared libraries,
1840 *** $file_magic_cmd, produces output that libtool cannot recognize.
1841 *** The result is that libtool may fail to recognize shared libraries
1842 *** as such. This will affect the creation of libtool libraries that
1843 *** depend on shared libraries, but programs linked with such libtool
1844 *** libraries will work regardless of this problem. Nevertheless, you
1845 *** may want to report the problem to your system manager and/or to
1846 *** bug-libtool@gnu.org
1849 fi ;;
1850 esac
1852 break
1854 done
1855 IFS="$ac_save_ifs"
1856 MAGIC_CMD="$ac_save_MAGIC_CMD"
1858 esac
1861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1862 if test -n "$MAGIC_CMD"; then
1863 echo "$ac_t""$MAGIC_CMD" 1>&6
1864 else
1865 echo "$ac_t""no" 1>&6
1868 if test -z "$lt_cv_path_MAGIC_CMD"; then
1869 if test -n "$ac_tool_prefix"; then
1870 echo $ac_n "checking for file""... $ac_c" 1>&6
1871 echo "configure:1872: checking for file" >&5
1872 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875 case $MAGIC_CMD in
1877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1879 ?:/*)
1880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1883 ac_save_MAGIC_CMD="$MAGIC_CMD"
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1885 ac_dummy="/usr/bin:$PATH"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/file; then
1889 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1890 if test -n "$file_magic_test_file"; then
1891 case $deplibs_check_method in
1892 "file_magic "*)
1893 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1896 egrep "$file_magic_regex" > /dev/null; then
1898 else
1899 cat <<EOF 1>&2
1901 *** Warning: the command libtool uses to detect shared libraries,
1902 *** $file_magic_cmd, produces output that libtool cannot recognize.
1903 *** The result is that libtool may fail to recognize shared libraries
1904 *** as such. This will affect the creation of libtool libraries that
1905 *** depend on shared libraries, but programs linked with such libtool
1906 *** libraries will work regardless of this problem. Nevertheless, you
1907 *** may want to report the problem to your system manager and/or to
1908 *** bug-libtool@gnu.org
1911 fi ;;
1912 esac
1914 break
1916 done
1917 IFS="$ac_save_ifs"
1918 MAGIC_CMD="$ac_save_MAGIC_CMD"
1920 esac
1923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1924 if test -n "$MAGIC_CMD"; then
1925 echo "$ac_t""$MAGIC_CMD" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1930 else
1931 MAGIC_CMD=:
1937 esac
1939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946 if test -n "$RANLIB"; then
1947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1948 else
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1950 ac_dummy="$PATH"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1955 break
1957 done
1958 IFS="$ac_save_ifs"
1961 RANLIB="$ac_cv_prog_RANLIB"
1962 if test -n "$RANLIB"; then
1963 echo "$ac_t""$RANLIB" 1>&6
1964 else
1965 echo "$ac_t""no" 1>&6
1969 if test -z "$ac_cv_prog_RANLIB"; then
1970 if test -n "$ac_tool_prefix"; then
1971 # Extract the first word of "ranlib", so it can be a program name with args.
1972 set dummy ranlib; ac_word=$2
1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_word" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 if test -n "$RANLIB"; then
1979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1980 else
1981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1982 ac_dummy="$PATH"
1983 for ac_dir in $ac_dummy; do
1984 test -z "$ac_dir" && ac_dir=.
1985 if test -f $ac_dir/$ac_word; then
1986 ac_cv_prog_RANLIB="ranlib"
1987 break
1989 done
1990 IFS="$ac_save_ifs"
1991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1994 RANLIB="$ac_cv_prog_RANLIB"
1995 if test -n "$RANLIB"; then
1996 echo "$ac_t""$RANLIB" 1>&6
1997 else
1998 echo "$ac_t""no" 1>&6
2001 else
2002 RANLIB=":"
2006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}strip; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 if test -n "$STRIP"; then
2014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2015 else
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 ac_dummy="$PATH"
2018 for ac_dir in $ac_dummy; do
2019 test -z "$ac_dir" && ac_dir=.
2020 if test -f $ac_dir/$ac_word; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 break
2024 done
2025 IFS="$ac_save_ifs"
2028 STRIP="$ac_cv_prog_STRIP"
2029 if test -n "$STRIP"; then
2030 echo "$ac_t""$STRIP" 1>&6
2031 else
2032 echo "$ac_t""no" 1>&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2037 if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_word" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 if test -n "$STRIP"; then
2046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2047 else
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2049 ac_dummy="$PATH"
2050 for ac_dir in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_prog_STRIP="strip"
2054 break
2056 done
2057 IFS="$ac_save_ifs"
2058 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2061 STRIP="$ac_cv_prog_STRIP"
2062 if test -n "$STRIP"; then
2063 echo "$ac_t""$STRIP" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2068 else
2069 STRIP=":"
2074 # Check for any special flags to pass to ltconfig.
2075 libtool_flags="--cache-file=$cache_file"
2076 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2077 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2078 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2079 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2080 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2083 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2084 if test "${enable_libtool_lock+set}" = set; then
2085 enableval="$enable_libtool_lock"
2089 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2090 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2092 # Check whether --with-pic or --without-pic was given.
2093 if test "${with_pic+set}" = set; then
2094 withval="$with_pic"
2095 pic_mode="$withval"
2096 else
2097 pic_mode=default
2100 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2101 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2103 # Some flags need to be propagated to the compiler or linker for good
2104 # libtool support.
2105 case $host in
2106 *-*-irix6*)
2107 # Find out which ABI we are using.
2108 echo '#line 2109 "configure"' > conftest.$ac_ext
2109 if { (eval echo configure:2110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2110 case `/usr/bin/file conftest.$ac_objext` in
2111 *32-bit*)
2112 LD="${LD-ld} -32"
2114 *N32*)
2115 LD="${LD-ld} -n32"
2117 *64-bit*)
2118 LD="${LD-ld} -64"
2120 esac
2122 rm -rf conftest*
2125 *-*-sco3.2v5*)
2126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2127 SAVE_CFLAGS="$CFLAGS"
2128 CFLAGS="$CFLAGS -belf"
2129 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether the C compiler needs -belf" >&5
2131 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2135 ac_ext=c
2136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2140 cross_compiling=$ac_cv_prog_cc_cross
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2146 int main() {
2148 ; return 0; }
2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2151 rm -rf conftest*
2152 lt_cv_cc_needs_belf=yes
2153 else
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -rf conftest*
2157 lt_cv_cc_needs_belf=no
2159 rm -f conftest*
2160 ac_ext=c
2161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2164 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2165 cross_compiling=$ac_cv_prog_cc_cross
2169 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2170 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2171 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2172 CFLAGS="$SAVE_CFLAGS"
2177 esac
2180 # Save cache, so that ltconfig can load it
2181 cat > confcache <<\EOF
2182 # This file is a shell script that caches the results of configure
2183 # tests run on this system so they can be shared between configure
2184 # scripts and configure runs. It is not useful on other systems.
2185 # If it contains results you don't want to keep, you may remove or edit it.
2187 # By default, configure uses ./config.cache as the cache file,
2188 # creating it if it does not exist already. You can give configure
2189 # the --cache-file=FILE option to use a different cache file; that is
2190 # what configure does when it calls configure scripts in
2191 # subdirectories, so they share the cache.
2192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2193 # config.status only pays attention to the cache file if you give it the
2194 # --recheck option to rerun configure.
2197 # The following way of writing the cache mishandles newlines in values,
2198 # but we know of no workaround that is simple, portable, and efficient.
2199 # So, don't put newlines in cache variables' values.
2200 # Ultrix sh set writes to stderr and can't be redirected directly,
2201 # and sets the high bit in the cache file unless we assign to the vars.
2202 (set) 2>&1 |
2203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2204 *ac_space=\ *)
2205 # `set' does not quote correctly, so add quotes (double-quote substitution
2206 # turns \\\\ into \\, and sed turns \\ into \).
2207 sed -n \
2208 -e "s/'/'\\\\''/g" \
2209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2212 # `set' quotes correctly as required by POSIX, so do not add quotes.
2213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2215 esac >> confcache
2216 if cmp -s $cache_file confcache; then
2218 else
2219 if test -w $cache_file; then
2220 echo "updating cache $cache_file"
2221 cat confcache > $cache_file
2222 else
2223 echo "not updating unwritable cache $cache_file"
2226 rm -f confcache
2229 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2230 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2231 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2232 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2233 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2234 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2235 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2236 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2237 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2238 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2240 # Reload cache, that may have been modified by ltconfig
2241 if test -r "$cache_file"; then
2242 echo "loading cache $cache_file"
2243 . $cache_file
2244 else
2245 echo "creating cache $cache_file"
2246 > $cache_file
2250 # This can be used to rebuild libtool when needed
2251 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2253 # Always use our own libtool.
2254 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2256 # Redirect the config.log output again, so that the ltconfig log is not
2257 # clobbered by the next message.
2258 exec 5>>./config.log
2266 # Check whether --enable-targets or --disable-targets was given.
2267 if test "${enable_targets+set}" = set; then
2268 enableval="$enable_targets"
2269 case "${enableval}" in
2270 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2272 no) enable_targets= ;;
2273 *) enable_targets=$enableval ;;
2274 esac
2276 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2277 if test "${enable_commonbfdlib+set}" = set; then
2278 enableval="$enable_commonbfdlib"
2279 case "${enableval}" in
2280 yes) commonbfdlib=true ;;
2281 no) commonbfdlib=false ;;
2282 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
2283 esac
2286 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2287 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2288 if test "${enable_build_warnings+set}" = set; then
2289 enableval="$enable_build_warnings"
2290 case "${enableval}" in
2291 yes) ;;
2292 no) build_warnings="-w";;
2293 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2294 build_warnings="${build_warnings} ${t}";;
2295 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2296 build_warnings="${t} ${build_warnings}";;
2297 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2298 esac
2299 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2300 echo "Setting warning flags = $build_warnings" 6>&1
2303 WARN_CFLAGS=""
2304 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2305 WARN_CFLAGS="${build_warnings}"
2313 if test -z "$target" ; then
2314 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2317 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2318 echo "configure:2319: checking whether to enable maintainer-specific portions of Makefiles" >&5
2319 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2320 if test "${enable_maintainer_mode+set}" = set; then
2321 enableval="$enable_maintainer_mode"
2322 USE_MAINTAINER_MODE=$enableval
2323 else
2324 USE_MAINTAINER_MODE=no
2327 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2330 if test $USE_MAINTAINER_MODE = yes; then
2331 MAINTAINER_MODE_TRUE=
2332 MAINTAINER_MODE_FALSE='#'
2333 else
2334 MAINTAINER_MODE_TRUE='#'
2335 MAINTAINER_MODE_FALSE=
2337 MAINT=$MAINTAINER_MODE_TRUE
2342 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2343 echo "configure:2344: checking for executable suffix" >&5
2344 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2348 ac_cv_exeext=.exe
2349 else
2350 rm -f conftest*
2351 echo 'int main () { return 0; }' > conftest.$ac_ext
2352 ac_cv_exeext=
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2354 for file in conftest.*; do
2355 case $file in
2356 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2357 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2358 esac
2359 done
2360 else
2361 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2363 rm -f conftest*
2364 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2368 EXEEXT=""
2369 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2370 echo "$ac_t""${ac_cv_exeext}" 1>&6
2371 ac_exeext=$EXEEXT
2374 # host-specific stuff:
2376 # Extract the first word of "gcc", so it can be a program name with args.
2377 set dummy gcc; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2387 ac_dummy="$PATH"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_CC="gcc"
2392 break
2394 done
2395 IFS="$ac_save_ifs"
2398 CC="$ac_cv_prog_CC"
2399 if test -n "$CC"; then
2400 echo "$ac_t""$CC" 1>&6
2401 else
2402 echo "$ac_t""no" 1>&6
2405 if test -z "$CC"; then
2406 # Extract the first word of "cc", so it can be a program name with args.
2407 set dummy cc; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2417 ac_prog_rejected=no
2418 ac_dummy="$PATH"
2419 for ac_dir in $ac_dummy; do
2420 test -z "$ac_dir" && ac_dir=.
2421 if test -f $ac_dir/$ac_word; then
2422 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2423 ac_prog_rejected=yes
2424 continue
2426 ac_cv_prog_CC="cc"
2427 break
2429 done
2430 IFS="$ac_save_ifs"
2431 if test $ac_prog_rejected = yes; then
2432 # We found a bogon in the path, so make sure we never use it.
2433 set dummy $ac_cv_prog_CC
2434 shift
2435 if test $# -gt 0; then
2436 # We chose a different compiler from the bogus one.
2437 # However, it has the same basename, so the bogon will be chosen
2438 # first if we set CC to just the basename; use the full file name.
2439 shift
2440 set dummy "$ac_dir/$ac_word" "$@"
2441 shift
2442 ac_cv_prog_CC="$@"
2447 CC="$ac_cv_prog_CC"
2448 if test -n "$CC"; then
2449 echo "$ac_t""$CC" 1>&6
2450 else
2451 echo "$ac_t""no" 1>&6
2454 if test -z "$CC"; then
2455 case "`uname -s`" in
2456 *win32* | *WIN32*)
2457 # Extract the first word of "cl", so it can be a program name with args.
2458 set dummy cl; ac_word=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2468 ac_dummy="$PATH"
2469 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 if test -f $ac_dir/$ac_word; then
2472 ac_cv_prog_CC="cl"
2473 break
2475 done
2476 IFS="$ac_save_ifs"
2479 CC="$ac_cv_prog_CC"
2480 if test -n "$CC"; then
2481 echo "$ac_t""$CC" 1>&6
2482 else
2483 echo "$ac_t""no" 1>&6
2486 esac
2488 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2491 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2492 echo "configure:2493: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2494 ac_ext=c
2495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2499 cross_compiling=$ac_cv_prog_cc_cross
2501 cat > conftest.$ac_ext << EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2506 main(){return(0);}
2508 if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 ac_cv_prog_cc_works=yes
2510 # If we can't run a trivial program, we are probably using a cross compiler.
2511 if (./conftest; exit) 2>/dev/null; then
2512 ac_cv_prog_cc_cross=no
2513 else
2514 ac_cv_prog_cc_cross=yes
2516 else
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 ac_cv_prog_cc_works=no
2521 rm -fr conftest*
2522 ac_ext=c
2523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2527 cross_compiling=$ac_cv_prog_cc_cross
2529 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2530 if test $ac_cv_prog_cc_works = no; then
2531 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2533 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2535 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2536 cross_compiling=$ac_cv_prog_cc_cross
2538 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2539 echo "configure:2540: checking whether we are using GNU C" >&5
2540 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542 else
2543 cat > conftest.c <<EOF
2544 #ifdef __GNUC__
2545 yes;
2546 #endif
2548 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2549 ac_cv_prog_gcc=yes
2550 else
2551 ac_cv_prog_gcc=no
2555 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2557 if test $ac_cv_prog_gcc = yes; then
2558 GCC=yes
2559 else
2560 GCC=
2563 ac_test_CFLAGS="${CFLAGS+set}"
2564 ac_save_CFLAGS="$CFLAGS"
2565 CFLAGS=
2566 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2567 echo "configure:2568: checking whether ${CC-cc} accepts -g" >&5
2568 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2570 else
2571 echo 'void f(){}' > conftest.c
2572 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2573 ac_cv_prog_cc_g=yes
2574 else
2575 ac_cv_prog_cc_g=no
2577 rm -f conftest*
2581 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2582 if test "$ac_test_CFLAGS" = set; then
2583 CFLAGS="$ac_save_CFLAGS"
2584 elif test $ac_cv_prog_cc_g = yes; then
2585 if test "$GCC" = yes; then
2586 CFLAGS="-g -O2"
2587 else
2588 CFLAGS="-g"
2590 else
2591 if test "$GCC" = yes; then
2592 CFLAGS="-O2"
2593 else
2594 CFLAGS=
2599 ALL_LINGUAS="fr sv tr"
2600 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2601 echo "configure:2602: checking how to run the C preprocessor" >&5
2602 # On Suns, sometimes $CPP names a directory.
2603 if test -n "$CPP" && test -d "$CPP"; then
2604 CPP=
2606 if test -z "$CPP"; then
2607 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 # This must be in double quotes, not single quotes, because CPP may get
2611 # substituted into the Makefile and "${CC-cc}" will confuse make.
2612 CPP="${CC-cc} -E"
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2614 # not just through cpp.
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 #include <assert.h>
2619 Syntax Error
2621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2622 { (eval echo configure:2623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2624 if test -z "$ac_err"; then
2626 else
2627 echo "$ac_err" >&5
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 rm -rf conftest*
2631 CPP="${CC-cc} -E -traditional-cpp"
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <assert.h>
2636 Syntax Error
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2643 else
2644 echo "$ac_err" >&5
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -rf conftest*
2648 CPP="${CC-cc} -nologo -E"
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 #include <assert.h>
2653 Syntax Error
2655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2656 { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2658 if test -z "$ac_err"; then
2660 else
2661 echo "$ac_err" >&5
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 rm -rf conftest*
2665 CPP=/lib/cpp
2667 rm -f conftest*
2669 rm -f conftest*
2671 rm -f conftest*
2672 ac_cv_prog_CPP="$CPP"
2674 CPP="$ac_cv_prog_CPP"
2675 else
2676 ac_cv_prog_CPP="$CPP"
2678 echo "$ac_t""$CPP" 1>&6
2680 # Extract the first word of "ranlib", so it can be a program name with args.
2681 set dummy ranlib; ac_word=$2
2682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_word" >&5
2684 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2686 else
2687 if test -n "$RANLIB"; then
2688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2689 else
2690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2691 ac_dummy="$PATH"
2692 for ac_dir in $ac_dummy; do
2693 test -z "$ac_dir" && ac_dir=.
2694 if test -f $ac_dir/$ac_word; then
2695 ac_cv_prog_RANLIB="ranlib"
2696 break
2698 done
2699 IFS="$ac_save_ifs"
2700 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2703 RANLIB="$ac_cv_prog_RANLIB"
2704 if test -n "$RANLIB"; then
2705 echo "$ac_t""$RANLIB" 1>&6
2706 else
2707 echo "$ac_t""no" 1>&6
2710 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2711 echo "configure:2712: checking for ANSI C header files" >&5
2712 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2714 else
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <stdlib.h>
2719 #include <stdarg.h>
2720 #include <string.h>
2721 #include <float.h>
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2727 rm -rf conftest*
2728 ac_cv_header_stdc=yes
2729 else
2730 echo "$ac_err" >&5
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 rm -rf conftest*
2734 ac_cv_header_stdc=no
2736 rm -f conftest*
2738 if test $ac_cv_header_stdc = yes; then
2739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <string.h>
2745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2746 egrep "memchr" >/dev/null 2>&1; then
2748 else
2749 rm -rf conftest*
2750 ac_cv_header_stdc=no
2752 rm -f conftest*
2756 if test $ac_cv_header_stdc = yes; then
2757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <stdlib.h>
2763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2764 egrep "free" >/dev/null 2>&1; then
2766 else
2767 rm -rf conftest*
2768 ac_cv_header_stdc=no
2770 rm -f conftest*
2774 if test $ac_cv_header_stdc = yes; then
2775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2776 if test "$cross_compiling" = yes; then
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <ctype.h>
2783 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2784 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2786 int main () { int i; for (i = 0; i < 256; i++)
2787 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2788 exit (0); }
2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2792 then
2794 else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 rm -fr conftest*
2798 ac_cv_header_stdc=no
2800 rm -fr conftest*
2806 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2807 if test $ac_cv_header_stdc = yes; then
2808 cat >> confdefs.h <<\EOF
2809 #define STDC_HEADERS 1
2814 echo $ac_n "checking for working const""... $ac_c" 1>&6
2815 echo "configure:2816: checking for working const" >&5
2816 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2823 int main() {
2825 /* Ultrix mips cc rejects this. */
2826 typedef int charset[2]; const charset x;
2827 /* SunOS 4.1.1 cc rejects this. */
2828 char const *const *ccp;
2829 char **p;
2830 /* NEC SVR4.0.2 mips cc rejects this. */
2831 struct point {int x, y;};
2832 static struct point const zero = {0,0};
2833 /* AIX XL C 1.02.0.0 rejects this.
2834 It does not let you subtract one const X* pointer from another in an arm
2835 of an if-expression whose if-part is not a constant expression */
2836 const char *g = "string";
2837 ccp = &g + (g ? g-g : 0);
2838 /* HPUX 7.0 cc rejects these. */
2839 ++ccp;
2840 p = (char**) ccp;
2841 ccp = (char const *const *) p;
2842 { /* SCO 3.2v4 cc rejects this. */
2843 char *t;
2844 char const *s = 0 ? (char *) 0 : (char const *) 0;
2846 *t++ = 0;
2848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2849 int x[] = {25, 17};
2850 const int *foo = &x[0];
2851 ++foo;
2853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2854 typedef const int *iptr;
2855 iptr p = 0;
2856 ++p;
2858 { /* AIX XL C 1.02.0.0 rejects this saying
2859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2860 struct s { int j; const int *ap[3]; };
2861 struct s *b; b->j = 5;
2863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2864 const int foo = 10;
2867 ; return 0; }
2869 if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2870 rm -rf conftest*
2871 ac_cv_c_const=yes
2872 else
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 ac_cv_c_const=no
2878 rm -f conftest*
2881 echo "$ac_t""$ac_cv_c_const" 1>&6
2882 if test $ac_cv_c_const = no; then
2883 cat >> confdefs.h <<\EOF
2884 #define const
2889 echo $ac_n "checking for inline""... $ac_c" 1>&6
2890 echo "configure:2891: checking for inline" >&5
2891 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2893 else
2894 ac_cv_c_inline=no
2895 for ac_kw in inline __inline__ __inline; do
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2900 int main() {
2901 } $ac_kw foo() {
2902 ; return 0; }
2904 if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2905 rm -rf conftest*
2906 ac_cv_c_inline=$ac_kw; break
2907 else
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 rm -f conftest*
2912 done
2916 echo "$ac_t""$ac_cv_c_inline" 1>&6
2917 case "$ac_cv_c_inline" in
2918 inline | yes) ;;
2919 no) cat >> confdefs.h <<\EOF
2920 #define inline
2923 *) cat >> confdefs.h <<EOF
2924 #define inline $ac_cv_c_inline
2927 esac
2929 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2930 echo "configure:2931: checking for off_t" >&5
2931 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 #include <sys/types.h>
2938 #if STDC_HEADERS
2939 #include <stdlib.h>
2940 #include <stddef.h>
2941 #endif
2943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2944 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2945 rm -rf conftest*
2946 ac_cv_type_off_t=yes
2947 else
2948 rm -rf conftest*
2949 ac_cv_type_off_t=no
2951 rm -f conftest*
2954 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2955 if test $ac_cv_type_off_t = no; then
2956 cat >> confdefs.h <<\EOF
2957 #define off_t long
2962 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2963 echo "configure:2964: checking for size_t" >&5
2964 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2966 else
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 #include <sys/types.h>
2971 #if STDC_HEADERS
2972 #include <stdlib.h>
2973 #include <stddef.h>
2974 #endif
2976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2977 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2978 rm -rf conftest*
2979 ac_cv_type_size_t=yes
2980 else
2981 rm -rf conftest*
2982 ac_cv_type_size_t=no
2984 rm -f conftest*
2987 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2988 if test $ac_cv_type_size_t = no; then
2989 cat >> confdefs.h <<\EOF
2990 #define size_t unsigned
2995 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2996 # for constant arguments. Useless!
2997 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2998 echo "configure:2999: checking for working alloca.h" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3001 else
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 #include <alloca.h>
3006 int main() {
3007 char *p = alloca(2 * sizeof(int));
3008 ; return 0; }
3010 if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3011 rm -rf conftest*
3012 ac_cv_header_alloca_h=yes
3013 else
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 rm -rf conftest*
3017 ac_cv_header_alloca_h=no
3019 rm -f conftest*
3022 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3023 if test $ac_cv_header_alloca_h = yes; then
3024 cat >> confdefs.h <<\EOF
3025 #define HAVE_ALLOCA_H 1
3030 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3031 echo "configure:3032: checking for alloca" >&5
3032 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034 else
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3039 #ifdef __GNUC__
3040 # define alloca __builtin_alloca
3041 #else
3042 # ifdef _MSC_VER
3043 # include <malloc.h>
3044 # define alloca _alloca
3045 # else
3046 # if HAVE_ALLOCA_H
3047 # include <alloca.h>
3048 # else
3049 # ifdef _AIX
3050 #pragma alloca
3051 # else
3052 # ifndef alloca /* predefined by HP cc +Olibcalls */
3053 char *alloca ();
3054 # endif
3055 # endif
3056 # endif
3057 # endif
3058 #endif
3060 int main() {
3061 char *p = (char *) alloca(1);
3062 ; return 0; }
3064 if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3065 rm -rf conftest*
3066 ac_cv_func_alloca_works=yes
3067 else
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 rm -rf conftest*
3071 ac_cv_func_alloca_works=no
3073 rm -f conftest*
3076 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3077 if test $ac_cv_func_alloca_works = yes; then
3078 cat >> confdefs.h <<\EOF
3079 #define HAVE_ALLOCA 1
3084 if test $ac_cv_func_alloca_works = no; then
3085 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3086 # that cause trouble. Some versions do not even contain alloca or
3087 # contain a buggy version. If you still want to use their alloca,
3088 # use ar to extract alloca.o from them instead of compiling alloca.c.
3089 ALLOCA=alloca.${ac_objext}
3090 cat >> confdefs.h <<\EOF
3091 #define C_ALLOCA 1
3095 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3096 echo "configure:3097: checking whether alloca needs Cray hooks" >&5
3097 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #if defined(CRAY) && ! defined(CRAY2)
3104 webecray
3105 #else
3106 wenotbecray
3107 #endif
3110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111 egrep "webecray" >/dev/null 2>&1; then
3112 rm -rf conftest*
3113 ac_cv_os_cray=yes
3114 else
3115 rm -rf conftest*
3116 ac_cv_os_cray=no
3118 rm -f conftest*
3122 echo "$ac_t""$ac_cv_os_cray" 1>&6
3123 if test $ac_cv_os_cray = yes; then
3124 for ac_func in _getb67 GETB67 getb67; do
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3135 #include <assert.h>
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3139 char $ac_func();
3141 int main() {
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 choke me
3148 #else
3149 $ac_func();
3150 #endif
3152 ; return 0; }
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 rm -rf conftest*
3156 eval "ac_cv_func_$ac_func=yes"
3157 else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
3161 eval "ac_cv_func_$ac_func=no"
3163 rm -f conftest*
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 cat >> confdefs.h <<EOF
3169 #define CRAY_STACKSEG_END $ac_func
3172 break
3173 else
3174 echo "$ac_t""no" 1>&6
3177 done
3180 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3181 echo "configure:3182: checking stack direction for C alloca" >&5
3182 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3184 else
3185 if test "$cross_compiling" = yes; then
3186 ac_cv_c_stack_direction=0
3187 else
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 find_stack_direction ()
3193 static char *addr = 0;
3194 auto char dummy;
3195 if (addr == 0)
3197 addr = &dummy;
3198 return find_stack_direction ();
3200 else
3201 return (&dummy > addr) ? 1 : -1;
3203 main ()
3205 exit (find_stack_direction() < 0);
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3209 then
3210 ac_cv_c_stack_direction=1
3211 else
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 rm -fr conftest*
3215 ac_cv_c_stack_direction=-1
3217 rm -fr conftest*
3222 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3223 cat >> confdefs.h <<EOF
3224 #define STACK_DIRECTION $ac_cv_c_stack_direction
3229 for ac_hdr in unistd.h
3231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 #include <$ac_hdr>
3242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3246 rm -rf conftest*
3247 eval "ac_cv_header_$ac_safe=yes"
3248 else
3249 echo "$ac_err" >&5
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=no"
3255 rm -f conftest*
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 cat >> confdefs.h <<EOF
3261 #define $ac_tr_hdr 1
3264 else
3265 echo "$ac_t""no" 1>&6
3267 done
3269 for ac_func in getpagesize
3271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3272 echo "configure:3273: checking for $ac_func" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3275 else
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* System header to define __stub macros and hopefully few prototypes,
3280 which can conflict with char $ac_func(); below. */
3281 #include <assert.h>
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char $ac_func();
3287 int main() {
3289 /* The GNU C library defines this for functions which it implements
3290 to always fail with ENOSYS. Some functions are actually named
3291 something starting with __ and the normal name is an alias. */
3292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3293 choke me
3294 #else
3295 $ac_func();
3296 #endif
3298 ; return 0; }
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3301 rm -rf conftest*
3302 eval "ac_cv_func_$ac_func=yes"
3303 else
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 rm -rf conftest*
3307 eval "ac_cv_func_$ac_func=no"
3309 rm -f conftest*
3312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3313 echo "$ac_t""yes" 1>&6
3314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3315 cat >> confdefs.h <<EOF
3316 #define $ac_tr_func 1
3319 else
3320 echo "$ac_t""no" 1>&6
3322 done
3324 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3325 echo "configure:3326: checking for working mmap" >&5
3326 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329 if test "$cross_compiling" = yes; then
3330 ac_cv_func_mmap_fixed_mapped=no
3331 else
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3336 /* Thanks to Mike Haertel and Jim Avera for this test.
3337 Here is a matrix of mmap possibilities:
3338 mmap private not fixed
3339 mmap private fixed at somewhere currently unmapped
3340 mmap private fixed at somewhere already mapped
3341 mmap shared not fixed
3342 mmap shared fixed at somewhere currently unmapped
3343 mmap shared fixed at somewhere already mapped
3344 For private mappings, we should verify that changes cannot be read()
3345 back from the file, nor mmap's back from the file at a different
3346 address. (There have been systems where private was not correctly
3347 implemented like the infamous i386 svr4.0, and systems where the
3348 VM page cache was not coherent with the filesystem buffer cache
3349 like early versions of FreeBSD and possibly contemporary NetBSD.)
3350 For shared mappings, we should conversely verify that changes get
3351 propogated back to all the places they're supposed to be.
3353 Grep wants private fixed already mapped.
3354 The main things grep needs to know about mmap are:
3355 * does it exist and is it safe to write into the mmap'd area
3356 * how to use it (BSD variants) */
3357 #include <sys/types.h>
3358 #include <fcntl.h>
3359 #include <sys/mman.h>
3361 /* This mess was copied from the GNU getpagesize.h. */
3362 #ifndef HAVE_GETPAGESIZE
3363 # ifdef HAVE_UNISTD_H
3364 # include <unistd.h>
3365 # endif
3367 /* Assume that all systems that can run configure have sys/param.h. */
3368 # ifndef HAVE_SYS_PARAM_H
3369 # define HAVE_SYS_PARAM_H 1
3370 # endif
3372 # ifdef _SC_PAGESIZE
3373 # define getpagesize() sysconf(_SC_PAGESIZE)
3374 # else /* no _SC_PAGESIZE */
3375 # ifdef HAVE_SYS_PARAM_H
3376 # include <sys/param.h>
3377 # ifdef EXEC_PAGESIZE
3378 # define getpagesize() EXEC_PAGESIZE
3379 # else /* no EXEC_PAGESIZE */
3380 # ifdef NBPG
3381 # define getpagesize() NBPG * CLSIZE
3382 # ifndef CLSIZE
3383 # define CLSIZE 1
3384 # endif /* no CLSIZE */
3385 # else /* no NBPG */
3386 # ifdef NBPC
3387 # define getpagesize() NBPC
3388 # else /* no NBPC */
3389 # ifdef PAGESIZE
3390 # define getpagesize() PAGESIZE
3391 # endif /* PAGESIZE */
3392 # endif /* no NBPC */
3393 # endif /* no NBPG */
3394 # endif /* no EXEC_PAGESIZE */
3395 # else /* no HAVE_SYS_PARAM_H */
3396 # define getpagesize() 8192 /* punt totally */
3397 # endif /* no HAVE_SYS_PARAM_H */
3398 # endif /* no _SC_PAGESIZE */
3400 #endif /* no HAVE_GETPAGESIZE */
3402 #ifdef __cplusplus
3403 extern "C" { void *malloc(unsigned); }
3404 #else
3405 char *malloc();
3406 #endif
3409 main()
3411 char *data, *data2, *data3;
3412 int i, pagesize;
3413 int fd;
3415 pagesize = getpagesize();
3418 * First, make a file with some known garbage in it.
3420 data = malloc(pagesize);
3421 if (!data)
3422 exit(1);
3423 for (i = 0; i < pagesize; ++i)
3424 *(data + i) = rand();
3425 umask(0);
3426 fd = creat("conftestmmap", 0600);
3427 if (fd < 0)
3428 exit(1);
3429 if (write(fd, data, pagesize) != pagesize)
3430 exit(1);
3431 close(fd);
3434 * Next, try to mmap the file at a fixed address which
3435 * already has something else allocated at it. If we can,
3436 * also make sure that we see the same garbage.
3438 fd = open("conftestmmap", O_RDWR);
3439 if (fd < 0)
3440 exit(1);
3441 data2 = malloc(2 * pagesize);
3442 if (!data2)
3443 exit(1);
3444 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3445 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3446 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3447 exit(1);
3448 for (i = 0; i < pagesize; ++i)
3449 if (*(data + i) != *(data2 + i))
3450 exit(1);
3453 * Finally, make sure that changes to the mapped area
3454 * do not percolate back to the file as seen by read().
3455 * (This is a bug on some variants of i386 svr4.0.)
3457 for (i = 0; i < pagesize; ++i)
3458 *(data2 + i) = *(data2 + i) + 1;
3459 data3 = malloc(pagesize);
3460 if (!data3)
3461 exit(1);
3462 if (read(fd, data3, pagesize) != pagesize)
3463 exit(1);
3464 for (i = 0; i < pagesize; ++i)
3465 if (*(data + i) != *(data3 + i))
3466 exit(1);
3467 close(fd);
3468 unlink("conftestmmap");
3469 exit(0);
3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3474 then
3475 ac_cv_func_mmap_fixed_mapped=yes
3476 else
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 rm -fr conftest*
3480 ac_cv_func_mmap_fixed_mapped=no
3482 rm -fr conftest*
3487 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3488 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_MMAP 1
3496 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3497 unistd.h values.h sys/param.h
3499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3501 echo "configure:3502: checking for $ac_hdr" >&5
3502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3504 else
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <$ac_hdr>
3510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3511 { (eval echo configure:3512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3513 if test -z "$ac_err"; then
3514 rm -rf conftest*
3515 eval "ac_cv_header_$ac_safe=yes"
3516 else
3517 echo "$ac_err" >&5
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 eval "ac_cv_header_$ac_safe=no"
3523 rm -f conftest*
3525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3526 echo "$ac_t""yes" 1>&6
3527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3528 cat >> confdefs.h <<EOF
3529 #define $ac_tr_hdr 1
3532 else
3533 echo "$ac_t""no" 1>&6
3535 done
3537 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3538 __argz_count __argz_stringify __argz_next
3540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3541 echo "configure:3542: checking for $ac_func" >&5
3542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3544 else
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 /* System header to define __stub macros and hopefully few prototypes,
3549 which can conflict with char $ac_func(); below. */
3550 #include <assert.h>
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3554 char $ac_func();
3556 int main() {
3558 /* The GNU C library defines this for functions which it implements
3559 to always fail with ENOSYS. Some functions are actually named
3560 something starting with __ and the normal name is an alias. */
3561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3562 choke me
3563 #else
3564 $ac_func();
3565 #endif
3567 ; return 0; }
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570 rm -rf conftest*
3571 eval "ac_cv_func_$ac_func=yes"
3572 else
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 rm -rf conftest*
3576 eval "ac_cv_func_$ac_func=no"
3578 rm -f conftest*
3581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3584 cat >> confdefs.h <<EOF
3585 #define $ac_tr_func 1
3588 else
3589 echo "$ac_t""no" 1>&6
3591 done
3594 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3595 for ac_func in stpcpy
3597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_func" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601 else
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char $ac_func(); below. */
3607 #include <assert.h>
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3611 char $ac_func();
3613 int main() {
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3619 choke me
3620 #else
3621 $ac_func();
3622 #endif
3624 ; return 0; }
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3627 rm -rf conftest*
3628 eval "ac_cv_func_$ac_func=yes"
3629 else
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 eval "ac_cv_func_$ac_func=no"
3635 rm -f conftest*
3638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_func 1
3645 else
3646 echo "$ac_t""no" 1>&6
3648 done
3651 if test "${ac_cv_func_stpcpy}" = "yes"; then
3652 cat >> confdefs.h <<\EOF
3653 #define HAVE_STPCPY 1
3658 if test $ac_cv_header_locale_h = yes; then
3659 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3660 echo "configure:3661: checking for LC_MESSAGES" >&5
3661 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3663 else
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <locale.h>
3668 int main() {
3669 return LC_MESSAGES
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 rm -rf conftest*
3674 am_cv_val_LC_MESSAGES=yes
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 am_cv_val_LC_MESSAGES=no
3681 rm -f conftest*
3684 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3685 if test $am_cv_val_LC_MESSAGES = yes; then
3686 cat >> confdefs.h <<\EOF
3687 #define HAVE_LC_MESSAGES 1
3692 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3693 echo "configure:3694: checking whether NLS is requested" >&5
3694 # Check whether --enable-nls or --disable-nls was given.
3695 if test "${enable_nls+set}" = set; then
3696 enableval="$enable_nls"
3697 USE_NLS=$enableval
3698 else
3699 USE_NLS=yes
3702 echo "$ac_t""$USE_NLS" 1>&6
3705 USE_INCLUDED_LIBINTL=no
3707 if test "$USE_NLS" = "yes"; then
3708 cat >> confdefs.h <<\EOF
3709 #define ENABLE_NLS 1
3712 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3713 echo "configure:3714: checking whether included gettext is requested" >&5
3714 # Check whether --with-included-gettext or --without-included-gettext was given.
3715 if test "${with_included_gettext+set}" = set; then
3716 withval="$with_included_gettext"
3717 nls_cv_force_use_gnu_gettext=$withval
3718 else
3719 nls_cv_force_use_gnu_gettext=no
3722 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3724 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3725 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3726 nls_cv_header_intl=
3727 nls_cv_header_libgt=
3728 CATOBJEXT=NONE
3730 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3731 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3732 echo "configure:3733: checking for libintl.h" >&5
3733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <libintl.h>
3741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3742 { (eval echo configure:3743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3744 if test -z "$ac_err"; then
3745 rm -rf conftest*
3746 eval "ac_cv_header_$ac_safe=yes"
3747 else
3748 echo "$ac_err" >&5
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_header_$ac_safe=no"
3754 rm -f conftest*
3756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3759 echo "configure:3760: checking for gettext in libc" >&5
3760 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 #include <libintl.h>
3767 int main() {
3768 return (int) gettext ("")
3769 ; return 0; }
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3772 rm -rf conftest*
3773 gt_cv_func_gettext_libc=yes
3774 else
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3777 rm -rf conftest*
3778 gt_cv_func_gettext_libc=no
3780 rm -f conftest*
3783 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3785 if test "$gt_cv_func_gettext_libc" != "yes"; then
3786 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3787 echo "configure:3788: checking for bindtextdomain in -lintl" >&5
3788 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791 else
3792 ac_save_LIBS="$LIBS"
3793 LIBS="-lintl $LIBS"
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 /* Override any gcc2 internal prototype to avoid an error. */
3798 /* We use char because int might match the return type of a gcc2
3799 builtin and then its argument prototype would still apply. */
3800 char bindtextdomain();
3802 int main() {
3803 bindtextdomain()
3804 ; return 0; }
3806 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3807 rm -rf conftest*
3808 eval "ac_cv_lib_$ac_lib_var=yes"
3809 else
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3812 rm -rf conftest*
3813 eval "ac_cv_lib_$ac_lib_var=no"
3815 rm -f conftest*
3816 LIBS="$ac_save_LIBS"
3819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3822 echo "configure:3823: checking for gettext in libintl" >&5
3823 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3830 int main() {
3831 return (int) gettext ("")
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 gt_cv_func_gettext_libintl=yes
3837 else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 gt_cv_func_gettext_libintl=no
3843 rm -f conftest*
3846 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3847 else
3848 echo "$ac_t""no" 1>&6
3853 if test "$gt_cv_func_gettext_libc" = "yes" \
3854 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3855 cat >> confdefs.h <<\EOF
3856 #define HAVE_GETTEXT 1
3859 # Extract the first word of "msgfmt", so it can be a program name with args.
3860 set dummy msgfmt; ac_word=$2
3861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3862 echo "configure:3863: checking for $ac_word" >&5
3863 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 case "$MSGFMT" in
3868 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3872 for ac_dir in $PATH; do
3873 test -z "$ac_dir" && ac_dir=.
3874 if test -f $ac_dir/$ac_word; then
3875 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3876 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3877 break
3880 done
3881 IFS="$ac_save_ifs"
3882 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3884 esac
3886 MSGFMT="$ac_cv_path_MSGFMT"
3887 if test -n "$MSGFMT"; then
3888 echo "$ac_t""$MSGFMT" 1>&6
3889 else
3890 echo "$ac_t""no" 1>&6
3892 if test "$MSGFMT" != "no"; then
3893 for ac_func in dcgettext
3895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3896 echo "configure:3897: checking for $ac_func" >&5
3897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899 else
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 /* System header to define __stub macros and hopefully few prototypes,
3904 which can conflict with char $ac_func(); below. */
3905 #include <assert.h>
3906 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909 char $ac_func();
3911 int main() {
3913 /* The GNU C library defines this for functions which it implements
3914 to always fail with ENOSYS. Some functions are actually named
3915 something starting with __ and the normal name is an alias. */
3916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3917 choke me
3918 #else
3919 $ac_func();
3920 #endif
3922 ; return 0; }
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3925 rm -rf conftest*
3926 eval "ac_cv_func_$ac_func=yes"
3927 else
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 rm -rf conftest*
3931 eval "ac_cv_func_$ac_func=no"
3933 rm -f conftest*
3936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3939 cat >> confdefs.h <<EOF
3940 #define $ac_tr_func 1
3943 else
3944 echo "$ac_t""no" 1>&6
3946 done
3948 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3949 set dummy gmsgfmt; ac_word=$2
3950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_word" >&5
3952 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 case "$GMSGFMT" in
3957 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3959 ?:/*)
3960 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3964 ac_dummy="$PATH"
3965 for ac_dir in $ac_dummy; do
3966 test -z "$ac_dir" && ac_dir=.
3967 if test -f $ac_dir/$ac_word; then
3968 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3969 break
3971 done
3972 IFS="$ac_save_ifs"
3973 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3975 esac
3977 GMSGFMT="$ac_cv_path_GMSGFMT"
3978 if test -n "$GMSGFMT"; then
3979 echo "$ac_t""$GMSGFMT" 1>&6
3980 else
3981 echo "$ac_t""no" 1>&6
3984 # Extract the first word of "xgettext", so it can be a program name with args.
3985 set dummy xgettext; ac_word=$2
3986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3987 echo "configure:3988: checking for $ac_word" >&5
3988 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3990 else
3991 case "$XGETTEXT" in
3993 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3997 for ac_dir in $PATH; do
3998 test -z "$ac_dir" && ac_dir=.
3999 if test -f $ac_dir/$ac_word; then
4000 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4001 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4002 break
4005 done
4006 IFS="$ac_save_ifs"
4007 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4009 esac
4011 XGETTEXT="$ac_cv_path_XGETTEXT"
4012 if test -n "$XGETTEXT"; then
4013 echo "$ac_t""$XGETTEXT" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4022 int main() {
4023 extern int _nl_msg_cat_cntr;
4024 return _nl_msg_cat_cntr
4025 ; return 0; }
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 rm -rf conftest*
4029 CATOBJEXT=.gmo
4030 DATADIRNAME=share
4031 else
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4034 rm -rf conftest*
4035 CATOBJEXT=.mo
4036 DATADIRNAME=lib
4038 rm -f conftest*
4039 INSTOBJEXT=.mo
4043 else
4044 echo "$ac_t""no" 1>&6
4049 if test "$CATOBJEXT" = "NONE"; then
4050 nls_cv_use_gnu_gettext=yes
4054 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4055 INTLOBJS="\$(GETTOBJS)"
4056 # Extract the first word of "msgfmt", so it can be a program name with args.
4057 set dummy msgfmt; ac_word=$2
4058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4059 echo "configure:4060: checking for $ac_word" >&5
4060 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4062 else
4063 case "$MSGFMT" in
4065 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4069 for ac_dir in $PATH; do
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f $ac_dir/$ac_word; then
4072 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4073 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4074 break
4077 done
4078 IFS="$ac_save_ifs"
4079 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4081 esac
4083 MSGFMT="$ac_cv_path_MSGFMT"
4084 if test -n "$MSGFMT"; then
4085 echo "$ac_t""$MSGFMT" 1>&6
4086 else
4087 echo "$ac_t""no" 1>&6
4090 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4091 set dummy gmsgfmt; ac_word=$2
4092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4093 echo "configure:4094: checking for $ac_word" >&5
4094 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4096 else
4097 case "$GMSGFMT" in
4099 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4101 ?:/*)
4102 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4106 ac_dummy="$PATH"
4107 for ac_dir in $ac_dummy; do
4108 test -z "$ac_dir" && ac_dir=.
4109 if test -f $ac_dir/$ac_word; then
4110 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4111 break
4113 done
4114 IFS="$ac_save_ifs"
4115 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4117 esac
4119 GMSGFMT="$ac_cv_path_GMSGFMT"
4120 if test -n "$GMSGFMT"; then
4121 echo "$ac_t""$GMSGFMT" 1>&6
4122 else
4123 echo "$ac_t""no" 1>&6
4126 # Extract the first word of "xgettext", so it can be a program name with args.
4127 set dummy xgettext; ac_word=$2
4128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_word" >&5
4130 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 case "$XGETTEXT" in
4135 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4139 for ac_dir in $PATH; do
4140 test -z "$ac_dir" && ac_dir=.
4141 if test -f $ac_dir/$ac_word; then
4142 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4143 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4144 break
4147 done
4148 IFS="$ac_save_ifs"
4149 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4151 esac
4153 XGETTEXT="$ac_cv_path_XGETTEXT"
4154 if test -n "$XGETTEXT"; then
4155 echo "$ac_t""$XGETTEXT" 1>&6
4156 else
4157 echo "$ac_t""no" 1>&6
4161 USE_INCLUDED_LIBINTL=yes
4162 CATOBJEXT=.gmo
4163 INSTOBJEXT=.mo
4164 DATADIRNAME=share
4165 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4166 INTLLIBS=$INTLDEPS
4167 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4168 nls_cv_header_intl=libintl.h
4169 nls_cv_header_libgt=libgettext.h
4172 if test "$XGETTEXT" != ":"; then
4173 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4175 else
4176 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4177 XGETTEXT=":"
4181 # We need to process the po/ directory.
4182 POSUB=po
4183 else
4184 DATADIRNAME=share
4185 nls_cv_header_intl=libintl.h
4186 nls_cv_header_libgt=libgettext.h
4189 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4190 # because some of the sources are only built for this goal.
4191 if test "$PACKAGE" = gettext; then
4192 USE_NLS=yes
4193 USE_INCLUDED_LIBINTL=yes
4196 for lang in $ALL_LINGUAS; do
4197 GMOFILES="$GMOFILES $lang.gmo"
4198 POFILES="$POFILES $lang.po"
4199 done
4214 if test "x$CATOBJEXT" != "x"; then
4215 if test "x$ALL_LINGUAS" = "x"; then
4216 LINGUAS=
4217 else
4218 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4219 echo "configure:4220: checking for catalogs to be installed" >&5
4220 NEW_LINGUAS=
4221 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4222 case "$ALL_LINGUAS" in
4223 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4224 esac
4225 done
4226 LINGUAS=$NEW_LINGUAS
4227 echo "$ac_t""$LINGUAS" 1>&6
4230 if test -n "$LINGUAS"; then
4231 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4235 if test $ac_cv_header_locale_h = yes; then
4236 INCLUDE_LOCALE_H="#include <locale.h>"
4237 else
4238 INCLUDE_LOCALE_H="\
4239 /* The system does not provide the header <locale.h>. Take care yourself. */"
4243 if test -f $srcdir/po2tbl.sed.in; then
4244 if test "$CATOBJEXT" = ".cat"; then
4245 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4246 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4247 echo "configure:4248: checking for linux/version.h" >&5
4248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4250 else
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <linux/version.h>
4256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4257 { (eval echo configure:4258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4259 if test -z "$ac_err"; then
4260 rm -rf conftest*
4261 eval "ac_cv_header_$ac_safe=yes"
4262 else
4263 echo "$ac_err" >&5
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 rm -rf conftest*
4267 eval "ac_cv_header_$ac_safe=no"
4269 rm -f conftest*
4271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 msgformat=linux
4274 else
4275 echo "$ac_t""no" 1>&6
4276 msgformat=xopen
4280 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4282 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4283 $srcdir/po2tbl.sed.in > po2tbl.sed
4286 if test "$PACKAGE" = "gettext"; then
4287 GT_NO="#NO#"
4288 GT_YES=
4289 else
4290 GT_NO=
4291 GT_YES="#YES#"
4296 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4302 if test -f $srcdir/po/POTFILES.in; then
4303 test -d po || mkdir po
4304 if test "x$srcdir" != "x."; then
4305 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4306 posrcprefix="$srcdir/"
4307 else
4308 posrcprefix="../$srcdir/"
4310 else
4311 posrcprefix="../"
4313 rm -f po/POTFILES
4314 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4315 < $srcdir/po/POTFILES.in > po/POTFILES
4319 . ${srcdir}/../bfd/configure.host
4321 # Put a plausible default for CC_FOR_BUILD in Makefile.
4322 if test -z "$CC_FOR_BUILD"; then
4323 if test "x$cross_compiling" = "xno"; then
4324 CC_FOR_BUILD='$(CC)'
4325 else
4326 CC_FOR_BUILD=gcc
4330 # Also set EXEEXT_FOR_BUILD.
4331 if test "x$cross_compiling" = "xno"; then
4332 EXEEXT_FOR_BUILD='$(EXEEXT)'
4333 else
4334 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4335 echo "configure:4336: checking for build system executable suffix" >&5
4336 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339 rm -f conftest*
4340 echo 'int main () { return 0; }' > conftest.c
4341 bfd_cv_build_exeext=
4342 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4343 for file in conftest.*; do
4344 case $file in
4345 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4346 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4347 esac
4348 done
4349 rm -f conftest*
4350 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4353 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4354 EXEEXT_FOR_BUILD=""
4355 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4360 # Find a good install program. We prefer a C program (faster),
4361 # so one script is as good as another. But avoid the broken or
4362 # incompatible versions:
4363 # SysV /etc/install, /usr/sbin/install
4364 # SunOS /usr/etc/install
4365 # IRIX /sbin/install
4366 # AIX /bin/install
4367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4370 # ./install, which can be erroneously created by make from ./install.sh.
4371 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4372 echo "configure:4373: checking for a BSD compatible install" >&5
4373 if test -z "$INSTALL"; then
4374 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4378 for ac_dir in $PATH; do
4379 # Account for people who put trailing slashes in PATH elements.
4380 case "$ac_dir/" in
4381 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4383 # OSF1 and SCO ODT 3.0 have their own names for install.
4384 # Don't use installbsd from OSF since it installs stuff as root
4385 # by default.
4386 for ac_prog in ginstall scoinst install; do
4387 if test -f $ac_dir/$ac_prog; then
4388 if test $ac_prog = install &&
4389 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4390 # AIX install. It has an incompatible calling convention.
4392 else
4393 ac_cv_path_install="$ac_dir/$ac_prog -c"
4394 break 2
4397 done
4399 esac
4400 done
4401 IFS="$ac_save_IFS"
4404 if test "${ac_cv_path_install+set}" = set; then
4405 INSTALL="$ac_cv_path_install"
4406 else
4407 # As a last resort, use the slow shell script. We don't cache a
4408 # path for INSTALL within a source directory, because that will
4409 # break other packages using the cache if that directory is
4410 # removed, or if the path is relative.
4411 INSTALL="$ac_install_sh"
4414 echo "$ac_t""$INSTALL" 1>&6
4416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4417 # It thinks the first close brace ends the variable substitution.
4418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4425 for ac_hdr in string.h strings.h stdlib.h
4427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_hdr" >&5
4430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4432 else
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 #include <$ac_hdr>
4438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4439 { (eval echo configure:4440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4441 if test -z "$ac_err"; then
4442 rm -rf conftest*
4443 eval "ac_cv_header_$ac_safe=yes"
4444 else
4445 echo "$ac_err" >&5
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4448 rm -rf conftest*
4449 eval "ac_cv_header_$ac_safe=no"
4451 rm -f conftest*
4453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4456 cat >> confdefs.h <<EOF
4457 #define $ac_tr_hdr 1
4460 else
4461 echo "$ac_t""no" 1>&6
4463 done
4466 cgen_maint=no
4467 cgendir='$(srcdir)/../cgen'
4469 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
4470 if test "${enable_cgen_maint+set}" = set; then
4471 enableval="$enable_cgen_maint"
4472 case "${enableval}" in
4473 yes) cgen_maint=yes ;;
4474 no) cgen_maint=no ;;
4476 # argument is cgen install directory (not implemented yet).
4477 # Having a `share' directory might be more appropriate for the .scm,
4478 # .cpu, etc. files.
4479 cgen_maint=yes
4480 cgendir=${cgen_maint}/lib/cgen
4482 esac
4486 if test x${cgen_maint} = xyes; then
4487 CGEN_MAINT_TRUE=
4488 CGEN_MAINT_FALSE='#'
4489 else
4490 CGEN_MAINT_TRUE='#'
4491 CGEN_MAINT_FALSE=
4495 using_cgen=no
4497 # Horrible hacks to build DLLs on Windows.
4498 WIN32LDFLAGS=
4499 WIN32LIBADD=
4500 case "${host}" in
4501 *-*-cygwin*)
4502 if test "$enable_shared" = "yes"; then
4503 WIN32LDFLAGS="-no-undefined"
4504 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
4507 esac
4511 # target-specific stuff:
4513 # Canonicalize the secondary target names.
4514 if test -n "$enable_targets" ; then
4515 for targ in `echo $enable_targets | sed 's/,/ /g'`
4517 result=`$ac_config_sub $targ 2>/dev/null`
4518 if test -n "$result" ; then
4519 canon_targets="$canon_targets $result"
4520 else
4521 # Allow targets that config.sub doesn't recognize, like "all".
4522 canon_targets="$canon_targets $targ"
4524 done
4527 all_targets=false
4528 selarchs=
4529 for targ in $target $canon_targets
4531 if test "x$targ" = "xall" ; then
4532 all_targets=true
4533 else
4534 . $srcdir/../bfd/config.bfd
4535 selarchs="$selarchs $targ_archs"
4537 done
4539 # Utility var, documents generic cgen support files.
4541 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
4543 # We don't do any links based on the target system, just makefile config.
4545 if test x${all_targets} = xfalse ; then
4547 # Target architecture .o files.
4550 for arch in $selarchs
4552 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
4553 archdefs="$archdefs -DARCH_$ad"
4554 case "$arch" in
4555 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
4556 bfd_alliant_arch) ;;
4557 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
4558 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
4559 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
4560 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4561 bfd_convex_arch) ;;
4562 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
4563 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
4564 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
4565 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
4566 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
4567 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
4568 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
4569 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
4570 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
4571 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
4572 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
4573 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
4574 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
4575 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4576 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
4577 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
4578 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
4579 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
4580 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
4581 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
4582 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
4583 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
4584 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
4585 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
4586 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
4587 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
4588 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4589 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4590 bfd_pyramid_arch) ;;
4591 bfd_romp_arch) ;;
4592 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4593 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
4594 bfd_sh_arch)
4595 ta="$ta sh-dis.lo" ;;
4596 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4597 bfd_tahoe_arch) ;;
4598 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4599 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4600 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4601 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4602 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4603 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4604 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4605 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4606 bfd_we32k_arch) ;;
4607 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
4608 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4610 "") ;;
4611 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4612 esac
4613 done
4615 if test $using_cgen = yes ; then
4616 ta="$ta $cgen_files"
4619 # Weed out duplicate .o files.
4620 f=""
4621 for i in $ta ; do
4622 case " $f " in
4623 *" $i "*) ;;
4624 *) f="$f $i" ;;
4625 esac
4626 done
4627 ta="$f"
4629 # And duplicate -D flags.
4630 f=""
4631 for i in $archdefs ; do
4632 case " $f " in
4633 *" $i "*) ;;
4634 *) f="$f $i" ;;
4635 esac
4636 done
4637 archdefs="$f"
4639 BFD_MACHINES="$ta"
4641 else # all_targets is true
4642 archdefs=-DARCH_all
4643 BFD_MACHINES='$(ALL_MACHINES)'
4649 trap '' 1 2 15
4650 cat > confcache <<\EOF
4651 # This file is a shell script that caches the results of configure
4652 # tests run on this system so they can be shared between configure
4653 # scripts and configure runs. It is not useful on other systems.
4654 # If it contains results you don't want to keep, you may remove or edit it.
4656 # By default, configure uses ./config.cache as the cache file,
4657 # creating it if it does not exist already. You can give configure
4658 # the --cache-file=FILE option to use a different cache file; that is
4659 # what configure does when it calls configure scripts in
4660 # subdirectories, so they share the cache.
4661 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4662 # config.status only pays attention to the cache file if you give it the
4663 # --recheck option to rerun configure.
4666 # The following way of writing the cache mishandles newlines in values,
4667 # but we know of no workaround that is simple, portable, and efficient.
4668 # So, don't put newlines in cache variables' values.
4669 # Ultrix sh set writes to stderr and can't be redirected directly,
4670 # and sets the high bit in the cache file unless we assign to the vars.
4671 (set) 2>&1 |
4672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4673 *ac_space=\ *)
4674 # `set' does not quote correctly, so add quotes (double-quote substitution
4675 # turns \\\\ into \\, and sed turns \\ into \).
4676 sed -n \
4677 -e "s/'/'\\\\''/g" \
4678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4681 # `set' quotes correctly as required by POSIX, so do not add quotes.
4682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4684 esac >> confcache
4685 if cmp -s $cache_file confcache; then
4687 else
4688 if test -w $cache_file; then
4689 echo "updating cache $cache_file"
4690 cat confcache > $cache_file
4691 else
4692 echo "not updating unwritable cache $cache_file"
4695 rm -f confcache
4697 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4700 # Let make expand exec_prefix.
4701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4703 # Any assignment to VPATH causes Sun make to only execute
4704 # the first set of double-colon rules, so remove it if not needed.
4705 # If there is a colon in the path, we need to keep it.
4706 if test "x$srcdir" = x.; then
4707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4710 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4712 DEFS=-DHAVE_CONFIG_H
4714 # Without the "./", some shells look in PATH for config.status.
4715 : ${CONFIG_STATUS=./config.status}
4717 echo creating $CONFIG_STATUS
4718 rm -f $CONFIG_STATUS
4719 cat > $CONFIG_STATUS <<EOF
4720 #! /bin/sh
4721 # Generated automatically by configure.
4722 # Run this file to recreate the current configuration.
4723 # This directory was configured as follows,
4724 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4726 # $0 $ac_configure_args
4728 # Compiler output produced by configure, useful for debugging
4729 # configure, is in ./config.log if it exists.
4731 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4732 for ac_option
4734 case "\$ac_option" in
4735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4736 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4737 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4738 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4739 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4740 exit 0 ;;
4741 -help | --help | --hel | --he | --h)
4742 echo "\$ac_cs_usage"; exit 0 ;;
4743 *) echo "\$ac_cs_usage"; exit 1 ;;
4744 esac
4745 done
4747 ac_given_srcdir=$srcdir
4748 ac_given_INSTALL="$INSTALL"
4750 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4752 cat >> $CONFIG_STATUS <<EOF
4754 # Protect against being on the right side of a sed subst in config.status.
4755 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4756 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4757 $ac_vpsub
4758 $extrasub
4759 s%@SHELL@%$SHELL%g
4760 s%@CFLAGS@%$CFLAGS%g
4761 s%@CPPFLAGS@%$CPPFLAGS%g
4762 s%@CXXFLAGS@%$CXXFLAGS%g
4763 s%@FFLAGS@%$FFLAGS%g
4764 s%@DEFS@%$DEFS%g
4765 s%@LDFLAGS@%$LDFLAGS%g
4766 s%@LIBS@%$LIBS%g
4767 s%@exec_prefix@%$exec_prefix%g
4768 s%@prefix@%$prefix%g
4769 s%@program_transform_name@%$program_transform_name%g
4770 s%@bindir@%$bindir%g
4771 s%@sbindir@%$sbindir%g
4772 s%@libexecdir@%$libexecdir%g
4773 s%@datadir@%$datadir%g
4774 s%@sysconfdir@%$sysconfdir%g
4775 s%@sharedstatedir@%$sharedstatedir%g
4776 s%@localstatedir@%$localstatedir%g
4777 s%@libdir@%$libdir%g
4778 s%@includedir@%$includedir%g
4779 s%@oldincludedir@%$oldincludedir%g
4780 s%@infodir@%$infodir%g
4781 s%@mandir@%$mandir%g
4782 s%@host@%$host%g
4783 s%@host_alias@%$host_alias%g
4784 s%@host_cpu@%$host_cpu%g
4785 s%@host_vendor@%$host_vendor%g
4786 s%@host_os@%$host_os%g
4787 s%@target@%$target%g
4788 s%@target_alias@%$target_alias%g
4789 s%@target_cpu@%$target_cpu%g
4790 s%@target_vendor@%$target_vendor%g
4791 s%@target_os@%$target_os%g
4792 s%@build@%$build%g
4793 s%@build_alias@%$build_alias%g
4794 s%@build_cpu@%$build_cpu%g
4795 s%@build_vendor@%$build_vendor%g
4796 s%@build_os@%$build_os%g
4797 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4798 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4799 s%@INSTALL_DATA@%$INSTALL_DATA%g
4800 s%@PACKAGE@%$PACKAGE%g
4801 s%@VERSION@%$VERSION%g
4802 s%@ACLOCAL@%$ACLOCAL%g
4803 s%@AUTOCONF@%$AUTOCONF%g
4804 s%@AUTOMAKE@%$AUTOMAKE%g
4805 s%@AUTOHEADER@%$AUTOHEADER%g
4806 s%@MAKEINFO@%$MAKEINFO%g
4807 s%@SET_MAKE@%$SET_MAKE%g
4808 s%@AR@%$AR%g
4809 s%@RANLIB@%$RANLIB%g
4810 s%@CC@%$CC%g
4811 s%@LN_S@%$LN_S%g
4812 s%@OBJEXT@%$OBJEXT%g
4813 s%@EXEEXT@%$EXEEXT%g
4814 s%@STRIP@%$STRIP%g
4815 s%@LIBTOOL@%$LIBTOOL%g
4816 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4817 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4818 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4819 s%@MAINT@%$MAINT%g
4820 s%@CPP@%$CPP%g
4821 s%@ALLOCA@%$ALLOCA%g
4822 s%@USE_NLS@%$USE_NLS%g
4823 s%@MSGFMT@%$MSGFMT%g
4824 s%@GMSGFMT@%$GMSGFMT%g
4825 s%@XGETTEXT@%$XGETTEXT%g
4826 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4827 s%@CATALOGS@%$CATALOGS%g
4828 s%@CATOBJEXT@%$CATOBJEXT%g
4829 s%@DATADIRNAME@%$DATADIRNAME%g
4830 s%@GMOFILES@%$GMOFILES%g
4831 s%@INSTOBJEXT@%$INSTOBJEXT%g
4832 s%@INTLDEPS@%$INTLDEPS%g
4833 s%@INTLLIBS@%$INTLLIBS%g
4834 s%@INTLOBJS@%$INTLOBJS%g
4835 s%@POFILES@%$POFILES%g
4836 s%@POSUB@%$POSUB%g
4837 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4838 s%@GT_NO@%$GT_NO%g
4839 s%@GT_YES@%$GT_YES%g
4840 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4841 s%@l@%$l%g
4842 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4843 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
4844 s%@HDEFINES@%$HDEFINES%g
4845 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4846 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4847 s%@cgendir@%$cgendir%g
4848 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4849 s%@WIN32LIBADD@%$WIN32LIBADD%g
4850 s%@archdefs@%$archdefs%g
4851 s%@BFD_MACHINES@%$BFD_MACHINES%g
4853 CEOF
4856 cat >> $CONFIG_STATUS <<\EOF
4858 # Split the substitutions into bite-sized pieces for seds with
4859 # small command number limits, like on Digital OSF/1 and HP-UX.
4860 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4861 ac_file=1 # Number of current file.
4862 ac_beg=1 # First line for current file.
4863 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4864 ac_more_lines=:
4865 ac_sed_cmds=""
4866 while $ac_more_lines; do
4867 if test $ac_beg -gt 1; then
4868 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4869 else
4870 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4872 if test ! -s conftest.s$ac_file; then
4873 ac_more_lines=false
4874 rm -f conftest.s$ac_file
4875 else
4876 if test -z "$ac_sed_cmds"; then
4877 ac_sed_cmds="sed -f conftest.s$ac_file"
4878 else
4879 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4881 ac_file=`expr $ac_file + 1`
4882 ac_beg=$ac_end
4883 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4885 done
4886 if test -z "$ac_sed_cmds"; then
4887 ac_sed_cmds=cat
4891 cat >> $CONFIG_STATUS <<EOF
4893 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4895 cat >> $CONFIG_STATUS <<\EOF
4896 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4898 case "$ac_file" in
4899 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4900 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4901 *) ac_file_in="${ac_file}.in" ;;
4902 esac
4904 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4906 # Remove last slash and all that follows it. Not all systems have dirname.
4907 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4908 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4909 # The file is in a subdirectory.
4910 test ! -d "$ac_dir" && mkdir "$ac_dir"
4911 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4912 # A "../" for each directory in $ac_dir_suffix.
4913 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4914 else
4915 ac_dir_suffix= ac_dots=
4918 case "$ac_given_srcdir" in
4919 .) srcdir=.
4920 if test -z "$ac_dots"; then top_srcdir=.
4921 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4922 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4923 *) # Relative path.
4924 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4925 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4926 esac
4928 case "$ac_given_INSTALL" in
4929 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4930 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4931 esac
4933 echo creating "$ac_file"
4934 rm -f "$ac_file"
4935 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4936 case "$ac_file" in
4937 *Makefile*) ac_comsub="1i\\
4938 # $configure_input" ;;
4939 *) ac_comsub= ;;
4940 esac
4942 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4943 sed -e "$ac_comsub
4944 s%@configure_input@%$configure_input%g
4945 s%@srcdir@%$srcdir%g
4946 s%@top_srcdir@%$top_srcdir%g
4947 s%@INSTALL@%$INSTALL%g
4948 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4949 fi; done
4950 rm -f conftest.s*
4952 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4953 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4955 # ac_d sets the value in "#define NAME VALUE" lines.
4956 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4957 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4958 ac_dC='\3'
4959 ac_dD='%g'
4960 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4961 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4962 ac_uB='\([ ]\)%\1#\2define\3'
4963 ac_uC=' '
4964 ac_uD='\4%g'
4965 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4966 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4967 ac_eB='$%\1#\2define\3'
4968 ac_eC=' '
4969 ac_eD='%g'
4971 if test "${CONFIG_HEADERS+set}" != set; then
4973 cat >> $CONFIG_STATUS <<EOF
4974 CONFIG_HEADERS="config.h:config.in"
4976 cat >> $CONFIG_STATUS <<\EOF
4978 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4979 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4980 case "$ac_file" in
4981 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4982 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4983 *) ac_file_in="${ac_file}.in" ;;
4984 esac
4986 echo creating $ac_file
4988 rm -f conftest.frag conftest.in conftest.out
4989 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4990 cat $ac_file_inputs > conftest.in
4994 # Transform confdefs.h into a sed script conftest.vals that substitutes
4995 # the proper values into config.h.in to produce config.h. And first:
4996 # Protect against being on the right side of a sed subst in config.status.
4997 # Protect against being in an unquoted here document in config.status.
4998 rm -f conftest.vals
4999 cat > conftest.hdr <<\EOF
5000 s/[\\&%]/\\&/g
5001 s%[\\$`]%\\&%g
5002 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5003 s%ac_d%ac_u%gp
5004 s%ac_u%ac_e%gp
5006 sed -n -f conftest.hdr confdefs.h > conftest.vals
5007 rm -f conftest.hdr
5009 # This sed command replaces #undef with comments. This is necessary, for
5010 # example, in the case of _POSIX_SOURCE, which is predefined and required
5011 # on some systems where configure will not decide to define it.
5012 cat >> conftest.vals <<\EOF
5013 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5016 # Break up conftest.vals because some shells have a limit on
5017 # the size of here documents, and old seds have small limits too.
5019 rm -f conftest.tail
5020 while :
5022 ac_lines=`grep -c . conftest.vals`
5023 # grep -c gives empty output for an empty file on some AIX systems.
5024 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5025 # Write a limited-size here document to conftest.frag.
5026 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5027 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5028 echo 'CEOF
5029 sed -f conftest.frag conftest.in > conftest.out
5030 rm -f conftest.in
5031 mv conftest.out conftest.in
5032 ' >> $CONFIG_STATUS
5033 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5034 rm -f conftest.vals
5035 mv conftest.tail conftest.vals
5036 done
5037 rm -f conftest.vals
5039 cat >> $CONFIG_STATUS <<\EOF
5040 rm -f conftest.frag conftest.h
5041 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5042 cat conftest.in >> conftest.h
5043 rm -f conftest.in
5044 if cmp -s $ac_file conftest.h 2>/dev/null; then
5045 echo "$ac_file is unchanged"
5046 rm -f conftest.h
5047 else
5048 # Remove last slash and all that follows it. Not all systems have dirname.
5049 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5050 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5051 # The file is in a subdirectory.
5052 test ! -d "$ac_dir" && mkdir "$ac_dir"
5054 rm -f $ac_file
5055 mv conftest.h $ac_file
5057 fi; done
5060 cat >> $CONFIG_STATUS <<EOF
5064 cat >> $CONFIG_STATUS <<\EOF
5065 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5066 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5067 exit 0
5069 chmod +x $CONFIG_STATUS
5070 rm -fr confdefs* $ac_clean_files
5071 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1