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