source: trunk/src/binutils/opcodes/configure@ 691

Last change on this file since 691 was 619, checked in by bird, 22 years ago

Regenerated configure files after 2.14 join.

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