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

Last change on this file since 106 was 101, checked in by bird, 22 years ago

Regenerated configure scripts.

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