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