Internationalised the opcodes library.
[deliverable/binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=no]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --enable-targets alternative target configurations"
26 ac_help="$ac_help
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
28 ac_help="$ac_help
29 --disable-nls do not use Native Language Support"
30 ac_help="$ac_help
31 --with-included-gettext use the GNU gettext library included here"
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
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
69
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
76
77 ac_prev=
78 for ac_option
79 do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept the important Cygnus configure options, so we can diagnose typos.
94
95 case "$ac_option" in
96
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
101
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
106
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
113
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
119
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
128
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
150
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
154
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
191 EOF
192 cat << EOF
193 Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
204 EOF
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
207 fi
208 exit 0 ;;
209
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
214
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
221
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
226
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
231
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
238
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
247
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
252
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
256
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
260
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
264
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
273
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
278
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
285
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
292
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
309
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
313
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
319
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
330
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
335
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
340
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
347
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
352
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
355
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.12.1"
358 exit 0 ;;
359
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
372
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
381
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
385
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
392
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
399
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 ;;
402
403 *)
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 fi
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 fi
410 nonopt="$ac_option"
411 ;;
412
413 esac
414 done
415
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 fi
419
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
431 exec 6>/dev/null
432 else
433 exec 6>&1
434 fi
435 exec 5>./config.log
436
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
441
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
446 do
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456 done
457
458 # NLS nuisances.
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 echo > confdefs.h
472
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=z8k-dis.c
476
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
487 fi
488 else
489 ac_srcdir_defaulted=no
490 fi
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 fi
497 fi
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 fi
507 fi
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
512 fi
513 done
514
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
521 fi
522
523 ac_ext=c
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
529
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534 ' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
537 fi
538 else
539 ac_n= ac_c='\c' ac_t=
540 fi
541
542
543
544 ac_aux_dir=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install-sh -c"
549 break
550 elif test -f $ac_dir/install.sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install.sh -c"
553 break
554 fi
555 done
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 fi
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562
563
564 # Do some error checking and defaulting for the host and target type.
565 # The inputs are:
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
567 #
568 # The rules are:
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # same time.
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
576
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---*---* | *---NONE---* | *---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
582 esac
583
584
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
588 fi
589
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
592
593 host_alias=$host
594 case "$host_alias" in
595 NONE)
596 case $nonopt in
597 NONE)
598 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 fi ;;
601 *) host_alias=$nonopt ;;
602 esac ;;
603 esac
604
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
610
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
613
614 target_alias=$target
615 case "$target_alias" in
616 NONE)
617 case $nonopt in
618 NONE) target_alias=$host_alias ;;
619 *) target_alias=$nonopt ;;
620 esac ;;
621 esac
622
623 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
628
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
631
632 build_alias=$build
633 case "$build_alias" in
634 NONE)
635 case $nonopt in
636 NONE) build_alias=$host_alias ;;
637 *) build_alias=$nonopt ;;
638 esac ;;
639 esac
640
641 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
646
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
649 NONENONEs,x,x, &&
650 program_prefix=${target_alias}-
651
652
653 # We currently only use the version number for the name of any shared
654 # library. For user convenience, we always use the same version
655 # number that BFD is using.
656 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
657
658 # Find a good install program. We prefer a C program (faster),
659 # so one script is as good as another. But avoid the broken or
660 # incompatible versions:
661 # SysV /etc/install, /usr/sbin/install
662 # SunOS /usr/etc/install
663 # IRIX /sbin/install
664 # AIX /bin/install
665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
668 # ./install, which can be erroneously created by make from ./install.sh.
669 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
670 echo "configure:671: checking for a BSD compatible install" >&5
671 if test -z "$INSTALL"; then
672 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674 else
675 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
676 for ac_dir in $PATH; do
677 # Account for people who put trailing slashes in PATH elements.
678 case "$ac_dir/" in
679 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
680 *)
681 # OSF1 and SCO ODT 3.0 have their own names for install.
682 # Don't use installbsd from OSF since it installs stuff as root
683 # by default.
684 for ac_prog in ginstall scoinst install; do
685 if test -f $ac_dir/$ac_prog; then
686 if test $ac_prog = install &&
687 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
688 # AIX install. It has an incompatible calling convention.
689 :
690 else
691 ac_cv_path_install="$ac_dir/$ac_prog -c"
692 break 2
693 fi
694 fi
695 done
696 ;;
697 esac
698 done
699 IFS="$ac_save_IFS"
700
701 fi
702 if test "${ac_cv_path_install+set}" = set; then
703 INSTALL="$ac_cv_path_install"
704 else
705 # As a last resort, use the slow shell script. We don't cache a
706 # path for INSTALL within a source directory, because that will
707 # break other packages using the cache if that directory is
708 # removed, or if the path is relative.
709 INSTALL="$ac_install_sh"
710 fi
711 fi
712 echo "$ac_t""$INSTALL" 1>&6
713
714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
715 # It thinks the first close brace ends the variable substitution.
716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
717
718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
719
720
721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
722
723 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
724 echo "configure:725: checking whether build environment is sane" >&5
725 # Just in case
726 sleep 1
727 echo timestamp > conftestfile
728 # Do `set' in a subshell so we don't clobber the current shell's
729 # arguments. Must try -L first in case configure is actually a
730 # symlink; some systems play weird games with the mod time of symlinks
731 # (eg FreeBSD returns the mod time of the symlink's containing
732 # directory).
733 if (
734 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
735 if test "$*" = "X"; then
736 # -L didn't work.
737 set X `ls -t $srcdir/configure conftestfile`
738 fi
739 if test "$*" != "X $srcdir/configure conftestfile" \
740 && test "$*" != "X conftestfile $srcdir/configure"; then
741
742 # If neither matched, then we have a broken ls. This can happen
743 # if, for instance, CONFIG_SHELL is bash and it inherits a
744 # broken ls alias from the environment. This has actually
745 # happened. Such a system could not be considered "sane".
746 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
747 alias in your environment" 1>&2; exit 1; }
748 fi
749
750 test "$2" = conftestfile
751 )
752 then
753 # Ok.
754 :
755 else
756 { echo "configure: error: newly created file is older than distributed files!
757 Check your system clock" 1>&2; exit 1; }
758 fi
759 rm -f conftest*
760 echo "$ac_t""yes" 1>&6
761 if test "$program_transform_name" = s,x,x,; then
762 program_transform_name=
763 else
764 # Double any \ or $. echo might interpret backslashes.
765 cat <<\EOF_SED > conftestsed
766 s,\\,\\\\,g; s,\$,$$,g
767 EOF_SED
768 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
769 rm -f conftestsed
770 fi
771 test "$program_prefix" != NONE &&
772 program_transform_name="s,^,${program_prefix},; $program_transform_name"
773 # Use a double $ so make ignores it.
774 test "$program_suffix" != NONE &&
775 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
776
777 # sed with no file args requires a program.
778 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
779
780 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
781 echo "configure:782: checking whether ${MAKE-make} sets \${MAKE}" >&5
782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
783 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftestmake <<\EOF
787 all:
788 @echo 'ac_maketemp="${MAKE}"'
789 EOF
790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
791 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
792 if test -n "$ac_maketemp"; then
793 eval ac_cv_prog_make_${ac_make}_set=yes
794 else
795 eval ac_cv_prog_make_${ac_make}_set=no
796 fi
797 rm -f conftestmake
798 fi
799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
800 echo "$ac_t""yes" 1>&6
801 SET_MAKE=
802 else
803 echo "$ac_t""no" 1>&6
804 SET_MAKE="MAKE=${MAKE-make}"
805 fi
806
807
808 PACKAGE=opcodes
809
810 VERSION=${BFD_VERSION}
811
812 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
813 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
814 fi
815 cat >> confdefs.h <<EOF
816 #define PACKAGE "$PACKAGE"
817 EOF
818
819 cat >> confdefs.h <<EOF
820 #define VERSION "$VERSION"
821 EOF
822
823
824
825 missing_dir=`cd $ac_aux_dir && pwd`
826 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
827 echo "configure:828: checking for working aclocal" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
832 ACLOCAL=aclocal
833 echo "$ac_t""found" 1>&6
834 else
835 ACLOCAL="$missing_dir/missing aclocal"
836 echo "$ac_t""missing" 1>&6
837 fi
838
839 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
840 echo "configure:841: checking for working autoconf" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
845 AUTOCONF=autoconf
846 echo "$ac_t""found" 1>&6
847 else
848 AUTOCONF="$missing_dir/missing autoconf"
849 echo "$ac_t""missing" 1>&6
850 fi
851
852 echo $ac_n "checking for working automake""... $ac_c" 1>&6
853 echo "configure:854: checking for working automake" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (automake --version) < /dev/null > /dev/null 2>&1; then
858 AUTOMAKE=automake
859 echo "$ac_t""found" 1>&6
860 else
861 AUTOMAKE="$missing_dir/missing automake"
862 echo "$ac_t""missing" 1>&6
863 fi
864
865 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
866 echo "configure:867: checking for working autoheader" >&5
867 # Run test in a subshell; some versions of sh will print an error if
868 # an executable is not found, even if stderr is redirected.
869 # Redirect stdin to placate older versions of autoconf. Sigh.
870 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
871 AUTOHEADER=autoheader
872 echo "$ac_t""found" 1>&6
873 else
874 AUTOHEADER="$missing_dir/missing autoheader"
875 echo "$ac_t""missing" 1>&6
876 fi
877
878 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
879 echo "configure:880: checking for working makeinfo" >&5
880 # Run test in a subshell; some versions of sh will print an error if
881 # an executable is not found, even if stderr is redirected.
882 # Redirect stdin to placate older versions of autoconf. Sigh.
883 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
884 MAKEINFO=makeinfo
885 echo "$ac_t""found" 1>&6
886 else
887 MAKEINFO="$missing_dir/missing makeinfo"
888 echo "$ac_t""missing" 1>&6
889 fi
890
891
892
893 if test $host != $build; then
894 ac_tool_prefix=${host_alias}-
895 else
896 ac_tool_prefix=
897 fi
898
899 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
900 set dummy ${ac_tool_prefix}ar; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905 else
906 if test -n "$AR"; then
907 ac_cv_prog_AR="$AR" # Let the user override the test.
908 else
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
910 for ac_dir in $PATH; do
911 test -z "$ac_dir" && ac_dir=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_AR="${ac_tool_prefix}ar"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
919 fi
920 fi
921 AR="$ac_cv_prog_AR"
922 if test -n "$AR"; then
923 echo "$ac_t""$AR" 1>&6
924 else
925 echo "$ac_t""no" 1>&6
926 fi
927
928
929
930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 if test -n "$RANLIB"; then
938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939 else
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
941 for ac_dir in $PATH; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
945 break
946 fi
947 done
948 IFS="$ac_save_ifs"
949 fi
950 fi
951 RANLIB="$ac_cv_prog_RANLIB"
952 if test -n "$RANLIB"; then
953 echo "$ac_t""$RANLIB" 1>&6
954 else
955 echo "$ac_t""no" 1>&6
956 fi
957
958
959 if test -z "$ac_cv_prog_RANLIB"; then
960 if test -n "$ac_tool_prefix"; then
961 # Extract the first word of "ranlib", so it can be a program name with args.
962 set dummy ranlib; ac_word=$2
963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
964 echo "configure:965: checking for $ac_word" >&5
965 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
967 else
968 if test -n "$RANLIB"; then
969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
970 else
971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
972 for ac_dir in $PATH; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_RANLIB="ranlib"
976 break
977 fi
978 done
979 IFS="$ac_save_ifs"
980 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
981 fi
982 fi
983 RANLIB="$ac_cv_prog_RANLIB"
984 if test -n "$RANLIB"; then
985 echo "$ac_t""$RANLIB" 1>&6
986 else
987 echo "$ac_t""no" 1>&6
988 fi
989
990 else
991 RANLIB=":"
992 fi
993 fi
994
995
996 # Check whether --enable-shared or --disable-shared was given.
997 if test "${enable_shared+set}" = set; then
998 enableval="$enable_shared"
999 p=${PACKAGE-default}
1000 case "$enableval" in
1001 yes) enable_shared=yes ;;
1002 no) enable_shared=no ;;
1003 *)
1004 enable_shared=no
1005 # Look at the argument we got. We use all the common list separators.
1006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1007 for pkg in $enableval; do
1008 if test "X$pkg" = "X$p"; then
1009 enable_shared=yes
1010 fi
1011 done
1012 IFS="$ac_save_ifs"
1013 ;;
1014 esac
1015 else
1016 enable_shared=no
1017 fi
1018
1019
1020 # Check whether --enable-static or --disable-static was given.
1021 if test "${enable_static+set}" = set; then
1022 enableval="$enable_static"
1023 p=${PACKAGE-default}
1024 case "$enableval" in
1025 yes) enable_static=yes ;;
1026 no) enable_static=no ;;
1027 *)
1028 enable_static=no
1029 # Look at the argument we got. We use all the common list separators.
1030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1031 for pkg in $enableval; do
1032 if test "X$pkg" = "X$p"; then
1033 enable_static=yes
1034 fi
1035 done
1036 IFS="$ac_save_ifs"
1037 ;;
1038 esac
1039 else
1040 enable_static=yes
1041 fi
1042
1043 # Extract the first word of "ranlib", so it can be a program name with args.
1044 set dummy ranlib; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1049 else
1050 if test -n "$RANLIB"; then
1051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1052 else
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_prog_RANLIB="ranlib"
1058 break
1059 fi
1060 done
1061 IFS="$ac_save_ifs"
1062 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1063 fi
1064 fi
1065 RANLIB="$ac_cv_prog_RANLIB"
1066 if test -n "$RANLIB"; then
1067 echo "$ac_t""$RANLIB" 1>&6
1068 else
1069 echo "$ac_t""no" 1>&6
1070 fi
1071
1072 # Extract the first word of "gcc", so it can be a program name with args.
1073 set dummy gcc; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1081 else
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1083 for ac_dir in $PATH; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1086 ac_cv_prog_CC="gcc"
1087 break
1088 fi
1089 done
1090 IFS="$ac_save_ifs"
1091 fi
1092 fi
1093 CC="$ac_cv_prog_CC"
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1096 else
1097 echo "$ac_t""no" 1>&6
1098 fi
1099
1100 if test -z "$CC"; then
1101 # Extract the first word of "cc", so it can be a program name with args.
1102 set dummy cc; ac_word=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1107 else
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC="$CC" # Let the user override the test.
1110 else
1111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1112 ac_prog_rejected=no
1113 for ac_dir in $PATH; do
1114 test -z "$ac_dir" && ac_dir=.
1115 if test -f $ac_dir/$ac_word; then
1116 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1117 ac_prog_rejected=yes
1118 continue
1119 fi
1120 ac_cv_prog_CC="cc"
1121 break
1122 fi
1123 done
1124 IFS="$ac_save_ifs"
1125 if test $ac_prog_rejected = yes; then
1126 # We found a bogon in the path, so make sure we never use it.
1127 set dummy $ac_cv_prog_CC
1128 shift
1129 if test $# -gt 0; then
1130 # We chose a different compiler from the bogus one.
1131 # However, it has the same basename, so the bogon will be chosen
1132 # first if we set CC to just the basename; use the full file name.
1133 shift
1134 set dummy "$ac_dir/$ac_word" "$@"
1135 shift
1136 ac_cv_prog_CC="$@"
1137 fi
1138 fi
1139 fi
1140 fi
1141 CC="$ac_cv_prog_CC"
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1144 else
1145 echo "$ac_t""no" 1>&6
1146 fi
1147
1148 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1149 fi
1150
1151 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1153
1154 ac_ext=c
1155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1156 ac_cpp='$CPP $CPPFLAGS'
1157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1158 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1159 cross_compiling=$ac_cv_prog_cc_cross
1160
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1164 main(){return(0);}
1165 EOF
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1167 ac_cv_prog_cc_works=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (./conftest; exit) 2>/dev/null; then
1170 ac_cv_prog_cc_cross=no
1171 else
1172 ac_cv_prog_cc_cross=yes
1173 fi
1174 else
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1177 ac_cv_prog_cc_works=no
1178 fi
1179 rm -fr conftest*
1180
1181 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1182 if test $ac_cv_prog_cc_works = no; then
1183 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1184 fi
1185 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1187 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1188 cross_compiling=$ac_cv_prog_cc_cross
1189
1190 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether we are using GNU C" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195 cat > conftest.c <<EOF
1196 #ifdef __GNUC__
1197 yes;
1198 #endif
1199 EOF
1200 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1201 ac_cv_prog_gcc=yes
1202 else
1203 ac_cv_prog_gcc=no
1204 fi
1205 fi
1206
1207 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1208
1209 if test $ac_cv_prog_gcc = yes; then
1210 GCC=yes
1211 ac_test_CFLAGS="${CFLAGS+set}"
1212 ac_save_CFLAGS="$CFLAGS"
1213 CFLAGS=
1214 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 echo 'void f(){}' > conftest.c
1220 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1221 ac_cv_prog_cc_g=yes
1222 else
1223 ac_cv_prog_cc_g=no
1224 fi
1225 rm -f conftest*
1226
1227 fi
1228
1229 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1230 if test "$ac_test_CFLAGS" = set; then
1231 CFLAGS="$ac_save_CFLAGS"
1232 elif test $ac_cv_prog_cc_g = yes; then
1233 CFLAGS="-g -O2"
1234 else
1235 CFLAGS="-O2"
1236 fi
1237 else
1238 GCC=
1239 test "${CFLAGS+set}" = set || CFLAGS="-g"
1240 fi
1241
1242 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1243 if test "${with_gnu_ld+set}" = set; then
1244 withval="$with_gnu_ld"
1245 test "$withval" = no || with_gnu_ld=yes
1246 else
1247 with_gnu_ld=no
1248 fi
1249
1250
1251 ac_prog=ld
1252 if test "$ac_cv_prog_gcc" = yes; then
1253 # Check if gcc -print-prog-name=ld gives a path.
1254 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1255 echo "configure:1256: checking for ld used by GCC" >&5
1256 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1257 case "$ac_prog" in
1258 # Accept absolute paths.
1259 /* | A-Za-z:\\*)
1260 test -z "$LD" && LD="$ac_prog"
1261 ;;
1262 "")
1263 # If it fails, then pretend we aren't using GCC.
1264 ac_prog=ld
1265 ;;
1266 *)
1267 # If it is relative, then search for the first ld in PATH.
1268 with_gnu_ld=unknown
1269 ;;
1270 esac
1271 elif test "$with_gnu_ld" = yes; then
1272 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1273 echo "configure:1274: checking for GNU ld" >&5
1274 else
1275 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1276 echo "configure:1277: checking for non-GNU ld" >&5
1277 fi
1278 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1280 else
1281 if test -z "$LD"; then
1282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1283 for ac_dir in $PATH; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f "$ac_dir/$ac_prog"; then
1286 ac_cv_path_LD="$ac_dir/$ac_prog"
1287 # Check to see if the program is GNU ld. I'd rather use --version,
1288 # but apparently some GNU ld's only accept -v.
1289 # Break only if it was the GNU/non-GNU ld that we prefer.
1290 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1291 test "$with_gnu_ld" != no && break
1292 else
1293 test "$with_gnu_ld" != yes && break
1294 fi
1295 fi
1296 done
1297 IFS="$ac_save_ifs"
1298 else
1299 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1300 fi
1301 fi
1302
1303 LD="$ac_cv_path_LD"
1304 if test -n "$LD"; then
1305 echo "$ac_t""$LD" 1>&6
1306 else
1307 echo "$ac_t""no" 1>&6
1308 fi
1309 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1310
1311 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1312 echo "configure:1313: checking if the linker ($LD) is GNU ld" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1317 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1318 ac_cv_prog_gnu_ld=yes
1319 else
1320 ac_cv_prog_gnu_ld=no
1321 fi
1322 fi
1323
1324 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1325
1326
1327 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1328 echo "configure:1329: checking for BSD-compatible nm" >&5
1329 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 case "$NM" in
1333 /* | A-Za-z:\\*)
1334 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1335 ;;
1336 *)
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1338 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/nm; then
1341 # Check to see if the nm accepts a BSD-compat flag.
1342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1343 # nm: unknown option "B" ignored
1344 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1345 ac_cv_path_NM="$ac_dir/nm -B"
1346 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1347 ac_cv_path_NM="$ac_dir/nm -p"
1348 else
1349 ac_cv_path_NM="$ac_dir/nm"
1350 fi
1351 break
1352 fi
1353 done
1354 IFS="$ac_save_ifs"
1355 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1356 ;;
1357 esac
1358 fi
1359
1360 NM="$ac_cv_path_NM"
1361 echo "$ac_t""$NM" 1>&6
1362
1363
1364 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1365 echo "configure:1366: checking whether ln -s works" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369 rm -f conftestdata
1370 if ln -s X conftestdata 2>/dev/null
1371 then
1372 rm -f conftestdata
1373 ac_cv_prog_LN_S="ln -s"
1374 else
1375 ac_cv_prog_LN_S=ln
1376 fi
1377 fi
1378 LN_S="$ac_cv_prog_LN_S"
1379 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1380 echo "$ac_t""yes" 1>&6
1381 else
1382 echo "$ac_t""no" 1>&6
1383 fi
1384
1385 # Always use our own libtool.
1386 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1387
1388 # Check for any special flags to pass to ltconfig.
1389 libtool_flags=
1390 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1391 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1392 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1393 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1394 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1395
1396 # Some flags need to be propagated to the compiler or linker for good
1397 # libtool support.
1398 case "$host" in
1399 *-*-irix6*)
1400 # Find out which ABI we are using.
1401 echo '#line 1402 "configure"' > conftest.$ac_ext
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403 case "`/usr/bin/file conftest.o`" in
1404 *32-bit*)
1405 LD="${LD-ld} -32"
1406 ;;
1407 *N32*)
1408 LD="${LD-ld} -n32"
1409 ;;
1410 *64-bit*)
1411 LD="${LD-ld} -64"
1412 ;;
1413 esac
1414 fi
1415 rm -rf conftest*
1416 ;;
1417
1418 *-*-sco3.2v5*)
1419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1420 CFLAGS="$CFLAGS -belf"
1421 ;;
1422 esac
1423
1424 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1425 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1426 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1427 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1428 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1429 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1430
1431
1432 # Check whether --enable-targets or --disable-targets was given.
1433 if test "${enable_targets+set}" = set; then
1434 enableval="$enable_targets"
1435 case "${enableval}" in
1436 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1437 ;;
1438 no) enable_targets= ;;
1439 *) enable_targets=$enableval ;;
1440 esac
1441 fi
1442 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1443 if test "${enable_commonbfdlib+set}" = set; then
1444 enableval="$enable_commonbfdlib"
1445 case "${enableval}" in
1446 yes) commonbfdlib=true ;;
1447 no) commonbfdlib=false ;;
1448 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1449 esac
1450 fi
1451
1452
1453
1454
1455
1456 if test -z "$target" ; then
1457 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1458 fi
1459 if test "$program_transform_name" = s,x,x,; then
1460 program_transform_name=
1461 else
1462 # Double any \ or $. echo might interpret backslashes.
1463 cat <<\EOF_SED > conftestsed
1464 s,\\,\\\\,g; s,\$,$$,g
1465 EOF_SED
1466 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1467 rm -f conftestsed
1468 fi
1469 test "$program_prefix" != NONE &&
1470 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1471 # Use a double $ so make ignores it.
1472 test "$program_suffix" != NONE &&
1473 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1474
1475 # sed with no file args requires a program.
1476 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1477
1478
1479 ALL_LINGUAS=
1480 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1481 echo "configure:1482: checking how to run the C preprocessor" >&5
1482 # On Suns, sometimes $CPP names a directory.
1483 if test -n "$CPP" && test -d "$CPP"; then
1484 CPP=
1485 fi
1486 if test -z "$CPP"; then
1487 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1489 else
1490 # This must be in double quotes, not single quotes, because CPP may get
1491 # substituted into the Makefile and "${CC-cc}" will confuse make.
1492 CPP="${CC-cc} -E"
1493 # On the NeXT, cc -E runs the code through the compiler's parser,
1494 # not just through cpp.
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 #include <assert.h>
1499 Syntax Error
1500 EOF
1501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1502 { (eval echo configure:1503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1503 ac_err=`grep -v '^ *+' conftest.out`
1504 if test -z "$ac_err"; then
1505 :
1506 else
1507 echo "$ac_err" >&5
1508 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5
1510 rm -rf conftest*
1511 CPP="${CC-cc} -E -traditional-cpp"
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515 #include <assert.h>
1516 Syntax Error
1517 EOF
1518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1519 { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1520 ac_err=`grep -v '^ *+' conftest.out`
1521 if test -z "$ac_err"; then
1522 :
1523 else
1524 echo "$ac_err" >&5
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 CPP=/lib/cpp
1529 fi
1530 rm -f conftest*
1531 fi
1532 rm -f conftest*
1533 ac_cv_prog_CPP="$CPP"
1534 fi
1535 CPP="$ac_cv_prog_CPP"
1536 else
1537 ac_cv_prog_CPP="$CPP"
1538 fi
1539 echo "$ac_t""$CPP" 1>&6
1540
1541 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1542 echo "configure:1543: checking for POSIXized ISC" >&5
1543 if test -d /etc/conf/kconfig.d &&
1544 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1545 then
1546 echo "$ac_t""yes" 1>&6
1547 ISC=yes # If later tests want to check for ISC.
1548 cat >> confdefs.h <<\EOF
1549 #define _POSIX_SOURCE 1
1550 EOF
1551
1552 if test "$GCC" = yes; then
1553 CC="$CC -posix"
1554 else
1555 CC="$CC -Xp"
1556 fi
1557 else
1558 echo "$ac_t""no" 1>&6
1559 ISC=
1560 fi
1561
1562 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1563 echo "configure:1564: checking for ANSI C header files" >&5
1564 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <stdlib.h>
1571 #include <stdarg.h>
1572 #include <string.h>
1573 #include <float.h>
1574 EOF
1575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1576 { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1577 ac_err=`grep -v '^ *+' conftest.out`
1578 if test -z "$ac_err"; then
1579 rm -rf conftest*
1580 ac_cv_header_stdc=yes
1581 else
1582 echo "$ac_err" >&5
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -rf conftest*
1586 ac_cv_header_stdc=no
1587 fi
1588 rm -f conftest*
1589
1590 if test $ac_cv_header_stdc = yes; then
1591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <string.h>
1596 EOF
1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "memchr" >/dev/null 2>&1; then
1599 :
1600 else
1601 rm -rf conftest*
1602 ac_cv_header_stdc=no
1603 fi
1604 rm -f conftest*
1605
1606 fi
1607
1608 if test $ac_cv_header_stdc = yes; then
1609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 #include <stdlib.h>
1614 EOF
1615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1616 egrep "free" >/dev/null 2>&1; then
1617 :
1618 else
1619 rm -rf conftest*
1620 ac_cv_header_stdc=no
1621 fi
1622 rm -f conftest*
1623
1624 fi
1625
1626 if test $ac_cv_header_stdc = yes; then
1627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1628 if test "$cross_compiling" = yes; then
1629 :
1630 else
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <ctype.h>
1635 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1636 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1638 int main () { int i; for (i = 0; i < 256; i++)
1639 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1640 exit (0); }
1641
1642 EOF
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1644 then
1645 :
1646 else
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1649 rm -fr conftest*
1650 ac_cv_header_stdc=no
1651 fi
1652 rm -fr conftest*
1653 fi
1654
1655 fi
1656 fi
1657
1658 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1659 if test $ac_cv_header_stdc = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define STDC_HEADERS 1
1662 EOF
1663
1664 fi
1665
1666 echo $ac_n "checking for working const""... $ac_c" 1>&6
1667 echo "configure:1668: checking for working const" >&5
1668 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1670 else
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674
1675 int main() {
1676
1677 /* Ultrix mips cc rejects this. */
1678 typedef int charset[2]; const charset x;
1679 /* SunOS 4.1.1 cc rejects this. */
1680 char const *const *ccp;
1681 char **p;
1682 /* NEC SVR4.0.2 mips cc rejects this. */
1683 struct point {int x, y;};
1684 static struct point const zero = {0,0};
1685 /* AIX XL C 1.02.0.0 rejects this.
1686 It does not let you subtract one const X* pointer from another in an arm
1687 of an if-expression whose if-part is not a constant expression */
1688 const char *g = "string";
1689 ccp = &g + (g ? g-g : 0);
1690 /* HPUX 7.0 cc rejects these. */
1691 ++ccp;
1692 p = (char**) ccp;
1693 ccp = (char const *const *) p;
1694 { /* SCO 3.2v4 cc rejects this. */
1695 char *t;
1696 char const *s = 0 ? (char *) 0 : (char const *) 0;
1697
1698 *t++ = 0;
1699 }
1700 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1701 int x[] = {25, 17};
1702 const int *foo = &x[0];
1703 ++foo;
1704 }
1705 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1706 typedef const int *iptr;
1707 iptr p = 0;
1708 ++p;
1709 }
1710 { /* AIX XL C 1.02.0.0 rejects this saying
1711 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1712 struct s { int j; const int *ap[3]; };
1713 struct s *b; b->j = 5;
1714 }
1715 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1716 const int foo = 10;
1717 }
1718
1719 ; return 0; }
1720 EOF
1721 if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1722 rm -rf conftest*
1723 ac_cv_c_const=yes
1724 else
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 rm -rf conftest*
1728 ac_cv_c_const=no
1729 fi
1730 rm -f conftest*
1731 fi
1732
1733 echo "$ac_t""$ac_cv_c_const" 1>&6
1734 if test $ac_cv_c_const = no; then
1735 cat >> confdefs.h <<\EOF
1736 #define const
1737 EOF
1738
1739 fi
1740
1741 echo $ac_n "checking for inline""... $ac_c" 1>&6
1742 echo "configure:1743: checking for inline" >&5
1743 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746 ac_cv_c_inline=no
1747 for ac_kw in inline __inline__ __inline; do
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751
1752 int main() {
1753 } $ac_kw foo() {
1754 ; return 0; }
1755 EOF
1756 if { (eval echo configure:1757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 rm -rf conftest*
1758 ac_cv_c_inline=$ac_kw; break
1759 else
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1762 fi
1763 rm -f conftest*
1764 done
1765
1766 fi
1767
1768 echo "$ac_t""$ac_cv_c_inline" 1>&6
1769 case "$ac_cv_c_inline" in
1770 inline | yes) ;;
1771 no) cat >> confdefs.h <<\EOF
1772 #define inline
1773 EOF
1774 ;;
1775 *) cat >> confdefs.h <<EOF
1776 #define inline $ac_cv_c_inline
1777 EOF
1778 ;;
1779 esac
1780
1781 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1782 echo "configure:1783: checking for off_t" >&5
1783 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #include <sys/types.h>
1790 #if STDC_HEADERS
1791 #include <stdlib.h>
1792 #include <stddef.h>
1793 #endif
1794 EOF
1795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1796 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1797 rm -rf conftest*
1798 ac_cv_type_off_t=yes
1799 else
1800 rm -rf conftest*
1801 ac_cv_type_off_t=no
1802 fi
1803 rm -f conftest*
1804
1805 fi
1806 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1807 if test $ac_cv_type_off_t = no; then
1808 cat >> confdefs.h <<\EOF
1809 #define off_t long
1810 EOF
1811
1812 fi
1813
1814 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1815 echo "configure:1816: checking for size_t" >&5
1816 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #include <sys/types.h>
1823 #if STDC_HEADERS
1824 #include <stdlib.h>
1825 #include <stddef.h>
1826 #endif
1827 EOF
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1830 rm -rf conftest*
1831 ac_cv_type_size_t=yes
1832 else
1833 rm -rf conftest*
1834 ac_cv_type_size_t=no
1835 fi
1836 rm -f conftest*
1837
1838 fi
1839 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1840 if test $ac_cv_type_size_t = no; then
1841 cat >> confdefs.h <<\EOF
1842 #define size_t unsigned
1843 EOF
1844
1845 fi
1846
1847 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1848 # for constant arguments. Useless!
1849 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1850 echo "configure:1851: checking for working alloca.h" >&5
1851 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 #include <alloca.h>
1858 int main() {
1859 char *p = alloca(2 * sizeof(int));
1860 ; return 0; }
1861 EOF
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1863 rm -rf conftest*
1864 ac_cv_header_alloca_h=yes
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 ac_cv_header_alloca_h=no
1870 fi
1871 rm -f conftest*
1872 fi
1873
1874 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1875 if test $ac_cv_header_alloca_h = yes; then
1876 cat >> confdefs.h <<\EOF
1877 #define HAVE_ALLOCA_H 1
1878 EOF
1879
1880 fi
1881
1882 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1883 echo "configure:1884: checking for alloca" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890
1891 #ifdef __GNUC__
1892 # define alloca __builtin_alloca
1893 #else
1894 # if HAVE_ALLOCA_H
1895 # include <alloca.h>
1896 # else
1897 # ifdef _AIX
1898 #pragma alloca
1899 # else
1900 # ifndef alloca /* predefined by HP cc +Olibcalls */
1901 char *alloca ();
1902 # endif
1903 # endif
1904 # endif
1905 #endif
1906
1907 int main() {
1908 char *p = (char *) alloca(1);
1909 ; return 0; }
1910 EOF
1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1912 rm -rf conftest*
1913 ac_cv_func_alloca_works=yes
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 ac_cv_func_alloca_works=no
1919 fi
1920 rm -f conftest*
1921 fi
1922
1923 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1924 if test $ac_cv_func_alloca_works = yes; then
1925 cat >> confdefs.h <<\EOF
1926 #define HAVE_ALLOCA 1
1927 EOF
1928
1929 fi
1930
1931 if test $ac_cv_func_alloca_works = no; then
1932 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1933 # that cause trouble. Some versions do not even contain alloca or
1934 # contain a buggy version. If you still want to use their alloca,
1935 # use ar to extract alloca.o from them instead of compiling alloca.c.
1936 ALLOCA=alloca.o
1937 cat >> confdefs.h <<\EOF
1938 #define C_ALLOCA 1
1939 EOF
1940
1941
1942 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1943 echo "configure:1944: checking whether alloca needs Cray hooks" >&5
1944 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 #if defined(CRAY) && ! defined(CRAY2)
1951 webecray
1952 #else
1953 wenotbecray
1954 #endif
1955
1956 EOF
1957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1958 egrep "webecray" >/dev/null 2>&1; then
1959 rm -rf conftest*
1960 ac_cv_os_cray=yes
1961 else
1962 rm -rf conftest*
1963 ac_cv_os_cray=no
1964 fi
1965 rm -f conftest*
1966
1967 fi
1968
1969 echo "$ac_t""$ac_cv_os_cray" 1>&6
1970 if test $ac_cv_os_cray = yes; then
1971 for ac_func in _getb67 GETB67 getb67; do
1972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_func" >&5
1974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976 else
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $ac_func(); below. */
1982 #include <assert.h>
1983 /* Override any gcc2 internal prototype to avoid an error. */
1984 /* We use char because int might match the return type of a gcc2
1985 builtin and then its argument prototype would still apply. */
1986 char $ac_func();
1987
1988 int main() {
1989
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1994 choke me
1995 #else
1996 $ac_func();
1997 #endif
1998
1999 ; return 0; }
2000 EOF
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2002 rm -rf conftest*
2003 eval "ac_cv_func_$ac_func=yes"
2004 else
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 rm -rf conftest*
2008 eval "ac_cv_func_$ac_func=no"
2009 fi
2010 rm -f conftest*
2011 fi
2012
2013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 cat >> confdefs.h <<EOF
2016 #define CRAY_STACKSEG_END $ac_func
2017 EOF
2018
2019 break
2020 else
2021 echo "$ac_t""no" 1>&6
2022 fi
2023
2024 done
2025 fi
2026
2027 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2028 echo "configure:2029: checking stack direction for C alloca" >&5
2029 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 if test "$cross_compiling" = yes; then
2033 ac_cv_c_stack_direction=0
2034 else
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 find_stack_direction ()
2039 {
2040 static char *addr = 0;
2041 auto char dummy;
2042 if (addr == 0)
2043 {
2044 addr = &dummy;
2045 return find_stack_direction ();
2046 }
2047 else
2048 return (&dummy > addr) ? 1 : -1;
2049 }
2050 main ()
2051 {
2052 exit (find_stack_direction() < 0);
2053 }
2054 EOF
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2056 then
2057 ac_cv_c_stack_direction=1
2058 else
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -fr conftest*
2062 ac_cv_c_stack_direction=-1
2063 fi
2064 rm -fr conftest*
2065 fi
2066
2067 fi
2068
2069 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2070 cat >> confdefs.h <<EOF
2071 #define STACK_DIRECTION $ac_cv_c_stack_direction
2072 EOF
2073
2074 fi
2075
2076 for ac_hdr in unistd.h
2077 do
2078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_hdr" >&5
2081 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 #include <$ac_hdr>
2088 EOF
2089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2090 { (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2091 ac_err=`grep -v '^ *+' conftest.out`
2092 if test -z "$ac_err"; then
2093 rm -rf conftest*
2094 eval "ac_cv_header_$ac_safe=yes"
2095 else
2096 echo "$ac_err" >&5
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 eval "ac_cv_header_$ac_safe=no"
2101 fi
2102 rm -f conftest*
2103 fi
2104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2107 cat >> confdefs.h <<EOF
2108 #define $ac_tr_hdr 1
2109 EOF
2110
2111 else
2112 echo "$ac_t""no" 1>&6
2113 fi
2114 done
2115
2116 for ac_func in getpagesize
2117 do
2118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_func" >&5
2120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123 cat > conftest.$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $ac_func(); below. */
2128 #include <assert.h>
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2132 char $ac_func();
2133
2134 int main() {
2135
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2140 choke me
2141 #else
2142 $ac_func();
2143 #endif
2144
2145 ; return 0; }
2146 EOF
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2148 rm -rf conftest*
2149 eval "ac_cv_func_$ac_func=yes"
2150 else
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 rm -rf conftest*
2154 eval "ac_cv_func_$ac_func=no"
2155 fi
2156 rm -f conftest*
2157 fi
2158
2159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_func 1
2164 EOF
2165
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169 done
2170
2171 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2172 echo "configure:2173: checking for working mmap" >&5
2173 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 if test "$cross_compiling" = yes; then
2177 ac_cv_func_mmap_fixed_mapped=no
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182
2183 /* Thanks to Mike Haertel and Jim Avera for this test.
2184 Here is a matrix of mmap possibilities:
2185 mmap private not fixed
2186 mmap private fixed at somewhere currently unmapped
2187 mmap private fixed at somewhere already mapped
2188 mmap shared not fixed
2189 mmap shared fixed at somewhere currently unmapped
2190 mmap shared fixed at somewhere already mapped
2191 For private mappings, we should verify that changes cannot be read()
2192 back from the file, nor mmap's back from the file at a different
2193 address. (There have been systems where private was not correctly
2194 implemented like the infamous i386 svr4.0, and systems where the
2195 VM page cache was not coherent with the filesystem buffer cache
2196 like early versions of FreeBSD and possibly contemporary NetBSD.)
2197 For shared mappings, we should conversely verify that changes get
2198 propogated back to all the places they're supposed to be.
2199
2200 Grep wants private fixed already mapped.
2201 The main things grep needs to know about mmap are:
2202 * does it exist and is it safe to write into the mmap'd area
2203 * how to use it (BSD variants) */
2204 #include <sys/types.h>
2205 #include <fcntl.h>
2206 #include <sys/mman.h>
2207
2208 /* This mess was copied from the GNU getpagesize.h. */
2209 #ifndef HAVE_GETPAGESIZE
2210 # ifdef HAVE_UNISTD_H
2211 # include <unistd.h>
2212 # endif
2213
2214 /* Assume that all systems that can run configure have sys/param.h. */
2215 # ifndef HAVE_SYS_PARAM_H
2216 # define HAVE_SYS_PARAM_H 1
2217 # endif
2218
2219 # ifdef _SC_PAGESIZE
2220 # define getpagesize() sysconf(_SC_PAGESIZE)
2221 # else /* no _SC_PAGESIZE */
2222 # ifdef HAVE_SYS_PARAM_H
2223 # include <sys/param.h>
2224 # ifdef EXEC_PAGESIZE
2225 # define getpagesize() EXEC_PAGESIZE
2226 # else /* no EXEC_PAGESIZE */
2227 # ifdef NBPG
2228 # define getpagesize() NBPG * CLSIZE
2229 # ifndef CLSIZE
2230 # define CLSIZE 1
2231 # endif /* no CLSIZE */
2232 # else /* no NBPG */
2233 # ifdef NBPC
2234 # define getpagesize() NBPC
2235 # else /* no NBPC */
2236 # ifdef PAGESIZE
2237 # define getpagesize() PAGESIZE
2238 # endif /* PAGESIZE */
2239 # endif /* no NBPC */
2240 # endif /* no NBPG */
2241 # endif /* no EXEC_PAGESIZE */
2242 # else /* no HAVE_SYS_PARAM_H */
2243 # define getpagesize() 8192 /* punt totally */
2244 # endif /* no HAVE_SYS_PARAM_H */
2245 # endif /* no _SC_PAGESIZE */
2246
2247 #endif /* no HAVE_GETPAGESIZE */
2248
2249 #ifdef __cplusplus
2250 extern "C" { void *malloc(unsigned); }
2251 #else
2252 char *malloc();
2253 #endif
2254
2255 int
2256 main()
2257 {
2258 char *data, *data2, *data3;
2259 int i, pagesize;
2260 int fd;
2261
2262 pagesize = getpagesize();
2263
2264 /*
2265 * First, make a file with some known garbage in it.
2266 */
2267 data = malloc(pagesize);
2268 if (!data)
2269 exit(1);
2270 for (i = 0; i < pagesize; ++i)
2271 *(data + i) = rand();
2272 umask(0);
2273 fd = creat("conftestmmap", 0600);
2274 if (fd < 0)
2275 exit(1);
2276 if (write(fd, data, pagesize) != pagesize)
2277 exit(1);
2278 close(fd);
2279
2280 /*
2281 * Next, try to mmap the file at a fixed address which
2282 * already has something else allocated at it. If we can,
2283 * also make sure that we see the same garbage.
2284 */
2285 fd = open("conftestmmap", O_RDWR);
2286 if (fd < 0)
2287 exit(1);
2288 data2 = malloc(2 * pagesize);
2289 if (!data2)
2290 exit(1);
2291 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2292 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2293 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2294 exit(1);
2295 for (i = 0; i < pagesize; ++i)
2296 if (*(data + i) != *(data2 + i))
2297 exit(1);
2298
2299 /*
2300 * Finally, make sure that changes to the mapped area
2301 * do not percolate back to the file as seen by read().
2302 * (This is a bug on some variants of i386 svr4.0.)
2303 */
2304 for (i = 0; i < pagesize; ++i)
2305 *(data2 + i) = *(data2 + i) + 1;
2306 data3 = malloc(pagesize);
2307 if (!data3)
2308 exit(1);
2309 if (read(fd, data3, pagesize) != pagesize)
2310 exit(1);
2311 for (i = 0; i < pagesize; ++i)
2312 if (*(data + i) != *(data3 + i))
2313 exit(1);
2314 close(fd);
2315 unlink("conftestmmap");
2316 exit(0);
2317 }
2318
2319 EOF
2320 if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2321 then
2322 ac_cv_func_mmap_fixed_mapped=yes
2323 else
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 rm -fr conftest*
2327 ac_cv_func_mmap_fixed_mapped=no
2328 fi
2329 rm -fr conftest*
2330 fi
2331
2332 fi
2333
2334 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2335 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2336 cat >> confdefs.h <<\EOF
2337 #define HAVE_MMAP 1
2338 EOF
2339
2340 fi
2341
2342
2343 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2344 unistd.h values.h sys/param.h
2345 do
2346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_hdr" >&5
2349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 #include <$ac_hdr>
2356 EOF
2357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err=`grep -v '^ *+' conftest.out`
2360 if test -z "$ac_err"; then
2361 rm -rf conftest*
2362 eval "ac_cv_header_$ac_safe=yes"
2363 else
2364 echo "$ac_err" >&5
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 eval "ac_cv_header_$ac_safe=no"
2369 fi
2370 rm -f conftest*
2371 fi
2372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2375 cat >> confdefs.h <<EOF
2376 #define $ac_tr_hdr 1
2377 EOF
2378
2379 else
2380 echo "$ac_t""no" 1>&6
2381 fi
2382 done
2383
2384 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2385 __argz_count __argz_stringify __argz_next
2386 do
2387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_func" >&5
2389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 /* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char $ac_func(); below. */
2397 #include <assert.h>
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char $ac_func();
2402
2403 int main() {
2404
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2409 choke me
2410 #else
2411 $ac_func();
2412 #endif
2413
2414 ; return 0; }
2415 EOF
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2417 rm -rf conftest*
2418 eval "ac_cv_func_$ac_func=yes"
2419 else
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 rm -rf conftest*
2423 eval "ac_cv_func_$ac_func=no"
2424 fi
2425 rm -f conftest*
2426 fi
2427
2428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2431 cat >> confdefs.h <<EOF
2432 #define $ac_tr_func 1
2433 EOF
2434
2435 else
2436 echo "$ac_t""no" 1>&6
2437 fi
2438 done
2439
2440
2441 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2442 for ac_func in stpcpy
2443 do
2444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2445 echo "configure:2446: checking for $ac_func" >&5
2446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 /* System header to define __stub macros and hopefully few prototypes,
2453 which can conflict with char $ac_func(); below. */
2454 #include <assert.h>
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 /* We use char because int might match the return type of a gcc2
2457 builtin and then its argument prototype would still apply. */
2458 char $ac_func();
2459
2460 int main() {
2461
2462 /* The GNU C library defines this for functions which it implements
2463 to always fail with ENOSYS. Some functions are actually named
2464 something starting with __ and the normal name is an alias. */
2465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2466 choke me
2467 #else
2468 $ac_func();
2469 #endif
2470
2471 ; return 0; }
2472 EOF
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2474 rm -rf conftest*
2475 eval "ac_cv_func_$ac_func=yes"
2476 else
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 rm -rf conftest*
2480 eval "ac_cv_func_$ac_func=no"
2481 fi
2482 rm -f conftest*
2483 fi
2484
2485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_func 1
2490 EOF
2491
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495 done
2496
2497 fi
2498 if test "${ac_cv_func_stpcpy}" = "yes"; then
2499 cat >> confdefs.h <<\EOF
2500 #define HAVE_STPCPY 1
2501 EOF
2502
2503 fi
2504
2505 if test $ac_cv_header_locale_h = yes; then
2506 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2507 echo "configure:2508: checking for LC_MESSAGES" >&5
2508 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2510 else
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #include <locale.h>
2515 int main() {
2516 return LC_MESSAGES
2517 ; return 0; }
2518 EOF
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2520 rm -rf conftest*
2521 am_cv_val_LC_MESSAGES=yes
2522 else
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 am_cv_val_LC_MESSAGES=no
2527 fi
2528 rm -f conftest*
2529 fi
2530
2531 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2532 if test $am_cv_val_LC_MESSAGES = yes; then
2533 cat >> confdefs.h <<\EOF
2534 #define HAVE_LC_MESSAGES 1
2535 EOF
2536
2537 fi
2538 fi
2539 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether NLS is requested" >&5
2541 # Check whether --enable-nls or --disable-nls was given.
2542 if test "${enable_nls+set}" = set; then
2543 enableval="$enable_nls"
2544 USE_NLS=$enableval
2545 else
2546 USE_NLS=yes
2547 fi
2548
2549 echo "$ac_t""$USE_NLS" 1>&6
2550
2551
2552 USE_INCLUDED_LIBINTL=no
2553
2554 if test "$USE_NLS" = "yes"; then
2555 cat >> confdefs.h <<\EOF
2556 #define ENABLE_NLS 1
2557 EOF
2558
2559 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2560 echo "configure:2561: checking whether included gettext is requested" >&5
2561 # Check whether --with-included-gettext or --without-included-gettext was given.
2562 if test "${with_included_gettext+set}" = set; then
2563 withval="$with_included_gettext"
2564 nls_cv_force_use_gnu_gettext=$withval
2565 else
2566 nls_cv_force_use_gnu_gettext=no
2567 fi
2568
2569 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2570
2571 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2572 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2573 nls_cv_header_intl=
2574 nls_cv_header_libgt=
2575 CATOBJEXT=NONE
2576
2577 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2579 echo "configure:2580: checking for libintl.h" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <libintl.h>
2587 EOF
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out`
2591 if test -z "$ac_err"; then
2592 rm -rf conftest*
2593 eval "ac_cv_header_$ac_safe=yes"
2594 else
2595 echo "$ac_err" >&5
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=no"
2600 fi
2601 rm -f conftest*
2602 fi
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2606 echo "configure:2607: checking for gettext in libc" >&5
2607 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <libintl.h>
2614 int main() {
2615 return (int) gettext ("")
2616 ; return 0; }
2617 EOF
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2619 rm -rf conftest*
2620 gt_cv_func_gettext_libc=yes
2621 else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -rf conftest*
2625 gt_cv_func_gettext_libc=no
2626 fi
2627 rm -f conftest*
2628 fi
2629
2630 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2631
2632 if test "$gt_cv_func_gettext_libc" != "yes"; then
2633 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2634 echo "configure:2635: checking for bindtextdomain in -lintl" >&5
2635 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2638 else
2639 ac_save_LIBS="$LIBS"
2640 LIBS="-lintl $LIBS"
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2647 char bindtextdomain();
2648
2649 int main() {
2650 bindtextdomain()
2651 ; return 0; }
2652 EOF
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=yes"
2656 else
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -rf conftest*
2660 eval "ac_cv_lib_$ac_lib_var=no"
2661 fi
2662 rm -f conftest*
2663 LIBS="$ac_save_LIBS"
2664
2665 fi
2666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2667 echo "$ac_t""yes" 1>&6
2668 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2669 echo "configure:2670: checking for gettext in libintl" >&5
2670 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676
2677 int main() {
2678 return (int) gettext ("")
2679 ; return 0; }
2680 EOF
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2682 rm -rf conftest*
2683 gt_cv_func_gettext_libintl=yes
2684 else
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 rm -rf conftest*
2688 gt_cv_func_gettext_libintl=no
2689 fi
2690 rm -f conftest*
2691 fi
2692
2693 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2694 else
2695 echo "$ac_t""no" 1>&6
2696 fi
2697
2698 fi
2699
2700 if test "$gt_cv_func_gettext_libc" = "yes" \
2701 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2702 cat >> confdefs.h <<\EOF
2703 #define HAVE_GETTEXT 1
2704 EOF
2705
2706 # Extract the first word of "msgfmt", so it can be a program name with args.
2707 set dummy msgfmt; ac_word=$2
2708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_word" >&5
2710 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712 else
2713 case "$MSGFMT" in
2714 /*)
2715 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2716 ;;
2717 *)
2718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2719 for ac_dir in $PATH; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2722 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2723 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2724 break
2725 fi
2726 fi
2727 done
2728 IFS="$ac_save_ifs"
2729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2730 ;;
2731 esac
2732 fi
2733 MSGFMT="$ac_cv_path_MSGFMT"
2734 if test -n "$MSGFMT"; then
2735 echo "$ac_t""$MSGFMT" 1>&6
2736 else
2737 echo "$ac_t""no" 1>&6
2738 fi
2739 if test "$MSGFMT" != "no"; then
2740 for ac_func in dcgettext
2741 do
2742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_func" >&5
2744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* System header to define __stub macros and hopefully few prototypes,
2751 which can conflict with char $ac_func(); below. */
2752 #include <assert.h>
2753 /* Override any gcc2 internal prototype to avoid an error. */
2754 /* We use char because int might match the return type of a gcc2
2755 builtin and then its argument prototype would still apply. */
2756 char $ac_func();
2757
2758 int main() {
2759
2760 /* The GNU C library defines this for functions which it implements
2761 to always fail with ENOSYS. Some functions are actually named
2762 something starting with __ and the normal name is an alias. */
2763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2764 choke me
2765 #else
2766 $ac_func();
2767 #endif
2768
2769 ; return 0; }
2770 EOF
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2772 rm -rf conftest*
2773 eval "ac_cv_func_$ac_func=yes"
2774 else
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 eval "ac_cv_func_$ac_func=no"
2779 fi
2780 rm -f conftest*
2781 fi
2782
2783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2786 cat >> confdefs.h <<EOF
2787 #define $ac_tr_func 1
2788 EOF
2789
2790 else
2791 echo "$ac_t""no" 1>&6
2792 fi
2793 done
2794
2795 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2796 set dummy gmsgfmt; ac_word=$2
2797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_word" >&5
2799 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802 case "$GMSGFMT" in
2803 /*)
2804 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2805 ;;
2806 ?:/*)
2807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2808 ;;
2809 *)
2810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2811 for ac_dir in $PATH; do
2812 test -z "$ac_dir" && ac_dir=.
2813 if test -f $ac_dir/$ac_word; then
2814 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2815 break
2816 fi
2817 done
2818 IFS="$ac_save_ifs"
2819 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2820 ;;
2821 esac
2822 fi
2823 GMSGFMT="$ac_cv_path_GMSGFMT"
2824 if test -n "$GMSGFMT"; then
2825 echo "$ac_t""$GMSGFMT" 1>&6
2826 else
2827 echo "$ac_t""no" 1>&6
2828 fi
2829
2830 # Extract the first word of "xgettext", so it can be a program name with args.
2831 set dummy xgettext; ac_word=$2
2832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2833 echo "configure:2834: checking for $ac_word" >&5
2834 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2836 else
2837 case "$XGETTEXT" in
2838 /*)
2839 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2840 ;;
2841 *)
2842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2843 for ac_dir in $PATH; do
2844 test -z "$ac_dir" && ac_dir=.
2845 if test -f $ac_dir/$ac_word; then
2846 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2847 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2848 break
2849 fi
2850 fi
2851 done
2852 IFS="$ac_save_ifs"
2853 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2854 ;;
2855 esac
2856 fi
2857 XGETTEXT="$ac_cv_path_XGETTEXT"
2858 if test -n "$XGETTEXT"; then
2859 echo "$ac_t""$XGETTEXT" 1>&6
2860 else
2861 echo "$ac_t""no" 1>&6
2862 fi
2863
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867
2868 int main() {
2869 extern int _nl_msg_cat_cntr;
2870 return _nl_msg_cat_cntr
2871 ; return 0; }
2872 EOF
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2874 rm -rf conftest*
2875 CATOBJEXT=.gmo
2876 DATADIRNAME=share
2877 else
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 rm -rf conftest*
2881 CATOBJEXT=.mo
2882 DATADIRNAME=lib
2883 fi
2884 rm -f conftest*
2885 INSTOBJEXT=.mo
2886 fi
2887 fi
2888
2889 else
2890 echo "$ac_t""no" 1>&6
2891 fi
2892
2893
2894
2895 if test "$CATOBJEXT" = "NONE"; then
2896 nls_cv_use_gnu_gettext=yes
2897 fi
2898 fi
2899
2900 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2901 INTLOBJS="\$(GETTOBJS)"
2902 # Extract the first word of "msgfmt", so it can be a program name with args.
2903 set dummy msgfmt; ac_word=$2
2904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_word" >&5
2906 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908 else
2909 case "$MSGFMT" in
2910 /*)
2911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2912 ;;
2913 *)
2914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2915 for ac_dir in $PATH; do
2916 test -z "$ac_dir" && ac_dir=.
2917 if test -f $ac_dir/$ac_word; then
2918 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2919 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2920 break
2921 fi
2922 fi
2923 done
2924 IFS="$ac_save_ifs"
2925 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2926 ;;
2927 esac
2928 fi
2929 MSGFMT="$ac_cv_path_MSGFMT"
2930 if test -n "$MSGFMT"; then
2931 echo "$ac_t""$MSGFMT" 1>&6
2932 else
2933 echo "$ac_t""no" 1>&6
2934 fi
2935
2936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2937 set dummy gmsgfmt; ac_word=$2
2938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_word" >&5
2940 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943 case "$GMSGFMT" in
2944 /*)
2945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2946 ;;
2947 ?:/*)
2948 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2949 ;;
2950 *)
2951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2952 for ac_dir in $PATH; do
2953 test -z "$ac_dir" && ac_dir=.
2954 if test -f $ac_dir/$ac_word; then
2955 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2956 break
2957 fi
2958 done
2959 IFS="$ac_save_ifs"
2960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2961 ;;
2962 esac
2963 fi
2964 GMSGFMT="$ac_cv_path_GMSGFMT"
2965 if test -n "$GMSGFMT"; then
2966 echo "$ac_t""$GMSGFMT" 1>&6
2967 else
2968 echo "$ac_t""no" 1>&6
2969 fi
2970
2971 # Extract the first word of "xgettext", so it can be a program name with args.
2972 set dummy xgettext; ac_word=$2
2973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2974 echo "configure:2975: checking for $ac_word" >&5
2975 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2977 else
2978 case "$XGETTEXT" in
2979 /*)
2980 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2981 ;;
2982 *)
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2984 for ac_dir in $PATH; do
2985 test -z "$ac_dir" && ac_dir=.
2986 if test -f $ac_dir/$ac_word; then
2987 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2988 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2989 break
2990 fi
2991 fi
2992 done
2993 IFS="$ac_save_ifs"
2994 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2995 ;;
2996 esac
2997 fi
2998 XGETTEXT="$ac_cv_path_XGETTEXT"
2999 if test -n "$XGETTEXT"; then
3000 echo "$ac_t""$XGETTEXT" 1>&6
3001 else
3002 echo "$ac_t""no" 1>&6
3003 fi
3004
3005
3006 USE_INCLUDED_LIBINTL=yes
3007 CATOBJEXT=.gmo
3008 INSTOBJEXT=.mo
3009 DATADIRNAME=share
3010 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3011 INTLLIBS=$INTLDEPS
3012 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3013 nls_cv_header_intl=libintl.h
3014 nls_cv_header_libgt=libgettext.h
3015 fi
3016
3017 if test "$XGETTEXT" != ":"; then
3018 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3019 : ;
3020 else
3021 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3022 XGETTEXT=":"
3023 fi
3024 fi
3025
3026 # We need to process the po/ directory.
3027 POSUB=po
3028 else
3029 DATADIRNAME=share
3030 nls_cv_header_intl=libintl.h
3031 nls_cv_header_libgt=libgettext.h
3032 fi
3033
3034 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3035 # because some of the sources are only built for this goal.
3036 if test "$PACKAGE" = gettext; then
3037 USE_NLS=yes
3038 USE_INCLUDED_LIBINTL=yes
3039 fi
3040
3041 for lang in $ALL_LINGUAS; do
3042 GMOFILES="$GMOFILES $lang.gmo"
3043 POFILES="$POFILES $lang.po"
3044 done
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059 if test "x$CATOBJEXT" != "x"; then
3060 if test "x$ALL_LINGUAS" = "x"; then
3061 LINGUAS=
3062 else
3063 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3064 echo "configure:3065: checking for catalogs to be installed" >&5
3065 NEW_LINGUAS=
3066 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3067 case "$ALL_LINGUAS" in
3068 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3069 esac
3070 done
3071 LINGUAS=$NEW_LINGUAS
3072 echo "$ac_t""$LINGUAS" 1>&6
3073 fi
3074
3075 if test -n "$LINGUAS"; then
3076 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3077 fi
3078 fi
3079
3080 if test $ac_cv_header_locale_h = yes; then
3081 INCLUDE_LOCALE_H="#include <locale.h>"
3082 else
3083 INCLUDE_LOCALE_H="\
3084 /* The system does not provide the header <locale.h>. Take care yourself. */"
3085 fi
3086
3087
3088 if test -f $srcdir/po2tbl.sed.in; then
3089 if test "$CATOBJEXT" = ".cat"; then
3090 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3091 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3092 echo "configure:3093: checking for linux/version.h" >&5
3093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3095 else
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3099 #include <linux/version.h>
3100 EOF
3101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3102 { (eval echo configure:3103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3103 ac_err=`grep -v '^ *+' conftest.out`
3104 if test -z "$ac_err"; then
3105 rm -rf conftest*
3106 eval "ac_cv_header_$ac_safe=yes"
3107 else
3108 echo "$ac_err" >&5
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 rm -rf conftest*
3112 eval "ac_cv_header_$ac_safe=no"
3113 fi
3114 rm -f conftest*
3115 fi
3116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3117 echo "$ac_t""yes" 1>&6
3118 msgformat=linux
3119 else
3120 echo "$ac_t""no" 1>&6
3121 msgformat=xopen
3122 fi
3123
3124
3125 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3126 fi
3127 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3128 $srcdir/po2tbl.sed.in > po2tbl.sed
3129 fi
3130
3131 if test "$PACKAGE" = "gettext"; then
3132 GT_NO="#NO#"
3133 GT_YES=
3134 else
3135 GT_NO=
3136 GT_YES="#YES#"
3137 fi
3138
3139
3140
3141 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3142
3143
3144 l=
3145
3146
3147 if test -d $srcdir/po; then
3148 test -d po || mkdir po
3149 if test "x$srcdir" != "x."; then
3150 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3151 posrcprefix="$srcdir/"
3152 else
3153 posrcprefix="../$srcdir/"
3154 fi
3155 else
3156 posrcprefix="../"
3157 fi
3158 rm -f po/POTFILES
3159 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3160 < $srcdir/po/POTFILES.in > po/POTFILES
3161 fi
3162
3163
3164 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3165 echo "configure:3166: checking whether to enable maintainer-specific portions of Makefiles" >&5
3166 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3167 if test "${enable_maintainer_mode+set}" = set; then
3168 enableval="$enable_maintainer_mode"
3169 USE_MAINTAINER_MODE=$enableval
3170 else
3171 USE_MAINTAINER_MODE=no
3172 fi
3173
3174 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3175 if test $USE_MAINTAINER_MODE = yes; then
3176 MAINT=
3177 else
3178 MAINT='#M#'
3179 fi
3180
3181
3182 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3183 echo "configure:3184: checking for Cygwin32 environment" >&5
3184 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186 else
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190
3191 int main() {
3192 return __CYGWIN32__;
3193 ; return 0; }
3194 EOF
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 rm -rf conftest*
3197 am_cv_cygwin32=yes
3198 else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201 rm -rf conftest*
3202 am_cv_cygwin32=no
3203 fi
3204 rm -f conftest*
3205 rm -f conftest*
3206 fi
3207
3208 echo "$ac_t""$am_cv_cygwin32" 1>&6
3209 CYGWIN32=
3210 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3211 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3212 echo "configure:3213: checking for Mingw32 environment" >&5
3213 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219
3220 int main() {
3221 return __MINGW32__;
3222 ; return 0; }
3223 EOF
3224 if { (eval echo configure:3225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3225 rm -rf conftest*
3226 am_cv_mingw32=yes
3227 else
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3230 rm -rf conftest*
3231 am_cv_mingw32=no
3232 fi
3233 rm -f conftest*
3234 rm -f conftest*
3235 fi
3236
3237 echo "$ac_t""$am_cv_mingw32" 1>&6
3238 MINGW32=
3239 test "$am_cv_mingw32" = yes && MINGW32=yes
3240
3241
3242 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3243 echo "configure:3244: checking for executable suffix" >&5
3244 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3248 am_cv_exeext=.exe
3249 else
3250 cat > am_c_test.c << 'EOF'
3251 int main() {
3252 /* Nothing needed here */
3253 }
3254 EOF
3255 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3256 am_cv_exeext=
3257 for file in am_c_test.*; do
3258 case $file in
3259 *.c) ;;
3260 *.o) ;;
3261 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
3262 esac
3263 done
3264 rm -f am_c_test*
3265 fi
3266
3267 test x"${am_cv_exeext}" = x && am_cv_exeext=no
3268 fi
3269 EXEEXT=""
3270 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3271 echo "$ac_t""${am_cv_exeext}" 1>&6
3272
3273
3274 # host-specific stuff:
3275
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc; ac_word=$2
3278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3279 echo "configure:3280: checking for $ac_word" >&5
3280 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3287 for ac_dir in $PATH; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/$ac_word; then
3290 ac_cv_prog_CC="gcc"
3291 break
3292 fi
3293 done
3294 IFS="$ac_save_ifs"
3295 fi
3296 fi
3297 CC="$ac_cv_prog_CC"
3298 if test -n "$CC"; then
3299 echo "$ac_t""$CC" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3302 fi
3303
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3308 echo "configure:3309: checking for $ac_word" >&5
3309 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3316 ac_prog_rejected=no
3317 for ac_dir in $PATH; do
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f $ac_dir/$ac_word; then
3320 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3323 fi
3324 ac_cv_prog_CC="cc"
3325 break
3326 fi
3327 done
3328 IFS="$ac_save_ifs"
3329 if test $ac_prog_rejected = yes; then
3330 # We found a bogon in the path, so make sure we never use it.
3331 set dummy $ac_cv_prog_CC
3332 shift
3333 if test $# -gt 0; then
3334 # We chose a different compiler from the bogus one.
3335 # However, it has the same basename, so the bogon will be chosen
3336 # first if we set CC to just the basename; use the full file name.
3337 shift
3338 set dummy "$ac_dir/$ac_word" "$@"
3339 shift
3340 ac_cv_prog_CC="$@"
3341 fi
3342 fi
3343 fi
3344 fi
3345 CC="$ac_cv_prog_CC"
3346 if test -n "$CC"; then
3347 echo "$ac_t""$CC" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3353 fi
3354
3355 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3356 echo "configure:3357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3357
3358 ac_ext=c
3359 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3362 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3363 cross_compiling=$ac_cv_prog_cc_cross
3364
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 main(){return(0);}
3369 EOF
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3371 ac_cv_prog_cc_works=yes
3372 # If we can't run a trivial program, we are probably using a cross compiler.
3373 if (./conftest; exit) 2>/dev/null; then
3374 ac_cv_prog_cc_cross=no
3375 else
3376 ac_cv_prog_cc_cross=yes
3377 fi
3378 else
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 ac_cv_prog_cc_works=no
3382 fi
3383 rm -fr conftest*
3384
3385 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3386 if test $ac_cv_prog_cc_works = no; then
3387 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3388 fi
3389 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3390 echo "configure:3391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3391 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3392 cross_compiling=$ac_cv_prog_cc_cross
3393
3394 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3395 echo "configure:3396: checking whether we are using GNU C" >&5
3396 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398 else
3399 cat > conftest.c <<EOF
3400 #ifdef __GNUC__
3401 yes;
3402 #endif
3403 EOF
3404 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3405 ac_cv_prog_gcc=yes
3406 else
3407 ac_cv_prog_gcc=no
3408 fi
3409 fi
3410
3411 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3412
3413 if test $ac_cv_prog_gcc = yes; then
3414 GCC=yes
3415 ac_test_CFLAGS="${CFLAGS+set}"
3416 ac_save_CFLAGS="$CFLAGS"
3417 CFLAGS=
3418 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3419 echo "configure:3420: checking whether ${CC-cc} accepts -g" >&5
3420 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 echo 'void f(){}' > conftest.c
3424 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3425 ac_cv_prog_cc_g=yes
3426 else
3427 ac_cv_prog_cc_g=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3434 if test "$ac_test_CFLAGS" = set; then
3435 CFLAGS="$ac_save_CFLAGS"
3436 elif test $ac_cv_prog_cc_g = yes; then
3437 CFLAGS="-g -O2"
3438 else
3439 CFLAGS="-O2"
3440 fi
3441 else
3442 GCC=
3443 test "${CFLAGS+set}" = set || CFLAGS="-g"
3444 fi
3445
3446
3447 . ${srcdir}/../bfd/configure.host
3448
3449
3450
3451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3452
3453
3454 for ac_hdr in string.h strings.h stdlib.h
3455 do
3456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_hdr" >&5
3459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <$ac_hdr>
3466 EOF
3467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3468 { (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3469 ac_err=`grep -v '^ *+' conftest.out`
3470 if test -z "$ac_err"; then
3471 rm -rf conftest*
3472 eval "ac_cv_header_$ac_safe=yes"
3473 else
3474 echo "$ac_err" >&5
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 rm -rf conftest*
3478 eval "ac_cv_header_$ac_safe=no"
3479 fi
3480 rm -f conftest*
3481 fi
3482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3485 cat >> confdefs.h <<EOF
3486 #define $ac_tr_hdr 1
3487 EOF
3488
3489 else
3490 echo "$ac_t""no" 1>&6
3491 fi
3492 done
3493
3494
3495 # start-sanitize-cygnus
3496 use_cgen=no
3497 if test ${USE_MAINTAINER_MODE} = yes ; then
3498 for targ in $target $canon_targets
3499 do
3500 case $targ in
3501 all) use_cgen=yes ;;
3502 m32r-*-*) use_cgen=yes ;;
3503 esac
3504 done
3505 fi
3506 if test $use_cgen = yes ; then
3507 # Extract the first word of "guile", so it can be a program name with args.
3508 set dummy guile; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 if test -n "$SCHEME"; then
3515 ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test.
3516 else
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3518 for ac_dir in $PATH; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 ac_cv_prog_SCHEME="guile"
3522 break
3523 fi
3524 done
3525 IFS="$ac_save_ifs"
3526 test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME="guile"
3527 fi
3528 fi
3529 SCHEME="$ac_cv_prog_SCHEME"
3530 if test -n "$SCHEME"; then
3531 echo "$ac_t""$SCHEME" 1>&6
3532 else
3533 echo "$ac_t""no" 1>&6
3534 fi
3535
3536 fi
3537 # end-sanitize-cygnus
3538
3539 # Horrible hacks to build DLLs on Windows.
3540 WIN32LDFLAGS=
3541 WIN32LIBADD=
3542 case "${host}" in
3543 *-*-cygwin32*)
3544 if test "$enable_shared" = "yes"; then
3545 WIN32LDFLAGS="-no-undefined"
3546 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -lcygwin"
3547 fi
3548 ;;
3549 esac
3550
3551
3552
3553 # target-specific stuff:
3554
3555 # Canonicalize the secondary target names.
3556 if test -n "$enable_targets" ; then
3557 for targ in `echo $enable_targets | sed 's/,/ /g'`
3558 do
3559 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
3560 if test -n "$result" ; then
3561 canon_targets="$canon_targets $result"
3562 else
3563 # Allow targets that config.sub doesn't recognize, like "all".
3564 canon_targets="$canon_targets $targ"
3565 fi
3566 done
3567 fi
3568
3569 all_targets=false
3570 selarchs=
3571 for targ in $target $canon_targets
3572 do
3573 if test "x$targ" = "xall" ; then
3574 all_targets=true
3575 else
3576 . $srcdir/../bfd/config.bfd
3577 selarchs="$selarchs $targ_archs"
3578 fi
3579 done
3580
3581 # Utility var, documents generic cgen support files.
3582
3583 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3584
3585 # We don't do any links based on the target system, just makefile config.
3586
3587 if test x${all_targets} = xfalse ; then
3588
3589 # Target architecture .o files.
3590 ta=
3591
3592 for arch in $selarchs
3593 do
3594 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3595 archdefs="$archdefs -DARCH_$ad"
3596 case "$arch" in
3597 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
3598 bfd_alliant_arch) ;;
3599 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
3600 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
3601 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
3602 bfd_convex_arch) ;;
3603 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
3604 # start-sanitize-d30v
3605 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
3606 # end-sanitize-d30v
3607 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3608 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3609 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3610 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
3611 bfd_i860_arch) ;;
3612 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3613 bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;;
3614 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3615 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3616 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3617 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3618 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3619 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3620 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3621 bfd_pyramid_arch) ;;
3622 bfd_romp_arch) ;;
3623 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3624 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
3625 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
3626 bfd_tahoe_arch) ;;
3627 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3628 # start-sanitize-tic80
3629 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
3630 # end-sanitize-tic80
3631 # start-sanitize-sky
3632 bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;;
3633 # end-sanitize-sky
3634 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3635 # start-sanitize-v850e
3636 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3637 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
3638 # end-sanitize-v850e
3639 bfd_vax_arch) ;;
3640 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
3641 bfd_we32k_arch) ;;
3642 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
3643
3644 "") ;;
3645 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
3646 esac
3647 done
3648
3649 # Weed out duplicate .o files.
3650 f=""
3651 for i in $ta ; do
3652 case " $f " in
3653 *" $i "*) ;;
3654 *) f="$f $i" ;;
3655 esac
3656 done
3657 ta="$f"
3658
3659 # And duplicate -D flags.
3660 f=""
3661 for i in $archdefs ; do
3662 case " $f " in
3663 *" $i "*) ;;
3664 *) f="$f $i" ;;
3665 esac
3666 done
3667 archdefs="$f"
3668
3669 BFD_MACHINES="$ta"
3670
3671 else # all_targets is true
3672 archdefs=-DARCH_all
3673 BFD_MACHINES='$(ALL_MACHINES)'
3674 fi
3675
3676
3677
3678
3679 trap '' 1 2 15
3680 cat > confcache <<\EOF
3681 # This file is a shell script that caches the results of configure
3682 # tests run on this system so they can be shared between configure
3683 # scripts and configure runs. It is not useful on other systems.
3684 # If it contains results you don't want to keep, you may remove or edit it.
3685 #
3686 # By default, configure uses ./config.cache as the cache file,
3687 # creating it if it does not exist already. You can give configure
3688 # the --cache-file=FILE option to use a different cache file; that is
3689 # what configure does when it calls configure scripts in
3690 # subdirectories, so they share the cache.
3691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3692 # config.status only pays attention to the cache file if you give it the
3693 # --recheck option to rerun configure.
3694 #
3695 EOF
3696 # The following way of writing the cache mishandles newlines in values,
3697 # but we know of no workaround that is simple, portable, and efficient.
3698 # So, don't put newlines in cache variables' values.
3699 # Ultrix sh set writes to stderr and can't be redirected directly,
3700 # and sets the high bit in the cache file unless we assign to the vars.
3701 (set) 2>&1 |
3702 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3703 *ac_space=\ *)
3704 # `set' does not quote correctly, so add quotes (double-quote substitution
3705 # turns \\\\ into \\, and sed turns \\ into \).
3706 sed -n \
3707 -e "s/'/'\\\\''/g" \
3708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3709 ;;
3710 *)
3711 # `set' quotes correctly as required by POSIX, so do not add quotes.
3712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3713 ;;
3714 esac >> confcache
3715 if cmp -s $cache_file confcache; then
3716 :
3717 else
3718 if test -w $cache_file; then
3719 echo "updating cache $cache_file"
3720 cat confcache > $cache_file
3721 else
3722 echo "not updating unwritable cache $cache_file"
3723 fi
3724 fi
3725 rm -f confcache
3726
3727 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3728
3729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3730 # Let make expand exec_prefix.
3731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3732
3733 # Any assignment to VPATH causes Sun make to only execute
3734 # the first set of double-colon rules, so remove it if not needed.
3735 # If there is a colon in the path, we need to keep it.
3736 if test "x$srcdir" = x.; then
3737 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3738 fi
3739
3740 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3741
3742 DEFS=-DHAVE_CONFIG_H
3743
3744 # Without the "./", some shells look in PATH for config.status.
3745 : ${CONFIG_STATUS=./config.status}
3746
3747 echo creating $CONFIG_STATUS
3748 rm -f $CONFIG_STATUS
3749 cat > $CONFIG_STATUS <<EOF
3750 #! /bin/sh
3751 # Generated automatically by configure.
3752 # Run this file to recreate the current configuration.
3753 # This directory was configured as follows,
3754 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3755 #
3756 # $0 $ac_configure_args
3757 #
3758 # Compiler output produced by configure, useful for debugging
3759 # configure, is in ./config.log if it exists.
3760
3761 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3762 for ac_option
3763 do
3764 case "\$ac_option" in
3765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3766 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3767 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3768 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3769 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3770 exit 0 ;;
3771 -help | --help | --hel | --he | --h)
3772 echo "\$ac_cs_usage"; exit 0 ;;
3773 *) echo "\$ac_cs_usage"; exit 1 ;;
3774 esac
3775 done
3776
3777 ac_given_srcdir=$srcdir
3778 ac_given_INSTALL="$INSTALL"
3779
3780 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3781 EOF
3782 cat >> $CONFIG_STATUS <<EOF
3783
3784 # Protect against being on the right side of a sed subst in config.status.
3785 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3786 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3787 $ac_vpsub
3788 $extrasub
3789 s%@SHELL@%$SHELL%g
3790 s%@CFLAGS@%$CFLAGS%g
3791 s%@CPPFLAGS@%$CPPFLAGS%g
3792 s%@CXXFLAGS@%$CXXFLAGS%g
3793 s%@DEFS@%$DEFS%g
3794 s%@LDFLAGS@%$LDFLAGS%g
3795 s%@LIBS@%$LIBS%g
3796 s%@exec_prefix@%$exec_prefix%g
3797 s%@prefix@%$prefix%g
3798 s%@program_transform_name@%$program_transform_name%g
3799 s%@bindir@%$bindir%g
3800 s%@sbindir@%$sbindir%g
3801 s%@libexecdir@%$libexecdir%g
3802 s%@datadir@%$datadir%g
3803 s%@sysconfdir@%$sysconfdir%g
3804 s%@sharedstatedir@%$sharedstatedir%g
3805 s%@localstatedir@%$localstatedir%g
3806 s%@libdir@%$libdir%g
3807 s%@includedir@%$includedir%g
3808 s%@oldincludedir@%$oldincludedir%g
3809 s%@infodir@%$infodir%g
3810 s%@mandir@%$mandir%g
3811 s%@host@%$host%g
3812 s%@host_alias@%$host_alias%g
3813 s%@host_cpu@%$host_cpu%g
3814 s%@host_vendor@%$host_vendor%g
3815 s%@host_os@%$host_os%g
3816 s%@target@%$target%g
3817 s%@target_alias@%$target_alias%g
3818 s%@target_cpu@%$target_cpu%g
3819 s%@target_vendor@%$target_vendor%g
3820 s%@target_os@%$target_os%g
3821 s%@build@%$build%g
3822 s%@build_alias@%$build_alias%g
3823 s%@build_cpu@%$build_cpu%g
3824 s%@build_vendor@%$build_vendor%g
3825 s%@build_os@%$build_os%g
3826 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3827 s%@INSTALL_DATA@%$INSTALL_DATA%g
3828 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3829 s%@PACKAGE@%$PACKAGE%g
3830 s%@VERSION@%$VERSION%g
3831 s%@ACLOCAL@%$ACLOCAL%g
3832 s%@AUTOCONF@%$AUTOCONF%g
3833 s%@AUTOMAKE@%$AUTOMAKE%g
3834 s%@AUTOHEADER@%$AUTOHEADER%g
3835 s%@MAKEINFO@%$MAKEINFO%g
3836 s%@SET_MAKE@%$SET_MAKE%g
3837 s%@AR@%$AR%g
3838 s%@RANLIB@%$RANLIB%g
3839 s%@CC@%$CC%g
3840 s%@LD@%$LD%g
3841 s%@NM@%$NM%g
3842 s%@LN_S@%$LN_S%g
3843 s%@LIBTOOL@%$LIBTOOL%g
3844 s%@CPP@%$CPP%g
3845 s%@ALLOCA@%$ALLOCA%g
3846 s%@USE_NLS@%$USE_NLS%g
3847 s%@MSGFMT@%$MSGFMT%g
3848 s%@GMSGFMT@%$GMSGFMT%g
3849 s%@XGETTEXT@%$XGETTEXT%g
3850 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3851 s%@CATALOGS@%$CATALOGS%g
3852 s%@CATOBJEXT@%$CATOBJEXT%g
3853 s%@DATADIRNAME@%$DATADIRNAME%g
3854 s%@GMOFILES@%$GMOFILES%g
3855 s%@INSTOBJEXT@%$INSTOBJEXT%g
3856 s%@INTLDEPS@%$INTLDEPS%g
3857 s%@INTLLIBS@%$INTLLIBS%g
3858 s%@INTLOBJS@%$INTLOBJS%g
3859 s%@POFILES@%$POFILES%g
3860 s%@POSUB@%$POSUB%g
3861 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3862 s%@GT_NO@%$GT_NO%g
3863 s%@GT_YES@%$GT_YES%g
3864 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3865 s%@l@%$l%g
3866 s%@MAINT@%$MAINT%g
3867 s%@EXEEXT@%$EXEEXT%g
3868 s%@HDEFINES@%$HDEFINES%g
3869 s%@SCHEME@%$SCHEME%g
3870 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
3871 s%@WIN32LIBADD@%$WIN32LIBADD%g
3872 s%@archdefs@%$archdefs%g
3873 s%@BFD_MACHINES@%$BFD_MACHINES%g
3874
3875 CEOF
3876 EOF
3877
3878 cat >> $CONFIG_STATUS <<\EOF
3879
3880 # Split the substitutions into bite-sized pieces for seds with
3881 # small command number limits, like on Digital OSF/1 and HP-UX.
3882 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3883 ac_file=1 # Number of current file.
3884 ac_beg=1 # First line for current file.
3885 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3886 ac_more_lines=:
3887 ac_sed_cmds=""
3888 while $ac_more_lines; do
3889 if test $ac_beg -gt 1; then
3890 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3891 else
3892 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3893 fi
3894 if test ! -s conftest.s$ac_file; then
3895 ac_more_lines=false
3896 rm -f conftest.s$ac_file
3897 else
3898 if test -z "$ac_sed_cmds"; then
3899 ac_sed_cmds="sed -f conftest.s$ac_file"
3900 else
3901 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3902 fi
3903 ac_file=`expr $ac_file + 1`
3904 ac_beg=$ac_end
3905 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3906 fi
3907 done
3908 if test -z "$ac_sed_cmds"; then
3909 ac_sed_cmds=cat
3910 fi
3911 EOF
3912
3913 cat >> $CONFIG_STATUS <<EOF
3914
3915 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
3916 EOF
3917 cat >> $CONFIG_STATUS <<\EOF
3918 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3920 case "$ac_file" in
3921 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3922 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3923 *) ac_file_in="${ac_file}.in" ;;
3924 esac
3925
3926 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3927
3928 # Remove last slash and all that follows it. Not all systems have dirname.
3929 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3931 # The file is in a subdirectory.
3932 test ! -d "$ac_dir" && mkdir "$ac_dir"
3933 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3934 # A "../" for each directory in $ac_dir_suffix.
3935 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3936 else
3937 ac_dir_suffix= ac_dots=
3938 fi
3939
3940 case "$ac_given_srcdir" in
3941 .) srcdir=.
3942 if test -z "$ac_dots"; then top_srcdir=.
3943 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3944 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3945 *) # Relative path.
3946 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3947 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3948 esac
3949
3950 case "$ac_given_INSTALL" in
3951 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3952 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3953 esac
3954
3955 echo creating "$ac_file"
3956 rm -f "$ac_file"
3957 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3958 case "$ac_file" in
3959 *Makefile*) ac_comsub="1i\\
3960 # $configure_input" ;;
3961 *) ac_comsub= ;;
3962 esac
3963
3964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3965 sed -e "$ac_comsub
3966 s%@configure_input@%$configure_input%g
3967 s%@srcdir@%$srcdir%g
3968 s%@top_srcdir@%$top_srcdir%g
3969 s%@INSTALL@%$INSTALL%g
3970 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3971 fi; done
3972 rm -f conftest.s*
3973
3974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3976 #
3977 # ac_d sets the value in "#define NAME VALUE" lines.
3978 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3979 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3980 ac_dC='\3'
3981 ac_dD='%g'
3982 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3983 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3984 ac_uB='\([ ]\)%\1#\2define\3'
3985 ac_uC=' '
3986 ac_uD='\4%g'
3987 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3988 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3989 ac_eB='$%\1#\2define\3'
3990 ac_eC=' '
3991 ac_eD='%g'
3992
3993 if test "${CONFIG_HEADERS+set}" != set; then
3994 EOF
3995 cat >> $CONFIG_STATUS <<EOF
3996 CONFIG_HEADERS="config.h:config.in"
3997 EOF
3998 cat >> $CONFIG_STATUS <<\EOF
3999 fi
4000 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4002 case "$ac_file" in
4003 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4004 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4005 *) ac_file_in="${ac_file}.in" ;;
4006 esac
4007
4008 echo creating $ac_file
4009
4010 rm -f conftest.frag conftest.in conftest.out
4011 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4012 cat $ac_file_inputs > conftest.in
4013
4014 EOF
4015
4016 # Transform confdefs.h into a sed script conftest.vals that substitutes
4017 # the proper values into config.h.in to produce config.h. And first:
4018 # Protect against being on the right side of a sed subst in config.status.
4019 # Protect against being in an unquoted here document in config.status.
4020 rm -f conftest.vals
4021 cat > conftest.hdr <<\EOF
4022 s/[\\&%]/\\&/g
4023 s%[\\$`]%\\&%g
4024 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4025 s%ac_d%ac_u%gp
4026 s%ac_u%ac_e%gp
4027 EOF
4028 sed -n -f conftest.hdr confdefs.h > conftest.vals
4029 rm -f conftest.hdr
4030
4031 # This sed command replaces #undef with comments. This is necessary, for
4032 # example, in the case of _POSIX_SOURCE, which is predefined and required
4033 # on some systems where configure will not decide to define it.
4034 cat >> conftest.vals <<\EOF
4035 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4036 EOF
4037
4038 # Break up conftest.vals because some shells have a limit on
4039 # the size of here documents, and old seds have small limits too.
4040
4041 rm -f conftest.tail
4042 while :
4043 do
4044 ac_lines=`grep -c . conftest.vals`
4045 # grep -c gives empty output for an empty file on some AIX systems.
4046 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4047 # Write a limited-size here document to conftest.frag.
4048 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4049 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4050 echo 'CEOF
4051 sed -f conftest.frag conftest.in > conftest.out
4052 rm -f conftest.in
4053 mv conftest.out conftest.in
4054 ' >> $CONFIG_STATUS
4055 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4056 rm -f conftest.vals
4057 mv conftest.tail conftest.vals
4058 done
4059 rm -f conftest.vals
4060
4061 cat >> $CONFIG_STATUS <<\EOF
4062 rm -f conftest.frag conftest.h
4063 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4064 cat conftest.in >> conftest.h
4065 rm -f conftest.in
4066 if cmp -s $ac_file conftest.h 2>/dev/null; then
4067 echo "$ac_file is unchanged"
4068 rm -f conftest.h
4069 else
4070 # Remove last slash and all that follows it. Not all systems have dirname.
4071 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4073 # The file is in a subdirectory.
4074 test ! -d "$ac_dir" && mkdir "$ac_dir"
4075 fi
4076 rm -f $ac_file
4077 mv conftest.h $ac_file
4078 fi
4079 fi; done
4080
4081 EOF
4082 cat >> $CONFIG_STATUS <<EOF
4083
4084
4085 EOF
4086 cat >> $CONFIG_STATUS <<\EOF
4087 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4088 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4089 exit 0
4090 EOF
4091 chmod +x $CONFIG_STATUS
4092 rm -fr confdefs* $ac_clean_files
4093 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4094
This page took 0.137771 seconds and 4 git commands to generate.