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